]>
Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
c906108c | 2 | # Guess values for system-dependent variables and create Makefiles. |
6bddc3e8 MF |
3 | # Generated by GNU Autoconf 2.69 for sim 0. |
4 | # | |
5 | # Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. | |
d0ac1c44 SM |
6 | # |
7 | # | |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
81ecdfbb | 9 | # |
c906108c SS |
10 | # |
11 | # This configure script is free software; the Free Software Foundation | |
12 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
b7026657 | 16 | |
81ecdfbb RW |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b7026657 AC |
20 | emulate sh |
21 | NULLCMD=: | |
81ecdfbb | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b7026657 AC |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
25 | setopt NO_GLOB_SUBST |
26 | else | |
27 | case `(set -o) 2>/dev/null` in #( | |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
32 | esac | |
b7026657 | 33 | fi |
b7026657 | 34 | |
81ecdfbb RW |
35 | |
36 | as_nl=' | |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
b7026657 | 52 | else |
81ecdfbb RW |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
b7026657 AC |
81 | fi |
82 | ||
83 | ||
81ecdfbb RW |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
89 | IFS=" "" $as_nl" | |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 92 | as_myself= |
81ecdfbb RW |
93 | case $0 in #(( |
94 | *[\\/]* ) as_myself=$0 ;; | |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | done | |
102 | IFS=$as_save_IFS | |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | exit 1 | |
114 | fi | |
115 | ||
116 | # Unset variables that we do not need and which cause bugs (e.g. in | |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 | done | |
b7026657 AC |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
81ecdfbb RW |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
d0ac1c44 SM |
137 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
81ecdfbb RW |
162 | if test "x$CONFIG_SHELL" = x; then |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
d0ac1c44 SM |
195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | |
81ecdfbb RW |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
c2783492 | 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
b5689863 MF |
201 | test \$(( 1 + 1 )) = 2 || exit 1 |
202 | ||
203 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
204 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
206 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
207 | PATH=/empty FPATH=/empty; export PATH FPATH | |
208 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
209 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
81ecdfbb RW |
210 | if (eval "$as_required") 2>/dev/null; then : |
211 | as_have_required=yes | |
212 | else | |
213 | as_have_required=no | |
214 | fi | |
215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
216 | ||
217 | else | |
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
219 | as_found=false | |
220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
b7026657 | 221 | do |
81ecdfbb RW |
222 | IFS=$as_save_IFS |
223 | test -z "$as_dir" && as_dir=. | |
224 | as_found=: | |
225 | case $as_dir in #( | |
226 | /*) | |
227 | for as_base in sh bash ksh sh5; do | |
228 | # Try only shells that exist, to save several forks. | |
229 | as_shell=$as_dir/$as_base | |
230 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | CONFIG_SHELL=$as_shell as_have_required=yes | |
233 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
234 | break 2 | |
235 | fi | |
236 | fi | |
237 | done;; | |
238 | esac | |
239 | as_found=false | |
240 | done | |
241 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
242 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
243 | CONFIG_SHELL=$SHELL as_have_required=yes | |
244 | fi; } | |
245 | IFS=$as_save_IFS | |
246 | ||
247 | ||
248 | if test "x$CONFIG_SHELL" != x; then : | |
d0ac1c44 SM |
249 | export CONFIG_SHELL |
250 | # We cannot yet assume a decent shell, so we have to provide a | |
251 | # neutralization value for shells without unset; and this also | |
252 | # works around shells that cannot unset nonexistent variables. | |
253 | # Preserve -v and -x to the replacement shell. | |
254 | BASH_ENV=/dev/null | |
255 | ENV=/dev/null | |
256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
257 | case $- in # (((( | |
258 | *v*x* | *x*v* ) as_opts=-vx ;; | |
259 | *v* ) as_opts=-v ;; | |
260 | *x* ) as_opts=-x ;; | |
261 | * ) as_opts= ;; | |
262 | esac | |
263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
264 | # Admittedly, this is quite paranoid, since all the known shells bail | |
265 | # out after a failed `exec'. | |
266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
267 | exit 255 | |
81ecdfbb RW |
268 | fi |
269 | ||
270 | if test x$as_have_required = xno; then : | |
271 | $as_echo "$0: This script requires a shell more modern than all" | |
272 | $as_echo "$0: the shells that I found on your system." | |
273 | if test x${ZSH_VERSION+set} = xset ; then | |
274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
b7026657 | 276 | else |
6bddc3e8 MF |
277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
278 | $0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim | |
279 | $0: about your system, including any error possibly output | |
280 | $0: before this message. Then install a modern shell, or | |
281 | $0: manually run the script under such a shell if you do | |
282 | $0: have one." | |
b7026657 | 283 | fi |
81ecdfbb RW |
284 | exit 1 |
285 | fi | |
286 | fi | |
287 | fi | |
288 | SHELL=${CONFIG_SHELL-/bin/sh} | |
289 | export SHELL | |
290 | # Unset more variables known to interfere with behavior of common tools. | |
291 | CLICOLOR_FORCE= GREP_OPTIONS= | |
292 | unset CLICOLOR_FORCE GREP_OPTIONS | |
293 | ||
294 | ## --------------------- ## | |
295 | ## M4sh Shell Functions. ## | |
296 | ## --------------------- ## | |
297 | # as_fn_unset VAR | |
298 | # --------------- | |
299 | # Portably unset VAR. | |
300 | as_fn_unset () | |
301 | { | |
302 | { eval $1=; unset $1;} | |
303 | } | |
304 | as_unset=as_fn_unset | |
305 | ||
306 | # as_fn_set_status STATUS | |
307 | # ----------------------- | |
308 | # Set $? to STATUS, without forking. | |
309 | as_fn_set_status () | |
310 | { | |
311 | return $1 | |
312 | } # as_fn_set_status | |
313 | ||
314 | # as_fn_exit STATUS | |
315 | # ----------------- | |
316 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
317 | as_fn_exit () | |
318 | { | |
319 | set +e | |
320 | as_fn_set_status $1 | |
321 | exit $1 | |
322 | } # as_fn_exit | |
323 | ||
324 | # as_fn_mkdir_p | |
325 | # ------------- | |
326 | # Create "$as_dir" as a directory, including parents if necessary. | |
327 | as_fn_mkdir_p () | |
328 | { | |
329 | ||
330 | case $as_dir in #( | |
331 | -*) as_dir=./$as_dir;; | |
332 | esac | |
333 | test -d "$as_dir" || eval $as_mkdir_p || { | |
334 | as_dirs= | |
335 | while :; do | |
336 | case $as_dir in #( | |
337 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
338 | *) as_qdir=$as_dir;; | |
339 | esac | |
340 | as_dirs="'$as_qdir' $as_dirs" | |
341 | as_dir=`$as_dirname -- "$as_dir" || | |
342 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
343 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
344 | X"$as_dir" : 'X\(//\)$' \| \ | |
345 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
346 | $as_echo X"$as_dir" | | |
347 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)[^/].*/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\/\)$/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | /^X\(\/\).*/{ | |
360 | s//\1/ | |
361 | q | |
362 | } | |
363 | s/.*/./; q'` | |
364 | test -d "$as_dir" && break | |
365 | done | |
366 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 367 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
368 | |
369 | ||
370 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
371 | |
372 | # as_fn_executable_p FILE | |
373 | # ----------------------- | |
374 | # Test if FILE is an executable regular file. | |
375 | as_fn_executable_p () | |
376 | { | |
377 | test -f "$1" && test -x "$1" | |
378 | } # as_fn_executable_p | |
81ecdfbb RW |
379 | # as_fn_append VAR VALUE |
380 | # ---------------------- | |
381 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
382 | # advantage of any shell optimizations that allow amortized linear growth over | |
383 | # repeated appends, instead of the typical quadratic growth present in naive | |
384 | # implementations. | |
385 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
386 | eval 'as_fn_append () | |
387 | { | |
388 | eval $1+=\$2 | |
389 | }' | |
390 | else | |
391 | as_fn_append () | |
392 | { | |
393 | eval $1=\$$1\$2 | |
394 | } | |
395 | fi # as_fn_append | |
396 | ||
397 | # as_fn_arith ARG... | |
398 | # ------------------ | |
399 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
400 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
401 | # must be portable across $(()) and expr. | |
402 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
403 | eval 'as_fn_arith () | |
404 | { | |
405 | as_val=$(( $* )) | |
406 | }' | |
407 | else | |
408 | as_fn_arith () | |
409 | { | |
410 | as_val=`expr "$@" || test $? -eq 1` | |
411 | } | |
412 | fi # as_fn_arith | |
413 | ||
414 | ||
d0ac1c44 SM |
415 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
416 | # ---------------------------------------- | |
81ecdfbb RW |
417 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
418 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 419 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
420 | as_fn_error () |
421 | { | |
d0ac1c44 SM |
422 | as_status=$1; test $as_status -eq 0 && as_status=1 |
423 | if test "$4"; then | |
424 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
425 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
81ecdfbb | 426 | fi |
d0ac1c44 | 427 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
428 | as_fn_exit $as_status |
429 | } # as_fn_error | |
b7026657 | 430 | |
81ecdfbb RW |
431 | if expr a : '\(a\)' >/dev/null 2>&1 && |
432 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 AC |
433 | as_expr=expr |
434 | else | |
435 | as_expr=false | |
436 | fi | |
437 | ||
81ecdfbb | 438 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 AC |
439 | as_basename=basename |
440 | else | |
441 | as_basename=false | |
442 | fi | |
443 | ||
81ecdfbb RW |
444 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
445 | as_dirname=dirname | |
446 | else | |
447 | as_dirname=false | |
448 | fi | |
b7026657 | 449 | |
81ecdfbb | 450 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
451 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
452 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
453 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
454 | $as_echo X/"$0" | | |
455 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\/\)$/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | /^X\/\(\/\).*/{ | |
464 | s//\1/ | |
465 | q | |
466 | } | |
467 | s/.*/./; q'` | |
b7026657 | 468 | |
fdd6fa61 AG |
469 | # Avoid depending upon Character Ranges. |
470 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
471 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
472 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
473 | as_cr_digits='0123456789' | |
474 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
df1756f4 | 475 | |
b7026657 | 476 | |
81ecdfbb RW |
477 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
478 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
479 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
480 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
481 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
482 | sed -n ' | |
483 | p | |
484 | /[$]LINENO/= | |
485 | ' <$as_myself | | |
b7026657 | 486 | sed ' |
81ecdfbb RW |
487 | s/[$]LINENO.*/&-/ |
488 | t lineno | |
489 | b | |
490 | :lineno | |
b7026657 | 491 | N |
81ecdfbb RW |
492 | :loop |
493 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b7026657 | 494 | t loop |
81ecdfbb | 495 | s/-\n.*// |
b7026657 | 496 | ' >$as_me.lineno && |
81ecdfbb RW |
497 | chmod +x "$as_me.lineno" || |
498 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
b7026657 | 499 | |
d0ac1c44 SM |
500 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
501 | # already done that, so ensure we don't try to do so again and fall | |
502 | # in an infinite loop. This has already happened in practice. | |
503 | _as_can_reexec=no; export _as_can_reexec | |
b7026657 AC |
504 | # Don't try to exec as it changes $[0], causing all sort of problems |
505 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
506 | # original and so on. Autoconf is especially sensitive to this). |
507 | . "./$as_me.lineno" | |
b7026657 AC |
508 | # Exit status is that of the last command. |
509 | exit | |
510 | } | |
511 | ||
81ecdfbb RW |
512 | ECHO_C= ECHO_N= ECHO_T= |
513 | case `echo -n x` in #((((( | |
514 | -n*) | |
515 | case `echo 'xy\c'` in | |
516 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
517 | xy) ECHO_C='\c';; | |
518 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
519 | ECHO_T=' ';; | |
520 | esac;; | |
521 | *) | |
522 | ECHO_N='-n';; | |
b7026657 AC |
523 | esac |
524 | ||
81ecdfbb RW |
525 | rm -f conf$$ conf$$.exe conf$$.file |
526 | if test -d conf$$.dir; then | |
527 | rm -f conf$$.dir/conf$$.file | |
b7026657 | 528 | else |
81ecdfbb RW |
529 | rm -f conf$$.dir |
530 | mkdir conf$$.dir 2>/dev/null | |
b7026657 | 531 | fi |
81ecdfbb RW |
532 | if (echo >conf$$.file) 2>/dev/null; then |
533 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
fdd6fa61 | 534 | as_ln_s='ln -s' |
81ecdfbb RW |
535 | # ... but there are two gotchas: |
536 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
537 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 538 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 539 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 540 | as_ln_s='cp -pR' |
81ecdfbb RW |
541 | elif ln conf$$.file conf$$ 2>/dev/null; then |
542 | as_ln_s=ln | |
543 | else | |
d0ac1c44 | 544 | as_ln_s='cp -pR' |
fdd6fa61 | 545 | fi |
b7026657 | 546 | else |
d0ac1c44 | 547 | as_ln_s='cp -pR' |
b7026657 | 548 | fi |
81ecdfbb RW |
549 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
550 | rmdir conf$$.dir 2>/dev/null | |
b7026657 AC |
551 | |
552 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 553 | as_mkdir_p='mkdir -p "$as_dir"' |
b7026657 AC |
554 | else |
555 | test -d ./-p && rmdir ./-p | |
556 | as_mkdir_p=false | |
557 | fi | |
c906108c | 558 | |
d0ac1c44 SM |
559 | as_test_x='test -x' |
560 | as_executable_p=as_fn_executable_p | |
b7026657 AC |
561 | |
562 | # Sed expression to map a string onto a valid CPP name. | |
563 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
564 | ||
565 | # Sed expression to map a string onto a valid variable name. | |
566 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
567 | ||
b5689863 MF |
568 | SHELL=${CONFIG_SHELL-/bin/sh} |
569 | ||
b7026657 | 570 | |
d0ac1c44 SM |
571 | test -n "$DJDIR" || exec 7<&0 </dev/null |
572 | exec 6>&1 | |
b7026657 AC |
573 | |
574 | # Name of the host. | |
d0ac1c44 | 575 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
b7026657 AC |
576 | # so uname gets run too. |
577 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
578 | ||
b7026657 AC |
579 | # |
580 | # Initializations. | |
581 | # | |
c906108c | 582 | ac_default_prefix=/usr/local |
81ecdfbb | 583 | ac_clean_files= |
b7026657 | 584 | ac_config_libobj_dir=. |
81ecdfbb | 585 | LIBOBJS= |
b7026657 AC |
586 | cross_compiling=no |
587 | subdirs= | |
588 | MFLAGS= | |
589 | MAKEFLAGS= | |
fdd6fa61 | 590 | |
b7026657 | 591 | # Identity of this package. |
6bddc3e8 MF |
592 | PACKAGE_NAME='sim' |
593 | PACKAGE_TARNAME='sim' | |
594 | PACKAGE_VERSION='0' | |
595 | PACKAGE_STRING='sim 0' | |
596 | PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim' | |
597 | PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/' | |
598 | ||
c2783492 MF |
599 | # Factoring default headers for most tests. |
600 | ac_includes_default="\ | |
601 | #include <stdio.h> | |
602 | #ifdef HAVE_SYS_TYPES_H | |
603 | # include <sys/types.h> | |
604 | #endif | |
605 | #ifdef HAVE_SYS_STAT_H | |
606 | # include <sys/stat.h> | |
607 | #endif | |
608 | #ifdef STDC_HEADERS | |
609 | # include <stdlib.h> | |
610 | # include <stddef.h> | |
611 | #else | |
612 | # ifdef HAVE_STDLIB_H | |
613 | # include <stdlib.h> | |
614 | # endif | |
615 | #endif | |
616 | #ifdef HAVE_STRING_H | |
617 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
618 | # include <memory.h> | |
619 | # endif | |
620 | # include <string.h> | |
621 | #endif | |
622 | #ifdef HAVE_STRINGS_H | |
623 | # include <strings.h> | |
624 | #endif | |
625 | #ifdef HAVE_INTTYPES_H | |
626 | # include <inttypes.h> | |
627 | #endif | |
628 | #ifdef HAVE_STDINT_H | |
629 | # include <stdint.h> | |
630 | #endif | |
631 | #ifdef HAVE_UNISTD_H | |
632 | # include <unistd.h> | |
633 | #endif" | |
634 | ||
b15c5d7a MF |
635 | ac_header_list= |
636 | ac_func_list= | |
81ecdfbb | 637 | enable_option_checking=no |
6bddc3e8 MF |
638 | ac_subst_vars='am__EXEEXT_FALSE |
639 | am__EXEEXT_TRUE | |
640 | LTLIBOBJS | |
d73f39ee | 641 | SIM_INLINE |
456ef1c1 MF |
642 | sim_hw_sockser |
643 | sim_hw_cflags | |
644 | SIM_ENABLE_HW_FALSE | |
645 | SIM_ENABLE_HW_TRUE | |
1bf5c342 MF |
646 | cgen |
647 | cgendir | |
648 | CGEN_MAINT | |
b6b1c790 MF |
649 | SIM_ENABLE_IGEN_FALSE |
650 | SIM_ENABLE_IGEN_TRUE | |
81ecdfbb | 651 | subdirs |
a0e674c1 | 652 | SIM_PRIMARY_TARGET |
c2783492 MF |
653 | AM_BACKSLASH |
654 | AM_DEFAULT_VERBOSITY | |
655 | AM_DEFAULT_V | |
656 | AM_V | |
6bddc3e8 MF |
657 | am__fastdepCC_FALSE |
658 | am__fastdepCC_TRUE | |
659 | CCDEPMODE | |
660 | am__nodep | |
661 | AMDEPBACKSLASH | |
662 | AMDEP_FALSE | |
663 | AMDEP_TRUE | |
664 | am__quote | |
665 | am__include | |
666 | DEPDIR | |
6bddc3e8 MF |
667 | am__untar |
668 | am__tar | |
669 | AMTAR | |
670 | am__leading_dot | |
671 | SET_MAKE | |
6bddc3e8 MF |
672 | mkdir_p |
673 | MKDIR_P | |
674 | INSTALL_STRIP_PROGRAM | |
6bddc3e8 MF |
675 | install_sh |
676 | MAKEINFO | |
677 | AUTOHEADER | |
678 | AUTOMAKE | |
679 | AUTOCONF | |
680 | ACLOCAL | |
681 | VERSION | |
682 | PACKAGE | |
683 | CYGPATH_W | |
684 | am__isrc | |
8c379db2 TT |
685 | MAINT |
686 | MAINTAINER_MODE_FALSE | |
687 | MAINTAINER_MODE_TRUE | |
b5689863 MF |
688 | lt_cv_dlopen_libs |
689 | OTOOL64 | |
690 | OTOOL | |
691 | LIPO | |
692 | NMEDIT | |
693 | DSYMUTIL | |
694 | AWK | |
695 | STRIP | |
696 | OBJDUMP | |
697 | LN_S | |
698 | NM | |
699 | ac_ct_DUMPBIN | |
700 | DUMPBIN | |
701 | LD | |
702 | FGREP | |
703 | SED | |
704 | LIBTOOL | |
705 | PLUGINS_FALSE | |
706 | PLUGINS_TRUE | |
707 | zlibinc | |
708 | zlibdir | |
ce3ec98a MF |
709 | CATOBJEXT |
710 | GENCAT | |
711 | INSTOBJEXT | |
712 | DATADIRNAME | |
713 | CATALOGS | |
714 | POSUB | |
715 | GMSGFMT | |
716 | XGETTEXT | |
717 | INCINTL | |
718 | LIBINTL_DEP | |
719 | LIBINTL | |
720 | USE_NLS | |
a48ff3ef | 721 | LIBOBJS |
c2783492 MF |
722 | C_DIALECT |
723 | RANLIB | |
724 | AR | |
725 | LDFLAGS_FOR_BUILD | |
726 | CFLAGS_FOR_BUILD | |
aa0fca16 | 727 | RANLIB_FOR_BUILD |
c2783492 | 728 | CC_FOR_BUILD |
aa0fca16 | 729 | AR_FOR_BUILD |
a979f2a0 | 730 | DTC |
c2783492 MF |
731 | INSTALL_DATA |
732 | INSTALL_SCRIPT | |
733 | INSTALL_PROGRAM | |
734 | EGREP | |
735 | GREP | |
736 | CPP | |
737 | OBJEXT | |
738 | EXEEXT | |
739 | ac_ct_CC | |
740 | CPPFLAGS | |
741 | LDFLAGS | |
742 | CFLAGS | |
743 | CC | |
81ecdfbb RW |
744 | target_os |
745 | target_vendor | |
746 | target_cpu | |
747 | target | |
748 | host_os | |
749 | host_vendor | |
750 | host_cpu | |
751 | host | |
752 | build_os | |
753 | build_vendor | |
754 | build_cpu | |
755 | build | |
6dd65fc0 MF |
756 | REPORT_BUGS_TEXI |
757 | REPORT_BUGS_TO | |
758 | PKGVERSION | |
81ecdfbb RW |
759 | target_alias |
760 | host_alias | |
761 | build_alias | |
762 | LIBS | |
763 | ECHO_T | |
764 | ECHO_N | |
765 | ECHO_C | |
766 | DEFS | |
767 | mandir | |
768 | localedir | |
769 | libdir | |
770 | psdir | |
771 | pdfdir | |
772 | dvidir | |
773 | htmldir | |
774 | infodir | |
775 | docdir | |
776 | oldincludedir | |
777 | includedir | |
778 | localstatedir | |
779 | sharedstatedir | |
780 | sysconfdir | |
781 | datadir | |
782 | datarootdir | |
783 | libexecdir | |
784 | sbindir | |
785 | bindir | |
786 | program_transform_name | |
787 | prefix | |
788 | exec_prefix | |
789 | PACKAGE_URL | |
790 | PACKAGE_BUGREPORT | |
791 | PACKAGE_STRING | |
792 | PACKAGE_VERSION | |
793 | PACKAGE_TARNAME | |
794 | PACKAGE_NAME | |
795 | PATH_SEPARATOR | |
47ce766a MF |
796 | SHELL |
797 | WERROR_CFLAGS | |
798 | WARN_CFLAGS' | |
b7026657 | 799 | ac_subst_files='' |
81ecdfbb RW |
800 | ac_user_opts=' |
801 | enable_option_checking | |
6dd65fc0 MF |
802 | with_pkgversion |
803 | with_bugurl | |
b5689863 MF |
804 | with_system_zlib |
805 | enable_plugins | |
806 | enable_shared | |
807 | enable_static | |
808 | with_pic | |
809 | enable_fast_install | |
810 | with_gnu_ld | |
811 | enable_libtool_lock | |
8c379db2 | 812 | enable_maintainer_mode |
6bddc3e8 | 813 | enable_dependency_tracking |
c2783492 | 814 | enable_silent_rules |
81ecdfbb | 815 | enable_sim |
26da232c | 816 | enable_example_sims |
a0e674c1 | 817 | enable_targets |
ba307cdd | 818 | enable_sim_alignment |
dba333c1 | 819 | enable_sim_assert |
1bf5c342 | 820 | enable_cgen_maint |
04381273 | 821 | enable_sim_debug |
f9a4d543 | 822 | enable_sim_endian |
5ea45474 | 823 | enable_sim_environment |
456ef1c1 | 824 | enable_sim_hardware |
d73f39ee | 825 | enable_sim_inline |
04381273 MF |
826 | enable_sim_profile |
827 | enable_sim_stdio | |
828 | enable_sim_trace | |
47ce766a MF |
829 | enable_werror |
830 | enable_build_warnings | |
831 | enable_sim_build_warnings | |
81ecdfbb RW |
832 | ' |
833 | ac_precious_vars='build_alias | |
834 | host_alias | |
835 | target_alias | |
836 | CC | |
837 | CFLAGS | |
838 | LDFLAGS | |
839 | LIBS | |
5e25901f MF |
840 | CPPFLAGS |
841 | CPP' | |
2e8cf49e NC |
842 | ac_subdirs_all='aarch64 |
843 | arm | |
81ecdfbb | 844 | avr |
ef016f83 | 845 | bfin |
b26e2ae7 | 846 | bpf |
81ecdfbb RW |
847 | cr16 |
848 | cris | |
849 | d10v | |
850 | frv | |
851 | h8300 | |
852 | iq2000 | |
853 | lm32 | |
854 | m32c | |
855 | m32r | |
856 | m68hc11 | |
857 | mcore | |
bd30e45a | 858 | microblaze |
81ecdfbb RW |
859 | mips |
860 | mn10300 | |
861 | moxie | |
3346cfda | 862 | msp430 |
37f980dc | 863 | or1k |
ddd44b70 | 864 | pru |
b9249c46 | 865 | riscv |
87326c78 | 866 | rl78 |
4f8d4a38 | 867 | rx |
81ecdfbb RW |
868 | sh |
869 | erc32 | |
870 | ppc | |
f46e4eb7 | 871 | ft32 |
26da232c MF |
872 | v850 |
873 | example-synacor' | |
c906108c SS |
874 | |
875 | # Initialize some variables set by options. | |
b7026657 AC |
876 | ac_init_help= |
877 | ac_init_version=false | |
81ecdfbb RW |
878 | ac_unrecognized_opts= |
879 | ac_unrecognized_sep= | |
c906108c SS |
880 | # The variables have the same names as the options, with |
881 | # dashes changed to underlines. | |
b7026657 | 882 | cache_file=/dev/null |
c906108c | 883 | exec_prefix=NONE |
c906108c | 884 | no_create= |
c906108c SS |
885 | no_recursion= |
886 | prefix=NONE | |
887 | program_prefix=NONE | |
888 | program_suffix=NONE | |
889 | program_transform_name=s,x,x, | |
890 | silent= | |
891 | site= | |
892 | srcdir= | |
c906108c SS |
893 | verbose= |
894 | x_includes=NONE | |
895 | x_libraries=NONE | |
b7026657 AC |
896 | |
897 | # Installation directory options. | |
898 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
899 | # and all the variables that are supposed to be based on exec_prefix | |
900 | # by default will actually change. | |
901 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 902 | # (The list follows the same order as the GNU Coding Standards.) |
c906108c SS |
903 | bindir='${exec_prefix}/bin' |
904 | sbindir='${exec_prefix}/sbin' | |
905 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
906 | datarootdir='${prefix}/share' |
907 | datadir='${datarootdir}' | |
c906108c SS |
908 | sysconfdir='${prefix}/etc' |
909 | sharedstatedir='${prefix}/com' | |
910 | localstatedir='${prefix}/var' | |
c906108c SS |
911 | includedir='${prefix}/include' |
912 | oldincludedir='/usr/include' | |
6bddc3e8 | 913 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
914 | infodir='${datarootdir}/info' |
915 | htmldir='${docdir}' | |
916 | dvidir='${docdir}' | |
917 | pdfdir='${docdir}' | |
918 | psdir='${docdir}' | |
919 | libdir='${exec_prefix}/lib' | |
920 | localedir='${datarootdir}/locale' | |
921 | mandir='${datarootdir}/man' | |
c906108c | 922 | |
c906108c | 923 | ac_prev= |
81ecdfbb | 924 | ac_dashdash= |
c906108c SS |
925 | for ac_option |
926 | do | |
c906108c SS |
927 | # If the previous option needs an argument, assign it. |
928 | if test -n "$ac_prev"; then | |
81ecdfbb | 929 | eval $ac_prev=\$ac_option |
c906108c SS |
930 | ac_prev= |
931 | continue | |
932 | fi | |
933 | ||
81ecdfbb | 934 | case $ac_option in |
d0ac1c44 SM |
935 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
936 | *=) ac_optarg= ;; | |
937 | *) ac_optarg=yes ;; | |
81ecdfbb | 938 | esac |
c906108c SS |
939 | |
940 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
941 | ||
81ecdfbb RW |
942 | case $ac_dashdash$ac_option in |
943 | --) | |
944 | ac_dashdash=yes ;; | |
c906108c SS |
945 | |
946 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
947 | ac_prev=bindir ;; | |
948 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 949 | bindir=$ac_optarg ;; |
c906108c SS |
950 | |
951 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 952 | ac_prev=build_alias ;; |
c906108c | 953 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 954 | build_alias=$ac_optarg ;; |
c906108c SS |
955 | |
956 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
957 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
958 | ac_prev=cache_file ;; | |
959 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
960 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b7026657 AC |
961 | cache_file=$ac_optarg ;; |
962 | ||
963 | --config-cache | -C) | |
964 | cache_file=config.cache ;; | |
c906108c | 965 | |
81ecdfbb | 966 | -datadir | --datadir | --datadi | --datad) |
c906108c | 967 | ac_prev=datadir ;; |
81ecdfbb | 968 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b7026657 | 969 | datadir=$ac_optarg ;; |
c906108c | 970 | |
81ecdfbb RW |
971 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
972 | | --dataroo | --dataro | --datar) | |
973 | ac_prev=datarootdir ;; | |
974 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
975 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
976 | datarootdir=$ac_optarg ;; | |
977 | ||
c906108c | 978 | -disable-* | --disable-*) |
81ecdfbb | 979 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 980 | # Reject names that are not valid shell variable names. |
81ecdfbb | 981 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 982 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
983 | ac_useropt_orig=$ac_useropt |
984 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
985 | case $ac_user_opts in | |
986 | *" | |
987 | "enable_$ac_useropt" | |
988 | "*) ;; | |
989 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
990 | ac_unrecognized_sep=', ';; | |
991 | esac | |
992 | eval enable_$ac_useropt=no ;; | |
993 | ||
994 | -docdir | --docdir | --docdi | --doc | --do) | |
995 | ac_prev=docdir ;; | |
996 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
997 | docdir=$ac_optarg ;; | |
998 | ||
999 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1000 | ac_prev=dvidir ;; | |
1001 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1002 | dvidir=$ac_optarg ;; | |
c906108c SS |
1003 | |
1004 | -enable-* | --enable-*) | |
81ecdfbb | 1005 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 1006 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1007 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1008 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1009 | ac_useropt_orig=$ac_useropt |
1010 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1011 | case $ac_user_opts in | |
1012 | *" | |
1013 | "enable_$ac_useropt" | |
1014 | "*) ;; | |
1015 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1016 | ac_unrecognized_sep=', ';; | |
fdd6fa61 | 1017 | esac |
81ecdfbb | 1018 | eval enable_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
1019 | |
1020 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1021 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1022 | | --exec | --exe | --ex) | |
1023 | ac_prev=exec_prefix ;; | |
1024 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1025 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1026 | | --exec=* | --exe=* | --ex=*) | |
b7026657 | 1027 | exec_prefix=$ac_optarg ;; |
c906108c SS |
1028 | |
1029 | -gas | --gas | --ga | --g) | |
1030 | # Obsolete; use --with-gas. | |
1031 | with_gas=yes ;; | |
1032 | ||
b7026657 AC |
1033 | -help | --help | --hel | --he | -h) |
1034 | ac_init_help=long ;; | |
1035 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1036 | ac_init_help=recursive ;; | |
1037 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1038 | ac_init_help=short ;; | |
c906108c SS |
1039 | |
1040 | -host | --host | --hos | --ho) | |
b7026657 | 1041 | ac_prev=host_alias ;; |
c906108c | 1042 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 1043 | host_alias=$ac_optarg ;; |
c906108c | 1044 | |
81ecdfbb RW |
1045 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1046 | ac_prev=htmldir ;; | |
1047 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1048 | | --ht=*) | |
1049 | htmldir=$ac_optarg ;; | |
1050 | ||
c906108c SS |
1051 | -includedir | --includedir | --includedi | --included | --include \ |
1052 | | --includ | --inclu | --incl | --inc) | |
1053 | ac_prev=includedir ;; | |
1054 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1055 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b7026657 | 1056 | includedir=$ac_optarg ;; |
c906108c SS |
1057 | |
1058 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1059 | ac_prev=infodir ;; | |
1060 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 1061 | infodir=$ac_optarg ;; |
c906108c SS |
1062 | |
1063 | -libdir | --libdir | --libdi | --libd) | |
1064 | ac_prev=libdir ;; | |
1065 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 1066 | libdir=$ac_optarg ;; |
c906108c SS |
1067 | |
1068 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1069 | | --libexe | --libex | --libe) | |
1070 | ac_prev=libexecdir ;; | |
1071 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1072 | | --libexe=* | --libex=* | --libe=*) | |
b7026657 | 1073 | libexecdir=$ac_optarg ;; |
c906108c | 1074 | |
81ecdfbb RW |
1075 | -localedir | --localedir | --localedi | --localed | --locale) |
1076 | ac_prev=localedir ;; | |
1077 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1078 | localedir=$ac_optarg ;; | |
1079 | ||
c906108c | 1080 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1081 | | --localstate | --localstat | --localsta | --localst | --locals) |
c906108c SS |
1082 | ac_prev=localstatedir ;; |
1083 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1084 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b7026657 | 1085 | localstatedir=$ac_optarg ;; |
c906108c SS |
1086 | |
1087 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1088 | ac_prev=mandir ;; | |
1089 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b7026657 | 1090 | mandir=$ac_optarg ;; |
c906108c SS |
1091 | |
1092 | -nfp | --nfp | --nf) | |
1093 | # Obsolete; use --without-fp. | |
1094 | with_fp=no ;; | |
1095 | ||
1096 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b7026657 | 1097 | | --no-cr | --no-c | -n) |
c906108c SS |
1098 | no_create=yes ;; |
1099 | ||
1100 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1101 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1102 | no_recursion=yes ;; | |
1103 | ||
1104 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1105 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1106 | | --oldin | --oldi | --old | --ol | --o) | |
1107 | ac_prev=oldincludedir ;; | |
1108 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1109 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1110 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b7026657 | 1111 | oldincludedir=$ac_optarg ;; |
c906108c SS |
1112 | |
1113 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1114 | ac_prev=prefix ;; | |
1115 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b7026657 | 1116 | prefix=$ac_optarg ;; |
c906108c SS |
1117 | |
1118 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1119 | | --program-pre | --program-pr | --program-p) | |
1120 | ac_prev=program_prefix ;; | |
1121 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1122 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b7026657 | 1123 | program_prefix=$ac_optarg ;; |
c906108c SS |
1124 | |
1125 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1126 | | --program-suf | --program-su | --program-s) | |
1127 | ac_prev=program_suffix ;; | |
1128 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1129 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b7026657 | 1130 | program_suffix=$ac_optarg ;; |
c906108c SS |
1131 | |
1132 | -program-transform-name | --program-transform-name \ | |
1133 | | --program-transform-nam | --program-transform-na \ | |
1134 | | --program-transform-n | --program-transform- \ | |
1135 | | --program-transform | --program-transfor \ | |
1136 | | --program-transfo | --program-transf \ | |
1137 | | --program-trans | --program-tran \ | |
1138 | | --progr-tra | --program-tr | --program-t) | |
1139 | ac_prev=program_transform_name ;; | |
1140 | -program-transform-name=* | --program-transform-name=* \ | |
1141 | | --program-transform-nam=* | --program-transform-na=* \ | |
1142 | | --program-transform-n=* | --program-transform-=* \ | |
1143 | | --program-transform=* | --program-transfor=* \ | |
1144 | | --program-transfo=* | --program-transf=* \ | |
1145 | | --program-trans=* | --program-tran=* \ | |
1146 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b7026657 | 1147 | program_transform_name=$ac_optarg ;; |
c906108c | 1148 | |
81ecdfbb RW |
1149 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1150 | ac_prev=pdfdir ;; | |
1151 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1152 | pdfdir=$ac_optarg ;; | |
1153 | ||
1154 | -psdir | --psdir | --psdi | --psd | --ps) | |
1155 | ac_prev=psdir ;; | |
1156 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1157 | psdir=$ac_optarg ;; | |
1158 | ||
c906108c SS |
1159 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1160 | | -silent | --silent | --silen | --sile | --sil) | |
1161 | silent=yes ;; | |
1162 | ||
1163 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1164 | ac_prev=sbindir ;; | |
1165 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1166 | | --sbi=* | --sb=*) | |
b7026657 | 1167 | sbindir=$ac_optarg ;; |
c906108c SS |
1168 | |
1169 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1170 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1171 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1172 | | --sha | --sh) | |
1173 | ac_prev=sharedstatedir ;; | |
1174 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1175 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1176 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1177 | | --sha=* | --sh=*) | |
b7026657 | 1178 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
1179 | |
1180 | -site | --site | --sit) | |
1181 | ac_prev=site ;; | |
1182 | -site=* | --site=* | --sit=*) | |
b7026657 | 1183 | site=$ac_optarg ;; |
0fda6bd2 | 1184 | |
c906108c SS |
1185 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1186 | ac_prev=srcdir ;; | |
1187 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 1188 | srcdir=$ac_optarg ;; |
c906108c SS |
1189 | |
1190 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1191 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1192 | ac_prev=sysconfdir ;; | |
1193 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1194 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b7026657 | 1195 | sysconfdir=$ac_optarg ;; |
c906108c SS |
1196 | |
1197 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 1198 | ac_prev=target_alias ;; |
c906108c | 1199 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 1200 | target_alias=$ac_optarg ;; |
c906108c SS |
1201 | |
1202 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1203 | verbose=yes ;; | |
1204 | ||
b7026657 AC |
1205 | -version | --version | --versio | --versi | --vers | -V) |
1206 | ac_init_version=: ;; | |
c906108c SS |
1207 | |
1208 | -with-* | --with-*) | |
81ecdfbb | 1209 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 1210 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1211 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1212 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1213 | ac_useropt_orig=$ac_useropt |
1214 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1215 | case $ac_user_opts in | |
1216 | *" | |
1217 | "with_$ac_useropt" | |
1218 | "*) ;; | |
1219 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1220 | ac_unrecognized_sep=', ';; | |
fdd6fa61 | 1221 | esac |
81ecdfbb | 1222 | eval with_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
1223 | |
1224 | -without-* | --without-*) | |
81ecdfbb | 1225 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 1226 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1227 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1228 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1229 | ac_useropt_orig=$ac_useropt |
1230 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1231 | case $ac_user_opts in | |
1232 | *" | |
1233 | "with_$ac_useropt" | |
1234 | "*) ;; | |
1235 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1236 | ac_unrecognized_sep=', ';; | |
1237 | esac | |
1238 | eval with_$ac_useropt=no ;; | |
c906108c SS |
1239 | |
1240 | --x) | |
1241 | # Obsolete; use --with-x. | |
1242 | with_x=yes ;; | |
1243 | ||
1244 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1245 | | --x-incl | --x-inc | --x-in | --x-i) | |
1246 | ac_prev=x_includes ;; | |
1247 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1248 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b7026657 | 1249 | x_includes=$ac_optarg ;; |
c906108c SS |
1250 | |
1251 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1252 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1253 | ac_prev=x_libraries ;; | |
1254 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1255 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b7026657 | 1256 | x_libraries=$ac_optarg ;; |
c906108c | 1257 | |
d0ac1c44 SM |
1258 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1259 | Try \`$0 --help' for more information" | |
c906108c SS |
1260 | ;; |
1261 | ||
b7026657 AC |
1262 | *=*) |
1263 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1264 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1265 | case $ac_envvar in #( |
1266 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1267 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1268 | esac |
1269 | eval $ac_envvar=\$ac_optarg | |
b7026657 AC |
1270 | export $ac_envvar ;; |
1271 | ||
c906108c | 1272 | *) |
b7026657 | 1273 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1274 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b7026657 | 1275 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1276 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1277 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c906108c SS |
1278 | ;; |
1279 | ||
1280 | esac | |
1281 | done | |
1282 | ||
1283 | if test -n "$ac_prev"; then | |
b7026657 | 1284 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1285 | as_fn_error $? "missing argument to $ac_option" |
c906108c | 1286 | fi |
c906108c | 1287 | |
81ecdfbb RW |
1288 | if test -n "$ac_unrecognized_opts"; then |
1289 | case $enable_option_checking in | |
1290 | no) ;; | |
d0ac1c44 | 1291 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1292 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
fdd6fa61 | 1293 | esac |
81ecdfbb | 1294 | fi |
fdd6fa61 | 1295 | |
81ecdfbb RW |
1296 | # Check all directory arguments for consistency. |
1297 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1298 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1299 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1300 | libdir localedir mandir | |
c906108c | 1301 | do |
81ecdfbb RW |
1302 | eval ac_val=\$$ac_var |
1303 | # Remove trailing slashes. | |
1304 | case $ac_val in | |
1305 | */ ) | |
1306 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1307 | eval $ac_var=\$ac_val;; | |
1308 | esac | |
1309 | # Be sure to have absolute directory names. | |
b7026657 | 1310 | case $ac_val in |
81ecdfbb RW |
1311 | [\\/$]* | ?:[\\/]* ) continue;; |
1312 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
c906108c | 1313 | esac |
d0ac1c44 | 1314 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c906108c SS |
1315 | done |
1316 | ||
b7026657 AC |
1317 | # There might be people who depend on the old broken behavior: `$host' |
1318 | # used to hold the argument of --host etc. | |
1319 | # FIXME: To remove some day. | |
1320 | build=$build_alias | |
1321 | host=$host_alias | |
1322 | target=$target_alias | |
1323 | ||
1324 | # FIXME: To remove some day. | |
1325 | if test "x$host_alias" != x; then | |
1326 | if test "x$build_alias" = x; then | |
1327 | cross_compiling=maybe | |
b7026657 AC |
1328 | elif test "x$build_alias" != "x$host_alias"; then |
1329 | cross_compiling=yes | |
1330 | fi | |
1331 | fi | |
c906108c | 1332 | |
b7026657 AC |
1333 | ac_tool_prefix= |
1334 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1335 | ||
1336 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 1337 | |
c906108c | 1338 | |
81ecdfbb RW |
1339 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1340 | ac_ls_di=`ls -di .` && | |
1341 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1342 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1343 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1344 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1345 | |
1346 | ||
c906108c SS |
1347 | # Find the source files, if location was not specified. |
1348 | if test -z "$srcdir"; then | |
1349 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1350 | # Try the directory containing this script, then the parent directory. |
1351 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1352 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1353 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1354 | X"$as_myself" : 'X\(//\)$' \| \ | |
1355 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1356 | $as_echo X"$as_myself" | | |
1357 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1358 | s//\1/ | |
1359 | q | |
1360 | } | |
1361 | /^X\(\/\/\)[^/].*/{ | |
1362 | s//\1/ | |
1363 | q | |
1364 | } | |
1365 | /^X\(\/\/\)$/{ | |
1366 | s//\1/ | |
1367 | q | |
1368 | } | |
1369 | /^X\(\/\).*/{ | |
1370 | s//\1/ | |
1371 | q | |
1372 | } | |
1373 | s/.*/./; q'` | |
c906108c | 1374 | srcdir=$ac_confdir |
81ecdfbb | 1375 | if test ! -r "$srcdir/$ac_unique_file"; then |
c906108c SS |
1376 | srcdir=.. |
1377 | fi | |
1378 | else | |
1379 | ac_srcdir_defaulted=no | |
1380 | fi | |
81ecdfbb RW |
1381 | if test ! -r "$srcdir/$ac_unique_file"; then |
1382 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1383 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1384 | fi |
1385 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1386 | ac_abs_confdir=`( | |
d0ac1c44 | 1387 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1388 | pwd)` |
1389 | # When building in place, set srcdir=. | |
1390 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1391 | srcdir=. | |
1392 | fi | |
1393 | # Remove unnecessary trailing slashes from srcdir. | |
1394 | # Double slashes in file names in object file debugging info | |
1395 | # mess up M-x gdb in Emacs. | |
1396 | case $srcdir in | |
1397 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1398 | esac | |
1399 | for ac_var in $ac_precious_vars; do | |
1400 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1401 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1402 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1403 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1404 | done | |
df1756f4 TG |
1405 | |
1406 | # | |
b7026657 AC |
1407 | # Report the --help message. |
1408 | # | |
1409 | if test "$ac_init_help" = "long"; then | |
1410 | # Omit some internal or obsolete options to make the list less imposing. | |
1411 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1412 | cat <<_ACEOF | |
6bddc3e8 | 1413 | \`configure' configures sim 0 to adapt to many kinds of systems. |
b7026657 AC |
1414 | |
1415 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1416 | ||
1417 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1418 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1419 | ||
1420 | Defaults for the options are specified in brackets. | |
1421 | ||
1422 | Configuration: | |
1423 | -h, --help display this help and exit | |
1424 | --help=short display options specific to this package | |
1425 | --help=recursive display the short help of all the included packages | |
1426 | -V, --version display version information and exit | |
d0ac1c44 | 1427 | -q, --quiet, --silent do not print \`checking ...' messages |
b7026657 AC |
1428 | --cache-file=FILE cache test results in FILE [disabled] |
1429 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1430 | -n, --no-create do not create output files | |
1431 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1432 | ||
b7026657 AC |
1433 | Installation directories: |
1434 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1435 | [$ac_default_prefix] |
b7026657 | 1436 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1437 | [PREFIX] |
b7026657 AC |
1438 | |
1439 | By default, \`make install' will install all the files in | |
1440 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1441 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1442 | for instance \`--prefix=\$HOME'. | |
1443 | ||
1444 | For better control, use the options below. | |
1445 | ||
1446 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1447 | --bindir=DIR user executables [EPREFIX/bin] |
1448 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1449 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1450 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1451 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1452 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1453 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1454 | --includedir=DIR C header files [PREFIX/include] | |
1455 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1456 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1457 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1458 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1459 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1460 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
6bddc3e8 | 1461 | --docdir=DIR documentation root [DATAROOTDIR/doc/sim] |
81ecdfbb RW |
1462 | --htmldir=DIR html documentation [DOCDIR] |
1463 | --dvidir=DIR dvi documentation [DOCDIR] | |
1464 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1465 | --psdir=DIR ps documentation [DOCDIR] | |
b7026657 AC |
1466 | _ACEOF |
1467 | ||
1468 | cat <<\_ACEOF | |
1469 | ||
1470 | Program names: | |
1471 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1472 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1473 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1474 | ||
1475 | System types: | |
1476 | --build=BUILD configure for building on BUILD [guessed] | |
1477 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1478 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1479 | _ACEOF | |
1480 | fi | |
1481 | ||
1482 | if test -n "$ac_init_help"; then | |
6bddc3e8 MF |
1483 | case $ac_init_help in |
1484 | short | recursive ) echo "Configuration of sim 0:";; | |
1485 | esac | |
b7026657 AC |
1486 | cat <<\_ACEOF |
1487 | ||
1488 | Optional Features: | |
81ecdfbb | 1489 | --disable-option-checking ignore unrecognized --enable/--with options |
b7026657 AC |
1490 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1491 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b5689863 MF |
1492 | --enable-plugins Enable support for plugins |
1493 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1494 | --enable-static[=PKGS] build static libraries [default=yes] | |
1495 | --enable-fast-install[=PKGS] | |
1496 | optimize for fast installation [default=yes] | |
1497 | --disable-libtool-lock avoid locking (might break parallel builds) | |
8c379db2 TT |
1498 | --enable-maintainer-mode |
1499 | enable make rules and dependencies not useful (and | |
1500 | sometimes confusing) to the casual installer | |
6bddc3e8 MF |
1501 | --enable-dependency-tracking |
1502 | do not reject slow dependency extractors | |
1503 | --disable-dependency-tracking | |
1504 | speeds up one-time build | |
c2783492 MF |
1505 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1506 | --disable-silent-rules verbose build output (undo: "make V=0") | |
8d0978fb | 1507 | --enable-sim Enable the GNU simulator |
26da232c | 1508 | --enable-example-sims enable example GNU simulators |
a0e674c1 | 1509 | --enable-targets alternative target configurations |
ba307cdd MF |
1510 | --enable-sim-alignment=align |
1511 | Specify strict, nonstrict or forced alignment of | |
1512 | memory accesses | |
dba333c1 | 1513 | --enable-sim-assert Specify whether to perform random assertions |
1bf5c342 | 1514 | --enable-cgen-maint=DIR build cgen generated files |
04381273 MF |
1515 | --enable-sim-debug=opts Enable debugging flags (for developers of the sim |
1516 | itself) | |
f9a4d543 MF |
1517 | --enable-sim-endian=endian |
1518 | Specify target byte endian orientation | |
5ea45474 MF |
1519 | --enable-sim-environment=environment |
1520 | Specify mixed, user, virtual or operating | |
1521 | environment | |
456ef1c1 | 1522 | --enable-sim-hardware Whether to enable hardware/device simulation |
d73f39ee MF |
1523 | --enable-sim-inline=inlines |
1524 | Specify which functions should be inlined | |
04381273 MF |
1525 | --enable-sim-profile=opts |
1526 | Enable profiling flags | |
1527 | --enable-sim-stdio Specify whether to use stdio for console | |
1528 | input/output | |
1529 | --enable-sim-trace=opts Enable tracing of simulated programs | |
47ce766a MF |
1530 | --enable-werror treat compile warnings as errors |
1531 | --enable-build-warnings enable build-time compiler warnings if gcc is used | |
1532 | --enable-sim-build-warnings | |
1533 | enable SIM specific build-time compiler warnings if | |
1534 | gcc is used | |
b7026657 | 1535 | |
6dd65fc0 MF |
1536 | Optional Packages: |
1537 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1538 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1539 | --with-pkgversion=PKG Use PKG in the version string in place of "SIM" | |
1540 | --with-bugurl=URL Direct users to URL to report a bug | |
b5689863 MF |
1541 | --with-system-zlib use installed libz |
1542 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1543 | both] | |
1544 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
6dd65fc0 | 1545 | |
b7026657 AC |
1546 | Some influential environment variables: |
1547 | CC C compiler command | |
1548 | CFLAGS C compiler flags | |
1549 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1550 | nonstandard directory <lib dir> | |
81ecdfbb | 1551 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1552 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1553 | you have headers in a nonstandard directory <include dir> |
5e25901f | 1554 | CPP C preprocessor |
b7026657 AC |
1555 | |
1556 | Use these variables to override the choices made by `configure' or to help | |
1557 | it to find libraries and programs with nonstandard names/locations. | |
1558 | ||
6bddc3e8 MF |
1559 | Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. |
1560 | sim home page: <https://sourceware.org/gdb/wiki/Sim/>. | |
b7026657 | 1561 | _ACEOF |
81ecdfbb | 1562 | ac_status=$? |
b7026657 AC |
1563 | fi |
1564 | ||
1565 | if test "$ac_init_help" = "recursive"; then | |
1566 | # If there are subdirs, report their specific --help. | |
b7026657 | 1567 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1568 | test -d "$ac_dir" || |
1569 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1570 | continue | |
b7026657 AC |
1571 | ac_builddir=. |
1572 | ||
81ecdfbb RW |
1573 | case "$ac_dir" in |
1574 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1575 | *) | |
1576 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1577 | # A ".." for each directory in $ac_dir_suffix. | |
1578 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1579 | case $ac_top_builddir_sub in | |
1580 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1581 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1582 | esac ;; | |
1583 | esac | |
1584 | ac_abs_top_builddir=$ac_pwd | |
1585 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1586 | # for backward compatibility: | |
1587 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
1588 | |
1589 | case $srcdir in | |
81ecdfbb | 1590 | .) # We are building in place. |
b7026657 | 1591 | ac_srcdir=. |
81ecdfbb RW |
1592 | ac_top_srcdir=$ac_top_builddir_sub |
1593 | ac_abs_top_srcdir=$ac_pwd ;; | |
1594 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 1595 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1596 | ac_top_srcdir=$srcdir |
1597 | ac_abs_top_srcdir=$srcdir ;; | |
1598 | *) # Relative name. | |
1599 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1600 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1601 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fdd6fa61 | 1602 | esac |
81ecdfbb | 1603 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
fdd6fa61 | 1604 | |
81ecdfbb RW |
1605 | cd "$ac_dir" || { ac_status=$?; continue; } |
1606 | # Check for guested configure. | |
1607 | if test -f "$ac_srcdir/configure.gnu"; then | |
1608 | echo && | |
1609 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1610 | elif test -f "$ac_srcdir/configure"; then | |
1611 | echo && | |
1612 | $SHELL "$ac_srcdir/configure" --help=recursive | |
0fda6bd2 | 1613 | else |
81ecdfbb RW |
1614 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1615 | fi || ac_status=$? | |
1616 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b7026657 AC |
1617 | done |
1618 | fi | |
1619 | ||
81ecdfbb | 1620 | test -n "$ac_init_help" && exit $ac_status |
b7026657 AC |
1621 | if $ac_init_version; then |
1622 | cat <<\_ACEOF | |
6bddc3e8 | 1623 | sim configure 0 |
d0ac1c44 | 1624 | generated by GNU Autoconf 2.69 |
b7026657 | 1625 | |
d0ac1c44 | 1626 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
1627 | This configure script is free software; the Free Software Foundation |
1628 | gives unlimited permission to copy, distribute and modify it. | |
1629 | _ACEOF | |
81ecdfbb | 1630 | exit |
b7026657 | 1631 | fi |
81ecdfbb RW |
1632 | |
1633 | ## ------------------------ ## | |
1634 | ## Autoconf initialization. ## | |
1635 | ## ------------------------ ## | |
1636 | ||
1637 | # ac_fn_c_try_compile LINENO | |
1638 | # -------------------------- | |
1639 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1640 | ac_fn_c_try_compile () | |
1641 | { | |
1642 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1643 | rm -f conftest.$ac_objext | |
1644 | if { { ac_try="$ac_compile" | |
1645 | case "(($ac_try" in | |
1646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1647 | *) ac_try_echo=$ac_try;; | |
1648 | esac | |
1649 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1650 | $as_echo "$ac_try_echo"; } >&5 | |
1651 | (eval "$ac_compile") 2>conftest.err | |
1652 | ac_status=$? | |
1653 | if test -s conftest.err; then | |
1654 | grep -v '^ *+' conftest.err >conftest.er1 | |
1655 | cat conftest.er1 >&5 | |
1656 | mv -f conftest.er1 conftest.err | |
1657 | fi | |
1658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1659 | test $ac_status = 0; } && { | |
1660 | test -z "$ac_c_werror_flag" || | |
1661 | test ! -s conftest.err | |
1662 | } && test -s conftest.$ac_objext; then : | |
1663 | ac_retval=0 | |
1664 | else | |
1665 | $as_echo "$as_me: failed program was:" >&5 | |
1666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1667 | ||
1668 | ac_retval=1 | |
1669 | fi | |
d0ac1c44 SM |
1670 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1671 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1672 | |
1673 | } # ac_fn_c_try_compile | |
5e25901f MF |
1674 | |
1675 | # ac_fn_c_try_cpp LINENO | |
1676 | # ---------------------- | |
1677 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1678 | ac_fn_c_try_cpp () | |
1679 | { | |
1680 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1681 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1682 | case "(($ac_try" in | |
1683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1684 | *) ac_try_echo=$ac_try;; | |
1685 | esac | |
1686 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1687 | $as_echo "$ac_try_echo"; } >&5 | |
1688 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1689 | ac_status=$? | |
1690 | if test -s conftest.err; then | |
1691 | grep -v '^ *+' conftest.err >conftest.er1 | |
1692 | cat conftest.er1 >&5 | |
1693 | mv -f conftest.er1 conftest.err | |
1694 | fi | |
1695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1696 | test $ac_status = 0; } > conftest.i && { | |
1697 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1698 | test ! -s conftest.err | |
1699 | }; then : | |
1700 | ac_retval=0 | |
1701 | else | |
1702 | $as_echo "$as_me: failed program was:" >&5 | |
1703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1704 | ||
1705 | ac_retval=1 | |
1706 | fi | |
1707 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1708 | as_fn_set_status $ac_retval | |
1709 | ||
1710 | } # ac_fn_c_try_cpp | |
c2783492 MF |
1711 | |
1712 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1713 | # ------------------------------------------------------- | |
1714 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1715 | # the include files in INCLUDES and setting the cache variable VAR | |
1716 | # accordingly. | |
1717 | ac_fn_c_check_header_mongrel () | |
1718 | { | |
1719 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1720 | if eval \${$3+:} false; then : | |
1721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1722 | $as_echo_n "checking for $2... " >&6; } | |
1723 | if eval \${$3+:} false; then : | |
1724 | $as_echo_n "(cached) " >&6 | |
1725 | fi | |
1726 | eval ac_res=\$$3 | |
1727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1728 | $as_echo "$ac_res" >&6; } | |
1729 | else | |
1730 | # Is the header compilable? | |
1731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1732 | $as_echo_n "checking $2 usability... " >&6; } | |
1733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1734 | /* end confdefs.h. */ | |
1735 | $4 | |
1736 | #include <$2> | |
1737 | _ACEOF | |
1738 | if ac_fn_c_try_compile "$LINENO"; then : | |
1739 | ac_header_compiler=yes | |
1740 | else | |
1741 | ac_header_compiler=no | |
1742 | fi | |
1743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1745 | $as_echo "$ac_header_compiler" >&6; } | |
1746 | ||
1747 | # Is the header present? | |
1748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1749 | $as_echo_n "checking $2 presence... " >&6; } | |
1750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1751 | /* end confdefs.h. */ | |
1752 | #include <$2> | |
1753 | _ACEOF | |
1754 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1755 | ac_header_preproc=yes | |
1756 | else | |
1757 | ac_header_preproc=no | |
1758 | fi | |
1759 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1761 | $as_echo "$ac_header_preproc" >&6; } | |
1762 | ||
1763 | # So? What about this header? | |
1764 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1765 | yes:no: ) | |
1766 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1767 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1769 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1770 | ;; | |
1771 | no:yes:* ) | |
1772 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1773 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1774 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1775 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1776 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1777 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1779 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1780 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1781 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1782 | ( $as_echo "## -------------------------------------------------------------------------------------- ## | |
1783 | ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ## | |
1784 | ## -------------------------------------------------------------------------------------- ##" | |
1785 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1786 | ;; | |
1787 | esac | |
1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1789 | $as_echo_n "checking for $2... " >&6; } | |
1790 | if eval \${$3+:} false; then : | |
1791 | $as_echo_n "(cached) " >&6 | |
1792 | else | |
1793 | eval "$3=\$ac_header_compiler" | |
1794 | fi | |
1795 | eval ac_res=\$$3 | |
1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1797 | $as_echo "$ac_res" >&6; } | |
1798 | fi | |
1799 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1800 | ||
1801 | } # ac_fn_c_check_header_mongrel | |
1802 | ||
1803 | # ac_fn_c_try_run LINENO | |
1804 | # ---------------------- | |
1805 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1806 | # that executables *can* be run. | |
1807 | ac_fn_c_try_run () | |
1808 | { | |
1809 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1810 | if { { ac_try="$ac_link" | |
1811 | case "(($ac_try" in | |
1812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1813 | *) ac_try_echo=$ac_try;; | |
1814 | esac | |
1815 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1816 | $as_echo "$ac_try_echo"; } >&5 | |
1817 | (eval "$ac_link") 2>&5 | |
1818 | ac_status=$? | |
1819 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1820 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1821 | { { case "(($ac_try" in | |
1822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1823 | *) ac_try_echo=$ac_try;; | |
1824 | esac | |
1825 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1826 | $as_echo "$ac_try_echo"; } >&5 | |
1827 | (eval "$ac_try") 2>&5 | |
1828 | ac_status=$? | |
1829 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1830 | test $ac_status = 0; }; }; then : | |
1831 | ac_retval=0 | |
1832 | else | |
1833 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1834 | $as_echo "$as_me: failed program was:" >&5 | |
1835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1836 | ||
1837 | ac_retval=$ac_status | |
1838 | fi | |
1839 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1840 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1841 | as_fn_set_status $ac_retval | |
1842 | ||
1843 | } # ac_fn_c_try_run | |
1844 | ||
1845 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1846 | # ------------------------------------------------------- | |
1847 | # Tests whether HEADER exists and can be compiled using the include files in | |
1848 | # INCLUDES, setting the cache variable VAR accordingly. | |
1849 | ac_fn_c_check_header_compile () | |
1850 | { | |
1851 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1853 | $as_echo_n "checking for $2... " >&6; } | |
1854 | if eval \${$3+:} false; then : | |
1855 | $as_echo_n "(cached) " >&6 | |
1856 | else | |
1857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1858 | /* end confdefs.h. */ | |
1859 | $4 | |
1860 | #include <$2> | |
1861 | _ACEOF | |
1862 | if ac_fn_c_try_compile "$LINENO"; then : | |
1863 | eval "$3=yes" | |
1864 | else | |
1865 | eval "$3=no" | |
1866 | fi | |
1867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1868 | fi | |
1869 | eval ac_res=\$$3 | |
1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1871 | $as_echo "$ac_res" >&6; } | |
1872 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1873 | ||
1874 | } # ac_fn_c_check_header_compile | |
b15c5d7a MF |
1875 | |
1876 | # ac_fn_c_try_link LINENO | |
1877 | # ----------------------- | |
1878 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1879 | ac_fn_c_try_link () | |
1880 | { | |
1881 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1882 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1883 | if { { ac_try="$ac_link" | |
1884 | case "(($ac_try" in | |
1885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1886 | *) ac_try_echo=$ac_try;; | |
1887 | esac | |
1888 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1889 | $as_echo "$ac_try_echo"; } >&5 | |
1890 | (eval "$ac_link") 2>conftest.err | |
1891 | ac_status=$? | |
1892 | if test -s conftest.err; then | |
1893 | grep -v '^ *+' conftest.err >conftest.er1 | |
1894 | cat conftest.er1 >&5 | |
1895 | mv -f conftest.er1 conftest.err | |
1896 | fi | |
1897 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1898 | test $ac_status = 0; } && { | |
1899 | test -z "$ac_c_werror_flag" || | |
1900 | test ! -s conftest.err | |
1901 | } && test -s conftest$ac_exeext && { | |
1902 | test "$cross_compiling" = yes || | |
1903 | test -x conftest$ac_exeext | |
1904 | }; then : | |
1905 | ac_retval=0 | |
1906 | else | |
1907 | $as_echo "$as_me: failed program was:" >&5 | |
1908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1909 | ||
1910 | ac_retval=1 | |
1911 | fi | |
1912 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1913 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1914 | # interfere with the next link command; also delete a directory that is | |
1915 | # left behind by Apple's compiler. We do this before executing the actions. | |
1916 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1917 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1918 | as_fn_set_status $ac_retval | |
1919 | ||
1920 | } # ac_fn_c_try_link | |
1921 | ||
1922 | # ac_fn_c_check_func LINENO FUNC VAR | |
1923 | # ---------------------------------- | |
1924 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1925 | ac_fn_c_check_func () | |
1926 | { | |
1927 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1929 | $as_echo_n "checking for $2... " >&6; } | |
1930 | if eval \${$3+:} false; then : | |
1931 | $as_echo_n "(cached) " >&6 | |
1932 | else | |
1933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1934 | /* end confdefs.h. */ | |
1935 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1936 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1937 | #define $2 innocuous_$2 | |
1938 | ||
1939 | /* System header to define __stub macros and hopefully few prototypes, | |
1940 | which can conflict with char $2 (); below. | |
1941 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1942 | <limits.h> exists even on freestanding compilers. */ | |
1943 | ||
1944 | #ifdef __STDC__ | |
1945 | # include <limits.h> | |
1946 | #else | |
1947 | # include <assert.h> | |
1948 | #endif | |
1949 | ||
1950 | #undef $2 | |
1951 | ||
1952 | /* Override any GCC internal prototype to avoid an error. | |
1953 | Use char because int might match the return type of a GCC | |
1954 | builtin and then its argument prototype would still apply. */ | |
1955 | #ifdef __cplusplus | |
1956 | extern "C" | |
1957 | #endif | |
1958 | char $2 (); | |
1959 | /* The GNU C library defines this for functions which it implements | |
1960 | to always fail with ENOSYS. Some functions are actually named | |
1961 | something starting with __ and the normal name is an alias. */ | |
1962 | #if defined __stub_$2 || defined __stub___$2 | |
1963 | choke me | |
1964 | #endif | |
1965 | ||
1966 | int | |
1967 | main () | |
1968 | { | |
1969 | return $2 (); | |
1970 | ; | |
1971 | return 0; | |
1972 | } | |
1973 | _ACEOF | |
1974 | if ac_fn_c_try_link "$LINENO"; then : | |
1975 | eval "$3=yes" | |
1976 | else | |
1977 | eval "$3=no" | |
1978 | fi | |
1979 | rm -f core conftest.err conftest.$ac_objext \ | |
1980 | conftest$ac_exeext conftest.$ac_ext | |
1981 | fi | |
1982 | eval ac_res=\$$3 | |
1983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1984 | $as_echo "$ac_res" >&6; } | |
1985 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1986 | ||
1987 | } # ac_fn_c_check_func | |
1988 | ||
1989 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
1990 | # ---------------------------------------------------- | |
1991 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
1992 | # INCLUDES, setting cache variable VAR accordingly. | |
1993 | ac_fn_c_check_member () | |
1994 | { | |
1995 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
1997 | $as_echo_n "checking for $2.$3... " >&6; } | |
1998 | if eval \${$4+:} false; then : | |
1999 | $as_echo_n "(cached) " >&6 | |
2000 | else | |
2001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2002 | /* end confdefs.h. */ | |
2003 | $5 | |
2004 | int | |
2005 | main () | |
2006 | { | |
2007 | static $2 ac_aggr; | |
2008 | if (ac_aggr.$3) | |
2009 | return 0; | |
2010 | ; | |
2011 | return 0; | |
2012 | } | |
2013 | _ACEOF | |
2014 | if ac_fn_c_try_compile "$LINENO"; then : | |
2015 | eval "$4=yes" | |
2016 | else | |
2017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2018 | /* end confdefs.h. */ | |
2019 | $5 | |
2020 | int | |
2021 | main () | |
2022 | { | |
2023 | static $2 ac_aggr; | |
2024 | if (sizeof ac_aggr.$3) | |
2025 | return 0; | |
2026 | ; | |
2027 | return 0; | |
2028 | } | |
2029 | _ACEOF | |
2030 | if ac_fn_c_try_compile "$LINENO"; then : | |
2031 | eval "$4=yes" | |
2032 | else | |
2033 | eval "$4=no" | |
2034 | fi | |
2035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2036 | fi | |
2037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2038 | fi | |
2039 | eval ac_res=\$$4 | |
2040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2041 | $as_echo "$ac_res" >&6; } | |
2042 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2043 | ||
2044 | } # ac_fn_c_check_member | |
2045 | ||
a48ff3ef MF |
2046 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2047 | # --------------------------------------------- | |
2048 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2049 | # accordingly. | |
2050 | ac_fn_c_check_decl () | |
2051 | { | |
2052 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2053 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2054 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2056 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2057 | if eval \${$3+:} false; then : | |
2058 | $as_echo_n "(cached) " >&6 | |
2059 | else | |
2060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2061 | /* end confdefs.h. */ | |
2062 | $4 | |
2063 | int | |
2064 | main () | |
2065 | { | |
2066 | #ifndef $as_decl_name | |
2067 | #ifdef __cplusplus | |
2068 | (void) $as_decl_use; | |
2069 | #else | |
2070 | (void) $as_decl_name; | |
2071 | #endif | |
2072 | #endif | |
2073 | ||
2074 | ; | |
2075 | return 0; | |
2076 | } | |
2077 | _ACEOF | |
2078 | if ac_fn_c_try_compile "$LINENO"; then : | |
2079 | eval "$3=yes" | |
2080 | else | |
2081 | eval "$3=no" | |
2082 | fi | |
2083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2084 | fi | |
2085 | eval ac_res=\$$3 | |
2086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2087 | $as_echo "$ac_res" >&6; } | |
2088 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2089 | ||
2090 | } # ac_fn_c_check_decl | |
2091 | ||
b15c5d7a MF |
2092 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2093 | # ------------------------------------------- | |
2094 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2095 | # variable VAR accordingly. | |
2096 | ac_fn_c_check_type () | |
2097 | { | |
2098 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2100 | $as_echo_n "checking for $2... " >&6; } | |
2101 | if eval \${$3+:} false; then : | |
2102 | $as_echo_n "(cached) " >&6 | |
2103 | else | |
2104 | eval "$3=no" | |
2105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2106 | /* end confdefs.h. */ | |
2107 | $4 | |
2108 | int | |
2109 | main () | |
2110 | { | |
2111 | if (sizeof ($2)) | |
2112 | return 0; | |
2113 | ; | |
2114 | return 0; | |
2115 | } | |
2116 | _ACEOF | |
2117 | if ac_fn_c_try_compile "$LINENO"; then : | |
2118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2119 | /* end confdefs.h. */ | |
2120 | $4 | |
2121 | int | |
2122 | main () | |
2123 | { | |
2124 | if (sizeof (($2))) | |
2125 | return 0; | |
2126 | ; | |
2127 | return 0; | |
2128 | } | |
2129 | _ACEOF | |
2130 | if ac_fn_c_try_compile "$LINENO"; then : | |
2131 | ||
2132 | else | |
2133 | eval "$3=yes" | |
2134 | fi | |
2135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2136 | fi | |
2137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2138 | fi | |
2139 | eval ac_res=\$$3 | |
2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2141 | $as_echo "$ac_res" >&6; } | |
2142 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2143 | ||
2144 | } # ac_fn_c_check_type | |
81ecdfbb | 2145 | cat >config.log <<_ACEOF |
b7026657 AC |
2146 | This file contains any messages produced by compilers while |
2147 | running configure, to aid debugging if configure makes a mistake. | |
2148 | ||
6bddc3e8 | 2149 | It was created by sim $as_me 0, which was |
d0ac1c44 | 2150 | generated by GNU Autoconf 2.69. Invocation command line was |
b7026657 AC |
2151 | |
2152 | $ $0 $@ | |
2153 | ||
2154 | _ACEOF | |
81ecdfbb | 2155 | exec 5>>config.log |
b7026657 AC |
2156 | { |
2157 | cat <<_ASUNAME | |
2158 | ## --------- ## | |
2159 | ## Platform. ## | |
2160 | ## --------- ## | |
2161 | ||
2162 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2163 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2164 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2165 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2166 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2167 | ||
2168 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2169 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2170 | ||
2171 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2172 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2173 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 2174 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b7026657 AC |
2175 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2176 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2177 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2178 | ||
2179 | _ASUNAME | |
2180 | ||
2181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2182 | for as_dir in $PATH | |
2183 | do | |
2184 | IFS=$as_save_IFS | |
2185 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2186 | $as_echo "PATH: $as_dir" |
2187 | done | |
2188 | IFS=$as_save_IFS | |
b7026657 AC |
2189 | |
2190 | } >&5 | |
2191 | ||
2192 | cat >&5 <<_ACEOF | |
2193 | ||
2194 | ||
2195 | ## ----------- ## | |
2196 | ## Core tests. ## | |
2197 | ## ----------- ## | |
2198 | ||
2199 | _ACEOF | |
2200 | ||
2201 | ||
2202 | # Keep a trace of the command line. | |
2203 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2204 | # Strip out --silent because we don't want to record it for future runs. | |
2205 | # Also quote any args containing shell meta-characters. | |
2206 | # Make two passes to allow for proper duplicate-argument suppression. | |
2207 | ac_configure_args= | |
2208 | ac_configure_args0= | |
2209 | ac_configure_args1= | |
b7026657 AC |
2210 | ac_must_keep_next=false |
2211 | for ac_pass in 1 2 | |
2212 | do | |
2213 | for ac_arg | |
2214 | do | |
2215 | case $ac_arg in | |
2216 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2217 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2218 | | -silent | --silent | --silen | --sile | --sil) | |
2219 | continue ;; | |
81ecdfbb RW |
2220 | *\'*) |
2221 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b7026657 AC |
2222 | esac |
2223 | case $ac_pass in | |
81ecdfbb | 2224 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b7026657 | 2225 | 2) |
81ecdfbb | 2226 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b7026657 AC |
2227 | if test $ac_must_keep_next = true; then |
2228 | ac_must_keep_next=false # Got value, back to normal. | |
2229 | else | |
2230 | case $ac_arg in | |
2231 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2232 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2233 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2234 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2235 | case "$ac_configure_args0 " in | |
2236 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2237 | esac | |
2238 | ;; | |
2239 | -* ) ac_must_keep_next=true ;; | |
2240 | esac | |
2241 | fi | |
81ecdfbb | 2242 | as_fn_append ac_configure_args " '$ac_arg'" |
b7026657 AC |
2243 | ;; |
2244 | esac | |
2245 | done | |
2246 | done | |
81ecdfbb RW |
2247 | { ac_configure_args0=; unset ac_configure_args0;} |
2248 | { ac_configure_args1=; unset ac_configure_args1;} | |
b7026657 AC |
2249 | |
2250 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2251 | # config.log. We remove comments because anyway the quotes in there | |
2252 | # would cause problems or look ugly. | |
81ecdfbb RW |
2253 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2254 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b7026657 AC |
2255 | trap 'exit_status=$? |
2256 | # Save into config.log some information that might help in debugging. | |
2257 | { | |
2258 | echo | |
2259 | ||
d0ac1c44 | 2260 | $as_echo "## ---------------- ## |
b7026657 | 2261 | ## Cache variables. ## |
d0ac1c44 | 2262 | ## ---------------- ##" |
b7026657 AC |
2263 | echo |
2264 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2265 | ( |
2266 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2267 | eval ac_val=\$$ac_var | |
2268 | case $ac_val in #( | |
2269 | *${as_nl}*) | |
2270 | case $ac_var in #( | |
2271 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2272 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2273 | esac | |
2274 | case $ac_var in #( | |
2275 | _ | IFS | as_nl) ;; #( | |
2276 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2277 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2278 | esac ;; | |
2279 | esac | |
2280 | done | |
b7026657 | 2281 | (set) 2>&1 | |
81ecdfbb RW |
2282 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2283 | *${as_nl}ac_space=\ *) | |
b7026657 | 2284 | sed -n \ |
81ecdfbb RW |
2285 | "s/'\''/'\''\\\\'\'''\''/g; |
2286 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2287 | ;; #( | |
b7026657 | 2288 | *) |
81ecdfbb | 2289 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 2290 | ;; |
81ecdfbb RW |
2291 | esac | |
2292 | sort | |
2293 | ) | |
b7026657 AC |
2294 | echo |
2295 | ||
d0ac1c44 | 2296 | $as_echo "## ----------------- ## |
b7026657 | 2297 | ## Output variables. ## |
d0ac1c44 | 2298 | ## ----------------- ##" |
b7026657 AC |
2299 | echo |
2300 | for ac_var in $ac_subst_vars | |
2301 | do | |
81ecdfbb RW |
2302 | eval ac_val=\$$ac_var |
2303 | case $ac_val in | |
2304 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2305 | esac | |
2306 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2307 | done | sort |
2308 | echo | |
2309 | ||
2310 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2311 | $as_echo "## ------------------- ## |
81ecdfbb | 2312 | ## File substitutions. ## |
d0ac1c44 | 2313 | ## ------------------- ##" |
b7026657 AC |
2314 | echo |
2315 | for ac_var in $ac_subst_files | |
2316 | do | |
81ecdfbb RW |
2317 | eval ac_val=\$$ac_var |
2318 | case $ac_val in | |
2319 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2320 | esac | |
2321 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2322 | done | sort |
2323 | echo | |
2324 | fi | |
2325 | ||
2326 | if test -s confdefs.h; then | |
d0ac1c44 | 2327 | $as_echo "## ----------- ## |
b7026657 | 2328 | ## confdefs.h. ## |
d0ac1c44 | 2329 | ## ----------- ##" |
b7026657 | 2330 | echo |
81ecdfbb | 2331 | cat confdefs.h |
b7026657 | 2332 | echo |
0fda6bd2 | 2333 | fi |
b7026657 | 2334 | test "$ac_signal" != 0 && |
81ecdfbb RW |
2335 | $as_echo "$as_me: caught signal $ac_signal" |
2336 | $as_echo "$as_me: exit $exit_status" | |
b7026657 | 2337 | } >&5 |
81ecdfbb RW |
2338 | rm -f core *.core core.conftest.* && |
2339 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b7026657 | 2340 | exit $exit_status |
81ecdfbb | 2341 | ' 0 |
b7026657 | 2342 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2343 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b7026657 AC |
2344 | done |
2345 | ac_signal=0 | |
2346 | ||
2347 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2348 | rm -f -r conftest* confdefs.h |
2349 | ||
2350 | $as_echo "/* confdefs.h */" > confdefs.h | |
b7026657 AC |
2351 | |
2352 | # Predefined preprocessor variables. | |
2353 | ||
2354 | cat >>confdefs.h <<_ACEOF | |
2355 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2356 | _ACEOF | |
2357 | ||
b7026657 AC |
2358 | cat >>confdefs.h <<_ACEOF |
2359 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2360 | _ACEOF | |
2361 | ||
b7026657 AC |
2362 | cat >>confdefs.h <<_ACEOF |
2363 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2364 | _ACEOF | |
2365 | ||
b7026657 AC |
2366 | cat >>confdefs.h <<_ACEOF |
2367 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2368 | _ACEOF | |
2369 | ||
b7026657 AC |
2370 | cat >>confdefs.h <<_ACEOF |
2371 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2372 | _ACEOF | |
2373 | ||
81ecdfbb RW |
2374 | cat >>confdefs.h <<_ACEOF |
2375 | #define PACKAGE_URL "$PACKAGE_URL" | |
2376 | _ACEOF | |
2377 | ||
b7026657 AC |
2378 | |
2379 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2380 | # Prefer an explicitly selected file to automatically selected ones. |
2381 | ac_site_file1=NONE | |
2382 | ac_site_file2=NONE | |
2383 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2384 | # We do not want a PATH search for config.site. |
2385 | case $CONFIG_SITE in #(( | |
2386 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2387 | */*) ac_site_file1=$CONFIG_SITE;; | |
2388 | *) ac_site_file1=./$CONFIG_SITE;; | |
2389 | esac | |
81ecdfbb RW |
2390 | elif test "x$prefix" != xNONE; then |
2391 | ac_site_file1=$prefix/share/config.site | |
2392 | ac_site_file2=$prefix/etc/config.site | |
2393 | else | |
2394 | ac_site_file1=$ac_default_prefix/share/config.site | |
2395 | ac_site_file2=$ac_default_prefix/etc/config.site | |
c906108c | 2396 | fi |
81ecdfbb RW |
2397 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2398 | do | |
2399 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2400 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2402 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b7026657 | 2403 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2404 | . "$ac_site_file" \ |
2405 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2406 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2407 | as_fn_error $? "failed to load site script $ac_site_file | |
2408 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c SS |
2409 | fi |
2410 | done | |
2411 | ||
2412 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2413 | # Some versions of bash will fail to source /dev/null (special files |
2414 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2415 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2416 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2417 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b7026657 | 2418 | case $cache_file in |
81ecdfbb RW |
2419 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2420 | *) . "./$cache_file";; | |
b7026657 AC |
2421 | esac |
2422 | fi | |
c906108c | 2423 | else |
81ecdfbb RW |
2424 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2425 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b7026657 | 2426 | >$cache_file |
c906108c SS |
2427 | fi |
2428 | ||
b15c5d7a MF |
2429 | as_fn_append ac_header_list " dlfcn.h" |
2430 | as_fn_append ac_header_list " fcntl.h" | |
2431 | as_fn_append ac_header_list " fpu_control.h" | |
2432 | as_fn_append ac_header_list " termios.h" | |
2433 | as_fn_append ac_header_list " unistd.h" | |
2434 | as_fn_append ac_header_list " utime.h" | |
2435 | as_fn_append ac_header_list " linux/if_tun.h" | |
2436 | as_fn_append ac_header_list " linux/mii.h" | |
2437 | as_fn_append ac_header_list " linux/types.h" | |
2438 | as_fn_append ac_header_list " net/if.h" | |
2439 | as_fn_append ac_header_list " netinet/in.h" | |
2440 | as_fn_append ac_header_list " netinet/tcp.h" | |
2441 | as_fn_append ac_header_list " sys/ioctl.h" | |
2442 | as_fn_append ac_header_list " sys/mman.h" | |
a48ff3ef | 2443 | as_fn_append ac_header_list " sys/mount.h" |
b15c5d7a MF |
2444 | as_fn_append ac_header_list " sys/param.h" |
2445 | as_fn_append ac_header_list " sys/resource.h" | |
b15c5d7a MF |
2446 | as_fn_append ac_header_list " sys/socket.h" |
2447 | as_fn_append ac_header_list " sys/stat.h" | |
a48ff3ef MF |
2448 | as_fn_append ac_header_list " sys/statfs.h" |
2449 | as_fn_append ac_header_list " sys/termio.h" | |
2450 | as_fn_append ac_header_list " sys/termios.h" | |
2451 | as_fn_append ac_header_list " sys/types.h" | |
2452 | as_fn_append ac_header_list " sys/vfs.h" | |
b15c5d7a | 2453 | as_fn_append ac_func_list " __setfpucw" |
a48ff3ef | 2454 | as_fn_append ac_func_list " access" |
b15c5d7a MF |
2455 | as_fn_append ac_func_list " aint" |
2456 | as_fn_append ac_func_list " anint" | |
a48ff3ef MF |
2457 | as_fn_append ac_func_list " cfgetispeed" |
2458 | as_fn_append ac_func_list " cfgetospeed" | |
2459 | as_fn_append ac_func_list " cfsetispeed" | |
2460 | as_fn_append ac_func_list " cfsetospeed" | |
2461 | as_fn_append ac_func_list " chdir" | |
b15c5d7a | 2462 | as_fn_append ac_func_list " chmod" |
a48ff3ef MF |
2463 | as_fn_append ac_func_list " dup" |
2464 | as_fn_append ac_func_list " dup2" | |
b15c5d7a MF |
2465 | as_fn_append ac_func_list " execv" |
2466 | as_fn_append ac_func_list " execve" | |
a48ff3ef | 2467 | as_fn_append ac_func_list " fcntl" |
b15c5d7a | 2468 | as_fn_append ac_func_list " fork" |
a48ff3ef MF |
2469 | as_fn_append ac_func_list " fstat" |
2470 | as_fn_append ac_func_list " fstatfs" | |
b15c5d7a | 2471 | as_fn_append ac_func_list " ftruncate" |
a48ff3ef | 2472 | as_fn_append ac_func_list " getdirentries" |
b15c5d7a | 2473 | as_fn_append ac_func_list " getegid" |
a48ff3ef | 2474 | as_fn_append ac_func_list " geteuid" |
b15c5d7a | 2475 | as_fn_append ac_func_list " getgid" |
a48ff3ef MF |
2476 | as_fn_append ac_func_list " getpid" |
2477 | as_fn_append ac_func_list " getppid" | |
b15c5d7a | 2478 | as_fn_append ac_func_list " getrusage" |
a48ff3ef | 2479 | as_fn_append ac_func_list " gettimeofday" |
b15c5d7a | 2480 | as_fn_append ac_func_list " getuid" |
a48ff3ef | 2481 | as_fn_append ac_func_list " ioctl" |
b15c5d7a | 2482 | as_fn_append ac_func_list " kill" |
a48ff3ef MF |
2483 | as_fn_append ac_func_list " link" |
2484 | as_fn_append ac_func_list " lseek" | |
b15c5d7a MF |
2485 | as_fn_append ac_func_list " mmap" |
2486 | as_fn_append ac_func_list " munmap" | |
a48ff3ef | 2487 | as_fn_append ac_func_list " pipe" |
b15c5d7a MF |
2488 | as_fn_append ac_func_list " posix_fallocate" |
2489 | as_fn_append ac_func_list " pread" | |
a48ff3ef MF |
2490 | as_fn_append ac_func_list " rmdir" |
2491 | as_fn_append ac_func_list " setregid" | |
2492 | as_fn_append ac_func_list " setreuid" | |
b15c5d7a | 2493 | as_fn_append ac_func_list " setgid" |
a48ff3ef | 2494 | as_fn_append ac_func_list " setuid" |
b15c5d7a | 2495 | as_fn_append ac_func_list " sigaction" |
a48ff3ef | 2496 | as_fn_append ac_func_list " sigprocmask" |
b15c5d7a | 2497 | as_fn_append ac_func_list " sqrt" |
a48ff3ef | 2498 | as_fn_append ac_func_list " stat" |
b15c5d7a | 2499 | as_fn_append ac_func_list " strsignal" |
a48ff3ef MF |
2500 | as_fn_append ac_func_list " symlink" |
2501 | as_fn_append ac_func_list " tcdrain" | |
2502 | as_fn_append ac_func_list " tcflow" | |
2503 | as_fn_append ac_func_list " tcflush" | |
2504 | as_fn_append ac_func_list " tcgetattr" | |
2505 | as_fn_append ac_func_list " tcgetpgrp" | |
2506 | as_fn_append ac_func_list " tcsendbreak" | |
2507 | as_fn_append ac_func_list " tcsetattr" | |
2508 | as_fn_append ac_func_list " tcsetpgrp" | |
b15c5d7a MF |
2509 | as_fn_append ac_func_list " time" |
2510 | as_fn_append ac_func_list " truncate" | |
a48ff3ef MF |
2511 | as_fn_append ac_func_list " umask" |
2512 | as_fn_append ac_func_list " unlink" | |
b15c5d7a | 2513 | as_fn_append ac_func_list " utime" |
b7026657 AC |
2514 | # Check that the precious variables saved in the cache have kept the same |
2515 | # value. | |
2516 | ac_cache_corrupted=false | |
81ecdfbb | 2517 | for ac_var in $ac_precious_vars; do |
b7026657 AC |
2518 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2519 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2520 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2521 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b7026657 AC |
2522 | case $ac_old_set,$ac_new_set in |
2523 | set,) | |
81ecdfbb RW |
2524 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2525 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b7026657 AC |
2526 | ac_cache_corrupted=: ;; |
2527 | ,set) | |
81ecdfbb RW |
2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2529 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b7026657 AC |
2530 | ac_cache_corrupted=: ;; |
2531 | ,);; | |
2532 | *) | |
2533 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2534 | # differences in whitespace do not lead to failure. |
2535 | ac_old_val_w=`echo x $ac_old_val` | |
2536 | ac_new_val_w=`echo x $ac_new_val` | |
2537 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2539 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2540 | ac_cache_corrupted=: | |
2541 | else | |
2542 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2543 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2544 | eval $ac_var=\$ac_old_val | |
2545 | fi | |
2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2547 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2548 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2549 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b7026657 AC |
2550 | fi;; |
2551 | esac | |
2552 | # Pass precious variables to config.status. | |
2553 | if test "$ac_new_set" = set; then | |
2554 | case $ac_new_val in | |
81ecdfbb | 2555 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b7026657 AC |
2556 | *) ac_arg=$ac_var=$ac_new_val ;; |
2557 | esac | |
2558 | case " $ac_configure_args " in | |
2559 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2560 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b7026657 | 2561 | esac |
c906108c | 2562 | fi |
b7026657 AC |
2563 | done |
2564 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2566 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2568 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2569 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
c906108c | 2570 | fi |
81ecdfbb RW |
2571 | ## -------------------- ## |
2572 | ## Main body of script. ## | |
2573 | ## -------------------- ## | |
c906108c | 2574 | |
fdd6fa61 AG |
2575 | ac_ext=c |
2576 | ac_cpp='$CPP $CPPFLAGS' | |
2577 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2578 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2579 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2580 | ||
c906108c SS |
2581 | |
2582 | ||
8c379db2 TT |
2583 | |
2584 | ||
2585 | ||
6dd65fc0 MF |
2586 | |
2587 | ||
2588 | # Check whether --with-pkgversion was given. | |
2589 | if test "${with_pkgversion+set}" = set; then : | |
2590 | withval=$with_pkgversion; case "$withval" in | |
2591 | yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; | |
2592 | no) PKGVERSION= ;; | |
2593 | *) PKGVERSION="($withval) " ;; | |
2594 | esac | |
2595 | else | |
2596 | PKGVERSION="(SIM) " | |
2597 | ||
2598 | fi | |
2599 | ||
2600 | ||
2601 | ||
2602 | ||
2603 | cat >>confdefs.h <<_ACEOF | |
2604 | #define PKGVERSION "$PKGVERSION" | |
2605 | _ACEOF | |
2606 | ||
2607 | ||
2608 | ||
2609 | # Check whether --with-bugurl was given. | |
2610 | if test "${with_bugurl+set}" = set; then : | |
2611 | withval=$with_bugurl; case "$withval" in | |
2612 | yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; | |
2613 | no) BUGURL= | |
2614 | ;; | |
2615 | *) BUGURL="$withval" | |
2616 | ;; | |
2617 | esac | |
2618 | else | |
2619 | BUGURL="$PACKAGE_BUGREPORT" | |
2620 | ||
2621 | fi | |
2622 | ||
2623 | case ${BUGURL} in | |
2624 | "") | |
2625 | REPORT_BUGS_TO= | |
2626 | REPORT_BUGS_TEXI= | |
2627 | ;; | |
2628 | *) | |
2629 | REPORT_BUGS_TO="<$BUGURL>" | |
2630 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
2631 | ;; | |
2632 | esac; | |
2633 | ||
2634 | ||
2635 | ||
2636 | ||
2637 | cat >>confdefs.h <<_ACEOF | |
2638 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
2639 | _ACEOF | |
2640 | ||
2641 | ||
b15c5d7a MF |
2642 | ac_config_headers="$ac_config_headers config.h" |
2643 | ||
2644 | ||
6bddc3e8 MF |
2645 | ac_aux_dir= |
2646 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2647 | if test -f "$ac_dir/install-sh"; then | |
2648 | ac_aux_dir=$ac_dir | |
2649 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2650 | break | |
2651 | elif test -f "$ac_dir/install.sh"; then | |
2652 | ac_aux_dir=$ac_dir | |
2653 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2654 | break | |
2655 | elif test -f "$ac_dir/shtool"; then | |
2656 | ac_aux_dir=$ac_dir | |
2657 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2658 | break | |
b7026657 AC |
2659 | fi |
2660 | done | |
6bddc3e8 MF |
2661 | if test -z "$ac_aux_dir"; then |
2662 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
c906108c SS |
2663 | fi |
2664 | ||
6bddc3e8 MF |
2665 | # These three variables are undocumented and unsupported, |
2666 | # and are intended to be withdrawn in a future Autoconf release. | |
2667 | # They can cause serious problems if a builder's source tree is in a directory | |
2668 | # whose full name contains unusual characters. | |
2669 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2670 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2671 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
81ecdfbb | 2672 | |
6bddc3e8 MF |
2673 | |
2674 | # Make sure we can run config.sub. | |
2675 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2676 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2677 | ||
2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2679 | $as_echo_n "checking build system type... " >&6; } | |
2680 | if ${ac_cv_build+:} false; then : | |
81ecdfbb | 2681 | $as_echo_n "(cached) " >&6 |
c906108c | 2682 | else |
6bddc3e8 MF |
2683 | ac_build_alias=$build_alias |
2684 | test "x$ac_build_alias" = x && | |
2685 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2686 | test "x$ac_build_alias" = x && | |
2687 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2688 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2689 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
b7026657 AC |
2690 | |
2691 | fi | |
6bddc3e8 MF |
2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2693 | $as_echo "$ac_cv_build" >&6; } | |
2694 | case $ac_cv_build in | |
2695 | *-*-*) ;; | |
2696 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
81ecdfbb | 2697 | esac |
6bddc3e8 MF |
2698 | build=$ac_cv_build |
2699 | ac_save_IFS=$IFS; IFS='-' | |
2700 | set x $ac_cv_build | |
2701 | shift | |
2702 | build_cpu=$1 | |
2703 | build_vendor=$2 | |
2704 | shift; shift | |
2705 | # Remember, the first character of IFS is used to create $*, | |
2706 | # except with old shells: | |
2707 | build_os=$* | |
2708 | IFS=$ac_save_IFS | |
2709 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
b7026657 | 2710 | |
6bddc3e8 MF |
2711 | |
2712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2713 | $as_echo_n "checking host system type... " >&6; } | |
2714 | if ${ac_cv_host+:} false; then : | |
81ecdfbb | 2715 | $as_echo_n "(cached) " >&6 |
b7026657 | 2716 | else |
6bddc3e8 MF |
2717 | if test "x$host_alias" = x; then |
2718 | ac_cv_host=$ac_cv_build | |
b7026657 | 2719 | else |
6bddc3e8 MF |
2720 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2721 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
b7026657 | 2722 | fi |
6bddc3e8 | 2723 | |
fdd6fa61 | 2724 | fi |
6bddc3e8 MF |
2725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2726 | $as_echo "$ac_cv_host" >&6; } | |
2727 | case $ac_cv_host in | |
2728 | *-*-*) ;; | |
2729 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2730 | esac | |
2731 | host=$ac_cv_host | |
2732 | ac_save_IFS=$IFS; IFS='-' | |
2733 | set x $ac_cv_host | |
2734 | shift | |
2735 | host_cpu=$1 | |
2736 | host_vendor=$2 | |
2737 | shift; shift | |
2738 | # Remember, the first character of IFS is used to create $*, | |
2739 | # except with old shells: | |
2740 | host_os=$* | |
2741 | IFS=$ac_save_IFS | |
2742 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
fdd6fa61 | 2743 | |
fdd6fa61 | 2744 | |
6bddc3e8 MF |
2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2746 | $as_echo_n "checking target system type... " >&6; } | |
2747 | if ${ac_cv_target+:} false; then : | |
81ecdfbb | 2748 | $as_echo_n "(cached) " >&6 |
b7026657 | 2749 | else |
6bddc3e8 MF |
2750 | if test "x$target_alias" = x; then |
2751 | ac_cv_target=$ac_cv_host | |
c906108c | 2752 | else |
6bddc3e8 MF |
2753 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
2754 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2755 | fi | |
2756 | ||
2757 | fi | |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2759 | $as_echo "$ac_cv_target" >&6; } | |
2760 | case $ac_cv_target in | |
2761 | *-*-*) ;; | |
2762 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
2763 | esac | |
2764 | target=$ac_cv_target | |
2765 | ac_save_IFS=$IFS; IFS='-' | |
2766 | set x $ac_cv_target | |
2767 | shift | |
2768 | target_cpu=$1 | |
2769 | target_vendor=$2 | |
2770 | shift; shift | |
2771 | # Remember, the first character of IFS is used to create $*, | |
2772 | # except with old shells: | |
2773 | target_os=$* | |
2774 | IFS=$ac_save_IFS | |
2775 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2776 | ||
2777 | ||
2778 | # The aliases save the names the user supplied, while $host etc. | |
2779 | # will get canonicalized. | |
2780 | test -n "$target_alias" && | |
2781 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2782 | NONENONEs,x,x, && | |
2783 | program_prefix=${target_alias}- | |
c2783492 MF |
2784 | # Expand $ac_aux_dir to an absolute path. |
2785 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
6bddc3e8 | 2786 | |
c2783492 MF |
2787 | ac_ext=c |
2788 | ac_cpp='$CPP $CPPFLAGS' | |
2789 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2790 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2791 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2792 | if test -n "$ac_tool_prefix"; then | |
2793 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2794 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2796 | $as_echo_n "checking for $ac_word... " >&6; } | |
2797 | if ${ac_cv_prog_CC+:} false; then : | |
2798 | $as_echo_n "(cached) " >&6 | |
8c379db2 | 2799 | else |
c2783492 MF |
2800 | if test -n "$CC"; then |
2801 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2802 | else | |
2803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2804 | for as_dir in $PATH | |
2805 | do | |
2806 | IFS=$as_save_IFS | |
2807 | test -z "$as_dir" && as_dir=. | |
2808 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2809 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2810 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2811 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2812 | break 2 | |
2813 | fi | |
2814 | done | |
2815 | done | |
2816 | IFS=$as_save_IFS | |
8c379db2 | 2817 | |
c2783492 MF |
2818 | fi |
2819 | fi | |
2820 | CC=$ac_cv_prog_CC | |
2821 | if test -n "$CC"; then | |
2822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2823 | $as_echo "$CC" >&6; } | |
8c379db2 | 2824 | else |
c2783492 MF |
2825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2826 | $as_echo "no" >&6; } | |
8c379db2 TT |
2827 | fi |
2828 | ||
6bddc3e8 | 2829 | |
c2783492 MF |
2830 | fi |
2831 | if test -z "$ac_cv_prog_CC"; then | |
2832 | ac_ct_CC=$CC | |
2833 | # Extract the first word of "gcc", so it can be a program name with args. | |
2834 | set dummy gcc; ac_word=$2 | |
2835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2836 | $as_echo_n "checking for $ac_word... " >&6; } | |
2837 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
6bddc3e8 MF |
2838 | $as_echo_n "(cached) " >&6 |
2839 | else | |
c2783492 MF |
2840 | if test -n "$ac_ct_CC"; then |
2841 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2842 | else | |
2843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6bddc3e8 MF |
2844 | for as_dir in $PATH |
2845 | do | |
2846 | IFS=$as_save_IFS | |
2847 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
2848 | for ac_exec_ext in '' $ac_executable_extensions; do |
2849 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2850 | ac_cv_prog_ac_ct_CC="gcc" | |
2851 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2852 | break 2 | |
2853 | fi | |
2854 | done | |
6bddc3e8 MF |
2855 | done |
2856 | IFS=$as_save_IFS | |
2857 | ||
6bddc3e8 | 2858 | fi |
6bddc3e8 | 2859 | fi |
c2783492 MF |
2860 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2861 | if test -n "$ac_ct_CC"; then | |
2862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2863 | $as_echo "$ac_ct_CC" >&6; } | |
6bddc3e8 | 2864 | else |
c2783492 MF |
2865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2866 | $as_echo "no" >&6; } | |
6bddc3e8 MF |
2867 | fi |
2868 | ||
c2783492 MF |
2869 | if test "x$ac_ct_CC" = x; then |
2870 | CC="" | |
2871 | else | |
2872 | case $cross_compiling:$ac_tool_warned in | |
2873 | yes:) | |
2874 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2875 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2876 | ac_tool_warned=yes ;; | |
2877 | esac | |
2878 | CC=$ac_ct_CC | |
2879 | fi | |
6bddc3e8 | 2880 | else |
c2783492 | 2881 | CC="$ac_cv_prog_CC" |
6bddc3e8 MF |
2882 | fi |
2883 | ||
c2783492 MF |
2884 | if test -z "$CC"; then |
2885 | if test -n "$ac_tool_prefix"; then | |
2886 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2887 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
6bddc3e8 MF |
2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2889 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 2890 | if ${ac_cv_prog_CC+:} false; then : |
6bddc3e8 MF |
2891 | $as_echo_n "(cached) " >&6 |
2892 | else | |
c2783492 MF |
2893 | if test -n "$CC"; then |
2894 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6bddc3e8 MF |
2895 | else |
2896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2897 | for as_dir in $PATH | |
2898 | do | |
2899 | IFS=$as_save_IFS | |
2900 | test -z "$as_dir" && as_dir=. | |
2901 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2902 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 | 2903 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
6bddc3e8 MF |
2904 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2905 | break 2 | |
2906 | fi | |
2907 | done | |
2908 | done | |
2909 | IFS=$as_save_IFS | |
2910 | ||
2911 | fi | |
2912 | fi | |
c2783492 MF |
2913 | CC=$ac_cv_prog_CC |
2914 | if test -n "$CC"; then | |
2915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2916 | $as_echo "$CC" >&6; } | |
6bddc3e8 MF |
2917 | else |
2918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2919 | $as_echo "no" >&6; } | |
2920 | fi | |
2921 | ||
2922 | ||
c2783492 | 2923 | fi |
6bddc3e8 | 2924 | fi |
c2783492 MF |
2925 | if test -z "$CC"; then |
2926 | # Extract the first word of "cc", so it can be a program name with args. | |
2927 | set dummy cc; ac_word=$2 | |
6bddc3e8 MF |
2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2929 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 2930 | if ${ac_cv_prog_CC+:} false; then : |
6bddc3e8 MF |
2931 | $as_echo_n "(cached) " >&6 |
2932 | else | |
c2783492 MF |
2933 | if test -n "$CC"; then |
2934 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6bddc3e8 | 2935 | else |
c2783492 | 2936 | ac_prog_rejected=no |
6bddc3e8 MF |
2937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2938 | for as_dir in $PATH | |
2939 | do | |
2940 | IFS=$as_save_IFS | |
2941 | test -z "$as_dir" && as_dir=. | |
2942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2943 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 MF |
2944 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2945 | ac_prog_rejected=yes | |
2946 | continue | |
2947 | fi | |
2948 | ac_cv_prog_CC="cc" | |
6bddc3e8 MF |
2949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2950 | break 2 | |
2951 | fi | |
2952 | done | |
2953 | done | |
2954 | IFS=$as_save_IFS | |
2955 | ||
c2783492 MF |
2956 | if test $ac_prog_rejected = yes; then |
2957 | # We found a bogon in the path, so make sure we never use it. | |
2958 | set dummy $ac_cv_prog_CC | |
2959 | shift | |
2960 | if test $# != 0; then | |
2961 | # We chose a different compiler from the bogus one. | |
2962 | # However, it has the same basename, so the bogon will be chosen | |
2963 | # first if we set CC to just the basename; use the full file name. | |
2964 | shift | |
2965 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2966 | fi | |
6bddc3e8 MF |
2967 | fi |
2968 | fi | |
c2783492 MF |
2969 | fi |
2970 | CC=$ac_cv_prog_CC | |
2971 | if test -n "$CC"; then | |
2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2973 | $as_echo "$CC" >&6; } | |
6bddc3e8 MF |
2974 | else |
2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2976 | $as_echo "no" >&6; } | |
2977 | fi | |
2978 | ||
6bddc3e8 MF |
2979 | |
2980 | fi | |
c2783492 MF |
2981 | if test -z "$CC"; then |
2982 | if test -n "$ac_tool_prefix"; then | |
2983 | for ac_prog in cl.exe | |
2984 | do | |
2985 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2986 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2988 | $as_echo_n "checking for $ac_word... " >&6; } | |
2989 | if ${ac_cv_prog_CC+:} false; then : | |
6bddc3e8 MF |
2990 | $as_echo_n "(cached) " >&6 |
2991 | else | |
c2783492 MF |
2992 | if test -n "$CC"; then |
2993 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2994 | else | |
2995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2996 | for as_dir in $PATH | |
6bddc3e8 MF |
2997 | do |
2998 | IFS=$as_save_IFS | |
2999 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
3000 | for ac_exec_ext in '' $ac_executable_extensions; do |
3001 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3002 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3003 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3004 | break 2 | |
3005 | fi | |
3006 | done | |
6bddc3e8 MF |
3007 | done |
3008 | IFS=$as_save_IFS | |
3009 | ||
3010 | fi | |
6bddc3e8 | 3011 | fi |
c2783492 MF |
3012 | CC=$ac_cv_prog_CC |
3013 | if test -n "$CC"; then | |
3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3015 | $as_echo "$CC" >&6; } | |
3016 | else | |
3017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3018 | $as_echo "no" >&6; } | |
3019 | fi | |
6bddc3e8 | 3020 | |
c2783492 MF |
3021 | |
3022 | test -n "$CC" && break | |
3023 | done | |
3024 | fi | |
3025 | if test -z "$CC"; then | |
3026 | ac_ct_CC=$CC | |
3027 | for ac_prog in cl.exe | |
6bddc3e8 MF |
3028 | do |
3029 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3030 | set dummy $ac_prog; ac_word=$2 | |
3031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3032 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 3033 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
6bddc3e8 MF |
3034 | $as_echo_n "(cached) " >&6 |
3035 | else | |
c2783492 MF |
3036 | if test -n "$ac_ct_CC"; then |
3037 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
6bddc3e8 MF |
3038 | else |
3039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3040 | for as_dir in $PATH | |
3041 | do | |
3042 | IFS=$as_save_IFS | |
3043 | test -z "$as_dir" && as_dir=. | |
3044 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3045 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 | 3046 | ac_cv_prog_ac_ct_CC="$ac_prog" |
6bddc3e8 MF |
3047 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3048 | break 2 | |
3049 | fi | |
3050 | done | |
3051 | done | |
3052 | IFS=$as_save_IFS | |
3053 | ||
3054 | fi | |
3055 | fi | |
c2783492 MF |
3056 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3057 | if test -n "$ac_ct_CC"; then | |
3058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3059 | $as_echo "$ac_ct_CC" >&6; } | |
6bddc3e8 MF |
3060 | else |
3061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3062 | $as_echo "no" >&6; } | |
3063 | fi | |
3064 | ||
3065 | ||
c2783492 | 3066 | test -n "$ac_ct_CC" && break |
6bddc3e8 MF |
3067 | done |
3068 | ||
c2783492 MF |
3069 | if test "x$ac_ct_CC" = x; then |
3070 | CC="" | |
3071 | else | |
3072 | case $cross_compiling:$ac_tool_warned in | |
3073 | yes:) | |
3074 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3075 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3076 | ac_tool_warned=yes ;; | |
6bddc3e8 | 3077 | esac |
c2783492 | 3078 | CC=$ac_ct_CC |
6bddc3e8 MF |
3079 | fi |
3080 | fi | |
3081 | ||
6bddc3e8 MF |
3082 | fi |
3083 | ||
3084 | ||
c2783492 MF |
3085 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3086 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3087 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3088 | See \`config.log' for more details" "$LINENO" 5; } | |
6bddc3e8 | 3089 | |
c2783492 MF |
3090 | # Provide some information about the compiler. |
3091 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3092 | set X $ac_compile | |
3093 | ac_compiler=$2 | |
3094 | for ac_option in --version -v -V -qversion; do | |
3095 | { { ac_try="$ac_compiler $ac_option >&5" | |
3096 | case "(($ac_try" in | |
3097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3098 | *) ac_try_echo=$ac_try;; | |
3099 | esac | |
3100 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3101 | $as_echo "$ac_try_echo"; } >&5 | |
3102 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3103 | ac_status=$? | |
3104 | if test -s conftest.err; then | |
3105 | sed '10a\ | |
3106 | ... rest of stderr output deleted ... | |
3107 | 10q' conftest.err >conftest.er1 | |
3108 | cat conftest.er1 >&5 | |
3109 | fi | |
3110 | rm -f conftest.er1 conftest.err | |
3111 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3112 | test $ac_status = 0; } | |
3113 | done | |
6bddc3e8 | 3114 | |
c2783492 MF |
3115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3116 | /* end confdefs.h. */ | |
6bddc3e8 | 3117 | |
c2783492 MF |
3118 | int |
3119 | main () | |
3120 | { | |
6bddc3e8 | 3121 | |
c2783492 MF |
3122 | ; |
3123 | return 0; | |
3124 | } | |
6bddc3e8 | 3125 | _ACEOF |
c2783492 MF |
3126 | ac_clean_files_save=$ac_clean_files |
3127 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3128 | # Try to create an executable without -o first, disregard a.out. | |
3129 | # It will help us diagnose broken compilers, and finding out an intuition | |
3130 | # of exeext. | |
3131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3132 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3133 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
6bddc3e8 | 3134 | |
c2783492 MF |
3135 | # The possible output files: |
3136 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
6bddc3e8 | 3137 | |
c2783492 MF |
3138 | ac_rmfiles= |
3139 | for ac_file in $ac_files | |
3140 | do | |
3141 | case $ac_file in | |
3142 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3143 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3144 | esac | |
3145 | done | |
3146 | rm -f $ac_rmfiles | |
81ecdfbb RW |
3147 | |
3148 | if { { ac_try="$ac_link_default" | |
3149 | case "(($ac_try" in | |
3150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3151 | *) ac_try_echo=$ac_try;; | |
3152 | esac | |
3153 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3154 | $as_echo "$ac_try_echo"; } >&5 | |
3155 | (eval "$ac_link_default") 2>&5 | |
b7026657 | 3156 | ac_status=$? |
81ecdfbb RW |
3157 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3158 | test $ac_status = 0; }; then : | |
3159 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3160 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3161 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3162 | # so that the user can short-circuit this test for compilers unknown to | |
3163 | # Autoconf. | |
3164 | for ac_file in $ac_files '' | |
b7026657 AC |
3165 | do |
3166 | test -f "$ac_file" || continue | |
3167 | case $ac_file in | |
81ecdfbb | 3168 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b7026657 AC |
3169 | ;; |
3170 | [ab].out ) | |
3171 | # We found the default executable, but exeext='' is most | |
3172 | # certainly right. | |
3173 | break;; | |
3174 | *.* ) | |
81ecdfbb RW |
3175 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3176 | then :; else | |
3177 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3178 | fi | |
3179 | # We set ac_cv_exeext here because the later test for it is not | |
3180 | # safe: cross compilers may not add the suffix if given an `-o' | |
3181 | # argument, so we may need to know it at that point already. | |
3182 | # Even if this section looks crufty: it has the advantage of | |
3183 | # actually working. | |
b7026657 AC |
3184 | break;; |
3185 | * ) | |
3186 | break;; | |
3187 | esac | |
3188 | done | |
81ecdfbb RW |
3189 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3190 | ||
b7026657 | 3191 | else |
81ecdfbb RW |
3192 | ac_file='' |
3193 | fi | |
81ecdfbb | 3194 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
3195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3196 | $as_echo "no" >&6; } | |
3197 | $as_echo "$as_me: failed program was:" >&5 | |
b7026657 AC |
3198 | sed 's/^/| /' conftest.$ac_ext >&5 |
3199 | ||
81ecdfbb RW |
3200 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3201 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3202 | as_fn_error 77 "C compiler cannot create executables |
3203 | See \`config.log' for more details" "$LINENO" 5; } | |
3204 | else | |
3205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3206 | $as_echo "yes" >&6; } | |
b7026657 | 3207 | fi |
d0ac1c44 SM |
3208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3209 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3211 | $as_echo "$ac_file" >&6; } | |
b7026657 | 3212 | ac_exeext=$ac_cv_exeext |
b7026657 | 3213 | |
d0ac1c44 | 3214 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b7026657 | 3215 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3217 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3218 | if { { ac_try="$ac_link" | |
3219 | case "(($ac_try" in | |
3220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3221 | *) ac_try_echo=$ac_try;; | |
3222 | esac | |
3223 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3224 | $as_echo "$ac_try_echo"; } >&5 | |
3225 | (eval "$ac_link") 2>&5 | |
b7026657 | 3226 | ac_status=$? |
81ecdfbb RW |
3227 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3228 | test $ac_status = 0; }; then : | |
b7026657 AC |
3229 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3230 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3231 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3232 | # `rm'. | |
3233 | for ac_file in conftest.exe conftest conftest.*; do | |
3234 | test -f "$ac_file" || continue | |
3235 | case $ac_file in | |
81ecdfbb | 3236 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b7026657 | 3237 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b7026657 AC |
3238 | break;; |
3239 | * ) break;; | |
3240 | esac | |
3241 | done | |
c906108c | 3242 | else |
81ecdfbb RW |
3243 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3244 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3245 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3246 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 3247 | fi |
d0ac1c44 | 3248 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3250 | $as_echo "$ac_cv_exeext" >&6; } | |
b7026657 AC |
3251 | |
3252 | rm -f conftest.$ac_ext | |
3253 | EXEEXT=$ac_cv_exeext | |
3254 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
3255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3256 | /* end confdefs.h. */ | |
3257 | #include <stdio.h> | |
3258 | int | |
3259 | main () | |
3260 | { | |
3261 | FILE *f = fopen ("conftest.out", "w"); | |
3262 | return ferror (f) || fclose (f) != 0; | |
3263 | ||
3264 | ; | |
3265 | return 0; | |
3266 | } | |
3267 | _ACEOF | |
3268 | ac_clean_files="$ac_clean_files conftest.out" | |
3269 | # Check that the compiler produces executables we can run. If not, either | |
3270 | # the compiler is broken, or we cross compile. | |
3271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3272 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3273 | if test "$cross_compiling" != yes; then | |
3274 | { { ac_try="$ac_link" | |
3275 | case "(($ac_try" in | |
3276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3277 | *) ac_try_echo=$ac_try;; | |
3278 | esac | |
3279 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3280 | $as_echo "$ac_try_echo"; } >&5 | |
3281 | (eval "$ac_link") 2>&5 | |
3282 | ac_status=$? | |
3283 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3284 | test $ac_status = 0; } | |
3285 | if { ac_try='./conftest$ac_cv_exeext' | |
3286 | { { case "(($ac_try" in | |
3287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3288 | *) ac_try_echo=$ac_try;; | |
3289 | esac | |
3290 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3291 | $as_echo "$ac_try_echo"; } >&5 | |
3292 | (eval "$ac_try") 2>&5 | |
3293 | ac_status=$? | |
3294 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3295 | test $ac_status = 0; }; }; then | |
3296 | cross_compiling=no | |
3297 | else | |
3298 | if test "$cross_compiling" = maybe; then | |
3299 | cross_compiling=yes | |
3300 | else | |
3301 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3302 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3303 | as_fn_error $? "cannot run C compiled programs. | |
3304 | If you meant to cross compile, use \`--host'. | |
3305 | See \`config.log' for more details" "$LINENO" 5; } | |
3306 | fi | |
3307 | fi | |
3308 | fi | |
3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3310 | $as_echo "$cross_compiling" >&6; } | |
3311 | ||
3312 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3313 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3315 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 3316 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 3317 | $as_echo_n "(cached) " >&6 |
b7026657 | 3318 | else |
81ecdfbb | 3319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3320 | /* end confdefs.h. */ |
3321 | ||
3322 | int | |
3323 | main () | |
3324 | { | |
3325 | ||
3326 | ; | |
3327 | return 0; | |
3328 | } | |
3329 | _ACEOF | |
3330 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3331 | if { { ac_try="$ac_compile" |
3332 | case "(($ac_try" in | |
3333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3334 | *) ac_try_echo=$ac_try;; | |
3335 | esac | |
3336 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3337 | $as_echo "$ac_try_echo"; } >&5 | |
3338 | (eval "$ac_compile") 2>&5 | |
b7026657 | 3339 | ac_status=$? |
81ecdfbb RW |
3340 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3341 | test $ac_status = 0; }; then : | |
3342 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3343 | test -f "$ac_file" || continue; | |
b7026657 | 3344 | case $ac_file in |
81ecdfbb | 3345 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b7026657 AC |
3346 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3347 | break;; | |
3348 | esac | |
3349 | done | |
3350 | else | |
81ecdfbb | 3351 | $as_echo "$as_me: failed program was:" >&5 |
b7026657 AC |
3352 | sed 's/^/| /' conftest.$ac_ext >&5 |
3353 | ||
81ecdfbb RW |
3354 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3355 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3356 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3357 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 3358 | fi |
b7026657 AC |
3359 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3360 | fi | |
81ecdfbb RW |
3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3362 | $as_echo "$ac_cv_objext" >&6; } | |
b7026657 AC |
3363 | OBJEXT=$ac_cv_objext |
3364 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3366 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 3367 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 3368 | $as_echo_n "(cached) " >&6 |
b7026657 | 3369 | else |
81ecdfbb | 3370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3371 | /* end confdefs.h. */ |
3372 | ||
3373 | int | |
3374 | main () | |
3375 | { | |
3376 | #ifndef __GNUC__ | |
3377 | choke me | |
3378 | #endif | |
c906108c | 3379 | |
b7026657 AC |
3380 | ; |
3381 | return 0; | |
3382 | } | |
3383 | _ACEOF | |
81ecdfbb | 3384 | if ac_fn_c_try_compile "$LINENO"; then : |
b7026657 | 3385 | ac_compiler_gnu=yes |
c906108c | 3386 | else |
81ecdfbb | 3387 | ac_compiler_gnu=no |
c906108c | 3388 | fi |
81ecdfbb | 3389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 3390 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
c906108c | 3391 | |
b7026657 | 3392 | fi |
81ecdfbb RW |
3393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3394 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3395 | if test $ac_compiler_gnu = yes; then | |
3396 | GCC=yes | |
3397 | else | |
3398 | GCC= | |
3399 | fi | |
b7026657 AC |
3400 | ac_test_CFLAGS=${CFLAGS+set} |
3401 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3403 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 3404 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb | 3405 | $as_echo_n "(cached) " >&6 |
c906108c | 3406 | else |
81ecdfbb RW |
3407 | ac_save_c_werror_flag=$ac_c_werror_flag |
3408 | ac_c_werror_flag=yes | |
3409 | ac_cv_prog_cc_g=no | |
3410 | CFLAGS="-g" | |
3411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 AC |
3412 | /* end confdefs.h. */ |
3413 | ||
3414 | int | |
3415 | main () | |
3416 | { | |
3417 | ||
3418 | ; | |
3419 | return 0; | |
3420 | } | |
3421 | _ACEOF | |
81ecdfbb | 3422 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
3423 | ac_cv_prog_cc_g=yes |
3424 | else | |
81ecdfbb RW |
3425 | CFLAGS="" |
3426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3427 | /* end confdefs.h. */ | |
3428 | ||
3429 | int | |
3430 | main () | |
3431 | { | |
3432 | ||
3433 | ; | |
3434 | return 0; | |
3435 | } | |
3436 | _ACEOF | |
3437 | if ac_fn_c_try_compile "$LINENO"; then : | |
3438 | ||
3439 | else | |
3440 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3441 | CFLAGS="-g" | |
3442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3443 | /* end confdefs.h. */ | |
3444 | ||
3445 | int | |
3446 | main () | |
3447 | { | |
c906108c | 3448 | |
81ecdfbb RW |
3449 | ; |
3450 | return 0; | |
3451 | } | |
3452 | _ACEOF | |
3453 | if ac_fn_c_try_compile "$LINENO"; then : | |
3454 | ac_cv_prog_cc_g=yes | |
3455 | fi | |
3456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 3457 | fi |
81ecdfbb | 3458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 3459 | fi |
81ecdfbb RW |
3460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3461 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3462 | fi | |
3463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3464 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
c906108c | 3465 | if test "$ac_test_CFLAGS" = set; then |
b7026657 | 3466 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
3467 | elif test $ac_cv_prog_cc_g = yes; then |
3468 | if test "$GCC" = yes; then | |
3469 | CFLAGS="-g -O2" | |
3470 | else | |
3471 | CFLAGS="-g" | |
3472 | fi | |
3473 | else | |
3474 | if test "$GCC" = yes; then | |
3475 | CFLAGS="-O2" | |
3476 | else | |
3477 | CFLAGS= | |
3478 | fi | |
3479 | fi | |
81ecdfbb RW |
3480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3481 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 3482 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 3483 | $as_echo_n "(cached) " >&6 |
b7026657 | 3484 | else |
81ecdfbb | 3485 | ac_cv_prog_cc_c89=no |
b7026657 | 3486 | ac_save_CC=$CC |
81ecdfbb | 3487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3488 | /* end confdefs.h. */ |
3489 | #include <stdarg.h> | |
3490 | #include <stdio.h> | |
d0ac1c44 | 3491 | struct stat; |
b7026657 AC |
3492 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3493 | struct buf { int x; }; | |
3494 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3495 | static char *e (p, i) | |
3496 | char **p; | |
3497 | int i; | |
3498 | { | |
3499 | return p[i]; | |
3500 | } | |
3501 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3502 | { | |
3503 | char *s; | |
3504 | va_list v; | |
3505 | va_start (v,p); | |
3506 | s = g (p, va_arg (v,int)); | |
3507 | va_end (v); | |
3508 | return s; | |
3509 | } | |
3510 | ||
3511 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3512 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3513 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3514 | as 'x'. The following induces an error, until -std is added to get |
b7026657 AC |
3515 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3516 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3517 | that's true only with -std. */ |
b7026657 AC |
3518 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3519 | ||
81ecdfbb RW |
3520 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3521 | inside strings and character constants. */ | |
3522 | #define FOO(x) 'x' | |
3523 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3524 | ||
b7026657 AC |
3525 | int test (int i, double x); |
3526 | struct s1 {int (*f) (int a);}; | |
3527 | struct s2 {int (*f) (double a);}; | |
3528 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3529 | int argc; | |
3530 | char **argv; | |
3531 | int | |
3532 | main () | |
3533 | { | |
3534 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3535 | ; | |
3536 | return 0; | |
3537 | } | |
3538 | _ACEOF | |
81ecdfbb RW |
3539 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3540 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b7026657 AC |
3541 | do |
3542 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3543 | if ac_fn_c_try_compile "$LINENO"; then : |
3544 | ac_cv_prog_cc_c89=$ac_arg | |
b7026657 | 3545 | fi |
81ecdfbb RW |
3546 | rm -f core conftest.err conftest.$ac_objext |
3547 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b7026657 | 3548 | done |
81ecdfbb | 3549 | rm -f conftest.$ac_ext |
b7026657 AC |
3550 | CC=$ac_save_CC |
3551 | ||
3552 | fi | |
81ecdfbb RW |
3553 | # AC_CACHE_VAL |
3554 | case "x$ac_cv_prog_cc_c89" in | |
3555 | x) | |
3556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3557 | $as_echo "none needed" >&6; } ;; | |
3558 | xno) | |
3559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3560 | $as_echo "unsupported" >&6; } ;; | |
b7026657 | 3561 | *) |
81ecdfbb RW |
3562 | CC="$CC $ac_cv_prog_cc_c89" |
3563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3564 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b7026657 | 3565 | esac |
81ecdfbb | 3566 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b7026657 | 3567 | |
fdd6fa61 AG |
3568 | fi |
3569 | ||
fdd6fa61 AG |
3570 | ac_ext=c |
3571 | ac_cpp='$CPP $CPPFLAGS' | |
3572 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3573 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3574 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3575 | ||
c2783492 MF |
3576 | ac_ext=c |
3577 | ac_cpp='$CPP $CPPFLAGS' | |
3578 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3579 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3580 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3582 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3583 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3584 | $as_echo_n "(cached) " >&6 | |
3585 | else | |
3586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3587 | /* end confdefs.h. */ | |
3588 | ||
3589 | int | |
3590 | main () | |
3591 | { | |
3592 | ||
3593 | ; | |
3594 | return 0; | |
3595 | } | |
3596 | _ACEOF | |
3597 | # Make sure it works both with $CC and with simple cc. | |
3598 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3599 | # compilers refuse to overwrite an existing .o file with -o, | |
3600 | # though they will create one. | |
3601 | am_cv_prog_cc_c_o=yes | |
3602 | for am_i in 1 2; do | |
3603 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3604 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3605 | ac_status=$? | |
3606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3607 | (exit $ac_status); } \ | |
3608 | && test -f conftest2.$ac_objext; then | |
3609 | : OK | |
3610 | else | |
3611 | am_cv_prog_cc_c_o=no | |
3612 | break | |
3613 | fi | |
3614 | done | |
3615 | rm -f core conftest* | |
3616 | unset am_i | |
3617 | fi | |
3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3619 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3620 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3621 | # Losing compiler, so override with the script. | |
3622 | # FIXME: It is wrong to rewrite CC. | |
3623 | # But if we don't then we get into trouble of one sort or another. | |
3624 | # A longer-term fix would be to have automake use am__CC in this case, | |
3625 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3626 | CC="$am_aux_dir/compile $CC" | |
3627 | fi | |
3628 | ac_ext=c | |
3629 | ac_cpp='$CPP $CPPFLAGS' | |
3630 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3631 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3632 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3633 | ||
3634 | ||
3635 | ||
3636 | ac_ext=c | |
3637 | ac_cpp='$CPP $CPPFLAGS' | |
3638 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3639 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3640 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3642 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3643 | # On Suns, sometimes $CPP names a directory. | |
3644 | if test -n "$CPP" && test -d "$CPP"; then | |
3645 | CPP= | |
3646 | fi | |
3647 | if test -z "$CPP"; then | |
3648 | if ${ac_cv_prog_CPP+:} false; then : | |
3649 | $as_echo_n "(cached) " >&6 | |
3650 | else | |
3651 | # Double quotes because CPP needs to be expanded | |
3652 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3653 | do | |
3654 | ac_preproc_ok=false | |
3655 | for ac_c_preproc_warn_flag in '' yes | |
3656 | do | |
3657 | # Use a header file that comes with gcc, so configuring glibc | |
3658 | # with a fresh cross-compiler works. | |
3659 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3660 | # <limits.h> exists even on freestanding compilers. | |
3661 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3662 | # not just through cpp. "Syntax error" is here to catch this case. | |
3663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3664 | /* end confdefs.h. */ | |
3665 | #ifdef __STDC__ | |
3666 | # include <limits.h> | |
3667 | #else | |
3668 | # include <assert.h> | |
3669 | #endif | |
3670 | Syntax error | |
3671 | _ACEOF | |
3672 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3673 | ||
3674 | else | |
3675 | # Broken: fails on valid input. | |
3676 | continue | |
3677 | fi | |
3678 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3679 | ||
3680 | # OK, works on sane cases. Now check whether nonexistent headers | |
3681 | # can be detected and how. | |
3682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3683 | /* end confdefs.h. */ | |
3684 | #include <ac_nonexistent.h> | |
3685 | _ACEOF | |
3686 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3687 | # Broken: success on invalid input. | |
3688 | continue | |
3689 | else | |
3690 | # Passes both tests. | |
3691 | ac_preproc_ok=: | |
3692 | break | |
3693 | fi | |
3694 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3695 | ||
3696 | done | |
3697 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3698 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3699 | if $ac_preproc_ok; then : | |
3700 | break | |
3701 | fi | |
3702 | ||
3703 | done | |
3704 | ac_cv_prog_CPP=$CPP | |
3705 | ||
3706 | fi | |
3707 | CPP=$ac_cv_prog_CPP | |
3708 | else | |
3709 | ac_cv_prog_CPP=$CPP | |
3710 | fi | |
3711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3712 | $as_echo "$CPP" >&6; } | |
3713 | ac_preproc_ok=false | |
3714 | for ac_c_preproc_warn_flag in '' yes | |
3715 | do | |
3716 | # Use a header file that comes with gcc, so configuring glibc | |
3717 | # with a fresh cross-compiler works. | |
3718 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3719 | # <limits.h> exists even on freestanding compilers. | |
3720 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3721 | # not just through cpp. "Syntax error" is here to catch this case. | |
3722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3723 | /* end confdefs.h. */ | |
3724 | #ifdef __STDC__ | |
3725 | # include <limits.h> | |
3726 | #else | |
3727 | # include <assert.h> | |
3728 | #endif | |
3729 | Syntax error | |
3730 | _ACEOF | |
3731 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3732 | ||
3733 | else | |
3734 | # Broken: fails on valid input. | |
3735 | continue | |
3736 | fi | |
3737 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3738 | ||
3739 | # OK, works on sane cases. Now check whether nonexistent headers | |
3740 | # can be detected and how. | |
3741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3742 | /* end confdefs.h. */ | |
3743 | #include <ac_nonexistent.h> | |
3744 | _ACEOF | |
3745 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3746 | # Broken: success on invalid input. | |
3747 | continue | |
3748 | else | |
3749 | # Passes both tests. | |
3750 | ac_preproc_ok=: | |
3751 | break | |
3752 | fi | |
3753 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3754 | ||
3755 | done | |
3756 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3757 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3758 | if $ac_preproc_ok; then : | |
3759 | ||
3760 | else | |
3761 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3762 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3763 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3764 | See \`config.log' for more details" "$LINENO" 5; } | |
3765 | fi | |
3766 | ||
3767 | ac_ext=c | |
3768 | ac_cpp='$CPP $CPPFLAGS' | |
3769 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3770 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3771 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3772 | ||
3773 | ||
3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3775 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3776 | if ${ac_cv_path_GREP+:} false; then : | |
3777 | $as_echo_n "(cached) " >&6 | |
3778 | else | |
3779 | if test -z "$GREP"; then | |
3780 | ac_path_GREP_found=false | |
3781 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3783 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3784 | do | |
3785 | IFS=$as_save_IFS | |
3786 | test -z "$as_dir" && as_dir=. | |
3787 | for ac_prog in grep ggrep; do | |
3788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3789 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3790 | as_fn_executable_p "$ac_path_GREP" || continue | |
3791 | # Check for GNU ac_path_GREP and select it if it is found. | |
3792 | # Check for GNU $ac_path_GREP | |
3793 | case `"$ac_path_GREP" --version 2>&1` in | |
3794 | *GNU*) | |
3795 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3796 | *) | |
3797 | ac_count=0 | |
3798 | $as_echo_n 0123456789 >"conftest.in" | |
3799 | while : | |
3800 | do | |
3801 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3802 | mv "conftest.tmp" "conftest.in" | |
3803 | cp "conftest.in" "conftest.nl" | |
3804 | $as_echo 'GREP' >> "conftest.nl" | |
3805 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3806 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3807 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3808 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3809 | # Best one so far, save it but keep looking for a better one | |
3810 | ac_cv_path_GREP="$ac_path_GREP" | |
3811 | ac_path_GREP_max=$ac_count | |
3812 | fi | |
3813 | # 10*(2^10) chars as input seems more than enough | |
3814 | test $ac_count -gt 10 && break | |
3815 | done | |
3816 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3817 | esac | |
3818 | ||
3819 | $ac_path_GREP_found && break 3 | |
3820 | done | |
3821 | done | |
3822 | done | |
3823 | IFS=$as_save_IFS | |
3824 | if test -z "$ac_cv_path_GREP"; then | |
3825 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3826 | fi | |
3827 | else | |
3828 | ac_cv_path_GREP=$GREP | |
3829 | fi | |
3830 | ||
3831 | fi | |
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3833 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3834 | GREP="$ac_cv_path_GREP" | |
3835 | ||
3836 | ||
3837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3838 | $as_echo_n "checking for egrep... " >&6; } | |
3839 | if ${ac_cv_path_EGREP+:} false; then : | |
3840 | $as_echo_n "(cached) " >&6 | |
3841 | else | |
3842 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3843 | then ac_cv_path_EGREP="$GREP -E" | |
3844 | else | |
3845 | if test -z "$EGREP"; then | |
3846 | ac_path_EGREP_found=false | |
3847 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3849 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3850 | do | |
3851 | IFS=$as_save_IFS | |
3852 | test -z "$as_dir" && as_dir=. | |
3853 | for ac_prog in egrep; do | |
3854 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3855 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3856 | as_fn_executable_p "$ac_path_EGREP" || continue | |
3857 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3858 | # Check for GNU $ac_path_EGREP | |
3859 | case `"$ac_path_EGREP" --version 2>&1` in | |
3860 | *GNU*) | |
3861 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3862 | *) | |
3863 | ac_count=0 | |
3864 | $as_echo_n 0123456789 >"conftest.in" | |
3865 | while : | |
3866 | do | |
3867 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3868 | mv "conftest.tmp" "conftest.in" | |
3869 | cp "conftest.in" "conftest.nl" | |
3870 | $as_echo 'EGREP' >> "conftest.nl" | |
3871 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3872 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3873 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3874 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3875 | # Best one so far, save it but keep looking for a better one | |
3876 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3877 | ac_path_EGREP_max=$ac_count | |
3878 | fi | |
3879 | # 10*(2^10) chars as input seems more than enough | |
3880 | test $ac_count -gt 10 && break | |
3881 | done | |
3882 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3883 | esac | |
3884 | ||
3885 | $ac_path_EGREP_found && break 3 | |
3886 | done | |
3887 | done | |
3888 | done | |
3889 | IFS=$as_save_IFS | |
3890 | if test -z "$ac_cv_path_EGREP"; then | |
3891 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3892 | fi | |
3893 | else | |
3894 | ac_cv_path_EGREP=$EGREP | |
3895 | fi | |
3896 | ||
3897 | fi | |
3898 | fi | |
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3900 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3901 | EGREP="$ac_cv_path_EGREP" | |
3902 | ||
3903 | ||
3904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3905 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3906 | if ${ac_cv_header_stdc+:} false; then : | |
6bddc3e8 MF |
3907 | $as_echo_n "(cached) " >&6 |
3908 | else | |
3909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3910 | /* end confdefs.h. */ | |
c2783492 MF |
3911 | #include <stdlib.h> |
3912 | #include <stdarg.h> | |
3913 | #include <string.h> | |
3914 | #include <float.h> | |
6bddc3e8 MF |
3915 | |
3916 | int | |
3917 | main () | |
3918 | { | |
3919 | ||
3920 | ; | |
3921 | return 0; | |
3922 | } | |
3923 | _ACEOF | |
c2783492 MF |
3924 | if ac_fn_c_try_compile "$LINENO"; then : |
3925 | ac_cv_header_stdc=yes | |
3926 | else | |
3927 | ac_cv_header_stdc=no | |
fdd6fa61 | 3928 | fi |
c2783492 | 3929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
81ecdfbb | 3930 | |
c2783492 MF |
3931 | if test $ac_cv_header_stdc = yes; then |
3932 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3934 | /* end confdefs.h. */ | |
3935 | #include <string.h> | |
6bddc3e8 | 3936 | |
c2783492 MF |
3937 | _ACEOF |
3938 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3939 | $EGREP "memchr" >/dev/null 2>&1; then : | |
6bddc3e8 | 3940 | |
c2783492 MF |
3941 | else |
3942 | ac_cv_header_stdc=no | |
3943 | fi | |
3944 | rm -f conftest* | |
6bddc3e8 | 3945 | |
6bddc3e8 | 3946 | fi |
81ecdfbb | 3947 | |
c2783492 MF |
3948 | if test $ac_cv_header_stdc = yes; then |
3949 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3951 | /* end confdefs.h. */ | |
3952 | #include <stdlib.h> | |
fdd6fa61 | 3953 | |
c2783492 MF |
3954 | _ACEOF |
3955 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3956 | $EGREP "free" >/dev/null 2>&1; then : | |
6bddc3e8 | 3957 | |
c2783492 MF |
3958 | else |
3959 | ac_cv_header_stdc=no | |
6bddc3e8 | 3960 | fi |
c2783492 | 3961 | rm -f conftest* |
6bddc3e8 | 3962 | |
6bddc3e8 | 3963 | fi |
c2783492 MF |
3964 | |
3965 | if test $ac_cv_header_stdc = yes; then | |
3966 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3967 | if test "$cross_compiling" = yes; then : | |
3968 | : | |
6bddc3e8 | 3969 | else |
c2783492 MF |
3970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3971 | /* end confdefs.h. */ | |
3972 | #include <ctype.h> | |
3973 | #include <stdlib.h> | |
3974 | #if ((' ' & 0x0FF) == 0x020) | |
3975 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3976 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3977 | #else | |
3978 | # define ISLOWER(c) \ | |
3979 | (('a' <= (c) && (c) <= 'i') \ | |
3980 | || ('j' <= (c) && (c) <= 'r') \ | |
3981 | || ('s' <= (c) && (c) <= 'z')) | |
3982 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3983 | #endif | |
3984 | ||
3985 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3986 | int | |
3987 | main () | |
3988 | { | |
3989 | int i; | |
3990 | for (i = 0; i < 256; i++) | |
3991 | if (XOR (islower (i), ISLOWER (i)) | |
3992 | || toupper (i) != TOUPPER (i)) | |
3993 | return 2; | |
3994 | return 0; | |
3995 | } | |
3996 | _ACEOF | |
3997 | if ac_fn_c_try_run "$LINENO"; then : | |
3998 | ||
3999 | else | |
4000 | ac_cv_header_stdc=no | |
4001 | fi | |
4002 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4003 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6bddc3e8 MF |
4004 | fi |
4005 | ||
c2783492 MF |
4006 | fi |
4007 | fi | |
4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4009 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4010 | if test $ac_cv_header_stdc = yes; then | |
6bddc3e8 | 4011 | |
c2783492 | 4012 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
6bddc3e8 | 4013 | |
c2783492 | 4014 | fi |
6bddc3e8 | 4015 | |
c2783492 MF |
4016 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4017 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4018 | inttypes.h stdint.h unistd.h | |
4019 | do : | |
4020 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4021 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4022 | " | |
4023 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4024 | cat >>confdefs.h <<_ACEOF | |
4025 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4026 | _ACEOF | |
4027 | ||
4028 | fi | |
4029 | ||
4030 | done | |
4031 | ||
4032 | ||
4033 | ||
4034 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4035 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
4036 | MINIX=yes | |
fdd6fa61 | 4037 | else |
c2783492 MF |
4038 | MINIX= |
4039 | fi | |
4040 | ||
4041 | ||
4042 | if test "$MINIX" = yes; then | |
4043 | ||
4044 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4045 | ||
4046 | ||
4047 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4048 | ||
4049 | ||
4050 | $as_echo "#define _MINIX 1" >>confdefs.h | |
6bddc3e8 | 4051 | |
6bddc3e8 | 4052 | fi |
6bddc3e8 | 4053 | |
6bddc3e8 | 4054 | |
c2783492 MF |
4055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4056 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4057 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
4058 | $as_echo_n "(cached) " >&6 | |
4059 | else | |
4060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4061 | /* end confdefs.h. */ | |
c906108c | 4062 | |
c2783492 MF |
4063 | # define __EXTENSIONS__ 1 |
4064 | $ac_includes_default | |
4065 | int | |
4066 | main () | |
4067 | { | |
4068 | ||
4069 | ; | |
4070 | return 0; | |
4071 | } | |
4072 | _ACEOF | |
4073 | if ac_fn_c_try_compile "$LINENO"; then : | |
4074 | ac_cv_safe_to_define___extensions__=yes | |
6bddc3e8 | 4075 | else |
c2783492 MF |
4076 | ac_cv_safe_to_define___extensions__=no |
4077 | fi | |
4078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 4079 | fi |
c2783492 MF |
4080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4081 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4082 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4083 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
6bddc3e8 | 4084 | |
c2783492 | 4085 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
c906108c | 4086 | |
c2783492 | 4087 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
c906108c | 4088 | |
c2783492 | 4089 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
c906108c | 4090 | |
c2783492 | 4091 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
c906108c | 4092 | |
c2783492 MF |
4093 | |
4094 | test "$program_prefix" != NONE && | |
4095 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4096 | # Use a double $ so make ignores it. | |
4097 | test "$program_suffix" != NONE && | |
4098 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4099 | # Double any \ or $. | |
4100 | # By default was `s,x,x', remove it if useless. | |
4101 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4102 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4103 | ||
4104 | # Find a good install program. We prefer a C program (faster), | |
4105 | # so one script is as good as another. But avoid the broken or | |
4106 | # incompatible versions: | |
4107 | # SysV /etc/install, /usr/sbin/install | |
4108 | # SunOS /usr/etc/install | |
4109 | # IRIX /sbin/install | |
4110 | # AIX /bin/install | |
4111 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4112 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4113 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4114 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4115 | # OS/2's system install, which has a completely different semantic | |
4116 | # ./install, which can be erroneously created by make from ./install.sh. | |
4117 | # Reject install programs that cannot install multiple files. | |
4118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4119 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4120 | if test -z "$INSTALL"; then | |
4121 | if ${ac_cv_path_install+:} false; then : | |
81ecdfbb | 4122 | $as_echo_n "(cached) " >&6 |
c906108c | 4123 | else |
c2783492 | 4124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
b7026657 AC |
4125 | for as_dir in $PATH |
4126 | do | |
4127 | IFS=$as_save_IFS | |
4128 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
4129 | # Account for people who put trailing slashes in PATH elements. |
4130 | case $as_dir/ in #(( | |
4131 | ./ | .// | /[cC]/* | \ | |
4132 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4133 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4134 | /usr/ucb/* ) ;; | |
4135 | *) | |
4136 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4137 | # Don't use installbsd from OSF since it installs stuff as root | |
4138 | # by default. | |
4139 | for ac_prog in ginstall scoinst install; do | |
4140 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4141 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4142 | if test $ac_prog = install && | |
4143 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4144 | # AIX install. It has an incompatible calling convention. | |
4145 | : | |
4146 | elif test $ac_prog = install && | |
4147 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4148 | # program-specific install script used by HP pwplus--don't use. | |
4149 | : | |
4150 | else | |
4151 | rm -rf conftest.one conftest.two conftest.dir | |
4152 | echo one > conftest.one | |
4153 | echo two > conftest.two | |
4154 | mkdir conftest.dir | |
4155 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4156 | test -s conftest.one && test -s conftest.two && | |
4157 | test -s conftest.dir/conftest.one && | |
4158 | test -s conftest.dir/conftest.two | |
4159 | then | |
4160 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4161 | break 3 | |
4162 | fi | |
4163 | fi | |
4164 | fi | |
4165 | done | |
4166 | done | |
4167 | ;; | |
4168 | esac | |
4169 | ||
81ecdfbb RW |
4170 | done |
4171 | IFS=$as_save_IFS | |
b7026657 | 4172 | |
c2783492 MF |
4173 | rm -rf conftest.one conftest.two conftest.dir |
4174 | ||
c906108c | 4175 | fi |
c2783492 MF |
4176 | if test "${ac_cv_path_install+set}" = set; then |
4177 | INSTALL=$ac_cv_path_install | |
4178 | else | |
4179 | # As a last resort, use the slow shell script. Don't cache a | |
4180 | # value for INSTALL within a source directory, because that will | |
4181 | # break other packages using the cache if that directory is | |
4182 | # removed, or if the value is a relative name. | |
4183 | INSTALL=$ac_install_sh | |
4184 | fi | |
c906108c | 4185 | fi |
c2783492 MF |
4186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4187 | $as_echo "$INSTALL" >&6; } | |
b7026657 | 4188 | |
c2783492 MF |
4189 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4190 | # It thinks the first close brace ends the variable substitution. | |
4191 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
81ecdfbb | 4192 | |
c2783492 MF |
4193 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4194 | ||
4195 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4196 | ||
4197 | ||
4198 | ||
4199 | ||
4200 | ||
4201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
4202 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
4203 | if ${ac_cv_c_bigendian+:} false; then : | |
81ecdfbb | 4204 | $as_echo_n "(cached) " >&6 |
b7026657 | 4205 | else |
c2783492 MF |
4206 | ac_cv_c_bigendian=unknown |
4207 | # See if we're dealing with a universal compiler. | |
4208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4209 | /* end confdefs.h. */ | |
4210 | #ifndef __APPLE_CC__ | |
4211 | not a universal capable compiler | |
4212 | #endif | |
4213 | typedef int dummy; | |
c906108c | 4214 | |
c2783492 MF |
4215 | _ACEOF |
4216 | if ac_fn_c_try_compile "$LINENO"; then : | |
4217 | ||
4218 | # Check for potential -arch flags. It is not universal unless | |
4219 | # there are at least two -arch flags with different values. | |
4220 | ac_arch= | |
4221 | ac_prev= | |
4222 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
4223 | if test -n "$ac_prev"; then | |
4224 | case $ac_word in | |
4225 | i?86 | x86_64 | ppc | ppc64) | |
4226 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
4227 | ac_arch=$ac_word | |
4228 | else | |
4229 | ac_cv_c_bigendian=universal | |
4230 | break | |
4231 | fi | |
4232 | ;; | |
4233 | esac | |
4234 | ac_prev= | |
4235 | elif test "x$ac_word" = "x-arch"; then | |
4236 | ac_prev=arch | |
4237 | fi | |
4238 | done | |
b7026657 | 4239 | fi |
c2783492 MF |
4240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4241 | if test $ac_cv_c_bigendian = unknown; then | |
4242 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4244 | /* end confdefs.h. */ | |
4245 | #include <sys/types.h> | |
4246 | #include <sys/param.h> | |
c906108c | 4247 | |
c2783492 MF |
4248 | int |
4249 | main () | |
4250 | { | |
4251 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
4252 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
4253 | && LITTLE_ENDIAN) | |
4254 | bogus endian macros | |
4255 | #endif | |
4256 | ||
4257 | ; | |
4258 | return 0; | |
4259 | } | |
4260 | _ACEOF | |
4261 | if ac_fn_c_try_compile "$LINENO"; then : | |
4262 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
4263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4264 | /* end confdefs.h. */ | |
4265 | #include <sys/types.h> | |
4266 | #include <sys/param.h> | |
4267 | ||
4268 | int | |
4269 | main () | |
4270 | { | |
4271 | #if BYTE_ORDER != BIG_ENDIAN | |
4272 | not big endian | |
4273 | #endif | |
4274 | ||
4275 | ; | |
4276 | return 0; | |
4277 | } | |
4278 | _ACEOF | |
4279 | if ac_fn_c_try_compile "$LINENO"; then : | |
4280 | ac_cv_c_bigendian=yes | |
b7026657 | 4281 | else |
c2783492 MF |
4282 | ac_cv_c_bigendian=no |
4283 | fi | |
4284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b7026657 | 4285 | fi |
c2783492 MF |
4286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4287 | fi | |
4288 | if test $ac_cv_c_bigendian = unknown; then | |
4289 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
4290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4291 | /* end confdefs.h. */ | |
4292 | #include <limits.h> | |
c906108c | 4293 | |
c2783492 MF |
4294 | int |
4295 | main () | |
4296 | { | |
4297 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
4298 | bogus endian macros | |
4299 | #endif | |
4300 | ||
4301 | ; | |
4302 | return 0; | |
4303 | } | |
4304 | _ACEOF | |
4305 | if ac_fn_c_try_compile "$LINENO"; then : | |
4306 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
4307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4308 | /* end confdefs.h. */ | |
4309 | #include <limits.h> | |
4310 | ||
4311 | int | |
4312 | main () | |
4313 | { | |
4314 | #ifndef _BIG_ENDIAN | |
4315 | not big endian | |
4316 | #endif | |
b7026657 | 4317 | |
c2783492 MF |
4318 | ; |
4319 | return 0; | |
4320 | } | |
4321 | _ACEOF | |
4322 | if ac_fn_c_try_compile "$LINENO"; then : | |
4323 | ac_cv_c_bigendian=yes | |
c906108c | 4324 | else |
c2783492 | 4325 | ac_cv_c_bigendian=no |
c906108c | 4326 | fi |
c2783492 MF |
4327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4328 | fi | |
4329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4330 | fi | |
4331 | if test $ac_cv_c_bigendian = unknown; then | |
4332 | # Compile a test program. | |
4333 | if test "$cross_compiling" = yes; then : | |
4334 | # Try to guess by grepping values from an object file. | |
4335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4336 | /* end confdefs.h. */ | |
4337 | short int ascii_mm[] = | |
4338 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
4339 | short int ascii_ii[] = | |
4340 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
4341 | int use_ascii (int i) { | |
4342 | return ascii_mm[i] + ascii_ii[i]; | |
4343 | } | |
4344 | short int ebcdic_ii[] = | |
4345 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
4346 | short int ebcdic_mm[] = | |
4347 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
4348 | int use_ebcdic (int i) { | |
4349 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
4350 | } | |
4351 | extern int foo; | |
c906108c | 4352 | |
c2783492 MF |
4353 | int |
4354 | main () | |
4355 | { | |
4356 | return use_ascii (foo) == use_ebcdic (foo); | |
4357 | ; | |
4358 | return 0; | |
4359 | } | |
4360 | _ACEOF | |
4361 | if ac_fn_c_try_compile "$LINENO"; then : | |
4362 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
4363 | ac_cv_c_bigendian=yes | |
4364 | fi | |
4365 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
4366 | if test "$ac_cv_c_bigendian" = unknown; then | |
4367 | ac_cv_c_bigendian=no | |
4368 | else | |
4369 | # finding both strings is unlikely to happen, but who knows? | |
4370 | ac_cv_c_bigendian=unknown | |
4371 | fi | |
4372 | fi | |
b7026657 | 4373 | fi |
c2783492 | 4374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 4375 | else |
c2783492 MF |
4376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4377 | /* end confdefs.h. */ | |
4378 | $ac_includes_default | |
4379 | int | |
4380 | main () | |
4381 | { | |
4382 | ||
4383 | /* Are we little or big endian? From Harbison&Steele. */ | |
4384 | union | |
4385 | { | |
4386 | long int l; | |
4387 | char c[sizeof (long int)]; | |
4388 | } u; | |
4389 | u.l = 1; | |
4390 | return u.c[sizeof (long int) - 1] == 1; | |
b7026657 | 4391 | |
c2783492 MF |
4392 | ; |
4393 | return 0; | |
4394 | } | |
4395 | _ACEOF | |
4396 | if ac_fn_c_try_run "$LINENO"; then : | |
4397 | ac_cv_c_bigendian=no | |
4398 | else | |
4399 | ac_cv_c_bigendian=yes | |
c906108c | 4400 | fi |
c2783492 MF |
4401 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4402 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c906108c | 4403 | fi |
c2783492 MF |
4404 | |
4405 | fi | |
c906108c | 4406 | fi |
c2783492 MF |
4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
4408 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
4409 | case $ac_cv_c_bigendian in #( | |
4410 | yes) | |
4411 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
4412 | ;; #( | |
4413 | no) | |
4414 | ;; #( | |
4415 | universal) | |
c906108c | 4416 | |
c2783492 MF |
4417 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
4418 | ||
4419 | ;; #( | |
4420 | *) | |
4421 | as_fn_error $? "unknown endianness | |
4422 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
4423 | esac | |
4424 | ||
4425 | ||
4426 | ||
4427 | ||
a979f2a0 MF |
4428 | if test -n "$ac_tool_prefix"; then |
4429 | # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args. | |
4430 | set dummy ${ac_tool_prefix}dtc; ac_word=$2 | |
4431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4432 | $as_echo_n "checking for $ac_word... " >&6; } | |
4433 | if ${ac_cv_prog_DTC+:} false; then : | |
4434 | $as_echo_n "(cached) " >&6 | |
4435 | else | |
4436 | if test -n "$DTC"; then | |
4437 | ac_cv_prog_DTC="$DTC" # Let the user override the test. | |
4438 | else | |
4439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4440 | for as_dir in $PATH | |
4441 | do | |
4442 | IFS=$as_save_IFS | |
4443 | test -z "$as_dir" && as_dir=. | |
4444 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4445 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4446 | ac_cv_prog_DTC="${ac_tool_prefix}dtc" | |
4447 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4448 | break 2 | |
4449 | fi | |
4450 | done | |
4451 | done | |
4452 | IFS=$as_save_IFS | |
4453 | ||
4454 | fi | |
4455 | fi | |
4456 | DTC=$ac_cv_prog_DTC | |
4457 | if test -n "$DTC"; then | |
4458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5 | |
4459 | $as_echo "$DTC" >&6; } | |
4460 | else | |
4461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4462 | $as_echo "no" >&6; } | |
4463 | fi | |
4464 | ||
4465 | ||
4466 | fi | |
4467 | if test -z "$ac_cv_prog_DTC"; then | |
4468 | ac_ct_DTC=$DTC | |
4469 | # Extract the first word of "dtc", so it can be a program name with args. | |
4470 | set dummy dtc; ac_word=$2 | |
4471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4472 | $as_echo_n "checking for $ac_word... " >&6; } | |
4473 | if ${ac_cv_prog_ac_ct_DTC+:} false; then : | |
4474 | $as_echo_n "(cached) " >&6 | |
4475 | else | |
4476 | if test -n "$ac_ct_DTC"; then | |
4477 | ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test. | |
4478 | else | |
4479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4480 | for as_dir in $PATH | |
4481 | do | |
4482 | IFS=$as_save_IFS | |
4483 | test -z "$as_dir" && as_dir=. | |
4484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4485 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4486 | ac_cv_prog_ac_ct_DTC="dtc" | |
4487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4488 | break 2 | |
4489 | fi | |
4490 | done | |
4491 | done | |
4492 | IFS=$as_save_IFS | |
4493 | ||
4494 | fi | |
4495 | fi | |
4496 | ac_ct_DTC=$ac_cv_prog_ac_ct_DTC | |
4497 | if test -n "$ac_ct_DTC"; then | |
4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5 | |
4499 | $as_echo "$ac_ct_DTC" >&6; } | |
4500 | else | |
4501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4502 | $as_echo "no" >&6; } | |
4503 | fi | |
4504 | ||
4505 | if test "x$ac_ct_DTC" = x; then | |
4506 | DTC="" | |
4507 | else | |
4508 | case $cross_compiling:$ac_tool_warned in | |
4509 | yes:) | |
4510 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4511 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4512 | ac_tool_warned=yes ;; | |
4513 | esac | |
4514 | DTC=$ac_ct_DTC | |
4515 | fi | |
4516 | else | |
4517 | DTC="$ac_cv_prog_DTC" | |
4518 | fi | |
4519 | ||
4520 | ||
c2783492 | 4521 | if test "x$cross_compiling" = "xno"; then |
aa0fca16 | 4522 | : "${AR_FOR_BUILD:=\$(AR)}" |
c2783492 | 4523 | : "${CC_FOR_BUILD:=\$(CC)}" |
aa0fca16 | 4524 | : "${RANLIB_FOR_BUILD:=\$(RANLIB)}" |
c2783492 MF |
4525 | : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}" |
4526 | : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}" | |
c906108c | 4527 | else |
aa0fca16 | 4528 | : "${AR_FOR_BUILD:=ar}" |
c2783492 | 4529 | : "${CC_FOR_BUILD:=gcc}" |
aa0fca16 | 4530 | : "${RANLIB_FOR_BUILD:=ranlib}" |
c2783492 MF |
4531 | : "${CFLAGS_FOR_BUILD:=-g -O}" |
4532 | : "${LDLFAGS_FOR_BUILD:=}" | |
c906108c SS |
4533 | fi |
4534 | ||
4535 | ||
c906108c | 4536 | |
c2783492 MF |
4537 | |
4538 | ||
aa0fca16 MF |
4539 | |
4540 | ||
b7026657 | 4541 | if test -n "$ac_tool_prefix"; then |
c2783492 MF |
4542 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
4543 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4545 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 4546 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 4547 | $as_echo_n "(cached) " >&6 |
c906108c | 4548 | else |
c2783492 MF |
4549 | if test -n "$AR"; then |
4550 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
c906108c | 4551 | else |
b7026657 AC |
4552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4553 | for as_dir in $PATH | |
4554 | do | |
4555 | IFS=$as_save_IFS | |
4556 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4557 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4558 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 4559 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 4560 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4561 | break 2 |
4562 | fi | |
4563 | done | |
81ecdfbb RW |
4564 | done |
4565 | IFS=$as_save_IFS | |
b7026657 AC |
4566 | |
4567 | fi | |
4568 | fi | |
c2783492 MF |
4569 | AR=$ac_cv_prog_AR |
4570 | if test -n "$AR"; then | |
4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4572 | $as_echo "$AR" >&6; } | |
b7026657 | 4573 | else |
81ecdfbb RW |
4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4575 | $as_echo "no" >&6; } | |
b7026657 AC |
4576 | fi |
4577 | ||
81ecdfbb | 4578 | |
b7026657 | 4579 | fi |
c2783492 MF |
4580 | if test -z "$ac_cv_prog_AR"; then |
4581 | ac_ct_AR=$AR | |
4582 | # Extract the first word of "ar", so it can be a program name with args. | |
4583 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
4584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4585 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 4586 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 4587 | $as_echo_n "(cached) " >&6 |
b7026657 | 4588 | else |
c2783492 MF |
4589 | if test -n "$ac_ct_AR"; then |
4590 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
b7026657 AC |
4591 | else |
4592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4593 | for as_dir in $PATH | |
4594 | do | |
4595 | IFS=$as_save_IFS | |
4596 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4597 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4598 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 4599 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 4600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4601 | break 2 |
4602 | fi | |
4603 | done | |
81ecdfbb RW |
4604 | done |
4605 | IFS=$as_save_IFS | |
b7026657 AC |
4606 | |
4607 | fi | |
4608 | fi | |
c2783492 MF |
4609 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
4610 | if test -n "$ac_ct_AR"; then | |
4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4612 | $as_echo "$ac_ct_AR" >&6; } | |
b7026657 | 4613 | else |
81ecdfbb RW |
4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4615 | $as_echo "no" >&6; } | |
c906108c | 4616 | fi |
b7026657 | 4617 | |
c2783492 MF |
4618 | if test "x$ac_ct_AR" = x; then |
4619 | AR="" | |
81ecdfbb RW |
4620 | else |
4621 | case $cross_compiling:$ac_tool_warned in | |
4622 | yes:) | |
4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4624 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4625 | ac_tool_warned=yes ;; | |
4626 | esac | |
c2783492 | 4627 | AR=$ac_ct_AR |
c906108c | 4628 | fi |
c906108c | 4629 | else |
c2783492 | 4630 | AR="$ac_cv_prog_AR" |
c906108c SS |
4631 | fi |
4632 | ||
c2783492 MF |
4633 | if test -n "$ac_tool_prefix"; then |
4634 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4635 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4637 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 4638 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 4639 | $as_echo_n "(cached) " >&6 |
c906108c | 4640 | else |
c2783492 MF |
4641 | if test -n "$RANLIB"; then |
4642 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
c906108c | 4643 | else |
b7026657 AC |
4644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4645 | for as_dir in $PATH | |
4646 | do | |
4647 | IFS=$as_save_IFS | |
4648 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4649 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4650 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 4651 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 4652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4653 | break 2 |
4654 | fi | |
4655 | done | |
81ecdfbb RW |
4656 | done |
4657 | IFS=$as_save_IFS | |
b7026657 | 4658 | |
c906108c SS |
4659 | fi |
4660 | fi | |
c2783492 MF |
4661 | RANLIB=$ac_cv_prog_RANLIB |
4662 | if test -n "$RANLIB"; then | |
4663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4664 | $as_echo "$RANLIB" >&6; } | |
c906108c | 4665 | else |
81ecdfbb RW |
4666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4667 | $as_echo "no" >&6; } | |
c906108c SS |
4668 | fi |
4669 | ||
81ecdfbb | 4670 | |
b7026657 | 4671 | fi |
c2783492 MF |
4672 | if test -z "$ac_cv_prog_RANLIB"; then |
4673 | ac_ct_RANLIB=$RANLIB | |
4674 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4675 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4677 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 4678 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 4679 | $as_echo_n "(cached) " >&6 |
c906108c | 4680 | else |
c2783492 MF |
4681 | if test -n "$ac_ct_RANLIB"; then |
4682 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
b7026657 AC |
4683 | else |
4684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4685 | for as_dir in $PATH | |
4686 | do | |
4687 | IFS=$as_save_IFS | |
4688 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4689 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4690 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 4691 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 4692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4693 | break 2 |
4694 | fi | |
4695 | done | |
81ecdfbb RW |
4696 | done |
4697 | IFS=$as_save_IFS | |
b7026657 | 4698 | |
c906108c | 4699 | fi |
b7026657 | 4700 | fi |
c2783492 MF |
4701 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4702 | if test -n "$ac_ct_RANLIB"; then | |
4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4704 | $as_echo "$ac_ct_RANLIB" >&6; } | |
c906108c | 4705 | else |
81ecdfbb RW |
4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4707 | $as_echo "no" >&6; } | |
c906108c | 4708 | fi |
b7026657 | 4709 | |
c2783492 MF |
4710 | if test "x$ac_ct_RANLIB" = x; then |
4711 | RANLIB=":" | |
81ecdfbb RW |
4712 | else |
4713 | case $cross_compiling:$ac_tool_warned in | |
4714 | yes:) | |
4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4716 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4717 | ac_tool_warned=yes ;; | |
4718 | esac | |
c2783492 | 4719 | RANLIB=$ac_ct_RANLIB |
81ecdfbb | 4720 | fi |
c2783492 MF |
4721 | else |
4722 | RANLIB="$ac_cv_prog_RANLIB" | |
4723 | fi | |
4724 | ||
4725 | ||
4726 | # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using | |
4727 | # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands | |
4728 | # is C99. So handle it ourselves. | |
4729 | : | |
4730 | C_DIALECT= | |
4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5 | |
4732 | $as_echo_n "checking whether C11 is supported by default... " >&6; } | |
4733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4734 | /* end confdefs.h. */ | |
4735 | ||
4736 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
4737 | # error "C11 support not found" | |
4738 | #endif | |
4739 | ||
4740 | _ACEOF | |
4741 | if ac_fn_c_try_compile "$LINENO"; then : | |
4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4743 | $as_echo "yes" >&6; } | |
4744 | else | |
4745 | ||
4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4747 | $as_echo "no" >&6; } | |
4748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5 | |
4749 | $as_echo_n "checking for -std=c11 support... " >&6; } | |
4750 | ac_save_CC="$CC" | |
4751 | CC="$CC -std=c11" | |
4752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4753 | /* end confdefs.h. */ | |
4754 | ||
4755 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
4756 | # error "C11 support not found" | |
4757 | #endif | |
4758 | ||
4759 | _ACEOF | |
4760 | if ac_fn_c_try_compile "$LINENO"; then : | |
4761 | ||
4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4763 | $as_echo "yes" >&6; } | |
4764 | CC="$ac_save_CC" | |
4765 | C_DIALECT="-std=c11" | |
4766 | ||
4767 | else | |
4768 | as_fn_error $? "C11 is required" "$LINENO" 5 | |
4769 | fi | |
4770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4771 | fi | |
4772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4773 | ||
4774 | ||
4775 | ||
4776 | ||
c906108c | 4777 | |
b15c5d7a MF |
4778 | for ac_header in $ac_header_list |
4779 | do : | |
4780 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4781 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4782 | " | |
4783 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4784 | cat >>confdefs.h <<_ACEOF | |
4785 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4786 | _ACEOF | |
4787 | ||
b7026657 AC |
4788 | fi |
4789 | ||
b15c5d7a | 4790 | done |
b7026657 | 4791 | |
b7026657 | 4792 | |
c2783492 | 4793 | |
c2783492 | 4794 | |
c2783492 | 4795 | |
c2783492 | 4796 | |
c2783492 | 4797 | |
b15c5d7a MF |
4798 | |
4799 | ||
4800 | ||
4801 | ||
4802 | ||
4803 | ||
4804 | ||
4805 | ||
4806 | ||
4807 | ||
4808 | ||
4809 | ||
4810 | ||
4811 | ||
4812 | ||
4813 | ||
4814 | ||
4815 | ||
4816 | ||
4817 | ||
4818 | ||
4819 | ||
a48ff3ef MF |
4820 | |
4821 | ||
4822 | ||
4823 | ||
4824 | ||
4825 | ||
4826 | ||
4827 | ||
4828 | ||
4829 | ||
4830 | ||
4831 | ||
b15c5d7a MF |
4832 | |
4833 | ||
4834 | ||
4835 | ||
4836 | ||
4837 | ||
4838 | ||
4839 | ||
b15c5d7a MF |
4840 | |
4841 | ||
4842 | ||
4843 | for ac_func in $ac_func_list | |
4844 | do : | |
4845 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4846 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4847 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
4848 | cat >>confdefs.h <<_ACEOF | |
4849 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4850 | _ACEOF | |
4851 | ||
4852 | fi | |
4853 | done | |
4854 | ||
4855 | ||
4856 | ||
4857 | ||
4858 | ||
4859 | ||
4860 | ||
4861 | ||
4862 | ||
4863 | ||
4864 | ||
4865 | ||
4866 | ||
4867 | ||
4868 | ||
4869 | ||
4870 | ||
4871 | ||
4872 | ||
4873 | ||
4874 | ||
4875 | ||
4876 | ||
4877 | ||
4878 | ||
4879 | ||
4880 | ||
4881 | ||
4882 | ||
4883 | ||
4884 | ||
4885 | ||
4886 | ||
4887 | ||
4888 | ||
4889 | ||
4890 | ||
4891 | ||
4892 | ||
4893 | ||
4894 | ||
4895 | ||
4896 | ||
4897 | ||
4898 | ||
4899 | ||
4900 | ||
4901 | ||
4902 | ||
4903 | ||
4904 | ||
4905 | ||
4906 | ||
4907 | ||
4908 | ||
4909 | ||
4910 | ||
4911 | ||
4912 | ||
a48ff3ef MF |
4913 | |
4914 | ||
4915 | ||
4916 | ||
4917 | ||
4918 | ||
4919 | ||
4920 | ||
4921 | ||
4922 | ||
4923 | ||
4924 | ||
4925 | ||
4926 | ||
4927 | ||
4928 | ||
4929 | ||
4930 | ||
4931 | ||
4932 | ||
4933 | ||
4934 | ||
4935 | ||
4936 | ||
4937 | ||
4938 | ||
4939 | ||
4940 | ||
4941 | ||
4942 | ||
4943 | ||
4944 | ||
4945 | ||
4946 | ||
4947 | ||
4948 | ||
4949 | ||
4950 | ||
4951 | ||
4952 | ||
4953 | ||
4954 | ||
4955 | ||
4956 | ||
4957 | ||
4958 | ||
4959 | ||
4960 | ||
4961 | ||
4962 | ||
4963 | ||
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | ||
4969 | ||
4970 | ||
4971 | ||
4972 | ||
4973 | ||
4974 | ||
4975 | ||
4976 | ||
4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
4978 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
4979 | if ${ac_cv_struct_tm+:} false; then : | |
4980 | $as_echo_n "(cached) " >&6 | |
4981 | else | |
4982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4983 | /* end confdefs.h. */ | |
4984 | #include <sys/types.h> | |
4985 | #include <time.h> | |
4986 | ||
4987 | int | |
4988 | main () | |
4989 | { | |
4990 | struct tm tm; | |
4991 | int *p = &tm.tm_sec; | |
4992 | return !p; | |
4993 | ; | |
4994 | return 0; | |
4995 | } | |
4996 | _ACEOF | |
4997 | if ac_fn_c_try_compile "$LINENO"; then : | |
4998 | ac_cv_struct_tm=time.h | |
4999 | else | |
5000 | ac_cv_struct_tm=sys/time.h | |
5001 | fi | |
5002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5003 | fi | |
5004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
5005 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5006 | if test $ac_cv_struct_tm = sys/time.h; then | |
5007 | ||
5008 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
5009 | ||
5010 | fi | |
5011 | ||
5012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
5013 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
5014 | if ${ac_cv_type_uid_t+:} false; then : | |
5015 | $as_echo_n "(cached) " >&6 | |
5016 | else | |
5017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5018 | /* end confdefs.h. */ | |
5019 | #include <sys/types.h> | |
5020 | ||
5021 | _ACEOF | |
5022 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5023 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
5024 | ac_cv_type_uid_t=yes | |
5025 | else | |
5026 | ac_cv_type_uid_t=no | |
5027 | fi | |
5028 | rm -f conftest* | |
5029 | ||
5030 | fi | |
5031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | |
5032 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
5033 | if test $ac_cv_type_uid_t = no; then | |
5034 | ||
5035 | $as_echo "#define uid_t int" >>confdefs.h | |
5036 | ||
5037 | ||
5038 | $as_echo "#define gid_t int" >>confdefs.h | |
5039 | ||
5040 | fi | |
5041 | ||
b5689863 MF |
5042 | case `pwd` in |
5043 | *\ * | *\ *) | |
5044 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5045 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5046 | esac | |
a48ff3ef | 5047 | |
a48ff3ef | 5048 | |
a48ff3ef | 5049 | |
b5689863 MF |
5050 | macro_version='2.2.7a' |
5051 | macro_revision='1.3134' | |
a48ff3ef | 5052 | |
a48ff3ef | 5053 | |
a48ff3ef | 5054 | |
a48ff3ef | 5055 | |
a48ff3ef | 5056 | |
a48ff3ef | 5057 | |
a48ff3ef | 5058 | |
a48ff3ef | 5059 | |
a48ff3ef | 5060 | |
a48ff3ef MF |
5061 | |
5062 | ||
5063 | ||
5064 | ||
b5689863 | 5065 | ltmain="$ac_aux_dir/ltmain.sh" |
a48ff3ef | 5066 | |
b5689863 MF |
5067 | # Backslashify metacharacters that are still active within |
5068 | # double-quoted strings. | |
5069 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
a48ff3ef | 5070 | |
b5689863 MF |
5071 | # Same as above, but do not quote variable references. |
5072 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
a48ff3ef | 5073 | |
b5689863 MF |
5074 | # Sed substitution to delay expansion of an escaped shell variable in a |
5075 | # double_quote_subst'ed string. | |
5076 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5077 | ||
5078 | # Sed substitution to delay expansion of an escaped single quote. | |
5079 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5080 | ||
5081 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5082 | no_glob_subst='s/\*/\\\*/g' | |
5083 | ||
5084 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5085 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5086 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
a48ff3ef | 5087 | |
b5689863 MF |
5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
5089 | $as_echo_n "checking how to print strings... " >&6; } | |
5090 | # Test print first, because it will be a builtin if present. | |
5091 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5092 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5093 | ECHO='print -r --' | |
5094 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5095 | ECHO='printf %s\n' | |
5096 | else | |
5097 | # Use this function as a fallback that always works. | |
5098 | func_fallback_echo () | |
5099 | { | |
5100 | eval 'cat <<_LTECHO_EOF | |
5101 | $1 | |
5102 | _LTECHO_EOF' | |
5103 | } | |
5104 | ECHO='func_fallback_echo' | |
a48ff3ef MF |
5105 | fi |
5106 | ||
b5689863 MF |
5107 | # func_echo_all arg... |
5108 | # Invoke $ECHO with all args, space-separated. | |
5109 | func_echo_all () | |
5110 | { | |
5111 | $ECHO "" | |
5112 | } | |
5113 | ||
5114 | case "$ECHO" in | |
5115 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5116 | $as_echo "printf" >&6; } ;; | |
5117 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5118 | $as_echo "print -r" >&6; } ;; | |
5119 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5120 | $as_echo "cat" >&6; } ;; | |
5121 | esac | |
5122 | ||
5123 | ||
a48ff3ef | 5124 | |
a48ff3ef | 5125 | |
a48ff3ef MF |
5126 | |
5127 | ||
a48ff3ef | 5128 | |
a48ff3ef | 5129 | |
a48ff3ef MF |
5130 | |
5131 | ||
a48ff3ef | 5132 | |
a48ff3ef MF |
5133 | |
5134 | ||
a48ff3ef | 5135 | |
b5689863 MF |
5136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5137 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5138 | if ${ac_cv_path_SED+:} false; then : | |
5139 | $as_echo_n "(cached) " >&6 | |
5140 | else | |
5141 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5142 | for ac_i in 1 2 3 4 5 6 7; do | |
5143 | ac_script="$ac_script$as_nl$ac_script" | |
5144 | done | |
5145 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5146 | { ac_script=; unset ac_script;} | |
5147 | if test -z "$SED"; then | |
5148 | ac_path_SED_found=false | |
5149 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5151 | for as_dir in $PATH | |
5152 | do | |
5153 | IFS=$as_save_IFS | |
5154 | test -z "$as_dir" && as_dir=. | |
5155 | for ac_prog in sed gsed; do | |
5156 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5157 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5158 | as_fn_executable_p "$ac_path_SED" || continue | |
5159 | # Check for GNU ac_path_SED and select it if it is found. | |
5160 | # Check for GNU $ac_path_SED | |
5161 | case `"$ac_path_SED" --version 2>&1` in | |
5162 | *GNU*) | |
5163 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5164 | *) | |
5165 | ac_count=0 | |
5166 | $as_echo_n 0123456789 >"conftest.in" | |
5167 | while : | |
5168 | do | |
5169 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5170 | mv "conftest.tmp" "conftest.in" | |
5171 | cp "conftest.in" "conftest.nl" | |
5172 | $as_echo '' >> "conftest.nl" | |
5173 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5174 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5175 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5176 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5177 | # Best one so far, save it but keep looking for a better one | |
5178 | ac_cv_path_SED="$ac_path_SED" | |
5179 | ac_path_SED_max=$ac_count | |
5180 | fi | |
5181 | # 10*(2^10) chars as input seems more than enough | |
5182 | test $ac_count -gt 10 && break | |
5183 | done | |
5184 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5185 | esac | |
5186 | ||
5187 | $ac_path_SED_found && break 3 | |
5188 | done | |
5189 | done | |
5190 | done | |
5191 | IFS=$as_save_IFS | |
5192 | if test -z "$ac_cv_path_SED"; then | |
5193 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5194 | fi | |
5195 | else | |
5196 | ac_cv_path_SED=$SED | |
a48ff3ef MF |
5197 | fi |
5198 | ||
b5689863 MF |
5199 | fi |
5200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5201 | $as_echo "$ac_cv_path_SED" >&6; } | |
5202 | SED="$ac_cv_path_SED" | |
5203 | rm -f conftest.sed | |
a48ff3ef | 5204 | |
b5689863 MF |
5205 | test -z "$SED" && SED=sed |
5206 | Xsed="$SED -e 1s/^X//" | |
a48ff3ef | 5207 | |
a48ff3ef | 5208 | |
a48ff3ef MF |
5209 | |
5210 | ||
a48ff3ef | 5211 | |
a48ff3ef | 5212 | |
a48ff3ef | 5213 | |
a48ff3ef | 5214 | |
a48ff3ef | 5215 | |
b5689863 MF |
5216 | |
5217 | ||
5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5219 | $as_echo_n "checking for fgrep... " >&6; } | |
5220 | if ${ac_cv_path_FGREP+:} false; then : | |
a48ff3ef MF |
5221 | $as_echo_n "(cached) " >&6 |
5222 | else | |
b5689863 MF |
5223 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5224 | then ac_cv_path_FGREP="$GREP -F" | |
5225 | else | |
5226 | if test -z "$FGREP"; then | |
5227 | ac_path_FGREP_found=false | |
5228 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5230 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5231 | do | |
5232 | IFS=$as_save_IFS | |
5233 | test -z "$as_dir" && as_dir=. | |
5234 | for ac_prog in fgrep; do | |
5235 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5236 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5237 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5238 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5239 | # Check for GNU $ac_path_FGREP | |
5240 | case `"$ac_path_FGREP" --version 2>&1` in | |
5241 | *GNU*) | |
5242 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5243 | *) | |
5244 | ac_count=0 | |
5245 | $as_echo_n 0123456789 >"conftest.in" | |
5246 | while : | |
5247 | do | |
5248 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5249 | mv "conftest.tmp" "conftest.in" | |
5250 | cp "conftest.in" "conftest.nl" | |
5251 | $as_echo 'FGREP' >> "conftest.nl" | |
5252 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5253 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5254 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5255 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5256 | # Best one so far, save it but keep looking for a better one | |
5257 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5258 | ac_path_FGREP_max=$ac_count | |
5259 | fi | |
5260 | # 10*(2^10) chars as input seems more than enough | |
5261 | test $ac_count -gt 10 && break | |
5262 | done | |
5263 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5264 | esac | |
5265 | ||
5266 | $ac_path_FGREP_found && break 3 | |
5267 | done | |
5268 | done | |
5269 | done | |
5270 | IFS=$as_save_IFS | |
5271 | if test -z "$ac_cv_path_FGREP"; then | |
5272 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5273 | fi | |
5274 | else | |
5275 | ac_cv_path_FGREP=$FGREP | |
5276 | fi | |
5277 | ||
5278 | fi | |
5279 | fi | |
5280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5281 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5282 | FGREP="$ac_cv_path_FGREP" | |
5283 | ||
5284 | ||
5285 | test -z "$GREP" && GREP=grep | |
5286 | ||
5287 | ||
5288 | ||
5289 | ||
5290 | ||
5291 | ||
5292 | ||
5293 | ||
5294 | ||
5295 | ||
5296 | ||
5297 | ||
5298 | ||
5299 | ||
5300 | ||
5301 | ||
5302 | ||
5303 | ||
5304 | ||
5305 | # Check whether --with-gnu-ld was given. | |
5306 | if test "${with_gnu_ld+set}" = set; then : | |
5307 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5308 | else | |
5309 | with_gnu_ld=no | |
5310 | fi | |
5311 | ||
5312 | ac_prog=ld | |
5313 | if test "$GCC" = yes; then | |
5314 | # Check if gcc -print-prog-name=ld gives a path. | |
5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5316 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5317 | case $host in | |
5318 | *-*-mingw*) | |
5319 | # gcc leaves a trailing carriage return which upsets mingw | |
5320 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5321 | *) | |
5322 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5323 | esac | |
5324 | case $ac_prog in | |
5325 | # Accept absolute paths. | |
5326 | [\\/]* | ?:[\\/]*) | |
5327 | re_direlt='/[^/][^/]*/\.\./' | |
5328 | # Canonicalize the pathname of ld | |
5329 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5330 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5331 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5332 | done | |
5333 | test -z "$LD" && LD="$ac_prog" | |
5334 | ;; | |
5335 | "") | |
5336 | # If it fails, then pretend we aren't using GCC. | |
5337 | ac_prog=ld | |
5338 | ;; | |
5339 | *) | |
5340 | # If it is relative, then search for the first ld in PATH. | |
5341 | with_gnu_ld=unknown | |
5342 | ;; | |
5343 | esac | |
5344 | elif test "$with_gnu_ld" = yes; then | |
5345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5346 | $as_echo_n "checking for GNU ld... " >&6; } | |
5347 | else | |
5348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5349 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5350 | fi | |
5351 | if ${lt_cv_path_LD+:} false; then : | |
5352 | $as_echo_n "(cached) " >&6 | |
5353 | else | |
5354 | if test -z "$LD"; then | |
5355 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5356 | for ac_dir in $PATH; do | |
5357 | IFS="$lt_save_ifs" | |
5358 | test -z "$ac_dir" && ac_dir=. | |
5359 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5360 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5361 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5362 | # but apparently some variants of GNU ld only accept -v. | |
5363 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5364 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5365 | *GNU* | *'with BFD'*) | |
5366 | test "$with_gnu_ld" != no && break | |
5367 | ;; | |
5368 | *) | |
5369 | test "$with_gnu_ld" != yes && break | |
5370 | ;; | |
5371 | esac | |
5372 | fi | |
5373 | done | |
5374 | IFS="$lt_save_ifs" | |
5375 | else | |
5376 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5377 | fi | |
5378 | fi | |
5379 | ||
5380 | LD="$lt_cv_path_LD" | |
5381 | if test -n "$LD"; then | |
5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5383 | $as_echo "$LD" >&6; } | |
5384 | else | |
5385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5386 | $as_echo "no" >&6; } | |
5387 | fi | |
5388 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5390 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5391 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5392 | $as_echo_n "(cached) " >&6 | |
5393 | else | |
5394 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5395 | case `$LD -v 2>&1 </dev/null` in | |
5396 | *GNU* | *'with BFD'*) | |
5397 | lt_cv_prog_gnu_ld=yes | |
5398 | ;; | |
5399 | *) | |
5400 | lt_cv_prog_gnu_ld=no | |
5401 | ;; | |
5402 | esac | |
5403 | fi | |
5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5405 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5406 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5407 | ||
5408 | ||
5409 | ||
5410 | ||
5411 | ||
5412 | ||
5413 | ||
5414 | ||
5415 | ||
5416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5417 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5418 | if ${lt_cv_path_NM+:} false; then : | |
5419 | $as_echo_n "(cached) " >&6 | |
5420 | else | |
5421 | if test -n "$NM"; then | |
5422 | # Let the user override the test. | |
5423 | lt_cv_path_NM="$NM" | |
5424 | else | |
5425 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5426 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5427 | lt_nm_to_check="$lt_nm_to_check nm" | |
5428 | fi | |
5429 | for lt_tmp_nm in $lt_nm_to_check; do | |
5430 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5431 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5432 | IFS="$lt_save_ifs" | |
5433 | test -z "$ac_dir" && ac_dir=. | |
5434 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5435 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5436 | # Check to see if the nm accepts a BSD-compat flag. | |
5437 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5438 | # nm: unknown option "B" ignored | |
5439 | # Tru64's nm complains that /dev/null is an invalid object file | |
5440 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5441 | */dev/null* | *'Invalid file or object type'*) | |
5442 | lt_cv_path_NM="$tmp_nm -B" | |
5443 | break | |
5444 | ;; | |
5445 | *) | |
5446 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5447 | */dev/null*) | |
5448 | lt_cv_path_NM="$tmp_nm -p" | |
5449 | break | |
5450 | ;; | |
5451 | *) | |
5452 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5453 | continue # so that we can try to find one that supports BSD flags | |
5454 | ;; | |
5455 | esac | |
5456 | ;; | |
5457 | esac | |
5458 | fi | |
5459 | done | |
5460 | IFS="$lt_save_ifs" | |
5461 | done | |
5462 | : ${lt_cv_path_NM=no} | |
5463 | fi | |
5464 | fi | |
5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5466 | $as_echo "$lt_cv_path_NM" >&6; } | |
5467 | if test "$lt_cv_path_NM" != "no"; then | |
5468 | NM="$lt_cv_path_NM" | |
5469 | else | |
5470 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5471 | if test -n "$DUMPBIN"; then : | |
5472 | # Let the user override the test. | |
5473 | else | |
5474 | if test -n "$ac_tool_prefix"; then | |
5475 | for ac_prog in dumpbin "link -dump" | |
5476 | do | |
5477 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5478 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5480 | $as_echo_n "checking for $ac_word... " >&6; } | |
5481 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
5482 | $as_echo_n "(cached) " >&6 | |
5483 | else | |
5484 | if test -n "$DUMPBIN"; then | |
5485 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5486 | else | |
5487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5488 | for as_dir in $PATH | |
5489 | do | |
5490 | IFS=$as_save_IFS | |
5491 | test -z "$as_dir" && as_dir=. | |
5492 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5493 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5494 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
5495 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5496 | break 2 | |
5497 | fi | |
5498 | done | |
5499 | done | |
5500 | IFS=$as_save_IFS | |
5501 | ||
5502 | fi | |
5503 | fi | |
5504 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5505 | if test -n "$DUMPBIN"; then | |
5506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5507 | $as_echo "$DUMPBIN" >&6; } | |
5508 | else | |
5509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5510 | $as_echo "no" >&6; } | |
5511 | fi | |
5512 | ||
5513 | ||
5514 | test -n "$DUMPBIN" && break | |
5515 | done | |
5516 | fi | |
5517 | if test -z "$DUMPBIN"; then | |
5518 | ac_ct_DUMPBIN=$DUMPBIN | |
5519 | for ac_prog in dumpbin "link -dump" | |
5520 | do | |
5521 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5522 | set dummy $ac_prog; ac_word=$2 | |
5523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5524 | $as_echo_n "checking for $ac_word... " >&6; } | |
5525 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
5526 | $as_echo_n "(cached) " >&6 | |
5527 | else | |
5528 | if test -n "$ac_ct_DUMPBIN"; then | |
5529 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5530 | else | |
5531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5532 | for as_dir in $PATH | |
5533 | do | |
5534 | IFS=$as_save_IFS | |
5535 | test -z "$as_dir" && as_dir=. | |
5536 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5537 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5538 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5539 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5540 | break 2 | |
5541 | fi | |
5542 | done | |
5543 | done | |
5544 | IFS=$as_save_IFS | |
5545 | ||
5546 | fi | |
5547 | fi | |
5548 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5549 | if test -n "$ac_ct_DUMPBIN"; then | |
5550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5551 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
5552 | else | |
5553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5554 | $as_echo "no" >&6; } | |
5555 | fi | |
5556 | ||
5557 | ||
5558 | test -n "$ac_ct_DUMPBIN" && break | |
5559 | done | |
5560 | ||
5561 | if test "x$ac_ct_DUMPBIN" = x; then | |
5562 | DUMPBIN=":" | |
5563 | else | |
5564 | case $cross_compiling:$ac_tool_warned in | |
5565 | yes:) | |
5566 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5567 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5568 | ac_tool_warned=yes ;; | |
5569 | esac | |
5570 | DUMPBIN=$ac_ct_DUMPBIN | |
5571 | fi | |
5572 | fi | |
5573 | ||
5574 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
5575 | *COFF*) | |
5576 | DUMPBIN="$DUMPBIN -symbols" | |
5577 | ;; | |
5578 | *) | |
5579 | DUMPBIN=: | |
5580 | ;; | |
5581 | esac | |
5582 | fi | |
5583 | ||
5584 | if test "$DUMPBIN" != ":"; then | |
5585 | NM="$DUMPBIN" | |
5586 | fi | |
5587 | fi | |
5588 | test -z "$NM" && NM=nm | |
5589 | ||
5590 | ||
5591 | ||
5592 | ||
5593 | ||
5594 | ||
5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5596 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5597 | if ${lt_cv_nm_interface+:} false; then : | |
5598 | $as_echo_n "(cached) " >&6 | |
5599 | else | |
5600 | lt_cv_nm_interface="BSD nm" | |
5601 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5602 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5603 | (eval "$ac_compile" 2>conftest.err) | |
5604 | cat conftest.err >&5 | |
5605 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5606 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5607 | cat conftest.err >&5 | |
5608 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5609 | cat conftest.out >&5 | |
5610 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5611 | lt_cv_nm_interface="MS dumpbin" | |
5612 | fi | |
5613 | rm -f conftest* | |
5614 | fi | |
5615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
5616 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5617 | ||
5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5619 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5620 | LN_S=$as_ln_s | |
5621 | if test "$LN_S" = "ln -s"; then | |
5622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5623 | $as_echo "yes" >&6; } | |
5624 | else | |
5625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5626 | $as_echo "no, using $LN_S" >&6; } | |
5627 | fi | |
5628 | ||
5629 | # find the maximum length of command line arguments | |
5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5631 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5632 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
5633 | $as_echo_n "(cached) " >&6 | |
5634 | else | |
5635 | i=0 | |
5636 | teststring="ABCD" | |
5637 | ||
5638 | case $build_os in | |
5639 | msdosdjgpp*) | |
5640 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5641 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5642 | # during glob expansion). Even if it were fixed, the result of this | |
5643 | # check would be larger than it should be. | |
5644 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5645 | ;; | |
5646 | ||
5647 | gnu*) | |
5648 | # Under GNU Hurd, this test is not required because there is | |
5649 | # no limit to the length of command line arguments. | |
5650 | # Libtool will interpret -1 as no limit whatsoever | |
5651 | lt_cv_sys_max_cmd_len=-1; | |
5652 | ;; | |
5653 | ||
5654 | cygwin* | mingw* | cegcc*) | |
5655 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5656 | # about 5 minutes as the teststring grows exponentially. | |
5657 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5658 | # you end up with a "frozen" computer, even though with patience | |
5659 | # the test eventually succeeds (with a max line length of 256k). | |
5660 | # Instead, let's just punt: use the minimum linelength reported by | |
5661 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5662 | lt_cv_sys_max_cmd_len=8192; | |
5663 | ;; | |
5664 | ||
5665 | mint*) | |
5666 | # On MiNT this can take a long time and run out of memory. | |
5667 | lt_cv_sys_max_cmd_len=8192; | |
5668 | ;; | |
5669 | ||
5670 | amigaos*) | |
5671 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5672 | # So we just punt and use a minimum line length of 8192. | |
5673 | lt_cv_sys_max_cmd_len=8192; | |
5674 | ;; | |
5675 | ||
5676 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5677 | # This has been around since 386BSD, at least. Likely further. | |
5678 | if test -x /sbin/sysctl; then | |
5679 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5680 | elif test -x /usr/sbin/sysctl; then | |
5681 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5682 | else | |
5683 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5684 | fi | |
5685 | # And add a safety zone | |
5686 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5687 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5688 | ;; | |
5689 | ||
5690 | interix*) | |
5691 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5692 | lt_cv_sys_max_cmd_len=196608 | |
5693 | ;; | |
5694 | ||
5695 | osf*) | |
5696 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5697 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5698 | # nice to cause kernel panics so lets avoid the loop below. | |
5699 | # First set a reasonable default. | |
5700 | lt_cv_sys_max_cmd_len=16384 | |
5701 | # | |
5702 | if test -x /sbin/sysconfig; then | |
5703 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5704 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5705 | esac | |
5706 | fi | |
5707 | ;; | |
5708 | sco3.2v5*) | |
5709 | lt_cv_sys_max_cmd_len=102400 | |
5710 | ;; | |
5711 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5712 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5713 | if test -n "$kargmax"; then | |
5714 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5715 | else | |
5716 | lt_cv_sys_max_cmd_len=32768 | |
5717 | fi | |
5718 | ;; | |
5719 | *) | |
5720 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5721 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
5722 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5723 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5724 | else | |
5725 | # Make teststring a little bigger before we do anything with it. | |
5726 | # a 1K string should be a reasonable start. | |
5727 | for i in 1 2 3 4 5 6 7 8 ; do | |
5728 | teststring=$teststring$teststring | |
5729 | done | |
5730 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5731 | # If test is not a shell built-in, we'll probably end up computing a | |
5732 | # maximum length that is only half of the actual maximum length, but | |
5733 | # we can't tell. | |
5734 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
5735 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5736 | test $i != 17 # 1/2 MB should be enough | |
5737 | do | |
5738 | i=`expr $i + 1` | |
5739 | teststring=$teststring$teststring | |
5740 | done | |
5741 | # Only check the string length outside the loop. | |
5742 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5743 | teststring= | |
5744 | # Add a significant safety factor because C++ compilers can tack on | |
5745 | # massive amounts of additional arguments before passing them to the | |
5746 | # linker. It appears as though 1/2 is a usable value. | |
5747 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5748 | fi | |
5749 | ;; | |
5750 | esac | |
5751 | ||
5752 | fi | |
5753 | ||
5754 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5756 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5757 | else | |
5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5759 | $as_echo "none" >&6; } | |
5760 | fi | |
5761 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5762 | ||
5763 | ||
5764 | ||
5765 | ||
5766 | ||
5767 | ||
5768 | : ${CP="cp -f"} | |
5769 | : ${MV="mv -f"} | |
5770 | : ${RM="rm -f"} | |
5771 | ||
5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
5773 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5774 | # Try some XSI features | |
5775 | xsi_shell=no | |
5776 | ( _lt_dummy="a/b/c" | |
5777 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
5778 | = c,a/b,, \ | |
5779 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5780 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5781 | && xsi_shell=yes | |
5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5783 | $as_echo "$xsi_shell" >&6; } | |
5784 | ||
5785 | ||
5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
5787 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
5788 | lt_shell_append=no | |
5789 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5790 | >/dev/null 2>&1 \ | |
5791 | && lt_shell_append=yes | |
5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
5793 | $as_echo "$lt_shell_append" >&6; } | |
5794 | ||
5795 | ||
5796 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5797 | lt_unset=unset | |
5798 | else | |
5799 | lt_unset=false | |
5800 | fi | |
5801 | ||
5802 | ||
5803 | ||
5804 | ||
5805 | ||
5806 | # test EBCDIC or ASCII | |
5807 | case `echo X|tr X '\101'` in | |
5808 | A) # ASCII based system | |
5809 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5810 | lt_SP2NL='tr \040 \012' | |
5811 | lt_NL2SP='tr \015\012 \040\040' | |
5812 | ;; | |
5813 | *) # EBCDIC based system | |
5814 | lt_SP2NL='tr \100 \n' | |
5815 | lt_NL2SP='tr \r\n \100\100' | |
5816 | ;; | |
5817 | esac | |
5818 | ||
5819 | ||
5820 | ||
5821 | ||
5822 | ||
5823 | ||
5824 | ||
5825 | ||
5826 | ||
5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5828 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5829 | if ${lt_cv_ld_reload_flag+:} false; then : | |
5830 | $as_echo_n "(cached) " >&6 | |
5831 | else | |
5832 | lt_cv_ld_reload_flag='-r' | |
5833 | fi | |
5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5835 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5836 | reload_flag=$lt_cv_ld_reload_flag | |
5837 | case $reload_flag in | |
5838 | "" | " "*) ;; | |
5839 | *) reload_flag=" $reload_flag" ;; | |
5840 | esac | |
5841 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5842 | case $host_os in | |
5843 | darwin*) | |
5844 | if test "$GCC" = yes; then | |
5845 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5846 | else | |
5847 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5848 | fi | |
5849 | ;; | |
5850 | esac | |
5851 | ||
5852 | ||
5853 | ||
5854 | ||
5855 | ||
5856 | ||
5857 | ||
5858 | ||
5859 | ||
5860 | if test -n "$ac_tool_prefix"; then | |
5861 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5862 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5864 | $as_echo_n "checking for $ac_word... " >&6; } | |
5865 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
5866 | $as_echo_n "(cached) " >&6 | |
5867 | else | |
5868 | if test -n "$OBJDUMP"; then | |
5869 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5870 | else | |
5871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5872 | for as_dir in $PATH | |
5873 | do | |
5874 | IFS=$as_save_IFS | |
5875 | test -z "$as_dir" && as_dir=. | |
5876 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5877 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5878 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5880 | break 2 | |
5881 | fi | |
5882 | done | |
5883 | done | |
5884 | IFS=$as_save_IFS | |
5885 | ||
5886 | fi | |
5887 | fi | |
5888 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5889 | if test -n "$OBJDUMP"; then | |
5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5891 | $as_echo "$OBJDUMP" >&6; } | |
5892 | else | |
5893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5894 | $as_echo "no" >&6; } | |
5895 | fi | |
5896 | ||
5897 | ||
5898 | fi | |
5899 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5900 | ac_ct_OBJDUMP=$OBJDUMP | |
5901 | # Extract the first word of "objdump", so it can be a program name with args. | |
5902 | set dummy objdump; ac_word=$2 | |
5903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5904 | $as_echo_n "checking for $ac_word... " >&6; } | |
5905 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
5906 | $as_echo_n "(cached) " >&6 | |
5907 | else | |
5908 | if test -n "$ac_ct_OBJDUMP"; then | |
5909 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5910 | else | |
5911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5912 | for as_dir in $PATH | |
5913 | do | |
5914 | IFS=$as_save_IFS | |
5915 | test -z "$as_dir" && as_dir=. | |
5916 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5917 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5918 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5919 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5920 | break 2 | |
5921 | fi | |
5922 | done | |
5923 | done | |
5924 | IFS=$as_save_IFS | |
5925 | ||
5926 | fi | |
5927 | fi | |
5928 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5929 | if test -n "$ac_ct_OBJDUMP"; then | |
5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5931 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5932 | else | |
5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5934 | $as_echo "no" >&6; } | |
5935 | fi | |
5936 | ||
5937 | if test "x$ac_ct_OBJDUMP" = x; then | |
5938 | OBJDUMP="false" | |
5939 | else | |
5940 | case $cross_compiling:$ac_tool_warned in | |
5941 | yes:) | |
5942 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5943 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5944 | ac_tool_warned=yes ;; | |
5945 | esac | |
5946 | OBJDUMP=$ac_ct_OBJDUMP | |
5947 | fi | |
5948 | else | |
5949 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5950 | fi | |
5951 | ||
5952 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5953 | ||
5954 | ||
5955 | ||
5956 | ||
5957 | ||
5958 | ||
5959 | ||
5960 | ||
5961 | ||
5962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5963 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5964 | if ${lt_cv_deplibs_check_method+:} false; then : | |
5965 | $as_echo_n "(cached) " >&6 | |
5966 | else | |
5967 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5968 | lt_cv_file_magic_test_file= | |
5969 | lt_cv_deplibs_check_method='unknown' | |
5970 | # Need to set the preceding variable on all platforms that support | |
5971 | # interlibrary dependencies. | |
5972 | # 'none' -- dependencies not supported. | |
5973 | # `unknown' -- same as none, but documents that we really don't know. | |
5974 | # 'pass_all' -- all dependencies passed with no checks. | |
5975 | # 'test_compile' -- check by making test program. | |
5976 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5977 | # which responds to the $file_magic_cmd with a given extended regex. | |
5978 | # If you have `file' or equivalent on your system and you're not sure | |
5979 | # whether `pass_all' will *always* work, you probably want this one. | |
5980 | ||
5981 | case $host_os in | |
5982 | aix[4-9]*) | |
5983 | lt_cv_deplibs_check_method=pass_all | |
5984 | ;; | |
5985 | ||
5986 | beos*) | |
5987 | lt_cv_deplibs_check_method=pass_all | |
5988 | ;; | |
5989 | ||
5990 | bsdi[45]*) | |
5991 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5992 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5993 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5994 | ;; | |
5995 | ||
5996 | cygwin*) | |
5997 | # func_win32_libid is a shell function defined in ltmain.sh | |
5998 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5999 | lt_cv_file_magic_cmd='func_win32_libid' | |
6000 | ;; | |
6001 | ||
6002 | mingw* | pw32*) | |
6003 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6004 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6005 | # unless we find 'file', for example because we are cross-compiling. | |
6006 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6007 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6008 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6009 | lt_cv_file_magic_cmd='func_win32_libid' | |
6010 | else | |
6011 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6012 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6013 | fi | |
6014 | ;; | |
6015 | ||
6016 | cegcc*) | |
6017 | # use the weaker test based on 'objdump'. See mingw*. | |
6018 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6019 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6020 | ;; | |
6021 | ||
6022 | darwin* | rhapsody*) | |
6023 | lt_cv_deplibs_check_method=pass_all | |
6024 | ;; | |
6025 | ||
6026 | freebsd* | dragonfly*) | |
6027 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6028 | case $host_cpu in | |
6029 | i*86 ) | |
6030 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6031 | # Let's accept both of them until this is cleared up. | |
6032 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6033 | lt_cv_file_magic_cmd=/usr/bin/file | |
6034 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6035 | ;; | |
6036 | esac | |
6037 | else | |
6038 | lt_cv_deplibs_check_method=pass_all | |
6039 | fi | |
6040 | ;; | |
6041 | ||
6042 | gnu*) | |
6043 | lt_cv_deplibs_check_method=pass_all | |
6044 | ;; | |
6045 | ||
6046 | haiku*) | |
6047 | lt_cv_deplibs_check_method=pass_all | |
6048 | ;; | |
6049 | ||
6050 | hpux10.20* | hpux11*) | |
6051 | lt_cv_file_magic_cmd=/usr/bin/file | |
6052 | case $host_cpu in | |
6053 | ia64*) | |
6054 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6055 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6056 | ;; | |
6057 | hppa*64*) | |
6058 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | |
6059 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6060 | ;; | |
6061 | *) | |
6062 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6063 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6064 | ;; | |
6065 | esac | |
6066 | ;; | |
6067 | ||
6068 | interix[3-9]*) | |
6069 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6070 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6071 | ;; | |
6072 | ||
6073 | irix5* | irix6* | nonstopux*) | |
6074 | case $LD in | |
6075 | *-32|*"-32 ") libmagic=32-bit;; | |
6076 | *-n32|*"-n32 ") libmagic=N32;; | |
6077 | *-64|*"-64 ") libmagic=64-bit;; | |
6078 | *) libmagic=never-match;; | |
6079 | esac | |
6080 | lt_cv_deplibs_check_method=pass_all | |
6081 | ;; | |
6082 | ||
6083 | # This must be Linux ELF. | |
6084 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6085 | lt_cv_deplibs_check_method=pass_all | |
6086 | ;; | |
6087 | ||
6088 | netbsd*) | |
6089 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6090 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6091 | else | |
6092 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6093 | fi | |
6094 | ;; | |
6095 | ||
6096 | newos6*) | |
6097 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6098 | lt_cv_file_magic_cmd=/usr/bin/file | |
6099 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6100 | ;; | |
6101 | ||
6102 | *nto* | *qnx*) | |
6103 | lt_cv_deplibs_check_method=pass_all | |
6104 | ;; | |
6105 | ||
6106 | openbsd*) | |
6107 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6108 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6109 | else | |
6110 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6111 | fi | |
6112 | ;; | |
6113 | ||
6114 | osf3* | osf4* | osf5*) | |
6115 | lt_cv_deplibs_check_method=pass_all | |
6116 | ;; | |
6117 | ||
6118 | rdos*) | |
6119 | lt_cv_deplibs_check_method=pass_all | |
6120 | ;; | |
6121 | ||
6122 | solaris*) | |
6123 | lt_cv_deplibs_check_method=pass_all | |
6124 | ;; | |
6125 | ||
6126 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6127 | lt_cv_deplibs_check_method=pass_all | |
6128 | ;; | |
6129 | ||
6130 | sysv4 | sysv4.3*) | |
6131 | case $host_vendor in | |
6132 | motorola) | |
6133 | 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]' | |
6134 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6135 | ;; | |
6136 | ncr) | |
6137 | lt_cv_deplibs_check_method=pass_all | |
6138 | ;; | |
6139 | sequent) | |
6140 | lt_cv_file_magic_cmd='/bin/file' | |
6141 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6142 | ;; | |
6143 | sni) | |
6144 | lt_cv_file_magic_cmd='/bin/file' | |
6145 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6146 | lt_cv_file_magic_test_file=/lib/libc.so | |
6147 | ;; | |
6148 | siemens) | |
6149 | lt_cv_deplibs_check_method=pass_all | |
6150 | ;; | |
6151 | pc) | |
6152 | lt_cv_deplibs_check_method=pass_all | |
6153 | ;; | |
6154 | esac | |
6155 | ;; | |
6156 | ||
6157 | tpf*) | |
6158 | lt_cv_deplibs_check_method=pass_all | |
6159 | ;; | |
6160 | esac | |
6161 | ||
6162 | fi | |
6163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6164 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6165 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6166 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6167 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6168 | ||
6169 | ||
6170 | ||
6171 | ||
6172 | ||
6173 | ||
6174 | ||
6175 | ||
6176 | ||
6177 | ||
6178 | ||
6179 | ||
6180 | plugin_option= | |
6181 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
6182 | for plugin in $plugin_names; do | |
6183 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
6184 | if test x$plugin_so = x$plugin; then | |
6185 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
6186 | fi | |
6187 | if test x$plugin_so != x$plugin; then | |
6188 | plugin_option="--plugin $plugin_so" | |
6189 | break | |
6190 | fi | |
6191 | done | |
6192 | ||
6193 | if test -n "$ac_tool_prefix"; then | |
6194 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6195 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6197 | $as_echo_n "checking for $ac_word... " >&6; } | |
6198 | if ${ac_cv_prog_AR+:} false; then : | |
6199 | $as_echo_n "(cached) " >&6 | |
6200 | else | |
6201 | if test -n "$AR"; then | |
6202 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6203 | else | |
6204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6205 | for as_dir in $PATH | |
6206 | do | |
6207 | IFS=$as_save_IFS | |
6208 | test -z "$as_dir" && as_dir=. | |
6209 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6210 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6211 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
6212 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6213 | break 2 | |
6214 | fi | |
6215 | done | |
6216 | done | |
6217 | IFS=$as_save_IFS | |
6218 | ||
6219 | fi | |
6220 | fi | |
6221 | AR=$ac_cv_prog_AR | |
6222 | if test -n "$AR"; then | |
6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6224 | $as_echo "$AR" >&6; } | |
6225 | else | |
6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6227 | $as_echo "no" >&6; } | |
6228 | fi | |
6229 | ||
6230 | ||
6231 | fi | |
6232 | if test -z "$ac_cv_prog_AR"; then | |
6233 | ac_ct_AR=$AR | |
6234 | # Extract the first word of "ar", so it can be a program name with args. | |
6235 | set dummy ar; ac_word=$2 | |
6236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6237 | $as_echo_n "checking for $ac_word... " >&6; } | |
6238 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6239 | $as_echo_n "(cached) " >&6 | |
6240 | else | |
6241 | if test -n "$ac_ct_AR"; then | |
6242 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6243 | else | |
6244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6245 | for as_dir in $PATH | |
6246 | do | |
6247 | IFS=$as_save_IFS | |
6248 | test -z "$as_dir" && as_dir=. | |
6249 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6250 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6251 | ac_cv_prog_ac_ct_AR="ar" | |
6252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6253 | break 2 | |
6254 | fi | |
6255 | done | |
6256 | done | |
6257 | IFS=$as_save_IFS | |
6258 | ||
6259 | fi | |
6260 | fi | |
6261 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6262 | if test -n "$ac_ct_AR"; then | |
6263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6264 | $as_echo "$ac_ct_AR" >&6; } | |
6265 | else | |
6266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6267 | $as_echo "no" >&6; } | |
6268 | fi | |
6269 | ||
6270 | if test "x$ac_ct_AR" = x; then | |
6271 | AR="false" | |
6272 | else | |
6273 | case $cross_compiling:$ac_tool_warned in | |
6274 | yes:) | |
6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6276 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6277 | ac_tool_warned=yes ;; | |
6278 | esac | |
6279 | AR=$ac_ct_AR | |
6280 | fi | |
6281 | else | |
6282 | AR="$ac_cv_prog_AR" | |
6283 | fi | |
6284 | ||
6285 | test -z "$AR" && AR=ar | |
6286 | if test -n "$plugin_option"; then | |
6287 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
6288 | touch conftest.c | |
6289 | $AR $plugin_option rc conftest.a conftest.c | |
6290 | if test "$?" != 0; then | |
6291 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
6292 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
6293 | else | |
6294 | AR="$AR $plugin_option" | |
6295 | fi | |
6296 | rm -f conftest.* | |
6297 | fi | |
6298 | fi | |
6299 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6300 | ||
6301 | ||
6302 | ||
6303 | ||
6304 | ||
6305 | ||
6306 | ||
6307 | ||
6308 | ||
6309 | ||
6310 | ||
6311 | if test -n "$ac_tool_prefix"; then | |
6312 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6313 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6315 | $as_echo_n "checking for $ac_word... " >&6; } | |
6316 | if ${ac_cv_prog_STRIP+:} false; then : | |
6317 | $as_echo_n "(cached) " >&6 | |
6318 | else | |
6319 | if test -n "$STRIP"; then | |
6320 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6321 | else | |
6322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6323 | for as_dir in $PATH | |
6324 | do | |
6325 | IFS=$as_save_IFS | |
6326 | test -z "$as_dir" && as_dir=. | |
6327 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6328 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6329 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6330 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6331 | break 2 | |
6332 | fi | |
6333 | done | |
6334 | done | |
6335 | IFS=$as_save_IFS | |
6336 | ||
6337 | fi | |
6338 | fi | |
6339 | STRIP=$ac_cv_prog_STRIP | |
6340 | if test -n "$STRIP"; then | |
6341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6342 | $as_echo "$STRIP" >&6; } | |
6343 | else | |
6344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6345 | $as_echo "no" >&6; } | |
6346 | fi | |
6347 | ||
6348 | ||
6349 | fi | |
6350 | if test -z "$ac_cv_prog_STRIP"; then | |
6351 | ac_ct_STRIP=$STRIP | |
6352 | # Extract the first word of "strip", so it can be a program name with args. | |
6353 | set dummy strip; ac_word=$2 | |
6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6355 | $as_echo_n "checking for $ac_word... " >&6; } | |
6356 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
6357 | $as_echo_n "(cached) " >&6 | |
6358 | else | |
6359 | if test -n "$ac_ct_STRIP"; then | |
6360 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6361 | else | |
6362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6363 | for as_dir in $PATH | |
6364 | do | |
6365 | IFS=$as_save_IFS | |
6366 | test -z "$as_dir" && as_dir=. | |
6367 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6368 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6369 | ac_cv_prog_ac_ct_STRIP="strip" | |
6370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6371 | break 2 | |
6372 | fi | |
6373 | done | |
6374 | done | |
6375 | IFS=$as_save_IFS | |
6376 | ||
6377 | fi | |
6378 | fi | |
6379 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6380 | if test -n "$ac_ct_STRIP"; then | |
6381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6382 | $as_echo "$ac_ct_STRIP" >&6; } | |
6383 | else | |
6384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6385 | $as_echo "no" >&6; } | |
6386 | fi | |
6387 | ||
6388 | if test "x$ac_ct_STRIP" = x; then | |
6389 | STRIP=":" | |
6390 | else | |
6391 | case $cross_compiling:$ac_tool_warned in | |
6392 | yes:) | |
6393 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6394 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6395 | ac_tool_warned=yes ;; | |
6396 | esac | |
6397 | STRIP=$ac_ct_STRIP | |
6398 | fi | |
6399 | else | |
6400 | STRIP="$ac_cv_prog_STRIP" | |
6401 | fi | |
6402 | ||
6403 | test -z "$STRIP" && STRIP=: | |
6404 | ||
6405 | ||
6406 | ||
6407 | ||
6408 | ||
6409 | ||
6410 | if test -n "$ac_tool_prefix"; then | |
6411 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6412 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6414 | $as_echo_n "checking for $ac_word... " >&6; } | |
6415 | if ${ac_cv_prog_RANLIB+:} false; then : | |
6416 | $as_echo_n "(cached) " >&6 | |
6417 | else | |
6418 | if test -n "$RANLIB"; then | |
6419 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6420 | else | |
6421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6422 | for as_dir in $PATH | |
6423 | do | |
6424 | IFS=$as_save_IFS | |
6425 | test -z "$as_dir" && as_dir=. | |
6426 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6427 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6428 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6429 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6430 | break 2 | |
6431 | fi | |
6432 | done | |
6433 | done | |
6434 | IFS=$as_save_IFS | |
6435 | ||
6436 | fi | |
6437 | fi | |
6438 | RANLIB=$ac_cv_prog_RANLIB | |
6439 | if test -n "$RANLIB"; then | |
6440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6441 | $as_echo "$RANLIB" >&6; } | |
6442 | else | |
6443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6444 | $as_echo "no" >&6; } | |
6445 | fi | |
6446 | ||
6447 | ||
6448 | fi | |
6449 | if test -z "$ac_cv_prog_RANLIB"; then | |
6450 | ac_ct_RANLIB=$RANLIB | |
6451 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6452 | set dummy ranlib; ac_word=$2 | |
6453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6454 | $as_echo_n "checking for $ac_word... " >&6; } | |
6455 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
6456 | $as_echo_n "(cached) " >&6 | |
6457 | else | |
6458 | if test -n "$ac_ct_RANLIB"; then | |
6459 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6460 | else | |
6461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6462 | for as_dir in $PATH | |
6463 | do | |
6464 | IFS=$as_save_IFS | |
6465 | test -z "$as_dir" && as_dir=. | |
6466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6467 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6468 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6470 | break 2 | |
6471 | fi | |
6472 | done | |
6473 | done | |
6474 | IFS=$as_save_IFS | |
6475 | ||
6476 | fi | |
6477 | fi | |
6478 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6479 | if test -n "$ac_ct_RANLIB"; then | |
6480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6481 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6482 | else | |
6483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6484 | $as_echo "no" >&6; } | |
6485 | fi | |
6486 | ||
6487 | if test "x$ac_ct_RANLIB" = x; then | |
6488 | RANLIB=":" | |
6489 | else | |
6490 | case $cross_compiling:$ac_tool_warned in | |
6491 | yes:) | |
6492 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6493 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6494 | ac_tool_warned=yes ;; | |
6495 | esac | |
6496 | RANLIB=$ac_ct_RANLIB | |
6497 | fi | |
6498 | else | |
6499 | RANLIB="$ac_cv_prog_RANLIB" | |
6500 | fi | |
6501 | ||
6502 | test -z "$RANLIB" && RANLIB=: | |
6503 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then | |
6504 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
6505 | RANLIB="$RANLIB $plugin_option" | |
6506 | fi | |
6507 | fi | |
6508 | ||
6509 | ||
6510 | ||
6511 | ||
6512 | ||
6513 | ||
6514 | # Determine commands to create old-style static archives. | |
6515 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6516 | old_postinstall_cmds='chmod 644 $oldlib' | |
6517 | old_postuninstall_cmds= | |
6518 | ||
6519 | if test -n "$RANLIB"; then | |
6520 | case $host_os in | |
6521 | openbsd*) | |
6522 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6523 | ;; | |
6524 | *) | |
6525 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6526 | ;; | |
6527 | esac | |
6528 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6529 | fi | |
6530 | ||
6531 | case $host_os in | |
6532 | darwin*) | |
6533 | lock_old_archive_extraction=yes ;; | |
6534 | *) | |
6535 | lock_old_archive_extraction=no ;; | |
6536 | esac | |
6537 | ||
6538 | ||
6539 | ||
6540 | ||
6541 | ||
6542 | ||
6543 | ||
6544 | ||
6545 | ||
6546 | ||
6547 | ||
6548 | ||
6549 | ||
6550 | ||
6551 | ||
6552 | ||
6553 | ||
6554 | ||
6555 | ||
6556 | ||
6557 | ||
6558 | for ac_prog in gawk mawk nawk awk | |
6559 | do | |
6560 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6561 | set dummy $ac_prog; ac_word=$2 | |
6562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6563 | $as_echo_n "checking for $ac_word... " >&6; } | |
6564 | if ${ac_cv_prog_AWK+:} false; then : | |
6565 | $as_echo_n "(cached) " >&6 | |
6566 | else | |
6567 | if test -n "$AWK"; then | |
6568 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
6569 | else | |
6570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6571 | for as_dir in $PATH | |
6572 | do | |
6573 | IFS=$as_save_IFS | |
6574 | test -z "$as_dir" && as_dir=. | |
6575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6576 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6577 | ac_cv_prog_AWK="$ac_prog" | |
6578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6579 | break 2 | |
6580 | fi | |
6581 | done | |
6582 | done | |
6583 | IFS=$as_save_IFS | |
6584 | ||
6585 | fi | |
6586 | fi | |
6587 | AWK=$ac_cv_prog_AWK | |
6588 | if test -n "$AWK"; then | |
6589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
6590 | $as_echo "$AWK" >&6; } | |
6591 | else | |
6592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6593 | $as_echo "no" >&6; } | |
6594 | fi | |
6595 | ||
6596 | ||
6597 | test -n "$AWK" && break | |
6598 | done | |
6599 | ||
6600 | ||
6601 | ||
6602 | ||
6603 | ||
6604 | ||
6605 | ||
6606 | ||
6607 | ||
6608 | ||
6609 | ||
6610 | ||
6611 | ||
6612 | ||
6613 | ||
6614 | ||
6615 | ||
6616 | ||
6617 | ||
6618 | # If no C compiler was specified, use CC. | |
6619 | LTCC=${LTCC-"$CC"} | |
6620 | ||
6621 | # If no C compiler flags were specified, use CFLAGS. | |
6622 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6623 | ||
6624 | # Allow CC to be a program name with arguments. | |
6625 | compiler=$CC | |
6626 | ||
6627 | ||
6628 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6630 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6631 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
6632 | $as_echo_n "(cached) " >&6 | |
6633 | else | |
6634 | ||
6635 | # These are sane defaults that work on at least a few old systems. | |
6636 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6637 | ||
6638 | # Character class describing NM global symbol codes. | |
6639 | symcode='[BCDEGRST]' | |
6640 | ||
6641 | # Regexp to match symbols that can be accessed directly from C. | |
6642 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6643 | ||
6644 | # Define system-specific variables. | |
6645 | case $host_os in | |
6646 | aix*) | |
6647 | symcode='[BCDT]' | |
6648 | ;; | |
6649 | cygwin* | mingw* | pw32* | cegcc*) | |
6650 | symcode='[ABCDGISTW]' | |
6651 | ;; | |
6652 | hpux*) | |
6653 | if test "$host_cpu" = ia64; then | |
6654 | symcode='[ABCDEGRST]' | |
6655 | fi | |
6656 | ;; | |
6657 | irix* | nonstopux*) | |
6658 | symcode='[BCDEGRST]' | |
6659 | ;; | |
6660 | osf*) | |
6661 | symcode='[BCDEGQRST]' | |
6662 | ;; | |
6663 | solaris*) | |
6664 | symcode='[BDRT]' | |
6665 | ;; | |
6666 | sco3.2v5*) | |
6667 | symcode='[DT]' | |
6668 | ;; | |
6669 | sysv4.2uw2*) | |
6670 | symcode='[DT]' | |
6671 | ;; | |
6672 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6673 | symcode='[ABDT]' | |
6674 | ;; | |
6675 | sysv4) | |
6676 | symcode='[DFNSTU]' | |
6677 | ;; | |
6678 | esac | |
6679 | ||
6680 | # If we're using GNU nm, then use its standard symbol codes. | |
6681 | case `$NM -V 2>&1` in | |
6682 | *GNU* | *'with BFD'*) | |
6683 | symcode='[ABCDGIRSTW]' ;; | |
6684 | esac | |
6685 | ||
6686 | # Transform an extracted symbol line into a proper C declaration. | |
6687 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6688 | # so use this general approach. | |
6689 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6690 | ||
6691 | # Transform an extracted symbol line into symbol name and symbol address | |
6692 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6693 | 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'" | |
6694 | ||
6695 | # Handle CRLF in mingw tool chain | |
6696 | opt_cr= | |
6697 | case $build_os in | |
6698 | mingw*) | |
6699 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6700 | ;; | |
6701 | esac | |
6702 | ||
6703 | # Try without a prefix underscore, then with it. | |
6704 | for ac_symprfx in "" "_"; do | |
6705 | ||
6706 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6707 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6708 | ||
6709 | # Write the raw and C identifiers. | |
6710 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6711 | # Fake it for dumpbin and say T for any non-static function | |
6712 | # and D for any global variable. | |
6713 | # Also find C++ and __fastcall symbols from MSVC++, | |
6714 | # which start with @ or ?. | |
6715 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6716 | " {last_section=section; section=\$ 3};"\ | |
6717 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6718 | " \$ 0!~/External *\|/{next};"\ | |
6719 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6720 | " {if(hide[section]) next};"\ | |
6721 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6722 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6723 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6724 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6725 | " ' prfx=^$ac_symprfx" | |
6726 | else | |
6727 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6728 | fi | |
6729 | ||
6730 | # Check to see that the pipe works correctly. | |
6731 | pipe_works=no | |
6732 | ||
6733 | rm -f conftest* | |
6734 | cat > conftest.$ac_ext <<_LT_EOF | |
6735 | #ifdef __cplusplus | |
6736 | extern "C" { | |
6737 | #endif | |
6738 | char nm_test_var; | |
6739 | void nm_test_func(void); | |
6740 | void nm_test_func(void){} | |
6741 | #ifdef __cplusplus | |
6742 | } | |
6743 | #endif | |
6744 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6745 | _LT_EOF | |
6746 | ||
6747 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6748 | (eval $ac_compile) 2>&5 | |
6749 | ac_status=$? | |
6750 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6751 | test $ac_status = 0; }; then | |
6752 | # Now try to grab the symbols. | |
6753 | nlist=conftest.nm | |
6754 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6755 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6756 | ac_status=$? | |
6757 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6758 | test $ac_status = 0; } && test -s "$nlist"; then | |
6759 | # Try sorting and uniquifying the output. | |
6760 | if sort "$nlist" | uniq > "$nlist"T; then | |
6761 | mv -f "$nlist"T "$nlist" | |
6762 | else | |
6763 | rm -f "$nlist"T | |
6764 | fi | |
6765 | ||
6766 | # Make sure that we snagged all the symbols we need. | |
6767 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6768 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6769 | cat <<_LT_EOF > conftest.$ac_ext | |
6770 | #ifdef __cplusplus | |
6771 | extern "C" { | |
6772 | #endif | |
6773 | ||
6774 | _LT_EOF | |
6775 | # Now generate the symbol file. | |
6776 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6777 | ||
6778 | cat <<_LT_EOF >> conftest.$ac_ext | |
6779 | ||
6780 | /* The mapping between symbol names and symbols. */ | |
6781 | const struct { | |
6782 | const char *name; | |
6783 | void *address; | |
6784 | } | |
6785 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6786 | { | |
6787 | { "@PROGRAM@", (void *) 0 }, | |
6788 | _LT_EOF | |
6789 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6790 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6791 | {0, (void *) 0} | |
6792 | }; | |
6793 | ||
6794 | /* This works around a problem in FreeBSD linker */ | |
6795 | #ifdef FREEBSD_WORKAROUND | |
6796 | static const void *lt_preloaded_setup() { | |
6797 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6798 | } | |
6799 | #endif | |
6800 | ||
6801 | #ifdef __cplusplus | |
6802 | } | |
6803 | #endif | |
6804 | _LT_EOF | |
6805 | # Now try linking the two files. | |
6806 | mv conftest.$ac_objext conftstm.$ac_objext | |
6807 | lt_save_LIBS="$LIBS" | |
6808 | lt_save_CFLAGS="$CFLAGS" | |
6809 | LIBS="conftstm.$ac_objext" | |
6810 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6811 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6812 | (eval $ac_link) 2>&5 | |
6813 | ac_status=$? | |
6814 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6815 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
6816 | pipe_works=yes | |
6817 | fi | |
6818 | LIBS="$lt_save_LIBS" | |
6819 | CFLAGS="$lt_save_CFLAGS" | |
6820 | else | |
6821 | echo "cannot find nm_test_func in $nlist" >&5 | |
6822 | fi | |
6823 | else | |
6824 | echo "cannot find nm_test_var in $nlist" >&5 | |
6825 | fi | |
6826 | else | |
6827 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6828 | fi | |
6829 | else | |
6830 | echo "$progname: failed program was:" >&5 | |
6831 | cat conftest.$ac_ext >&5 | |
6832 | fi | |
6833 | rm -rf conftest* conftst* | |
6834 | ||
6835 | # Do not use the global_symbol_pipe unless it works. | |
6836 | if test "$pipe_works" = yes; then | |
6837 | break | |
6838 | else | |
6839 | lt_cv_sys_global_symbol_pipe= | |
6840 | fi | |
6841 | done | |
6842 | ||
6843 | fi | |
6844 | ||
6845 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6846 | lt_cv_sys_global_symbol_to_cdecl= | |
6847 | fi | |
6848 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6850 | $as_echo "failed" >&6; } | |
6851 | else | |
6852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6853 | $as_echo "ok" >&6; } | |
6854 | fi | |
6855 | ||
6856 | ||
6857 | ||
6858 | ||
6859 | ||
6860 | ||
6861 | ||
6862 | ||
6863 | ||
6864 | ||
6865 | ||
6866 | ||
6867 | ||
6868 | ||
6869 | ||
6870 | ||
6871 | ||
6872 | ||
6873 | ||
6874 | ||
6875 | ||
6876 | ||
6877 | # Check whether --enable-libtool-lock was given. | |
6878 | if test "${enable_libtool_lock+set}" = set; then : | |
6879 | enableval=$enable_libtool_lock; | |
6880 | fi | |
6881 | ||
6882 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6883 | ||
6884 | # Some flags need to be propagated to the compiler or linker for good | |
6885 | # libtool support. | |
6886 | case $host in | |
6887 | ia64-*-hpux*) | |
6888 | # Find out which ABI we are using. | |
6889 | echo 'int i;' > conftest.$ac_ext | |
6890 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6891 | (eval $ac_compile) 2>&5 | |
6892 | ac_status=$? | |
6893 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6894 | test $ac_status = 0; }; then | |
6895 | case `/usr/bin/file conftest.$ac_objext` in | |
6896 | *ELF-32*) | |
6897 | HPUX_IA64_MODE="32" | |
6898 | ;; | |
6899 | *ELF-64*) | |
6900 | HPUX_IA64_MODE="64" | |
6901 | ;; | |
6902 | esac | |
6903 | fi | |
6904 | rm -rf conftest* | |
6905 | ;; | |
6906 | *-*-irix6*) | |
6907 | # Find out which ABI we are using. | |
6908 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6909 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6910 | (eval $ac_compile) 2>&5 | |
6911 | ac_status=$? | |
6912 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6913 | test $ac_status = 0; }; then | |
6914 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6915 | case `/usr/bin/file conftest.$ac_objext` in | |
6916 | *32-bit*) | |
6917 | LD="${LD-ld} -melf32bsmip" | |
6918 | ;; | |
6919 | *N32*) | |
6920 | LD="${LD-ld} -melf32bmipn32" | |
6921 | ;; | |
6922 | *64-bit*) | |
6923 | LD="${LD-ld} -melf64bmip" | |
6924 | ;; | |
6925 | esac | |
6926 | else | |
6927 | case `/usr/bin/file conftest.$ac_objext` in | |
6928 | *32-bit*) | |
6929 | LD="${LD-ld} -32" | |
6930 | ;; | |
6931 | *N32*) | |
6932 | LD="${LD-ld} -n32" | |
6933 | ;; | |
6934 | *64-bit*) | |
6935 | LD="${LD-ld} -64" | |
6936 | ;; | |
6937 | esac | |
6938 | fi | |
6939 | fi | |
6940 | rm -rf conftest* | |
6941 | ;; | |
6942 | ||
6943 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
6944 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6945 | # Find out which ABI we are using. | |
6946 | echo 'int i;' > conftest.$ac_ext | |
6947 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6948 | (eval $ac_compile) 2>&5 | |
6949 | ac_status=$? | |
6950 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6951 | test $ac_status = 0; }; then | |
6952 | case `/usr/bin/file conftest.o` in | |
6953 | *32-bit*) | |
6954 | case $host in | |
6955 | x86_64-*kfreebsd*-gnu) | |
6956 | LD="${LD-ld} -m elf_i386_fbsd" | |
6957 | ;; | |
6958 | x86_64-*linux*) | |
6959 | case `/usr/bin/file conftest.o` in | |
6960 | *x86-64*) | |
6961 | LD="${LD-ld} -m elf32_x86_64" | |
6962 | ;; | |
6963 | *) | |
6964 | LD="${LD-ld} -m elf_i386" | |
6965 | ;; | |
6966 | esac | |
6967 | ;; | |
6968 | powerpc64le-*linux*) | |
6969 | LD="${LD-ld} -m elf32lppclinux" | |
6970 | ;; | |
6971 | powerpc64-*linux*) | |
6972 | LD="${LD-ld} -m elf32ppclinux" | |
6973 | ;; | |
6974 | s390x-*linux*) | |
6975 | LD="${LD-ld} -m elf_s390" | |
6976 | ;; | |
6977 | sparc64-*linux*) | |
6978 | LD="${LD-ld} -m elf32_sparc" | |
6979 | ;; | |
6980 | esac | |
6981 | ;; | |
6982 | *64-bit*) | |
6983 | case $host in | |
6984 | x86_64-*kfreebsd*-gnu) | |
6985 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6986 | ;; | |
6987 | x86_64-*linux*) | |
6988 | LD="${LD-ld} -m elf_x86_64" | |
6989 | ;; | |
6990 | powerpcle-*linux*) | |
6991 | LD="${LD-ld} -m elf64lppc" | |
6992 | ;; | |
6993 | powerpc-*linux*) | |
6994 | LD="${LD-ld} -m elf64ppc" | |
6995 | ;; | |
6996 | s390*-*linux*|s390*-*tpf*) | |
6997 | LD="${LD-ld} -m elf64_s390" | |
6998 | ;; | |
6999 | sparc*-*linux*) | |
7000 | LD="${LD-ld} -m elf64_sparc" | |
7001 | ;; | |
7002 | esac | |
7003 | ;; | |
7004 | esac | |
7005 | fi | |
7006 | rm -rf conftest* | |
7007 | ;; | |
7008 | ||
7009 | *-*-sco3.2v5*) | |
7010 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7011 | SAVE_CFLAGS="$CFLAGS" | |
7012 | CFLAGS="$CFLAGS -belf" | |
7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7014 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7015 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7016 | $as_echo_n "(cached) " >&6 | |
7017 | else | |
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 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7025 | /* end confdefs.h. */ | |
7026 | ||
7027 | int | |
7028 | main () | |
7029 | { | |
7030 | ||
7031 | ; | |
7032 | return 0; | |
7033 | } | |
7034 | _ACEOF | |
7035 | if ac_fn_c_try_link "$LINENO"; then : | |
7036 | lt_cv_cc_needs_belf=yes | |
7037 | else | |
7038 | lt_cv_cc_needs_belf=no | |
7039 | fi | |
7040 | rm -f core conftest.err conftest.$ac_objext \ | |
7041 | conftest$ac_exeext conftest.$ac_ext | |
7042 | ac_ext=c | |
7043 | ac_cpp='$CPP $CPPFLAGS' | |
7044 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7045 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7046 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7047 | ||
7048 | fi | |
7049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7050 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7051 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7052 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7053 | CFLAGS="$SAVE_CFLAGS" | |
7054 | fi | |
7055 | ;; | |
7056 | sparc*-*solaris*) | |
7057 | # Find out which ABI we are using. | |
7058 | echo 'int i;' > conftest.$ac_ext | |
7059 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7060 | (eval $ac_compile) 2>&5 | |
7061 | ac_status=$? | |
7062 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7063 | test $ac_status = 0; }; then | |
7064 | case `/usr/bin/file conftest.o` in | |
7065 | *64-bit*) | |
7066 | case $lt_cv_prog_gnu_ld in | |
7067 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7068 | *) | |
7069 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7070 | LD="${LD-ld} -64" | |
7071 | fi | |
7072 | ;; | |
7073 | esac | |
7074 | ;; | |
7075 | esac | |
7076 | fi | |
7077 | rm -rf conftest* | |
7078 | ;; | |
7079 | esac | |
7080 | ||
7081 | need_locks="$enable_libtool_lock" | |
7082 | ||
7083 | ||
7084 | case $host_os in | |
7085 | rhapsody* | darwin*) | |
7086 | if test -n "$ac_tool_prefix"; then | |
7087 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7088 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7090 | $as_echo_n "checking for $ac_word... " >&6; } | |
7091 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7092 | $as_echo_n "(cached) " >&6 | |
7093 | else | |
7094 | if test -n "$DSYMUTIL"; then | |
7095 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7096 | else | |
7097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7098 | for as_dir in $PATH | |
7099 | do | |
7100 | IFS=$as_save_IFS | |
7101 | test -z "$as_dir" && as_dir=. | |
7102 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7103 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7104 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7106 | break 2 | |
7107 | fi | |
7108 | done | |
7109 | done | |
7110 | IFS=$as_save_IFS | |
7111 | ||
7112 | fi | |
7113 | fi | |
7114 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7115 | if test -n "$DSYMUTIL"; then | |
7116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7117 | $as_echo "$DSYMUTIL" >&6; } | |
7118 | else | |
7119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7120 | $as_echo "no" >&6; } | |
7121 | fi | |
7122 | ||
7123 | ||
7124 | fi | |
7125 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7126 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7127 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7128 | set dummy dsymutil; ac_word=$2 | |
7129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7130 | $as_echo_n "checking for $ac_word... " >&6; } | |
7131 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
7132 | $as_echo_n "(cached) " >&6 | |
7133 | else | |
7134 | if test -n "$ac_ct_DSYMUTIL"; then | |
7135 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7136 | else | |
7137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7138 | for as_dir in $PATH | |
7139 | do | |
7140 | IFS=$as_save_IFS | |
7141 | test -z "$as_dir" && as_dir=. | |
7142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7143 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7144 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7146 | break 2 | |
7147 | fi | |
7148 | done | |
7149 | done | |
7150 | IFS=$as_save_IFS | |
7151 | ||
7152 | fi | |
7153 | fi | |
7154 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7155 | if test -n "$ac_ct_DSYMUTIL"; then | |
7156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7157 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7158 | else | |
7159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7160 | $as_echo "no" >&6; } | |
7161 | fi | |
7162 | ||
7163 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7164 | DSYMUTIL=":" | |
7165 | else | |
7166 | case $cross_compiling:$ac_tool_warned in | |
7167 | yes:) | |
7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7169 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7170 | ac_tool_warned=yes ;; | |
7171 | esac | |
7172 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7173 | fi | |
7174 | else | |
7175 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7176 | fi | |
7177 | ||
7178 | if test -n "$ac_tool_prefix"; then | |
7179 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7180 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7182 | $as_echo_n "checking for $ac_word... " >&6; } | |
7183 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
7184 | $as_echo_n "(cached) " >&6 | |
7185 | else | |
7186 | if test -n "$NMEDIT"; then | |
7187 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7188 | else | |
7189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7190 | for as_dir in $PATH | |
7191 | do | |
7192 | IFS=$as_save_IFS | |
7193 | test -z "$as_dir" && as_dir=. | |
7194 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7195 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7196 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7198 | break 2 | |
7199 | fi | |
7200 | done | |
7201 | done | |
7202 | IFS=$as_save_IFS | |
7203 | ||
7204 | fi | |
7205 | fi | |
7206 | NMEDIT=$ac_cv_prog_NMEDIT | |
7207 | if test -n "$NMEDIT"; then | |
7208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7209 | $as_echo "$NMEDIT" >&6; } | |
7210 | else | |
7211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7212 | $as_echo "no" >&6; } | |
7213 | fi | |
7214 | ||
7215 | ||
7216 | fi | |
7217 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7218 | ac_ct_NMEDIT=$NMEDIT | |
7219 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7220 | set dummy nmedit; ac_word=$2 | |
7221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7222 | $as_echo_n "checking for $ac_word... " >&6; } | |
7223 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
7224 | $as_echo_n "(cached) " >&6 | |
7225 | else | |
7226 | if test -n "$ac_ct_NMEDIT"; then | |
7227 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7228 | else | |
7229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7230 | for as_dir in $PATH | |
7231 | do | |
7232 | IFS=$as_save_IFS | |
7233 | test -z "$as_dir" && as_dir=. | |
7234 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7235 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7236 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7238 | break 2 | |
7239 | fi | |
7240 | done | |
7241 | done | |
7242 | IFS=$as_save_IFS | |
7243 | ||
7244 | fi | |
7245 | fi | |
7246 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7247 | if test -n "$ac_ct_NMEDIT"; then | |
7248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7249 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7250 | else | |
7251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7252 | $as_echo "no" >&6; } | |
7253 | fi | |
7254 | ||
7255 | if test "x$ac_ct_NMEDIT" = x; then | |
7256 | NMEDIT=":" | |
7257 | else | |
7258 | case $cross_compiling:$ac_tool_warned in | |
7259 | yes:) | |
7260 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7261 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7262 | ac_tool_warned=yes ;; | |
7263 | esac | |
7264 | NMEDIT=$ac_ct_NMEDIT | |
7265 | fi | |
7266 | else | |
7267 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7268 | fi | |
7269 | ||
7270 | if test -n "$ac_tool_prefix"; then | |
7271 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7272 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7274 | $as_echo_n "checking for $ac_word... " >&6; } | |
7275 | if ${ac_cv_prog_LIPO+:} false; then : | |
7276 | $as_echo_n "(cached) " >&6 | |
7277 | else | |
7278 | if test -n "$LIPO"; then | |
7279 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7280 | else | |
7281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7282 | for as_dir in $PATH | |
7283 | do | |
7284 | IFS=$as_save_IFS | |
7285 | test -z "$as_dir" && as_dir=. | |
7286 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7287 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7288 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7289 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7290 | break 2 | |
7291 | fi | |
7292 | done | |
7293 | done | |
7294 | IFS=$as_save_IFS | |
7295 | ||
7296 | fi | |
7297 | fi | |
7298 | LIPO=$ac_cv_prog_LIPO | |
7299 | if test -n "$LIPO"; then | |
7300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7301 | $as_echo "$LIPO" >&6; } | |
7302 | else | |
7303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7304 | $as_echo "no" >&6; } | |
7305 | fi | |
7306 | ||
7307 | ||
7308 | fi | |
7309 | if test -z "$ac_cv_prog_LIPO"; then | |
7310 | ac_ct_LIPO=$LIPO | |
7311 | # Extract the first word of "lipo", so it can be a program name with args. | |
7312 | set dummy lipo; ac_word=$2 | |
7313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7314 | $as_echo_n "checking for $ac_word... " >&6; } | |
7315 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
7316 | $as_echo_n "(cached) " >&6 | |
7317 | else | |
7318 | if test -n "$ac_ct_LIPO"; then | |
7319 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7320 | else | |
7321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7322 | for as_dir in $PATH | |
7323 | do | |
7324 | IFS=$as_save_IFS | |
7325 | test -z "$as_dir" && as_dir=. | |
7326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7327 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7328 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7330 | break 2 | |
7331 | fi | |
7332 | done | |
7333 | done | |
7334 | IFS=$as_save_IFS | |
7335 | ||
7336 | fi | |
7337 | fi | |
7338 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7339 | if test -n "$ac_ct_LIPO"; then | |
7340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7341 | $as_echo "$ac_ct_LIPO" >&6; } | |
7342 | else | |
7343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7344 | $as_echo "no" >&6; } | |
7345 | fi | |
7346 | ||
7347 | if test "x$ac_ct_LIPO" = x; then | |
7348 | LIPO=":" | |
7349 | else | |
7350 | case $cross_compiling:$ac_tool_warned in | |
7351 | yes:) | |
7352 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7353 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7354 | ac_tool_warned=yes ;; | |
7355 | esac | |
7356 | LIPO=$ac_ct_LIPO | |
7357 | fi | |
7358 | else | |
7359 | LIPO="$ac_cv_prog_LIPO" | |
7360 | fi | |
7361 | ||
7362 | if test -n "$ac_tool_prefix"; then | |
7363 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7364 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7366 | $as_echo_n "checking for $ac_word... " >&6; } | |
7367 | if ${ac_cv_prog_OTOOL+:} false; then : | |
7368 | $as_echo_n "(cached) " >&6 | |
7369 | else | |
7370 | if test -n "$OTOOL"; then | |
7371 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7372 | else | |
7373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7374 | for as_dir in $PATH | |
7375 | do | |
7376 | IFS=$as_save_IFS | |
7377 | test -z "$as_dir" && as_dir=. | |
7378 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7379 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7380 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7381 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7382 | break 2 | |
7383 | fi | |
7384 | done | |
7385 | done | |
7386 | IFS=$as_save_IFS | |
7387 | ||
7388 | fi | |
7389 | fi | |
7390 | OTOOL=$ac_cv_prog_OTOOL | |
7391 | if test -n "$OTOOL"; then | |
7392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7393 | $as_echo "$OTOOL" >&6; } | |
7394 | else | |
7395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7396 | $as_echo "no" >&6; } | |
7397 | fi | |
7398 | ||
7399 | ||
7400 | fi | |
7401 | if test -z "$ac_cv_prog_OTOOL"; then | |
7402 | ac_ct_OTOOL=$OTOOL | |
7403 | # Extract the first word of "otool", so it can be a program name with args. | |
7404 | set dummy otool; ac_word=$2 | |
7405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7406 | $as_echo_n "checking for $ac_word... " >&6; } | |
7407 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
7408 | $as_echo_n "(cached) " >&6 | |
7409 | else | |
7410 | if test -n "$ac_ct_OTOOL"; then | |
7411 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7412 | else | |
7413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7414 | for as_dir in $PATH | |
7415 | do | |
7416 | IFS=$as_save_IFS | |
7417 | test -z "$as_dir" && as_dir=. | |
7418 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7419 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7420 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7421 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7422 | break 2 | |
7423 | fi | |
7424 | done | |
7425 | done | |
7426 | IFS=$as_save_IFS | |
7427 | ||
7428 | fi | |
7429 | fi | |
7430 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7431 | if test -n "$ac_ct_OTOOL"; then | |
7432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7433 | $as_echo "$ac_ct_OTOOL" >&6; } | |
7434 | else | |
7435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7436 | $as_echo "no" >&6; } | |
7437 | fi | |
7438 | ||
7439 | if test "x$ac_ct_OTOOL" = x; then | |
7440 | OTOOL=":" | |
7441 | else | |
7442 | case $cross_compiling:$ac_tool_warned in | |
7443 | yes:) | |
7444 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7445 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7446 | ac_tool_warned=yes ;; | |
7447 | esac | |
7448 | OTOOL=$ac_ct_OTOOL | |
7449 | fi | |
7450 | else | |
7451 | OTOOL="$ac_cv_prog_OTOOL" | |
7452 | fi | |
7453 | ||
7454 | if test -n "$ac_tool_prefix"; then | |
7455 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7456 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7458 | $as_echo_n "checking for $ac_word... " >&6; } | |
7459 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
7460 | $as_echo_n "(cached) " >&6 | |
7461 | else | |
7462 | if test -n "$OTOOL64"; then | |
7463 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7464 | else | |
7465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7466 | for as_dir in $PATH | |
7467 | do | |
7468 | IFS=$as_save_IFS | |
7469 | test -z "$as_dir" && as_dir=. | |
7470 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7471 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7472 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7474 | break 2 | |
7475 | fi | |
7476 | done | |
7477 | done | |
7478 | IFS=$as_save_IFS | |
7479 | ||
7480 | fi | |
7481 | fi | |
7482 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7483 | if test -n "$OTOOL64"; then | |
7484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7485 | $as_echo "$OTOOL64" >&6; } | |
7486 | else | |
7487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7488 | $as_echo "no" >&6; } | |
7489 | fi | |
7490 | ||
7491 | ||
7492 | fi | |
7493 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7494 | ac_ct_OTOOL64=$OTOOL64 | |
7495 | # Extract the first word of "otool64", so it can be a program name with args. | |
7496 | set dummy otool64; ac_word=$2 | |
7497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7498 | $as_echo_n "checking for $ac_word... " >&6; } | |
7499 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
7500 | $as_echo_n "(cached) " >&6 | |
7501 | else | |
7502 | if test -n "$ac_ct_OTOOL64"; then | |
7503 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7504 | else | |
7505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7506 | for as_dir in $PATH | |
7507 | do | |
7508 | IFS=$as_save_IFS | |
7509 | test -z "$as_dir" && as_dir=. | |
7510 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7511 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7512 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7514 | break 2 | |
7515 | fi | |
7516 | done | |
7517 | done | |
7518 | IFS=$as_save_IFS | |
7519 | ||
7520 | fi | |
7521 | fi | |
7522 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7523 | if test -n "$ac_ct_OTOOL64"; then | |
7524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7525 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
7526 | else | |
7527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7528 | $as_echo "no" >&6; } | |
7529 | fi | |
7530 | ||
7531 | if test "x$ac_ct_OTOOL64" = x; then | |
7532 | OTOOL64=":" | |
7533 | else | |
7534 | case $cross_compiling:$ac_tool_warned in | |
7535 | yes:) | |
7536 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7537 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7538 | ac_tool_warned=yes ;; | |
7539 | esac | |
7540 | OTOOL64=$ac_ct_OTOOL64 | |
7541 | fi | |
7542 | else | |
7543 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7544 | fi | |
7545 | ||
7546 | ||
7547 | ||
7548 | ||
7549 | ||
7550 | ||
7551 | ||
7552 | ||
7553 | ||
7554 | ||
7555 | ||
7556 | ||
7557 | ||
7558 | ||
7559 | ||
7560 | ||
7561 | ||
7562 | ||
7563 | ||
7564 | ||
7565 | ||
7566 | ||
7567 | ||
7568 | ||
7569 | ||
7570 | ||
7571 | ||
7572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7573 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7574 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
7575 | $as_echo_n "(cached) " >&6 | |
7576 | else | |
7577 | lt_cv_apple_cc_single_mod=no | |
7578 | if test -z "${LT_MULTI_MODULE}"; then | |
7579 | # By default we will add the -single_module flag. You can override | |
7580 | # by either setting the environment variable LT_MULTI_MODULE | |
7581 | # non-empty at configure time, or by adding -multi_module to the | |
7582 | # link flags. | |
7583 | rm -rf libconftest.dylib* | |
7584 | echo "int foo(void){return 1;}" > conftest.c | |
7585 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7586 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7587 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7588 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7589 | _lt_result=$? | |
7590 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7591 | lt_cv_apple_cc_single_mod=yes | |
7592 | else | |
7593 | cat conftest.err >&5 | |
7594 | fi | |
7595 | rm -rf libconftest.dylib* | |
7596 | rm -f conftest.* | |
7597 | fi | |
7598 | fi | |
7599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7600 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7602 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7603 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
7604 | $as_echo_n "(cached) " >&6 | |
7605 | else | |
7606 | lt_cv_ld_exported_symbols_list=no | |
7607 | save_LDFLAGS=$LDFLAGS | |
7608 | echo "_main" > conftest.sym | |
7609 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7611 | /* end confdefs.h. */ | |
7612 | ||
7613 | int | |
7614 | main () | |
7615 | { | |
7616 | ||
7617 | ; | |
7618 | return 0; | |
7619 | } | |
7620 | _ACEOF | |
7621 | if ac_fn_c_try_link "$LINENO"; then : | |
7622 | lt_cv_ld_exported_symbols_list=yes | |
7623 | else | |
7624 | lt_cv_ld_exported_symbols_list=no | |
7625 | fi | |
7626 | rm -f core conftest.err conftest.$ac_objext \ | |
7627 | conftest$ac_exeext conftest.$ac_ext | |
7628 | LDFLAGS="$save_LDFLAGS" | |
7629 | ||
7630 | fi | |
7631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7632 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7634 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7635 | if ${lt_cv_ld_force_load+:} false; then : | |
7636 | $as_echo_n "(cached) " >&6 | |
7637 | else | |
7638 | lt_cv_ld_force_load=no | |
7639 | cat > conftest.c << _LT_EOF | |
7640 | int forced_loaded() { return 2;} | |
7641 | _LT_EOF | |
7642 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7643 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7644 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7645 | $AR cru libconftest.a conftest.o 2>&5 | |
7646 | cat > conftest.c << _LT_EOF | |
7647 | int main() { return 0;} | |
7648 | _LT_EOF | |
7649 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7650 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7651 | _lt_result=$? | |
7652 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7653 | lt_cv_ld_force_load=yes | |
7654 | else | |
7655 | cat conftest.err >&5 | |
7656 | fi | |
7657 | rm -f conftest.err libconftest.a conftest conftest.c | |
7658 | rm -rf conftest.dSYM | |
7659 | ||
7660 | fi | |
7661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7662 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
7663 | case $host_os in | |
7664 | rhapsody* | darwin1.[012]) | |
7665 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7666 | darwin1.*) | |
7667 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7668 | darwin*) # darwin 5.x on | |
7669 | # if running on 10.5 or later, the deployment target defaults | |
7670 | # to the OS version, if on x86, and 10.4, the deployment | |
7671 | # target defaults to 10.4. Don't you love it? | |
7672 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7673 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7674 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7675 | 10.[012][,.]*) | |
7676 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7677 | 10.*) | |
7678 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7679 | esac | |
7680 | ;; | |
7681 | esac | |
7682 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7683 | _lt_dar_single_mod='$single_module' | |
7684 | fi | |
7685 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7686 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7687 | else | |
7688 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7689 | fi | |
7690 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
7691 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7692 | else | |
7693 | _lt_dsymutil= | |
7694 | fi | |
7695 | ;; | |
7696 | esac | |
7697 | ||
7698 | for ac_header in dlfcn.h | |
7699 | do : | |
7700 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7701 | " | |
7702 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
7703 | cat >>confdefs.h <<_ACEOF | |
7704 | #define HAVE_DLFCN_H 1 | |
7705 | _ACEOF | |
7706 | ||
7707 | fi | |
7708 | ||
7709 | done | |
7710 | ||
7711 | ||
7712 | ac_header_dirent=no | |
7713 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
7714 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
7715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
7716 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
7717 | if eval \${$as_ac_Header+:} false; then : | |
7718 | $as_echo_n "(cached) " >&6 | |
7719 | else | |
7720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7721 | /* end confdefs.h. */ | |
7722 | #include <sys/types.h> | |
7723 | #include <$ac_hdr> | |
7724 | ||
7725 | int | |
7726 | main () | |
7727 | { | |
7728 | if ((DIR *) 0) | |
7729 | return 0; | |
7730 | ; | |
7731 | return 0; | |
7732 | } | |
7733 | _ACEOF | |
7734 | if ac_fn_c_try_compile "$LINENO"; then : | |
7735 | eval "$as_ac_Header=yes" | |
7736 | else | |
7737 | eval "$as_ac_Header=no" | |
7738 | fi | |
7739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7740 | fi | |
7741 | eval ac_res=\$$as_ac_Header | |
7742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7743 | $as_echo "$ac_res" >&6; } | |
7744 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
7745 | cat >>confdefs.h <<_ACEOF | |
7746 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
7747 | _ACEOF | |
7748 | ||
7749 | ac_header_dirent=$ac_hdr; break | |
7750 | fi | |
7751 | ||
7752 | done | |
7753 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
7754 | if test $ac_header_dirent = dirent.h; then | |
7755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
7756 | $as_echo_n "checking for library containing opendir... " >&6; } | |
7757 | if ${ac_cv_search_opendir+:} false; then : | |
7758 | $as_echo_n "(cached) " >&6 | |
7759 | else | |
7760 | ac_func_search_save_LIBS=$LIBS | |
7761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7762 | /* end confdefs.h. */ | |
7763 | ||
7764 | /* Override any GCC internal prototype to avoid an error. | |
7765 | Use char because int might match the return type of a GCC | |
7766 | builtin and then its argument prototype would still apply. */ | |
7767 | #ifdef __cplusplus | |
7768 | extern "C" | |
7769 | #endif | |
7770 | char opendir (); | |
7771 | int | |
7772 | main () | |
7773 | { | |
7774 | return opendir (); | |
7775 | ; | |
7776 | return 0; | |
7777 | } | |
7778 | _ACEOF | |
7779 | for ac_lib in '' dir; do | |
7780 | if test -z "$ac_lib"; then | |
7781 | ac_res="none required" | |
7782 | else | |
7783 | ac_res=-l$ac_lib | |
7784 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7785 | fi | |
7786 | if ac_fn_c_try_link "$LINENO"; then : | |
7787 | ac_cv_search_opendir=$ac_res | |
7788 | fi | |
7789 | rm -f core conftest.err conftest.$ac_objext \ | |
7790 | conftest$ac_exeext | |
7791 | if ${ac_cv_search_opendir+:} false; then : | |
7792 | break | |
7793 | fi | |
7794 | done | |
7795 | if ${ac_cv_search_opendir+:} false; then : | |
7796 | ||
7797 | else | |
7798 | ac_cv_search_opendir=no | |
7799 | fi | |
7800 | rm conftest.$ac_ext | |
7801 | LIBS=$ac_func_search_save_LIBS | |
7802 | fi | |
7803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
7804 | $as_echo "$ac_cv_search_opendir" >&6; } | |
7805 | ac_res=$ac_cv_search_opendir | |
7806 | if test "$ac_res" != no; then : | |
7807 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7808 | ||
7809 | fi | |
7810 | ||
7811 | else | |
7812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
7813 | $as_echo_n "checking for library containing opendir... " >&6; } | |
7814 | if ${ac_cv_search_opendir+:} false; then : | |
7815 | $as_echo_n "(cached) " >&6 | |
7816 | else | |
7817 | ac_func_search_save_LIBS=$LIBS | |
7818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7819 | /* end confdefs.h. */ | |
7820 | ||
7821 | /* Override any GCC internal prototype to avoid an error. | |
7822 | Use char because int might match the return type of a GCC | |
7823 | builtin and then its argument prototype would still apply. */ | |
7824 | #ifdef __cplusplus | |
7825 | extern "C" | |
7826 | #endif | |
7827 | char opendir (); | |
7828 | int | |
7829 | main () | |
7830 | { | |
7831 | return opendir (); | |
7832 | ; | |
7833 | return 0; | |
7834 | } | |
7835 | _ACEOF | |
7836 | for ac_lib in '' x; do | |
7837 | if test -z "$ac_lib"; then | |
7838 | ac_res="none required" | |
7839 | else | |
7840 | ac_res=-l$ac_lib | |
7841 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7842 | fi | |
7843 | if ac_fn_c_try_link "$LINENO"; then : | |
7844 | ac_cv_search_opendir=$ac_res | |
7845 | fi | |
7846 | rm -f core conftest.err conftest.$ac_objext \ | |
7847 | conftest$ac_exeext | |
7848 | if ${ac_cv_search_opendir+:} false; then : | |
7849 | break | |
7850 | fi | |
7851 | done | |
7852 | if ${ac_cv_search_opendir+:} false; then : | |
7853 | ||
7854 | else | |
7855 | ac_cv_search_opendir=no | |
7856 | fi | |
7857 | rm conftest.$ac_ext | |
7858 | LIBS=$ac_func_search_save_LIBS | |
7859 | fi | |
7860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
7861 | $as_echo "$ac_cv_search_opendir" >&6; } | |
7862 | ac_res=$ac_cv_search_opendir | |
7863 | if test "$ac_res" != no; then : | |
7864 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7865 | ||
7866 | fi | |
7867 | ||
7868 | fi | |
7869 | ||
7870 | ||
7871 | ||
7872 | ||
7873 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | |
7874 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | |
7875 | ||
7876 | cat >>confdefs.h <<_ACEOF | |
7877 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
7878 | _ACEOF | |
7879 | ||
7880 | ||
7881 | $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h | |
7882 | ||
7883 | fi | |
7884 | ||
7885 | ||
7886 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | |
7887 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | |
7888 | ||
7889 | cat >>confdefs.h <<_ACEOF | |
7890 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
7891 | _ACEOF | |
7892 | ||
7893 | ||
7894 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h | |
7895 | ||
7896 | else | |
7897 | case " $LIBOBJS " in | |
7898 | *" fileblocks.$ac_objext "* ) ;; | |
7899 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | |
7900 | ;; | |
7901 | esac | |
7902 | ||
7903 | fi | |
7904 | ||
7905 | ||
7906 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
7907 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : | |
7908 | ||
7909 | cat >>confdefs.h <<_ACEOF | |
7910 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
7911 | _ACEOF | |
7912 | ||
7913 | ||
7914 | $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h | |
7915 | ||
7916 | fi | |
7917 | ||
7918 | ||
7919 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | |
7920 | #include <$ac_cv_struct_tm> | |
7921 | ||
7922 | " | |
7923 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | |
7924 | ||
7925 | cat >>confdefs.h <<_ACEOF | |
7926 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
7927 | _ACEOF | |
7928 | ||
7929 | ||
7930 | fi | |
7931 | ||
7932 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
7933 | ||
7934 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | |
7935 | ||
7936 | else | |
7937 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | |
7938 | " | |
7939 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | |
7940 | ac_have_decl=1 | |
7941 | else | |
7942 | ac_have_decl=0 | |
7943 | fi | |
7944 | ||
7945 | cat >>confdefs.h <<_ACEOF | |
7946 | #define HAVE_DECL_TZNAME $ac_have_decl | |
7947 | _ACEOF | |
7948 | ||
7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | |
7950 | $as_echo_n "checking for tzname... " >&6; } | |
7951 | if ${ac_cv_var_tzname+:} false; then : | |
7952 | $as_echo_n "(cached) " >&6 | |
7953 | else | |
7954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7955 | /* end confdefs.h. */ | |
7956 | #include <time.h> | |
a48ff3ef MF |
7957 | #if !HAVE_DECL_TZNAME |
7958 | extern char *tzname[]; | |
7959 | #endif | |
b5689863 MF |
7960 | |
7961 | int | |
7962 | main () | |
7963 | { | |
7964 | return tzname[0][0]; | |
7965 | ; | |
7966 | return 0; | |
7967 | } | |
7968 | _ACEOF | |
7969 | if ac_fn_c_try_link "$LINENO"; then : | |
7970 | ac_cv_var_tzname=yes | |
7971 | else | |
7972 | ac_cv_var_tzname=no | |
7973 | fi | |
7974 | rm -f core conftest.err conftest.$ac_objext \ | |
7975 | conftest$ac_exeext conftest.$ac_ext | |
7976 | fi | |
7977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | |
7978 | $as_echo "$ac_cv_var_tzname" >&6; } | |
7979 | if test $ac_cv_var_tzname = yes; then | |
7980 | ||
7981 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | |
7982 | ||
7983 | fi | |
7984 | fi | |
7985 | ||
7986 | ||
7987 | ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H | |
7988 | #include <sys/types.h> | |
7989 | #endif | |
7990 | #ifdef HAVE_SYS_STAT_H | |
7991 | #include <sys/stat.h> | |
7992 | #endif | |
7993 | " | |
7994 | if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then : | |
7995 | ||
7996 | cat >>confdefs.h <<_ACEOF | |
7997 | #define HAVE_STRUCT_STAT_ST_DEV 1 | |
7998 | _ACEOF | |
7999 | ||
8000 | ||
8001 | fi | |
8002 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H | |
8003 | #include <sys/types.h> | |
8004 | #endif | |
8005 | #ifdef HAVE_SYS_STAT_H | |
8006 | #include <sys/stat.h> | |
8007 | #endif | |
8008 | " | |
8009 | if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then : | |
8010 | ||
8011 | cat >>confdefs.h <<_ACEOF | |
8012 | #define HAVE_STRUCT_STAT_ST_INO 1 | |
8013 | _ACEOF | |
8014 | ||
8015 | ||
8016 | fi | |
8017 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H | |
8018 | #include <sys/types.h> | |
8019 | #endif | |
8020 | #ifdef HAVE_SYS_STAT_H | |
8021 | #include <sys/stat.h> | |
8022 | #endif | |
8023 | " | |
8024 | if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then : | |
8025 | ||
8026 | cat >>confdefs.h <<_ACEOF | |
8027 | #define HAVE_STRUCT_STAT_ST_MODE 1 | |
8028 | _ACEOF | |
8029 | ||
8030 | ||
8031 | fi | |
8032 | ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H | |
8033 | #include <sys/types.h> | |
8034 | #endif | |
8035 | #ifdef HAVE_SYS_STAT_H | |
8036 | #include <sys/stat.h> | |
8037 | #endif | |
8038 | " | |
8039 | if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then : | |
8040 | ||
8041 | cat >>confdefs.h <<_ACEOF | |
8042 | #define HAVE_STRUCT_STAT_ST_NLINK 1 | |
8043 | _ACEOF | |
8044 | ||
8045 | ||
8046 | fi | |
8047 | ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H | |
8048 | #include <sys/types.h> | |
8049 | #endif | |
8050 | #ifdef HAVE_SYS_STAT_H | |
8051 | #include <sys/stat.h> | |
8052 | #endif | |
8053 | " | |
8054 | if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then : | |
8055 | ||
8056 | cat >>confdefs.h <<_ACEOF | |
8057 | #define HAVE_STRUCT_STAT_ST_UID 1 | |
8058 | _ACEOF | |
8059 | ||
8060 | ||
8061 | fi | |
8062 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H | |
8063 | #include <sys/types.h> | |
8064 | #endif | |
8065 | #ifdef HAVE_SYS_STAT_H | |
8066 | #include <sys/stat.h> | |
8067 | #endif | |
8068 | " | |
8069 | if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then : | |
8070 | ||
8071 | cat >>confdefs.h <<_ACEOF | |
8072 | #define HAVE_STRUCT_STAT_ST_GID 1 | |
8073 | _ACEOF | |
8074 | ||
8075 | ||
8076 | fi | |
8077 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H | |
8078 | #include <sys/types.h> | |
8079 | #endif | |
8080 | #ifdef HAVE_SYS_STAT_H | |
8081 | #include <sys/stat.h> | |
8082 | #endif | |
8083 | " | |
8084 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : | |
8085 | ||
8086 | cat >>confdefs.h <<_ACEOF | |
8087 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
8088 | _ACEOF | |
8089 | ||
8090 | ||
8091 | fi | |
8092 | ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H | |
8093 | #include <sys/types.h> | |
8094 | #endif | |
8095 | #ifdef HAVE_SYS_STAT_H | |
8096 | #include <sys/stat.h> | |
8097 | #endif | |
8098 | " | |
8099 | if test "x$ac_cv_member_struct_stat_st_size" = xyes; then : | |
8100 | ||
8101 | cat >>confdefs.h <<_ACEOF | |
8102 | #define HAVE_STRUCT_STAT_ST_SIZE 1 | |
8103 | _ACEOF | |
8104 | ||
8105 | ||
8106 | fi | |
8107 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H | |
8108 | #include <sys/types.h> | |
8109 | #endif | |
8110 | #ifdef HAVE_SYS_STAT_H | |
8111 | #include <sys/stat.h> | |
8112 | #endif | |
8113 | " | |
8114 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | |
8115 | ||
8116 | cat >>confdefs.h <<_ACEOF | |
8117 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
8118 | _ACEOF | |
8119 | ||
8120 | ||
8121 | fi | |
8122 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H | |
8123 | #include <sys/types.h> | |
8124 | #endif | |
8125 | #ifdef HAVE_SYS_STAT_H | |
8126 | #include <sys/stat.h> | |
8127 | #endif | |
8128 | " | |
8129 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | |
8130 | ||
8131 | cat >>confdefs.h <<_ACEOF | |
8132 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
8133 | _ACEOF | |
8134 | ||
8135 | ||
8136 | fi | |
8137 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H | |
8138 | #include <sys/types.h> | |
8139 | #endif | |
8140 | #ifdef HAVE_SYS_STAT_H | |
8141 | #include <sys/stat.h> | |
8142 | #endif | |
8143 | " | |
8144 | if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then : | |
8145 | ||
8146 | cat >>confdefs.h <<_ACEOF | |
8147 | #define HAVE_STRUCT_STAT_ST_ATIME 1 | |
8148 | _ACEOF | |
8149 | ||
8150 | ||
8151 | fi | |
8152 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H | |
8153 | #include <sys/types.h> | |
8154 | #endif | |
8155 | #ifdef HAVE_SYS_STAT_H | |
8156 | #include <sys/stat.h> | |
8157 | #endif | |
8158 | " | |
8159 | if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then : | |
8160 | ||
8161 | cat >>confdefs.h <<_ACEOF | |
8162 | #define HAVE_STRUCT_STAT_ST_MTIME 1 | |
8163 | _ACEOF | |
8164 | ||
8165 | ||
8166 | fi | |
8167 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H | |
8168 | #include <sys/types.h> | |
8169 | #endif | |
8170 | #ifdef HAVE_SYS_STAT_H | |
8171 | #include <sys/stat.h> | |
8172 | #endif | |
8173 | " | |
8174 | if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then : | |
8175 | ||
8176 | cat >>confdefs.h <<_ACEOF | |
8177 | #define HAVE_STRUCT_STAT_ST_CTIME 1 | |
8178 | _ACEOF | |
8179 | ||
8180 | ||
8181 | fi | |
8182 | ||
8183 | ||
8184 | ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default" | |
8185 | if test "x$ac_cv_type___int128" = xyes; then : | |
8186 | ||
8187 | cat >>confdefs.h <<_ACEOF | |
8188 | #define HAVE___INT128 1 | |
8189 | _ACEOF | |
8190 | ||
8191 | ||
8192 | fi | |
8193 | ||
8194 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | |
8195 | #include <sys/socket.h> | |
8196 | ||
8197 | " | |
8198 | if test "x$ac_cv_type_socklen_t" = xyes; then : | |
8199 | ||
8200 | cat >>confdefs.h <<_ACEOF | |
8201 | #define HAVE_SOCKLEN_T 1 | |
8202 | _ACEOF | |
8203 | ||
8204 | ||
8205 | fi | |
8206 | ||
8207 | ||
8208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 | |
8209 | $as_echo_n "checking type of array argument to getgroups... " >&6; } | |
8210 | if ${ac_cv_type_getgroups+:} false; then : | |
8211 | $as_echo_n "(cached) " >&6 | |
8212 | else | |
8213 | if test "$cross_compiling" = yes; then : | |
8214 | ac_cv_type_getgroups=cross | |
8215 | else | |
8216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8217 | /* end confdefs.h. */ | |
8218 | /* Thanks to Mike Rendell for this test. */ | |
8219 | $ac_includes_default | |
8220 | #define NGID 256 | |
8221 | #undef MAX | |
8222 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
8223 | ||
8224 | int | |
8225 | main () | |
8226 | { | |
8227 | gid_t gidset[NGID]; | |
8228 | int i, n; | |
8229 | union { gid_t gval; long int lval; } val; | |
8230 | ||
8231 | val.lval = -1; | |
8232 | for (i = 0; i < NGID; i++) | |
8233 | gidset[i] = val.gval; | |
8234 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
8235 | gidset); | |
8236 | /* Exit non-zero if getgroups seems to require an array of ints. This | |
8237 | happens when gid_t is short int but getgroups modifies an array | |
8238 | of ints. */ | |
8239 | return n > 0 && gidset[n] != val.gval; | |
8240 | } | |
8241 | _ACEOF | |
8242 | if ac_fn_c_try_run "$LINENO"; then : | |
8243 | ac_cv_type_getgroups=gid_t | |
8244 | else | |
8245 | ac_cv_type_getgroups=int | |
8246 | fi | |
8247 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8248 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8249 | fi | |
8250 | ||
8251 | if test $ac_cv_type_getgroups = cross; then | |
8252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8253 | /* end confdefs.h. */ | |
8254 | #include <unistd.h> | |
8255 | ||
8256 | _ACEOF | |
8257 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8258 | $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : | |
8259 | ac_cv_type_getgroups=gid_t | |
8260 | else | |
8261 | ac_cv_type_getgroups=int | |
8262 | fi | |
8263 | rm -f conftest* | |
8264 | ||
8265 | fi | |
8266 | fi | |
8267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 | |
8268 | $as_echo "$ac_cv_type_getgroups" >&6; } | |
8269 | ||
8270 | cat >>confdefs.h <<_ACEOF | |
8271 | #define GETGROUPS_T $ac_cv_type_getgroups | |
8272 | _ACEOF | |
8273 | ||
8274 | ||
8275 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
8276 | if test "x$ac_cv_type_mode_t" = xyes; then : | |
8277 | ||
8278 | else | |
8279 | ||
8280 | cat >>confdefs.h <<_ACEOF | |
8281 | #define mode_t int | |
8282 | _ACEOF | |
8283 | ||
8284 | fi | |
8285 | ||
8286 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | |
8287 | if test "x$ac_cv_type_off_t" = xyes; then : | |
8288 | ||
8289 | else | |
8290 | ||
8291 | cat >>confdefs.h <<_ACEOF | |
8292 | #define off_t long int | |
8293 | _ACEOF | |
8294 | ||
8295 | fi | |
8296 | ||
8297 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | |
8298 | if test "x$ac_cv_type_pid_t" = xyes; then : | |
8299 | ||
8300 | else | |
8301 | ||
8302 | cat >>confdefs.h <<_ACEOF | |
8303 | #define pid_t int | |
8304 | _ACEOF | |
8305 | ||
8306 | fi | |
8307 | ||
8308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
8309 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
8310 | if ${ac_cv_type_signal+:} false; then : | |
8311 | $as_echo_n "(cached) " >&6 | |
8312 | else | |
8313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8314 | /* end confdefs.h. */ | |
8315 | #include <sys/types.h> | |
8316 | #include <signal.h> | |
8317 | ||
8318 | int | |
8319 | main () | |
8320 | { | |
8321 | return *(signal (0, 0)) (0) == 1; | |
8322 | ; | |
8323 | return 0; | |
8324 | } | |
8325 | _ACEOF | |
8326 | if ac_fn_c_try_compile "$LINENO"; then : | |
8327 | ac_cv_type_signal=int | |
8328 | else | |
8329 | ac_cv_type_signal=void | |
8330 | fi | |
8331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8332 | fi | |
8333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 | |
8334 | $as_echo "$ac_cv_type_signal" >&6; } | |
8335 | ||
8336 | cat >>confdefs.h <<_ACEOF | |
8337 | #define RETSIGTYPE $ac_cv_type_signal | |
8338 | _ACEOF | |
8339 | ||
8340 | ||
8341 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
8342 | if test "x$ac_cv_type_size_t" = xyes; then : | |
8343 | ||
8344 | else | |
8345 | ||
8346 | cat >>confdefs.h <<_ACEOF | |
8347 | #define size_t unsigned int | |
8348 | _ACEOF | |
8349 | ||
8350 | fi | |
8351 | ||
8352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
8353 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
8354 | if ${ac_cv_type_uid_t+:} false; then : | |
8355 | $as_echo_n "(cached) " >&6 | |
8356 | else | |
8357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8358 | /* end confdefs.h. */ | |
8359 | #include <sys/types.h> | |
8360 | ||
8361 | _ACEOF | |
8362 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8363 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
8364 | ac_cv_type_uid_t=yes | |
8365 | else | |
8366 | ac_cv_type_uid_t=no | |
8367 | fi | |
8368 | rm -f conftest* | |
8369 | ||
8370 | fi | |
8371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | |
8372 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
8373 | if test $ac_cv_type_uid_t = no; then | |
8374 | ||
8375 | $as_echo "#define uid_t int" >>confdefs.h | |
8376 | ||
8377 | ||
8378 | $as_echo "#define gid_t int" >>confdefs.h | |
8379 | ||
8380 | fi | |
8381 | ||
8382 | ||
ce3ec98a MF |
8383 | ALL_LINGUAS= |
8384 | # If we haven't got the data from the intl directory, | |
8385 | # assume NLS is disabled. | |
8386 | USE_NLS=no | |
8387 | LIBINTL= | |
8388 | LIBINTL_DEP= | |
8389 | INCINTL= | |
8390 | XGETTEXT= | |
8391 | GMSGFMT= | |
8392 | POSUB= | |
8393 | ||
8394 | if test -f ../intl/config.intl; then | |
8395 | . ../intl/config.intl | |
8396 | fi | |
8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
8398 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
8399 | if test x"$USE_NLS" != xyes; then | |
8400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8401 | $as_echo "no" >&6; } | |
8402 | else | |
8403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8404 | $as_echo "yes" >&6; } | |
8405 | ||
8406 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h | |
8407 | ||
8408 | ||
8409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 | |
8410 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
8411 | # Look for .po and .gmo files in the source directory. | |
8412 | CATALOGS= | |
8413 | XLINGUAS= | |
8414 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
8415 | # If there aren't any .gmo files the shell will give us the | |
8416 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
8417 | # weeded out. | |
8418 | case "$cat" in *\**) | |
8419 | continue;; | |
8420 | esac | |
8421 | # The quadruple backslash is collapsed to a double backslash | |
8422 | # by the backticks, then collapsed again by the double quotes, | |
8423 | # leaving us with one backslash in the sed expression (right | |
8424 | # before the dot that mustn't act as a wildcard). | |
8425 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
8426 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
8427 | # The user is allowed to set LINGUAS to a list of languages to | |
8428 | # install catalogs for. If it's empty that means "all of them." | |
8429 | if test "x$LINGUAS" = x; then | |
8430 | CATALOGS="$CATALOGS $cat" | |
8431 | XLINGUAS="$XLINGUAS $lang" | |
8432 | else | |
8433 | case "$LINGUAS" in *$lang*) | |
8434 | CATALOGS="$CATALOGS $cat" | |
8435 | XLINGUAS="$XLINGUAS $lang" | |
8436 | ;; | |
8437 | esac | |
8438 | fi | |
8439 | done | |
8440 | LINGUAS="$XLINGUAS" | |
8441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 | |
8442 | $as_echo "$LINGUAS" >&6; } | |
8443 | ||
8444 | ||
8445 | DATADIRNAME=share | |
8446 | ||
8447 | INSTOBJEXT=.mo | |
8448 | ||
8449 | GENCAT=gencat | |
8450 | ||
8451 | CATOBJEXT=.gmo | |
8452 | ||
8453 | fi | |
8454 | ||
b5689863 MF |
8455 | |
8456 | # Use the system's zlib library. | |
8457 | zlibdir="-L\$(top_builddir)/../zlib" | |
8458 | zlibinc="-I\$(top_srcdir)/../zlib" | |
8459 | ||
8460 | # Check whether --with-system-zlib was given. | |
8461 | if test "${with_system_zlib+set}" = set; then : | |
8462 | withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then | |
8463 | zlibdir= | |
8464 | zlibinc= | |
8465 | fi | |
8466 | ||
8467 | fi | |
8468 | ||
8469 | ||
8470 | ||
8471 | ||
8472 | ||
8473 | ||
8474 | maybe_plugins=no | |
8475 | for ac_header in dlfcn.h | |
8476 | do : | |
8477 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8478 | " | |
8479 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8480 | cat >>confdefs.h <<_ACEOF | |
8481 | #define HAVE_DLFCN_H 1 | |
8482 | _ACEOF | |
8483 | maybe_plugins=yes | |
8484 | fi | |
8485 | ||
8486 | done | |
8487 | ||
8488 | for ac_header in windows.h | |
8489 | do : | |
8490 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default | |
8491 | " | |
8492 | if test "x$ac_cv_header_windows_h" = xyes; then : | |
8493 | cat >>confdefs.h <<_ACEOF | |
8494 | #define HAVE_WINDOWS_H 1 | |
8495 | _ACEOF | |
8496 | maybe_plugins=yes | |
8497 | fi | |
8498 | ||
8499 | done | |
8500 | ||
8501 | ||
8502 | # Check whether --enable-plugins was given. | |
8503 | if test "${enable_plugins+set}" = set; then : | |
8504 | enableval=$enable_plugins; case "${enableval}" in | |
8505 | no) plugins=no ;; | |
8506 | *) plugins=yes | |
8507 | if test "$maybe_plugins" != "yes" ; then | |
8508 | as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 | |
8509 | fi ;; | |
8510 | esac | |
8511 | else | |
8512 | plugins=$maybe_plugins | |
8513 | ||
8514 | fi | |
8515 | ||
8516 | if test "$plugins" = "yes"; then | |
8517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 | |
8518 | $as_echo_n "checking for library containing dlsym... " >&6; } | |
8519 | if ${ac_cv_search_dlsym+:} false; then : | |
8520 | $as_echo_n "(cached) " >&6 | |
8521 | else | |
8522 | ac_func_search_save_LIBS=$LIBS | |
8523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8524 | /* end confdefs.h. */ | |
8525 | ||
8526 | /* Override any GCC internal prototype to avoid an error. | |
8527 | Use char because int might match the return type of a GCC | |
8528 | builtin and then its argument prototype would still apply. */ | |
8529 | #ifdef __cplusplus | |
8530 | extern "C" | |
8531 | #endif | |
8532 | char dlsym (); | |
8533 | int | |
8534 | main () | |
8535 | { | |
8536 | return dlsym (); | |
8537 | ; | |
8538 | return 0; | |
8539 | } | |
8540 | _ACEOF | |
8541 | for ac_lib in '' dl; do | |
8542 | if test -z "$ac_lib"; then | |
8543 | ac_res="none required" | |
8544 | else | |
8545 | ac_res=-l$ac_lib | |
8546 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8547 | fi | |
8548 | if ac_fn_c_try_link "$LINENO"; then : | |
8549 | ac_cv_search_dlsym=$ac_res | |
8550 | fi | |
8551 | rm -f core conftest.err conftest.$ac_objext \ | |
8552 | conftest$ac_exeext | |
8553 | if ${ac_cv_search_dlsym+:} false; then : | |
8554 | break | |
8555 | fi | |
8556 | done | |
8557 | if ${ac_cv_search_dlsym+:} false; then : | |
8558 | ||
8559 | else | |
8560 | ac_cv_search_dlsym=no | |
8561 | fi | |
8562 | rm conftest.$ac_ext | |
8563 | LIBS=$ac_func_search_save_LIBS | |
8564 | fi | |
8565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 | |
8566 | $as_echo "$ac_cv_search_dlsym" >&6; } | |
8567 | ac_res=$ac_cv_search_dlsym | |
8568 | if test "$ac_res" != no; then : | |
8569 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
8570 | ||
8571 | fi | |
8572 | ||
8573 | fi | |
8574 | ||
8575 | if test "$plugins" = yes; then | |
8576 | PLUGINS_TRUE= | |
8577 | PLUGINS_FALSE='#' | |
8578 | else | |
8579 | PLUGINS_TRUE='#' | |
8580 | PLUGINS_FALSE= | |
8581 | fi | |
8582 | ||
8583 | ||
8584 | ||
8585 | ||
8586 | ||
8587 | # Set options | |
8588 | enable_dlopen=yes | |
8589 | ||
8590 | ||
8591 | ||
8592 | ||
8593 | enable_win32_dll=no | |
8594 | ||
8595 | ||
8596 | # Check whether --enable-shared was given. | |
8597 | if test "${enable_shared+set}" = set; then : | |
8598 | enableval=$enable_shared; p=${PACKAGE-default} | |
8599 | case $enableval in | |
8600 | yes) enable_shared=yes ;; | |
8601 | no) enable_shared=no ;; | |
8602 | *) | |
8603 | enable_shared=no | |
8604 | # Look at the argument we got. We use all the common list separators. | |
8605 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8606 | for pkg in $enableval; do | |
8607 | IFS="$lt_save_ifs" | |
8608 | if test "X$pkg" = "X$p"; then | |
8609 | enable_shared=yes | |
8610 | fi | |
8611 | done | |
8612 | IFS="$lt_save_ifs" | |
8613 | ;; | |
8614 | esac | |
8615 | else | |
8616 | enable_shared=yes | |
8617 | fi | |
8618 | ||
8619 | ||
8620 | ||
8621 | ||
8622 | ||
8623 | ||
8624 | ||
8625 | ||
8626 | ||
8627 | # Check whether --enable-static was given. | |
8628 | if test "${enable_static+set}" = set; then : | |
8629 | enableval=$enable_static; p=${PACKAGE-default} | |
8630 | case $enableval in | |
8631 | yes) enable_static=yes ;; | |
8632 | no) enable_static=no ;; | |
8633 | *) | |
8634 | enable_static=no | |
8635 | # Look at the argument we got. We use all the common list separators. | |
8636 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8637 | for pkg in $enableval; do | |
8638 | IFS="$lt_save_ifs" | |
8639 | if test "X$pkg" = "X$p"; then | |
8640 | enable_static=yes | |
8641 | fi | |
8642 | done | |
8643 | IFS="$lt_save_ifs" | |
8644 | ;; | |
8645 | esac | |
8646 | else | |
8647 | enable_static=yes | |
8648 | fi | |
8649 | ||
8650 | ||
8651 | ||
8652 | ||
8653 | ||
8654 | ||
8655 | ||
8656 | ||
8657 | ||
8658 | ||
8659 | # Check whether --with-pic was given. | |
8660 | if test "${with_pic+set}" = set; then : | |
8661 | withval=$with_pic; pic_mode="$withval" | |
8662 | else | |
8663 | pic_mode=default | |
8664 | fi | |
8665 | ||
8666 | ||
8667 | test -z "$pic_mode" && pic_mode=default | |
8668 | ||
8669 | ||
8670 | ||
8671 | ||
8672 | ||
8673 | ||
8674 | ||
8675 | # Check whether --enable-fast-install was given. | |
8676 | if test "${enable_fast_install+set}" = set; then : | |
8677 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8678 | case $enableval in | |
8679 | yes) enable_fast_install=yes ;; | |
8680 | no) enable_fast_install=no ;; | |
8681 | *) | |
8682 | enable_fast_install=no | |
8683 | # Look at the argument we got. We use all the common list separators. | |
8684 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8685 | for pkg in $enableval; do | |
8686 | IFS="$lt_save_ifs" | |
8687 | if test "X$pkg" = "X$p"; then | |
8688 | enable_fast_install=yes | |
8689 | fi | |
8690 | done | |
8691 | IFS="$lt_save_ifs" | |
8692 | ;; | |
8693 | esac | |
8694 | else | |
8695 | enable_fast_install=yes | |
8696 | fi | |
8697 | ||
8698 | ||
8699 | ||
8700 | ||
8701 | ||
8702 | ||
8703 | ||
8704 | ||
8705 | ||
8706 | ||
8707 | ||
8708 | # This can be used to rebuild libtool when needed | |
8709 | LIBTOOL_DEPS="$ltmain" | |
8710 | ||
8711 | # Always use our own libtool. | |
8712 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8713 | ||
8714 | ||
8715 | ||
8716 | ||
8717 | ||
8718 | ||
8719 | ||
8720 | ||
8721 | ||
8722 | ||
8723 | ||
8724 | ||
8725 | ||
8726 | ||
8727 | ||
8728 | ||
8729 | ||
8730 | ||
8731 | ||
8732 | ||
8733 | ||
8734 | ||
8735 | ||
8736 | ||
8737 | ||
8738 | ||
8739 | test -z "$LN_S" && LN_S="ln -s" | |
8740 | ||
8741 | ||
8742 | ||
8743 | ||
8744 | ||
8745 | ||
8746 | ||
8747 | ||
8748 | ||
8749 | ||
8750 | ||
8751 | ||
8752 | ||
8753 | ||
8754 | if test -n "${ZSH_VERSION+set}" ; then | |
8755 | setopt NO_GLOB_SUBST | |
8756 | fi | |
8757 | ||
8758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8759 | $as_echo_n "checking for objdir... " >&6; } | |
8760 | if ${lt_cv_objdir+:} false; then : | |
8761 | $as_echo_n "(cached) " >&6 | |
8762 | else | |
8763 | rm -f .libs 2>/dev/null | |
8764 | mkdir .libs 2>/dev/null | |
8765 | if test -d .libs; then | |
8766 | lt_cv_objdir=.libs | |
8767 | else | |
8768 | # MS-DOS does not allow filenames that begin with a dot. | |
8769 | lt_cv_objdir=_libs | |
8770 | fi | |
8771 | rmdir .libs 2>/dev/null | |
8772 | fi | |
8773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8774 | $as_echo "$lt_cv_objdir" >&6; } | |
8775 | objdir=$lt_cv_objdir | |
8776 | ||
8777 | ||
8778 | ||
8779 | ||
8780 | ||
8781 | cat >>confdefs.h <<_ACEOF | |
8782 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8783 | _ACEOF | |
8784 | ||
8785 | ||
8786 | ||
8787 | ||
8788 | case $host_os in | |
8789 | aix3*) | |
8790 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8791 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8792 | # vanish in a puff of smoke. | |
8793 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8794 | COLLECT_NAMES= | |
8795 | export COLLECT_NAMES | |
8796 | fi | |
8797 | ;; | |
8798 | esac | |
8799 | ||
8800 | # Global variables: | |
8801 | ofile=libtool | |
8802 | can_build_shared=yes | |
8803 | ||
8804 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
8805 | # which needs '.lib'). | |
8806 | libext=a | |
8807 | ||
8808 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8809 | ||
8810 | old_CC="$CC" | |
8811 | old_CFLAGS="$CFLAGS" | |
8812 | ||
8813 | # Set sane defaults for various variables | |
8814 | test -z "$CC" && CC=cc | |
8815 | test -z "$LTCC" && LTCC=$CC | |
8816 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8817 | test -z "$LD" && LD=ld | |
8818 | test -z "$ac_objext" && ac_objext=o | |
8819 | ||
8820 | for cc_temp in $compiler""; do | |
8821 | case $cc_temp in | |
8822 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8823 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8824 | \-*) ;; | |
8825 | *) break;; | |
8826 | esac | |
8827 | done | |
8828 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
8829 | ||
8830 | ||
8831 | # Only perform the check for file, if the check method requires it | |
8832 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8833 | case $deplibs_check_method in | |
8834 | file_magic*) | |
8835 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8837 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8838 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8839 | $as_echo_n "(cached) " >&6 | |
8840 | else | |
8841 | case $MAGIC_CMD in | |
8842 | [\\/*] | ?:[\\/]*) | |
8843 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8844 | ;; | |
8845 | *) | |
8846 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8847 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8848 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8849 | for ac_dir in $ac_dummy; do | |
8850 | IFS="$lt_save_ifs" | |
8851 | test -z "$ac_dir" && ac_dir=. | |
8852 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8853 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8854 | if test -n "$file_magic_test_file"; then | |
8855 | case $deplibs_check_method in | |
8856 | "file_magic "*) | |
8857 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8858 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8859 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8860 | $EGREP "$file_magic_regex" > /dev/null; then | |
8861 | : | |
8862 | else | |
8863 | cat <<_LT_EOF 1>&2 | |
8864 | ||
8865 | *** Warning: the command libtool uses to detect shared libraries, | |
8866 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8867 | *** The result is that libtool may fail to recognize shared libraries | |
8868 | *** as such. This will affect the creation of libtool libraries that | |
8869 | *** depend on shared libraries, but programs linked with such libtool | |
8870 | *** libraries will work regardless of this problem. Nevertheless, you | |
8871 | *** may want to report the problem to your system manager and/or to | |
8872 | *** bug-libtool@gnu.org | |
8873 | ||
8874 | _LT_EOF | |
8875 | fi ;; | |
8876 | esac | |
8877 | fi | |
8878 | break | |
8879 | fi | |
8880 | done | |
8881 | IFS="$lt_save_ifs" | |
8882 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8883 | ;; | |
8884 | esac | |
8885 | fi | |
8886 | ||
8887 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8888 | if test -n "$MAGIC_CMD"; then | |
8889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8890 | $as_echo "$MAGIC_CMD" >&6; } | |
8891 | else | |
8892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8893 | $as_echo "no" >&6; } | |
8894 | fi | |
8895 | ||
8896 | ||
8897 | ||
8898 | ||
8899 | ||
8900 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8901 | if test -n "$ac_tool_prefix"; then | |
8902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8903 | $as_echo_n "checking for file... " >&6; } | |
8904 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8905 | $as_echo_n "(cached) " >&6 | |
8906 | else | |
8907 | case $MAGIC_CMD in | |
8908 | [\\/*] | ?:[\\/]*) | |
8909 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8910 | ;; | |
8911 | *) | |
8912 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8913 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8914 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8915 | for ac_dir in $ac_dummy; do | |
8916 | IFS="$lt_save_ifs" | |
8917 | test -z "$ac_dir" && ac_dir=. | |
8918 | if test -f $ac_dir/file; then | |
8919 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8920 | if test -n "$file_magic_test_file"; then | |
8921 | case $deplibs_check_method in | |
8922 | "file_magic "*) | |
8923 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8924 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8925 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8926 | $EGREP "$file_magic_regex" > /dev/null; then | |
8927 | : | |
8928 | else | |
8929 | cat <<_LT_EOF 1>&2 | |
8930 | ||
8931 | *** Warning: the command libtool uses to detect shared libraries, | |
8932 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8933 | *** The result is that libtool may fail to recognize shared libraries | |
8934 | *** as such. This will affect the creation of libtool libraries that | |
8935 | *** depend on shared libraries, but programs linked with such libtool | |
8936 | *** libraries will work regardless of this problem. Nevertheless, you | |
8937 | *** may want to report the problem to your system manager and/or to | |
8938 | *** bug-libtool@gnu.org | |
8939 | ||
8940 | _LT_EOF | |
8941 | fi ;; | |
8942 | esac | |
8943 | fi | |
8944 | break | |
8945 | fi | |
8946 | done | |
8947 | IFS="$lt_save_ifs" | |
8948 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8949 | ;; | |
8950 | esac | |
8951 | fi | |
8952 | ||
8953 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8954 | if test -n "$MAGIC_CMD"; then | |
8955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8956 | $as_echo "$MAGIC_CMD" >&6; } | |
8957 | else | |
8958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8959 | $as_echo "no" >&6; } | |
8960 | fi | |
8961 | ||
8962 | ||
8963 | else | |
8964 | MAGIC_CMD=: | |
8965 | fi | |
8966 | fi | |
8967 | ||
8968 | fi | |
8969 | ;; | |
8970 | esac | |
8971 | ||
8972 | # Use C for the default configuration in the libtool script | |
8973 | ||
8974 | lt_save_CC="$CC" | |
8975 | ac_ext=c | |
8976 | ac_cpp='$CPP $CPPFLAGS' | |
8977 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8978 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8979 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8980 | ||
8981 | ||
8982 | # Source file extension for C test sources. | |
8983 | ac_ext=c | |
8984 | ||
8985 | # Object file extension for compiled C test sources. | |
8986 | objext=o | |
8987 | objext=$objext | |
8988 | ||
8989 | # Code to be used in simple compile tests | |
8990 | lt_simple_compile_test_code="int some_variable = 0;" | |
8991 | ||
8992 | # Code to be used in simple link tests | |
8993 | lt_simple_link_test_code='int main(){return(0);}' | |
8994 | ||
8995 | ||
8996 | ||
8997 | ||
8998 | ||
8999 | ||
9000 | ||
9001 | # If no C compiler was specified, use CC. | |
9002 | LTCC=${LTCC-"$CC"} | |
9003 | ||
9004 | # If no C compiler flags were specified, use CFLAGS. | |
9005 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9006 | ||
9007 | # Allow CC to be a program name with arguments. | |
9008 | compiler=$CC | |
9009 | ||
9010 | # Save the default compiler, since it gets overwritten when the other | |
9011 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9012 | compiler_DEFAULT=$CC | |
9013 | ||
9014 | # save warnings/boilerplate of simple test code | |
9015 | ac_outfile=conftest.$ac_objext | |
9016 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9017 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9018 | _lt_compiler_boilerplate=`cat conftest.err` | |
9019 | $RM conftest* | |
9020 | ||
9021 | ac_outfile=conftest.$ac_objext | |
9022 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9023 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9024 | _lt_linker_boilerplate=`cat conftest.err` | |
9025 | $RM -r conftest* | |
9026 | ||
9027 | ||
9028 | ## CAVEAT EMPTOR: | |
9029 | ## There is no encapsulation within the following macros, do not change | |
9030 | ## the running order or otherwise move them around unless you know exactly | |
9031 | ## what you are doing... | |
9032 | if test -n "$compiler"; then | |
9033 | ||
9034 | lt_prog_compiler_no_builtin_flag= | |
9035 | ||
9036 | if test "$GCC" = yes; then | |
9037 | case $cc_basename in | |
9038 | nvcc*) | |
9039 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9040 | *) | |
9041 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9042 | esac | |
9043 | ||
9044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
9045 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9046 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
9047 | $as_echo_n "(cached) " >&6 | |
9048 | else | |
9049 | lt_cv_prog_compiler_rtti_exceptions=no | |
9050 | ac_outfile=conftest.$ac_objext | |
9051 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9052 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9053 | # Insert the option either (1) after the last *FLAGS variable, or | |
9054 | # (2) before a word containing "conftest.", or (3) at the end. | |
9055 | # Note that $ac_compile itself does not contain backslashes and begins | |
9056 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9057 | # The option is referenced via a variable to avoid confusing sed. | |
9058 | lt_compile=`echo "$ac_compile" | $SED \ | |
9059 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9060 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9061 | -e 's:$: $lt_compiler_flag:'` | |
9062 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9063 | (eval "$lt_compile" 2>conftest.err) | |
9064 | ac_status=$? | |
9065 | cat conftest.err >&5 | |
9066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9067 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9068 | # The compiler can only warn and ignore the option if not recognized | |
9069 | # So say no if there are warnings other than the usual output. | |
9070 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9071 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9072 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9073 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9074 | fi | |
9075 | fi | |
9076 | $RM conftest* | |
9077 | ||
9078 | fi | |
9079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9080 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9081 | ||
9082 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9083 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9084 | else | |
9085 | : | |
9086 | fi | |
9087 | ||
9088 | fi | |
9089 | ||
9090 | ||
9091 | ||
9092 | ||
9093 | ||
9094 | ||
9095 | lt_prog_compiler_wl= | |
9096 | lt_prog_compiler_pic= | |
9097 | lt_prog_compiler_static= | |
9098 | ||
9099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
9100 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9101 | ||
9102 | if test "$GCC" = yes; then | |
9103 | lt_prog_compiler_wl='-Wl,' | |
9104 | lt_prog_compiler_static='-static' | |
9105 | ||
9106 | case $host_os in | |
9107 | aix*) | |
9108 | # All AIX code is PIC. | |
9109 | if test "$host_cpu" = ia64; then | |
9110 | # AIX 5 now supports IA64 processor | |
9111 | lt_prog_compiler_static='-Bstatic' | |
9112 | fi | |
9113 | lt_prog_compiler_pic='-fPIC' | |
9114 | ;; | |
9115 | ||
9116 | amigaos*) | |
9117 | case $host_cpu in | |
9118 | powerpc) | |
9119 | # see comment about AmigaOS4 .so support | |
9120 | lt_prog_compiler_pic='-fPIC' | |
9121 | ;; | |
9122 | m68k) | |
9123 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9124 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9125 | # like `-m68040'. | |
9126 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9127 | ;; | |
9128 | esac | |
9129 | ;; | |
9130 | ||
9131 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9132 | # PIC is the default for these OSes. | |
9133 | ;; | |
9134 | ||
9135 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9136 | # This hack is so that the source file can tell whether it is being | |
9137 | # built for inclusion in a dll (and should export symbols for example). | |
9138 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9139 | # (--disable-auto-import) libraries | |
9140 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9141 | ;; | |
9142 | ||
9143 | darwin* | rhapsody*) | |
9144 | # PIC is the default on this platform | |
9145 | # Common symbols not allowed in MH_DYLIB files | |
9146 | lt_prog_compiler_pic='-fno-common' | |
9147 | ;; | |
9148 | ||
9149 | haiku*) | |
9150 | # PIC is the default for Haiku. | |
9151 | # The "-static" flag exists, but is broken. | |
9152 | lt_prog_compiler_static= | |
9153 | ;; | |
9154 | ||
9155 | hpux*) | |
9156 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9157 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9158 | # sets the default TLS model and affects inlining. | |
9159 | case $host_cpu in | |
9160 | hppa*64*) | |
9161 | # +Z the default | |
9162 | ;; | |
9163 | *) | |
9164 | lt_prog_compiler_pic='-fPIC' | |
9165 | ;; | |
9166 | esac | |
9167 | ;; | |
9168 | ||
9169 | interix[3-9]*) | |
9170 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9171 | # Instead, we relocate shared libraries at runtime. | |
9172 | ;; | |
9173 | ||
9174 | msdosdjgpp*) | |
9175 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9176 | # on systems that don't support them. | |
9177 | lt_prog_compiler_can_build_shared=no | |
9178 | enable_shared=no | |
9179 | ;; | |
9180 | ||
9181 | *nto* | *qnx*) | |
9182 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9183 | # it will coredump. | |
9184 | lt_prog_compiler_pic='-fPIC -shared' | |
9185 | ;; | |
9186 | ||
9187 | sysv4*MP*) | |
9188 | if test -d /usr/nec; then | |
9189 | lt_prog_compiler_pic=-Kconform_pic | |
9190 | fi | |
9191 | ;; | |
9192 | ||
9193 | *) | |
9194 | lt_prog_compiler_pic='-fPIC' | |
9195 | ;; | |
9196 | esac | |
9197 | ||
9198 | case $cc_basename in | |
9199 | nvcc*) # Cuda Compiler Driver 2.2 | |
9200 | lt_prog_compiler_wl='-Xlinker ' | |
9201 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9202 | ;; | |
9203 | esac | |
9204 | else | |
9205 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9206 | case $host_os in | |
9207 | aix*) | |
9208 | lt_prog_compiler_wl='-Wl,' | |
9209 | if test "$host_cpu" = ia64; then | |
9210 | # AIX 5 now supports IA64 processor | |
9211 | lt_prog_compiler_static='-Bstatic' | |
9212 | else | |
9213 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9214 | fi | |
9215 | ;; | |
9216 | ||
9217 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9218 | # This hack is so that the source file can tell whether it is being | |
9219 | # built for inclusion in a dll (and should export symbols for example). | |
9220 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9221 | ;; | |
9222 | ||
9223 | hpux9* | hpux10* | hpux11*) | |
9224 | lt_prog_compiler_wl='-Wl,' | |
9225 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9226 | # not for PA HP-UX. | |
9227 | case $host_cpu in | |
9228 | hppa*64*|ia64*) | |
9229 | # +Z the default | |
9230 | ;; | |
9231 | *) | |
9232 | lt_prog_compiler_pic='+Z' | |
9233 | ;; | |
9234 | esac | |
9235 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9236 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9237 | ;; | |
9238 | ||
9239 | irix5* | irix6* | nonstopux*) | |
9240 | lt_prog_compiler_wl='-Wl,' | |
9241 | # PIC (with -KPIC) is the default. | |
9242 | lt_prog_compiler_static='-non_shared' | |
9243 | ;; | |
9244 | ||
9245 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
9246 | case $cc_basename in | |
9247 | # old Intel for x86_64 which still supported -KPIC. | |
9248 | ecc*) | |
9249 | lt_prog_compiler_wl='-Wl,' | |
9250 | lt_prog_compiler_pic='-KPIC' | |
9251 | lt_prog_compiler_static='-static' | |
9252 | ;; | |
9253 | # icc used to be incompatible with GCC. | |
9254 | # ICC 10 doesn't accept -KPIC any more. | |
9255 | icc* | ifort*) | |
9256 | lt_prog_compiler_wl='-Wl,' | |
9257 | lt_prog_compiler_pic='-fPIC' | |
9258 | lt_prog_compiler_static='-static' | |
9259 | ;; | |
9260 | # Lahey Fortran 8.1. | |
9261 | lf95*) | |
9262 | lt_prog_compiler_wl='-Wl,' | |
9263 | lt_prog_compiler_pic='--shared' | |
9264 | lt_prog_compiler_static='--static' | |
9265 | ;; | |
9266 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9267 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9268 | # which looks to be a dead project) | |
9269 | lt_prog_compiler_wl='-Wl,' | |
9270 | lt_prog_compiler_pic='-fpic' | |
9271 | lt_prog_compiler_static='-Bstatic' | |
9272 | ;; | |
9273 | ccc*) | |
9274 | lt_prog_compiler_wl='-Wl,' | |
9275 | # All Alpha code is PIC. | |
9276 | lt_prog_compiler_static='-non_shared' | |
9277 | ;; | |
9278 | xl* | bgxl* | bgf* | mpixl*) | |
9279 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9280 | lt_prog_compiler_wl='-Wl,' | |
9281 | lt_prog_compiler_pic='-qpic' | |
9282 | lt_prog_compiler_static='-qstaticlink' | |
9283 | ;; | |
9284 | *) | |
9285 | case `$CC -V 2>&1 | sed 5q` in | |
9286 | *Sun\ F* | *Sun*Fortran*) | |
9287 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9288 | lt_prog_compiler_pic='-KPIC' | |
9289 | lt_prog_compiler_static='-Bstatic' | |
9290 | lt_prog_compiler_wl='' | |
9291 | ;; | |
9292 | *Sun\ C*) | |
9293 | # Sun C 5.9 | |
9294 | lt_prog_compiler_pic='-KPIC' | |
9295 | lt_prog_compiler_static='-Bstatic' | |
9296 | lt_prog_compiler_wl='-Wl,' | |
9297 | ;; | |
9298 | esac | |
9299 | ;; | |
9300 | esac | |
9301 | ;; | |
9302 | ||
9303 | newsos6) | |
9304 | lt_prog_compiler_pic='-KPIC' | |
9305 | lt_prog_compiler_static='-Bstatic' | |
9306 | ;; | |
9307 | ||
9308 | *nto* | *qnx*) | |
9309 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9310 | # it will coredump. | |
9311 | lt_prog_compiler_pic='-fPIC -shared' | |
9312 | ;; | |
9313 | ||
9314 | osf3* | osf4* | osf5*) | |
9315 | lt_prog_compiler_wl='-Wl,' | |
9316 | # All OSF/1 code is PIC. | |
9317 | lt_prog_compiler_static='-non_shared' | |
9318 | ;; | |
9319 | ||
9320 | rdos*) | |
9321 | lt_prog_compiler_static='-non_shared' | |
9322 | ;; | |
9323 | ||
9324 | solaris*) | |
9325 | lt_prog_compiler_pic='-KPIC' | |
9326 | lt_prog_compiler_static='-Bstatic' | |
9327 | case $cc_basename in | |
9328 | f77* | f90* | f95*) | |
9329 | lt_prog_compiler_wl='-Qoption ld ';; | |
9330 | *) | |
9331 | lt_prog_compiler_wl='-Wl,';; | |
9332 | esac | |
9333 | ;; | |
9334 | ||
9335 | sunos4*) | |
9336 | lt_prog_compiler_wl='-Qoption ld ' | |
9337 | lt_prog_compiler_pic='-PIC' | |
9338 | lt_prog_compiler_static='-Bstatic' | |
9339 | ;; | |
9340 | ||
9341 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9342 | lt_prog_compiler_wl='-Wl,' | |
9343 | lt_prog_compiler_pic='-KPIC' | |
9344 | lt_prog_compiler_static='-Bstatic' | |
9345 | ;; | |
9346 | ||
9347 | sysv4*MP*) | |
9348 | if test -d /usr/nec ;then | |
9349 | lt_prog_compiler_pic='-Kconform_pic' | |
9350 | lt_prog_compiler_static='-Bstatic' | |
9351 | fi | |
9352 | ;; | |
9353 | ||
9354 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9355 | lt_prog_compiler_wl='-Wl,' | |
9356 | lt_prog_compiler_pic='-KPIC' | |
9357 | lt_prog_compiler_static='-Bstatic' | |
9358 | ;; | |
9359 | ||
9360 | unicos*) | |
9361 | lt_prog_compiler_wl='-Wl,' | |
9362 | lt_prog_compiler_can_build_shared=no | |
9363 | ;; | |
9364 | ||
9365 | uts4*) | |
9366 | lt_prog_compiler_pic='-pic' | |
9367 | lt_prog_compiler_static='-Bstatic' | |
9368 | ;; | |
9369 | ||
9370 | *) | |
9371 | lt_prog_compiler_can_build_shared=no | |
9372 | ;; | |
9373 | esac | |
9374 | fi | |
9375 | ||
9376 | case $host_os in | |
9377 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9378 | *djgpp*) | |
9379 | lt_prog_compiler_pic= | |
9380 | ;; | |
9381 | *) | |
9382 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9383 | ;; | |
9384 | esac | |
9385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
9386 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
9387 | ||
9388 | ||
9389 | ||
9390 | ||
9391 | ||
9392 | ||
9393 | # | |
9394 | # Check to make sure the PIC flag actually works. | |
9395 | # | |
9396 | if test -n "$lt_prog_compiler_pic"; then | |
9397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9398 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9399 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9400 | $as_echo_n "(cached) " >&6 | |
9401 | else | |
9402 | lt_cv_prog_compiler_pic_works=no | |
9403 | ac_outfile=conftest.$ac_objext | |
9404 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9405 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9406 | # Insert the option either (1) after the last *FLAGS variable, or | |
9407 | # (2) before a word containing "conftest.", or (3) at the end. | |
9408 | # Note that $ac_compile itself does not contain backslashes and begins | |
9409 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9410 | # The option is referenced via a variable to avoid confusing sed. | |
9411 | lt_compile=`echo "$ac_compile" | $SED \ | |
9412 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9413 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9414 | -e 's:$: $lt_compiler_flag:'` | |
9415 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9416 | (eval "$lt_compile" 2>conftest.err) | |
9417 | ac_status=$? | |
9418 | cat conftest.err >&5 | |
9419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9420 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9421 | # The compiler can only warn and ignore the option if not recognized | |
9422 | # So say no if there are warnings other than the usual output. | |
9423 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9424 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9425 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9426 | lt_cv_prog_compiler_pic_works=yes | |
9427 | fi | |
9428 | fi | |
9429 | $RM conftest* | |
9430 | ||
9431 | fi | |
9432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9433 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9434 | ||
9435 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
9436 | case $lt_prog_compiler_pic in | |
9437 | "" | " "*) ;; | |
9438 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9439 | esac | |
9440 | else | |
9441 | lt_prog_compiler_pic= | |
9442 | lt_prog_compiler_can_build_shared=no | |
9443 | fi | |
9444 | ||
9445 | fi | |
9446 | ||
9447 | ||
9448 | ||
9449 | ||
9450 | ||
9451 | ||
9452 | # | |
9453 | # Check to make sure the static flag actually works. | |
9454 | # | |
9455 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9457 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9458 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9459 | $as_echo_n "(cached) " >&6 | |
9460 | else | |
9461 | lt_cv_prog_compiler_static_works=no | |
9462 | save_LDFLAGS="$LDFLAGS" | |
9463 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9464 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9465 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9466 | # The linker can only warn and ignore the option if not recognized | |
9467 | # So say no if there are warnings | |
9468 | if test -s conftest.err; then | |
9469 | # Append any errors to the config.log. | |
9470 | cat conftest.err 1>&5 | |
9471 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9472 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9473 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9474 | lt_cv_prog_compiler_static_works=yes | |
9475 | fi | |
9476 | else | |
9477 | lt_cv_prog_compiler_static_works=yes | |
9478 | fi | |
9479 | fi | |
9480 | $RM -r conftest* | |
9481 | LDFLAGS="$save_LDFLAGS" | |
9482 | ||
9483 | fi | |
9484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9485 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9486 | ||
9487 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
9488 | : | |
9489 | else | |
9490 | lt_prog_compiler_static= | |
9491 | fi | |
9492 | ||
9493 | ||
9494 | ||
9495 | ||
9496 | ||
9497 | ||
9498 | ||
9499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9500 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9501 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9502 | $as_echo_n "(cached) " >&6 | |
9503 | else | |
9504 | lt_cv_prog_compiler_c_o=no | |
9505 | $RM -r conftest 2>/dev/null | |
9506 | mkdir conftest | |
9507 | cd conftest | |
9508 | mkdir out | |
9509 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9510 | ||
9511 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9512 | # Insert the option either (1) after the last *FLAGS variable, or | |
9513 | # (2) before a word containing "conftest.", or (3) at the end. | |
9514 | # Note that $ac_compile itself does not contain backslashes and begins | |
9515 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9516 | lt_compile=`echo "$ac_compile" | $SED \ | |
9517 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9518 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9519 | -e 's:$: $lt_compiler_flag:'` | |
9520 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9521 | (eval "$lt_compile" 2>out/conftest.err) | |
9522 | ac_status=$? | |
9523 | cat out/conftest.err >&5 | |
9524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9525 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9526 | then | |
9527 | # The compiler can only warn and ignore the option if not recognized | |
9528 | # So say no if there are warnings | |
9529 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9530 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9531 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9532 | lt_cv_prog_compiler_c_o=yes | |
9533 | fi | |
9534 | fi | |
9535 | chmod u+w . 2>&5 | |
9536 | $RM conftest* | |
9537 | # SGI C++ compiler will create directory out/ii_files/ for | |
9538 | # template instantiation | |
9539 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9540 | $RM out/* && rmdir out | |
9541 | cd .. | |
9542 | $RM -r conftest | |
9543 | $RM conftest* | |
9544 | ||
9545 | fi | |
9546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9547 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9548 | ||
9549 | ||
9550 | ||
9551 | ||
9552 | ||
9553 | ||
9554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9555 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9556 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9557 | $as_echo_n "(cached) " >&6 | |
9558 | else | |
9559 | lt_cv_prog_compiler_c_o=no | |
9560 | $RM -r conftest 2>/dev/null | |
9561 | mkdir conftest | |
9562 | cd conftest | |
9563 | mkdir out | |
9564 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9565 | ||
9566 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9567 | # Insert the option either (1) after the last *FLAGS variable, or | |
9568 | # (2) before a word containing "conftest.", or (3) at the end. | |
9569 | # Note that $ac_compile itself does not contain backslashes and begins | |
9570 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9571 | lt_compile=`echo "$ac_compile" | $SED \ | |
9572 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9573 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9574 | -e 's:$: $lt_compiler_flag:'` | |
9575 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9576 | (eval "$lt_compile" 2>out/conftest.err) | |
9577 | ac_status=$? | |
9578 | cat out/conftest.err >&5 | |
9579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9580 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9581 | then | |
9582 | # The compiler can only warn and ignore the option if not recognized | |
9583 | # So say no if there are warnings | |
9584 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9585 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9586 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9587 | lt_cv_prog_compiler_c_o=yes | |
9588 | fi | |
9589 | fi | |
9590 | chmod u+w . 2>&5 | |
9591 | $RM conftest* | |
9592 | # SGI C++ compiler will create directory out/ii_files/ for | |
9593 | # template instantiation | |
9594 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9595 | $RM out/* && rmdir out | |
9596 | cd .. | |
9597 | $RM -r conftest | |
9598 | $RM conftest* | |
9599 | ||
9600 | fi | |
9601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9602 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9603 | ||
9604 | ||
9605 | ||
9606 | ||
9607 | hard_links="nottested" | |
9608 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9609 | # do not overwrite the value of need_locks provided by the user | |
9610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9611 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9612 | hard_links=yes | |
9613 | $RM conftest* | |
9614 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9615 | touch conftest.a | |
9616 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9617 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9619 | $as_echo "$hard_links" >&6; } | |
9620 | if test "$hard_links" = no; then | |
9621 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9622 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9623 | need_locks=warn | |
9624 | fi | |
9625 | else | |
9626 | need_locks=no | |
9627 | fi | |
9628 | ||
9629 | ||
9630 | ||
9631 | ||
9632 | ||
9633 | ||
9634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9635 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9636 | ||
9637 | runpath_var= | |
9638 | allow_undefined_flag= | |
9639 | always_export_symbols=no | |
9640 | archive_cmds= | |
9641 | archive_expsym_cmds= | |
9642 | compiler_needs_object=no | |
9643 | enable_shared_with_static_runtimes=no | |
9644 | export_dynamic_flag_spec= | |
9645 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9646 | hardcode_automatic=no | |
9647 | hardcode_direct=no | |
9648 | hardcode_direct_absolute=no | |
9649 | hardcode_libdir_flag_spec= | |
9650 | hardcode_libdir_flag_spec_ld= | |
9651 | hardcode_libdir_separator= | |
9652 | hardcode_minus_L=no | |
9653 | hardcode_shlibpath_var=unsupported | |
9654 | inherit_rpath=no | |
9655 | link_all_deplibs=unknown | |
9656 | module_cmds= | |
9657 | module_expsym_cmds= | |
9658 | old_archive_from_new_cmds= | |
9659 | old_archive_from_expsyms_cmds= | |
9660 | thread_safe_flag_spec= | |
9661 | whole_archive_flag_spec= | |
9662 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9663 | # included in the symbol list | |
9664 | include_expsyms= | |
9665 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9666 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9667 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9668 | # as well as any symbol that contains `d'. | |
9669 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9670 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9671 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9672 | # the symbol is explicitly referenced. Since portable code cannot | |
9673 | # rely on this symbol name, it's probably fine to never include it in | |
9674 | # preloaded symbol tables. | |
9675 | # Exclude shared library initialization/finalization symbols. | |
9676 | extract_expsyms_cmds= | |
9677 | ||
9678 | case $host_os in | |
9679 | cygwin* | mingw* | pw32* | cegcc*) | |
9680 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9681 | # When not using gcc, we currently assume that we are using | |
9682 | # Microsoft Visual C++. | |
9683 | if test "$GCC" != yes; then | |
9684 | with_gnu_ld=no | |
9685 | fi | |
9686 | ;; | |
9687 | interix*) | |
9688 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9689 | with_gnu_ld=yes | |
9690 | ;; | |
9691 | openbsd*) | |
9692 | with_gnu_ld=no | |
9693 | ;; | |
9694 | esac | |
9695 | ||
9696 | ld_shlibs=yes | |
9697 | ||
9698 | # On some targets, GNU ld is compatible enough with the native linker | |
9699 | # that we're better off using the native interface for both. | |
9700 | lt_use_gnu_ld_interface=no | |
9701 | if test "$with_gnu_ld" = yes; then | |
9702 | case $host_os in | |
9703 | aix*) | |
9704 | # The AIX port of GNU ld has always aspired to compatibility | |
9705 | # with the native linker. However, as the warning in the GNU ld | |
9706 | # block says, versions before 2.19.5* couldn't really create working | |
9707 | # shared libraries, regardless of the interface used. | |
9708 | case `$LD -v 2>&1` in | |
9709 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9710 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9711 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9712 | *) | |
9713 | lt_use_gnu_ld_interface=yes | |
9714 | ;; | |
9715 | esac | |
9716 | ;; | |
9717 | *) | |
9718 | lt_use_gnu_ld_interface=yes | |
9719 | ;; | |
9720 | esac | |
9721 | fi | |
9722 | ||
9723 | if test "$lt_use_gnu_ld_interface" = yes; then | |
9724 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9725 | wlarc='${wl}' | |
9726 | ||
9727 | # Set some defaults for GNU ld with shared library support. These | |
9728 | # are reset later if shared libraries are not supported. Putting them | |
9729 | # here allows them to be overridden if necessary. | |
9730 | runpath_var=LD_RUN_PATH | |
9731 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9732 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9733 | # ancient GNU ld didn't support --whole-archive et. al. | |
9734 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9735 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9736 | else | |
9737 | whole_archive_flag_spec= | |
9738 | fi | |
9739 | supports_anon_versioning=no | |
9740 | case `$LD -v 2>&1` in | |
9741 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9742 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9743 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9744 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9745 | *\ 2.11.*) ;; # other 2.11 versions | |
9746 | *) supports_anon_versioning=yes ;; | |
9747 | esac | |
9748 | ||
9749 | # See if GNU ld supports shared libraries. | |
9750 | case $host_os in | |
9751 | aix[3-9]*) | |
9752 | # On AIX/PPC, the GNU linker is very broken | |
9753 | if test "$host_cpu" != ia64; then | |
9754 | ld_shlibs=no | |
9755 | cat <<_LT_EOF 1>&2 | |
9756 | ||
9757 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9758 | *** to be unable to reliably create shared libraries on AIX. | |
9759 | *** Therefore, libtool is disabling shared libraries support. If you | |
9760 | *** really care for shared libraries, you may want to install binutils | |
9761 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9762 | *** You will then need to restart the configuration process. | |
9763 | ||
9764 | _LT_EOF | |
9765 | fi | |
9766 | ;; | |
9767 | ||
9768 | amigaos*) | |
9769 | case $host_cpu in | |
9770 | powerpc) | |
9771 | # see comment about AmigaOS4 .so support | |
9772 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9773 | archive_expsym_cmds='' | |
9774 | ;; | |
9775 | m68k) | |
9776 | 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)' | |
9777 | hardcode_libdir_flag_spec='-L$libdir' | |
9778 | hardcode_minus_L=yes | |
9779 | ;; | |
9780 | esac | |
9781 | ;; | |
9782 | ||
9783 | beos*) | |
9784 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9785 | allow_undefined_flag=unsupported | |
9786 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9787 | # support --undefined. This deserves some investigation. FIXME | |
9788 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9789 | else | |
9790 | ld_shlibs=no | |
9791 | fi | |
9792 | ;; | |
9793 | ||
9794 | cygwin* | mingw* | pw32* | cegcc*) | |
9795 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9796 | # as there is no search path for DLLs. | |
9797 | hardcode_libdir_flag_spec='-L$libdir' | |
9798 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9799 | allow_undefined_flag=unsupported | |
9800 | always_export_symbols=no | |
9801 | enable_shared_with_static_runtimes=yes | |
9802 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9803 | ||
9804 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9805 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9806 | # If the export-symbols file already is a .def file (1st line | |
9807 | # is EXPORTS), use it as is; otherwise, prepend... | |
9808 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9809 | cp $export_symbols $output_objdir/$soname.def; | |
9810 | else | |
9811 | echo EXPORTS > $output_objdir/$soname.def; | |
9812 | cat $export_symbols >> $output_objdir/$soname.def; | |
9813 | fi~ | |
9814 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9815 | else | |
9816 | ld_shlibs=no | |
9817 | fi | |
9818 | ;; | |
9819 | ||
9820 | haiku*) | |
9821 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9822 | link_all_deplibs=yes | |
9823 | ;; | |
9824 | ||
9825 | interix[3-9]*) | |
9826 | hardcode_direct=no | |
9827 | hardcode_shlibpath_var=no | |
9828 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9829 | export_dynamic_flag_spec='${wl}-E' | |
9830 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9831 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9832 | # default) and relocated if they conflict, which is a slow very memory | |
9833 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9834 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9835 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9836 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9837 | 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' | |
9838 | ;; | |
9839 | ||
9840 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9841 | tmp_diet=no | |
9842 | if test "$host_os" = linux-dietlibc; then | |
9843 | case $cc_basename in | |
9844 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9845 | esac | |
9846 | fi | |
9847 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9848 | && test "$tmp_diet" = no | |
9849 | then | |
9850 | tmp_addflag=' $pic_flag' | |
9851 | tmp_sharedflag='-shared' | |
9852 | case $cc_basename,$host_cpu in | |
9853 | pgcc*) # Portland Group C compiler | |
9854 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
9855 | tmp_addflag=' $pic_flag' | |
9856 | ;; | |
9857 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9858 | # Portland Group f77 and f90 compilers | |
9859 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
9860 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9861 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9862 | tmp_addflag=' -i_dynamic' ;; | |
9863 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9864 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9865 | ifc* | ifort*) # Intel Fortran compiler | |
9866 | tmp_addflag=' -nofor_main' ;; | |
9867 | lf95*) # Lahey Fortran 8.1 | |
9868 | whole_archive_flag_spec= | |
9869 | tmp_sharedflag='--shared' ;; | |
9870 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9871 | tmp_sharedflag='-qmkshrobj' | |
9872 | tmp_addflag= ;; | |
9873 | nvcc*) # Cuda Compiler Driver 2.2 | |
9874 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
9875 | compiler_needs_object=yes | |
9876 | ;; | |
9877 | esac | |
9878 | case `$CC -V 2>&1 | sed 5q` in | |
9879 | *Sun\ C*) # Sun C 5.9 | |
9880 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
9881 | compiler_needs_object=yes | |
9882 | tmp_sharedflag='-G' ;; | |
9883 | *Sun\ F*) # Sun Fortran 8.3 | |
9884 | tmp_sharedflag='-G' ;; | |
9885 | esac | |
9886 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9887 | ||
9888 | if test "x$supports_anon_versioning" = xyes; then | |
9889 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9890 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9891 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9892 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9893 | fi | |
9894 | ||
9895 | case $cc_basename in | |
9896 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9897 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9898 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9899 | hardcode_libdir_flag_spec= | |
9900 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9901 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9902 | if test "x$supports_anon_versioning" = xyes; then | |
9903 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9904 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9905 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9906 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9907 | fi | |
9908 | ;; | |
9909 | esac | |
9910 | else | |
9911 | ld_shlibs=no | |
9912 | fi | |
9913 | ;; | |
9914 | ||
9915 | netbsd*) | |
9916 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9917 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9918 | wlarc= | |
9919 | else | |
9920 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9921 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9922 | fi | |
9923 | ;; | |
9924 | ||
9925 | solaris*) | |
9926 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9927 | ld_shlibs=no | |
9928 | cat <<_LT_EOF 1>&2 | |
9929 | ||
9930 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9931 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9932 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9933 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9934 | *** your PATH or compiler configuration so that the native linker is | |
9935 | *** used, and then restart. | |
9936 | ||
9937 | _LT_EOF | |
9938 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9939 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9940 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9941 | else | |
9942 | ld_shlibs=no | |
9943 | fi | |
9944 | ;; | |
9945 | ||
9946 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9947 | case `$LD -v 2>&1` in | |
9948 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9949 | ld_shlibs=no | |
9950 | cat <<_LT_EOF 1>&2 | |
9951 | ||
9952 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9953 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9954 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9955 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9956 | *** your PATH or compiler configuration so that the native linker is | |
9957 | *** used, and then restart. | |
9958 | ||
9959 | _LT_EOF | |
9960 | ;; | |
9961 | *) | |
9962 | # For security reasons, it is highly recommended that you always | |
9963 | # use absolute paths for naming shared libraries, and exclude the | |
9964 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9965 | # requires that you compile everything twice, which is a pain. | |
9966 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9967 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9968 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9969 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9970 | else | |
9971 | ld_shlibs=no | |
9972 | fi | |
9973 | ;; | |
9974 | esac | |
9975 | ;; | |
9976 | ||
9977 | sunos4*) | |
9978 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9979 | wlarc= | |
9980 | hardcode_direct=yes | |
9981 | hardcode_shlibpath_var=no | |
9982 | ;; | |
9983 | ||
9984 | *) | |
9985 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9986 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9987 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9988 | else | |
9989 | ld_shlibs=no | |
9990 | fi | |
9991 | ;; | |
9992 | esac | |
9993 | ||
9994 | if test "$ld_shlibs" = no; then | |
9995 | runpath_var= | |
9996 | hardcode_libdir_flag_spec= | |
9997 | export_dynamic_flag_spec= | |
9998 | whole_archive_flag_spec= | |
9999 | fi | |
10000 | else | |
10001 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10002 | case $host_os in | |
10003 | aix3*) | |
10004 | allow_undefined_flag=unsupported | |
10005 | always_export_symbols=yes | |
10006 | 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' | |
10007 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10008 | # are no directories specified by -L. | |
10009 | hardcode_minus_L=yes | |
10010 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10011 | # Neither direct hardcoding nor static linking is supported with a | |
10012 | # broken collect2. | |
10013 | hardcode_direct=unsupported | |
10014 | fi | |
10015 | ;; | |
10016 | ||
10017 | aix[4-9]*) | |
10018 | if test "$host_cpu" = ia64; then | |
10019 | # On IA64, the linker does run time linking by default, so we don't | |
10020 | # have to do anything special. | |
10021 | aix_use_runtimelinking=no | |
10022 | exp_sym_flag='-Bexport' | |
10023 | no_entry_flag="" | |
10024 | else | |
10025 | # If we're using GNU nm, then we don't want the "-C" option. | |
10026 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10027 | # Also, AIX nm treats weak defined symbols like other global | |
10028 | # defined symbols, whereas GNU nm marks them as "W". | |
10029 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10030 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
10031 | else | |
10032 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
10033 | fi | |
10034 | aix_use_runtimelinking=no | |
10035 | ||
10036 | # Test if we are trying to use run time linking or normal | |
10037 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10038 | # need to do runtime linking. | |
10039 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10040 | for ld_flag in $LDFLAGS; do | |
10041 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10042 | aix_use_runtimelinking=yes | |
10043 | break | |
10044 | fi | |
10045 | done | |
10046 | ;; | |
10047 | esac | |
10048 | ||
10049 | exp_sym_flag='-bexport' | |
10050 | no_entry_flag='-bnoentry' | |
10051 | fi | |
10052 | ||
10053 | # When large executables or shared objects are built, AIX ld can | |
10054 | # have problems creating the table of contents. If linking a library | |
10055 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10056 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10057 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10058 | ||
10059 | archive_cmds='' | |
10060 | hardcode_direct=yes | |
10061 | hardcode_direct_absolute=yes | |
10062 | hardcode_libdir_separator=':' | |
10063 | link_all_deplibs=yes | |
10064 | file_list_spec='${wl}-f,' | |
10065 | ||
10066 | if test "$GCC" = yes; then | |
10067 | case $host_os in aix4.[012]|aix4.[012].*) | |
10068 | # We only want to do this on AIX 4.2 and lower, the check | |
10069 | # below for broken collect2 doesn't work under 4.3+ | |
10070 | collect2name=`${CC} -print-prog-name=collect2` | |
10071 | if test -f "$collect2name" && | |
10072 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10073 | then | |
10074 | # We have reworked collect2 | |
10075 | : | |
10076 | else | |
10077 | # We have old collect2 | |
10078 | hardcode_direct=unsupported | |
10079 | # It fails to find uninstalled libraries when the uninstalled | |
10080 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10081 | # to unsupported forces relinking | |
10082 | hardcode_minus_L=yes | |
10083 | hardcode_libdir_flag_spec='-L$libdir' | |
10084 | hardcode_libdir_separator= | |
10085 | fi | |
10086 | ;; | |
10087 | esac | |
10088 | shared_flag='-shared' | |
10089 | if test "$aix_use_runtimelinking" = yes; then | |
10090 | shared_flag="$shared_flag "'${wl}-G' | |
10091 | fi | |
10092 | else | |
10093 | # not using gcc | |
10094 | if test "$host_cpu" = ia64; then | |
10095 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10096 | # chokes on -Wl,-G. The following line is correct: | |
10097 | shared_flag='-G' | |
10098 | else | |
10099 | if test "$aix_use_runtimelinking" = yes; then | |
10100 | shared_flag='${wl}-G' | |
10101 | else | |
10102 | shared_flag='${wl}-bM:SRE' | |
10103 | fi | |
10104 | fi | |
10105 | fi | |
10106 | ||
10107 | export_dynamic_flag_spec='${wl}-bexpall' | |
10108 | # It seems that -bexpall does not export symbols beginning with | |
10109 | # underscore (_), so it is better to generate a list of symbols to export. | |
10110 | always_export_symbols=yes | |
10111 | if test "$aix_use_runtimelinking" = yes; then | |
10112 | # Warning - without using the other runtime loading flags (-brtl), | |
10113 | # -berok will link without error, but may produce a broken library. | |
10114 | allow_undefined_flag='-berok' | |
10115 | # Determine the default libpath from the value encoded in an | |
10116 | # empty executable. | |
10117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10118 | /* end confdefs.h. */ | |
10119 | ||
10120 | int | |
10121 | main () | |
10122 | { | |
10123 | ||
10124 | ; | |
10125 | return 0; | |
10126 | } | |
10127 | _ACEOF | |
10128 | if ac_fn_c_try_link "$LINENO"; then : | |
10129 | ||
10130 | lt_aix_libpath_sed=' | |
10131 | /Import File Strings/,/^$/ { | |
10132 | /^0/ { | |
10133 | s/^0 *\(.*\)$/\1/ | |
10134 | p | |
10135 | } | |
10136 | }' | |
10137 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10138 | # Check for a 64-bit object if we didn't find anything. | |
10139 | if test -z "$aix_libpath"; then | |
10140 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10141 | fi | |
10142 | fi | |
10143 | rm -f core conftest.err conftest.$ac_objext \ | |
10144 | conftest$ac_exeext conftest.$ac_ext | |
10145 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10146 | ||
10147 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10148 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
10149 | else | |
10150 | if test "$host_cpu" = ia64; then | |
10151 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10152 | allow_undefined_flag="-z nodefs" | |
10153 | 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" | |
10154 | else | |
10155 | # Determine the default libpath from the value encoded in an | |
10156 | # empty executable. | |
10157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10158 | /* end confdefs.h. */ | |
10159 | ||
10160 | int | |
10161 | main () | |
10162 | { | |
10163 | ||
10164 | ; | |
10165 | return 0; | |
10166 | } | |
10167 | _ACEOF | |
10168 | if ac_fn_c_try_link "$LINENO"; then : | |
10169 | ||
10170 | lt_aix_libpath_sed=' | |
10171 | /Import File Strings/,/^$/ { | |
10172 | /^0/ { | |
10173 | s/^0 *\(.*\)$/\1/ | |
10174 | p | |
10175 | } | |
10176 | }' | |
10177 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10178 | # Check for a 64-bit object if we didn't find anything. | |
10179 | if test -z "$aix_libpath"; then | |
10180 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10181 | fi | |
10182 | fi | |
10183 | rm -f core conftest.err conftest.$ac_objext \ | |
10184 | conftest$ac_exeext conftest.$ac_ext | |
10185 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10186 | ||
10187 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10188 | # Warning - without using the other run time loading flags, | |
10189 | # -berok will link without error, but may produce a broken library. | |
10190 | no_undefined_flag=' ${wl}-bernotok' | |
10191 | allow_undefined_flag=' ${wl}-berok' | |
10192 | if test "$with_gnu_ld" = yes; then | |
10193 | # We only use this code for GNU lds that support --whole-archive. | |
10194 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10195 | else | |
10196 | # Exported symbols can be pulled into shared objects from archives | |
10197 | whole_archive_flag_spec='$convenience' | |
10198 | fi | |
10199 | archive_cmds_need_lc=yes | |
10200 | # This is similar to how AIX traditionally builds its shared libraries. | |
10201 | 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' | |
10202 | fi | |
10203 | fi | |
10204 | ;; | |
10205 | ||
10206 | amigaos*) | |
10207 | case $host_cpu in | |
10208 | powerpc) | |
10209 | # see comment about AmigaOS4 .so support | |
10210 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10211 | archive_expsym_cmds='' | |
10212 | ;; | |
10213 | m68k) | |
10214 | 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)' | |
10215 | hardcode_libdir_flag_spec='-L$libdir' | |
10216 | hardcode_minus_L=yes | |
10217 | ;; | |
10218 | esac | |
10219 | ;; | |
10220 | ||
10221 | bsdi[45]*) | |
10222 | export_dynamic_flag_spec=-rdynamic | |
10223 | ;; | |
10224 | ||
10225 | cygwin* | mingw* | pw32* | cegcc*) | |
10226 | # When not using gcc, we currently assume that we are using | |
10227 | # Microsoft Visual C++. | |
10228 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10229 | # no search path for DLLs. | |
10230 | hardcode_libdir_flag_spec=' ' | |
10231 | allow_undefined_flag=unsupported | |
10232 | # Tell ltmain to make .lib files, not .a files. | |
10233 | libext=lib | |
10234 | # Tell ltmain to make .dll files, not .so files. | |
10235 | shrext_cmds=".dll" | |
10236 | # FIXME: Setting linknames here is a bad hack. | |
10237 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10238 | # The linker will automatically build a .lib file if we build a DLL. | |
10239 | old_archive_from_new_cmds='true' | |
10240 | # FIXME: Should let the user specify the lib program. | |
10241 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10242 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10243 | enable_shared_with_static_runtimes=yes | |
10244 | ;; | |
10245 | ||
10246 | darwin* | rhapsody*) | |
10247 | ||
10248 | ||
10249 | archive_cmds_need_lc=no | |
10250 | hardcode_direct=no | |
10251 | hardcode_automatic=yes | |
10252 | hardcode_shlibpath_var=unsupported | |
10253 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10254 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
10255 | else | |
10256 | whole_archive_flag_spec='' | |
10257 | fi | |
10258 | link_all_deplibs=yes | |
10259 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10260 | case $cc_basename in | |
10261 | ifort*) _lt_dar_can_shared=yes ;; | |
10262 | *) _lt_dar_can_shared=$GCC ;; | |
10263 | esac | |
10264 | if test "$_lt_dar_can_shared" = "yes"; then | |
10265 | output_verbose_link_cmd=func_echo_all | |
10266 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10267 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10268 | 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}" | |
10269 | 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}" | |
10270 | ||
10271 | else | |
10272 | ld_shlibs=no | |
10273 | fi | |
10274 | ||
10275 | ;; | |
10276 | ||
10277 | dgux*) | |
10278 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10279 | hardcode_libdir_flag_spec='-L$libdir' | |
10280 | hardcode_shlibpath_var=no | |
10281 | ;; | |
10282 | ||
10283 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10284 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10285 | # does not break anything, and helps significantly (at the cost of a little | |
10286 | # extra space). | |
10287 | freebsd2.2*) | |
10288 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10289 | hardcode_libdir_flag_spec='-R$libdir' | |
10290 | hardcode_direct=yes | |
10291 | hardcode_shlibpath_var=no | |
10292 | ;; | |
10293 | ||
10294 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10295 | freebsd2.*) | |
10296 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10297 | hardcode_direct=yes | |
10298 | hardcode_minus_L=yes | |
10299 | hardcode_shlibpath_var=no | |
10300 | ;; | |
10301 | ||
10302 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10303 | freebsd* | dragonfly*) | |
10304 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10305 | hardcode_libdir_flag_spec='-R$libdir' | |
10306 | hardcode_direct=yes | |
10307 | hardcode_shlibpath_var=no | |
10308 | ;; | |
10309 | ||
10310 | hpux9*) | |
10311 | if test "$GCC" = yes; then | |
10312 | 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' | |
10313 | else | |
10314 | 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' | |
10315 | fi | |
10316 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10317 | hardcode_libdir_separator=: | |
10318 | hardcode_direct=yes | |
10319 | ||
10320 | # hardcode_minus_L: Not really in the search PATH, | |
10321 | # but as the default location of the library. | |
10322 | hardcode_minus_L=yes | |
10323 | export_dynamic_flag_spec='${wl}-E' | |
10324 | ;; | |
10325 | ||
10326 | hpux10*) | |
10327 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10328 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10329 | else | |
10330 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10331 | fi | |
10332 | if test "$with_gnu_ld" = no; then | |
10333 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10334 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10335 | hardcode_libdir_separator=: | |
10336 | hardcode_direct=yes | |
10337 | hardcode_direct_absolute=yes | |
10338 | export_dynamic_flag_spec='${wl}-E' | |
10339 | # hardcode_minus_L: Not really in the search PATH, | |
10340 | # but as the default location of the library. | |
10341 | hardcode_minus_L=yes | |
10342 | fi | |
10343 | ;; | |
10344 | ||
10345 | hpux11*) | |
10346 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10347 | case $host_cpu in | |
10348 | hppa*64*) | |
10349 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10350 | ;; | |
10351 | ia64*) | |
10352 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10353 | ;; | |
10354 | *) | |
10355 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10356 | ;; | |
10357 | esac | |
10358 | else | |
10359 | case $host_cpu in | |
10360 | hppa*64*) | |
10361 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10362 | ;; | |
10363 | ia64*) | |
10364 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10365 | ;; | |
10366 | *) | |
10367 | ||
10368 | # Older versions of the 11.00 compiler do not understand -b yet | |
10369 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10371 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10372 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10373 | $as_echo_n "(cached) " >&6 | |
10374 | else | |
10375 | lt_cv_prog_compiler__b=no | |
10376 | save_LDFLAGS="$LDFLAGS" | |
10377 | LDFLAGS="$LDFLAGS -b" | |
10378 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10379 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10380 | # The linker can only warn and ignore the option if not recognized | |
10381 | # So say no if there are warnings | |
10382 | if test -s conftest.err; then | |
10383 | # Append any errors to the config.log. | |
10384 | cat conftest.err 1>&5 | |
10385 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10386 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10387 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10388 | lt_cv_prog_compiler__b=yes | |
10389 | fi | |
10390 | else | |
10391 | lt_cv_prog_compiler__b=yes | |
10392 | fi | |
10393 | fi | |
10394 | $RM -r conftest* | |
10395 | LDFLAGS="$save_LDFLAGS" | |
10396 | ||
10397 | fi | |
10398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10399 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10400 | ||
10401 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10402 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10403 | else | |
10404 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10405 | fi | |
10406 | ||
10407 | ;; | |
10408 | esac | |
10409 | fi | |
10410 | if test "$with_gnu_ld" = no; then | |
10411 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10412 | hardcode_libdir_separator=: | |
10413 | ||
10414 | case $host_cpu in | |
10415 | hppa*64*|ia64*) | |
10416 | hardcode_direct=no | |
10417 | hardcode_shlibpath_var=no | |
10418 | ;; | |
10419 | *) | |
10420 | hardcode_direct=yes | |
10421 | hardcode_direct_absolute=yes | |
10422 | export_dynamic_flag_spec='${wl}-E' | |
10423 | ||
10424 | # hardcode_minus_L: Not really in the search PATH, | |
10425 | # but as the default location of the library. | |
10426 | hardcode_minus_L=yes | |
10427 | ;; | |
10428 | esac | |
10429 | fi | |
10430 | ;; | |
10431 | ||
10432 | irix5* | irix6* | nonstopux*) | |
10433 | if test "$GCC" = yes; then | |
10434 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10435 | # Try to use the -exported_symbol ld option, if it does not | |
10436 | # work, assume that -exports_file does not work either and | |
10437 | # implicitly export all symbols. | |
10438 | save_LDFLAGS="$LDFLAGS" | |
10439 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10441 | /* end confdefs.h. */ | |
10442 | int foo(void) {} | |
10443 | _ACEOF | |
10444 | if ac_fn_c_try_link "$LINENO"; then : | |
10445 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
10446 | ||
10447 | fi | |
10448 | rm -f core conftest.err conftest.$ac_objext \ | |
10449 | conftest$ac_exeext conftest.$ac_ext | |
10450 | LDFLAGS="$save_LDFLAGS" | |
10451 | else | |
10452 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
10453 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
10454 | fi | |
10455 | archive_cmds_need_lc='no' | |
10456 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10457 | hardcode_libdir_separator=: | |
10458 | inherit_rpath=yes | |
10459 | link_all_deplibs=yes | |
10460 | ;; | |
10461 | ||
10462 | netbsd*) | |
10463 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10464 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10465 | else | |
10466 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10467 | fi | |
10468 | hardcode_libdir_flag_spec='-R$libdir' | |
10469 | hardcode_direct=yes | |
10470 | hardcode_shlibpath_var=no | |
10471 | ;; | |
10472 | ||
10473 | newsos6) | |
10474 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10475 | hardcode_direct=yes | |
10476 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10477 | hardcode_libdir_separator=: | |
10478 | hardcode_shlibpath_var=no | |
10479 | ;; | |
10480 | ||
10481 | *nto* | *qnx*) | |
10482 | ;; | |
10483 | ||
10484 | openbsd*) | |
10485 | if test -f /usr/libexec/ld.so; then | |
10486 | hardcode_direct=yes | |
10487 | hardcode_shlibpath_var=no | |
10488 | hardcode_direct_absolute=yes | |
10489 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10490 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10491 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10492 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10493 | export_dynamic_flag_spec='${wl}-E' | |
10494 | else | |
10495 | case $host_os in | |
10496 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10497 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10498 | hardcode_libdir_flag_spec='-R$libdir' | |
10499 | ;; | |
10500 | *) | |
10501 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10502 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10503 | ;; | |
10504 | esac | |
10505 | fi | |
10506 | else | |
10507 | ld_shlibs=no | |
10508 | fi | |
10509 | ;; | |
10510 | ||
10511 | os2*) | |
10512 | hardcode_libdir_flag_spec='-L$libdir' | |
10513 | hardcode_minus_L=yes | |
10514 | allow_undefined_flag=unsupported | |
10515 | 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' | |
10516 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10517 | ;; | |
10518 | ||
10519 | osf3*) | |
10520 | if test "$GCC" = yes; then | |
10521 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10522 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10523 | else | |
10524 | allow_undefined_flag=' -expect_unresolved \*' | |
10525 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
10526 | fi | |
10527 | archive_cmds_need_lc='no' | |
10528 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10529 | hardcode_libdir_separator=: | |
10530 | ;; | |
10531 | ||
10532 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10533 | if test "$GCC" = yes; then | |
10534 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10535 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10536 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10537 | else | |
10538 | allow_undefined_flag=' -expect_unresolved \*' | |
10539 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
10540 | 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~ | |
10541 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
10542 | ||
10543 | # Both c and cxx compiler support -rpath directly | |
10544 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10545 | fi | |
10546 | archive_cmds_need_lc='no' | |
10547 | hardcode_libdir_separator=: | |
10548 | ;; | |
10549 | ||
10550 | solaris*) | |
10551 | no_undefined_flag=' -z defs' | |
10552 | if test "$GCC" = yes; then | |
10553 | wlarc='${wl}' | |
10554 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10555 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10556 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10557 | else | |
10558 | case `$CC -V 2>&1` in | |
10559 | *"Compilers 5.0"*) | |
10560 | wlarc='' | |
10561 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10562 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10563 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10564 | ;; | |
10565 | *) | |
10566 | wlarc='${wl}' | |
10567 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10568 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10569 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10570 | ;; | |
10571 | esac | |
10572 | fi | |
10573 | hardcode_libdir_flag_spec='-R$libdir' | |
10574 | hardcode_shlibpath_var=no | |
10575 | case $host_os in | |
10576 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10577 | *) | |
10578 | # The compiler driver will combine and reorder linker options, | |
10579 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10580 | # but is careful enough not to reorder. | |
10581 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10582 | if test "$GCC" = yes; then | |
10583 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10584 | else | |
10585 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10586 | fi | |
10587 | ;; | |
10588 | esac | |
10589 | link_all_deplibs=yes | |
10590 | ;; | |
10591 | ||
10592 | sunos4*) | |
10593 | if test "x$host_vendor" = xsequent; then | |
10594 | # Use $CC to link under sequent, because it throws in some extra .o | |
10595 | # files that make .init and .fini sections work. | |
10596 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10597 | else | |
10598 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10599 | fi | |
10600 | hardcode_libdir_flag_spec='-L$libdir' | |
10601 | hardcode_direct=yes | |
10602 | hardcode_minus_L=yes | |
10603 | hardcode_shlibpath_var=no | |
10604 | ;; | |
10605 | ||
10606 | sysv4) | |
10607 | case $host_vendor in | |
10608 | sni) | |
10609 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10610 | hardcode_direct=yes # is this really true??? | |
10611 | ;; | |
10612 | siemens) | |
10613 | ## LD is ld it makes a PLAMLIB | |
10614 | ## CC just makes a GrossModule. | |
10615 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10616 | reload_cmds='$CC -r -o $output$reload_objs' | |
10617 | hardcode_direct=no | |
10618 | ;; | |
10619 | motorola) | |
10620 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10621 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10622 | ;; | |
10623 | esac | |
10624 | runpath_var='LD_RUN_PATH' | |
10625 | hardcode_shlibpath_var=no | |
10626 | ;; | |
10627 | ||
10628 | sysv4.3*) | |
10629 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10630 | hardcode_shlibpath_var=no | |
10631 | export_dynamic_flag_spec='-Bexport' | |
10632 | ;; | |
10633 | ||
10634 | sysv4*MP*) | |
10635 | if test -d /usr/nec; then | |
10636 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10637 | hardcode_shlibpath_var=no | |
10638 | runpath_var=LD_RUN_PATH | |
10639 | hardcode_runpath_var=yes | |
10640 | ld_shlibs=yes | |
10641 | fi | |
10642 | ;; | |
10643 | ||
10644 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10645 | no_undefined_flag='${wl}-z,text' | |
10646 | archive_cmds_need_lc=no | |
10647 | hardcode_shlibpath_var=no | |
10648 | runpath_var='LD_RUN_PATH' | |
10649 | ||
10650 | if test "$GCC" = yes; then | |
10651 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10652 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10653 | else | |
10654 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10655 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10656 | fi | |
10657 | ;; | |
10658 | ||
10659 | sysv5* | sco3.2v5* | sco5v6*) | |
10660 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10661 | # link with -lc, and that would cause any symbols used from libc to | |
10662 | # always be unresolved, which means just about no library would | |
10663 | # ever link correctly. If we're not using GNU ld we use -z text | |
10664 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10665 | # as -z defs. | |
10666 | no_undefined_flag='${wl}-z,text' | |
10667 | allow_undefined_flag='${wl}-z,nodefs' | |
10668 | archive_cmds_need_lc=no | |
10669 | hardcode_shlibpath_var=no | |
10670 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10671 | hardcode_libdir_separator=':' | |
10672 | link_all_deplibs=yes | |
10673 | export_dynamic_flag_spec='${wl}-Bexport' | |
10674 | runpath_var='LD_RUN_PATH' | |
10675 | ||
10676 | if test "$GCC" = yes; then | |
10677 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10678 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10679 | else | |
10680 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10681 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10682 | fi | |
10683 | ;; | |
10684 | ||
10685 | uts4*) | |
10686 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10687 | hardcode_libdir_flag_spec='-L$libdir' | |
10688 | hardcode_shlibpath_var=no | |
10689 | ;; | |
10690 | ||
10691 | *) | |
10692 | ld_shlibs=no | |
10693 | ;; | |
10694 | esac | |
10695 | ||
10696 | if test x$host_vendor = xsni; then | |
10697 | case $host in | |
10698 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10699 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10700 | ;; | |
10701 | esac | |
10702 | fi | |
10703 | fi | |
10704 | ||
10705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10706 | $as_echo "$ld_shlibs" >&6; } | |
10707 | test "$ld_shlibs" = no && can_build_shared=no | |
10708 | ||
10709 | with_gnu_ld=$with_gnu_ld | |
10710 | ||
10711 | ||
10712 | ||
10713 | ||
10714 | ||
10715 | ||
10716 | ||
10717 | ||
10718 | ||
10719 | ||
10720 | ||
10721 | ||
10722 | ||
10723 | ||
10724 | ||
10725 | # | |
10726 | # Do we need to explicitly link libc? | |
10727 | # | |
10728 | case "x$archive_cmds_need_lc" in | |
10729 | x|xyes) | |
10730 | # Assume -lc should be added | |
10731 | archive_cmds_need_lc=yes | |
10732 | ||
10733 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10734 | case $archive_cmds in | |
10735 | *'~'*) | |
10736 | # FIXME: we may have to deal with multi-command sequences. | |
10737 | ;; | |
10738 | '$CC '*) | |
10739 | # Test whether the compiler implicitly links with -lc since on some | |
10740 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10741 | # to ld, don't add -lc before -lgcc. | |
10742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10743 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10744 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10745 | $as_echo_n "(cached) " >&6 | |
10746 | else | |
10747 | $RM conftest* | |
10748 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10749 | ||
10750 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10751 | (eval $ac_compile) 2>&5 | |
10752 | ac_status=$? | |
10753 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10754 | test $ac_status = 0; } 2>conftest.err; then | |
10755 | soname=conftest | |
10756 | lib=conftest | |
10757 | libobjs=conftest.$ac_objext | |
10758 | deplibs= | |
10759 | wl=$lt_prog_compiler_wl | |
10760 | pic_flag=$lt_prog_compiler_pic | |
10761 | compiler_flags=-v | |
10762 | linker_flags=-v | |
10763 | verstring= | |
10764 | output_objdir=. | |
10765 | libname=conftest | |
10766 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10767 | allow_undefined_flag= | |
10768 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10769 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10770 | ac_status=$? | |
10771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10772 | test $ac_status = 0; } | |
10773 | then | |
10774 | lt_cv_archive_cmds_need_lc=no | |
10775 | else | |
10776 | lt_cv_archive_cmds_need_lc=yes | |
10777 | fi | |
10778 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10779 | else | |
10780 | cat conftest.err 1>&5 | |
10781 | fi | |
10782 | $RM conftest* | |
10783 | ||
10784 | fi | |
10785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10786 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10787 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10788 | ;; | |
10789 | esac | |
10790 | fi | |
10791 | ;; | |
10792 | esac | |
10793 | ||
10794 | ||
10795 | ||
10796 | ||
10797 | ||
10798 | ||
10799 | ||
10800 | ||
10801 | ||
10802 | ||
10803 | ||
10804 | ||
10805 | ||
10806 | ||
10807 | ||
10808 | ||
10809 | ||
10810 | ||
10811 | ||
10812 | ||
10813 | ||
10814 | ||
10815 | ||
10816 | ||
10817 | ||
10818 | ||
10819 | ||
10820 | ||
10821 | ||
10822 | ||
10823 | ||
10824 | ||
10825 | ||
10826 | ||
10827 | ||
10828 | ||
10829 | ||
10830 | ||
10831 | ||
10832 | ||
10833 | ||
10834 | ||
10835 | ||
10836 | ||
10837 | ||
10838 | ||
10839 | ||
10840 | ||
10841 | ||
10842 | ||
10843 | ||
10844 | ||
10845 | ||
10846 | ||
10847 | ||
10848 | ||
10849 | ||
10850 | ||
10851 | ||
10852 | ||
10853 | ||
10854 | ||
10855 | ||
10856 | ||
10857 | ||
10858 | ||
10859 | ||
10860 | ||
10861 | ||
10862 | ||
10863 | ||
10864 | ||
10865 | ||
10866 | ||
10867 | ||
10868 | ||
10869 | ||
10870 | ||
10871 | ||
10872 | ||
10873 | ||
10874 | ||
10875 | ||
10876 | ||
10877 | ||
10878 | ||
10879 | ||
10880 | ||
10881 | ||
10882 | ||
10883 | ||
10884 | ||
10885 | ||
10886 | ||
10887 | ||
10888 | ||
10889 | ||
10890 | ||
10891 | ||
10892 | ||
10893 | ||
10894 | ||
10895 | ||
10896 | ||
10897 | ||
10898 | ||
10899 | ||
10900 | ||
10901 | ||
10902 | ||
10903 | ||
10904 | ||
10905 | ||
10906 | ||
10907 | ||
10908 | ||
10909 | ||
10910 | ||
10911 | ||
10912 | ||
10913 | ||
10914 | ||
10915 | ||
10916 | ||
10917 | ||
10918 | ||
10919 | ||
10920 | ||
10921 | ||
10922 | ||
10923 | ||
10924 | ||
10925 | ||
10926 | ||
10927 | ||
10928 | ||
10929 | ||
10930 | ||
10931 | ||
10932 | ||
10933 | ||
10934 | ||
10935 | ||
10936 | ||
10937 | ||
10938 | ||
10939 | ||
10940 | ||
10941 | ||
10942 | ||
10943 | ||
10944 | ||
10945 | ||
10946 | ||
10947 | ||
10948 | ||
10949 | ||
10950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10951 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10952 | ||
10953 | if test "$GCC" = yes; then | |
10954 | case $host_os in | |
10955 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10956 | *) lt_awk_arg="/^libraries:/" ;; | |
10957 | esac | |
10958 | case $host_os in | |
10959 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10960 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10961 | esac | |
10962 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10963 | case $lt_search_path_spec in | |
10964 | *\;*) | |
10965 | # if the path contains ";" then we assume it to be the separator | |
10966 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10967 | # assumed that no part of a normal pathname contains ";" but that should | |
10968 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10969 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10970 | ;; | |
10971 | *) | |
10972 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10973 | ;; | |
10974 | esac | |
10975 | # Ok, now we have the path, separated by spaces, we can step through it | |
10976 | # and add multilib dir if necessary. | |
10977 | lt_tmp_lt_search_path_spec= | |
10978 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10979 | for lt_sys_path in $lt_search_path_spec; do | |
10980 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10981 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10982 | else | |
10983 | test -d "$lt_sys_path" && \ | |
10984 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10985 | fi | |
10986 | done | |
10987 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10988 | BEGIN {RS=" "; FS="/|\n";} { | |
10989 | lt_foo=""; | |
10990 | lt_count=0; | |
10991 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10992 | if ($lt_i != "" && $lt_i != ".") { | |
10993 | if ($lt_i == "..") { | |
10994 | lt_count++; | |
10995 | } else { | |
10996 | if (lt_count == 0) { | |
10997 | lt_foo="/" $lt_i lt_foo; | |
10998 | } else { | |
10999 | lt_count--; | |
11000 | } | |
11001 | } | |
11002 | } | |
11003 | } | |
11004 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11005 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11006 | }'` | |
11007 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
11008 | # for these hosts. | |
11009 | case $host_os in | |
11010 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11011 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11012 | esac | |
11013 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11014 | else | |
11015 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11016 | fi | |
11017 | library_names_spec= | |
11018 | libname_spec='lib$name' | |
11019 | soname_spec= | |
11020 | shrext_cmds=".so" | |
11021 | postinstall_cmds= | |
11022 | postuninstall_cmds= | |
11023 | finish_cmds= | |
11024 | finish_eval= | |
11025 | shlibpath_var= | |
11026 | shlibpath_overrides_runpath=unknown | |
11027 | version_type=none | |
11028 | dynamic_linker="$host_os ld.so" | |
11029 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11030 | need_lib_prefix=unknown | |
11031 | hardcode_into_libs=no | |
11032 | ||
11033 | # when you set need_version to no, make sure it does not cause -set_version | |
11034 | # flags to be left without arguments | |
11035 | need_version=unknown | |
11036 | ||
11037 | case $host_os in | |
11038 | aix3*) | |
11039 | version_type=linux | |
11040 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11041 | shlibpath_var=LIBPATH | |
11042 | ||
11043 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11044 | soname_spec='${libname}${release}${shared_ext}$major' | |
11045 | ;; | |
11046 | ||
11047 | aix[4-9]*) | |
11048 | version_type=linux | |
11049 | need_lib_prefix=no | |
11050 | need_version=no | |
11051 | hardcode_into_libs=yes | |
11052 | if test "$host_cpu" = ia64; then | |
11053 | # AIX 5 supports IA64 | |
11054 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11055 | shlibpath_var=LD_LIBRARY_PATH | |
11056 | else | |
11057 | # With GCC up to 2.95.x, collect2 would create an import file | |
11058 | # for dependence libraries. The import file would start with | |
11059 | # the line `#! .'. This would cause the generated library to | |
11060 | # depend on `.', always an invalid library. This was fixed in | |
11061 | # development snapshots of GCC prior to 3.0. | |
11062 | case $host_os in | |
11063 | aix4 | aix4.[01] | aix4.[01].*) | |
11064 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11065 | echo ' yes ' | |
11066 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11067 | : | |
11068 | else | |
11069 | can_build_shared=no | |
11070 | fi | |
11071 | ;; | |
11072 | esac | |
11073 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11074 | # soname into executable. Probably we can add versioning support to | |
11075 | # collect2, so additional links can be useful in future. | |
11076 | if test "$aix_use_runtimelinking" = yes; then | |
11077 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11078 | # instead of lib<name>.a to let people know that these are not | |
11079 | # typical AIX shared libraries. | |
11080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11081 | else | |
11082 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11083 | # and later when we are not doing run time linking. | |
11084 | library_names_spec='${libname}${release}.a $libname.a' | |
11085 | soname_spec='${libname}${release}${shared_ext}$major' | |
11086 | fi | |
11087 | shlibpath_var=LIBPATH | |
11088 | fi | |
11089 | ;; | |
11090 | ||
11091 | amigaos*) | |
11092 | case $host_cpu in | |
11093 | powerpc) | |
11094 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11095 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11096 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11097 | ;; | |
11098 | m68k) | |
11099 | library_names_spec='$libname.ixlibrary $libname.a' | |
11100 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11101 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' | |
11102 | ;; | |
11103 | esac | |
11104 | ;; | |
11105 | ||
11106 | beos*) | |
11107 | library_names_spec='${libname}${shared_ext}' | |
11108 | dynamic_linker="$host_os ld.so" | |
11109 | shlibpath_var=LIBRARY_PATH | |
11110 | ;; | |
11111 | ||
11112 | bsdi[45]*) | |
11113 | version_type=linux | |
11114 | need_version=no | |
11115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11116 | soname_spec='${libname}${release}${shared_ext}$major' | |
11117 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11118 | shlibpath_var=LD_LIBRARY_PATH | |
11119 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11120 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11121 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11122 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11123 | # libtool to hard-code these into programs | |
11124 | ;; | |
11125 | ||
11126 | cygwin* | mingw* | pw32* | cegcc*) | |
11127 | version_type=windows | |
11128 | shrext_cmds=".dll" | |
11129 | need_version=no | |
11130 | need_lib_prefix=no | |
11131 | ||
11132 | case $GCC,$host_os in | |
11133 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
11134 | library_names_spec='$libname.dll.a' | |
11135 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11136 | postinstall_cmds='base_file=`basename \${file}`~ | |
11137 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11138 | dldir=$destdir/`dirname \$dlpath`~ | |
11139 | test -d \$dldir || mkdir -p \$dldir~ | |
11140 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11141 | chmod a+x \$dldir/$dlname~ | |
11142 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11143 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11144 | fi' | |
11145 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11146 | dlpath=$dir/\$dldll~ | |
11147 | $RM \$dlpath' | |
11148 | shlibpath_overrides_runpath=yes | |
11149 | ||
11150 | case $host_os in | |
11151 | cygwin*) | |
11152 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11153 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11154 | ||
11155 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
11156 | ;; | |
11157 | mingw* | cegcc*) | |
11158 | # MinGW DLLs use traditional 'lib' prefix | |
11159 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11160 | ;; | |
11161 | pw32*) | |
11162 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11163 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11164 | ;; | |
11165 | esac | |
11166 | ;; | |
11167 | ||
11168 | *) | |
11169 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11170 | ;; | |
11171 | esac | |
11172 | dynamic_linker='Win32 ld.exe' | |
11173 | # FIXME: first we should search . and the directory the executable is in | |
11174 | shlibpath_var=PATH | |
11175 | ;; | |
11176 | ||
11177 | darwin* | rhapsody*) | |
11178 | dynamic_linker="$host_os dyld" | |
11179 | version_type=darwin | |
11180 | need_lib_prefix=no | |
11181 | need_version=no | |
11182 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11183 | soname_spec='${libname}${release}${major}$shared_ext' | |
11184 | shlibpath_overrides_runpath=yes | |
11185 | shlibpath_var=DYLD_LIBRARY_PATH | |
11186 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11187 | ||
11188 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11189 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11190 | ;; | |
11191 | ||
11192 | dgux*) | |
11193 | version_type=linux | |
11194 | need_lib_prefix=no | |
11195 | need_version=no | |
11196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11197 | soname_spec='${libname}${release}${shared_ext}$major' | |
11198 | shlibpath_var=LD_LIBRARY_PATH | |
11199 | ;; | |
11200 | ||
11201 | freebsd* | dragonfly*) | |
11202 | # DragonFly does not have aout. When/if they implement a new | |
11203 | # versioning mechanism, adjust this. | |
11204 | if test -x /usr/bin/objformat; then | |
11205 | objformat=`/usr/bin/objformat` | |
11206 | else | |
11207 | case $host_os in | |
11208 | freebsd[23].*) objformat=aout ;; | |
11209 | *) objformat=elf ;; | |
11210 | esac | |
11211 | fi | |
11212 | version_type=freebsd-$objformat | |
11213 | case $version_type in | |
11214 | freebsd-elf*) | |
11215 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11216 | need_version=no | |
11217 | need_lib_prefix=no | |
11218 | ;; | |
11219 | freebsd-*) | |
11220 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11221 | need_version=yes | |
11222 | ;; | |
11223 | esac | |
11224 | shlibpath_var=LD_LIBRARY_PATH | |
11225 | case $host_os in | |
11226 | freebsd2.*) | |
11227 | shlibpath_overrides_runpath=yes | |
11228 | ;; | |
11229 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11230 | shlibpath_overrides_runpath=yes | |
11231 | hardcode_into_libs=yes | |
11232 | ;; | |
11233 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11234 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11235 | shlibpath_overrides_runpath=no | |
11236 | hardcode_into_libs=yes | |
11237 | ;; | |
11238 | *) # from 4.6 on, and DragonFly | |
11239 | shlibpath_overrides_runpath=yes | |
11240 | hardcode_into_libs=yes | |
11241 | ;; | |
11242 | esac | |
11243 | ;; | |
11244 | ||
11245 | haiku*) | |
11246 | version_type=linux | |
11247 | need_lib_prefix=no | |
11248 | need_version=no | |
11249 | dynamic_linker="$host_os runtime_loader" | |
11250 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11251 | soname_spec='${libname}${release}${shared_ext}$major' | |
11252 | shlibpath_var=LIBRARY_PATH | |
11253 | shlibpath_overrides_runpath=yes | |
11254 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
11255 | hardcode_into_libs=yes | |
11256 | ;; | |
11257 | ||
11258 | hpux9* | hpux10* | hpux11*) | |
11259 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11260 | # link against other versions. | |
11261 | version_type=sunos | |
11262 | need_lib_prefix=no | |
11263 | need_version=no | |
11264 | case $host_cpu in | |
11265 | ia64*) | |
11266 | shrext_cmds='.so' | |
11267 | hardcode_into_libs=yes | |
11268 | dynamic_linker="$host_os dld.so" | |
11269 | shlibpath_var=LD_LIBRARY_PATH | |
11270 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11271 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11272 | soname_spec='${libname}${release}${shared_ext}$major' | |
11273 | if test "X$HPUX_IA64_MODE" = X32; then | |
11274 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11275 | else | |
11276 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11277 | fi | |
11278 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11279 | ;; | |
11280 | hppa*64*) | |
11281 | shrext_cmds='.sl' | |
11282 | hardcode_into_libs=yes | |
11283 | dynamic_linker="$host_os dld.sl" | |
11284 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11285 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11287 | soname_spec='${libname}${release}${shared_ext}$major' | |
11288 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11289 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11290 | ;; | |
11291 | *) | |
11292 | shrext_cmds='.sl' | |
11293 | dynamic_linker="$host_os dld.sl" | |
11294 | shlibpath_var=SHLIB_PATH | |
11295 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11296 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11297 | soname_spec='${libname}${release}${shared_ext}$major' | |
11298 | ;; | |
11299 | esac | |
11300 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11301 | postinstall_cmds='chmod 555 $lib' | |
11302 | # or fails outright, so override atomically: | |
11303 | install_override_mode=555 | |
11304 | ;; | |
11305 | ||
11306 | interix[3-9]*) | |
11307 | version_type=linux | |
11308 | need_lib_prefix=no | |
11309 | need_version=no | |
11310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11311 | soname_spec='${libname}${release}${shared_ext}$major' | |
11312 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11313 | shlibpath_var=LD_LIBRARY_PATH | |
11314 | shlibpath_overrides_runpath=no | |
11315 | hardcode_into_libs=yes | |
11316 | ;; | |
11317 | ||
11318 | irix5* | irix6* | nonstopux*) | |
11319 | case $host_os in | |
11320 | nonstopux*) version_type=nonstopux ;; | |
11321 | *) | |
11322 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11323 | version_type=linux | |
11324 | else | |
11325 | version_type=irix | |
11326 | fi ;; | |
11327 | esac | |
11328 | need_lib_prefix=no | |
11329 | need_version=no | |
11330 | soname_spec='${libname}${release}${shared_ext}$major' | |
11331 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11332 | case $host_os in | |
11333 | irix5* | nonstopux*) | |
11334 | libsuff= shlibsuff= | |
11335 | ;; | |
11336 | *) | |
11337 | case $LD in # libtool.m4 will add one of these switches to LD | |
11338 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11339 | libsuff= shlibsuff= libmagic=32-bit;; | |
11340 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11341 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11342 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11343 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11344 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11345 | esac | |
11346 | ;; | |
11347 | esac | |
11348 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11349 | shlibpath_overrides_runpath=no | |
11350 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11351 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11352 | hardcode_into_libs=yes | |
11353 | ;; | |
11354 | ||
11355 | # No shared lib support for Linux oldld, aout, or coff. | |
11356 | linux*oldld* | linux*aout* | linux*coff*) | |
11357 | dynamic_linker=no | |
11358 | ;; | |
11359 | ||
11360 | # This must be Linux ELF. | |
11361 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11362 | version_type=linux | |
11363 | need_lib_prefix=no | |
11364 | need_version=no | |
11365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11366 | soname_spec='${libname}${release}${shared_ext}$major' | |
11367 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11368 | shlibpath_var=LD_LIBRARY_PATH | |
11369 | shlibpath_overrides_runpath=no | |
11370 | ||
11371 | # Some binutils ld are patched to set DT_RUNPATH | |
11372 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
11373 | $as_echo_n "(cached) " >&6 | |
11374 | else | |
11375 | lt_cv_shlibpath_overrides_runpath=no | |
11376 | save_LDFLAGS=$LDFLAGS | |
11377 | save_libdir=$libdir | |
11378 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11379 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11381 | /* end confdefs.h. */ | |
11382 | ||
11383 | int | |
11384 | main () | |
11385 | { | |
11386 | ||
11387 | ; | |
11388 | return 0; | |
11389 | } | |
11390 | _ACEOF | |
11391 | if ac_fn_c_try_link "$LINENO"; then : | |
11392 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11393 | lt_cv_shlibpath_overrides_runpath=yes | |
11394 | fi | |
11395 | fi | |
11396 | rm -f core conftest.err conftest.$ac_objext \ | |
11397 | conftest$ac_exeext conftest.$ac_ext | |
11398 | LDFLAGS=$save_LDFLAGS | |
11399 | libdir=$save_libdir | |
11400 | ||
11401 | fi | |
11402 | ||
11403 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11404 | ||
11405 | # This implies no fast_install, which is unacceptable. | |
11406 | # Some rework will be needed to allow for fast_install | |
11407 | # before this can be enabled. | |
11408 | hardcode_into_libs=yes | |
11409 | ||
11410 | # Append ld.so.conf contents to the search path | |
11411 | if test -f /etc/ld.so.conf; then | |
11412 | 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;s/"//g;/^$/d' | tr '\n' ' '` | |
11413 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11414 | fi | |
11415 | ||
11416 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11417 | # powerpc, because MkLinux only supported shared libraries with the | |
11418 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11419 | # most powerpc-linux boxes support dynamic linking these days and | |
11420 | # people can always --disable-shared, the test was removed, and we | |
11421 | # assume the GNU/Linux dynamic linker is in use. | |
11422 | dynamic_linker='GNU/Linux ld.so' | |
11423 | ;; | |
11424 | ||
11425 | netbsd*) | |
11426 | version_type=sunos | |
11427 | need_lib_prefix=no | |
11428 | need_version=no | |
11429 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11430 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11431 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11432 | dynamic_linker='NetBSD (a.out) ld.so' | |
11433 | else | |
11434 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11435 | soname_spec='${libname}${release}${shared_ext}$major' | |
11436 | dynamic_linker='NetBSD ld.elf_so' | |
11437 | fi | |
11438 | shlibpath_var=LD_LIBRARY_PATH | |
11439 | shlibpath_overrides_runpath=yes | |
11440 | hardcode_into_libs=yes | |
11441 | ;; | |
11442 | ||
11443 | newsos6) | |
11444 | version_type=linux | |
11445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11446 | shlibpath_var=LD_LIBRARY_PATH | |
11447 | shlibpath_overrides_runpath=yes | |
11448 | ;; | |
11449 | ||
11450 | *nto* | *qnx*) | |
11451 | version_type=qnx | |
11452 | need_lib_prefix=no | |
11453 | need_version=no | |
11454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11455 | soname_spec='${libname}${release}${shared_ext}$major' | |
11456 | shlibpath_var=LD_LIBRARY_PATH | |
11457 | shlibpath_overrides_runpath=no | |
11458 | hardcode_into_libs=yes | |
11459 | dynamic_linker='ldqnx.so' | |
11460 | ;; | |
11461 | ||
11462 | openbsd*) | |
11463 | version_type=sunos | |
11464 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11465 | need_lib_prefix=no | |
11466 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11467 | case $host_os in | |
11468 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11469 | *) need_version=no ;; | |
11470 | esac | |
11471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11472 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11473 | shlibpath_var=LD_LIBRARY_PATH | |
11474 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11475 | case $host_os in | |
11476 | openbsd2.[89] | openbsd2.[89].*) | |
11477 | shlibpath_overrides_runpath=no | |
11478 | ;; | |
11479 | *) | |
11480 | shlibpath_overrides_runpath=yes | |
11481 | ;; | |
11482 | esac | |
11483 | else | |
11484 | shlibpath_overrides_runpath=yes | |
11485 | fi | |
11486 | ;; | |
11487 | ||
11488 | os2*) | |
11489 | libname_spec='$name' | |
11490 | shrext_cmds=".dll" | |
11491 | need_lib_prefix=no | |
11492 | library_names_spec='$libname${shared_ext} $libname.a' | |
11493 | dynamic_linker='OS/2 ld.exe' | |
11494 | shlibpath_var=LIBPATH | |
11495 | ;; | |
11496 | ||
11497 | osf3* | osf4* | osf5*) | |
11498 | version_type=osf | |
11499 | need_lib_prefix=no | |
11500 | need_version=no | |
11501 | soname_spec='${libname}${release}${shared_ext}$major' | |
11502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11503 | shlibpath_var=LD_LIBRARY_PATH | |
11504 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11505 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11506 | ;; | |
11507 | ||
11508 | rdos*) | |
11509 | dynamic_linker=no | |
11510 | ;; | |
11511 | ||
11512 | solaris*) | |
11513 | version_type=linux | |
11514 | need_lib_prefix=no | |
11515 | need_version=no | |
11516 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11517 | soname_spec='${libname}${release}${shared_ext}$major' | |
11518 | shlibpath_var=LD_LIBRARY_PATH | |
11519 | shlibpath_overrides_runpath=yes | |
11520 | hardcode_into_libs=yes | |
11521 | # ldd complains unless libraries are executable | |
11522 | postinstall_cmds='chmod +x $lib' | |
11523 | ;; | |
11524 | ||
11525 | sunos4*) | |
11526 | version_type=sunos | |
11527 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11528 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11529 | shlibpath_var=LD_LIBRARY_PATH | |
11530 | shlibpath_overrides_runpath=yes | |
11531 | if test "$with_gnu_ld" = yes; then | |
11532 | need_lib_prefix=no | |
11533 | fi | |
11534 | need_version=yes | |
11535 | ;; | |
11536 | ||
11537 | sysv4 | sysv4.3*) | |
11538 | version_type=linux | |
11539 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11540 | soname_spec='${libname}${release}${shared_ext}$major' | |
11541 | shlibpath_var=LD_LIBRARY_PATH | |
11542 | case $host_vendor in | |
11543 | sni) | |
11544 | shlibpath_overrides_runpath=no | |
11545 | need_lib_prefix=no | |
11546 | runpath_var=LD_RUN_PATH | |
11547 | ;; | |
11548 | siemens) | |
11549 | need_lib_prefix=no | |
11550 | ;; | |
11551 | motorola) | |
11552 | need_lib_prefix=no | |
11553 | need_version=no | |
11554 | shlibpath_overrides_runpath=no | |
11555 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11556 | ;; | |
11557 | esac | |
11558 | ;; | |
11559 | ||
11560 | sysv4*MP*) | |
11561 | if test -d /usr/nec ;then | |
11562 | version_type=linux | |
11563 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11564 | soname_spec='$libname${shared_ext}.$major' | |
11565 | shlibpath_var=LD_LIBRARY_PATH | |
11566 | fi | |
11567 | ;; | |
11568 | ||
11569 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11570 | version_type=freebsd-elf | |
11571 | need_lib_prefix=no | |
11572 | need_version=no | |
11573 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11574 | soname_spec='${libname}${release}${shared_ext}$major' | |
11575 | shlibpath_var=LD_LIBRARY_PATH | |
11576 | shlibpath_overrides_runpath=yes | |
11577 | hardcode_into_libs=yes | |
11578 | if test "$with_gnu_ld" = yes; then | |
11579 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11580 | else | |
11581 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11582 | case $host_os in | |
11583 | sco3.2v5*) | |
11584 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11585 | ;; | |
11586 | esac | |
11587 | fi | |
11588 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11589 | ;; | |
11590 | ||
11591 | tpf*) | |
11592 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11593 | version_type=linux | |
11594 | need_lib_prefix=no | |
11595 | need_version=no | |
11596 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11597 | shlibpath_var=LD_LIBRARY_PATH | |
11598 | shlibpath_overrides_runpath=no | |
11599 | hardcode_into_libs=yes | |
11600 | ;; | |
11601 | ||
11602 | uts4*) | |
11603 | version_type=linux | |
11604 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11605 | soname_spec='${libname}${release}${shared_ext}$major' | |
11606 | shlibpath_var=LD_LIBRARY_PATH | |
11607 | ;; | |
11608 | ||
11609 | *) | |
11610 | dynamic_linker=no | |
11611 | ;; | |
11612 | esac | |
11613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11614 | $as_echo "$dynamic_linker" >&6; } | |
11615 | test "$dynamic_linker" = no && can_build_shared=no | |
11616 | ||
11617 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11618 | if test "$GCC" = yes; then | |
11619 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11620 | fi | |
11621 | ||
11622 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
11623 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11624 | fi | |
11625 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11626 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11627 | fi | |
11628 | ||
11629 | ||
11630 | ||
11631 | ||
11632 | ||
11633 | ||
11634 | ||
11635 | ||
11636 | ||
11637 | ||
11638 | ||
11639 | ||
11640 | ||
11641 | ||
11642 | ||
11643 | ||
11644 | ||
11645 | ||
11646 | ||
11647 | ||
11648 | ||
11649 | ||
11650 | ||
11651 | ||
11652 | ||
11653 | ||
11654 | ||
11655 | ||
11656 | ||
11657 | ||
11658 | ||
11659 | ||
11660 | ||
11661 | ||
11662 | ||
11663 | ||
11664 | ||
11665 | ||
11666 | ||
11667 | ||
11668 | ||
11669 | ||
11670 | ||
11671 | ||
11672 | ||
11673 | ||
11674 | ||
11675 | ||
11676 | ||
11677 | ||
11678 | ||
11679 | ||
11680 | ||
11681 | ||
11682 | ||
11683 | ||
11684 | ||
11685 | ||
11686 | ||
11687 | ||
11688 | ||
11689 | ||
11690 | ||
11691 | ||
11692 | ||
11693 | ||
11694 | ||
11695 | ||
11696 | ||
11697 | ||
11698 | ||
11699 | ||
11700 | ||
11701 | ||
11702 | ||
11703 | ||
11704 | ||
11705 | ||
11706 | ||
11707 | ||
11708 | ||
11709 | ||
11710 | ||
11711 | ||
11712 | ||
11713 | ||
11714 | ||
11715 | ||
11716 | ||
11717 | ||
11718 | ||
11719 | ||
11720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11721 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11722 | hardcode_action= | |
11723 | if test -n "$hardcode_libdir_flag_spec" || | |
11724 | test -n "$runpath_var" || | |
11725 | test "X$hardcode_automatic" = "Xyes" ; then | |
11726 | ||
11727 | # We can hardcode non-existent directories. | |
11728 | if test "$hardcode_direct" != no && | |
11729 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11730 | # have to relink, otherwise we might link with an installed library | |
11731 | # when we should be linking with a yet-to-be-installed one | |
11732 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11733 | test "$hardcode_minus_L" != no; then | |
11734 | # Linking always hardcodes the temporary library directory. | |
11735 | hardcode_action=relink | |
11736 | else | |
11737 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11738 | hardcode_action=immediate | |
11739 | fi | |
11740 | else | |
11741 | # We cannot hardcode anything, or else we can only hardcode existing | |
11742 | # directories. | |
11743 | hardcode_action=unsupported | |
11744 | fi | |
11745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11746 | $as_echo "$hardcode_action" >&6; } | |
11747 | ||
11748 | if test "$hardcode_action" = relink || | |
11749 | test "$inherit_rpath" = yes; then | |
11750 | # Fast installation is not supported | |
11751 | enable_fast_install=no | |
11752 | elif test "$shlibpath_overrides_runpath" = yes || | |
11753 | test "$enable_shared" = no; then | |
11754 | # Fast installation is not necessary | |
11755 | enable_fast_install=needless | |
11756 | fi | |
11757 | ||
11758 | ||
11759 | ||
11760 | ||
11761 | ||
11762 | ||
11763 | if test "x$enable_dlopen" != xyes; then | |
11764 | enable_dlopen=unknown | |
11765 | enable_dlopen_self=unknown | |
11766 | enable_dlopen_self_static=unknown | |
11767 | else | |
11768 | lt_cv_dlopen=no | |
11769 | lt_cv_dlopen_libs= | |
11770 | ||
11771 | case $host_os in | |
11772 | beos*) | |
11773 | lt_cv_dlopen="load_add_on" | |
11774 | lt_cv_dlopen_libs= | |
11775 | lt_cv_dlopen_self=yes | |
11776 | ;; | |
11777 | ||
11778 | mingw* | pw32* | cegcc*) | |
11779 | lt_cv_dlopen="LoadLibrary" | |
11780 | lt_cv_dlopen_libs= | |
11781 | ;; | |
11782 | ||
11783 | cygwin*) | |
11784 | lt_cv_dlopen="dlopen" | |
11785 | lt_cv_dlopen_libs= | |
11786 | ;; | |
11787 | ||
11788 | darwin*) | |
11789 | # if libdl is installed we need to link against it | |
11790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11791 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11792 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11793 | $as_echo_n "(cached) " >&6 | |
11794 | else | |
11795 | ac_check_lib_save_LIBS=$LIBS | |
11796 | LIBS="-ldl $LIBS" | |
11797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11798 | /* end confdefs.h. */ | |
11799 | ||
11800 | /* Override any GCC internal prototype to avoid an error. | |
11801 | Use char because int might match the return type of a GCC | |
11802 | builtin and then its argument prototype would still apply. */ | |
11803 | #ifdef __cplusplus | |
11804 | extern "C" | |
11805 | #endif | |
11806 | char dlopen (); | |
11807 | int | |
11808 | main () | |
11809 | { | |
11810 | return dlopen (); | |
11811 | ; | |
11812 | return 0; | |
11813 | } | |
11814 | _ACEOF | |
11815 | if ac_fn_c_try_link "$LINENO"; then : | |
11816 | ac_cv_lib_dl_dlopen=yes | |
11817 | else | |
11818 | ac_cv_lib_dl_dlopen=no | |
11819 | fi | |
11820 | rm -f core conftest.err conftest.$ac_objext \ | |
11821 | conftest$ac_exeext conftest.$ac_ext | |
11822 | LIBS=$ac_check_lib_save_LIBS | |
11823 | fi | |
11824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11825 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11826 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11827 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11828 | else | |
11829 | ||
11830 | lt_cv_dlopen="dyld" | |
11831 | lt_cv_dlopen_libs= | |
11832 | lt_cv_dlopen_self=yes | |
11833 | ||
11834 | fi | |
11835 | ||
11836 | ;; | |
11837 | ||
11838 | *) | |
11839 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11840 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
11841 | lt_cv_dlopen="shl_load" | |
11842 | else | |
11843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11844 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11845 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11846 | $as_echo_n "(cached) " >&6 | |
11847 | else | |
11848 | ac_check_lib_save_LIBS=$LIBS | |
11849 | LIBS="-ldld $LIBS" | |
11850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11851 | /* end confdefs.h. */ | |
11852 | ||
11853 | /* Override any GCC internal prototype to avoid an error. | |
11854 | Use char because int might match the return type of a GCC | |
11855 | builtin and then its argument prototype would still apply. */ | |
11856 | #ifdef __cplusplus | |
11857 | extern "C" | |
11858 | #endif | |
11859 | char shl_load (); | |
a48ff3ef MF |
11860 | int |
11861 | main () | |
11862 | { | |
b5689863 | 11863 | return shl_load (); |
a48ff3ef MF |
11864 | ; |
11865 | return 0; | |
11866 | } | |
11867 | _ACEOF | |
11868 | if ac_fn_c_try_link "$LINENO"; then : | |
b5689863 | 11869 | ac_cv_lib_dld_shl_load=yes |
a48ff3ef | 11870 | else |
b5689863 | 11871 | ac_cv_lib_dld_shl_load=no |
a48ff3ef MF |
11872 | fi |
11873 | rm -f core conftest.err conftest.$ac_objext \ | |
11874 | conftest$ac_exeext conftest.$ac_ext | |
b5689863 | 11875 | LIBS=$ac_check_lib_save_LIBS |
a48ff3ef | 11876 | fi |
b5689863 MF |
11877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11878 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11879 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11880 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
11881 | else | |
11882 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11883 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
11884 | lt_cv_dlopen="dlopen" | |
11885 | else | |
11886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11887 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11888 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11889 | $as_echo_n "(cached) " >&6 | |
11890 | else | |
11891 | ac_check_lib_save_LIBS=$LIBS | |
11892 | LIBS="-ldl $LIBS" | |
11893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11894 | /* end confdefs.h. */ | |
a48ff3ef | 11895 | |
b5689863 MF |
11896 | /* Override any GCC internal prototype to avoid an error. |
11897 | Use char because int might match the return type of a GCC | |
11898 | builtin and then its argument prototype would still apply. */ | |
11899 | #ifdef __cplusplus | |
11900 | extern "C" | |
11901 | #endif | |
11902 | char dlopen (); | |
11903 | int | |
11904 | main () | |
11905 | { | |
11906 | return dlopen (); | |
11907 | ; | |
11908 | return 0; | |
11909 | } | |
11910 | _ACEOF | |
11911 | if ac_fn_c_try_link "$LINENO"; then : | |
11912 | ac_cv_lib_dl_dlopen=yes | |
11913 | else | |
11914 | ac_cv_lib_dl_dlopen=no | |
a48ff3ef | 11915 | fi |
b5689863 MF |
11916 | rm -f core conftest.err conftest.$ac_objext \ |
11917 | conftest$ac_exeext conftest.$ac_ext | |
11918 | LIBS=$ac_check_lib_save_LIBS | |
11919 | fi | |
11920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11921 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11922 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11923 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11924 | else | |
11925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11926 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11927 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
11928 | $as_echo_n "(cached) " >&6 | |
11929 | else | |
11930 | ac_check_lib_save_LIBS=$LIBS | |
11931 | LIBS="-lsvld $LIBS" | |
11932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11933 | /* end confdefs.h. */ | |
a48ff3ef | 11934 | |
b5689863 MF |
11935 | /* Override any GCC internal prototype to avoid an error. |
11936 | Use char because int might match the return type of a GCC | |
11937 | builtin and then its argument prototype would still apply. */ | |
11938 | #ifdef __cplusplus | |
11939 | extern "C" | |
b15c5d7a | 11940 | #endif |
b5689863 MF |
11941 | char dlopen (); |
11942 | int | |
11943 | main () | |
11944 | { | |
11945 | return dlopen (); | |
11946 | ; | |
11947 | return 0; | |
11948 | } | |
b15c5d7a | 11949 | _ACEOF |
b5689863 MF |
11950 | if ac_fn_c_try_link "$LINENO"; then : |
11951 | ac_cv_lib_svld_dlopen=yes | |
11952 | else | |
11953 | ac_cv_lib_svld_dlopen=no | |
b15c5d7a | 11954 | fi |
b5689863 MF |
11955 | rm -f core conftest.err conftest.$ac_objext \ |
11956 | conftest$ac_exeext conftest.$ac_ext | |
11957 | LIBS=$ac_check_lib_save_LIBS | |
11958 | fi | |
11959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11960 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11961 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11962 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11963 | else | |
11964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11965 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11966 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11967 | $as_echo_n "(cached) " >&6 | |
11968 | else | |
11969 | ac_check_lib_save_LIBS=$LIBS | |
11970 | LIBS="-ldld $LIBS" | |
11971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11972 | /* end confdefs.h. */ | |
b15c5d7a | 11973 | |
b5689863 MF |
11974 | /* Override any GCC internal prototype to avoid an error. |
11975 | Use char because int might match the return type of a GCC | |
11976 | builtin and then its argument prototype would still apply. */ | |
11977 | #ifdef __cplusplus | |
11978 | extern "C" | |
11979 | #endif | |
11980 | char dld_link (); | |
11981 | int | |
11982 | main () | |
11983 | { | |
11984 | return dld_link (); | |
11985 | ; | |
11986 | return 0; | |
11987 | } | |
b15c5d7a | 11988 | _ACEOF |
b5689863 MF |
11989 | if ac_fn_c_try_link "$LINENO"; then : |
11990 | ac_cv_lib_dld_dld_link=yes | |
11991 | else | |
11992 | ac_cv_lib_dld_dld_link=no | |
11993 | fi | |
11994 | rm -f core conftest.err conftest.$ac_objext \ | |
11995 | conftest$ac_exeext conftest.$ac_ext | |
11996 | LIBS=$ac_check_lib_save_LIBS | |
11997 | fi | |
11998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11999 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12000 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
12001 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
12002 | fi | |
b15c5d7a MF |
12003 | |
12004 | ||
12005 | fi | |
b15c5d7a | 12006 | |
b5689863 MF |
12007 | |
12008 | fi | |
b15c5d7a MF |
12009 | |
12010 | ||
12011 | fi | |
b15c5d7a | 12012 | |
b5689863 MF |
12013 | |
12014 | fi | |
b15c5d7a MF |
12015 | |
12016 | ||
12017 | fi | |
b15c5d7a | 12018 | |
b5689863 MF |
12019 | ;; |
12020 | esac | |
b15c5d7a | 12021 | |
b5689863 MF |
12022 | if test "x$lt_cv_dlopen" != xno; then |
12023 | enable_dlopen=yes | |
12024 | else | |
12025 | enable_dlopen=no | |
12026 | fi | |
b15c5d7a | 12027 | |
b5689863 MF |
12028 | case $lt_cv_dlopen in |
12029 | dlopen) | |
12030 | save_CPPFLAGS="$CPPFLAGS" | |
12031 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
b15c5d7a | 12032 | |
b5689863 MF |
12033 | save_LDFLAGS="$LDFLAGS" |
12034 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
b15c5d7a | 12035 | |
b5689863 MF |
12036 | save_LIBS="$LIBS" |
12037 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
b15c5d7a | 12038 | |
b5689863 MF |
12039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12040 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12041 | if ${lt_cv_dlopen_self+:} false; then : | |
12042 | $as_echo_n "(cached) " >&6 | |
12043 | else | |
12044 | if test "$cross_compiling" = yes; then : | |
12045 | lt_cv_dlopen_self=cross | |
12046 | else | |
12047 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12048 | lt_status=$lt_dlunknown | |
12049 | cat > conftest.$ac_ext <<_LT_EOF | |
456ef1c1 | 12050 | #line 12050 "configure" |
b5689863 MF |
12051 | #include "confdefs.h" |
12052 | ||
12053 | #if HAVE_DLFCN_H | |
12054 | #include <dlfcn.h> | |
b15c5d7a | 12055 | #endif |
b15c5d7a | 12056 | |
b5689863 | 12057 | #include <stdio.h> |
b15c5d7a | 12058 | |
b5689863 MF |
12059 | #ifdef RTLD_GLOBAL |
12060 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12061 | #else | |
12062 | # ifdef DL_GLOBAL | |
12063 | # define LT_DLGLOBAL DL_GLOBAL | |
12064 | # else | |
12065 | # define LT_DLGLOBAL 0 | |
12066 | # endif | |
12067 | #endif | |
b15c5d7a | 12068 | |
b5689863 MF |
12069 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12070 | find out it does not work in some platform. */ | |
12071 | #ifndef LT_DLLAZY_OR_NOW | |
12072 | # ifdef RTLD_LAZY | |
12073 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12074 | # else | |
12075 | # ifdef DL_LAZY | |
12076 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12077 | # else | |
12078 | # ifdef RTLD_NOW | |
12079 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12080 | # else | |
12081 | # ifdef DL_NOW | |
12082 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12083 | # else | |
12084 | # define LT_DLLAZY_OR_NOW 0 | |
12085 | # endif | |
12086 | # endif | |
12087 | # endif | |
12088 | # endif | |
b15c5d7a | 12089 | #endif |
b5689863 MF |
12090 | |
12091 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12092 | correspondingly for the symbols needed. */ | |
12093 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12094 | void fnord () __attribute__((visibility("default"))); | |
b15c5d7a | 12095 | #endif |
b15c5d7a | 12096 | |
b5689863 MF |
12097 | void fnord () { int i=42; } |
12098 | int main () | |
12099 | { | |
12100 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12101 | int status = $lt_dlunknown; | |
b15c5d7a | 12102 | |
b5689863 MF |
12103 | if (self) |
12104 | { | |
12105 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12106 | else | |
12107 | { | |
12108 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12109 | else puts (dlerror ()); | |
12110 | } | |
12111 | /* dlclose (self); */ | |
12112 | } | |
12113 | else | |
12114 | puts (dlerror ()); | |
b15c5d7a | 12115 | |
b5689863 MF |
12116 | return status; |
12117 | } | |
12118 | _LT_EOF | |
12119 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12120 | (eval $ac_link) 2>&5 | |
12121 | ac_status=$? | |
12122 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12123 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12124 | (./conftest; exit; ) >&5 2>/dev/null | |
12125 | lt_status=$? | |
12126 | case x$lt_status in | |
12127 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12128 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12129 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12130 | esac | |
12131 | else : | |
12132 | # compilation failed | |
12133 | lt_cv_dlopen_self=no | |
12134 | fi | |
b15c5d7a | 12135 | fi |
b5689863 | 12136 | rm -fr conftest* |
b15c5d7a MF |
12137 | |
12138 | ||
12139 | fi | |
b5689863 MF |
12140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12141 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12142 | ||
12143 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12144 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12146 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12147 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12148 | $as_echo_n "(cached) " >&6 | |
12149 | else | |
12150 | if test "$cross_compiling" = yes; then : | |
12151 | lt_cv_dlopen_self_static=cross | |
12152 | else | |
12153 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12154 | lt_status=$lt_dlunknown | |
12155 | cat > conftest.$ac_ext <<_LT_EOF | |
456ef1c1 | 12156 | #line 12156 "configure" |
b5689863 MF |
12157 | #include "confdefs.h" |
12158 | ||
12159 | #if HAVE_DLFCN_H | |
12160 | #include <dlfcn.h> | |
b15c5d7a | 12161 | #endif |
b15c5d7a | 12162 | |
b5689863 | 12163 | #include <stdio.h> |
b15c5d7a | 12164 | |
b5689863 MF |
12165 | #ifdef RTLD_GLOBAL |
12166 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12167 | #else | |
12168 | # ifdef DL_GLOBAL | |
12169 | # define LT_DLGLOBAL DL_GLOBAL | |
12170 | # else | |
12171 | # define LT_DLGLOBAL 0 | |
12172 | # endif | |
12173 | #endif | |
b15c5d7a | 12174 | |
b5689863 MF |
12175 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12176 | find out it does not work in some platform. */ | |
12177 | #ifndef LT_DLLAZY_OR_NOW | |
12178 | # ifdef RTLD_LAZY | |
12179 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12180 | # else | |
12181 | # ifdef DL_LAZY | |
12182 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12183 | # else | |
12184 | # ifdef RTLD_NOW | |
12185 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12186 | # else | |
12187 | # ifdef DL_NOW | |
12188 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12189 | # else | |
12190 | # define LT_DLLAZY_OR_NOW 0 | |
12191 | # endif | |
12192 | # endif | |
12193 | # endif | |
12194 | # endif | |
b15c5d7a | 12195 | #endif |
b5689863 MF |
12196 | |
12197 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12198 | correspondingly for the symbols needed. */ | |
12199 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12200 | void fnord () __attribute__((visibility("default"))); | |
b15c5d7a | 12201 | #endif |
b15c5d7a | 12202 | |
b5689863 MF |
12203 | void fnord () { int i=42; } |
12204 | int main () | |
12205 | { | |
12206 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12207 | int status = $lt_dlunknown; | |
12208 | ||
12209 | if (self) | |
12210 | { | |
12211 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12212 | else | |
12213 | { | |
12214 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12215 | else puts (dlerror ()); | |
12216 | } | |
12217 | /* dlclose (self); */ | |
12218 | } | |
12219 | else | |
12220 | puts (dlerror ()); | |
12221 | ||
12222 | return status; | |
12223 | } | |
12224 | _LT_EOF | |
12225 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12226 | (eval $ac_link) 2>&5 | |
12227 | ac_status=$? | |
12228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12229 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12230 | (./conftest; exit; ) >&5 2>/dev/null | |
12231 | lt_status=$? | |
12232 | case x$lt_status in | |
12233 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12234 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12235 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12236 | esac | |
12237 | else : | |
12238 | # compilation failed | |
12239 | lt_cv_dlopen_self_static=no | |
12240 | fi | |
12241 | fi | |
12242 | rm -fr conftest* | |
b15c5d7a MF |
12243 | |
12244 | ||
12245 | fi | |
b5689863 MF |
12246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12247 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12248 | fi | |
b15c5d7a | 12249 | |
b5689863 MF |
12250 | CPPFLAGS="$save_CPPFLAGS" |
12251 | LDFLAGS="$save_LDFLAGS" | |
12252 | LIBS="$save_LIBS" | |
12253 | ;; | |
12254 | esac | |
b15c5d7a | 12255 | |
b5689863 MF |
12256 | case $lt_cv_dlopen_self in |
12257 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12258 | *) enable_dlopen_self=unknown ;; | |
12259 | esac | |
b15c5d7a | 12260 | |
b5689863 MF |
12261 | case $lt_cv_dlopen_self_static in |
12262 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12263 | *) enable_dlopen_self_static=unknown ;; | |
12264 | esac | |
b15c5d7a | 12265 | fi |
b15c5d7a | 12266 | |
b15c5d7a MF |
12267 | |
12268 | ||
b15c5d7a MF |
12269 | |
12270 | ||
b15c5d7a | 12271 | |
b15c5d7a MF |
12272 | |
12273 | ||
b15c5d7a | 12274 | |
b15c5d7a | 12275 | |
b15c5d7a | 12276 | |
b15c5d7a MF |
12277 | |
12278 | ||
b15c5d7a MF |
12279 | |
12280 | ||
a48ff3ef | 12281 | |
a48ff3ef | 12282 | |
b5689863 MF |
12283 | striplib= |
12284 | old_striplib= | |
12285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12286 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12287 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12288 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12289 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12291 | $as_echo "yes" >&6; } | |
a48ff3ef | 12292 | else |
b5689863 MF |
12293 | # FIXME - insert some real tests, host_os isn't really good enough |
12294 | case $host_os in | |
12295 | darwin*) | |
12296 | if test -n "$STRIP" ; then | |
12297 | striplib="$STRIP -x" | |
12298 | old_striplib="$STRIP -S" | |
12299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12300 | $as_echo "yes" >&6; } | |
12301 | else | |
12302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12303 | $as_echo "no" >&6; } | |
12304 | fi | |
12305 | ;; | |
12306 | *) | |
12307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12308 | $as_echo "no" >&6; } | |
12309 | ;; | |
12310 | esac | |
a48ff3ef MF |
12311 | fi |
12312 | ||
a48ff3ef | 12313 | |
a48ff3ef | 12314 | |
a48ff3ef | 12315 | |
a48ff3ef MF |
12316 | |
12317 | ||
a48ff3ef | 12318 | |
a48ff3ef | 12319 | |
a48ff3ef | 12320 | |
a48ff3ef | 12321 | |
a48ff3ef | 12322 | |
a48ff3ef | 12323 | |
b5689863 MF |
12324 | # Report which library types will actually be built |
12325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12326 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12328 | $as_echo "$can_build_shared" >&6; } | |
a48ff3ef | 12329 | |
b5689863 MF |
12330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12331 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12332 | test "$can_build_shared" = "no" && enable_shared=no | |
a48ff3ef | 12333 | |
b5689863 MF |
12334 | # On AIX, shared libraries and static libraries use the same namespace, and |
12335 | # are all built from PIC. | |
12336 | case $host_os in | |
12337 | aix3*) | |
12338 | test "$enable_shared" = yes && enable_static=no | |
12339 | if test -n "$RANLIB"; then | |
12340 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12341 | postinstall_cmds='$RANLIB $lib' | |
12342 | fi | |
12343 | ;; | |
a48ff3ef | 12344 | |
b5689863 MF |
12345 | aix[4-9]*) |
12346 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12347 | test "$enable_shared" = yes && enable_static=no | |
12348 | fi | |
12349 | ;; | |
12350 | esac | |
12351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12352 | $as_echo "$enable_shared" >&6; } | |
12353 | ||
12354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12355 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12356 | # Make sure either enable_shared or enable_static is yes. | |
12357 | test "$enable_shared" = yes || enable_static=yes | |
12358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12359 | $as_echo "$enable_static" >&6; } | |
a48ff3ef | 12360 | |
a48ff3ef | 12361 | |
a48ff3ef | 12362 | |
b15c5d7a | 12363 | |
b15c5d7a | 12364 | fi |
b5689863 MF |
12365 | ac_ext=c |
12366 | ac_cpp='$CPP $CPPFLAGS' | |
12367 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12368 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12369 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b15c5d7a | 12370 | |
b5689863 | 12371 | CC="$lt_save_CC" |
b15c5d7a MF |
12372 | |
12373 | ||
a48ff3ef | 12374 | |
a48ff3ef | 12375 | |
a48ff3ef | 12376 | |
a48ff3ef | 12377 | |
a48ff3ef | 12378 | |
a48ff3ef | 12379 | |
a48ff3ef | 12380 | |
a48ff3ef MF |
12381 | |
12382 | ||
a48ff3ef | 12383 | |
b5689863 MF |
12384 | |
12385 | ac_config_commands="$ac_config_commands libtool" | |
12386 | ||
12387 | ||
12388 | ||
12389 | ||
12390 | # Only expand once: | |
12391 | ||
12392 | ||
a48ff3ef | 12393 | |
b15c5d7a | 12394 | |
07490bf8 MF |
12395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5 |
12396 | $as_echo_n "checking for bind in -lsocket... " >&6; } | |
12397 | if ${ac_cv_lib_socket_bind+:} false; then : | |
12398 | $as_echo_n "(cached) " >&6 | |
12399 | else | |
12400 | ac_check_lib_save_LIBS=$LIBS | |
12401 | LIBS="-lsocket $LIBS" | |
12402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12403 | /* end confdefs.h. */ | |
12404 | ||
12405 | /* Override any GCC internal prototype to avoid an error. | |
12406 | Use char because int might match the return type of a GCC | |
12407 | builtin and then its argument prototype would still apply. */ | |
12408 | #ifdef __cplusplus | |
12409 | extern "C" | |
12410 | #endif | |
12411 | char bind (); | |
12412 | int | |
12413 | main () | |
12414 | { | |
12415 | return bind (); | |
12416 | ; | |
12417 | return 0; | |
12418 | } | |
12419 | _ACEOF | |
12420 | if ac_fn_c_try_link "$LINENO"; then : | |
12421 | ac_cv_lib_socket_bind=yes | |
12422 | else | |
12423 | ac_cv_lib_socket_bind=no | |
12424 | fi | |
12425 | rm -f core conftest.err conftest.$ac_objext \ | |
12426 | conftest$ac_exeext conftest.$ac_ext | |
12427 | LIBS=$ac_check_lib_save_LIBS | |
12428 | fi | |
12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5 | |
12430 | $as_echo "$ac_cv_lib_socket_bind" >&6; } | |
12431 | if test "x$ac_cv_lib_socket_bind" = xyes; then : | |
12432 | cat >>confdefs.h <<_ACEOF | |
12433 | #define HAVE_LIBSOCKET 1 | |
12434 | _ACEOF | |
12435 | ||
12436 | LIBS="-lsocket $LIBS" | |
12437 | ||
12438 | fi | |
12439 | ||
12440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | |
12441 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | |
12442 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : | |
12443 | $as_echo_n "(cached) " >&6 | |
12444 | else | |
12445 | ac_check_lib_save_LIBS=$LIBS | |
12446 | LIBS="-lnsl $LIBS" | |
12447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12448 | /* end confdefs.h. */ | |
12449 | ||
12450 | /* Override any GCC internal prototype to avoid an error. | |
12451 | Use char because int might match the return type of a GCC | |
12452 | builtin and then its argument prototype would still apply. */ | |
12453 | #ifdef __cplusplus | |
12454 | extern "C" | |
12455 | #endif | |
12456 | char gethostbyname (); | |
12457 | int | |
12458 | main () | |
12459 | { | |
12460 | return gethostbyname (); | |
12461 | ; | |
12462 | return 0; | |
12463 | } | |
12464 | _ACEOF | |
12465 | if ac_fn_c_try_link "$LINENO"; then : | |
12466 | ac_cv_lib_nsl_gethostbyname=yes | |
12467 | else | |
12468 | ac_cv_lib_nsl_gethostbyname=no | |
12469 | fi | |
12470 | rm -f core conftest.err conftest.$ac_objext \ | |
12471 | conftest$ac_exeext conftest.$ac_ext | |
12472 | LIBS=$ac_check_lib_save_LIBS | |
12473 | fi | |
12474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
12475 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | |
12476 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : | |
12477 | cat >>confdefs.h <<_ACEOF | |
12478 | #define HAVE_LIBNSL 1 | |
12479 | _ACEOF | |
12480 | ||
12481 | LIBS="-lnsl $LIBS" | |
12482 | ||
12483 | fi | |
12484 | ||
12485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5 | |
12486 | $as_echo_n "checking for fabs in -lm... " >&6; } | |
12487 | if ${ac_cv_lib_m_fabs+:} false; then : | |
12488 | $as_echo_n "(cached) " >&6 | |
12489 | else | |
12490 | ac_check_lib_save_LIBS=$LIBS | |
12491 | LIBS="-lm $LIBS" | |
12492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12493 | /* end confdefs.h. */ | |
12494 | ||
12495 | /* Override any GCC internal prototype to avoid an error. | |
12496 | Use char because int might match the return type of a GCC | |
12497 | builtin and then its argument prototype would still apply. */ | |
12498 | #ifdef __cplusplus | |
12499 | extern "C" | |
12500 | #endif | |
12501 | char fabs (); | |
12502 | int | |
12503 | main () | |
12504 | { | |
12505 | return fabs (); | |
12506 | ; | |
12507 | return 0; | |
12508 | } | |
12509 | _ACEOF | |
12510 | if ac_fn_c_try_link "$LINENO"; then : | |
12511 | ac_cv_lib_m_fabs=yes | |
12512 | else | |
12513 | ac_cv_lib_m_fabs=no | |
12514 | fi | |
12515 | rm -f core conftest.err conftest.$ac_objext \ | |
12516 | conftest$ac_exeext conftest.$ac_ext | |
12517 | LIBS=$ac_check_lib_save_LIBS | |
12518 | fi | |
12519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5 | |
12520 | $as_echo "$ac_cv_lib_m_fabs" >&6; } | |
12521 | if test "x$ac_cv_lib_m_fabs" = xyes; then : | |
12522 | cat >>confdefs.h <<_ACEOF | |
12523 | #define HAVE_LIBM 1 | |
12524 | _ACEOF | |
12525 | ||
12526 | LIBS="-lm $LIBS" | |
12527 | ||
12528 | fi | |
12529 | ||
12530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5 | |
12531 | $as_echo_n "checking for log2 in -lm... " >&6; } | |
12532 | if ${ac_cv_lib_m_log2+:} false; then : | |
12533 | $as_echo_n "(cached) " >&6 | |
12534 | else | |
12535 | ac_check_lib_save_LIBS=$LIBS | |
12536 | LIBS="-lm $LIBS" | |
12537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12538 | /* end confdefs.h. */ | |
12539 | ||
12540 | /* Override any GCC internal prototype to avoid an error. | |
12541 | Use char because int might match the return type of a GCC | |
12542 | builtin and then its argument prototype would still apply. */ | |
12543 | #ifdef __cplusplus | |
12544 | extern "C" | |
12545 | #endif | |
12546 | char log2 (); | |
12547 | int | |
12548 | main () | |
12549 | { | |
12550 | return log2 (); | |
12551 | ; | |
12552 | return 0; | |
12553 | } | |
12554 | _ACEOF | |
12555 | if ac_fn_c_try_link "$LINENO"; then : | |
12556 | ac_cv_lib_m_log2=yes | |
12557 | else | |
12558 | ac_cv_lib_m_log2=no | |
12559 | fi | |
12560 | rm -f core conftest.err conftest.$ac_objext \ | |
12561 | conftest$ac_exeext conftest.$ac_ext | |
12562 | LIBS=$ac_check_lib_save_LIBS | |
12563 | fi | |
12564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5 | |
12565 | $as_echo "$ac_cv_lib_m_log2" >&6; } | |
12566 | if test "x$ac_cv_lib_m_log2" = xyes; then : | |
12567 | cat >>confdefs.h <<_ACEOF | |
12568 | #define HAVE_LIBM 1 | |
12569 | _ACEOF | |
12570 | ||
12571 | LIBS="-lm $LIBS" | |
12572 | ||
12573 | fi | |
12574 | ||
12575 | ||
b15c5d7a MF |
12576 | |
12577 | ||
12578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
12579 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
12580 | # Check whether --enable-maintainer-mode was given. | |
12581 | if test "${enable_maintainer_mode+set}" = set; then : | |
12582 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
12583 | else | |
12584 | USE_MAINTAINER_MODE=no | |
12585 | fi | |
12586 | ||
12587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
12588 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
12589 | if test $USE_MAINTAINER_MODE = yes; then | |
12590 | MAINTAINER_MODE_TRUE= | |
12591 | MAINTAINER_MODE_FALSE='#' | |
12592 | else | |
12593 | MAINTAINER_MODE_TRUE='#' | |
12594 | MAINTAINER_MODE_FALSE= | |
12595 | fi | |
12596 | ||
12597 | MAINT=$MAINTAINER_MODE_TRUE | |
12598 | ||
12599 | ||
12600 | am__api_version='1.15' | |
12601 | ||
12602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
12603 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
12604 | # Reject unsafe characters in $srcdir or the absolute working directory | |
12605 | # name. Accept space and tab only in the latter. | |
12606 | am_lf=' | |
12607 | ' | |
12608 | case `pwd` in | |
12609 | *[\\\"\#\$\&\'\`$am_lf]*) | |
12610 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
12611 | esac | |
12612 | case $srcdir in | |
12613 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
12614 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
12615 | esac | |
12616 | ||
12617 | # Do 'set' in a subshell so we don't clobber the current shell's | |
12618 | # arguments. Must try -L first in case configure is actually a | |
12619 | # symlink; some systems play weird games with the mod time of symlinks | |
12620 | # (eg FreeBSD returns the mod time of the symlink's containing | |
12621 | # directory). | |
12622 | if ( | |
12623 | am_has_slept=no | |
12624 | for am_try in 1 2; do | |
12625 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
12626 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
12627 | if test "$*" = "X"; then | |
12628 | # -L didn't work. | |
12629 | set X `ls -t "$srcdir/configure" conftest.file` | |
12630 | fi | |
12631 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
12632 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
12633 | ||
12634 | # If neither matched, then we have a broken ls. This can happen | |
12635 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
12636 | # broken ls alias from the environment. This has actually | |
12637 | # happened. Such a system could not be considered "sane". | |
12638 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
12639 | alias in your environment" "$LINENO" 5 | |
12640 | fi | |
12641 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
12642 | break | |
12643 | fi | |
12644 | # Just in case. | |
12645 | sleep 1 | |
12646 | am_has_slept=yes | |
12647 | done | |
12648 | test "$2" = conftest.file | |
12649 | ) | |
12650 | then | |
12651 | # Ok. | |
12652 | : | |
12653 | else | |
12654 | as_fn_error $? "newly created file is older than distributed files! | |
12655 | Check your system clock" "$LINENO" 5 | |
12656 | fi | |
12657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12658 | $as_echo "yes" >&6; } | |
12659 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
12660 | # generated files are strictly newer. | |
12661 | am_sleep_pid= | |
12662 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
12663 | ( sleep 1 ) & | |
12664 | am_sleep_pid=$! | |
12665 | fi | |
12666 | ||
12667 | rm -f conftest.file | |
12668 | ||
12669 | if test x"${MISSING+set}" != xset; then | |
12670 | case $am_aux_dir in | |
12671 | *\ * | *\ *) | |
12672 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
12673 | *) | |
12674 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
12675 | esac | |
12676 | fi | |
12677 | # Use eval to expand $SHELL | |
12678 | if eval "$MISSING --is-lightweight"; then | |
12679 | am_missing_run="$MISSING " | |
c2783492 MF |
12680 | else |
12681 | am_missing_run= | |
12682 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
12683 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
12684 | fi | |
12685 | ||
12686 | if test x"${install_sh+set}" != xset; then | |
12687 | case $am_aux_dir in | |
12688 | *\ * | *\ *) | |
12689 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
12690 | *) | |
12691 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
12692 | esac | |
12693 | fi | |
12694 | ||
12695 | # Installed binaries are usually stripped using 'strip' when the user | |
12696 | # run "make install-strip". However 'strip' might not be the right | |
12697 | # tool to use in cross-compilation environments, therefore Automake | |
12698 | # will honor the 'STRIP' environment variable to overrule this program. | |
12699 | if test "$cross_compiling" != no; then | |
12700 | if test -n "$ac_tool_prefix"; then | |
12701 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
12702 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
12703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12704 | $as_echo_n "checking for $ac_word... " >&6; } | |
12705 | if ${ac_cv_prog_STRIP+:} false; then : | |
12706 | $as_echo_n "(cached) " >&6 | |
12707 | else | |
12708 | if test -n "$STRIP"; then | |
12709 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12710 | else | |
12711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12712 | for as_dir in $PATH | |
12713 | do | |
12714 | IFS=$as_save_IFS | |
12715 | test -z "$as_dir" && as_dir=. | |
12716 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12717 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12718 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
12719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12720 | break 2 | |
81ecdfbb | 12721 | fi |
81ecdfbb | 12722 | done |
c2783492 MF |
12723 | done |
12724 | IFS=$as_save_IFS | |
b7026657 | 12725 | |
c906108c | 12726 | fi |
b7026657 | 12727 | fi |
c2783492 MF |
12728 | STRIP=$ac_cv_prog_STRIP |
12729 | if test -n "$STRIP"; then | |
12730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
12731 | $as_echo "$STRIP" >&6; } | |
81ecdfbb | 12732 | else |
c2783492 MF |
12733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12734 | $as_echo "no" >&6; } | |
81ecdfbb | 12735 | fi |
b7026657 | 12736 | |
b7026657 | 12737 | |
c2783492 MF |
12738 | fi |
12739 | if test -z "$ac_cv_prog_STRIP"; then | |
12740 | ac_ct_STRIP=$STRIP | |
12741 | # Extract the first word of "strip", so it can be a program name with args. | |
12742 | set dummy strip; ac_word=$2 | |
12743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12744 | $as_echo_n "checking for $ac_word... " >&6; } | |
12745 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
12746 | $as_echo_n "(cached) " >&6 | |
c906108c | 12747 | else |
c2783492 MF |
12748 | if test -n "$ac_ct_STRIP"; then |
12749 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
81ecdfbb | 12750 | else |
c2783492 MF |
12751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12752 | for as_dir in $PATH | |
12753 | do | |
12754 | IFS=$as_save_IFS | |
12755 | test -z "$as_dir" && as_dir=. | |
12756 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12757 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12758 | ac_cv_prog_ac_ct_STRIP="strip" | |
12759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12760 | break 2 | |
12761 | fi | |
12762 | done | |
12763 | done | |
12764 | IFS=$as_save_IFS | |
81ecdfbb | 12765 | |
81ecdfbb | 12766 | fi |
df1756f4 | 12767 | fi |
c2783492 MF |
12768 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
12769 | if test -n "$ac_ct_STRIP"; then | |
12770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
12771 | $as_echo "$ac_ct_STRIP" >&6; } | |
12772 | else | |
12773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12774 | $as_echo "no" >&6; } | |
b7026657 | 12775 | fi |
c2783492 MF |
12776 | |
12777 | if test "x$ac_ct_STRIP" = x; then | |
12778 | STRIP=":" | |
c906108c | 12779 | else |
c2783492 MF |
12780 | case $cross_compiling:$ac_tool_warned in |
12781 | yes:) | |
12782 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12783 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12784 | ac_tool_warned=yes ;; | |
12785 | esac | |
12786 | STRIP=$ac_ct_STRIP | |
c906108c SS |
12787 | fi |
12788 | else | |
c2783492 | 12789 | STRIP="$ac_cv_prog_STRIP" |
c906108c | 12790 | fi |
81ecdfbb | 12791 | |
b7026657 | 12792 | fi |
c2783492 | 12793 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
b7026657 | 12794 | |
c2783492 MF |
12795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
12796 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
12797 | if test -z "$MKDIR_P"; then | |
12798 | if ${ac_cv_path_mkdir+:} false; then : | |
12799 | $as_echo_n "(cached) " >&6 | |
12800 | else | |
12801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12802 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
12803 | do | |
12804 | IFS=$as_save_IFS | |
12805 | test -z "$as_dir" && as_dir=. | |
12806 | for ac_prog in mkdir gmkdir; do | |
12807 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12808 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
12809 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
12810 | 'mkdir (GNU coreutils) '* | \ | |
12811 | 'mkdir (coreutils) '* | \ | |
12812 | 'mkdir (fileutils) '4.1*) | |
12813 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
12814 | break 3;; | |
12815 | esac | |
12816 | done | |
12817 | done | |
12818 | done | |
12819 | IFS=$as_save_IFS | |
b7026657 | 12820 | |
fdd6fa61 AG |
12821 | fi |
12822 | ||
c2783492 MF |
12823 | test -d ./--version && rmdir ./--version |
12824 | if test "${ac_cv_path_mkdir+set}" = set; then | |
12825 | MKDIR_P="$ac_cv_path_mkdir -p" | |
b5689863 MF |
12826 | else |
12827 | # As a last resort, use the slow shell script. Don't cache a | |
12828 | # value for MKDIR_P within a source directory, because that will | |
12829 | # break other packages using the cache if that directory is | |
12830 | # removed, or if the value is a relative name. | |
12831 | MKDIR_P="$ac_install_sh -d" | |
12832 | fi | |
c2783492 | 12833 | fi |
b5689863 MF |
12834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
12835 | $as_echo "$MKDIR_P" >&6; } | |
6bddc3e8 | 12836 | |
c2783492 MF |
12837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
12838 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
12839 | set x ${MAKE-make} | |
12840 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
12841 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
6bddc3e8 MF |
12842 | $as_echo_n "(cached) " >&6 |
12843 | else | |
c2783492 MF |
12844 | cat >conftest.make <<\_ACEOF |
12845 | SHELL = /bin/sh | |
12846 | all: | |
12847 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
12848 | _ACEOF | |
12849 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
12850 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
12851 | *@@@%%%=?*=@@@%%%*) | |
12852 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
12853 | *) | |
12854 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
12855 | esac | |
12856 | rm -f conftest.make | |
12857 | fi | |
12858 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
12859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12860 | $as_echo "yes" >&6; } | |
12861 | SET_MAKE= | |
12862 | else | |
12863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12864 | $as_echo "no" >&6; } | |
12865 | SET_MAKE="MAKE=${MAKE-make}" | |
12866 | fi | |
6bddc3e8 | 12867 | |
c2783492 MF |
12868 | rm -rf .tst 2>/dev/null |
12869 | mkdir .tst 2>/dev/null | |
12870 | if test -d .tst; then | |
12871 | am__leading_dot=. | |
12872 | else | |
12873 | am__leading_dot=_ | |
12874 | fi | |
12875 | rmdir .tst 2>/dev/null | |
6bddc3e8 | 12876 | |
c2783492 | 12877 | DEPDIR="${am__leading_dot}deps" |
6bddc3e8 | 12878 | |
c2783492 | 12879 | ac_config_commands="$ac_config_commands depfiles" |
6bddc3e8 | 12880 | |
c2783492 MF |
12881 | |
12882 | am_make=${MAKE-make} | |
12883 | cat > confinc << 'END' | |
12884 | am__doit: | |
12885 | @echo this is the am__doit target | |
12886 | .PHONY: am__doit | |
12887 | END | |
12888 | # If we don't find an include directive, just comment out the code. | |
12889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
12890 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
12891 | am__include="#" | |
12892 | am__quote= | |
12893 | _am_result=none | |
12894 | # First try GNU make style include. | |
12895 | echo "include confinc" > confmf | |
12896 | # Ignore all kinds of additional output from 'make'. | |
12897 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
12898 | *the\ am__doit\ target*) | |
12899 | am__include=include | |
12900 | am__quote= | |
12901 | _am_result=GNU | |
12902 | ;; | |
12903 | esac | |
12904 | # Now try BSD make style include. | |
12905 | if test "$am__include" = "#"; then | |
12906 | echo '.include "confinc"' > confmf | |
12907 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
12908 | *the\ am__doit\ target*) | |
12909 | am__include=.include | |
12910 | am__quote="\"" | |
12911 | _am_result=BSD | |
12912 | ;; | |
12913 | esac | |
6bddc3e8 MF |
12914 | fi |
12915 | ||
c2783492 MF |
12916 | |
12917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
12918 | $as_echo "$_am_result" >&6; } | |
12919 | rm -f confinc confmf | |
12920 | ||
12921 | # Check whether --enable-dependency-tracking was given. | |
12922 | if test "${enable_dependency_tracking+set}" = set; then : | |
12923 | enableval=$enable_dependency_tracking; | |
6bddc3e8 | 12924 | fi |
6bddc3e8 | 12925 | |
c2783492 MF |
12926 | if test "x$enable_dependency_tracking" != xno; then |
12927 | am_depcomp="$ac_aux_dir/depcomp" | |
12928 | AMDEPBACKSLASH='\' | |
12929 | am__nodep='_no' | |
12930 | fi | |
12931 | if test "x$enable_dependency_tracking" != xno; then | |
12932 | AMDEP_TRUE= | |
12933 | AMDEP_FALSE='#' | |
6bddc3e8 | 12934 | else |
c2783492 MF |
12935 | AMDEP_TRUE='#' |
12936 | AMDEP_FALSE= | |
6bddc3e8 MF |
12937 | fi |
12938 | ||
12939 | ||
c2783492 MF |
12940 | # Check whether --enable-silent-rules was given. |
12941 | if test "${enable_silent_rules+set}" = set; then : | |
12942 | enableval=$enable_silent_rules; | |
5e25901f | 12943 | fi |
c2783492 MF |
12944 | |
12945 | case $enable_silent_rules in # ((( | |
12946 | yes) AM_DEFAULT_VERBOSITY=0;; | |
12947 | no) AM_DEFAULT_VERBOSITY=1;; | |
12948 | *) AM_DEFAULT_VERBOSITY=1;; | |
12949 | esac | |
12950 | am_make=${MAKE-make} | |
12951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
12952 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
12953 | if ${am_cv_make_support_nested_variables+:} false; then : | |
5e25901f MF |
12954 | $as_echo_n "(cached) " >&6 |
12955 | else | |
c2783492 MF |
12956 | if $as_echo 'TRUE=$(BAR$(V)) |
12957 | BAR0=false | |
12958 | BAR1=true | |
12959 | V=1 | |
12960 | am__doit: | |
12961 | @$(TRUE) | |
12962 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
12963 | am_cv_make_support_nested_variables=yes | |
5e25901f | 12964 | else |
c2783492 | 12965 | am_cv_make_support_nested_variables=no |
5e25901f | 12966 | fi |
c2783492 MF |
12967 | fi |
12968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
12969 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
12970 | if test $am_cv_make_support_nested_variables = yes; then | |
12971 | AM_V='$(V)' | |
12972 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
5e25901f | 12973 | else |
c2783492 MF |
12974 | AM_V=$AM_DEFAULT_VERBOSITY |
12975 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
5e25901f | 12976 | fi |
c2783492 | 12977 | AM_BACKSLASH='\' |
5e25901f | 12978 | |
c2783492 MF |
12979 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
12980 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
12981 | # is not polluted with repeated "-I." | |
12982 | am__isrc=' -I$(srcdir)' | |
12983 | # test to see if srcdir already configured | |
12984 | if test -f $srcdir/config.status; then | |
12985 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
12986 | fi | |
5e25901f MF |
12987 | fi |
12988 | ||
c2783492 MF |
12989 | # test whether we have cygpath |
12990 | if test -z "$CYGPATH_W"; then | |
12991 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
12992 | CYGPATH_W='cygpath -w' | |
12993 | else | |
12994 | CYGPATH_W=echo | |
12995 | fi | |
5e25901f | 12996 | fi |
c2783492 MF |
12997 | |
12998 | ||
12999 | # Define the identity of the package. | |
13000 | PACKAGE='sim' | |
13001 | VERSION='0' | |
13002 | ||
13003 | ||
13004 | cat >>confdefs.h <<_ACEOF | |
13005 | #define PACKAGE "$PACKAGE" | |
5e25901f | 13006 | _ACEOF |
5e25901f | 13007 | |
5e25901f | 13008 | |
c2783492 MF |
13009 | cat >>confdefs.h <<_ACEOF |
13010 | #define VERSION "$VERSION" | |
5e25901f | 13011 | _ACEOF |
5e25901f | 13012 | |
c2783492 | 13013 | # Some tools Automake needs. |
5e25901f | 13014 | |
c2783492 MF |
13015 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
13016 | ||
13017 | ||
13018 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
13019 | ||
13020 | ||
13021 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
13022 | ||
13023 | ||
13024 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
13025 | ||
13026 | ||
13027 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
13028 | ||
13029 | # For better backward compatibility. To be removed once Automake 1.9.x | |
13030 | # dies out for good. For more background, see: | |
13031 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
13032 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
13033 | mkdir_p='$(MKDIR_P)' | |
13034 | ||
13035 | # We need awk for the "check" target (and possibly the TAP driver). The | |
13036 | # system "awk" is bad on some platforms. | |
13037 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
13038 | # in the wild :-( We should find a proper way to deprecate it ... | |
13039 | AMTAR='$${TAR-tar}' | |
13040 | ||
13041 | ||
13042 | # We'll loop over all known methods to create a tar archive until one works. | |
13043 | _am_tools='gnutar pax cpio none' | |
13044 | ||
13045 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
5e25901f | 13046 | |
5e25901f | 13047 | |
c906108c | 13048 | |
c906108c | 13049 | |
c2783492 MF |
13050 | |
13051 | depcc="$CC" am_compiler_list= | |
13052 | ||
13053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
13054 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
13055 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
81ecdfbb | 13056 | $as_echo_n "(cached) " >&6 |
c906108c | 13057 | else |
c2783492 MF |
13058 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
13059 | # We make a subdir and do the tests there. Otherwise we can end up | |
13060 | # making bogus files that we don't know about and never remove. For | |
13061 | # instance it was reported that on HP-UX the gcc test will end up | |
13062 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
13063 | # in D". | |
13064 | rm -rf conftest.dir | |
13065 | mkdir conftest.dir | |
13066 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
13067 | # using a relative directory. | |
13068 | cp "$am_depcomp" conftest.dir | |
13069 | cd conftest.dir | |
13070 | # We will build objects and dependencies in a subdirectory because | |
13071 | # it helps to detect inapplicable dependency modes. For instance | |
13072 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
13073 | # side effect of compilation, but ICC will put the dependencies in | |
13074 | # the current directory while Tru64 will put them in the object | |
13075 | # directory. | |
13076 | mkdir sub | |
13077 | ||
13078 | am_cv_CC_dependencies_compiler_type=none | |
13079 | if test "$am_compiler_list" = ""; then | |
13080 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
b7026657 | 13081 | fi |
c2783492 MF |
13082 | am__universal=false |
13083 | case " $depcc " in #( | |
13084 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
13085 | esac | |
13086 | ||
13087 | for depmode in $am_compiler_list; do | |
13088 | # Setup a source with many dependencies, because some compilers | |
13089 | # like to wrap large dependency lists on column 80 (with \), and | |
13090 | # we should not choose a depcomp mode which is confused by this. | |
13091 | # | |
13092 | # We need to recreate these files for each test, as the compiler may | |
13093 | # overwrite some of them when testing with obscure command lines. | |
13094 | # This happens at least with the AIX C compiler. | |
13095 | : > sub/conftest.c | |
13096 | for i in 1 2 3 4 5 6; do | |
13097 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
13098 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
13099 | # Solaris 10 /bin/sh. | |
13100 | echo '/* dummy */' > sub/conftst$i.h | |
13101 | done | |
13102 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
13103 | ||
13104 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
13105 | # mode. It turns out that the SunPro C++ compiler does not properly | |
13106 | # handle '-M -o', and we need to detect this. Also, some Intel | |
13107 | # versions had trouble with output in subdirs. | |
13108 | am__obj=sub/conftest.${OBJEXT-o} | |
13109 | am__minus_obj="-o $am__obj" | |
13110 | case $depmode in | |
13111 | gcc) | |
13112 | # This depmode causes a compiler race in universal mode. | |
13113 | test "$am__universal" = false || continue | |
13114 | ;; | |
13115 | nosideeffect) | |
13116 | # After this tag, mechanisms are not by side-effect, so they'll | |
13117 | # only be used when explicitly requested. | |
13118 | if test "x$enable_dependency_tracking" = xyes; then | |
13119 | continue | |
13120 | else | |
13121 | break | |
13122 | fi | |
13123 | ;; | |
13124 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
13125 | # This compiler won't grok '-c -o', but also, the minuso test has | |
13126 | # not run yet. These depmodes are late enough in the game, and | |
13127 | # so weak that their functioning should not be impacted. | |
13128 | am__obj=conftest.${OBJEXT-o} | |
13129 | am__minus_obj= | |
13130 | ;; | |
13131 | none) break ;; | |
13132 | esac | |
13133 | if depmode=$depmode \ | |
13134 | source=sub/conftest.c object=$am__obj \ | |
13135 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
13136 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
13137 | >/dev/null 2>conftest.err && | |
13138 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
13139 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
13140 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
13141 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
13142 | # icc doesn't choke on unknown options, it will just issue warnings | |
13143 | # or remarks (even with -Werror). So we grep stderr for any message | |
13144 | # that says an option was ignored or not supported. | |
13145 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
13146 | # icc: Command line warning: ignoring option '-M'; no argument required | |
13147 | # The diagnosis changed in icc 8.0: | |
13148 | # icc: Command line remark: option '-MP' not supported | |
13149 | if (grep 'ignoring option' conftest.err || | |
13150 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
13151 | am_cv_CC_dependencies_compiler_type=$depmode | |
13152 | break | |
13153 | fi | |
13154 | fi | |
81ecdfbb | 13155 | done |
b7026657 | 13156 | |
c2783492 MF |
13157 | cd .. |
13158 | rm -rf conftest.dir | |
b7026657 | 13159 | else |
c2783492 | 13160 | am_cv_CC_dependencies_compiler_type=none |
b7026657 AC |
13161 | fi |
13162 | ||
13163 | fi | |
c2783492 MF |
13164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
13165 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
13166 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
b7026657 | 13167 | |
c2783492 MF |
13168 | if |
13169 | test "x$enable_dependency_tracking" != xno \ | |
13170 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
13171 | am__fastdepCC_TRUE= | |
13172 | am__fastdepCC_FALSE='#' | |
c906108c | 13173 | else |
c2783492 MF |
13174 | am__fastdepCC_TRUE='#' |
13175 | am__fastdepCC_FALSE= | |
b7026657 AC |
13176 | fi |
13177 | ||
c906108c SS |
13178 | |
13179 | ||
c2783492 MF |
13180 | # POSIX will say in a future version that running "rm -f" with no argument |
13181 | # is OK; and we want to be able to make that assumption in our Makefile | |
13182 | # recipes. So use an aggressive probe to check that the usage we want is | |
13183 | # actually supported "in the wild" to an acceptable degree. | |
13184 | # See automake bug#10828. | |
13185 | # To make any issue more visible, cause the running configure to be aborted | |
13186 | # by default if the 'rm' program in use doesn't match our expectations; the | |
13187 | # user can still override this though. | |
13188 | if rm -f && rm -fr && rm -rf; then : OK; else | |
13189 | cat >&2 <<'END' | |
13190 | Oops! | |
13191 | ||
13192 | Your 'rm' program seems unable to run without file operands specified | |
13193 | on the command line, even when the '-f' option is present. This is contrary | |
13194 | to the behaviour of most rm programs out there, and not conforming with | |
13195 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
13196 | ||
13197 | Please tell bug-automake@gnu.org about your system, including the value | |
13198 | of your $PATH and any error possibly output before this message. This | |
13199 | can help us improve future automake versions. | |
13200 | ||
13201 | END | |
13202 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
13203 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
13204 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
13205 | echo >&2 | |
5c887dd5 | 13206 | else |
c2783492 MF |
13207 | cat >&2 <<'END' |
13208 | Aborting the configuration process, to ensure you take notice of the issue. | |
13209 | ||
13210 | You can download and install GNU coreutils to get an 'rm' implementation | |
13211 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
13212 | ||
13213 | If you want to complete the configuration process using your problematic | |
13214 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
13215 | to "yes", and re-run configure. | |
13216 | ||
13217 | END | |
13218 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
5c887dd5 | 13219 | fi |
c906108c SS |
13220 | fi |
13221 | ||
fbe8d1cf MF |
13222 | # Check whether --enable-silent-rules was given. |
13223 | if test "${enable_silent_rules+set}" = set; then : | |
13224 | enableval=$enable_silent_rules; | |
13225 | fi | |
13226 | ||
13227 | case $enable_silent_rules in # ((( | |
13228 | yes) AM_DEFAULT_VERBOSITY=0;; | |
13229 | no) AM_DEFAULT_VERBOSITY=1;; | |
13230 | *) AM_DEFAULT_VERBOSITY=0;; | |
13231 | esac | |
13232 | am_make=${MAKE-make} | |
13233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
13234 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
13235 | if ${am_cv_make_support_nested_variables+:} false; then : | |
13236 | $as_echo_n "(cached) " >&6 | |
13237 | else | |
13238 | if $as_echo 'TRUE=$(BAR$(V)) | |
13239 | BAR0=false | |
13240 | BAR1=true | |
13241 | V=1 | |
13242 | am__doit: | |
13243 | @$(TRUE) | |
13244 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
13245 | am_cv_make_support_nested_variables=yes | |
13246 | else | |
13247 | am_cv_make_support_nested_variables=no | |
13248 | fi | |
13249 | fi | |
13250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
13251 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
13252 | if test $am_cv_make_support_nested_variables = yes; then | |
13253 | AM_V='$(V)' | |
13254 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
13255 | else | |
13256 | AM_V=$AM_DEFAULT_VERBOSITY | |
13257 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
13258 | fi | |
13259 | AM_BACKSLASH='\' | |
13260 | ||
c906108c SS |
13261 | |
13262 | # If a cpu ever has more than one simulator to choose from, use | |
13263 | # --enable-sim=... to choose. | |
81ecdfbb RW |
13264 | # Check whether --enable-sim was given. |
13265 | if test "${enable_sim+set}" = set; then : | |
13266 | enableval=$enable_sim; case "${enableval}" in | |
c906108c | 13267 | yes | no) ;; |
d0ac1c44 | 13268 | *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;; |
c906108c | 13269 | esac |
81ecdfbb RW |
13270 | fi |
13271 | ||
c906108c | 13272 | |
26da232c MF |
13273 | # Check whether --enable-example-sims was given. |
13274 | if test "${enable_example_sims+set}" = set; then : | |
13275 | enableval=$enable_example_sims; | |
13276 | fi | |
13277 | ||
13278 | ||
a0e674c1 MF |
13279 | # Check whether --enable-targets was given. |
13280 | if test "${enable_targets+set}" = set; then : | |
13281 | enableval=$enable_targets; case "${enableval}" in | |
13282 | yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
13283 | ;; | |
13284 | no) enable_targets= ;; | |
13285 | *) enable_targets=$enableval ;; | |
13286 | esac | |
13287 | fi | |
13288 | ||
13289 | ||
13290 | SIM_PRIMARY_TARGET= | |
13291 | ||
13292 | ||
13293 | ||
13294 | ||
bc56166f | 13295 | |
119da465 | 13296 | if test "${enable_sim}" != no; then |
3e8bb3e9 | 13297 | sim_igen=no |
a0e674c1 MF |
13298 | for targ in `echo $target $enable_targets | sed 's/,/ /g'` |
13299 | do | |
bc56166f | 13300 | case "${targ}" in |
a0e674c1 MF |
13301 | all|aarch64*-*-*) |
13302 | if test "${targ}" = "${target}"; then | |
13303 | SIM_PRIMARY_TARGET=aarch64 | |
13304 | fi | |
2e8cf49e NC |
13305 | |
13306 | ||
13307 | subdirs="$subdirs aarch64" | |
fdd6fa61 | 13308 | |
bc56166f MF |
13309 | ac_config_commands="$ac_config_commands depdir-aarch64" |
13310 | ||
13311 | ||
a0e674c1 | 13312 | |
3e8bb3e9 | 13313 | ;; |
a0e674c1 MF |
13314 | esac |
13315 | ||
bc56166f | 13316 | case "${targ}" in |
a0e674c1 MF |
13317 | all|arm*-*-*) |
13318 | if test "${targ}" = "${target}"; then | |
13319 | SIM_PRIMARY_TARGET=arm | |
13320 | fi | |
bc56166f MF |
13321 | subdirs="$subdirs arm" |
13322 | ||
13323 | ac_config_commands="$ac_config_commands depdir-arm" | |
13324 | ||
fdd6fa61 | 13325 | |
a0e674c1 | 13326 | |
3e8bb3e9 | 13327 | ;; |
a0e674c1 MF |
13328 | esac |
13329 | ||
bc56166f | 13330 | case "${targ}" in |
a0e674c1 MF |
13331 | all|avr*-*-*) |
13332 | if test "${targ}" = "${target}"; then | |
13333 | SIM_PRIMARY_TARGET=avr | |
13334 | fi | |
bc56166f MF |
13335 | subdirs="$subdirs avr" |
13336 | ||
13337 | ac_config_commands="$ac_config_commands depdir-avr" | |
13338 | ||
0cd79707 | 13339 | |
a0e674c1 | 13340 | |
3e8bb3e9 | 13341 | ;; |
a0e674c1 MF |
13342 | esac |
13343 | ||
bc56166f | 13344 | case "${targ}" in |
a0e674c1 MF |
13345 | all|bfin-*-*) |
13346 | if test "${targ}" = "${target}"; then | |
13347 | SIM_PRIMARY_TARGET=bfin | |
13348 | fi | |
bc56166f MF |
13349 | subdirs="$subdirs bfin" |
13350 | ||
13351 | ac_config_commands="$ac_config_commands depdir-bfin" | |
13352 | ||
ddd44b70 | 13353 | |
a0e674c1 | 13354 | |
3e8bb3e9 | 13355 | ;; |
a0e674c1 MF |
13356 | esac |
13357 | ||
bc56166f | 13358 | case "${targ}" in |
a0e674c1 MF |
13359 | all|bpf-*-*) |
13360 | if test "${targ}" = "${target}"; then | |
13361 | SIM_PRIMARY_TARGET=bpf | |
13362 | fi | |
bc56166f MF |
13363 | subdirs="$subdirs bpf" |
13364 | ||
13365 | ac_config_commands="$ac_config_commands depdir-bpf" | |
13366 | ||
ddd44b70 | 13367 | |
a0e674c1 | 13368 | |
3e8bb3e9 | 13369 | ;; |
a0e674c1 MF |
13370 | esac |
13371 | ||
bc56166f | 13372 | case "${targ}" in |
a0e674c1 MF |
13373 | all|cr16*-*-*) |
13374 | if test "${targ}" = "${target}"; then | |
13375 | SIM_PRIMARY_TARGET=cr16 | |
13376 | fi | |
bc56166f MF |
13377 | subdirs="$subdirs cr16" |
13378 | ||
13379 | ac_config_commands="$ac_config_commands depdir-cr16" | |
13380 | ||
ddd44b70 | 13381 | |
a0e674c1 | 13382 | |
3e8bb3e9 | 13383 | ;; |
a0e674c1 MF |
13384 | esac |
13385 | ||
bc56166f | 13386 | case "${targ}" in |
a0e674c1 MF |
13387 | all|cris-*-* | crisv32-*-*) |
13388 | if test "${targ}" = "${target}"; then | |
13389 | SIM_PRIMARY_TARGET=cris | |
13390 | fi | |
bc56166f MF |
13391 | subdirs="$subdirs cris" |
13392 | ||
13393 | ac_config_commands="$ac_config_commands depdir-cris" | |
13394 | ||
b9249c46 | 13395 | |
a0e674c1 | 13396 | |
3e8bb3e9 | 13397 | ;; |
a0e674c1 MF |
13398 | esac |
13399 | ||
bc56166f | 13400 | case "${targ}" in |
a0e674c1 MF |
13401 | all|d10v-*-*) |
13402 | if test "${targ}" = "${target}"; then | |
13403 | SIM_PRIMARY_TARGET=d10v | |
13404 | fi | |
bc56166f MF |
13405 | subdirs="$subdirs d10v" |
13406 | ||
13407 | ac_config_commands="$ac_config_commands depdir-d10v" | |
13408 | ||
b9249c46 | 13409 | |
a0e674c1 | 13410 | |
3e8bb3e9 | 13411 | ;; |
a0e674c1 MF |
13412 | esac |
13413 | ||
bc56166f | 13414 | case "${targ}" in |
a0e674c1 MF |
13415 | all|frv-*-*) |
13416 | if test "${targ}" = "${target}"; then | |
13417 | SIM_PRIMARY_TARGET=frv | |
13418 | fi | |
bc56166f MF |
13419 | subdirs="$subdirs frv" |
13420 | ||
13421 | ac_config_commands="$ac_config_commands depdir-frv" | |
13422 | ||
b9249c46 | 13423 | |
a0e674c1 | 13424 | |
3e8bb3e9 | 13425 | ;; |
a0e674c1 MF |
13426 | esac |
13427 | ||
bc56166f | 13428 | case "${targ}" in |
a0e674c1 MF |
13429 | all|h8300*-*-*) |
13430 | if test "${targ}" = "${target}"; then | |
13431 | SIM_PRIMARY_TARGET=h8300 | |
13432 | fi | |
bc56166f MF |
13433 | subdirs="$subdirs h8300" |
13434 | ||
13435 | ac_config_commands="$ac_config_commands depdir-h8300" | |
13436 | ||
119da465 | 13437 | |
a0e674c1 | 13438 | |
3e8bb3e9 | 13439 | ;; |
a0e674c1 MF |
13440 | esac |
13441 | ||
bc56166f | 13442 | case "${targ}" in |
a0e674c1 MF |
13443 | all|iq2000-*-*) |
13444 | if test "${targ}" = "${target}"; then | |
13445 | SIM_PRIMARY_TARGET=iq2000 | |
13446 | fi | |
bc56166f MF |
13447 | subdirs="$subdirs iq2000" |
13448 | ||
13449 | ac_config_commands="$ac_config_commands depdir-iq2000" | |
13450 | ||
119da465 | 13451 | |
a0e674c1 | 13452 | |
3e8bb3e9 | 13453 | ;; |
a0e674c1 MF |
13454 | esac |
13455 | ||
bc56166f | 13456 | case "${targ}" in |
a0e674c1 MF |
13457 | all|lm32-*-*) |
13458 | if test "${targ}" = "${target}"; then | |
13459 | SIM_PRIMARY_TARGET=lm32 | |
13460 | fi | |
bc56166f MF |
13461 | subdirs="$subdirs lm32" |
13462 | ||
13463 | ac_config_commands="$ac_config_commands depdir-lm32" | |
13464 | ||
119da465 | 13465 | |
a0e674c1 | 13466 | |
3e8bb3e9 | 13467 | ;; |
a0e674c1 MF |
13468 | esac |
13469 | ||
bc56166f | 13470 | case "${targ}" in |
a0e674c1 MF |
13471 | all|m32c-*-*) |
13472 | if test "${targ}" = "${target}"; then | |
13473 | SIM_PRIMARY_TARGET=m32c | |
13474 | fi | |
bc56166f MF |
13475 | subdirs="$subdirs m32c" |
13476 | ||
13477 | ac_config_commands="$ac_config_commands depdir-m32c" | |
13478 | ||
87326c78 | 13479 | |
a0e674c1 | 13480 | |
3e8bb3e9 | 13481 | ;; |
a0e674c1 MF |
13482 | esac |
13483 | ||
bc56166f | 13484 | case "${targ}" in |
a0e674c1 MF |
13485 | all|m32r-*-*) |
13486 | if test "${targ}" = "${target}"; then | |
13487 | SIM_PRIMARY_TARGET=m32r | |
13488 | fi | |
bc56166f MF |
13489 | subdirs="$subdirs m32r" |
13490 | ||
13491 | ac_config_commands="$ac_config_commands depdir-m32r" | |
13492 | ||
87326c78 | 13493 | |
a0e674c1 | 13494 | |
3e8bb3e9 | 13495 | ;; |
a0e674c1 MF |
13496 | esac |
13497 | ||
bc56166f | 13498 | case "${targ}" in |
a0e674c1 MF |
13499 | all|m68hc11-*-*|m6811-*-*) |
13500 | if test "${targ}" = "${target}"; then | |
13501 | SIM_PRIMARY_TARGET=m68hc11 | |
13502 | fi | |
bc56166f MF |
13503 | subdirs="$subdirs m68hc11" |
13504 | ||
13505 | ac_config_commands="$ac_config_commands depdir-m68hc11" | |
13506 | ||
87326c78 | 13507 | |
a0e674c1 | 13508 | |
3e8bb3e9 | 13509 | ;; |
a0e674c1 MF |
13510 | esac |
13511 | ||
bc56166f | 13512 | case "${targ}" in |
a0e674c1 MF |
13513 | all|mcore-*-*) |
13514 | if test "${targ}" = "${target}"; then | |
13515 | SIM_PRIMARY_TARGET=mcore | |
13516 | fi | |
bc56166f MF |
13517 | subdirs="$subdirs mcore" |
13518 | ||
13519 | ac_config_commands="$ac_config_commands depdir-mcore" | |
13520 | ||
119da465 | 13521 | |
a0e674c1 | 13522 | |
3e8bb3e9 | 13523 | ;; |
a0e674c1 MF |
13524 | esac |
13525 | ||
bc56166f | 13526 | case "${targ}" in |
a0e674c1 MF |
13527 | all|microblaze-*-*) |
13528 | if test "${targ}" = "${target}"; then | |
13529 | SIM_PRIMARY_TARGET=microblaze | |
13530 | fi | |
bc56166f MF |
13531 | subdirs="$subdirs microblaze" |
13532 | ||
13533 | ac_config_commands="$ac_config_commands depdir-microblaze" | |
13534 | ||
119da465 | 13535 | |
a0e674c1 | 13536 | |
3e8bb3e9 | 13537 | ;; |
a0e674c1 MF |
13538 | esac |
13539 | ||
bc56166f | 13540 | case "${targ}" in |
a0e674c1 MF |
13541 | all|mips*-*-*) |
13542 | if test "${targ}" = "${target}"; then | |
13543 | SIM_PRIMARY_TARGET=mips | |
13544 | fi | |
bc56166f MF |
13545 | subdirs="$subdirs mips" |
13546 | ||
13547 | ac_config_commands="$ac_config_commands depdir-mips" | |
13548 | ||
119da465 | 13549 | |
3e8bb3e9 MF |
13550 | sim_igen=yes |
13551 | ;; | |
a0e674c1 MF |
13552 | esac |
13553 | ||
bc56166f | 13554 | case "${targ}" in |
a0e674c1 MF |
13555 | all|mn10300*-*-*) |
13556 | if test "${targ}" = "${target}"; then | |
13557 | SIM_PRIMARY_TARGET=mn10300 | |
13558 | fi | |
bc56166f MF |
13559 | subdirs="$subdirs mn10300" |
13560 | ||
13561 | ac_config_commands="$ac_config_commands depdir-mn10300" | |
13562 | ||
119da465 | 13563 | |
3e8bb3e9 MF |
13564 | sim_igen=yes |
13565 | ;; | |
a0e674c1 MF |
13566 | esac |
13567 | ||
bc56166f | 13568 | case "${targ}" in |
a0e674c1 MF |
13569 | all|moxie-*-*) |
13570 | if test "${targ}" = "${target}"; then | |
13571 | SIM_PRIMARY_TARGET=moxie | |
13572 | fi | |
bc56166f MF |
13573 | subdirs="$subdirs moxie" |
13574 | ||
13575 | ac_config_commands="$ac_config_commands depdir-moxie" | |
13576 | ||
119da465 | 13577 | |
a0e674c1 | 13578 | |
3e8bb3e9 | 13579 | ;; |
a0e674c1 MF |
13580 | esac |
13581 | ||
bc56166f | 13582 | case "${targ}" in |
a0e674c1 MF |
13583 | all|msp430*-*-*) |
13584 | if test "${targ}" = "${target}"; then | |
13585 | SIM_PRIMARY_TARGET=msp430 | |
13586 | fi | |
bc56166f MF |
13587 | subdirs="$subdirs msp430" |
13588 | ||
13589 | ac_config_commands="$ac_config_commands depdir-msp430" | |
13590 | ||
119da465 | 13591 | |
a0e674c1 | 13592 | |
3e8bb3e9 | 13593 | ;; |
a0e674c1 MF |
13594 | esac |
13595 | ||
bc56166f | 13596 | case "${targ}" in |
a0e674c1 MF |
13597 | all|or1k-*-* | or1knd-*-*) |
13598 | if test "${targ}" = "${target}"; then | |
13599 | SIM_PRIMARY_TARGET=or1k | |
13600 | fi | |
bc56166f MF |
13601 | subdirs="$subdirs or1k" |
13602 | ||
13603 | ac_config_commands="$ac_config_commands depdir-or1k" | |
13604 | ||
119da465 | 13605 | |
a0e674c1 | 13606 | |
3e8bb3e9 | 13607 | ;; |
a0e674c1 MF |
13608 | esac |
13609 | ||
bc56166f | 13610 | case "${targ}" in |
a0e674c1 MF |
13611 | all|pru*-*-*) |
13612 | if test "${targ}" = "${target}"; then | |
13613 | SIM_PRIMARY_TARGET=pru | |
13614 | fi | |
bc56166f MF |
13615 | subdirs="$subdirs pru" |
13616 | ||
13617 | ac_config_commands="$ac_config_commands depdir-pru" | |
13618 | ||
119da465 | 13619 | |
a0e674c1 | 13620 | |
3e8bb3e9 | 13621 | ;; |
a0e674c1 MF |
13622 | esac |
13623 | ||
bc56166f | 13624 | case "${targ}" in |
a0e674c1 MF |
13625 | all|riscv*-*-*) |
13626 | if test "${targ}" = "${target}"; then | |
13627 | SIM_PRIMARY_TARGET=riscv | |
13628 | fi | |
bc56166f MF |
13629 | subdirs="$subdirs riscv" |
13630 | ||
13631 | ac_config_commands="$ac_config_commands depdir-riscv" | |
13632 | ||
119da465 | 13633 | |
a0e674c1 | 13634 | |
3e8bb3e9 | 13635 | ;; |
a0e674c1 MF |
13636 | esac |
13637 | ||
bc56166f | 13638 | case "${targ}" in |
a0e674c1 MF |
13639 | all|rl78-*-*) |
13640 | if test "${targ}" = "${target}"; then | |
13641 | SIM_PRIMARY_TARGET=rl78 | |
13642 | fi | |
bc56166f MF |
13643 | subdirs="$subdirs rl78" |
13644 | ||
13645 | ac_config_commands="$ac_config_commands depdir-rl78" | |
13646 | ||
f46e4eb7 | 13647 | |
a0e674c1 | 13648 | |
3e8bb3e9 | 13649 | ;; |
a0e674c1 MF |
13650 | esac |
13651 | ||
bc56166f | 13652 | case "${targ}" in |
a0e674c1 MF |
13653 | all|rx-*-*) |
13654 | if test "${targ}" = "${target}"; then | |
13655 | SIM_PRIMARY_TARGET=rx | |
13656 | fi | |
bc56166f MF |
13657 | subdirs="$subdirs rx" |
13658 | ||
13659 | ac_config_commands="$ac_config_commands depdir-rx" | |
13660 | ||
f46e4eb7 | 13661 | |
a0e674c1 | 13662 | |
3e8bb3e9 | 13663 | ;; |
a0e674c1 MF |
13664 | esac |
13665 | ||
bc56166f | 13666 | case "${targ}" in |
a0e674c1 MF |
13667 | all|sh*-*-*) |
13668 | if test "${targ}" = "${target}"; then | |
13669 | SIM_PRIMARY_TARGET=sh | |
13670 | fi | |
bc56166f MF |
13671 | subdirs="$subdirs sh" |
13672 | ||
13673 | ac_config_commands="$ac_config_commands depdir-sh" | |
13674 | ||
f46e4eb7 | 13675 | |
a0e674c1 | 13676 | |
3e8bb3e9 | 13677 | ;; |
a0e674c1 MF |
13678 | esac |
13679 | ||
bc56166f | 13680 | case "${targ}" in |
a0e674c1 MF |
13681 | all|sparc-*-rtems*|sparc-*-elf*) |
13682 | if test "${targ}" = "${target}"; then | |
13683 | SIM_PRIMARY_TARGET=erc32 | |
13684 | fi | |
bc56166f MF |
13685 | subdirs="$subdirs erc32" |
13686 | ||
13687 | ac_config_commands="$ac_config_commands depdir-erc32" | |
13688 | ||
119da465 | 13689 | |
a0e674c1 | 13690 | |
3e8bb3e9 | 13691 | ;; |
a0e674c1 MF |
13692 | esac |
13693 | ||
bc56166f | 13694 | case "${targ}" in |
a0e674c1 MF |
13695 | all|powerpc*-*-*) |
13696 | if test "${targ}" = "${target}"; then | |
13697 | SIM_PRIMARY_TARGET=ppc | |
13698 | fi | |
bc56166f MF |
13699 | subdirs="$subdirs ppc" |
13700 | ||
13701 | ac_config_commands="$ac_config_commands depdir-ppc" | |
13702 | ||
119da465 | 13703 | |
a0e674c1 | 13704 | |
3e8bb3e9 | 13705 | ;; |
a0e674c1 MF |
13706 | esac |
13707 | ||
bc56166f | 13708 | case "${targ}" in |
a0e674c1 MF |
13709 | all|ft32-*-*) |
13710 | if test "${targ}" = "${target}"; then | |
13711 | SIM_PRIMARY_TARGET=ft32 | |
13712 | fi | |
bc56166f MF |
13713 | subdirs="$subdirs ft32" |
13714 | ||
13715 | ac_config_commands="$ac_config_commands depdir-ft32" | |
13716 | ||
119da465 | 13717 | |
a0e674c1 | 13718 | |
3e8bb3e9 | 13719 | ;; |
a0e674c1 MF |
13720 | esac |
13721 | ||
bc56166f | 13722 | case "${targ}" in |
a0e674c1 MF |
13723 | all|v850*-*-*) |
13724 | if test "${targ}" = "${target}"; then | |
13725 | SIM_PRIMARY_TARGET=v850 | |
13726 | fi | |
bc56166f MF |
13727 | subdirs="$subdirs v850" |
13728 | ||
13729 | ac_config_commands="$ac_config_commands depdir-v850" | |
13730 | ||
119da465 | 13731 | |
3e8bb3e9 MF |
13732 | sim_igen=yes |
13733 | ;; | |
13734 | esac | |
a0e674c1 MF |
13735 | |
13736 | done | |
26da232c MF |
13737 | |
13738 | if test "x${enable_example_sims}" = xyes; then | |
bc56166f MF |
13739 | subdirs="$subdirs example-synacor" |
13740 | ||
13741 | ac_config_commands="$ac_config_commands depdir-example-synacor" | |
13742 | ||
26da232c MF |
13743 | |
13744 | fi | |
b6b1c790 MF |
13745 | fi |
13746 | if test "$sim_igen" = "yes"; then | |
13747 | SIM_ENABLE_IGEN_TRUE= | |
13748 | SIM_ENABLE_IGEN_FALSE='#' | |
13749 | else | |
13750 | SIM_ENABLE_IGEN_TRUE='#' | |
13751 | SIM_ENABLE_IGEN_FALSE= | |
c906108c SS |
13752 | fi |
13753 | ||
b6b1c790 | 13754 | |
ba307cdd MF |
13755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5 |
13756 | $as_echo_n "checking whether to force sim alignment... " >&6; } | |
13757 | sim_alignment= | |
13758 | # Check whether --enable-sim-alignment was given. | |
13759 | if test "${enable_sim_alignment+set}" = set; then : | |
13760 | enableval=$enable_sim_alignment; case "${enableval}" in | |
13761 | yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";; | |
13762 | no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";; | |
13763 | forced | FORCED) sim_alignment="FORCED_ALIGNMENT";; | |
13764 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;; | |
13765 | esac | |
13766 | fi | |
13767 | ||
13768 | cat >>confdefs.h <<_ACEOF | |
13769 | #define WITH_ALIGNMENT ${sim_alignment:-0} | |
13770 | _ACEOF | |
13771 | ||
13772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5 | |
13773 | $as_echo "${sim_alignment:-no}" >&6; } | |
13774 | ||
dba333c1 MF |
13775 | |
13776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5 | |
13777 | $as_echo_n "checking whether to enable sim asserts... " >&6; } | |
13778 | sim_assert="1" | |
13779 | # Check whether --enable-sim-assert was given. | |
13780 | if test "${enable_sim_assert+set}" = set; then : | |
13781 | enableval=$enable_sim_assert; case "${enableval}" in | |
13782 | yes) sim_assert="1";; | |
13783 | no) sim_assert="0";; | |
13784 | *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;; | |
13785 | esac | |
13786 | fi | |
13787 | ||
13788 | cat >>confdefs.h <<_ACEOF | |
13789 | #define WITH_ASSERT $sim_assert | |
13790 | _ACEOF | |
13791 | ||
13792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5 | |
13793 | $as_echo "$sim_assert" >&6; } | |
13794 | ||
1bf5c342 MF |
13795 | |
13796 | cgen_maint=no | |
13797 | cgen=guile | |
13798 | cgendir='$(srcdir)/../../cgen' | |
13799 | # Check whether --enable-cgen-maint was given. | |
13800 | if test "${enable_cgen_maint+set}" = set; then : | |
13801 | enableval=$enable_cgen_maint; case "${enableval}" in | |
13802 | yes) cgen_maint=yes ;; | |
13803 | no) cgen_maint=no ;; | |
13804 | *) | |
13805 | # Argument is a directory where cgen can be found. In some | |
13806 | # future world cgen could be installable, but right now this | |
13807 | # is not the case. Instead we assume the directory is a path | |
13808 | # to the cgen source tree. | |
13809 | cgen_maint=yes | |
13810 | if test -r ${enableval}/iformat.scm; then | |
13811 | # This looks like a cgen source tree. | |
13812 | cgendir=${enableval} | |
13813 | else | |
13814 | as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5 | |
13815 | fi | |
13816 | ;; | |
13817 | esac | |
13818 | fi | |
13819 | if test x${cgen_maint} != xno ; then | |
13820 | CGEN_MAINT='' | |
13821 | else | |
13822 | CGEN_MAINT='#' | |
13823 | fi | |
13824 | ||
13825 | ||
13826 | ||
13827 | ||
04381273 MF |
13828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5 |
13829 | $as_echo_n "checking for sim debug setting... " >&6; } | |
13830 | sim_debug="0" | |
13831 | # Check whether --enable-sim-debug was given. | |
13832 | if test "${enable_sim_debug+set}" = set; then : | |
13833 | enableval=$enable_sim_debug; case "${enableval}" in | |
13834 | yes) sim_debug="7";; | |
13835 | no) sim_debug="0";; | |
13836 | *) sim_debug="($enableval)";; | |
13837 | esac | |
13838 | fi | |
13839 | if test "$sim_debug" != "0"; then | |
13840 | ||
13841 | cat >>confdefs.h <<_ACEOF | |
13842 | #define DEBUG $sim_debug | |
13843 | _ACEOF | |
13844 | ||
13845 | fi | |
13846 | ||
13847 | cat >>confdefs.h <<_ACEOF | |
13848 | #define WITH_DEBUG $sim_debug | |
13849 | _ACEOF | |
13850 | ||
13851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5 | |
13852 | $as_echo "$sim_debug" >&6; } | |
f9a4d543 MF |
13853 | |
13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5 | |
13855 | $as_echo_n "checking whether to force sim endianness... " >&6; } | |
13856 | sim_endian= | |
13857 | # Check whether --enable-sim-endian was given. | |
13858 | if test "${enable_sim_endian+set}" = set; then : | |
13859 | enableval=$enable_sim_endian; case "${enableval}" in | |
13860 | b*|B*) sim_endian="BFD_ENDIAN_BIG";; | |
13861 | l*|L*) sim_endian="BFD_ENDIAN_LITTLE";; | |
13862 | yes | no) ;; | |
13863 | *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;; | |
13864 | esac | |
13865 | fi | |
13866 | ||
13867 | cat >>confdefs.h <<_ACEOF | |
13868 | #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN} | |
13869 | _ACEOF | |
13870 | ||
13871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5 | |
13872 | $as_echo "${sim_alignment:-no}" >&6; } | |
04381273 | 13873 | |
dba333c1 | 13874 | |
5ea45474 MF |
13875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5 |
13876 | $as_echo_n "checking default sim environment setting... " >&6; } | |
13877 | sim_environment="ALL_ENVIRONMENT" | |
13878 | # Check whether --enable-sim-environment was given. | |
13879 | if test "${enable_sim_environment+set}" = set; then : | |
13880 | enableval=$enable_sim_environment; case "${enableval}" in | |
13881 | all | ALL) sim_environment="ALL_ENVIRONMENT";; | |
13882 | user | USER) sim_environment="USER_ENVIRONMENT";; | |
13883 | virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";; | |
13884 | operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";; | |
13885 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;; | |
13886 | esac | |
13887 | fi | |
13888 | ||
13889 | cat >>confdefs.h <<_ACEOF | |
13890 | #define WITH_ENVIRONMENT $sim_environment | |
13891 | _ACEOF | |
13892 | ||
13893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5 | |
13894 | $as_echo "$sim_environment" >&6; } | |
13895 | ||
456ef1c1 MF |
13896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5 |
13897 | $as_echo_n "checking for sim hardware settings... " >&6; } | |
13898 | # Check whether --enable-sim-hardware was given. | |
13899 | if test "${enable_sim_hardware+set}" = set; then : | |
13900 | enableval=$enable_sim_hardware; | |
13901 | else | |
13902 | enable_sim_hardware="yes" | |
13903 | fi | |
13904 | ||
13905 | sim_hw_sockser= | |
13906 | if test "$enable_sim_hardware" = no; then | |
13907 | sim_hw_cflags="-DWITH_HW=0" | |
13908 | elif test "$enable_sim_hardware" = yes; then | |
13909 | sim_hw_cflags="-DWITH_HW=1" | |
13910 | # mingw does not support sockser | |
13911 | case ${host} in | |
13912 | *mingw*) ;; | |
13913 | *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device | |
13914 | # that you instatiate. Instead, other code will call into it directly. | |
13915 | # At some point, we should convert it over. | |
13916 | sim_hw_sockser="dv-sockser.o" | |
13917 | sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER" | |
13918 | ;; | |
13919 | esac | |
13920 | else | |
13921 | as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5 | |
13922 | fi | |
13923 | if test "$enable_sim_hardware" = "yes"; then | |
13924 | SIM_ENABLE_HW_TRUE= | |
13925 | SIM_ENABLE_HW_FALSE='#' | |
13926 | else | |
13927 | SIM_ENABLE_HW_TRUE='#' | |
13928 | SIM_ENABLE_HW_FALSE= | |
13929 | fi | |
13930 | ||
13931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5 | |
13932 | $as_echo "${enable_sim_hardware}" >&6; } | |
13933 | ||
13934 | ||
13935 | ||
d73f39ee MF |
13936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5 |
13937 | $as_echo_n "checking sim inline settings... " >&6; } | |
13938 | sim_inline="-DDEFAULT_INLINE=0" | |
13939 | # Check whether --enable-sim-inline was given. | |
13940 | if test "${enable_sim_inline+set}" = set; then : | |
13941 | enableval=$enable_sim_inline; sim_inline="" | |
13942 | case "$enableval" in | |
13943 | no) sim_inline="-DDEFAULT_INLINE=0";; | |
13944 | 0) sim_inline="-DDEFAULT_INLINE=0";; | |
13945 | yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";; | |
13946 | 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";; | |
13947 | *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
13948 | new_flag="" | |
13949 | case "$x" in | |
13950 | *_INLINE=*) new_flag="-D$x";; | |
13951 | *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;; | |
13952 | *_INLINE) new_flag="-D$x=ALL_C_INLINE";; | |
13953 | *) new_flag="-D$x""_INLINE=ALL_C_INLINE";; | |
13954 | esac | |
13955 | if test x"$sim_inline" = x""; then | |
13956 | sim_inline="$new_flag" | |
13957 | else | |
13958 | sim_inline="$sim_inline $new_flag" | |
13959 | fi | |
13960 | done;; | |
13961 | esac | |
13962 | ||
13963 | fi | |
13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5 | |
13965 | $as_echo "$sim_inline" >&6; } | |
13966 | SIM_INLINE=$sim_inline | |
13967 | ||
13968 | ||
04381273 MF |
13969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5 |
13970 | $as_echo_n "checking for sim profile settings... " >&6; } | |
13971 | profile="1" | |
13972 | sim_profile="-1" | |
13973 | # Check whether --enable-sim-profile was given. | |
13974 | if test "${enable_sim_profile+set}" = set; then : | |
13975 | enableval=$enable_sim_profile; case "${enableval}" in | |
13976 | yes) profile="1" sim_profile="-1";; | |
13977 | no) profile="0" sim_profile="0";; | |
13978 | [-0-9]*) | |
13979 | profile="(${enableval})" sim_profile="(${enableval})";; | |
13980 | [a-z]*) | |
13981 | profile="1" | |
13982 | sim_profile="" | |
13983 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
13984 | if test x"$sim_profile" = x; then | |
13985 | sim_profile="(PROFILE_$x" | |
13986 | else | |
13987 | sim_profile="${sim_profile}|PROFILE_$x" | |
13988 | fi | |
13989 | done | |
13990 | sim_profile="$sim_profile)" ;; | |
13991 | esac | |
13992 | fi | |
13993 | ||
13994 | cat >>confdefs.h <<_ACEOF | |
13995 | #define PROFILE $profile | |
13996 | _ACEOF | |
13997 | ||
13998 | ||
13999 | cat >>confdefs.h <<_ACEOF | |
14000 | #define WITH_PROFILE $sim_profile | |
14001 | _ACEOF | |
14002 | ||
14003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5 | |
14004 | $as_echo "$sim_profile" >&6; } | |
14005 | ||
14006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5 | |
14007 | $as_echo_n "checking for sim stdio debug behavior... " >&6; } | |
14008 | sim_stdio="0" | |
14009 | # Check whether --enable-sim-stdio was given. | |
14010 | if test "${enable_sim_stdio+set}" = set; then : | |
14011 | enableval=$enable_sim_stdio; case "${enableval}" in | |
14012 | yes) sim_stdio="DO_USE_STDIO";; | |
14013 | no) sim_stdio="DONT_USE_STDIO";; | |
14014 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;; | |
14015 | esac | |
14016 | fi | |
14017 | ||
14018 | cat >>confdefs.h <<_ACEOF | |
14019 | #define WITH_STDIO $sim_stdio | |
14020 | _ACEOF | |
14021 | ||
14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5 | |
14023 | $as_echo "$sim_stdio" >&6; } | |
14024 | ||
14025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5 | |
14026 | $as_echo_n "checking for sim trace settings... " >&6; } | |
14027 | sim_trace="~TRACE_debug" | |
14028 | # Check whether --enable-sim-trace was given. | |
14029 | if test "${enable_sim_trace+set}" = set; then : | |
14030 | enableval=$enable_sim_trace; case "${enableval}" in | |
14031 | yes) sim_trace="-1";; | |
14032 | no) sim_trace="0";; | |
14033 | [-0-9]*) | |
14034 | sim_trace="'(${enableval})'";; | |
14035 | [[:lower:]]*) | |
14036 | sim_trace="" | |
14037 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
14038 | if test x"$sim_trace" = x; then | |
14039 | sim_trace="(TRACE_$x" | |
14040 | else | |
14041 | sim_trace="${sim_trace}|TRACE_$x" | |
14042 | fi | |
14043 | done | |
14044 | sim_trace="$sim_trace)" ;; | |
14045 | esac | |
14046 | fi | |
14047 | ||
14048 | cat >>confdefs.h <<_ACEOF | |
14049 | #define WITH_TRACE $sim_trace | |
14050 | _ACEOF | |
14051 | ||
14052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5 | |
14053 | $as_echo "$sim_trace" >&6; } | |
14054 | ||
5ea45474 | 14055 | |
47ce766a MF |
14056 | # Check whether --enable-werror was given. |
14057 | if test "${enable_werror+set}" = set; then : | |
14058 | enableval=$enable_werror; case "${enableval}" in | |
14059 | yes | y) ERROR_ON_WARNING="yes" ;; | |
14060 | no | n) ERROR_ON_WARNING="no" ;; | |
14061 | *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
14062 | esac | |
14063 | fi | |
14064 | ||
14065 | ||
14066 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
14067 | ERROR_ON_WARNING=yes | |
14068 | fi | |
14069 | ||
14070 | WERROR_CFLAGS="" | |
14071 | if test "${ERROR_ON_WARNING}" = yes ; then | |
14072 | WERROR_CFLAGS="-Werror" | |
14073 | fi | |
14074 | ||
14075 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ | |
14076 | -Wpointer-sign \ | |
14077 | -Wno-unused -Wunused-value -Wunused-function \ | |
14078 | -Wno-switch -Wno-char-subscripts -Wmissing-prototypes | |
14079 | -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \ | |
14080 | -Wold-style-declaration -Wold-style-definition" | |
14081 | ||
14082 | # Enable -Wno-format by default when using gcc on mingw since many | |
14083 | # GCC versions complain about %I64. | |
14084 | case "${host}" in | |
14085 | *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;; | |
14086 | *) build_warnings="$build_warnings -Wformat-nonliteral" ;; | |
14087 | esac | |
14088 | ||
14089 | # Check whether --enable-build-warnings was given. | |
14090 | if test "${enable_build_warnings+set}" = set; then : | |
14091 | enableval=$enable_build_warnings; case "${enableval}" in | |
14092 | yes) ;; | |
14093 | no) build_warnings="-w";; | |
14094 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
14095 | build_warnings="${build_warnings} ${t}";; | |
14096 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
14097 | build_warnings="${t} ${build_warnings}";; | |
14098 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
14099 | esac | |
14100 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
14101 | echo "Setting compiler warning flags = $build_warnings" 6>&1 | |
14102 | fi | |
14103 | fi | |
14104 | # Check whether --enable-sim-build-warnings was given. | |
14105 | if test "${enable_sim_build_warnings+set}" = set; then : | |
14106 | enableval=$enable_sim_build_warnings; case "${enableval}" in | |
14107 | yes) ;; | |
14108 | no) build_warnings="-w";; | |
14109 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
14110 | build_warnings="${build_warnings} ${t}";; | |
14111 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
14112 | build_warnings="${t} ${build_warnings}";; | |
14113 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
14114 | esac | |
14115 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
14116 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
14117 | fi | |
14118 | fi | |
14119 | WARN_CFLAGS="" | |
14120 | if test "x${build_warnings}" != x -a "x$GCC" = xyes | |
14121 | then | |
14122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5 | |
14123 | $as_echo_n "checking compiler warning flags... " >&6; } | |
14124 | # Separate out the -Werror flag as some files just cannot be | |
14125 | # compiled with it enabled. | |
14126 | for w in ${build_warnings}; do | |
14127 | case $w in | |
14128 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
14129 | *) # Check that GCC accepts it | |
14130 | saved_CFLAGS="$CFLAGS" | |
14131 | CFLAGS="$CFLAGS -Werror $w" | |
14132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14133 | /* end confdefs.h. */ | |
14134 | ||
14135 | int | |
14136 | main () | |
14137 | { | |
14138 | ||
14139 | ; | |
14140 | return 0; | |
14141 | } | |
14142 | _ACEOF | |
14143 | if ac_fn_c_try_compile "$LINENO"; then : | |
14144 | WARN_CFLAGS="${WARN_CFLAGS} $w" | |
14145 | fi | |
14146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14147 | CFLAGS="$saved_CFLAGS" | |
14148 | esac | |
14149 | done | |
14150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 | |
14151 | $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } | |
14152 | fi | |
14153 | ||
14154 | ||
3f8414df | 14155 | ac_config_files="$ac_config_files arch-subdir.mk Makefile" |
81ecdfbb | 14156 | |
b7026657 | 14157 | cat >confcache <<\_ACEOF |
c906108c SS |
14158 | # This file is a shell script that caches the results of configure |
14159 | # tests run on this system so they can be shared between configure | |
b7026657 AC |
14160 | # scripts and configure runs, see configure's option --config-cache. |
14161 | # It is not useful on other systems. If it contains results you don't | |
14162 | # want to keep, you may remove or edit it. | |
c906108c | 14163 | # |
b7026657 AC |
14164 | # config.status only pays attention to the cache file if you give it |
14165 | # the --recheck option to rerun configure. | |
c906108c | 14166 | # |
b7026657 AC |
14167 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14168 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14169 | # following values. | |
14170 | ||
14171 | _ACEOF | |
14172 | ||
c906108c SS |
14173 | # The following way of writing the cache mishandles newlines in values, |
14174 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14175 | # So, we kill variables containing newlines. |
c906108c SS |
14176 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14177 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14178 | ( |
14179 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14180 | eval ac_val=\$$ac_var | |
14181 | case $ac_val in #( | |
14182 | *${as_nl}*) | |
14183 | case $ac_var in #( | |
14184 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14185 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14186 | esac | |
14187 | case $ac_var in #( | |
14188 | _ | IFS | as_nl) ;; #( | |
14189 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14190 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14191 | esac ;; | |
14192 | esac | |
14193 | done | |
14194 | ||
b7026657 | 14195 | (set) 2>&1 | |
81ecdfbb RW |
14196 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14197 | *${as_nl}ac_space=\ *) | |
14198 | # `set' does not quote correctly, so add quotes: double-quote | |
14199 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b7026657 AC |
14200 | sed -n \ |
14201 | "s/'/'\\\\''/g; | |
14202 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14203 | ;; #( |
b7026657 AC |
14204 | *) |
14205 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14206 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 14207 | ;; |
81ecdfbb RW |
14208 | esac | |
14209 | sort | |
14210 | ) | | |
b7026657 | 14211 | sed ' |
81ecdfbb | 14212 | /^ac_cv_env_/b end |
b7026657 | 14213 | t clear |
81ecdfbb | 14214 | :clear |
b7026657 AC |
14215 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14216 | t end | |
81ecdfbb RW |
14217 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14218 | :end' >>confcache | |
14219 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14220 | if test -w "$cache_file"; then | |
d0ac1c44 | 14221 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
14222 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
14223 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
14224 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
14225 | cat confcache >"$cache_file" | |
14226 | else | |
14227 | case $cache_file in #( | |
14228 | */* | ?:*) | |
14229 | mv -f confcache "$cache_file"$$ && | |
14230 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
14231 | *) | |
14232 | mv -f confcache "$cache_file" ;; | |
14233 | esac | |
14234 | fi | |
14235 | fi | |
c906108c | 14236 | else |
81ecdfbb RW |
14237 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14238 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
c906108c SS |
14239 | fi |
14240 | fi | |
14241 | rm -f confcache | |
14242 | ||
c906108c SS |
14243 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14244 | # Let make expand exec_prefix. | |
14245 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14246 | ||
b15c5d7a | 14247 | DEFS=-DHAVE_CONFIG_H |
b7026657 AC |
14248 | |
14249 | ac_libobjs= | |
14250 | ac_ltlibobjs= | |
d0ac1c44 | 14251 | U= |
b7026657 AC |
14252 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
14253 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14254 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14255 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14256 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14257 | # will be set to the directory where LIBOBJS objects are built. | |
14258 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14259 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b7026657 AC |
14260 | done |
14261 | LIBOBJS=$ac_libobjs | |
c906108c | 14262 | |
b7026657 AC |
14263 | LTLIBOBJS=$ac_ltlibobjs |
14264 | ||
14265 | ||
c2783492 | 14266 | |
b5689863 MF |
14267 | if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then |
14268 | as_fn_error $? "conditional \"PLUGINS\" was never defined. | |
14269 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14270 | fi | |
8c379db2 TT |
14271 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
14272 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
14273 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14274 | fi | |
6bddc3e8 MF |
14275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
14276 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
14277 | if test -n "$am_sleep_pid"; then | |
14278 | # Hide warnings about reused PIDs. | |
14279 | wait $am_sleep_pid 2>/dev/null | |
14280 | fi | |
14281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
14282 | $as_echo "done" >&6; } | |
6bddc3e8 MF |
14283 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
14284 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
14285 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14286 | fi | |
14287 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
14288 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
14289 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14290 | fi | |
c2783492 MF |
14291 | if test -n "$EXEEXT"; then |
14292 | am__EXEEXT_TRUE= | |
14293 | am__EXEEXT_FALSE='#' | |
14294 | else | |
14295 | am__EXEEXT_TRUE='#' | |
14296 | am__EXEEXT_FALSE= | |
6bddc3e8 | 14297 | fi |
b7026657 | 14298 | |
b6b1c790 MF |
14299 | if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then |
14300 | as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined. | |
14301 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14302 | fi | |
456ef1c1 MF |
14303 | if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then |
14304 | as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined. | |
14305 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14306 | fi | |
c2783492 | 14307 | |
d0ac1c44 | 14308 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 14309 | ac_write_fail=0 |
b7026657 AC |
14310 | ac_clean_files_save=$ac_clean_files |
14311 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14312 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14313 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14314 | as_write_fail=0 | |
14315 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b7026657 AC |
14316 | #! $SHELL |
14317 | # Generated by $as_me. | |
c906108c | 14318 | # Run this file to recreate the current configuration. |
c906108c | 14319 | # Compiler output produced by configure, useful for debugging |
b7026657 AC |
14320 | # configure, is in config.log if it exists. |
14321 | ||
14322 | debug=false | |
14323 | ac_cs_recheck=false | |
14324 | ac_cs_silent=false | |
b7026657 | 14325 | |
81ecdfbb RW |
14326 | SHELL=\${CONFIG_SHELL-$SHELL} |
14327 | export SHELL | |
14328 | _ASEOF | |
14329 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14330 | ## -------------------- ## | |
14331 | ## M4sh Initialization. ## | |
14332 | ## -------------------- ## | |
14333 | ||
14334 | # Be more Bourne compatible | |
14335 | DUALCASE=1; export DUALCASE # for MKS sh | |
14336 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b7026657 AC |
14337 | emulate sh |
14338 | NULLCMD=: | |
81ecdfbb | 14339 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b7026657 AC |
14340 | # is contrary to our usage. Disable this feature. |
14341 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14342 | setopt NO_GLOB_SUBST |
14343 | else | |
14344 | case `(set -o) 2>/dev/null` in #( | |
14345 | *posix*) : | |
14346 | set -o posix ;; #( | |
14347 | *) : | |
14348 | ;; | |
14349 | esac | |
b7026657 | 14350 | fi |
c906108c | 14351 | |
81ecdfbb RW |
14352 | |
14353 | as_nl=' | |
14354 | ' | |
14355 | export as_nl | |
14356 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14357 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14358 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14359 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14360 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14361 | # but without wasting forks for bash or zsh. | |
14362 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14363 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14364 | as_echo='print -r --' | |
14365 | as_echo_n='print -rn --' | |
14366 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14367 | as_echo='printf %s\n' | |
14368 | as_echo_n='printf %s' | |
b7026657 | 14369 | else |
81ecdfbb RW |
14370 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
14371 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14372 | as_echo_n='/usr/ucb/echo -n' | |
14373 | else | |
14374 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14375 | as_echo_n_body='eval | |
14376 | arg=$1; | |
14377 | case $arg in #( | |
14378 | *"$as_nl"*) | |
14379 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14380 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14381 | esac; | |
14382 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14383 | ' | |
14384 | export as_echo_n_body | |
14385 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14386 | fi | |
14387 | export as_echo_body | |
14388 | as_echo='sh -c $as_echo_body as_echo' | |
14389 | fi | |
14390 | ||
14391 | # The user is always right. | |
14392 | if test "${PATH_SEPARATOR+set}" != set; then | |
14393 | PATH_SEPARATOR=: | |
14394 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14395 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14396 | PATH_SEPARATOR=';' | |
14397 | } | |
b7026657 AC |
14398 | fi |
14399 | ||
14400 | ||
81ecdfbb RW |
14401 | # IFS |
14402 | # We need space, tab and new line, in precisely that order. Quoting is | |
14403 | # there to prevent editors from complaining about space-tab. | |
14404 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14405 | # splitting by setting IFS to empty value.) | |
14406 | IFS=" "" $as_nl" | |
14407 | ||
14408 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 14409 | as_myself= |
81ecdfbb RW |
14410 | case $0 in #(( |
14411 | *[\\/]* ) as_myself=$0 ;; | |
14412 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14413 | for as_dir in $PATH | |
14414 | do | |
14415 | IFS=$as_save_IFS | |
14416 | test -z "$as_dir" && as_dir=. | |
14417 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14418 | done | |
14419 | IFS=$as_save_IFS | |
14420 | ||
14421 | ;; | |
14422 | esac | |
14423 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14424 | # in which case we are not to be found in the path. | |
14425 | if test "x$as_myself" = x; then | |
14426 | as_myself=$0 | |
14427 | fi | |
14428 | if test ! -f "$as_myself"; then | |
14429 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14430 | exit 1 | |
14431 | fi | |
14432 | ||
14433 | # Unset variables that we do not need and which cause bugs (e.g. in | |
14434 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14435 | # suppresses any "Segmentation fault" message there. '((' could | |
14436 | # trigger a bug in pdksh 5.2.14. | |
14437 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14438 | do eval test x\${$as_var+set} = xset \ | |
14439 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14440 | done | |
b7026657 AC |
14441 | PS1='$ ' |
14442 | PS2='> ' | |
14443 | PS4='+ ' | |
14444 | ||
14445 | # NLS nuisances. | |
81ecdfbb RW |
14446 | LC_ALL=C |
14447 | export LC_ALL | |
14448 | LANGUAGE=C | |
14449 | export LANGUAGE | |
14450 | ||
14451 | # CDPATH. | |
14452 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14453 | ||
14454 | ||
d0ac1c44 SM |
14455 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
14456 | # ---------------------------------------- | |
81ecdfbb RW |
14457 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
14458 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 14459 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
14460 | as_fn_error () |
14461 | { | |
d0ac1c44 SM |
14462 | as_status=$1; test $as_status -eq 0 && as_status=1 |
14463 | if test "$4"; then | |
14464 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14465 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b7026657 | 14466 | fi |
d0ac1c44 | 14467 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
14468 | as_fn_exit $as_status |
14469 | } # as_fn_error | |
c906108c | 14470 | |
81ecdfbb RW |
14471 | |
14472 | # as_fn_set_status STATUS | |
14473 | # ----------------------- | |
14474 | # Set $? to STATUS, without forking. | |
14475 | as_fn_set_status () | |
14476 | { | |
14477 | return $1 | |
14478 | } # as_fn_set_status | |
14479 | ||
14480 | # as_fn_exit STATUS | |
14481 | # ----------------- | |
14482 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14483 | as_fn_exit () | |
14484 | { | |
14485 | set +e | |
14486 | as_fn_set_status $1 | |
14487 | exit $1 | |
14488 | } # as_fn_exit | |
14489 | ||
14490 | # as_fn_unset VAR | |
14491 | # --------------- | |
14492 | # Portably unset VAR. | |
14493 | as_fn_unset () | |
14494 | { | |
14495 | { eval $1=; unset $1;} | |
14496 | } | |
14497 | as_unset=as_fn_unset | |
14498 | # as_fn_append VAR VALUE | |
14499 | # ---------------------- | |
14500 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14501 | # advantage of any shell optimizations that allow amortized linear growth over | |
14502 | # repeated appends, instead of the typical quadratic growth present in naive | |
14503 | # implementations. | |
14504 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14505 | eval 'as_fn_append () | |
14506 | { | |
14507 | eval $1+=\$2 | |
14508 | }' | |
14509 | else | |
14510 | as_fn_append () | |
14511 | { | |
14512 | eval $1=\$$1\$2 | |
14513 | } | |
14514 | fi # as_fn_append | |
14515 | ||
14516 | # as_fn_arith ARG... | |
14517 | # ------------------ | |
14518 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14519 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14520 | # must be portable across $(()) and expr. | |
14521 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14522 | eval 'as_fn_arith () | |
14523 | { | |
14524 | as_val=$(( $* )) | |
14525 | }' | |
14526 | else | |
14527 | as_fn_arith () | |
14528 | { | |
14529 | as_val=`expr "$@" || test $? -eq 1` | |
14530 | } | |
14531 | fi # as_fn_arith | |
14532 | ||
14533 | ||
14534 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
14535 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 AC |
14536 | as_expr=expr |
14537 | else | |
14538 | as_expr=false | |
14539 | fi | |
c906108c | 14540 | |
81ecdfbb | 14541 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 AC |
14542 | as_basename=basename |
14543 | else | |
14544 | as_basename=false | |
14545 | fi | |
c906108c | 14546 | |
81ecdfbb RW |
14547 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14548 | as_dirname=dirname | |
14549 | else | |
14550 | as_dirname=false | |
14551 | fi | |
c906108c | 14552 | |
81ecdfbb | 14553 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
14554 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14555 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14556 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14557 | $as_echo X/"$0" | | |
14558 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14559 | s//\1/ | |
14560 | q | |
14561 | } | |
14562 | /^X\/\(\/\/\)$/{ | |
14563 | s//\1/ | |
14564 | q | |
14565 | } | |
14566 | /^X\/\(\/\).*/{ | |
14567 | s//\1/ | |
14568 | q | |
14569 | } | |
14570 | s/.*/./; q'` | |
b7026657 | 14571 | |
fdd6fa61 AG |
14572 | # Avoid depending upon Character Ranges. |
14573 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14574 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14575 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14576 | as_cr_digits='0123456789' | |
14577 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14578 | ||
81ecdfbb RW |
14579 | ECHO_C= ECHO_N= ECHO_T= |
14580 | case `echo -n x` in #((((( | |
14581 | -n*) | |
14582 | case `echo 'xy\c'` in | |
14583 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14584 | xy) ECHO_C='\c';; | |
14585 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14586 | ECHO_T=' ';; | |
14587 | esac;; | |
14588 | *) | |
14589 | ECHO_N='-n';; | |
b7026657 AC |
14590 | esac |
14591 | ||
81ecdfbb RW |
14592 | rm -f conf$$ conf$$.exe conf$$.file |
14593 | if test -d conf$$.dir; then | |
14594 | rm -f conf$$.dir/conf$$.file | |
b7026657 | 14595 | else |
81ecdfbb RW |
14596 | rm -f conf$$.dir |
14597 | mkdir conf$$.dir 2>/dev/null | |
b7026657 | 14598 | fi |
81ecdfbb RW |
14599 | if (echo >conf$$.file) 2>/dev/null; then |
14600 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
fdd6fa61 | 14601 | as_ln_s='ln -s' |
81ecdfbb RW |
14602 | # ... but there are two gotchas: |
14603 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14604 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 14605 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 14606 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 14607 | as_ln_s='cp -pR' |
81ecdfbb RW |
14608 | elif ln conf$$.file conf$$ 2>/dev/null; then |
14609 | as_ln_s=ln | |
14610 | else | |
d0ac1c44 | 14611 | as_ln_s='cp -pR' |
fdd6fa61 | 14612 | fi |
b7026657 | 14613 | else |
d0ac1c44 | 14614 | as_ln_s='cp -pR' |
b7026657 | 14615 | fi |
81ecdfbb RW |
14616 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14617 | rmdir conf$$.dir 2>/dev/null | |
14618 | ||
14619 | ||
14620 | # as_fn_mkdir_p | |
14621 | # ------------- | |
14622 | # Create "$as_dir" as a directory, including parents if necessary. | |
14623 | as_fn_mkdir_p () | |
14624 | { | |
b7026657 | 14625 | |
81ecdfbb RW |
14626 | case $as_dir in #( |
14627 | -*) as_dir=./$as_dir;; | |
14628 | esac | |
14629 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14630 | as_dirs= | |
14631 | while :; do | |
14632 | case $as_dir in #( | |
14633 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14634 | *) as_qdir=$as_dir;; | |
14635 | esac | |
14636 | as_dirs="'$as_qdir' $as_dirs" | |
14637 | as_dir=`$as_dirname -- "$as_dir" || | |
14638 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14639 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14640 | X"$as_dir" : 'X\(//\)$' \| \ | |
14641 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14642 | $as_echo X"$as_dir" | | |
14643 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14644 | s//\1/ | |
14645 | q | |
14646 | } | |
14647 | /^X\(\/\/\)[^/].*/{ | |
14648 | s//\1/ | |
14649 | q | |
14650 | } | |
14651 | /^X\(\/\/\)$/{ | |
14652 | s//\1/ | |
14653 | q | |
14654 | } | |
14655 | /^X\(\/\).*/{ | |
14656 | s//\1/ | |
14657 | q | |
14658 | } | |
14659 | s/.*/./; q'` | |
14660 | test -d "$as_dir" && break | |
14661 | done | |
14662 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 14663 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
14664 | |
14665 | ||
14666 | } # as_fn_mkdir_p | |
b7026657 | 14667 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 14668 | as_mkdir_p='mkdir -p "$as_dir"' |
b7026657 AC |
14669 | else |
14670 | test -d ./-p && rmdir ./-p | |
14671 | as_mkdir_p=false | |
14672 | fi | |
14673 | ||
d0ac1c44 SM |
14674 | |
14675 | # as_fn_executable_p FILE | |
14676 | # ----------------------- | |
14677 | # Test if FILE is an executable regular file. | |
14678 | as_fn_executable_p () | |
14679 | { | |
14680 | test -f "$1" && test -x "$1" | |
14681 | } # as_fn_executable_p | |
14682 | as_test_x='test -x' | |
14683 | as_executable_p=as_fn_executable_p | |
b7026657 AC |
14684 | |
14685 | # Sed expression to map a string onto a valid CPP name. | |
14686 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14687 | ||
14688 | # Sed expression to map a string onto a valid variable name. | |
14689 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14690 | ||
14691 | ||
b7026657 | 14692 | exec 6>&1 |
81ecdfbb RW |
14693 | ## ----------------------------------- ## |
14694 | ## Main body of $CONFIG_STATUS script. ## | |
14695 | ## ----------------------------------- ## | |
14696 | _ASEOF | |
14697 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
14698 | ||
14699 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14700 | # Save the log message, to keep $0 and so on meaningful, and to | |
b7026657 | 14701 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
14702 | # values after options handling. |
14703 | ac_log=" | |
6bddc3e8 | 14704 | This file was extended by sim $as_me 0, which was |
d0ac1c44 | 14705 | generated by GNU Autoconf 2.69. Invocation command line was |
b7026657 AC |
14706 | |
14707 | CONFIG_FILES = $CONFIG_FILES | |
14708 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14709 | CONFIG_LINKS = $CONFIG_LINKS | |
14710 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14711 | $ $0 $@ | |
14712 | ||
81ecdfbb RW |
14713 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14714 | " | |
14715 | ||
b7026657 AC |
14716 | _ACEOF |
14717 | ||
81ecdfbb RW |
14718 | case $ac_config_files in *" |
14719 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14720 | esac | |
b7026657 | 14721 | |
b15c5d7a MF |
14722 | case $ac_config_headers in *" |
14723 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
14724 | esac | |
fdd6fa61 | 14725 | |
fdd6fa61 | 14726 | |
81ecdfbb RW |
14727 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14728 | # Files that config.status was made for. | |
14729 | config_files="$ac_config_files" | |
b15c5d7a | 14730 | config_headers="$ac_config_headers" |
6bddc3e8 | 14731 | config_commands="$ac_config_commands" |
b7026657 | 14732 | |
81ecdfbb | 14733 | _ACEOF |
fdd6fa61 | 14734 | |
81ecdfbb | 14735 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 | 14736 | ac_cs_usage="\ |
81ecdfbb RW |
14737 | \`$as_me' instantiates files and other configuration actions |
14738 | from templates according to the current configuration. Unless the files | |
14739 | and actions are specified as TAGs, all are instantiated by default. | |
b7026657 | 14740 | |
81ecdfbb | 14741 | Usage: $0 [OPTION]... [TAG]... |
b7026657 AC |
14742 | |
14743 | -h, --help print this help, then exit | |
81ecdfbb | 14744 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 14745 | --config print configuration, then exit |
81ecdfbb RW |
14746 | -q, --quiet, --silent |
14747 | do not print progress messages | |
b7026657 AC |
14748 | -d, --debug don't remove temporary files |
14749 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
14750 | --file=FILE[:TEMPLATE] |
14751 | instantiate the configuration file FILE | |
b15c5d7a MF |
14752 | --header=FILE[:TEMPLATE] |
14753 | instantiate the configuration header FILE | |
b7026657 AC |
14754 | |
14755 | Configuration files: | |
14756 | $config_files | |
14757 | ||
b15c5d7a MF |
14758 | Configuration headers: |
14759 | $config_headers | |
14760 | ||
6bddc3e8 MF |
14761 | Configuration commands: |
14762 | $config_commands | |
14763 | ||
14764 | Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. | |
14765 | sim home page: <https://sourceware.org/gdb/wiki/Sim/>." | |
fdd6fa61 | 14766 | |
81ecdfbb RW |
14767 | _ACEOF |
14768 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 14769 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b7026657 | 14770 | ac_cs_version="\\ |
6bddc3e8 | 14771 | sim config.status 0 |
d0ac1c44 SM |
14772 | configured by $0, generated by GNU Autoconf 2.69, |
14773 | with options \\"\$ac_cs_config\\" | |
b7026657 | 14774 | |
d0ac1c44 | 14775 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
14776 | This config.status script is free software; the Free Software Foundation |
14777 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
14778 | |
14779 | ac_pwd='$ac_pwd' | |
14780 | srcdir='$srcdir' | |
14781 | INSTALL='$INSTALL' | |
6bddc3e8 MF |
14782 | MKDIR_P='$MKDIR_P' |
14783 | AWK='$AWK' | |
81ecdfbb | 14784 | test -n "\$AWK" || AWK=awk |
b7026657 AC |
14785 | _ACEOF |
14786 | ||
81ecdfbb RW |
14787 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14788 | # The default lists apply if the user does not specify any file. | |
b7026657 AC |
14789 | ac_need_defaults=: |
14790 | while test $# != 0 | |
14791 | do | |
14792 | case $1 in | |
d0ac1c44 | 14793 | --*=?*) |
81ecdfbb RW |
14794 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14795 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b7026657 AC |
14796 | ac_shift=: |
14797 | ;; | |
d0ac1c44 SM |
14798 | --*=) |
14799 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
14800 | ac_optarg= | |
14801 | ac_shift=: | |
14802 | ;; | |
81ecdfbb | 14803 | *) |
b7026657 AC |
14804 | ac_option=$1 |
14805 | ac_optarg=$2 | |
14806 | ac_shift=shift | |
14807 | ;; | |
b7026657 AC |
14808 | esac |
14809 | ||
14810 | case $ac_option in | |
14811 | # Handling of the options. | |
b7026657 AC |
14812 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
14813 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
14814 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14815 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
14816 | --config | --confi | --conf | --con | --co | --c ) |
14817 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 14818 | --debug | --debu | --deb | --de | --d | -d ) |
b7026657 AC |
14819 | debug=: ;; |
14820 | --file | --fil | --fi | --f ) | |
14821 | $ac_shift | |
81ecdfbb RW |
14822 | case $ac_optarg in |
14823 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 14824 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
14825 | esac |
14826 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
fdd6fa61 | 14827 | ac_need_defaults=false;; |
b15c5d7a MF |
14828 | --header | --heade | --head | --hea ) |
14829 | $ac_shift | |
14830 | case $ac_optarg in | |
14831 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14832 | esac | |
14833 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
14834 | ac_need_defaults=false;; | |
14835 | --he | --h) | |
14836 | # Conflict between --help and --header | |
14837 | as_fn_error $? "ambiguous option: \`$1' | |
14838 | Try \`$0 --help' for more information.";; | |
14839 | --help | --hel | -h ) | |
81ecdfbb | 14840 | $as_echo "$ac_cs_usage"; exit ;; |
b7026657 AC |
14841 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14842 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14843 | ac_cs_silent=: ;; | |
14844 | ||
14845 | # This is an error. | |
d0ac1c44 | 14846 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 14847 | Try \`$0 --help' for more information." ;; |
b7026657 | 14848 | |
81ecdfbb RW |
14849 | *) as_fn_append ac_config_targets " $1" |
14850 | ac_need_defaults=false ;; | |
b7026657 AC |
14851 | |
14852 | esac | |
14853 | shift | |
c906108c | 14854 | done |
b7026657 AC |
14855 | |
14856 | ac_configure_extra_args= | |
14857 | ||
14858 | if $ac_cs_silent; then | |
14859 | exec 6>/dev/null | |
14860 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
c906108c | 14861 | fi |
c906108c | 14862 | |
b7026657 | 14863 | _ACEOF |
81ecdfbb | 14864 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b7026657 | 14865 | if \$ac_cs_recheck; then |
d0ac1c44 | 14866 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
14867 | shift |
14868 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14869 | CONFIG_SHELL='$SHELL' | |
14870 | export CONFIG_SHELL | |
14871 | exec "\$@" | |
b7026657 | 14872 | fi |
c906108c | 14873 | |
b7026657 | 14874 | _ACEOF |
81ecdfbb RW |
14875 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14876 | exec 5>>config.log | |
14877 | { | |
14878 | echo | |
14879 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14880 | ## Running $as_me. ## | |
14881 | _ASBOX | |
14882 | $as_echo "$ac_log" | |
14883 | } >&5 | |
b7026657 | 14884 | |
81ecdfbb RW |
14885 | _ACEOF |
14886 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6bddc3e8 MF |
14887 | # |
14888 | # INIT-COMMANDS | |
14889 | # | |
b5689863 MF |
14890 | |
14891 | ||
14892 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
14893 | # if CDPATH is set. | |
14894 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14895 | ||
14896 | sed_quote_subst='$sed_quote_subst' | |
14897 | double_quote_subst='$double_quote_subst' | |
14898 | delay_variable_subst='$delay_variable_subst' | |
14899 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
14900 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
14901 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
14902 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
14903 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
14904 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
14905 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
14906 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
14907 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
14908 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
14909 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
14910 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
14911 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
14912 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
14913 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
14914 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
14915 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
14916 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
14917 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
14918 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
14919 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
14920 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
14921 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
14922 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
14923 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
14924 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
14925 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
14926 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
14927 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
14928 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
14929 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
14930 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
14931 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
14932 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
14933 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
14934 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
14935 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
14936 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14937 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14938 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
14939 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
14940 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
14941 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
14942 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
14943 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
14944 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
14945 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
14946 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
14947 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
14948 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
14949 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
14950 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
14951 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
14952 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
14953 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
14954 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
14955 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
14956 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
14957 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
14958 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
14959 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
14960 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
14961 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
14962 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
14963 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
14964 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
14965 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
14966 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14967 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14968 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
14969 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
14970 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
14971 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
14972 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
14973 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
14974 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
14975 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
14976 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
14977 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
14978 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14979 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
14980 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
14981 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
14982 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
14983 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
14984 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
14985 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
14986 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
14987 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
14988 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
14989 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
14990 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
14991 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
14992 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
14993 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
14994 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
14995 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
14996 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
14997 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
14998 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
14999 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
15000 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
15001 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
15002 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
15003 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
15004 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
15005 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
15006 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15007 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15008 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
15009 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
15010 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
15011 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
15012 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
15013 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
15014 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
15015 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
15016 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
15017 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
15018 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
15019 | ||
15020 | LTCC='$LTCC' | |
15021 | LTCFLAGS='$LTCFLAGS' | |
15022 | compiler='$compiler_DEFAULT' | |
15023 | ||
15024 | # A function that is used when there is no print builtin or printf. | |
15025 | func_fallback_echo () | |
15026 | { | |
15027 | eval 'cat <<_LTECHO_EOF | |
15028 | \$1 | |
15029 | _LTECHO_EOF' | |
15030 | } | |
15031 | ||
15032 | # Quote evaled strings. | |
15033 | for var in SHELL \ | |
15034 | ECHO \ | |
15035 | SED \ | |
15036 | GREP \ | |
15037 | EGREP \ | |
15038 | FGREP \ | |
15039 | LD \ | |
15040 | NM \ | |
15041 | LN_S \ | |
15042 | lt_SP2NL \ | |
15043 | lt_NL2SP \ | |
15044 | reload_flag \ | |
15045 | OBJDUMP \ | |
15046 | deplibs_check_method \ | |
15047 | file_magic_cmd \ | |
15048 | AR \ | |
15049 | AR_FLAGS \ | |
15050 | STRIP \ | |
15051 | RANLIB \ | |
15052 | CC \ | |
15053 | CFLAGS \ | |
15054 | compiler \ | |
15055 | lt_cv_sys_global_symbol_pipe \ | |
15056 | lt_cv_sys_global_symbol_to_cdecl \ | |
15057 | lt_cv_sys_global_symbol_to_c_name_address \ | |
15058 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
15059 | lt_prog_compiler_no_builtin_flag \ | |
15060 | lt_prog_compiler_wl \ | |
15061 | lt_prog_compiler_pic \ | |
15062 | lt_prog_compiler_static \ | |
15063 | lt_cv_prog_compiler_c_o \ | |
15064 | need_locks \ | |
15065 | DSYMUTIL \ | |
15066 | NMEDIT \ | |
15067 | LIPO \ | |
15068 | OTOOL \ | |
15069 | OTOOL64 \ | |
15070 | shrext_cmds \ | |
15071 | export_dynamic_flag_spec \ | |
15072 | whole_archive_flag_spec \ | |
15073 | compiler_needs_object \ | |
15074 | with_gnu_ld \ | |
15075 | allow_undefined_flag \ | |
15076 | no_undefined_flag \ | |
15077 | hardcode_libdir_flag_spec \ | |
15078 | hardcode_libdir_flag_spec_ld \ | |
15079 | hardcode_libdir_separator \ | |
15080 | fix_srcfile_path \ | |
15081 | exclude_expsyms \ | |
15082 | include_expsyms \ | |
15083 | file_list_spec \ | |
15084 | variables_saved_for_relink \ | |
15085 | libname_spec \ | |
15086 | library_names_spec \ | |
15087 | soname_spec \ | |
15088 | install_override_mode \ | |
15089 | finish_eval \ | |
15090 | old_striplib \ | |
15091 | striplib; do | |
15092 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
15093 | *[\\\\\\\`\\"\\\$]*) | |
15094 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
15095 | ;; | |
15096 | *) | |
15097 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15098 | ;; | |
15099 | esac | |
15100 | done | |
15101 | ||
15102 | # Double-quote double-evaled strings. | |
15103 | for var in reload_cmds \ | |
15104 | old_postinstall_cmds \ | |
15105 | old_postuninstall_cmds \ | |
15106 | old_archive_cmds \ | |
15107 | extract_expsyms_cmds \ | |
15108 | old_archive_from_new_cmds \ | |
15109 | old_archive_from_expsyms_cmds \ | |
15110 | archive_cmds \ | |
15111 | archive_expsym_cmds \ | |
15112 | module_cmds \ | |
15113 | module_expsym_cmds \ | |
15114 | export_symbols_cmds \ | |
15115 | prelink_cmds \ | |
15116 | postinstall_cmds \ | |
15117 | postuninstall_cmds \ | |
15118 | finish_cmds \ | |
15119 | sys_lib_search_path_spec \ | |
15120 | sys_lib_dlsearch_path_spec; do | |
15121 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
15122 | *[\\\\\\\`\\"\\\$]*) | |
15123 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
15124 | ;; | |
15125 | *) | |
15126 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15127 | ;; | |
15128 | esac | |
15129 | done | |
15130 | ||
15131 | ac_aux_dir='$ac_aux_dir' | |
15132 | xsi_shell='$xsi_shell' | |
15133 | lt_shell_append='$lt_shell_append' | |
15134 | ||
15135 | # See if we are running on zsh, and set the options which allow our | |
15136 | # commands through without removal of \ escapes INIT. | |
15137 | if test -n "\${ZSH_VERSION+set}" ; then | |
15138 | setopt NO_GLOB_SUBST | |
15139 | fi | |
15140 | ||
15141 | ||
15142 | PACKAGE='$PACKAGE' | |
15143 | VERSION='$VERSION' | |
15144 | TIMESTAMP='$TIMESTAMP' | |
15145 | RM='$RM' | |
15146 | ofile='$ofile' | |
15147 | ||
15148 | ||
15149 | ||
6bddc3e8 | 15150 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
bc56166f MF |
15151 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR |
15152 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15153 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15154 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15155 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15156 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15157 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15158 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15159 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15160 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15161 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15162 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15163 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15164 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15165 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15166 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15167 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15168 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15169 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15170 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15171 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15172 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15173 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15174 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15175 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15176 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15177 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15178 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15179 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15180 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15181 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
15182 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
6bddc3e8 | 15183 | |
81ecdfbb | 15184 | _ACEOF |
b7026657 | 15185 | |
81ecdfbb | 15186 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
df1756f4 | 15187 | |
81ecdfbb | 15188 | # Handling of arguments. |
b7026657 AC |
15189 | for ac_config_target in $ac_config_targets |
15190 | do | |
81ecdfbb | 15191 | case $ac_config_target in |
b15c5d7a | 15192 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
b5689863 | 15193 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
6bddc3e8 | 15194 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
bc56166f MF |
15195 | "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;; |
15196 | "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;; | |
15197 | "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;; | |
15198 | "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;; | |
15199 | "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;; | |
15200 | "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;; | |
15201 | "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;; | |
15202 | "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;; | |
15203 | "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;; | |
15204 | "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;; | |
15205 | "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;; | |
15206 | "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;; | |
15207 | "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;; | |
15208 | "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;; | |
15209 | "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;; | |
15210 | "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;; | |
15211 | "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;; | |
15212 | "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;; | |
15213 | "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;; | |
15214 | "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;; | |
15215 | "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;; | |
15216 | "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;; | |
15217 | "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;; | |
15218 | "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;; | |
15219 | "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;; | |
15220 | "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;; | |
15221 | "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;; | |
15222 | "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;; | |
15223 | "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;; | |
15224 | "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;; | |
15225 | "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;; | |
15226 | "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;; | |
3f8414df | 15227 | "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;; |
81ecdfbb RW |
15228 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
15229 | ||
d0ac1c44 | 15230 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c906108c | 15231 | esac |
b7026657 | 15232 | done |
c906108c | 15233 | |
81ecdfbb | 15234 | |
b7026657 AC |
15235 | # If the user did not use the arguments to specify the items to instantiate, |
15236 | # then the envvar interface is used. Set only those that are not. | |
15237 | # We use the long form for the default assignment because of an extremely | |
15238 | # bizarre bug on SunOS 4.1.3. | |
15239 | if $ac_need_defaults; then | |
15240 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
b15c5d7a | 15241 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
6bddc3e8 | 15242 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
b7026657 | 15243 | fi |
c906108c | 15244 | |
b7026657 | 15245 | # Have a temporary directory for convenience. Make it in the build tree |
81ecdfbb | 15246 | # simply because there is no reason against having it here, and in addition, |
b7026657 | 15247 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15248 | # Hook for its removal unless debugging. |
15249 | # Note that there is a small window in which the directory will not be cleaned: | |
15250 | # after its creation but before its name has been assigned to `$tmp'. | |
b7026657 AC |
15251 | $debug || |
15252 | { | |
d0ac1c44 | 15253 | tmp= ac_tmp= |
81ecdfbb | 15254 | trap 'exit_status=$? |
d0ac1c44 SM |
15255 | : "${ac_tmp:=$tmp}" |
15256 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
15257 | ' 0 |
15258 | trap 'as_fn_exit 1' 1 2 13 15 | |
b7026657 | 15259 | } |
b7026657 AC |
15260 | # Create a (secure) tmp directory for tmp files. |
15261 | ||
15262 | { | |
81ecdfbb | 15263 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 15264 | test -d "$tmp" |
b7026657 AC |
15265 | } || |
15266 | { | |
81ecdfbb RW |
15267 | tmp=./conf$$-$RANDOM |
15268 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
15269 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15270 | ac_tmp=$tmp | |
81ecdfbb RW |
15271 | |
15272 | # Set up the scripts for CONFIG_FILES section. | |
15273 | # No need to generate them if there are no CONFIG_FILES. | |
15274 | # This happens for instance with `./config.status config.h'. | |
15275 | if test -n "$CONFIG_FILES"; then | |
15276 | ||
15277 | ||
15278 | ac_cr=`echo X | tr X '\015'` | |
15279 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15280 | # But we know of no other shell where ac_cr would be empty at this | |
15281 | # point, so we can use a bashism as a fallback. | |
15282 | if test "x$ac_cr" = x; then | |
15283 | eval ac_cr=\$\'\\r\' | |
15284 | fi | |
15285 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15286 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 15287 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
15288 | else |
15289 | ac_cs_awk_cr=$ac_cr | |
15290 | fi | |
15291 | ||
d0ac1c44 | 15292 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
15293 | _ACEOF |
15294 | ||
15295 | ||
15296 | { | |
15297 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15298 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15299 | echo "_ACEOF" | |
15300 | } >conf$$subs.sh || | |
d0ac1c44 SM |
15301 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15302 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
15303 | ac_delim='%!_!# ' |
15304 | for ac_last_try in false false false false false :; do | |
15305 | . ./conf$$subs.sh || | |
d0ac1c44 | 15306 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15307 | |
15308 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15309 | if test $ac_delim_n = $ac_delim_num; then | |
15310 | break | |
15311 | elif $ac_last_try; then | |
d0ac1c44 | 15312 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15313 | else |
15314 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15315 | fi | |
15316 | done | |
15317 | rm -f conf$$subs.sh | |
15318 | ||
15319 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15320 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
15321 | _ACEOF |
15322 | sed -n ' | |
15323 | h | |
15324 | s/^/S["/; s/!.*/"]=/ | |
15325 | p | |
15326 | g | |
15327 | s/^[^!]*!// | |
15328 | :repl | |
15329 | t repl | |
15330 | s/'"$ac_delim"'$// | |
15331 | t delim | |
15332 | :nl | |
15333 | h | |
d0ac1c44 | 15334 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15335 | t more1 |
15336 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15337 | p | |
15338 | n | |
15339 | b repl | |
15340 | :more1 | |
15341 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15342 | p | |
15343 | g | |
15344 | s/.\{148\}// | |
15345 | t nl | |
15346 | :delim | |
15347 | h | |
d0ac1c44 | 15348 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15349 | t more2 |
15350 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15351 | p | |
15352 | b | |
15353 | :more2 | |
15354 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15355 | p | |
15356 | g | |
15357 | s/.\{148\}// | |
15358 | t delim | |
15359 | ' <conf$$subs.awk | sed ' | |
15360 | /^[^""]/{ | |
15361 | N | |
15362 | s/\n// | |
15363 | } | |
15364 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15365 | rm -f conf$$subs.awk | |
15366 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15367 | _ACAWK | |
d0ac1c44 | 15368 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
15369 | for (key in S) S_is_set[key] = 1 |
15370 | FS = "\a" | |
15371 | ||
15372 | } | |
b7026657 | 15373 | { |
81ecdfbb RW |
15374 | line = $ 0 |
15375 | nfields = split(line, field, "@") | |
15376 | substed = 0 | |
15377 | len = length(field[1]) | |
15378 | for (i = 2; i < nfields; i++) { | |
15379 | key = field[i] | |
15380 | keylen = length(key) | |
15381 | if (S_is_set[key]) { | |
15382 | value = S[key] | |
15383 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15384 | len += length(value) + length(field[++i]) | |
15385 | substed = 1 | |
15386 | } else | |
15387 | len += 1 + keylen | |
15388 | } | |
15389 | ||
15390 | print line | |
b7026657 AC |
15391 | } |
15392 | ||
81ecdfbb RW |
15393 | _ACAWK |
15394 | _ACEOF | |
15395 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15396 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15397 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15398 | else | |
15399 | cat | |
d0ac1c44 SM |
15400 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
15401 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
fdd6fa61 AG |
15402 | _ACEOF |
15403 | ||
d0ac1c44 SM |
15404 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15405 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
15406 | # trailing colons and then remove the whole line if VPATH becomes empty |
15407 | # (actually we leave an empty line to preserve line numbers). | |
15408 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
15409 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15410 | h | |
15411 | s/// | |
15412 | s/^/:/ | |
15413 | s/[ ]*$/:/ | |
15414 | s/:\$(srcdir):/:/g | |
15415 | s/:\${srcdir}:/:/g | |
15416 | s/:@srcdir@:/:/g | |
15417 | s/^:*// | |
81ecdfbb | 15418 | s/:*$// |
d0ac1c44 SM |
15419 | x |
15420 | s/\(=[ ]*\).*/\1/ | |
15421 | G | |
15422 | s/\n// | |
81ecdfbb RW |
15423 | s/^[^=]*=[ ]*$// |
15424 | }' | |
15425 | fi | |
fdd6fa61 | 15426 | |
81ecdfbb RW |
15427 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15428 | fi # test -n "$CONFIG_FILES" | |
b7026657 | 15429 | |
b15c5d7a MF |
15430 | # Set up the scripts for CONFIG_HEADERS section. |
15431 | # No need to generate them if there are no CONFIG_HEADERS. | |
15432 | # This happens for instance with `./config.status Makefile'. | |
15433 | if test -n "$CONFIG_HEADERS"; then | |
15434 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
15435 | BEGIN { | |
15436 | _ACEOF | |
15437 | ||
15438 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
15439 | # here-document in config.status, that substitutes the proper values into | |
15440 | # config.h.in to produce config.h. | |
15441 | ||
15442 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
15443 | # handling of long lines. | |
15444 | ac_delim='%!_!# ' | |
15445 | for ac_last_try in false false :; do | |
15446 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
15447 | if test -z "$ac_tt"; then | |
15448 | break | |
15449 | elif $ac_last_try; then | |
15450 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
15451 | else | |
15452 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15453 | fi | |
15454 | done | |
15455 | ||
15456 | # For the awk script, D is an array of macro values keyed by name, | |
15457 | # likewise P contains macro parameters if any. Preserve backslash | |
15458 | # newline sequences. | |
15459 | ||
15460 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
15461 | sed -n ' | |
15462 | s/.\{148\}/&'"$ac_delim"'/g | |
15463 | t rset | |
15464 | :rset | |
15465 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
15466 | t def | |
15467 | d | |
15468 | :def | |
15469 | s/\\$// | |
15470 | t bsnl | |
15471 | s/["\\]/\\&/g | |
15472 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15473 | D["\1"]=" \3"/p | |
15474 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
15475 | d | |
15476 | :bsnl | |
15477 | s/["\\]/\\&/g | |
15478 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15479 | D["\1"]=" \3\\\\\\n"\\/p | |
15480 | t cont | |
15481 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
15482 | t cont | |
15483 | d | |
15484 | :cont | |
15485 | n | |
15486 | s/.\{148\}/&'"$ac_delim"'/g | |
15487 | t clear | |
15488 | :clear | |
15489 | s/\\$// | |
15490 | t bsnlc | |
15491 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
15492 | d | |
15493 | :bsnlc | |
15494 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
15495 | b cont | |
15496 | ' <confdefs.h | sed ' | |
15497 | s/'"$ac_delim"'/"\\\ | |
15498 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
15499 | ||
15500 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15501 | for (key in D) D_is_set[key] = 1 | |
15502 | FS = "\a" | |
15503 | } | |
15504 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
15505 | line = \$ 0 | |
15506 | split(line, arg, " ") | |
15507 | if (arg[1] == "#") { | |
15508 | defundef = arg[2] | |
15509 | mac1 = arg[3] | |
15510 | } else { | |
15511 | defundef = substr(arg[1], 2) | |
15512 | mac1 = arg[2] | |
15513 | } | |
15514 | split(mac1, mac2, "(") #) | |
15515 | macro = mac2[1] | |
15516 | prefix = substr(line, 1, index(line, defundef) - 1) | |
15517 | if (D_is_set[macro]) { | |
15518 | # Preserve the white space surrounding the "#". | |
15519 | print prefix "define", macro P[macro] D[macro] | |
15520 | next | |
15521 | } else { | |
15522 | # Replace #undef with comments. This is necessary, for example, | |
15523 | # in the case of _POSIX_SOURCE, which is predefined and required | |
15524 | # on some systems where configure will not decide to define it. | |
15525 | if (defundef == "undef") { | |
15526 | print "/*", prefix defundef, macro, "*/" | |
15527 | next | |
15528 | } | |
15529 | } | |
15530 | } | |
15531 | { print } | |
15532 | _ACAWK | |
15533 | _ACEOF | |
15534 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15535 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
15536 | fi # test -n "$CONFIG_HEADERS" | |
b7026657 | 15537 | |
b15c5d7a MF |
15538 | |
15539 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
81ecdfbb RW |
15540 | shift |
15541 | for ac_tag | |
15542 | do | |
15543 | case $ac_tag in | |
15544 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15545 | esac | |
15546 | case $ac_mode$ac_tag in | |
15547 | :[FHL]*:*);; | |
d0ac1c44 | 15548 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
15549 | :[FH]-) ac_tag=-:-;; |
15550 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15551 | esac | |
15552 | ac_save_IFS=$IFS | |
15553 | IFS=: | |
15554 | set x $ac_tag | |
15555 | IFS=$ac_save_IFS | |
15556 | shift | |
15557 | ac_file=$1 | |
15558 | shift | |
b7026657 | 15559 | |
81ecdfbb RW |
15560 | case $ac_mode in |
15561 | :L) ac_source=$1;; | |
15562 | :[FH]) | |
15563 | ac_file_inputs= | |
15564 | for ac_f | |
15565 | do | |
15566 | case $ac_f in | |
d0ac1c44 | 15567 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
15568 | *) # Look for the file first in the build tree, then in the source tree |
15569 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15570 | # because $ac_f cannot contain `:'. | |
15571 | test -f "$ac_f" || | |
15572 | case $ac_f in | |
15573 | [\\/$]*) false;; | |
15574 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15575 | esac || | |
d0ac1c44 | 15576 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
15577 | esac |
15578 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15579 | as_fn_append ac_file_inputs " '$ac_f'" | |
15580 | done | |
15581 | ||
15582 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
15583 | # use $as_me), people would be surprised to read: | |
15584 | # /* config.h. Generated by config.status. */ | |
15585 | configure_input='Generated from '` | |
15586 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15587 | `' by configure.' | |
15588 | if test x"$ac_file" != x-; then | |
15589 | configure_input="$ac_file. $configure_input" | |
15590 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15591 | $as_echo "$as_me: creating $ac_file" >&6;} | |
fdd6fa61 | 15592 | fi |
81ecdfbb RW |
15593 | # Neutralize special characters interpreted by sed in replacement strings. |
15594 | case $configure_input in #( | |
15595 | *\&* | *\|* | *\\* ) | |
15596 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15597 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15598 | *) ac_sed_conf_input=$configure_input;; | |
15599 | esac | |
df1756f4 | 15600 | |
81ecdfbb | 15601 | case $ac_tag in |
d0ac1c44 SM |
15602 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
15603 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
15604 | esac |
15605 | ;; | |
df1756f4 TG |
15606 | esac |
15607 | ||
81ecdfbb | 15608 | ac_dir=`$as_dirname -- "$ac_file" || |
b7026657 AC |
15609 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15610 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15611 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15612 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15613 | $as_echo X"$ac_file" | | |
15614 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15615 | s//\1/ | |
15616 | q | |
15617 | } | |
15618 | /^X\(\/\/\)[^/].*/{ | |
15619 | s//\1/ | |
15620 | q | |
15621 | } | |
15622 | /^X\(\/\/\)$/{ | |
15623 | s//\1/ | |
15624 | q | |
15625 | } | |
15626 | /^X\(\/\).*/{ | |
15627 | s//\1/ | |
15628 | q | |
15629 | } | |
15630 | s/.*/./; q'` | |
15631 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b7026657 AC |
15632 | ac_builddir=. |
15633 | ||
81ecdfbb RW |
15634 | case "$ac_dir" in |
15635 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15636 | *) | |
15637 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15638 | # A ".." for each directory in $ac_dir_suffix. | |
15639 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15640 | case $ac_top_builddir_sub in | |
15641 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15642 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15643 | esac ;; | |
15644 | esac | |
15645 | ac_abs_top_builddir=$ac_pwd | |
15646 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15647 | # for backward compatibility: | |
15648 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
15649 | |
15650 | case $srcdir in | |
81ecdfbb | 15651 | .) # We are building in place. |
b7026657 | 15652 | ac_srcdir=. |
81ecdfbb RW |
15653 | ac_top_srcdir=$ac_top_builddir_sub |
15654 | ac_abs_top_srcdir=$ac_pwd ;; | |
15655 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 15656 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15657 | ac_top_srcdir=$srcdir |
15658 | ac_abs_top_srcdir=$srcdir ;; | |
15659 | *) # Relative name. | |
15660 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15661 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15662 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 15663 | esac |
81ecdfbb | 15664 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b7026657 | 15665 | |
b7026657 | 15666 | |
81ecdfbb RW |
15667 | case $ac_mode in |
15668 | :F) | |
15669 | # | |
15670 | # CONFIG_FILE | |
15671 | # | |
c906108c | 15672 | |
b7026657 AC |
15673 | case $INSTALL in |
15674 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15675 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
c906108c | 15676 | esac |
6bddc3e8 MF |
15677 | ac_MKDIR_P=$MKDIR_P |
15678 | case $MKDIR_P in | |
15679 | [\\/$]* | ?:[\\/]* ) ;; | |
15680 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
15681 | esac | |
81ecdfbb | 15682 | _ACEOF |
c906108c | 15683 | |
81ecdfbb RW |
15684 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15685 | # If the template does not know about datarootdir, expand it. | |
15686 | # FIXME: This hack should be removed a few years after 2.60. | |
15687 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15688 | ac_sed_dataroot=' | |
15689 | /datarootdir/ { | |
15690 | p | |
15691 | q | |
15692 | } | |
15693 | /@datadir@/p | |
15694 | /@docdir@/p | |
15695 | /@infodir@/p | |
15696 | /@localedir@/p | |
15697 | /@mandir@/p' | |
15698 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15699 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15700 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15702 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
15703 | _ACEOF | |
15704 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15705 | ac_datarootdir_hack=' | |
15706 | s&@datadir@&$datadir&g | |
15707 | s&@docdir@&$docdir&g | |
15708 | s&@infodir@&$infodir&g | |
15709 | s&@localedir@&$localedir&g | |
15710 | s&@mandir@&$mandir&g | |
15711 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15712 | esac | |
b7026657 | 15713 | _ACEOF |
81ecdfbb RW |
15714 | |
15715 | # Neutralize VPATH when `$srcdir' = `.'. | |
15716 | # Shell code in configure.ac might set extrasub. | |
15717 | # FIXME: do we really want to maintain this feature? | |
15718 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15719 | ac_sed_extra="$ac_vpsub | |
b7026657 AC |
15720 | $extrasub |
15721 | _ACEOF | |
81ecdfbb | 15722 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 AC |
15723 | :t |
15724 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15725 | s|@configure_input@|$ac_sed_conf_input|;t t |
15726 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15727 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15728 | s&@srcdir@&$ac_srcdir&;t t | |
15729 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15730 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15731 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15732 | s&@builddir@&$ac_builddir&;t t | |
15733 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15734 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15735 | s&@INSTALL@&$ac_INSTALL&;t t | |
6bddc3e8 | 15736 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
81ecdfbb RW |
15737 | $ac_datarootdir_hack |
15738 | " | |
d0ac1c44 SM |
15739 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
15740 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
15741 | |
15742 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
15743 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
15744 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
15745 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 15746 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 15747 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 15748 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 15749 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 15750 | |
d0ac1c44 | 15751 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 15752 | case $ac_file in |
d0ac1c44 SM |
15753 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
15754 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 15755 | esac \ |
d0ac1c44 | 15756 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 15757 | ;; |
b15c5d7a MF |
15758 | :H) |
15759 | # | |
15760 | # CONFIG_HEADER | |
15761 | # | |
15762 | if test x"$ac_file" != x-; then | |
15763 | { | |
15764 | $as_echo "/* $configure_input */" \ | |
15765 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
15766 | } >"$ac_tmp/config.h" \ | |
15767 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
15768 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
15769 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
15770 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
15771 | else | |
15772 | rm -f "$ac_file" | |
15773 | mv "$ac_tmp/config.h" "$ac_file" \ | |
15774 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
15775 | fi | |
15776 | else | |
15777 | $as_echo "/* $configure_input */" \ | |
15778 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
15779 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
15780 | fi | |
15781 | # Compute "$ac_file"'s index in $config_headers. | |
15782 | _am_arg="$ac_file" | |
15783 | _am_stamp_count=1 | |
15784 | for _am_header in $config_headers :; do | |
15785 | case $_am_header in | |
15786 | $_am_arg | $_am_arg:* ) | |
15787 | break ;; | |
15788 | * ) | |
15789 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
15790 | esac | |
15791 | done | |
15792 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
15793 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15794 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
15795 | X"$_am_arg" : 'X\(//\)$' \| \ | |
15796 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
15797 | $as_echo X"$_am_arg" | | |
15798 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15799 | s//\1/ | |
15800 | q | |
15801 | } | |
15802 | /^X\(\/\/\)[^/].*/{ | |
15803 | s//\1/ | |
15804 | q | |
15805 | } | |
15806 | /^X\(\/\/\)$/{ | |
15807 | s//\1/ | |
15808 | q | |
15809 | } | |
15810 | /^X\(\/\).*/{ | |
15811 | s//\1/ | |
15812 | q | |
15813 | } | |
15814 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
15815 | ;; | |
df1756f4 | 15816 | |
6bddc3e8 MF |
15817 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
15818 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
15819 | ;; | |
15820 | esac | |
15821 | ||
c906108c | 15822 | |
6bddc3e8 | 15823 | case $ac_file$ac_mode in |
b5689863 MF |
15824 | "libtool":C) |
15825 | ||
15826 | # See if we are running on zsh, and set the options which allow our | |
15827 | # commands through without removal of \ escapes. | |
15828 | if test -n "${ZSH_VERSION+set}" ; then | |
15829 | setopt NO_GLOB_SUBST | |
15830 | fi | |
15831 | ||
15832 | cfgfile="${ofile}T" | |
15833 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
15834 | $RM "$cfgfile" | |
15835 | ||
15836 | cat <<_LT_EOF >> "$cfgfile" | |
15837 | #! $SHELL | |
15838 | ||
15839 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
15840 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
15841 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15842 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
15843 | # | |
15844 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
15845 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
15846 | # Written by Gordon Matzigkeit, 1996 | |
15847 | # | |
15848 | # This file is part of GNU Libtool. | |
15849 | # | |
15850 | # GNU Libtool is free software; you can redistribute it and/or | |
15851 | # modify it under the terms of the GNU General Public License as | |
15852 | # published by the Free Software Foundation; either version 2 of | |
15853 | # the License, or (at your option) any later version. | |
15854 | # | |
15855 | # As a special exception to the GNU General Public License, | |
15856 | # if you distribute this file as part of a program or library that | |
15857 | # is built using GNU Libtool, you may include this file under the | |
15858 | # same distribution terms that you use for the rest of that program. | |
15859 | # | |
15860 | # GNU Libtool is distributed in the hope that it will be useful, | |
15861 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15862 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15863 | # GNU General Public License for more details. | |
15864 | # | |
15865 | # You should have received a copy of the GNU General Public License | |
15866 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
15867 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
15868 | # obtained by writing to the Free Software Foundation, Inc., | |
15869 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
15870 | ||
15871 | ||
15872 | # The names of the tagged configurations supported by this script. | |
15873 | available_tags="" | |
15874 | ||
15875 | # ### BEGIN LIBTOOL CONFIG | |
15876 | ||
15877 | # Which release of libtool.m4 was used? | |
15878 | macro_version=$macro_version | |
15879 | macro_revision=$macro_revision | |
15880 | ||
15881 | # Whether or not to build shared libraries. | |
15882 | build_libtool_libs=$enable_shared | |
15883 | ||
15884 | # Whether or not to build static libraries. | |
15885 | build_old_libs=$enable_static | |
15886 | ||
15887 | # What type of objects to build. | |
15888 | pic_mode=$pic_mode | |
15889 | ||
15890 | # Whether or not to optimize for fast installation. | |
15891 | fast_install=$enable_fast_install | |
15892 | ||
15893 | # Shell to use when invoking shell scripts. | |
15894 | SHELL=$lt_SHELL | |
15895 | ||
15896 | # An echo program that protects backslashes. | |
15897 | ECHO=$lt_ECHO | |
15898 | ||
15899 | # The host system. | |
15900 | host_alias=$host_alias | |
15901 | host=$host | |
15902 | host_os=$host_os | |
15903 | ||
15904 | # The build system. | |
15905 | build_alias=$build_alias | |
15906 | build=$build | |
15907 | build_os=$build_os | |
15908 | ||
15909 | # A sed program that does not truncate output. | |
15910 | SED=$lt_SED | |
15911 | ||
15912 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
15913 | Xsed="\$SED -e 1s/^X//" | |
15914 | ||
15915 | # A grep program that handles long lines. | |
15916 | GREP=$lt_GREP | |
15917 | ||
15918 | # An ERE matcher. | |
15919 | EGREP=$lt_EGREP | |
15920 | ||
15921 | # A literal string matcher. | |
15922 | FGREP=$lt_FGREP | |
15923 | ||
15924 | # A BSD- or MS-compatible name lister. | |
15925 | NM=$lt_NM | |
15926 | ||
15927 | # Whether we need soft or hard links. | |
15928 | LN_S=$lt_LN_S | |
15929 | ||
15930 | # What is the maximum length of a command? | |
15931 | max_cmd_len=$max_cmd_len | |
15932 | ||
15933 | # Object file suffix (normally "o"). | |
15934 | objext=$ac_objext | |
15935 | ||
15936 | # Executable file suffix (normally ""). | |
15937 | exeext=$exeext | |
15938 | ||
15939 | # whether the shell understands "unset". | |
15940 | lt_unset=$lt_unset | |
15941 | ||
15942 | # turn spaces into newlines. | |
15943 | SP2NL=$lt_lt_SP2NL | |
15944 | ||
15945 | # turn newlines into spaces. | |
15946 | NL2SP=$lt_lt_NL2SP | |
15947 | ||
15948 | # An object symbol dumper. | |
15949 | OBJDUMP=$lt_OBJDUMP | |
15950 | ||
15951 | # Method to check whether dependent libraries are shared objects. | |
15952 | deplibs_check_method=$lt_deplibs_check_method | |
15953 | ||
15954 | # Command to use when deplibs_check_method == "file_magic". | |
15955 | file_magic_cmd=$lt_file_magic_cmd | |
15956 | ||
15957 | # The archiver. | |
15958 | AR=$lt_AR | |
15959 | AR_FLAGS=$lt_AR_FLAGS | |
15960 | ||
15961 | # A symbol stripping program. | |
15962 | STRIP=$lt_STRIP | |
15963 | ||
15964 | # Commands used to install an old-style archive. | |
15965 | RANLIB=$lt_RANLIB | |
15966 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
15967 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15968 | ||
15969 | # Whether to use a lock for old archive extraction. | |
15970 | lock_old_archive_extraction=$lock_old_archive_extraction | |
15971 | ||
15972 | # A C compiler. | |
15973 | LTCC=$lt_CC | |
15974 | ||
15975 | # LTCC compiler flags. | |
15976 | LTCFLAGS=$lt_CFLAGS | |
15977 | ||
15978 | # Take the output of nm and produce a listing of raw symbols and C names. | |
15979 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
15980 | ||
15981 | # Transform the output of nm in a proper C declaration. | |
15982 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
15983 | ||
15984 | # Transform the output of nm in a C name address pair. | |
15985 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
15986 | ||
15987 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
15988 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
15989 | ||
15990 | # The name of the directory that contains temporary libtool files. | |
15991 | objdir=$objdir | |
15992 | ||
15993 | # Used to examine libraries when file_magic_cmd begins with "file". | |
15994 | MAGIC_CMD=$MAGIC_CMD | |
15995 | ||
15996 | # Must we lock files when doing compilation? | |
15997 | need_locks=$lt_need_locks | |
15998 | ||
15999 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
16000 | DSYMUTIL=$lt_DSYMUTIL | |
16001 | ||
16002 | # Tool to change global to local symbols on Mac OS X. | |
16003 | NMEDIT=$lt_NMEDIT | |
16004 | ||
16005 | # Tool to manipulate fat objects and archives on Mac OS X. | |
16006 | LIPO=$lt_LIPO | |
16007 | ||
16008 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
16009 | OTOOL=$lt_OTOOL | |
16010 | ||
16011 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
16012 | OTOOL64=$lt_OTOOL64 | |
16013 | ||
16014 | # Old archive suffix (normally "a"). | |
16015 | libext=$libext | |
16016 | ||
16017 | # Shared library suffix (normally ".so"). | |
16018 | shrext_cmds=$lt_shrext_cmds | |
16019 | ||
16020 | # The commands to extract the exported symbol list from a shared archive. | |
16021 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
16022 | ||
16023 | # Variables whose values should be saved in libtool wrapper scripts and | |
16024 | # restored at link time. | |
16025 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
16026 | ||
16027 | # Do we need the "lib" prefix for modules? | |
16028 | need_lib_prefix=$need_lib_prefix | |
16029 | ||
16030 | # Do we need a version for libraries? | |
16031 | need_version=$need_version | |
16032 | ||
16033 | # Library versioning type. | |
16034 | version_type=$version_type | |
16035 | ||
16036 | # Shared library runtime path variable. | |
16037 | runpath_var=$runpath_var | |
16038 | ||
16039 | # Shared library path variable. | |
16040 | shlibpath_var=$shlibpath_var | |
16041 | ||
16042 | # Is shlibpath searched before the hard-coded library search path? | |
16043 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
16044 | ||
16045 | # Format of library name prefix. | |
16046 | libname_spec=$lt_libname_spec | |
16047 | ||
16048 | # List of archive names. First name is the real one, the rest are links. | |
16049 | # The last name is the one that the linker finds with -lNAME | |
16050 | library_names_spec=$lt_library_names_spec | |
16051 | ||
16052 | # The coded name of the library, if different from the real name. | |
16053 | soname_spec=$lt_soname_spec | |
16054 | ||
16055 | # Permission mode override for installation of shared libraries. | |
16056 | install_override_mode=$lt_install_override_mode | |
16057 | ||
16058 | # Command to use after installation of a shared archive. | |
16059 | postinstall_cmds=$lt_postinstall_cmds | |
16060 | ||
16061 | # Command to use after uninstallation of a shared archive. | |
16062 | postuninstall_cmds=$lt_postuninstall_cmds | |
16063 | ||
16064 | # Commands used to finish a libtool library installation in a directory. | |
16065 | finish_cmds=$lt_finish_cmds | |
16066 | ||
16067 | # As "finish_cmds", except a single script fragment to be evaled but | |
16068 | # not shown. | |
16069 | finish_eval=$lt_finish_eval | |
16070 | ||
16071 | # Whether we should hardcode library paths into libraries. | |
16072 | hardcode_into_libs=$hardcode_into_libs | |
16073 | ||
16074 | # Compile-time system search path for libraries. | |
16075 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
16076 | ||
16077 | # Run-time system search path for libraries. | |
16078 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
16079 | ||
16080 | # Whether dlopen is supported. | |
16081 | dlopen_support=$enable_dlopen | |
16082 | ||
16083 | # Whether dlopen of programs is supported. | |
16084 | dlopen_self=$enable_dlopen_self | |
16085 | ||
16086 | # Whether dlopen of statically linked programs is supported. | |
16087 | dlopen_self_static=$enable_dlopen_self_static | |
16088 | ||
16089 | # Commands to strip libraries. | |
16090 | old_striplib=$lt_old_striplib | |
16091 | striplib=$lt_striplib | |
16092 | ||
16093 | ||
16094 | # The linker used to build libraries. | |
16095 | LD=$lt_LD | |
16096 | ||
16097 | # How to create reloadable object files. | |
16098 | reload_flag=$lt_reload_flag | |
16099 | reload_cmds=$lt_reload_cmds | |
16100 | ||
16101 | # Commands used to build an old-style archive. | |
16102 | old_archive_cmds=$lt_old_archive_cmds | |
16103 | ||
16104 | # A language specific compiler. | |
16105 | CC=$lt_compiler | |
16106 | ||
16107 | # Is the compiler the GNU compiler? | |
16108 | with_gcc=$GCC | |
16109 | ||
16110 | # Compiler flag to turn off builtin functions. | |
16111 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
16112 | ||
16113 | # How to pass a linker flag through the compiler. | |
16114 | wl=$lt_lt_prog_compiler_wl | |
16115 | ||
16116 | # Additional compiler flags for building library objects. | |
16117 | pic_flag=$lt_lt_prog_compiler_pic | |
16118 | ||
16119 | # Compiler flag to prevent dynamic linking. | |
16120 | link_static_flag=$lt_lt_prog_compiler_static | |
16121 | ||
16122 | # Does compiler simultaneously support -c and -o options? | |
16123 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
16124 | ||
16125 | # Whether or not to add -lc for building shared libraries. | |
16126 | build_libtool_need_lc=$archive_cmds_need_lc | |
16127 | ||
16128 | # Whether or not to disallow shared libs when runtime libs are static. | |
16129 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
16130 | ||
16131 | # Compiler flag to allow reflexive dlopens. | |
16132 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
16133 | ||
16134 | # Compiler flag to generate shared objects directly from archives. | |
16135 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
16136 | ||
16137 | # Whether the compiler copes with passing no objects directly. | |
16138 | compiler_needs_object=$lt_compiler_needs_object | |
16139 | ||
16140 | # Create an old-style archive from a shared archive. | |
16141 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
16142 | ||
16143 | # Create a temporary old-style archive to link instead of a shared archive. | |
16144 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
16145 | ||
16146 | # Commands used to build a shared archive. | |
16147 | archive_cmds=$lt_archive_cmds | |
16148 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
16149 | ||
16150 | # Commands used to build a loadable module if different from building | |
16151 | # a shared archive. | |
16152 | module_cmds=$lt_module_cmds | |
16153 | module_expsym_cmds=$lt_module_expsym_cmds | |
16154 | ||
16155 | # Whether we are building with GNU ld or not. | |
16156 | with_gnu_ld=$lt_with_gnu_ld | |
16157 | ||
16158 | # Flag that allows shared libraries with undefined symbols to be built. | |
16159 | allow_undefined_flag=$lt_allow_undefined_flag | |
16160 | ||
16161 | # Flag that enforces no undefined symbols. | |
16162 | no_undefined_flag=$lt_no_undefined_flag | |
16163 | ||
16164 | # Flag to hardcode \$libdir into a binary during linking. | |
16165 | # This must work even if \$libdir does not exist | |
16166 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
16167 | ||
16168 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
16169 | # during linking. This must work even if \$libdir does not exist. | |
16170 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
16171 | ||
16172 | # Whether we need a single "-rpath" flag with a separated argument. | |
16173 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
16174 | ||
16175 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16176 | # DIR into the resulting binary. | |
16177 | hardcode_direct=$hardcode_direct | |
16178 | ||
16179 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16180 | # DIR into the resulting binary and the resulting library dependency is | |
16181 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
16182 | # library is relocated. | |
16183 | hardcode_direct_absolute=$hardcode_direct_absolute | |
16184 | ||
16185 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
16186 | # into the resulting binary. | |
16187 | hardcode_minus_L=$hardcode_minus_L | |
16188 | ||
16189 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
16190 | # into the resulting binary. | |
16191 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
16192 | ||
16193 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
16194 | # into the library and all subsequent libraries and executables linked | |
16195 | # against it. | |
16196 | hardcode_automatic=$hardcode_automatic | |
16197 | ||
16198 | # Set to yes if linker adds runtime paths of dependent libraries | |
16199 | # to runtime path list. | |
16200 | inherit_rpath=$inherit_rpath | |
16201 | ||
16202 | # Whether libtool must link a program against all its dependency libraries. | |
16203 | link_all_deplibs=$link_all_deplibs | |
16204 | ||
16205 | # Fix the shell variable \$srcfile for the compiler. | |
16206 | fix_srcfile_path=$lt_fix_srcfile_path | |
16207 | ||
16208 | # Set to "yes" if exported symbols are required. | |
16209 | always_export_symbols=$always_export_symbols | |
16210 | ||
16211 | # The commands to list exported symbols. | |
16212 | export_symbols_cmds=$lt_export_symbols_cmds | |
16213 | ||
16214 | # Symbols that should not be listed in the preloaded symbols. | |
16215 | exclude_expsyms=$lt_exclude_expsyms | |
16216 | ||
16217 | # Symbols that must always be exported. | |
16218 | include_expsyms=$lt_include_expsyms | |
16219 | ||
16220 | # Commands necessary for linking programs (against libraries) with templates. | |
16221 | prelink_cmds=$lt_prelink_cmds | |
16222 | ||
16223 | # Specify filename containing input files. | |
16224 | file_list_spec=$lt_file_list_spec | |
16225 | ||
16226 | # How to hardcode a shared library path into an executable. | |
16227 | hardcode_action=$hardcode_action | |
16228 | ||
16229 | # ### END LIBTOOL CONFIG | |
16230 | ||
16231 | _LT_EOF | |
16232 | ||
16233 | case $host_os in | |
16234 | aix3*) | |
16235 | cat <<\_LT_EOF >> "$cfgfile" | |
16236 | # AIX sometimes has problems with the GCC collect2 program. For some | |
16237 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
16238 | # vanish in a puff of smoke. | |
16239 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
16240 | COLLECT_NAMES= | |
16241 | export COLLECT_NAMES | |
16242 | fi | |
16243 | _LT_EOF | |
16244 | ;; | |
16245 | esac | |
16246 | ||
16247 | ||
16248 | ltmain="$ac_aux_dir/ltmain.sh" | |
16249 | ||
16250 | ||
16251 | # We use sed instead of cat because bash on DJGPP gets confused if | |
16252 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
16253 | # text mode, it properly converts lines to CR/LF. This bash problem | |
16254 | # is reportedly fixed, but why not run on old versions too? | |
16255 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
16256 | || (rm -f "$cfgfile"; exit 1) | |
16257 | ||
16258 | case $xsi_shell in | |
16259 | yes) | |
16260 | cat << \_LT_EOF >> "$cfgfile" | |
16261 | ||
16262 | # func_dirname file append nondir_replacement | |
16263 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16264 | # otherwise set result to NONDIR_REPLACEMENT. | |
16265 | func_dirname () | |
16266 | { | |
16267 | case ${1} in | |
16268 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16269 | * ) func_dirname_result="${3}" ;; | |
16270 | esac | |
16271 | } | |
16272 | ||
16273 | # func_basename file | |
16274 | func_basename () | |
16275 | { | |
16276 | func_basename_result="${1##*/}" | |
16277 | } | |
16278 | ||
16279 | # func_dirname_and_basename file append nondir_replacement | |
16280 | # perform func_basename and func_dirname in a single function | |
16281 | # call: | |
16282 | # dirname: Compute the dirname of FILE. If nonempty, | |
16283 | # add APPEND to the result, otherwise set result | |
16284 | # to NONDIR_REPLACEMENT. | |
16285 | # value returned in "$func_dirname_result" | |
16286 | # basename: Compute filename of FILE. | |
16287 | # value retuned in "$func_basename_result" | |
16288 | # Implementation must be kept synchronized with func_dirname | |
16289 | # and func_basename. For efficiency, we do not delegate to | |
16290 | # those functions but instead duplicate the functionality here. | |
16291 | func_dirname_and_basename () | |
16292 | { | |
16293 | case ${1} in | |
16294 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16295 | * ) func_dirname_result="${3}" ;; | |
16296 | esac | |
16297 | func_basename_result="${1##*/}" | |
16298 | } | |
16299 | ||
16300 | # func_stripname prefix suffix name | |
16301 | # strip PREFIX and SUFFIX off of NAME. | |
16302 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16303 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16304 | # dot (in which case that matches only a dot). | |
16305 | func_stripname () | |
16306 | { | |
16307 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
16308 | # positional parameters, so assign one to ordinary parameter first. | |
16309 | func_stripname_result=${3} | |
16310 | func_stripname_result=${func_stripname_result#"${1}"} | |
16311 | func_stripname_result=${func_stripname_result%"${2}"} | |
16312 | } | |
16313 | ||
16314 | # func_opt_split | |
16315 | func_opt_split () | |
16316 | { | |
16317 | func_opt_split_opt=${1%%=*} | |
16318 | func_opt_split_arg=${1#*=} | |
16319 | } | |
16320 | ||
16321 | # func_lo2o object | |
16322 | func_lo2o () | |
16323 | { | |
16324 | case ${1} in | |
16325 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
16326 | *) func_lo2o_result=${1} ;; | |
16327 | esac | |
16328 | } | |
16329 | ||
16330 | # func_xform libobj-or-source | |
16331 | func_xform () | |
16332 | { | |
16333 | func_xform_result=${1%.*}.lo | |
16334 | } | |
16335 | ||
16336 | # func_arith arithmetic-term... | |
16337 | func_arith () | |
16338 | { | |
16339 | func_arith_result=$(( $* )) | |
16340 | } | |
16341 | ||
16342 | # func_len string | |
16343 | # STRING may not start with a hyphen. | |
16344 | func_len () | |
16345 | { | |
16346 | func_len_result=${#1} | |
16347 | } | |
16348 | ||
16349 | _LT_EOF | |
16350 | ;; | |
16351 | *) # Bourne compatible functions. | |
16352 | cat << \_LT_EOF >> "$cfgfile" | |
16353 | ||
16354 | # func_dirname file append nondir_replacement | |
16355 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16356 | # otherwise set result to NONDIR_REPLACEMENT. | |
16357 | func_dirname () | |
16358 | { | |
16359 | # Extract subdirectory from the argument. | |
16360 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
16361 | if test "X$func_dirname_result" = "X${1}"; then | |
16362 | func_dirname_result="${3}" | |
16363 | else | |
16364 | func_dirname_result="$func_dirname_result${2}" | |
16365 | fi | |
16366 | } | |
16367 | ||
16368 | # func_basename file | |
16369 | func_basename () | |
16370 | { | |
16371 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
16372 | } | |
16373 | ||
16374 | ||
16375 | # func_stripname prefix suffix name | |
16376 | # strip PREFIX and SUFFIX off of NAME. | |
16377 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16378 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16379 | # dot (in which case that matches only a dot). | |
16380 | # func_strip_suffix prefix name | |
16381 | func_stripname () | |
16382 | { | |
16383 | case ${2} in | |
16384 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
16385 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
16386 | esac | |
16387 | } | |
16388 | ||
16389 | # sed scripts: | |
16390 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
16391 | my_sed_long_arg='1s/^-[^=]*=//' | |
16392 | ||
16393 | # func_opt_split | |
16394 | func_opt_split () | |
16395 | { | |
16396 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
16397 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
16398 | } | |
16399 | ||
16400 | # func_lo2o object | |
16401 | func_lo2o () | |
16402 | { | |
16403 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
16404 | } | |
16405 | ||
16406 | # func_xform libobj-or-source | |
16407 | func_xform () | |
16408 | { | |
16409 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
16410 | } | |
16411 | ||
16412 | # func_arith arithmetic-term... | |
16413 | func_arith () | |
16414 | { | |
16415 | func_arith_result=`expr "$@"` | |
16416 | } | |
16417 | ||
16418 | # func_len string | |
16419 | # STRING may not start with a hyphen. | |
16420 | func_len () | |
16421 | { | |
16422 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
16423 | } | |
16424 | ||
16425 | _LT_EOF | |
16426 | esac | |
16427 | ||
16428 | case $lt_shell_append in | |
16429 | yes) | |
16430 | cat << \_LT_EOF >> "$cfgfile" | |
16431 | ||
16432 | # func_append var value | |
16433 | # Append VALUE to the end of shell variable VAR. | |
16434 | func_append () | |
16435 | { | |
16436 | eval "$1+=\$2" | |
16437 | } | |
16438 | _LT_EOF | |
16439 | ;; | |
16440 | *) | |
16441 | cat << \_LT_EOF >> "$cfgfile" | |
16442 | ||
16443 | # func_append var value | |
16444 | # Append VALUE to the end of shell variable VAR. | |
16445 | func_append () | |
16446 | { | |
16447 | eval "$1=\$$1\$2" | |
16448 | } | |
16449 | ||
16450 | _LT_EOF | |
16451 | ;; | |
16452 | esac | |
16453 | ||
16454 | ||
16455 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
16456 | || (rm -f "$cfgfile"; exit 1) | |
16457 | ||
16458 | mv -f "$cfgfile" "$ofile" || | |
16459 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
16460 | chmod +x "$ofile" | |
16461 | ||
16462 | ;; | |
6bddc3e8 MF |
16463 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
16464 | # Older Autoconf quotes --file arguments for eval, but not when files | |
16465 | # are listed without --file. Let's play safe and only enable the eval | |
16466 | # if we detect the quoting. | |
16467 | case $CONFIG_FILES in | |
16468 | *\'*) eval set x "$CONFIG_FILES" ;; | |
16469 | *) set x $CONFIG_FILES ;; | |
81ecdfbb | 16470 | esac |
6bddc3e8 MF |
16471 | shift |
16472 | for mf | |
16473 | do | |
16474 | # Strip MF so we end up with the name of the file. | |
16475 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
16476 | # Check whether this is an Automake generated Makefile or not. | |
16477 | # We used to match only the files named 'Makefile.in', but | |
16478 | # some people rename them; so instead we look at the file content. | |
16479 | # Grep'ing the first line is not enough: some people post-process | |
16480 | # each Makefile.in and add a new line on top of each file to say so. | |
16481 | # Grep'ing the whole file is not good either: AIX grep has a line | |
16482 | # limit of 2048, but all sed's we know have understand at least 4000. | |
16483 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
16484 | dirpart=`$as_dirname -- "$mf" || | |
16485 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16486 | X"$mf" : 'X\(//\)[^/]' \| \ | |
16487 | X"$mf" : 'X\(//\)$' \| \ | |
16488 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
16489 | $as_echo X"$mf" | | |
16490 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16491 | s//\1/ | |
16492 | q | |
16493 | } | |
16494 | /^X\(\/\/\)[^/].*/{ | |
16495 | s//\1/ | |
16496 | q | |
16497 | } | |
16498 | /^X\(\/\/\)$/{ | |
16499 | s//\1/ | |
16500 | q | |
16501 | } | |
16502 | /^X\(\/\).*/{ | |
16503 | s//\1/ | |
16504 | q | |
16505 | } | |
16506 | s/.*/./; q'` | |
16507 | else | |
16508 | continue | |
16509 | fi | |
16510 | # Extract the definition of DEPDIR, am__include, and am__quote | |
16511 | # from the Makefile without running 'make'. | |
16512 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
16513 | test -z "$DEPDIR" && continue | |
16514 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
16515 | test -z "$am__include" && continue | |
16516 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
16517 | # Find all dependency output files, they are included files with | |
16518 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
16519 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
16520 | # expansion. | |
16521 | for file in `sed -n " | |
16522 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
16523 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
16524 | # Make sure the directory exists. | |
16525 | test -f "$dirpart/$file" && continue | |
16526 | fdir=`$as_dirname -- "$file" || | |
16527 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16528 | X"$file" : 'X\(//\)[^/]' \| \ | |
16529 | X"$file" : 'X\(//\)$' \| \ | |
16530 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
16531 | $as_echo X"$file" | | |
16532 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16533 | s//\1/ | |
16534 | q | |
16535 | } | |
16536 | /^X\(\/\/\)[^/].*/{ | |
16537 | s//\1/ | |
16538 | q | |
16539 | } | |
16540 | /^X\(\/\/\)$/{ | |
16541 | s//\1/ | |
16542 | q | |
16543 | } | |
16544 | /^X\(\/\).*/{ | |
16545 | s//\1/ | |
16546 | q | |
16547 | } | |
16548 | s/.*/./; q'` | |
16549 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
16550 | # echo "creating $dirpart/$file" | |
16551 | echo '# dummy' > "$dirpart/$file" | |
16552 | done | |
16553 | done | |
16554 | } | |
16555 | ;; | |
bc56166f MF |
16556 | "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;; |
16557 | "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;; | |
16558 | "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;; | |
16559 | "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;; | |
16560 | "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;; | |
16561 | "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;; | |
16562 | "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;; | |
16563 | "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;; | |
16564 | "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;; | |
16565 | "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;; | |
16566 | "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;; | |
16567 | "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;; | |
16568 | "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;; | |
16569 | "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;; | |
16570 | "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;; | |
16571 | "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;; | |
16572 | "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;; | |
16573 | "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;; | |
16574 | "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;; | |
16575 | "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;; | |
16576 | "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;; | |
16577 | "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;; | |
16578 | "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;; | |
16579 | "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;; | |
16580 | "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;; | |
16581 | "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;; | |
16582 | "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;; | |
16583 | "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;; | |
16584 | "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;; | |
16585 | "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;; | |
16586 | "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;; | |
16587 | "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;; | |
81ecdfbb | 16588 | |
6bddc3e8 | 16589 | esac |
81ecdfbb RW |
16590 | done # for ac_tag |
16591 | ||
16592 | ||
16593 | as_fn_exit 0 | |
b7026657 | 16594 | _ACEOF |
b7026657 AC |
16595 | ac_clean_files=$ac_clean_files_save |
16596 | ||
81ecdfbb | 16597 | test $ac_write_fail = 0 || |
d0ac1c44 | 16598 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 16599 | |
b7026657 AC |
16600 | |
16601 | # configure is writing to config.log, and then calls config.status. | |
16602 | # config.status does its own redirection, appending to config.log. | |
16603 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16604 | # by configure, so config.status won't be able to write to it; its | |
16605 | # output is simply discarded. So we exec the FD to /dev/null, | |
16606 | # effectively closing config.log, so it can be properly (re)opened and | |
16607 | # appended to by config.status. When coming back to configure, we | |
16608 | # need to make the FD available again. | |
16609 | if test "$no_create" != yes; then | |
16610 | ac_cs_success=: | |
16611 | ac_config_status_args= | |
16612 | test "$silent" = yes && | |
16613 | ac_config_status_args="$ac_config_status_args --quiet" | |
16614 | exec 5>/dev/null | |
16615 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16616 | exec 5>>config.log | |
16617 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16618 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 16619 | $ac_cs_success || as_fn_exit 1 |
b7026657 | 16620 | fi |
c906108c | 16621 | |
b7026657 | 16622 | # |
81ecdfbb | 16623 | # CONFIG_SUBDIRS section. |
b7026657 | 16624 | # |
c906108c SS |
16625 | if test "$no_recursion" != yes; then |
16626 | ||
81ecdfbb RW |
16627 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
16628 | # so they do not pile up. | |
c906108c SS |
16629 | ac_sub_configure_args= |
16630 | ac_prev= | |
d6416cdc RW |
16631 | eval "set x $ac_configure_args" |
16632 | shift | |
16633 | for ac_arg | |
16634 | do | |
c906108c SS |
16635 | if test -n "$ac_prev"; then |
16636 | ac_prev= | |
16637 | continue | |
16638 | fi | |
b7026657 | 16639 | case $ac_arg in |
c906108c SS |
16640 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
16641 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
16642 | ac_prev=cache_file ;; | |
16643 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
b7026657 AC |
16644 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
16645 | | --c=*) | |
16646 | ;; | |
16647 | --config-cache | -C) | |
c906108c SS |
16648 | ;; |
16649 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
16650 | ac_prev=srcdir ;; | |
16651 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
16652 | ;; | |
b7026657 AC |
16653 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
16654 | ac_prev=prefix ;; | |
16655 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
16656 | ;; | |
81ecdfbb RW |
16657 | --disable-option-checking) |
16658 | ;; | |
d6416cdc RW |
16659 | *) |
16660 | case $ac_arg in | |
81ecdfbb | 16661 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d6416cdc | 16662 | esac |
81ecdfbb | 16663 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
c906108c SS |
16664 | esac |
16665 | done | |
16666 | ||
b7026657 AC |
16667 | # Always prepend --prefix to ensure using the same prefix |
16668 | # in subdir configurations. | |
d6416cdc RW |
16669 | ac_arg="--prefix=$prefix" |
16670 | case $ac_arg in | |
81ecdfbb | 16671 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d6416cdc | 16672 | esac |
81ecdfbb RW |
16673 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
16674 | ||
16675 | # Pass --silent | |
16676 | if test "$silent" = yes; then | |
16677 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
16678 | fi | |
16679 | ||
16680 | # Always prepend --disable-option-checking to silence warnings, since | |
16681 | # different subdirs can have different --enable and --with options. | |
16682 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
b7026657 AC |
16683 | |
16684 | ac_popdir=`pwd` | |
16685 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
c906108c SS |
16686 | |
16687 | # Do not complain, so a configure script can configure whichever | |
16688 | # parts of a large source tree are present. | |
d6416cdc | 16689 | test -d "$srcdir/$ac_dir" || continue |
fdd6fa61 | 16690 | |
81ecdfbb RW |
16691 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
16692 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
16693 | $as_echo "$ac_msg" >&6 | |
16694 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b7026657 AC |
16695 | ac_builddir=. |
16696 | ||
81ecdfbb RW |
16697 | case "$ac_dir" in |
16698 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16699 | *) | |
16700 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16701 | # A ".." for each directory in $ac_dir_suffix. | |
16702 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16703 | case $ac_top_builddir_sub in | |
16704 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16705 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16706 | esac ;; | |
16707 | esac | |
16708 | ac_abs_top_builddir=$ac_pwd | |
16709 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16710 | # for backward compatibility: | |
16711 | ac_top_builddir=$ac_top_build_prefix | |
c906108c | 16712 | |
b7026657 | 16713 | case $srcdir in |
81ecdfbb | 16714 | .) # We are building in place. |
b7026657 | 16715 | ac_srcdir=. |
81ecdfbb RW |
16716 | ac_top_srcdir=$ac_top_builddir_sub |
16717 | ac_abs_top_srcdir=$ac_pwd ;; | |
16718 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 16719 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
16720 | ac_top_srcdir=$srcdir |
16721 | ac_abs_top_srcdir=$srcdir ;; | |
16722 | *) # Relative name. | |
16723 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16724 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16725 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 16726 | esac |
81ecdfbb | 16727 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
c906108c | 16728 | |
c906108c | 16729 | |
d6416cdc | 16730 | cd "$ac_dir" |
c906108c SS |
16731 | |
16732 | # Check for guested configure; otherwise get Cygnus style configure. | |
d6416cdc RW |
16733 | if test -f "$ac_srcdir/configure.gnu"; then |
16734 | ac_sub_configure=$ac_srcdir/configure.gnu | |
16735 | elif test -f "$ac_srcdir/configure"; then | |
16736 | ac_sub_configure=$ac_srcdir/configure | |
16737 | elif test -f "$ac_srcdir/configure.in"; then | |
16738 | # This should be Cygnus configure. | |
16739 | ac_sub_configure=$ac_aux_dir/configure | |
c906108c | 16740 | else |
81ecdfbb RW |
16741 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
16742 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
16743 | ac_sub_configure= |
16744 | fi | |
16745 | ||
16746 | # The recursion is here. | |
16747 | if test -n "$ac_sub_configure"; then | |
c906108c | 16748 | # Make the cache file name correct relative to the subdirectory. |
b7026657 AC |
16749 | case $cache_file in |
16750 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
81ecdfbb RW |
16751 | *) # Relative name. |
16752 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
c906108c | 16753 | esac |
c906108c | 16754 | |
81ecdfbb RW |
16755 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
16756 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 16757 | # The eval makes quoting arguments work. |
d6416cdc RW |
16758 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
16759 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
d0ac1c44 | 16760 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
c906108c SS |
16761 | fi |
16762 | ||
d6416cdc | 16763 | cd "$ac_popdir" |
c906108c SS |
16764 | done |
16765 | fi | |
81ecdfbb RW |
16766 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
16767 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16768 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
16769 | fi | |
c906108c | 16770 |