diff options
author | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
commit | 07274513e984f0b5544586c74508ccd16e7dcafa (patch) | |
tree | b32ff2a9136fbc1a4a6a0ed1e4d79cde0f5f16d9 /libraries/eet/configure | |
parent | Added Irrlicht 1.8, but without all the Windows binaries. (diff) | |
download | SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.zip SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.gz SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.bz2 SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.xz |
Remove EFL, since it's been released now.
Diffstat (limited to '')
-rwxr-xr-x | libraries/eet/configure | 16872 | ||||
-rw-r--r-- | libraries/eet/configure.ac | 549 |
2 files changed, 0 insertions, 17421 deletions
diff --git a/libraries/eet/configure b/libraries/eet/configure deleted file mode 100755 index 0687ffe..0000000 --- a/libraries/eet/configure +++ /dev/null | |||
@@ -1,16872 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.67 for eet 1.6.0-alpha. | ||
4 | # | ||
5 | # Report bugs to <enlightenment-devel@lists.sourceforge.net>. | ||
6 | # | ||
7 | # | ||
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | ||
10 | # Foundation, Inc. | ||
11 | # | ||
12 | # | ||
13 | # This configure script is free software; the Free Software Foundation | ||
14 | # gives unlimited permission to copy, distribute and modify it. | ||
15 | ## -------------------- ## | ||
16 | ## M4sh Initialization. ## | ||
17 | ## -------------------- ## | ||
18 | |||
19 | # Be more Bourne compatible | ||
20 | DUALCASE=1; export DUALCASE # for MKS sh | ||
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
22 | emulate sh | ||
23 | NULLCMD=: | ||
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
25 | # is contrary to our usage. Disable this feature. | ||
26 | alias -g '${1+"$@"}'='"$@"' | ||
27 | setopt NO_GLOB_SUBST | ||
28 | else | ||
29 | case `(set -o) 2>/dev/null` in #( | ||
30 | *posix*) : | ||
31 | set -o posix ;; #( | ||
32 | *) : | ||
33 | ;; | ||
34 | esac | ||
35 | fi | ||
36 | |||
37 | |||
38 | as_nl=' | ||
39 | ' | ||
40 | export as_nl | ||
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
46 | # but without wasting forks for bash or zsh. | ||
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
49 | as_echo='print -r --' | ||
50 | as_echo_n='print -rn --' | ||
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
52 | as_echo='printf %s\n' | ||
53 | as_echo_n='printf %s' | ||
54 | else | ||
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
57 | as_echo_n='/usr/ucb/echo -n' | ||
58 | else | ||
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
60 | as_echo_n_body='eval | ||
61 | arg=$1; | ||
62 | case $arg in #( | ||
63 | *"$as_nl"*) | ||
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
66 | esac; | ||
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
68 | ' | ||
69 | export as_echo_n_body | ||
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
71 | fi | ||
72 | export as_echo_body | ||
73 | as_echo='sh -c $as_echo_body as_echo' | ||
74 | fi | ||
75 | |||
76 | # The user is always right. | ||
77 | if test "${PATH_SEPARATOR+set}" != set; then | ||
78 | PATH_SEPARATOR=: | ||
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
81 | PATH_SEPARATOR=';' | ||
82 | } | ||
83 | fi | ||
84 | |||
85 | |||
86 | # IFS | ||
87 | # We need space, tab and new line, in precisely that order. Quoting is | ||
88 | # there to prevent editors from complaining about space-tab. | ||
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
90 | # splitting by setting IFS to empty value.) | ||
91 | IFS=" "" $as_nl" | ||
92 | |||
93 | # Find who we are. Look in the path if we contain no directory separator. | ||
94 | case $0 in #(( | ||
95 | *[\\/]* ) as_myself=$0 ;; | ||
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
97 | for as_dir in $PATH | ||
98 | do | ||
99 | IFS=$as_save_IFS | ||
100 | test -z "$as_dir" && as_dir=. | ||
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
102 | done | ||
103 | IFS=$as_save_IFS | ||
104 | |||
105 | ;; | ||
106 | esac | ||
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
108 | # in which case we are not to be found in the path. | ||
109 | if test "x$as_myself" = x; then | ||
110 | as_myself=$0 | ||
111 | fi | ||
112 | if test ! -f "$as_myself"; then | ||
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
114 | exit 1 | ||
115 | fi | ||
116 | |||
117 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
119 | # suppresses any "Segmentation fault" message there. '((' could | ||
120 | # trigger a bug in pdksh 5.2.14. | ||
121 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
122 | do eval test x\${$as_var+set} = xset \ | ||
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
124 | done | ||
125 | PS1='$ ' | ||
126 | PS2='> ' | ||
127 | PS4='+ ' | ||
128 | |||
129 | # NLS nuisances. | ||
130 | LC_ALL=C | ||
131 | export LC_ALL | ||
132 | LANGUAGE=C | ||
133 | export LANGUAGE | ||
134 | |||
135 | # CDPATH. | ||
136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
137 | |||
138 | if test "x$CONFIG_SHELL" = x; then | ||
139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | ||
140 | emulate sh | ||
141 | NULLCMD=: | ||
142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||
143 | # is contrary to our usage. Disable this feature. | ||
144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||
145 | setopt NO_GLOB_SUBST | ||
146 | else | ||
147 | case \`(set -o) 2>/dev/null\` in #( | ||
148 | *posix*) : | ||
149 | set -o posix ;; #( | ||
150 | *) : | ||
151 | ;; | ||
152 | esac | ||
153 | fi | ||
154 | " | ||
155 | as_required="as_fn_return () { (exit \$1); } | ||
156 | as_fn_success () { as_fn_return 0; } | ||
157 | as_fn_failure () { as_fn_return 1; } | ||
158 | as_fn_ret_success () { return 0; } | ||
159 | as_fn_ret_failure () { return 1; } | ||
160 | |||
161 | exitcode=0 | ||
162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||
163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||
164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||
165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||
166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
167 | |||
168 | else | ||
169 | exitcode=1; echo positional parameters were not saved. | ||
170 | fi | ||
171 | test x\$exitcode = x0 || exit 1" | ||
172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | ||
173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
176 | test \$(( 1 + 1 )) = 2 || exit 1" | ||
177 | if (eval "$as_required") 2>/dev/null; then : | ||
178 | as_have_required=yes | ||
179 | else | ||
180 | as_have_required=no | ||
181 | fi | ||
182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||
183 | |||
184 | else | ||
185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
186 | as_found=false | ||
187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
188 | do | ||
189 | IFS=$as_save_IFS | ||
190 | test -z "$as_dir" && as_dir=. | ||
191 | as_found=: | ||
192 | case $as_dir in #( | ||
193 | /*) | ||
194 | for as_base in sh bash ksh sh5; do | ||
195 | # Try only shells that exist, to save several forks. | ||
196 | as_shell=$as_dir/$as_base | ||
197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
199 | CONFIG_SHELL=$as_shell as_have_required=yes | ||
200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
201 | break 2 | ||
202 | fi | ||
203 | fi | ||
204 | done;; | ||
205 | esac | ||
206 | as_found=false | ||
207 | done | ||
208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | ||
209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | ||
210 | CONFIG_SHELL=$SHELL as_have_required=yes | ||
211 | fi; } | ||
212 | IFS=$as_save_IFS | ||
213 | |||
214 | |||
215 | if test "x$CONFIG_SHELL" != x; then : | ||
216 | # We cannot yet assume a decent shell, so we have to provide a | ||
217 | # neutralization value for shells without unset; and this also | ||
218 | # works around shells that cannot unset nonexistent variables. | ||
219 | BASH_ENV=/dev/null | ||
220 | ENV=/dev/null | ||
221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
222 | export CONFIG_SHELL | ||
223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
224 | fi | ||
225 | |||
226 | if test x$as_have_required = xno; then : | ||
227 | $as_echo "$0: This script requires a shell more modern than all" | ||
228 | $as_echo "$0: the shells that I found on your system." | ||
229 | if test x${ZSH_VERSION+set} = xset ; then | ||
230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||
231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||
232 | else | ||
233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | ||
234 | $0: enlightenment-devel@lists.sourceforge.net about your | ||
235 | $0: system, including any error possibly output before this | ||
236 | $0: message. Then install a modern shell, or manually run | ||
237 | $0: the script under such a shell if you do have one." | ||
238 | fi | ||
239 | exit 1 | ||
240 | fi | ||
241 | fi | ||
242 | fi | ||
243 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
244 | export SHELL | ||
245 | # Unset more variables known to interfere with behavior of common tools. | ||
246 | CLICOLOR_FORCE= GREP_OPTIONS= | ||
247 | unset CLICOLOR_FORCE GREP_OPTIONS | ||
248 | |||
249 | ## --------------------- ## | ||
250 | ## M4sh Shell Functions. ## | ||
251 | ## --------------------- ## | ||
252 | # as_fn_unset VAR | ||
253 | # --------------- | ||
254 | # Portably unset VAR. | ||
255 | as_fn_unset () | ||
256 | { | ||
257 | { eval $1=; unset $1;} | ||
258 | } | ||
259 | as_unset=as_fn_unset | ||
260 | |||
261 | # as_fn_set_status STATUS | ||
262 | # ----------------------- | ||
263 | # Set $? to STATUS, without forking. | ||
264 | as_fn_set_status () | ||
265 | { | ||
266 | return $1 | ||
267 | } # as_fn_set_status | ||
268 | |||
269 | # as_fn_exit STATUS | ||
270 | # ----------------- | ||
271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
272 | as_fn_exit () | ||
273 | { | ||
274 | set +e | ||
275 | as_fn_set_status $1 | ||
276 | exit $1 | ||
277 | } # as_fn_exit | ||
278 | |||
279 | # as_fn_mkdir_p | ||
280 | # ------------- | ||
281 | # Create "$as_dir" as a directory, including parents if necessary. | ||
282 | as_fn_mkdir_p () | ||
283 | { | ||
284 | |||
285 | case $as_dir in #( | ||
286 | -*) as_dir=./$as_dir;; | ||
287 | esac | ||
288 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
289 | as_dirs= | ||
290 | while :; do | ||
291 | case $as_dir in #( | ||
292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
293 | *) as_qdir=$as_dir;; | ||
294 | esac | ||
295 | as_dirs="'$as_qdir' $as_dirs" | ||
296 | as_dir=`$as_dirname -- "$as_dir" || | ||
297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
298 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
299 | X"$as_dir" : 'X\(//\)$' \| \ | ||
300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
301 | $as_echo X"$as_dir" | | ||
302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
303 | s//\1/ | ||
304 | q | ||
305 | } | ||
306 | /^X\(\/\/\)[^/].*/{ | ||
307 | s//\1/ | ||
308 | q | ||
309 | } | ||
310 | /^X\(\/\/\)$/{ | ||
311 | s//\1/ | ||
312 | q | ||
313 | } | ||
314 | /^X\(\/\).*/{ | ||
315 | s//\1/ | ||
316 | q | ||
317 | } | ||
318 | s/.*/./; q'` | ||
319 | test -d "$as_dir" && break | ||
320 | done | ||
321 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
322 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
323 | |||
324 | |||
325 | } # as_fn_mkdir_p | ||
326 | # as_fn_append VAR VALUE | ||
327 | # ---------------------- | ||
328 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
329 | # advantage of any shell optimizations that allow amortized linear growth over | ||
330 | # repeated appends, instead of the typical quadratic growth present in naive | ||
331 | # implementations. | ||
332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
333 | eval 'as_fn_append () | ||
334 | { | ||
335 | eval $1+=\$2 | ||
336 | }' | ||
337 | else | ||
338 | as_fn_append () | ||
339 | { | ||
340 | eval $1=\$$1\$2 | ||
341 | } | ||
342 | fi # as_fn_append | ||
343 | |||
344 | # as_fn_arith ARG... | ||
345 | # ------------------ | ||
346 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
348 | # must be portable across $(()) and expr. | ||
349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
350 | eval 'as_fn_arith () | ||
351 | { | ||
352 | as_val=$(( $* )) | ||
353 | }' | ||
354 | else | ||
355 | as_fn_arith () | ||
356 | { | ||
357 | as_val=`expr "$@" || test $? -eq 1` | ||
358 | } | ||
359 | fi # as_fn_arith | ||
360 | |||
361 | |||
362 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
363 | # ---------------------------------------- | ||
364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
366 | # script with STATUS, using 1 if that was 0. | ||
367 | as_fn_error () | ||
368 | { | ||
369 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
370 | if test "$4"; then | ||
371 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
373 | fi | ||
374 | $as_echo "$as_me: error: $2" >&2 | ||
375 | as_fn_exit $as_status | ||
376 | } # as_fn_error | ||
377 | |||
378 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
380 | as_expr=expr | ||
381 | else | ||
382 | as_expr=false | ||
383 | fi | ||
384 | |||
385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
386 | as_basename=basename | ||
387 | else | ||
388 | as_basename=false | ||
389 | fi | ||
390 | |||
391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
392 | as_dirname=dirname | ||
393 | else | ||
394 | as_dirname=false | ||
395 | fi | ||
396 | |||
397 | as_me=`$as_basename -- "$0" || | ||
398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
399 | X"$0" : 'X\(//\)$' \| \ | ||
400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
401 | $as_echo X/"$0" | | ||
402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
403 | s//\1/ | ||
404 | q | ||
405 | } | ||
406 | /^X\/\(\/\/\)$/{ | ||
407 | s//\1/ | ||
408 | q | ||
409 | } | ||
410 | /^X\/\(\/\).*/{ | ||
411 | s//\1/ | ||
412 | q | ||
413 | } | ||
414 | s/.*/./; q'` | ||
415 | |||
416 | # Avoid depending upon Character Ranges. | ||
417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
420 | as_cr_digits='0123456789' | ||
421 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
422 | |||
423 | |||
424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | ||
425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | ||
426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | ||
427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | ||
428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | ||
429 | sed -n ' | ||
430 | p | ||
431 | /[$]LINENO/= | ||
432 | ' <$as_myself | | ||
433 | sed ' | ||
434 | s/[$]LINENO.*/&-/ | ||
435 | t lineno | ||
436 | b | ||
437 | :lineno | ||
438 | N | ||
439 | :loop | ||
440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
441 | t loop | ||
442 | s/-\n.*// | ||
443 | ' >$as_me.lineno && | ||
444 | chmod +x "$as_me.lineno" || | ||
445 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | ||
446 | |||
447 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
448 | # (the dirname of $[0] is not the place where we might find the | ||
449 | # original and so on. Autoconf is especially sensitive to this). | ||
450 | . "./$as_me.lineno" | ||
451 | # Exit status is that of the last command. | ||
452 | exit | ||
453 | } | ||
454 | |||
455 | ECHO_C= ECHO_N= ECHO_T= | ||
456 | case `echo -n x` in #((((( | ||
457 | -n*) | ||
458 | case `echo 'xy\c'` in | ||
459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
460 | xy) ECHO_C='\c';; | ||
461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
462 | ECHO_T=' ';; | ||
463 | esac;; | ||
464 | *) | ||
465 | ECHO_N='-n';; | ||
466 | esac | ||
467 | |||
468 | rm -f conf$$ conf$$.exe conf$$.file | ||
469 | if test -d conf$$.dir; then | ||
470 | rm -f conf$$.dir/conf$$.file | ||
471 | else | ||
472 | rm -f conf$$.dir | ||
473 | mkdir conf$$.dir 2>/dev/null | ||
474 | fi | ||
475 | if (echo >conf$$.file) 2>/dev/null; then | ||
476 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
477 | as_ln_s='ln -s' | ||
478 | # ... but there are two gotchas: | ||
479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
481 | # In both cases, we have to default to `cp -p'. | ||
482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
483 | as_ln_s='cp -p' | ||
484 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
485 | as_ln_s=ln | ||
486 | else | ||
487 | as_ln_s='cp -p' | ||
488 | fi | ||
489 | else | ||
490 | as_ln_s='cp -p' | ||
491 | fi | ||
492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
493 | rmdir conf$$.dir 2>/dev/null | ||
494 | |||
495 | if mkdir -p . 2>/dev/null; then | ||
496 | as_mkdir_p='mkdir -p "$as_dir"' | ||
497 | else | ||
498 | test -d ./-p && rmdir ./-p | ||
499 | as_mkdir_p=false | ||
500 | fi | ||
501 | |||
502 | if test -x / >/dev/null 2>&1; then | ||
503 | as_test_x='test -x' | ||
504 | else | ||
505 | if ls -dL / >/dev/null 2>&1; then | ||
506 | as_ls_L_option=L | ||
507 | else | ||
508 | as_ls_L_option= | ||
509 | fi | ||
510 | as_test_x=' | ||
511 | eval sh -c '\'' | ||
512 | if test -d "$1"; then | ||
513 | test -d "$1/."; | ||
514 | else | ||
515 | case $1 in #( | ||
516 | -*)set "./$1";; | ||
517 | esac; | ||
518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
519 | ???[sx]*):;;*)false;;esac;fi | ||
520 | '\'' sh | ||
521 | ' | ||
522 | fi | ||
523 | as_executable_p=$as_test_x | ||
524 | |||
525 | # Sed expression to map a string onto a valid CPP name. | ||
526 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
527 | |||
528 | # Sed expression to map a string onto a valid variable name. | ||
529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
530 | |||
531 | |||
532 | |||
533 | # Check that we are running under the correct shell. | ||
534 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
535 | |||
536 | case X$lt_ECHO in | ||
537 | X*--fallback-echo) | ||
538 | # Remove one level of quotation (which was required for Make). | ||
539 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
540 | ;; | ||
541 | esac | ||
542 | |||
543 | ECHO=${lt_ECHO-echo} | ||
544 | if test "X$1" = X--no-reexec; then | ||
545 | # Discard the --no-reexec flag, and continue. | ||
546 | shift | ||
547 | elif test "X$1" = X--fallback-echo; then | ||
548 | # Avoid inline document here, it may be left over | ||
549 | : | ||
550 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | ||
551 | # Yippee, $ECHO works! | ||
552 | : | ||
553 | else | ||
554 | # Restart under the correct shell. | ||
555 | exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
556 | fi | ||
557 | |||
558 | if test "X$1" = X--fallback-echo; then | ||
559 | # used as fallback echo | ||
560 | shift | ||
561 | cat <<_LT_EOF | ||
562 | $* | ||
563 | _LT_EOF | ||
564 | exit 0 | ||
565 | fi | ||
566 | |||
567 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
568 | # if CDPATH is set. | ||
569 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
570 | |||
571 | if test -z "$lt_ECHO"; then | ||
572 | if test "X${echo_test_string+set}" != Xset; then | ||
573 | # find a string as large as possible, as long as the shell can cope with it | ||
574 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
575 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
576 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | ||
577 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | ||
578 | then | ||
579 | break | ||
580 | fi | ||
581 | done | ||
582 | fi | ||
583 | |||
584 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
585 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
586 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
587 | : | ||
588 | else | ||
589 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
590 | # backslashes. This makes it impossible to quote backslashes using | ||
591 | # echo "$something" | sed 's/\\/\\\\/g' | ||
592 | # | ||
593 | # So, first we look for a working echo in the user's PATH. | ||
594 | |||
595 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
596 | for dir in $PATH /usr/ucb; do | ||
597 | IFS="$lt_save_ifs" | ||
598 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
599 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
600 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
601 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
602 | ECHO="$dir/echo" | ||
603 | break | ||
604 | fi | ||
605 | done | ||
606 | IFS="$lt_save_ifs" | ||
607 | |||
608 | if test "X$ECHO" = Xecho; then | ||
609 | # We didn't find a better echo, so look for alternatives. | ||
610 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | ||
611 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | ||
612 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
613 | # This shell has a builtin print -r that does the trick. | ||
614 | ECHO='print -r' | ||
615 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | ||
616 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
617 | # If we have ksh, try running configure again with it. | ||
618 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
619 | export ORIGINAL_CONFIG_SHELL | ||
620 | CONFIG_SHELL=/bin/ksh | ||
621 | export CONFIG_SHELL | ||
622 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
623 | else | ||
624 | # Try using printf. | ||
625 | ECHO='printf %s\n' | ||
626 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
627 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
628 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
629 | # Cool, printf works | ||
630 | : | ||
631 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
632 | test "X$echo_testing_string" = 'X\t' && | ||
633 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
634 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
635 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
636 | export CONFIG_SHELL | ||
637 | SHELL="$CONFIG_SHELL" | ||
638 | export SHELL | ||
639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
640 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
641 | test "X$echo_testing_string" = 'X\t' && | ||
642 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
643 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
644 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
645 | else | ||
646 | # maybe with a smaller string... | ||
647 | prev=: | ||
648 | |||
649 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
650 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | ||
651 | then | ||
652 | break | ||
653 | fi | ||
654 | prev="$cmd" | ||
655 | done | ||
656 | |||
657 | if test "$prev" != 'sed 50q "$0"'; then | ||
658 | echo_test_string=`eval $prev` | ||
659 | export echo_test_string | ||
660 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
661 | else | ||
662 | # Oops. We lost completely, so just stick with echo. | ||
663 | ECHO=echo | ||
664 | fi | ||
665 | fi | ||
666 | fi | ||
667 | fi | ||
668 | fi | ||
669 | fi | ||
670 | |||
671 | # Copy echo and quote the copy suitably for passing to libtool from | ||
672 | # the Makefile, instead of quoting the original, which is used later. | ||
673 | lt_ECHO=$ECHO | ||
674 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
675 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
676 | fi | ||
677 | |||
678 | |||
679 | |||
680 | |||
681 | test -n "$DJDIR" || exec 7<&0 </dev/null | ||
682 | exec 6>&1 | ||
683 | |||
684 | # Name of the host. | ||
685 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | ||
686 | # so uname gets run too. | ||
687 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
688 | |||
689 | # | ||
690 | # Initializations. | ||
691 | # | ||
692 | ac_default_prefix=/usr/local | ||
693 | ac_clean_files= | ||
694 | ac_config_libobj_dir=. | ||
695 | LIBOBJS= | ||
696 | cross_compiling=no | ||
697 | subdirs= | ||
698 | MFLAGS= | ||
699 | MAKEFLAGS= | ||
700 | |||
701 | # Identity of this package. | ||
702 | PACKAGE_NAME='eet' | ||
703 | PACKAGE_TARNAME='eet' | ||
704 | PACKAGE_VERSION='1.6.0-alpha' | ||
705 | PACKAGE_STRING='eet 1.6.0-alpha' | ||
706 | PACKAGE_BUGREPORT='enlightenment-devel@lists.sourceforge.net' | ||
707 | PACKAGE_URL='' | ||
708 | |||
709 | ac_unique_file="configure.ac" | ||
710 | # Factoring default headers for most tests. | ||
711 | ac_includes_default="\ | ||
712 | #include <stdio.h> | ||
713 | #ifdef HAVE_SYS_TYPES_H | ||
714 | # include <sys/types.h> | ||
715 | #endif | ||
716 | #ifdef HAVE_SYS_STAT_H | ||
717 | # include <sys/stat.h> | ||
718 | #endif | ||
719 | #ifdef STDC_HEADERS | ||
720 | # include <stdlib.h> | ||
721 | # include <stddef.h> | ||
722 | #else | ||
723 | # ifdef HAVE_STDLIB_H | ||
724 | # include <stdlib.h> | ||
725 | # endif | ||
726 | #endif | ||
727 | #ifdef HAVE_STRING_H | ||
728 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
729 | # include <memory.h> | ||
730 | # endif | ||
731 | # include <string.h> | ||
732 | #endif | ||
733 | #ifdef HAVE_STRINGS_H | ||
734 | # include <strings.h> | ||
735 | #endif | ||
736 | #ifdef HAVE_INTTYPES_H | ||
737 | # include <inttypes.h> | ||
738 | #endif | ||
739 | #ifdef HAVE_STDINT_H | ||
740 | # include <stdint.h> | ||
741 | #endif | ||
742 | #ifdef HAVE_UNISTD_H | ||
743 | # include <unistd.h> | ||
744 | #endif" | ||
745 | |||
746 | 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 | EXOTIC_LIBS | ||
764 | EXOTIC_CFLAGS | ||
765 | EINA_LIBS | ||
766 | EINA_CFLAGS | ||
767 | EET_LIBS | ||
768 | EFL_EET_BUILD | ||
769 | EVIL_LIBS | ||
770 | EVIL_CFLAGS | ||
771 | EFL_BUILD_DOC_FALSE | ||
772 | EFL_BUILD_DOC_TRUE | ||
773 | efl_doxygen | ||
774 | efl_have_doxygen | ||
775 | pkgconfig_requires_private | ||
776 | DEBUG_CFLAGS | ||
777 | EFL_ENABLE_COVERAGE_FALSE | ||
778 | EFL_ENABLE_COVERAGE_TRUE | ||
779 | EFL_COVERAGE_LIBS | ||
780 | EFL_COVERAGE_CFLAGS | ||
781 | have_lcov | ||
782 | EFL_ENABLE_TESTS_FALSE | ||
783 | EFL_ENABLE_TESTS_TRUE | ||
784 | CHECK_LIBS | ||
785 | CHECK_CFLAGS | ||
786 | PKG_CONFIG_LIBDIR | ||
787 | PKG_CONFIG_PATH | ||
788 | PKG_CONFIG | ||
789 | BUILD_EXAMPLES_FALSE | ||
790 | BUILD_EXAMPLES_TRUE | ||
791 | INSTALL_EXAMPLES_FALSE | ||
792 | INSTALL_EXAMPLES_TRUE | ||
793 | BUILD_EET_FALSE | ||
794 | BUILD_EET_TRUE | ||
795 | EET_PRG | ||
796 | EET_AMALGAMATION_FALSE | ||
797 | EET_AMALGAMATION_TRUE | ||
798 | VMAJ | ||
799 | release_info | ||
800 | version_info | ||
801 | CPP | ||
802 | OTOOL64 | ||
803 | OTOOL | ||
804 | LIPO | ||
805 | NMEDIT | ||
806 | DSYMUTIL | ||
807 | lt_ECHO | ||
808 | RANLIB | ||
809 | AR | ||
810 | LN_S | ||
811 | NM | ||
812 | ac_ct_DUMPBIN | ||
813 | DUMPBIN | ||
814 | LD | ||
815 | FGREP | ||
816 | EGREP | ||
817 | GREP | ||
818 | SED | ||
819 | am__fastdepCC_FALSE | ||
820 | am__fastdepCC_TRUE | ||
821 | CCDEPMODE | ||
822 | AMDEPBACKSLASH | ||
823 | AMDEP_FALSE | ||
824 | AMDEP_TRUE | ||
825 | am__quote | ||
826 | am__include | ||
827 | DEPDIR | ||
828 | OBJEXT | ||
829 | EXEEXT | ||
830 | ac_ct_CC | ||
831 | CPPFLAGS | ||
832 | LDFLAGS | ||
833 | CFLAGS | ||
834 | CC | ||
835 | LIBTOOL | ||
836 | OBJDUMP | ||
837 | DLLTOOL | ||
838 | AS | ||
839 | host_os | ||
840 | host_vendor | ||
841 | host_cpu | ||
842 | host | ||
843 | build_os | ||
844 | build_vendor | ||
845 | build_cpu | ||
846 | build | ||
847 | AM_BACKSLASH | ||
848 | AM_DEFAULT_VERBOSITY | ||
849 | am__untar | ||
850 | am__tar | ||
851 | AMTAR | ||
852 | am__leading_dot | ||
853 | SET_MAKE | ||
854 | AWK | ||
855 | mkdir_p | ||
856 | MKDIR_P | ||
857 | INSTALL_STRIP_PROGRAM | ||
858 | STRIP | ||
859 | install_sh | ||
860 | MAKEINFO | ||
861 | AUTOHEADER | ||
862 | AUTOMAKE | ||
863 | AUTOCONF | ||
864 | ACLOCAL | ||
865 | VERSION | ||
866 | PACKAGE | ||
867 | CYGPATH_W | ||
868 | am__isrc | ||
869 | INSTALL_DATA | ||
870 | INSTALL_SCRIPT | ||
871 | INSTALL_PROGRAM | ||
872 | target_alias | ||
873 | host_alias | ||
874 | build_alias | ||
875 | LIBS | ||
876 | ECHO_T | ||
877 | ECHO_N | ||
878 | ECHO_C | ||
879 | DEFS | ||
880 | mandir | ||
881 | localedir | ||
882 | libdir | ||
883 | psdir | ||
884 | pdfdir | ||
885 | dvidir | ||
886 | htmldir | ||
887 | infodir | ||
888 | docdir | ||
889 | oldincludedir | ||
890 | includedir | ||
891 | localstatedir | ||
892 | sharedstatedir | ||
893 | sysconfdir | ||
894 | datadir | ||
895 | datarootdir | ||
896 | libexecdir | ||
897 | sbindir | ||
898 | bindir | ||
899 | program_transform_name | ||
900 | prefix | ||
901 | exec_prefix | ||
902 | PACKAGE_URL | ||
903 | PACKAGE_BUGREPORT | ||
904 | PACKAGE_STRING | ||
905 | PACKAGE_VERSION | ||
906 | PACKAGE_TARNAME | ||
907 | PACKAGE_NAME | ||
908 | PATH_SEPARATOR | ||
909 | SHELL' | ||
910 | ac_subst_files='' | ||
911 | ac_user_opts=' | ||
912 | enable_option_checking | ||
913 | enable_silent_rules | ||
914 | enable_shared | ||
915 | enable_static | ||
916 | with_pic | ||
917 | enable_fast_install | ||
918 | enable_dependency_tracking | ||
919 | with_gnu_ld | ||
920 | enable_libtool_lock | ||
921 | enable_amalgamation | ||
922 | enable_eet | ||
923 | enable_old_eet_file_format | ||
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 | enable_gnutls | ||
935 | with_libgcrypt_prefix | ||
936 | with_libgcrypt_exec_prefix | ||
937 | enable_new_gnutls_api | ||
938 | ' | ||
939 | ac_precious_vars='build_alias | ||
940 | host_alias | ||
941 | target_alias | ||
942 | CC | ||
943 | CFLAGS | ||
944 | LDFLAGS | ||
945 | LIBS | ||
946 | CPPFLAGS | ||
947 | CPP | ||
948 | PKG_CONFIG | ||
949 | PKG_CONFIG_PATH | ||
950 | PKG_CONFIG_LIBDIR | ||
951 | CHECK_CFLAGS | ||
952 | CHECK_LIBS | ||
953 | EVIL_CFLAGS | ||
954 | EVIL_LIBS | ||
955 | EINA_CFLAGS | ||
956 | EINA_LIBS | ||
957 | EXOTIC_CFLAGS | ||
958 | EXOTIC_LIBS | ||
959 | GNUTLS_CFLAGS | ||
960 | GNUTLS_LIBS | ||
961 | OPENSSL_CFLAGS | ||
962 | OPENSSL_LIBS' | ||
963 | |||
964 | |||
965 | # Initialize some variables set by options. | ||
966 | ac_init_help= | ||
967 | ac_init_version=false | ||
968 | ac_unrecognized_opts= | ||
969 | ac_unrecognized_sep= | ||
970 | # The variables have the same names as the options, with | ||
971 | # dashes changed to underlines. | ||
972 | cache_file=/dev/null | ||
973 | exec_prefix=NONE | ||
974 | no_create= | ||
975 | no_recursion= | ||
976 | prefix=NONE | ||
977 | program_prefix=NONE | ||
978 | program_suffix=NONE | ||
979 | program_transform_name=s,x,x, | ||
980 | silent= | ||
981 | site= | ||
982 | srcdir= | ||
983 | verbose= | ||
984 | x_includes=NONE | ||
985 | x_libraries=NONE | ||
986 | |||
987 | # Installation directory options. | ||
988 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
989 | # and all the variables that are supposed to be based on exec_prefix | ||
990 | # by default will actually change. | ||
991 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
992 | # (The list follows the same order as the GNU Coding Standards.) | ||
993 | bindir='${exec_prefix}/bin' | ||
994 | sbindir='${exec_prefix}/sbin' | ||
995 | libexecdir='${exec_prefix}/libexec' | ||
996 | datarootdir='${prefix}/share' | ||
997 | datadir='${datarootdir}' | ||
998 | sysconfdir='${prefix}/etc' | ||
999 | sharedstatedir='${prefix}/com' | ||
1000 | localstatedir='${prefix}/var' | ||
1001 | includedir='${prefix}/include' | ||
1002 | oldincludedir='/usr/include' | ||
1003 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
1004 | infodir='${datarootdir}/info' | ||
1005 | htmldir='${docdir}' | ||
1006 | dvidir='${docdir}' | ||
1007 | pdfdir='${docdir}' | ||
1008 | psdir='${docdir}' | ||
1009 | libdir='${exec_prefix}/lib' | ||
1010 | localedir='${datarootdir}/locale' | ||
1011 | mandir='${datarootdir}/man' | ||
1012 | |||
1013 | ac_prev= | ||
1014 | ac_dashdash= | ||
1015 | for ac_option | ||
1016 | do | ||
1017 | # If the previous option needs an argument, assign it. | ||
1018 | if test -n "$ac_prev"; then | ||
1019 | eval $ac_prev=\$ac_option | ||
1020 | ac_prev= | ||
1021 | continue | ||
1022 | fi | ||
1023 | |||
1024 | case $ac_option in | ||
1025 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
1026 | *=) ac_optarg= ;; | ||
1027 | *) ac_optarg=yes ;; | ||
1028 | esac | ||
1029 | |||
1030 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
1031 | |||
1032 | case $ac_dashdash$ac_option in | ||
1033 | --) | ||
1034 | ac_dashdash=yes ;; | ||
1035 | |||
1036 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
1037 | ac_prev=bindir ;; | ||
1038 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
1039 | bindir=$ac_optarg ;; | ||
1040 | |||
1041 | -build | --build | --buil | --bui | --bu) | ||
1042 | ac_prev=build_alias ;; | ||
1043 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
1044 | build_alias=$ac_optarg ;; | ||
1045 | |||
1046 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
1047 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
1048 | ac_prev=cache_file ;; | ||
1049 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
1050 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
1051 | cache_file=$ac_optarg ;; | ||
1052 | |||
1053 | --config-cache | -C) | ||
1054 | cache_file=config.cache ;; | ||
1055 | |||
1056 | -datadir | --datadir | --datadi | --datad) | ||
1057 | ac_prev=datadir ;; | ||
1058 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
1059 | datadir=$ac_optarg ;; | ||
1060 | |||
1061 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
1062 | | --dataroo | --dataro | --datar) | ||
1063 | ac_prev=datarootdir ;; | ||
1064 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
1065 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
1066 | datarootdir=$ac_optarg ;; | ||
1067 | |||
1068 | -disable-* | --disable-*) | ||
1069 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
1070 | # Reject names that are not valid shell variable names. | ||
1071 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1072 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1073 | ac_useropt_orig=$ac_useropt | ||
1074 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1075 | case $ac_user_opts in | ||
1076 | *" | ||
1077 | "enable_$ac_useropt" | ||
1078 | "*) ;; | ||
1079 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
1080 | ac_unrecognized_sep=', ';; | ||
1081 | esac | ||
1082 | eval enable_$ac_useropt=no ;; | ||
1083 | |||
1084 | -docdir | --docdir | --docdi | --doc | --do) | ||
1085 | ac_prev=docdir ;; | ||
1086 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
1087 | docdir=$ac_optarg ;; | ||
1088 | |||
1089 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
1090 | ac_prev=dvidir ;; | ||
1091 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
1092 | dvidir=$ac_optarg ;; | ||
1093 | |||
1094 | -enable-* | --enable-*) | ||
1095 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
1096 | # Reject names that are not valid shell variable names. | ||
1097 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1098 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1099 | ac_useropt_orig=$ac_useropt | ||
1100 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1101 | case $ac_user_opts in | ||
1102 | *" | ||
1103 | "enable_$ac_useropt" | ||
1104 | "*) ;; | ||
1105 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
1106 | ac_unrecognized_sep=', ';; | ||
1107 | esac | ||
1108 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
1109 | |||
1110 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
1111 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
1112 | | --exec | --exe | --ex) | ||
1113 | ac_prev=exec_prefix ;; | ||
1114 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
1115 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
1116 | | --exec=* | --exe=* | --ex=*) | ||
1117 | exec_prefix=$ac_optarg ;; | ||
1118 | |||
1119 | -gas | --gas | --ga | --g) | ||
1120 | # Obsolete; use --with-gas. | ||
1121 | with_gas=yes ;; | ||
1122 | |||
1123 | -help | --help | --hel | --he | -h) | ||
1124 | ac_init_help=long ;; | ||
1125 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
1126 | ac_init_help=recursive ;; | ||
1127 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
1128 | ac_init_help=short ;; | ||
1129 | |||
1130 | -host | --host | --hos | --ho) | ||
1131 | ac_prev=host_alias ;; | ||
1132 | -host=* | --host=* | --hos=* | --ho=*) | ||
1133 | host_alias=$ac_optarg ;; | ||
1134 | |||
1135 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
1136 | ac_prev=htmldir ;; | ||
1137 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
1138 | | --ht=*) | ||
1139 | htmldir=$ac_optarg ;; | ||
1140 | |||
1141 | -includedir | --includedir | --includedi | --included | --include \ | ||
1142 | | --includ | --inclu | --incl | --inc) | ||
1143 | ac_prev=includedir ;; | ||
1144 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
1145 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
1146 | includedir=$ac_optarg ;; | ||
1147 | |||
1148 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
1149 | ac_prev=infodir ;; | ||
1150 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
1151 | infodir=$ac_optarg ;; | ||
1152 | |||
1153 | -libdir | --libdir | --libdi | --libd) | ||
1154 | ac_prev=libdir ;; | ||
1155 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
1156 | libdir=$ac_optarg ;; | ||
1157 | |||
1158 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
1159 | | --libexe | --libex | --libe) | ||
1160 | ac_prev=libexecdir ;; | ||
1161 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1162 | | --libexe=* | --libex=* | --libe=*) | ||
1163 | libexecdir=$ac_optarg ;; | ||
1164 | |||
1165 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1166 | ac_prev=localedir ;; | ||
1167 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1168 | localedir=$ac_optarg ;; | ||
1169 | |||
1170 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1171 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1172 | ac_prev=localstatedir ;; | ||
1173 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1174 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1175 | localstatedir=$ac_optarg ;; | ||
1176 | |||
1177 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1178 | ac_prev=mandir ;; | ||
1179 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1180 | mandir=$ac_optarg ;; | ||
1181 | |||
1182 | -nfp | --nfp | --nf) | ||
1183 | # Obsolete; use --without-fp. | ||
1184 | with_fp=no ;; | ||
1185 | |||
1186 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1187 | | --no-cr | --no-c | -n) | ||
1188 | no_create=yes ;; | ||
1189 | |||
1190 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1191 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1192 | no_recursion=yes ;; | ||
1193 | |||
1194 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1195 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1196 | | --oldin | --oldi | --old | --ol | --o) | ||
1197 | ac_prev=oldincludedir ;; | ||
1198 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1199 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1200 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1201 | oldincludedir=$ac_optarg ;; | ||
1202 | |||
1203 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1204 | ac_prev=prefix ;; | ||
1205 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1206 | prefix=$ac_optarg ;; | ||
1207 | |||
1208 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1209 | | --program-pre | --program-pr | --program-p) | ||
1210 | ac_prev=program_prefix ;; | ||
1211 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1212 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1213 | program_prefix=$ac_optarg ;; | ||
1214 | |||
1215 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1216 | | --program-suf | --program-su | --program-s) | ||
1217 | ac_prev=program_suffix ;; | ||
1218 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1219 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1220 | program_suffix=$ac_optarg ;; | ||
1221 | |||
1222 | -program-transform-name | --program-transform-name \ | ||
1223 | | --program-transform-nam | --program-transform-na \ | ||
1224 | | --program-transform-n | --program-transform- \ | ||
1225 | | --program-transform | --program-transfor \ | ||
1226 | | --program-transfo | --program-transf \ | ||
1227 | | --program-trans | --program-tran \ | ||
1228 | | --progr-tra | --program-tr | --program-t) | ||
1229 | ac_prev=program_transform_name ;; | ||
1230 | -program-transform-name=* | --program-transform-name=* \ | ||
1231 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1232 | | --program-transform-n=* | --program-transform-=* \ | ||
1233 | | --program-transform=* | --program-transfor=* \ | ||
1234 | | --program-transfo=* | --program-transf=* \ | ||
1235 | | --program-trans=* | --program-tran=* \ | ||
1236 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1237 | program_transform_name=$ac_optarg ;; | ||
1238 | |||
1239 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1240 | ac_prev=pdfdir ;; | ||
1241 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1242 | pdfdir=$ac_optarg ;; | ||
1243 | |||
1244 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1245 | ac_prev=psdir ;; | ||
1246 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1247 | psdir=$ac_optarg ;; | ||
1248 | |||
1249 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1250 | | -silent | --silent | --silen | --sile | --sil) | ||
1251 | silent=yes ;; | ||
1252 | |||
1253 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1254 | ac_prev=sbindir ;; | ||
1255 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1256 | | --sbi=* | --sb=*) | ||
1257 | sbindir=$ac_optarg ;; | ||
1258 | |||
1259 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1260 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1261 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1262 | | --sha | --sh) | ||
1263 | ac_prev=sharedstatedir ;; | ||
1264 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1265 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1266 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1267 | | --sha=* | --sh=*) | ||
1268 | sharedstatedir=$ac_optarg ;; | ||
1269 | |||
1270 | -site | --site | --sit) | ||
1271 | ac_prev=site ;; | ||
1272 | -site=* | --site=* | --sit=*) | ||
1273 | site=$ac_optarg ;; | ||
1274 | |||
1275 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1276 | ac_prev=srcdir ;; | ||
1277 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1278 | srcdir=$ac_optarg ;; | ||
1279 | |||
1280 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1281 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1282 | ac_prev=sysconfdir ;; | ||
1283 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1284 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1285 | sysconfdir=$ac_optarg ;; | ||
1286 | |||
1287 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1288 | ac_prev=target_alias ;; | ||
1289 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1290 | target_alias=$ac_optarg ;; | ||
1291 | |||
1292 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1293 | verbose=yes ;; | ||
1294 | |||
1295 | -version | --version | --versio | --versi | --vers | -V) | ||
1296 | ac_init_version=: ;; | ||
1297 | |||
1298 | -with-* | --with-*) | ||
1299 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1300 | # Reject names that are not valid shell variable names. | ||
1301 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1302 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1303 | ac_useropt_orig=$ac_useropt | ||
1304 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1305 | case $ac_user_opts in | ||
1306 | *" | ||
1307 | "with_$ac_useropt" | ||
1308 | "*) ;; | ||
1309 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1310 | ac_unrecognized_sep=', ';; | ||
1311 | esac | ||
1312 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1313 | |||
1314 | -without-* | --without-*) | ||
1315 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1316 | # Reject names that are not valid shell variable names. | ||
1317 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1318 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1319 | ac_useropt_orig=$ac_useropt | ||
1320 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1321 | case $ac_user_opts in | ||
1322 | *" | ||
1323 | "with_$ac_useropt" | ||
1324 | "*) ;; | ||
1325 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1326 | ac_unrecognized_sep=', ';; | ||
1327 | esac | ||
1328 | eval with_$ac_useropt=no ;; | ||
1329 | |||
1330 | --x) | ||
1331 | # Obsolete; use --with-x. | ||
1332 | with_x=yes ;; | ||
1333 | |||
1334 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1335 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1336 | ac_prev=x_includes ;; | ||
1337 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1338 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1339 | x_includes=$ac_optarg ;; | ||
1340 | |||
1341 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1342 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1343 | ac_prev=x_libraries ;; | ||
1344 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1345 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1346 | x_libraries=$ac_optarg ;; | ||
1347 | |||
1348 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1349 | Try \`$0 --help' for more information" | ||
1350 | ;; | ||
1351 | |||
1352 | *=*) | ||
1353 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1354 | # Reject names that are not valid shell variable names. | ||
1355 | case $ac_envvar in #( | ||
1356 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1357 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1358 | esac | ||
1359 | eval $ac_envvar=\$ac_optarg | ||
1360 | export $ac_envvar ;; | ||
1361 | |||
1362 | *) | ||
1363 | # FIXME: should be removed in autoconf 3.0. | ||
1364 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1365 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1366 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1367 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1368 | ;; | ||
1369 | |||
1370 | esac | ||
1371 | done | ||
1372 | |||
1373 | if test -n "$ac_prev"; then | ||
1374 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1375 | as_fn_error $? "missing argument to $ac_option" | ||
1376 | fi | ||
1377 | |||
1378 | if test -n "$ac_unrecognized_opts"; then | ||
1379 | case $enable_option_checking in | ||
1380 | no) ;; | ||
1381 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1382 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1383 | esac | ||
1384 | fi | ||
1385 | |||
1386 | # Check all directory arguments for consistency. | ||
1387 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1388 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1389 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1390 | libdir localedir mandir | ||
1391 | do | ||
1392 | eval ac_val=\$$ac_var | ||
1393 | # Remove trailing slashes. | ||
1394 | case $ac_val in | ||
1395 | */ ) | ||
1396 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1397 | eval $ac_var=\$ac_val;; | ||
1398 | esac | ||
1399 | # Be sure to have absolute directory names. | ||
1400 | case $ac_val in | ||
1401 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1402 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1403 | esac | ||
1404 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1405 | done | ||
1406 | |||
1407 | # There might be people who depend on the old broken behavior: `$host' | ||
1408 | # used to hold the argument of --host etc. | ||
1409 | # FIXME: To remove some day. | ||
1410 | build=$build_alias | ||
1411 | host=$host_alias | ||
1412 | target=$target_alias | ||
1413 | |||
1414 | # FIXME: To remove some day. | ||
1415 | if test "x$host_alias" != x; then | ||
1416 | if test "x$build_alias" = x; then | ||
1417 | cross_compiling=maybe | ||
1418 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | ||
1419 | If a cross compiler is detected then cross compile mode will be used" >&2 | ||
1420 | elif test "x$build_alias" != "x$host_alias"; then | ||
1421 | cross_compiling=yes | ||
1422 | fi | ||
1423 | fi | ||
1424 | |||
1425 | ac_tool_prefix= | ||
1426 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1427 | |||
1428 | test "$silent" = yes && exec 6>/dev/null | ||
1429 | |||
1430 | |||
1431 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1432 | ac_ls_di=`ls -di .` && | ||
1433 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1434 | as_fn_error $? "working directory cannot be determined" | ||
1435 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1436 | as_fn_error $? "pwd does not report name of working directory" | ||
1437 | |||
1438 | |||
1439 | # Find the source files, if location was not specified. | ||
1440 | if test -z "$srcdir"; then | ||
1441 | ac_srcdir_defaulted=yes | ||
1442 | # Try the directory containing this script, then the parent directory. | ||
1443 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1444 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1445 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1446 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1447 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1448 | $as_echo X"$as_myself" | | ||
1449 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1450 | s//\1/ | ||
1451 | q | ||
1452 | } | ||
1453 | /^X\(\/\/\)[^/].*/{ | ||
1454 | s//\1/ | ||
1455 | q | ||
1456 | } | ||
1457 | /^X\(\/\/\)$/{ | ||
1458 | s//\1/ | ||
1459 | q | ||
1460 | } | ||
1461 | /^X\(\/\).*/{ | ||
1462 | s//\1/ | ||
1463 | q | ||
1464 | } | ||
1465 | s/.*/./; q'` | ||
1466 | srcdir=$ac_confdir | ||
1467 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1468 | srcdir=.. | ||
1469 | fi | ||
1470 | else | ||
1471 | ac_srcdir_defaulted=no | ||
1472 | fi | ||
1473 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1474 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1475 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1476 | fi | ||
1477 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1478 | ac_abs_confdir=`( | ||
1479 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1480 | pwd)` | ||
1481 | # When building in place, set srcdir=. | ||
1482 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1483 | srcdir=. | ||
1484 | fi | ||
1485 | # Remove unnecessary trailing slashes from srcdir. | ||
1486 | # Double slashes in file names in object file debugging info | ||
1487 | # mess up M-x gdb in Emacs. | ||
1488 | case $srcdir in | ||
1489 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1490 | esac | ||
1491 | for ac_var in $ac_precious_vars; do | ||
1492 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1493 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1494 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1495 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1496 | done | ||
1497 | |||
1498 | # | ||
1499 | # Report the --help message. | ||
1500 | # | ||
1501 | if test "$ac_init_help" = "long"; then | ||
1502 | # Omit some internal or obsolete options to make the list less imposing. | ||
1503 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1504 | cat <<_ACEOF | ||
1505 | \`configure' configures eet 1.6.0-alpha to adapt to many kinds of systems. | ||
1506 | |||
1507 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1508 | |||
1509 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1510 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1511 | |||
1512 | Defaults for the options are specified in brackets. | ||
1513 | |||
1514 | Configuration: | ||
1515 | -h, --help display this help and exit | ||
1516 | --help=short display options specific to this package | ||
1517 | --help=recursive display the short help of all the included packages | ||
1518 | -V, --version display version information and exit | ||
1519 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1520 | --cache-file=FILE cache test results in FILE [disabled] | ||
1521 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1522 | -n, --no-create do not create output files | ||
1523 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1524 | |||
1525 | Installation directories: | ||
1526 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1527 | [$ac_default_prefix] | ||
1528 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1529 | [PREFIX] | ||
1530 | |||
1531 | By default, \`make install' will install all the files in | ||
1532 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1533 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1534 | for instance \`--prefix=\$HOME'. | ||
1535 | |||
1536 | For better control, use the options below. | ||
1537 | |||
1538 | Fine tuning of the installation directories: | ||
1539 | --bindir=DIR user executables [EPREFIX/bin] | ||
1540 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1541 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1542 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1543 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1544 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1545 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1546 | --includedir=DIR C header files [PREFIX/include] | ||
1547 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1548 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1549 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1550 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1551 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1552 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1553 | --docdir=DIR documentation root [DATAROOTDIR/doc/eet] | ||
1554 | --htmldir=DIR html documentation [DOCDIR] | ||
1555 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1556 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1557 | --psdir=DIR ps documentation [DOCDIR] | ||
1558 | _ACEOF | ||
1559 | |||
1560 | cat <<\_ACEOF | ||
1561 | |||
1562 | Program names: | ||
1563 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1564 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1565 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1566 | |||
1567 | System types: | ||
1568 | --build=BUILD configure for building on BUILD [guessed] | ||
1569 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1570 | _ACEOF | ||
1571 | fi | ||
1572 | |||
1573 | if test -n "$ac_init_help"; then | ||
1574 | case $ac_init_help in | ||
1575 | short | recursive ) echo "Configuration of eet 1.6.0-alpha:";; | ||
1576 | esac | ||
1577 | cat <<\_ACEOF | ||
1578 | |||
1579 | Optional Features: | ||
1580 | --disable-option-checking ignore unrecognized --enable/--with options | ||
1581 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1582 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1583 | --enable-silent-rules less verbose build output (undo: `make V=1') | ||
1584 | --disable-silent-rules verbose build output (undo: `make V=0') | ||
1585 | --enable-shared[=PKGS] build shared libraries [default=yes] | ||
1586 | --enable-static[=PKGS] build static libraries [default=yes] | ||
1587 | --enable-fast-install[=PKGS] | ||
1588 | optimize for fast installation [default=yes] | ||
1589 | --disable-dependency-tracking speeds up one-time build | ||
1590 | --enable-dependency-tracking do not reject slow dependency extractors | ||
1591 | --disable-libtool-lock avoid locking (might break parallel builds) | ||
1592 | --enable-amalgamation enable generation of one single file with all source | ||
1593 | code in it, helps compiler optimizations. | ||
1594 | --disable-eet disable building of eet | ||
1595 | --disable-old-eet-file-format | ||
1596 | disable old eet file format support. | ||
1597 | [[default=enabled]] | ||
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 | --disable-gnutls disable gnutls eet support | ||
1611 | --disable-new-gnutls-api | ||
1612 | enable use of gnutls_x509_crt_verify_hash. | ||
1613 | [[default=enable]] | ||
1614 | |||
1615 | Optional Packages: | ||
1616 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1617 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1618 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
1619 | both] | ||
1620 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
1621 | --with-doxygen=FILE doxygen program to use [default=doxygen] | ||
1622 | --with-libgcrypt-prefix=PFX Prefix where libgcrypt is installed (optional) | ||
1623 | --with-libgcrypt-exec-prefix=PFX Exec prefix where libgcrypt is installed (optional) | ||
1624 | |||
1625 | Some influential environment variables: | ||
1626 | CC C compiler command | ||
1627 | CFLAGS C compiler flags | ||
1628 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1629 | nonstandard directory <lib dir> | ||
1630 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1631 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
1632 | you have headers in a nonstandard directory <include dir> | ||
1633 | CPP C preprocessor | ||
1634 | PKG_CONFIG path to pkg-config utility | ||
1635 | PKG_CONFIG_PATH | ||
1636 | directories to add to pkg-config's search path | ||
1637 | PKG_CONFIG_LIBDIR | ||
1638 | path overriding pkg-config's built-in search path | ||
1639 | CHECK_CFLAGS | ||
1640 | C compiler flags for CHECK, overriding pkg-config | ||
1641 | CHECK_LIBS linker flags for CHECK, overriding pkg-config | ||
1642 | EVIL_CFLAGS C compiler flags for EVIL, overriding pkg-config | ||
1643 | EVIL_LIBS linker flags for EVIL, overriding pkg-config | ||
1644 | EINA_CFLAGS C compiler flags for EINA, overriding pkg-config | ||
1645 | EINA_LIBS linker flags for EINA, overriding pkg-config | ||
1646 | EXOTIC_CFLAGS | ||
1647 | C compiler flags for EXOTIC, overriding pkg-config | ||
1648 | EXOTIC_LIBS linker flags for EXOTIC, overriding pkg-config | ||
1649 | GNUTLS_CFLAGS | ||
1650 | C compiler flags for GNUTLS, overriding pkg-config | ||
1651 | GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config | ||
1652 | OPENSSL_CFLAGS | ||
1653 | C compiler flags for OPENSSL, overriding pkg-config | ||
1654 | OPENSSL_LIBS | ||
1655 | linker flags for OPENSSL, overriding pkg-config | ||
1656 | |||
1657 | Use these variables to override the choices made by `configure' or to help | ||
1658 | it to find libraries and programs with nonstandard names/locations. | ||
1659 | |||
1660 | Report bugs to <enlightenment-devel@lists.sourceforge.net>. | ||
1661 | _ACEOF | ||
1662 | ac_status=$? | ||
1663 | fi | ||
1664 | |||
1665 | if test "$ac_init_help" = "recursive"; then | ||
1666 | # If there are subdirs, report their specific --help. | ||
1667 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1668 | test -d "$ac_dir" || | ||
1669 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
1670 | continue | ||
1671 | ac_builddir=. | ||
1672 | |||
1673 | case "$ac_dir" in | ||
1674 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1675 | *) | ||
1676 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
1677 | # A ".." for each directory in $ac_dir_suffix. | ||
1678 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
1679 | case $ac_top_builddir_sub in | ||
1680 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1681 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1682 | esac ;; | ||
1683 | esac | ||
1684 | ac_abs_top_builddir=$ac_pwd | ||
1685 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1686 | # for backward compatibility: | ||
1687 | ac_top_builddir=$ac_top_build_prefix | ||
1688 | |||
1689 | case $srcdir in | ||
1690 | .) # We are building in place. | ||
1691 | ac_srcdir=. | ||
1692 | ac_top_srcdir=$ac_top_builddir_sub | ||
1693 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1694 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1695 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1696 | ac_top_srcdir=$srcdir | ||
1697 | ac_abs_top_srcdir=$srcdir ;; | ||
1698 | *) # Relative name. | ||
1699 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1700 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1701 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1702 | esac | ||
1703 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1704 | |||
1705 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1706 | # Check for guested configure. | ||
1707 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1708 | echo && | ||
1709 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1710 | elif test -f "$ac_srcdir/configure"; then | ||
1711 | echo && | ||
1712 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1713 | else | ||
1714 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1715 | fi || ac_status=$? | ||
1716 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1717 | done | ||
1718 | fi | ||
1719 | |||
1720 | test -n "$ac_init_help" && exit $ac_status | ||
1721 | if $ac_init_version; then | ||
1722 | cat <<\_ACEOF | ||
1723 | eet configure 1.6.0-alpha | ||
1724 | generated by GNU Autoconf 2.67 | ||
1725 | |||
1726 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
1727 | This configure script is free software; the Free Software Foundation | ||
1728 | gives unlimited permission to copy, distribute and modify it. | ||
1729 | _ACEOF | ||
1730 | exit | ||
1731 | fi | ||
1732 | |||
1733 | ## ------------------------ ## | ||
1734 | ## Autoconf initialization. ## | ||
1735 | ## ------------------------ ## | ||
1736 | |||
1737 | # ac_fn_c_try_compile LINENO | ||
1738 | # -------------------------- | ||
1739 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
1740 | ac_fn_c_try_compile () | ||
1741 | { | ||
1742 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1743 | rm -f conftest.$ac_objext | ||
1744 | if { { ac_try="$ac_compile" | ||
1745 | case "(($ac_try" in | ||
1746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1747 | *) ac_try_echo=$ac_try;; | ||
1748 | esac | ||
1749 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1750 | $as_echo "$ac_try_echo"; } >&5 | ||
1751 | (eval "$ac_compile") 2>conftest.err | ||
1752 | ac_status=$? | ||
1753 | if test -s conftest.err; then | ||
1754 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1755 | cat conftest.er1 >&5 | ||
1756 | mv -f conftest.er1 conftest.err | ||
1757 | fi | ||
1758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1759 | test $ac_status = 0; } && { | ||
1760 | test -z "$ac_c_werror_flag" || | ||
1761 | test ! -s conftest.err | ||
1762 | } && test -s conftest.$ac_objext; then : | ||
1763 | ac_retval=0 | ||
1764 | else | ||
1765 | $as_echo "$as_me: failed program was:" >&5 | ||
1766 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1767 | |||
1768 | ac_retval=1 | ||
1769 | fi | ||
1770 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1771 | as_fn_set_status $ac_retval | ||
1772 | |||
1773 | } # ac_fn_c_try_compile | ||
1774 | |||
1775 | # ac_fn_c_try_link LINENO | ||
1776 | # ----------------------- | ||
1777 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
1778 | ac_fn_c_try_link () | ||
1779 | { | ||
1780 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1781 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
1782 | if { { ac_try="$ac_link" | ||
1783 | case "(($ac_try" in | ||
1784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1785 | *) ac_try_echo=$ac_try;; | ||
1786 | esac | ||
1787 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1788 | $as_echo "$ac_try_echo"; } >&5 | ||
1789 | (eval "$ac_link") 2>conftest.err | ||
1790 | ac_status=$? | ||
1791 | if test -s conftest.err; then | ||
1792 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1793 | cat conftest.er1 >&5 | ||
1794 | mv -f conftest.er1 conftest.err | ||
1795 | fi | ||
1796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1797 | test $ac_status = 0; } && { | ||
1798 | test -z "$ac_c_werror_flag" || | ||
1799 | test ! -s conftest.err | ||
1800 | } && test -s conftest$ac_exeext && { | ||
1801 | test "$cross_compiling" = yes || | ||
1802 | $as_test_x conftest$ac_exeext | ||
1803 | }; then : | ||
1804 | ac_retval=0 | ||
1805 | else | ||
1806 | $as_echo "$as_me: failed program was:" >&5 | ||
1807 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1808 | |||
1809 | ac_retval=1 | ||
1810 | fi | ||
1811 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
1812 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
1813 | # interfere with the next link command; also delete a directory that is | ||
1814 | # left behind by Apple's compiler. We do this before executing the actions. | ||
1815 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1816 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1817 | as_fn_set_status $ac_retval | ||
1818 | |||
1819 | } # ac_fn_c_try_link | ||
1820 | |||
1821 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
1822 | # ------------------------------------------------------- | ||
1823 | # Tests whether HEADER exists and can be compiled using the include files in | ||
1824 | # INCLUDES, setting the cache variable VAR accordingly. | ||
1825 | ac_fn_c_check_header_compile () | ||
1826 | { | ||
1827 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1829 | $as_echo_n "checking for $2... " >&6; } | ||
1830 | if eval "test \"\${$3+set}\"" = set; then : | ||
1831 | $as_echo_n "(cached) " >&6 | ||
1832 | else | ||
1833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1834 | /* end confdefs.h. */ | ||
1835 | $4 | ||
1836 | #include <$2> | ||
1837 | _ACEOF | ||
1838 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1839 | eval "$3=yes" | ||
1840 | else | ||
1841 | eval "$3=no" | ||
1842 | fi | ||
1843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1844 | fi | ||
1845 | eval ac_res=\$$3 | ||
1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1847 | $as_echo "$ac_res" >&6; } | ||
1848 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1849 | |||
1850 | } # ac_fn_c_check_header_compile | ||
1851 | |||
1852 | # ac_fn_c_try_cpp LINENO | ||
1853 | # ---------------------- | ||
1854 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
1855 | ac_fn_c_try_cpp () | ||
1856 | { | ||
1857 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1858 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
1859 | case "(($ac_try" in | ||
1860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1861 | *) ac_try_echo=$ac_try;; | ||
1862 | esac | ||
1863 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1864 | $as_echo "$ac_try_echo"; } >&5 | ||
1865 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
1866 | ac_status=$? | ||
1867 | if test -s conftest.err; then | ||
1868 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1869 | cat conftest.er1 >&5 | ||
1870 | mv -f conftest.er1 conftest.err | ||
1871 | fi | ||
1872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1873 | test $ac_status = 0; } > conftest.i && { | ||
1874 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
1875 | test ! -s conftest.err | ||
1876 | }; then : | ||
1877 | ac_retval=0 | ||
1878 | else | ||
1879 | $as_echo "$as_me: failed program was:" >&5 | ||
1880 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1881 | |||
1882 | ac_retval=1 | ||
1883 | fi | ||
1884 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1885 | as_fn_set_status $ac_retval | ||
1886 | |||
1887 | } # ac_fn_c_try_cpp | ||
1888 | |||
1889 | # ac_fn_c_try_run LINENO | ||
1890 | # ---------------------- | ||
1891 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
1892 | # that executables *can* be run. | ||
1893 | ac_fn_c_try_run () | ||
1894 | { | ||
1895 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1896 | if { { ac_try="$ac_link" | ||
1897 | case "(($ac_try" in | ||
1898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1899 | *) ac_try_echo=$ac_try;; | ||
1900 | esac | ||
1901 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1902 | $as_echo "$ac_try_echo"; } >&5 | ||
1903 | (eval "$ac_link") 2>&5 | ||
1904 | ac_status=$? | ||
1905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1906 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
1907 | { { case "(($ac_try" in | ||
1908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1909 | *) ac_try_echo=$ac_try;; | ||
1910 | esac | ||
1911 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1912 | $as_echo "$ac_try_echo"; } >&5 | ||
1913 | (eval "$ac_try") 2>&5 | ||
1914 | ac_status=$? | ||
1915 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1916 | test $ac_status = 0; }; }; then : | ||
1917 | ac_retval=0 | ||
1918 | else | ||
1919 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
1920 | $as_echo "$as_me: failed program was:" >&5 | ||
1921 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1922 | |||
1923 | ac_retval=$ac_status | ||
1924 | fi | ||
1925 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1926 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1927 | as_fn_set_status $ac_retval | ||
1928 | |||
1929 | } # ac_fn_c_try_run | ||
1930 | |||
1931 | # ac_fn_c_check_func LINENO FUNC VAR | ||
1932 | # ---------------------------------- | ||
1933 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
1934 | ac_fn_c_check_func () | ||
1935 | { | ||
1936 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1938 | $as_echo_n "checking for $2... " >&6; } | ||
1939 | if eval "test \"\${$3+set}\"" = set; then : | ||
1940 | $as_echo_n "(cached) " >&6 | ||
1941 | else | ||
1942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1943 | /* end confdefs.h. */ | ||
1944 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
1945 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
1946 | #define $2 innocuous_$2 | ||
1947 | |||
1948 | /* System header to define __stub macros and hopefully few prototypes, | ||
1949 | which can conflict with char $2 (); below. | ||
1950 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
1951 | <limits.h> exists even on freestanding compilers. */ | ||
1952 | |||
1953 | #ifdef __STDC__ | ||
1954 | # include <limits.h> | ||
1955 | #else | ||
1956 | # include <assert.h> | ||
1957 | #endif | ||
1958 | |||
1959 | #undef $2 | ||
1960 | |||
1961 | /* Override any GCC internal prototype to avoid an error. | ||
1962 | Use char because int might match the return type of a GCC | ||
1963 | builtin and then its argument prototype would still apply. */ | ||
1964 | #ifdef __cplusplus | ||
1965 | extern "C" | ||
1966 | #endif | ||
1967 | char $2 (); | ||
1968 | /* The GNU C library defines this for functions which it implements | ||
1969 | to always fail with ENOSYS. Some functions are actually named | ||
1970 | something starting with __ and the normal name is an alias. */ | ||
1971 | #if defined __stub_$2 || defined __stub___$2 | ||
1972 | choke me | ||
1973 | #endif | ||
1974 | |||
1975 | int | ||
1976 | main () | ||
1977 | { | ||
1978 | return $2 (); | ||
1979 | ; | ||
1980 | return 0; | ||
1981 | } | ||
1982 | _ACEOF | ||
1983 | if ac_fn_c_try_link "$LINENO"; then : | ||
1984 | eval "$3=yes" | ||
1985 | else | ||
1986 | eval "$3=no" | ||
1987 | fi | ||
1988 | rm -f core conftest.err conftest.$ac_objext \ | ||
1989 | conftest$ac_exeext conftest.$ac_ext | ||
1990 | fi | ||
1991 | eval ac_res=\$$3 | ||
1992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1993 | $as_echo "$ac_res" >&6; } | ||
1994 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1995 | |||
1996 | } # ac_fn_c_check_func | ||
1997 | |||
1998 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
1999 | # ------------------------------------------------------- | ||
2000 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
2001 | # the include files in INCLUDES and setting the cache variable VAR | ||
2002 | # accordingly. | ||
2003 | ac_fn_c_check_header_mongrel () | ||
2004 | { | ||
2005 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2006 | if eval "test \"\${$3+set}\"" = set; then : | ||
2007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2008 | $as_echo_n "checking for $2... " >&6; } | ||
2009 | if eval "test \"\${$3+set}\"" = set; then : | ||
2010 | $as_echo_n "(cached) " >&6 | ||
2011 | fi | ||
2012 | eval ac_res=\$$3 | ||
2013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2014 | $as_echo "$ac_res" >&6; } | ||
2015 | else | ||
2016 | # Is the header compilable? | ||
2017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
2018 | $as_echo_n "checking $2 usability... " >&6; } | ||
2019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2020 | /* end confdefs.h. */ | ||
2021 | $4 | ||
2022 | #include <$2> | ||
2023 | _ACEOF | ||
2024 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2025 | ac_header_compiler=yes | ||
2026 | else | ||
2027 | ac_header_compiler=no | ||
2028 | fi | ||
2029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
2031 | $as_echo "$ac_header_compiler" >&6; } | ||
2032 | |||
2033 | # Is the header present? | ||
2034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
2035 | $as_echo_n "checking $2 presence... " >&6; } | ||
2036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2037 | /* end confdefs.h. */ | ||
2038 | #include <$2> | ||
2039 | _ACEOF | ||
2040 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
2041 | ac_header_preproc=yes | ||
2042 | else | ||
2043 | ac_header_preproc=no | ||
2044 | fi | ||
2045 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
2046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
2047 | $as_echo "$ac_header_preproc" >&6; } | ||
2048 | |||
2049 | # So? What about this header? | ||
2050 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
2051 | yes:no: ) | ||
2052 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
2053 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2055 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2056 | ;; | ||
2057 | no:yes:* ) | ||
2058 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
2059 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
2060 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
2061 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
2062 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
2063 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
2064 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
2065 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
2066 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2067 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2068 | ( $as_echo "## -------------------------------------------------------- ## | ||
2069 | ## Report this to enlightenment-devel@lists.sourceforge.net ## | ||
2070 | ## -------------------------------------------------------- ##" | ||
2071 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
2072 | ;; | ||
2073 | esac | ||
2074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2075 | $as_echo_n "checking for $2... " >&6; } | ||
2076 | if eval "test \"\${$3+set}\"" = set; then : | ||
2077 | $as_echo_n "(cached) " >&6 | ||
2078 | else | ||
2079 | eval "$3=\$ac_header_compiler" | ||
2080 | fi | ||
2081 | eval ac_res=\$$3 | ||
2082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2083 | $as_echo "$ac_res" >&6; } | ||
2084 | fi | ||
2085 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2086 | |||
2087 | } # ac_fn_c_check_header_mongrel | ||
2088 | cat >config.log <<_ACEOF | ||
2089 | This file contains any messages produced by compilers while | ||
2090 | running configure, to aid debugging if configure makes a mistake. | ||
2091 | |||
2092 | It was created by eet $as_me 1.6.0-alpha, which was | ||
2093 | generated by GNU Autoconf 2.67. Invocation command line was | ||
2094 | |||
2095 | $ $0 $@ | ||
2096 | |||
2097 | _ACEOF | ||
2098 | exec 5>>config.log | ||
2099 | { | ||
2100 | cat <<_ASUNAME | ||
2101 | ## --------- ## | ||
2102 | ## Platform. ## | ||
2103 | ## --------- ## | ||
2104 | |||
2105 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
2106 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
2107 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
2108 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
2109 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
2110 | |||
2111 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
2112 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
2113 | |||
2114 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
2115 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
2116 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
2117 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
2118 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
2119 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
2120 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
2121 | |||
2122 | _ASUNAME | ||
2123 | |||
2124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2125 | for as_dir in $PATH | ||
2126 | do | ||
2127 | IFS=$as_save_IFS | ||
2128 | test -z "$as_dir" && as_dir=. | ||
2129 | $as_echo "PATH: $as_dir" | ||
2130 | done | ||
2131 | IFS=$as_save_IFS | ||
2132 | |||
2133 | } >&5 | ||
2134 | |||
2135 | cat >&5 <<_ACEOF | ||
2136 | |||
2137 | |||
2138 | ## ----------- ## | ||
2139 | ## Core tests. ## | ||
2140 | ## ----------- ## | ||
2141 | |||
2142 | _ACEOF | ||
2143 | |||
2144 | |||
2145 | # Keep a trace of the command line. | ||
2146 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
2147 | # Strip out --silent because we don't want to record it for future runs. | ||
2148 | # Also quote any args containing shell meta-characters. | ||
2149 | # Make two passes to allow for proper duplicate-argument suppression. | ||
2150 | ac_configure_args= | ||
2151 | ac_configure_args0= | ||
2152 | ac_configure_args1= | ||
2153 | ac_must_keep_next=false | ||
2154 | for ac_pass in 1 2 | ||
2155 | do | ||
2156 | for ac_arg | ||
2157 | do | ||
2158 | case $ac_arg in | ||
2159 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
2160 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
2161 | | -silent | --silent | --silen | --sile | --sil) | ||
2162 | continue ;; | ||
2163 | *\'*) | ||
2164 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2165 | esac | ||
2166 | case $ac_pass in | ||
2167 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
2168 | 2) | ||
2169 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
2170 | if test $ac_must_keep_next = true; then | ||
2171 | ac_must_keep_next=false # Got value, back to normal. | ||
2172 | else | ||
2173 | case $ac_arg in | ||
2174 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
2175 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
2176 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
2177 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
2178 | case "$ac_configure_args0 " in | ||
2179 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
2180 | esac | ||
2181 | ;; | ||
2182 | -* ) ac_must_keep_next=true ;; | ||
2183 | esac | ||
2184 | fi | ||
2185 | as_fn_append ac_configure_args " '$ac_arg'" | ||
2186 | ;; | ||
2187 | esac | ||
2188 | done | ||
2189 | done | ||
2190 | { ac_configure_args0=; unset ac_configure_args0;} | ||
2191 | { ac_configure_args1=; unset ac_configure_args1;} | ||
2192 | |||
2193 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
2194 | # config.log. We remove comments because anyway the quotes in there | ||
2195 | # would cause problems or look ugly. | ||
2196 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
2197 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
2198 | trap 'exit_status=$? | ||
2199 | # Save into config.log some information that might help in debugging. | ||
2200 | { | ||
2201 | echo | ||
2202 | |||
2203 | $as_echo "## ---------------- ## | ||
2204 | ## Cache variables. ## | ||
2205 | ## ---------------- ##" | ||
2206 | echo | ||
2207 | # The following way of writing the cache mishandles newlines in values, | ||
2208 | ( | ||
2209 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
2210 | eval ac_val=\$$ac_var | ||
2211 | case $ac_val in #( | ||
2212 | *${as_nl}*) | ||
2213 | case $ac_var in #( | ||
2214 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
2215 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
2216 | esac | ||
2217 | case $ac_var in #( | ||
2218 | _ | IFS | as_nl) ;; #( | ||
2219 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
2220 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
2221 | esac ;; | ||
2222 | esac | ||
2223 | done | ||
2224 | (set) 2>&1 | | ||
2225 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
2226 | *${as_nl}ac_space=\ *) | ||
2227 | sed -n \ | ||
2228 | "s/'\''/'\''\\\\'\'''\''/g; | ||
2229 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
2230 | ;; #( | ||
2231 | *) | ||
2232 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
2233 | ;; | ||
2234 | esac | | ||
2235 | sort | ||
2236 | ) | ||
2237 | echo | ||
2238 | |||
2239 | $as_echo "## ----------------- ## | ||
2240 | ## Output variables. ## | ||
2241 | ## ----------------- ##" | ||
2242 | echo | ||
2243 | for ac_var in $ac_subst_vars | ||
2244 | do | ||
2245 | eval ac_val=\$$ac_var | ||
2246 | case $ac_val in | ||
2247 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2248 | esac | ||
2249 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2250 | done | sort | ||
2251 | echo | ||
2252 | |||
2253 | if test -n "$ac_subst_files"; then | ||
2254 | $as_echo "## ------------------- ## | ||
2255 | ## File substitutions. ## | ||
2256 | ## ------------------- ##" | ||
2257 | echo | ||
2258 | for ac_var in $ac_subst_files | ||
2259 | do | ||
2260 | eval ac_val=\$$ac_var | ||
2261 | case $ac_val in | ||
2262 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2263 | esac | ||
2264 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2265 | done | sort | ||
2266 | echo | ||
2267 | fi | ||
2268 | |||
2269 | if test -s confdefs.h; then | ||
2270 | $as_echo "## ----------- ## | ||
2271 | ## confdefs.h. ## | ||
2272 | ## ----------- ##" | ||
2273 | echo | ||
2274 | cat confdefs.h | ||
2275 | echo | ||
2276 | fi | ||
2277 | test "$ac_signal" != 0 && | ||
2278 | $as_echo "$as_me: caught signal $ac_signal" | ||
2279 | $as_echo "$as_me: exit $exit_status" | ||
2280 | } >&5 | ||
2281 | rm -f core *.core core.conftest.* && | ||
2282 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
2283 | exit $exit_status | ||
2284 | ' 0 | ||
2285 | for ac_signal in 1 2 13 15; do | ||
2286 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
2287 | done | ||
2288 | ac_signal=0 | ||
2289 | |||
2290 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
2291 | rm -f -r conftest* confdefs.h | ||
2292 | |||
2293 | $as_echo "/* confdefs.h */" > confdefs.h | ||
2294 | |||
2295 | # Predefined preprocessor variables. | ||
2296 | |||
2297 | cat >>confdefs.h <<_ACEOF | ||
2298 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
2299 | _ACEOF | ||
2300 | |||
2301 | cat >>confdefs.h <<_ACEOF | ||
2302 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
2303 | _ACEOF | ||
2304 | |||
2305 | cat >>confdefs.h <<_ACEOF | ||
2306 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
2307 | _ACEOF | ||
2308 | |||
2309 | cat >>confdefs.h <<_ACEOF | ||
2310 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
2311 | _ACEOF | ||
2312 | |||
2313 | cat >>confdefs.h <<_ACEOF | ||
2314 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
2315 | _ACEOF | ||
2316 | |||
2317 | cat >>confdefs.h <<_ACEOF | ||
2318 | #define PACKAGE_URL "$PACKAGE_URL" | ||
2319 | _ACEOF | ||
2320 | |||
2321 | |||
2322 | # Let the site file select an alternate cache file if it wants to. | ||
2323 | # Prefer an explicitly selected file to automatically selected ones. | ||
2324 | ac_site_file1=NONE | ||
2325 | ac_site_file2=NONE | ||
2326 | if test -n "$CONFIG_SITE"; then | ||
2327 | # We do not want a PATH search for config.site. | ||
2328 | case $CONFIG_SITE in #(( | ||
2329 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
2330 | */*) ac_site_file1=$CONFIG_SITE;; | ||
2331 | *) ac_site_file1=./$CONFIG_SITE;; | ||
2332 | esac | ||
2333 | elif test "x$prefix" != xNONE; then | ||
2334 | ac_site_file1=$prefix/share/config.site | ||
2335 | ac_site_file2=$prefix/etc/config.site | ||
2336 | else | ||
2337 | ac_site_file1=$ac_default_prefix/share/config.site | ||
2338 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
2339 | fi | ||
2340 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
2341 | do | ||
2342 | test "x$ac_site_file" = xNONE && continue | ||
2343 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
2345 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
2346 | sed 's/^/| /' "$ac_site_file" >&5 | ||
2347 | . "$ac_site_file" \ | ||
2348 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2349 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2350 | as_fn_error $? "failed to load site script $ac_site_file | ||
2351 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
2352 | fi | ||
2353 | done | ||
2354 | |||
2355 | if test -r "$cache_file"; then | ||
2356 | # Some versions of bash will fail to source /dev/null (special files | ||
2357 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
2358 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
2359 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
2360 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
2361 | case $cache_file in | ||
2362 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
2363 | *) . "./$cache_file";; | ||
2364 | esac | ||
2365 | fi | ||
2366 | else | ||
2367 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
2368 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
2369 | >$cache_file | ||
2370 | fi | ||
2371 | |||
2372 | # Check that the precious variables saved in the cache have kept the same | ||
2373 | # value. | ||
2374 | ac_cache_corrupted=false | ||
2375 | for ac_var in $ac_precious_vars; do | ||
2376 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
2377 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
2378 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
2379 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
2380 | case $ac_old_set,$ac_new_set in | ||
2381 | set,) | ||
2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
2383 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
2384 | ac_cache_corrupted=: ;; | ||
2385 | ,set) | ||
2386 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
2387 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
2388 | ac_cache_corrupted=: ;; | ||
2389 | ,);; | ||
2390 | *) | ||
2391 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
2392 | # differences in whitespace do not lead to failure. | ||
2393 | ac_old_val_w=`echo x $ac_old_val` | ||
2394 | ac_new_val_w=`echo x $ac_new_val` | ||
2395 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
2396 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
2397 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
2398 | ac_cache_corrupted=: | ||
2399 | else | ||
2400 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
2401 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
2402 | eval $ac_var=\$ac_old_val | ||
2403 | fi | ||
2404 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
2405 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
2406 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
2407 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
2408 | fi;; | ||
2409 | esac | ||
2410 | # Pass precious variables to config.status. | ||
2411 | if test "$ac_new_set" = set; then | ||
2412 | case $ac_new_val in | ||
2413 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2414 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
2415 | esac | ||
2416 | case " $ac_configure_args " in | ||
2417 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
2418 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
2419 | esac | ||
2420 | fi | ||
2421 | done | ||
2422 | if $ac_cache_corrupted; then | ||
2423 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2424 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2425 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
2426 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
2427 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
2428 | fi | ||
2429 | ## -------------------- ## | ||
2430 | ## Main body of script. ## | ||
2431 | ## -------------------- ## | ||
2432 | |||
2433 | ac_ext=c | ||
2434 | ac_cpp='$CPP $CPPFLAGS' | ||
2435 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2436 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2437 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2438 | |||
2439 | |||
2440 | |||
2441 | |||
2442 | |||
2443 | |||
2444 | ac_config_headers="$ac_config_headers config.h" | ||
2445 | |||
2446 | |||
2447 | |||
2448 | |||
2449 | am__api_version='1.11' | ||
2450 | |||
2451 | ac_aux_dir= | ||
2452 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
2453 | if test -f "$ac_dir/install-sh"; then | ||
2454 | ac_aux_dir=$ac_dir | ||
2455 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2456 | break | ||
2457 | elif test -f "$ac_dir/install.sh"; then | ||
2458 | ac_aux_dir=$ac_dir | ||
2459 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2460 | break | ||
2461 | elif test -f "$ac_dir/shtool"; then | ||
2462 | ac_aux_dir=$ac_dir | ||
2463 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2464 | break | ||
2465 | fi | ||
2466 | done | ||
2467 | if test -z "$ac_aux_dir"; then | ||
2468 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
2469 | fi | ||
2470 | |||
2471 | # These three variables are undocumented and unsupported, | ||
2472 | # and are intended to be withdrawn in a future Autoconf release. | ||
2473 | # They can cause serious problems if a builder's source tree is in a directory | ||
2474 | # whose full name contains unusual characters. | ||
2475 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2476 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2477 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2478 | |||
2479 | |||
2480 | # Find a good install program. We prefer a C program (faster), | ||
2481 | # so one script is as good as another. But avoid the broken or | ||
2482 | # incompatible versions: | ||
2483 | # SysV /etc/install, /usr/sbin/install | ||
2484 | # SunOS /usr/etc/install | ||
2485 | # IRIX /sbin/install | ||
2486 | # AIX /bin/install | ||
2487 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2488 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2489 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2490 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2491 | # OS/2's system install, which has a completely different semantic | ||
2492 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2493 | # Reject install programs that cannot install multiple files. | ||
2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
2495 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
2496 | if test -z "$INSTALL"; then | ||
2497 | if test "${ac_cv_path_install+set}" = set; then : | ||
2498 | $as_echo_n "(cached) " >&6 | ||
2499 | else | ||
2500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2501 | for as_dir in $PATH | ||
2502 | do | ||
2503 | IFS=$as_save_IFS | ||
2504 | test -z "$as_dir" && as_dir=. | ||
2505 | # Account for people who put trailing slashes in PATH elements. | ||
2506 | case $as_dir/ in #(( | ||
2507 | ./ | .// | /[cC]/* | \ | ||
2508 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
2509 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
2510 | /usr/ucb/* ) ;; | ||
2511 | *) | ||
2512 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2513 | # Don't use installbsd from OSF since it installs stuff as root | ||
2514 | # by default. | ||
2515 | for ac_prog in ginstall scoinst install; do | ||
2516 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2517 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
2518 | if test $ac_prog = install && | ||
2519 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2520 | # AIX install. It has an incompatible calling convention. | ||
2521 | : | ||
2522 | elif test $ac_prog = install && | ||
2523 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2524 | # program-specific install script used by HP pwplus--don't use. | ||
2525 | : | ||
2526 | else | ||
2527 | rm -rf conftest.one conftest.two conftest.dir | ||
2528 | echo one > conftest.one | ||
2529 | echo two > conftest.two | ||
2530 | mkdir conftest.dir | ||
2531 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
2532 | test -s conftest.one && test -s conftest.two && | ||
2533 | test -s conftest.dir/conftest.one && | ||
2534 | test -s conftest.dir/conftest.two | ||
2535 | then | ||
2536 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
2537 | break 3 | ||
2538 | fi | ||
2539 | fi | ||
2540 | fi | ||
2541 | done | ||
2542 | done | ||
2543 | ;; | ||
2544 | esac | ||
2545 | |||
2546 | done | ||
2547 | IFS=$as_save_IFS | ||
2548 | |||
2549 | rm -rf conftest.one conftest.two conftest.dir | ||
2550 | |||
2551 | fi | ||
2552 | if test "${ac_cv_path_install+set}" = set; then | ||
2553 | INSTALL=$ac_cv_path_install | ||
2554 | else | ||
2555 | # As a last resort, use the slow shell script. Don't cache a | ||
2556 | # value for INSTALL within a source directory, because that will | ||
2557 | # break other packages using the cache if that directory is | ||
2558 | # removed, or if the value is a relative name. | ||
2559 | INSTALL=$ac_install_sh | ||
2560 | fi | ||
2561 | fi | ||
2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
2563 | $as_echo "$INSTALL" >&6; } | ||
2564 | |||
2565 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
2566 | # It thinks the first close brace ends the variable substitution. | ||
2567 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
2568 | |||
2569 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
2570 | |||
2571 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
2572 | |||
2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | ||
2574 | $as_echo_n "checking whether build environment is sane... " >&6; } | ||
2575 | # Just in case | ||
2576 | sleep 1 | ||
2577 | echo timestamp > conftest.file | ||
2578 | # Reject unsafe characters in $srcdir or the absolute working directory | ||
2579 | # name. Accept space and tab only in the latter. | ||
2580 | am_lf=' | ||
2581 | ' | ||
2582 | case `pwd` in | ||
2583 | *[\\\"\#\$\&\'\`$am_lf]*) | ||
2584 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; | ||
2585 | esac | ||
2586 | case $srcdir in | ||
2587 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | ||
2588 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; | ||
2589 | esac | ||
2590 | |||
2591 | # Do `set' in a subshell so we don't clobber the current shell's | ||
2592 | # arguments. Must try -L first in case configure is actually a | ||
2593 | # symlink; some systems play weird games with the mod time of symlinks | ||
2594 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
2595 | # directory). | ||
2596 | if ( | ||
2597 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | ||
2598 | if test "$*" = "X"; then | ||
2599 | # -L didn't work. | ||
2600 | set X `ls -t "$srcdir/configure" conftest.file` | ||
2601 | fi | ||
2602 | rm -f conftest.file | ||
2603 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
2604 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
2605 | |||
2606 | # If neither matched, then we have a broken ls. This can happen | ||
2607 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
2608 | # broken ls alias from the environment. This has actually | ||
2609 | # happened. Such a system could not be considered "sane". | ||
2610 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | ||
2611 | alias in your environment" "$LINENO" 5 | ||
2612 | fi | ||
2613 | |||
2614 | test "$2" = conftest.file | ||
2615 | ) | ||
2616 | then | ||
2617 | # Ok. | ||
2618 | : | ||
2619 | else | ||
2620 | as_fn_error $? "newly created file is older than distributed files! | ||
2621 | Check your system clock" "$LINENO" 5 | ||
2622 | fi | ||
2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
2624 | $as_echo "yes" >&6; } | ||
2625 | test "$program_prefix" != NONE && | ||
2626 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
2627 | # Use a double $ so make ignores it. | ||
2628 | test "$program_suffix" != NONE && | ||
2629 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
2630 | # Double any \ or $. | ||
2631 | # By default was `s,x,x', remove it if useless. | ||
2632 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | ||
2633 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | ||
2634 | |||
2635 | # expand $ac_aux_dir to an absolute path | ||
2636 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
2637 | |||
2638 | if test x"${MISSING+set}" != xset; then | ||
2639 | case $am_aux_dir in | ||
2640 | *\ * | *\ *) | ||
2641 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | ||
2642 | *) | ||
2643 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | ||
2644 | esac | ||
2645 | fi | ||
2646 | # Use eval to expand $SHELL | ||
2647 | if eval "$MISSING --run true"; then | ||
2648 | am_missing_run="$MISSING --run " | ||
2649 | else | ||
2650 | am_missing_run= | ||
2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | ||
2652 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
2653 | fi | ||
2654 | |||
2655 | if test x"${install_sh}" != xset; then | ||
2656 | case $am_aux_dir in | ||
2657 | *\ * | *\ *) | ||
2658 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | ||
2659 | *) | ||
2660 | install_sh="\${SHELL} $am_aux_dir/install-sh" | ||
2661 | esac | ||
2662 | fi | ||
2663 | |||
2664 | # Installed binaries are usually stripped using `strip' when the user | ||
2665 | # run `make install-strip'. However `strip' might not be the right | ||
2666 | # tool to use in cross-compilation environments, therefore Automake | ||
2667 | # will honor the `STRIP' environment variable to overrule this program. | ||
2668 | if test "$cross_compiling" != no; then | ||
2669 | if test -n "$ac_tool_prefix"; then | ||
2670 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
2671 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2673 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2674 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
2675 | $as_echo_n "(cached) " >&6 | ||
2676 | else | ||
2677 | if test -n "$STRIP"; then | ||
2678 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
2679 | else | ||
2680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2681 | for as_dir in $PATH | ||
2682 | do | ||
2683 | IFS=$as_save_IFS | ||
2684 | test -z "$as_dir" && as_dir=. | ||
2685 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2686 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2687 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
2688 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2689 | break 2 | ||
2690 | fi | ||
2691 | done | ||
2692 | done | ||
2693 | IFS=$as_save_IFS | ||
2694 | |||
2695 | fi | ||
2696 | fi | ||
2697 | STRIP=$ac_cv_prog_STRIP | ||
2698 | if test -n "$STRIP"; then | ||
2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
2700 | $as_echo "$STRIP" >&6; } | ||
2701 | else | ||
2702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2703 | $as_echo "no" >&6; } | ||
2704 | fi | ||
2705 | |||
2706 | |||
2707 | fi | ||
2708 | if test -z "$ac_cv_prog_STRIP"; then | ||
2709 | ac_ct_STRIP=$STRIP | ||
2710 | # Extract the first word of "strip", so it can be a program name with args. | ||
2711 | set dummy strip; ac_word=$2 | ||
2712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2713 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2714 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
2715 | $as_echo_n "(cached) " >&6 | ||
2716 | else | ||
2717 | if test -n "$ac_ct_STRIP"; then | ||
2718 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
2719 | else | ||
2720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2721 | for as_dir in $PATH | ||
2722 | do | ||
2723 | IFS=$as_save_IFS | ||
2724 | test -z "$as_dir" && as_dir=. | ||
2725 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2727 | ac_cv_prog_ac_ct_STRIP="strip" | ||
2728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2729 | break 2 | ||
2730 | fi | ||
2731 | done | ||
2732 | done | ||
2733 | IFS=$as_save_IFS | ||
2734 | |||
2735 | fi | ||
2736 | fi | ||
2737 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
2738 | if test -n "$ac_ct_STRIP"; then | ||
2739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
2740 | $as_echo "$ac_ct_STRIP" >&6; } | ||
2741 | else | ||
2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2743 | $as_echo "no" >&6; } | ||
2744 | fi | ||
2745 | |||
2746 | if test "x$ac_ct_STRIP" = x; then | ||
2747 | STRIP=":" | ||
2748 | else | ||
2749 | case $cross_compiling:$ac_tool_warned in | ||
2750 | yes:) | ||
2751 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2752 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2753 | ac_tool_warned=yes ;; | ||
2754 | esac | ||
2755 | STRIP=$ac_ct_STRIP | ||
2756 | fi | ||
2757 | else | ||
2758 | STRIP="$ac_cv_prog_STRIP" | ||
2759 | fi | ||
2760 | |||
2761 | fi | ||
2762 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | ||
2763 | |||
2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | ||
2765 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
2766 | if test -z "$MKDIR_P"; then | ||
2767 | if test "${ac_cv_path_mkdir+set}" = set; then : | ||
2768 | $as_echo_n "(cached) " >&6 | ||
2769 | else | ||
2770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2771 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
2772 | do | ||
2773 | IFS=$as_save_IFS | ||
2774 | test -z "$as_dir" && as_dir=. | ||
2775 | for ac_prog in mkdir gmkdir; do | ||
2776 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2777 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | ||
2778 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
2779 | 'mkdir (GNU coreutils) '* | \ | ||
2780 | 'mkdir (coreutils) '* | \ | ||
2781 | 'mkdir (fileutils) '4.1*) | ||
2782 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
2783 | break 3;; | ||
2784 | esac | ||
2785 | done | ||
2786 | done | ||
2787 | done | ||
2788 | IFS=$as_save_IFS | ||
2789 | |||
2790 | fi | ||
2791 | |||
2792 | test -d ./--version && rmdir ./--version | ||
2793 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
2794 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
2795 | else | ||
2796 | # As a last resort, use the slow shell script. Don't cache a | ||
2797 | # value for MKDIR_P within a source directory, because that will | ||
2798 | # break other packages using the cache if that directory is | ||
2799 | # removed, or if the value is a relative name. | ||
2800 | MKDIR_P="$ac_install_sh -d" | ||
2801 | fi | ||
2802 | fi | ||
2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
2804 | $as_echo "$MKDIR_P" >&6; } | ||
2805 | |||
2806 | mkdir_p="$MKDIR_P" | ||
2807 | case $mkdir_p in | ||
2808 | [\\/$]* | ?:[\\/]*) ;; | ||
2809 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | ||
2810 | esac | ||
2811 | |||
2812 | for ac_prog in gawk mawk nawk awk | ||
2813 | do | ||
2814 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2815 | set dummy $ac_prog; ac_word=$2 | ||
2816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2817 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2818 | if test "${ac_cv_prog_AWK+set}" = set; then : | ||
2819 | $as_echo_n "(cached) " >&6 | ||
2820 | else | ||
2821 | if test -n "$AWK"; then | ||
2822 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
2823 | else | ||
2824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2825 | for as_dir in $PATH | ||
2826 | do | ||
2827 | IFS=$as_save_IFS | ||
2828 | test -z "$as_dir" && as_dir=. | ||
2829 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2831 | ac_cv_prog_AWK="$ac_prog" | ||
2832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2833 | break 2 | ||
2834 | fi | ||
2835 | done | ||
2836 | done | ||
2837 | IFS=$as_save_IFS | ||
2838 | |||
2839 | fi | ||
2840 | fi | ||
2841 | AWK=$ac_cv_prog_AWK | ||
2842 | if test -n "$AWK"; then | ||
2843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
2844 | $as_echo "$AWK" >&6; } | ||
2845 | else | ||
2846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2847 | $as_echo "no" >&6; } | ||
2848 | fi | ||
2849 | |||
2850 | |||
2851 | test -n "$AWK" && break | ||
2852 | done | ||
2853 | |||
2854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
2855 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | ||
2856 | set x ${MAKE-make} | ||
2857 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
2858 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | ||
2859 | $as_echo_n "(cached) " >&6 | ||
2860 | else | ||
2861 | cat >conftest.make <<\_ACEOF | ||
2862 | SHELL = /bin/sh | ||
2863 | all: | ||
2864 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
2865 | _ACEOF | ||
2866 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
2867 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
2868 | *@@@%%%=?*=@@@%%%*) | ||
2869 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
2870 | *) | ||
2871 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
2872 | esac | ||
2873 | rm -f conftest.make | ||
2874 | fi | ||
2875 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
2877 | $as_echo "yes" >&6; } | ||
2878 | SET_MAKE= | ||
2879 | else | ||
2880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2881 | $as_echo "no" >&6; } | ||
2882 | SET_MAKE="MAKE=${MAKE-make}" | ||
2883 | fi | ||
2884 | |||
2885 | rm -rf .tst 2>/dev/null | ||
2886 | mkdir .tst 2>/dev/null | ||
2887 | if test -d .tst; then | ||
2888 | am__leading_dot=. | ||
2889 | else | ||
2890 | am__leading_dot=_ | ||
2891 | fi | ||
2892 | rmdir .tst 2>/dev/null | ||
2893 | |||
2894 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | ||
2895 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | ||
2896 | # is not polluted with repeated "-I." | ||
2897 | am__isrc=' -I$(srcdir)' | ||
2898 | # test to see if srcdir already configured | ||
2899 | if test -f $srcdir/config.status; then | ||
2900 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | ||
2901 | fi | ||
2902 | fi | ||
2903 | |||
2904 | # test whether we have cygpath | ||
2905 | if test -z "$CYGPATH_W"; then | ||
2906 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
2907 | CYGPATH_W='cygpath -w' | ||
2908 | else | ||
2909 | CYGPATH_W=echo | ||
2910 | fi | ||
2911 | fi | ||
2912 | |||
2913 | |||
2914 | # Define the identity of the package. | ||
2915 | PACKAGE='eet' | ||
2916 | VERSION='1.6.0-alpha' | ||
2917 | |||
2918 | |||
2919 | cat >>confdefs.h <<_ACEOF | ||
2920 | #define PACKAGE "$PACKAGE" | ||
2921 | _ACEOF | ||
2922 | |||
2923 | |||
2924 | cat >>confdefs.h <<_ACEOF | ||
2925 | #define VERSION "$VERSION" | ||
2926 | _ACEOF | ||
2927 | |||
2928 | # Some tools Automake needs. | ||
2929 | |||
2930 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
2931 | |||
2932 | |||
2933 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
2934 | |||
2935 | |||
2936 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
2937 | |||
2938 | |||
2939 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
2940 | |||
2941 | |||
2942 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
2943 | |||
2944 | # We need awk for the "check" target. The system "awk" is bad on | ||
2945 | # some platforms. | ||
2946 | # Always define AMTAR for backward compatibility. | ||
2947 | |||
2948 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
2949 | |||
2950 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | ||
2951 | |||
2952 | |||
2953 | |||
2954 | |||
2955 | |||
2956 | # Check whether --enable-silent-rules was given. | ||
2957 | if test "${enable_silent_rules+set}" = set; then : | ||
2958 | enableval=$enable_silent_rules; | ||
2959 | fi | ||
2960 | |||
2961 | case $enable_silent_rules in | ||
2962 | yes) AM_DEFAULT_VERBOSITY=0;; | ||
2963 | no) AM_DEFAULT_VERBOSITY=1;; | ||
2964 | *) AM_DEFAULT_VERBOSITY=0;; | ||
2965 | esac | ||
2966 | AM_BACKSLASH='\' | ||
2967 | |||
2968 | |||
2969 | # Make sure we can run config.sub. | ||
2970 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
2971 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
2972 | |||
2973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
2974 | $as_echo_n "checking build system type... " >&6; } | ||
2975 | if test "${ac_cv_build+set}" = set; then : | ||
2976 | $as_echo_n "(cached) " >&6 | ||
2977 | else | ||
2978 | ac_build_alias=$build_alias | ||
2979 | test "x$ac_build_alias" = x && | ||
2980 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
2981 | test "x$ac_build_alias" = x && | ||
2982 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
2983 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
2984 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
2985 | |||
2986 | fi | ||
2987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
2988 | $as_echo "$ac_cv_build" >&6; } | ||
2989 | case $ac_cv_build in | ||
2990 | *-*-*) ;; | ||
2991 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; | ||
2992 | esac | ||
2993 | build=$ac_cv_build | ||
2994 | ac_save_IFS=$IFS; IFS='-' | ||
2995 | set x $ac_cv_build | ||
2996 | shift | ||
2997 | build_cpu=$1 | ||
2998 | build_vendor=$2 | ||
2999 | shift; shift | ||
3000 | # Remember, the first character of IFS is used to create $*, | ||
3001 | # except with old shells: | ||
3002 | build_os=$* | ||
3003 | IFS=$ac_save_IFS | ||
3004 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
3005 | |||
3006 | |||
3007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
3008 | $as_echo_n "checking host system type... " >&6; } | ||
3009 | if test "${ac_cv_host+set}" = set; then : | ||
3010 | $as_echo_n "(cached) " >&6 | ||
3011 | else | ||
3012 | if test "x$host_alias" = x; then | ||
3013 | ac_cv_host=$ac_cv_build | ||
3014 | else | ||
3015 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
3016 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
3017 | fi | ||
3018 | |||
3019 | fi | ||
3020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
3021 | $as_echo "$ac_cv_host" >&6; } | ||
3022 | case $ac_cv_host in | ||
3023 | *-*-*) ;; | ||
3024 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; | ||
3025 | esac | ||
3026 | host=$ac_cv_host | ||
3027 | ac_save_IFS=$IFS; IFS='-' | ||
3028 | set x $ac_cv_host | ||
3029 | shift | ||
3030 | host_cpu=$1 | ||
3031 | host_vendor=$2 | ||
3032 | shift; shift | ||
3033 | # Remember, the first character of IFS is used to create $*, | ||
3034 | # except with old shells: | ||
3035 | host_os=$* | ||
3036 | IFS=$ac_save_IFS | ||
3037 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
3038 | |||
3039 | |||
3040 | enable_win32_dll=yes | ||
3041 | |||
3042 | case $host in | ||
3043 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) | ||
3044 | if test -n "$ac_tool_prefix"; then | ||
3045 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | ||
3046 | set dummy ${ac_tool_prefix}as; ac_word=$2 | ||
3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3048 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3049 | if test "${ac_cv_prog_AS+set}" = set; then : | ||
3050 | $as_echo_n "(cached) " >&6 | ||
3051 | else | ||
3052 | if test -n "$AS"; then | ||
3053 | ac_cv_prog_AS="$AS" # Let the user override the test. | ||
3054 | else | ||
3055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3056 | for as_dir in $PATH | ||
3057 | do | ||
3058 | IFS=$as_save_IFS | ||
3059 | test -z "$as_dir" && as_dir=. | ||
3060 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3061 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3062 | ac_cv_prog_AS="${ac_tool_prefix}as" | ||
3063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3064 | break 2 | ||
3065 | fi | ||
3066 | done | ||
3067 | done | ||
3068 | IFS=$as_save_IFS | ||
3069 | |||
3070 | fi | ||
3071 | fi | ||
3072 | AS=$ac_cv_prog_AS | ||
3073 | if test -n "$AS"; then | ||
3074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | ||
3075 | $as_echo "$AS" >&6; } | ||
3076 | else | ||
3077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3078 | $as_echo "no" >&6; } | ||
3079 | fi | ||
3080 | |||
3081 | |||
3082 | fi | ||
3083 | if test -z "$ac_cv_prog_AS"; then | ||
3084 | ac_ct_AS=$AS | ||
3085 | # Extract the first word of "as", so it can be a program name with args. | ||
3086 | set dummy as; ac_word=$2 | ||
3087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3088 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3089 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : | ||
3090 | $as_echo_n "(cached) " >&6 | ||
3091 | else | ||
3092 | if test -n "$ac_ct_AS"; then | ||
3093 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | ||
3094 | else | ||
3095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3096 | for as_dir in $PATH | ||
3097 | do | ||
3098 | IFS=$as_save_IFS | ||
3099 | test -z "$as_dir" && as_dir=. | ||
3100 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3101 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3102 | ac_cv_prog_ac_ct_AS="as" | ||
3103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3104 | break 2 | ||
3105 | fi | ||
3106 | done | ||
3107 | done | ||
3108 | IFS=$as_save_IFS | ||
3109 | |||
3110 | fi | ||
3111 | fi | ||
3112 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | ||
3113 | if test -n "$ac_ct_AS"; then | ||
3114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | ||
3115 | $as_echo "$ac_ct_AS" >&6; } | ||
3116 | else | ||
3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3118 | $as_echo "no" >&6; } | ||
3119 | fi | ||
3120 | |||
3121 | if test "x$ac_ct_AS" = x; then | ||
3122 | AS="false" | ||
3123 | else | ||
3124 | case $cross_compiling:$ac_tool_warned in | ||
3125 | yes:) | ||
3126 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3127 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3128 | ac_tool_warned=yes ;; | ||
3129 | esac | ||
3130 | AS=$ac_ct_AS | ||
3131 | fi | ||
3132 | else | ||
3133 | AS="$ac_cv_prog_AS" | ||
3134 | fi | ||
3135 | |||
3136 | if test -n "$ac_tool_prefix"; then | ||
3137 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
3138 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3140 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3141 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | ||
3142 | $as_echo_n "(cached) " >&6 | ||
3143 | else | ||
3144 | if test -n "$DLLTOOL"; then | ||
3145 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
3146 | else | ||
3147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3148 | for as_dir in $PATH | ||
3149 | do | ||
3150 | IFS=$as_save_IFS | ||
3151 | test -z "$as_dir" && as_dir=. | ||
3152 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3153 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3154 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
3155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3156 | break 2 | ||
3157 | fi | ||
3158 | done | ||
3159 | done | ||
3160 | IFS=$as_save_IFS | ||
3161 | |||
3162 | fi | ||
3163 | fi | ||
3164 | DLLTOOL=$ac_cv_prog_DLLTOOL | ||
3165 | if test -n "$DLLTOOL"; then | ||
3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
3167 | $as_echo "$DLLTOOL" >&6; } | ||
3168 | else | ||
3169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3170 | $as_echo "no" >&6; } | ||
3171 | fi | ||
3172 | |||
3173 | |||
3174 | fi | ||
3175 | if test -z "$ac_cv_prog_DLLTOOL"; then | ||
3176 | ac_ct_DLLTOOL=$DLLTOOL | ||
3177 | # Extract the first word of "dlltool", so it can be a program name with args. | ||
3178 | set dummy dlltool; ac_word=$2 | ||
3179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3180 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3181 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | ||
3182 | $as_echo_n "(cached) " >&6 | ||
3183 | else | ||
3184 | if test -n "$ac_ct_DLLTOOL"; then | ||
3185 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
3186 | else | ||
3187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3188 | for as_dir in $PATH | ||
3189 | do | ||
3190 | IFS=$as_save_IFS | ||
3191 | test -z "$as_dir" && as_dir=. | ||
3192 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3193 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3194 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
3195 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3196 | break 2 | ||
3197 | fi | ||
3198 | done | ||
3199 | done | ||
3200 | IFS=$as_save_IFS | ||
3201 | |||
3202 | fi | ||
3203 | fi | ||
3204 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
3205 | if test -n "$ac_ct_DLLTOOL"; then | ||
3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
3207 | $as_echo "$ac_ct_DLLTOOL" >&6; } | ||
3208 | else | ||
3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3210 | $as_echo "no" >&6; } | ||
3211 | fi | ||
3212 | |||
3213 | if test "x$ac_ct_DLLTOOL" = x; then | ||
3214 | DLLTOOL="false" | ||
3215 | else | ||
3216 | case $cross_compiling:$ac_tool_warned in | ||
3217 | yes:) | ||
3218 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3219 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3220 | ac_tool_warned=yes ;; | ||
3221 | esac | ||
3222 | DLLTOOL=$ac_ct_DLLTOOL | ||
3223 | fi | ||
3224 | else | ||
3225 | DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
3226 | fi | ||
3227 | |||
3228 | if test -n "$ac_tool_prefix"; then | ||
3229 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
3230 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
3231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3232 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3233 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
3234 | $as_echo_n "(cached) " >&6 | ||
3235 | else | ||
3236 | if test -n "$OBJDUMP"; then | ||
3237 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
3238 | else | ||
3239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3240 | for as_dir in $PATH | ||
3241 | do | ||
3242 | IFS=$as_save_IFS | ||
3243 | test -z "$as_dir" && as_dir=. | ||
3244 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3245 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3246 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
3247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3248 | break 2 | ||
3249 | fi | ||
3250 | done | ||
3251 | done | ||
3252 | IFS=$as_save_IFS | ||
3253 | |||
3254 | fi | ||
3255 | fi | ||
3256 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
3257 | if test -n "$OBJDUMP"; then | ||
3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
3259 | $as_echo "$OBJDUMP" >&6; } | ||
3260 | else | ||
3261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3262 | $as_echo "no" >&6; } | ||
3263 | fi | ||
3264 | |||
3265 | |||
3266 | fi | ||
3267 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
3268 | ac_ct_OBJDUMP=$OBJDUMP | ||
3269 | # Extract the first word of "objdump", so it can be a program name with args. | ||
3270 | set dummy objdump; ac_word=$2 | ||
3271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3272 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3273 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | ||
3274 | $as_echo_n "(cached) " >&6 | ||
3275 | else | ||
3276 | if test -n "$ac_ct_OBJDUMP"; then | ||
3277 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
3278 | else | ||
3279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3280 | for as_dir in $PATH | ||
3281 | do | ||
3282 | IFS=$as_save_IFS | ||
3283 | test -z "$as_dir" && as_dir=. | ||
3284 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3285 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3286 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
3287 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3288 | break 2 | ||
3289 | fi | ||
3290 | done | ||
3291 | done | ||
3292 | IFS=$as_save_IFS | ||
3293 | |||
3294 | fi | ||
3295 | fi | ||
3296 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
3297 | if test -n "$ac_ct_OBJDUMP"; then | ||
3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
3299 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
3300 | else | ||
3301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3302 | $as_echo "no" >&6; } | ||
3303 | fi | ||
3304 | |||
3305 | if test "x$ac_ct_OBJDUMP" = x; then | ||
3306 | OBJDUMP="false" | ||
3307 | else | ||
3308 | case $cross_compiling:$ac_tool_warned in | ||
3309 | yes:) | ||
3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3311 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3312 | ac_tool_warned=yes ;; | ||
3313 | esac | ||
3314 | OBJDUMP=$ac_ct_OBJDUMP | ||
3315 | fi | ||
3316 | else | ||
3317 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
3318 | fi | ||
3319 | |||
3320 | ;; | ||
3321 | esac | ||
3322 | |||
3323 | test -z "$AS" && AS=as | ||
3324 | |||
3325 | |||
3326 | |||
3327 | |||
3328 | |||
3329 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
3330 | |||
3331 | |||
3332 | |||
3333 | |||
3334 | |||
3335 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
3336 | |||
3337 | |||
3338 | |||
3339 | |||
3340 | |||
3341 | |||
3342 | |||
3343 | case `pwd` in | ||
3344 | *\ * | *\ *) | ||
3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | ||
3346 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | ||
3347 | esac | ||
3348 | |||
3349 | |||
3350 | |||
3351 | macro_version='2.2.6b' | ||
3352 | macro_revision='1.3017' | ||
3353 | |||
3354 | |||
3355 | |||
3356 | |||
3357 | |||
3358 | |||
3359 | |||
3360 | |||
3361 | |||
3362 | |||
3363 | |||
3364 | |||
3365 | |||
3366 | ltmain="$ac_aux_dir/ltmain.sh" | ||
3367 | |||
3368 | DEPDIR="${am__leading_dot}deps" | ||
3369 | |||
3370 | ac_config_commands="$ac_config_commands depfiles" | ||
3371 | |||
3372 | |||
3373 | am_make=${MAKE-make} | ||
3374 | cat > confinc << 'END' | ||
3375 | am__doit: | ||
3376 | @echo this is the am__doit target | ||
3377 | .PHONY: am__doit | ||
3378 | END | ||
3379 | # If we don't find an include directive, just comment out the code. | ||
3380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | ||
3381 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | ||
3382 | am__include="#" | ||
3383 | am__quote= | ||
3384 | _am_result=none | ||
3385 | # First try GNU make style include. | ||
3386 | echo "include confinc" > confmf | ||
3387 | # Ignore all kinds of additional output from `make'. | ||
3388 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
3389 | *the\ am__doit\ target*) | ||
3390 | am__include=include | ||
3391 | am__quote= | ||
3392 | _am_result=GNU | ||
3393 | ;; | ||
3394 | esac | ||
3395 | # Now try BSD make style include. | ||
3396 | if test "$am__include" = "#"; then | ||
3397 | echo '.include "confinc"' > confmf | ||
3398 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
3399 | *the\ am__doit\ target*) | ||
3400 | am__include=.include | ||
3401 | am__quote="\"" | ||
3402 | _am_result=BSD | ||
3403 | ;; | ||
3404 | esac | ||
3405 | fi | ||
3406 | |||
3407 | |||
3408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | ||
3409 | $as_echo "$_am_result" >&6; } | ||
3410 | rm -f confinc confmf | ||
3411 | |||
3412 | # Check whether --enable-dependency-tracking was given. | ||
3413 | if test "${enable_dependency_tracking+set}" = set; then : | ||
3414 | enableval=$enable_dependency_tracking; | ||
3415 | fi | ||
3416 | |||
3417 | if test "x$enable_dependency_tracking" != xno; then | ||
3418 | am_depcomp="$ac_aux_dir/depcomp" | ||
3419 | AMDEPBACKSLASH='\' | ||
3420 | fi | ||
3421 | if test "x$enable_dependency_tracking" != xno; then | ||
3422 | AMDEP_TRUE= | ||
3423 | AMDEP_FALSE='#' | ||
3424 | else | ||
3425 | AMDEP_TRUE='#' | ||
3426 | AMDEP_FALSE= | ||
3427 | fi | ||
3428 | |||
3429 | |||
3430 | ac_ext=c | ||
3431 | ac_cpp='$CPP $CPPFLAGS' | ||
3432 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3433 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3434 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3435 | if test -n "$ac_tool_prefix"; then | ||
3436 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
3437 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3439 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3440 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3441 | $as_echo_n "(cached) " >&6 | ||
3442 | else | ||
3443 | if test -n "$CC"; then | ||
3444 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3445 | else | ||
3446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3447 | for as_dir in $PATH | ||
3448 | do | ||
3449 | IFS=$as_save_IFS | ||
3450 | test -z "$as_dir" && as_dir=. | ||
3451 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3452 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3453 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
3454 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3455 | break 2 | ||
3456 | fi | ||
3457 | done | ||
3458 | done | ||
3459 | IFS=$as_save_IFS | ||
3460 | |||
3461 | fi | ||
3462 | fi | ||
3463 | CC=$ac_cv_prog_CC | ||
3464 | if test -n "$CC"; then | ||
3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3466 | $as_echo "$CC" >&6; } | ||
3467 | else | ||
3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3469 | $as_echo "no" >&6; } | ||
3470 | fi | ||
3471 | |||
3472 | |||
3473 | fi | ||
3474 | if test -z "$ac_cv_prog_CC"; then | ||
3475 | ac_ct_CC=$CC | ||
3476 | # Extract the first word of "gcc", so it can be a program name with args. | ||
3477 | set dummy gcc; ac_word=$2 | ||
3478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3479 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3480 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
3481 | $as_echo_n "(cached) " >&6 | ||
3482 | else | ||
3483 | if test -n "$ac_ct_CC"; then | ||
3484 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
3485 | else | ||
3486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3487 | for as_dir in $PATH | ||
3488 | do | ||
3489 | IFS=$as_save_IFS | ||
3490 | test -z "$as_dir" && as_dir=. | ||
3491 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3492 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3493 | ac_cv_prog_ac_ct_CC="gcc" | ||
3494 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3495 | break 2 | ||
3496 | fi | ||
3497 | done | ||
3498 | done | ||
3499 | IFS=$as_save_IFS | ||
3500 | |||
3501 | fi | ||
3502 | fi | ||
3503 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
3504 | if test -n "$ac_ct_CC"; then | ||
3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
3506 | $as_echo "$ac_ct_CC" >&6; } | ||
3507 | else | ||
3508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3509 | $as_echo "no" >&6; } | ||
3510 | fi | ||
3511 | |||
3512 | if test "x$ac_ct_CC" = x; then | ||
3513 | CC="" | ||
3514 | else | ||
3515 | case $cross_compiling:$ac_tool_warned in | ||
3516 | yes:) | ||
3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3518 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3519 | ac_tool_warned=yes ;; | ||
3520 | esac | ||
3521 | CC=$ac_ct_CC | ||
3522 | fi | ||
3523 | else | ||
3524 | CC="$ac_cv_prog_CC" | ||
3525 | fi | ||
3526 | |||
3527 | if test -z "$CC"; then | ||
3528 | if test -n "$ac_tool_prefix"; then | ||
3529 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
3530 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
3531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3532 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3533 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3534 | $as_echo_n "(cached) " >&6 | ||
3535 | else | ||
3536 | if test -n "$CC"; then | ||
3537 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3538 | else | ||
3539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3540 | for as_dir in $PATH | ||
3541 | do | ||
3542 | IFS=$as_save_IFS | ||
3543 | test -z "$as_dir" && as_dir=. | ||
3544 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3545 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3546 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
3547 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3548 | break 2 | ||
3549 | fi | ||
3550 | done | ||
3551 | done | ||
3552 | IFS=$as_save_IFS | ||
3553 | |||
3554 | fi | ||
3555 | fi | ||
3556 | CC=$ac_cv_prog_CC | ||
3557 | if test -n "$CC"; then | ||
3558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3559 | $as_echo "$CC" >&6; } | ||
3560 | else | ||
3561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3562 | $as_echo "no" >&6; } | ||
3563 | fi | ||
3564 | |||
3565 | |||
3566 | fi | ||
3567 | fi | ||
3568 | if test -z "$CC"; then | ||
3569 | # Extract the first word of "cc", so it can be a program name with args. | ||
3570 | set dummy cc; ac_word=$2 | ||
3571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3572 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3573 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3574 | $as_echo_n "(cached) " >&6 | ||
3575 | else | ||
3576 | if test -n "$CC"; then | ||
3577 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3578 | else | ||
3579 | ac_prog_rejected=no | ||
3580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3581 | for as_dir in $PATH | ||
3582 | do | ||
3583 | IFS=$as_save_IFS | ||
3584 | test -z "$as_dir" && as_dir=. | ||
3585 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3586 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3587 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
3588 | ac_prog_rejected=yes | ||
3589 | continue | ||
3590 | fi | ||
3591 | ac_cv_prog_CC="cc" | ||
3592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3593 | break 2 | ||
3594 | fi | ||
3595 | done | ||
3596 | done | ||
3597 | IFS=$as_save_IFS | ||
3598 | |||
3599 | if test $ac_prog_rejected = yes; then | ||
3600 | # We found a bogon in the path, so make sure we never use it. | ||
3601 | set dummy $ac_cv_prog_CC | ||
3602 | shift | ||
3603 | if test $# != 0; then | ||
3604 | # We chose a different compiler from the bogus one. | ||
3605 | # However, it has the same basename, so the bogon will be chosen | ||
3606 | # first if we set CC to just the basename; use the full file name. | ||
3607 | shift | ||
3608 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
3609 | fi | ||
3610 | fi | ||
3611 | fi | ||
3612 | fi | ||
3613 | CC=$ac_cv_prog_CC | ||
3614 | if test -n "$CC"; then | ||
3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3616 | $as_echo "$CC" >&6; } | ||
3617 | else | ||
3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3619 | $as_echo "no" >&6; } | ||
3620 | fi | ||
3621 | |||
3622 | |||
3623 | fi | ||
3624 | if test -z "$CC"; then | ||
3625 | if test -n "$ac_tool_prefix"; then | ||
3626 | for ac_prog in cl.exe | ||
3627 | do | ||
3628 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
3629 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
3630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3631 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3632 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3633 | $as_echo_n "(cached) " >&6 | ||
3634 | else | ||
3635 | if test -n "$CC"; then | ||
3636 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3637 | else | ||
3638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3639 | for as_dir in $PATH | ||
3640 | do | ||
3641 | IFS=$as_save_IFS | ||
3642 | test -z "$as_dir" && as_dir=. | ||
3643 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3645 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
3646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3647 | break 2 | ||
3648 | fi | ||
3649 | done | ||
3650 | done | ||
3651 | IFS=$as_save_IFS | ||
3652 | |||
3653 | fi | ||
3654 | fi | ||
3655 | CC=$ac_cv_prog_CC | ||
3656 | if test -n "$CC"; then | ||
3657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3658 | $as_echo "$CC" >&6; } | ||
3659 | else | ||
3660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3661 | $as_echo "no" >&6; } | ||
3662 | fi | ||
3663 | |||
3664 | |||
3665 | test -n "$CC" && break | ||
3666 | done | ||
3667 | fi | ||
3668 | if test -z "$CC"; then | ||
3669 | ac_ct_CC=$CC | ||
3670 | for ac_prog in cl.exe | ||
3671 | do | ||
3672 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3673 | set dummy $ac_prog; ac_word=$2 | ||
3674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3675 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3676 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
3677 | $as_echo_n "(cached) " >&6 | ||
3678 | else | ||
3679 | if test -n "$ac_ct_CC"; then | ||
3680 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
3681 | else | ||
3682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3683 | for as_dir in $PATH | ||
3684 | do | ||
3685 | IFS=$as_save_IFS | ||
3686 | test -z "$as_dir" && as_dir=. | ||
3687 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3688 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3689 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
3690 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3691 | break 2 | ||
3692 | fi | ||
3693 | done | ||
3694 | done | ||
3695 | IFS=$as_save_IFS | ||
3696 | |||
3697 | fi | ||
3698 | fi | ||
3699 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
3700 | if test -n "$ac_ct_CC"; then | ||
3701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
3702 | $as_echo "$ac_ct_CC" >&6; } | ||
3703 | else | ||
3704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3705 | $as_echo "no" >&6; } | ||
3706 | fi | ||
3707 | |||
3708 | |||
3709 | test -n "$ac_ct_CC" && break | ||
3710 | done | ||
3711 | |||
3712 | if test "x$ac_ct_CC" = x; then | ||
3713 | CC="" | ||
3714 | else | ||
3715 | case $cross_compiling:$ac_tool_warned in | ||
3716 | yes:) | ||
3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3718 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3719 | ac_tool_warned=yes ;; | ||
3720 | esac | ||
3721 | CC=$ac_ct_CC | ||
3722 | fi | ||
3723 | fi | ||
3724 | |||
3725 | fi | ||
3726 | |||
3727 | |||
3728 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3729 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3730 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
3731 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3732 | |||
3733 | # Provide some information about the compiler. | ||
3734 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
3735 | set X $ac_compile | ||
3736 | ac_compiler=$2 | ||
3737 | for ac_option in --version -v -V -qversion; do | ||
3738 | { { ac_try="$ac_compiler $ac_option >&5" | ||
3739 | case "(($ac_try" in | ||
3740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3741 | *) ac_try_echo=$ac_try;; | ||
3742 | esac | ||
3743 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3744 | $as_echo "$ac_try_echo"; } >&5 | ||
3745 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
3746 | ac_status=$? | ||
3747 | if test -s conftest.err; then | ||
3748 | sed '10a\ | ||
3749 | ... rest of stderr output deleted ... | ||
3750 | 10q' conftest.err >conftest.er1 | ||
3751 | cat conftest.er1 >&5 | ||
3752 | fi | ||
3753 | rm -f conftest.er1 conftest.err | ||
3754 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3755 | test $ac_status = 0; } | ||
3756 | done | ||
3757 | |||
3758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3759 | /* end confdefs.h. */ | ||
3760 | |||
3761 | int | ||
3762 | main () | ||
3763 | { | ||
3764 | |||
3765 | ; | ||
3766 | return 0; | ||
3767 | } | ||
3768 | _ACEOF | ||
3769 | ac_clean_files_save=$ac_clean_files | ||
3770 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
3771 | # Try to create an executable without -o first, disregard a.out. | ||
3772 | # It will help us diagnose broken compilers, and finding out an intuition | ||
3773 | # of exeext. | ||
3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
3775 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
3776 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
3777 | |||
3778 | # The possible output files: | ||
3779 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
3780 | |||
3781 | ac_rmfiles= | ||
3782 | for ac_file in $ac_files | ||
3783 | do | ||
3784 | case $ac_file in | ||
3785 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3786 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
3787 | esac | ||
3788 | done | ||
3789 | rm -f $ac_rmfiles | ||
3790 | |||
3791 | if { { ac_try="$ac_link_default" | ||
3792 | case "(($ac_try" in | ||
3793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3794 | *) ac_try_echo=$ac_try;; | ||
3795 | esac | ||
3796 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3797 | $as_echo "$ac_try_echo"; } >&5 | ||
3798 | (eval "$ac_link_default") 2>&5 | ||
3799 | ac_status=$? | ||
3800 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3801 | test $ac_status = 0; }; then : | ||
3802 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
3803 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
3804 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
3805 | # so that the user can short-circuit this test for compilers unknown to | ||
3806 | # Autoconf. | ||
3807 | for ac_file in $ac_files '' | ||
3808 | do | ||
3809 | test -f "$ac_file" || continue | ||
3810 | case $ac_file in | ||
3811 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
3812 | ;; | ||
3813 | [ab].out ) | ||
3814 | # We found the default executable, but exeext='' is most | ||
3815 | # certainly right. | ||
3816 | break;; | ||
3817 | *.* ) | ||
3818 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
3819 | then :; else | ||
3820 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3821 | fi | ||
3822 | # We set ac_cv_exeext here because the later test for it is not | ||
3823 | # safe: cross compilers may not add the suffix if given an `-o' | ||
3824 | # argument, so we may need to know it at that point already. | ||
3825 | # Even if this section looks crufty: it has the advantage of | ||
3826 | # actually working. | ||
3827 | break;; | ||
3828 | * ) | ||
3829 | break;; | ||
3830 | esac | ||
3831 | done | ||
3832 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
3833 | |||
3834 | else | ||
3835 | ac_file='' | ||
3836 | fi | ||
3837 | if test -z "$ac_file"; then : | ||
3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3839 | $as_echo "no" >&6; } | ||
3840 | $as_echo "$as_me: failed program was:" >&5 | ||
3841 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3842 | |||
3843 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3844 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3845 | as_fn_error 77 "C compiler cannot create executables | ||
3846 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3847 | else | ||
3848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3849 | $as_echo "yes" >&6; } | ||
3850 | fi | ||
3851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
3852 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
3853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
3854 | $as_echo "$ac_file" >&6; } | ||
3855 | ac_exeext=$ac_cv_exeext | ||
3856 | |||
3857 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
3858 | ac_clean_files=$ac_clean_files_save | ||
3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
3860 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
3861 | if { { ac_try="$ac_link" | ||
3862 | case "(($ac_try" in | ||
3863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3864 | *) ac_try_echo=$ac_try;; | ||
3865 | esac | ||
3866 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3867 | $as_echo "$ac_try_echo"; } >&5 | ||
3868 | (eval "$ac_link") 2>&5 | ||
3869 | ac_status=$? | ||
3870 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3871 | test $ac_status = 0; }; then : | ||
3872 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
3873 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
3874 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
3875 | # `rm'. | ||
3876 | for ac_file in conftest.exe conftest conftest.*; do | ||
3877 | test -f "$ac_file" || continue | ||
3878 | case $ac_file in | ||
3879 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3880 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3881 | break;; | ||
3882 | * ) break;; | ||
3883 | esac | ||
3884 | done | ||
3885 | else | ||
3886 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3887 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3888 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
3889 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3890 | fi | ||
3891 | rm -f conftest conftest$ac_cv_exeext | ||
3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
3893 | $as_echo "$ac_cv_exeext" >&6; } | ||
3894 | |||
3895 | rm -f conftest.$ac_ext | ||
3896 | EXEEXT=$ac_cv_exeext | ||
3897 | ac_exeext=$EXEEXT | ||
3898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3899 | /* end confdefs.h. */ | ||
3900 | #include <stdio.h> | ||
3901 | int | ||
3902 | main () | ||
3903 | { | ||
3904 | FILE *f = fopen ("conftest.out", "w"); | ||
3905 | return ferror (f) || fclose (f) != 0; | ||
3906 | |||
3907 | ; | ||
3908 | return 0; | ||
3909 | } | ||
3910 | _ACEOF | ||
3911 | ac_clean_files="$ac_clean_files conftest.out" | ||
3912 | # Check that the compiler produces executables we can run. If not, either | ||
3913 | # the compiler is broken, or we cross compile. | ||
3914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
3915 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
3916 | if test "$cross_compiling" != yes; then | ||
3917 | { { ac_try="$ac_link" | ||
3918 | case "(($ac_try" in | ||
3919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3920 | *) ac_try_echo=$ac_try;; | ||
3921 | esac | ||
3922 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3923 | $as_echo "$ac_try_echo"; } >&5 | ||
3924 | (eval "$ac_link") 2>&5 | ||
3925 | ac_status=$? | ||
3926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3927 | test $ac_status = 0; } | ||
3928 | if { ac_try='./conftest$ac_cv_exeext' | ||
3929 | { { case "(($ac_try" in | ||
3930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3931 | *) ac_try_echo=$ac_try;; | ||
3932 | esac | ||
3933 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3934 | $as_echo "$ac_try_echo"; } >&5 | ||
3935 | (eval "$ac_try") 2>&5 | ||
3936 | ac_status=$? | ||
3937 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3938 | test $ac_status = 0; }; }; then | ||
3939 | cross_compiling=no | ||
3940 | else | ||
3941 | if test "$cross_compiling" = maybe; then | ||
3942 | cross_compiling=yes | ||
3943 | else | ||
3944 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3945 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3946 | as_fn_error $? "cannot run C compiled programs. | ||
3947 | If you meant to cross compile, use \`--host'. | ||
3948 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3949 | fi | ||
3950 | fi | ||
3951 | fi | ||
3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
3953 | $as_echo "$cross_compiling" >&6; } | ||
3954 | |||
3955 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
3956 | ac_clean_files=$ac_clean_files_save | ||
3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
3958 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
3959 | if test "${ac_cv_objext+set}" = set; then : | ||
3960 | $as_echo_n "(cached) " >&6 | ||
3961 | else | ||
3962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3963 | /* end confdefs.h. */ | ||
3964 | |||
3965 | int | ||
3966 | main () | ||
3967 | { | ||
3968 | |||
3969 | ; | ||
3970 | return 0; | ||
3971 | } | ||
3972 | _ACEOF | ||
3973 | rm -f conftest.o conftest.obj | ||
3974 | if { { ac_try="$ac_compile" | ||
3975 | case "(($ac_try" in | ||
3976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3977 | *) ac_try_echo=$ac_try;; | ||
3978 | esac | ||
3979 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3980 | $as_echo "$ac_try_echo"; } >&5 | ||
3981 | (eval "$ac_compile") 2>&5 | ||
3982 | ac_status=$? | ||
3983 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3984 | test $ac_status = 0; }; then : | ||
3985 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
3986 | test -f "$ac_file" || continue; | ||
3987 | case $ac_file in | ||
3988 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
3989 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
3990 | break;; | ||
3991 | esac | ||
3992 | done | ||
3993 | else | ||
3994 | $as_echo "$as_me: failed program was:" >&5 | ||
3995 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3996 | |||
3997 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3998 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3999 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
4000 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4001 | fi | ||
4002 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
4003 | fi | ||
4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
4005 | $as_echo "$ac_cv_objext" >&6; } | ||
4006 | OBJEXT=$ac_cv_objext | ||
4007 | ac_objext=$OBJEXT | ||
4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
4009 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
4010 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
4011 | $as_echo_n "(cached) " >&6 | ||
4012 | else | ||
4013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4014 | /* end confdefs.h. */ | ||
4015 | |||
4016 | int | ||
4017 | main () | ||
4018 | { | ||
4019 | #ifndef __GNUC__ | ||
4020 | choke me | ||
4021 | #endif | ||
4022 | |||
4023 | ; | ||
4024 | return 0; | ||
4025 | } | ||
4026 | _ACEOF | ||
4027 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4028 | ac_compiler_gnu=yes | ||
4029 | else | ||
4030 | ac_compiler_gnu=no | ||
4031 | fi | ||
4032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4033 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
4034 | |||
4035 | fi | ||
4036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
4037 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
4038 | if test $ac_compiler_gnu = yes; then | ||
4039 | GCC=yes | ||
4040 | else | ||
4041 | GCC= | ||
4042 | fi | ||
4043 | ac_test_CFLAGS=${CFLAGS+set} | ||
4044 | ac_save_CFLAGS=$CFLAGS | ||
4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
4046 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
4047 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
4048 | $as_echo_n "(cached) " >&6 | ||
4049 | else | ||
4050 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
4051 | ac_c_werror_flag=yes | ||
4052 | ac_cv_prog_cc_g=no | ||
4053 | CFLAGS="-g" | ||
4054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4055 | /* end confdefs.h. */ | ||
4056 | |||
4057 | int | ||
4058 | main () | ||
4059 | { | ||
4060 | |||
4061 | ; | ||
4062 | return 0; | ||
4063 | } | ||
4064 | _ACEOF | ||
4065 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4066 | ac_cv_prog_cc_g=yes | ||
4067 | else | ||
4068 | CFLAGS="" | ||
4069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4070 | /* end confdefs.h. */ | ||
4071 | |||
4072 | int | ||
4073 | main () | ||
4074 | { | ||
4075 | |||
4076 | ; | ||
4077 | return 0; | ||
4078 | } | ||
4079 | _ACEOF | ||
4080 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4081 | |||
4082 | else | ||
4083 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4084 | CFLAGS="-g" | ||
4085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4086 | /* end confdefs.h. */ | ||
4087 | |||
4088 | int | ||
4089 | main () | ||
4090 | { | ||
4091 | |||
4092 | ; | ||
4093 | return 0; | ||
4094 | } | ||
4095 | _ACEOF | ||
4096 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4097 | ac_cv_prog_cc_g=yes | ||
4098 | fi | ||
4099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4100 | fi | ||
4101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4102 | fi | ||
4103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4104 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4105 | fi | ||
4106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
4107 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
4108 | if test "$ac_test_CFLAGS" = set; then | ||
4109 | CFLAGS=$ac_save_CFLAGS | ||
4110 | elif test $ac_cv_prog_cc_g = yes; then | ||
4111 | if test "$GCC" = yes; then | ||
4112 | CFLAGS="-g -O2" | ||
4113 | else | ||
4114 | CFLAGS="-g" | ||
4115 | fi | ||
4116 | else | ||
4117 | if test "$GCC" = yes; then | ||
4118 | CFLAGS="-O2" | ||
4119 | else | ||
4120 | CFLAGS= | ||
4121 | fi | ||
4122 | fi | ||
4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
4124 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
4125 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
4126 | $as_echo_n "(cached) " >&6 | ||
4127 | else | ||
4128 | ac_cv_prog_cc_c89=no | ||
4129 | ac_save_CC=$CC | ||
4130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4131 | /* end confdefs.h. */ | ||
4132 | #include <stdarg.h> | ||
4133 | #include <stdio.h> | ||
4134 | #include <sys/types.h> | ||
4135 | #include <sys/stat.h> | ||
4136 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
4137 | struct buf { int x; }; | ||
4138 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
4139 | static char *e (p, i) | ||
4140 | char **p; | ||
4141 | int i; | ||
4142 | { | ||
4143 | return p[i]; | ||
4144 | } | ||
4145 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
4146 | { | ||
4147 | char *s; | ||
4148 | va_list v; | ||
4149 | va_start (v,p); | ||
4150 | s = g (p, va_arg (v,int)); | ||
4151 | va_end (v); | ||
4152 | return s; | ||
4153 | } | ||
4154 | |||
4155 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
4156 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
4157 | These don't provoke an error unfortunately, instead are silently treated | ||
4158 | as 'x'. The following induces an error, until -std is added to get | ||
4159 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
4160 | array size at least. It's necessary to write '\x00'==0 to get something | ||
4161 | that's true only with -std. */ | ||
4162 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
4163 | |||
4164 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
4165 | inside strings and character constants. */ | ||
4166 | #define FOO(x) 'x' | ||
4167 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
4168 | |||
4169 | int test (int i, double x); | ||
4170 | struct s1 {int (*f) (int a);}; | ||
4171 | struct s2 {int (*f) (double a);}; | ||
4172 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
4173 | int argc; | ||
4174 | char **argv; | ||
4175 | int | ||
4176 | main () | ||
4177 | { | ||
4178 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
4179 | ; | ||
4180 | return 0; | ||
4181 | } | ||
4182 | _ACEOF | ||
4183 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
4184 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
4185 | do | ||
4186 | CC="$ac_save_CC $ac_arg" | ||
4187 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4188 | ac_cv_prog_cc_c89=$ac_arg | ||
4189 | fi | ||
4190 | rm -f core conftest.err conftest.$ac_objext | ||
4191 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
4192 | done | ||
4193 | rm -f conftest.$ac_ext | ||
4194 | CC=$ac_save_CC | ||
4195 | |||
4196 | fi | ||
4197 | # AC_CACHE_VAL | ||
4198 | case "x$ac_cv_prog_cc_c89" in | ||
4199 | x) | ||
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
4201 | $as_echo "none needed" >&6; } ;; | ||
4202 | xno) | ||
4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
4204 | $as_echo "unsupported" >&6; } ;; | ||
4205 | *) | ||
4206 | CC="$CC $ac_cv_prog_cc_c89" | ||
4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
4208 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
4209 | esac | ||
4210 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
4211 | |||
4212 | fi | ||
4213 | |||
4214 | ac_ext=c | ||
4215 | ac_cpp='$CPP $CPPFLAGS' | ||
4216 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4217 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4218 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4219 | |||
4220 | depcc="$CC" am_compiler_list= | ||
4221 | |||
4222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
4223 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
4224 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
4225 | $as_echo_n "(cached) " >&6 | ||
4226 | else | ||
4227 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
4228 | # We make a subdir and do the tests there. Otherwise we can end up | ||
4229 | # making bogus files that we don't know about and never remove. For | ||
4230 | # instance it was reported that on HP-UX the gcc test will end up | ||
4231 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
4232 | # in D'. | ||
4233 | mkdir conftest.dir | ||
4234 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
4235 | # using a relative directory. | ||
4236 | cp "$am_depcomp" conftest.dir | ||
4237 | cd conftest.dir | ||
4238 | # We will build objects and dependencies in a subdirectory because | ||
4239 | # it helps to detect inapplicable dependency modes. For instance | ||
4240 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
4241 | # side effect of compilation, but ICC will put the dependencies in | ||
4242 | # the current directory while Tru64 will put them in the object | ||
4243 | # directory. | ||
4244 | mkdir sub | ||
4245 | |||
4246 | am_cv_CC_dependencies_compiler_type=none | ||
4247 | if test "$am_compiler_list" = ""; then | ||
4248 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
4249 | fi | ||
4250 | am__universal=false | ||
4251 | case " $depcc " in #( | ||
4252 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
4253 | esac | ||
4254 | |||
4255 | for depmode in $am_compiler_list; do | ||
4256 | # Setup a source with many dependencies, because some compilers | ||
4257 | # like to wrap large dependency lists on column 80 (with \), and | ||
4258 | # we should not choose a depcomp mode which is confused by this. | ||
4259 | # | ||
4260 | # We need to recreate these files for each test, as the compiler may | ||
4261 | # overwrite some of them when testing with obscure command lines. | ||
4262 | # This happens at least with the AIX C compiler. | ||
4263 | : > sub/conftest.c | ||
4264 | for i in 1 2 3 4 5 6; do | ||
4265 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
4266 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
4267 | # Solaris 8's {/usr,}/bin/sh. | ||
4268 | touch sub/conftst$i.h | ||
4269 | done | ||
4270 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
4271 | |||
4272 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
4273 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
4274 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
4275 | # versions had trouble with output in subdirs | ||
4276 | am__obj=sub/conftest.${OBJEXT-o} | ||
4277 | am__minus_obj="-o $am__obj" | ||
4278 | case $depmode in | ||
4279 | gcc) | ||
4280 | # This depmode causes a compiler race in universal mode. | ||
4281 | test "$am__universal" = false || continue | ||
4282 | ;; | ||
4283 | nosideeffect) | ||
4284 | # after this tag, mechanisms are not by side-effect, so they'll | ||
4285 | # only be used when explicitly requested | ||
4286 | if test "x$enable_dependency_tracking" = xyes; then | ||
4287 | continue | ||
4288 | else | ||
4289 | break | ||
4290 | fi | ||
4291 | ;; | ||
4292 | msvisualcpp | msvcmsys) | ||
4293 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
4294 | # not run yet. These depmodes are late enough in the game, and | ||
4295 | # so weak that their functioning should not be impacted. | ||
4296 | am__obj=conftest.${OBJEXT-o} | ||
4297 | am__minus_obj= | ||
4298 | ;; | ||
4299 | none) break ;; | ||
4300 | esac | ||
4301 | if depmode=$depmode \ | ||
4302 | source=sub/conftest.c object=$am__obj \ | ||
4303 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
4304 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
4305 | >/dev/null 2>conftest.err && | ||
4306 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
4307 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
4308 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
4309 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
4310 | # icc doesn't choke on unknown options, it will just issue warnings | ||
4311 | # or remarks (even with -Werror). So we grep stderr for any message | ||
4312 | # that says an option was ignored or not supported. | ||
4313 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
4314 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
4315 | # The diagnosis changed in icc 8.0: | ||
4316 | # icc: Command line remark: option '-MP' not supported | ||
4317 | if (grep 'ignoring option' conftest.err || | ||
4318 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
4319 | am_cv_CC_dependencies_compiler_type=$depmode | ||
4320 | break | ||
4321 | fi | ||
4322 | fi | ||
4323 | done | ||
4324 | |||
4325 | cd .. | ||
4326 | rm -rf conftest.dir | ||
4327 | else | ||
4328 | am_cv_CC_dependencies_compiler_type=none | ||
4329 | fi | ||
4330 | |||
4331 | fi | ||
4332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
4333 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
4334 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
4335 | |||
4336 | if | ||
4337 | test "x$enable_dependency_tracking" != xno \ | ||
4338 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
4339 | am__fastdepCC_TRUE= | ||
4340 | am__fastdepCC_FALSE='#' | ||
4341 | else | ||
4342 | am__fastdepCC_TRUE='#' | ||
4343 | am__fastdepCC_FALSE= | ||
4344 | fi | ||
4345 | |||
4346 | |||
4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | ||
4348 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
4349 | if test "${ac_cv_path_SED+set}" = set; then : | ||
4350 | $as_echo_n "(cached) " >&6 | ||
4351 | else | ||
4352 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | ||
4353 | for ac_i in 1 2 3 4 5 6 7; do | ||
4354 | ac_script="$ac_script$as_nl$ac_script" | ||
4355 | done | ||
4356 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||
4357 | { ac_script=; unset ac_script;} | ||
4358 | if test -z "$SED"; then | ||
4359 | ac_path_SED_found=false | ||
4360 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4362 | for as_dir in $PATH | ||
4363 | do | ||
4364 | IFS=$as_save_IFS | ||
4365 | test -z "$as_dir" && as_dir=. | ||
4366 | for ac_prog in sed gsed; do | ||
4367 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4368 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | ||
4369 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | ||
4370 | # Check for GNU ac_path_SED and select it if it is found. | ||
4371 | # Check for GNU $ac_path_SED | ||
4372 | case `"$ac_path_SED" --version 2>&1` in | ||
4373 | *GNU*) | ||
4374 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||
4375 | *) | ||
4376 | ac_count=0 | ||
4377 | $as_echo_n 0123456789 >"conftest.in" | ||
4378 | while : | ||
4379 | do | ||
4380 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4381 | mv "conftest.tmp" "conftest.in" | ||
4382 | cp "conftest.in" "conftest.nl" | ||
4383 | $as_echo '' >> "conftest.nl" | ||
4384 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4385 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4386 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4387 | if test $ac_count -gt ${ac_path_SED_max-0}; then | ||
4388 | # Best one so far, save it but keep looking for a better one | ||
4389 | ac_cv_path_SED="$ac_path_SED" | ||
4390 | ac_path_SED_max=$ac_count | ||
4391 | fi | ||
4392 | # 10*(2^10) chars as input seems more than enough | ||
4393 | test $ac_count -gt 10 && break | ||
4394 | done | ||
4395 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4396 | esac | ||
4397 | |||
4398 | $ac_path_SED_found && break 3 | ||
4399 | done | ||
4400 | done | ||
4401 | done | ||
4402 | IFS=$as_save_IFS | ||
4403 | if test -z "$ac_cv_path_SED"; then | ||
4404 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | ||
4405 | fi | ||
4406 | else | ||
4407 | ac_cv_path_SED=$SED | ||
4408 | fi | ||
4409 | |||
4410 | fi | ||
4411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | ||
4412 | $as_echo "$ac_cv_path_SED" >&6; } | ||
4413 | SED="$ac_cv_path_SED" | ||
4414 | rm -f conftest.sed | ||
4415 | |||
4416 | test -z "$SED" && SED=sed | ||
4417 | Xsed="$SED -e 1s/^X//" | ||
4418 | |||
4419 | |||
4420 | |||
4421 | |||
4422 | |||
4423 | |||
4424 | |||
4425 | |||
4426 | |||
4427 | |||
4428 | |||
4429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
4430 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
4431 | if test "${ac_cv_path_GREP+set}" = set; then : | ||
4432 | $as_echo_n "(cached) " >&6 | ||
4433 | else | ||
4434 | if test -z "$GREP"; then | ||
4435 | ac_path_GREP_found=false | ||
4436 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4438 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4439 | do | ||
4440 | IFS=$as_save_IFS | ||
4441 | test -z "$as_dir" && as_dir=. | ||
4442 | for ac_prog in grep ggrep; do | ||
4443 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4444 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4445 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
4446 | # Check for GNU ac_path_GREP and select it if it is found. | ||
4447 | # Check for GNU $ac_path_GREP | ||
4448 | case `"$ac_path_GREP" --version 2>&1` in | ||
4449 | *GNU*) | ||
4450 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
4451 | *) | ||
4452 | ac_count=0 | ||
4453 | $as_echo_n 0123456789 >"conftest.in" | ||
4454 | while : | ||
4455 | do | ||
4456 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4457 | mv "conftest.tmp" "conftest.in" | ||
4458 | cp "conftest.in" "conftest.nl" | ||
4459 | $as_echo 'GREP' >> "conftest.nl" | ||
4460 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4461 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4462 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4463 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
4464 | # Best one so far, save it but keep looking for a better one | ||
4465 | ac_cv_path_GREP="$ac_path_GREP" | ||
4466 | ac_path_GREP_max=$ac_count | ||
4467 | fi | ||
4468 | # 10*(2^10) chars as input seems more than enough | ||
4469 | test $ac_count -gt 10 && break | ||
4470 | done | ||
4471 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4472 | esac | ||
4473 | |||
4474 | $ac_path_GREP_found && break 3 | ||
4475 | done | ||
4476 | done | ||
4477 | done | ||
4478 | IFS=$as_save_IFS | ||
4479 | if test -z "$ac_cv_path_GREP"; then | ||
4480 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4481 | fi | ||
4482 | else | ||
4483 | ac_cv_path_GREP=$GREP | ||
4484 | fi | ||
4485 | |||
4486 | fi | ||
4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
4488 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
4489 | GREP="$ac_cv_path_GREP" | ||
4490 | |||
4491 | |||
4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
4493 | $as_echo_n "checking for egrep... " >&6; } | ||
4494 | if test "${ac_cv_path_EGREP+set}" = set; then : | ||
4495 | $as_echo_n "(cached) " >&6 | ||
4496 | else | ||
4497 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4498 | then ac_cv_path_EGREP="$GREP -E" | ||
4499 | else | ||
4500 | if test -z "$EGREP"; then | ||
4501 | ac_path_EGREP_found=false | ||
4502 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4504 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4505 | do | ||
4506 | IFS=$as_save_IFS | ||
4507 | test -z "$as_dir" && as_dir=. | ||
4508 | for ac_prog in egrep; do | ||
4509 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4510 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4511 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4512 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4513 | # Check for GNU $ac_path_EGREP | ||
4514 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4515 | *GNU*) | ||
4516 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4517 | *) | ||
4518 | ac_count=0 | ||
4519 | $as_echo_n 0123456789 >"conftest.in" | ||
4520 | while : | ||
4521 | do | ||
4522 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4523 | mv "conftest.tmp" "conftest.in" | ||
4524 | cp "conftest.in" "conftest.nl" | ||
4525 | $as_echo 'EGREP' >> "conftest.nl" | ||
4526 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4527 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4528 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4529 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4530 | # Best one so far, save it but keep looking for a better one | ||
4531 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4532 | ac_path_EGREP_max=$ac_count | ||
4533 | fi | ||
4534 | # 10*(2^10) chars as input seems more than enough | ||
4535 | test $ac_count -gt 10 && break | ||
4536 | done | ||
4537 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4538 | esac | ||
4539 | |||
4540 | $ac_path_EGREP_found && break 3 | ||
4541 | done | ||
4542 | done | ||
4543 | done | ||
4544 | IFS=$as_save_IFS | ||
4545 | if test -z "$ac_cv_path_EGREP"; then | ||
4546 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4547 | fi | ||
4548 | else | ||
4549 | ac_cv_path_EGREP=$EGREP | ||
4550 | fi | ||
4551 | |||
4552 | fi | ||
4553 | fi | ||
4554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
4555 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
4556 | EGREP="$ac_cv_path_EGREP" | ||
4557 | |||
4558 | |||
4559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | ||
4560 | $as_echo_n "checking for fgrep... " >&6; } | ||
4561 | if test "${ac_cv_path_FGREP+set}" = set; then : | ||
4562 | $as_echo_n "(cached) " >&6 | ||
4563 | else | ||
4564 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | ||
4565 | then ac_cv_path_FGREP="$GREP -F" | ||
4566 | else | ||
4567 | if test -z "$FGREP"; then | ||
4568 | ac_path_FGREP_found=false | ||
4569 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4571 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4572 | do | ||
4573 | IFS=$as_save_IFS | ||
4574 | test -z "$as_dir" && as_dir=. | ||
4575 | for ac_prog in fgrep; do | ||
4576 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4577 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4578 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | ||
4579 | # Check for GNU ac_path_FGREP and select it if it is found. | ||
4580 | # Check for GNU $ac_path_FGREP | ||
4581 | case `"$ac_path_FGREP" --version 2>&1` in | ||
4582 | *GNU*) | ||
4583 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | ||
4584 | *) | ||
4585 | ac_count=0 | ||
4586 | $as_echo_n 0123456789 >"conftest.in" | ||
4587 | while : | ||
4588 | do | ||
4589 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4590 | mv "conftest.tmp" "conftest.in" | ||
4591 | cp "conftest.in" "conftest.nl" | ||
4592 | $as_echo 'FGREP' >> "conftest.nl" | ||
4593 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4594 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4595 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4596 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | ||
4597 | # Best one so far, save it but keep looking for a better one | ||
4598 | ac_cv_path_FGREP="$ac_path_FGREP" | ||
4599 | ac_path_FGREP_max=$ac_count | ||
4600 | fi | ||
4601 | # 10*(2^10) chars as input seems more than enough | ||
4602 | test $ac_count -gt 10 && break | ||
4603 | done | ||
4604 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4605 | esac | ||
4606 | |||
4607 | $ac_path_FGREP_found && break 3 | ||
4608 | done | ||
4609 | done | ||
4610 | done | ||
4611 | IFS=$as_save_IFS | ||
4612 | if test -z "$ac_cv_path_FGREP"; then | ||
4613 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4614 | fi | ||
4615 | else | ||
4616 | ac_cv_path_FGREP=$FGREP | ||
4617 | fi | ||
4618 | |||
4619 | fi | ||
4620 | fi | ||
4621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | ||
4622 | $as_echo "$ac_cv_path_FGREP" >&6; } | ||
4623 | FGREP="$ac_cv_path_FGREP" | ||
4624 | |||
4625 | |||
4626 | test -z "$GREP" && GREP=grep | ||
4627 | |||
4628 | |||
4629 | |||
4630 | |||
4631 | |||
4632 | |||
4633 | |||
4634 | |||
4635 | |||
4636 | |||
4637 | |||
4638 | |||
4639 | |||
4640 | |||
4641 | |||
4642 | |||
4643 | |||
4644 | |||
4645 | |||
4646 | # Check whether --with-gnu-ld was given. | ||
4647 | if test "${with_gnu_ld+set}" = set; then : | ||
4648 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
4649 | else | ||
4650 | with_gnu_ld=no | ||
4651 | fi | ||
4652 | |||
4653 | ac_prog=ld | ||
4654 | if test "$GCC" = yes; then | ||
4655 | # Check if gcc -print-prog-name=ld gives a path. | ||
4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | ||
4657 | $as_echo_n "checking for ld used by $CC... " >&6; } | ||
4658 | case $host in | ||
4659 | *-*-mingw*) | ||
4660 | # gcc leaves a trailing carriage return which upsets mingw | ||
4661 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
4662 | *) | ||
4663 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
4664 | esac | ||
4665 | case $ac_prog in | ||
4666 | # Accept absolute paths. | ||
4667 | [\\/]* | ?:[\\/]*) | ||
4668 | re_direlt='/[^/][^/]*/\.\./' | ||
4669 | # Canonicalize the pathname of ld | ||
4670 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
4671 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
4672 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
4673 | done | ||
4674 | test -z "$LD" && LD="$ac_prog" | ||
4675 | ;; | ||
4676 | "") | ||
4677 | # If it fails, then pretend we aren't using GCC. | ||
4678 | ac_prog=ld | ||
4679 | ;; | ||
4680 | *) | ||
4681 | # If it is relative, then search for the first ld in PATH. | ||
4682 | with_gnu_ld=unknown | ||
4683 | ;; | ||
4684 | esac | ||
4685 | elif test "$with_gnu_ld" = yes; then | ||
4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
4687 | $as_echo_n "checking for GNU ld... " >&6; } | ||
4688 | else | ||
4689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
4690 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
4691 | fi | ||
4692 | if test "${lt_cv_path_LD+set}" = set; then : | ||
4693 | $as_echo_n "(cached) " >&6 | ||
4694 | else | ||
4695 | if test -z "$LD"; then | ||
4696 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
4697 | for ac_dir in $PATH; do | ||
4698 | IFS="$lt_save_ifs" | ||
4699 | test -z "$ac_dir" && ac_dir=. | ||
4700 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
4701 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
4702 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
4703 | # but apparently some variants of GNU ld only accept -v. | ||
4704 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
4705 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
4706 | *GNU* | *'with BFD'*) | ||
4707 | test "$with_gnu_ld" != no && break | ||
4708 | ;; | ||
4709 | *) | ||
4710 | test "$with_gnu_ld" != yes && break | ||
4711 | ;; | ||
4712 | esac | ||
4713 | fi | ||
4714 | done | ||
4715 | IFS="$lt_save_ifs" | ||
4716 | else | ||
4717 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
4718 | fi | ||
4719 | fi | ||
4720 | |||
4721 | LD="$lt_cv_path_LD" | ||
4722 | if test -n "$LD"; then | ||
4723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
4724 | $as_echo "$LD" >&6; } | ||
4725 | else | ||
4726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4727 | $as_echo "no" >&6; } | ||
4728 | fi | ||
4729 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
4731 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
4732 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | ||
4733 | $as_echo_n "(cached) " >&6 | ||
4734 | else | ||
4735 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
4736 | case `$LD -v 2>&1 </dev/null` in | ||
4737 | *GNU* | *'with BFD'*) | ||
4738 | lt_cv_prog_gnu_ld=yes | ||
4739 | ;; | ||
4740 | *) | ||
4741 | lt_cv_prog_gnu_ld=no | ||
4742 | ;; | ||
4743 | esac | ||
4744 | fi | ||
4745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ||
4746 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | ||
4747 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
4748 | |||
4749 | |||
4750 | |||
4751 | |||
4752 | |||
4753 | |||
4754 | |||
4755 | |||
4756 | |||
4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | ||
4758 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | ||
4759 | if test "${lt_cv_path_NM+set}" = set; then : | ||
4760 | $as_echo_n "(cached) " >&6 | ||
4761 | else | ||
4762 | if test -n "$NM"; then | ||
4763 | # Let the user override the test. | ||
4764 | lt_cv_path_NM="$NM" | ||
4765 | else | ||
4766 | lt_nm_to_check="${ac_tool_prefix}nm" | ||
4767 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
4768 | lt_nm_to_check="$lt_nm_to_check nm" | ||
4769 | fi | ||
4770 | for lt_tmp_nm in $lt_nm_to_check; do | ||
4771 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
4772 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
4773 | IFS="$lt_save_ifs" | ||
4774 | test -z "$ac_dir" && ac_dir=. | ||
4775 | tmp_nm="$ac_dir/$lt_tmp_nm" | ||
4776 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
4777 | # Check to see if the nm accepts a BSD-compat flag. | ||
4778 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
4779 | # nm: unknown option "B" ignored | ||
4780 | # Tru64's nm complains that /dev/null is an invalid object file | ||
4781 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
4782 | */dev/null* | *'Invalid file or object type'*) | ||
4783 | lt_cv_path_NM="$tmp_nm -B" | ||
4784 | break | ||
4785 | ;; | ||
4786 | *) | ||
4787 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
4788 | */dev/null*) | ||
4789 | lt_cv_path_NM="$tmp_nm -p" | ||
4790 | break | ||
4791 | ;; | ||
4792 | *) | ||
4793 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
4794 | continue # so that we can try to find one that supports BSD flags | ||
4795 | ;; | ||
4796 | esac | ||
4797 | ;; | ||
4798 | esac | ||
4799 | fi | ||
4800 | done | ||
4801 | IFS="$lt_save_ifs" | ||
4802 | done | ||
4803 | : ${lt_cv_path_NM=no} | ||
4804 | fi | ||
4805 | fi | ||
4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | ||
4807 | $as_echo "$lt_cv_path_NM" >&6; } | ||
4808 | if test "$lt_cv_path_NM" != "no"; then | ||
4809 | NM="$lt_cv_path_NM" | ||
4810 | else | ||
4811 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
4812 | if test -n "$ac_tool_prefix"; then | ||
4813 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
4814 | do | ||
4815 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4816 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4818 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4819 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | ||
4820 | $as_echo_n "(cached) " >&6 | ||
4821 | else | ||
4822 | if test -n "$DUMPBIN"; then | ||
4823 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | ||
4824 | else | ||
4825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4826 | for as_dir in $PATH | ||
4827 | do | ||
4828 | IFS=$as_save_IFS | ||
4829 | test -z "$as_dir" && as_dir=. | ||
4830 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4832 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | ||
4833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4834 | break 2 | ||
4835 | fi | ||
4836 | done | ||
4837 | done | ||
4838 | IFS=$as_save_IFS | ||
4839 | |||
4840 | fi | ||
4841 | fi | ||
4842 | DUMPBIN=$ac_cv_prog_DUMPBIN | ||
4843 | if test -n "$DUMPBIN"; then | ||
4844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | ||
4845 | $as_echo "$DUMPBIN" >&6; } | ||
4846 | else | ||
4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4848 | $as_echo "no" >&6; } | ||
4849 | fi | ||
4850 | |||
4851 | |||
4852 | test -n "$DUMPBIN" && break | ||
4853 | done | ||
4854 | fi | ||
4855 | if test -z "$DUMPBIN"; then | ||
4856 | ac_ct_DUMPBIN=$DUMPBIN | ||
4857 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
4858 | do | ||
4859 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4860 | set dummy $ac_prog; ac_word=$2 | ||
4861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4862 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4863 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | ||
4864 | $as_echo_n "(cached) " >&6 | ||
4865 | else | ||
4866 | if test -n "$ac_ct_DUMPBIN"; then | ||
4867 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | ||
4868 | else | ||
4869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4870 | for as_dir in $PATH | ||
4871 | do | ||
4872 | IFS=$as_save_IFS | ||
4873 | test -z "$as_dir" && as_dir=. | ||
4874 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4875 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4876 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | ||
4877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4878 | break 2 | ||
4879 | fi | ||
4880 | done | ||
4881 | done | ||
4882 | IFS=$as_save_IFS | ||
4883 | |||
4884 | fi | ||
4885 | fi | ||
4886 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | ||
4887 | if test -n "$ac_ct_DUMPBIN"; then | ||
4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | ||
4889 | $as_echo "$ac_ct_DUMPBIN" >&6; } | ||
4890 | else | ||
4891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4892 | $as_echo "no" >&6; } | ||
4893 | fi | ||
4894 | |||
4895 | |||
4896 | test -n "$ac_ct_DUMPBIN" && break | ||
4897 | done | ||
4898 | |||
4899 | if test "x$ac_ct_DUMPBIN" = x; then | ||
4900 | DUMPBIN=":" | ||
4901 | else | ||
4902 | case $cross_compiling:$ac_tool_warned in | ||
4903 | yes:) | ||
4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4905 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4906 | ac_tool_warned=yes ;; | ||
4907 | esac | ||
4908 | DUMPBIN=$ac_ct_DUMPBIN | ||
4909 | fi | ||
4910 | fi | ||
4911 | |||
4912 | |||
4913 | if test "$DUMPBIN" != ":"; then | ||
4914 | NM="$DUMPBIN" | ||
4915 | fi | ||
4916 | fi | ||
4917 | test -z "$NM" && NM=nm | ||
4918 | |||
4919 | |||
4920 | |||
4921 | |||
4922 | |||
4923 | |||
4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | ||
4925 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | ||
4926 | if test "${lt_cv_nm_interface+set}" = set; then : | ||
4927 | $as_echo_n "(cached) " >&6 | ||
4928 | else | ||
4929 | lt_cv_nm_interface="BSD nm" | ||
4930 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
4931 | (eval echo "\"\$as_me:4931: $ac_compile\"" >&5) | ||
4932 | (eval "$ac_compile" 2>conftest.err) | ||
4933 | cat conftest.err >&5 | ||
4934 | (eval echo "\"\$as_me:4934: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
4935 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
4936 | cat conftest.err >&5 | ||
4937 | (eval echo "\"\$as_me:4937: output\"" >&5) | ||
4938 | cat conftest.out >&5 | ||
4939 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
4940 | lt_cv_nm_interface="MS dumpbin" | ||
4941 | fi | ||
4942 | rm -f conftest* | ||
4943 | fi | ||
4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | ||
4945 | $as_echo "$lt_cv_nm_interface" >&6; } | ||
4946 | |||
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | ||
4948 | $as_echo_n "checking whether ln -s works... " >&6; } | ||
4949 | LN_S=$as_ln_s | ||
4950 | if test "$LN_S" = "ln -s"; then | ||
4951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
4952 | $as_echo "yes" >&6; } | ||
4953 | else | ||
4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | ||
4955 | $as_echo "no, using $LN_S" >&6; } | ||
4956 | fi | ||
4957 | |||
4958 | # find the maximum length of command line arguments | ||
4959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | ||
4960 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | ||
4961 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | ||
4962 | $as_echo_n "(cached) " >&6 | ||
4963 | else | ||
4964 | i=0 | ||
4965 | teststring="ABCD" | ||
4966 | |||
4967 | case $build_os in | ||
4968 | msdosdjgpp*) | ||
4969 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
4970 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
4971 | # during glob expansion). Even if it were fixed, the result of this | ||
4972 | # check would be larger than it should be. | ||
4973 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
4974 | ;; | ||
4975 | |||
4976 | gnu*) | ||
4977 | # Under GNU Hurd, this test is not required because there is | ||
4978 | # no limit to the length of command line arguments. | ||
4979 | # Libtool will interpret -1 as no limit whatsoever | ||
4980 | lt_cv_sys_max_cmd_len=-1; | ||
4981 | ;; | ||
4982 | |||
4983 | cygwin* | mingw* | cegcc*) | ||
4984 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
4985 | # about 5 minutes as the teststring grows exponentially. | ||
4986 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
4987 | # you end up with a "frozen" computer, even though with patience | ||
4988 | # the test eventually succeeds (with a max line length of 256k). | ||
4989 | # Instead, let's just punt: use the minimum linelength reported by | ||
4990 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
4991 | lt_cv_sys_max_cmd_len=8192; | ||
4992 | ;; | ||
4993 | |||
4994 | amigaos*) | ||
4995 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
4996 | # So we just punt and use a minimum line length of 8192. | ||
4997 | lt_cv_sys_max_cmd_len=8192; | ||
4998 | ;; | ||
4999 | |||
5000 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
5001 | # This has been around since 386BSD, at least. Likely further. | ||
5002 | if test -x /sbin/sysctl; then | ||
5003 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
5004 | elif test -x /usr/sbin/sysctl; then | ||
5005 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
5006 | else | ||
5007 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
5008 | fi | ||
5009 | # And add a safety zone | ||
5010 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
5011 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
5012 | ;; | ||
5013 | |||
5014 | interix*) | ||
5015 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
5016 | lt_cv_sys_max_cmd_len=196608 | ||
5017 | ;; | ||
5018 | |||
5019 | osf*) | ||
5020 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
5021 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
5022 | # nice to cause kernel panics so lets avoid the loop below. | ||
5023 | # First set a reasonable default. | ||
5024 | lt_cv_sys_max_cmd_len=16384 | ||
5025 | # | ||
5026 | if test -x /sbin/sysconfig; then | ||
5027 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
5028 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
5029 | esac | ||
5030 | fi | ||
5031 | ;; | ||
5032 | sco3.2v5*) | ||
5033 | lt_cv_sys_max_cmd_len=102400 | ||
5034 | ;; | ||
5035 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
5036 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
5037 | if test -n "$kargmax"; then | ||
5038 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | ||
5039 | else | ||
5040 | lt_cv_sys_max_cmd_len=32768 | ||
5041 | fi | ||
5042 | ;; | ||
5043 | *) | ||
5044 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | ||
5045 | if test -n "$lt_cv_sys_max_cmd_len"; then | ||
5046 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
5047 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
5048 | else | ||
5049 | # Make teststring a little bigger before we do anything with it. | ||
5050 | # a 1K string should be a reasonable start. | ||
5051 | for i in 1 2 3 4 5 6 7 8 ; do | ||
5052 | teststring=$teststring$teststring | ||
5053 | done | ||
5054 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
5055 | # If test is not a shell built-in, we'll probably end up computing a | ||
5056 | # maximum length that is only half of the actual maximum length, but | ||
5057 | # we can't tell. | ||
5058 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | ||
5059 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | ||
5060 | test $i != 17 # 1/2 MB should be enough | ||
5061 | do | ||
5062 | i=`expr $i + 1` | ||
5063 | teststring=$teststring$teststring | ||
5064 | done | ||
5065 | # Only check the string length outside the loop. | ||
5066 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | ||
5067 | teststring= | ||
5068 | # Add a significant safety factor because C++ compilers can tack on | ||
5069 | # massive amounts of additional arguments before passing them to the | ||
5070 | # linker. It appears as though 1/2 is a usable value. | ||
5071 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
5072 | fi | ||
5073 | ;; | ||
5074 | esac | ||
5075 | |||
5076 | fi | ||
5077 | |||
5078 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | ||
5080 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | ||
5081 | else | ||
5082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||
5083 | $as_echo "none" >&6; } | ||
5084 | fi | ||
5085 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
5086 | |||
5087 | |||
5088 | |||
5089 | |||
5090 | |||
5091 | |||
5092 | : ${CP="cp -f"} | ||
5093 | : ${MV="mv -f"} | ||
5094 | : ${RM="rm -f"} | ||
5095 | |||
5096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | ||
5097 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | ||
5098 | # Try some XSI features | ||
5099 | xsi_shell=no | ||
5100 | ( _lt_dummy="a/b/c" | ||
5101 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
5102 | = c,a/b,, \ | ||
5103 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
5104 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
5105 | && xsi_shell=yes | ||
5106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | ||
5107 | $as_echo "$xsi_shell" >&6; } | ||
5108 | |||
5109 | |||
5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | ||
5111 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | ||
5112 | lt_shell_append=no | ||
5113 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | ||
5114 | >/dev/null 2>&1 \ | ||
5115 | && lt_shell_append=yes | ||
5116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | ||
5117 | $as_echo "$lt_shell_append" >&6; } | ||
5118 | |||
5119 | |||
5120 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
5121 | lt_unset=unset | ||
5122 | else | ||
5123 | lt_unset=false | ||
5124 | fi | ||
5125 | |||
5126 | |||
5127 | |||
5128 | |||
5129 | |||
5130 | # test EBCDIC or ASCII | ||
5131 | case `echo X|tr X '\101'` in | ||
5132 | A) # ASCII based system | ||
5133 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | ||
5134 | lt_SP2NL='tr \040 \012' | ||
5135 | lt_NL2SP='tr \015\012 \040\040' | ||
5136 | ;; | ||
5137 | *) # EBCDIC based system | ||
5138 | lt_SP2NL='tr \100 \n' | ||
5139 | lt_NL2SP='tr \r\n \100\100' | ||
5140 | ;; | ||
5141 | esac | ||
5142 | |||
5143 | |||
5144 | |||
5145 | |||
5146 | |||
5147 | |||
5148 | |||
5149 | |||
5150 | |||
5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
5152 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
5153 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | ||
5154 | $as_echo_n "(cached) " >&6 | ||
5155 | else | ||
5156 | lt_cv_ld_reload_flag='-r' | ||
5157 | fi | ||
5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | ||
5159 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | ||
5160 | reload_flag=$lt_cv_ld_reload_flag | ||
5161 | case $reload_flag in | ||
5162 | "" | " "*) ;; | ||
5163 | *) reload_flag=" $reload_flag" ;; | ||
5164 | esac | ||
5165 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
5166 | case $host_os in | ||
5167 | darwin*) | ||
5168 | if test "$GCC" = yes; then | ||
5169 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
5170 | else | ||
5171 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
5172 | fi | ||
5173 | ;; | ||
5174 | esac | ||
5175 | |||
5176 | |||
5177 | |||
5178 | |||
5179 | |||
5180 | |||
5181 | |||
5182 | |||
5183 | |||
5184 | if test -n "$ac_tool_prefix"; then | ||
5185 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
5186 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5188 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5189 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
5190 | $as_echo_n "(cached) " >&6 | ||
5191 | else | ||
5192 | if test -n "$OBJDUMP"; then | ||
5193 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
5194 | else | ||
5195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5196 | for as_dir in $PATH | ||
5197 | do | ||
5198 | IFS=$as_save_IFS | ||
5199 | test -z "$as_dir" && as_dir=. | ||
5200 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5201 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5202 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
5203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5204 | break 2 | ||
5205 | fi | ||
5206 | done | ||
5207 | done | ||
5208 | IFS=$as_save_IFS | ||
5209 | |||
5210 | fi | ||
5211 | fi | ||
5212 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
5213 | if test -n "$OBJDUMP"; then | ||
5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
5215 | $as_echo "$OBJDUMP" >&6; } | ||
5216 | else | ||
5217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5218 | $as_echo "no" >&6; } | ||
5219 | fi | ||
5220 | |||
5221 | |||
5222 | fi | ||
5223 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
5224 | ac_ct_OBJDUMP=$OBJDUMP | ||
5225 | # Extract the first word of "objdump", so it can be a program name with args. | ||
5226 | set dummy objdump; ac_word=$2 | ||
5227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5228 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5229 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | ||
5230 | $as_echo_n "(cached) " >&6 | ||
5231 | else | ||
5232 | if test -n "$ac_ct_OBJDUMP"; then | ||
5233 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
5234 | else | ||
5235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5236 | for as_dir in $PATH | ||
5237 | do | ||
5238 | IFS=$as_save_IFS | ||
5239 | test -z "$as_dir" && as_dir=. | ||
5240 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5241 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5242 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
5243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5244 | break 2 | ||
5245 | fi | ||
5246 | done | ||
5247 | done | ||
5248 | IFS=$as_save_IFS | ||
5249 | |||
5250 | fi | ||
5251 | fi | ||
5252 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
5253 | if test -n "$ac_ct_OBJDUMP"; then | ||
5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
5255 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
5256 | else | ||
5257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5258 | $as_echo "no" >&6; } | ||
5259 | fi | ||
5260 | |||
5261 | if test "x$ac_ct_OBJDUMP" = x; then | ||
5262 | OBJDUMP="false" | ||
5263 | else | ||
5264 | case $cross_compiling:$ac_tool_warned in | ||
5265 | yes:) | ||
5266 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5267 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5268 | ac_tool_warned=yes ;; | ||
5269 | esac | ||
5270 | OBJDUMP=$ac_ct_OBJDUMP | ||
5271 | fi | ||
5272 | else | ||
5273 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
5274 | fi | ||
5275 | |||
5276 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
5277 | |||
5278 | |||
5279 | |||
5280 | |||
5281 | |||
5282 | |||
5283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | ||
5284 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | ||
5285 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | ||
5286 | $as_echo_n "(cached) " >&6 | ||
5287 | else | ||
5288 | lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
5289 | lt_cv_file_magic_test_file= | ||
5290 | lt_cv_deplibs_check_method='unknown' | ||
5291 | # Need to set the preceding variable on all platforms that support | ||
5292 | # interlibrary dependencies. | ||
5293 | # 'none' -- dependencies not supported. | ||
5294 | # `unknown' -- same as none, but documents that we really don't know. | ||
5295 | # 'pass_all' -- all dependencies passed with no checks. | ||
5296 | # 'test_compile' -- check by making test program. | ||
5297 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
5298 | # which responds to the $file_magic_cmd with a given extended regex. | ||
5299 | # If you have `file' or equivalent on your system and you're not sure | ||
5300 | # whether `pass_all' will *always* work, you probably want this one. | ||
5301 | |||
5302 | case $host_os in | ||
5303 | aix[4-9]*) | ||
5304 | lt_cv_deplibs_check_method=pass_all | ||
5305 | ;; | ||
5306 | |||
5307 | beos*) | ||
5308 | lt_cv_deplibs_check_method=pass_all | ||
5309 | ;; | ||
5310 | |||
5311 | bsdi[45]*) | ||
5312 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | ||
5313 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
5314 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
5315 | ;; | ||
5316 | |||
5317 | cygwin*) | ||
5318 | # func_win32_libid is a shell function defined in ltmain.sh | ||
5319 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
5320 | lt_cv_file_magic_cmd='func_win32_libid' | ||
5321 | ;; | ||
5322 | |||
5323 | mingw* | pw32*) | ||
5324 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
5325 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
5326 | # unless we find 'file', for example because we are cross-compiling. | ||
5327 | if ( file / ) >/dev/null 2>&1; then | ||
5328 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
5329 | lt_cv_file_magic_cmd='func_win32_libid' | ||
5330 | else | ||
5331 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
5332 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
5333 | fi | ||
5334 | ;; | ||
5335 | |||
5336 | cegcc) | ||
5337 | # use the weaker test based on 'objdump'. See mingw*. | ||
5338 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | ||
5339 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
5340 | ;; | ||
5341 | |||
5342 | darwin* | rhapsody*) | ||
5343 | lt_cv_deplibs_check_method=pass_all | ||
5344 | ;; | ||
5345 | |||
5346 | freebsd* | dragonfly*) | ||
5347 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
5348 | case $host_cpu in | ||
5349 | i*86 ) | ||
5350 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
5351 | # Let's accept both of them until this is cleared up. | ||
5352 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | ||
5353 | lt_cv_file_magic_cmd=/usr/bin/file | ||
5354 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
5355 | ;; | ||
5356 | esac | ||
5357 | else | ||
5358 | lt_cv_deplibs_check_method=pass_all | ||
5359 | fi | ||
5360 | ;; | ||
5361 | |||
5362 | gnu*) | ||
5363 | lt_cv_deplibs_check_method=pass_all | ||
5364 | ;; | ||
5365 | |||
5366 | hpux10.20* | hpux11*) | ||
5367 | lt_cv_file_magic_cmd=/usr/bin/file | ||
5368 | case $host_cpu in | ||
5369 | ia64*) | ||
5370 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | ||
5371 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
5372 | ;; | ||
5373 | hppa*64*) | ||
5374 | 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]' | ||
5375 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
5376 | ;; | ||
5377 | *) | ||
5378 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
5379 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
5380 | ;; | ||
5381 | esac | ||
5382 | ;; | ||
5383 | |||
5384 | interix[3-9]*) | ||
5385 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
5386 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | ||
5387 | ;; | ||
5388 | |||
5389 | irix5* | irix6* | nonstopux*) | ||
5390 | case $LD in | ||
5391 | *-32|*"-32 ") libmagic=32-bit;; | ||
5392 | *-n32|*"-n32 ") libmagic=N32;; | ||
5393 | *-64|*"-64 ") libmagic=64-bit;; | ||
5394 | *) libmagic=never-match;; | ||
5395 | esac | ||
5396 | lt_cv_deplibs_check_method=pass_all | ||
5397 | ;; | ||
5398 | |||
5399 | # This must be Linux ELF. | ||
5400 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
5401 | lt_cv_deplibs_check_method=pass_all | ||
5402 | ;; | ||
5403 | |||
5404 | netbsd* | netbsdelf*-gnu) | ||
5405 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
5406 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
5407 | else | ||
5408 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | ||
5409 | fi | ||
5410 | ;; | ||
5411 | |||
5412 | newos6*) | ||
5413 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | ||
5414 | lt_cv_file_magic_cmd=/usr/bin/file | ||
5415 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
5416 | ;; | ||
5417 | |||
5418 | *nto* | *qnx*) | ||
5419 | lt_cv_deplibs_check_method=pass_all | ||
5420 | ;; | ||
5421 | |||
5422 | openbsd*) | ||
5423 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
5424 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | ||
5425 | else | ||
5426 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
5427 | fi | ||
5428 | ;; | ||
5429 | |||
5430 | osf3* | osf4* | osf5*) | ||
5431 | lt_cv_deplibs_check_method=pass_all | ||
5432 | ;; | ||
5433 | |||
5434 | rdos*) | ||
5435 | lt_cv_deplibs_check_method=pass_all | ||
5436 | ;; | ||
5437 | |||
5438 | solaris*) | ||
5439 | lt_cv_deplibs_check_method=pass_all | ||
5440 | ;; | ||
5441 | |||
5442 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
5443 | lt_cv_deplibs_check_method=pass_all | ||
5444 | ;; | ||
5445 | |||
5446 | sysv4 | sysv4.3*) | ||
5447 | case $host_vendor in | ||
5448 | motorola) | ||
5449 | 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]' | ||
5450 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
5451 | ;; | ||
5452 | ncr) | ||
5453 | lt_cv_deplibs_check_method=pass_all | ||
5454 | ;; | ||
5455 | sequent) | ||
5456 | lt_cv_file_magic_cmd='/bin/file' | ||
5457 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | ||
5458 | ;; | ||
5459 | sni) | ||
5460 | lt_cv_file_magic_cmd='/bin/file' | ||
5461 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | ||
5462 | lt_cv_file_magic_test_file=/lib/libc.so | ||
5463 | ;; | ||
5464 | siemens) | ||
5465 | lt_cv_deplibs_check_method=pass_all | ||
5466 | ;; | ||
5467 | pc) | ||
5468 | lt_cv_deplibs_check_method=pass_all | ||
5469 | ;; | ||
5470 | esac | ||
5471 | ;; | ||
5472 | |||
5473 | tpf*) | ||
5474 | lt_cv_deplibs_check_method=pass_all | ||
5475 | ;; | ||
5476 | esac | ||
5477 | |||
5478 | fi | ||
5479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
5480 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
5481 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
5482 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
5483 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
5484 | |||
5485 | |||
5486 | |||
5487 | |||
5488 | |||
5489 | |||
5490 | |||
5491 | |||
5492 | |||
5493 | |||
5494 | |||
5495 | |||
5496 | if test -n "$ac_tool_prefix"; then | ||
5497 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
5498 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
5499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5500 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5501 | if test "${ac_cv_prog_AR+set}" = set; then : | ||
5502 | $as_echo_n "(cached) " >&6 | ||
5503 | else | ||
5504 | if test -n "$AR"; then | ||
5505 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
5506 | else | ||
5507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5508 | for as_dir in $PATH | ||
5509 | do | ||
5510 | IFS=$as_save_IFS | ||
5511 | test -z "$as_dir" && as_dir=. | ||
5512 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5513 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5514 | ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
5515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5516 | break 2 | ||
5517 | fi | ||
5518 | done | ||
5519 | done | ||
5520 | IFS=$as_save_IFS | ||
5521 | |||
5522 | fi | ||
5523 | fi | ||
5524 | AR=$ac_cv_prog_AR | ||
5525 | if test -n "$AR"; then | ||
5526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
5527 | $as_echo "$AR" >&6; } | ||
5528 | else | ||
5529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5530 | $as_echo "no" >&6; } | ||
5531 | fi | ||
5532 | |||
5533 | |||
5534 | fi | ||
5535 | if test -z "$ac_cv_prog_AR"; then | ||
5536 | ac_ct_AR=$AR | ||
5537 | # Extract the first word of "ar", so it can be a program name with args. | ||
5538 | set dummy ar; ac_word=$2 | ||
5539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5540 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5541 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
5542 | $as_echo_n "(cached) " >&6 | ||
5543 | else | ||
5544 | if test -n "$ac_ct_AR"; then | ||
5545 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
5546 | else | ||
5547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5548 | for as_dir in $PATH | ||
5549 | do | ||
5550 | IFS=$as_save_IFS | ||
5551 | test -z "$as_dir" && as_dir=. | ||
5552 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5553 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5554 | ac_cv_prog_ac_ct_AR="ar" | ||
5555 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5556 | break 2 | ||
5557 | fi | ||
5558 | done | ||
5559 | done | ||
5560 | IFS=$as_save_IFS | ||
5561 | |||
5562 | fi | ||
5563 | fi | ||
5564 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
5565 | if test -n "$ac_ct_AR"; then | ||
5566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
5567 | $as_echo "$ac_ct_AR" >&6; } | ||
5568 | else | ||
5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5570 | $as_echo "no" >&6; } | ||
5571 | fi | ||
5572 | |||
5573 | if test "x$ac_ct_AR" = x; then | ||
5574 | AR="false" | ||
5575 | else | ||
5576 | case $cross_compiling:$ac_tool_warned in | ||
5577 | yes:) | ||
5578 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5579 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5580 | ac_tool_warned=yes ;; | ||
5581 | esac | ||
5582 | AR=$ac_ct_AR | ||
5583 | fi | ||
5584 | else | ||
5585 | AR="$ac_cv_prog_AR" | ||
5586 | fi | ||
5587 | |||
5588 | test -z "$AR" && AR=ar | ||
5589 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
5590 | |||
5591 | |||
5592 | |||
5593 | |||
5594 | |||
5595 | |||
5596 | |||
5597 | |||
5598 | |||
5599 | |||
5600 | |||
5601 | if test -n "$ac_tool_prefix"; then | ||
5602 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
5603 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
5604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5605 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5606 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
5607 | $as_echo_n "(cached) " >&6 | ||
5608 | else | ||
5609 | if test -n "$STRIP"; then | ||
5610 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
5611 | else | ||
5612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5613 | for as_dir in $PATH | ||
5614 | do | ||
5615 | IFS=$as_save_IFS | ||
5616 | test -z "$as_dir" && as_dir=. | ||
5617 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5618 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5619 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
5620 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5621 | break 2 | ||
5622 | fi | ||
5623 | done | ||
5624 | done | ||
5625 | IFS=$as_save_IFS | ||
5626 | |||
5627 | fi | ||
5628 | fi | ||
5629 | STRIP=$ac_cv_prog_STRIP | ||
5630 | if test -n "$STRIP"; then | ||
5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
5632 | $as_echo "$STRIP" >&6; } | ||
5633 | else | ||
5634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5635 | $as_echo "no" >&6; } | ||
5636 | fi | ||
5637 | |||
5638 | |||
5639 | fi | ||
5640 | if test -z "$ac_cv_prog_STRIP"; then | ||
5641 | ac_ct_STRIP=$STRIP | ||
5642 | # Extract the first word of "strip", so it can be a program name with args. | ||
5643 | set dummy strip; ac_word=$2 | ||
5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5645 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5646 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
5647 | $as_echo_n "(cached) " >&6 | ||
5648 | else | ||
5649 | if test -n "$ac_ct_STRIP"; then | ||
5650 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
5651 | else | ||
5652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5653 | for as_dir in $PATH | ||
5654 | do | ||
5655 | IFS=$as_save_IFS | ||
5656 | test -z "$as_dir" && as_dir=. | ||
5657 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5658 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5659 | ac_cv_prog_ac_ct_STRIP="strip" | ||
5660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5661 | break 2 | ||
5662 | fi | ||
5663 | done | ||
5664 | done | ||
5665 | IFS=$as_save_IFS | ||
5666 | |||
5667 | fi | ||
5668 | fi | ||
5669 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
5670 | if test -n "$ac_ct_STRIP"; then | ||
5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
5672 | $as_echo "$ac_ct_STRIP" >&6; } | ||
5673 | else | ||
5674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5675 | $as_echo "no" >&6; } | ||
5676 | fi | ||
5677 | |||
5678 | if test "x$ac_ct_STRIP" = x; then | ||
5679 | STRIP=":" | ||
5680 | else | ||
5681 | case $cross_compiling:$ac_tool_warned in | ||
5682 | yes:) | ||
5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5684 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5685 | ac_tool_warned=yes ;; | ||
5686 | esac | ||
5687 | STRIP=$ac_ct_STRIP | ||
5688 | fi | ||
5689 | else | ||
5690 | STRIP="$ac_cv_prog_STRIP" | ||
5691 | fi | ||
5692 | |||
5693 | test -z "$STRIP" && STRIP=: | ||
5694 | |||
5695 | |||
5696 | |||
5697 | |||
5698 | |||
5699 | |||
5700 | if test -n "$ac_tool_prefix"; then | ||
5701 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
5702 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
5703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5704 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5705 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | ||
5706 | $as_echo_n "(cached) " >&6 | ||
5707 | else | ||
5708 | if test -n "$RANLIB"; then | ||
5709 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
5710 | else | ||
5711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5712 | for as_dir in $PATH | ||
5713 | do | ||
5714 | IFS=$as_save_IFS | ||
5715 | test -z "$as_dir" && as_dir=. | ||
5716 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5717 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5718 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
5719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5720 | break 2 | ||
5721 | fi | ||
5722 | done | ||
5723 | done | ||
5724 | IFS=$as_save_IFS | ||
5725 | |||
5726 | fi | ||
5727 | fi | ||
5728 | RANLIB=$ac_cv_prog_RANLIB | ||
5729 | if test -n "$RANLIB"; then | ||
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
5731 | $as_echo "$RANLIB" >&6; } | ||
5732 | else | ||
5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5734 | $as_echo "no" >&6; } | ||
5735 | fi | ||
5736 | |||
5737 | |||
5738 | fi | ||
5739 | if test -z "$ac_cv_prog_RANLIB"; then | ||
5740 | ac_ct_RANLIB=$RANLIB | ||
5741 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
5742 | set dummy ranlib; ac_word=$2 | ||
5743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5744 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5745 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | ||
5746 | $as_echo_n "(cached) " >&6 | ||
5747 | else | ||
5748 | if test -n "$ac_ct_RANLIB"; then | ||
5749 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
5750 | else | ||
5751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5752 | for as_dir in $PATH | ||
5753 | do | ||
5754 | IFS=$as_save_IFS | ||
5755 | test -z "$as_dir" && as_dir=. | ||
5756 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5758 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
5759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5760 | break 2 | ||
5761 | fi | ||
5762 | done | ||
5763 | done | ||
5764 | IFS=$as_save_IFS | ||
5765 | |||
5766 | fi | ||
5767 | fi | ||
5768 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
5769 | if test -n "$ac_ct_RANLIB"; then | ||
5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
5771 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
5772 | else | ||
5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5774 | $as_echo "no" >&6; } | ||
5775 | fi | ||
5776 | |||
5777 | if test "x$ac_ct_RANLIB" = x; then | ||
5778 | RANLIB=":" | ||
5779 | else | ||
5780 | case $cross_compiling:$ac_tool_warned in | ||
5781 | yes:) | ||
5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5783 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5784 | ac_tool_warned=yes ;; | ||
5785 | esac | ||
5786 | RANLIB=$ac_ct_RANLIB | ||
5787 | fi | ||
5788 | else | ||
5789 | RANLIB="$ac_cv_prog_RANLIB" | ||
5790 | fi | ||
5791 | |||
5792 | test -z "$RANLIB" && RANLIB=: | ||
5793 | |||
5794 | |||
5795 | |||
5796 | |||
5797 | |||
5798 | |||
5799 | # Determine commands to create old-style static archives. | ||
5800 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | ||
5801 | old_postinstall_cmds='chmod 644 $oldlib' | ||
5802 | old_postuninstall_cmds= | ||
5803 | |||
5804 | if test -n "$RANLIB"; then | ||
5805 | case $host_os in | ||
5806 | openbsd*) | ||
5807 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | ||
5808 | ;; | ||
5809 | *) | ||
5810 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | ||
5811 | ;; | ||
5812 | esac | ||
5813 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
5814 | fi | ||
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 | |||
5843 | |||
5844 | |||
5845 | |||
5846 | |||
5847 | |||
5848 | |||
5849 | # If no C compiler was specified, use CC. | ||
5850 | LTCC=${LTCC-"$CC"} | ||
5851 | |||
5852 | # If no C compiler flags were specified, use CFLAGS. | ||
5853 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
5854 | |||
5855 | # Allow CC to be a program name with arguments. | ||
5856 | compiler=$CC | ||
5857 | |||
5858 | |||
5859 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | ||
5861 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | ||
5862 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | ||
5863 | $as_echo_n "(cached) " >&6 | ||
5864 | else | ||
5865 | |||
5866 | # These are sane defaults that work on at least a few old systems. | ||
5867 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
5868 | |||
5869 | # Character class describing NM global symbol codes. | ||
5870 | symcode='[BCDEGRST]' | ||
5871 | |||
5872 | # Regexp to match symbols that can be accessed directly from C. | ||
5873 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | ||
5874 | |||
5875 | # Define system-specific variables. | ||
5876 | case $host_os in | ||
5877 | aix*) | ||
5878 | symcode='[BCDT]' | ||
5879 | ;; | ||
5880 | cygwin* | mingw* | pw32* | cegcc*) | ||
5881 | symcode='[ABCDGISTW]' | ||
5882 | ;; | ||
5883 | hpux*) | ||
5884 | if test "$host_cpu" = ia64; then | ||
5885 | symcode='[ABCDEGRST]' | ||
5886 | fi | ||
5887 | ;; | ||
5888 | irix* | nonstopux*) | ||
5889 | symcode='[BCDEGRST]' | ||
5890 | ;; | ||
5891 | osf*) | ||
5892 | symcode='[BCDEGQRST]' | ||
5893 | ;; | ||
5894 | solaris*) | ||
5895 | symcode='[BDRT]' | ||
5896 | ;; | ||
5897 | sco3.2v5*) | ||
5898 | symcode='[DT]' | ||
5899 | ;; | ||
5900 | sysv4.2uw2*) | ||
5901 | symcode='[DT]' | ||
5902 | ;; | ||
5903 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
5904 | symcode='[ABDT]' | ||
5905 | ;; | ||
5906 | sysv4) | ||
5907 | symcode='[DFNSTU]' | ||
5908 | ;; | ||
5909 | esac | ||
5910 | |||
5911 | # If we're using GNU nm, then use its standard symbol codes. | ||
5912 | case `$NM -V 2>&1` in | ||
5913 | *GNU* | *'with BFD'*) | ||
5914 | symcode='[ABCDGIRSTW]' ;; | ||
5915 | esac | ||
5916 | |||
5917 | # Transform an extracted symbol line into a proper C declaration. | ||
5918 | # Some systems (esp. on ia64) link data and code symbols differently, | ||
5919 | # so use this general approach. | ||
5920 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
5921 | |||
5922 | # Transform an extracted symbol line into symbol name and symbol address | ||
5923 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
5924 | 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'" | ||
5925 | |||
5926 | # Handle CRLF in mingw tool chain | ||
5927 | opt_cr= | ||
5928 | case $build_os in | ||
5929 | mingw*) | ||
5930 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
5931 | ;; | ||
5932 | esac | ||
5933 | |||
5934 | # Try without a prefix underscore, then with it. | ||
5935 | for ac_symprfx in "" "_"; do | ||
5936 | |||
5937 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
5938 | symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
5939 | |||
5940 | # Write the raw and C identifiers. | ||
5941 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
5942 | # Fake it for dumpbin and say T for any non-static function | ||
5943 | # and D for any global variable. | ||
5944 | # Also find C++ and __fastcall symbols from MSVC++, | ||
5945 | # which start with @ or ?. | ||
5946 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | ||
5947 | " {last_section=section; section=\$ 3};"\ | ||
5948 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | ||
5949 | " \$ 0!~/External *\|/{next};"\ | ||
5950 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | ||
5951 | " {if(hide[section]) next};"\ | ||
5952 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | ||
5953 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | ||
5954 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | ||
5955 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | ||
5956 | " ' prfx=^$ac_symprfx" | ||
5957 | else | ||
5958 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
5959 | fi | ||
5960 | |||
5961 | # Check to see that the pipe works correctly. | ||
5962 | pipe_works=no | ||
5963 | |||
5964 | rm -f conftest* | ||
5965 | cat > conftest.$ac_ext <<_LT_EOF | ||
5966 | #ifdef __cplusplus | ||
5967 | extern "C" { | ||
5968 | #endif | ||
5969 | char nm_test_var; | ||
5970 | void nm_test_func(void); | ||
5971 | void nm_test_func(void){} | ||
5972 | #ifdef __cplusplus | ||
5973 | } | ||
5974 | #endif | ||
5975 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
5976 | _LT_EOF | ||
5977 | |||
5978 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
5979 | (eval $ac_compile) 2>&5 | ||
5980 | ac_status=$? | ||
5981 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
5982 | test $ac_status = 0; }; then | ||
5983 | # Now try to grab the symbols. | ||
5984 | nlist=conftest.nm | ||
5985 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | ||
5986 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
5987 | ac_status=$? | ||
5988 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
5989 | test $ac_status = 0; } && test -s "$nlist"; then | ||
5990 | # Try sorting and uniquifying the output. | ||
5991 | if sort "$nlist" | uniq > "$nlist"T; then | ||
5992 | mv -f "$nlist"T "$nlist" | ||
5993 | else | ||
5994 | rm -f "$nlist"T | ||
5995 | fi | ||
5996 | |||
5997 | # Make sure that we snagged all the symbols we need. | ||
5998 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
5999 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
6000 | cat <<_LT_EOF > conftest.$ac_ext | ||
6001 | #ifdef __cplusplus | ||
6002 | extern "C" { | ||
6003 | #endif | ||
6004 | |||
6005 | _LT_EOF | ||
6006 | # Now generate the symbol file. | ||
6007 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | ||
6008 | |||
6009 | cat <<_LT_EOF >> conftest.$ac_ext | ||
6010 | |||
6011 | /* The mapping between symbol names and symbols. */ | ||
6012 | const struct { | ||
6013 | const char *name; | ||
6014 | void *address; | ||
6015 | } | ||
6016 | lt__PROGRAM__LTX_preloaded_symbols[] = | ||
6017 | { | ||
6018 | { "@PROGRAM@", (void *) 0 }, | ||
6019 | _LT_EOF | ||
6020 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | ||
6021 | cat <<\_LT_EOF >> conftest.$ac_ext | ||
6022 | {0, (void *) 0} | ||
6023 | }; | ||
6024 | |||
6025 | /* This works around a problem in FreeBSD linker */ | ||
6026 | #ifdef FREEBSD_WORKAROUND | ||
6027 | static const void *lt_preloaded_setup() { | ||
6028 | return lt__PROGRAM__LTX_preloaded_symbols; | ||
6029 | } | ||
6030 | #endif | ||
6031 | |||
6032 | #ifdef __cplusplus | ||
6033 | } | ||
6034 | #endif | ||
6035 | _LT_EOF | ||
6036 | # Now try linking the two files. | ||
6037 | mv conftest.$ac_objext conftstm.$ac_objext | ||
6038 | lt_save_LIBS="$LIBS" | ||
6039 | lt_save_CFLAGS="$CFLAGS" | ||
6040 | LIBS="conftstm.$ac_objext" | ||
6041 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
6042 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
6043 | (eval $ac_link) 2>&5 | ||
6044 | ac_status=$? | ||
6045 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6046 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
6047 | pipe_works=yes | ||
6048 | fi | ||
6049 | LIBS="$lt_save_LIBS" | ||
6050 | CFLAGS="$lt_save_CFLAGS" | ||
6051 | else | ||
6052 | echo "cannot find nm_test_func in $nlist" >&5 | ||
6053 | fi | ||
6054 | else | ||
6055 | echo "cannot find nm_test_var in $nlist" >&5 | ||
6056 | fi | ||
6057 | else | ||
6058 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | ||
6059 | fi | ||
6060 | else | ||
6061 | echo "$progname: failed program was:" >&5 | ||
6062 | cat conftest.$ac_ext >&5 | ||
6063 | fi | ||
6064 | rm -rf conftest* conftst* | ||
6065 | |||
6066 | # Do not use the global_symbol_pipe unless it works. | ||
6067 | if test "$pipe_works" = yes; then | ||
6068 | break | ||
6069 | else | ||
6070 | lt_cv_sys_global_symbol_pipe= | ||
6071 | fi | ||
6072 | done | ||
6073 | |||
6074 | fi | ||
6075 | |||
6076 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
6077 | lt_cv_sys_global_symbol_to_cdecl= | ||
6078 | fi | ||
6079 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
6080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | ||
6081 | $as_echo "failed" >&6; } | ||
6082 | else | ||
6083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | ||
6084 | $as_echo "ok" >&6; } | ||
6085 | fi | ||
6086 | |||
6087 | |||
6088 | |||
6089 | |||
6090 | |||
6091 | |||
6092 | |||
6093 | |||
6094 | |||
6095 | |||
6096 | |||
6097 | |||
6098 | |||
6099 | |||
6100 | |||
6101 | |||
6102 | |||
6103 | |||
6104 | |||
6105 | |||
6106 | |||
6107 | |||
6108 | |||
6109 | # Check whether --enable-libtool-lock was given. | ||
6110 | if test "${enable_libtool_lock+set}" = set; then : | ||
6111 | enableval=$enable_libtool_lock; | ||
6112 | fi | ||
6113 | |||
6114 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
6115 | |||
6116 | # Some flags need to be propagated to the compiler or linker for good | ||
6117 | # libtool support. | ||
6118 | case $host in | ||
6119 | ia64-*-hpux*) | ||
6120 | # Find out which ABI we are using. | ||
6121 | echo 'int i;' > conftest.$ac_ext | ||
6122 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6123 | (eval $ac_compile) 2>&5 | ||
6124 | ac_status=$? | ||
6125 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6126 | test $ac_status = 0; }; then | ||
6127 | case `/usr/bin/file conftest.$ac_objext` in | ||
6128 | *ELF-32*) | ||
6129 | HPUX_IA64_MODE="32" | ||
6130 | ;; | ||
6131 | *ELF-64*) | ||
6132 | HPUX_IA64_MODE="64" | ||
6133 | ;; | ||
6134 | esac | ||
6135 | fi | ||
6136 | rm -rf conftest* | ||
6137 | ;; | ||
6138 | *-*-irix6*) | ||
6139 | # Find out which ABI we are using. | ||
6140 | echo '#line 6140 "configure"' > conftest.$ac_ext | ||
6141 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6142 | (eval $ac_compile) 2>&5 | ||
6143 | ac_status=$? | ||
6144 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6145 | test $ac_status = 0; }; then | ||
6146 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
6147 | case `/usr/bin/file conftest.$ac_objext` in | ||
6148 | *32-bit*) | ||
6149 | LD="${LD-ld} -melf32bsmip" | ||
6150 | ;; | ||
6151 | *N32*) | ||
6152 | LD="${LD-ld} -melf32bmipn32" | ||
6153 | ;; | ||
6154 | *64-bit*) | ||
6155 | LD="${LD-ld} -melf64bmip" | ||
6156 | ;; | ||
6157 | esac | ||
6158 | else | ||
6159 | case `/usr/bin/file conftest.$ac_objext` in | ||
6160 | *32-bit*) | ||
6161 | LD="${LD-ld} -32" | ||
6162 | ;; | ||
6163 | *N32*) | ||
6164 | LD="${LD-ld} -n32" | ||
6165 | ;; | ||
6166 | *64-bit*) | ||
6167 | LD="${LD-ld} -64" | ||
6168 | ;; | ||
6169 | esac | ||
6170 | fi | ||
6171 | fi | ||
6172 | rm -rf conftest* | ||
6173 | ;; | ||
6174 | |||
6175 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | ||
6176 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | ||
6177 | # Find out which ABI we are using. | ||
6178 | echo 'int i;' > conftest.$ac_ext | ||
6179 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6180 | (eval $ac_compile) 2>&5 | ||
6181 | ac_status=$? | ||
6182 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6183 | test $ac_status = 0; }; then | ||
6184 | case `/usr/bin/file conftest.o` in | ||
6185 | *32-bit*) | ||
6186 | case $host in | ||
6187 | x86_64-*kfreebsd*-gnu) | ||
6188 | LD="${LD-ld} -m elf_i386_fbsd" | ||
6189 | ;; | ||
6190 | x86_64-*linux*) | ||
6191 | LD="${LD-ld} -m elf_i386" | ||
6192 | ;; | ||
6193 | ppc64-*linux*|powerpc64-*linux*) | ||
6194 | LD="${LD-ld} -m elf32ppclinux" | ||
6195 | ;; | ||
6196 | s390x-*linux*) | ||
6197 | LD="${LD-ld} -m elf_s390" | ||
6198 | ;; | ||
6199 | sparc64-*linux*) | ||
6200 | LD="${LD-ld} -m elf32_sparc" | ||
6201 | ;; | ||
6202 | esac | ||
6203 | ;; | ||
6204 | *64-bit*) | ||
6205 | case $host in | ||
6206 | x86_64-*kfreebsd*-gnu) | ||
6207 | LD="${LD-ld} -m elf_x86_64_fbsd" | ||
6208 | ;; | ||
6209 | x86_64-*linux*) | ||
6210 | LD="${LD-ld} -m elf_x86_64" | ||
6211 | ;; | ||
6212 | ppc*-*linux*|powerpc*-*linux*) | ||
6213 | LD="${LD-ld} -m elf64ppc" | ||
6214 | ;; | ||
6215 | s390*-*linux*|s390*-*tpf*) | ||
6216 | LD="${LD-ld} -m elf64_s390" | ||
6217 | ;; | ||
6218 | sparc*-*linux*) | ||
6219 | LD="${LD-ld} -m elf64_sparc" | ||
6220 | ;; | ||
6221 | esac | ||
6222 | ;; | ||
6223 | esac | ||
6224 | fi | ||
6225 | rm -rf conftest* | ||
6226 | ;; | ||
6227 | |||
6228 | *-*-sco3.2v5*) | ||
6229 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
6230 | SAVE_CFLAGS="$CFLAGS" | ||
6231 | CFLAGS="$CFLAGS -belf" | ||
6232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | ||
6233 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | ||
6234 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | ||
6235 | $as_echo_n "(cached) " >&6 | ||
6236 | else | ||
6237 | ac_ext=c | ||
6238 | ac_cpp='$CPP $CPPFLAGS' | ||
6239 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6240 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6241 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
6242 | |||
6243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6244 | /* end confdefs.h. */ | ||
6245 | |||
6246 | int | ||
6247 | main () | ||
6248 | { | ||
6249 | |||
6250 | ; | ||
6251 | return 0; | ||
6252 | } | ||
6253 | _ACEOF | ||
6254 | if ac_fn_c_try_link "$LINENO"; then : | ||
6255 | lt_cv_cc_needs_belf=yes | ||
6256 | else | ||
6257 | lt_cv_cc_needs_belf=no | ||
6258 | fi | ||
6259 | rm -f core conftest.err conftest.$ac_objext \ | ||
6260 | conftest$ac_exeext conftest.$ac_ext | ||
6261 | ac_ext=c | ||
6262 | ac_cpp='$CPP $CPPFLAGS' | ||
6263 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6264 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6265 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
6266 | |||
6267 | fi | ||
6268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | ||
6269 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | ||
6270 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
6271 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
6272 | CFLAGS="$SAVE_CFLAGS" | ||
6273 | fi | ||
6274 | ;; | ||
6275 | sparc*-*solaris*) | ||
6276 | # Find out which ABI we are using. | ||
6277 | echo 'int i;' > conftest.$ac_ext | ||
6278 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6279 | (eval $ac_compile) 2>&5 | ||
6280 | ac_status=$? | ||
6281 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6282 | test $ac_status = 0; }; then | ||
6283 | case `/usr/bin/file conftest.o` in | ||
6284 | *64-bit*) | ||
6285 | case $lt_cv_prog_gnu_ld in | ||
6286 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
6287 | *) | ||
6288 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | ||
6289 | LD="${LD-ld} -64" | ||
6290 | fi | ||
6291 | ;; | ||
6292 | esac | ||
6293 | ;; | ||
6294 | esac | ||
6295 | fi | ||
6296 | rm -rf conftest* | ||
6297 | ;; | ||
6298 | esac | ||
6299 | |||
6300 | need_locks="$enable_libtool_lock" | ||
6301 | |||
6302 | |||
6303 | case $host_os in | ||
6304 | rhapsody* | darwin*) | ||
6305 | if test -n "$ac_tool_prefix"; then | ||
6306 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | ||
6307 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | ||
6308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6309 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6310 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | ||
6311 | $as_echo_n "(cached) " >&6 | ||
6312 | else | ||
6313 | if test -n "$DSYMUTIL"; then | ||
6314 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | ||
6315 | else | ||
6316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6317 | for as_dir in $PATH | ||
6318 | do | ||
6319 | IFS=$as_save_IFS | ||
6320 | test -z "$as_dir" && as_dir=. | ||
6321 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6322 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6323 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | ||
6324 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6325 | break 2 | ||
6326 | fi | ||
6327 | done | ||
6328 | done | ||
6329 | IFS=$as_save_IFS | ||
6330 | |||
6331 | fi | ||
6332 | fi | ||
6333 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | ||
6334 | if test -n "$DSYMUTIL"; then | ||
6335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | ||
6336 | $as_echo "$DSYMUTIL" >&6; } | ||
6337 | else | ||
6338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6339 | $as_echo "no" >&6; } | ||
6340 | fi | ||
6341 | |||
6342 | |||
6343 | fi | ||
6344 | if test -z "$ac_cv_prog_DSYMUTIL"; then | ||
6345 | ac_ct_DSYMUTIL=$DSYMUTIL | ||
6346 | # Extract the first word of "dsymutil", so it can be a program name with args. | ||
6347 | set dummy dsymutil; ac_word=$2 | ||
6348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6349 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6350 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | ||
6351 | $as_echo_n "(cached) " >&6 | ||
6352 | else | ||
6353 | if test -n "$ac_ct_DSYMUTIL"; then | ||
6354 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | ||
6355 | else | ||
6356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6357 | for as_dir in $PATH | ||
6358 | do | ||
6359 | IFS=$as_save_IFS | ||
6360 | test -z "$as_dir" && as_dir=. | ||
6361 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6362 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6363 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | ||
6364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6365 | break 2 | ||
6366 | fi | ||
6367 | done | ||
6368 | done | ||
6369 | IFS=$as_save_IFS | ||
6370 | |||
6371 | fi | ||
6372 | fi | ||
6373 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | ||
6374 | if test -n "$ac_ct_DSYMUTIL"; then | ||
6375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | ||
6376 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | ||
6377 | else | ||
6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6379 | $as_echo "no" >&6; } | ||
6380 | fi | ||
6381 | |||
6382 | if test "x$ac_ct_DSYMUTIL" = x; then | ||
6383 | DSYMUTIL=":" | ||
6384 | else | ||
6385 | case $cross_compiling:$ac_tool_warned in | ||
6386 | yes:) | ||
6387 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6388 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6389 | ac_tool_warned=yes ;; | ||
6390 | esac | ||
6391 | DSYMUTIL=$ac_ct_DSYMUTIL | ||
6392 | fi | ||
6393 | else | ||
6394 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | ||
6395 | fi | ||
6396 | |||
6397 | if test -n "$ac_tool_prefix"; then | ||
6398 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | ||
6399 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | ||
6400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6401 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6402 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | ||
6403 | $as_echo_n "(cached) " >&6 | ||
6404 | else | ||
6405 | if test -n "$NMEDIT"; then | ||
6406 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | ||
6407 | else | ||
6408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6409 | for as_dir in $PATH | ||
6410 | do | ||
6411 | IFS=$as_save_IFS | ||
6412 | test -z "$as_dir" && as_dir=. | ||
6413 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6414 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6415 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | ||
6416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6417 | break 2 | ||
6418 | fi | ||
6419 | done | ||
6420 | done | ||
6421 | IFS=$as_save_IFS | ||
6422 | |||
6423 | fi | ||
6424 | fi | ||
6425 | NMEDIT=$ac_cv_prog_NMEDIT | ||
6426 | if test -n "$NMEDIT"; then | ||
6427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | ||
6428 | $as_echo "$NMEDIT" >&6; } | ||
6429 | else | ||
6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6431 | $as_echo "no" >&6; } | ||
6432 | fi | ||
6433 | |||
6434 | |||
6435 | fi | ||
6436 | if test -z "$ac_cv_prog_NMEDIT"; then | ||
6437 | ac_ct_NMEDIT=$NMEDIT | ||
6438 | # Extract the first word of "nmedit", so it can be a program name with args. | ||
6439 | set dummy nmedit; ac_word=$2 | ||
6440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6441 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6442 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | ||
6443 | $as_echo_n "(cached) " >&6 | ||
6444 | else | ||
6445 | if test -n "$ac_ct_NMEDIT"; then | ||
6446 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | ||
6447 | else | ||
6448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6449 | for as_dir in $PATH | ||
6450 | do | ||
6451 | IFS=$as_save_IFS | ||
6452 | test -z "$as_dir" && as_dir=. | ||
6453 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6454 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6455 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | ||
6456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6457 | break 2 | ||
6458 | fi | ||
6459 | done | ||
6460 | done | ||
6461 | IFS=$as_save_IFS | ||
6462 | |||
6463 | fi | ||
6464 | fi | ||
6465 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | ||
6466 | if test -n "$ac_ct_NMEDIT"; then | ||
6467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | ||
6468 | $as_echo "$ac_ct_NMEDIT" >&6; } | ||
6469 | else | ||
6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6471 | $as_echo "no" >&6; } | ||
6472 | fi | ||
6473 | |||
6474 | if test "x$ac_ct_NMEDIT" = x; then | ||
6475 | NMEDIT=":" | ||
6476 | else | ||
6477 | case $cross_compiling:$ac_tool_warned in | ||
6478 | yes:) | ||
6479 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6480 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6481 | ac_tool_warned=yes ;; | ||
6482 | esac | ||
6483 | NMEDIT=$ac_ct_NMEDIT | ||
6484 | fi | ||
6485 | else | ||
6486 | NMEDIT="$ac_cv_prog_NMEDIT" | ||
6487 | fi | ||
6488 | |||
6489 | if test -n "$ac_tool_prefix"; then | ||
6490 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | ||
6491 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | ||
6492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6493 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6494 | if test "${ac_cv_prog_LIPO+set}" = set; then : | ||
6495 | $as_echo_n "(cached) " >&6 | ||
6496 | else | ||
6497 | if test -n "$LIPO"; then | ||
6498 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | ||
6499 | else | ||
6500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6501 | for as_dir in $PATH | ||
6502 | do | ||
6503 | IFS=$as_save_IFS | ||
6504 | test -z "$as_dir" && as_dir=. | ||
6505 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6506 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6507 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | ||
6508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6509 | break 2 | ||
6510 | fi | ||
6511 | done | ||
6512 | done | ||
6513 | IFS=$as_save_IFS | ||
6514 | |||
6515 | fi | ||
6516 | fi | ||
6517 | LIPO=$ac_cv_prog_LIPO | ||
6518 | if test -n "$LIPO"; then | ||
6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | ||
6520 | $as_echo "$LIPO" >&6; } | ||
6521 | else | ||
6522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6523 | $as_echo "no" >&6; } | ||
6524 | fi | ||
6525 | |||
6526 | |||
6527 | fi | ||
6528 | if test -z "$ac_cv_prog_LIPO"; then | ||
6529 | ac_ct_LIPO=$LIPO | ||
6530 | # Extract the first word of "lipo", so it can be a program name with args. | ||
6531 | set dummy lipo; ac_word=$2 | ||
6532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6533 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6534 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | ||
6535 | $as_echo_n "(cached) " >&6 | ||
6536 | else | ||
6537 | if test -n "$ac_ct_LIPO"; then | ||
6538 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | ||
6539 | else | ||
6540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6541 | for as_dir in $PATH | ||
6542 | do | ||
6543 | IFS=$as_save_IFS | ||
6544 | test -z "$as_dir" && as_dir=. | ||
6545 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6546 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6547 | ac_cv_prog_ac_ct_LIPO="lipo" | ||
6548 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6549 | break 2 | ||
6550 | fi | ||
6551 | done | ||
6552 | done | ||
6553 | IFS=$as_save_IFS | ||
6554 | |||
6555 | fi | ||
6556 | fi | ||
6557 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | ||
6558 | if test -n "$ac_ct_LIPO"; then | ||
6559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | ||
6560 | $as_echo "$ac_ct_LIPO" >&6; } | ||
6561 | else | ||
6562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6563 | $as_echo "no" >&6; } | ||
6564 | fi | ||
6565 | |||
6566 | if test "x$ac_ct_LIPO" = x; then | ||
6567 | LIPO=":" | ||
6568 | else | ||
6569 | case $cross_compiling:$ac_tool_warned in | ||
6570 | yes:) | ||
6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6572 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6573 | ac_tool_warned=yes ;; | ||
6574 | esac | ||
6575 | LIPO=$ac_ct_LIPO | ||
6576 | fi | ||
6577 | else | ||
6578 | LIPO="$ac_cv_prog_LIPO" | ||
6579 | fi | ||
6580 | |||
6581 | if test -n "$ac_tool_prefix"; then | ||
6582 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | ||
6583 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | ||
6584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6585 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6586 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | ||
6587 | $as_echo_n "(cached) " >&6 | ||
6588 | else | ||
6589 | if test -n "$OTOOL"; then | ||
6590 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | ||
6591 | else | ||
6592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6593 | for as_dir in $PATH | ||
6594 | do | ||
6595 | IFS=$as_save_IFS | ||
6596 | test -z "$as_dir" && as_dir=. | ||
6597 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6598 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6599 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | ||
6600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6601 | break 2 | ||
6602 | fi | ||
6603 | done | ||
6604 | done | ||
6605 | IFS=$as_save_IFS | ||
6606 | |||
6607 | fi | ||
6608 | fi | ||
6609 | OTOOL=$ac_cv_prog_OTOOL | ||
6610 | if test -n "$OTOOL"; then | ||
6611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | ||
6612 | $as_echo "$OTOOL" >&6; } | ||
6613 | else | ||
6614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6615 | $as_echo "no" >&6; } | ||
6616 | fi | ||
6617 | |||
6618 | |||
6619 | fi | ||
6620 | if test -z "$ac_cv_prog_OTOOL"; then | ||
6621 | ac_ct_OTOOL=$OTOOL | ||
6622 | # Extract the first word of "otool", so it can be a program name with args. | ||
6623 | set dummy otool; ac_word=$2 | ||
6624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6625 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6626 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | ||
6627 | $as_echo_n "(cached) " >&6 | ||
6628 | else | ||
6629 | if test -n "$ac_ct_OTOOL"; then | ||
6630 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | ||
6631 | else | ||
6632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6633 | for as_dir in $PATH | ||
6634 | do | ||
6635 | IFS=$as_save_IFS | ||
6636 | test -z "$as_dir" && as_dir=. | ||
6637 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6638 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6639 | ac_cv_prog_ac_ct_OTOOL="otool" | ||
6640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6641 | break 2 | ||
6642 | fi | ||
6643 | done | ||
6644 | done | ||
6645 | IFS=$as_save_IFS | ||
6646 | |||
6647 | fi | ||
6648 | fi | ||
6649 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | ||
6650 | if test -n "$ac_ct_OTOOL"; then | ||
6651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | ||
6652 | $as_echo "$ac_ct_OTOOL" >&6; } | ||
6653 | else | ||
6654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6655 | $as_echo "no" >&6; } | ||
6656 | fi | ||
6657 | |||
6658 | if test "x$ac_ct_OTOOL" = x; then | ||
6659 | OTOOL=":" | ||
6660 | else | ||
6661 | case $cross_compiling:$ac_tool_warned in | ||
6662 | yes:) | ||
6663 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6664 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6665 | ac_tool_warned=yes ;; | ||
6666 | esac | ||
6667 | OTOOL=$ac_ct_OTOOL | ||
6668 | fi | ||
6669 | else | ||
6670 | OTOOL="$ac_cv_prog_OTOOL" | ||
6671 | fi | ||
6672 | |||
6673 | if test -n "$ac_tool_prefix"; then | ||
6674 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | ||
6675 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | ||
6676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6677 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6678 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | ||
6679 | $as_echo_n "(cached) " >&6 | ||
6680 | else | ||
6681 | if test -n "$OTOOL64"; then | ||
6682 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | ||
6683 | else | ||
6684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6685 | for as_dir in $PATH | ||
6686 | do | ||
6687 | IFS=$as_save_IFS | ||
6688 | test -z "$as_dir" && as_dir=. | ||
6689 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6690 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6691 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | ||
6692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6693 | break 2 | ||
6694 | fi | ||
6695 | done | ||
6696 | done | ||
6697 | IFS=$as_save_IFS | ||
6698 | |||
6699 | fi | ||
6700 | fi | ||
6701 | OTOOL64=$ac_cv_prog_OTOOL64 | ||
6702 | if test -n "$OTOOL64"; then | ||
6703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | ||
6704 | $as_echo "$OTOOL64" >&6; } | ||
6705 | else | ||
6706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6707 | $as_echo "no" >&6; } | ||
6708 | fi | ||
6709 | |||
6710 | |||
6711 | fi | ||
6712 | if test -z "$ac_cv_prog_OTOOL64"; then | ||
6713 | ac_ct_OTOOL64=$OTOOL64 | ||
6714 | # Extract the first word of "otool64", so it can be a program name with args. | ||
6715 | set dummy otool64; ac_word=$2 | ||
6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6717 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6718 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | ||
6719 | $as_echo_n "(cached) " >&6 | ||
6720 | else | ||
6721 | if test -n "$ac_ct_OTOOL64"; then | ||
6722 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | ||
6723 | else | ||
6724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6725 | for as_dir in $PATH | ||
6726 | do | ||
6727 | IFS=$as_save_IFS | ||
6728 | test -z "$as_dir" && as_dir=. | ||
6729 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6731 | ac_cv_prog_ac_ct_OTOOL64="otool64" | ||
6732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6733 | break 2 | ||
6734 | fi | ||
6735 | done | ||
6736 | done | ||
6737 | IFS=$as_save_IFS | ||
6738 | |||
6739 | fi | ||
6740 | fi | ||
6741 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | ||
6742 | if test -n "$ac_ct_OTOOL64"; then | ||
6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | ||
6744 | $as_echo "$ac_ct_OTOOL64" >&6; } | ||
6745 | else | ||
6746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6747 | $as_echo "no" >&6; } | ||
6748 | fi | ||
6749 | |||
6750 | if test "x$ac_ct_OTOOL64" = x; then | ||
6751 | OTOOL64=":" | ||
6752 | else | ||
6753 | case $cross_compiling:$ac_tool_warned in | ||
6754 | yes:) | ||
6755 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6756 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6757 | ac_tool_warned=yes ;; | ||
6758 | esac | ||
6759 | OTOOL64=$ac_ct_OTOOL64 | ||
6760 | fi | ||
6761 | else | ||
6762 | OTOOL64="$ac_cv_prog_OTOOL64" | ||
6763 | fi | ||
6764 | |||
6765 | |||
6766 | |||
6767 | |||
6768 | |||
6769 | |||
6770 | |||
6771 | |||
6772 | |||
6773 | |||
6774 | |||
6775 | |||
6776 | |||
6777 | |||
6778 | |||
6779 | |||
6780 | |||
6781 | |||
6782 | |||
6783 | |||
6784 | |||
6785 | |||
6786 | |||
6787 | |||
6788 | |||
6789 | |||
6790 | |||
6791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | ||
6792 | $as_echo_n "checking for -single_module linker flag... " >&6; } | ||
6793 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | ||
6794 | $as_echo_n "(cached) " >&6 | ||
6795 | else | ||
6796 | lt_cv_apple_cc_single_mod=no | ||
6797 | if test -z "${LT_MULTI_MODULE}"; then | ||
6798 | # By default we will add the -single_module flag. You can override | ||
6799 | # by either setting the environment variable LT_MULTI_MODULE | ||
6800 | # non-empty at configure time, or by adding -multi_module to the | ||
6801 | # link flags. | ||
6802 | rm -rf libconftest.dylib* | ||
6803 | echo "int foo(void){return 1;}" > conftest.c | ||
6804 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
6805 | -dynamiclib -Wl,-single_module conftest.c" >&5 | ||
6806 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
6807 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | ||
6808 | _lt_result=$? | ||
6809 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | ||
6810 | lt_cv_apple_cc_single_mod=yes | ||
6811 | else | ||
6812 | cat conftest.err >&5 | ||
6813 | fi | ||
6814 | rm -rf libconftest.dylib* | ||
6815 | rm -f conftest.* | ||
6816 | fi | ||
6817 | fi | ||
6818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | ||
6819 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | ||
6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | ||
6821 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | ||
6822 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | ||
6823 | $as_echo_n "(cached) " >&6 | ||
6824 | else | ||
6825 | lt_cv_ld_exported_symbols_list=no | ||
6826 | save_LDFLAGS=$LDFLAGS | ||
6827 | echo "_main" > conftest.sym | ||
6828 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | ||
6829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6830 | /* end confdefs.h. */ | ||
6831 | |||
6832 | int | ||
6833 | main () | ||
6834 | { | ||
6835 | |||
6836 | ; | ||
6837 | return 0; | ||
6838 | } | ||
6839 | _ACEOF | ||
6840 | if ac_fn_c_try_link "$LINENO"; then : | ||
6841 | lt_cv_ld_exported_symbols_list=yes | ||
6842 | else | ||
6843 | lt_cv_ld_exported_symbols_list=no | ||
6844 | fi | ||
6845 | rm -f core conftest.err conftest.$ac_objext \ | ||
6846 | conftest$ac_exeext conftest.$ac_ext | ||
6847 | LDFLAGS="$save_LDFLAGS" | ||
6848 | |||
6849 | fi | ||
6850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | ||
6851 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | ||
6852 | case $host_os in | ||
6853 | rhapsody* | darwin1.[012]) | ||
6854 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
6855 | darwin1.*) | ||
6856 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
6857 | darwin*) # darwin 5.x on | ||
6858 | # if running on 10.5 or later, the deployment target defaults | ||
6859 | # to the OS version, if on x86, and 10.4, the deployment | ||
6860 | # target defaults to 10.4. Don't you love it? | ||
6861 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | ||
6862 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | ||
6863 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
6864 | 10.[012]*) | ||
6865 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
6866 | 10.*) | ||
6867 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
6868 | esac | ||
6869 | ;; | ||
6870 | esac | ||
6871 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | ||
6872 | _lt_dar_single_mod='$single_module' | ||
6873 | fi | ||
6874 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | ||
6875 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | ||
6876 | else | ||
6877 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
6878 | fi | ||
6879 | if test "$DSYMUTIL" != ":"; then | ||
6880 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
6881 | else | ||
6882 | _lt_dsymutil= | ||
6883 | fi | ||
6884 | ;; | ||
6885 | esac | ||
6886 | |||
6887 | ac_ext=c | ||
6888 | ac_cpp='$CPP $CPPFLAGS' | ||
6889 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6890 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6891 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
6893 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
6894 | # On Suns, sometimes $CPP names a directory. | ||
6895 | if test -n "$CPP" && test -d "$CPP"; then | ||
6896 | CPP= | ||
6897 | fi | ||
6898 | if test -z "$CPP"; then | ||
6899 | if test "${ac_cv_prog_CPP+set}" = set; then : | ||
6900 | $as_echo_n "(cached) " >&6 | ||
6901 | else | ||
6902 | # Double quotes because CPP needs to be expanded | ||
6903 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
6904 | do | ||
6905 | ac_preproc_ok=false | ||
6906 | for ac_c_preproc_warn_flag in '' yes | ||
6907 | do | ||
6908 | # Use a header file that comes with gcc, so configuring glibc | ||
6909 | # with a fresh cross-compiler works. | ||
6910 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6911 | # <limits.h> exists even on freestanding compilers. | ||
6912 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
6913 | # not just through cpp. "Syntax error" is here to catch this case. | ||
6914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6915 | /* end confdefs.h. */ | ||
6916 | #ifdef __STDC__ | ||
6917 | # include <limits.h> | ||
6918 | #else | ||
6919 | # include <assert.h> | ||
6920 | #endif | ||
6921 | Syntax error | ||
6922 | _ACEOF | ||
6923 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
6924 | |||
6925 | else | ||
6926 | # Broken: fails on valid input. | ||
6927 | continue | ||
6928 | fi | ||
6929 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
6930 | |||
6931 | # OK, works on sane cases. Now check whether nonexistent headers | ||
6932 | # can be detected and how. | ||
6933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6934 | /* end confdefs.h. */ | ||
6935 | #include <ac_nonexistent.h> | ||
6936 | _ACEOF | ||
6937 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
6938 | # Broken: success on invalid input. | ||
6939 | continue | ||
6940 | else | ||
6941 | # Passes both tests. | ||
6942 | ac_preproc_ok=: | ||
6943 | break | ||
6944 | fi | ||
6945 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
6946 | |||
6947 | done | ||
6948 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
6949 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
6950 | if $ac_preproc_ok; then : | ||
6951 | break | ||
6952 | fi | ||
6953 | |||
6954 | done | ||
6955 | ac_cv_prog_CPP=$CPP | ||
6956 | |||
6957 | fi | ||
6958 | CPP=$ac_cv_prog_CPP | ||
6959 | else | ||
6960 | ac_cv_prog_CPP=$CPP | ||
6961 | fi | ||
6962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
6963 | $as_echo "$CPP" >&6; } | ||
6964 | ac_preproc_ok=false | ||
6965 | for ac_c_preproc_warn_flag in '' yes | ||
6966 | do | ||
6967 | # Use a header file that comes with gcc, so configuring glibc | ||
6968 | # with a fresh cross-compiler works. | ||
6969 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6970 | # <limits.h> exists even on freestanding compilers. | ||
6971 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
6972 | # not just through cpp. "Syntax error" is here to catch this case. | ||
6973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6974 | /* end confdefs.h. */ | ||
6975 | #ifdef __STDC__ | ||
6976 | # include <limits.h> | ||
6977 | #else | ||
6978 | # include <assert.h> | ||
6979 | #endif | ||
6980 | Syntax error | ||
6981 | _ACEOF | ||
6982 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
6983 | |||
6984 | else | ||
6985 | # Broken: fails on valid input. | ||
6986 | continue | ||
6987 | fi | ||
6988 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
6989 | |||
6990 | # OK, works on sane cases. Now check whether nonexistent headers | ||
6991 | # can be detected and how. | ||
6992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6993 | /* end confdefs.h. */ | ||
6994 | #include <ac_nonexistent.h> | ||
6995 | _ACEOF | ||
6996 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
6997 | # Broken: success on invalid input. | ||
6998 | continue | ||
6999 | else | ||
7000 | # Passes both tests. | ||
7001 | ac_preproc_ok=: | ||
7002 | break | ||
7003 | fi | ||
7004 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
7005 | |||
7006 | done | ||
7007 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
7008 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
7009 | if $ac_preproc_ok; then : | ||
7010 | |||
7011 | else | ||
7012 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
7013 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
7014 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
7015 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
7016 | fi | ||
7017 | |||
7018 | ac_ext=c | ||
7019 | ac_cpp='$CPP $CPPFLAGS' | ||
7020 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7021 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7022 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7023 | |||
7024 | |||
7025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
7026 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
7027 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
7028 | $as_echo_n "(cached) " >&6 | ||
7029 | else | ||
7030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7031 | /* end confdefs.h. */ | ||
7032 | #include <stdlib.h> | ||
7033 | #include <stdarg.h> | ||
7034 | #include <string.h> | ||
7035 | #include <float.h> | ||
7036 | |||
7037 | int | ||
7038 | main () | ||
7039 | { | ||
7040 | |||
7041 | ; | ||
7042 | return 0; | ||
7043 | } | ||
7044 | _ACEOF | ||
7045 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7046 | ac_cv_header_stdc=yes | ||
7047 | else | ||
7048 | ac_cv_header_stdc=no | ||
7049 | fi | ||
7050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7051 | |||
7052 | if test $ac_cv_header_stdc = yes; then | ||
7053 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
7054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7055 | /* end confdefs.h. */ | ||
7056 | #include <string.h> | ||
7057 | |||
7058 | _ACEOF | ||
7059 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
7060 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
7061 | |||
7062 | else | ||
7063 | ac_cv_header_stdc=no | ||
7064 | fi | ||
7065 | rm -f conftest* | ||
7066 | |||
7067 | fi | ||
7068 | |||
7069 | if test $ac_cv_header_stdc = yes; then | ||
7070 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
7071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7072 | /* end confdefs.h. */ | ||
7073 | #include <stdlib.h> | ||
7074 | |||
7075 | _ACEOF | ||
7076 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
7077 | $EGREP "free" >/dev/null 2>&1; then : | ||
7078 | |||
7079 | else | ||
7080 | ac_cv_header_stdc=no | ||
7081 | fi | ||
7082 | rm -f conftest* | ||
7083 | |||
7084 | fi | ||
7085 | |||
7086 | if test $ac_cv_header_stdc = yes; then | ||
7087 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
7088 | if test "$cross_compiling" = yes; then : | ||
7089 | : | ||
7090 | else | ||
7091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7092 | /* end confdefs.h. */ | ||
7093 | #include <ctype.h> | ||
7094 | #include <stdlib.h> | ||
7095 | #if ((' ' & 0x0FF) == 0x020) | ||
7096 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
7097 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
7098 | #else | ||
7099 | # define ISLOWER(c) \ | ||
7100 | (('a' <= (c) && (c) <= 'i') \ | ||
7101 | || ('j' <= (c) && (c) <= 'r') \ | ||
7102 | || ('s' <= (c) && (c) <= 'z')) | ||
7103 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
7104 | #endif | ||
7105 | |||
7106 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
7107 | int | ||
7108 | main () | ||
7109 | { | ||
7110 | int i; | ||
7111 | for (i = 0; i < 256; i++) | ||
7112 | if (XOR (islower (i), ISLOWER (i)) | ||
7113 | || toupper (i) != TOUPPER (i)) | ||
7114 | return 2; | ||
7115 | return 0; | ||
7116 | } | ||
7117 | _ACEOF | ||
7118 | if ac_fn_c_try_run "$LINENO"; then : | ||
7119 | |||
7120 | else | ||
7121 | ac_cv_header_stdc=no | ||
7122 | fi | ||
7123 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
7124 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
7125 | fi | ||
7126 | |||
7127 | fi | ||
7128 | fi | ||
7129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
7130 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
7131 | if test $ac_cv_header_stdc = yes; then | ||
7132 | |||
7133 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
7134 | |||
7135 | fi | ||
7136 | |||
7137 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
7138 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
7139 | inttypes.h stdint.h unistd.h | ||
7140 | do : | ||
7141 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7142 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
7143 | " | ||
7144 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
7145 | cat >>confdefs.h <<_ACEOF | ||
7146 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7147 | _ACEOF | ||
7148 | |||
7149 | fi | ||
7150 | |||
7151 | done | ||
7152 | |||
7153 | |||
7154 | for ac_header in dlfcn.h | ||
7155 | do : | ||
7156 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | ||
7157 | " | ||
7158 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | ||
7159 | cat >>confdefs.h <<_ACEOF | ||
7160 | #define HAVE_DLFCN_H 1 | ||
7161 | _ACEOF | ||
7162 | |||
7163 | fi | ||
7164 | |||
7165 | done | ||
7166 | |||
7167 | |||
7168 | |||
7169 | # Set options | ||
7170 | |||
7171 | |||
7172 | |||
7173 | enable_dlopen=no | ||
7174 | |||
7175 | |||
7176 | |||
7177 | # Check whether --enable-shared was given. | ||
7178 | if test "${enable_shared+set}" = set; then : | ||
7179 | enableval=$enable_shared; p=${PACKAGE-default} | ||
7180 | case $enableval in | ||
7181 | yes) enable_shared=yes ;; | ||
7182 | no) enable_shared=no ;; | ||
7183 | *) | ||
7184 | enable_shared=no | ||
7185 | # Look at the argument we got. We use all the common list separators. | ||
7186 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
7187 | for pkg in $enableval; do | ||
7188 | IFS="$lt_save_ifs" | ||
7189 | if test "X$pkg" = "X$p"; then | ||
7190 | enable_shared=yes | ||
7191 | fi | ||
7192 | done | ||
7193 | IFS="$lt_save_ifs" | ||
7194 | ;; | ||
7195 | esac | ||
7196 | else | ||
7197 | enable_shared=yes | ||
7198 | fi | ||
7199 | |||
7200 | |||
7201 | |||
7202 | |||
7203 | |||
7204 | |||
7205 | |||
7206 | |||
7207 | |||
7208 | # Check whether --enable-static was given. | ||
7209 | if test "${enable_static+set}" = set; then : | ||
7210 | enableval=$enable_static; p=${PACKAGE-default} | ||
7211 | case $enableval in | ||
7212 | yes) enable_static=yes ;; | ||
7213 | no) enable_static=no ;; | ||
7214 | *) | ||
7215 | enable_static=no | ||
7216 | # Look at the argument we got. We use all the common list separators. | ||
7217 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
7218 | for pkg in $enableval; do | ||
7219 | IFS="$lt_save_ifs" | ||
7220 | if test "X$pkg" = "X$p"; then | ||
7221 | enable_static=yes | ||
7222 | fi | ||
7223 | done | ||
7224 | IFS="$lt_save_ifs" | ||
7225 | ;; | ||
7226 | esac | ||
7227 | else | ||
7228 | enable_static=yes | ||
7229 | fi | ||
7230 | |||
7231 | |||
7232 | |||
7233 | |||
7234 | |||
7235 | |||
7236 | |||
7237 | |||
7238 | |||
7239 | |||
7240 | # Check whether --with-pic was given. | ||
7241 | if test "${with_pic+set}" = set; then : | ||
7242 | withval=$with_pic; pic_mode="$withval" | ||
7243 | else | ||
7244 | pic_mode=default | ||
7245 | fi | ||
7246 | |||
7247 | |||
7248 | test -z "$pic_mode" && pic_mode=default | ||
7249 | |||
7250 | |||
7251 | |||
7252 | |||
7253 | |||
7254 | |||
7255 | |||
7256 | # Check whether --enable-fast-install was given. | ||
7257 | if test "${enable_fast_install+set}" = set; then : | ||
7258 | enableval=$enable_fast_install; p=${PACKAGE-default} | ||
7259 | case $enableval in | ||
7260 | yes) enable_fast_install=yes ;; | ||
7261 | no) enable_fast_install=no ;; | ||
7262 | *) | ||
7263 | enable_fast_install=no | ||
7264 | # Look at the argument we got. We use all the common list separators. | ||
7265 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
7266 | for pkg in $enableval; do | ||
7267 | IFS="$lt_save_ifs" | ||
7268 | if test "X$pkg" = "X$p"; then | ||
7269 | enable_fast_install=yes | ||
7270 | fi | ||
7271 | done | ||
7272 | IFS="$lt_save_ifs" | ||
7273 | ;; | ||
7274 | esac | ||
7275 | else | ||
7276 | enable_fast_install=yes | ||
7277 | fi | ||
7278 | |||
7279 | |||
7280 | |||
7281 | |||
7282 | |||
7283 | |||
7284 | |||
7285 | |||
7286 | |||
7287 | |||
7288 | |||
7289 | # This can be used to rebuild libtool when needed | ||
7290 | LIBTOOL_DEPS="$ltmain" | ||
7291 | |||
7292 | # Always use our own libtool. | ||
7293 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
7294 | |||
7295 | |||
7296 | |||
7297 | |||
7298 | |||
7299 | |||
7300 | |||
7301 | |||
7302 | |||
7303 | |||
7304 | |||
7305 | |||
7306 | |||
7307 | |||
7308 | |||
7309 | |||
7310 | |||
7311 | |||
7312 | |||
7313 | |||
7314 | |||
7315 | |||
7316 | |||
7317 | |||
7318 | |||
7319 | test -z "$LN_S" && LN_S="ln -s" | ||
7320 | |||
7321 | |||
7322 | |||
7323 | |||
7324 | |||
7325 | |||
7326 | |||
7327 | |||
7328 | |||
7329 | |||
7330 | |||
7331 | |||
7332 | |||
7333 | |||
7334 | if test -n "${ZSH_VERSION+set}" ; then | ||
7335 | setopt NO_GLOB_SUBST | ||
7336 | fi | ||
7337 | |||
7338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | ||
7339 | $as_echo_n "checking for objdir... " >&6; } | ||
7340 | if test "${lt_cv_objdir+set}" = set; then : | ||
7341 | $as_echo_n "(cached) " >&6 | ||
7342 | else | ||
7343 | rm -f .libs 2>/dev/null | ||
7344 | mkdir .libs 2>/dev/null | ||
7345 | if test -d .libs; then | ||
7346 | lt_cv_objdir=.libs | ||
7347 | else | ||
7348 | # MS-DOS does not allow filenames that begin with a dot. | ||
7349 | lt_cv_objdir=_libs | ||
7350 | fi | ||
7351 | rmdir .libs 2>/dev/null | ||
7352 | fi | ||
7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | ||
7354 | $as_echo "$lt_cv_objdir" >&6; } | ||
7355 | objdir=$lt_cv_objdir | ||
7356 | |||
7357 | |||
7358 | |||
7359 | |||
7360 | |||
7361 | cat >>confdefs.h <<_ACEOF | ||
7362 | #define LT_OBJDIR "$lt_cv_objdir/" | ||
7363 | _ACEOF | ||
7364 | |||
7365 | |||
7366 | |||
7367 | |||
7368 | |||
7369 | |||
7370 | |||
7371 | |||
7372 | |||
7373 | |||
7374 | |||
7375 | |||
7376 | |||
7377 | |||
7378 | |||
7379 | |||
7380 | |||
7381 | case $host_os in | ||
7382 | aix3*) | ||
7383 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
7384 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
7385 | # vanish in a puff of smoke. | ||
7386 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
7387 | COLLECT_NAMES= | ||
7388 | export COLLECT_NAMES | ||
7389 | fi | ||
7390 | ;; | ||
7391 | esac | ||
7392 | |||
7393 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
7394 | # metacharacters that are still active within double-quoted strings. | ||
7395 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
7396 | |||
7397 | # Same as above, but do not quote variable references. | ||
7398 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
7399 | |||
7400 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
7401 | # double_quote_subst'ed string. | ||
7402 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
7403 | |||
7404 | # Sed substitution to delay expansion of an escaped single quote. | ||
7405 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
7406 | |||
7407 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
7408 | no_glob_subst='s/\*/\\\*/g' | ||
7409 | |||
7410 | # Global variables: | ||
7411 | ofile=libtool | ||
7412 | can_build_shared=yes | ||
7413 | |||
7414 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
7415 | # which needs '.lib'). | ||
7416 | libext=a | ||
7417 | |||
7418 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
7419 | |||
7420 | old_CC="$CC" | ||
7421 | old_CFLAGS="$CFLAGS" | ||
7422 | |||
7423 | # Set sane defaults for various variables | ||
7424 | test -z "$CC" && CC=cc | ||
7425 | test -z "$LTCC" && LTCC=$CC | ||
7426 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
7427 | test -z "$LD" && LD=ld | ||
7428 | test -z "$ac_objext" && ac_objext=o | ||
7429 | |||
7430 | for cc_temp in $compiler""; do | ||
7431 | case $cc_temp in | ||
7432 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
7433 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
7434 | \-*) ;; | ||
7435 | *) break;; | ||
7436 | esac | ||
7437 | done | ||
7438 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
7439 | |||
7440 | |||
7441 | # Only perform the check for file, if the check method requires it | ||
7442 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
7443 | case $deplibs_check_method in | ||
7444 | file_magic*) | ||
7445 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
7446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | ||
7447 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | ||
7448 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
7449 | $as_echo_n "(cached) " >&6 | ||
7450 | else | ||
7451 | case $MAGIC_CMD in | ||
7452 | [\\/*] | ?:[\\/]*) | ||
7453 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
7454 | ;; | ||
7455 | *) | ||
7456 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
7457 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
7458 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
7459 | for ac_dir in $ac_dummy; do | ||
7460 | IFS="$lt_save_ifs" | ||
7461 | test -z "$ac_dir" && ac_dir=. | ||
7462 | if test -f $ac_dir/${ac_tool_prefix}file; then | ||
7463 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | ||
7464 | if test -n "$file_magic_test_file"; then | ||
7465 | case $deplibs_check_method in | ||
7466 | "file_magic "*) | ||
7467 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
7468 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7469 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
7470 | $EGREP "$file_magic_regex" > /dev/null; then | ||
7471 | : | ||
7472 | else | ||
7473 | cat <<_LT_EOF 1>&2 | ||
7474 | |||
7475 | *** Warning: the command libtool uses to detect shared libraries, | ||
7476 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
7477 | *** The result is that libtool may fail to recognize shared libraries | ||
7478 | *** as such. This will affect the creation of libtool libraries that | ||
7479 | *** depend on shared libraries, but programs linked with such libtool | ||
7480 | *** libraries will work regardless of this problem. Nevertheless, you | ||
7481 | *** may want to report the problem to your system manager and/or to | ||
7482 | *** bug-libtool@gnu.org | ||
7483 | |||
7484 | _LT_EOF | ||
7485 | fi ;; | ||
7486 | esac | ||
7487 | fi | ||
7488 | break | ||
7489 | fi | ||
7490 | done | ||
7491 | IFS="$lt_save_ifs" | ||
7492 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
7493 | ;; | ||
7494 | esac | ||
7495 | fi | ||
7496 | |||
7497 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7498 | if test -n "$MAGIC_CMD"; then | ||
7499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
7500 | $as_echo "$MAGIC_CMD" >&6; } | ||
7501 | else | ||
7502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7503 | $as_echo "no" >&6; } | ||
7504 | fi | ||
7505 | |||
7506 | |||
7507 | |||
7508 | |||
7509 | |||
7510 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
7511 | if test -n "$ac_tool_prefix"; then | ||
7512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | ||
7513 | $as_echo_n "checking for file... " >&6; } | ||
7514 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
7515 | $as_echo_n "(cached) " >&6 | ||
7516 | else | ||
7517 | case $MAGIC_CMD in | ||
7518 | [\\/*] | ?:[\\/]*) | ||
7519 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
7520 | ;; | ||
7521 | *) | ||
7522 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
7523 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
7524 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
7525 | for ac_dir in $ac_dummy; do | ||
7526 | IFS="$lt_save_ifs" | ||
7527 | test -z "$ac_dir" && ac_dir=. | ||
7528 | if test -f $ac_dir/file; then | ||
7529 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | ||
7530 | if test -n "$file_magic_test_file"; then | ||
7531 | case $deplibs_check_method in | ||
7532 | "file_magic "*) | ||
7533 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
7534 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7535 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
7536 | $EGREP "$file_magic_regex" > /dev/null; then | ||
7537 | : | ||
7538 | else | ||
7539 | cat <<_LT_EOF 1>&2 | ||
7540 | |||
7541 | *** Warning: the command libtool uses to detect shared libraries, | ||
7542 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
7543 | *** The result is that libtool may fail to recognize shared libraries | ||
7544 | *** as such. This will affect the creation of libtool libraries that | ||
7545 | *** depend on shared libraries, but programs linked with such libtool | ||
7546 | *** libraries will work regardless of this problem. Nevertheless, you | ||
7547 | *** may want to report the problem to your system manager and/or to | ||
7548 | *** bug-libtool@gnu.org | ||
7549 | |||
7550 | _LT_EOF | ||
7551 | fi ;; | ||
7552 | esac | ||
7553 | fi | ||
7554 | break | ||
7555 | fi | ||
7556 | done | ||
7557 | IFS="$lt_save_ifs" | ||
7558 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
7559 | ;; | ||
7560 | esac | ||
7561 | fi | ||
7562 | |||
7563 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7564 | if test -n "$MAGIC_CMD"; then | ||
7565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
7566 | $as_echo "$MAGIC_CMD" >&6; } | ||
7567 | else | ||
7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7569 | $as_echo "no" >&6; } | ||
7570 | fi | ||
7571 | |||
7572 | |||
7573 | else | ||
7574 | MAGIC_CMD=: | ||
7575 | fi | ||
7576 | fi | ||
7577 | |||
7578 | fi | ||
7579 | ;; | ||
7580 | esac | ||
7581 | |||
7582 | # Use C for the default configuration in the libtool script | ||
7583 | |||
7584 | lt_save_CC="$CC" | ||
7585 | ac_ext=c | ||
7586 | ac_cpp='$CPP $CPPFLAGS' | ||
7587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7590 | |||
7591 | |||
7592 | # Source file extension for C test sources. | ||
7593 | ac_ext=c | ||
7594 | |||
7595 | # Object file extension for compiled C test sources. | ||
7596 | objext=o | ||
7597 | objext=$objext | ||
7598 | |||
7599 | # Code to be used in simple compile tests | ||
7600 | lt_simple_compile_test_code="int some_variable = 0;" | ||
7601 | |||
7602 | # Code to be used in simple link tests | ||
7603 | lt_simple_link_test_code='int main(){return(0);}' | ||
7604 | |||
7605 | |||
7606 | |||
7607 | |||
7608 | |||
7609 | |||
7610 | |||
7611 | # If no C compiler was specified, use CC. | ||
7612 | LTCC=${LTCC-"$CC"} | ||
7613 | |||
7614 | # If no C compiler flags were specified, use CFLAGS. | ||
7615 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
7616 | |||
7617 | # Allow CC to be a program name with arguments. | ||
7618 | compiler=$CC | ||
7619 | |||
7620 | # Save the default compiler, since it gets overwritten when the other | ||
7621 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | ||
7622 | compiler_DEFAULT=$CC | ||
7623 | |||
7624 | # save warnings/boilerplate of simple test code | ||
7625 | ac_outfile=conftest.$ac_objext | ||
7626 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
7627 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
7628 | _lt_compiler_boilerplate=`cat conftest.err` | ||
7629 | $RM conftest* | ||
7630 | |||
7631 | ac_outfile=conftest.$ac_objext | ||
7632 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
7633 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
7634 | _lt_linker_boilerplate=`cat conftest.err` | ||
7635 | $RM -r conftest* | ||
7636 | |||
7637 | |||
7638 | ## CAVEAT EMPTOR: | ||
7639 | ## There is no encapsulation within the following macros, do not change | ||
7640 | ## the running order or otherwise move them around unless you know exactly | ||
7641 | ## what you are doing... | ||
7642 | if test -n "$compiler"; then | ||
7643 | |||
7644 | lt_prog_compiler_no_builtin_flag= | ||
7645 | |||
7646 | if test "$GCC" = yes; then | ||
7647 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
7648 | |||
7649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
7650 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | ||
7651 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | ||
7652 | $as_echo_n "(cached) " >&6 | ||
7653 | else | ||
7654 | lt_cv_prog_compiler_rtti_exceptions=no | ||
7655 | ac_outfile=conftest.$ac_objext | ||
7656 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
7657 | lt_compiler_flag="-fno-rtti -fno-exceptions" | ||
7658 | # Insert the option either (1) after the last *FLAGS variable, or | ||
7659 | # (2) before a word containing "conftest.", or (3) at the end. | ||
7660 | # Note that $ac_compile itself does not contain backslashes and begins | ||
7661 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
7662 | # The option is referenced via a variable to avoid confusing sed. | ||
7663 | lt_compile=`echo "$ac_compile" | $SED \ | ||
7664 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
7665 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
7666 | -e 's:$: $lt_compiler_flag:'` | ||
7667 | (eval echo "\"\$as_me:7667: $lt_compile\"" >&5) | ||
7668 | (eval "$lt_compile" 2>conftest.err) | ||
7669 | ac_status=$? | ||
7670 | cat conftest.err >&5 | ||
7671 | echo "$as_me:7671: \$? = $ac_status" >&5 | ||
7672 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
7673 | # The compiler can only warn and ignore the option if not recognized | ||
7674 | # So say no if there are warnings other than the usual output. | ||
7675 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
7676 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
7677 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
7678 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
7679 | fi | ||
7680 | fi | ||
7681 | $RM conftest* | ||
7682 | |||
7683 | fi | ||
7684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | ||
7685 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | ||
7686 | |||
7687 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | ||
7688 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | ||
7689 | else | ||
7690 | : | ||
7691 | fi | ||
7692 | |||
7693 | fi | ||
7694 | |||
7695 | |||
7696 | |||
7697 | |||
7698 | |||
7699 | |||
7700 | lt_prog_compiler_wl= | ||
7701 | lt_prog_compiler_pic= | ||
7702 | lt_prog_compiler_static= | ||
7703 | |||
7704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
7705 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
7706 | |||
7707 | if test "$GCC" = yes; then | ||
7708 | lt_prog_compiler_wl='-Wl,' | ||
7709 | lt_prog_compiler_static='-static' | ||
7710 | |||
7711 | case $host_os in | ||
7712 | aix*) | ||
7713 | # All AIX code is PIC. | ||
7714 | if test "$host_cpu" = ia64; then | ||
7715 | # AIX 5 now supports IA64 processor | ||
7716 | lt_prog_compiler_static='-Bstatic' | ||
7717 | fi | ||
7718 | ;; | ||
7719 | |||
7720 | amigaos*) | ||
7721 | case $host_cpu in | ||
7722 | powerpc) | ||
7723 | # see comment about AmigaOS4 .so support | ||
7724 | lt_prog_compiler_pic='-fPIC' | ||
7725 | ;; | ||
7726 | m68k) | ||
7727 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
7728 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
7729 | # like `-m68040'. | ||
7730 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | ||
7731 | ;; | ||
7732 | esac | ||
7733 | ;; | ||
7734 | |||
7735 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
7736 | # PIC is the default for these OSes. | ||
7737 | ;; | ||
7738 | |||
7739 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
7740 | # This hack is so that the source file can tell whether it is being | ||
7741 | # built for inclusion in a dll (and should export symbols for example). | ||
7742 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
7743 | # (--disable-auto-import) libraries | ||
7744 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
7745 | ;; | ||
7746 | |||
7747 | darwin* | rhapsody*) | ||
7748 | # PIC is the default on this platform | ||
7749 | # Common symbols not allowed in MH_DYLIB files | ||
7750 | lt_prog_compiler_pic='-fno-common' | ||
7751 | ;; | ||
7752 | |||
7753 | hpux*) | ||
7754 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
7755 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
7756 | # sets the default TLS model and affects inlining. | ||
7757 | case $host_cpu in | ||
7758 | hppa*64*) | ||
7759 | # +Z the default | ||
7760 | ;; | ||
7761 | *) | ||
7762 | lt_prog_compiler_pic='-fPIC' | ||
7763 | ;; | ||
7764 | esac | ||
7765 | ;; | ||
7766 | |||
7767 | interix[3-9]*) | ||
7768 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
7769 | # Instead, we relocate shared libraries at runtime. | ||
7770 | ;; | ||
7771 | |||
7772 | msdosdjgpp*) | ||
7773 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
7774 | # on systems that don't support them. | ||
7775 | lt_prog_compiler_can_build_shared=no | ||
7776 | enable_shared=no | ||
7777 | ;; | ||
7778 | |||
7779 | *nto* | *qnx*) | ||
7780 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
7781 | # it will coredump. | ||
7782 | lt_prog_compiler_pic='-fPIC -shared' | ||
7783 | ;; | ||
7784 | |||
7785 | sysv4*MP*) | ||
7786 | if test -d /usr/nec; then | ||
7787 | lt_prog_compiler_pic=-Kconform_pic | ||
7788 | fi | ||
7789 | ;; | ||
7790 | |||
7791 | *) | ||
7792 | lt_prog_compiler_pic='-fPIC' | ||
7793 | ;; | ||
7794 | esac | ||
7795 | else | ||
7796 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
7797 | case $host_os in | ||
7798 | aix*) | ||
7799 | lt_prog_compiler_wl='-Wl,' | ||
7800 | if test "$host_cpu" = ia64; then | ||
7801 | # AIX 5 now supports IA64 processor | ||
7802 | lt_prog_compiler_static='-Bstatic' | ||
7803 | else | ||
7804 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | ||
7805 | fi | ||
7806 | ;; | ||
7807 | |||
7808 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
7809 | # This hack is so that the source file can tell whether it is being | ||
7810 | # built for inclusion in a dll (and should export symbols for example). | ||
7811 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
7812 | ;; | ||
7813 | |||
7814 | hpux9* | hpux10* | hpux11*) | ||
7815 | lt_prog_compiler_wl='-Wl,' | ||
7816 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
7817 | # not for PA HP-UX. | ||
7818 | case $host_cpu in | ||
7819 | hppa*64*|ia64*) | ||
7820 | # +Z the default | ||
7821 | ;; | ||
7822 | *) | ||
7823 | lt_prog_compiler_pic='+Z' | ||
7824 | ;; | ||
7825 | esac | ||
7826 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
7827 | lt_prog_compiler_static='${wl}-a ${wl}archive' | ||
7828 | ;; | ||
7829 | |||
7830 | irix5* | irix6* | nonstopux*) | ||
7831 | lt_prog_compiler_wl='-Wl,' | ||
7832 | # PIC (with -KPIC) is the default. | ||
7833 | lt_prog_compiler_static='-non_shared' | ||
7834 | ;; | ||
7835 | |||
7836 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
7837 | case $cc_basename in | ||
7838 | # old Intel for x86_64 which still supported -KPIC. | ||
7839 | ecc*) | ||
7840 | lt_prog_compiler_wl='-Wl,' | ||
7841 | lt_prog_compiler_pic='-KPIC' | ||
7842 | lt_prog_compiler_static='-static' | ||
7843 | ;; | ||
7844 | # icc used to be incompatible with GCC. | ||
7845 | # ICC 10 doesn't accept -KPIC any more. | ||
7846 | icc* | ifort*) | ||
7847 | lt_prog_compiler_wl='-Wl,' | ||
7848 | lt_prog_compiler_pic='-fPIC' | ||
7849 | lt_prog_compiler_static='-static' | ||
7850 | ;; | ||
7851 | # Lahey Fortran 8.1. | ||
7852 | lf95*) | ||
7853 | lt_prog_compiler_wl='-Wl,' | ||
7854 | lt_prog_compiler_pic='--shared' | ||
7855 | lt_prog_compiler_static='--static' | ||
7856 | ;; | ||
7857 | pgcc* | pgf77* | pgf90* | pgf95*) | ||
7858 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
7859 | # which looks to be a dead project) | ||
7860 | lt_prog_compiler_wl='-Wl,' | ||
7861 | lt_prog_compiler_pic='-fpic' | ||
7862 | lt_prog_compiler_static='-Bstatic' | ||
7863 | ;; | ||
7864 | ccc*) | ||
7865 | lt_prog_compiler_wl='-Wl,' | ||
7866 | # All Alpha code is PIC. | ||
7867 | lt_prog_compiler_static='-non_shared' | ||
7868 | ;; | ||
7869 | xl*) | ||
7870 | # IBM XL C 8.0/Fortran 10.1 on PPC | ||
7871 | lt_prog_compiler_wl='-Wl,' | ||
7872 | lt_prog_compiler_pic='-qpic' | ||
7873 | lt_prog_compiler_static='-qstaticlink' | ||
7874 | ;; | ||
7875 | *) | ||
7876 | case `$CC -V 2>&1 | sed 5q` in | ||
7877 | *Sun\ C*) | ||
7878 | # Sun C 5.9 | ||
7879 | lt_prog_compiler_pic='-KPIC' | ||
7880 | lt_prog_compiler_static='-Bstatic' | ||
7881 | lt_prog_compiler_wl='-Wl,' | ||
7882 | ;; | ||
7883 | *Sun\ F*) | ||
7884 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
7885 | lt_prog_compiler_pic='-KPIC' | ||
7886 | lt_prog_compiler_static='-Bstatic' | ||
7887 | lt_prog_compiler_wl='' | ||
7888 | ;; | ||
7889 | esac | ||
7890 | ;; | ||
7891 | esac | ||
7892 | ;; | ||
7893 | |||
7894 | newsos6) | ||
7895 | lt_prog_compiler_pic='-KPIC' | ||
7896 | lt_prog_compiler_static='-Bstatic' | ||
7897 | ;; | ||
7898 | |||
7899 | *nto* | *qnx*) | ||
7900 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
7901 | # it will coredump. | ||
7902 | lt_prog_compiler_pic='-fPIC -shared' | ||
7903 | ;; | ||
7904 | |||
7905 | osf3* | osf4* | osf5*) | ||
7906 | lt_prog_compiler_wl='-Wl,' | ||
7907 | # All OSF/1 code is PIC. | ||
7908 | lt_prog_compiler_static='-non_shared' | ||
7909 | ;; | ||
7910 | |||
7911 | rdos*) | ||
7912 | lt_prog_compiler_static='-non_shared' | ||
7913 | ;; | ||
7914 | |||
7915 | solaris*) | ||
7916 | lt_prog_compiler_pic='-KPIC' | ||
7917 | lt_prog_compiler_static='-Bstatic' | ||
7918 | case $cc_basename in | ||
7919 | f77* | f90* | f95*) | ||
7920 | lt_prog_compiler_wl='-Qoption ld ';; | ||
7921 | *) | ||
7922 | lt_prog_compiler_wl='-Wl,';; | ||
7923 | esac | ||
7924 | ;; | ||
7925 | |||
7926 | sunos4*) | ||
7927 | lt_prog_compiler_wl='-Qoption ld ' | ||
7928 | lt_prog_compiler_pic='-PIC' | ||
7929 | lt_prog_compiler_static='-Bstatic' | ||
7930 | ;; | ||
7931 | |||
7932 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
7933 | lt_prog_compiler_wl='-Wl,' | ||
7934 | lt_prog_compiler_pic='-KPIC' | ||
7935 | lt_prog_compiler_static='-Bstatic' | ||
7936 | ;; | ||
7937 | |||
7938 | sysv4*MP*) | ||
7939 | if test -d /usr/nec ;then | ||
7940 | lt_prog_compiler_pic='-Kconform_pic' | ||
7941 | lt_prog_compiler_static='-Bstatic' | ||
7942 | fi | ||
7943 | ;; | ||
7944 | |||
7945 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
7946 | lt_prog_compiler_wl='-Wl,' | ||
7947 | lt_prog_compiler_pic='-KPIC' | ||
7948 | lt_prog_compiler_static='-Bstatic' | ||
7949 | ;; | ||
7950 | |||
7951 | unicos*) | ||
7952 | lt_prog_compiler_wl='-Wl,' | ||
7953 | lt_prog_compiler_can_build_shared=no | ||
7954 | ;; | ||
7955 | |||
7956 | uts4*) | ||
7957 | lt_prog_compiler_pic='-pic' | ||
7958 | lt_prog_compiler_static='-Bstatic' | ||
7959 | ;; | ||
7960 | |||
7961 | *) | ||
7962 | lt_prog_compiler_can_build_shared=no | ||
7963 | ;; | ||
7964 | esac | ||
7965 | fi | ||
7966 | |||
7967 | case $host_os in | ||
7968 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
7969 | *djgpp*) | ||
7970 | lt_prog_compiler_pic= | ||
7971 | ;; | ||
7972 | *) | ||
7973 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
7974 | ;; | ||
7975 | esac | ||
7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
7977 | $as_echo "$lt_prog_compiler_pic" >&6; } | ||
7978 | |||
7979 | |||
7980 | |||
7981 | |||
7982 | |||
7983 | |||
7984 | # | ||
7985 | # Check to make sure the PIC flag actually works. | ||
7986 | # | ||
7987 | if test -n "$lt_prog_compiler_pic"; then | ||
7988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | ||
7989 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | ||
7990 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | ||
7991 | $as_echo_n "(cached) " >&6 | ||
7992 | else | ||
7993 | lt_cv_prog_compiler_pic_works=no | ||
7994 | ac_outfile=conftest.$ac_objext | ||
7995 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
7996 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | ||
7997 | # Insert the option either (1) after the last *FLAGS variable, or | ||
7998 | # (2) before a word containing "conftest.", or (3) at the end. | ||
7999 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8000 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8001 | # The option is referenced via a variable to avoid confusing sed. | ||
8002 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8003 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8004 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8005 | -e 's:$: $lt_compiler_flag:'` | ||
8006 | (eval echo "\"\$as_me:8006: $lt_compile\"" >&5) | ||
8007 | (eval "$lt_compile" 2>conftest.err) | ||
8008 | ac_status=$? | ||
8009 | cat conftest.err >&5 | ||
8010 | echo "$as_me:8010: \$? = $ac_status" >&5 | ||
8011 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
8012 | # The compiler can only warn and ignore the option if not recognized | ||
8013 | # So say no if there are warnings other than the usual output. | ||
8014 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
8015 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8016 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
8017 | lt_cv_prog_compiler_pic_works=yes | ||
8018 | fi | ||
8019 | fi | ||
8020 | $RM conftest* | ||
8021 | |||
8022 | fi | ||
8023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | ||
8024 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | ||
8025 | |||
8026 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | ||
8027 | case $lt_prog_compiler_pic in | ||
8028 | "" | " "*) ;; | ||
8029 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | ||
8030 | esac | ||
8031 | else | ||
8032 | lt_prog_compiler_pic= | ||
8033 | lt_prog_compiler_can_build_shared=no | ||
8034 | fi | ||
8035 | |||
8036 | fi | ||
8037 | |||
8038 | |||
8039 | |||
8040 | |||
8041 | |||
8042 | |||
8043 | # | ||
8044 | # Check to make sure the static flag actually works. | ||
8045 | # | ||
8046 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | ||
8047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
8048 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | ||
8049 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | ||
8050 | $as_echo_n "(cached) " >&6 | ||
8051 | else | ||
8052 | lt_cv_prog_compiler_static_works=no | ||
8053 | save_LDFLAGS="$LDFLAGS" | ||
8054 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
8055 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
8056 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
8057 | # The linker can only warn and ignore the option if not recognized | ||
8058 | # So say no if there are warnings | ||
8059 | if test -s conftest.err; then | ||
8060 | # Append any errors to the config.log. | ||
8061 | cat conftest.err 1>&5 | ||
8062 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
8063 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8064 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
8065 | lt_cv_prog_compiler_static_works=yes | ||
8066 | fi | ||
8067 | else | ||
8068 | lt_cv_prog_compiler_static_works=yes | ||
8069 | fi | ||
8070 | fi | ||
8071 | $RM -r conftest* | ||
8072 | LDFLAGS="$save_LDFLAGS" | ||
8073 | |||
8074 | fi | ||
8075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | ||
8076 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | ||
8077 | |||
8078 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | ||
8079 | : | ||
8080 | else | ||
8081 | lt_prog_compiler_static= | ||
8082 | fi | ||
8083 | |||
8084 | |||
8085 | |||
8086 | |||
8087 | |||
8088 | |||
8089 | |||
8090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
8091 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
8092 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
8093 | $as_echo_n "(cached) " >&6 | ||
8094 | else | ||
8095 | lt_cv_prog_compiler_c_o=no | ||
8096 | $RM -r conftest 2>/dev/null | ||
8097 | mkdir conftest | ||
8098 | cd conftest | ||
8099 | mkdir out | ||
8100 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8101 | |||
8102 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
8103 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8104 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8105 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8106 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8107 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8108 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8109 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8110 | -e 's:$: $lt_compiler_flag:'` | ||
8111 | (eval echo "\"\$as_me:8111: $lt_compile\"" >&5) | ||
8112 | (eval "$lt_compile" 2>out/conftest.err) | ||
8113 | ac_status=$? | ||
8114 | cat out/conftest.err >&5 | ||
8115 | echo "$as_me:8115: \$? = $ac_status" >&5 | ||
8116 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
8117 | then | ||
8118 | # The compiler can only warn and ignore the option if not recognized | ||
8119 | # So say no if there are warnings | ||
8120 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
8121 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
8122 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
8123 | lt_cv_prog_compiler_c_o=yes | ||
8124 | fi | ||
8125 | fi | ||
8126 | chmod u+w . 2>&5 | ||
8127 | $RM conftest* | ||
8128 | # SGI C++ compiler will create directory out/ii_files/ for | ||
8129 | # template instantiation | ||
8130 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
8131 | $RM out/* && rmdir out | ||
8132 | cd .. | ||
8133 | $RM -r conftest | ||
8134 | $RM conftest* | ||
8135 | |||
8136 | fi | ||
8137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
8138 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
8139 | |||
8140 | |||
8141 | |||
8142 | |||
8143 | |||
8144 | |||
8145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
8146 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
8147 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
8148 | $as_echo_n "(cached) " >&6 | ||
8149 | else | ||
8150 | lt_cv_prog_compiler_c_o=no | ||
8151 | $RM -r conftest 2>/dev/null | ||
8152 | mkdir conftest | ||
8153 | cd conftest | ||
8154 | mkdir out | ||
8155 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8156 | |||
8157 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
8158 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8159 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8160 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8161 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8162 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8163 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8164 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8165 | -e 's:$: $lt_compiler_flag:'` | ||
8166 | (eval echo "\"\$as_me:8166: $lt_compile\"" >&5) | ||
8167 | (eval "$lt_compile" 2>out/conftest.err) | ||
8168 | ac_status=$? | ||
8169 | cat out/conftest.err >&5 | ||
8170 | echo "$as_me:8170: \$? = $ac_status" >&5 | ||
8171 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
8172 | then | ||
8173 | # The compiler can only warn and ignore the option if not recognized | ||
8174 | # So say no if there are warnings | ||
8175 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
8176 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
8177 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
8178 | lt_cv_prog_compiler_c_o=yes | ||
8179 | fi | ||
8180 | fi | ||
8181 | chmod u+w . 2>&5 | ||
8182 | $RM conftest* | ||
8183 | # SGI C++ compiler will create directory out/ii_files/ for | ||
8184 | # template instantiation | ||
8185 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
8186 | $RM out/* && rmdir out | ||
8187 | cd .. | ||
8188 | $RM -r conftest | ||
8189 | $RM conftest* | ||
8190 | |||
8191 | fi | ||
8192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
8193 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
8194 | |||
8195 | |||
8196 | |||
8197 | |||
8198 | hard_links="nottested" | ||
8199 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | ||
8200 | # do not overwrite the value of need_locks provided by the user | ||
8201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | ||
8202 | $as_echo_n "checking if we can lock with hard links... " >&6; } | ||
8203 | hard_links=yes | ||
8204 | $RM conftest* | ||
8205 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
8206 | touch conftest.a | ||
8207 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
8208 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
8209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | ||
8210 | $as_echo "$hard_links" >&6; } | ||
8211 | if test "$hard_links" = no; then | ||
8212 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
8213 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
8214 | need_locks=warn | ||
8215 | fi | ||
8216 | else | ||
8217 | need_locks=no | ||
8218 | fi | ||
8219 | |||
8220 | |||
8221 | |||
8222 | |||
8223 | |||
8224 | |||
8225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
8226 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
8227 | |||
8228 | runpath_var= | ||
8229 | allow_undefined_flag= | ||
8230 | always_export_symbols=no | ||
8231 | archive_cmds= | ||
8232 | archive_expsym_cmds= | ||
8233 | compiler_needs_object=no | ||
8234 | enable_shared_with_static_runtimes=no | ||
8235 | export_dynamic_flag_spec= | ||
8236 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
8237 | hardcode_automatic=no | ||
8238 | hardcode_direct=no | ||
8239 | hardcode_direct_absolute=no | ||
8240 | hardcode_libdir_flag_spec= | ||
8241 | hardcode_libdir_flag_spec_ld= | ||
8242 | hardcode_libdir_separator= | ||
8243 | hardcode_minus_L=no | ||
8244 | hardcode_shlibpath_var=unsupported | ||
8245 | inherit_rpath=no | ||
8246 | link_all_deplibs=unknown | ||
8247 | module_cmds= | ||
8248 | module_expsym_cmds= | ||
8249 | old_archive_from_new_cmds= | ||
8250 | old_archive_from_expsyms_cmds= | ||
8251 | thread_safe_flag_spec= | ||
8252 | whole_archive_flag_spec= | ||
8253 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
8254 | # included in the symbol list | ||
8255 | include_expsyms= | ||
8256 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
8257 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
8258 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
8259 | # as well as any symbol that contains `d'. | ||
8260 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
8261 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
8262 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
8263 | # the symbol is explicitly referenced. Since portable code cannot | ||
8264 | # rely on this symbol name, it's probably fine to never include it in | ||
8265 | # preloaded symbol tables. | ||
8266 | # Exclude shared library initialization/finalization symbols. | ||
8267 | extract_expsyms_cmds= | ||
8268 | |||
8269 | case $host_os in | ||
8270 | cygwin* | mingw* | pw32* | cegcc*) | ||
8271 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
8272 | # When not using gcc, we currently assume that we are using | ||
8273 | # Microsoft Visual C++. | ||
8274 | if test "$GCC" != yes; then | ||
8275 | with_gnu_ld=no | ||
8276 | fi | ||
8277 | ;; | ||
8278 | interix*) | ||
8279 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
8280 | with_gnu_ld=yes | ||
8281 | ;; | ||
8282 | openbsd*) | ||
8283 | with_gnu_ld=no | ||
8284 | ;; | ||
8285 | linux* | k*bsd*-gnu) | ||
8286 | link_all_deplibs=no | ||
8287 | ;; | ||
8288 | esac | ||
8289 | |||
8290 | ld_shlibs=yes | ||
8291 | if test "$with_gnu_ld" = yes; then | ||
8292 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
8293 | wlarc='${wl}' | ||
8294 | |||
8295 | # Set some defaults for GNU ld with shared library support. These | ||
8296 | # are reset later if shared libraries are not supported. Putting them | ||
8297 | # here allows them to be overridden if necessary. | ||
8298 | runpath_var=LD_RUN_PATH | ||
8299 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8300 | export_dynamic_flag_spec='${wl}--export-dynamic' | ||
8301 | # ancient GNU ld didn't support --whole-archive et. al. | ||
8302 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | ||
8303 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
8304 | else | ||
8305 | whole_archive_flag_spec= | ||
8306 | fi | ||
8307 | supports_anon_versioning=no | ||
8308 | case `$LD -v 2>&1` in | ||
8309 | *GNU\ gold*) supports_anon_versioning=yes ;; | ||
8310 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
8311 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
8312 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
8313 | *\ 2.11.*) ;; # other 2.11 versions | ||
8314 | *) supports_anon_versioning=yes ;; | ||
8315 | esac | ||
8316 | |||
8317 | # See if GNU ld supports shared libraries. | ||
8318 | case $host_os in | ||
8319 | aix[3-9]*) | ||
8320 | # On AIX/PPC, the GNU linker is very broken | ||
8321 | if test "$host_cpu" != ia64; then | ||
8322 | ld_shlibs=no | ||
8323 | cat <<_LT_EOF 1>&2 | ||
8324 | |||
8325 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
8326 | *** to be unable to reliably create shared libraries on AIX. | ||
8327 | *** Therefore, libtool is disabling shared libraries support. If you | ||
8328 | *** really care for shared libraries, you may want to modify your PATH | ||
8329 | *** so that a non-GNU linker is found, and then restart. | ||
8330 | |||
8331 | _LT_EOF | ||
8332 | fi | ||
8333 | ;; | ||
8334 | |||
8335 | amigaos*) | ||
8336 | case $host_cpu in | ||
8337 | powerpc) | ||
8338 | # see comment about AmigaOS4 .so support | ||
8339 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8340 | archive_expsym_cmds='' | ||
8341 | ;; | ||
8342 | m68k) | ||
8343 | 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)' | ||
8344 | hardcode_libdir_flag_spec='-L$libdir' | ||
8345 | hardcode_minus_L=yes | ||
8346 | ;; | ||
8347 | esac | ||
8348 | ;; | ||
8349 | |||
8350 | beos*) | ||
8351 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8352 | allow_undefined_flag=unsupported | ||
8353 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
8354 | # support --undefined. This deserves some investigation. FIXME | ||
8355 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8356 | else | ||
8357 | ld_shlibs=no | ||
8358 | fi | ||
8359 | ;; | ||
8360 | |||
8361 | cygwin* | mingw* | pw32* | cegcc*) | ||
8362 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
8363 | # as there is no search path for DLLs. | ||
8364 | hardcode_libdir_flag_spec='-L$libdir' | ||
8365 | allow_undefined_flag=unsupported | ||
8366 | always_export_symbols=no | ||
8367 | enable_shared_with_static_runtimes=yes | ||
8368 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
8369 | |||
8370 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
8371 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
8372 | # If the export-symbols file already is a .def file (1st line | ||
8373 | # is EXPORTS), use it as is; otherwise, prepend... | ||
8374 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
8375 | cp $export_symbols $output_objdir/$soname.def; | ||
8376 | else | ||
8377 | echo EXPORTS > $output_objdir/$soname.def; | ||
8378 | cat $export_symbols >> $output_objdir/$soname.def; | ||
8379 | fi~ | ||
8380 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
8381 | else | ||
8382 | ld_shlibs=no | ||
8383 | fi | ||
8384 | ;; | ||
8385 | |||
8386 | interix[3-9]*) | ||
8387 | hardcode_direct=no | ||
8388 | hardcode_shlibpath_var=no | ||
8389 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
8390 | export_dynamic_flag_spec='${wl}-E' | ||
8391 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
8392 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
8393 | # default) and relocated if they conflict, which is a slow very memory | ||
8394 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
8395 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
8396 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
8397 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
8398 | 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' | ||
8399 | ;; | ||
8400 | |||
8401 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | ||
8402 | tmp_diet=no | ||
8403 | if test "$host_os" = linux-dietlibc; then | ||
8404 | case $cc_basename in | ||
8405 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | ||
8406 | esac | ||
8407 | fi | ||
8408 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | ||
8409 | && test "$tmp_diet" = no | ||
8410 | then | ||
8411 | tmp_addflag= | ||
8412 | tmp_sharedflag='-shared' | ||
8413 | case $cc_basename,$host_cpu in | ||
8414 | pgcc*) # Portland Group C compiler | ||
8415 | 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' | ||
8416 | tmp_addflag=' $pic_flag' | ||
8417 | ;; | ||
8418 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
8419 | 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' | ||
8420 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
8421 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
8422 | tmp_addflag=' -i_dynamic' ;; | ||
8423 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | ||
8424 | tmp_addflag=' -i_dynamic -nofor_main' ;; | ||
8425 | ifc* | ifort*) # Intel Fortran compiler | ||
8426 | tmp_addflag=' -nofor_main' ;; | ||
8427 | lf95*) # Lahey Fortran 8.1 | ||
8428 | whole_archive_flag_spec= | ||
8429 | tmp_sharedflag='--shared' ;; | ||
8430 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
8431 | tmp_sharedflag='-qmkshrobj' | ||
8432 | tmp_addflag= ;; | ||
8433 | esac | ||
8434 | case `$CC -V 2>&1 | sed 5q` in | ||
8435 | *Sun\ C*) # Sun C 5.9 | ||
8436 | 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' | ||
8437 | compiler_needs_object=yes | ||
8438 | tmp_sharedflag='-G' ;; | ||
8439 | *Sun\ F*) # Sun Fortran 8.3 | ||
8440 | tmp_sharedflag='-G' ;; | ||
8441 | esac | ||
8442 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8443 | |||
8444 | if test "x$supports_anon_versioning" = xyes; then | ||
8445 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
8446 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
8447 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
8448 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
8449 | fi | ||
8450 | |||
8451 | case $cc_basename in | ||
8452 | xlf*) | ||
8453 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | ||
8454 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
8455 | hardcode_libdir_flag_spec= | ||
8456 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
8457 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
8458 | if test "x$supports_anon_versioning" = xyes; then | ||
8459 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
8460 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
8461 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
8462 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
8463 | fi | ||
8464 | ;; | ||
8465 | esac | ||
8466 | else | ||
8467 | ld_shlibs=no | ||
8468 | fi | ||
8469 | ;; | ||
8470 | |||
8471 | netbsd* | netbsdelf*-gnu) | ||
8472 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
8473 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
8474 | wlarc= | ||
8475 | else | ||
8476 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8477 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8478 | fi | ||
8479 | ;; | ||
8480 | |||
8481 | solaris*) | ||
8482 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | ||
8483 | ld_shlibs=no | ||
8484 | cat <<_LT_EOF 1>&2 | ||
8485 | |||
8486 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
8487 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
8488 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
8489 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
8490 | *** your PATH or compiler configuration so that the native linker is | ||
8491 | *** used, and then restart. | ||
8492 | |||
8493 | _LT_EOF | ||
8494 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8495 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8496 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8497 | else | ||
8498 | ld_shlibs=no | ||
8499 | fi | ||
8500 | ;; | ||
8501 | |||
8502 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
8503 | case `$LD -v 2>&1` in | ||
8504 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | ||
8505 | ld_shlibs=no | ||
8506 | cat <<_LT_EOF 1>&2 | ||
8507 | |||
8508 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
8509 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
8510 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
8511 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
8512 | *** your PATH or compiler configuration so that the native linker is | ||
8513 | *** used, and then restart. | ||
8514 | |||
8515 | _LT_EOF | ||
8516 | ;; | ||
8517 | *) | ||
8518 | # For security reasons, it is highly recommended that you always | ||
8519 | # use absolute paths for naming shared libraries, and exclude the | ||
8520 | # DT_RUNPATH tag from executables and libraries. But doing so | ||
8521 | # requires that you compile everything twice, which is a pain. | ||
8522 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8523 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8524 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8525 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8526 | else | ||
8527 | ld_shlibs=no | ||
8528 | fi | ||
8529 | ;; | ||
8530 | esac | ||
8531 | ;; | ||
8532 | |||
8533 | sunos4*) | ||
8534 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
8535 | wlarc= | ||
8536 | hardcode_direct=yes | ||
8537 | hardcode_shlibpath_var=no | ||
8538 | ;; | ||
8539 | |||
8540 | *) | ||
8541 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8542 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8543 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8544 | else | ||
8545 | ld_shlibs=no | ||
8546 | fi | ||
8547 | ;; | ||
8548 | esac | ||
8549 | |||
8550 | if test "$ld_shlibs" = no; then | ||
8551 | runpath_var= | ||
8552 | hardcode_libdir_flag_spec= | ||
8553 | export_dynamic_flag_spec= | ||
8554 | whole_archive_flag_spec= | ||
8555 | fi | ||
8556 | else | ||
8557 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
8558 | case $host_os in | ||
8559 | aix3*) | ||
8560 | allow_undefined_flag=unsupported | ||
8561 | always_export_symbols=yes | ||
8562 | 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' | ||
8563 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
8564 | # are no directories specified by -L. | ||
8565 | hardcode_minus_L=yes | ||
8566 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | ||
8567 | # Neither direct hardcoding nor static linking is supported with a | ||
8568 | # broken collect2. | ||
8569 | hardcode_direct=unsupported | ||
8570 | fi | ||
8571 | ;; | ||
8572 | |||
8573 | aix[4-9]*) | ||
8574 | if test "$host_cpu" = ia64; then | ||
8575 | # On IA64, the linker does run time linking by default, so we don't | ||
8576 | # have to do anything special. | ||
8577 | aix_use_runtimelinking=no | ||
8578 | exp_sym_flag='-Bexport' | ||
8579 | no_entry_flag="" | ||
8580 | else | ||
8581 | # If we're using GNU nm, then we don't want the "-C" option. | ||
8582 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
8583 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
8584 | 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' | ||
8585 | else | ||
8586 | 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' | ||
8587 | fi | ||
8588 | aix_use_runtimelinking=no | ||
8589 | |||
8590 | # Test if we are trying to use run time linking or normal | ||
8591 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
8592 | # need to do runtime linking. | ||
8593 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
8594 | for ld_flag in $LDFLAGS; do | ||
8595 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
8596 | aix_use_runtimelinking=yes | ||
8597 | break | ||
8598 | fi | ||
8599 | done | ||
8600 | ;; | ||
8601 | esac | ||
8602 | |||
8603 | exp_sym_flag='-bexport' | ||
8604 | no_entry_flag='-bnoentry' | ||
8605 | fi | ||
8606 | |||
8607 | # When large executables or shared objects are built, AIX ld can | ||
8608 | # have problems creating the table of contents. If linking a library | ||
8609 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
8610 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
8611 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
8612 | |||
8613 | archive_cmds='' | ||
8614 | hardcode_direct=yes | ||
8615 | hardcode_direct_absolute=yes | ||
8616 | hardcode_libdir_separator=':' | ||
8617 | link_all_deplibs=yes | ||
8618 | file_list_spec='${wl}-f,' | ||
8619 | |||
8620 | if test "$GCC" = yes; then | ||
8621 | case $host_os in aix4.[012]|aix4.[012].*) | ||
8622 | # We only want to do this on AIX 4.2 and lower, the check | ||
8623 | # below for broken collect2 doesn't work under 4.3+ | ||
8624 | collect2name=`${CC} -print-prog-name=collect2` | ||
8625 | if test -f "$collect2name" && | ||
8626 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | ||
8627 | then | ||
8628 | # We have reworked collect2 | ||
8629 | : | ||
8630 | else | ||
8631 | # We have old collect2 | ||
8632 | hardcode_direct=unsupported | ||
8633 | # It fails to find uninstalled libraries when the uninstalled | ||
8634 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
8635 | # to unsupported forces relinking | ||
8636 | hardcode_minus_L=yes | ||
8637 | hardcode_libdir_flag_spec='-L$libdir' | ||
8638 | hardcode_libdir_separator= | ||
8639 | fi | ||
8640 | ;; | ||
8641 | esac | ||
8642 | shared_flag='-shared' | ||
8643 | if test "$aix_use_runtimelinking" = yes; then | ||
8644 | shared_flag="$shared_flag "'${wl}-G' | ||
8645 | fi | ||
8646 | link_all_deplibs=no | ||
8647 | else | ||
8648 | # not using gcc | ||
8649 | if test "$host_cpu" = ia64; then | ||
8650 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
8651 | # chokes on -Wl,-G. The following line is correct: | ||
8652 | shared_flag='-G' | ||
8653 | else | ||
8654 | if test "$aix_use_runtimelinking" = yes; then | ||
8655 | shared_flag='${wl}-G' | ||
8656 | else | ||
8657 | shared_flag='${wl}-bM:SRE' | ||
8658 | fi | ||
8659 | fi | ||
8660 | fi | ||
8661 | |||
8662 | export_dynamic_flag_spec='${wl}-bexpall' | ||
8663 | # It seems that -bexpall does not export symbols beginning with | ||
8664 | # underscore (_), so it is better to generate a list of symbols to export. | ||
8665 | always_export_symbols=yes | ||
8666 | if test "$aix_use_runtimelinking" = yes; then | ||
8667 | # Warning - without using the other runtime loading flags (-brtl), | ||
8668 | # -berok will link without error, but may produce a broken library. | ||
8669 | allow_undefined_flag='-berok' | ||
8670 | # Determine the default libpath from the value encoded in an | ||
8671 | # empty executable. | ||
8672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8673 | /* end confdefs.h. */ | ||
8674 | |||
8675 | int | ||
8676 | main () | ||
8677 | { | ||
8678 | |||
8679 | ; | ||
8680 | return 0; | ||
8681 | } | ||
8682 | _ACEOF | ||
8683 | if ac_fn_c_try_link "$LINENO"; then : | ||
8684 | |||
8685 | lt_aix_libpath_sed=' | ||
8686 | /Import File Strings/,/^$/ { | ||
8687 | /^0/ { | ||
8688 | s/^0 *\(.*\)$/\1/ | ||
8689 | p | ||
8690 | } | ||
8691 | }' | ||
8692 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8693 | # Check for a 64-bit object if we didn't find anything. | ||
8694 | if test -z "$aix_libpath"; then | ||
8695 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8696 | fi | ||
8697 | fi | ||
8698 | rm -f core conftest.err conftest.$ac_objext \ | ||
8699 | conftest$ac_exeext conftest.$ac_ext | ||
8700 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8701 | |||
8702 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8703 | 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" | ||
8704 | else | ||
8705 | if test "$host_cpu" = ia64; then | ||
8706 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
8707 | allow_undefined_flag="-z nodefs" | ||
8708 | 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" | ||
8709 | else | ||
8710 | # Determine the default libpath from the value encoded in an | ||
8711 | # empty executable. | ||
8712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8713 | /* end confdefs.h. */ | ||
8714 | |||
8715 | int | ||
8716 | main () | ||
8717 | { | ||
8718 | |||
8719 | ; | ||
8720 | return 0; | ||
8721 | } | ||
8722 | _ACEOF | ||
8723 | if ac_fn_c_try_link "$LINENO"; then : | ||
8724 | |||
8725 | lt_aix_libpath_sed=' | ||
8726 | /Import File Strings/,/^$/ { | ||
8727 | /^0/ { | ||
8728 | s/^0 *\(.*\)$/\1/ | ||
8729 | p | ||
8730 | } | ||
8731 | }' | ||
8732 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8733 | # Check for a 64-bit object if we didn't find anything. | ||
8734 | if test -z "$aix_libpath"; then | ||
8735 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8736 | fi | ||
8737 | fi | ||
8738 | rm -f core conftest.err conftest.$ac_objext \ | ||
8739 | conftest$ac_exeext conftest.$ac_ext | ||
8740 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8741 | |||
8742 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8743 | # Warning - without using the other run time loading flags, | ||
8744 | # -berok will link without error, but may produce a broken library. | ||
8745 | no_undefined_flag=' ${wl}-bernotok' | ||
8746 | allow_undefined_flag=' ${wl}-berok' | ||
8747 | # Exported symbols can be pulled into shared objects from archives | ||
8748 | whole_archive_flag_spec='$convenience' | ||
8749 | archive_cmds_need_lc=yes | ||
8750 | # This is similar to how AIX traditionally builds its shared libraries. | ||
8751 | 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' | ||
8752 | fi | ||
8753 | fi | ||
8754 | ;; | ||
8755 | |||
8756 | amigaos*) | ||
8757 | case $host_cpu in | ||
8758 | powerpc) | ||
8759 | # see comment about AmigaOS4 .so support | ||
8760 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8761 | archive_expsym_cmds='' | ||
8762 | ;; | ||
8763 | m68k) | ||
8764 | 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)' | ||
8765 | hardcode_libdir_flag_spec='-L$libdir' | ||
8766 | hardcode_minus_L=yes | ||
8767 | ;; | ||
8768 | esac | ||
8769 | ;; | ||
8770 | |||
8771 | bsdi[45]*) | ||
8772 | export_dynamic_flag_spec=-rdynamic | ||
8773 | ;; | ||
8774 | |||
8775 | cygwin* | mingw* | pw32* | cegcc*) | ||
8776 | # When not using gcc, we currently assume that we are using | ||
8777 | # Microsoft Visual C++. | ||
8778 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
8779 | # no search path for DLLs. | ||
8780 | hardcode_libdir_flag_spec=' ' | ||
8781 | allow_undefined_flag=unsupported | ||
8782 | # Tell ltmain to make .lib files, not .a files. | ||
8783 | libext=lib | ||
8784 | # Tell ltmain to make .dll files, not .so files. | ||
8785 | shrext_cmds=".dll" | ||
8786 | # FIXME: Setting linknames here is a bad hack. | ||
8787 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
8788 | # The linker will automatically build a .lib file if we build a DLL. | ||
8789 | old_archive_from_new_cmds='true' | ||
8790 | # FIXME: Should let the user specify the lib program. | ||
8791 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
8792 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
8793 | enable_shared_with_static_runtimes=yes | ||
8794 | ;; | ||
8795 | |||
8796 | darwin* | rhapsody*) | ||
8797 | |||
8798 | |||
8799 | archive_cmds_need_lc=no | ||
8800 | hardcode_direct=no | ||
8801 | hardcode_automatic=yes | ||
8802 | hardcode_shlibpath_var=unsupported | ||
8803 | whole_archive_flag_spec='' | ||
8804 | link_all_deplibs=yes | ||
8805 | allow_undefined_flag="$_lt_dar_allow_undefined" | ||
8806 | case $cc_basename in | ||
8807 | ifort*) _lt_dar_can_shared=yes ;; | ||
8808 | *) _lt_dar_can_shared=$GCC ;; | ||
8809 | esac | ||
8810 | if test "$_lt_dar_can_shared" = "yes"; then | ||
8811 | output_verbose_link_cmd=echo | ||
8812 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
8813 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
8814 | 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}" | ||
8815 | 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}" | ||
8816 | |||
8817 | else | ||
8818 | ld_shlibs=no | ||
8819 | fi | ||
8820 | |||
8821 | ;; | ||
8822 | |||
8823 | dgux*) | ||
8824 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8825 | hardcode_libdir_flag_spec='-L$libdir' | ||
8826 | hardcode_shlibpath_var=no | ||
8827 | ;; | ||
8828 | |||
8829 | freebsd1*) | ||
8830 | ld_shlibs=no | ||
8831 | ;; | ||
8832 | |||
8833 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
8834 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
8835 | # does not break anything, and helps significantly (at the cost of a little | ||
8836 | # extra space). | ||
8837 | freebsd2.2*) | ||
8838 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
8839 | hardcode_libdir_flag_spec='-R$libdir' | ||
8840 | hardcode_direct=yes | ||
8841 | hardcode_shlibpath_var=no | ||
8842 | ;; | ||
8843 | |||
8844 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
8845 | freebsd2*) | ||
8846 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
8847 | hardcode_direct=yes | ||
8848 | hardcode_minus_L=yes | ||
8849 | hardcode_shlibpath_var=no | ||
8850 | ;; | ||
8851 | |||
8852 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
8853 | freebsd* | dragonfly*) | ||
8854 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
8855 | hardcode_libdir_flag_spec='-R$libdir' | ||
8856 | hardcode_direct=yes | ||
8857 | hardcode_shlibpath_var=no | ||
8858 | ;; | ||
8859 | |||
8860 | hpux9*) | ||
8861 | if test "$GCC" = yes; then | ||
8862 | 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' | ||
8863 | else | ||
8864 | 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' | ||
8865 | fi | ||
8866 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
8867 | hardcode_libdir_separator=: | ||
8868 | hardcode_direct=yes | ||
8869 | |||
8870 | # hardcode_minus_L: Not really in the search PATH, | ||
8871 | # but as the default location of the library. | ||
8872 | hardcode_minus_L=yes | ||
8873 | export_dynamic_flag_spec='${wl}-E' | ||
8874 | ;; | ||
8875 | |||
8876 | hpux10*) | ||
8877 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
8878 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8879 | else | ||
8880 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
8881 | fi | ||
8882 | if test "$with_gnu_ld" = no; then | ||
8883 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
8884 | hardcode_libdir_flag_spec_ld='+b $libdir' | ||
8885 | hardcode_libdir_separator=: | ||
8886 | hardcode_direct=yes | ||
8887 | hardcode_direct_absolute=yes | ||
8888 | export_dynamic_flag_spec='${wl}-E' | ||
8889 | # hardcode_minus_L: Not really in the search PATH, | ||
8890 | # but as the default location of the library. | ||
8891 | hardcode_minus_L=yes | ||
8892 | fi | ||
8893 | ;; | ||
8894 | |||
8895 | hpux11*) | ||
8896 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
8897 | case $host_cpu in | ||
8898 | hppa*64*) | ||
8899 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8900 | ;; | ||
8901 | ia64*) | ||
8902 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
8903 | ;; | ||
8904 | *) | ||
8905 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8906 | ;; | ||
8907 | esac | ||
8908 | else | ||
8909 | case $host_cpu in | ||
8910 | hppa*64*) | ||
8911 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8912 | ;; | ||
8913 | ia64*) | ||
8914 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
8915 | ;; | ||
8916 | *) | ||
8917 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8918 | ;; | ||
8919 | esac | ||
8920 | fi | ||
8921 | if test "$with_gnu_ld" = no; then | ||
8922 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
8923 | hardcode_libdir_separator=: | ||
8924 | |||
8925 | case $host_cpu in | ||
8926 | hppa*64*|ia64*) | ||
8927 | hardcode_direct=no | ||
8928 | hardcode_shlibpath_var=no | ||
8929 | ;; | ||
8930 | *) | ||
8931 | hardcode_direct=yes | ||
8932 | hardcode_direct_absolute=yes | ||
8933 | export_dynamic_flag_spec='${wl}-E' | ||
8934 | |||
8935 | # hardcode_minus_L: Not really in the search PATH, | ||
8936 | # but as the default location of the library. | ||
8937 | hardcode_minus_L=yes | ||
8938 | ;; | ||
8939 | esac | ||
8940 | fi | ||
8941 | ;; | ||
8942 | |||
8943 | irix5* | irix6* | nonstopux*) | ||
8944 | if test "$GCC" = yes; then | ||
8945 | 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' | ||
8946 | # Try to use the -exported_symbol ld option, if it does not | ||
8947 | # work, assume that -exports_file does not work either and | ||
8948 | # implicitly export all symbols. | ||
8949 | save_LDFLAGS="$LDFLAGS" | ||
8950 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
8951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8952 | /* end confdefs.h. */ | ||
8953 | int foo(void) {} | ||
8954 | _ACEOF | ||
8955 | if ac_fn_c_try_link "$LINENO"; then : | ||
8956 | 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' | ||
8957 | |||
8958 | fi | ||
8959 | rm -f core conftest.err conftest.$ac_objext \ | ||
8960 | conftest$ac_exeext conftest.$ac_ext | ||
8961 | LDFLAGS="$save_LDFLAGS" | ||
8962 | else | ||
8963 | 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' | ||
8964 | 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' | ||
8965 | fi | ||
8966 | archive_cmds_need_lc='no' | ||
8967 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8968 | hardcode_libdir_separator=: | ||
8969 | inherit_rpath=yes | ||
8970 | link_all_deplibs=yes | ||
8971 | ;; | ||
8972 | |||
8973 | netbsd* | netbsdelf*-gnu) | ||
8974 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
8975 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
8976 | else | ||
8977 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
8978 | fi | ||
8979 | hardcode_libdir_flag_spec='-R$libdir' | ||
8980 | hardcode_direct=yes | ||
8981 | hardcode_shlibpath_var=no | ||
8982 | ;; | ||
8983 | |||
8984 | newsos6) | ||
8985 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8986 | hardcode_direct=yes | ||
8987 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8988 | hardcode_libdir_separator=: | ||
8989 | hardcode_shlibpath_var=no | ||
8990 | ;; | ||
8991 | |||
8992 | *nto* | *qnx*) | ||
8993 | ;; | ||
8994 | |||
8995 | openbsd*) | ||
8996 | if test -f /usr/libexec/ld.so; then | ||
8997 | hardcode_direct=yes | ||
8998 | hardcode_shlibpath_var=no | ||
8999 | hardcode_direct_absolute=yes | ||
9000 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
9001 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
9002 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | ||
9003 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
9004 | export_dynamic_flag_spec='${wl}-E' | ||
9005 | else | ||
9006 | case $host_os in | ||
9007 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
9008 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
9009 | hardcode_libdir_flag_spec='-R$libdir' | ||
9010 | ;; | ||
9011 | *) | ||
9012 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
9013 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
9014 | ;; | ||
9015 | esac | ||
9016 | fi | ||
9017 | else | ||
9018 | ld_shlibs=no | ||
9019 | fi | ||
9020 | ;; | ||
9021 | |||
9022 | os2*) | ||
9023 | hardcode_libdir_flag_spec='-L$libdir' | ||
9024 | hardcode_minus_L=yes | ||
9025 | allow_undefined_flag=unsupported | ||
9026 | 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' | ||
9027 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
9028 | ;; | ||
9029 | |||
9030 | osf3*) | ||
9031 | if test "$GCC" = yes; then | ||
9032 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
9033 | 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' | ||
9034 | else | ||
9035 | allow_undefined_flag=' -expect_unresolved \*' | ||
9036 | 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' | ||
9037 | fi | ||
9038 | archive_cmds_need_lc='no' | ||
9039 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9040 | hardcode_libdir_separator=: | ||
9041 | ;; | ||
9042 | |||
9043 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
9044 | if test "$GCC" = yes; then | ||
9045 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
9046 | 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' | ||
9047 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9048 | else | ||
9049 | allow_undefined_flag=' -expect_unresolved \*' | ||
9050 | 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' | ||
9051 | 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~ | ||
9052 | $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' | ||
9053 | |||
9054 | # Both c and cxx compiler support -rpath directly | ||
9055 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
9056 | fi | ||
9057 | archive_cmds_need_lc='no' | ||
9058 | hardcode_libdir_separator=: | ||
9059 | ;; | ||
9060 | |||
9061 | solaris*) | ||
9062 | no_undefined_flag=' -z defs' | ||
9063 | if test "$GCC" = yes; then | ||
9064 | wlarc='${wl}' | ||
9065 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9066 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9067 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
9068 | else | ||
9069 | case `$CC -V 2>&1` in | ||
9070 | *"Compilers 5.0"*) | ||
9071 | wlarc='' | ||
9072 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9073 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9074 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | ||
9075 | ;; | ||
9076 | *) | ||
9077 | wlarc='${wl}' | ||
9078 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9079 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9080 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
9081 | ;; | ||
9082 | esac | ||
9083 | fi | ||
9084 | hardcode_libdir_flag_spec='-R$libdir' | ||
9085 | hardcode_shlibpath_var=no | ||
9086 | case $host_os in | ||
9087 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
9088 | *) | ||
9089 | # The compiler driver will combine and reorder linker options, | ||
9090 | # but understands `-z linker_flag'. GCC discards it without `$wl', | ||
9091 | # but is careful enough not to reorder. | ||
9092 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
9093 | if test "$GCC" = yes; then | ||
9094 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
9095 | else | ||
9096 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | ||
9097 | fi | ||
9098 | ;; | ||
9099 | esac | ||
9100 | link_all_deplibs=yes | ||
9101 | ;; | ||
9102 | |||
9103 | sunos4*) | ||
9104 | if test "x$host_vendor" = xsequent; then | ||
9105 | # Use $CC to link under sequent, because it throws in some extra .o | ||
9106 | # files that make .init and .fini sections work. | ||
9107 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9108 | else | ||
9109 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
9110 | fi | ||
9111 | hardcode_libdir_flag_spec='-L$libdir' | ||
9112 | hardcode_direct=yes | ||
9113 | hardcode_minus_L=yes | ||
9114 | hardcode_shlibpath_var=no | ||
9115 | ;; | ||
9116 | |||
9117 | sysv4) | ||
9118 | case $host_vendor in | ||
9119 | sni) | ||
9120 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9121 | hardcode_direct=yes # is this really true??? | ||
9122 | ;; | ||
9123 | siemens) | ||
9124 | ## LD is ld it makes a PLAMLIB | ||
9125 | ## CC just makes a GrossModule. | ||
9126 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
9127 | reload_cmds='$CC -r -o $output$reload_objs' | ||
9128 | hardcode_direct=no | ||
9129 | ;; | ||
9130 | motorola) | ||
9131 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9132 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | ||
9133 | ;; | ||
9134 | esac | ||
9135 | runpath_var='LD_RUN_PATH' | ||
9136 | hardcode_shlibpath_var=no | ||
9137 | ;; | ||
9138 | |||
9139 | sysv4.3*) | ||
9140 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9141 | hardcode_shlibpath_var=no | ||
9142 | export_dynamic_flag_spec='-Bexport' | ||
9143 | ;; | ||
9144 | |||
9145 | sysv4*MP*) | ||
9146 | if test -d /usr/nec; then | ||
9147 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9148 | hardcode_shlibpath_var=no | ||
9149 | runpath_var=LD_RUN_PATH | ||
9150 | hardcode_runpath_var=yes | ||
9151 | ld_shlibs=yes | ||
9152 | fi | ||
9153 | ;; | ||
9154 | |||
9155 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
9156 | no_undefined_flag='${wl}-z,text' | ||
9157 | archive_cmds_need_lc=no | ||
9158 | hardcode_shlibpath_var=no | ||
9159 | runpath_var='LD_RUN_PATH' | ||
9160 | |||
9161 | if test "$GCC" = yes; then | ||
9162 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9163 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9164 | else | ||
9165 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9166 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9167 | fi | ||
9168 | ;; | ||
9169 | |||
9170 | sysv5* | sco3.2v5* | sco5v6*) | ||
9171 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
9172 | # link with -lc, and that would cause any symbols used from libc to | ||
9173 | # always be unresolved, which means just about no library would | ||
9174 | # ever link correctly. If we're not using GNU ld we use -z text | ||
9175 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
9176 | # as -z defs. | ||
9177 | no_undefined_flag='${wl}-z,text' | ||
9178 | allow_undefined_flag='${wl}-z,nodefs' | ||
9179 | archive_cmds_need_lc=no | ||
9180 | hardcode_shlibpath_var=no | ||
9181 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | ||
9182 | hardcode_libdir_separator=':' | ||
9183 | link_all_deplibs=yes | ||
9184 | export_dynamic_flag_spec='${wl}-Bexport' | ||
9185 | runpath_var='LD_RUN_PATH' | ||
9186 | |||
9187 | if test "$GCC" = yes; then | ||
9188 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9189 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9190 | else | ||
9191 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9192 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9193 | fi | ||
9194 | ;; | ||
9195 | |||
9196 | uts4*) | ||
9197 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9198 | hardcode_libdir_flag_spec='-L$libdir' | ||
9199 | hardcode_shlibpath_var=no | ||
9200 | ;; | ||
9201 | |||
9202 | *) | ||
9203 | ld_shlibs=no | ||
9204 | ;; | ||
9205 | esac | ||
9206 | |||
9207 | if test x$host_vendor = xsni; then | ||
9208 | case $host in | ||
9209 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
9210 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
9211 | ;; | ||
9212 | esac | ||
9213 | fi | ||
9214 | fi | ||
9215 | |||
9216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | ||
9217 | $as_echo "$ld_shlibs" >&6; } | ||
9218 | test "$ld_shlibs" = no && can_build_shared=no | ||
9219 | |||
9220 | with_gnu_ld=$with_gnu_ld | ||
9221 | |||
9222 | |||
9223 | |||
9224 | |||
9225 | |||
9226 | |||
9227 | |||
9228 | |||
9229 | |||
9230 | |||
9231 | |||
9232 | |||
9233 | |||
9234 | |||
9235 | |||
9236 | # | ||
9237 | # Do we need to explicitly link libc? | ||
9238 | # | ||
9239 | case "x$archive_cmds_need_lc" in | ||
9240 | x|xyes) | ||
9241 | # Assume -lc should be added | ||
9242 | archive_cmds_need_lc=yes | ||
9243 | |||
9244 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
9245 | case $archive_cmds in | ||
9246 | *'~'*) | ||
9247 | # FIXME: we may have to deal with multi-command sequences. | ||
9248 | ;; | ||
9249 | '$CC '*) | ||
9250 | # Test whether the compiler implicitly links with -lc since on some | ||
9251 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
9252 | # to ld, don't add -lc before -lgcc. | ||
9253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | ||
9254 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | ||
9255 | $RM conftest* | ||
9256 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9257 | |||
9258 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
9259 | (eval $ac_compile) 2>&5 | ||
9260 | ac_status=$? | ||
9261 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
9262 | test $ac_status = 0; } 2>conftest.err; then | ||
9263 | soname=conftest | ||
9264 | lib=conftest | ||
9265 | libobjs=conftest.$ac_objext | ||
9266 | deplibs= | ||
9267 | wl=$lt_prog_compiler_wl | ||
9268 | pic_flag=$lt_prog_compiler_pic | ||
9269 | compiler_flags=-v | ||
9270 | linker_flags=-v | ||
9271 | verstring= | ||
9272 | output_objdir=. | ||
9273 | libname=conftest | ||
9274 | lt_save_allow_undefined_flag=$allow_undefined_flag | ||
9275 | allow_undefined_flag= | ||
9276 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | ||
9277 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
9278 | ac_status=$? | ||
9279 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
9280 | test $ac_status = 0; } | ||
9281 | then | ||
9282 | archive_cmds_need_lc=no | ||
9283 | else | ||
9284 | archive_cmds_need_lc=yes | ||
9285 | fi | ||
9286 | allow_undefined_flag=$lt_save_allow_undefined_flag | ||
9287 | else | ||
9288 | cat conftest.err 1>&5 | ||
9289 | fi | ||
9290 | $RM conftest* | ||
9291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | ||
9292 | $as_echo "$archive_cmds_need_lc" >&6; } | ||
9293 | ;; | ||
9294 | esac | ||
9295 | fi | ||
9296 | ;; | ||
9297 | esac | ||
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 | |||
9449 | |||
9450 | |||
9451 | |||
9452 | |||
9453 | |||
9454 | |||
9455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | ||
9456 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | ||
9457 | |||
9458 | if test "$GCC" = yes; then | ||
9459 | case $host_os in | ||
9460 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
9461 | *) lt_awk_arg="/^libraries:/" ;; | ||
9462 | esac | ||
9463 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
9464 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
9465 | # if the path contains ";" then we assume it to be the separator | ||
9466 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
9467 | # assumed that no part of a normal pathname contains ";" but that should | ||
9468 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
9469 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
9470 | else | ||
9471 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
9472 | fi | ||
9473 | # Ok, now we have the path, separated by spaces, we can step through it | ||
9474 | # and add multilib dir if necessary. | ||
9475 | lt_tmp_lt_search_path_spec= | ||
9476 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | ||
9477 | for lt_sys_path in $lt_search_path_spec; do | ||
9478 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | ||
9479 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | ||
9480 | else | ||
9481 | test -d "$lt_sys_path" && \ | ||
9482 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
9483 | fi | ||
9484 | done | ||
9485 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
9486 | BEGIN {RS=" "; FS="/|\n";} { | ||
9487 | lt_foo=""; | ||
9488 | lt_count=0; | ||
9489 | for (lt_i = NF; lt_i > 0; lt_i--) { | ||
9490 | if ($lt_i != "" && $lt_i != ".") { | ||
9491 | if ($lt_i == "..") { | ||
9492 | lt_count++; | ||
9493 | } else { | ||
9494 | if (lt_count == 0) { | ||
9495 | lt_foo="/" $lt_i lt_foo; | ||
9496 | } else { | ||
9497 | lt_count--; | ||
9498 | } | ||
9499 | } | ||
9500 | } | ||
9501 | } | ||
9502 | if (lt_foo != "") { lt_freq[lt_foo]++; } | ||
9503 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | ||
9504 | }'` | ||
9505 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
9506 | else | ||
9507 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
9508 | fi | ||
9509 | library_names_spec= | ||
9510 | libname_spec='lib$name' | ||
9511 | soname_spec= | ||
9512 | shrext_cmds=".so" | ||
9513 | postinstall_cmds= | ||
9514 | postuninstall_cmds= | ||
9515 | finish_cmds= | ||
9516 | finish_eval= | ||
9517 | shlibpath_var= | ||
9518 | shlibpath_overrides_runpath=unknown | ||
9519 | version_type=none | ||
9520 | dynamic_linker="$host_os ld.so" | ||
9521 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
9522 | need_lib_prefix=unknown | ||
9523 | hardcode_into_libs=no | ||
9524 | |||
9525 | # when you set need_version to no, make sure it does not cause -set_version | ||
9526 | # flags to be left without arguments | ||
9527 | need_version=unknown | ||
9528 | |||
9529 | case $host_os in | ||
9530 | aix3*) | ||
9531 | version_type=linux | ||
9532 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
9533 | shlibpath_var=LIBPATH | ||
9534 | |||
9535 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
9536 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9537 | ;; | ||
9538 | |||
9539 | aix[4-9]*) | ||
9540 | version_type=linux | ||
9541 | need_lib_prefix=no | ||
9542 | need_version=no | ||
9543 | hardcode_into_libs=yes | ||
9544 | if test "$host_cpu" = ia64; then | ||
9545 | # AIX 5 supports IA64 | ||
9546 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
9547 | shlibpath_var=LD_LIBRARY_PATH | ||
9548 | else | ||
9549 | # With GCC up to 2.95.x, collect2 would create an import file | ||
9550 | # for dependence libraries. The import file would start with | ||
9551 | # the line `#! .'. This would cause the generated library to | ||
9552 | # depend on `.', always an invalid library. This was fixed in | ||
9553 | # development snapshots of GCC prior to 3.0. | ||
9554 | case $host_os in | ||
9555 | aix4 | aix4.[01] | aix4.[01].*) | ||
9556 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
9557 | echo ' yes ' | ||
9558 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
9559 | : | ||
9560 | else | ||
9561 | can_build_shared=no | ||
9562 | fi | ||
9563 | ;; | ||
9564 | esac | ||
9565 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
9566 | # soname into executable. Probably we can add versioning support to | ||
9567 | # collect2, so additional links can be useful in future. | ||
9568 | if test "$aix_use_runtimelinking" = yes; then | ||
9569 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
9570 | # instead of lib<name>.a to let people know that these are not | ||
9571 | # typical AIX shared libraries. | ||
9572 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9573 | else | ||
9574 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
9575 | # and later when we are not doing run time linking. | ||
9576 | library_names_spec='${libname}${release}.a $libname.a' | ||
9577 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9578 | fi | ||
9579 | shlibpath_var=LIBPATH | ||
9580 | fi | ||
9581 | ;; | ||
9582 | |||
9583 | amigaos*) | ||
9584 | case $host_cpu in | ||
9585 | powerpc) | ||
9586 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
9587 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
9588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9589 | ;; | ||
9590 | m68k) | ||
9591 | library_names_spec='$libname.ixlibrary $libname.a' | ||
9592 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
9593 | 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' | ||
9594 | ;; | ||
9595 | esac | ||
9596 | ;; | ||
9597 | |||
9598 | beos*) | ||
9599 | library_names_spec='${libname}${shared_ext}' | ||
9600 | dynamic_linker="$host_os ld.so" | ||
9601 | shlibpath_var=LIBRARY_PATH | ||
9602 | ;; | ||
9603 | |||
9604 | bsdi[45]*) | ||
9605 | version_type=linux | ||
9606 | need_version=no | ||
9607 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9608 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9609 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
9610 | shlibpath_var=LD_LIBRARY_PATH | ||
9611 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
9612 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
9613 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
9614 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
9615 | # libtool to hard-code these into programs | ||
9616 | ;; | ||
9617 | |||
9618 | cygwin* | mingw* | pw32* | cegcc*) | ||
9619 | version_type=windows | ||
9620 | shrext_cmds=".dll" | ||
9621 | need_version=no | ||
9622 | need_lib_prefix=no | ||
9623 | |||
9624 | case $GCC,$host_os in | ||
9625 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
9626 | library_names_spec='$libname.dll.a' | ||
9627 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
9628 | postinstall_cmds='base_file=`basename \${file}`~ | ||
9629 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
9630 | dldir=$destdir/`dirname \$dlpath`~ | ||
9631 | test -d \$dldir || mkdir -p \$dldir~ | ||
9632 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
9633 | chmod a+x \$dldir/$dlname~ | ||
9634 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
9635 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
9636 | fi' | ||
9637 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
9638 | dlpath=$dir/\$dldll~ | ||
9639 | $RM \$dlpath' | ||
9640 | shlibpath_overrides_runpath=yes | ||
9641 | |||
9642 | case $host_os in | ||
9643 | cygwin*) | ||
9644 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
9645 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
9646 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
9647 | ;; | ||
9648 | mingw* | cegcc*) | ||
9649 | # MinGW DLLs use traditional 'lib' prefix | ||
9650 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
9651 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
9652 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
9653 | # It is most probably a Windows format PATH printed by | ||
9654 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
9655 | # path with ; separators, and with drive letters. We can handle the | ||
9656 | # drive letters (cygwin fileutils understands them), so leave them, | ||
9657 | # especially as we might pass files found there to a mingw objdump, | ||
9658 | # which wouldn't understand a cygwinified path. Ahh. | ||
9659 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
9660 | else | ||
9661 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
9662 | fi | ||
9663 | ;; | ||
9664 | pw32*) | ||
9665 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
9666 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
9667 | ;; | ||
9668 | esac | ||
9669 | ;; | ||
9670 | |||
9671 | *) | ||
9672 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
9673 | ;; | ||
9674 | esac | ||
9675 | dynamic_linker='Win32 ld.exe' | ||
9676 | # FIXME: first we should search . and the directory the executable is in | ||
9677 | shlibpath_var=PATH | ||
9678 | ;; | ||
9679 | |||
9680 | darwin* | rhapsody*) | ||
9681 | dynamic_linker="$host_os dyld" | ||
9682 | version_type=darwin | ||
9683 | need_lib_prefix=no | ||
9684 | need_version=no | ||
9685 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
9686 | soname_spec='${libname}${release}${major}$shared_ext' | ||
9687 | shlibpath_overrides_runpath=yes | ||
9688 | shlibpath_var=DYLD_LIBRARY_PATH | ||
9689 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
9690 | |||
9691 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | ||
9692 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
9693 | ;; | ||
9694 | |||
9695 | dgux*) | ||
9696 | version_type=linux | ||
9697 | need_lib_prefix=no | ||
9698 | need_version=no | ||
9699 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
9700 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9701 | shlibpath_var=LD_LIBRARY_PATH | ||
9702 | ;; | ||
9703 | |||
9704 | freebsd1*) | ||
9705 | dynamic_linker=no | ||
9706 | ;; | ||
9707 | |||
9708 | freebsd* | dragonfly*) | ||
9709 | # DragonFly does not have aout. When/if they implement a new | ||
9710 | # versioning mechanism, adjust this. | ||
9711 | if test -x /usr/bin/objformat; then | ||
9712 | objformat=`/usr/bin/objformat` | ||
9713 | else | ||
9714 | case $host_os in | ||
9715 | freebsd[123]*) objformat=aout ;; | ||
9716 | *) objformat=elf ;; | ||
9717 | esac | ||
9718 | fi | ||
9719 | version_type=freebsd-$objformat | ||
9720 | case $version_type in | ||
9721 | freebsd-elf*) | ||
9722 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
9723 | need_version=no | ||
9724 | need_lib_prefix=no | ||
9725 | ;; | ||
9726 | freebsd-*) | ||
9727 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
9728 | need_version=yes | ||
9729 | ;; | ||
9730 | esac | ||
9731 | shlibpath_var=LD_LIBRARY_PATH | ||
9732 | case $host_os in | ||
9733 | freebsd2*) | ||
9734 | shlibpath_overrides_runpath=yes | ||
9735 | ;; | ||
9736 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
9737 | shlibpath_overrides_runpath=yes | ||
9738 | hardcode_into_libs=yes | ||
9739 | ;; | ||
9740 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
9741 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
9742 | shlibpath_overrides_runpath=no | ||
9743 | hardcode_into_libs=yes | ||
9744 | ;; | ||
9745 | *) # from 4.6 on, and DragonFly | ||
9746 | shlibpath_overrides_runpath=yes | ||
9747 | hardcode_into_libs=yes | ||
9748 | ;; | ||
9749 | esac | ||
9750 | ;; | ||
9751 | |||
9752 | gnu*) | ||
9753 | version_type=linux | ||
9754 | need_lib_prefix=no | ||
9755 | need_version=no | ||
9756 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
9757 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9758 | shlibpath_var=LD_LIBRARY_PATH | ||
9759 | hardcode_into_libs=yes | ||
9760 | ;; | ||
9761 | |||
9762 | hpux9* | hpux10* | hpux11*) | ||
9763 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
9764 | # link against other versions. | ||
9765 | version_type=sunos | ||
9766 | need_lib_prefix=no | ||
9767 | need_version=no | ||
9768 | case $host_cpu in | ||
9769 | ia64*) | ||
9770 | shrext_cmds='.so' | ||
9771 | hardcode_into_libs=yes | ||
9772 | dynamic_linker="$host_os dld.so" | ||
9773 | shlibpath_var=LD_LIBRARY_PATH | ||
9774 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
9775 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9776 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9777 | if test "X$HPUX_IA64_MODE" = X32; then | ||
9778 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
9779 | else | ||
9780 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
9781 | fi | ||
9782 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
9783 | ;; | ||
9784 | hppa*64*) | ||
9785 | shrext_cmds='.sl' | ||
9786 | hardcode_into_libs=yes | ||
9787 | dynamic_linker="$host_os dld.sl" | ||
9788 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
9789 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
9790 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9791 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9792 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
9793 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
9794 | ;; | ||
9795 | *) | ||
9796 | shrext_cmds='.sl' | ||
9797 | dynamic_linker="$host_os dld.sl" | ||
9798 | shlibpath_var=SHLIB_PATH | ||
9799 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
9800 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9801 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9802 | ;; | ||
9803 | esac | ||
9804 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
9805 | postinstall_cmds='chmod 555 $lib' | ||
9806 | ;; | ||
9807 | |||
9808 | interix[3-9]*) | ||
9809 | version_type=linux | ||
9810 | need_lib_prefix=no | ||
9811 | need_version=no | ||
9812 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9813 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9814 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
9815 | shlibpath_var=LD_LIBRARY_PATH | ||
9816 | shlibpath_overrides_runpath=no | ||
9817 | hardcode_into_libs=yes | ||
9818 | ;; | ||
9819 | |||
9820 | irix5* | irix6* | nonstopux*) | ||
9821 | case $host_os in | ||
9822 | nonstopux*) version_type=nonstopux ;; | ||
9823 | *) | ||
9824 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
9825 | version_type=linux | ||
9826 | else | ||
9827 | version_type=irix | ||
9828 | fi ;; | ||
9829 | esac | ||
9830 | need_lib_prefix=no | ||
9831 | need_version=no | ||
9832 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9833 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
9834 | case $host_os in | ||
9835 | irix5* | nonstopux*) | ||
9836 | libsuff= shlibsuff= | ||
9837 | ;; | ||
9838 | *) | ||
9839 | case $LD in # libtool.m4 will add one of these switches to LD | ||
9840 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
9841 | libsuff= shlibsuff= libmagic=32-bit;; | ||
9842 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
9843 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
9844 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
9845 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
9846 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
9847 | esac | ||
9848 | ;; | ||
9849 | esac | ||
9850 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
9851 | shlibpath_overrides_runpath=no | ||
9852 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
9853 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
9854 | hardcode_into_libs=yes | ||
9855 | ;; | ||
9856 | |||
9857 | # No shared lib support for Linux oldld, aout, or coff. | ||
9858 | linux*oldld* | linux*aout* | linux*coff*) | ||
9859 | dynamic_linker=no | ||
9860 | ;; | ||
9861 | |||
9862 | # This must be Linux ELF. | ||
9863 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
9864 | version_type=linux | ||
9865 | need_lib_prefix=no | ||
9866 | need_version=no | ||
9867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9868 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9869 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
9870 | shlibpath_var=LD_LIBRARY_PATH | ||
9871 | shlibpath_overrides_runpath=no | ||
9872 | # Some binutils ld are patched to set DT_RUNPATH | ||
9873 | save_LDFLAGS=$LDFLAGS | ||
9874 | save_libdir=$libdir | ||
9875 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | ||
9876 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | ||
9877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9878 | /* end confdefs.h. */ | ||
9879 | |||
9880 | int | ||
9881 | main () | ||
9882 | { | ||
9883 | |||
9884 | ; | ||
9885 | return 0; | ||
9886 | } | ||
9887 | _ACEOF | ||
9888 | if ac_fn_c_try_link "$LINENO"; then : | ||
9889 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | ||
9890 | shlibpath_overrides_runpath=yes | ||
9891 | fi | ||
9892 | fi | ||
9893 | rm -f core conftest.err conftest.$ac_objext \ | ||
9894 | conftest$ac_exeext conftest.$ac_ext | ||
9895 | LDFLAGS=$save_LDFLAGS | ||
9896 | libdir=$save_libdir | ||
9897 | |||
9898 | # This implies no fast_install, which is unacceptable. | ||
9899 | # Some rework will be needed to allow for fast_install | ||
9900 | # before this can be enabled. | ||
9901 | hardcode_into_libs=yes | ||
9902 | |||
9903 | # Append ld.so.conf contents to the search path | ||
9904 | if test -f /etc/ld.so.conf; then | ||
9905 | 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' ' '` | ||
9906 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
9907 | fi | ||
9908 | |||
9909 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
9910 | # powerpc, because MkLinux only supported shared libraries with the | ||
9911 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
9912 | # most powerpc-linux boxes support dynamic linking these days and | ||
9913 | # people can always --disable-shared, the test was removed, and we | ||
9914 | # assume the GNU/Linux dynamic linker is in use. | ||
9915 | dynamic_linker='GNU/Linux ld.so' | ||
9916 | ;; | ||
9917 | |||
9918 | netbsdelf*-gnu) | ||
9919 | version_type=linux | ||
9920 | need_lib_prefix=no | ||
9921 | need_version=no | ||
9922 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9923 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9924 | shlibpath_var=LD_LIBRARY_PATH | ||
9925 | shlibpath_overrides_runpath=no | ||
9926 | hardcode_into_libs=yes | ||
9927 | dynamic_linker='NetBSD ld.elf_so' | ||
9928 | ;; | ||
9929 | |||
9930 | netbsd*) | ||
9931 | version_type=sunos | ||
9932 | need_lib_prefix=no | ||
9933 | need_version=no | ||
9934 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
9935 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
9936 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
9937 | dynamic_linker='NetBSD (a.out) ld.so' | ||
9938 | else | ||
9939 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9940 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9941 | dynamic_linker='NetBSD ld.elf_so' | ||
9942 | fi | ||
9943 | shlibpath_var=LD_LIBRARY_PATH | ||
9944 | shlibpath_overrides_runpath=yes | ||
9945 | hardcode_into_libs=yes | ||
9946 | ;; | ||
9947 | |||
9948 | newsos6) | ||
9949 | version_type=linux | ||
9950 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9951 | shlibpath_var=LD_LIBRARY_PATH | ||
9952 | shlibpath_overrides_runpath=yes | ||
9953 | ;; | ||
9954 | |||
9955 | *nto* | *qnx*) | ||
9956 | version_type=qnx | ||
9957 | need_lib_prefix=no | ||
9958 | need_version=no | ||
9959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9960 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9961 | shlibpath_var=LD_LIBRARY_PATH | ||
9962 | shlibpath_overrides_runpath=no | ||
9963 | hardcode_into_libs=yes | ||
9964 | dynamic_linker='ldqnx.so' | ||
9965 | ;; | ||
9966 | |||
9967 | openbsd*) | ||
9968 | version_type=sunos | ||
9969 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
9970 | need_lib_prefix=no | ||
9971 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
9972 | case $host_os in | ||
9973 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
9974 | *) need_version=no ;; | ||
9975 | esac | ||
9976 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
9977 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
9978 | shlibpath_var=LD_LIBRARY_PATH | ||
9979 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
9980 | case $host_os in | ||
9981 | openbsd2.[89] | openbsd2.[89].*) | ||
9982 | shlibpath_overrides_runpath=no | ||
9983 | ;; | ||
9984 | *) | ||
9985 | shlibpath_overrides_runpath=yes | ||
9986 | ;; | ||
9987 | esac | ||
9988 | else | ||
9989 | shlibpath_overrides_runpath=yes | ||
9990 | fi | ||
9991 | ;; | ||
9992 | |||
9993 | os2*) | ||
9994 | libname_spec='$name' | ||
9995 | shrext_cmds=".dll" | ||
9996 | need_lib_prefix=no | ||
9997 | library_names_spec='$libname${shared_ext} $libname.a' | ||
9998 | dynamic_linker='OS/2 ld.exe' | ||
9999 | shlibpath_var=LIBPATH | ||
10000 | ;; | ||
10001 | |||
10002 | osf3* | osf4* | osf5*) | ||
10003 | version_type=osf | ||
10004 | need_lib_prefix=no | ||
10005 | need_version=no | ||
10006 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10007 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10008 | shlibpath_var=LD_LIBRARY_PATH | ||
10009 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
10010 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
10011 | ;; | ||
10012 | |||
10013 | rdos*) | ||
10014 | dynamic_linker=no | ||
10015 | ;; | ||
10016 | |||
10017 | solaris*) | ||
10018 | version_type=linux | ||
10019 | need_lib_prefix=no | ||
10020 | need_version=no | ||
10021 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10022 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10023 | shlibpath_var=LD_LIBRARY_PATH | ||
10024 | shlibpath_overrides_runpath=yes | ||
10025 | hardcode_into_libs=yes | ||
10026 | # ldd complains unless libraries are executable | ||
10027 | postinstall_cmds='chmod +x $lib' | ||
10028 | ;; | ||
10029 | |||
10030 | sunos4*) | ||
10031 | version_type=sunos | ||
10032 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
10033 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
10034 | shlibpath_var=LD_LIBRARY_PATH | ||
10035 | shlibpath_overrides_runpath=yes | ||
10036 | if test "$with_gnu_ld" = yes; then | ||
10037 | need_lib_prefix=no | ||
10038 | fi | ||
10039 | need_version=yes | ||
10040 | ;; | ||
10041 | |||
10042 | sysv4 | sysv4.3*) | ||
10043 | version_type=linux | ||
10044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10045 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10046 | shlibpath_var=LD_LIBRARY_PATH | ||
10047 | case $host_vendor in | ||
10048 | sni) | ||
10049 | shlibpath_overrides_runpath=no | ||
10050 | need_lib_prefix=no | ||
10051 | runpath_var=LD_RUN_PATH | ||
10052 | ;; | ||
10053 | siemens) | ||
10054 | need_lib_prefix=no | ||
10055 | ;; | ||
10056 | motorola) | ||
10057 | need_lib_prefix=no | ||
10058 | need_version=no | ||
10059 | shlibpath_overrides_runpath=no | ||
10060 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
10061 | ;; | ||
10062 | esac | ||
10063 | ;; | ||
10064 | |||
10065 | sysv4*MP*) | ||
10066 | if test -d /usr/nec ;then | ||
10067 | version_type=linux | ||
10068 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
10069 | soname_spec='$libname${shared_ext}.$major' | ||
10070 | shlibpath_var=LD_LIBRARY_PATH | ||
10071 | fi | ||
10072 | ;; | ||
10073 | |||
10074 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
10075 | version_type=freebsd-elf | ||
10076 | need_lib_prefix=no | ||
10077 | need_version=no | ||
10078 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
10079 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10080 | shlibpath_var=LD_LIBRARY_PATH | ||
10081 | shlibpath_overrides_runpath=yes | ||
10082 | hardcode_into_libs=yes | ||
10083 | if test "$with_gnu_ld" = yes; then | ||
10084 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
10085 | else | ||
10086 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
10087 | case $host_os in | ||
10088 | sco3.2v5*) | ||
10089 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
10090 | ;; | ||
10091 | esac | ||
10092 | fi | ||
10093 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
10094 | ;; | ||
10095 | |||
10096 | tpf*) | ||
10097 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
10098 | version_type=linux | ||
10099 | need_lib_prefix=no | ||
10100 | need_version=no | ||
10101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10102 | shlibpath_var=LD_LIBRARY_PATH | ||
10103 | shlibpath_overrides_runpath=no | ||
10104 | hardcode_into_libs=yes | ||
10105 | ;; | ||
10106 | |||
10107 | uts4*) | ||
10108 | version_type=linux | ||
10109 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10110 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10111 | shlibpath_var=LD_LIBRARY_PATH | ||
10112 | ;; | ||
10113 | |||
10114 | *) | ||
10115 | dynamic_linker=no | ||
10116 | ;; | ||
10117 | esac | ||
10118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | ||
10119 | $as_echo "$dynamic_linker" >&6; } | ||
10120 | test "$dynamic_linker" = no && can_build_shared=no | ||
10121 | |||
10122 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
10123 | if test "$GCC" = yes; then | ||
10124 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
10125 | fi | ||
10126 | |||
10127 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
10128 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
10129 | fi | ||
10130 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
10131 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
10132 | fi | ||
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 | |||
10214 | |||
10215 | |||
10216 | |||
10217 | |||
10218 | |||
10219 | |||
10220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
10221 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
10222 | hardcode_action= | ||
10223 | if test -n "$hardcode_libdir_flag_spec" || | ||
10224 | test -n "$runpath_var" || | ||
10225 | test "X$hardcode_automatic" = "Xyes" ; then | ||
10226 | |||
10227 | # We can hardcode non-existent directories. | ||
10228 | if test "$hardcode_direct" != no && | ||
10229 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
10230 | # have to relink, otherwise we might link with an installed library | ||
10231 | # when we should be linking with a yet-to-be-installed one | ||
10232 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | ||
10233 | test "$hardcode_minus_L" != no; then | ||
10234 | # Linking always hardcodes the temporary library directory. | ||
10235 | hardcode_action=relink | ||
10236 | else | ||
10237 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
10238 | hardcode_action=immediate | ||
10239 | fi | ||
10240 | else | ||
10241 | # We cannot hardcode anything, or else we can only hardcode existing | ||
10242 | # directories. | ||
10243 | hardcode_action=unsupported | ||
10244 | fi | ||
10245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | ||
10246 | $as_echo "$hardcode_action" >&6; } | ||
10247 | |||
10248 | if test "$hardcode_action" = relink || | ||
10249 | test "$inherit_rpath" = yes; then | ||
10250 | # Fast installation is not supported | ||
10251 | enable_fast_install=no | ||
10252 | elif test "$shlibpath_overrides_runpath" = yes || | ||
10253 | test "$enable_shared" = no; then | ||
10254 | # Fast installation is not necessary | ||
10255 | enable_fast_install=needless | ||
10256 | fi | ||
10257 | |||
10258 | |||
10259 | |||
10260 | |||
10261 | |||
10262 | |||
10263 | if test "x$enable_dlopen" != xyes; then | ||
10264 | enable_dlopen=unknown | ||
10265 | enable_dlopen_self=unknown | ||
10266 | enable_dlopen_self_static=unknown | ||
10267 | else | ||
10268 | lt_cv_dlopen=no | ||
10269 | lt_cv_dlopen_libs= | ||
10270 | |||
10271 | case $host_os in | ||
10272 | beos*) | ||
10273 | lt_cv_dlopen="load_add_on" | ||
10274 | lt_cv_dlopen_libs= | ||
10275 | lt_cv_dlopen_self=yes | ||
10276 | ;; | ||
10277 | |||
10278 | mingw* | pw32* | cegcc*) | ||
10279 | lt_cv_dlopen="LoadLibrary" | ||
10280 | lt_cv_dlopen_libs= | ||
10281 | ;; | ||
10282 | |||
10283 | cygwin*) | ||
10284 | lt_cv_dlopen="dlopen" | ||
10285 | lt_cv_dlopen_libs= | ||
10286 | ;; | ||
10287 | |||
10288 | darwin*) | ||
10289 | # if libdl is installed we need to link against it | ||
10290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
10291 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
10292 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
10293 | $as_echo_n "(cached) " >&6 | ||
10294 | else | ||
10295 | ac_check_lib_save_LIBS=$LIBS | ||
10296 | LIBS="-ldl $LIBS" | ||
10297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10298 | /* end confdefs.h. */ | ||
10299 | |||
10300 | /* Override any GCC internal prototype to avoid an error. | ||
10301 | Use char because int might match the return type of a GCC | ||
10302 | builtin and then its argument prototype would still apply. */ | ||
10303 | #ifdef __cplusplus | ||
10304 | extern "C" | ||
10305 | #endif | ||
10306 | char dlopen (); | ||
10307 | int | ||
10308 | main () | ||
10309 | { | ||
10310 | return dlopen (); | ||
10311 | ; | ||
10312 | return 0; | ||
10313 | } | ||
10314 | _ACEOF | ||
10315 | if ac_fn_c_try_link "$LINENO"; then : | ||
10316 | ac_cv_lib_dl_dlopen=yes | ||
10317 | else | ||
10318 | ac_cv_lib_dl_dlopen=no | ||
10319 | fi | ||
10320 | rm -f core conftest.err conftest.$ac_objext \ | ||
10321 | conftest$ac_exeext conftest.$ac_ext | ||
10322 | LIBS=$ac_check_lib_save_LIBS | ||
10323 | fi | ||
10324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
10325 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
10326 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
10327 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
10328 | else | ||
10329 | |||
10330 | lt_cv_dlopen="dyld" | ||
10331 | lt_cv_dlopen_libs= | ||
10332 | lt_cv_dlopen_self=yes | ||
10333 | |||
10334 | fi | ||
10335 | |||
10336 | ;; | ||
10337 | |||
10338 | *) | ||
10339 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | ||
10340 | if test "x$ac_cv_func_shl_load" = x""yes; then : | ||
10341 | lt_cv_dlopen="shl_load" | ||
10342 | else | ||
10343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | ||
10344 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | ||
10345 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | ||
10346 | $as_echo_n "(cached) " >&6 | ||
10347 | else | ||
10348 | ac_check_lib_save_LIBS=$LIBS | ||
10349 | LIBS="-ldld $LIBS" | ||
10350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10351 | /* end confdefs.h. */ | ||
10352 | |||
10353 | /* Override any GCC internal prototype to avoid an error. | ||
10354 | Use char because int might match the return type of a GCC | ||
10355 | builtin and then its argument prototype would still apply. */ | ||
10356 | #ifdef __cplusplus | ||
10357 | extern "C" | ||
10358 | #endif | ||
10359 | char shl_load (); | ||
10360 | int | ||
10361 | main () | ||
10362 | { | ||
10363 | return shl_load (); | ||
10364 | ; | ||
10365 | return 0; | ||
10366 | } | ||
10367 | _ACEOF | ||
10368 | if ac_fn_c_try_link "$LINENO"; then : | ||
10369 | ac_cv_lib_dld_shl_load=yes | ||
10370 | else | ||
10371 | ac_cv_lib_dld_shl_load=no | ||
10372 | fi | ||
10373 | rm -f core conftest.err conftest.$ac_objext \ | ||
10374 | conftest$ac_exeext conftest.$ac_ext | ||
10375 | LIBS=$ac_check_lib_save_LIBS | ||
10376 | fi | ||
10377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | ||
10378 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | ||
10379 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | ||
10380 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | ||
10381 | else | ||
10382 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||
10383 | if test "x$ac_cv_func_dlopen" = x""yes; then : | ||
10384 | lt_cv_dlopen="dlopen" | ||
10385 | else | ||
10386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
10387 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
10388 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
10389 | $as_echo_n "(cached) " >&6 | ||
10390 | else | ||
10391 | ac_check_lib_save_LIBS=$LIBS | ||
10392 | LIBS="-ldl $LIBS" | ||
10393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10394 | /* end confdefs.h. */ | ||
10395 | |||
10396 | /* Override any GCC internal prototype to avoid an error. | ||
10397 | Use char because int might match the return type of a GCC | ||
10398 | builtin and then its argument prototype would still apply. */ | ||
10399 | #ifdef __cplusplus | ||
10400 | extern "C" | ||
10401 | #endif | ||
10402 | char dlopen (); | ||
10403 | int | ||
10404 | main () | ||
10405 | { | ||
10406 | return dlopen (); | ||
10407 | ; | ||
10408 | return 0; | ||
10409 | } | ||
10410 | _ACEOF | ||
10411 | if ac_fn_c_try_link "$LINENO"; then : | ||
10412 | ac_cv_lib_dl_dlopen=yes | ||
10413 | else | ||
10414 | ac_cv_lib_dl_dlopen=no | ||
10415 | fi | ||
10416 | rm -f core conftest.err conftest.$ac_objext \ | ||
10417 | conftest$ac_exeext conftest.$ac_ext | ||
10418 | LIBS=$ac_check_lib_save_LIBS | ||
10419 | fi | ||
10420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
10421 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
10422 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
10423 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
10424 | else | ||
10425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | ||
10426 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | ||
10427 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | ||
10428 | $as_echo_n "(cached) " >&6 | ||
10429 | else | ||
10430 | ac_check_lib_save_LIBS=$LIBS | ||
10431 | LIBS="-lsvld $LIBS" | ||
10432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10433 | /* end confdefs.h. */ | ||
10434 | |||
10435 | /* Override any GCC internal prototype to avoid an error. | ||
10436 | Use char because int might match the return type of a GCC | ||
10437 | builtin and then its argument prototype would still apply. */ | ||
10438 | #ifdef __cplusplus | ||
10439 | extern "C" | ||
10440 | #endif | ||
10441 | char dlopen (); | ||
10442 | int | ||
10443 | main () | ||
10444 | { | ||
10445 | return dlopen (); | ||
10446 | ; | ||
10447 | return 0; | ||
10448 | } | ||
10449 | _ACEOF | ||
10450 | if ac_fn_c_try_link "$LINENO"; then : | ||
10451 | ac_cv_lib_svld_dlopen=yes | ||
10452 | else | ||
10453 | ac_cv_lib_svld_dlopen=no | ||
10454 | fi | ||
10455 | rm -f core conftest.err conftest.$ac_objext \ | ||
10456 | conftest$ac_exeext conftest.$ac_ext | ||
10457 | LIBS=$ac_check_lib_save_LIBS | ||
10458 | fi | ||
10459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | ||
10460 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | ||
10461 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | ||
10462 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
10463 | else | ||
10464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | ||
10465 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | ||
10466 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | ||
10467 | $as_echo_n "(cached) " >&6 | ||
10468 | else | ||
10469 | ac_check_lib_save_LIBS=$LIBS | ||
10470 | LIBS="-ldld $LIBS" | ||
10471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10472 | /* end confdefs.h. */ | ||
10473 | |||
10474 | /* Override any GCC internal prototype to avoid an error. | ||
10475 | Use char because int might match the return type of a GCC | ||
10476 | builtin and then its argument prototype would still apply. */ | ||
10477 | #ifdef __cplusplus | ||
10478 | extern "C" | ||
10479 | #endif | ||
10480 | char dld_link (); | ||
10481 | int | ||
10482 | main () | ||
10483 | { | ||
10484 | return dld_link (); | ||
10485 | ; | ||
10486 | return 0; | ||
10487 | } | ||
10488 | _ACEOF | ||
10489 | if ac_fn_c_try_link "$LINENO"; then : | ||
10490 | ac_cv_lib_dld_dld_link=yes | ||
10491 | else | ||
10492 | ac_cv_lib_dld_dld_link=no | ||
10493 | fi | ||
10494 | rm -f core conftest.err conftest.$ac_objext \ | ||
10495 | conftest$ac_exeext conftest.$ac_ext | ||
10496 | LIBS=$ac_check_lib_save_LIBS | ||
10497 | fi | ||
10498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | ||
10499 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | ||
10500 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | ||
10501 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | ||
10502 | fi | ||
10503 | |||
10504 | |||
10505 | fi | ||
10506 | |||
10507 | |||
10508 | fi | ||
10509 | |||
10510 | |||
10511 | fi | ||
10512 | |||
10513 | |||
10514 | fi | ||
10515 | |||
10516 | |||
10517 | fi | ||
10518 | |||
10519 | ;; | ||
10520 | esac | ||
10521 | |||
10522 | if test "x$lt_cv_dlopen" != xno; then | ||
10523 | enable_dlopen=yes | ||
10524 | else | ||
10525 | enable_dlopen=no | ||
10526 | fi | ||
10527 | |||
10528 | case $lt_cv_dlopen in | ||
10529 | dlopen) | ||
10530 | save_CPPFLAGS="$CPPFLAGS" | ||
10531 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
10532 | |||
10533 | save_LDFLAGS="$LDFLAGS" | ||
10534 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
10535 | |||
10536 | save_LIBS="$LIBS" | ||
10537 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
10538 | |||
10539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | ||
10540 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | ||
10541 | if test "${lt_cv_dlopen_self+set}" = set; then : | ||
10542 | $as_echo_n "(cached) " >&6 | ||
10543 | else | ||
10544 | if test "$cross_compiling" = yes; then : | ||
10545 | lt_cv_dlopen_self=cross | ||
10546 | else | ||
10547 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
10548 | lt_status=$lt_dlunknown | ||
10549 | cat > conftest.$ac_ext <<_LT_EOF | ||
10550 | #line 10550 "configure" | ||
10551 | #include "confdefs.h" | ||
10552 | |||
10553 | #if HAVE_DLFCN_H | ||
10554 | #include <dlfcn.h> | ||
10555 | #endif | ||
10556 | |||
10557 | #include <stdio.h> | ||
10558 | |||
10559 | #ifdef RTLD_GLOBAL | ||
10560 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
10561 | #else | ||
10562 | # ifdef DL_GLOBAL | ||
10563 | # define LT_DLGLOBAL DL_GLOBAL | ||
10564 | # else | ||
10565 | # define LT_DLGLOBAL 0 | ||
10566 | # endif | ||
10567 | #endif | ||
10568 | |||
10569 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
10570 | find out it does not work in some platform. */ | ||
10571 | #ifndef LT_DLLAZY_OR_NOW | ||
10572 | # ifdef RTLD_LAZY | ||
10573 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
10574 | # else | ||
10575 | # ifdef DL_LAZY | ||
10576 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
10577 | # else | ||
10578 | # ifdef RTLD_NOW | ||
10579 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
10580 | # else | ||
10581 | # ifdef DL_NOW | ||
10582 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
10583 | # else | ||
10584 | # define LT_DLLAZY_OR_NOW 0 | ||
10585 | # endif | ||
10586 | # endif | ||
10587 | # endif | ||
10588 | # endif | ||
10589 | #endif | ||
10590 | |||
10591 | void fnord() { int i=42;} | ||
10592 | int main () | ||
10593 | { | ||
10594 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
10595 | int status = $lt_dlunknown; | ||
10596 | |||
10597 | if (self) | ||
10598 | { | ||
10599 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
10600 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
10601 | /* dlclose (self); */ | ||
10602 | } | ||
10603 | else | ||
10604 | puts (dlerror ()); | ||
10605 | |||
10606 | return status; | ||
10607 | } | ||
10608 | _LT_EOF | ||
10609 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
10610 | (eval $ac_link) 2>&5 | ||
10611 | ac_status=$? | ||
10612 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10613 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
10614 | (./conftest; exit; ) >&5 2>/dev/null | ||
10615 | lt_status=$? | ||
10616 | case x$lt_status in | ||
10617 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
10618 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
10619 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | ||
10620 | esac | ||
10621 | else : | ||
10622 | # compilation failed | ||
10623 | lt_cv_dlopen_self=no | ||
10624 | fi | ||
10625 | fi | ||
10626 | rm -fr conftest* | ||
10627 | |||
10628 | |||
10629 | fi | ||
10630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | ||
10631 | $as_echo "$lt_cv_dlopen_self" >&6; } | ||
10632 | |||
10633 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
10634 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
10635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | ||
10636 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | ||
10637 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | ||
10638 | $as_echo_n "(cached) " >&6 | ||
10639 | else | ||
10640 | if test "$cross_compiling" = yes; then : | ||
10641 | lt_cv_dlopen_self_static=cross | ||
10642 | else | ||
10643 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
10644 | lt_status=$lt_dlunknown | ||
10645 | cat > conftest.$ac_ext <<_LT_EOF | ||
10646 | #line 10646 "configure" | ||
10647 | #include "confdefs.h" | ||
10648 | |||
10649 | #if HAVE_DLFCN_H | ||
10650 | #include <dlfcn.h> | ||
10651 | #endif | ||
10652 | |||
10653 | #include <stdio.h> | ||
10654 | |||
10655 | #ifdef RTLD_GLOBAL | ||
10656 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
10657 | #else | ||
10658 | # ifdef DL_GLOBAL | ||
10659 | # define LT_DLGLOBAL DL_GLOBAL | ||
10660 | # else | ||
10661 | # define LT_DLGLOBAL 0 | ||
10662 | # endif | ||
10663 | #endif | ||
10664 | |||
10665 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
10666 | find out it does not work in some platform. */ | ||
10667 | #ifndef LT_DLLAZY_OR_NOW | ||
10668 | # ifdef RTLD_LAZY | ||
10669 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
10670 | # else | ||
10671 | # ifdef DL_LAZY | ||
10672 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
10673 | # else | ||
10674 | # ifdef RTLD_NOW | ||
10675 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
10676 | # else | ||
10677 | # ifdef DL_NOW | ||
10678 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
10679 | # else | ||
10680 | # define LT_DLLAZY_OR_NOW 0 | ||
10681 | # endif | ||
10682 | # endif | ||
10683 | # endif | ||
10684 | # endif | ||
10685 | #endif | ||
10686 | |||
10687 | void fnord() { int i=42;} | ||
10688 | int main () | ||
10689 | { | ||
10690 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
10691 | int status = $lt_dlunknown; | ||
10692 | |||
10693 | if (self) | ||
10694 | { | ||
10695 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
10696 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
10697 | /* dlclose (self); */ | ||
10698 | } | ||
10699 | else | ||
10700 | puts (dlerror ()); | ||
10701 | |||
10702 | return status; | ||
10703 | } | ||
10704 | _LT_EOF | ||
10705 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
10706 | (eval $ac_link) 2>&5 | ||
10707 | ac_status=$? | ||
10708 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10709 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
10710 | (./conftest; exit; ) >&5 2>/dev/null | ||
10711 | lt_status=$? | ||
10712 | case x$lt_status in | ||
10713 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
10714 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
10715 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | ||
10716 | esac | ||
10717 | else : | ||
10718 | # compilation failed | ||
10719 | lt_cv_dlopen_self_static=no | ||
10720 | fi | ||
10721 | fi | ||
10722 | rm -fr conftest* | ||
10723 | |||
10724 | |||
10725 | fi | ||
10726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | ||
10727 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | ||
10728 | fi | ||
10729 | |||
10730 | CPPFLAGS="$save_CPPFLAGS" | ||
10731 | LDFLAGS="$save_LDFLAGS" | ||
10732 | LIBS="$save_LIBS" | ||
10733 | ;; | ||
10734 | esac | ||
10735 | |||
10736 | case $lt_cv_dlopen_self in | ||
10737 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
10738 | *) enable_dlopen_self=unknown ;; | ||
10739 | esac | ||
10740 | |||
10741 | case $lt_cv_dlopen_self_static in | ||
10742 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
10743 | *) enable_dlopen_self_static=unknown ;; | ||
10744 | esac | ||
10745 | fi | ||
10746 | |||
10747 | |||
10748 | |||
10749 | |||
10750 | |||
10751 | |||
10752 | |||
10753 | |||
10754 | |||
10755 | |||
10756 | |||
10757 | |||
10758 | |||
10759 | |||
10760 | |||
10761 | |||
10762 | |||
10763 | striplib= | ||
10764 | old_striplib= | ||
10765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | ||
10766 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | ||
10767 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | ||
10768 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
10769 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
10770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10771 | $as_echo "yes" >&6; } | ||
10772 | else | ||
10773 | # FIXME - insert some real tests, host_os isn't really good enough | ||
10774 | case $host_os in | ||
10775 | darwin*) | ||
10776 | if test -n "$STRIP" ; then | ||
10777 | striplib="$STRIP -x" | ||
10778 | old_striplib="$STRIP -S" | ||
10779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10780 | $as_echo "yes" >&6; } | ||
10781 | else | ||
10782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10783 | $as_echo "no" >&6; } | ||
10784 | fi | ||
10785 | ;; | ||
10786 | *) | ||
10787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10788 | $as_echo "no" >&6; } | ||
10789 | ;; | ||
10790 | esac | ||
10791 | fi | ||
10792 | |||
10793 | |||
10794 | |||
10795 | |||
10796 | |||
10797 | |||
10798 | |||
10799 | |||
10800 | |||
10801 | |||
10802 | |||
10803 | |||
10804 | # Report which library types will actually be built | ||
10805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | ||
10806 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | ||
10807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | ||
10808 | $as_echo "$can_build_shared" >&6; } | ||
10809 | |||
10810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | ||
10811 | $as_echo_n "checking whether to build shared libraries... " >&6; } | ||
10812 | test "$can_build_shared" = "no" && enable_shared=no | ||
10813 | |||
10814 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
10815 | # are all built from PIC. | ||
10816 | case $host_os in | ||
10817 | aix3*) | ||
10818 | test "$enable_shared" = yes && enable_static=no | ||
10819 | if test -n "$RANLIB"; then | ||
10820 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
10821 | postinstall_cmds='$RANLIB $lib' | ||
10822 | fi | ||
10823 | ;; | ||
10824 | |||
10825 | aix[4-9]*) | ||
10826 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
10827 | test "$enable_shared" = yes && enable_static=no | ||
10828 | fi | ||
10829 | ;; | ||
10830 | esac | ||
10831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | ||
10832 | $as_echo "$enable_shared" >&6; } | ||
10833 | |||
10834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | ||
10835 | $as_echo_n "checking whether to build static libraries... " >&6; } | ||
10836 | # Make sure either enable_shared or enable_static is yes. | ||
10837 | test "$enable_shared" = yes || enable_static=yes | ||
10838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | ||
10839 | $as_echo "$enable_static" >&6; } | ||
10840 | |||
10841 | |||
10842 | |||
10843 | |||
10844 | fi | ||
10845 | ac_ext=c | ||
10846 | ac_cpp='$CPP $CPPFLAGS' | ||
10847 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
10848 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
10849 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
10850 | |||
10851 | CC="$lt_save_CC" | ||
10852 | |||
10853 | |||
10854 | |||
10855 | |||
10856 | |||
10857 | |||
10858 | |||
10859 | |||
10860 | |||
10861 | |||
10862 | |||
10863 | |||
10864 | |||
10865 | ac_config_commands="$ac_config_commands libtool" | ||
10866 | |||
10867 | |||
10868 | |||
10869 | |||
10870 | # Only expand once: | ||
10871 | |||
10872 | |||
10873 | |||
10874 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
10875 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
10876 | |||
10877 | |||
10878 | |||
10879 | cat >>confdefs.h <<_ACEOF | ||
10880 | #define VMAJ 1 | ||
10881 | _ACEOF | ||
10882 | |||
10883 | |||
10884 | cat >>confdefs.h <<_ACEOF | ||
10885 | #define VMIN 6 | ||
10886 | _ACEOF | ||
10887 | |||
10888 | |||
10889 | cat >>confdefs.h <<_ACEOF | ||
10890 | #define VMIC 0 | ||
10891 | _ACEOF | ||
10892 | |||
10893 | |||
10894 | cat >>confdefs.h <<_ACEOF | ||
10895 | #define VREV 0 | ||
10896 | _ACEOF | ||
10897 | |||
10898 | version_info="7:0:6" | ||
10899 | release_info="" | ||
10900 | |||
10901 | |||
10902 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
10903 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
10904 | VMAJ=1 | ||
10905 | |||
10906 | |||
10907 | |||
10908 | ### Needed information | ||
10909 | |||
10910 | |||
10911 | |||
10912 | |||
10913 | ### Default options with respect to host | ||
10914 | |||
10915 | want_gnutls="auto" | ||
10916 | want_openssl="auto" | ||
10917 | want_cipher="yes" | ||
10918 | want_signature="yes" | ||
10919 | |||
10920 | requirement_eet="" | ||
10921 | |||
10922 | |||
10923 | ### Additional options to configure | ||
10924 | |||
10925 | # Amalgamation | ||
10926 | |||
10927 | # Check whether --enable-amalgamation was given. | ||
10928 | if test "${enable_amalgamation+set}" = set; then : | ||
10929 | enableval=$enable_amalgamation; if test "x${enableval}" = "xyes"; then | ||
10930 | do_amalgamation="yes" | ||
10931 | else | ||
10932 | do_amalgamation="no" | ||
10933 | fi | ||
10934 | |||
10935 | else | ||
10936 | do_amalgamation="no" | ||
10937 | |||
10938 | fi | ||
10939 | |||
10940 | if test "x${do_amalgamation}" = "xyes"; then | ||
10941 | EET_AMALGAMATION_TRUE= | ||
10942 | EET_AMALGAMATION_FALSE='#' | ||
10943 | else | ||
10944 | EET_AMALGAMATION_TRUE='#' | ||
10945 | EET_AMALGAMATION_FALSE= | ||
10946 | fi | ||
10947 | |||
10948 | |||
10949 | |||
10950 | |||
10951 | |||
10952 | have_eet="yes" | ||
10953 | |||
10954 | |||
10955 | # Check whether --enable-eet was given. | ||
10956 | if test "${enable_eet+set}" = set; then : | ||
10957 | enableval=$enable_eet; | ||
10958 | if test "x${enableval}" = "xyes" ; then | ||
10959 | have_eet="yes" | ||
10960 | else | ||
10961 | have_eet="no" | ||
10962 | fi | ||
10963 | |||
10964 | fi | ||
10965 | |||
10966 | |||
10967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build eet binary" >&5 | ||
10968 | $as_echo_n "checking whether to build eet binary... " >&6; } | ||
10969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_eet" >&5 | ||
10970 | $as_echo "$have_eet" >&6; } | ||
10971 | |||
10972 | if test "x$have_eet" = "xyes"; then | ||
10973 | EET_PRG=eet${EXEEXT} | ||
10974 | fi | ||
10975 | |||
10976 | |||
10977 | |||
10978 | if test "x$have_eet" = "xyes"; then | ||
10979 | BUILD_EET_TRUE= | ||
10980 | BUILD_EET_FALSE='#' | ||
10981 | else | ||
10982 | BUILD_EET_TRUE='#' | ||
10983 | BUILD_EET_FALSE= | ||
10984 | fi | ||
10985 | |||
10986 | |||
10987 | if test "x$have_eet" = "xyes"; then : | ||
10988 | |||
10989 | fi | ||
10990 | |||
10991 | |||
10992 | |||
10993 | # Old eet file format support | ||
10994 | |||
10995 | old_eet_file_format="yes" | ||
10996 | # Check whether --enable-old-eet-file-format was given. | ||
10997 | if test "${enable_old_eet_file_format+set}" = set; then : | ||
10998 | enableval=$enable_old_eet_file_format; old_eet_file_format=$enableval | ||
10999 | |||
11000 | fi | ||
11001 | |||
11002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support old eet file format" >&5 | ||
11003 | $as_echo_n "checking whether to support old eet file format... " >&6; } | ||
11004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${old_eet_file_format}" >&5 | ||
11005 | $as_echo "${old_eet_file_format}" >&6; } | ||
11006 | |||
11007 | if test "x${old_eet_file_format}" = "xyes" ; then | ||
11008 | |||
11009 | $as_echo "#define EET_OLD_EET_FILE_FORMAT 1" >>confdefs.h | ||
11010 | |||
11011 | else | ||
11012 | |||
11013 | $as_echo "#define EET_OLD_EET_FILE_FORMAT 0" >>confdefs.h | ||
11014 | |||
11015 | fi | ||
11016 | |||
11017 | # Openssl support | ||
11018 | |||
11019 | # Check whether --enable-openssl was given. | ||
11020 | if test "${enable_openssl+set}" = set; then : | ||
11021 | enableval=$enable_openssl; want_openssl=$enableval | ||
11022 | |||
11023 | fi | ||
11024 | |||
11025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use OpenSSL" >&5 | ||
11026 | $as_echo_n "checking whether to use OpenSSL... " >&6; } | ||
11027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_openssl}" >&5 | ||
11028 | $as_echo "${want_openssl}" >&6; } | ||
11029 | |||
11030 | # Cryptography support | ||
11031 | |||
11032 | # Check whether --enable-cipher was given. | ||
11033 | if test "${enable_cipher+set}" = set; then : | ||
11034 | enableval=$enable_cipher; want_cipher=$enableval | ||
11035 | |||
11036 | fi | ||
11037 | |||
11038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use cipher" >&5 | ||
11039 | $as_echo_n "checking whether to use cipher... " >&6; } | ||
11040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_cipher}" >&5 | ||
11041 | $as_echo "${want_cipher}" >&6; } | ||
11042 | |||
11043 | # Check whether --enable-signature was given. | ||
11044 | if test "${enable_signature+set}" = set; then : | ||
11045 | enableval=$enable_signature; want_signature=$enableval | ||
11046 | |||
11047 | fi | ||
11048 | |||
11049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use signature" >&5 | ||
11050 | $as_echo_n "checking whether to use signature... " >&6; } | ||
11051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_signature}" >&5 | ||
11052 | $as_echo "${want_signature}" >&6; } | ||
11053 | |||
11054 | # Assert or fail. | ||
11055 | prefer_assert="no" | ||
11056 | # Check whether --enable-assert was given. | ||
11057 | if test "${enable_assert+set}" = set; then : | ||
11058 | enableval=$enable_assert; prefer_assert=$enableval | ||
11059 | |||
11060 | fi | ||
11061 | |||
11062 | |||
11063 | # Examples | ||
11064 | |||
11065 | # Check whether --enable-install-examples was given. | ||
11066 | if test "${enable_install_examples+set}" = set; then : | ||
11067 | enableval=$enable_install_examples; | ||
11068 | if test "x${enableval}" = "xyes" ; then | ||
11069 | install_examples="yes" | ||
11070 | else | ||
11071 | install_examples="no" | ||
11072 | fi | ||
11073 | |||
11074 | else | ||
11075 | install_examples="yes" | ||
11076 | fi | ||
11077 | |||
11078 | if test "x${install_examples}" = "xyes"; then | ||
11079 | INSTALL_EXAMPLES_TRUE= | ||
11080 | INSTALL_EXAMPLES_FALSE='#' | ||
11081 | else | ||
11082 | INSTALL_EXAMPLES_TRUE='#' | ||
11083 | INSTALL_EXAMPLES_FALSE= | ||
11084 | fi | ||
11085 | |||
11086 | |||
11087 | # Check whether --enable-build-examples was given. | ||
11088 | if test "${enable_build_examples+set}" = set; then : | ||
11089 | enableval=$enable_build_examples; | ||
11090 | if test "x${enableval}" = "xyes" ; then | ||
11091 | build_examples="yes" | ||
11092 | else | ||
11093 | build_examples="no" | ||
11094 | fi | ||
11095 | |||
11096 | else | ||
11097 | build_examples="no" | ||
11098 | fi | ||
11099 | |||
11100 | if test "x${build_examples}" = "xyes"; then | ||
11101 | BUILD_EXAMPLES_TRUE= | ||
11102 | BUILD_EXAMPLES_FALSE='#' | ||
11103 | else | ||
11104 | BUILD_EXAMPLES_TRUE='#' | ||
11105 | BUILD_EXAMPLES_FALSE= | ||
11106 | fi | ||
11107 | |||
11108 | |||
11109 | # Unit tests, coverage and benchmarking | ||
11110 | |||
11111 | |||
11112 | |||
11113 | |||
11114 | |||
11115 | |||
11116 | |||
11117 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
11118 | if test -n "$ac_tool_prefix"; then | ||
11119 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
11120 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
11121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11122 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11123 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
11124 | $as_echo_n "(cached) " >&6 | ||
11125 | else | ||
11126 | case $PKG_CONFIG in | ||
11127 | [\\/]* | ?:[\\/]*) | ||
11128 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
11129 | ;; | ||
11130 | *) | ||
11131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11132 | for as_dir in $PATH | ||
11133 | do | ||
11134 | IFS=$as_save_IFS | ||
11135 | test -z "$as_dir" && as_dir=. | ||
11136 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11137 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11138 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
11139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11140 | break 2 | ||
11141 | fi | ||
11142 | done | ||
11143 | done | ||
11144 | IFS=$as_save_IFS | ||
11145 | |||
11146 | ;; | ||
11147 | esac | ||
11148 | fi | ||
11149 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
11150 | if test -n "$PKG_CONFIG"; then | ||
11151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
11152 | $as_echo "$PKG_CONFIG" >&6; } | ||
11153 | else | ||
11154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11155 | $as_echo "no" >&6; } | ||
11156 | fi | ||
11157 | |||
11158 | |||
11159 | fi | ||
11160 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
11161 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
11162 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
11163 | set dummy pkg-config; ac_word=$2 | ||
11164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11165 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11166 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | ||
11167 | $as_echo_n "(cached) " >&6 | ||
11168 | else | ||
11169 | case $ac_pt_PKG_CONFIG in | ||
11170 | [\\/]* | ?:[\\/]*) | ||
11171 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||
11172 | ;; | ||
11173 | *) | ||
11174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11175 | for as_dir in $PATH | ||
11176 | do | ||
11177 | IFS=$as_save_IFS | ||
11178 | test -z "$as_dir" && as_dir=. | ||
11179 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11180 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11181 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
11182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11183 | break 2 | ||
11184 | fi | ||
11185 | done | ||
11186 | done | ||
11187 | IFS=$as_save_IFS | ||
11188 | |||
11189 | ;; | ||
11190 | esac | ||
11191 | fi | ||
11192 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||
11193 | if test -n "$ac_pt_PKG_CONFIG"; then | ||
11194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||
11195 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||
11196 | else | ||
11197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11198 | $as_echo "no" >&6; } | ||
11199 | fi | ||
11200 | |||
11201 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||
11202 | PKG_CONFIG="" | ||
11203 | else | ||
11204 | case $cross_compiling:$ac_tool_warned in | ||
11205 | yes:) | ||
11206 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
11207 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
11208 | ac_tool_warned=yes ;; | ||
11209 | esac | ||
11210 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
11211 | fi | ||
11212 | else | ||
11213 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
11214 | fi | ||
11215 | |||
11216 | fi | ||
11217 | if test -n "$PKG_CONFIG"; then | ||
11218 | _pkg_min_version=0.9.0 | ||
11219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||
11220 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||
11221 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
11222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11223 | $as_echo "yes" >&6; } | ||
11224 | else | ||
11225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11226 | $as_echo "no" >&6; } | ||
11227 | PKG_CONFIG="" | ||
11228 | fi | ||
11229 | fi | ||
11230 | |||
11231 | |||
11232 | |||
11233 | # Check whether --enable-tests was given. | ||
11234 | if test "${enable_tests+set}" = set; then : | ||
11235 | enableval=$enable_tests; | ||
11236 | if test "x${enableval}" = "xyes" ; then | ||
11237 | _efl_enable_tests="yes" | ||
11238 | else | ||
11239 | _efl_enable_tests="no" | ||
11240 | fi | ||
11241 | |||
11242 | else | ||
11243 | _efl_enable_tests="no" | ||
11244 | fi | ||
11245 | |||
11246 | |||
11247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests are built" >&5 | ||
11248 | $as_echo_n "checking whether tests are built... " >&6; } | ||
11249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_tests}" >&5 | ||
11250 | $as_echo "${_efl_enable_tests}" >&6; } | ||
11251 | |||
11252 | |||
11253 | |||
11254 | if test "x${_efl_enable_tests}" = "xyes" ; then | ||
11255 | |||
11256 | pkg_failed=no | ||
11257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 | ||
11258 | $as_echo_n "checking for CHECK... " >&6; } | ||
11259 | |||
11260 | if test -n "$CHECK_CFLAGS"; then | ||
11261 | pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" | ||
11262 | elif test -n "$PKG_CONFIG"; then | ||
11263 | if test -n "$PKG_CONFIG" && \ | ||
11264 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
11265 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
11266 | ac_status=$? | ||
11267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11268 | test $ac_status = 0; }; then | ||
11269 | pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.5" 2>/dev/null` | ||
11270 | else | ||
11271 | pkg_failed=yes | ||
11272 | fi | ||
11273 | else | ||
11274 | pkg_failed=untried | ||
11275 | fi | ||
11276 | if test -n "$CHECK_LIBS"; then | ||
11277 | pkg_cv_CHECK_LIBS="$CHECK_LIBS" | ||
11278 | elif test -n "$PKG_CONFIG"; then | ||
11279 | if test -n "$PKG_CONFIG" && \ | ||
11280 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
11281 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
11282 | ac_status=$? | ||
11283 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11284 | test $ac_status = 0; }; then | ||
11285 | pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.5" 2>/dev/null` | ||
11286 | else | ||
11287 | pkg_failed=yes | ||
11288 | fi | ||
11289 | else | ||
11290 | pkg_failed=untried | ||
11291 | fi | ||
11292 | |||
11293 | |||
11294 | |||
11295 | if test $pkg_failed = yes; then | ||
11296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11297 | $as_echo "no" >&6; } | ||
11298 | |||
11299 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
11300 | _pkg_short_errors_supported=yes | ||
11301 | else | ||
11302 | _pkg_short_errors_supported=no | ||
11303 | fi | ||
11304 | if test $_pkg_short_errors_supported = yes; then | ||
11305 | CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.5" 2>&1` | ||
11306 | else | ||
11307 | CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.5" 2>&1` | ||
11308 | fi | ||
11309 | # Put the nasty error message in config.log where it belongs | ||
11310 | echo "$CHECK_PKG_ERRORS" >&5 | ||
11311 | |||
11312 | _efl_enable_tests="no" | ||
11313 | elif test $pkg_failed = untried; then | ||
11314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11315 | $as_echo "no" >&6; } | ||
11316 | _efl_enable_tests="no" | ||
11317 | else | ||
11318 | CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS | ||
11319 | CHECK_LIBS=$pkg_cv_CHECK_LIBS | ||
11320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11321 | $as_echo "yes" >&6; } | ||
11322 | dummy="yes" | ||
11323 | fi | ||
11324 | fi | ||
11325 | |||
11326 | if test "x${_efl_enable_tests}" = "xyes"; then | ||
11327 | EFL_ENABLE_TESTS_TRUE= | ||
11328 | EFL_ENABLE_TESTS_FALSE='#' | ||
11329 | else | ||
11330 | EFL_ENABLE_TESTS_TRUE='#' | ||
11331 | EFL_ENABLE_TESTS_FALSE= | ||
11332 | fi | ||
11333 | |||
11334 | |||
11335 | if test "x$_efl_enable_tests" = "xyes"; then : | ||
11336 | enable_tests="yes" | ||
11337 | else | ||
11338 | enable_tests="no" | ||
11339 | fi | ||
11340 | |||
11341 | |||
11342 | |||
11343 | |||
11344 | # Check whether --enable-coverage was given. | ||
11345 | if test "${enable_coverage+set}" = set; then : | ||
11346 | enableval=$enable_coverage; | ||
11347 | if test "x${enableval}" = "xyes" ; then | ||
11348 | _efl_enable_coverage="yes" | ||
11349 | else | ||
11350 | _efl_enable_coverage="no" | ||
11351 | fi | ||
11352 | |||
11353 | else | ||
11354 | _efl_enable_coverage="no" | ||
11355 | fi | ||
11356 | |||
11357 | |||
11358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use profiling instrumentation" >&5 | ||
11359 | $as_echo_n "checking whether to use profiling instrumentation... " >&6; } | ||
11360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_efl_enable_coverage" >&5 | ||
11361 | $as_echo "$_efl_enable_coverage" >&6; } | ||
11362 | |||
11363 | |||
11364 | if test "x$_efl_enable_coverage" = "xyes" && test ! "x${enable_tests}" = "xyes" ; then | ||
11365 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Coverage report requested but tests not being built, disable profiling instrumentation." >&5 | ||
11366 | $as_echo "$as_me: WARNING: Coverage report requested but tests not being built, disable profiling instrumentation." >&2;} | ||
11367 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run configure with --enable-tests" >&5 | ||
11368 | $as_echo "$as_me: WARNING: Run configure with --enable-tests" >&2;} | ||
11369 | _efl_enable_coverage="no" | ||
11370 | fi | ||
11371 | |||
11372 | if test "x$_efl_enable_coverage" = "xyes" ; then | ||
11373 | # Extract the first word of "lcov", so it can be a program name with args. | ||
11374 | set dummy lcov; ac_word=$2 | ||
11375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11376 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11377 | if test "${ac_cv_prog_have_lcov+set}" = set; then : | ||
11378 | $as_echo_n "(cached) " >&6 | ||
11379 | else | ||
11380 | if test -n "$have_lcov"; then | ||
11381 | ac_cv_prog_have_lcov="$have_lcov" # Let the user override the test. | ||
11382 | else | ||
11383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11384 | for as_dir in $PATH | ||
11385 | do | ||
11386 | IFS=$as_save_IFS | ||
11387 | test -z "$as_dir" && as_dir=. | ||
11388 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11389 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11390 | ac_cv_prog_have_lcov="yes" | ||
11391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11392 | break 2 | ||
11393 | fi | ||
11394 | done | ||
11395 | done | ||
11396 | IFS=$as_save_IFS | ||
11397 | |||
11398 | test -z "$ac_cv_prog_have_lcov" && ac_cv_prog_have_lcov="no" | ||
11399 | fi | ||
11400 | fi | ||
11401 | have_lcov=$ac_cv_prog_have_lcov | ||
11402 | if test -n "$have_lcov"; then | ||
11403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_lcov" >&5 | ||
11404 | $as_echo "$have_lcov" >&6; } | ||
11405 | else | ||
11406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11407 | $as_echo "no" >&6; } | ||
11408 | fi | ||
11409 | |||
11410 | |||
11411 | if test "x$have_lcov" = "xyes" ; then | ||
11412 | EFL_COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage" | ||
11413 | EFL_COVERAGE_LIBS="-lgcov" | ||
11414 | # remove any optimisation flag and force debug symbols | ||
11415 | EFL_DEBUG_CFLAGS="-g -O0 -DDEBUG" | ||
11416 | else | ||
11417 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lcov is not found, disable profiling instrumentation" >&5 | ||
11418 | $as_echo "$as_me: WARNING: lcov is not found, disable profiling instrumentation" >&2;} | ||
11419 | _efl_enable_coverage="no" | ||
11420 | fi | ||
11421 | fi | ||
11422 | |||
11423 | |||
11424 | |||
11425 | |||
11426 | if test "x${_efl_enable_coverage}" = "xyes"; then | ||
11427 | EFL_ENABLE_COVERAGE_TRUE= | ||
11428 | EFL_ENABLE_COVERAGE_FALSE='#' | ||
11429 | else | ||
11430 | EFL_ENABLE_COVERAGE_TRUE='#' | ||
11431 | EFL_ENABLE_COVERAGE_FALSE= | ||
11432 | fi | ||
11433 | |||
11434 | |||
11435 | if test "x$_efl_enable_coverage" = "xyes"; then : | ||
11436 | enable_coverage="yes" | ||
11437 | else | ||
11438 | enable_coverage="no" | ||
11439 | fi | ||
11440 | |||
11441 | |||
11442 | if test "x${prefer_assert}" = "xno"; then | ||
11443 | DEBUG_CFLAGS="-DNDEBUG" | ||
11444 | else | ||
11445 | # use debug symbols and set DEBUG if coverage support is enabled | ||
11446 | DEBUG_CFLAGS="${EFL_DEBUG_CFLAGS}" | ||
11447 | fi | ||
11448 | |||
11449 | |||
11450 | |||
11451 | ### Checks for programs | ||
11452 | ac_ext=c | ||
11453 | ac_cpp='$CPP $CPPFLAGS' | ||
11454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11457 | if test -n "$ac_tool_prefix"; then | ||
11458 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
11459 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
11460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11461 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11462 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
11463 | $as_echo_n "(cached) " >&6 | ||
11464 | else | ||
11465 | if test -n "$CC"; then | ||
11466 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
11467 | else | ||
11468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11469 | for as_dir in $PATH | ||
11470 | do | ||
11471 | IFS=$as_save_IFS | ||
11472 | test -z "$as_dir" && as_dir=. | ||
11473 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11474 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11475 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
11476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11477 | break 2 | ||
11478 | fi | ||
11479 | done | ||
11480 | done | ||
11481 | IFS=$as_save_IFS | ||
11482 | |||
11483 | fi | ||
11484 | fi | ||
11485 | CC=$ac_cv_prog_CC | ||
11486 | if test -n "$CC"; then | ||
11487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
11488 | $as_echo "$CC" >&6; } | ||
11489 | else | ||
11490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11491 | $as_echo "no" >&6; } | ||
11492 | fi | ||
11493 | |||
11494 | |||
11495 | fi | ||
11496 | if test -z "$ac_cv_prog_CC"; then | ||
11497 | ac_ct_CC=$CC | ||
11498 | # Extract the first word of "gcc", so it can be a program name with args. | ||
11499 | set dummy gcc; ac_word=$2 | ||
11500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11501 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11502 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
11503 | $as_echo_n "(cached) " >&6 | ||
11504 | else | ||
11505 | if test -n "$ac_ct_CC"; then | ||
11506 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
11507 | else | ||
11508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11509 | for as_dir in $PATH | ||
11510 | do | ||
11511 | IFS=$as_save_IFS | ||
11512 | test -z "$as_dir" && as_dir=. | ||
11513 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11514 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11515 | ac_cv_prog_ac_ct_CC="gcc" | ||
11516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11517 | break 2 | ||
11518 | fi | ||
11519 | done | ||
11520 | done | ||
11521 | IFS=$as_save_IFS | ||
11522 | |||
11523 | fi | ||
11524 | fi | ||
11525 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
11526 | if test -n "$ac_ct_CC"; then | ||
11527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
11528 | $as_echo "$ac_ct_CC" >&6; } | ||
11529 | else | ||
11530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11531 | $as_echo "no" >&6; } | ||
11532 | fi | ||
11533 | |||
11534 | if test "x$ac_ct_CC" = x; then | ||
11535 | CC="" | ||
11536 | else | ||
11537 | case $cross_compiling:$ac_tool_warned in | ||
11538 | yes:) | ||
11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
11540 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
11541 | ac_tool_warned=yes ;; | ||
11542 | esac | ||
11543 | CC=$ac_ct_CC | ||
11544 | fi | ||
11545 | else | ||
11546 | CC="$ac_cv_prog_CC" | ||
11547 | fi | ||
11548 | |||
11549 | if test -z "$CC"; then | ||
11550 | if test -n "$ac_tool_prefix"; then | ||
11551 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
11552 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
11553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11554 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11555 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
11556 | $as_echo_n "(cached) " >&6 | ||
11557 | else | ||
11558 | if test -n "$CC"; then | ||
11559 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
11560 | else | ||
11561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11562 | for as_dir in $PATH | ||
11563 | do | ||
11564 | IFS=$as_save_IFS | ||
11565 | test -z "$as_dir" && as_dir=. | ||
11566 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11567 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11568 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
11569 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11570 | break 2 | ||
11571 | fi | ||
11572 | done | ||
11573 | done | ||
11574 | IFS=$as_save_IFS | ||
11575 | |||
11576 | fi | ||
11577 | fi | ||
11578 | CC=$ac_cv_prog_CC | ||
11579 | if test -n "$CC"; then | ||
11580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
11581 | $as_echo "$CC" >&6; } | ||
11582 | else | ||
11583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11584 | $as_echo "no" >&6; } | ||
11585 | fi | ||
11586 | |||
11587 | |||
11588 | fi | ||
11589 | fi | ||
11590 | if test -z "$CC"; then | ||
11591 | # Extract the first word of "cc", so it can be a program name with args. | ||
11592 | set dummy cc; ac_word=$2 | ||
11593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11594 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11595 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
11596 | $as_echo_n "(cached) " >&6 | ||
11597 | else | ||
11598 | if test -n "$CC"; then | ||
11599 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
11600 | else | ||
11601 | ac_prog_rejected=no | ||
11602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11603 | for as_dir in $PATH | ||
11604 | do | ||
11605 | IFS=$as_save_IFS | ||
11606 | test -z "$as_dir" && as_dir=. | ||
11607 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11608 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11609 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
11610 | ac_prog_rejected=yes | ||
11611 | continue | ||
11612 | fi | ||
11613 | ac_cv_prog_CC="cc" | ||
11614 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11615 | break 2 | ||
11616 | fi | ||
11617 | done | ||
11618 | done | ||
11619 | IFS=$as_save_IFS | ||
11620 | |||
11621 | if test $ac_prog_rejected = yes; then | ||
11622 | # We found a bogon in the path, so make sure we never use it. | ||
11623 | set dummy $ac_cv_prog_CC | ||
11624 | shift | ||
11625 | if test $# != 0; then | ||
11626 | # We chose a different compiler from the bogus one. | ||
11627 | # However, it has the same basename, so the bogon will be chosen | ||
11628 | # first if we set CC to just the basename; use the full file name. | ||
11629 | shift | ||
11630 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
11631 | fi | ||
11632 | fi | ||
11633 | fi | ||
11634 | fi | ||
11635 | CC=$ac_cv_prog_CC | ||
11636 | if test -n "$CC"; then | ||
11637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
11638 | $as_echo "$CC" >&6; } | ||
11639 | else | ||
11640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11641 | $as_echo "no" >&6; } | ||
11642 | fi | ||
11643 | |||
11644 | |||
11645 | fi | ||
11646 | if test -z "$CC"; then | ||
11647 | if test -n "$ac_tool_prefix"; then | ||
11648 | for ac_prog in cl.exe | ||
11649 | do | ||
11650 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
11651 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11653 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11654 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
11655 | $as_echo_n "(cached) " >&6 | ||
11656 | else | ||
11657 | if test -n "$CC"; then | ||
11658 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
11659 | else | ||
11660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11661 | for as_dir in $PATH | ||
11662 | do | ||
11663 | IFS=$as_save_IFS | ||
11664 | test -z "$as_dir" && as_dir=. | ||
11665 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11666 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11667 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
11668 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11669 | break 2 | ||
11670 | fi | ||
11671 | done | ||
11672 | done | ||
11673 | IFS=$as_save_IFS | ||
11674 | |||
11675 | fi | ||
11676 | fi | ||
11677 | CC=$ac_cv_prog_CC | ||
11678 | if test -n "$CC"; then | ||
11679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
11680 | $as_echo "$CC" >&6; } | ||
11681 | else | ||
11682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11683 | $as_echo "no" >&6; } | ||
11684 | fi | ||
11685 | |||
11686 | |||
11687 | test -n "$CC" && break | ||
11688 | done | ||
11689 | fi | ||
11690 | if test -z "$CC"; then | ||
11691 | ac_ct_CC=$CC | ||
11692 | for ac_prog in cl.exe | ||
11693 | do | ||
11694 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
11695 | set dummy $ac_prog; ac_word=$2 | ||
11696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11697 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11698 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
11699 | $as_echo_n "(cached) " >&6 | ||
11700 | else | ||
11701 | if test -n "$ac_ct_CC"; then | ||
11702 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
11703 | else | ||
11704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11705 | for as_dir in $PATH | ||
11706 | do | ||
11707 | IFS=$as_save_IFS | ||
11708 | test -z "$as_dir" && as_dir=. | ||
11709 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11710 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11711 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
11712 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11713 | break 2 | ||
11714 | fi | ||
11715 | done | ||
11716 | done | ||
11717 | IFS=$as_save_IFS | ||
11718 | |||
11719 | fi | ||
11720 | fi | ||
11721 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
11722 | if test -n "$ac_ct_CC"; then | ||
11723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
11724 | $as_echo "$ac_ct_CC" >&6; } | ||
11725 | else | ||
11726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11727 | $as_echo "no" >&6; } | ||
11728 | fi | ||
11729 | |||
11730 | |||
11731 | test -n "$ac_ct_CC" && break | ||
11732 | done | ||
11733 | |||
11734 | if test "x$ac_ct_CC" = x; then | ||
11735 | CC="" | ||
11736 | else | ||
11737 | case $cross_compiling:$ac_tool_warned in | ||
11738 | yes:) | ||
11739 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
11740 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
11741 | ac_tool_warned=yes ;; | ||
11742 | esac | ||
11743 | CC=$ac_ct_CC | ||
11744 | fi | ||
11745 | fi | ||
11746 | |||
11747 | fi | ||
11748 | |||
11749 | |||
11750 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
11751 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
11752 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
11753 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
11754 | |||
11755 | # Provide some information about the compiler. | ||
11756 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
11757 | set X $ac_compile | ||
11758 | ac_compiler=$2 | ||
11759 | for ac_option in --version -v -V -qversion; do | ||
11760 | { { ac_try="$ac_compiler $ac_option >&5" | ||
11761 | case "(($ac_try" in | ||
11762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11763 | *) ac_try_echo=$ac_try;; | ||
11764 | esac | ||
11765 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
11766 | $as_echo "$ac_try_echo"; } >&5 | ||
11767 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
11768 | ac_status=$? | ||
11769 | if test -s conftest.err; then | ||
11770 | sed '10a\ | ||
11771 | ... rest of stderr output deleted ... | ||
11772 | 10q' conftest.err >conftest.er1 | ||
11773 | cat conftest.er1 >&5 | ||
11774 | fi | ||
11775 | rm -f conftest.er1 conftest.err | ||
11776 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11777 | test $ac_status = 0; } | ||
11778 | done | ||
11779 | |||
11780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
11781 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
11782 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
11783 | $as_echo_n "(cached) " >&6 | ||
11784 | else | ||
11785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11786 | /* end confdefs.h. */ | ||
11787 | |||
11788 | int | ||
11789 | main () | ||
11790 | { | ||
11791 | #ifndef __GNUC__ | ||
11792 | choke me | ||
11793 | #endif | ||
11794 | |||
11795 | ; | ||
11796 | return 0; | ||
11797 | } | ||
11798 | _ACEOF | ||
11799 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11800 | ac_compiler_gnu=yes | ||
11801 | else | ||
11802 | ac_compiler_gnu=no | ||
11803 | fi | ||
11804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11805 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
11806 | |||
11807 | fi | ||
11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
11809 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
11810 | if test $ac_compiler_gnu = yes; then | ||
11811 | GCC=yes | ||
11812 | else | ||
11813 | GCC= | ||
11814 | fi | ||
11815 | ac_test_CFLAGS=${CFLAGS+set} | ||
11816 | ac_save_CFLAGS=$CFLAGS | ||
11817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
11818 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
11819 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
11820 | $as_echo_n "(cached) " >&6 | ||
11821 | else | ||
11822 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
11823 | ac_c_werror_flag=yes | ||
11824 | ac_cv_prog_cc_g=no | ||
11825 | CFLAGS="-g" | ||
11826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11827 | /* end confdefs.h. */ | ||
11828 | |||
11829 | int | ||
11830 | main () | ||
11831 | { | ||
11832 | |||
11833 | ; | ||
11834 | return 0; | ||
11835 | } | ||
11836 | _ACEOF | ||
11837 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11838 | ac_cv_prog_cc_g=yes | ||
11839 | else | ||
11840 | CFLAGS="" | ||
11841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11842 | /* end confdefs.h. */ | ||
11843 | |||
11844 | int | ||
11845 | main () | ||
11846 | { | ||
11847 | |||
11848 | ; | ||
11849 | return 0; | ||
11850 | } | ||
11851 | _ACEOF | ||
11852 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11853 | |||
11854 | else | ||
11855 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
11856 | CFLAGS="-g" | ||
11857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11858 | /* end confdefs.h. */ | ||
11859 | |||
11860 | int | ||
11861 | main () | ||
11862 | { | ||
11863 | |||
11864 | ; | ||
11865 | return 0; | ||
11866 | } | ||
11867 | _ACEOF | ||
11868 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11869 | ac_cv_prog_cc_g=yes | ||
11870 | fi | ||
11871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11872 | fi | ||
11873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11874 | fi | ||
11875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11876 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
11877 | fi | ||
11878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
11879 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
11880 | if test "$ac_test_CFLAGS" = set; then | ||
11881 | CFLAGS=$ac_save_CFLAGS | ||
11882 | elif test $ac_cv_prog_cc_g = yes; then | ||
11883 | if test "$GCC" = yes; then | ||
11884 | CFLAGS="-g -O2" | ||
11885 | else | ||
11886 | CFLAGS="-g" | ||
11887 | fi | ||
11888 | else | ||
11889 | if test "$GCC" = yes; then | ||
11890 | CFLAGS="-O2" | ||
11891 | else | ||
11892 | CFLAGS= | ||
11893 | fi | ||
11894 | fi | ||
11895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
11896 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
11897 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
11898 | $as_echo_n "(cached) " >&6 | ||
11899 | else | ||
11900 | ac_cv_prog_cc_c89=no | ||
11901 | ac_save_CC=$CC | ||
11902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11903 | /* end confdefs.h. */ | ||
11904 | #include <stdarg.h> | ||
11905 | #include <stdio.h> | ||
11906 | #include <sys/types.h> | ||
11907 | #include <sys/stat.h> | ||
11908 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
11909 | struct buf { int x; }; | ||
11910 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
11911 | static char *e (p, i) | ||
11912 | char **p; | ||
11913 | int i; | ||
11914 | { | ||
11915 | return p[i]; | ||
11916 | } | ||
11917 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
11918 | { | ||
11919 | char *s; | ||
11920 | va_list v; | ||
11921 | va_start (v,p); | ||
11922 | s = g (p, va_arg (v,int)); | ||
11923 | va_end (v); | ||
11924 | return s; | ||
11925 | } | ||
11926 | |||
11927 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
11928 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
11929 | These don't provoke an error unfortunately, instead are silently treated | ||
11930 | as 'x'. The following induces an error, until -std is added to get | ||
11931 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
11932 | array size at least. It's necessary to write '\x00'==0 to get something | ||
11933 | that's true only with -std. */ | ||
11934 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
11935 | |||
11936 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
11937 | inside strings and character constants. */ | ||
11938 | #define FOO(x) 'x' | ||
11939 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
11940 | |||
11941 | int test (int i, double x); | ||
11942 | struct s1 {int (*f) (int a);}; | ||
11943 | struct s2 {int (*f) (double a);}; | ||
11944 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
11945 | int argc; | ||
11946 | char **argv; | ||
11947 | int | ||
11948 | main () | ||
11949 | { | ||
11950 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
11951 | ; | ||
11952 | return 0; | ||
11953 | } | ||
11954 | _ACEOF | ||
11955 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
11956 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
11957 | do | ||
11958 | CC="$ac_save_CC $ac_arg" | ||
11959 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11960 | ac_cv_prog_cc_c89=$ac_arg | ||
11961 | fi | ||
11962 | rm -f core conftest.err conftest.$ac_objext | ||
11963 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
11964 | done | ||
11965 | rm -f conftest.$ac_ext | ||
11966 | CC=$ac_save_CC | ||
11967 | |||
11968 | fi | ||
11969 | # AC_CACHE_VAL | ||
11970 | case "x$ac_cv_prog_cc_c89" in | ||
11971 | x) | ||
11972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
11973 | $as_echo "none needed" >&6; } ;; | ||
11974 | xno) | ||
11975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
11976 | $as_echo "unsupported" >&6; } ;; | ||
11977 | *) | ||
11978 | CC="$CC $ac_cv_prog_cc_c89" | ||
11979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
11980 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
11981 | esac | ||
11982 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
11983 | |||
11984 | fi | ||
11985 | |||
11986 | ac_ext=c | ||
11987 | ac_cpp='$CPP $CPPFLAGS' | ||
11988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11991 | |||
11992 | depcc="$CC" am_compiler_list= | ||
11993 | |||
11994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
11995 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
11996 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
11997 | $as_echo_n "(cached) " >&6 | ||
11998 | else | ||
11999 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
12000 | # We make a subdir and do the tests there. Otherwise we can end up | ||
12001 | # making bogus files that we don't know about and never remove. For | ||
12002 | # instance it was reported that on HP-UX the gcc test will end up | ||
12003 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
12004 | # in D'. | ||
12005 | mkdir conftest.dir | ||
12006 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
12007 | # using a relative directory. | ||
12008 | cp "$am_depcomp" conftest.dir | ||
12009 | cd conftest.dir | ||
12010 | # We will build objects and dependencies in a subdirectory because | ||
12011 | # it helps to detect inapplicable dependency modes. For instance | ||
12012 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
12013 | # side effect of compilation, but ICC will put the dependencies in | ||
12014 | # the current directory while Tru64 will put them in the object | ||
12015 | # directory. | ||
12016 | mkdir sub | ||
12017 | |||
12018 | am_cv_CC_dependencies_compiler_type=none | ||
12019 | if test "$am_compiler_list" = ""; then | ||
12020 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
12021 | fi | ||
12022 | am__universal=false | ||
12023 | case " $depcc " in #( | ||
12024 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
12025 | esac | ||
12026 | |||
12027 | for depmode in $am_compiler_list; do | ||
12028 | # Setup a source with many dependencies, because some compilers | ||
12029 | # like to wrap large dependency lists on column 80 (with \), and | ||
12030 | # we should not choose a depcomp mode which is confused by this. | ||
12031 | # | ||
12032 | # We need to recreate these files for each test, as the compiler may | ||
12033 | # overwrite some of them when testing with obscure command lines. | ||
12034 | # This happens at least with the AIX C compiler. | ||
12035 | : > sub/conftest.c | ||
12036 | for i in 1 2 3 4 5 6; do | ||
12037 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
12038 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
12039 | # Solaris 8's {/usr,}/bin/sh. | ||
12040 | touch sub/conftst$i.h | ||
12041 | done | ||
12042 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
12043 | |||
12044 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
12045 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
12046 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
12047 | # versions had trouble with output in subdirs | ||
12048 | am__obj=sub/conftest.${OBJEXT-o} | ||
12049 | am__minus_obj="-o $am__obj" | ||
12050 | case $depmode in | ||
12051 | gcc) | ||
12052 | # This depmode causes a compiler race in universal mode. | ||
12053 | test "$am__universal" = false || continue | ||
12054 | ;; | ||
12055 | nosideeffect) | ||
12056 | # after this tag, mechanisms are not by side-effect, so they'll | ||
12057 | # only be used when explicitly requested | ||
12058 | if test "x$enable_dependency_tracking" = xyes; then | ||
12059 | continue | ||
12060 | else | ||
12061 | break | ||
12062 | fi | ||
12063 | ;; | ||
12064 | msvisualcpp | msvcmsys) | ||
12065 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
12066 | # not run yet. These depmodes are late enough in the game, and | ||
12067 | # so weak that their functioning should not be impacted. | ||
12068 | am__obj=conftest.${OBJEXT-o} | ||
12069 | am__minus_obj= | ||
12070 | ;; | ||
12071 | none) break ;; | ||
12072 | esac | ||
12073 | if depmode=$depmode \ | ||
12074 | source=sub/conftest.c object=$am__obj \ | ||
12075 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
12076 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
12077 | >/dev/null 2>conftest.err && | ||
12078 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
12079 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
12080 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
12081 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
12082 | # icc doesn't choke on unknown options, it will just issue warnings | ||
12083 | # or remarks (even with -Werror). So we grep stderr for any message | ||
12084 | # that says an option was ignored or not supported. | ||
12085 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
12086 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
12087 | # The diagnosis changed in icc 8.0: | ||
12088 | # icc: Command line remark: option '-MP' not supported | ||
12089 | if (grep 'ignoring option' conftest.err || | ||
12090 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
12091 | am_cv_CC_dependencies_compiler_type=$depmode | ||
12092 | break | ||
12093 | fi | ||
12094 | fi | ||
12095 | done | ||
12096 | |||
12097 | cd .. | ||
12098 | rm -rf conftest.dir | ||
12099 | else | ||
12100 | am_cv_CC_dependencies_compiler_type=none | ||
12101 | fi | ||
12102 | |||
12103 | fi | ||
12104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
12105 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
12106 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
12107 | |||
12108 | if | ||
12109 | test "x$enable_dependency_tracking" != xno \ | ||
12110 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
12111 | am__fastdepCC_TRUE= | ||
12112 | am__fastdepCC_FALSE='#' | ||
12113 | else | ||
12114 | am__fastdepCC_TRUE='#' | ||
12115 | am__fastdepCC_FALSE= | ||
12116 | fi | ||
12117 | |||
12118 | |||
12119 | |||
12120 | # pkg-config | ||
12121 | |||
12122 | |||
12123 | |||
12124 | |||
12125 | |||
12126 | |||
12127 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
12128 | if test -n "$ac_tool_prefix"; then | ||
12129 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
12130 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
12131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12132 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12133 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
12134 | $as_echo_n "(cached) " >&6 | ||
12135 | else | ||
12136 | case $PKG_CONFIG in | ||
12137 | [\\/]* | ?:[\\/]*) | ||
12138 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
12139 | ;; | ||
12140 | *) | ||
12141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12142 | for as_dir in $PATH | ||
12143 | do | ||
12144 | IFS=$as_save_IFS | ||
12145 | test -z "$as_dir" && as_dir=. | ||
12146 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12148 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
12149 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12150 | break 2 | ||
12151 | fi | ||
12152 | done | ||
12153 | done | ||
12154 | IFS=$as_save_IFS | ||
12155 | |||
12156 | ;; | ||
12157 | esac | ||
12158 | fi | ||
12159 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
12160 | if test -n "$PKG_CONFIG"; then | ||
12161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
12162 | $as_echo "$PKG_CONFIG" >&6; } | ||
12163 | else | ||
12164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12165 | $as_echo "no" >&6; } | ||
12166 | fi | ||
12167 | |||
12168 | |||
12169 | fi | ||
12170 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
12171 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
12172 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
12173 | set dummy pkg-config; ac_word=$2 | ||
12174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12175 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12176 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | ||
12177 | $as_echo_n "(cached) " >&6 | ||
12178 | else | ||
12179 | case $ac_pt_PKG_CONFIG in | ||
12180 | [\\/]* | ?:[\\/]*) | ||
12181 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||
12182 | ;; | ||
12183 | *) | ||
12184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12185 | for as_dir in $PATH | ||
12186 | do | ||
12187 | IFS=$as_save_IFS | ||
12188 | test -z "$as_dir" && as_dir=. | ||
12189 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12190 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12191 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
12192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12193 | break 2 | ||
12194 | fi | ||
12195 | done | ||
12196 | done | ||
12197 | IFS=$as_save_IFS | ||
12198 | |||
12199 | ;; | ||
12200 | esac | ||
12201 | fi | ||
12202 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||
12203 | if test -n "$ac_pt_PKG_CONFIG"; then | ||
12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||
12205 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||
12206 | else | ||
12207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12208 | $as_echo "no" >&6; } | ||
12209 | fi | ||
12210 | |||
12211 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||
12212 | PKG_CONFIG="" | ||
12213 | else | ||
12214 | case $cross_compiling:$ac_tool_warned in | ||
12215 | yes:) | ||
12216 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
12217 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
12218 | ac_tool_warned=yes ;; | ||
12219 | esac | ||
12220 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
12221 | fi | ||
12222 | else | ||
12223 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
12224 | fi | ||
12225 | |||
12226 | fi | ||
12227 | if test -n "$PKG_CONFIG"; then | ||
12228 | _pkg_min_version=0.9.0 | ||
12229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||
12230 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||
12231 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
12232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12233 | $as_echo "yes" >&6; } | ||
12234 | else | ||
12235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12236 | $as_echo "no" >&6; } | ||
12237 | PKG_CONFIG="" | ||
12238 | fi | ||
12239 | fi | ||
12240 | |||
12241 | # Check whether pkg-config supports Requires.private | ||
12242 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | ||
12243 | pkgconfig_requires_private="Requires.private" | ||
12244 | else | ||
12245 | pkgconfig_requires_private="Requires" | ||
12246 | fi | ||
12247 | |||
12248 | |||
12249 | |||
12250 | # doxygen program for documentation building | ||
12251 | |||
12252 | |||
12253 | |||
12254 | # Check whether --enable-doc was given. | ||
12255 | if test "${enable_doc+set}" = set; then : | ||
12256 | enableval=$enable_doc; | ||
12257 | if test "x${enableval}" = "xyes" ; then | ||
12258 | efl_enable_doc="yes" | ||
12259 | else | ||
12260 | efl_enable_doc="no" | ||
12261 | fi | ||
12262 | |||
12263 | else | ||
12264 | efl_enable_doc="yes" | ||
12265 | fi | ||
12266 | |||
12267 | |||
12268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 | ||
12269 | $as_echo_n "checking whether to build documentation... " >&6; } | ||
12270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${efl_enable_doc}" >&5 | ||
12271 | $as_echo "${efl_enable_doc}" >&6; } | ||
12272 | |||
12273 | if test "x${efl_enable_doc}" = "xyes" ; then | ||
12274 | |||
12275 | |||
12276 | efl_doxygen="doxygen" | ||
12277 | |||
12278 | |||
12279 | # Check whether --with-doxygen was given. | ||
12280 | if test "${with_doxygen+set}" = set; then : | ||
12281 | withval=$with_doxygen; | ||
12282 | efl_doxygen=${withval} | ||
12283 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
12284 | set dummy ${efl_doxygen}; ac_word=$2 | ||
12285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12286 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12287 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
12288 | $as_echo_n "(cached) " >&6 | ||
12289 | else | ||
12290 | if test -n "$efl_have_doxygen"; then | ||
12291 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
12292 | else | ||
12293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12294 | for as_dir in $PATH | ||
12295 | do | ||
12296 | IFS=$as_save_IFS | ||
12297 | test -z "$as_dir" && as_dir=. | ||
12298 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12299 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12300 | ac_cv_prog_efl_have_doxygen="yes" | ||
12301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12302 | break 2 | ||
12303 | fi | ||
12304 | done | ||
12305 | done | ||
12306 | IFS=$as_save_IFS | ||
12307 | |||
12308 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
12309 | fi | ||
12310 | fi | ||
12311 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
12312 | if test -n "$efl_have_doxygen"; then | ||
12313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
12314 | $as_echo "$efl_have_doxygen" >&6; } | ||
12315 | else | ||
12316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12317 | $as_echo "no" >&6; } | ||
12318 | fi | ||
12319 | |||
12320 | |||
12321 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
12322 | echo "WARNING:" | ||
12323 | echo "The doxygen program you specified:" | ||
12324 | echo "${efl_doxygen}" | ||
12325 | echo "was not found. Please check the path and make sure " | ||
12326 | echo "the program exists and is executable." | ||
12327 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
12328 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
12329 | fi | ||
12330 | |||
12331 | else | ||
12332 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
12333 | set dummy ${efl_doxygen}; ac_word=$2 | ||
12334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12335 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12336 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
12337 | $as_echo_n "(cached) " >&6 | ||
12338 | else | ||
12339 | if test -n "$efl_have_doxygen"; then | ||
12340 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
12341 | else | ||
12342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12343 | for as_dir in $PATH | ||
12344 | do | ||
12345 | IFS=$as_save_IFS | ||
12346 | test -z "$as_dir" && as_dir=. | ||
12347 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12348 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12349 | ac_cv_prog_efl_have_doxygen="yes" | ||
12350 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12351 | break 2 | ||
12352 | fi | ||
12353 | done | ||
12354 | done | ||
12355 | IFS=$as_save_IFS | ||
12356 | |||
12357 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
12358 | fi | ||
12359 | fi | ||
12360 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
12361 | if test -n "$efl_have_doxygen"; then | ||
12362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
12363 | $as_echo "$efl_have_doxygen" >&6; } | ||
12364 | else | ||
12365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12366 | $as_echo "no" >&6; } | ||
12367 | fi | ||
12368 | |||
12369 | |||
12370 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
12371 | echo "WARNING:" | ||
12372 | echo "The doxygen program was not found in your execute path." | ||
12373 | echo "You may have doxygen installed somewhere not covered by your path." | ||
12374 | echo "" | ||
12375 | echo "If this is the case make sure you have the packages installed, AND" | ||
12376 | echo "that the doxygen program is in your execute path (see your" | ||
12377 | echo "shell manual page on setting the \$PATH environment variable), OR" | ||
12378 | echo "alternatively, specify the program to use with --with-doxygen." | ||
12379 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
12380 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
12381 | fi | ||
12382 | |||
12383 | fi | ||
12384 | |||
12385 | else | ||
12386 | efl_have_doxygen="no" | ||
12387 | fi | ||
12388 | |||
12389 | |||
12390 | |||
12391 | if ! test "x${efl_have_doxygen}" = "xyes" ; then | ||
12392 | efl_enable_doc="no" | ||
12393 | fi | ||
12394 | |||
12395 | if test "x${efl_have_doxygen}" = "xyes"; then | ||
12396 | EFL_BUILD_DOC_TRUE= | ||
12397 | EFL_BUILD_DOC_FALSE='#' | ||
12398 | else | ||
12399 | EFL_BUILD_DOC_TRUE='#' | ||
12400 | EFL_BUILD_DOC_FALSE= | ||
12401 | fi | ||
12402 | |||
12403 | |||
12404 | if test "x$efl_have_doxygen" = "xyes"; then : | ||
12405 | build_doc="yes" | ||
12406 | else | ||
12407 | build_doc="no" | ||
12408 | fi | ||
12409 | |||
12410 | |||
12411 | ### Checks for libraries | ||
12412 | |||
12413 | # Evil library for compilation on Windows | ||
12414 | |||
12415 | EFL_EET_BUILD="" | ||
12416 | case "$host_os" in | ||
12417 | mingw*) | ||
12418 | |||
12419 | pkg_failed=no | ||
12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVIL" >&5 | ||
12421 | $as_echo_n "checking for EVIL... " >&6; } | ||
12422 | |||
12423 | if test -n "$EVIL_CFLAGS"; then | ||
12424 | pkg_cv_EVIL_CFLAGS="$EVIL_CFLAGS" | ||
12425 | elif test -n "$PKG_CONFIG"; then | ||
12426 | if test -n "$PKG_CONFIG" && \ | ||
12427 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
12428 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
12429 | ac_status=$? | ||
12430 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12431 | test $ac_status = 0; }; then | ||
12432 | pkg_cv_EVIL_CFLAGS=`$PKG_CONFIG --cflags "evil >= 1.0.0" 2>/dev/null` | ||
12433 | else | ||
12434 | pkg_failed=yes | ||
12435 | fi | ||
12436 | else | ||
12437 | pkg_failed=untried | ||
12438 | fi | ||
12439 | if test -n "$EVIL_LIBS"; then | ||
12440 | pkg_cv_EVIL_LIBS="$EVIL_LIBS" | ||
12441 | elif test -n "$PKG_CONFIG"; then | ||
12442 | if test -n "$PKG_CONFIG" && \ | ||
12443 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
12444 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
12445 | ac_status=$? | ||
12446 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12447 | test $ac_status = 0; }; then | ||
12448 | pkg_cv_EVIL_LIBS=`$PKG_CONFIG --libs "evil >= 1.0.0" 2>/dev/null` | ||
12449 | else | ||
12450 | pkg_failed=yes | ||
12451 | fi | ||
12452 | else | ||
12453 | pkg_failed=untried | ||
12454 | fi | ||
12455 | |||
12456 | |||
12457 | |||
12458 | if test $pkg_failed = yes; then | ||
12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12460 | $as_echo "no" >&6; } | ||
12461 | |||
12462 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
12463 | _pkg_short_errors_supported=yes | ||
12464 | else | ||
12465 | _pkg_short_errors_supported=no | ||
12466 | fi | ||
12467 | if test $_pkg_short_errors_supported = yes; then | ||
12468 | EVIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "evil >= 1.0.0" 2>&1` | ||
12469 | else | ||
12470 | EVIL_PKG_ERRORS=`$PKG_CONFIG --print-errors "evil >= 1.0.0" 2>&1` | ||
12471 | fi | ||
12472 | # Put the nasty error message in config.log where it belongs | ||
12473 | echo "$EVIL_PKG_ERRORS" >&5 | ||
12474 | |||
12475 | as_fn_error $? "Package requirements (evil >= 1.0.0) were not met: | ||
12476 | |||
12477 | $EVIL_PKG_ERRORS | ||
12478 | |||
12479 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
12480 | installed software in a non-standard prefix. | ||
12481 | |||
12482 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
12483 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
12484 | See the pkg-config man page for more details." "$LINENO" 5 | ||
12485 | elif test $pkg_failed = untried; then | ||
12486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12487 | $as_echo "no" >&6; } | ||
12488 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
12489 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
12490 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
12491 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
12492 | path to pkg-config. | ||
12493 | |||
12494 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
12495 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
12496 | See the pkg-config man page for more details. | ||
12497 | |||
12498 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
12499 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
12500 | else | ||
12501 | EVIL_CFLAGS=$pkg_cv_EVIL_CFLAGS | ||
12502 | EVIL_LIBS=$pkg_cv_EVIL_LIBS | ||
12503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12504 | $as_echo "yes" >&6; } | ||
12505 | |||
12506 | fi | ||
12507 | |||
12508 | $as_echo "#define HAVE_EVIL 1" >>confdefs.h | ||
12509 | |||
12510 | requirement_eet="evil ${requirement_eet}" | ||
12511 | EFL_EET_BUILD="-DEFL_EET_BUILD" | ||
12512 | ;; | ||
12513 | esac | ||
12514 | |||
12515 | |||
12516 | EET_LIBS="" | ||
12517 | case "$host_os" in | ||
12518 | mingw32ce*) | ||
12519 | EET_LIBS="-lws2" | ||
12520 | ;; | ||
12521 | mingw*) | ||
12522 | EET_LIBS="-lws2_32" | ||
12523 | ;; | ||
12524 | esac | ||
12525 | |||
12526 | |||
12527 | # Eina library | ||
12528 | |||
12529 | |||
12530 | pkg_failed=no | ||
12531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EINA" >&5 | ||
12532 | $as_echo_n "checking for EINA... " >&6; } | ||
12533 | |||
12534 | if test -n "$EINA_CFLAGS"; then | ||
12535 | pkg_cv_EINA_CFLAGS="$EINA_CFLAGS" | ||
12536 | elif test -n "$PKG_CONFIG"; then | ||
12537 | if test -n "$PKG_CONFIG" && \ | ||
12538 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina >= 1.2.0\""; } >&5 | ||
12539 | ($PKG_CONFIG --exists --print-errors "eina >= 1.2.0") 2>&5 | ||
12540 | ac_status=$? | ||
12541 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12542 | test $ac_status = 0; }; then | ||
12543 | pkg_cv_EINA_CFLAGS=`$PKG_CONFIG --cflags "eina >= 1.2.0" 2>/dev/null` | ||
12544 | else | ||
12545 | pkg_failed=yes | ||
12546 | fi | ||
12547 | else | ||
12548 | pkg_failed=untried | ||
12549 | fi | ||
12550 | if test -n "$EINA_LIBS"; then | ||
12551 | pkg_cv_EINA_LIBS="$EINA_LIBS" | ||
12552 | elif test -n "$PKG_CONFIG"; then | ||
12553 | if test -n "$PKG_CONFIG" && \ | ||
12554 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina >= 1.2.0\""; } >&5 | ||
12555 | ($PKG_CONFIG --exists --print-errors "eina >= 1.2.0") 2>&5 | ||
12556 | ac_status=$? | ||
12557 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12558 | test $ac_status = 0; }; then | ||
12559 | pkg_cv_EINA_LIBS=`$PKG_CONFIG --libs "eina >= 1.2.0" 2>/dev/null` | ||
12560 | else | ||
12561 | pkg_failed=yes | ||
12562 | fi | ||
12563 | else | ||
12564 | pkg_failed=untried | ||
12565 | fi | ||
12566 | |||
12567 | |||
12568 | |||
12569 | if test $pkg_failed = yes; then | ||
12570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12571 | $as_echo "no" >&6; } | ||
12572 | |||
12573 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
12574 | _pkg_short_errors_supported=yes | ||
12575 | else | ||
12576 | _pkg_short_errors_supported=no | ||
12577 | fi | ||
12578 | if test $_pkg_short_errors_supported = yes; then | ||
12579 | EINA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eina >= 1.2.0" 2>&1` | ||
12580 | else | ||
12581 | EINA_PKG_ERRORS=`$PKG_CONFIG --print-errors "eina >= 1.2.0" 2>&1` | ||
12582 | fi | ||
12583 | # Put the nasty error message in config.log where it belongs | ||
12584 | echo "$EINA_PKG_ERRORS" >&5 | ||
12585 | |||
12586 | as_fn_error $? "Package requirements (eina >= 1.2.0) were not met: | ||
12587 | |||
12588 | $EINA_PKG_ERRORS | ||
12589 | |||
12590 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
12591 | installed software in a non-standard prefix. | ||
12592 | |||
12593 | Alternatively, you may set the environment variables EINA_CFLAGS | ||
12594 | and EINA_LIBS to avoid the need to call pkg-config. | ||
12595 | See the pkg-config man page for more details." "$LINENO" 5 | ||
12596 | elif test $pkg_failed = untried; then | ||
12597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12598 | $as_echo "no" >&6; } | ||
12599 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
12600 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
12601 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
12602 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
12603 | path to pkg-config. | ||
12604 | |||
12605 | Alternatively, you may set the environment variables EINA_CFLAGS | ||
12606 | and EINA_LIBS to avoid the need to call pkg-config. | ||
12607 | See the pkg-config man page for more details. | ||
12608 | |||
12609 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
12610 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
12611 | else | ||
12612 | EINA_CFLAGS=$pkg_cv_EINA_CFLAGS | ||
12613 | EINA_LIBS=$pkg_cv_EINA_LIBS | ||
12614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12615 | $as_echo "yes" >&6; } | ||
12616 | |||
12617 | fi | ||
12618 | requirement_eet="eina >= 1.2.0 ${requirement_eet}" | ||
12619 | |||
12620 | ### Checks for portability layer | ||
12621 | |||
12622 | |||
12623 | pkg_failed=no | ||
12624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXOTIC" >&5 | ||
12625 | $as_echo_n "checking for EXOTIC... " >&6; } | ||
12626 | |||
12627 | if test -n "$EXOTIC_CFLAGS"; then | ||
12628 | pkg_cv_EXOTIC_CFLAGS="$EXOTIC_CFLAGS" | ||
12629 | elif test -n "$PKG_CONFIG"; then | ||
12630 | if test -n "$PKG_CONFIG" && \ | ||
12631 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"exotic\""; } >&5 | ||
12632 | ($PKG_CONFIG --exists --print-errors "exotic") 2>&5 | ||
12633 | ac_status=$? | ||
12634 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12635 | test $ac_status = 0; }; then | ||
12636 | pkg_cv_EXOTIC_CFLAGS=`$PKG_CONFIG --cflags "exotic" 2>/dev/null` | ||
12637 | else | ||
12638 | pkg_failed=yes | ||
12639 | fi | ||
12640 | else | ||
12641 | pkg_failed=untried | ||
12642 | fi | ||
12643 | if test -n "$EXOTIC_LIBS"; then | ||
12644 | pkg_cv_EXOTIC_LIBS="$EXOTIC_LIBS" | ||
12645 | elif test -n "$PKG_CONFIG"; then | ||
12646 | if test -n "$PKG_CONFIG" && \ | ||
12647 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"exotic\""; } >&5 | ||
12648 | ($PKG_CONFIG --exists --print-errors "exotic") 2>&5 | ||
12649 | ac_status=$? | ||
12650 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12651 | test $ac_status = 0; }; then | ||
12652 | pkg_cv_EXOTIC_LIBS=`$PKG_CONFIG --libs "exotic" 2>/dev/null` | ||
12653 | else | ||
12654 | pkg_failed=yes | ||
12655 | fi | ||
12656 | else | ||
12657 | pkg_failed=untried | ||
12658 | fi | ||
12659 | |||
12660 | |||
12661 | |||
12662 | if test $pkg_failed = yes; then | ||
12663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12664 | $as_echo "no" >&6; } | ||
12665 | |||
12666 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
12667 | _pkg_short_errors_supported=yes | ||
12668 | else | ||
12669 | _pkg_short_errors_supported=no | ||
12670 | fi | ||
12671 | if test $_pkg_short_errors_supported = yes; then | ||
12672 | EXOTIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "exotic" 2>&1` | ||
12673 | else | ||
12674 | EXOTIC_PKG_ERRORS=`$PKG_CONFIG --print-errors "exotic" 2>&1` | ||
12675 | fi | ||
12676 | # Put the nasty error message in config.log where it belongs | ||
12677 | echo "$EXOTIC_PKG_ERRORS" >&5 | ||
12678 | |||
12679 | enable_exotic="no" | ||
12680 | elif test $pkg_failed = untried; then | ||
12681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12682 | $as_echo "no" >&6; } | ||
12683 | enable_exotic="no" | ||
12684 | else | ||
12685 | EXOTIC_CFLAGS=$pkg_cv_EXOTIC_CFLAGS | ||
12686 | EXOTIC_LIBS=$pkg_cv_EXOTIC_LIBS | ||
12687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12688 | $as_echo "yes" >&6; } | ||
12689 | enable_exotic="yes" | ||
12690 | fi | ||
12691 | |||
12692 | if test "x${enable_exotic}" = "xyes"; then | ||
12693 | requirement_eet="exotic ${requirement_eet}" | ||
12694 | |||
12695 | |||
12696 | $as_echo "#define HAVE_EXOTIC_H 1" >>confdefs.h | ||
12697 | |||
12698 | fi | ||
12699 | |||
12700 | # Gnutls support | ||
12701 | |||
12702 | # Check whether --enable-gnutls was given. | ||
12703 | if test "${enable_gnutls+set}" = set; then : | ||
12704 | enableval=$enable_gnutls; want_gnutls=$enableval | ||
12705 | |||
12706 | fi | ||
12707 | |||
12708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Gnutls" >&5 | ||
12709 | $as_echo_n "checking whether to use Gnutls... " >&6; } | ||
12710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_gnutls}" >&5 | ||
12711 | $as_echo "${want_gnutls}" >&6; } | ||
12712 | |||
12713 | # Gnutls library | ||
12714 | have_gnutls="no" | ||
12715 | if test "x${want_gnutls}" = "xyes" || test "x${want_gnutls}" = "xauto" ; then | ||
12716 | |||
12717 | pkg_failed=no | ||
12718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5 | ||
12719 | $as_echo_n "checking for GNUTLS... " >&6; } | ||
12720 | |||
12721 | if test -n "$GNUTLS_CFLAGS"; then | ||
12722 | pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS" | ||
12723 | elif test -n "$PKG_CONFIG"; then | ||
12724 | if test -n "$PKG_CONFIG" && \ | ||
12725 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.7.6\""; } >&5 | ||
12726 | ($PKG_CONFIG --exists --print-errors "gnutls >= 1.7.6") 2>&5 | ||
12727 | ac_status=$? | ||
12728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12729 | test $ac_status = 0; }; then | ||
12730 | pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.7.6" 2>/dev/null` | ||
12731 | else | ||
12732 | pkg_failed=yes | ||
12733 | fi | ||
12734 | else | ||
12735 | pkg_failed=untried | ||
12736 | fi | ||
12737 | if test -n "$GNUTLS_LIBS"; then | ||
12738 | pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS" | ||
12739 | elif test -n "$PKG_CONFIG"; then | ||
12740 | if test -n "$PKG_CONFIG" && \ | ||
12741 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.7.6\""; } >&5 | ||
12742 | ($PKG_CONFIG --exists --print-errors "gnutls >= 1.7.6") 2>&5 | ||
12743 | ac_status=$? | ||
12744 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12745 | test $ac_status = 0; }; then | ||
12746 | pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.7.6" 2>/dev/null` | ||
12747 | else | ||
12748 | pkg_failed=yes | ||
12749 | fi | ||
12750 | else | ||
12751 | pkg_failed=untried | ||
12752 | fi | ||
12753 | |||
12754 | |||
12755 | |||
12756 | if test $pkg_failed = yes; then | ||
12757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12758 | $as_echo "no" >&6; } | ||
12759 | |||
12760 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
12761 | _pkg_short_errors_supported=yes | ||
12762 | else | ||
12763 | _pkg_short_errors_supported=no | ||
12764 | fi | ||
12765 | if test $_pkg_short_errors_supported = yes; then | ||
12766 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls >= 1.7.6" 2>&1` | ||
12767 | else | ||
12768 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls >= 1.7.6" 2>&1` | ||
12769 | fi | ||
12770 | # Put the nasty error message in config.log where it belongs | ||
12771 | echo "$GNUTLS_PKG_ERRORS" >&5 | ||
12772 | |||
12773 | have_gnutls="no" | ||
12774 | elif test $pkg_failed = untried; then | ||
12775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12776 | $as_echo "no" >&6; } | ||
12777 | have_gnutls="no" | ||
12778 | else | ||
12779 | GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS | ||
12780 | GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS | ||
12781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12782 | $as_echo "yes" >&6; } | ||
12783 | |||
12784 | have_gnutls="yes" | ||
12785 | want_openssl="no" | ||
12786 | |||
12787 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | ||
12788 | |||
12789 | requirement_eet="gnutls ${requirement_eet}" | ||
12790 | |||
12791 | fi | ||
12792 | if test "x${have_gnutls}" = "xyes" ; then | ||
12793 | |||
12794 | |||
12795 | # Check whether --with-libgcrypt-prefix was given. | ||
12796 | if test "${with_libgcrypt_prefix+set}" = set; then : | ||
12797 | withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval" | ||
12798 | else | ||
12799 | libgcrypt_config_prefix="" | ||
12800 | fi | ||
12801 | |||
12802 | |||
12803 | # Check whether --with-libgcrypt-exec-prefix was given. | ||
12804 | if test "${with_libgcrypt_exec_prefix+set}" = set; then : | ||
12805 | withval=$with_libgcrypt_exec_prefix; libgcrypt_config_exec_prefix="$withval" | ||
12806 | else | ||
12807 | libgcrypt_config_exec_prefix="" | ||
12808 | fi | ||
12809 | |||
12810 | |||
12811 | if test x$libgcrypt_config_exec_prefix != x ; then | ||
12812 | libgcrypt_config_args="$libgcrypt_config_args --exec-prefix=$libgcrypt_config_exec_prefix" | ||
12813 | if test x${LIBGCRYPT_CONFIG+set} != xset ; then | ||
12814 | LIBGCRYPT_CONFIG=$libgcrypt_config_exec_prefix/bin/libgcrypt-config | ||
12815 | fi | ||
12816 | fi | ||
12817 | if test x$libgcrypt_config_prefix != x ; then | ||
12818 | libgcrypt_config_args="$libgcrypt_config_args --prefix=$libgcrypt_config_prefix" | ||
12819 | if test x${LIBGCRYPT_CONFIG+set} != xset ; then | ||
12820 | LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config | ||
12821 | fi | ||
12822 | fi | ||
12823 | |||
12824 | # Extract the first word of "libgcrypt-config", so it can be a program name with args. | ||
12825 | set dummy libgcrypt-config; ac_word=$2 | ||
12826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12827 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12828 | if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then : | ||
12829 | $as_echo_n "(cached) " >&6 | ||
12830 | else | ||
12831 | case $LIBGCRYPT_CONFIG in | ||
12832 | [\\/]* | ?:[\\/]*) | ||
12833 | ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path. | ||
12834 | ;; | ||
12835 | *) | ||
12836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12837 | for as_dir in $PATH | ||
12838 | do | ||
12839 | IFS=$as_save_IFS | ||
12840 | test -z "$as_dir" && as_dir=. | ||
12841 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12842 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12843 | ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
12844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12845 | break 2 | ||
12846 | fi | ||
12847 | done | ||
12848 | done | ||
12849 | IFS=$as_save_IFS | ||
12850 | |||
12851 | test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no" | ||
12852 | ;; | ||
12853 | esac | ||
12854 | fi | ||
12855 | LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG | ||
12856 | if test -n "$LIBGCRYPT_CONFIG"; then | ||
12857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5 | ||
12858 | $as_echo "$LIBGCRYPT_CONFIG" >&6; } | ||
12859 | else | ||
12860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12861 | $as_echo "no" >&6; } | ||
12862 | fi | ||
12863 | |||
12864 | |||
12865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5 | ||
12866 | $as_echo_n "checking for libgcrypt... " >&6; } | ||
12867 | no_libgcrypt="" | ||
12868 | if test "$LIBGCRYPT_CONFIG" = "no" ; then | ||
12869 | no_libgcrypt=yes | ||
12870 | else | ||
12871 | LIBGCRYPT_CFLAGS="`$LIBGCRYPT_CONFIG $libgcrypt_config_args --cflags`" | ||
12872 | LIBGCRYPT_LIBS="`$LIBGCRYPT_CONFIG $libgcrypt_config_args --libs`" | ||
12873 | |||
12874 | fi | ||
12875 | if test "x$no_libgcrypt" = x ; then | ||
12876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12877 | $as_echo "yes" >&6; } | ||
12878 | have_gnutls="yes" | ||
12879 | else | ||
12880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12881 | $as_echo "no" >&6; } | ||
12882 | if test "$LIBGCRYPT_CONFIG" = "no" ; then | ||
12883 | echo "*** The libgcrypt-config script installed by libgcrypt could not be found" | ||
12884 | echo "*** If libgcrypt was installed in PREFIX, make sure PREFIX/bin is in" | ||
12885 | echo "*** your path, or set the LIBGCRYPT_CONFIG environment variable to the" | ||
12886 | echo "*** full path to libgcrypt-config." | ||
12887 | fi | ||
12888 | LIBGCRYPT_CFLAGS="" | ||
12889 | LIBGCRYPT_LIBS="" | ||
12890 | have_gnutls="no" | ||
12891 | fi | ||
12892 | |||
12893 | |||
12894 | |||
12895 | |||
12896 | |||
12897 | |||
12898 | if test "x${have_gnutls}" = "xyes" ; then | ||
12899 | GNUTLS_CFLAGS="${GNUTLS_CFLAGS} ${LIBGCRYPT_CFLAGS}" | ||
12900 | GNUTLS_LIBS="${GNUTLS_LIBS} ${LIBGCRYPT_LIBS}" | ||
12901 | fi | ||
12902 | fi | ||
12903 | fi | ||
12904 | |||
12905 | # Specific GNUTLS improvement | ||
12906 | |||
12907 | new_gnutls_api="yes" | ||
12908 | # Check whether --enable-new-gnutls-api was given. | ||
12909 | if test "${enable_new_gnutls_api+set}" = set; then : | ||
12910 | enableval=$enable_new_gnutls_api; new_gnutls_api=$enableval | ||
12911 | |||
12912 | fi | ||
12913 | |||
12914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gnutls_x509_crt_verify_hash" >&5 | ||
12915 | $as_echo_n "checking whether to use gnutls_x509_crt_verify_hash... " >&6; } | ||
12916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${new_gnutls_api}" >&5 | ||
12917 | $as_echo "${new_gnutls_api}" >&6; } | ||
12918 | |||
12919 | if test "x${new_gnutls_api}" = "xyes" ; then | ||
12920 | tmp_CFLAGS="${CFLAGS}" | ||
12921 | tmp_LIBS="${LIBS}" | ||
12922 | CFLAGS="${GNUTLS_CFLAGS}" | ||
12923 | LIBS="${GNUTLS_LIBS}" | ||
12924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_verify_hash in -lgnutls" >&5 | ||
12925 | $as_echo_n "checking for gnutls_x509_crt_verify_hash in -lgnutls... " >&6; } | ||
12926 | if test "${ac_cv_lib_gnutls_gnutls_x509_crt_verify_hash+set}" = set; then : | ||
12927 | $as_echo_n "(cached) " >&6 | ||
12928 | else | ||
12929 | ac_check_lib_save_LIBS=$LIBS | ||
12930 | LIBS="-lgnutls $LIBS" | ||
12931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12932 | /* end confdefs.h. */ | ||
12933 | |||
12934 | /* Override any GCC internal prototype to avoid an error. | ||
12935 | Use char because int might match the return type of a GCC | ||
12936 | builtin and then its argument prototype would still apply. */ | ||
12937 | #ifdef __cplusplus | ||
12938 | extern "C" | ||
12939 | #endif | ||
12940 | char gnutls_x509_crt_verify_hash (); | ||
12941 | int | ||
12942 | main () | ||
12943 | { | ||
12944 | return gnutls_x509_crt_verify_hash (); | ||
12945 | ; | ||
12946 | return 0; | ||
12947 | } | ||
12948 | _ACEOF | ||
12949 | if ac_fn_c_try_link "$LINENO"; then : | ||
12950 | ac_cv_lib_gnutls_gnutls_x509_crt_verify_hash=yes | ||
12951 | else | ||
12952 | ac_cv_lib_gnutls_gnutls_x509_crt_verify_hash=no | ||
12953 | fi | ||
12954 | rm -f core conftest.err conftest.$ac_objext \ | ||
12955 | conftest$ac_exeext conftest.$ac_ext | ||
12956 | LIBS=$ac_check_lib_save_LIBS | ||
12957 | fi | ||
12958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_verify_hash" >&5 | ||
12959 | $as_echo "$ac_cv_lib_gnutls_gnutls_x509_crt_verify_hash" >&6; } | ||
12960 | if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_verify_hash" = x""yes; then : | ||
12961 | new_gnutls_api="yes" | ||
12962 | else | ||
12963 | new_gnutls_api="no" | ||
12964 | |||
12965 | fi | ||
12966 | |||
12967 | CFLAGS="${tmp_CFLAGS}" | ||
12968 | LIBS="${tmp_LIBS}" | ||
12969 | |||
12970 | if test "x${new_gnutls_api}" = "xyes"; then | ||
12971 | |||
12972 | $as_echo "#define EET_USE_NEW_GNUTLS_API 1" >>confdefs.h | ||
12973 | |||
12974 | fi | ||
12975 | fi | ||
12976 | |||
12977 | use_gnutls_privkey_sign_data="no" | ||
12978 | if test "x${want_gnutls}" = "xyes" -o "x${want_gnutls}" = "xauto"; then | ||
12979 | tmp_CFLAGS="${CFLAGS}" | ||
12980 | tmp_LIBS="${LIBS}" | ||
12981 | CFLAGS="${GNUTLS_CFLAGS}" | ||
12982 | LIBS="${GNUTLS_LIBS}" | ||
12983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_privkey_sign_data in -lgnutls" >&5 | ||
12984 | $as_echo_n "checking for gnutls_privkey_sign_data in -lgnutls... " >&6; } | ||
12985 | if test "${ac_cv_lib_gnutls_gnutls_privkey_sign_data+set}" = set; then : | ||
12986 | $as_echo_n "(cached) " >&6 | ||
12987 | else | ||
12988 | ac_check_lib_save_LIBS=$LIBS | ||
12989 | LIBS="-lgnutls $LIBS" | ||
12990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12991 | /* end confdefs.h. */ | ||
12992 | |||
12993 | /* Override any GCC internal prototype to avoid an error. | ||
12994 | Use char because int might match the return type of a GCC | ||
12995 | builtin and then its argument prototype would still apply. */ | ||
12996 | #ifdef __cplusplus | ||
12997 | extern "C" | ||
12998 | #endif | ||
12999 | char gnutls_privkey_sign_data (); | ||
13000 | int | ||
13001 | main () | ||
13002 | { | ||
13003 | return gnutls_privkey_sign_data (); | ||
13004 | ; | ||
13005 | return 0; | ||
13006 | } | ||
13007 | _ACEOF | ||
13008 | if ac_fn_c_try_link "$LINENO"; then : | ||
13009 | ac_cv_lib_gnutls_gnutls_privkey_sign_data=yes | ||
13010 | else | ||
13011 | ac_cv_lib_gnutls_gnutls_privkey_sign_data=no | ||
13012 | fi | ||
13013 | rm -f core conftest.err conftest.$ac_objext \ | ||
13014 | conftest$ac_exeext conftest.$ac_ext | ||
13015 | LIBS=$ac_check_lib_save_LIBS | ||
13016 | fi | ||
13017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_privkey_sign_data" >&5 | ||
13018 | $as_echo "$ac_cv_lib_gnutls_gnutls_privkey_sign_data" >&6; } | ||
13019 | if test "x$ac_cv_lib_gnutls_gnutls_privkey_sign_data" = x""yes; then : | ||
13020 | use_gnutls_privkey_sign_data="yes" | ||
13021 | else | ||
13022 | use_gnutls_privkey_sign_data="no" | ||
13023 | |||
13024 | fi | ||
13025 | |||
13026 | CFLAGS="${tmp_CFLAGS}" | ||
13027 | LIBS="${tmp_LIBS}" | ||
13028 | |||
13029 | if test "x${use_gnutls_privkey_sign_data}" = "xyes"; then | ||
13030 | |||
13031 | $as_echo "#define EET_USE_NEW_PRIVKEY_SIGN_DATA 1" >>confdefs.h | ||
13032 | |||
13033 | fi | ||
13034 | fi | ||
13035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gnutls_privkey_sign_data" >&5 | ||
13036 | $as_echo_n "checking whether to use gnutls_privkey_sign_data... " >&6; } | ||
13037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${use_gnutls_privkey_sign_data}" >&5 | ||
13038 | $as_echo "${use_gnutls_privkey_sign_data}" >&6; } | ||
13039 | |||
13040 | use_gnutls_pubkey_verify_hash="no" | ||
13041 | if test "x${want_gnutls}" = "xyes" -o "x${want_gnutls}" = "xauto"; then | ||
13042 | tmp_CFLAGS="${CFLAGS}" | ||
13043 | tmp_LIBS="${LIBS}" | ||
13044 | CFLAGS="${GNUTLS_CFLAGS}" | ||
13045 | LIBS="${GNUTLS_LIBS}" | ||
13046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_pubkey_verify_hash in -lgnutls" >&5 | ||
13047 | $as_echo_n "checking for gnutls_pubkey_verify_hash in -lgnutls... " >&6; } | ||
13048 | if test "${ac_cv_lib_gnutls_gnutls_pubkey_verify_hash+set}" = set; then : | ||
13049 | $as_echo_n "(cached) " >&6 | ||
13050 | else | ||
13051 | ac_check_lib_save_LIBS=$LIBS | ||
13052 | LIBS="-lgnutls $LIBS" | ||
13053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13054 | /* end confdefs.h. */ | ||
13055 | |||
13056 | /* Override any GCC internal prototype to avoid an error. | ||
13057 | Use char because int might match the return type of a GCC | ||
13058 | builtin and then its argument prototype would still apply. */ | ||
13059 | #ifdef __cplusplus | ||
13060 | extern "C" | ||
13061 | #endif | ||
13062 | char gnutls_pubkey_verify_hash (); | ||
13063 | int | ||
13064 | main () | ||
13065 | { | ||
13066 | return gnutls_pubkey_verify_hash (); | ||
13067 | ; | ||
13068 | return 0; | ||
13069 | } | ||
13070 | _ACEOF | ||
13071 | if ac_fn_c_try_link "$LINENO"; then : | ||
13072 | ac_cv_lib_gnutls_gnutls_pubkey_verify_hash=yes | ||
13073 | else | ||
13074 | ac_cv_lib_gnutls_gnutls_pubkey_verify_hash=no | ||
13075 | fi | ||
13076 | rm -f core conftest.err conftest.$ac_objext \ | ||
13077 | conftest$ac_exeext conftest.$ac_ext | ||
13078 | LIBS=$ac_check_lib_save_LIBS | ||
13079 | fi | ||
13080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_pubkey_verify_hash" >&5 | ||
13081 | $as_echo "$ac_cv_lib_gnutls_gnutls_pubkey_verify_hash" >&6; } | ||
13082 | if test "x$ac_cv_lib_gnutls_gnutls_pubkey_verify_hash" = x""yes; then : | ||
13083 | use_gnutls_pubkey_verify_hash="yes" | ||
13084 | else | ||
13085 | use_gnutls_pubkey_verify_hash="no" | ||
13086 | |||
13087 | fi | ||
13088 | |||
13089 | CFLAGS="${tmp_CFLAGS}" | ||
13090 | LIBS="${tmp_LIBS}" | ||
13091 | |||
13092 | if test "x${use_gnutls_pubkey_verify_hash}" = "xyes"; then | ||
13093 | |||
13094 | $as_echo "#define EET_USE_NEW_PUBKEY_VERIFY_HASH 1" >>confdefs.h | ||
13095 | |||
13096 | fi | ||
13097 | fi | ||
13098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gnutls_pubkey_verify_hash" >&5 | ||
13099 | $as_echo_n "checking whether to use gnutls_pubkey_verify_hash... " >&6; } | ||
13100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${use_gnutls_pubkey_verify_hash}" >&5 | ||
13101 | $as_echo "${use_gnutls_pubkey_verify_hash}" >&6; } | ||
13102 | |||
13103 | # Openssl library | ||
13104 | have_openssl="no" | ||
13105 | if test "x${want_openssl}" = "xyes" || test "x${want_openssl}" = "xauto" ; then | ||
13106 | |||
13107 | pkg_failed=no | ||
13108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5 | ||
13109 | $as_echo_n "checking for OPENSSL... " >&6; } | ||
13110 | |||
13111 | if test -n "$OPENSSL_CFLAGS"; then | ||
13112 | pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" | ||
13113 | elif test -n "$PKG_CONFIG"; then | ||
13114 | if test -n "$PKG_CONFIG" && \ | ||
13115 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 | ||
13116 | ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 | ||
13117 | ac_status=$? | ||
13118 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13119 | test $ac_status = 0; }; then | ||
13120 | pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` | ||
13121 | else | ||
13122 | pkg_failed=yes | ||
13123 | fi | ||
13124 | else | ||
13125 | pkg_failed=untried | ||
13126 | fi | ||
13127 | if test -n "$OPENSSL_LIBS"; then | ||
13128 | pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" | ||
13129 | elif test -n "$PKG_CONFIG"; then | ||
13130 | if test -n "$PKG_CONFIG" && \ | ||
13131 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 | ||
13132 | ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 | ||
13133 | ac_status=$? | ||
13134 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13135 | test $ac_status = 0; }; then | ||
13136 | pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` | ||
13137 | else | ||
13138 | pkg_failed=yes | ||
13139 | fi | ||
13140 | else | ||
13141 | pkg_failed=untried | ||
13142 | fi | ||
13143 | |||
13144 | |||
13145 | |||
13146 | if test $pkg_failed = yes; then | ||
13147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13148 | $as_echo "no" >&6; } | ||
13149 | |||
13150 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
13151 | _pkg_short_errors_supported=yes | ||
13152 | else | ||
13153 | _pkg_short_errors_supported=no | ||
13154 | fi | ||
13155 | if test $_pkg_short_errors_supported = yes; then | ||
13156 | OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl" 2>&1` | ||
13157 | else | ||
13158 | OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl" 2>&1` | ||
13159 | fi | ||
13160 | # Put the nasty error message in config.log where it belongs | ||
13161 | echo "$OPENSSL_PKG_ERRORS" >&5 | ||
13162 | |||
13163 | have_openssl="no" | ||
13164 | elif test $pkg_failed = untried; then | ||
13165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13166 | $as_echo "no" >&6; } | ||
13167 | have_openssl="no" | ||
13168 | else | ||
13169 | OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS | ||
13170 | OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS | ||
13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13172 | $as_echo "yes" >&6; } | ||
13173 | |||
13174 | have_openssl="yes" | ||
13175 | |||
13176 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h | ||
13177 | |||
13178 | requirement_eet="openssl ${requirement_eet}" | ||
13179 | |||
13180 | fi | ||
13181 | fi | ||
13182 | |||
13183 | if test "x${have_gnutls}" = "xyes" ; then | ||
13184 | secure_layer="GnuTLS" | ||
13185 | elif test "x${have_openssl}" = "xyes" ; then | ||
13186 | secure_layer="OpenSSL" | ||
13187 | else | ||
13188 | secure_layer="no" | ||
13189 | fi | ||
13190 | |||
13191 | have_cipher="no" | ||
13192 | if test "x${have_gnutls}" = "xyes" && test "x${want_cipher}" = "xyes" ; then | ||
13193 | have_cipher="yes" | ||
13194 | |||
13195 | $as_echo "#define HAVE_CIPHER 1" >>confdefs.h | ||
13196 | |||
13197 | elif test "x${have_openssl}" = "xyes" && test "x${want_cipher}" = "xyes" ; then | ||
13198 | have_cipher="yes" | ||
13199 | |||
13200 | $as_echo "#define HAVE_CIPHER 1" >>confdefs.h | ||
13201 | |||
13202 | fi | ||
13203 | |||
13204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate cipher support in eet" >&5 | ||
13205 | $as_echo_n "checking whether to activate cipher support in eet... " >&6; } | ||
13206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_cipher}" >&5 | ||
13207 | $as_echo "${have_cipher}" >&6; } | ||
13208 | |||
13209 | have_signature="no" | ||
13210 | if test "x${have_gnutls}" = "xyes" && test "x${want_signature}" = "xyes" ; then | ||
13211 | have_signature="yes" | ||
13212 | |||
13213 | $as_echo "#define HAVE_SIGNATURE 1" >>confdefs.h | ||
13214 | |||
13215 | elif test "x${have_openssl}" = "xyes" && test "x${want_signature}" = "xyes" ; then | ||
13216 | have_signature="yes" | ||
13217 | |||
13218 | $as_echo "#define HAVE_SIGNATURE 1" >>confdefs.h | ||
13219 | |||
13220 | fi | ||
13221 | |||
13222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate signature support in eet" >&5 | ||
13223 | $as_echo_n "checking whether to activate signature support in eet... " >&6; } | ||
13224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_signature}" >&5 | ||
13225 | $as_echo "${have_signature}" >&6; } | ||
13226 | |||
13227 | ### Checks for header files | ||
13228 | |||
13229 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | ||
13230 | if test "x$ac_cv_header_zlib_h" = x""yes; then : | ||
13231 | dummy="yes" | ||
13232 | else | ||
13233 | as_fn_error $? "\"Cannot find zlib.h. Make sure your CFLAGS environment variable contains include lines for the location of this file\"" "$LINENO" 5 | ||
13234 | fi | ||
13235 | |||
13236 | |||
13237 | |||
13238 | ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" | ||
13239 | if test "x$ac_cv_header_jpeglib_h" = x""yes; then : | ||
13240 | dummy="yes" | ||
13241 | else | ||
13242 | as_fn_error $? "\"Cannot find jpeglib.h. Make sure your CFLAGS environment variable contains include lines for the location of this file\"" "$LINENO" 5 | ||
13243 | fi | ||
13244 | |||
13245 | |||
13246 | |||
13247 | for ac_header in netinet/in.h unistd.h | ||
13248 | do : | ||
13249 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
13250 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
13251 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
13252 | cat >>confdefs.h <<_ACEOF | ||
13253 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
13254 | _ACEOF | ||
13255 | |||
13256 | fi | ||
13257 | |||
13258 | done | ||
13259 | |||
13260 | |||
13261 | |||
13262 | default_max="4096" | ||
13263 | ac_ext=c | ||
13264 | ac_cpp='$CPP $CPPFLAGS' | ||
13265 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13266 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13267 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13268 | |||
13269 | |||
13270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATH_MAX in limits.h" >&5 | ||
13271 | $as_echo_n "checking for PATH_MAX in limits.h... " >&6; } | ||
13272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13273 | /* end confdefs.h. */ | ||
13274 | |||
13275 | #include <limits.h> | ||
13276 | |||
13277 | int | ||
13278 | main () | ||
13279 | { | ||
13280 | |||
13281 | int i = PATH_MAX; | ||
13282 | |||
13283 | ; | ||
13284 | return 0; | ||
13285 | } | ||
13286 | _ACEOF | ||
13287 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13289 | $as_echo "yes" >&6; } | ||
13290 | else | ||
13291 | |||
13292 | |||
13293 | cat >>confdefs.h <<_ACEOF | ||
13294 | #define PATH_MAX ${default_max} | ||
13295 | _ACEOF | ||
13296 | |||
13297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: using ${default_max}" >&5 | ||
13298 | $as_echo "no: using ${default_max}" >&6; } | ||
13299 | |||
13300 | fi | ||
13301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13302 | |||
13303 | ac_ext=c | ||
13304 | ac_cpp='$CPP $CPPFLAGS' | ||
13305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13308 | |||
13309 | |||
13310 | |||
13311 | |||
13312 | ### Checks for types | ||
13313 | |||
13314 | |||
13315 | ### Checks for structures | ||
13316 | |||
13317 | |||
13318 | ### Checks for compiler characteristics | ||
13319 | if test "x$CC" != xcc; then | ||
13320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | ||
13321 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | ||
13322 | else | ||
13323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | ||
13324 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | ||
13325 | fi | ||
13326 | set dummy $CC; ac_cc=`$as_echo "$2" | | ||
13327 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | ||
13328 | if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then : | ||
13329 | $as_echo_n "(cached) " >&6 | ||
13330 | else | ||
13331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13332 | /* end confdefs.h. */ | ||
13333 | |||
13334 | int | ||
13335 | main () | ||
13336 | { | ||
13337 | |||
13338 | ; | ||
13339 | return 0; | ||
13340 | } | ||
13341 | _ACEOF | ||
13342 | # Make sure it works both with $CC and with simple cc. | ||
13343 | # We do the test twice because some compilers refuse to overwrite an | ||
13344 | # existing .o file with -o, though they will create one. | ||
13345 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | ||
13346 | rm -f conftest2.* | ||
13347 | if { { case "(($ac_try" in | ||
13348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13349 | *) ac_try_echo=$ac_try;; | ||
13350 | esac | ||
13351 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
13352 | $as_echo "$ac_try_echo"; } >&5 | ||
13353 | (eval "$ac_try") 2>&5 | ||
13354 | ac_status=$? | ||
13355 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13356 | test $ac_status = 0; } && | ||
13357 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | ||
13358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13359 | *) ac_try_echo=$ac_try;; | ||
13360 | esac | ||
13361 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
13362 | $as_echo "$ac_try_echo"; } >&5 | ||
13363 | (eval "$ac_try") 2>&5 | ||
13364 | ac_status=$? | ||
13365 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13366 | test $ac_status = 0; }; | ||
13367 | then | ||
13368 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | ||
13369 | if test "x$CC" != xcc; then | ||
13370 | # Test first that cc exists at all. | ||
13371 | if { ac_try='cc -c conftest.$ac_ext >&5' | ||
13372 | { { case "(($ac_try" in | ||
13373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13374 | *) ac_try_echo=$ac_try;; | ||
13375 | esac | ||
13376 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
13377 | $as_echo "$ac_try_echo"; } >&5 | ||
13378 | (eval "$ac_try") 2>&5 | ||
13379 | ac_status=$? | ||
13380 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13381 | test $ac_status = 0; }; }; then | ||
13382 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | ||
13383 | rm -f conftest2.* | ||
13384 | if { { case "(($ac_try" in | ||
13385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13386 | *) ac_try_echo=$ac_try;; | ||
13387 | esac | ||
13388 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
13389 | $as_echo "$ac_try_echo"; } >&5 | ||
13390 | (eval "$ac_try") 2>&5 | ||
13391 | ac_status=$? | ||
13392 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13393 | test $ac_status = 0; } && | ||
13394 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | ||
13395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13396 | *) ac_try_echo=$ac_try;; | ||
13397 | esac | ||
13398 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
13399 | $as_echo "$ac_try_echo"; } >&5 | ||
13400 | (eval "$ac_try") 2>&5 | ||
13401 | ac_status=$? | ||
13402 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13403 | test $ac_status = 0; }; | ||
13404 | then | ||
13405 | # cc works too. | ||
13406 | : | ||
13407 | else | ||
13408 | # cc exists but doesn't like -o. | ||
13409 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | ||
13410 | fi | ||
13411 | fi | ||
13412 | fi | ||
13413 | else | ||
13414 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | ||
13415 | fi | ||
13416 | rm -f core conftest* | ||
13417 | |||
13418 | fi | ||
13419 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | ||
13420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13421 | $as_echo "yes" >&6; } | ||
13422 | else | ||
13423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13424 | $as_echo "no" >&6; } | ||
13425 | |||
13426 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | ||
13427 | |||
13428 | fi | ||
13429 | |||
13430 | # FIXME: we rely on the cache variable name because | ||
13431 | # there is no other way. | ||
13432 | set dummy $CC | ||
13433 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | ||
13434 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | ||
13435 | if test "$am_t" != yes; then | ||
13436 | # Losing compiler, so override with the script. | ||
13437 | # FIXME: It is wrong to rewrite CC. | ||
13438 | # But if we don't then we get into trouble of one sort or another. | ||
13439 | # A longer-term fix would be to have automake use am__CC in this case, | ||
13440 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | ||
13441 | CC="$am_aux_dir/compile $CC" | ||
13442 | fi | ||
13443 | |||
13444 | |||
13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | ||
13446 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||
13447 | if test "${ac_cv_c_const+set}" = set; then : | ||
13448 | $as_echo_n "(cached) " >&6 | ||
13449 | else | ||
13450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13451 | /* end confdefs.h. */ | ||
13452 | |||
13453 | int | ||
13454 | main () | ||
13455 | { | ||
13456 | /* FIXME: Include the comments suggested by Paul. */ | ||
13457 | #ifndef __cplusplus | ||
13458 | /* Ultrix mips cc rejects this. */ | ||
13459 | typedef int charset[2]; | ||
13460 | const charset cs; | ||
13461 | /* SunOS 4.1.1 cc rejects this. */ | ||
13462 | char const *const *pcpcc; | ||
13463 | char **ppc; | ||
13464 | /* NEC SVR4.0.2 mips cc rejects this. */ | ||
13465 | struct point {int x, y;}; | ||
13466 | static struct point const zero = {0,0}; | ||
13467 | /* AIX XL C 1.02.0.0 rejects this. | ||
13468 | It does not let you subtract one const X* pointer from another in | ||
13469 | an arm of an if-expression whose if-part is not a constant | ||
13470 | expression */ | ||
13471 | const char *g = "string"; | ||
13472 | pcpcc = &g + (g ? g-g : 0); | ||
13473 | /* HPUX 7.0 cc rejects these. */ | ||
13474 | ++pcpcc; | ||
13475 | ppc = (char**) pcpcc; | ||
13476 | pcpcc = (char const *const *) ppc; | ||
13477 | { /* SCO 3.2v4 cc rejects this. */ | ||
13478 | char *t; | ||
13479 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
13480 | |||
13481 | *t++ = 0; | ||
13482 | if (s) return 0; | ||
13483 | } | ||
13484 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
13485 | int x[] = {25, 17}; | ||
13486 | const int *foo = &x[0]; | ||
13487 | ++foo; | ||
13488 | } | ||
13489 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
13490 | typedef const int *iptr; | ||
13491 | iptr p = 0; | ||
13492 | ++p; | ||
13493 | } | ||
13494 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
13495 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
13496 | struct s { int j; const int *ap[3]; }; | ||
13497 | struct s *b; b->j = 5; | ||
13498 | } | ||
13499 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
13500 | const int foo = 10; | ||
13501 | if (!foo) return 0; | ||
13502 | } | ||
13503 | return !cs[0] && !zero.x; | ||
13504 | #endif | ||
13505 | |||
13506 | ; | ||
13507 | return 0; | ||
13508 | } | ||
13509 | _ACEOF | ||
13510 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13511 | ac_cv_c_const=yes | ||
13512 | else | ||
13513 | ac_cv_c_const=no | ||
13514 | fi | ||
13515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13516 | fi | ||
13517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | ||
13518 | $as_echo "$ac_cv_c_const" >&6; } | ||
13519 | if test $ac_cv_c_const = no; then | ||
13520 | |||
13521 | $as_echo "#define const /**/" >>confdefs.h | ||
13522 | |||
13523 | fi | ||
13524 | |||
13525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
13526 | $as_echo_n "checking for inline... " >&6; } | ||
13527 | if test "${ac_cv_c_inline+set}" = set; then : | ||
13528 | $as_echo_n "(cached) " >&6 | ||
13529 | else | ||
13530 | ac_cv_c_inline=no | ||
13531 | for ac_kw in inline __inline__ __inline; do | ||
13532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13533 | /* end confdefs.h. */ | ||
13534 | #ifndef __cplusplus | ||
13535 | typedef int foo_t; | ||
13536 | static $ac_kw foo_t static_foo () {return 0; } | ||
13537 | $ac_kw foo_t foo () {return 0; } | ||
13538 | #endif | ||
13539 | |||
13540 | _ACEOF | ||
13541 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13542 | ac_cv_c_inline=$ac_kw | ||
13543 | fi | ||
13544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13545 | test "$ac_cv_c_inline" != no && break | ||
13546 | done | ||
13547 | |||
13548 | fi | ||
13549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
13550 | $as_echo "$ac_cv_c_inline" >&6; } | ||
13551 | |||
13552 | case $ac_cv_c_inline in | ||
13553 | inline | yes) ;; | ||
13554 | *) | ||
13555 | case $ac_cv_c_inline in | ||
13556 | no) ac_val=;; | ||
13557 | *) ac_val=$ac_cv_c_inline;; | ||
13558 | esac | ||
13559 | cat >>confdefs.h <<_ACEOF | ||
13560 | #ifndef __cplusplus | ||
13561 | #define inline $ac_val | ||
13562 | #endif | ||
13563 | _ACEOF | ||
13564 | ;; | ||
13565 | esac | ||
13566 | |||
13567 | case $ac_cv_prog_cc_stdc in #( | ||
13568 | no) : | ||
13569 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( | ||
13570 | *) : | ||
13571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | ||
13572 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | ||
13573 | if test "${ac_cv_prog_cc_c99+set}" = set; then : | ||
13574 | $as_echo_n "(cached) " >&6 | ||
13575 | else | ||
13576 | ac_cv_prog_cc_c99=no | ||
13577 | ac_save_CC=$CC | ||
13578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13579 | /* end confdefs.h. */ | ||
13580 | #include <stdarg.h> | ||
13581 | #include <stdbool.h> | ||
13582 | #include <stdlib.h> | ||
13583 | #include <wchar.h> | ||
13584 | #include <stdio.h> | ||
13585 | |||
13586 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | ||
13587 | #define debug(...) fprintf (stderr, __VA_ARGS__) | ||
13588 | #define showlist(...) puts (#__VA_ARGS__) | ||
13589 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | ||
13590 | static void | ||
13591 | test_varargs_macros (void) | ||
13592 | { | ||
13593 | int x = 1234; | ||
13594 | int y = 5678; | ||
13595 | debug ("Flag"); | ||
13596 | debug ("X = %d\n", x); | ||
13597 | showlist (The first, second, and third items.); | ||
13598 | report (x>y, "x is %d but y is %d", x, y); | ||
13599 | } | ||
13600 | |||
13601 | // Check long long types. | ||
13602 | #define BIG64 18446744073709551615ull | ||
13603 | #define BIG32 4294967295ul | ||
13604 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | ||
13605 | #if !BIG_OK | ||
13606 | your preprocessor is broken; | ||
13607 | #endif | ||
13608 | #if BIG_OK | ||
13609 | #else | ||
13610 | your preprocessor is broken; | ||
13611 | #endif | ||
13612 | static long long int bignum = -9223372036854775807LL; | ||
13613 | static unsigned long long int ubignum = BIG64; | ||
13614 | |||
13615 | struct incomplete_array | ||
13616 | { | ||
13617 | int datasize; | ||
13618 | double data[]; | ||
13619 | }; | ||
13620 | |||
13621 | struct named_init { | ||
13622 | int number; | ||
13623 | const wchar_t *name; | ||
13624 | double average; | ||
13625 | }; | ||
13626 | |||
13627 | typedef const char *ccp; | ||
13628 | |||
13629 | static inline int | ||
13630 | test_restrict (ccp restrict text) | ||
13631 | { | ||
13632 | // See if C++-style comments work. | ||
13633 | // Iterate through items via the restricted pointer. | ||
13634 | // Also check for declarations in for loops. | ||
13635 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | ||
13636 | continue; | ||
13637 | return 0; | ||
13638 | } | ||
13639 | |||
13640 | // Check varargs and va_copy. | ||
13641 | static void | ||
13642 | test_varargs (const char *format, ...) | ||
13643 | { | ||
13644 | va_list args; | ||
13645 | va_start (args, format); | ||
13646 | va_list args_copy; | ||
13647 | va_copy (args_copy, args); | ||
13648 | |||
13649 | const char *str; | ||
13650 | int number; | ||
13651 | float fnumber; | ||
13652 | |||
13653 | while (*format) | ||
13654 | { | ||
13655 | switch (*format++) | ||
13656 | { | ||
13657 | case 's': // string | ||
13658 | str = va_arg (args_copy, const char *); | ||
13659 | break; | ||
13660 | case 'd': // int | ||
13661 | number = va_arg (args_copy, int); | ||
13662 | break; | ||
13663 | case 'f': // float | ||
13664 | fnumber = va_arg (args_copy, double); | ||
13665 | break; | ||
13666 | default: | ||
13667 | break; | ||
13668 | } | ||
13669 | } | ||
13670 | va_end (args_copy); | ||
13671 | va_end (args); | ||
13672 | } | ||
13673 | |||
13674 | int | ||
13675 | main () | ||
13676 | { | ||
13677 | |||
13678 | // Check bool. | ||
13679 | _Bool success = false; | ||
13680 | |||
13681 | // Check restrict. | ||
13682 | if (test_restrict ("String literal") == 0) | ||
13683 | success = true; | ||
13684 | char *restrict newvar = "Another string"; | ||
13685 | |||
13686 | // Check varargs. | ||
13687 | test_varargs ("s, d' f .", "string", 65, 34.234); | ||
13688 | test_varargs_macros (); | ||
13689 | |||
13690 | // Check flexible array members. | ||
13691 | struct incomplete_array *ia = | ||
13692 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | ||
13693 | ia->datasize = 10; | ||
13694 | for (int i = 0; i < ia->datasize; ++i) | ||
13695 | ia->data[i] = i * 1.234; | ||
13696 | |||
13697 | // Check named initializers. | ||
13698 | struct named_init ni = { | ||
13699 | .number = 34, | ||
13700 | .name = L"Test wide string", | ||
13701 | .average = 543.34343, | ||
13702 | }; | ||
13703 | |||
13704 | ni.number = 58; | ||
13705 | |||
13706 | int dynamic_array[ni.number]; | ||
13707 | dynamic_array[ni.number - 1] = 543; | ||
13708 | |||
13709 | // work around unused variable warnings | ||
13710 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | ||
13711 | || dynamic_array[ni.number - 1] != 543); | ||
13712 | |||
13713 | ; | ||
13714 | return 0; | ||
13715 | } | ||
13716 | _ACEOF | ||
13717 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | ||
13718 | do | ||
13719 | CC="$ac_save_CC $ac_arg" | ||
13720 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13721 | ac_cv_prog_cc_c99=$ac_arg | ||
13722 | fi | ||
13723 | rm -f core conftest.err conftest.$ac_objext | ||
13724 | test "x$ac_cv_prog_cc_c99" != "xno" && break | ||
13725 | done | ||
13726 | rm -f conftest.$ac_ext | ||
13727 | CC=$ac_save_CC | ||
13728 | |||
13729 | fi | ||
13730 | # AC_CACHE_VAL | ||
13731 | case "x$ac_cv_prog_cc_c99" in | ||
13732 | x) | ||
13733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
13734 | $as_echo "none needed" >&6; } ;; | ||
13735 | xno) | ||
13736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
13737 | $as_echo "unsupported" >&6; } ;; | ||
13738 | *) | ||
13739 | CC="$CC $ac_cv_prog_cc_c99" | ||
13740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | ||
13741 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | ||
13742 | esac | ||
13743 | if test "x$ac_cv_prog_cc_c99" != xno; then : | ||
13744 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | ||
13745 | else | ||
13746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
13747 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
13748 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
13749 | $as_echo_n "(cached) " >&6 | ||
13750 | else | ||
13751 | ac_cv_prog_cc_c89=no | ||
13752 | ac_save_CC=$CC | ||
13753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13754 | /* end confdefs.h. */ | ||
13755 | #include <stdarg.h> | ||
13756 | #include <stdio.h> | ||
13757 | #include <sys/types.h> | ||
13758 | #include <sys/stat.h> | ||
13759 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
13760 | struct buf { int x; }; | ||
13761 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
13762 | static char *e (p, i) | ||
13763 | char **p; | ||
13764 | int i; | ||
13765 | { | ||
13766 | return p[i]; | ||
13767 | } | ||
13768 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
13769 | { | ||
13770 | char *s; | ||
13771 | va_list v; | ||
13772 | va_start (v,p); | ||
13773 | s = g (p, va_arg (v,int)); | ||
13774 | va_end (v); | ||
13775 | return s; | ||
13776 | } | ||
13777 | |||
13778 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
13779 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
13780 | These don't provoke an error unfortunately, instead are silently treated | ||
13781 | as 'x'. The following induces an error, until -std is added to get | ||
13782 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
13783 | array size at least. It's necessary to write '\x00'==0 to get something | ||
13784 | that's true only with -std. */ | ||
13785 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
13786 | |||
13787 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
13788 | inside strings and character constants. */ | ||
13789 | #define FOO(x) 'x' | ||
13790 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
13791 | |||
13792 | int test (int i, double x); | ||
13793 | struct s1 {int (*f) (int a);}; | ||
13794 | struct s2 {int (*f) (double a);}; | ||
13795 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
13796 | int argc; | ||
13797 | char **argv; | ||
13798 | int | ||
13799 | main () | ||
13800 | { | ||
13801 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
13802 | ; | ||
13803 | return 0; | ||
13804 | } | ||
13805 | _ACEOF | ||
13806 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
13807 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
13808 | do | ||
13809 | CC="$ac_save_CC $ac_arg" | ||
13810 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13811 | ac_cv_prog_cc_c89=$ac_arg | ||
13812 | fi | ||
13813 | rm -f core conftest.err conftest.$ac_objext | ||
13814 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
13815 | done | ||
13816 | rm -f conftest.$ac_ext | ||
13817 | CC=$ac_save_CC | ||
13818 | |||
13819 | fi | ||
13820 | # AC_CACHE_VAL | ||
13821 | case "x$ac_cv_prog_cc_c89" in | ||
13822 | x) | ||
13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
13824 | $as_echo "none needed" >&6; } ;; | ||
13825 | xno) | ||
13826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
13827 | $as_echo "unsupported" >&6; } ;; | ||
13828 | *) | ||
13829 | CC="$CC $ac_cv_prog_cc_c89" | ||
13830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
13831 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
13832 | esac | ||
13833 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
13834 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | ||
13835 | else | ||
13836 | ac_cv_prog_cc_stdc=no | ||
13837 | fi | ||
13838 | |||
13839 | fi | ||
13840 | ;; | ||
13841 | esac | ||
13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 | ||
13843 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } | ||
13844 | if test "${ac_cv_prog_cc_stdc+set}" = set; then : | ||
13845 | $as_echo_n "(cached) " >&6 | ||
13846 | fi | ||
13847 | |||
13848 | case $ac_cv_prog_cc_stdc in #( | ||
13849 | no) : | ||
13850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
13851 | $as_echo "unsupported" >&6; } ;; #( | ||
13852 | '') : | ||
13853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
13854 | $as_echo "none needed" >&6; } ;; #( | ||
13855 | *) : | ||
13856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 | ||
13857 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; | ||
13858 | esac | ||
13859 | |||
13860 | |||
13861 | |||
13862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 | ||
13863 | $as_echo_n "checking for __attribute__... " >&6; } | ||
13864 | |||
13865 | if test "${ac_cv___attribute__+set}" = set; then : | ||
13866 | $as_echo_n "(cached) " >&6 | ||
13867 | else | ||
13868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13869 | /* end confdefs.h. */ | ||
13870 | |||
13871 | #include <stdlib.h> | ||
13872 | |||
13873 | int func(int x); | ||
13874 | int foo(int x __attribute__ ((unused))) | ||
13875 | { | ||
13876 | exit(1); | ||
13877 | } | ||
13878 | |||
13879 | int | ||
13880 | main () | ||
13881 | { | ||
13882 | |||
13883 | ; | ||
13884 | return 0; | ||
13885 | } | ||
13886 | _ACEOF | ||
13887 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13888 | ac_cv___attribute__="yes" | ||
13889 | else | ||
13890 | ac_cv___attribute__="no" | ||
13891 | |||
13892 | fi | ||
13893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13894 | fi | ||
13895 | |||
13896 | |||
13897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 | ||
13898 | $as_echo "$ac_cv___attribute__" >&6; } | ||
13899 | |||
13900 | if test "x${ac_cv___attribute__}" = "xyes" ; then | ||
13901 | |||
13902 | $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h | ||
13903 | |||
13904 | |||
13905 | $as_echo "#define __UNUSED__ __attribute__((unused))" >>confdefs.h | ||
13906 | |||
13907 | else | ||
13908 | |||
13909 | $as_echo "#define __UNUSED__ /**/" >>confdefs.h | ||
13910 | |||
13911 | fi | ||
13912 | |||
13913 | |||
13914 | |||
13915 | # Check whether the null pointer is zero on this arch | ||
13916 | if test "$cross_compiling" = yes; then : | ||
13917 | |||
13918 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot check when cross-compiling -- assuming null is okay" >&5 | ||
13919 | $as_echo "$as_me: WARNING: Cannot check when cross-compiling -- assuming null is okay" >&2;} | ||
13920 | have_null="yes" | ||
13921 | |||
13922 | else | ||
13923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13924 | /* end confdefs.h. */ | ||
13925 | |||
13926 | #include <stdlib.h> | ||
13927 | #include <inttypes.h> | ||
13928 | int main (int argc, char **argv) { | ||
13929 | void *foo = NULL; | ||
13930 | uintptr_t bar = (uintptr_t)foo; | ||
13931 | return (uintptr_t)foo; | ||
13932 | } | ||
13933 | |||
13934 | _ACEOF | ||
13935 | if ac_fn_c_try_run "$LINENO"; then : | ||
13936 | have_null="yes" | ||
13937 | else | ||
13938 | have_null="no" | ||
13939 | fi | ||
13940 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13941 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13942 | fi | ||
13943 | |||
13944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of the null pointer" >&5 | ||
13945 | $as_echo_n "checking value of the null pointer... " >&6; } | ||
13946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_null}" >&5 | ||
13947 | $as_echo "${have_null}" >&6; } | ||
13948 | |||
13949 | if test ! "x${have_null}" = "xyes" ; then | ||
13950 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your system is a bit too funny, eet might not work properly" >&5 | ||
13951 | $as_echo "$as_me: WARNING: Your system is a bit too funny, eet might not work properly" >&2;} | ||
13952 | fi | ||
13953 | |||
13954 | # These are needed for fmemopen/open_memstream | ||
13955 | |||
13956 | $as_echo "#define _GNU_SOURCE /**/" >>confdefs.h | ||
13957 | |||
13958 | |||
13959 | EET_CPPFLAGS="" | ||
13960 | EET_CFLAGS="" | ||
13961 | case "$host_os" in | ||
13962 | mingw32ce*) | ||
13963 | EET_CPPFLAGS="-D_WIN32_WCE=0x0420" | ||
13964 | ;; | ||
13965 | mingw*) | ||
13966 | EET_CPPFLAGS="-D_WIN32_WINNT=0x0501" | ||
13967 | ;; | ||
13968 | esac | ||
13969 | |||
13970 | |||
13971 | |||
13972 | |||
13973 | ### Checks for linker characteristics | ||
13974 | |||
13975 | # use --enable-auto-import on Windows | ||
13976 | |||
13977 | lt_enable_auto_import="" | ||
13978 | case "$host_os" in | ||
13979 | mingw*) | ||
13980 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
13981 | ;; | ||
13982 | esac | ||
13983 | |||
13984 | |||
13985 | case "${host_os}" in | ||
13986 | openbsd*) | ||
13987 | ;; | ||
13988 | *) | ||
13989 | |||
13990 | |||
13991 | CFLAGS_save="${CFLAGS}" | ||
13992 | CFLAGS="${CFLAGS} -Wl,--as-needed" | ||
13993 | |||
13994 | ac_ext=c | ||
13995 | ac_cpp='$CPP $CPPFLAGS' | ||
13996 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13997 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13998 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13999 | |||
14000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--as-needed" >&5 | ||
14001 | $as_echo_n "checking whether the compiler supports -Wl,--as-needed... " >&6; } | ||
14002 | |||
14003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14004 | /* end confdefs.h. */ | ||
14005 | |||
14006 | int | ||
14007 | main () | ||
14008 | { | ||
14009 | |||
14010 | ; | ||
14011 | return 0; | ||
14012 | } | ||
14013 | _ACEOF | ||
14014 | if ac_fn_c_try_link "$LINENO"; then : | ||
14015 | have_flag="yes" | ||
14016 | else | ||
14017 | have_flag="no" | ||
14018 | fi | ||
14019 | rm -f core conftest.err conftest.$ac_objext \ | ||
14020 | conftest$ac_exeext conftest.$ac_ext | ||
14021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5 | ||
14022 | $as_echo "${have_flag}" >&6; } | ||
14023 | |||
14024 | if test "x${have_flag}" = "xno" ; then | ||
14025 | CFLAGS="${CFLAGS_save}" | ||
14026 | fi | ||
14027 | ac_ext=c | ||
14028 | ac_cpp='$CPP $CPPFLAGS' | ||
14029 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
14030 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
14031 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
14032 | |||
14033 | |||
14034 | |||
14035 | ;; | ||
14036 | esac | ||
14037 | |||
14038 | |||
14039 | ### Checks for library functions | ||
14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 | ||
14041 | $as_echo_n "checking for library containing strerror... " >&6; } | ||
14042 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
14043 | $as_echo_n "(cached) " >&6 | ||
14044 | else | ||
14045 | ac_func_search_save_LIBS=$LIBS | ||
14046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14047 | /* end confdefs.h. */ | ||
14048 | |||
14049 | /* Override any GCC internal prototype to avoid an error. | ||
14050 | Use char because int might match the return type of a GCC | ||
14051 | builtin and then its argument prototype would still apply. */ | ||
14052 | #ifdef __cplusplus | ||
14053 | extern "C" | ||
14054 | #endif | ||
14055 | char strerror (); | ||
14056 | int | ||
14057 | main () | ||
14058 | { | ||
14059 | return strerror (); | ||
14060 | ; | ||
14061 | return 0; | ||
14062 | } | ||
14063 | _ACEOF | ||
14064 | for ac_lib in '' cposix; do | ||
14065 | if test -z "$ac_lib"; then | ||
14066 | ac_res="none required" | ||
14067 | else | ||
14068 | ac_res=-l$ac_lib | ||
14069 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14070 | fi | ||
14071 | if ac_fn_c_try_link "$LINENO"; then : | ||
14072 | ac_cv_search_strerror=$ac_res | ||
14073 | fi | ||
14074 | rm -f core conftest.err conftest.$ac_objext \ | ||
14075 | conftest$ac_exeext | ||
14076 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
14077 | break | ||
14078 | fi | ||
14079 | done | ||
14080 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
14081 | |||
14082 | else | ||
14083 | ac_cv_search_strerror=no | ||
14084 | fi | ||
14085 | rm conftest.$ac_ext | ||
14086 | LIBS=$ac_func_search_save_LIBS | ||
14087 | fi | ||
14088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | ||
14089 | $as_echo "$ac_cv_search_strerror" >&6; } | ||
14090 | ac_res=$ac_cv_search_strerror | ||
14091 | if test "$ac_res" != no; then : | ||
14092 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14093 | |||
14094 | fi | ||
14095 | |||
14096 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | ||
14097 | # for constant arguments. Useless! | ||
14098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | ||
14099 | $as_echo_n "checking for working alloca.h... " >&6; } | ||
14100 | if test "${ac_cv_working_alloca_h+set}" = set; then : | ||
14101 | $as_echo_n "(cached) " >&6 | ||
14102 | else | ||
14103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14104 | /* end confdefs.h. */ | ||
14105 | #include <alloca.h> | ||
14106 | int | ||
14107 | main () | ||
14108 | { | ||
14109 | char *p = (char *) alloca (2 * sizeof (int)); | ||
14110 | if (p) return 0; | ||
14111 | ; | ||
14112 | return 0; | ||
14113 | } | ||
14114 | _ACEOF | ||
14115 | if ac_fn_c_try_link "$LINENO"; then : | ||
14116 | ac_cv_working_alloca_h=yes | ||
14117 | else | ||
14118 | ac_cv_working_alloca_h=no | ||
14119 | fi | ||
14120 | rm -f core conftest.err conftest.$ac_objext \ | ||
14121 | conftest$ac_exeext conftest.$ac_ext | ||
14122 | fi | ||
14123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | ||
14124 | $as_echo "$ac_cv_working_alloca_h" >&6; } | ||
14125 | if test $ac_cv_working_alloca_h = yes; then | ||
14126 | |||
14127 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | ||
14128 | |||
14129 | fi | ||
14130 | |||
14131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | ||
14132 | $as_echo_n "checking for alloca... " >&6; } | ||
14133 | if test "${ac_cv_func_alloca_works+set}" = set; then : | ||
14134 | $as_echo_n "(cached) " >&6 | ||
14135 | else | ||
14136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14137 | /* end confdefs.h. */ | ||
14138 | #ifdef __GNUC__ | ||
14139 | # define alloca __builtin_alloca | ||
14140 | #else | ||
14141 | # ifdef _MSC_VER | ||
14142 | # include <malloc.h> | ||
14143 | # define alloca _alloca | ||
14144 | # else | ||
14145 | # ifdef HAVE_ALLOCA_H | ||
14146 | # include <alloca.h> | ||
14147 | # else | ||
14148 | # ifdef _AIX | ||
14149 | #pragma alloca | ||
14150 | # else | ||
14151 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | ||
14152 | char *alloca (); | ||
14153 | # endif | ||
14154 | # endif | ||
14155 | # endif | ||
14156 | # endif | ||
14157 | #endif | ||
14158 | |||
14159 | int | ||
14160 | main () | ||
14161 | { | ||
14162 | char *p = (char *) alloca (1); | ||
14163 | if (p) return 0; | ||
14164 | ; | ||
14165 | return 0; | ||
14166 | } | ||
14167 | _ACEOF | ||
14168 | if ac_fn_c_try_link "$LINENO"; then : | ||
14169 | ac_cv_func_alloca_works=yes | ||
14170 | else | ||
14171 | ac_cv_func_alloca_works=no | ||
14172 | fi | ||
14173 | rm -f core conftest.err conftest.$ac_objext \ | ||
14174 | conftest$ac_exeext conftest.$ac_ext | ||
14175 | fi | ||
14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | ||
14177 | $as_echo "$ac_cv_func_alloca_works" >&6; } | ||
14178 | |||
14179 | if test $ac_cv_func_alloca_works = yes; then | ||
14180 | |||
14181 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | ||
14182 | |||
14183 | else | ||
14184 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | ||
14185 | # that cause trouble. Some versions do not even contain alloca or | ||
14186 | # contain a buggy version. If you still want to use their alloca, | ||
14187 | # use ar to extract alloca.o from them instead of compiling alloca.c. | ||
14188 | |||
14189 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | ||
14190 | |||
14191 | $as_echo "#define C_ALLOCA 1" >>confdefs.h | ||
14192 | |||
14193 | |||
14194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | ||
14195 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | ||
14196 | if test "${ac_cv_os_cray+set}" = set; then : | ||
14197 | $as_echo_n "(cached) " >&6 | ||
14198 | else | ||
14199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14200 | /* end confdefs.h. */ | ||
14201 | #if defined CRAY && ! defined CRAY2 | ||
14202 | webecray | ||
14203 | #else | ||
14204 | wenotbecray | ||
14205 | #endif | ||
14206 | |||
14207 | _ACEOF | ||
14208 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14209 | $EGREP "webecray" >/dev/null 2>&1; then : | ||
14210 | ac_cv_os_cray=yes | ||
14211 | else | ||
14212 | ac_cv_os_cray=no | ||
14213 | fi | ||
14214 | rm -f conftest* | ||
14215 | |||
14216 | fi | ||
14217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | ||
14218 | $as_echo "$ac_cv_os_cray" >&6; } | ||
14219 | if test $ac_cv_os_cray = yes; then | ||
14220 | for ac_func in _getb67 GETB67 getb67; do | ||
14221 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14222 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
14223 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
14224 | |||
14225 | cat >>confdefs.h <<_ACEOF | ||
14226 | #define CRAY_STACKSEG_END $ac_func | ||
14227 | _ACEOF | ||
14228 | |||
14229 | break | ||
14230 | fi | ||
14231 | |||
14232 | done | ||
14233 | fi | ||
14234 | |||
14235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | ||
14236 | $as_echo_n "checking stack direction for C alloca... " >&6; } | ||
14237 | if test "${ac_cv_c_stack_direction+set}" = set; then : | ||
14238 | $as_echo_n "(cached) " >&6 | ||
14239 | else | ||
14240 | if test "$cross_compiling" = yes; then : | ||
14241 | ac_cv_c_stack_direction=0 | ||
14242 | else | ||
14243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14244 | /* end confdefs.h. */ | ||
14245 | $ac_includes_default | ||
14246 | int | ||
14247 | find_stack_direction () | ||
14248 | { | ||
14249 | static char *addr = 0; | ||
14250 | auto char dummy; | ||
14251 | if (addr == 0) | ||
14252 | { | ||
14253 | addr = &dummy; | ||
14254 | return find_stack_direction (); | ||
14255 | } | ||
14256 | else | ||
14257 | return (&dummy > addr) ? 1 : -1; | ||
14258 | } | ||
14259 | |||
14260 | int | ||
14261 | main () | ||
14262 | { | ||
14263 | return find_stack_direction () < 0; | ||
14264 | } | ||
14265 | _ACEOF | ||
14266 | if ac_fn_c_try_run "$LINENO"; then : | ||
14267 | ac_cv_c_stack_direction=1 | ||
14268 | else | ||
14269 | ac_cv_c_stack_direction=-1 | ||
14270 | fi | ||
14271 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
14272 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
14273 | fi | ||
14274 | |||
14275 | fi | ||
14276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | ||
14277 | $as_echo "$ac_cv_c_stack_direction" >&6; } | ||
14278 | cat >>confdefs.h <<_ACEOF | ||
14279 | #define STACK_DIRECTION $ac_cv_c_stack_direction | ||
14280 | _ACEOF | ||
14281 | |||
14282 | |||
14283 | fi | ||
14284 | |||
14285 | |||
14286 | for ac_func in fmemopen open_memstream realpath | ||
14287 | do : | ||
14288 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14289 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
14290 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
14291 | cat >>confdefs.h <<_ACEOF | ||
14292 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14293 | _ACEOF | ||
14294 | |||
14295 | fi | ||
14296 | done | ||
14297 | |||
14298 | |||
14299 | |||
14300 | |||
14301 | ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" | ||
14302 | if test "x$ac_cv_header_fnmatch_h" = x""yes; then : | ||
14303 | _efl_have_fnmatch="yes" | ||
14304 | else | ||
14305 | _efl_have_fnmatch="no" | ||
14306 | fi | ||
14307 | |||
14308 | |||
14309 | |||
14310 | if test "x${_efl_have_fnmatch}" = "xyes" ; then | ||
14311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fnmatch" >&5 | ||
14312 | $as_echo_n "checking for library containing fnmatch... " >&6; } | ||
14313 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
14314 | $as_echo_n "(cached) " >&6 | ||
14315 | else | ||
14316 | ac_func_search_save_LIBS=$LIBS | ||
14317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14318 | /* end confdefs.h. */ | ||
14319 | |||
14320 | /* Override any GCC internal prototype to avoid an error. | ||
14321 | Use char because int might match the return type of a GCC | ||
14322 | builtin and then its argument prototype would still apply. */ | ||
14323 | #ifdef __cplusplus | ||
14324 | extern "C" | ||
14325 | #endif | ||
14326 | char fnmatch (); | ||
14327 | int | ||
14328 | main () | ||
14329 | { | ||
14330 | return fnmatch (); | ||
14331 | ; | ||
14332 | return 0; | ||
14333 | } | ||
14334 | _ACEOF | ||
14335 | for ac_lib in '' fnmatch evil iberty; do | ||
14336 | if test -z "$ac_lib"; then | ||
14337 | ac_res="none required" | ||
14338 | else | ||
14339 | ac_res=-l$ac_lib | ||
14340 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14341 | fi | ||
14342 | if ac_fn_c_try_link "$LINENO"; then : | ||
14343 | ac_cv_search_fnmatch=$ac_res | ||
14344 | fi | ||
14345 | rm -f core conftest.err conftest.$ac_objext \ | ||
14346 | conftest$ac_exeext | ||
14347 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
14348 | break | ||
14349 | fi | ||
14350 | done | ||
14351 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
14352 | |||
14353 | else | ||
14354 | ac_cv_search_fnmatch=no | ||
14355 | fi | ||
14356 | rm conftest.$ac_ext | ||
14357 | LIBS=$ac_func_search_save_LIBS | ||
14358 | fi | ||
14359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fnmatch" >&5 | ||
14360 | $as_echo "$ac_cv_search_fnmatch" >&6; } | ||
14361 | ac_res=$ac_cv_search_fnmatch | ||
14362 | if test "$ac_res" != no; then : | ||
14363 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14364 | _efl_have_fnmatch="yes" | ||
14365 | else | ||
14366 | _efl_have_fnmatch="no" | ||
14367 | fi | ||
14368 | |||
14369 | fi | ||
14370 | |||
14371 | EFL_FNMATCH_LIBS="" | ||
14372 | |||
14373 | 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 | ||
14374 | EFL_FNMATCH_LIBS=${ac_cv_search_fnmatch} | ||
14375 | fi | ||
14376 | |||
14377 | if test "x${_efl_have_fnmatch}" != "xyes" -a "x${enable_exotic}" = "xyes"; then | ||
14378 | LDFLAGS_SAVE="$LDFLAGS" | ||
14379 | LDFLAGS="$LDFLAGS $EXOTIC_LIBS" | ||
14380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fnmatch in -lexotic" >&5 | ||
14381 | $as_echo_n "checking for fnmatch in -lexotic... " >&6; } | ||
14382 | if test "${ac_cv_lib_exotic_fnmatch+set}" = set; then : | ||
14383 | $as_echo_n "(cached) " >&6 | ||
14384 | else | ||
14385 | ac_check_lib_save_LIBS=$LIBS | ||
14386 | LIBS="-lexotic $LIBS" | ||
14387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14388 | /* end confdefs.h. */ | ||
14389 | |||
14390 | /* Override any GCC internal prototype to avoid an error. | ||
14391 | Use char because int might match the return type of a GCC | ||
14392 | builtin and then its argument prototype would still apply. */ | ||
14393 | #ifdef __cplusplus | ||
14394 | extern "C" | ||
14395 | #endif | ||
14396 | char fnmatch (); | ||
14397 | int | ||
14398 | main () | ||
14399 | { | ||
14400 | return fnmatch (); | ||
14401 | ; | ||
14402 | return 0; | ||
14403 | } | ||
14404 | _ACEOF | ||
14405 | if ac_fn_c_try_link "$LINENO"; then : | ||
14406 | ac_cv_lib_exotic_fnmatch=yes | ||
14407 | else | ||
14408 | ac_cv_lib_exotic_fnmatch=no | ||
14409 | fi | ||
14410 | rm -f core conftest.err conftest.$ac_objext \ | ||
14411 | conftest$ac_exeext conftest.$ac_ext | ||
14412 | LIBS=$ac_check_lib_save_LIBS | ||
14413 | fi | ||
14414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_exotic_fnmatch" >&5 | ||
14415 | $as_echo "$ac_cv_lib_exotic_fnmatch" >&6; } | ||
14416 | if test "x$ac_cv_lib_exotic_fnmatch" = x""yes; then : | ||
14417 | _efl_have_fnmatch="yes" | ||
14418 | else | ||
14419 | _efl_have_fnmatch="no" | ||
14420 | fi | ||
14421 | |||
14422 | |||
14423 | if test "x${_efl_have_fnmatch}" = "xyes"; then | ||
14424 | EFL_FNMATCH_LIBS="exotic" | ||
14425 | fi | ||
14426 | fi | ||
14427 | |||
14428 | |||
14429 | |||
14430 | if test "x$_efl_have_fnmatch" = "xyes"; then : | ||
14431 | |||
14432 | else | ||
14433 | as_fn_error $? "Cannot find fnmatch()" "$LINENO" 5 | ||
14434 | fi | ||
14435 | |||
14436 | |||
14437 | |||
14438 | |||
14439 | |||
14440 | |||
14441 | 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" | ||
14442 | |||
14443 | cat >confcache <<\_ACEOF | ||
14444 | # This file is a shell script that caches the results of configure | ||
14445 | # tests run on this system so they can be shared between configure | ||
14446 | # scripts and configure runs, see configure's option --config-cache. | ||
14447 | # It is not useful on other systems. If it contains results you don't | ||
14448 | # want to keep, you may remove or edit it. | ||
14449 | # | ||
14450 | # config.status only pays attention to the cache file if you give it | ||
14451 | # the --recheck option to rerun configure. | ||
14452 | # | ||
14453 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
14454 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
14455 | # following values. | ||
14456 | |||
14457 | _ACEOF | ||
14458 | |||
14459 | # The following way of writing the cache mishandles newlines in values, | ||
14460 | # but we know of no workaround that is simple, portable, and efficient. | ||
14461 | # So, we kill variables containing newlines. | ||
14462 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
14463 | # and sets the high bit in the cache file unless we assign to the vars. | ||
14464 | ( | ||
14465 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
14466 | eval ac_val=\$$ac_var | ||
14467 | case $ac_val in #( | ||
14468 | *${as_nl}*) | ||
14469 | case $ac_var in #( | ||
14470 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
14471 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
14472 | esac | ||
14473 | case $ac_var in #( | ||
14474 | _ | IFS | as_nl) ;; #( | ||
14475 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
14476 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
14477 | esac ;; | ||
14478 | esac | ||
14479 | done | ||
14480 | |||
14481 | (set) 2>&1 | | ||
14482 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
14483 | *${as_nl}ac_space=\ *) | ||
14484 | # `set' does not quote correctly, so add quotes: double-quote | ||
14485 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
14486 | sed -n \ | ||
14487 | "s/'/'\\\\''/g; | ||
14488 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
14489 | ;; #( | ||
14490 | *) | ||
14491 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
14492 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
14493 | ;; | ||
14494 | esac | | ||
14495 | sort | ||
14496 | ) | | ||
14497 | sed ' | ||
14498 | /^ac_cv_env_/b end | ||
14499 | t clear | ||
14500 | :clear | ||
14501 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
14502 | t end | ||
14503 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
14504 | :end' >>confcache | ||
14505 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
14506 | if test -w "$cache_file"; then | ||
14507 | test "x$cache_file" != "x/dev/null" && | ||
14508 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
14509 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
14510 | cat confcache >$cache_file | ||
14511 | else | ||
14512 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
14513 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
14514 | fi | ||
14515 | fi | ||
14516 | rm -f confcache | ||
14517 | |||
14518 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
14519 | # Let make expand exec_prefix. | ||
14520 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
14521 | |||
14522 | DEFS=-DHAVE_CONFIG_H | ||
14523 | |||
14524 | ac_libobjs= | ||
14525 | ac_ltlibobjs= | ||
14526 | U= | ||
14527 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
14528 | # 1. Remove the extension, and $U if already installed. | ||
14529 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
14530 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
14531 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
14532 | # will be set to the directory where LIBOBJS objects are built. | ||
14533 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
14534 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
14535 | done | ||
14536 | LIBOBJS=$ac_libobjs | ||
14537 | |||
14538 | LTLIBOBJS=$ac_ltlibobjs | ||
14539 | |||
14540 | |||
14541 | if test -n "$EXEEXT"; then | ||
14542 | am__EXEEXT_TRUE= | ||
14543 | am__EXEEXT_FALSE='#' | ||
14544 | else | ||
14545 | am__EXEEXT_TRUE='#' | ||
14546 | am__EXEEXT_FALSE= | ||
14547 | fi | ||
14548 | |||
14549 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
14550 | as_fn_error $? "conditional \"AMDEP\" was never defined. | ||
14551 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14552 | fi | ||
14553 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
14554 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
14555 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14556 | fi | ||
14557 | if test -z "${EET_AMALGAMATION_TRUE}" && test -z "${EET_AMALGAMATION_FALSE}"; then | ||
14558 | as_fn_error $? "conditional \"EET_AMALGAMATION\" was never defined. | ||
14559 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14560 | fi | ||
14561 | if test -z "${BUILD_EET_TRUE}" && test -z "${BUILD_EET_FALSE}"; then | ||
14562 | as_fn_error $? "conditional \"BUILD_EET\" was never defined. | ||
14563 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14564 | fi | ||
14565 | if test -z "${INSTALL_EXAMPLES_TRUE}" && test -z "${INSTALL_EXAMPLES_FALSE}"; then | ||
14566 | as_fn_error $? "conditional \"INSTALL_EXAMPLES\" was never defined. | ||
14567 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14568 | fi | ||
14569 | if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then | ||
14570 | as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined. | ||
14571 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14572 | fi | ||
14573 | if test -z "${EFL_ENABLE_TESTS_TRUE}" && test -z "${EFL_ENABLE_TESTS_FALSE}"; then | ||
14574 | as_fn_error $? "conditional \"EFL_ENABLE_TESTS\" was never defined. | ||
14575 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14576 | fi | ||
14577 | if test -z "${EFL_ENABLE_COVERAGE_TRUE}" && test -z "${EFL_ENABLE_COVERAGE_FALSE}"; then | ||
14578 | as_fn_error $? "conditional \"EFL_ENABLE_COVERAGE\" was never defined. | ||
14579 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14580 | fi | ||
14581 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
14582 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
14583 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14584 | fi | ||
14585 | if test -z "${EFL_BUILD_DOC_TRUE}" && test -z "${EFL_BUILD_DOC_FALSE}"; then | ||
14586 | as_fn_error $? "conditional \"EFL_BUILD_DOC\" was never defined. | ||
14587 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14588 | fi | ||
14589 | |||
14590 | : ${CONFIG_STATUS=./config.status} | ||
14591 | ac_write_fail=0 | ||
14592 | ac_clean_files_save=$ac_clean_files | ||
14593 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
14594 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
14595 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
14596 | as_write_fail=0 | ||
14597 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
14598 | #! $SHELL | ||
14599 | # Generated by $as_me. | ||
14600 | # Run this file to recreate the current configuration. | ||
14601 | # Compiler output produced by configure, useful for debugging | ||
14602 | # configure, is in config.log if it exists. | ||
14603 | |||
14604 | debug=false | ||
14605 | ac_cs_recheck=false | ||
14606 | ac_cs_silent=false | ||
14607 | |||
14608 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
14609 | export SHELL | ||
14610 | _ASEOF | ||
14611 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
14612 | ## -------------------- ## | ||
14613 | ## M4sh Initialization. ## | ||
14614 | ## -------------------- ## | ||
14615 | |||
14616 | # Be more Bourne compatible | ||
14617 | DUALCASE=1; export DUALCASE # for MKS sh | ||
14618 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
14619 | emulate sh | ||
14620 | NULLCMD=: | ||
14621 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
14622 | # is contrary to our usage. Disable this feature. | ||
14623 | alias -g '${1+"$@"}'='"$@"' | ||
14624 | setopt NO_GLOB_SUBST | ||
14625 | else | ||
14626 | case `(set -o) 2>/dev/null` in #( | ||
14627 | *posix*) : | ||
14628 | set -o posix ;; #( | ||
14629 | *) : | ||
14630 | ;; | ||
14631 | esac | ||
14632 | fi | ||
14633 | |||
14634 | |||
14635 | as_nl=' | ||
14636 | ' | ||
14637 | export as_nl | ||
14638 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
14639 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
14640 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
14641 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
14642 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
14643 | # but without wasting forks for bash or zsh. | ||
14644 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
14645 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
14646 | as_echo='print -r --' | ||
14647 | as_echo_n='print -rn --' | ||
14648 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
14649 | as_echo='printf %s\n' | ||
14650 | as_echo_n='printf %s' | ||
14651 | else | ||
14652 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
14653 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
14654 | as_echo_n='/usr/ucb/echo -n' | ||
14655 | else | ||
14656 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
14657 | as_echo_n_body='eval | ||
14658 | arg=$1; | ||
14659 | case $arg in #( | ||
14660 | *"$as_nl"*) | ||
14661 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
14662 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
14663 | esac; | ||
14664 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
14665 | ' | ||
14666 | export as_echo_n_body | ||
14667 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
14668 | fi | ||
14669 | export as_echo_body | ||
14670 | as_echo='sh -c $as_echo_body as_echo' | ||
14671 | fi | ||
14672 | |||
14673 | # The user is always right. | ||
14674 | if test "${PATH_SEPARATOR+set}" != set; then | ||
14675 | PATH_SEPARATOR=: | ||
14676 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
14677 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
14678 | PATH_SEPARATOR=';' | ||
14679 | } | ||
14680 | fi | ||
14681 | |||
14682 | |||
14683 | # IFS | ||
14684 | # We need space, tab and new line, in precisely that order. Quoting is | ||
14685 | # there to prevent editors from complaining about space-tab. | ||
14686 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
14687 | # splitting by setting IFS to empty value.) | ||
14688 | IFS=" "" $as_nl" | ||
14689 | |||
14690 | # Find who we are. Look in the path if we contain no directory separator. | ||
14691 | case $0 in #(( | ||
14692 | *[\\/]* ) as_myself=$0 ;; | ||
14693 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14694 | for as_dir in $PATH | ||
14695 | do | ||
14696 | IFS=$as_save_IFS | ||
14697 | test -z "$as_dir" && as_dir=. | ||
14698 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
14699 | done | ||
14700 | IFS=$as_save_IFS | ||
14701 | |||
14702 | ;; | ||
14703 | esac | ||
14704 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
14705 | # in which case we are not to be found in the path. | ||
14706 | if test "x$as_myself" = x; then | ||
14707 | as_myself=$0 | ||
14708 | fi | ||
14709 | if test ! -f "$as_myself"; then | ||
14710 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
14711 | exit 1 | ||
14712 | fi | ||
14713 | |||
14714 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
14715 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
14716 | # suppresses any "Segmentation fault" message there. '((' could | ||
14717 | # trigger a bug in pdksh 5.2.14. | ||
14718 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
14719 | do eval test x\${$as_var+set} = xset \ | ||
14720 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
14721 | done | ||
14722 | PS1='$ ' | ||
14723 | PS2='> ' | ||
14724 | PS4='+ ' | ||
14725 | |||
14726 | # NLS nuisances. | ||
14727 | LC_ALL=C | ||
14728 | export LC_ALL | ||
14729 | LANGUAGE=C | ||
14730 | export LANGUAGE | ||
14731 | |||
14732 | # CDPATH. | ||
14733 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
14734 | |||
14735 | |||
14736 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
14737 | # ---------------------------------------- | ||
14738 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
14739 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
14740 | # script with STATUS, using 1 if that was 0. | ||
14741 | as_fn_error () | ||
14742 | { | ||
14743 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
14744 | if test "$4"; then | ||
14745 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
14746 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
14747 | fi | ||
14748 | $as_echo "$as_me: error: $2" >&2 | ||
14749 | as_fn_exit $as_status | ||
14750 | } # as_fn_error | ||
14751 | |||
14752 | |||
14753 | # as_fn_set_status STATUS | ||
14754 | # ----------------------- | ||
14755 | # Set $? to STATUS, without forking. | ||
14756 | as_fn_set_status () | ||
14757 | { | ||
14758 | return $1 | ||
14759 | } # as_fn_set_status | ||
14760 | |||
14761 | # as_fn_exit STATUS | ||
14762 | # ----------------- | ||
14763 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
14764 | as_fn_exit () | ||
14765 | { | ||
14766 | set +e | ||
14767 | as_fn_set_status $1 | ||
14768 | exit $1 | ||
14769 | } # as_fn_exit | ||
14770 | |||
14771 | # as_fn_unset VAR | ||
14772 | # --------------- | ||
14773 | # Portably unset VAR. | ||
14774 | as_fn_unset () | ||
14775 | { | ||
14776 | { eval $1=; unset $1;} | ||
14777 | } | ||
14778 | as_unset=as_fn_unset | ||
14779 | # as_fn_append VAR VALUE | ||
14780 | # ---------------------- | ||
14781 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
14782 | # advantage of any shell optimizations that allow amortized linear growth over | ||
14783 | # repeated appends, instead of the typical quadratic growth present in naive | ||
14784 | # implementations. | ||
14785 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
14786 | eval 'as_fn_append () | ||
14787 | { | ||
14788 | eval $1+=\$2 | ||
14789 | }' | ||
14790 | else | ||
14791 | as_fn_append () | ||
14792 | { | ||
14793 | eval $1=\$$1\$2 | ||
14794 | } | ||
14795 | fi # as_fn_append | ||
14796 | |||
14797 | # as_fn_arith ARG... | ||
14798 | # ------------------ | ||
14799 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
14800 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
14801 | # must be portable across $(()) and expr. | ||
14802 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
14803 | eval 'as_fn_arith () | ||
14804 | { | ||
14805 | as_val=$(( $* )) | ||
14806 | }' | ||
14807 | else | ||
14808 | as_fn_arith () | ||
14809 | { | ||
14810 | as_val=`expr "$@" || test $? -eq 1` | ||
14811 | } | ||
14812 | fi # as_fn_arith | ||
14813 | |||
14814 | |||
14815 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
14816 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
14817 | as_expr=expr | ||
14818 | else | ||
14819 | as_expr=false | ||
14820 | fi | ||
14821 | |||
14822 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
14823 | as_basename=basename | ||
14824 | else | ||
14825 | as_basename=false | ||
14826 | fi | ||
14827 | |||
14828 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
14829 | as_dirname=dirname | ||
14830 | else | ||
14831 | as_dirname=false | ||
14832 | fi | ||
14833 | |||
14834 | as_me=`$as_basename -- "$0" || | ||
14835 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
14836 | X"$0" : 'X\(//\)$' \| \ | ||
14837 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
14838 | $as_echo X/"$0" | | ||
14839 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
14840 | s//\1/ | ||
14841 | q | ||
14842 | } | ||
14843 | /^X\/\(\/\/\)$/{ | ||
14844 | s//\1/ | ||
14845 | q | ||
14846 | } | ||
14847 | /^X\/\(\/\).*/{ | ||
14848 | s//\1/ | ||
14849 | q | ||
14850 | } | ||
14851 | s/.*/./; q'` | ||
14852 | |||
14853 | # Avoid depending upon Character Ranges. | ||
14854 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
14855 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
14856 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
14857 | as_cr_digits='0123456789' | ||
14858 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
14859 | |||
14860 | ECHO_C= ECHO_N= ECHO_T= | ||
14861 | case `echo -n x` in #((((( | ||
14862 | -n*) | ||
14863 | case `echo 'xy\c'` in | ||
14864 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
14865 | xy) ECHO_C='\c';; | ||
14866 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
14867 | ECHO_T=' ';; | ||
14868 | esac;; | ||
14869 | *) | ||
14870 | ECHO_N='-n';; | ||
14871 | esac | ||
14872 | |||
14873 | rm -f conf$$ conf$$.exe conf$$.file | ||
14874 | if test -d conf$$.dir; then | ||
14875 | rm -f conf$$.dir/conf$$.file | ||
14876 | else | ||
14877 | rm -f conf$$.dir | ||
14878 | mkdir conf$$.dir 2>/dev/null | ||
14879 | fi | ||
14880 | if (echo >conf$$.file) 2>/dev/null; then | ||
14881 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
14882 | as_ln_s='ln -s' | ||
14883 | # ... but there are two gotchas: | ||
14884 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
14885 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
14886 | # In both cases, we have to default to `cp -p'. | ||
14887 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
14888 | as_ln_s='cp -p' | ||
14889 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
14890 | as_ln_s=ln | ||
14891 | else | ||
14892 | as_ln_s='cp -p' | ||
14893 | fi | ||
14894 | else | ||
14895 | as_ln_s='cp -p' | ||
14896 | fi | ||
14897 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
14898 | rmdir conf$$.dir 2>/dev/null | ||
14899 | |||
14900 | |||
14901 | # as_fn_mkdir_p | ||
14902 | # ------------- | ||
14903 | # Create "$as_dir" as a directory, including parents if necessary. | ||
14904 | as_fn_mkdir_p () | ||
14905 | { | ||
14906 | |||
14907 | case $as_dir in #( | ||
14908 | -*) as_dir=./$as_dir;; | ||
14909 | esac | ||
14910 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
14911 | as_dirs= | ||
14912 | while :; do | ||
14913 | case $as_dir in #( | ||
14914 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
14915 | *) as_qdir=$as_dir;; | ||
14916 | esac | ||
14917 | as_dirs="'$as_qdir' $as_dirs" | ||
14918 | as_dir=`$as_dirname -- "$as_dir" || | ||
14919 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
14920 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
14921 | X"$as_dir" : 'X\(//\)$' \| \ | ||
14922 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
14923 | $as_echo X"$as_dir" | | ||
14924 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
14925 | s//\1/ | ||
14926 | q | ||
14927 | } | ||
14928 | /^X\(\/\/\)[^/].*/{ | ||
14929 | s//\1/ | ||
14930 | q | ||
14931 | } | ||
14932 | /^X\(\/\/\)$/{ | ||
14933 | s//\1/ | ||
14934 | q | ||
14935 | } | ||
14936 | /^X\(\/\).*/{ | ||
14937 | s//\1/ | ||
14938 | q | ||
14939 | } | ||
14940 | s/.*/./; q'` | ||
14941 | test -d "$as_dir" && break | ||
14942 | done | ||
14943 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
14944 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
14945 | |||
14946 | |||
14947 | } # as_fn_mkdir_p | ||
14948 | if mkdir -p . 2>/dev/null; then | ||
14949 | as_mkdir_p='mkdir -p "$as_dir"' | ||
14950 | else | ||
14951 | test -d ./-p && rmdir ./-p | ||
14952 | as_mkdir_p=false | ||
14953 | fi | ||
14954 | |||
14955 | if test -x / >/dev/null 2>&1; then | ||
14956 | as_test_x='test -x' | ||
14957 | else | ||
14958 | if ls -dL / >/dev/null 2>&1; then | ||
14959 | as_ls_L_option=L | ||
14960 | else | ||
14961 | as_ls_L_option= | ||
14962 | fi | ||
14963 | as_test_x=' | ||
14964 | eval sh -c '\'' | ||
14965 | if test -d "$1"; then | ||
14966 | test -d "$1/."; | ||
14967 | else | ||
14968 | case $1 in #( | ||
14969 | -*)set "./$1";; | ||
14970 | esac; | ||
14971 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
14972 | ???[sx]*):;;*)false;;esac;fi | ||
14973 | '\'' sh | ||
14974 | ' | ||
14975 | fi | ||
14976 | as_executable_p=$as_test_x | ||
14977 | |||
14978 | # Sed expression to map a string onto a valid CPP name. | ||
14979 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
14980 | |||
14981 | # Sed expression to map a string onto a valid variable name. | ||
14982 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
14983 | |||
14984 | |||
14985 | exec 6>&1 | ||
14986 | ## ----------------------------------- ## | ||
14987 | ## Main body of $CONFIG_STATUS script. ## | ||
14988 | ## ----------------------------------- ## | ||
14989 | _ASEOF | ||
14990 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
14991 | |||
14992 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
14993 | # Save the log message, to keep $0 and so on meaningful, and to | ||
14994 | # report actual input values of CONFIG_FILES etc. instead of their | ||
14995 | # values after options handling. | ||
14996 | ac_log=" | ||
14997 | This file was extended by eet $as_me 1.6.0-alpha, which was | ||
14998 | generated by GNU Autoconf 2.67. Invocation command line was | ||
14999 | |||
15000 | CONFIG_FILES = $CONFIG_FILES | ||
15001 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
15002 | CONFIG_LINKS = $CONFIG_LINKS | ||
15003 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
15004 | $ $0 $@ | ||
15005 | |||
15006 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
15007 | " | ||
15008 | |||
15009 | _ACEOF | ||
15010 | |||
15011 | case $ac_config_files in *" | ||
15012 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
15013 | esac | ||
15014 | |||
15015 | case $ac_config_headers in *" | ||
15016 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
15017 | esac | ||
15018 | |||
15019 | |||
15020 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
15021 | # Files that config.status was made for. | ||
15022 | config_files="$ac_config_files" | ||
15023 | config_headers="$ac_config_headers" | ||
15024 | config_commands="$ac_config_commands" | ||
15025 | |||
15026 | _ACEOF | ||
15027 | |||
15028 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
15029 | ac_cs_usage="\ | ||
15030 | \`$as_me' instantiates files and other configuration actions | ||
15031 | from templates according to the current configuration. Unless the files | ||
15032 | and actions are specified as TAGs, all are instantiated by default. | ||
15033 | |||
15034 | Usage: $0 [OPTION]... [TAG]... | ||
15035 | |||
15036 | -h, --help print this help, then exit | ||
15037 | -V, --version print version number and configuration settings, then exit | ||
15038 | --config print configuration, then exit | ||
15039 | -q, --quiet, --silent | ||
15040 | do not print progress messages | ||
15041 | -d, --debug don't remove temporary files | ||
15042 | --recheck update $as_me by reconfiguring in the same conditions | ||
15043 | --file=FILE[:TEMPLATE] | ||
15044 | instantiate the configuration file FILE | ||
15045 | --header=FILE[:TEMPLATE] | ||
15046 | instantiate the configuration header FILE | ||
15047 | |||
15048 | Configuration files: | ||
15049 | $config_files | ||
15050 | |||
15051 | Configuration headers: | ||
15052 | $config_headers | ||
15053 | |||
15054 | Configuration commands: | ||
15055 | $config_commands | ||
15056 | |||
15057 | Report bugs to <enlightenment-devel@lists.sourceforge.net>." | ||
15058 | |||
15059 | _ACEOF | ||
15060 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
15061 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
15062 | ac_cs_version="\\ | ||
15063 | eet config.status 1.6.0-alpha | ||
15064 | configured by $0, generated by GNU Autoconf 2.67, | ||
15065 | with options \\"\$ac_cs_config\\" | ||
15066 | |||
15067 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
15068 | This config.status script is free software; the Free Software Foundation | ||
15069 | gives unlimited permission to copy, distribute and modify it." | ||
15070 | |||
15071 | ac_pwd='$ac_pwd' | ||
15072 | srcdir='$srcdir' | ||
15073 | INSTALL='$INSTALL' | ||
15074 | MKDIR_P='$MKDIR_P' | ||
15075 | AWK='$AWK' | ||
15076 | test -n "\$AWK" || AWK=awk | ||
15077 | _ACEOF | ||
15078 | |||
15079 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
15080 | # The default lists apply if the user does not specify any file. | ||
15081 | ac_need_defaults=: | ||
15082 | while test $# != 0 | ||
15083 | do | ||
15084 | case $1 in | ||
15085 | --*=?*) | ||
15086 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
15087 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
15088 | ac_shift=: | ||
15089 | ;; | ||
15090 | --*=) | ||
15091 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
15092 | ac_optarg= | ||
15093 | ac_shift=: | ||
15094 | ;; | ||
15095 | *) | ||
15096 | ac_option=$1 | ||
15097 | ac_optarg=$2 | ||
15098 | ac_shift=shift | ||
15099 | ;; | ||
15100 | esac | ||
15101 | |||
15102 | case $ac_option in | ||
15103 | # Handling of the options. | ||
15104 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
15105 | ac_cs_recheck=: ;; | ||
15106 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
15107 | $as_echo "$ac_cs_version"; exit ;; | ||
15108 | --config | --confi | --conf | --con | --co | --c ) | ||
15109 | $as_echo "$ac_cs_config"; exit ;; | ||
15110 | --debug | --debu | --deb | --de | --d | -d ) | ||
15111 | debug=: ;; | ||
15112 | --file | --fil | --fi | --f ) | ||
15113 | $ac_shift | ||
15114 | case $ac_optarg in | ||
15115 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
15116 | '') as_fn_error $? "missing file argument" ;; | ||
15117 | esac | ||
15118 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
15119 | ac_need_defaults=false;; | ||
15120 | --header | --heade | --head | --hea ) | ||
15121 | $ac_shift | ||
15122 | case $ac_optarg in | ||
15123 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
15124 | esac | ||
15125 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
15126 | ac_need_defaults=false;; | ||
15127 | --he | --h) | ||
15128 | # Conflict between --help and --header | ||
15129 | as_fn_error $? "ambiguous option: \`$1' | ||
15130 | Try \`$0 --help' for more information.";; | ||
15131 | --help | --hel | -h ) | ||
15132 | $as_echo "$ac_cs_usage"; exit ;; | ||
15133 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
15134 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
15135 | ac_cs_silent=: ;; | ||
15136 | |||
15137 | # This is an error. | ||
15138 | -*) as_fn_error $? "unrecognized option: \`$1' | ||
15139 | Try \`$0 --help' for more information." ;; | ||
15140 | |||
15141 | *) as_fn_append ac_config_targets " $1" | ||
15142 | ac_need_defaults=false ;; | ||
15143 | |||
15144 | esac | ||
15145 | shift | ||
15146 | done | ||
15147 | |||
15148 | ac_configure_extra_args= | ||
15149 | |||
15150 | if $ac_cs_silent; then | ||
15151 | exec 6>/dev/null | ||
15152 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
15153 | fi | ||
15154 | |||
15155 | _ACEOF | ||
15156 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
15157 | if \$ac_cs_recheck; then | ||
15158 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
15159 | shift | ||
15160 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
15161 | CONFIG_SHELL='$SHELL' | ||
15162 | export CONFIG_SHELL | ||
15163 | exec "\$@" | ||
15164 | fi | ||
15165 | |||
15166 | _ACEOF | ||
15167 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
15168 | exec 5>>config.log | ||
15169 | { | ||
15170 | echo | ||
15171 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
15172 | ## Running $as_me. ## | ||
15173 | _ASBOX | ||
15174 | $as_echo "$ac_log" | ||
15175 | } >&5 | ||
15176 | |||
15177 | _ACEOF | ||
15178 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
15179 | # | ||
15180 | # INIT-COMMANDS | ||
15181 | # | ||
15182 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
15183 | |||
15184 | |||
15185 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
15186 | # if CDPATH is set. | ||
15187 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
15188 | |||
15189 | sed_quote_subst='$sed_quote_subst' | ||
15190 | double_quote_subst='$double_quote_subst' | ||
15191 | delay_variable_subst='$delay_variable_subst' | ||
15192 | AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' | ||
15193 | DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
15194 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | ||
15195 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
15196 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | ||
15197 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | ||
15198 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
15199 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | ||
15200 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | ||
15201 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
15202 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | ||
15203 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
15204 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
15205 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | ||
15206 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
15207 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | ||
15208 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | ||
15209 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
15210 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
15211 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
15212 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | ||
15213 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | ||
15214 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | ||
15215 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | ||
15216 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | ||
15217 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | ||
15218 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | ||
15219 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | ||
15220 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | ||
15221 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
15222 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15223 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | ||
15224 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | ||
15225 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | ||
15226 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
15227 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | ||
15228 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | ||
15229 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15230 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15231 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15232 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | ||
15233 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
15234 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | ||
15235 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | ||
15236 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | ||
15237 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | ||
15238 | 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"`' | ||
15239 | 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"`' | ||
15240 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | ||
15241 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | ||
15242 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | ||
15243 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | ||
15244 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
15245 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | ||
15246 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | ||
15247 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
15248 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | ||
15249 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | ||
15250 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | ||
15251 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | ||
15252 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | ||
15253 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
15254 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | ||
15255 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | ||
15256 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15257 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15258 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | ||
15259 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | ||
15260 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
15261 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
15262 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | ||
15263 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15264 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15265 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15266 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15267 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15268 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15269 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
15270 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
15271 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
15272 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
15273 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
15274 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | ||
15275 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | ||
15276 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | ||
15277 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | ||
15278 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
15279 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | ||
15280 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
15281 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | ||
15282 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
15283 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | ||
15284 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15285 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
15286 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
15287 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15288 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
15289 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | ||
15290 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
15291 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
15292 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | ||
15293 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
15294 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
15295 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
15296 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
15297 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
15298 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
15299 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15300 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15301 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15302 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | ||
15303 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | ||
15304 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
15305 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
15306 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | ||
15307 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | ||
15308 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | ||
15309 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
15310 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
15311 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
15312 | |||
15313 | LTCC='$LTCC' | ||
15314 | LTCFLAGS='$LTCFLAGS' | ||
15315 | compiler='$compiler_DEFAULT' | ||
15316 | |||
15317 | # Quote evaled strings. | ||
15318 | for var in SED \ | ||
15319 | GREP \ | ||
15320 | EGREP \ | ||
15321 | FGREP \ | ||
15322 | LD \ | ||
15323 | NM \ | ||
15324 | LN_S \ | ||
15325 | lt_SP2NL \ | ||
15326 | lt_NL2SP \ | ||
15327 | reload_flag \ | ||
15328 | deplibs_check_method \ | ||
15329 | file_magic_cmd \ | ||
15330 | AR \ | ||
15331 | AR_FLAGS \ | ||
15332 | STRIP \ | ||
15333 | RANLIB \ | ||
15334 | CC \ | ||
15335 | CFLAGS \ | ||
15336 | compiler \ | ||
15337 | lt_cv_sys_global_symbol_pipe \ | ||
15338 | lt_cv_sys_global_symbol_to_cdecl \ | ||
15339 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
15340 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
15341 | SHELL \ | ||
15342 | ECHO \ | ||
15343 | lt_prog_compiler_no_builtin_flag \ | ||
15344 | lt_prog_compiler_wl \ | ||
15345 | lt_prog_compiler_pic \ | ||
15346 | lt_prog_compiler_static \ | ||
15347 | lt_cv_prog_compiler_c_o \ | ||
15348 | need_locks \ | ||
15349 | DSYMUTIL \ | ||
15350 | NMEDIT \ | ||
15351 | LIPO \ | ||
15352 | OTOOL \ | ||
15353 | OTOOL64 \ | ||
15354 | shrext_cmds \ | ||
15355 | export_dynamic_flag_spec \ | ||
15356 | whole_archive_flag_spec \ | ||
15357 | compiler_needs_object \ | ||
15358 | with_gnu_ld \ | ||
15359 | allow_undefined_flag \ | ||
15360 | no_undefined_flag \ | ||
15361 | hardcode_libdir_flag_spec \ | ||
15362 | hardcode_libdir_flag_spec_ld \ | ||
15363 | hardcode_libdir_separator \ | ||
15364 | fix_srcfile_path \ | ||
15365 | exclude_expsyms \ | ||
15366 | include_expsyms \ | ||
15367 | file_list_spec \ | ||
15368 | variables_saved_for_relink \ | ||
15369 | libname_spec \ | ||
15370 | library_names_spec \ | ||
15371 | soname_spec \ | ||
15372 | finish_eval \ | ||
15373 | old_striplib \ | ||
15374 | striplib; do | ||
15375 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
15376 | *[\\\\\\\`\\"\\\$]*) | ||
15377 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
15378 | ;; | ||
15379 | *) | ||
15380 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
15381 | ;; | ||
15382 | esac | ||
15383 | done | ||
15384 | |||
15385 | # Double-quote double-evaled strings. | ||
15386 | for var in reload_cmds \ | ||
15387 | old_postinstall_cmds \ | ||
15388 | old_postuninstall_cmds \ | ||
15389 | old_archive_cmds \ | ||
15390 | extract_expsyms_cmds \ | ||
15391 | old_archive_from_new_cmds \ | ||
15392 | old_archive_from_expsyms_cmds \ | ||
15393 | archive_cmds \ | ||
15394 | archive_expsym_cmds \ | ||
15395 | module_cmds \ | ||
15396 | module_expsym_cmds \ | ||
15397 | export_symbols_cmds \ | ||
15398 | prelink_cmds \ | ||
15399 | postinstall_cmds \ | ||
15400 | postuninstall_cmds \ | ||
15401 | finish_cmds \ | ||
15402 | sys_lib_search_path_spec \ | ||
15403 | sys_lib_dlsearch_path_spec; do | ||
15404 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
15405 | *[\\\\\\\`\\"\\\$]*) | ||
15406 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
15407 | ;; | ||
15408 | *) | ||
15409 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
15410 | ;; | ||
15411 | esac | ||
15412 | done | ||
15413 | |||
15414 | # Fix-up fallback echo if it was mangled by the above quoting rules. | ||
15415 | case \$lt_ECHO in | ||
15416 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | ||
15417 | ;; | ||
15418 | esac | ||
15419 | |||
15420 | ac_aux_dir='$ac_aux_dir' | ||
15421 | xsi_shell='$xsi_shell' | ||
15422 | lt_shell_append='$lt_shell_append' | ||
15423 | |||
15424 | # See if we are running on zsh, and set the options which allow our | ||
15425 | # commands through without removal of \ escapes INIT. | ||
15426 | if test -n "\${ZSH_VERSION+set}" ; then | ||
15427 | setopt NO_GLOB_SUBST | ||
15428 | fi | ||
15429 | |||
15430 | |||
15431 | PACKAGE='$PACKAGE' | ||
15432 | VERSION='$VERSION' | ||
15433 | TIMESTAMP='$TIMESTAMP' | ||
15434 | RM='$RM' | ||
15435 | ofile='$ofile' | ||
15436 | |||
15437 | |||
15438 | |||
15439 | |||
15440 | _ACEOF | ||
15441 | |||
15442 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
15443 | |||
15444 | # Handling of arguments. | ||
15445 | for ac_config_target in $ac_config_targets | ||
15446 | do | ||
15447 | case $ac_config_target in | ||
15448 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
15449 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
15450 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | ||
15451 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
15452 | "eet.pc") CONFIG_FILES="$CONFIG_FILES eet.pc" ;; | ||
15453 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | ||
15454 | "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; | ||
15455 | "doc/eet.dox") CONFIG_FILES="$CONFIG_FILES doc/eet.dox" ;; | ||
15456 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | ||
15457 | "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; | ||
15458 | "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;; | ||
15459 | "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; | ||
15460 | "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; | ||
15461 | "eet.spec") CONFIG_FILES="$CONFIG_FILES eet.spec" ;; | ||
15462 | |||
15463 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | ||
15464 | esac | ||
15465 | done | ||
15466 | |||
15467 | |||
15468 | # If the user did not use the arguments to specify the items to instantiate, | ||
15469 | # then the envvar interface is used. Set only those that are not. | ||
15470 | # We use the long form for the default assignment because of an extremely | ||
15471 | # bizarre bug on SunOS 4.1.3. | ||
15472 | if $ac_need_defaults; then | ||
15473 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
15474 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
15475 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
15476 | fi | ||
15477 | |||
15478 | # Have a temporary directory for convenience. Make it in the build tree | ||
15479 | # simply because there is no reason against having it here, and in addition, | ||
15480 | # creating and moving files from /tmp can sometimes cause problems. | ||
15481 | # Hook for its removal unless debugging. | ||
15482 | # Note that there is a small window in which the directory will not be cleaned: | ||
15483 | # after its creation but before its name has been assigned to `$tmp'. | ||
15484 | $debug || | ||
15485 | { | ||
15486 | tmp= | ||
15487 | trap 'exit_status=$? | ||
15488 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
15489 | ' 0 | ||
15490 | trap 'as_fn_exit 1' 1 2 13 15 | ||
15491 | } | ||
15492 | # Create a (secure) tmp directory for tmp files. | ||
15493 | |||
15494 | { | ||
15495 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
15496 | test -n "$tmp" && test -d "$tmp" | ||
15497 | } || | ||
15498 | { | ||
15499 | tmp=./conf$$-$RANDOM | ||
15500 | (umask 077 && mkdir "$tmp") | ||
15501 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | ||
15502 | |||
15503 | # Set up the scripts for CONFIG_FILES section. | ||
15504 | # No need to generate them if there are no CONFIG_FILES. | ||
15505 | # This happens for instance with `./config.status config.h'. | ||
15506 | if test -n "$CONFIG_FILES"; then | ||
15507 | |||
15508 | |||
15509 | ac_cr=`echo X | tr X '\015'` | ||
15510 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
15511 | # But we know of no other shell where ac_cr would be empty at this | ||
15512 | # point, so we can use a bashism as a fallback. | ||
15513 | if test "x$ac_cr" = x; then | ||
15514 | eval ac_cr=\$\'\\r\' | ||
15515 | fi | ||
15516 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
15517 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
15518 | ac_cs_awk_cr='\\r' | ||
15519 | else | ||
15520 | ac_cs_awk_cr=$ac_cr | ||
15521 | fi | ||
15522 | |||
15523 | echo 'BEGIN {' >"$tmp/subs1.awk" && | ||
15524 | _ACEOF | ||
15525 | |||
15526 | |||
15527 | { | ||
15528 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
15529 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
15530 | echo "_ACEOF" | ||
15531 | } >conf$$subs.sh || | ||
15532 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
15533 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||
15534 | ac_delim='%!_!# ' | ||
15535 | for ac_last_try in false false false false false :; do | ||
15536 | . ./conf$$subs.sh || | ||
15537 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
15538 | |||
15539 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
15540 | if test $ac_delim_n = $ac_delim_num; then | ||
15541 | break | ||
15542 | elif $ac_last_try; then | ||
15543 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
15544 | else | ||
15545 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
15546 | fi | ||
15547 | done | ||
15548 | rm -f conf$$subs.sh | ||
15549 | |||
15550 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
15551 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | ||
15552 | _ACEOF | ||
15553 | sed -n ' | ||
15554 | h | ||
15555 | s/^/S["/; s/!.*/"]=/ | ||
15556 | p | ||
15557 | g | ||
15558 | s/^[^!]*!// | ||
15559 | :repl | ||
15560 | t repl | ||
15561 | s/'"$ac_delim"'$// | ||
15562 | t delim | ||
15563 | :nl | ||
15564 | h | ||
15565 | s/\(.\{148\}\)..*/\1/ | ||
15566 | t more1 | ||
15567 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
15568 | p | ||
15569 | n | ||
15570 | b repl | ||
15571 | :more1 | ||
15572 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
15573 | p | ||
15574 | g | ||
15575 | s/.\{148\}// | ||
15576 | t nl | ||
15577 | :delim | ||
15578 | h | ||
15579 | s/\(.\{148\}\)..*/\1/ | ||
15580 | t more2 | ||
15581 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
15582 | p | ||
15583 | b | ||
15584 | :more2 | ||
15585 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
15586 | p | ||
15587 | g | ||
15588 | s/.\{148\}// | ||
15589 | t delim | ||
15590 | ' <conf$$subs.awk | sed ' | ||
15591 | /^[^""]/{ | ||
15592 | N | ||
15593 | s/\n// | ||
15594 | } | ||
15595 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
15596 | rm -f conf$$subs.awk | ||
15597 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
15598 | _ACAWK | ||
15599 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | ||
15600 | for (key in S) S_is_set[key] = 1 | ||
15601 | FS = "" | ||
15602 | |||
15603 | } | ||
15604 | { | ||
15605 | line = $ 0 | ||
15606 | nfields = split(line, field, "@") | ||
15607 | substed = 0 | ||
15608 | len = length(field[1]) | ||
15609 | for (i = 2; i < nfields; i++) { | ||
15610 | key = field[i] | ||
15611 | keylen = length(key) | ||
15612 | if (S_is_set[key]) { | ||
15613 | value = S[key] | ||
15614 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
15615 | len += length(value) + length(field[++i]) | ||
15616 | substed = 1 | ||
15617 | } else | ||
15618 | len += 1 + keylen | ||
15619 | } | ||
15620 | |||
15621 | print line | ||
15622 | } | ||
15623 | |||
15624 | _ACAWK | ||
15625 | _ACEOF | ||
15626 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
15627 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
15628 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
15629 | else | ||
15630 | cat | ||
15631 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | ||
15632 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | ||
15633 | _ACEOF | ||
15634 | |||
15635 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | ||
15636 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||
15637 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
15638 | # (actually we leave an empty line to preserve line numbers). | ||
15639 | if test "x$srcdir" = x.; then | ||
15640 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | ||
15641 | h | ||
15642 | s/// | ||
15643 | s/^/:/ | ||
15644 | s/[ ]*$/:/ | ||
15645 | s/:\$(srcdir):/:/g | ||
15646 | s/:\${srcdir}:/:/g | ||
15647 | s/:@srcdir@:/:/g | ||
15648 | s/^:*// | ||
15649 | s/:*$// | ||
15650 | x | ||
15651 | s/\(=[ ]*\).*/\1/ | ||
15652 | G | ||
15653 | s/\n// | ||
15654 | s/^[^=]*=[ ]*$// | ||
15655 | }' | ||
15656 | fi | ||
15657 | |||
15658 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
15659 | fi # test -n "$CONFIG_FILES" | ||
15660 | |||
15661 | # Set up the scripts for CONFIG_HEADERS section. | ||
15662 | # No need to generate them if there are no CONFIG_HEADERS. | ||
15663 | # This happens for instance with `./config.status Makefile'. | ||
15664 | if test -n "$CONFIG_HEADERS"; then | ||
15665 | cat >"$tmp/defines.awk" <<\_ACAWK || | ||
15666 | BEGIN { | ||
15667 | _ACEOF | ||
15668 | |||
15669 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
15670 | # here-document in config.status, that substitutes the proper values into | ||
15671 | # config.h.in to produce config.h. | ||
15672 | |||
15673 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
15674 | # handling of long lines. | ||
15675 | ac_delim='%!_!# ' | ||
15676 | for ac_last_try in false false :; do | ||
15677 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | ||
15678 | if test -z "$ac_t"; then | ||
15679 | break | ||
15680 | elif $ac_last_try; then | ||
15681 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
15682 | else | ||
15683 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
15684 | fi | ||
15685 | done | ||
15686 | |||
15687 | # For the awk script, D is an array of macro values keyed by name, | ||
15688 | # likewise P contains macro parameters if any. Preserve backslash | ||
15689 | # newline sequences. | ||
15690 | |||
15691 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
15692 | sed -n ' | ||
15693 | s/.\{148\}/&'"$ac_delim"'/g | ||
15694 | t rset | ||
15695 | :rset | ||
15696 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
15697 | t def | ||
15698 | d | ||
15699 | :def | ||
15700 | s/\\$// | ||
15701 | t bsnl | ||
15702 | s/["\\]/\\&/g | ||
15703 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
15704 | D["\1"]=" \3"/p | ||
15705 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
15706 | d | ||
15707 | :bsnl | ||
15708 | s/["\\]/\\&/g | ||
15709 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
15710 | D["\1"]=" \3\\\\\\n"\\/p | ||
15711 | t cont | ||
15712 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
15713 | t cont | ||
15714 | d | ||
15715 | :cont | ||
15716 | n | ||
15717 | s/.\{148\}/&'"$ac_delim"'/g | ||
15718 | t clear | ||
15719 | :clear | ||
15720 | s/\\$// | ||
15721 | t bsnlc | ||
15722 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
15723 | d | ||
15724 | :bsnlc | ||
15725 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
15726 | b cont | ||
15727 | ' <confdefs.h | sed ' | ||
15728 | s/'"$ac_delim"'/"\\\ | ||
15729 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
15730 | |||
15731 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
15732 | for (key in D) D_is_set[key] = 1 | ||
15733 | FS = "" | ||
15734 | } | ||
15735 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
15736 | line = \$ 0 | ||
15737 | split(line, arg, " ") | ||
15738 | if (arg[1] == "#") { | ||
15739 | defundef = arg[2] | ||
15740 | mac1 = arg[3] | ||
15741 | } else { | ||
15742 | defundef = substr(arg[1], 2) | ||
15743 | mac1 = arg[2] | ||
15744 | } | ||
15745 | split(mac1, mac2, "(") #) | ||
15746 | macro = mac2[1] | ||
15747 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
15748 | if (D_is_set[macro]) { | ||
15749 | # Preserve the white space surrounding the "#". | ||
15750 | print prefix "define", macro P[macro] D[macro] | ||
15751 | next | ||
15752 | } else { | ||
15753 | # Replace #undef with comments. This is necessary, for example, | ||
15754 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
15755 | # on some systems where configure will not decide to define it. | ||
15756 | if (defundef == "undef") { | ||
15757 | print "/*", prefix defundef, macro, "*/" | ||
15758 | next | ||
15759 | } | ||
15760 | } | ||
15761 | } | ||
15762 | { print } | ||
15763 | _ACAWK | ||
15764 | _ACEOF | ||
15765 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
15766 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | ||
15767 | fi # test -n "$CONFIG_HEADERS" | ||
15768 | |||
15769 | |||
15770 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | ||
15771 | shift | ||
15772 | for ac_tag | ||
15773 | do | ||
15774 | case $ac_tag in | ||
15775 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
15776 | esac | ||
15777 | case $ac_mode$ac_tag in | ||
15778 | :[FHL]*:*);; | ||
15779 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; | ||
15780 | :[FH]-) ac_tag=-:-;; | ||
15781 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
15782 | esac | ||
15783 | ac_save_IFS=$IFS | ||
15784 | IFS=: | ||
15785 | set x $ac_tag | ||
15786 | IFS=$ac_save_IFS | ||
15787 | shift | ||
15788 | ac_file=$1 | ||
15789 | shift | ||
15790 | |||
15791 | case $ac_mode in | ||
15792 | :L) ac_source=$1;; | ||
15793 | :[FH]) | ||
15794 | ac_file_inputs= | ||
15795 | for ac_f | ||
15796 | do | ||
15797 | case $ac_f in | ||
15798 | -) ac_f="$tmp/stdin";; | ||
15799 | *) # Look for the file first in the build tree, then in the source tree | ||
15800 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
15801 | # because $ac_f cannot contain `:'. | ||
15802 | test -f "$ac_f" || | ||
15803 | case $ac_f in | ||
15804 | [\\/$]*) false;; | ||
15805 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
15806 | esac || | ||
15807 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; | ||
15808 | esac | ||
15809 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
15810 | as_fn_append ac_file_inputs " '$ac_f'" | ||
15811 | done | ||
15812 | |||
15813 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
15814 | # use $as_me), people would be surprised to read: | ||
15815 | # /* config.h. Generated by config.status. */ | ||
15816 | configure_input='Generated from '` | ||
15817 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
15818 | `' by configure.' | ||
15819 | if test x"$ac_file" != x-; then | ||
15820 | configure_input="$ac_file. $configure_input" | ||
15821 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
15822 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
15823 | fi | ||
15824 | # Neutralize special characters interpreted by sed in replacement strings. | ||
15825 | case $configure_input in #( | ||
15826 | *\&* | *\|* | *\\* ) | ||
15827 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
15828 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
15829 | *) ac_sed_conf_input=$configure_input;; | ||
15830 | esac | ||
15831 | |||
15832 | case $ac_tag in | ||
15833 | *:-:* | *:-) cat >"$tmp/stdin" \ | ||
15834 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
15835 | esac | ||
15836 | ;; | ||
15837 | esac | ||
15838 | |||
15839 | ac_dir=`$as_dirname -- "$ac_file" || | ||
15840 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
15841 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
15842 | X"$ac_file" : 'X\(//\)$' \| \ | ||
15843 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
15844 | $as_echo X"$ac_file" | | ||
15845 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
15846 | s//\1/ | ||
15847 | q | ||
15848 | } | ||
15849 | /^X\(\/\/\)[^/].*/{ | ||
15850 | s//\1/ | ||
15851 | q | ||
15852 | } | ||
15853 | /^X\(\/\/\)$/{ | ||
15854 | s//\1/ | ||
15855 | q | ||
15856 | } | ||
15857 | /^X\(\/\).*/{ | ||
15858 | s//\1/ | ||
15859 | q | ||
15860 | } | ||
15861 | s/.*/./; q'` | ||
15862 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
15863 | ac_builddir=. | ||
15864 | |||
15865 | case "$ac_dir" in | ||
15866 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
15867 | *) | ||
15868 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
15869 | # A ".." for each directory in $ac_dir_suffix. | ||
15870 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
15871 | case $ac_top_builddir_sub in | ||
15872 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
15873 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
15874 | esac ;; | ||
15875 | esac | ||
15876 | ac_abs_top_builddir=$ac_pwd | ||
15877 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
15878 | # for backward compatibility: | ||
15879 | ac_top_builddir=$ac_top_build_prefix | ||
15880 | |||
15881 | case $srcdir in | ||
15882 | .) # We are building in place. | ||
15883 | ac_srcdir=. | ||
15884 | ac_top_srcdir=$ac_top_builddir_sub | ||
15885 | ac_abs_top_srcdir=$ac_pwd ;; | ||
15886 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
15887 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
15888 | ac_top_srcdir=$srcdir | ||
15889 | ac_abs_top_srcdir=$srcdir ;; | ||
15890 | *) # Relative name. | ||
15891 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
15892 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
15893 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
15894 | esac | ||
15895 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
15896 | |||
15897 | |||
15898 | case $ac_mode in | ||
15899 | :F) | ||
15900 | # | ||
15901 | # CONFIG_FILE | ||
15902 | # | ||
15903 | |||
15904 | case $INSTALL in | ||
15905 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
15906 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
15907 | esac | ||
15908 | ac_MKDIR_P=$MKDIR_P | ||
15909 | case $MKDIR_P in | ||
15910 | [\\/$]* | ?:[\\/]* ) ;; | ||
15911 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||
15912 | esac | ||
15913 | _ACEOF | ||
15914 | |||
15915 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
15916 | # If the template does not know about datarootdir, expand it. | ||
15917 | # FIXME: This hack should be removed a few years after 2.60. | ||
15918 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
15919 | ac_sed_dataroot=' | ||
15920 | /datarootdir/ { | ||
15921 | p | ||
15922 | q | ||
15923 | } | ||
15924 | /@datadir@/p | ||
15925 | /@docdir@/p | ||
15926 | /@infodir@/p | ||
15927 | /@localedir@/p | ||
15928 | /@mandir@/p' | ||
15929 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
15930 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
15931 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
15932 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
15933 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
15934 | _ACEOF | ||
15935 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
15936 | ac_datarootdir_hack=' | ||
15937 | s&@datadir@&$datadir&g | ||
15938 | s&@docdir@&$docdir&g | ||
15939 | s&@infodir@&$infodir&g | ||
15940 | s&@localedir@&$localedir&g | ||
15941 | s&@mandir@&$mandir&g | ||
15942 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
15943 | esac | ||
15944 | _ACEOF | ||
15945 | |||
15946 | # Neutralize VPATH when `$srcdir' = `.'. | ||
15947 | # Shell code in configure.ac might set extrasub. | ||
15948 | # FIXME: do we really want to maintain this feature? | ||
15949 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
15950 | ac_sed_extra="$ac_vpsub | ||
15951 | $extrasub | ||
15952 | _ACEOF | ||
15953 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
15954 | :t | ||
15955 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
15956 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
15957 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
15958 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
15959 | s&@srcdir@&$ac_srcdir&;t t | ||
15960 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
15961 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
15962 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
15963 | s&@builddir@&$ac_builddir&;t t | ||
15964 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
15965 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
15966 | s&@INSTALL@&$ac_INSTALL&;t t | ||
15967 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | ||
15968 | $ac_datarootdir_hack | ||
15969 | " | ||
15970 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | ||
15971 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
15972 | |||
15973 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
15974 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
15975 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
15976 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
15977 | which seems to be undefined. Please make sure it is defined" >&5 | ||
15978 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
15979 | which seems to be undefined. Please make sure it is defined" >&2;} | ||
15980 | |||
15981 | rm -f "$tmp/stdin" | ||
15982 | case $ac_file in | ||
15983 | -) cat "$tmp/out" && rm -f "$tmp/out";; | ||
15984 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | ||
15985 | esac \ | ||
15986 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
15987 | ;; | ||
15988 | :H) | ||
15989 | # | ||
15990 | # CONFIG_HEADER | ||
15991 | # | ||
15992 | if test x"$ac_file" != x-; then | ||
15993 | { | ||
15994 | $as_echo "/* $configure_input */" \ | ||
15995 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | ||
15996 | } >"$tmp/config.h" \ | ||
15997 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
15998 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | ||
15999 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
16000 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
16001 | else | ||
16002 | rm -f "$ac_file" | ||
16003 | mv "$tmp/config.h" "$ac_file" \ | ||
16004 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
16005 | fi | ||
16006 | else | ||
16007 | $as_echo "/* $configure_input */" \ | ||
16008 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | ||
16009 | || as_fn_error $? "could not create -" "$LINENO" 5 | ||
16010 | fi | ||
16011 | # Compute "$ac_file"'s index in $config_headers. | ||
16012 | _am_arg="$ac_file" | ||
16013 | _am_stamp_count=1 | ||
16014 | for _am_header in $config_headers :; do | ||
16015 | case $_am_header in | ||
16016 | $_am_arg | $_am_arg:* ) | ||
16017 | break ;; | ||
16018 | * ) | ||
16019 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
16020 | esac | ||
16021 | done | ||
16022 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | ||
16023 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
16024 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | ||
16025 | X"$_am_arg" : 'X\(//\)$' \| \ | ||
16026 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | ||
16027 | $as_echo X"$_am_arg" | | ||
16028 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
16029 | s//\1/ | ||
16030 | q | ||
16031 | } | ||
16032 | /^X\(\/\/\)[^/].*/{ | ||
16033 | s//\1/ | ||
16034 | q | ||
16035 | } | ||
16036 | /^X\(\/\/\)$/{ | ||
16037 | s//\1/ | ||
16038 | q | ||
16039 | } | ||
16040 | /^X\(\/\).*/{ | ||
16041 | s//\1/ | ||
16042 | q | ||
16043 | } | ||
16044 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
16045 | ;; | ||
16046 | |||
16047 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | ||
16048 | $as_echo "$as_me: executing $ac_file commands" >&6;} | ||
16049 | ;; | ||
16050 | esac | ||
16051 | |||
16052 | |||
16053 | case $ac_file$ac_mode in | ||
16054 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | ||
16055 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | ||
16056 | # are listed without --file. Let's play safe and only enable the eval | ||
16057 | # if we detect the quoting. | ||
16058 | case $CONFIG_FILES in | ||
16059 | *\'*) eval set x "$CONFIG_FILES" ;; | ||
16060 | *) set x $CONFIG_FILES ;; | ||
16061 | esac | ||
16062 | shift | ||
16063 | for mf | ||
16064 | do | ||
16065 | # Strip MF so we end up with the name of the file. | ||
16066 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
16067 | # Check whether this is an Automake generated Makefile or not. | ||
16068 | # We used to match only the files named `Makefile.in', but | ||
16069 | # some people rename them; so instead we look at the file content. | ||
16070 | # Grep'ing the first line is not enough: some people post-process | ||
16071 | # each Makefile.in and add a new line on top of each file to say so. | ||
16072 | # Grep'ing the whole file is not good either: AIX grep has a line | ||
16073 | # limit of 2048, but all sed's we know have understand at least 4000. | ||
16074 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | ||
16075 | dirpart=`$as_dirname -- "$mf" || | ||
16076 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
16077 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
16078 | X"$mf" : 'X\(//\)$' \| \ | ||
16079 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | ||
16080 | $as_echo X"$mf" | | ||
16081 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
16082 | s//\1/ | ||
16083 | q | ||
16084 | } | ||
16085 | /^X\(\/\/\)[^/].*/{ | ||
16086 | s//\1/ | ||
16087 | q | ||
16088 | } | ||
16089 | /^X\(\/\/\)$/{ | ||
16090 | s//\1/ | ||
16091 | q | ||
16092 | } | ||
16093 | /^X\(\/\).*/{ | ||
16094 | s//\1/ | ||
16095 | q | ||
16096 | } | ||
16097 | s/.*/./; q'` | ||
16098 | else | ||
16099 | continue | ||
16100 | fi | ||
16101 | # Extract the definition of DEPDIR, am__include, and am__quote | ||
16102 | # from the Makefile without running `make'. | ||
16103 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | ||
16104 | test -z "$DEPDIR" && continue | ||
16105 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | ||
16106 | test -z "am__include" && continue | ||
16107 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | ||
16108 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
16109 | U=`sed -n 's/^U = //p' < "$mf"` | ||
16110 | # Find all dependency output files, they are included files with | ||
16111 | # $(DEPDIR) in their names. We invoke sed twice because it is the | ||
16112 | # simplest approach to changing $(DEPDIR) to its actual value in the | ||
16113 | # expansion. | ||
16114 | for file in `sed -n " | ||
16115 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | ||
16116 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
16117 | # Make sure the directory exists. | ||
16118 | test -f "$dirpart/$file" && continue | ||
16119 | fdir=`$as_dirname -- "$file" || | ||
16120 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
16121 | X"$file" : 'X\(//\)[^/]' \| \ | ||
16122 | X"$file" : 'X\(//\)$' \| \ | ||
16123 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | ||
16124 | $as_echo X"$file" | | ||
16125 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
16126 | s//\1/ | ||
16127 | q | ||
16128 | } | ||
16129 | /^X\(\/\/\)[^/].*/{ | ||
16130 | s//\1/ | ||
16131 | q | ||
16132 | } | ||
16133 | /^X\(\/\/\)$/{ | ||
16134 | s//\1/ | ||
16135 | q | ||
16136 | } | ||
16137 | /^X\(\/\).*/{ | ||
16138 | s//\1/ | ||
16139 | q | ||
16140 | } | ||
16141 | s/.*/./; q'` | ||
16142 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | ||
16143 | # echo "creating $dirpart/$file" | ||
16144 | echo '# dummy' > "$dirpart/$file" | ||
16145 | done | ||
16146 | done | ||
16147 | } | ||
16148 | ;; | ||
16149 | "libtool":C) | ||
16150 | |||
16151 | # See if we are running on zsh, and set the options which allow our | ||
16152 | # commands through without removal of \ escapes. | ||
16153 | if test -n "${ZSH_VERSION+set}" ; then | ||
16154 | setopt NO_GLOB_SUBST | ||
16155 | fi | ||
16156 | |||
16157 | cfgfile="${ofile}T" | ||
16158 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | ||
16159 | $RM "$cfgfile" | ||
16160 | |||
16161 | cat <<_LT_EOF >> "$cfgfile" | ||
16162 | #! $SHELL | ||
16163 | |||
16164 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
16165 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | ||
16166 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
16167 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
16168 | # | ||
16169 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
16170 | # 2006, 2007, 2008 Free Software Foundation, Inc. | ||
16171 | # Written by Gordon Matzigkeit, 1996 | ||
16172 | # | ||
16173 | # This file is part of GNU Libtool. | ||
16174 | # | ||
16175 | # GNU Libtool is free software; you can redistribute it and/or | ||
16176 | # modify it under the terms of the GNU General Public License as | ||
16177 | # published by the Free Software Foundation; either version 2 of | ||
16178 | # the License, or (at your option) any later version. | ||
16179 | # | ||
16180 | # As a special exception to the GNU General Public License, | ||
16181 | # if you distribute this file as part of a program or library that | ||
16182 | # is built using GNU Libtool, you may include this file under the | ||
16183 | # same distribution terms that you use for the rest of that program. | ||
16184 | # | ||
16185 | # GNU Libtool is distributed in the hope that it will be useful, | ||
16186 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16187 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16188 | # GNU General Public License for more details. | ||
16189 | # | ||
16190 | # You should have received a copy of the GNU General Public License | ||
16191 | # along with GNU Libtool; see the file COPYING. If not, a copy | ||
16192 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | ||
16193 | # obtained by writing to the Free Software Foundation, Inc., | ||
16194 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
16195 | |||
16196 | |||
16197 | # The names of the tagged configurations supported by this script. | ||
16198 | available_tags="" | ||
16199 | |||
16200 | # ### BEGIN LIBTOOL CONFIG | ||
16201 | |||
16202 | # Assembler program. | ||
16203 | AS=$AS | ||
16204 | |||
16205 | # DLL creation program. | ||
16206 | DLLTOOL=$DLLTOOL | ||
16207 | |||
16208 | # Object dumper program. | ||
16209 | OBJDUMP=$OBJDUMP | ||
16210 | |||
16211 | # Which release of libtool.m4 was used? | ||
16212 | macro_version=$macro_version | ||
16213 | macro_revision=$macro_revision | ||
16214 | |||
16215 | # Whether or not to build shared libraries. | ||
16216 | build_libtool_libs=$enable_shared | ||
16217 | |||
16218 | # Whether or not to build static libraries. | ||
16219 | build_old_libs=$enable_static | ||
16220 | |||
16221 | # What type of objects to build. | ||
16222 | pic_mode=$pic_mode | ||
16223 | |||
16224 | # Whether or not to optimize for fast installation. | ||
16225 | fast_install=$enable_fast_install | ||
16226 | |||
16227 | # The host system. | ||
16228 | host_alias=$host_alias | ||
16229 | host=$host | ||
16230 | host_os=$host_os | ||
16231 | |||
16232 | # The build system. | ||
16233 | build_alias=$build_alias | ||
16234 | build=$build | ||
16235 | build_os=$build_os | ||
16236 | |||
16237 | # A sed program that does not truncate output. | ||
16238 | SED=$lt_SED | ||
16239 | |||
16240 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
16241 | Xsed="\$SED -e 1s/^X//" | ||
16242 | |||
16243 | # A grep program that handles long lines. | ||
16244 | GREP=$lt_GREP | ||
16245 | |||
16246 | # An ERE matcher. | ||
16247 | EGREP=$lt_EGREP | ||
16248 | |||
16249 | # A literal string matcher. | ||
16250 | FGREP=$lt_FGREP | ||
16251 | |||
16252 | # A BSD- or MS-compatible name lister. | ||
16253 | NM=$lt_NM | ||
16254 | |||
16255 | # Whether we need soft or hard links. | ||
16256 | LN_S=$lt_LN_S | ||
16257 | |||
16258 | # What is the maximum length of a command? | ||
16259 | max_cmd_len=$max_cmd_len | ||
16260 | |||
16261 | # Object file suffix (normally "o"). | ||
16262 | objext=$ac_objext | ||
16263 | |||
16264 | # Executable file suffix (normally ""). | ||
16265 | exeext=$exeext | ||
16266 | |||
16267 | # whether the shell understands "unset". | ||
16268 | lt_unset=$lt_unset | ||
16269 | |||
16270 | # turn spaces into newlines. | ||
16271 | SP2NL=$lt_lt_SP2NL | ||
16272 | |||
16273 | # turn newlines into spaces. | ||
16274 | NL2SP=$lt_lt_NL2SP | ||
16275 | |||
16276 | # How to create reloadable object files. | ||
16277 | reload_flag=$lt_reload_flag | ||
16278 | reload_cmds=$lt_reload_cmds | ||
16279 | |||
16280 | # Method to check whether dependent libraries are shared objects. | ||
16281 | deplibs_check_method=$lt_deplibs_check_method | ||
16282 | |||
16283 | # Command to use when deplibs_check_method == "file_magic". | ||
16284 | file_magic_cmd=$lt_file_magic_cmd | ||
16285 | |||
16286 | # The archiver. | ||
16287 | AR=$lt_AR | ||
16288 | AR_FLAGS=$lt_AR_FLAGS | ||
16289 | |||
16290 | # A symbol stripping program. | ||
16291 | STRIP=$lt_STRIP | ||
16292 | |||
16293 | # Commands used to install an old-style archive. | ||
16294 | RANLIB=$lt_RANLIB | ||
16295 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
16296 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
16297 | |||
16298 | # A C compiler. | ||
16299 | LTCC=$lt_CC | ||
16300 | |||
16301 | # LTCC compiler flags. | ||
16302 | LTCFLAGS=$lt_CFLAGS | ||
16303 | |||
16304 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
16305 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
16306 | |||
16307 | # Transform the output of nm in a proper C declaration. | ||
16308 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
16309 | |||
16310 | # Transform the output of nm in a C name address pair. | ||
16311 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
16312 | |||
16313 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
16314 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
16315 | |||
16316 | # The name of the directory that contains temporary libtool files. | ||
16317 | objdir=$objdir | ||
16318 | |||
16319 | # Shell to use when invoking shell scripts. | ||
16320 | SHELL=$lt_SHELL | ||
16321 | |||
16322 | # An echo program that does not interpret backslashes. | ||
16323 | ECHO=$lt_ECHO | ||
16324 | |||
16325 | # Used to examine libraries when file_magic_cmd begins with "file". | ||
16326 | MAGIC_CMD=$MAGIC_CMD | ||
16327 | |||
16328 | # Must we lock files when doing compilation? | ||
16329 | need_locks=$lt_need_locks | ||
16330 | |||
16331 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
16332 | DSYMUTIL=$lt_DSYMUTIL | ||
16333 | |||
16334 | # Tool to change global to local symbols on Mac OS X. | ||
16335 | NMEDIT=$lt_NMEDIT | ||
16336 | |||
16337 | # Tool to manipulate fat objects and archives on Mac OS X. | ||
16338 | LIPO=$lt_LIPO | ||
16339 | |||
16340 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | ||
16341 | OTOOL=$lt_OTOOL | ||
16342 | |||
16343 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | ||
16344 | OTOOL64=$lt_OTOOL64 | ||
16345 | |||
16346 | # Old archive suffix (normally "a"). | ||
16347 | libext=$libext | ||
16348 | |||
16349 | # Shared library suffix (normally ".so"). | ||
16350 | shrext_cmds=$lt_shrext_cmds | ||
16351 | |||
16352 | # The commands to extract the exported symbol list from a shared archive. | ||
16353 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
16354 | |||
16355 | # Variables whose values should be saved in libtool wrapper scripts and | ||
16356 | # restored at link time. | ||
16357 | variables_saved_for_relink=$lt_variables_saved_for_relink | ||
16358 | |||
16359 | # Do we need the "lib" prefix for modules? | ||
16360 | need_lib_prefix=$need_lib_prefix | ||
16361 | |||
16362 | # Do we need a version for libraries? | ||
16363 | need_version=$need_version | ||
16364 | |||
16365 | # Library versioning type. | ||
16366 | version_type=$version_type | ||
16367 | |||
16368 | # Shared library runtime path variable. | ||
16369 | runpath_var=$runpath_var | ||
16370 | |||
16371 | # Shared library path variable. | ||
16372 | shlibpath_var=$shlibpath_var | ||
16373 | |||
16374 | # Is shlibpath searched before the hard-coded library search path? | ||
16375 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
16376 | |||
16377 | # Format of library name prefix. | ||
16378 | libname_spec=$lt_libname_spec | ||
16379 | |||
16380 | # List of archive names. First name is the real one, the rest are links. | ||
16381 | # The last name is the one that the linker finds with -lNAME | ||
16382 | library_names_spec=$lt_library_names_spec | ||
16383 | |||
16384 | # The coded name of the library, if different from the real name. | ||
16385 | soname_spec=$lt_soname_spec | ||
16386 | |||
16387 | # Command to use after installation of a shared archive. | ||
16388 | postinstall_cmds=$lt_postinstall_cmds | ||
16389 | |||
16390 | # Command to use after uninstallation of a shared archive. | ||
16391 | postuninstall_cmds=$lt_postuninstall_cmds | ||
16392 | |||
16393 | # Commands used to finish a libtool library installation in a directory. | ||
16394 | finish_cmds=$lt_finish_cmds | ||
16395 | |||
16396 | # As "finish_cmds", except a single script fragment to be evaled but | ||
16397 | # not shown. | ||
16398 | finish_eval=$lt_finish_eval | ||
16399 | |||
16400 | # Whether we should hardcode library paths into libraries. | ||
16401 | hardcode_into_libs=$hardcode_into_libs | ||
16402 | |||
16403 | # Compile-time system search path for libraries. | ||
16404 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
16405 | |||
16406 | # Run-time system search path for libraries. | ||
16407 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
16408 | |||
16409 | # Whether dlopen is supported. | ||
16410 | dlopen_support=$enable_dlopen | ||
16411 | |||
16412 | # Whether dlopen of programs is supported. | ||
16413 | dlopen_self=$enable_dlopen_self | ||
16414 | |||
16415 | # Whether dlopen of statically linked programs is supported. | ||
16416 | dlopen_self_static=$enable_dlopen_self_static | ||
16417 | |||
16418 | # Commands to strip libraries. | ||
16419 | old_striplib=$lt_old_striplib | ||
16420 | striplib=$lt_striplib | ||
16421 | |||
16422 | |||
16423 | # The linker used to build libraries. | ||
16424 | LD=$lt_LD | ||
16425 | |||
16426 | # Commands used to build an old-style archive. | ||
16427 | old_archive_cmds=$lt_old_archive_cmds | ||
16428 | |||
16429 | # A language specific compiler. | ||
16430 | CC=$lt_compiler | ||
16431 | |||
16432 | # Is the compiler the GNU compiler? | ||
16433 | with_gcc=$GCC | ||
16434 | |||
16435 | # Compiler flag to turn off builtin functions. | ||
16436 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
16437 | |||
16438 | # How to pass a linker flag through the compiler. | ||
16439 | wl=$lt_lt_prog_compiler_wl | ||
16440 | |||
16441 | # Additional compiler flags for building library objects. | ||
16442 | pic_flag=$lt_lt_prog_compiler_pic | ||
16443 | |||
16444 | # Compiler flag to prevent dynamic linking. | ||
16445 | link_static_flag=$lt_lt_prog_compiler_static | ||
16446 | |||
16447 | # Does compiler simultaneously support -c and -o options? | ||
16448 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | ||
16449 | |||
16450 | # Whether or not to add -lc for building shared libraries. | ||
16451 | build_libtool_need_lc=$archive_cmds_need_lc | ||
16452 | |||
16453 | # Whether or not to disallow shared libs when runtime libs are static. | ||
16454 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | ||
16455 | |||
16456 | # Compiler flag to allow reflexive dlopens. | ||
16457 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | ||
16458 | |||
16459 | # Compiler flag to generate shared objects directly from archives. | ||
16460 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | ||
16461 | |||
16462 | # Whether the compiler copes with passing no objects directly. | ||
16463 | compiler_needs_object=$lt_compiler_needs_object | ||
16464 | |||
16465 | # Create an old-style archive from a shared archive. | ||
16466 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | ||
16467 | |||
16468 | # Create a temporary old-style archive to link instead of a shared archive. | ||
16469 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | ||
16470 | |||
16471 | # Commands used to build a shared archive. | ||
16472 | archive_cmds=$lt_archive_cmds | ||
16473 | archive_expsym_cmds=$lt_archive_expsym_cmds | ||
16474 | |||
16475 | # Commands used to build a loadable module if different from building | ||
16476 | # a shared archive. | ||
16477 | module_cmds=$lt_module_cmds | ||
16478 | module_expsym_cmds=$lt_module_expsym_cmds | ||
16479 | |||
16480 | # Whether we are building with GNU ld or not. | ||
16481 | with_gnu_ld=$lt_with_gnu_ld | ||
16482 | |||
16483 | # Flag that allows shared libraries with undefined symbols to be built. | ||
16484 | allow_undefined_flag=$lt_allow_undefined_flag | ||
16485 | |||
16486 | # Flag that enforces no undefined symbols. | ||
16487 | no_undefined_flag=$lt_no_undefined_flag | ||
16488 | |||
16489 | # Flag to hardcode \$libdir into a binary during linking. | ||
16490 | # This must work even if \$libdir does not exist | ||
16491 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | ||
16492 | |||
16493 | # If ld is used when linking, flag to hardcode \$libdir into a binary | ||
16494 | # during linking. This must work even if \$libdir does not exist. | ||
16495 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | ||
16496 | |||
16497 | # Whether we need a single "-rpath" flag with a separated argument. | ||
16498 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | ||
16499 | |||
16500 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
16501 | # DIR into the resulting binary. | ||
16502 | hardcode_direct=$hardcode_direct | ||
16503 | |||
16504 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
16505 | # DIR into the resulting binary and the resulting library dependency is | ||
16506 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | ||
16507 | # library is relocated. | ||
16508 | hardcode_direct_absolute=$hardcode_direct_absolute | ||
16509 | |||
16510 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | ||
16511 | # into the resulting binary. | ||
16512 | hardcode_minus_L=$hardcode_minus_L | ||
16513 | |||
16514 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | ||
16515 | # into the resulting binary. | ||
16516 | hardcode_shlibpath_var=$hardcode_shlibpath_var | ||
16517 | |||
16518 | # Set to "yes" if building a shared library automatically hardcodes DIR | ||
16519 | # into the library and all subsequent libraries and executables linked | ||
16520 | # against it. | ||
16521 | hardcode_automatic=$hardcode_automatic | ||
16522 | |||
16523 | # Set to yes if linker adds runtime paths of dependent libraries | ||
16524 | # to runtime path list. | ||
16525 | inherit_rpath=$inherit_rpath | ||
16526 | |||
16527 | # Whether libtool must link a program against all its dependency libraries. | ||
16528 | link_all_deplibs=$link_all_deplibs | ||
16529 | |||
16530 | # Fix the shell variable \$srcfile for the compiler. | ||
16531 | fix_srcfile_path=$lt_fix_srcfile_path | ||
16532 | |||
16533 | # Set to "yes" if exported symbols are required. | ||
16534 | always_export_symbols=$always_export_symbols | ||
16535 | |||
16536 | # The commands to list exported symbols. | ||
16537 | export_symbols_cmds=$lt_export_symbols_cmds | ||
16538 | |||
16539 | # Symbols that should not be listed in the preloaded symbols. | ||
16540 | exclude_expsyms=$lt_exclude_expsyms | ||
16541 | |||
16542 | # Symbols that must always be exported. | ||
16543 | include_expsyms=$lt_include_expsyms | ||
16544 | |||
16545 | # Commands necessary for linking programs (against libraries) with templates. | ||
16546 | prelink_cmds=$lt_prelink_cmds | ||
16547 | |||
16548 | # Specify filename containing input files. | ||
16549 | file_list_spec=$lt_file_list_spec | ||
16550 | |||
16551 | # How to hardcode a shared library path into an executable. | ||
16552 | hardcode_action=$hardcode_action | ||
16553 | |||
16554 | # ### END LIBTOOL CONFIG | ||
16555 | |||
16556 | _LT_EOF | ||
16557 | |||
16558 | case $host_os in | ||
16559 | aix3*) | ||
16560 | cat <<\_LT_EOF >> "$cfgfile" | ||
16561 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
16562 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
16563 | # vanish in a puff of smoke. | ||
16564 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
16565 | COLLECT_NAMES= | ||
16566 | export COLLECT_NAMES | ||
16567 | fi | ||
16568 | _LT_EOF | ||
16569 | ;; | ||
16570 | esac | ||
16571 | |||
16572 | |||
16573 | ltmain="$ac_aux_dir/ltmain.sh" | ||
16574 | |||
16575 | |||
16576 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
16577 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
16578 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
16579 | # is reportedly fixed, but why not run on old versions too? | ||
16580 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
16581 | || (rm -f "$cfgfile"; exit 1) | ||
16582 | |||
16583 | case $xsi_shell in | ||
16584 | yes) | ||
16585 | cat << \_LT_EOF >> "$cfgfile" | ||
16586 | |||
16587 | # func_dirname file append nondir_replacement | ||
16588 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
16589 | # otherwise set result to NONDIR_REPLACEMENT. | ||
16590 | func_dirname () | ||
16591 | { | ||
16592 | case ${1} in | ||
16593 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
16594 | * ) func_dirname_result="${3}" ;; | ||
16595 | esac | ||
16596 | } | ||
16597 | |||
16598 | # func_basename file | ||
16599 | func_basename () | ||
16600 | { | ||
16601 | func_basename_result="${1##*/}" | ||
16602 | } | ||
16603 | |||
16604 | # func_dirname_and_basename file append nondir_replacement | ||
16605 | # perform func_basename and func_dirname in a single function | ||
16606 | # call: | ||
16607 | # dirname: Compute the dirname of FILE. If nonempty, | ||
16608 | # add APPEND to the result, otherwise set result | ||
16609 | # to NONDIR_REPLACEMENT. | ||
16610 | # value returned in "$func_dirname_result" | ||
16611 | # basename: Compute filename of FILE. | ||
16612 | # value retuned in "$func_basename_result" | ||
16613 | # Implementation must be kept synchronized with func_dirname | ||
16614 | # and func_basename. For efficiency, we do not delegate to | ||
16615 | # those functions but instead duplicate the functionality here. | ||
16616 | func_dirname_and_basename () | ||
16617 | { | ||
16618 | case ${1} in | ||
16619 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
16620 | * ) func_dirname_result="${3}" ;; | ||
16621 | esac | ||
16622 | func_basename_result="${1##*/}" | ||
16623 | } | ||
16624 | |||
16625 | # func_stripname prefix suffix name | ||
16626 | # strip PREFIX and SUFFIX off of NAME. | ||
16627 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
16628 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
16629 | # dot (in which case that matches only a dot). | ||
16630 | func_stripname () | ||
16631 | { | ||
16632 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
16633 | # positional parameters, so assign one to ordinary parameter first. | ||
16634 | func_stripname_result=${3} | ||
16635 | func_stripname_result=${func_stripname_result#"${1}"} | ||
16636 | func_stripname_result=${func_stripname_result%"${2}"} | ||
16637 | } | ||
16638 | |||
16639 | # func_opt_split | ||
16640 | func_opt_split () | ||
16641 | { | ||
16642 | func_opt_split_opt=${1%%=*} | ||
16643 | func_opt_split_arg=${1#*=} | ||
16644 | } | ||
16645 | |||
16646 | # func_lo2o object | ||
16647 | func_lo2o () | ||
16648 | { | ||
16649 | case ${1} in | ||
16650 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
16651 | *) func_lo2o_result=${1} ;; | ||
16652 | esac | ||
16653 | } | ||
16654 | |||
16655 | # func_xform libobj-or-source | ||
16656 | func_xform () | ||
16657 | { | ||
16658 | func_xform_result=${1%.*}.lo | ||
16659 | } | ||
16660 | |||
16661 | # func_arith arithmetic-term... | ||
16662 | func_arith () | ||
16663 | { | ||
16664 | func_arith_result=$(( $* )) | ||
16665 | } | ||
16666 | |||
16667 | # func_len string | ||
16668 | # STRING may not start with a hyphen. | ||
16669 | func_len () | ||
16670 | { | ||
16671 | func_len_result=${#1} | ||
16672 | } | ||
16673 | |||
16674 | _LT_EOF | ||
16675 | ;; | ||
16676 | *) # Bourne compatible functions. | ||
16677 | cat << \_LT_EOF >> "$cfgfile" | ||
16678 | |||
16679 | # func_dirname file append nondir_replacement | ||
16680 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
16681 | # otherwise set result to NONDIR_REPLACEMENT. | ||
16682 | func_dirname () | ||
16683 | { | ||
16684 | # Extract subdirectory from the argument. | ||
16685 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
16686 | if test "X$func_dirname_result" = "X${1}"; then | ||
16687 | func_dirname_result="${3}" | ||
16688 | else | ||
16689 | func_dirname_result="$func_dirname_result${2}" | ||
16690 | fi | ||
16691 | } | ||
16692 | |||
16693 | # func_basename file | ||
16694 | func_basename () | ||
16695 | { | ||
16696 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
16697 | } | ||
16698 | |||
16699 | |||
16700 | # func_stripname prefix suffix name | ||
16701 | # strip PREFIX and SUFFIX off of NAME. | ||
16702 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
16703 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
16704 | # dot (in which case that matches only a dot). | ||
16705 | # func_strip_suffix prefix name | ||
16706 | func_stripname () | ||
16707 | { | ||
16708 | case ${2} in | ||
16709 | .*) func_stripname_result=`$ECHO "X${3}" \ | ||
16710 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | ||
16711 | *) func_stripname_result=`$ECHO "X${3}" \ | ||
16712 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
16713 | esac | ||
16714 | } | ||
16715 | |||
16716 | # sed scripts: | ||
16717 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
16718 | my_sed_long_arg='1s/^-[^=]*=//' | ||
16719 | |||
16720 | # func_opt_split | ||
16721 | func_opt_split () | ||
16722 | { | ||
16723 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | ||
16724 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | ||
16725 | } | ||
16726 | |||
16727 | # func_lo2o object | ||
16728 | func_lo2o () | ||
16729 | { | ||
16730 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | ||
16731 | } | ||
16732 | |||
16733 | # func_xform libobj-or-source | ||
16734 | func_xform () | ||
16735 | { | ||
16736 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | ||
16737 | } | ||
16738 | |||
16739 | # func_arith arithmetic-term... | ||
16740 | func_arith () | ||
16741 | { | ||
16742 | func_arith_result=`expr "$@"` | ||
16743 | } | ||
16744 | |||
16745 | # func_len string | ||
16746 | # STRING may not start with a hyphen. | ||
16747 | func_len () | ||
16748 | { | ||
16749 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
16750 | } | ||
16751 | |||
16752 | _LT_EOF | ||
16753 | esac | ||
16754 | |||
16755 | case $lt_shell_append in | ||
16756 | yes) | ||
16757 | cat << \_LT_EOF >> "$cfgfile" | ||
16758 | |||
16759 | # func_append var value | ||
16760 | # Append VALUE to the end of shell variable VAR. | ||
16761 | func_append () | ||
16762 | { | ||
16763 | eval "$1+=\$2" | ||
16764 | } | ||
16765 | _LT_EOF | ||
16766 | ;; | ||
16767 | *) | ||
16768 | cat << \_LT_EOF >> "$cfgfile" | ||
16769 | |||
16770 | # func_append var value | ||
16771 | # Append VALUE to the end of shell variable VAR. | ||
16772 | func_append () | ||
16773 | { | ||
16774 | eval "$1=\$$1\$2" | ||
16775 | } | ||
16776 | |||
16777 | _LT_EOF | ||
16778 | ;; | ||
16779 | esac | ||
16780 | |||
16781 | |||
16782 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
16783 | || (rm -f "$cfgfile"; exit 1) | ||
16784 | |||
16785 | mv -f "$cfgfile" "$ofile" || | ||
16786 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
16787 | chmod +x "$ofile" | ||
16788 | |||
16789 | ;; | ||
16790 | |||
16791 | esac | ||
16792 | done # for ac_tag | ||
16793 | |||
16794 | |||
16795 | as_fn_exit 0 | ||
16796 | _ACEOF | ||
16797 | ac_clean_files=$ac_clean_files_save | ||
16798 | |||
16799 | test $ac_write_fail = 0 || | ||
16800 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
16801 | |||
16802 | |||
16803 | # configure is writing to config.log, and then calls config.status. | ||
16804 | # config.status does its own redirection, appending to config.log. | ||
16805 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
16806 | # by configure, so config.status won't be able to write to it; its | ||
16807 | # output is simply discarded. So we exec the FD to /dev/null, | ||
16808 | # effectively closing config.log, so it can be properly (re)opened and | ||
16809 | # appended to by config.status. When coming back to configure, we | ||
16810 | # need to make the FD available again. | ||
16811 | if test "$no_create" != yes; then | ||
16812 | ac_cs_success=: | ||
16813 | ac_config_status_args= | ||
16814 | test "$silent" = yes && | ||
16815 | ac_config_status_args="$ac_config_status_args --quiet" | ||
16816 | exec 5>/dev/null | ||
16817 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
16818 | exec 5>>config.log | ||
16819 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
16820 | # would make configure fail if this is the last instruction. | ||
16821 | $ac_cs_success || as_fn_exit 1 | ||
16822 | fi | ||
16823 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
16824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
16825 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
16826 | fi | ||
16827 | |||
16828 | |||
16829 | |||
16830 | ##################################################################### | ||
16831 | ## Info | ||
16832 | |||
16833 | echo | ||
16834 | echo | ||
16835 | echo | ||
16836 | echo "------------------------------------------------------------------------" | ||
16837 | echo "$PACKAGE_NAME $PACKAGE_VERSION" | ||
16838 | echo "------------------------------------------------------------------------" | ||
16839 | echo | ||
16840 | echo "Configuration Options Summary:" | ||
16841 | echo | ||
16842 | echo " Amalgamation.........: ${do_amalgamation}" | ||
16843 | echo " Secure layer.........: ${secure_layer}" | ||
16844 | if test "x${have_gnutls}" = "xyes" || test "x${have_openssl}" = "xyes" ; then | ||
16845 | echo " Cipher support.....: ${have_cipher}" | ||
16846 | echo " Signature..........: ${have_signature}" | ||
16847 | fi | ||
16848 | echo | ||
16849 | echo " Old eet file format..: ${old_eet_file_format}" | ||
16850 | echo | ||
16851 | echo " Tests................: ${enable_tests}" | ||
16852 | echo " Coverage.............: ${enable_coverage}" | ||
16853 | echo | ||
16854 | echo " Build eet............: $have_eet" | ||
16855 | echo | ||
16856 | echo " Documentation........: ${build_doc}" | ||
16857 | if test "x${build_doc}" = "xyes" ; then | ||
16858 | echo " Building...........: make doc" | ||
16859 | fi | ||
16860 | echo " Examples.............: ${build_examples}" | ||
16861 | if test "x${build_examples}" = "xyes" ; then | ||
16862 | echo " Install............: ${install_examples}" | ||
16863 | fi | ||
16864 | echo | ||
16865 | echo "Compilation............: make (or gmake)" | ||
16866 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
16867 | echo " CFLAGS...............: $CFLAGS" | ||
16868 | echo " LDFLAGS..............: $LDFLAGS" | ||
16869 | echo | ||
16870 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
16871 | echo " prefix...............: $prefix" | ||
16872 | echo | ||
diff --git a/libraries/eet/configure.ac b/libraries/eet/configure.ac deleted file mode 100644 index eb3c7e5..0000000 --- a/libraries/eet/configure.ac +++ /dev/null | |||
@@ -1,549 +0,0 @@ | |||
1 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
2 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
3 | m4_define([v_maj], [1]) | ||
4 | m4_define([v_min], [6]) | ||
5 | m4_define([v_mic], [0]) | ||
6 | m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v '\(export\|Unversioned directory\)' || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n'])) | ||
7 | m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))]) | ||
8 | ##-- When released, remove the dnl on the below line | ||
9 | m4_undefine([v_rev]) | ||
10 | ##-- When doing snapshots - change soname. remove dnl on below line | ||
11 | dnl m4_define([relname], [ver-pre-svn-05]) | ||
12 | dnl m4_define([v_rel], [-release relname]) | ||
13 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
14 | m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])]) | ||
15 | m4_define([lt_cur], m4_eval(v_maj + v_min)) | ||
16 | m4_define([lt_rev], v_mic) | ||
17 | m4_define([lt_age], v_min) | ||
18 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
19 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
20 | |||
21 | AC_INIT([eet], [v_ver]-alpha, [enlightenment-devel@lists.sourceforge.net]) | ||
22 | AC_PREREQ([2.52]) | ||
23 | AC_CONFIG_SRCDIR([configure.ac]) | ||
24 | AC_CONFIG_MACRO_DIR([m4]) | ||
25 | |||
26 | AC_CONFIG_HEADERS([config.h]) | ||
27 | AH_TOP([ | ||
28 | #ifndef EFL_CONFIG_H__ | ||
29 | #define EFL_CONFIG_H__ | ||
30 | ]) | ||
31 | AH_BOTTOM([ | ||
32 | #endif /* EFL_CONFIG_H__ */ | ||
33 | ]) | ||
34 | |||
35 | AM_INIT_AUTOMAKE([1.6 dist-bzip2]) | ||
36 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | ||
37 | |||
38 | AC_LIBTOOL_WIN32_DLL | ||
39 | define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl | ||
40 | define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl | ||
41 | AC_PROG_LIBTOOL | ||
42 | |||
43 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
44 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
45 | m4_ifdef([v_rev], , [m4_define([v_rev], [0])]) | ||
46 | m4_ifdef([v_rel], , [m4_define([v_rel], [])]) | ||
47 | AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version]) | ||
48 | AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version]) | ||
49 | AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version]) | ||
50 | AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison]) | ||
51 | version_info="lt_cur:lt_rev:lt_age" | ||
52 | release_info="v_rel" | ||
53 | AC_SUBST(version_info) | ||
54 | AC_SUBST(release_info) | ||
55 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
56 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
57 | VMAJ=v_maj | ||
58 | AC_SUBST(VMAJ) | ||
59 | |||
60 | |||
61 | ### Needed information | ||
62 | |||
63 | AC_CANONICAL_BUILD | ||
64 | AC_CANONICAL_HOST | ||
65 | |||
66 | ### Default options with respect to host | ||
67 | |||
68 | want_gnutls="auto" | ||
69 | want_openssl="auto" | ||
70 | want_cipher="yes" | ||
71 | want_signature="yes" | ||
72 | |||
73 | requirement_eet="" | ||
74 | |||
75 | |||
76 | ### Additional options to configure | ||
77 | |||
78 | # Amalgamation | ||
79 | |||
80 | AC_ARG_ENABLE([amalgamation], | ||
81 | [AC_HELP_STRING([--enable-amalgamation], [enable generation of one single file with all source code in it, helps compiler optimizations.])], | ||
82 | [if test "x${enableval}" = "xyes"; then | ||
83 | do_amalgamation="yes" | ||
84 | else | ||
85 | do_amalgamation="no" | ||
86 | fi | ||
87 | ], | ||
88 | [do_amalgamation="no"] | ||
89 | ) | ||
90 | AM_CONDITIONAL(EET_AMALGAMATION, test "x${do_amalgamation}" = "xyes") | ||
91 | |||
92 | EFL_ENABLE_BIN([eet]) | ||
93 | |||
94 | # Old eet file format support | ||
95 | |||
96 | old_eet_file_format="yes" | ||
97 | AC_ARG_ENABLE(old-eet-file-format, | ||
98 | [AC_HELP_STRING( | ||
99 | [--disable-old-eet-file-format], | ||
100 | [disable old eet file format support. [[default=enabled]]] | ||
101 | )], | ||
102 | [old_eet_file_format=$enableval] | ||
103 | ) | ||
104 | AC_MSG_CHECKING([whether to support old eet file format]) | ||
105 | AC_MSG_RESULT([${old_eet_file_format}]) | ||
106 | |||
107 | if test "x${old_eet_file_format}" = "xyes" ; then | ||
108 | AC_DEFINE(EET_OLD_EET_FILE_FORMAT, 1, [support old eet file format]) | ||
109 | else | ||
110 | AC_DEFINE(EET_OLD_EET_FILE_FORMAT, 0, [support old eet file format]) | ||
111 | fi | ||
112 | |||
113 | # Openssl support | ||
114 | |||
115 | AC_ARG_ENABLE([openssl], | ||
116 | [AC_HELP_STRING([--disable-openssl], [disable openssl eet support])], | ||
117 | [want_openssl=$enableval] | ||
118 | ) | ||
119 | AC_MSG_CHECKING([whether to use OpenSSL]) | ||
120 | AC_MSG_RESULT([${want_openssl}]) | ||
121 | |||
122 | # Cryptography support | ||
123 | |||
124 | AC_ARG_ENABLE([cipher], | ||
125 | [AC_HELP_STRING([--disable-cipher], [disable cipher support for eet API])], | ||
126 | [want_cipher=$enableval] | ||
127 | ) | ||
128 | AC_MSG_CHECKING([whether to use cipher]) | ||
129 | AC_MSG_RESULT([${want_cipher}]) | ||
130 | |||
131 | AC_ARG_ENABLE([signature], | ||
132 | [AC_HELP_STRING([--disable-signature], [disable signature file support for eet])], | ||
133 | [want_signature=$enableval] | ||
134 | ) | ||
135 | AC_MSG_CHECKING([whether to use signature]) | ||
136 | AC_MSG_RESULT([${want_signature}]) | ||
137 | |||
138 | # Assert or fail. | ||
139 | prefer_assert="no" | ||
140 | AC_ARG_ENABLE([assert], | ||
141 | [AC_HELP_STRING([--enable-assert], [enable assert, [[default=disabled]]])], | ||
142 | [prefer_assert=$enableval] | ||
143 | ) | ||
144 | |||
145 | # Examples | ||
146 | |||
147 | AC_ARG_ENABLE([install-examples], | ||
148 | [AC_HELP_STRING([--disable-install-examples], | ||
149 | [disable installing examples (compiled or just source). @<:@default==enabled@:>@])], | ||
150 | [ | ||
151 | if test "x${enableval}" = "xyes" ; then | ||
152 | install_examples="yes" | ||
153 | else | ||
154 | install_examples="no" | ||
155 | fi | ||
156 | ], | ||
157 | [install_examples="yes"]) | ||
158 | AM_CONDITIONAL([INSTALL_EXAMPLES], [test "x${install_examples}" = "xyes"]) | ||
159 | |||
160 | AC_ARG_ENABLE([build-examples], | ||
161 | [AC_HELP_STRING([--enable-build-examples], | ||
162 | [enable building examples. @<:@default==disabled@:>@])], | ||
163 | [ | ||
164 | if test "x${enableval}" = "xyes" ; then | ||
165 | build_examples="yes" | ||
166 | else | ||
167 | build_examples="no" | ||
168 | fi | ||
169 | ], | ||
170 | [build_examples="no"]) | ||
171 | AM_CONDITIONAL([BUILD_EXAMPLES], [test "x${build_examples}" = "xyes"]) | ||
172 | |||
173 | # Unit tests, coverage and benchmarking | ||
174 | |||
175 | EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"]) | ||
176 | EFL_CHECK_COVERAGE([${enable_tests}], [enable_coverage="yes"], [enable_coverage="no"]) | ||
177 | |||
178 | if test "x${prefer_assert}" = "xno"; then | ||
179 | DEBUG_CFLAGS="-DNDEBUG" | ||
180 | else | ||
181 | # use debug symbols and set DEBUG if coverage support is enabled | ||
182 | DEBUG_CFLAGS="${EFL_DEBUG_CFLAGS}" | ||
183 | fi | ||
184 | AC_SUBST(DEBUG_CFLAGS) | ||
185 | |||
186 | |||
187 | ### Checks for programs | ||
188 | AC_PROG_CC | ||
189 | |||
190 | # pkg-config | ||
191 | PKG_PROG_PKG_CONFIG | ||
192 | |||
193 | # Check whether pkg-config supports Requires.private | ||
194 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | ||
195 | pkgconfig_requires_private="Requires.private" | ||
196 | else | ||
197 | pkgconfig_requires_private="Requires" | ||
198 | fi | ||
199 | AC_SUBST(pkgconfig_requires_private) | ||
200 | |||
201 | |||
202 | # doxygen program for documentation building | ||
203 | |||
204 | EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"]) | ||
205 | |||
206 | ### Checks for libraries | ||
207 | |||
208 | # Evil library for compilation on Windows | ||
209 | |||
210 | EFL_EET_BUILD="" | ||
211 | case "$host_os" in | ||
212 | mingw*) | ||
213 | PKG_CHECK_MODULES([EVIL], [evil >= 1.0.0]) | ||
214 | AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed]) | ||
215 | requirement_eet="evil ${requirement_eet}" | ||
216 | EFL_EET_BUILD="-DEFL_EET_BUILD" | ||
217 | ;; | ||
218 | esac | ||
219 | AC_SUBST(EFL_EET_BUILD) | ||
220 | |||
221 | EET_LIBS="" | ||
222 | case "$host_os" in | ||
223 | mingw32ce*) | ||
224 | EET_LIBS="-lws2" | ||
225 | ;; | ||
226 | mingw*) | ||
227 | EET_LIBS="-lws2_32" | ||
228 | ;; | ||
229 | esac | ||
230 | AC_SUBST(EET_LIBS) | ||
231 | |||
232 | # Eina library | ||
233 | |||
234 | PKG_CHECK_MODULES(EINA, [eina >= 1.2.0]) | ||
235 | requirement_eet="eina >= 1.2.0 ${requirement_eet}" | ||
236 | |||
237 | ### Checks for portability layer | ||
238 | |||
239 | PKG_CHECK_MODULES([EXOTIC], | ||
240 | [exotic], | ||
241 | [enable_exotic="yes"], | ||
242 | [enable_exotic="no"]) | ||
243 | |||
244 | if test "x${enable_exotic}" = "xyes"; then | ||
245 | requirement_eet="exotic ${requirement_eet}" | ||
246 | |||
247 | AC_DEFINE([HAVE_EXOTIC_H], [1], [Define to 1 if you have Exotic.]) | ||
248 | fi | ||
249 | |||
250 | # Gnutls support | ||
251 | |||
252 | AC_ARG_ENABLE([gnutls], | ||
253 | [AC_HELP_STRING([--disable-gnutls], [disable gnutls eet support])], | ||
254 | [want_gnutls=$enableval] | ||
255 | ) | ||
256 | AC_MSG_CHECKING([whether to use Gnutls]) | ||
257 | AC_MSG_RESULT([${want_gnutls}]) | ||
258 | |||
259 | # Gnutls library | ||
260 | have_gnutls="no" | ||
261 | if test "x${want_gnutls}" = "xyes" || test "x${want_gnutls}" = "xauto" ; then | ||
262 | PKG_CHECK_MODULES(GNUTLS, [gnutls >= 1.7.6], | ||
263 | [ | ||
264 | have_gnutls="yes" | ||
265 | want_openssl="no" | ||
266 | AC_DEFINE(HAVE_GNUTLS, 1, [Have Gnutls support]) | ||
267 | requirement_eet="gnutls ${requirement_eet}" | ||
268 | ], | ||
269 | [have_gnutls="no"]) | ||
270 | if test "x${have_gnutls}" = "xyes" ; then | ||
271 | AC_PATH_GENERIC([libgcrypt], [], [have_gnutls="yes"], [have_gnutls="no"]) | ||
272 | if test "x${have_gnutls}" = "xyes" ; then | ||
273 | GNUTLS_CFLAGS="${GNUTLS_CFLAGS} ${LIBGCRYPT_CFLAGS}" | ||
274 | GNUTLS_LIBS="${GNUTLS_LIBS} ${LIBGCRYPT_LIBS}" | ||
275 | fi | ||
276 | fi | ||
277 | fi | ||
278 | |||
279 | # Specific GNUTLS improvement | ||
280 | |||
281 | new_gnutls_api="yes" | ||
282 | AC_ARG_ENABLE(new-gnutls-api, | ||
283 | [AC_HELP_STRING( | ||
284 | [--disable-new-gnutls-api], | ||
285 | [enable use of gnutls_x509_crt_verify_hash. [[default=enable]]] | ||
286 | )], | ||
287 | [new_gnutls_api=$enableval] | ||
288 | ) | ||
289 | AC_MSG_CHECKING([whether to use gnutls_x509_crt_verify_hash]) | ||
290 | AC_MSG_RESULT([${new_gnutls_api}]) | ||
291 | |||
292 | if test "x${new_gnutls_api}" = "xyes" ; then | ||
293 | tmp_CFLAGS="${CFLAGS}" | ||
294 | tmp_LIBS="${LIBS}" | ||
295 | CFLAGS="${GNUTLS_CFLAGS}" | ||
296 | LIBS="${GNUTLS_LIBS}" | ||
297 | AC_CHECK_LIB(gnutls, gnutls_x509_crt_verify_hash, | ||
298 | [ new_gnutls_api="yes" ], | ||
299 | [ new_gnutls_api="no" ] | ||
300 | ) | ||
301 | CFLAGS="${tmp_CFLAGS}" | ||
302 | LIBS="${tmp_LIBS}" | ||
303 | |||
304 | if test "x${new_gnutls_api}" = "xyes"; then | ||
305 | AC_DEFINE(EET_USE_NEW_GNUTLS_API, 1, [use gnutls_x509_crt_verify_hash]) | ||
306 | fi | ||
307 | fi | ||
308 | |||
309 | use_gnutls_privkey_sign_data="no" | ||
310 | if test "x${want_gnutls}" = "xyes" -o "x${want_gnutls}" = "xauto"; then | ||
311 | tmp_CFLAGS="${CFLAGS}" | ||
312 | tmp_LIBS="${LIBS}" | ||
313 | CFLAGS="${GNUTLS_CFLAGS}" | ||
314 | LIBS="${GNUTLS_LIBS}" | ||
315 | AC_CHECK_LIB(gnutls, gnutls_privkey_sign_data, | ||
316 | [ use_gnutls_privkey_sign_data="yes" ], | ||
317 | [ use_gnutls_privkey_sign_data="no" ] | ||
318 | ) | ||
319 | CFLAGS="${tmp_CFLAGS}" | ||
320 | LIBS="${tmp_LIBS}" | ||
321 | |||
322 | if test "x${use_gnutls_privkey_sign_data}" = "xyes"; then | ||
323 | AC_DEFINE(EET_USE_NEW_PRIVKEY_SIGN_DATA, 1, [use gnutls_privkey_sign_data]) | ||
324 | fi | ||
325 | fi | ||
326 | AC_MSG_CHECKING([whether to use gnutls_privkey_sign_data]) | ||
327 | AC_MSG_RESULT([${use_gnutls_privkey_sign_data}]) | ||
328 | |||
329 | use_gnutls_pubkey_verify_hash="no" | ||
330 | if test "x${want_gnutls}" = "xyes" -o "x${want_gnutls}" = "xauto"; then | ||
331 | tmp_CFLAGS="${CFLAGS}" | ||
332 | tmp_LIBS="${LIBS}" | ||
333 | CFLAGS="${GNUTLS_CFLAGS}" | ||
334 | LIBS="${GNUTLS_LIBS}" | ||
335 | AC_CHECK_LIB(gnutls, gnutls_pubkey_verify_hash, | ||
336 | [ use_gnutls_pubkey_verify_hash="yes" ], | ||
337 | [ use_gnutls_pubkey_verify_hash="no" ] | ||
338 | ) | ||
339 | CFLAGS="${tmp_CFLAGS}" | ||
340 | LIBS="${tmp_LIBS}" | ||
341 | |||
342 | if test "x${use_gnutls_pubkey_verify_hash}" = "xyes"; then | ||
343 | AC_DEFINE(EET_USE_NEW_PUBKEY_VERIFY_HASH, 1, [use gnutls_pubkey_verify_hash]) | ||
344 | fi | ||
345 | fi | ||
346 | AC_MSG_CHECKING([whether to use gnutls_pubkey_verify_hash]) | ||
347 | AC_MSG_RESULT([${use_gnutls_pubkey_verify_hash}]) | ||
348 | |||
349 | # Openssl library | ||
350 | have_openssl="no" | ||
351 | if test "x${want_openssl}" = "xyes" || test "x${want_openssl}" = "xauto" ; then | ||
352 | PKG_CHECK_MODULES(OPENSSL, openssl, | ||
353 | [ | ||
354 | have_openssl="yes" | ||
355 | AC_DEFINE(HAVE_OPENSSL, 1, [Have Openssl support]) | ||
356 | requirement_eet="openssl ${requirement_eet}" | ||
357 | ], | ||
358 | [have_openssl="no"]) | ||
359 | fi | ||
360 | |||
361 | if test "x${have_gnutls}" = "xyes" ; then | ||
362 | secure_layer="GnuTLS" | ||
363 | elif test "x${have_openssl}" = "xyes" ; then | ||
364 | secure_layer="OpenSSL" | ||
365 | else | ||
366 | secure_layer="no" | ||
367 | fi | ||
368 | |||
369 | have_cipher="no" | ||
370 | if test "x${have_gnutls}" = "xyes" && test "x${want_cipher}" = "xyes" ; then | ||
371 | have_cipher="yes" | ||
372 | AC_DEFINE(HAVE_CIPHER, 1, [Have cipher support built in eet]) | ||
373 | elif test "x${have_openssl}" = "xyes" && test "x${want_cipher}" = "xyes" ; then | ||
374 | have_cipher="yes" | ||
375 | AC_DEFINE(HAVE_CIPHER, 1, [Have cipher support built in eet]) | ||
376 | fi | ||
377 | |||
378 | AC_MSG_CHECKING(whether to activate cipher support in eet) | ||
379 | AC_MSG_RESULT(${have_cipher}) | ||
380 | |||
381 | have_signature="no" | ||
382 | if test "x${have_gnutls}" = "xyes" && test "x${want_signature}" = "xyes" ; then | ||
383 | have_signature="yes" | ||
384 | AC_DEFINE(HAVE_SIGNATURE, 1, [Have signature support for eet file]) | ||
385 | elif test "x${have_openssl}" = "xyes" && test "x${want_signature}" = "xyes" ; then | ||
386 | have_signature="yes" | ||
387 | AC_DEFINE(HAVE_SIGNATURE, 1, [Have signature support for eet file]) | ||
388 | fi | ||
389 | |||
390 | AC_MSG_CHECKING(whether to activate signature support in eet) | ||
391 | AC_MSG_RESULT(${have_signature}) | ||
392 | |||
393 | ### Checks for header files | ||
394 | |||
395 | AC_CHECK_HEADER([zlib.h], | ||
396 | [dummy="yes"], | ||
397 | [AC_MSG_ERROR("Cannot find zlib.h. Make sure your CFLAGS environment variable contains include lines for the location of this file")]) | ||
398 | |||
399 | AC_CHECK_HEADER([jpeglib.h], | ||
400 | [dummy="yes"], | ||
401 | [AC_MSG_ERROR("Cannot find jpeglib.h. Make sure your CFLAGS environment variable contains include lines for the location of this file")]) | ||
402 | |||
403 | AC_CHECK_HEADERS(netinet/in.h unistd.h) | ||
404 | EFL_CHECK_PATH_MAX | ||
405 | |||
406 | ### Checks for types | ||
407 | |||
408 | |||
409 | ### Checks for structures | ||
410 | |||
411 | |||
412 | ### Checks for compiler characteristics | ||
413 | AM_PROG_CC_C_O | ||
414 | AC_C_CONST | ||
415 | AC_C_INLINE | ||
416 | AC_PROG_CC_STDC | ||
417 | AC_C___ATTRIBUTE__ | ||
418 | |||
419 | # Check whether the null pointer is zero on this arch | ||
420 | AC_TRY_RUN( | ||
421 | [ | ||
422 | #include <stdlib.h> | ||
423 | #include <inttypes.h> | ||
424 | int main (int argc, char **argv) { | ||
425 | void *foo = NULL; | ||
426 | uintptr_t bar = (uintptr_t)foo; | ||
427 | return (uintptr_t)foo; | ||
428 | } | ||
429 | ], | ||
430 | [have_null="yes"], | ||
431 | [have_null="no"], | ||
432 | [ | ||
433 | AC_MSG_WARN([Cannot check when cross-compiling -- assuming null is okay]) | ||
434 | have_null="yes" | ||
435 | ]) | ||
436 | AC_MSG_CHECKING([value of the null pointer]) | ||
437 | AC_MSG_RESULT([${have_null}]) | ||
438 | |||
439 | if test ! "x${have_null}" = "xyes" ; then | ||
440 | AC_MSG_WARN([Your system is a bit too funny, eet might not work properly]) | ||
441 | fi | ||
442 | |||
443 | # These are needed for fmemopen/open_memstream | ||
444 | AC_DEFINE(_GNU_SOURCE, , [Enable GNU extensions]) | ||
445 | |||
446 | EET_CPPFLAGS="" | ||
447 | EET_CFLAGS="" | ||
448 | case "$host_os" in | ||
449 | mingw32ce*) | ||
450 | EET_CPPFLAGS="-D_WIN32_WCE=0x0420" | ||
451 | ;; | ||
452 | mingw*) | ||
453 | EET_CPPFLAGS="-D_WIN32_WINNT=0x0501" | ||
454 | ;; | ||
455 | esac | ||
456 | AC_SUBST(EET_CPPFLAGS) | ||
457 | AC_SUBST(EET_CFLAGS) | ||
458 | |||
459 | |||
460 | ### Checks for linker characteristics | ||
461 | |||
462 | # use --enable-auto-import on Windows | ||
463 | |||
464 | lt_enable_auto_import="" | ||
465 | case "$host_os" in | ||
466 | mingw*) | ||
467 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
468 | ;; | ||
469 | esac | ||
470 | AC_SUBST(lt_enable_auto_import) | ||
471 | |||
472 | case "${host_os}" in | ||
473 | openbsd*) | ||
474 | ;; | ||
475 | *) | ||
476 | EFL_LINKER_FLAG([-Wl,--as-needed]) | ||
477 | ;; | ||
478 | esac | ||
479 | |||
480 | |||
481 | ### Checks for library functions | ||
482 | AC_ISC_POSIX | ||
483 | AC_FUNC_ALLOCA | ||
484 | |||
485 | AC_CHECK_FUNCS(fmemopen open_memstream realpath) | ||
486 | |||
487 | EFL_CHECK_FNMATCH([], [AC_MSG_ERROR([Cannot find fnmatch()])]) | ||
488 | |||
489 | |||
490 | AC_SUBST(requirement_eet) | ||
491 | |||
492 | AC_OUTPUT([ | ||
493 | Makefile | ||
494 | eet.pc | ||
495 | doc/Makefile | ||
496 | doc/Doxyfile | ||
497 | doc/eet.dox | ||
498 | src/Makefile | ||
499 | src/lib/Makefile | ||
500 | src/bin/Makefile | ||
501 | src/tests/Makefile | ||
502 | src/examples/Makefile | ||
503 | eet.spec | ||
504 | ]) | ||
505 | |||
506 | |||
507 | ##################################################################### | ||
508 | ## Info | ||
509 | |||
510 | echo | ||
511 | echo | ||
512 | echo | ||
513 | echo "------------------------------------------------------------------------" | ||
514 | echo "$PACKAGE_NAME $PACKAGE_VERSION" | ||
515 | echo "------------------------------------------------------------------------" | ||
516 | echo | ||
517 | echo "Configuration Options Summary:" | ||
518 | echo | ||
519 | echo " Amalgamation.........: ${do_amalgamation}" | ||
520 | echo " Secure layer.........: ${secure_layer}" | ||
521 | if test "x${have_gnutls}" = "xyes" || test "x${have_openssl}" = "xyes" ; then | ||
522 | echo " Cipher support.....: ${have_cipher}" | ||
523 | echo " Signature..........: ${have_signature}" | ||
524 | fi | ||
525 | echo | ||
526 | echo " Old eet file format..: ${old_eet_file_format}" | ||
527 | echo | ||
528 | echo " Tests................: ${enable_tests}" | ||
529 | echo " Coverage.............: ${enable_coverage}" | ||
530 | echo | ||
531 | echo " Build eet............: $have_eet" | ||
532 | echo | ||
533 | echo " Documentation........: ${build_doc}" | ||
534 | if test "x${build_doc}" = "xyes" ; then | ||
535 | echo " Building...........: make doc" | ||
536 | fi | ||
537 | echo " Examples.............: ${build_examples}" | ||
538 | if test "x${build_examples}" = "xyes" ; then | ||
539 | echo " Install............: ${install_examples}" | ||
540 | fi | ||
541 | echo | ||
542 | echo "Compilation............: make (or gmake)" | ||
543 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
544 | echo " CFLAGS...............: $CFLAGS" | ||
545 | echo " LDFLAGS..............: $LDFLAGS" | ||
546 | echo | ||
547 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
548 | echo " prefix...............: $prefix" | ||
549 | echo | ||