]>
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= | |
6bddc3e8 MF |
637 | ac_subst_vars='am__EXEEXT_FALSE |
638 | am__EXEEXT_TRUE | |
639 | LTLIBOBJS | |
3960e5b8 | 640 | LIBOBJS |
e173c80f | 641 | SIM_RX_CYCLE_ACCURATE_FLAGS |
1787fcc4 | 642 | SIM_RISCV_BITSIZE |
5f7e03a6 MF |
643 | sim_ppc_model_issue |
644 | sim_ppc_default_model | |
645 | sim_ppc_model | |
646 | sim_ppc_monitor | |
647 | sim_ppc_float | |
648 | sim_ppc_timebase | |
649 | sim_ppc_bitsize | |
650 | sim_ppc_igen_smp | |
651 | sim_ppc_smp | |
652 | sim_ppc_xor_endian | |
653 | sim_ppc_hw_obj | |
654 | sim_ppc_hw_src | |
655 | sim_ppc_icache | |
656 | sim_ppc_filter | |
657 | sim_ppc_jump | |
658 | sim_ppc_decode_mechanism | |
659 | sim_ppc_dup | |
660 | sim_ppc_switch | |
661 | sim_ppc_opcode | |
662 | sim_ppc_line_nr | |
f12c3c63 MF |
663 | SIM_MIPS_GEN_MODE_MULTI_FALSE |
664 | SIM_MIPS_GEN_MODE_MULTI_TRUE | |
f6d58d40 MF |
665 | SIM_MIPS_GEN_MODE_M16_FALSE |
666 | SIM_MIPS_GEN_MODE_M16_TRUE | |
3a31051b MF |
667 | SIM_MIPS_GEN_MODE_SINGLE_FALSE |
668 | SIM_MIPS_GEN_MODE_SINGLE_TRUE | |
abc494c6 MF |
669 | SIM_MIPS_MULTI_OBJ |
670 | SIM_MIPS_MULTI_SRC | |
671 | SIM_MIPS_MULTI_IGEN_CONFIGS | |
4c45662c | 672 | SIM_MIPS_IGEN_ITABLE_FLAGS |
abc494c6 | 673 | SIM_MIPS_GEN |
abc494c6 | 674 | SIM_MIPS_M16_FLAGS |
07f60ed8 | 675 | SIM_MIPS_SINGLE_FLAGS |
d455df98 | 676 | SIM_MIPS_FPU_BITSIZE |
19b11256 | 677 | SIM_MIPS_BITSIZE |
2d5700ad | 678 | SIM_MIPS_SUBTARGET |
408a44aa | 679 | SIM_FRV_TRAPDUMP_FLAGS |
4da6be3f MF |
680 | SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE |
681 | SIM_CFLAG_WNO_SHADOW_LOCAL | |
111b1cf9 | 682 | IGEN_FLAGS_SMP |
d73f39ee | 683 | SIM_INLINE |
682a2a82 MF |
684 | SIM_HW_SOCKSER |
685 | SIM_HW_CFLAGS | |
456ef1c1 MF |
686 | SIM_ENABLE_HW_FALSE |
687 | SIM_ENABLE_HW_TRUE | |
1bf5c342 MF |
688 | cgen |
689 | cgendir | |
690 | CGEN_MAINT | |
fb2c495f MF |
691 | ENABLE_SIM_FALSE |
692 | ENABLE_SIM_TRUE | |
c0c25232 MF |
693 | SIM_ENABLE_ARCH_examples_FALSE |
694 | SIM_ENABLE_ARCH_examples_TRUE | |
8996c210 MF |
695 | CC_FOR_TARGET_EXAMPLE_SYNACOR |
696 | LD_FOR_TARGET_EXAMPLE_SYNACOR | |
697 | AS_FOR_TARGET_EXAMPLE_SYNACOR | |
65dcce8f MF |
698 | SIM_ENABLE_ARCH_v850_FALSE |
699 | SIM_ENABLE_ARCH_v850_TRUE | |
8996c210 MF |
700 | CC_FOR_TARGET_V850 |
701 | LD_FOR_TARGET_V850 | |
702 | AS_FOR_TARGET_V850 | |
65dcce8f MF |
703 | SIM_ENABLE_ARCH_erc32_FALSE |
704 | SIM_ENABLE_ARCH_erc32_TRUE | |
8996c210 MF |
705 | CC_FOR_TARGET_ERC32 |
706 | LD_FOR_TARGET_ERC32 | |
707 | AS_FOR_TARGET_ERC32 | |
65dcce8f MF |
708 | SIM_ENABLE_ARCH_sh_FALSE |
709 | SIM_ENABLE_ARCH_sh_TRUE | |
8996c210 MF |
710 | CC_FOR_TARGET_SH |
711 | LD_FOR_TARGET_SH | |
712 | AS_FOR_TARGET_SH | |
65dcce8f MF |
713 | SIM_ENABLE_ARCH_rx_FALSE |
714 | SIM_ENABLE_ARCH_rx_TRUE | |
8996c210 MF |
715 | CC_FOR_TARGET_RX |
716 | LD_FOR_TARGET_RX | |
717 | AS_FOR_TARGET_RX | |
65dcce8f MF |
718 | SIM_ENABLE_ARCH_rl78_FALSE |
719 | SIM_ENABLE_ARCH_rl78_TRUE | |
8996c210 MF |
720 | CC_FOR_TARGET_RL78 |
721 | LD_FOR_TARGET_RL78 | |
722 | AS_FOR_TARGET_RL78 | |
65dcce8f MF |
723 | SIM_ENABLE_ARCH_riscv_FALSE |
724 | SIM_ENABLE_ARCH_riscv_TRUE | |
8996c210 MF |
725 | CC_FOR_TARGET_RISCV |
726 | LD_FOR_TARGET_RISCV | |
727 | AS_FOR_TARGET_RISCV | |
65dcce8f MF |
728 | SIM_ENABLE_ARCH_pru_FALSE |
729 | SIM_ENABLE_ARCH_pru_TRUE | |
8996c210 MF |
730 | CC_FOR_TARGET_PRU |
731 | LD_FOR_TARGET_PRU | |
732 | AS_FOR_TARGET_PRU | |
65dcce8f MF |
733 | SIM_ENABLE_ARCH_ppc_FALSE |
734 | SIM_ENABLE_ARCH_ppc_TRUE | |
8996c210 MF |
735 | CC_FOR_TARGET_PPC |
736 | LD_FOR_TARGET_PPC | |
737 | AS_FOR_TARGET_PPC | |
65dcce8f MF |
738 | SIM_ENABLE_ARCH_or1k_FALSE |
739 | SIM_ENABLE_ARCH_or1k_TRUE | |
8996c210 MF |
740 | CC_FOR_TARGET_OR1K |
741 | LD_FOR_TARGET_OR1K | |
742 | AS_FOR_TARGET_OR1K | |
65dcce8f MF |
743 | SIM_ENABLE_ARCH_msp430_FALSE |
744 | SIM_ENABLE_ARCH_msp430_TRUE | |
8996c210 MF |
745 | CC_FOR_TARGET_MSP430 |
746 | LD_FOR_TARGET_MSP430 | |
747 | AS_FOR_TARGET_MSP430 | |
65dcce8f MF |
748 | SIM_ENABLE_ARCH_moxie_FALSE |
749 | SIM_ENABLE_ARCH_moxie_TRUE | |
8996c210 MF |
750 | CC_FOR_TARGET_MOXIE |
751 | LD_FOR_TARGET_MOXIE | |
752 | AS_FOR_TARGET_MOXIE | |
65dcce8f MF |
753 | SIM_ENABLE_ARCH_mn10300_FALSE |
754 | SIM_ENABLE_ARCH_mn10300_TRUE | |
8996c210 MF |
755 | CC_FOR_TARGET_MN10300 |
756 | LD_FOR_TARGET_MN10300 | |
757 | AS_FOR_TARGET_MN10300 | |
65dcce8f MF |
758 | SIM_ENABLE_ARCH_mips_FALSE |
759 | SIM_ENABLE_ARCH_mips_TRUE | |
8996c210 MF |
760 | CC_FOR_TARGET_MIPS |
761 | LD_FOR_TARGET_MIPS | |
762 | AS_FOR_TARGET_MIPS | |
65dcce8f MF |
763 | SIM_ENABLE_ARCH_microblaze_FALSE |
764 | SIM_ENABLE_ARCH_microblaze_TRUE | |
8996c210 MF |
765 | CC_FOR_TARGET_MICROBLAZE |
766 | LD_FOR_TARGET_MICROBLAZE | |
767 | AS_FOR_TARGET_MICROBLAZE | |
65dcce8f MF |
768 | SIM_ENABLE_ARCH_mcore_FALSE |
769 | SIM_ENABLE_ARCH_mcore_TRUE | |
8996c210 MF |
770 | CC_FOR_TARGET_MCORE |
771 | LD_FOR_TARGET_MCORE | |
772 | AS_FOR_TARGET_MCORE | |
65dcce8f MF |
773 | SIM_ENABLE_ARCH_m68hc11_FALSE |
774 | SIM_ENABLE_ARCH_m68hc11_TRUE | |
8996c210 MF |
775 | CC_FOR_TARGET_M68HC11 |
776 | LD_FOR_TARGET_M68HC11 | |
777 | AS_FOR_TARGET_M68HC11 | |
65dcce8f MF |
778 | SIM_ENABLE_ARCH_m32r_FALSE |
779 | SIM_ENABLE_ARCH_m32r_TRUE | |
8996c210 MF |
780 | CC_FOR_TARGET_M32R |
781 | LD_FOR_TARGET_M32R | |
782 | AS_FOR_TARGET_M32R | |
65dcce8f MF |
783 | SIM_ENABLE_ARCH_m32c_FALSE |
784 | SIM_ENABLE_ARCH_m32c_TRUE | |
8996c210 MF |
785 | CC_FOR_TARGET_M32C |
786 | LD_FOR_TARGET_M32C | |
787 | AS_FOR_TARGET_M32C | |
65dcce8f MF |
788 | SIM_ENABLE_ARCH_lm32_FALSE |
789 | SIM_ENABLE_ARCH_lm32_TRUE | |
8996c210 MF |
790 | CC_FOR_TARGET_LM32 |
791 | LD_FOR_TARGET_LM32 | |
792 | AS_FOR_TARGET_LM32 | |
65dcce8f MF |
793 | SIM_ENABLE_ARCH_iq2000_FALSE |
794 | SIM_ENABLE_ARCH_iq2000_TRUE | |
8996c210 MF |
795 | CC_FOR_TARGET_IQ2000 |
796 | LD_FOR_TARGET_IQ2000 | |
797 | AS_FOR_TARGET_IQ2000 | |
65dcce8f MF |
798 | SIM_ENABLE_ARCH_h8300_FALSE |
799 | SIM_ENABLE_ARCH_h8300_TRUE | |
8996c210 MF |
800 | CC_FOR_TARGET_H8300 |
801 | LD_FOR_TARGET_H8300 | |
802 | AS_FOR_TARGET_H8300 | |
65dcce8f MF |
803 | SIM_ENABLE_ARCH_ft32_FALSE |
804 | SIM_ENABLE_ARCH_ft32_TRUE | |
8996c210 MF |
805 | CC_FOR_TARGET_FT32 |
806 | LD_FOR_TARGET_FT32 | |
807 | AS_FOR_TARGET_FT32 | |
65dcce8f MF |
808 | SIM_ENABLE_ARCH_frv_FALSE |
809 | SIM_ENABLE_ARCH_frv_TRUE | |
8996c210 MF |
810 | CC_FOR_TARGET_FRV |
811 | LD_FOR_TARGET_FRV | |
812 | AS_FOR_TARGET_FRV | |
65dcce8f MF |
813 | SIM_ENABLE_ARCH_d10v_FALSE |
814 | SIM_ENABLE_ARCH_d10v_TRUE | |
8996c210 MF |
815 | CC_FOR_TARGET_D10V |
816 | LD_FOR_TARGET_D10V | |
817 | AS_FOR_TARGET_D10V | |
65dcce8f MF |
818 | SIM_ENABLE_ARCH_cris_FALSE |
819 | SIM_ENABLE_ARCH_cris_TRUE | |
8996c210 MF |
820 | CC_FOR_TARGET_CRIS |
821 | LD_FOR_TARGET_CRIS | |
822 | AS_FOR_TARGET_CRIS | |
65dcce8f MF |
823 | SIM_ENABLE_ARCH_cr16_FALSE |
824 | SIM_ENABLE_ARCH_cr16_TRUE | |
8996c210 MF |
825 | CC_FOR_TARGET_CR16 |
826 | LD_FOR_TARGET_CR16 | |
827 | AS_FOR_TARGET_CR16 | |
65dcce8f MF |
828 | SIM_ENABLE_ARCH_bpf_FALSE |
829 | SIM_ENABLE_ARCH_bpf_TRUE | |
8996c210 MF |
830 | CC_FOR_TARGET_BPF |
831 | LD_FOR_TARGET_BPF | |
832 | AS_FOR_TARGET_BPF | |
65dcce8f MF |
833 | SIM_ENABLE_ARCH_bfin_FALSE |
834 | SIM_ENABLE_ARCH_bfin_TRUE | |
8996c210 MF |
835 | CC_FOR_TARGET_BFIN |
836 | LD_FOR_TARGET_BFIN | |
837 | AS_FOR_TARGET_BFIN | |
65dcce8f MF |
838 | SIM_ENABLE_ARCH_avr_FALSE |
839 | SIM_ENABLE_ARCH_avr_TRUE | |
8996c210 MF |
840 | CC_FOR_TARGET_AVR |
841 | LD_FOR_TARGET_AVR | |
842 | AS_FOR_TARGET_AVR | |
65dcce8f MF |
843 | SIM_ENABLE_ARCH_aarch64_FALSE |
844 | SIM_ENABLE_ARCH_aarch64_TRUE | |
8996c210 MF |
845 | CC_FOR_TARGET_AARCH64 |
846 | LD_FOR_TARGET_AARCH64 | |
847 | AS_FOR_TARGET_AARCH64 | |
dc4e1fde HPN |
848 | LD_FOR_TARGET |
849 | AS_FOR_TARGET | |
850 | CC_FOR_TARGET | |
2ba09f42 | 851 | SIM_ENABLED_ARCHES |
a0e674c1 | 852 | SIM_PRIMARY_TARGET |
c2783492 MF |
853 | AM_BACKSLASH |
854 | AM_DEFAULT_VERBOSITY | |
855 | AM_DEFAULT_V | |
856 | AM_V | |
6bddc3e8 MF |
857 | am__fastdepCC_FALSE |
858 | am__fastdepCC_TRUE | |
859 | CCDEPMODE | |
860 | am__nodep | |
861 | AMDEPBACKSLASH | |
862 | AMDEP_FALSE | |
863 | AMDEP_TRUE | |
864 | am__quote | |
865 | am__include | |
866 | DEPDIR | |
6bddc3e8 MF |
867 | am__untar |
868 | am__tar | |
869 | AMTAR | |
870 | am__leading_dot | |
871 | SET_MAKE | |
6bddc3e8 MF |
872 | mkdir_p |
873 | MKDIR_P | |
874 | INSTALL_STRIP_PROGRAM | |
6bddc3e8 MF |
875 | install_sh |
876 | MAKEINFO | |
877 | AUTOHEADER | |
878 | AUTOMAKE | |
879 | AUTOCONF | |
880 | ACLOCAL | |
881 | VERSION | |
882 | PACKAGE | |
883 | CYGPATH_W | |
884 | am__isrc | |
8c379db2 TT |
885 | MAINT |
886 | MAINTAINER_MODE_FALSE | |
887 | MAINTAINER_MODE_TRUE | |
5d0b3088 MF |
888 | READLINE_CFLAGS |
889 | READLINE_LIB | |
890 | TERMCAP_LIB | |
d57b6533 MF |
891 | SDL_LIBS |
892 | SDL_CFLAGS | |
b5689863 MF |
893 | OTOOL64 |
894 | OTOOL | |
895 | LIPO | |
896 | NMEDIT | |
897 | DSYMUTIL | |
898 | AWK | |
899 | STRIP | |
6fb5a51c | 900 | LLVM_CONFIG |
b5689863 MF |
901 | OBJDUMP |
902 | LN_S | |
903 | NM | |
904 | ac_ct_DUMPBIN | |
905 | DUMPBIN | |
906 | LD | |
907 | FGREP | |
908 | SED | |
909 | LIBTOOL | |
c2783492 | 910 | C_DIALECT |
d57b6533 MF |
911 | PKG_CONFIG_LIBDIR |
912 | PKG_CONFIG_PATH | |
913 | PKG_CONFIG | |
c2783492 MF |
914 | RANLIB |
915 | AR | |
916 | LDFLAGS_FOR_BUILD | |
fde7c6bf | 917 | CPPFLAGS_FOR_BUILD |
c2783492 | 918 | CFLAGS_FOR_BUILD |
aa0fca16 | 919 | RANLIB_FOR_BUILD |
c2783492 | 920 | CC_FOR_BUILD |
aa0fca16 | 921 | AR_FOR_BUILD |
a979f2a0 | 922 | DTC |
c2783492 MF |
923 | INSTALL_DATA |
924 | INSTALL_SCRIPT | |
925 | INSTALL_PROGRAM | |
926 | EGREP | |
927 | GREP | |
928 | CPP | |
929 | OBJEXT | |
930 | EXEEXT | |
931 | ac_ct_CC | |
932 | CPPFLAGS | |
933 | LDFLAGS | |
934 | CFLAGS | |
935 | CC | |
81ecdfbb RW |
936 | target_os |
937 | target_vendor | |
938 | target_cpu | |
939 | target | |
940 | host_os | |
941 | host_vendor | |
942 | host_cpu | |
943 | host | |
944 | build_os | |
945 | build_vendor | |
946 | build_cpu | |
947 | build | |
6dd65fc0 MF |
948 | REPORT_BUGS_TEXI |
949 | REPORT_BUGS_TO | |
950 | PKGVERSION | |
81ecdfbb RW |
951 | target_alias |
952 | host_alias | |
953 | build_alias | |
954 | LIBS | |
955 | ECHO_T | |
956 | ECHO_N | |
957 | ECHO_C | |
958 | DEFS | |
959 | mandir | |
960 | localedir | |
961 | libdir | |
962 | psdir | |
963 | pdfdir | |
964 | dvidir | |
965 | htmldir | |
966 | infodir | |
967 | docdir | |
968 | oldincludedir | |
969 | includedir | |
970 | localstatedir | |
971 | sharedstatedir | |
972 | sysconfdir | |
973 | datadir | |
974 | datarootdir | |
975 | libexecdir | |
976 | sbindir | |
977 | bindir | |
978 | program_transform_name | |
979 | prefix | |
980 | exec_prefix | |
981 | PACKAGE_URL | |
982 | PACKAGE_BUGREPORT | |
983 | PACKAGE_STRING | |
984 | PACKAGE_VERSION | |
985 | PACKAGE_TARNAME | |
986 | PACKAGE_NAME | |
987 | PATH_SEPARATOR | |
47ce766a | 988 | SHELL |
8996c210 | 989 | SIM_TOOLCHAIN_VARS |
435ad222 MF |
990 | BUILD_WERROR_CFLAGS |
991 | BUILD_WARN_CFLAGS | |
47ce766a MF |
992 | WERROR_CFLAGS |
993 | WARN_CFLAGS' | |
b7026657 | 994 | ac_subst_files='' |
81ecdfbb RW |
995 | ac_user_opts=' |
996 | enable_option_checking | |
6dd65fc0 MF |
997 | with_pkgversion |
998 | with_bugurl | |
b5689863 MF |
999 | enable_shared |
1000 | enable_static | |
1001 | with_pic | |
1002 | enable_fast_install | |
1003 | with_gnu_ld | |
1004 | enable_libtool_lock | |
8c379db2 | 1005 | enable_maintainer_mode |
6bddc3e8 | 1006 | enable_dependency_tracking |
c2783492 | 1007 | enable_silent_rules |
81ecdfbb | 1008 | enable_sim |
26da232c | 1009 | enable_example_sims |
a0e674c1 | 1010 | enable_targets |
ba307cdd | 1011 | enable_sim_alignment |
dba333c1 | 1012 | enable_sim_assert |
1bf5c342 | 1013 | enable_cgen_maint |
04381273 | 1014 | enable_sim_debug |
f9a4d543 | 1015 | enable_sim_endian |
5ea45474 | 1016 | enable_sim_environment |
456ef1c1 | 1017 | enable_sim_hardware |
d73f39ee | 1018 | enable_sim_inline |
04381273 | 1019 | enable_sim_profile |
7eb1f99a | 1020 | enable_sim_reserved_bits |
b79efe26 | 1021 | enable_sim_scache |
20b579ba | 1022 | enable_sim_smp |
04381273 MF |
1023 | enable_sim_stdio |
1024 | enable_sim_trace | |
47ce766a MF |
1025 | enable_werror |
1026 | enable_build_warnings | |
1027 | enable_sim_build_warnings | |
408a44aa | 1028 | enable_sim_frv_trapdump |
5f7e03a6 MF |
1029 | enable_sim_ppc_bitsize |
1030 | enable_sim_ppc_decode_mechanism | |
1031 | enable_sim_ppc_default_model | |
1032 | enable_sim_ppc_duplicate | |
1033 | enable_sim_ppc_filter | |
1034 | enable_sim_ppc_float | |
1035 | enable_sim_ppc_hardware | |
1036 | enable_sim_ppc_icache | |
1037 | enable_sim_ppc_jump | |
1038 | enable_sim_ppc_line_nr | |
1039 | enable_sim_ppc_model | |
1040 | enable_sim_ppc_model_issue | |
1041 | enable_sim_ppc_monitor | |
1042 | enable_sim_ppc_opcode | |
1043 | enable_sim_ppc_smp | |
1044 | enable_sim_ppc_switch | |
1045 | enable_sim_ppc_timebase | |
1046 | enable_sim_ppc_xor_endian | |
e173c80f | 1047 | enable_sim_rx_cycle_accurate |
81ecdfbb RW |
1048 | ' |
1049 | ac_precious_vars='build_alias | |
1050 | host_alias | |
1051 | target_alias | |
1052 | CC | |
1053 | CFLAGS | |
1054 | LDFLAGS | |
1055 | LIBS | |
5e25901f | 1056 | CPPFLAGS |
d57b6533 MF |
1057 | CPP |
1058 | PKG_CONFIG | |
1059 | PKG_CONFIG_PATH | |
1060 | PKG_CONFIG_LIBDIR | |
1061 | SDL_CFLAGS | |
8996c210 MF |
1062 | SDL_LIBS |
1063 | AS_FOR_TARGET_AARCH64 | |
1064 | LD_FOR_TARGET_AARCH64 | |
1065 | CC_FOR_TARGET_AARCH64 | |
8996c210 MF |
1066 | AS_FOR_TARGET_AVR |
1067 | LD_FOR_TARGET_AVR | |
1068 | CC_FOR_TARGET_AVR | |
1069 | AS_FOR_TARGET_BFIN | |
1070 | LD_FOR_TARGET_BFIN | |
1071 | CC_FOR_TARGET_BFIN | |
1072 | AS_FOR_TARGET_BPF | |
1073 | LD_FOR_TARGET_BPF | |
1074 | CC_FOR_TARGET_BPF | |
1075 | AS_FOR_TARGET_CR16 | |
1076 | LD_FOR_TARGET_CR16 | |
1077 | CC_FOR_TARGET_CR16 | |
1078 | AS_FOR_TARGET_CRIS | |
1079 | LD_FOR_TARGET_CRIS | |
1080 | CC_FOR_TARGET_CRIS | |
1081 | AS_FOR_TARGET_D10V | |
1082 | LD_FOR_TARGET_D10V | |
1083 | CC_FOR_TARGET_D10V | |
1084 | AS_FOR_TARGET_FRV | |
1085 | LD_FOR_TARGET_FRV | |
1086 | CC_FOR_TARGET_FRV | |
1087 | AS_FOR_TARGET_FT32 | |
1088 | LD_FOR_TARGET_FT32 | |
1089 | CC_FOR_TARGET_FT32 | |
1090 | AS_FOR_TARGET_H8300 | |
1091 | LD_FOR_TARGET_H8300 | |
1092 | CC_FOR_TARGET_H8300 | |
1093 | AS_FOR_TARGET_IQ2000 | |
1094 | LD_FOR_TARGET_IQ2000 | |
1095 | CC_FOR_TARGET_IQ2000 | |
1096 | AS_FOR_TARGET_LM32 | |
1097 | LD_FOR_TARGET_LM32 | |
1098 | CC_FOR_TARGET_LM32 | |
1099 | AS_FOR_TARGET_M32C | |
1100 | LD_FOR_TARGET_M32C | |
1101 | CC_FOR_TARGET_M32C | |
1102 | AS_FOR_TARGET_M32R | |
1103 | LD_FOR_TARGET_M32R | |
1104 | CC_FOR_TARGET_M32R | |
1105 | AS_FOR_TARGET_M68HC11 | |
1106 | LD_FOR_TARGET_M68HC11 | |
1107 | CC_FOR_TARGET_M68HC11 | |
1108 | AS_FOR_TARGET_MCORE | |
1109 | LD_FOR_TARGET_MCORE | |
1110 | CC_FOR_TARGET_MCORE | |
1111 | AS_FOR_TARGET_MICROBLAZE | |
1112 | LD_FOR_TARGET_MICROBLAZE | |
1113 | CC_FOR_TARGET_MICROBLAZE | |
1114 | AS_FOR_TARGET_MIPS | |
1115 | LD_FOR_TARGET_MIPS | |
1116 | CC_FOR_TARGET_MIPS | |
1117 | AS_FOR_TARGET_MN10300 | |
1118 | LD_FOR_TARGET_MN10300 | |
1119 | CC_FOR_TARGET_MN10300 | |
1120 | AS_FOR_TARGET_MOXIE | |
1121 | LD_FOR_TARGET_MOXIE | |
1122 | CC_FOR_TARGET_MOXIE | |
1123 | AS_FOR_TARGET_MSP430 | |
1124 | LD_FOR_TARGET_MSP430 | |
1125 | CC_FOR_TARGET_MSP430 | |
1126 | AS_FOR_TARGET_OR1K | |
1127 | LD_FOR_TARGET_OR1K | |
1128 | CC_FOR_TARGET_OR1K | |
1129 | AS_FOR_TARGET_PPC | |
1130 | LD_FOR_TARGET_PPC | |
1131 | CC_FOR_TARGET_PPC | |
1132 | AS_FOR_TARGET_PRU | |
1133 | LD_FOR_TARGET_PRU | |
1134 | CC_FOR_TARGET_PRU | |
1135 | AS_FOR_TARGET_RISCV | |
1136 | LD_FOR_TARGET_RISCV | |
1137 | CC_FOR_TARGET_RISCV | |
1138 | AS_FOR_TARGET_RL78 | |
1139 | LD_FOR_TARGET_RL78 | |
1140 | CC_FOR_TARGET_RL78 | |
1141 | AS_FOR_TARGET_RX | |
1142 | LD_FOR_TARGET_RX | |
1143 | CC_FOR_TARGET_RX | |
1144 | AS_FOR_TARGET_SH | |
1145 | LD_FOR_TARGET_SH | |
1146 | CC_FOR_TARGET_SH | |
1147 | AS_FOR_TARGET_ERC32 | |
1148 | LD_FOR_TARGET_ERC32 | |
1149 | CC_FOR_TARGET_ERC32 | |
1150 | AS_FOR_TARGET_V850 | |
1151 | LD_FOR_TARGET_V850 | |
1152 | CC_FOR_TARGET_V850 | |
1153 | AS_FOR_TARGET_EXAMPLE_SYNACOR | |
1154 | LD_FOR_TARGET_EXAMPLE_SYNACOR | |
1155 | CC_FOR_TARGET_EXAMPLE_SYNACOR' | |
5f7e03a6 | 1156 | |
c906108c SS |
1157 | |
1158 | # Initialize some variables set by options. | |
b7026657 AC |
1159 | ac_init_help= |
1160 | ac_init_version=false | |
81ecdfbb RW |
1161 | ac_unrecognized_opts= |
1162 | ac_unrecognized_sep= | |
c906108c SS |
1163 | # The variables have the same names as the options, with |
1164 | # dashes changed to underlines. | |
b7026657 | 1165 | cache_file=/dev/null |
c906108c | 1166 | exec_prefix=NONE |
c906108c | 1167 | no_create= |
c906108c SS |
1168 | no_recursion= |
1169 | prefix=NONE | |
1170 | program_prefix=NONE | |
1171 | program_suffix=NONE | |
1172 | program_transform_name=s,x,x, | |
1173 | silent= | |
1174 | site= | |
1175 | srcdir= | |
c906108c SS |
1176 | verbose= |
1177 | x_includes=NONE | |
1178 | x_libraries=NONE | |
b7026657 AC |
1179 | |
1180 | # Installation directory options. | |
1181 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
1182 | # and all the variables that are supposed to be based on exec_prefix | |
1183 | # by default will actually change. | |
1184 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 1185 | # (The list follows the same order as the GNU Coding Standards.) |
c906108c SS |
1186 | bindir='${exec_prefix}/bin' |
1187 | sbindir='${exec_prefix}/sbin' | |
1188 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
1189 | datarootdir='${prefix}/share' |
1190 | datadir='${datarootdir}' | |
c906108c SS |
1191 | sysconfdir='${prefix}/etc' |
1192 | sharedstatedir='${prefix}/com' | |
1193 | localstatedir='${prefix}/var' | |
c906108c SS |
1194 | includedir='${prefix}/include' |
1195 | oldincludedir='/usr/include' | |
6bddc3e8 | 1196 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
1197 | infodir='${datarootdir}/info' |
1198 | htmldir='${docdir}' | |
1199 | dvidir='${docdir}' | |
1200 | pdfdir='${docdir}' | |
1201 | psdir='${docdir}' | |
1202 | libdir='${exec_prefix}/lib' | |
1203 | localedir='${datarootdir}/locale' | |
1204 | mandir='${datarootdir}/man' | |
c906108c | 1205 | |
c906108c | 1206 | ac_prev= |
81ecdfbb | 1207 | ac_dashdash= |
c906108c SS |
1208 | for ac_option |
1209 | do | |
c906108c SS |
1210 | # If the previous option needs an argument, assign it. |
1211 | if test -n "$ac_prev"; then | |
81ecdfbb | 1212 | eval $ac_prev=\$ac_option |
c906108c SS |
1213 | ac_prev= |
1214 | continue | |
1215 | fi | |
1216 | ||
81ecdfbb | 1217 | case $ac_option in |
d0ac1c44 SM |
1218 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
1219 | *=) ac_optarg= ;; | |
1220 | *) ac_optarg=yes ;; | |
81ecdfbb | 1221 | esac |
c906108c SS |
1222 | |
1223 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1224 | ||
81ecdfbb RW |
1225 | case $ac_dashdash$ac_option in |
1226 | --) | |
1227 | ac_dashdash=yes ;; | |
c906108c SS |
1228 | |
1229 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1230 | ac_prev=bindir ;; | |
1231 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 1232 | bindir=$ac_optarg ;; |
c906108c SS |
1233 | |
1234 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 1235 | ac_prev=build_alias ;; |
c906108c | 1236 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 1237 | build_alias=$ac_optarg ;; |
c906108c SS |
1238 | |
1239 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1240 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1241 | ac_prev=cache_file ;; | |
1242 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1243 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b7026657 AC |
1244 | cache_file=$ac_optarg ;; |
1245 | ||
1246 | --config-cache | -C) | |
1247 | cache_file=config.cache ;; | |
c906108c | 1248 | |
81ecdfbb | 1249 | -datadir | --datadir | --datadi | --datad) |
c906108c | 1250 | ac_prev=datadir ;; |
81ecdfbb | 1251 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b7026657 | 1252 | datadir=$ac_optarg ;; |
c906108c | 1253 | |
81ecdfbb RW |
1254 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1255 | | --dataroo | --dataro | --datar) | |
1256 | ac_prev=datarootdir ;; | |
1257 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1258 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1259 | datarootdir=$ac_optarg ;; | |
1260 | ||
c906108c | 1261 | -disable-* | --disable-*) |
81ecdfbb | 1262 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 1263 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1264 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1265 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1266 | ac_useropt_orig=$ac_useropt |
1267 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1268 | case $ac_user_opts in | |
1269 | *" | |
1270 | "enable_$ac_useropt" | |
1271 | "*) ;; | |
1272 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1273 | ac_unrecognized_sep=', ';; | |
1274 | esac | |
1275 | eval enable_$ac_useropt=no ;; | |
1276 | ||
1277 | -docdir | --docdir | --docdi | --doc | --do) | |
1278 | ac_prev=docdir ;; | |
1279 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1280 | docdir=$ac_optarg ;; | |
1281 | ||
1282 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1283 | ac_prev=dvidir ;; | |
1284 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1285 | dvidir=$ac_optarg ;; | |
c906108c SS |
1286 | |
1287 | -enable-* | --enable-*) | |
81ecdfbb | 1288 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 1289 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1290 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1291 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1292 | ac_useropt_orig=$ac_useropt |
1293 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1294 | case $ac_user_opts in | |
1295 | *" | |
1296 | "enable_$ac_useropt" | |
1297 | "*) ;; | |
1298 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1299 | ac_unrecognized_sep=', ';; | |
fdd6fa61 | 1300 | esac |
81ecdfbb | 1301 | eval enable_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
1302 | |
1303 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1304 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1305 | | --exec | --exe | --ex) | |
1306 | ac_prev=exec_prefix ;; | |
1307 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1308 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1309 | | --exec=* | --exe=* | --ex=*) | |
b7026657 | 1310 | exec_prefix=$ac_optarg ;; |
c906108c SS |
1311 | |
1312 | -gas | --gas | --ga | --g) | |
1313 | # Obsolete; use --with-gas. | |
1314 | with_gas=yes ;; | |
1315 | ||
b7026657 AC |
1316 | -help | --help | --hel | --he | -h) |
1317 | ac_init_help=long ;; | |
1318 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1319 | ac_init_help=recursive ;; | |
1320 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1321 | ac_init_help=short ;; | |
c906108c SS |
1322 | |
1323 | -host | --host | --hos | --ho) | |
b7026657 | 1324 | ac_prev=host_alias ;; |
c906108c | 1325 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 1326 | host_alias=$ac_optarg ;; |
c906108c | 1327 | |
81ecdfbb RW |
1328 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1329 | ac_prev=htmldir ;; | |
1330 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1331 | | --ht=*) | |
1332 | htmldir=$ac_optarg ;; | |
1333 | ||
c906108c SS |
1334 | -includedir | --includedir | --includedi | --included | --include \ |
1335 | | --includ | --inclu | --incl | --inc) | |
1336 | ac_prev=includedir ;; | |
1337 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1338 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b7026657 | 1339 | includedir=$ac_optarg ;; |
c906108c SS |
1340 | |
1341 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1342 | ac_prev=infodir ;; | |
1343 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 1344 | infodir=$ac_optarg ;; |
c906108c SS |
1345 | |
1346 | -libdir | --libdir | --libdi | --libd) | |
1347 | ac_prev=libdir ;; | |
1348 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 1349 | libdir=$ac_optarg ;; |
c906108c SS |
1350 | |
1351 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1352 | | --libexe | --libex | --libe) | |
1353 | ac_prev=libexecdir ;; | |
1354 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1355 | | --libexe=* | --libex=* | --libe=*) | |
b7026657 | 1356 | libexecdir=$ac_optarg ;; |
c906108c | 1357 | |
81ecdfbb RW |
1358 | -localedir | --localedir | --localedi | --localed | --locale) |
1359 | ac_prev=localedir ;; | |
1360 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1361 | localedir=$ac_optarg ;; | |
1362 | ||
c906108c | 1363 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1364 | | --localstate | --localstat | --localsta | --localst | --locals) |
c906108c SS |
1365 | ac_prev=localstatedir ;; |
1366 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1367 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b7026657 | 1368 | localstatedir=$ac_optarg ;; |
c906108c SS |
1369 | |
1370 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1371 | ac_prev=mandir ;; | |
1372 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b7026657 | 1373 | mandir=$ac_optarg ;; |
c906108c SS |
1374 | |
1375 | -nfp | --nfp | --nf) | |
1376 | # Obsolete; use --without-fp. | |
1377 | with_fp=no ;; | |
1378 | ||
1379 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b7026657 | 1380 | | --no-cr | --no-c | -n) |
c906108c SS |
1381 | no_create=yes ;; |
1382 | ||
1383 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1384 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1385 | no_recursion=yes ;; | |
1386 | ||
1387 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1388 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1389 | | --oldin | --oldi | --old | --ol | --o) | |
1390 | ac_prev=oldincludedir ;; | |
1391 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1392 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1393 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b7026657 | 1394 | oldincludedir=$ac_optarg ;; |
c906108c SS |
1395 | |
1396 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1397 | ac_prev=prefix ;; | |
1398 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b7026657 | 1399 | prefix=$ac_optarg ;; |
c906108c SS |
1400 | |
1401 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1402 | | --program-pre | --program-pr | --program-p) | |
1403 | ac_prev=program_prefix ;; | |
1404 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1405 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b7026657 | 1406 | program_prefix=$ac_optarg ;; |
c906108c SS |
1407 | |
1408 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1409 | | --program-suf | --program-su | --program-s) | |
1410 | ac_prev=program_suffix ;; | |
1411 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1412 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b7026657 | 1413 | program_suffix=$ac_optarg ;; |
c906108c SS |
1414 | |
1415 | -program-transform-name | --program-transform-name \ | |
1416 | | --program-transform-nam | --program-transform-na \ | |
1417 | | --program-transform-n | --program-transform- \ | |
1418 | | --program-transform | --program-transfor \ | |
1419 | | --program-transfo | --program-transf \ | |
1420 | | --program-trans | --program-tran \ | |
1421 | | --progr-tra | --program-tr | --program-t) | |
1422 | ac_prev=program_transform_name ;; | |
1423 | -program-transform-name=* | --program-transform-name=* \ | |
1424 | | --program-transform-nam=* | --program-transform-na=* \ | |
1425 | | --program-transform-n=* | --program-transform-=* \ | |
1426 | | --program-transform=* | --program-transfor=* \ | |
1427 | | --program-transfo=* | --program-transf=* \ | |
1428 | | --program-trans=* | --program-tran=* \ | |
1429 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b7026657 | 1430 | program_transform_name=$ac_optarg ;; |
c906108c | 1431 | |
81ecdfbb RW |
1432 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1433 | ac_prev=pdfdir ;; | |
1434 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1435 | pdfdir=$ac_optarg ;; | |
1436 | ||
1437 | -psdir | --psdir | --psdi | --psd | --ps) | |
1438 | ac_prev=psdir ;; | |
1439 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1440 | psdir=$ac_optarg ;; | |
1441 | ||
c906108c SS |
1442 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1443 | | -silent | --silent | --silen | --sile | --sil) | |
1444 | silent=yes ;; | |
1445 | ||
1446 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1447 | ac_prev=sbindir ;; | |
1448 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1449 | | --sbi=* | --sb=*) | |
b7026657 | 1450 | sbindir=$ac_optarg ;; |
c906108c SS |
1451 | |
1452 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1453 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1454 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1455 | | --sha | --sh) | |
1456 | ac_prev=sharedstatedir ;; | |
1457 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1458 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1459 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1460 | | --sha=* | --sh=*) | |
b7026657 | 1461 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
1462 | |
1463 | -site | --site | --sit) | |
1464 | ac_prev=site ;; | |
1465 | -site=* | --site=* | --sit=*) | |
b7026657 | 1466 | site=$ac_optarg ;; |
0fda6bd2 | 1467 | |
c906108c SS |
1468 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1469 | ac_prev=srcdir ;; | |
1470 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 1471 | srcdir=$ac_optarg ;; |
c906108c SS |
1472 | |
1473 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1474 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1475 | ac_prev=sysconfdir ;; | |
1476 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1477 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b7026657 | 1478 | sysconfdir=$ac_optarg ;; |
c906108c SS |
1479 | |
1480 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 1481 | ac_prev=target_alias ;; |
c906108c | 1482 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 1483 | target_alias=$ac_optarg ;; |
c906108c SS |
1484 | |
1485 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1486 | verbose=yes ;; | |
1487 | ||
b7026657 AC |
1488 | -version | --version | --versio | --versi | --vers | -V) |
1489 | ac_init_version=: ;; | |
c906108c SS |
1490 | |
1491 | -with-* | --with-*) | |
81ecdfbb | 1492 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 1493 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1494 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1495 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1496 | ac_useropt_orig=$ac_useropt |
1497 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1498 | case $ac_user_opts in | |
1499 | *" | |
1500 | "with_$ac_useropt" | |
1501 | "*) ;; | |
1502 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1503 | ac_unrecognized_sep=', ';; | |
fdd6fa61 | 1504 | esac |
81ecdfbb | 1505 | eval with_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
1506 | |
1507 | -without-* | --without-*) | |
81ecdfbb | 1508 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 1509 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1510 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1511 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1512 | ac_useropt_orig=$ac_useropt |
1513 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1514 | case $ac_user_opts in | |
1515 | *" | |
1516 | "with_$ac_useropt" | |
1517 | "*) ;; | |
1518 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1519 | ac_unrecognized_sep=', ';; | |
1520 | esac | |
1521 | eval with_$ac_useropt=no ;; | |
c906108c SS |
1522 | |
1523 | --x) | |
1524 | # Obsolete; use --with-x. | |
1525 | with_x=yes ;; | |
1526 | ||
1527 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1528 | | --x-incl | --x-inc | --x-in | --x-i) | |
1529 | ac_prev=x_includes ;; | |
1530 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1531 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b7026657 | 1532 | x_includes=$ac_optarg ;; |
c906108c SS |
1533 | |
1534 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1535 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1536 | ac_prev=x_libraries ;; | |
1537 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1538 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b7026657 | 1539 | x_libraries=$ac_optarg ;; |
c906108c | 1540 | |
d0ac1c44 SM |
1541 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1542 | Try \`$0 --help' for more information" | |
c906108c SS |
1543 | ;; |
1544 | ||
b7026657 AC |
1545 | *=*) |
1546 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1547 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1548 | case $ac_envvar in #( |
1549 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1550 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1551 | esac |
1552 | eval $ac_envvar=\$ac_optarg | |
b7026657 AC |
1553 | export $ac_envvar ;; |
1554 | ||
c906108c | 1555 | *) |
b7026657 | 1556 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1557 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b7026657 | 1558 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1559 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1560 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c906108c SS |
1561 | ;; |
1562 | ||
1563 | esac | |
1564 | done | |
1565 | ||
1566 | if test -n "$ac_prev"; then | |
b7026657 | 1567 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1568 | as_fn_error $? "missing argument to $ac_option" |
c906108c | 1569 | fi |
c906108c | 1570 | |
81ecdfbb RW |
1571 | if test -n "$ac_unrecognized_opts"; then |
1572 | case $enable_option_checking in | |
1573 | no) ;; | |
d0ac1c44 | 1574 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1575 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
fdd6fa61 | 1576 | esac |
81ecdfbb | 1577 | fi |
fdd6fa61 | 1578 | |
81ecdfbb RW |
1579 | # Check all directory arguments for consistency. |
1580 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1581 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1582 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1583 | libdir localedir mandir | |
c906108c | 1584 | do |
81ecdfbb RW |
1585 | eval ac_val=\$$ac_var |
1586 | # Remove trailing slashes. | |
1587 | case $ac_val in | |
1588 | */ ) | |
1589 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1590 | eval $ac_var=\$ac_val;; | |
1591 | esac | |
1592 | # Be sure to have absolute directory names. | |
b7026657 | 1593 | case $ac_val in |
81ecdfbb RW |
1594 | [\\/$]* | ?:[\\/]* ) continue;; |
1595 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
c906108c | 1596 | esac |
d0ac1c44 | 1597 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c906108c SS |
1598 | done |
1599 | ||
b7026657 AC |
1600 | # There might be people who depend on the old broken behavior: `$host' |
1601 | # used to hold the argument of --host etc. | |
1602 | # FIXME: To remove some day. | |
1603 | build=$build_alias | |
1604 | host=$host_alias | |
1605 | target=$target_alias | |
1606 | ||
1607 | # FIXME: To remove some day. | |
1608 | if test "x$host_alias" != x; then | |
1609 | if test "x$build_alias" = x; then | |
1610 | cross_compiling=maybe | |
b7026657 AC |
1611 | elif test "x$build_alias" != "x$host_alias"; then |
1612 | cross_compiling=yes | |
1613 | fi | |
1614 | fi | |
c906108c | 1615 | |
b7026657 AC |
1616 | ac_tool_prefix= |
1617 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1618 | ||
1619 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 1620 | |
c906108c | 1621 | |
81ecdfbb RW |
1622 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1623 | ac_ls_di=`ls -di .` && | |
1624 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1625 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1626 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1627 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1628 | |
1629 | ||
c906108c SS |
1630 | # Find the source files, if location was not specified. |
1631 | if test -z "$srcdir"; then | |
1632 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1633 | # Try the directory containing this script, then the parent directory. |
1634 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1635 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1636 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1637 | X"$as_myself" : 'X\(//\)$' \| \ | |
1638 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1639 | $as_echo X"$as_myself" | | |
1640 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1641 | s//\1/ | |
1642 | q | |
1643 | } | |
1644 | /^X\(\/\/\)[^/].*/{ | |
1645 | s//\1/ | |
1646 | q | |
1647 | } | |
1648 | /^X\(\/\/\)$/{ | |
1649 | s//\1/ | |
1650 | q | |
1651 | } | |
1652 | /^X\(\/\).*/{ | |
1653 | s//\1/ | |
1654 | q | |
1655 | } | |
1656 | s/.*/./; q'` | |
c906108c | 1657 | srcdir=$ac_confdir |
81ecdfbb | 1658 | if test ! -r "$srcdir/$ac_unique_file"; then |
c906108c SS |
1659 | srcdir=.. |
1660 | fi | |
1661 | else | |
1662 | ac_srcdir_defaulted=no | |
1663 | fi | |
81ecdfbb RW |
1664 | if test ! -r "$srcdir/$ac_unique_file"; then |
1665 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1666 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1667 | fi |
1668 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1669 | ac_abs_confdir=`( | |
d0ac1c44 | 1670 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1671 | pwd)` |
1672 | # When building in place, set srcdir=. | |
1673 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1674 | srcdir=. | |
1675 | fi | |
1676 | # Remove unnecessary trailing slashes from srcdir. | |
1677 | # Double slashes in file names in object file debugging info | |
1678 | # mess up M-x gdb in Emacs. | |
1679 | case $srcdir in | |
1680 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1681 | esac | |
1682 | for ac_var in $ac_precious_vars; do | |
1683 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1684 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1685 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1686 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1687 | done | |
df1756f4 TG |
1688 | |
1689 | # | |
b7026657 AC |
1690 | # Report the --help message. |
1691 | # | |
1692 | if test "$ac_init_help" = "long"; then | |
1693 | # Omit some internal or obsolete options to make the list less imposing. | |
1694 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1695 | cat <<_ACEOF | |
6bddc3e8 | 1696 | \`configure' configures sim 0 to adapt to many kinds of systems. |
b7026657 AC |
1697 | |
1698 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1699 | ||
1700 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1701 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1702 | ||
1703 | Defaults for the options are specified in brackets. | |
1704 | ||
1705 | Configuration: | |
1706 | -h, --help display this help and exit | |
1707 | --help=short display options specific to this package | |
1708 | --help=recursive display the short help of all the included packages | |
1709 | -V, --version display version information and exit | |
d0ac1c44 | 1710 | -q, --quiet, --silent do not print \`checking ...' messages |
b7026657 AC |
1711 | --cache-file=FILE cache test results in FILE [disabled] |
1712 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1713 | -n, --no-create do not create output files | |
1714 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1715 | ||
b7026657 AC |
1716 | Installation directories: |
1717 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1718 | [$ac_default_prefix] |
b7026657 | 1719 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1720 | [PREFIX] |
b7026657 AC |
1721 | |
1722 | By default, \`make install' will install all the files in | |
1723 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1724 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1725 | for instance \`--prefix=\$HOME'. | |
1726 | ||
1727 | For better control, use the options below. | |
1728 | ||
1729 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1730 | --bindir=DIR user executables [EPREFIX/bin] |
1731 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1732 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1733 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1734 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1735 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1736 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1737 | --includedir=DIR C header files [PREFIX/include] | |
1738 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1739 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1740 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1741 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1742 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1743 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
6bddc3e8 | 1744 | --docdir=DIR documentation root [DATAROOTDIR/doc/sim] |
81ecdfbb RW |
1745 | --htmldir=DIR html documentation [DOCDIR] |
1746 | --dvidir=DIR dvi documentation [DOCDIR] | |
1747 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1748 | --psdir=DIR ps documentation [DOCDIR] | |
b7026657 AC |
1749 | _ACEOF |
1750 | ||
1751 | cat <<\_ACEOF | |
1752 | ||
1753 | Program names: | |
1754 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1755 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1756 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1757 | ||
1758 | System types: | |
1759 | --build=BUILD configure for building on BUILD [guessed] | |
1760 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1761 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1762 | _ACEOF | |
1763 | fi | |
1764 | ||
1765 | if test -n "$ac_init_help"; then | |
6bddc3e8 MF |
1766 | case $ac_init_help in |
1767 | short | recursive ) echo "Configuration of sim 0:";; | |
1768 | esac | |
b7026657 AC |
1769 | cat <<\_ACEOF |
1770 | ||
1771 | Optional Features: | |
81ecdfbb | 1772 | --disable-option-checking ignore unrecognized --enable/--with options |
b7026657 AC |
1773 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1774 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b5689863 MF |
1775 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1776 | --enable-static[=PKGS] build static libraries [default=yes] | |
1777 | --enable-fast-install[=PKGS] | |
1778 | optimize for fast installation [default=yes] | |
1779 | --disable-libtool-lock avoid locking (might break parallel builds) | |
8c379db2 TT |
1780 | --enable-maintainer-mode |
1781 | enable make rules and dependencies not useful (and | |
1782 | sometimes confusing) to the casual installer | |
6bddc3e8 MF |
1783 | --enable-dependency-tracking |
1784 | do not reject slow dependency extractors | |
1785 | --disable-dependency-tracking | |
1786 | speeds up one-time build | |
c2783492 MF |
1787 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1788 | --disable-silent-rules verbose build output (undo: "make V=0") | |
8d0978fb | 1789 | --enable-sim Enable the GNU simulator |
26da232c | 1790 | --enable-example-sims enable example GNU simulators |
a0e674c1 | 1791 | --enable-targets alternative target configurations |
ba307cdd MF |
1792 | --enable-sim-alignment=align |
1793 | Specify strict, nonstrict or forced alignment of | |
1794 | memory accesses | |
dba333c1 | 1795 | --enable-sim-assert Specify whether to perform random assertions |
1bf5c342 | 1796 | --enable-cgen-maint=DIR build cgen generated files |
04381273 MF |
1797 | --enable-sim-debug=opts Enable debugging flags (for developers of the sim |
1798 | itself) | |
f9a4d543 MF |
1799 | --enable-sim-endian=endian |
1800 | Specify target byte endian orientation | |
5ea45474 MF |
1801 | --enable-sim-environment=environment |
1802 | Specify mixed, user, virtual or operating | |
1803 | environment | |
456ef1c1 | 1804 | --enable-sim-hardware Whether to enable hardware/device simulation |
d73f39ee MF |
1805 | --enable-sim-inline=inlines |
1806 | Specify which functions should be inlined | |
04381273 MF |
1807 | --enable-sim-profile=opts |
1808 | Enable profiling flags | |
7eb1f99a MF |
1809 | --enable-sim-reserved-bits |
1810 | Specify whether to check reserved bits in | |
1811 | instruction | |
b79efe26 MF |
1812 | --enable-sim-scache=size |
1813 | Specify simulator execution cache size | |
20b579ba MF |
1814 | --enable-sim-smp=n Specify number of processors to configure for |
1815 | (default 1) | |
04381273 MF |
1816 | --enable-sim-stdio Specify whether to use stdio for console |
1817 | input/output | |
1818 | --enable-sim-trace=opts Enable tracing of simulated programs | |
47ce766a MF |
1819 | --enable-werror treat compile warnings as errors |
1820 | --enable-build-warnings enable build-time compiler warnings if gcc is used | |
1821 | --enable-sim-build-warnings | |
1822 | enable SIM specific build-time compiler warnings if | |
1823 | gcc is used | |
408a44aa MF |
1824 | --enable-sim-frv-trapdump |
1825 | Make unknown traps dump the registers | |
5f7e03a6 MF |
1826 | --enable-sim-ppc-bitsize=n |
1827 | Specify target bitsize (32 or 64). | |
1828 | --enable-sim-ppc-decode-mechanism=which | |
1829 | Specify the instruction decode mechanism. | |
1830 | --enable-sim-ppc-default-model=which | |
1831 | Specify default PowerPC to model. | |
1832 | --enable-sim-ppc-duplicate | |
1833 | Expand (duplicate) semantic functions. | |
1834 | --enable-sim-ppc-filter=rule | |
1835 | Specify filter rules. | |
1836 | --enable-sim-ppc-float Specify whether the target has hard, soft, altivec | |
1837 | or e500 floating point. | |
1838 | --enable-sim-ppc-hardware=list | |
1839 | Specify the hardware to be included in the build. | |
1840 | --enable-sim-ppc-icache=size | |
1841 | Specify instruction-decode cache size and type. | |
1842 | --enable-sim-ppc-jump Jump between semantic code (instead of call/return). | |
1843 | --enable-sim-ppc-line-nr=opts | |
1844 | Generate extra CPP code that references source | |
1845 | rather than generated code | |
1846 | --enable-sim-ppc-model=which | |
1847 | Specify PowerPC to model. | |
1848 | --enable-sim-ppc-model-issue | |
1849 | Specify whether to simulate model specific actions | |
1850 | --enable-sim-ppc-monitor=mon | |
1851 | Specify whether to enable monitoring events. | |
1852 | --enable-sim-ppc-opcode=which | |
1853 | Override default opcode lookup. | |
1854 | --enable-sim-ppc-smp=n Specify number of processors to configure for. | |
1855 | --enable-sim-ppc-switch Use a switch instead of a table for instruction | |
1856 | call. | |
1857 | --enable-sim-ppc-timebase | |
1858 | Specify whether the PPC timebase is supported. | |
1859 | --enable-sim-ppc-xor-endian=n | |
1860 | Specify number bytes involved in PowerPC XOR | |
1861 | bi-endian mode (default 8). | |
e173c80f MF |
1862 | --disable-sim-rx-cycle-accurate |
1863 | Disable cycle accurate simulation (faster runtime) | |
b7026657 | 1864 | |
6dd65fc0 MF |
1865 | Optional Packages: |
1866 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1867 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1868 | --with-pkgversion=PKG Use PKG in the version string in place of "SIM" | |
1869 | --with-bugurl=URL Direct users to URL to report a bug | |
b5689863 MF |
1870 | --with-pic try to use only PIC/non-PIC objects [default=use |
1871 | both] | |
1872 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
6dd65fc0 | 1873 | |
b7026657 AC |
1874 | Some influential environment variables: |
1875 | CC C compiler command | |
1876 | CFLAGS C compiler flags | |
1877 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1878 | nonstandard directory <lib dir> | |
81ecdfbb | 1879 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1880 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1881 | you have headers in a nonstandard directory <include dir> |
5e25901f | 1882 | CPP C preprocessor |
d57b6533 MF |
1883 | PKG_CONFIG path to pkg-config utility |
1884 | PKG_CONFIG_PATH | |
1885 | directories to add to pkg-config's search path | |
1886 | PKG_CONFIG_LIBDIR | |
1887 | path overriding pkg-config's built-in search path | |
1888 | SDL_CFLAGS C compiler flags for SDL, overriding pkg-config | |
1889 | SDL_LIBS linker flags for SDL, overriding pkg-config | |
8996c210 MF |
1890 | AS_FOR_TARGET_AARCH64 |
1891 | Assembler for aarch64 tests | |
1892 | LD_FOR_TARGET_AARCH64 | |
1893 | Linker for aarch64 tests | |
1894 | CC_FOR_TARGET_AARCH64 | |
1895 | C compiler for aarch64 tests | |
8996c210 MF |
1896 | AS_FOR_TARGET_AVR |
1897 | Assembler for avr tests | |
1898 | LD_FOR_TARGET_AVR | |
1899 | Linker for avr tests | |
1900 | CC_FOR_TARGET_AVR | |
1901 | C compiler for avr tests | |
1902 | AS_FOR_TARGET_BFIN | |
1903 | Assembler for bfin tests | |
1904 | LD_FOR_TARGET_BFIN | |
1905 | Linker for bfin tests | |
1906 | CC_FOR_TARGET_BFIN | |
1907 | C compiler for bfin tests | |
1908 | AS_FOR_TARGET_BPF | |
1909 | Assembler for bpf tests | |
1910 | LD_FOR_TARGET_BPF | |
1911 | Linker for bpf tests | |
1912 | CC_FOR_TARGET_BPF | |
1913 | C compiler for bpf tests | |
1914 | AS_FOR_TARGET_CR16 | |
1915 | Assembler for cr16 tests | |
1916 | LD_FOR_TARGET_CR16 | |
1917 | Linker for cr16 tests | |
1918 | CC_FOR_TARGET_CR16 | |
1919 | C compiler for cr16 tests | |
1920 | AS_FOR_TARGET_CRIS | |
1921 | Assembler for cris tests | |
1922 | LD_FOR_TARGET_CRIS | |
1923 | Linker for cris tests | |
1924 | CC_FOR_TARGET_CRIS | |
1925 | C compiler for cris tests | |
1926 | AS_FOR_TARGET_D10V | |
1927 | Assembler for d10v tests | |
1928 | LD_FOR_TARGET_D10V | |
1929 | Linker for d10v tests | |
1930 | CC_FOR_TARGET_D10V | |
1931 | C compiler for d10v tests | |
1932 | AS_FOR_TARGET_FRV | |
1933 | Assembler for frv tests | |
1934 | LD_FOR_TARGET_FRV | |
1935 | Linker for frv tests | |
1936 | CC_FOR_TARGET_FRV | |
1937 | C compiler for frv tests | |
1938 | AS_FOR_TARGET_FT32 | |
1939 | Assembler for ft32 tests | |
1940 | LD_FOR_TARGET_FT32 | |
1941 | Linker for ft32 tests | |
1942 | CC_FOR_TARGET_FT32 | |
1943 | C compiler for ft32 tests | |
1944 | AS_FOR_TARGET_H8300 | |
1945 | Assembler for h8300 tests | |
1946 | LD_FOR_TARGET_H8300 | |
1947 | Linker for h8300 tests | |
1948 | CC_FOR_TARGET_H8300 | |
1949 | C compiler for h8300 tests | |
1950 | AS_FOR_TARGET_IQ2000 | |
1951 | Assembler for iq2000 tests | |
1952 | LD_FOR_TARGET_IQ2000 | |
1953 | Linker for iq2000 tests | |
1954 | CC_FOR_TARGET_IQ2000 | |
1955 | C compiler for iq2000 tests | |
1956 | AS_FOR_TARGET_LM32 | |
1957 | Assembler for lm32 tests | |
1958 | LD_FOR_TARGET_LM32 | |
1959 | Linker for lm32 tests | |
1960 | CC_FOR_TARGET_LM32 | |
1961 | C compiler for lm32 tests | |
1962 | AS_FOR_TARGET_M32C | |
1963 | Assembler for m32c tests | |
1964 | LD_FOR_TARGET_M32C | |
1965 | Linker for m32c tests | |
1966 | CC_FOR_TARGET_M32C | |
1967 | C compiler for m32c tests | |
1968 | AS_FOR_TARGET_M32R | |
1969 | Assembler for m32r tests | |
1970 | LD_FOR_TARGET_M32R | |
1971 | Linker for m32r tests | |
1972 | CC_FOR_TARGET_M32R | |
1973 | C compiler for m32r tests | |
1974 | AS_FOR_TARGET_M68HC11 | |
1975 | Assembler for m68hc11 tests | |
1976 | LD_FOR_TARGET_M68HC11 | |
1977 | Linker for m68hc11 tests | |
1978 | CC_FOR_TARGET_M68HC11 | |
1979 | C compiler for m68hc11 tests | |
1980 | AS_FOR_TARGET_MCORE | |
1981 | Assembler for mcore tests | |
1982 | LD_FOR_TARGET_MCORE | |
1983 | Linker for mcore tests | |
1984 | CC_FOR_TARGET_MCORE | |
1985 | C compiler for mcore tests | |
1986 | AS_FOR_TARGET_MICROBLAZE | |
1987 | Assembler for microblaze tests | |
1988 | LD_FOR_TARGET_MICROBLAZE | |
1989 | Linker for microblaze tests | |
1990 | CC_FOR_TARGET_MICROBLAZE | |
1991 | C compiler for microblaze tests | |
1992 | AS_FOR_TARGET_MIPS | |
1993 | Assembler for mips tests | |
1994 | LD_FOR_TARGET_MIPS | |
1995 | Linker for mips tests | |
1996 | CC_FOR_TARGET_MIPS | |
1997 | C compiler for mips tests | |
1998 | AS_FOR_TARGET_MN10300 | |
1999 | Assembler for mn10300 tests | |
2000 | LD_FOR_TARGET_MN10300 | |
2001 | Linker for mn10300 tests | |
2002 | CC_FOR_TARGET_MN10300 | |
2003 | C compiler for mn10300 tests | |
2004 | AS_FOR_TARGET_MOXIE | |
2005 | Assembler for moxie tests | |
2006 | LD_FOR_TARGET_MOXIE | |
2007 | Linker for moxie tests | |
2008 | CC_FOR_TARGET_MOXIE | |
2009 | C compiler for moxie tests | |
2010 | AS_FOR_TARGET_MSP430 | |
2011 | Assembler for msp430 tests | |
2012 | LD_FOR_TARGET_MSP430 | |
2013 | Linker for msp430 tests | |
2014 | CC_FOR_TARGET_MSP430 | |
2015 | C compiler for msp430 tests | |
2016 | AS_FOR_TARGET_OR1K | |
2017 | Assembler for or1k tests | |
2018 | LD_FOR_TARGET_OR1K | |
2019 | Linker for or1k tests | |
2020 | CC_FOR_TARGET_OR1K | |
2021 | C compiler for or1k tests | |
2022 | AS_FOR_TARGET_PPC | |
2023 | Assembler for ppc tests | |
2024 | LD_FOR_TARGET_PPC | |
2025 | Linker for ppc tests | |
2026 | CC_FOR_TARGET_PPC | |
2027 | C compiler for ppc tests | |
2028 | AS_FOR_TARGET_PRU | |
2029 | Assembler for pru tests | |
2030 | LD_FOR_TARGET_PRU | |
2031 | Linker for pru tests | |
2032 | CC_FOR_TARGET_PRU | |
2033 | C compiler for pru tests | |
2034 | AS_FOR_TARGET_RISCV | |
2035 | Assembler for riscv tests | |
2036 | LD_FOR_TARGET_RISCV | |
2037 | Linker for riscv tests | |
2038 | CC_FOR_TARGET_RISCV | |
2039 | C compiler for riscv tests | |
2040 | AS_FOR_TARGET_RL78 | |
2041 | Assembler for rl78 tests | |
2042 | LD_FOR_TARGET_RL78 | |
2043 | Linker for rl78 tests | |
2044 | CC_FOR_TARGET_RL78 | |
2045 | C compiler for rl78 tests | |
2046 | AS_FOR_TARGET_RX | |
2047 | Assembler for rx tests | |
2048 | LD_FOR_TARGET_RX | |
2049 | Linker for rx tests | |
2050 | CC_FOR_TARGET_RX | |
2051 | C compiler for rx tests | |
2052 | AS_FOR_TARGET_SH | |
2053 | Assembler for sh tests | |
2054 | LD_FOR_TARGET_SH | |
2055 | Linker for sh tests | |
2056 | CC_FOR_TARGET_SH | |
2057 | C compiler for sh tests | |
2058 | AS_FOR_TARGET_ERC32 | |
2059 | Assembler for erc32 tests | |
2060 | LD_FOR_TARGET_ERC32 | |
2061 | Linker for erc32 tests | |
2062 | CC_FOR_TARGET_ERC32 | |
2063 | C compiler for erc32 tests | |
2064 | AS_FOR_TARGET_V850 | |
2065 | Assembler for v850 tests | |
2066 | LD_FOR_TARGET_V850 | |
2067 | Linker for v850 tests | |
2068 | CC_FOR_TARGET_V850 | |
2069 | C compiler for v850 tests | |
2070 | AS_FOR_TARGET_EXAMPLE_SYNACOR | |
2071 | Assembler for example-synacor tests | |
2072 | LD_FOR_TARGET_EXAMPLE_SYNACOR | |
2073 | Linker for example-synacor tests | |
2074 | CC_FOR_TARGET_EXAMPLE_SYNACOR | |
2075 | C compiler for example-synacor tests | |
b7026657 AC |
2076 | |
2077 | Use these variables to override the choices made by `configure' or to help | |
2078 | it to find libraries and programs with nonstandard names/locations. | |
2079 | ||
6bddc3e8 MF |
2080 | Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. |
2081 | sim home page: <https://sourceware.org/gdb/wiki/Sim/>. | |
b7026657 | 2082 | _ACEOF |
81ecdfbb | 2083 | ac_status=$? |
b7026657 AC |
2084 | fi |
2085 | ||
2086 | if test "$ac_init_help" = "recursive"; then | |
2087 | # If there are subdirs, report their specific --help. | |
b7026657 | 2088 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
2089 | test -d "$ac_dir" || |
2090 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
2091 | continue | |
b7026657 AC |
2092 | ac_builddir=. |
2093 | ||
81ecdfbb RW |
2094 | case "$ac_dir" in |
2095 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
2096 | *) | |
2097 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
2098 | # A ".." for each directory in $ac_dir_suffix. | |
2099 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
2100 | case $ac_top_builddir_sub in | |
2101 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
2102 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
2103 | esac ;; | |
2104 | esac | |
2105 | ac_abs_top_builddir=$ac_pwd | |
2106 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
2107 | # for backward compatibility: | |
2108 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
2109 | |
2110 | case $srcdir in | |
81ecdfbb | 2111 | .) # We are building in place. |
b7026657 | 2112 | ac_srcdir=. |
81ecdfbb RW |
2113 | ac_top_srcdir=$ac_top_builddir_sub |
2114 | ac_abs_top_srcdir=$ac_pwd ;; | |
2115 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 2116 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
2117 | ac_top_srcdir=$srcdir |
2118 | ac_abs_top_srcdir=$srcdir ;; | |
2119 | *) # Relative name. | |
2120 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
2121 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
2122 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fdd6fa61 | 2123 | esac |
81ecdfbb | 2124 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
fdd6fa61 | 2125 | |
81ecdfbb RW |
2126 | cd "$ac_dir" || { ac_status=$?; continue; } |
2127 | # Check for guested configure. | |
2128 | if test -f "$ac_srcdir/configure.gnu"; then | |
2129 | echo && | |
2130 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
2131 | elif test -f "$ac_srcdir/configure"; then | |
2132 | echo && | |
2133 | $SHELL "$ac_srcdir/configure" --help=recursive | |
0fda6bd2 | 2134 | else |
81ecdfbb RW |
2135 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
2136 | fi || ac_status=$? | |
2137 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b7026657 AC |
2138 | done |
2139 | fi | |
2140 | ||
81ecdfbb | 2141 | test -n "$ac_init_help" && exit $ac_status |
b7026657 AC |
2142 | if $ac_init_version; then |
2143 | cat <<\_ACEOF | |
6bddc3e8 | 2144 | sim configure 0 |
d0ac1c44 | 2145 | generated by GNU Autoconf 2.69 |
b7026657 | 2146 | |
d0ac1c44 | 2147 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
2148 | This configure script is free software; the Free Software Foundation |
2149 | gives unlimited permission to copy, distribute and modify it. | |
2150 | _ACEOF | |
81ecdfbb | 2151 | exit |
b7026657 | 2152 | fi |
81ecdfbb RW |
2153 | |
2154 | ## ------------------------ ## | |
2155 | ## Autoconf initialization. ## | |
2156 | ## ------------------------ ## | |
2157 | ||
2158 | # ac_fn_c_try_compile LINENO | |
2159 | # -------------------------- | |
2160 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2161 | ac_fn_c_try_compile () | |
2162 | { | |
2163 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2164 | rm -f conftest.$ac_objext | |
2165 | if { { ac_try="$ac_compile" | |
2166 | case "(($ac_try" in | |
2167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2168 | *) ac_try_echo=$ac_try;; | |
2169 | esac | |
2170 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2171 | $as_echo "$ac_try_echo"; } >&5 | |
2172 | (eval "$ac_compile") 2>conftest.err | |
2173 | ac_status=$? | |
2174 | if test -s conftest.err; then | |
2175 | grep -v '^ *+' conftest.err >conftest.er1 | |
2176 | cat conftest.er1 >&5 | |
2177 | mv -f conftest.er1 conftest.err | |
2178 | fi | |
2179 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2180 | test $ac_status = 0; } && { | |
2181 | test -z "$ac_c_werror_flag" || | |
2182 | test ! -s conftest.err | |
2183 | } && test -s conftest.$ac_objext; then : | |
2184 | ac_retval=0 | |
2185 | else | |
2186 | $as_echo "$as_me: failed program was:" >&5 | |
2187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2188 | ||
2189 | ac_retval=1 | |
2190 | fi | |
d0ac1c44 SM |
2191 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2192 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
2193 | |
2194 | } # ac_fn_c_try_compile | |
5e25901f MF |
2195 | |
2196 | # ac_fn_c_try_cpp LINENO | |
2197 | # ---------------------- | |
2198 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
2199 | ac_fn_c_try_cpp () | |
2200 | { | |
2201 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2202 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2203 | case "(($ac_try" in | |
2204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2205 | *) ac_try_echo=$ac_try;; | |
2206 | esac | |
2207 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2208 | $as_echo "$ac_try_echo"; } >&5 | |
2209 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2210 | ac_status=$? | |
2211 | if test -s conftest.err; then | |
2212 | grep -v '^ *+' conftest.err >conftest.er1 | |
2213 | cat conftest.er1 >&5 | |
2214 | mv -f conftest.er1 conftest.err | |
2215 | fi | |
2216 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2217 | test $ac_status = 0; } > conftest.i && { | |
2218 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
2219 | test ! -s conftest.err | |
2220 | }; then : | |
2221 | ac_retval=0 | |
2222 | else | |
2223 | $as_echo "$as_me: failed program was:" >&5 | |
2224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2225 | ||
2226 | ac_retval=1 | |
2227 | fi | |
2228 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2229 | as_fn_set_status $ac_retval | |
2230 | ||
2231 | } # ac_fn_c_try_cpp | |
c2783492 | 2232 | |
c2783492 MF |
2233 | # ac_fn_c_try_run LINENO |
2234 | # ---------------------- | |
2235 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
2236 | # that executables *can* be run. | |
2237 | ac_fn_c_try_run () | |
2238 | { | |
2239 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2240 | if { { ac_try="$ac_link" | |
2241 | case "(($ac_try" in | |
2242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2243 | *) ac_try_echo=$ac_try;; | |
2244 | esac | |
2245 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2246 | $as_echo "$ac_try_echo"; } >&5 | |
2247 | (eval "$ac_link") 2>&5 | |
2248 | ac_status=$? | |
2249 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2250 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
2251 | { { case "(($ac_try" in | |
2252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2253 | *) ac_try_echo=$ac_try;; | |
2254 | esac | |
2255 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2256 | $as_echo "$ac_try_echo"; } >&5 | |
2257 | (eval "$ac_try") 2>&5 | |
2258 | ac_status=$? | |
2259 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2260 | test $ac_status = 0; }; }; then : | |
2261 | ac_retval=0 | |
2262 | else | |
2263 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
2264 | $as_echo "$as_me: failed program was:" >&5 | |
2265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2266 | ||
2267 | ac_retval=$ac_status | |
2268 | fi | |
2269 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2270 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2271 | as_fn_set_status $ac_retval | |
2272 | ||
2273 | } # ac_fn_c_try_run | |
2274 | ||
2275 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
2276 | # ------------------------------------------------------- | |
2277 | # Tests whether HEADER exists and can be compiled using the include files in | |
2278 | # INCLUDES, setting the cache variable VAR accordingly. | |
2279 | ac_fn_c_check_header_compile () | |
2280 | { | |
2281 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2283 | $as_echo_n "checking for $2... " >&6; } | |
2284 | if eval \${$3+:} false; then : | |
2285 | $as_echo_n "(cached) " >&6 | |
2286 | else | |
2287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2288 | /* end confdefs.h. */ | |
2289 | $4 | |
2290 | #include <$2> | |
2291 | _ACEOF | |
2292 | if ac_fn_c_try_compile "$LINENO"; then : | |
2293 | eval "$3=yes" | |
2294 | else | |
2295 | eval "$3=no" | |
2296 | fi | |
2297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2298 | fi | |
2299 | eval ac_res=\$$3 | |
2300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2301 | $as_echo "$ac_res" >&6; } | |
2302 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2303 | ||
2304 | } # ac_fn_c_check_header_compile | |
b15c5d7a MF |
2305 | |
2306 | # ac_fn_c_try_link LINENO | |
2307 | # ----------------------- | |
2308 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2309 | ac_fn_c_try_link () | |
2310 | { | |
2311 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2312 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2313 | if { { ac_try="$ac_link" | |
2314 | case "(($ac_try" in | |
2315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2316 | *) ac_try_echo=$ac_try;; | |
2317 | esac | |
2318 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2319 | $as_echo "$ac_try_echo"; } >&5 | |
2320 | (eval "$ac_link") 2>conftest.err | |
2321 | ac_status=$? | |
2322 | if test -s conftest.err; then | |
2323 | grep -v '^ *+' conftest.err >conftest.er1 | |
2324 | cat conftest.er1 >&5 | |
2325 | mv -f conftest.er1 conftest.err | |
2326 | fi | |
2327 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2328 | test $ac_status = 0; } && { | |
2329 | test -z "$ac_c_werror_flag" || | |
2330 | test ! -s conftest.err | |
2331 | } && test -s conftest$ac_exeext && { | |
2332 | test "$cross_compiling" = yes || | |
2333 | test -x conftest$ac_exeext | |
2334 | }; then : | |
2335 | ac_retval=0 | |
2336 | else | |
2337 | $as_echo "$as_me: failed program was:" >&5 | |
2338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2339 | ||
2340 | ac_retval=1 | |
2341 | fi | |
2342 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2343 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2344 | # interfere with the next link command; also delete a directory that is | |
2345 | # left behind by Apple's compiler. We do this before executing the actions. | |
2346 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2347 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2348 | as_fn_set_status $ac_retval | |
2349 | ||
2350 | } # ac_fn_c_try_link | |
2351 | ||
2352 | # ac_fn_c_check_func LINENO FUNC VAR | |
2353 | # ---------------------------------- | |
2354 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2355 | ac_fn_c_check_func () | |
2356 | { | |
2357 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2359 | $as_echo_n "checking for $2... " >&6; } | |
2360 | if eval \${$3+:} false; then : | |
2361 | $as_echo_n "(cached) " >&6 | |
2362 | else | |
2363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2364 | /* end confdefs.h. */ | |
2365 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2366 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2367 | #define $2 innocuous_$2 | |
2368 | ||
2369 | /* System header to define __stub macros and hopefully few prototypes, | |
2370 | which can conflict with char $2 (); below. | |
2371 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2372 | <limits.h> exists even on freestanding compilers. */ | |
2373 | ||
2374 | #ifdef __STDC__ | |
2375 | # include <limits.h> | |
2376 | #else | |
2377 | # include <assert.h> | |
2378 | #endif | |
2379 | ||
2380 | #undef $2 | |
2381 | ||
2382 | /* Override any GCC internal prototype to avoid an error. | |
2383 | Use char because int might match the return type of a GCC | |
2384 | builtin and then its argument prototype would still apply. */ | |
2385 | #ifdef __cplusplus | |
2386 | extern "C" | |
2387 | #endif | |
2388 | char $2 (); | |
2389 | /* The GNU C library defines this for functions which it implements | |
2390 | to always fail with ENOSYS. Some functions are actually named | |
2391 | something starting with __ and the normal name is an alias. */ | |
2392 | #if defined __stub_$2 || defined __stub___$2 | |
2393 | choke me | |
2394 | #endif | |
2395 | ||
2396 | int | |
2397 | main () | |
2398 | { | |
2399 | return $2 (); | |
2400 | ; | |
2401 | return 0; | |
2402 | } | |
2403 | _ACEOF | |
2404 | if ac_fn_c_try_link "$LINENO"; then : | |
2405 | eval "$3=yes" | |
2406 | else | |
2407 | eval "$3=no" | |
2408 | fi | |
2409 | rm -f core conftest.err conftest.$ac_objext \ | |
2410 | conftest$ac_exeext conftest.$ac_ext | |
2411 | fi | |
2412 | eval ac_res=\$$3 | |
2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2414 | $as_echo "$ac_res" >&6; } | |
2415 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2416 | ||
2417 | } # ac_fn_c_check_func | |
2418 | ||
2419 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
2420 | # ---------------------------------------------------- | |
2421 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2422 | # INCLUDES, setting cache variable VAR accordingly. | |
2423 | ac_fn_c_check_member () | |
2424 | { | |
2425 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2427 | $as_echo_n "checking for $2.$3... " >&6; } | |
2428 | if eval \${$4+:} false; then : | |
2429 | $as_echo_n "(cached) " >&6 | |
2430 | else | |
2431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2432 | /* end confdefs.h. */ | |
2433 | $5 | |
2434 | int | |
2435 | main () | |
2436 | { | |
2437 | static $2 ac_aggr; | |
2438 | if (ac_aggr.$3) | |
2439 | return 0; | |
2440 | ; | |
2441 | return 0; | |
2442 | } | |
2443 | _ACEOF | |
2444 | if ac_fn_c_try_compile "$LINENO"; then : | |
2445 | eval "$4=yes" | |
2446 | else | |
2447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2448 | /* end confdefs.h. */ | |
2449 | $5 | |
2450 | int | |
2451 | main () | |
2452 | { | |
2453 | static $2 ac_aggr; | |
2454 | if (sizeof ac_aggr.$3) | |
2455 | return 0; | |
2456 | ; | |
2457 | return 0; | |
2458 | } | |
2459 | _ACEOF | |
2460 | if ac_fn_c_try_compile "$LINENO"; then : | |
2461 | eval "$4=yes" | |
2462 | else | |
2463 | eval "$4=no" | |
2464 | fi | |
2465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2466 | fi | |
2467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2468 | fi | |
2469 | eval ac_res=\$$4 | |
2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2471 | $as_echo "$ac_res" >&6; } | |
2472 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2473 | ||
2474 | } # ac_fn_c_check_member | |
2475 | ||
a48ff3ef MF |
2476 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2477 | # --------------------------------------------- | |
2478 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2479 | # accordingly. | |
2480 | ac_fn_c_check_decl () | |
2481 | { | |
2482 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2483 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2484 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2486 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2487 | if eval \${$3+:} false; then : | |
2488 | $as_echo_n "(cached) " >&6 | |
2489 | else | |
2490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2491 | /* end confdefs.h. */ | |
2492 | $4 | |
2493 | int | |
2494 | main () | |
2495 | { | |
2496 | #ifndef $as_decl_name | |
2497 | #ifdef __cplusplus | |
2498 | (void) $as_decl_use; | |
2499 | #else | |
2500 | (void) $as_decl_name; | |
2501 | #endif | |
2502 | #endif | |
2503 | ||
2504 | ; | |
2505 | return 0; | |
2506 | } | |
2507 | _ACEOF | |
2508 | if ac_fn_c_try_compile "$LINENO"; then : | |
2509 | eval "$3=yes" | |
2510 | else | |
2511 | eval "$3=no" | |
2512 | fi | |
2513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2514 | fi | |
2515 | eval ac_res=\$$3 | |
2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2517 | $as_echo "$ac_res" >&6; } | |
2518 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2519 | ||
2520 | } # ac_fn_c_check_decl | |
2521 | ||
b15c5d7a MF |
2522 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2523 | # ------------------------------------------- | |
2524 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2525 | # variable VAR accordingly. | |
2526 | ac_fn_c_check_type () | |
2527 | { | |
2528 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2530 | $as_echo_n "checking for $2... " >&6; } | |
2531 | if eval \${$3+:} false; then : | |
2532 | $as_echo_n "(cached) " >&6 | |
2533 | else | |
2534 | eval "$3=no" | |
2535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2536 | /* end confdefs.h. */ | |
2537 | $4 | |
2538 | int | |
2539 | main () | |
2540 | { | |
2541 | if (sizeof ($2)) | |
2542 | return 0; | |
2543 | ; | |
2544 | return 0; | |
2545 | } | |
2546 | _ACEOF | |
2547 | if ac_fn_c_try_compile "$LINENO"; then : | |
2548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2549 | /* end confdefs.h. */ | |
2550 | $4 | |
2551 | int | |
2552 | main () | |
2553 | { | |
2554 | if (sizeof (($2))) | |
2555 | return 0; | |
2556 | ; | |
2557 | return 0; | |
2558 | } | |
2559 | _ACEOF | |
2560 | if ac_fn_c_try_compile "$LINENO"; then : | |
2561 | ||
2562 | else | |
2563 | eval "$3=yes" | |
2564 | fi | |
2565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2566 | fi | |
2567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2568 | fi | |
2569 | eval ac_res=\$$3 | |
2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2571 | $as_echo "$ac_res" >&6; } | |
2572 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2573 | ||
2574 | } # ac_fn_c_check_type | |
72d711c1 MF |
2575 | |
2576 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2577 | # -------------------------------------------- | |
2578 | # Tries to find the compile-time value of EXPR in a program that includes | |
2579 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2580 | # computed | |
2581 | ac_fn_c_compute_int () | |
2582 | { | |
2583 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2584 | if test "$cross_compiling" = yes; then | |
2585 | # Depending upon the size, compute the lo and hi bounds. | |
2586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2587 | /* end confdefs.h. */ | |
2588 | $4 | |
2589 | int | |
2590 | main () | |
2591 | { | |
2592 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2593 | test_array [0] = 0; | |
2594 | return test_array [0]; | |
2595 | ||
2596 | ; | |
2597 | return 0; | |
2598 | } | |
2599 | _ACEOF | |
2600 | if ac_fn_c_try_compile "$LINENO"; then : | |
2601 | ac_lo=0 ac_mid=0 | |
2602 | while :; do | |
2603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2604 | /* end confdefs.h. */ | |
2605 | $4 | |
2606 | int | |
2607 | main () | |
2608 | { | |
2609 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2610 | test_array [0] = 0; | |
2611 | return test_array [0]; | |
2612 | ||
2613 | ; | |
2614 | return 0; | |
2615 | } | |
2616 | _ACEOF | |
2617 | if ac_fn_c_try_compile "$LINENO"; then : | |
2618 | ac_hi=$ac_mid; break | |
2619 | else | |
2620 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2621 | if test $ac_lo -le $ac_mid; then | |
2622 | ac_lo= ac_hi= | |
2623 | break | |
2624 | fi | |
2625 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2626 | fi | |
2627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2628 | done | |
2629 | else | |
2630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2631 | /* end confdefs.h. */ | |
2632 | $4 | |
2633 | int | |
2634 | main () | |
2635 | { | |
2636 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2637 | test_array [0] = 0; | |
2638 | return test_array [0]; | |
2639 | ||
2640 | ; | |
2641 | return 0; | |
2642 | } | |
2643 | _ACEOF | |
2644 | if ac_fn_c_try_compile "$LINENO"; then : | |
2645 | ac_hi=-1 ac_mid=-1 | |
2646 | while :; do | |
2647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2648 | /* end confdefs.h. */ | |
2649 | $4 | |
2650 | int | |
2651 | main () | |
2652 | { | |
2653 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2654 | test_array [0] = 0; | |
2655 | return test_array [0]; | |
2656 | ||
2657 | ; | |
2658 | return 0; | |
2659 | } | |
2660 | _ACEOF | |
2661 | if ac_fn_c_try_compile "$LINENO"; then : | |
2662 | ac_lo=$ac_mid; break | |
2663 | else | |
2664 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2665 | if test $ac_mid -le $ac_hi; then | |
2666 | ac_lo= ac_hi= | |
2667 | break | |
2668 | fi | |
2669 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2670 | fi | |
2671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2672 | done | |
2673 | else | |
2674 | ac_lo= ac_hi= | |
2675 | fi | |
2676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2677 | fi | |
2678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2679 | # Binary search between lo and hi bounds. | |
2680 | while test "x$ac_lo" != "x$ac_hi"; do | |
2681 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2683 | /* end confdefs.h. */ | |
2684 | $4 | |
2685 | int | |
2686 | main () | |
2687 | { | |
2688 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2689 | test_array [0] = 0; | |
2690 | return test_array [0]; | |
2691 | ||
2692 | ; | |
2693 | return 0; | |
2694 | } | |
2695 | _ACEOF | |
2696 | if ac_fn_c_try_compile "$LINENO"; then : | |
2697 | ac_hi=$ac_mid | |
2698 | else | |
2699 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2700 | fi | |
2701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2702 | done | |
2703 | case $ac_lo in #(( | |
2704 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2705 | '') ac_retval=1 ;; | |
2706 | esac | |
2707 | else | |
2708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2709 | /* end confdefs.h. */ | |
2710 | $4 | |
2711 | static long int longval () { return $2; } | |
2712 | static unsigned long int ulongval () { return $2; } | |
2713 | #include <stdio.h> | |
2714 | #include <stdlib.h> | |
2715 | int | |
2716 | main () | |
2717 | { | |
2718 | ||
2719 | FILE *f = fopen ("conftest.val", "w"); | |
2720 | if (! f) | |
2721 | return 1; | |
2722 | if (($2) < 0) | |
2723 | { | |
2724 | long int i = longval (); | |
2725 | if (i != ($2)) | |
2726 | return 1; | |
2727 | fprintf (f, "%ld", i); | |
2728 | } | |
2729 | else | |
2730 | { | |
2731 | unsigned long int i = ulongval (); | |
2732 | if (i != ($2)) | |
2733 | return 1; | |
2734 | fprintf (f, "%lu", i); | |
2735 | } | |
2736 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2737 | on some platforms. */ | |
2738 | return ferror (f) || fclose (f) != 0; | |
2739 | ||
2740 | ; | |
2741 | return 0; | |
2742 | } | |
2743 | _ACEOF | |
2744 | if ac_fn_c_try_run "$LINENO"; then : | |
2745 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2746 | else | |
2747 | ac_retval=1 | |
2748 | fi | |
2749 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2750 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2751 | rm -f conftest.val | |
2752 | ||
2753 | fi | |
2754 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2755 | as_fn_set_status $ac_retval | |
2756 | ||
2757 | } # ac_fn_c_compute_int | |
81ecdfbb | 2758 | cat >config.log <<_ACEOF |
b7026657 AC |
2759 | This file contains any messages produced by compilers while |
2760 | running configure, to aid debugging if configure makes a mistake. | |
2761 | ||
6bddc3e8 | 2762 | It was created by sim $as_me 0, which was |
d0ac1c44 | 2763 | generated by GNU Autoconf 2.69. Invocation command line was |
b7026657 AC |
2764 | |
2765 | $ $0 $@ | |
2766 | ||
2767 | _ACEOF | |
81ecdfbb | 2768 | exec 5>>config.log |
b7026657 AC |
2769 | { |
2770 | cat <<_ASUNAME | |
2771 | ## --------- ## | |
2772 | ## Platform. ## | |
2773 | ## --------- ## | |
2774 | ||
2775 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2776 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2777 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2778 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2779 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2780 | ||
2781 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2782 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2783 | ||
2784 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2785 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2786 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 2787 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b7026657 AC |
2788 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2789 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2790 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2791 | ||
2792 | _ASUNAME | |
2793 | ||
2794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2795 | for as_dir in $PATH | |
2796 | do | |
2797 | IFS=$as_save_IFS | |
2798 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2799 | $as_echo "PATH: $as_dir" |
2800 | done | |
2801 | IFS=$as_save_IFS | |
b7026657 AC |
2802 | |
2803 | } >&5 | |
2804 | ||
2805 | cat >&5 <<_ACEOF | |
2806 | ||
2807 | ||
2808 | ## ----------- ## | |
2809 | ## Core tests. ## | |
2810 | ## ----------- ## | |
2811 | ||
2812 | _ACEOF | |
2813 | ||
2814 | ||
2815 | # Keep a trace of the command line. | |
2816 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2817 | # Strip out --silent because we don't want to record it for future runs. | |
2818 | # Also quote any args containing shell meta-characters. | |
2819 | # Make two passes to allow for proper duplicate-argument suppression. | |
2820 | ac_configure_args= | |
2821 | ac_configure_args0= | |
2822 | ac_configure_args1= | |
b7026657 AC |
2823 | ac_must_keep_next=false |
2824 | for ac_pass in 1 2 | |
2825 | do | |
2826 | for ac_arg | |
2827 | do | |
2828 | case $ac_arg in | |
2829 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2830 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2831 | | -silent | --silent | --silen | --sile | --sil) | |
2832 | continue ;; | |
81ecdfbb RW |
2833 | *\'*) |
2834 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b7026657 AC |
2835 | esac |
2836 | case $ac_pass in | |
81ecdfbb | 2837 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b7026657 | 2838 | 2) |
81ecdfbb | 2839 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b7026657 AC |
2840 | if test $ac_must_keep_next = true; then |
2841 | ac_must_keep_next=false # Got value, back to normal. | |
2842 | else | |
2843 | case $ac_arg in | |
2844 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2845 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2846 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2847 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2848 | case "$ac_configure_args0 " in | |
2849 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2850 | esac | |
2851 | ;; | |
2852 | -* ) ac_must_keep_next=true ;; | |
2853 | esac | |
2854 | fi | |
81ecdfbb | 2855 | as_fn_append ac_configure_args " '$ac_arg'" |
b7026657 AC |
2856 | ;; |
2857 | esac | |
2858 | done | |
2859 | done | |
81ecdfbb RW |
2860 | { ac_configure_args0=; unset ac_configure_args0;} |
2861 | { ac_configure_args1=; unset ac_configure_args1;} | |
b7026657 AC |
2862 | |
2863 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2864 | # config.log. We remove comments because anyway the quotes in there | |
2865 | # would cause problems or look ugly. | |
81ecdfbb RW |
2866 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2867 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b7026657 AC |
2868 | trap 'exit_status=$? |
2869 | # Save into config.log some information that might help in debugging. | |
2870 | { | |
2871 | echo | |
2872 | ||
d0ac1c44 | 2873 | $as_echo "## ---------------- ## |
b7026657 | 2874 | ## Cache variables. ## |
d0ac1c44 | 2875 | ## ---------------- ##" |
b7026657 AC |
2876 | echo |
2877 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2878 | ( |
2879 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2880 | eval ac_val=\$$ac_var | |
2881 | case $ac_val in #( | |
2882 | *${as_nl}*) | |
2883 | case $ac_var in #( | |
2884 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2885 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2886 | esac | |
2887 | case $ac_var in #( | |
2888 | _ | IFS | as_nl) ;; #( | |
2889 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2890 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2891 | esac ;; | |
2892 | esac | |
2893 | done | |
b7026657 | 2894 | (set) 2>&1 | |
81ecdfbb RW |
2895 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2896 | *${as_nl}ac_space=\ *) | |
b7026657 | 2897 | sed -n \ |
81ecdfbb RW |
2898 | "s/'\''/'\''\\\\'\'''\''/g; |
2899 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2900 | ;; #( | |
b7026657 | 2901 | *) |
81ecdfbb | 2902 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 2903 | ;; |
81ecdfbb RW |
2904 | esac | |
2905 | sort | |
2906 | ) | |
b7026657 AC |
2907 | echo |
2908 | ||
d0ac1c44 | 2909 | $as_echo "## ----------------- ## |
b7026657 | 2910 | ## Output variables. ## |
d0ac1c44 | 2911 | ## ----------------- ##" |
b7026657 AC |
2912 | echo |
2913 | for ac_var in $ac_subst_vars | |
2914 | do | |
81ecdfbb RW |
2915 | eval ac_val=\$$ac_var |
2916 | case $ac_val in | |
2917 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2918 | esac | |
2919 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2920 | done | sort |
2921 | echo | |
2922 | ||
2923 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2924 | $as_echo "## ------------------- ## |
81ecdfbb | 2925 | ## File substitutions. ## |
d0ac1c44 | 2926 | ## ------------------- ##" |
b7026657 AC |
2927 | echo |
2928 | for ac_var in $ac_subst_files | |
2929 | do | |
81ecdfbb RW |
2930 | eval ac_val=\$$ac_var |
2931 | case $ac_val in | |
2932 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2933 | esac | |
2934 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2935 | done | sort |
2936 | echo | |
2937 | fi | |
2938 | ||
2939 | if test -s confdefs.h; then | |
d0ac1c44 | 2940 | $as_echo "## ----------- ## |
b7026657 | 2941 | ## confdefs.h. ## |
d0ac1c44 | 2942 | ## ----------- ##" |
b7026657 | 2943 | echo |
81ecdfbb | 2944 | cat confdefs.h |
b7026657 | 2945 | echo |
0fda6bd2 | 2946 | fi |
b7026657 | 2947 | test "$ac_signal" != 0 && |
81ecdfbb RW |
2948 | $as_echo "$as_me: caught signal $ac_signal" |
2949 | $as_echo "$as_me: exit $exit_status" | |
b7026657 | 2950 | } >&5 |
81ecdfbb RW |
2951 | rm -f core *.core core.conftest.* && |
2952 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b7026657 | 2953 | exit $exit_status |
81ecdfbb | 2954 | ' 0 |
b7026657 | 2955 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2956 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b7026657 AC |
2957 | done |
2958 | ac_signal=0 | |
2959 | ||
2960 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2961 | rm -f -r conftest* confdefs.h |
2962 | ||
2963 | $as_echo "/* confdefs.h */" > confdefs.h | |
b7026657 AC |
2964 | |
2965 | # Predefined preprocessor variables. | |
2966 | ||
2967 | cat >>confdefs.h <<_ACEOF | |
2968 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2969 | _ACEOF | |
2970 | ||
b7026657 AC |
2971 | cat >>confdefs.h <<_ACEOF |
2972 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2973 | _ACEOF | |
2974 | ||
b7026657 AC |
2975 | cat >>confdefs.h <<_ACEOF |
2976 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2977 | _ACEOF | |
2978 | ||
b7026657 AC |
2979 | cat >>confdefs.h <<_ACEOF |
2980 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2981 | _ACEOF | |
2982 | ||
b7026657 AC |
2983 | cat >>confdefs.h <<_ACEOF |
2984 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2985 | _ACEOF | |
2986 | ||
81ecdfbb RW |
2987 | cat >>confdefs.h <<_ACEOF |
2988 | #define PACKAGE_URL "$PACKAGE_URL" | |
2989 | _ACEOF | |
2990 | ||
b7026657 AC |
2991 | |
2992 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2993 | # Prefer an explicitly selected file to automatically selected ones. |
2994 | ac_site_file1=NONE | |
2995 | ac_site_file2=NONE | |
2996 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2997 | # We do not want a PATH search for config.site. |
2998 | case $CONFIG_SITE in #(( | |
2999 | -*) ac_site_file1=./$CONFIG_SITE;; | |
3000 | */*) ac_site_file1=$CONFIG_SITE;; | |
3001 | *) ac_site_file1=./$CONFIG_SITE;; | |
3002 | esac | |
81ecdfbb RW |
3003 | elif test "x$prefix" != xNONE; then |
3004 | ac_site_file1=$prefix/share/config.site | |
3005 | ac_site_file2=$prefix/etc/config.site | |
3006 | else | |
3007 | ac_site_file1=$ac_default_prefix/share/config.site | |
3008 | ac_site_file2=$ac_default_prefix/etc/config.site | |
c906108c | 3009 | fi |
81ecdfbb RW |
3010 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
3011 | do | |
3012 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 3013 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
3015 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b7026657 | 3016 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
3017 | . "$ac_site_file" \ |
3018 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3019 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3020 | as_fn_error $? "failed to load site script $ac_site_file | |
3021 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c SS |
3022 | fi |
3023 | done | |
3024 | ||
3025 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
3026 | # Some versions of bash will fail to source /dev/null (special files |
3027 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
3028 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
3030 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b7026657 | 3031 | case $cache_file in |
81ecdfbb RW |
3032 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
3033 | *) . "./$cache_file";; | |
b7026657 AC |
3034 | esac |
3035 | fi | |
c906108c | 3036 | else |
81ecdfbb RW |
3037 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
3038 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b7026657 | 3039 | >$cache_file |
c906108c SS |
3040 | fi |
3041 | ||
b15c5d7a MF |
3042 | as_fn_append ac_header_list " dlfcn.h" |
3043 | as_fn_append ac_header_list " fcntl.h" | |
3044 | as_fn_append ac_header_list " fpu_control.h" | |
3045 | as_fn_append ac_header_list " termios.h" | |
b15c5d7a MF |
3046 | as_fn_append ac_header_list " utime.h" |
3047 | as_fn_append ac_header_list " linux/if_tun.h" | |
3048 | as_fn_append ac_header_list " linux/mii.h" | |
3049 | as_fn_append ac_header_list " linux/types.h" | |
3050 | as_fn_append ac_header_list " net/if.h" | |
3051 | as_fn_append ac_header_list " netinet/in.h" | |
3052 | as_fn_append ac_header_list " netinet/tcp.h" | |
3053 | as_fn_append ac_header_list " sys/ioctl.h" | |
3054 | as_fn_append ac_header_list " sys/mman.h" | |
a48ff3ef | 3055 | as_fn_append ac_header_list " sys/mount.h" |
b15c5d7a MF |
3056 | as_fn_append ac_header_list " sys/param.h" |
3057 | as_fn_append ac_header_list " sys/resource.h" | |
b15c5d7a | 3058 | as_fn_append ac_header_list " sys/socket.h" |
a48ff3ef MF |
3059 | as_fn_append ac_header_list " sys/statfs.h" |
3060 | as_fn_append ac_header_list " sys/termio.h" | |
3061 | as_fn_append ac_header_list " sys/termios.h" | |
3062 | as_fn_append ac_header_list " sys/types.h" | |
3063 | as_fn_append ac_header_list " sys/vfs.h" | |
b15c5d7a | 3064 | as_fn_append ac_func_list " __setfpucw" |
a48ff3ef | 3065 | as_fn_append ac_func_list " access" |
b15c5d7a MF |
3066 | as_fn_append ac_func_list " aint" |
3067 | as_fn_append ac_func_list " anint" | |
a48ff3ef MF |
3068 | as_fn_append ac_func_list " cfgetispeed" |
3069 | as_fn_append ac_func_list " cfgetospeed" | |
3070 | as_fn_append ac_func_list " cfsetispeed" | |
3071 | as_fn_append ac_func_list " cfsetospeed" | |
3072 | as_fn_append ac_func_list " chdir" | |
b15c5d7a | 3073 | as_fn_append ac_func_list " chmod" |
a48ff3ef MF |
3074 | as_fn_append ac_func_list " dup" |
3075 | as_fn_append ac_func_list " dup2" | |
b15c5d7a MF |
3076 | as_fn_append ac_func_list " execv" |
3077 | as_fn_append ac_func_list " execve" | |
a48ff3ef | 3078 | as_fn_append ac_func_list " fcntl" |
b15c5d7a | 3079 | as_fn_append ac_func_list " fork" |
a48ff3ef MF |
3080 | as_fn_append ac_func_list " fstat" |
3081 | as_fn_append ac_func_list " fstatfs" | |
b15c5d7a | 3082 | as_fn_append ac_func_list " ftruncate" |
a48ff3ef | 3083 | as_fn_append ac_func_list " getdirentries" |
b15c5d7a | 3084 | as_fn_append ac_func_list " getegid" |
a48ff3ef | 3085 | as_fn_append ac_func_list " geteuid" |
b15c5d7a | 3086 | as_fn_append ac_func_list " getgid" |
a48ff3ef MF |
3087 | as_fn_append ac_func_list " getpid" |
3088 | as_fn_append ac_func_list " getppid" | |
b15c5d7a | 3089 | as_fn_append ac_func_list " getrusage" |
a48ff3ef | 3090 | as_fn_append ac_func_list " gettimeofday" |
b15c5d7a | 3091 | as_fn_append ac_func_list " getuid" |
a48ff3ef | 3092 | as_fn_append ac_func_list " ioctl" |
b15c5d7a | 3093 | as_fn_append ac_func_list " kill" |
a48ff3ef MF |
3094 | as_fn_append ac_func_list " link" |
3095 | as_fn_append ac_func_list " lseek" | |
95955095 MF |
3096 | as_fn_append ac_func_list " lstat" |
3097 | as_fn_append ac_func_list " mkdir" | |
b15c5d7a MF |
3098 | as_fn_append ac_func_list " mmap" |
3099 | as_fn_append ac_func_list " munmap" | |
a48ff3ef | 3100 | as_fn_append ac_func_list " pipe" |
b15c5d7a MF |
3101 | as_fn_append ac_func_list " posix_fallocate" |
3102 | as_fn_append ac_func_list " pread" | |
a48ff3ef MF |
3103 | as_fn_append ac_func_list " rmdir" |
3104 | as_fn_append ac_func_list " setregid" | |
3105 | as_fn_append ac_func_list " setreuid" | |
b15c5d7a | 3106 | as_fn_append ac_func_list " setgid" |
a48ff3ef | 3107 | as_fn_append ac_func_list " setuid" |
b15c5d7a | 3108 | as_fn_append ac_func_list " sigaction" |
a48ff3ef | 3109 | as_fn_append ac_func_list " sigprocmask" |
b15c5d7a | 3110 | as_fn_append ac_func_list " sqrt" |
a48ff3ef | 3111 | as_fn_append ac_func_list " stat" |
b15c5d7a | 3112 | as_fn_append ac_func_list " strsignal" |
a48ff3ef MF |
3113 | as_fn_append ac_func_list " symlink" |
3114 | as_fn_append ac_func_list " tcdrain" | |
3115 | as_fn_append ac_func_list " tcflow" | |
3116 | as_fn_append ac_func_list " tcflush" | |
3117 | as_fn_append ac_func_list " tcgetattr" | |
3118 | as_fn_append ac_func_list " tcgetpgrp" | |
3119 | as_fn_append ac_func_list " tcsendbreak" | |
3120 | as_fn_append ac_func_list " tcsetattr" | |
3121 | as_fn_append ac_func_list " tcsetpgrp" | |
b15c5d7a MF |
3122 | as_fn_append ac_func_list " time" |
3123 | as_fn_append ac_func_list " truncate" | |
a48ff3ef MF |
3124 | as_fn_append ac_func_list " umask" |
3125 | as_fn_append ac_func_list " unlink" | |
b15c5d7a | 3126 | as_fn_append ac_func_list " utime" |
b7026657 AC |
3127 | # Check that the precious variables saved in the cache have kept the same |
3128 | # value. | |
3129 | ac_cache_corrupted=false | |
81ecdfbb | 3130 | for ac_var in $ac_precious_vars; do |
b7026657 AC |
3131 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
3132 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
3133 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
3134 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b7026657 AC |
3135 | case $ac_old_set,$ac_new_set in |
3136 | set,) | |
81ecdfbb RW |
3137 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
3138 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b7026657 AC |
3139 | ac_cache_corrupted=: ;; |
3140 | ,set) | |
81ecdfbb RW |
3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
3142 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b7026657 AC |
3143 | ac_cache_corrupted=: ;; |
3144 | ,);; | |
3145 | *) | |
3146 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
3147 | # differences in whitespace do not lead to failure. |
3148 | ac_old_val_w=`echo x $ac_old_val` | |
3149 | ac_new_val_w=`echo x $ac_new_val` | |
3150 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
3151 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
3152 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
3153 | ac_cache_corrupted=: | |
3154 | else | |
3155 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
3156 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
3157 | eval $ac_var=\$ac_old_val | |
3158 | fi | |
3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
3160 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
3161 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
3162 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b7026657 AC |
3163 | fi;; |
3164 | esac | |
3165 | # Pass precious variables to config.status. | |
3166 | if test "$ac_new_set" = set; then | |
3167 | case $ac_new_val in | |
81ecdfbb | 3168 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b7026657 AC |
3169 | *) ac_arg=$ac_var=$ac_new_val ;; |
3170 | esac | |
3171 | case " $ac_configure_args " in | |
3172 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 3173 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b7026657 | 3174 | esac |
c906108c | 3175 | fi |
b7026657 AC |
3176 | done |
3177 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
3178 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3179 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
3181 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 3182 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
c906108c | 3183 | fi |
81ecdfbb RW |
3184 | ## -------------------- ## |
3185 | ## Main body of script. ## | |
3186 | ## -------------------- ## | |
c906108c | 3187 | |
fdd6fa61 AG |
3188 | ac_ext=c |
3189 | ac_cpp='$CPP $CPPFLAGS' | |
3190 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3191 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3192 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3193 | ||
c906108c SS |
3194 | |
3195 | ||
8c379db2 TT |
3196 | |
3197 | ||
3198 | ||
6dd65fc0 MF |
3199 | |
3200 | ||
3201 | # Check whether --with-pkgversion was given. | |
3202 | if test "${with_pkgversion+set}" = set; then : | |
3203 | withval=$with_pkgversion; case "$withval" in | |
3204 | yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; | |
3205 | no) PKGVERSION= ;; | |
3206 | *) PKGVERSION="($withval) " ;; | |
3207 | esac | |
3208 | else | |
3209 | PKGVERSION="(SIM) " | |
3210 | ||
3211 | fi | |
3212 | ||
3213 | ||
3214 | ||
3215 | ||
3216 | cat >>confdefs.h <<_ACEOF | |
3217 | #define PKGVERSION "$PKGVERSION" | |
3218 | _ACEOF | |
3219 | ||
3220 | ||
3221 | ||
3222 | # Check whether --with-bugurl was given. | |
3223 | if test "${with_bugurl+set}" = set; then : | |
3224 | withval=$with_bugurl; case "$withval" in | |
3225 | yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; | |
3226 | no) BUGURL= | |
3227 | ;; | |
3228 | *) BUGURL="$withval" | |
3229 | ;; | |
3230 | esac | |
3231 | else | |
3232 | BUGURL="$PACKAGE_BUGREPORT" | |
3233 | ||
3234 | fi | |
3235 | ||
3236 | case ${BUGURL} in | |
3237 | "") | |
3238 | REPORT_BUGS_TO= | |
3239 | REPORT_BUGS_TEXI= | |
3240 | ;; | |
3241 | *) | |
3242 | REPORT_BUGS_TO="<$BUGURL>" | |
3243 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
3244 | ;; | |
3245 | esac; | |
3246 | ||
3247 | ||
3248 | ||
3249 | ||
3250 | cat >>confdefs.h <<_ACEOF | |
3251 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
3252 | _ACEOF | |
3253 | ||
3254 | ||
b15c5d7a MF |
3255 | ac_config_headers="$ac_config_headers config.h" |
3256 | ||
3257 | ||
ab18008e MF |
3258 | . $srcdir/../bfd/development.sh |
3259 | ||
6bddc3e8 MF |
3260 | ac_aux_dir= |
3261 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
3262 | if test -f "$ac_dir/install-sh"; then | |
3263 | ac_aux_dir=$ac_dir | |
3264 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3265 | break | |
3266 | elif test -f "$ac_dir/install.sh"; then | |
3267 | ac_aux_dir=$ac_dir | |
3268 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3269 | break | |
3270 | elif test -f "$ac_dir/shtool"; then | |
3271 | ac_aux_dir=$ac_dir | |
3272 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3273 | break | |
b7026657 AC |
3274 | fi |
3275 | done | |
6bddc3e8 MF |
3276 | if test -z "$ac_aux_dir"; then |
3277 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
c906108c SS |
3278 | fi |
3279 | ||
6bddc3e8 MF |
3280 | # These three variables are undocumented and unsupported, |
3281 | # and are intended to be withdrawn in a future Autoconf release. | |
3282 | # They can cause serious problems if a builder's source tree is in a directory | |
3283 | # whose full name contains unusual characters. | |
3284 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3285 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3286 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
81ecdfbb | 3287 | |
6bddc3e8 MF |
3288 | |
3289 | # Make sure we can run config.sub. | |
3290 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3291 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3292 | ||
3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3294 | $as_echo_n "checking build system type... " >&6; } | |
3295 | if ${ac_cv_build+:} false; then : | |
81ecdfbb | 3296 | $as_echo_n "(cached) " >&6 |
c906108c | 3297 | else |
6bddc3e8 MF |
3298 | ac_build_alias=$build_alias |
3299 | test "x$ac_build_alias" = x && | |
3300 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3301 | test "x$ac_build_alias" = x && | |
3302 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
3303 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3304 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
b7026657 AC |
3305 | |
3306 | fi | |
6bddc3e8 MF |
3307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
3308 | $as_echo "$ac_cv_build" >&6; } | |
3309 | case $ac_cv_build in | |
3310 | *-*-*) ;; | |
3311 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
81ecdfbb | 3312 | esac |
6bddc3e8 MF |
3313 | build=$ac_cv_build |
3314 | ac_save_IFS=$IFS; IFS='-' | |
3315 | set x $ac_cv_build | |
3316 | shift | |
3317 | build_cpu=$1 | |
3318 | build_vendor=$2 | |
3319 | shift; shift | |
3320 | # Remember, the first character of IFS is used to create $*, | |
3321 | # except with old shells: | |
3322 | build_os=$* | |
3323 | IFS=$ac_save_IFS | |
3324 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
b7026657 | 3325 | |
6bddc3e8 MF |
3326 | |
3327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3328 | $as_echo_n "checking host system type... " >&6; } | |
3329 | if ${ac_cv_host+:} false; then : | |
81ecdfbb | 3330 | $as_echo_n "(cached) " >&6 |
b7026657 | 3331 | else |
6bddc3e8 MF |
3332 | if test "x$host_alias" = x; then |
3333 | ac_cv_host=$ac_cv_build | |
b7026657 | 3334 | else |
6bddc3e8 MF |
3335 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
3336 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
b7026657 | 3337 | fi |
6bddc3e8 | 3338 | |
fdd6fa61 | 3339 | fi |
6bddc3e8 MF |
3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
3341 | $as_echo "$ac_cv_host" >&6; } | |
3342 | case $ac_cv_host in | |
3343 | *-*-*) ;; | |
3344 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
3345 | esac | |
3346 | host=$ac_cv_host | |
3347 | ac_save_IFS=$IFS; IFS='-' | |
3348 | set x $ac_cv_host | |
3349 | shift | |
3350 | host_cpu=$1 | |
3351 | host_vendor=$2 | |
3352 | shift; shift | |
3353 | # Remember, the first character of IFS is used to create $*, | |
3354 | # except with old shells: | |
3355 | host_os=$* | |
3356 | IFS=$ac_save_IFS | |
3357 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
fdd6fa61 | 3358 | |
fdd6fa61 | 3359 | |
6bddc3e8 MF |
3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
3361 | $as_echo_n "checking target system type... " >&6; } | |
3362 | if ${ac_cv_target+:} false; then : | |
81ecdfbb | 3363 | $as_echo_n "(cached) " >&6 |
b7026657 | 3364 | else |
6bddc3e8 MF |
3365 | if test "x$target_alias" = x; then |
3366 | ac_cv_target=$ac_cv_host | |
c906108c | 3367 | else |
6bddc3e8 MF |
3368 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
3369 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
3370 | fi | |
3371 | ||
3372 | fi | |
3373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
3374 | $as_echo "$ac_cv_target" >&6; } | |
3375 | case $ac_cv_target in | |
3376 | *-*-*) ;; | |
3377 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
3378 | esac | |
3379 | target=$ac_cv_target | |
3380 | ac_save_IFS=$IFS; IFS='-' | |
3381 | set x $ac_cv_target | |
3382 | shift | |
3383 | target_cpu=$1 | |
3384 | target_vendor=$2 | |
3385 | shift; shift | |
3386 | # Remember, the first character of IFS is used to create $*, | |
3387 | # except with old shells: | |
3388 | target_os=$* | |
3389 | IFS=$ac_save_IFS | |
3390 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
3391 | ||
3392 | ||
3393 | # The aliases save the names the user supplied, while $host etc. | |
3394 | # will get canonicalized. | |
3395 | test -n "$target_alias" && | |
3396 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
3397 | NONENONEs,x,x, && | |
3398 | program_prefix=${target_alias}- | |
c2783492 MF |
3399 | # Expand $ac_aux_dir to an absolute path. |
3400 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
6bddc3e8 | 3401 | |
c2783492 MF |
3402 | ac_ext=c |
3403 | ac_cpp='$CPP $CPPFLAGS' | |
3404 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3405 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3406 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3407 | if test -n "$ac_tool_prefix"; then | |
3408 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3409 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3411 | $as_echo_n "checking for $ac_word... " >&6; } | |
3412 | if ${ac_cv_prog_CC+:} false; then : | |
3413 | $as_echo_n "(cached) " >&6 | |
8c379db2 | 3414 | else |
c2783492 MF |
3415 | if test -n "$CC"; then |
3416 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3417 | else | |
3418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3419 | for as_dir in $PATH | |
3420 | do | |
3421 | IFS=$as_save_IFS | |
3422 | test -z "$as_dir" && as_dir=. | |
3423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3424 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3425 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3426 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3427 | break 2 | |
3428 | fi | |
3429 | done | |
3430 | done | |
3431 | IFS=$as_save_IFS | |
8c379db2 | 3432 | |
c2783492 MF |
3433 | fi |
3434 | fi | |
3435 | CC=$ac_cv_prog_CC | |
3436 | if test -n "$CC"; then | |
3437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3438 | $as_echo "$CC" >&6; } | |
8c379db2 | 3439 | else |
c2783492 MF |
3440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3441 | $as_echo "no" >&6; } | |
8c379db2 TT |
3442 | fi |
3443 | ||
6bddc3e8 | 3444 | |
c2783492 MF |
3445 | fi |
3446 | if test -z "$ac_cv_prog_CC"; then | |
3447 | ac_ct_CC=$CC | |
3448 | # Extract the first word of "gcc", so it can be a program name with args. | |
3449 | set dummy gcc; ac_word=$2 | |
3450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3451 | $as_echo_n "checking for $ac_word... " >&6; } | |
3452 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
6bddc3e8 MF |
3453 | $as_echo_n "(cached) " >&6 |
3454 | else | |
c2783492 MF |
3455 | if test -n "$ac_ct_CC"; then |
3456 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3457 | else | |
3458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6bddc3e8 MF |
3459 | for as_dir in $PATH |
3460 | do | |
3461 | IFS=$as_save_IFS | |
3462 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
3463 | for ac_exec_ext in '' $ac_executable_extensions; do |
3464 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3465 | ac_cv_prog_ac_ct_CC="gcc" | |
3466 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3467 | break 2 | |
3468 | fi | |
3469 | done | |
6bddc3e8 MF |
3470 | done |
3471 | IFS=$as_save_IFS | |
3472 | ||
6bddc3e8 | 3473 | fi |
6bddc3e8 | 3474 | fi |
c2783492 MF |
3475 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3476 | if test -n "$ac_ct_CC"; then | |
3477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3478 | $as_echo "$ac_ct_CC" >&6; } | |
6bddc3e8 | 3479 | else |
c2783492 MF |
3480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3481 | $as_echo "no" >&6; } | |
6bddc3e8 MF |
3482 | fi |
3483 | ||
c2783492 MF |
3484 | if test "x$ac_ct_CC" = x; then |
3485 | CC="" | |
3486 | else | |
3487 | case $cross_compiling:$ac_tool_warned in | |
3488 | yes:) | |
3489 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3490 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3491 | ac_tool_warned=yes ;; | |
3492 | esac | |
3493 | CC=$ac_ct_CC | |
3494 | fi | |
6bddc3e8 | 3495 | else |
c2783492 | 3496 | CC="$ac_cv_prog_CC" |
6bddc3e8 MF |
3497 | fi |
3498 | ||
c2783492 MF |
3499 | if test -z "$CC"; then |
3500 | if test -n "$ac_tool_prefix"; then | |
3501 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3502 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
6bddc3e8 MF |
3503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3504 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 3505 | if ${ac_cv_prog_CC+:} false; then : |
6bddc3e8 MF |
3506 | $as_echo_n "(cached) " >&6 |
3507 | else | |
c2783492 MF |
3508 | if test -n "$CC"; then |
3509 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6bddc3e8 MF |
3510 | else |
3511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3512 | for as_dir in $PATH | |
3513 | do | |
3514 | IFS=$as_save_IFS | |
3515 | test -z "$as_dir" && as_dir=. | |
3516 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3517 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 | 3518 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
6bddc3e8 MF |
3519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3520 | break 2 | |
3521 | fi | |
3522 | done | |
3523 | done | |
3524 | IFS=$as_save_IFS | |
3525 | ||
3526 | fi | |
3527 | fi | |
c2783492 MF |
3528 | CC=$ac_cv_prog_CC |
3529 | if test -n "$CC"; then | |
3530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3531 | $as_echo "$CC" >&6; } | |
6bddc3e8 MF |
3532 | else |
3533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3534 | $as_echo "no" >&6; } | |
3535 | fi | |
3536 | ||
3537 | ||
c2783492 | 3538 | fi |
6bddc3e8 | 3539 | fi |
c2783492 MF |
3540 | if test -z "$CC"; then |
3541 | # Extract the first word of "cc", so it can be a program name with args. | |
3542 | set dummy cc; ac_word=$2 | |
6bddc3e8 MF |
3543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3544 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 3545 | if ${ac_cv_prog_CC+:} false; then : |
6bddc3e8 MF |
3546 | $as_echo_n "(cached) " >&6 |
3547 | else | |
c2783492 MF |
3548 | if test -n "$CC"; then |
3549 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6bddc3e8 | 3550 | else |
c2783492 | 3551 | ac_prog_rejected=no |
6bddc3e8 MF |
3552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3553 | for as_dir in $PATH | |
3554 | do | |
3555 | IFS=$as_save_IFS | |
3556 | test -z "$as_dir" && as_dir=. | |
3557 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3558 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 MF |
3559 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3560 | ac_prog_rejected=yes | |
3561 | continue | |
3562 | fi | |
3563 | ac_cv_prog_CC="cc" | |
6bddc3e8 MF |
3564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3565 | break 2 | |
3566 | fi | |
3567 | done | |
3568 | done | |
3569 | IFS=$as_save_IFS | |
3570 | ||
c2783492 MF |
3571 | if test $ac_prog_rejected = yes; then |
3572 | # We found a bogon in the path, so make sure we never use it. | |
3573 | set dummy $ac_cv_prog_CC | |
3574 | shift | |
3575 | if test $# != 0; then | |
3576 | # We chose a different compiler from the bogus one. | |
3577 | # However, it has the same basename, so the bogon will be chosen | |
3578 | # first if we set CC to just the basename; use the full file name. | |
3579 | shift | |
3580 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3581 | fi | |
6bddc3e8 MF |
3582 | fi |
3583 | fi | |
c2783492 MF |
3584 | fi |
3585 | CC=$ac_cv_prog_CC | |
3586 | if test -n "$CC"; then | |
3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3588 | $as_echo "$CC" >&6; } | |
6bddc3e8 MF |
3589 | else |
3590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3591 | $as_echo "no" >&6; } | |
3592 | fi | |
3593 | ||
6bddc3e8 MF |
3594 | |
3595 | fi | |
c2783492 MF |
3596 | if test -z "$CC"; then |
3597 | if test -n "$ac_tool_prefix"; then | |
3598 | for ac_prog in cl.exe | |
3599 | do | |
3600 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3601 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3603 | $as_echo_n "checking for $ac_word... " >&6; } | |
3604 | if ${ac_cv_prog_CC+:} false; then : | |
6bddc3e8 MF |
3605 | $as_echo_n "(cached) " >&6 |
3606 | else | |
c2783492 MF |
3607 | if test -n "$CC"; then |
3608 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3609 | else | |
3610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3611 | for as_dir in $PATH | |
6bddc3e8 MF |
3612 | do |
3613 | IFS=$as_save_IFS | |
3614 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
3615 | for ac_exec_ext in '' $ac_executable_extensions; do |
3616 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3617 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3619 | break 2 | |
3620 | fi | |
3621 | done | |
6bddc3e8 MF |
3622 | done |
3623 | IFS=$as_save_IFS | |
3624 | ||
3625 | fi | |
6bddc3e8 | 3626 | fi |
c2783492 MF |
3627 | CC=$ac_cv_prog_CC |
3628 | if test -n "$CC"; then | |
3629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3630 | $as_echo "$CC" >&6; } | |
3631 | else | |
3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3633 | $as_echo "no" >&6; } | |
3634 | fi | |
6bddc3e8 | 3635 | |
c2783492 MF |
3636 | |
3637 | test -n "$CC" && break | |
3638 | done | |
3639 | fi | |
3640 | if test -z "$CC"; then | |
3641 | ac_ct_CC=$CC | |
3642 | for ac_prog in cl.exe | |
6bddc3e8 MF |
3643 | do |
3644 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3645 | set dummy $ac_prog; ac_word=$2 | |
3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3647 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 3648 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
6bddc3e8 MF |
3649 | $as_echo_n "(cached) " >&6 |
3650 | else | |
c2783492 MF |
3651 | if test -n "$ac_ct_CC"; then |
3652 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
6bddc3e8 MF |
3653 | else |
3654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3655 | for as_dir in $PATH | |
3656 | do | |
3657 | IFS=$as_save_IFS | |
3658 | test -z "$as_dir" && as_dir=. | |
3659 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3660 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 | 3661 | ac_cv_prog_ac_ct_CC="$ac_prog" |
6bddc3e8 MF |
3662 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3663 | break 2 | |
3664 | fi | |
3665 | done | |
3666 | done | |
3667 | IFS=$as_save_IFS | |
3668 | ||
3669 | fi | |
3670 | fi | |
c2783492 MF |
3671 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3672 | if test -n "$ac_ct_CC"; then | |
3673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3674 | $as_echo "$ac_ct_CC" >&6; } | |
6bddc3e8 MF |
3675 | else |
3676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3677 | $as_echo "no" >&6; } | |
3678 | fi | |
3679 | ||
3680 | ||
c2783492 | 3681 | test -n "$ac_ct_CC" && break |
6bddc3e8 MF |
3682 | done |
3683 | ||
c2783492 MF |
3684 | if test "x$ac_ct_CC" = x; then |
3685 | CC="" | |
3686 | else | |
3687 | case $cross_compiling:$ac_tool_warned in | |
3688 | yes:) | |
3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3690 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3691 | ac_tool_warned=yes ;; | |
6bddc3e8 | 3692 | esac |
c2783492 | 3693 | CC=$ac_ct_CC |
6bddc3e8 MF |
3694 | fi |
3695 | fi | |
3696 | ||
6bddc3e8 MF |
3697 | fi |
3698 | ||
3699 | ||
c2783492 MF |
3700 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3701 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3702 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3703 | See \`config.log' for more details" "$LINENO" 5; } | |
6bddc3e8 | 3704 | |
c2783492 MF |
3705 | # Provide some information about the compiler. |
3706 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3707 | set X $ac_compile | |
3708 | ac_compiler=$2 | |
3709 | for ac_option in --version -v -V -qversion; do | |
3710 | { { ac_try="$ac_compiler $ac_option >&5" | |
3711 | case "(($ac_try" in | |
3712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3713 | *) ac_try_echo=$ac_try;; | |
3714 | esac | |
3715 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3716 | $as_echo "$ac_try_echo"; } >&5 | |
3717 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3718 | ac_status=$? | |
3719 | if test -s conftest.err; then | |
3720 | sed '10a\ | |
3721 | ... rest of stderr output deleted ... | |
3722 | 10q' conftest.err >conftest.er1 | |
3723 | cat conftest.er1 >&5 | |
3724 | fi | |
3725 | rm -f conftest.er1 conftest.err | |
3726 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3727 | test $ac_status = 0; } | |
3728 | done | |
6bddc3e8 | 3729 | |
c2783492 MF |
3730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3731 | /* end confdefs.h. */ | |
6bddc3e8 | 3732 | |
c2783492 MF |
3733 | int |
3734 | main () | |
3735 | { | |
6bddc3e8 | 3736 | |
c2783492 MF |
3737 | ; |
3738 | return 0; | |
3739 | } | |
6bddc3e8 | 3740 | _ACEOF |
c2783492 MF |
3741 | ac_clean_files_save=$ac_clean_files |
3742 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3743 | # Try to create an executable without -o first, disregard a.out. | |
3744 | # It will help us diagnose broken compilers, and finding out an intuition | |
3745 | # of exeext. | |
3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3747 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3748 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
6bddc3e8 | 3749 | |
c2783492 MF |
3750 | # The possible output files: |
3751 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
6bddc3e8 | 3752 | |
c2783492 MF |
3753 | ac_rmfiles= |
3754 | for ac_file in $ac_files | |
3755 | do | |
3756 | case $ac_file in | |
3757 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3758 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3759 | esac | |
3760 | done | |
3761 | rm -f $ac_rmfiles | |
81ecdfbb RW |
3762 | |
3763 | if { { ac_try="$ac_link_default" | |
3764 | case "(($ac_try" in | |
3765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3766 | *) ac_try_echo=$ac_try;; | |
3767 | esac | |
3768 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3769 | $as_echo "$ac_try_echo"; } >&5 | |
3770 | (eval "$ac_link_default") 2>&5 | |
b7026657 | 3771 | ac_status=$? |
81ecdfbb RW |
3772 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3773 | test $ac_status = 0; }; then : | |
3774 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3775 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3776 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3777 | # so that the user can short-circuit this test for compilers unknown to | |
3778 | # Autoconf. | |
3779 | for ac_file in $ac_files '' | |
b7026657 AC |
3780 | do |
3781 | test -f "$ac_file" || continue | |
3782 | case $ac_file in | |
81ecdfbb | 3783 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b7026657 AC |
3784 | ;; |
3785 | [ab].out ) | |
3786 | # We found the default executable, but exeext='' is most | |
3787 | # certainly right. | |
3788 | break;; | |
3789 | *.* ) | |
81ecdfbb RW |
3790 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3791 | then :; else | |
3792 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3793 | fi | |
3794 | # We set ac_cv_exeext here because the later test for it is not | |
3795 | # safe: cross compilers may not add the suffix if given an `-o' | |
3796 | # argument, so we may need to know it at that point already. | |
3797 | # Even if this section looks crufty: it has the advantage of | |
3798 | # actually working. | |
b7026657 AC |
3799 | break;; |
3800 | * ) | |
3801 | break;; | |
3802 | esac | |
3803 | done | |
81ecdfbb RW |
3804 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3805 | ||
b7026657 | 3806 | else |
81ecdfbb RW |
3807 | ac_file='' |
3808 | fi | |
81ecdfbb | 3809 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3811 | $as_echo "no" >&6; } | |
3812 | $as_echo "$as_me: failed program was:" >&5 | |
b7026657 AC |
3813 | sed 's/^/| /' conftest.$ac_ext >&5 |
3814 | ||
81ecdfbb RW |
3815 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3816 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3817 | as_fn_error 77 "C compiler cannot create executables |
3818 | See \`config.log' for more details" "$LINENO" 5; } | |
3819 | else | |
3820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3821 | $as_echo "yes" >&6; } | |
b7026657 | 3822 | fi |
d0ac1c44 SM |
3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3824 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3826 | $as_echo "$ac_file" >&6; } | |
b7026657 | 3827 | ac_exeext=$ac_cv_exeext |
b7026657 | 3828 | |
d0ac1c44 | 3829 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b7026657 | 3830 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3832 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3833 | if { { ac_try="$ac_link" | |
3834 | case "(($ac_try" in | |
3835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3836 | *) ac_try_echo=$ac_try;; | |
3837 | esac | |
3838 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3839 | $as_echo "$ac_try_echo"; } >&5 | |
3840 | (eval "$ac_link") 2>&5 | |
b7026657 | 3841 | ac_status=$? |
81ecdfbb RW |
3842 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3843 | test $ac_status = 0; }; then : | |
b7026657 AC |
3844 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3845 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3846 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3847 | # `rm'. | |
3848 | for ac_file in conftest.exe conftest conftest.*; do | |
3849 | test -f "$ac_file" || continue | |
3850 | case $ac_file in | |
81ecdfbb | 3851 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b7026657 | 3852 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b7026657 AC |
3853 | break;; |
3854 | * ) break;; | |
3855 | esac | |
3856 | done | |
c906108c | 3857 | else |
81ecdfbb RW |
3858 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3859 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3860 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3861 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 3862 | fi |
d0ac1c44 | 3863 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
3864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3865 | $as_echo "$ac_cv_exeext" >&6; } | |
b7026657 AC |
3866 | |
3867 | rm -f conftest.$ac_ext | |
3868 | EXEEXT=$ac_cv_exeext | |
3869 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
3870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3871 | /* end confdefs.h. */ | |
3872 | #include <stdio.h> | |
3873 | int | |
3874 | main () | |
3875 | { | |
3876 | FILE *f = fopen ("conftest.out", "w"); | |
3877 | return ferror (f) || fclose (f) != 0; | |
3878 | ||
3879 | ; | |
3880 | return 0; | |
3881 | } | |
3882 | _ACEOF | |
3883 | ac_clean_files="$ac_clean_files conftest.out" | |
3884 | # Check that the compiler produces executables we can run. If not, either | |
3885 | # the compiler is broken, or we cross compile. | |
3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3887 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3888 | if test "$cross_compiling" != yes; then | |
3889 | { { ac_try="$ac_link" | |
3890 | case "(($ac_try" in | |
3891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3892 | *) ac_try_echo=$ac_try;; | |
3893 | esac | |
3894 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3895 | $as_echo "$ac_try_echo"; } >&5 | |
3896 | (eval "$ac_link") 2>&5 | |
3897 | ac_status=$? | |
3898 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3899 | test $ac_status = 0; } | |
3900 | if { ac_try='./conftest$ac_cv_exeext' | |
3901 | { { case "(($ac_try" in | |
3902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3903 | *) ac_try_echo=$ac_try;; | |
3904 | esac | |
3905 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3906 | $as_echo "$ac_try_echo"; } >&5 | |
3907 | (eval "$ac_try") 2>&5 | |
3908 | ac_status=$? | |
3909 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3910 | test $ac_status = 0; }; }; then | |
3911 | cross_compiling=no | |
3912 | else | |
3913 | if test "$cross_compiling" = maybe; then | |
3914 | cross_compiling=yes | |
3915 | else | |
3916 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3917 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3918 | as_fn_error $? "cannot run C compiled programs. | |
3919 | If you meant to cross compile, use \`--host'. | |
3920 | See \`config.log' for more details" "$LINENO" 5; } | |
3921 | fi | |
3922 | fi | |
3923 | fi | |
3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3925 | $as_echo "$cross_compiling" >&6; } | |
3926 | ||
3927 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3928 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3930 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 3931 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 3932 | $as_echo_n "(cached) " >&6 |
b7026657 | 3933 | else |
81ecdfbb | 3934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3935 | /* end confdefs.h. */ |
3936 | ||
3937 | int | |
3938 | main () | |
3939 | { | |
3940 | ||
3941 | ; | |
3942 | return 0; | |
3943 | } | |
3944 | _ACEOF | |
3945 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3946 | if { { ac_try="$ac_compile" |
3947 | case "(($ac_try" in | |
3948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3949 | *) ac_try_echo=$ac_try;; | |
3950 | esac | |
3951 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3952 | $as_echo "$ac_try_echo"; } >&5 | |
3953 | (eval "$ac_compile") 2>&5 | |
b7026657 | 3954 | ac_status=$? |
81ecdfbb RW |
3955 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3956 | test $ac_status = 0; }; then : | |
3957 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3958 | test -f "$ac_file" || continue; | |
b7026657 | 3959 | case $ac_file in |
81ecdfbb | 3960 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b7026657 AC |
3961 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3962 | break;; | |
3963 | esac | |
3964 | done | |
3965 | else | |
81ecdfbb | 3966 | $as_echo "$as_me: failed program was:" >&5 |
b7026657 AC |
3967 | sed 's/^/| /' conftest.$ac_ext >&5 |
3968 | ||
81ecdfbb RW |
3969 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3970 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3971 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3972 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 3973 | fi |
b7026657 AC |
3974 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3975 | fi | |
81ecdfbb RW |
3976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3977 | $as_echo "$ac_cv_objext" >&6; } | |
b7026657 AC |
3978 | OBJEXT=$ac_cv_objext |
3979 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3981 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 3982 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 3983 | $as_echo_n "(cached) " >&6 |
b7026657 | 3984 | else |
81ecdfbb | 3985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3986 | /* end confdefs.h. */ |
3987 | ||
3988 | int | |
3989 | main () | |
3990 | { | |
3991 | #ifndef __GNUC__ | |
3992 | choke me | |
3993 | #endif | |
c906108c | 3994 | |
b7026657 AC |
3995 | ; |
3996 | return 0; | |
3997 | } | |
3998 | _ACEOF | |
81ecdfbb | 3999 | if ac_fn_c_try_compile "$LINENO"; then : |
b7026657 | 4000 | ac_compiler_gnu=yes |
c906108c | 4001 | else |
81ecdfbb | 4002 | ac_compiler_gnu=no |
c906108c | 4003 | fi |
81ecdfbb | 4004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 4005 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
c906108c | 4006 | |
b7026657 | 4007 | fi |
81ecdfbb RW |
4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4009 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4010 | if test $ac_compiler_gnu = yes; then | |
4011 | GCC=yes | |
4012 | else | |
4013 | GCC= | |
4014 | fi | |
b7026657 AC |
4015 | ac_test_CFLAGS=${CFLAGS+set} |
4016 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4018 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 4019 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb | 4020 | $as_echo_n "(cached) " >&6 |
c906108c | 4021 | else |
81ecdfbb RW |
4022 | ac_save_c_werror_flag=$ac_c_werror_flag |
4023 | ac_c_werror_flag=yes | |
4024 | ac_cv_prog_cc_g=no | |
4025 | CFLAGS="-g" | |
4026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 AC |
4027 | /* end confdefs.h. */ |
4028 | ||
4029 | int | |
4030 | main () | |
4031 | { | |
4032 | ||
4033 | ; | |
4034 | return 0; | |
4035 | } | |
4036 | _ACEOF | |
81ecdfbb | 4037 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
4038 | ac_cv_prog_cc_g=yes |
4039 | else | |
81ecdfbb RW |
4040 | CFLAGS="" |
4041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4042 | /* end confdefs.h. */ | |
4043 | ||
4044 | int | |
4045 | main () | |
4046 | { | |
4047 | ||
4048 | ; | |
4049 | return 0; | |
4050 | } | |
4051 | _ACEOF | |
4052 | if ac_fn_c_try_compile "$LINENO"; then : | |
4053 | ||
4054 | else | |
4055 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4056 | CFLAGS="-g" | |
4057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4058 | /* end confdefs.h. */ | |
4059 | ||
4060 | int | |
4061 | main () | |
4062 | { | |
c906108c | 4063 | |
81ecdfbb RW |
4064 | ; |
4065 | return 0; | |
4066 | } | |
4067 | _ACEOF | |
4068 | if ac_fn_c_try_compile "$LINENO"; then : | |
4069 | ac_cv_prog_cc_g=yes | |
4070 | fi | |
4071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 4072 | fi |
81ecdfbb | 4073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 4074 | fi |
81ecdfbb RW |
4075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4076 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4077 | fi | |
4078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4079 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
c906108c | 4080 | if test "$ac_test_CFLAGS" = set; then |
b7026657 | 4081 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
4082 | elif test $ac_cv_prog_cc_g = yes; then |
4083 | if test "$GCC" = yes; then | |
4084 | CFLAGS="-g -O2" | |
4085 | else | |
4086 | CFLAGS="-g" | |
4087 | fi | |
4088 | else | |
4089 | if test "$GCC" = yes; then | |
4090 | CFLAGS="-O2" | |
4091 | else | |
4092 | CFLAGS= | |
4093 | fi | |
4094 | fi | |
81ecdfbb RW |
4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4096 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 4097 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 4098 | $as_echo_n "(cached) " >&6 |
b7026657 | 4099 | else |
81ecdfbb | 4100 | ac_cv_prog_cc_c89=no |
b7026657 | 4101 | ac_save_CC=$CC |
81ecdfbb | 4102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
4103 | /* end confdefs.h. */ |
4104 | #include <stdarg.h> | |
4105 | #include <stdio.h> | |
d0ac1c44 | 4106 | struct stat; |
b7026657 AC |
4107 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4108 | struct buf { int x; }; | |
4109 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4110 | static char *e (p, i) | |
4111 | char **p; | |
4112 | int i; | |
4113 | { | |
4114 | return p[i]; | |
4115 | } | |
4116 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4117 | { | |
4118 | char *s; | |
4119 | va_list v; | |
4120 | va_start (v,p); | |
4121 | s = g (p, va_arg (v,int)); | |
4122 | va_end (v); | |
4123 | return s; | |
4124 | } | |
4125 | ||
4126 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4127 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4128 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4129 | as 'x'. The following induces an error, until -std is added to get |
b7026657 AC |
4130 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4131 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4132 | that's true only with -std. */ |
b7026657 AC |
4133 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4134 | ||
81ecdfbb RW |
4135 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4136 | inside strings and character constants. */ | |
4137 | #define FOO(x) 'x' | |
4138 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4139 | ||
b7026657 AC |
4140 | int test (int i, double x); |
4141 | struct s1 {int (*f) (int a);}; | |
4142 | struct s2 {int (*f) (double a);}; | |
4143 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4144 | int argc; | |
4145 | char **argv; | |
4146 | int | |
4147 | main () | |
4148 | { | |
4149 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4150 | ; | |
4151 | return 0; | |
4152 | } | |
4153 | _ACEOF | |
81ecdfbb RW |
4154 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4155 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b7026657 AC |
4156 | do |
4157 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4158 | if ac_fn_c_try_compile "$LINENO"; then : |
4159 | ac_cv_prog_cc_c89=$ac_arg | |
b7026657 | 4160 | fi |
81ecdfbb RW |
4161 | rm -f core conftest.err conftest.$ac_objext |
4162 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b7026657 | 4163 | done |
81ecdfbb | 4164 | rm -f conftest.$ac_ext |
b7026657 AC |
4165 | CC=$ac_save_CC |
4166 | ||
4167 | fi | |
81ecdfbb RW |
4168 | # AC_CACHE_VAL |
4169 | case "x$ac_cv_prog_cc_c89" in | |
4170 | x) | |
4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4172 | $as_echo "none needed" >&6; } ;; | |
4173 | xno) | |
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4175 | $as_echo "unsupported" >&6; } ;; | |
b7026657 | 4176 | *) |
81ecdfbb RW |
4177 | CC="$CC $ac_cv_prog_cc_c89" |
4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4179 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b7026657 | 4180 | esac |
81ecdfbb | 4181 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b7026657 | 4182 | |
fdd6fa61 AG |
4183 | fi |
4184 | ||
fdd6fa61 AG |
4185 | ac_ext=c |
4186 | ac_cpp='$CPP $CPPFLAGS' | |
4187 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4188 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4189 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4190 | ||
c2783492 MF |
4191 | ac_ext=c |
4192 | ac_cpp='$CPP $CPPFLAGS' | |
4193 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4194 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4195 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4197 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4198 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4199 | $as_echo_n "(cached) " >&6 | |
4200 | else | |
4201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4202 | /* end confdefs.h. */ | |
4203 | ||
4204 | int | |
4205 | main () | |
4206 | { | |
4207 | ||
4208 | ; | |
4209 | return 0; | |
4210 | } | |
4211 | _ACEOF | |
4212 | # Make sure it works both with $CC and with simple cc. | |
4213 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4214 | # compilers refuse to overwrite an existing .o file with -o, | |
4215 | # though they will create one. | |
4216 | am_cv_prog_cc_c_o=yes | |
4217 | for am_i in 1 2; do | |
4218 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4219 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4220 | ac_status=$? | |
4221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4222 | (exit $ac_status); } \ | |
4223 | && test -f conftest2.$ac_objext; then | |
4224 | : OK | |
4225 | else | |
4226 | am_cv_prog_cc_c_o=no | |
4227 | break | |
4228 | fi | |
4229 | done | |
4230 | rm -f core conftest* | |
4231 | unset am_i | |
4232 | fi | |
4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4234 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4235 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4236 | # Losing compiler, so override with the script. | |
4237 | # FIXME: It is wrong to rewrite CC. | |
4238 | # But if we don't then we get into trouble of one sort or another. | |
4239 | # A longer-term fix would be to have automake use am__CC in this case, | |
4240 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4241 | CC="$am_aux_dir/compile $CC" | |
4242 | fi | |
4243 | ac_ext=c | |
4244 | ac_cpp='$CPP $CPPFLAGS' | |
4245 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4246 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4247 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4248 | ||
4249 | ||
c2783492 MF |
4250 | ac_ext=c |
4251 | ac_cpp='$CPP $CPPFLAGS' | |
4252 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4253 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4254 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4256 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4257 | # On Suns, sometimes $CPP names a directory. | |
4258 | if test -n "$CPP" && test -d "$CPP"; then | |
4259 | CPP= | |
4260 | fi | |
4261 | if test -z "$CPP"; then | |
4262 | if ${ac_cv_prog_CPP+:} false; then : | |
4263 | $as_echo_n "(cached) " >&6 | |
4264 | else | |
4265 | # Double quotes because CPP needs to be expanded | |
4266 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4267 | do | |
4268 | ac_preproc_ok=false | |
4269 | for ac_c_preproc_warn_flag in '' yes | |
4270 | do | |
4271 | # Use a header file that comes with gcc, so configuring glibc | |
4272 | # with a fresh cross-compiler works. | |
4273 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4274 | # <limits.h> exists even on freestanding compilers. | |
4275 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4276 | # not just through cpp. "Syntax error" is here to catch this case. | |
4277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4278 | /* end confdefs.h. */ | |
4279 | #ifdef __STDC__ | |
4280 | # include <limits.h> | |
4281 | #else | |
4282 | # include <assert.h> | |
4283 | #endif | |
4284 | Syntax error | |
4285 | _ACEOF | |
4286 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4287 | ||
4288 | else | |
4289 | # Broken: fails on valid input. | |
4290 | continue | |
4291 | fi | |
4292 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4293 | ||
4294 | # OK, works on sane cases. Now check whether nonexistent headers | |
4295 | # can be detected and how. | |
4296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4297 | /* end confdefs.h. */ | |
4298 | #include <ac_nonexistent.h> | |
4299 | _ACEOF | |
4300 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4301 | # Broken: success on invalid input. | |
4302 | continue | |
4303 | else | |
4304 | # Passes both tests. | |
4305 | ac_preproc_ok=: | |
4306 | break | |
4307 | fi | |
4308 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4309 | ||
4310 | done | |
4311 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4312 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4313 | if $ac_preproc_ok; then : | |
4314 | break | |
4315 | fi | |
4316 | ||
4317 | done | |
4318 | ac_cv_prog_CPP=$CPP | |
4319 | ||
4320 | fi | |
4321 | CPP=$ac_cv_prog_CPP | |
4322 | else | |
4323 | ac_cv_prog_CPP=$CPP | |
4324 | fi | |
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4326 | $as_echo "$CPP" >&6; } | |
4327 | ac_preproc_ok=false | |
4328 | for ac_c_preproc_warn_flag in '' yes | |
4329 | do | |
4330 | # Use a header file that comes with gcc, so configuring glibc | |
4331 | # with a fresh cross-compiler works. | |
4332 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4333 | # <limits.h> exists even on freestanding compilers. | |
4334 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4335 | # not just through cpp. "Syntax error" is here to catch this case. | |
4336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4337 | /* end confdefs.h. */ | |
4338 | #ifdef __STDC__ | |
4339 | # include <limits.h> | |
4340 | #else | |
4341 | # include <assert.h> | |
4342 | #endif | |
4343 | Syntax error | |
4344 | _ACEOF | |
4345 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4346 | ||
4347 | else | |
4348 | # Broken: fails on valid input. | |
4349 | continue | |
4350 | fi | |
4351 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4352 | ||
4353 | # OK, works on sane cases. Now check whether nonexistent headers | |
4354 | # can be detected and how. | |
4355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4356 | /* end confdefs.h. */ | |
4357 | #include <ac_nonexistent.h> | |
4358 | _ACEOF | |
4359 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4360 | # Broken: success on invalid input. | |
4361 | continue | |
4362 | else | |
4363 | # Passes both tests. | |
4364 | ac_preproc_ok=: | |
4365 | break | |
4366 | fi | |
4367 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4368 | ||
4369 | done | |
4370 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4371 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4372 | if $ac_preproc_ok; then : | |
4373 | ||
4374 | else | |
4375 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4376 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4377 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
4378 | See \`config.log' for more details" "$LINENO" 5; } | |
4379 | fi | |
4380 | ||
4381 | ac_ext=c | |
4382 | ac_cpp='$CPP $CPPFLAGS' | |
4383 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4384 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4385 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4386 | ||
4387 | ||
e9bf6a4a | 4388 | |
c2783492 MF |
4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4390 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4391 | if ${ac_cv_path_GREP+:} false; then : | |
4392 | $as_echo_n "(cached) " >&6 | |
4393 | else | |
4394 | if test -z "$GREP"; then | |
4395 | ac_path_GREP_found=false | |
4396 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4398 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4399 | do | |
4400 | IFS=$as_save_IFS | |
4401 | test -z "$as_dir" && as_dir=. | |
4402 | for ac_prog in grep ggrep; do | |
4403 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4404 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4405 | as_fn_executable_p "$ac_path_GREP" || continue | |
4406 | # Check for GNU ac_path_GREP and select it if it is found. | |
4407 | # Check for GNU $ac_path_GREP | |
4408 | case `"$ac_path_GREP" --version 2>&1` in | |
4409 | *GNU*) | |
4410 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4411 | *) | |
4412 | ac_count=0 | |
4413 | $as_echo_n 0123456789 >"conftest.in" | |
4414 | while : | |
4415 | do | |
4416 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4417 | mv "conftest.tmp" "conftest.in" | |
4418 | cp "conftest.in" "conftest.nl" | |
4419 | $as_echo 'GREP' >> "conftest.nl" | |
4420 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4421 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4422 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4423 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4424 | # Best one so far, save it but keep looking for a better one | |
4425 | ac_cv_path_GREP="$ac_path_GREP" | |
4426 | ac_path_GREP_max=$ac_count | |
4427 | fi | |
4428 | # 10*(2^10) chars as input seems more than enough | |
4429 | test $ac_count -gt 10 && break | |
4430 | done | |
4431 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4432 | esac | |
4433 | ||
4434 | $ac_path_GREP_found && break 3 | |
4435 | done | |
4436 | done | |
4437 | done | |
4438 | IFS=$as_save_IFS | |
4439 | if test -z "$ac_cv_path_GREP"; then | |
4440 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4441 | fi | |
4442 | else | |
4443 | ac_cv_path_GREP=$GREP | |
4444 | fi | |
4445 | ||
4446 | fi | |
4447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4448 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4449 | GREP="$ac_cv_path_GREP" | |
4450 | ||
4451 | ||
4452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4453 | $as_echo_n "checking for egrep... " >&6; } | |
4454 | if ${ac_cv_path_EGREP+:} false; then : | |
4455 | $as_echo_n "(cached) " >&6 | |
4456 | else | |
4457 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4458 | then ac_cv_path_EGREP="$GREP -E" | |
4459 | else | |
4460 | if test -z "$EGREP"; then | |
4461 | ac_path_EGREP_found=false | |
4462 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4464 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4465 | do | |
4466 | IFS=$as_save_IFS | |
4467 | test -z "$as_dir" && as_dir=. | |
4468 | for ac_prog in egrep; do | |
4469 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4470 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4471 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4472 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4473 | # Check for GNU $ac_path_EGREP | |
4474 | case `"$ac_path_EGREP" --version 2>&1` in | |
4475 | *GNU*) | |
4476 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4477 | *) | |
4478 | ac_count=0 | |
4479 | $as_echo_n 0123456789 >"conftest.in" | |
4480 | while : | |
4481 | do | |
4482 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4483 | mv "conftest.tmp" "conftest.in" | |
4484 | cp "conftest.in" "conftest.nl" | |
4485 | $as_echo 'EGREP' >> "conftest.nl" | |
4486 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4487 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4488 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4489 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4490 | # Best one so far, save it but keep looking for a better one | |
4491 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4492 | ac_path_EGREP_max=$ac_count | |
4493 | fi | |
4494 | # 10*(2^10) chars as input seems more than enough | |
4495 | test $ac_count -gt 10 && break | |
4496 | done | |
4497 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4498 | esac | |
4499 | ||
4500 | $ac_path_EGREP_found && break 3 | |
4501 | done | |
4502 | done | |
4503 | done | |
4504 | IFS=$as_save_IFS | |
4505 | if test -z "$ac_cv_path_EGREP"; then | |
4506 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4507 | fi | |
4508 | else | |
4509 | ac_cv_path_EGREP=$EGREP | |
4510 | fi | |
4511 | ||
4512 | fi | |
4513 | fi | |
4514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4515 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4516 | EGREP="$ac_cv_path_EGREP" | |
4517 | ||
4518 | ||
4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4520 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4521 | if ${ac_cv_header_stdc+:} false; then : | |
6bddc3e8 MF |
4522 | $as_echo_n "(cached) " >&6 |
4523 | else | |
4524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4525 | /* end confdefs.h. */ | |
c2783492 MF |
4526 | #include <stdlib.h> |
4527 | #include <stdarg.h> | |
4528 | #include <string.h> | |
4529 | #include <float.h> | |
6bddc3e8 MF |
4530 | |
4531 | int | |
4532 | main () | |
4533 | { | |
4534 | ||
4535 | ; | |
4536 | return 0; | |
4537 | } | |
4538 | _ACEOF | |
c2783492 MF |
4539 | if ac_fn_c_try_compile "$LINENO"; then : |
4540 | ac_cv_header_stdc=yes | |
4541 | else | |
4542 | ac_cv_header_stdc=no | |
fdd6fa61 | 4543 | fi |
c2783492 | 4544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
81ecdfbb | 4545 | |
c2783492 MF |
4546 | if test $ac_cv_header_stdc = yes; then |
4547 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4549 | /* end confdefs.h. */ | |
4550 | #include <string.h> | |
6bddc3e8 | 4551 | |
c2783492 MF |
4552 | _ACEOF |
4553 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4554 | $EGREP "memchr" >/dev/null 2>&1; then : | |
6bddc3e8 | 4555 | |
c2783492 MF |
4556 | else |
4557 | ac_cv_header_stdc=no | |
4558 | fi | |
4559 | rm -f conftest* | |
6bddc3e8 | 4560 | |
6bddc3e8 | 4561 | fi |
81ecdfbb | 4562 | |
c2783492 MF |
4563 | if test $ac_cv_header_stdc = yes; then |
4564 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4566 | /* end confdefs.h. */ | |
4567 | #include <stdlib.h> | |
fdd6fa61 | 4568 | |
c2783492 MF |
4569 | _ACEOF |
4570 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4571 | $EGREP "free" >/dev/null 2>&1; then : | |
6bddc3e8 | 4572 | |
c2783492 MF |
4573 | else |
4574 | ac_cv_header_stdc=no | |
6bddc3e8 | 4575 | fi |
c2783492 | 4576 | rm -f conftest* |
6bddc3e8 | 4577 | |
6bddc3e8 | 4578 | fi |
c2783492 MF |
4579 | |
4580 | if test $ac_cv_header_stdc = yes; then | |
4581 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4582 | if test "$cross_compiling" = yes; then : | |
4583 | : | |
6bddc3e8 | 4584 | else |
c2783492 MF |
4585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4586 | /* end confdefs.h. */ | |
4587 | #include <ctype.h> | |
4588 | #include <stdlib.h> | |
4589 | #if ((' ' & 0x0FF) == 0x020) | |
4590 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4591 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4592 | #else | |
4593 | # define ISLOWER(c) \ | |
4594 | (('a' <= (c) && (c) <= 'i') \ | |
4595 | || ('j' <= (c) && (c) <= 'r') \ | |
4596 | || ('s' <= (c) && (c) <= 'z')) | |
4597 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4598 | #endif | |
4599 | ||
4600 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4601 | int | |
4602 | main () | |
4603 | { | |
4604 | int i; | |
4605 | for (i = 0; i < 256; i++) | |
4606 | if (XOR (islower (i), ISLOWER (i)) | |
4607 | || toupper (i) != TOUPPER (i)) | |
4608 | return 2; | |
4609 | return 0; | |
4610 | } | |
4611 | _ACEOF | |
4612 | if ac_fn_c_try_run "$LINENO"; then : | |
4613 | ||
4614 | else | |
4615 | ac_cv_header_stdc=no | |
4616 | fi | |
4617 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4618 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6bddc3e8 MF |
4619 | fi |
4620 | ||
c2783492 MF |
4621 | fi |
4622 | fi | |
4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4624 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4625 | if test $ac_cv_header_stdc = yes; then | |
6bddc3e8 | 4626 | |
c2783492 | 4627 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
6bddc3e8 | 4628 | |
c2783492 | 4629 | fi |
6bddc3e8 | 4630 | |
c2783492 MF |
4631 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4632 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4633 | inttypes.h stdint.h unistd.h | |
4634 | do : | |
4635 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4636 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4637 | " | |
4638 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4639 | cat >>confdefs.h <<_ACEOF | |
4640 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4641 | _ACEOF | |
4642 | ||
4643 | fi | |
4644 | ||
4645 | done | |
4646 | ||
4647 | ||
c2783492 MF |
4648 | test "$program_prefix" != NONE && |
4649 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4650 | # Use a double $ so make ignores it. | |
4651 | test "$program_suffix" != NONE && | |
4652 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4653 | # Double any \ or $. | |
4654 | # By default was `s,x,x', remove it if useless. | |
4655 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4656 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4657 | ||
4658 | # Find a good install program. We prefer a C program (faster), | |
4659 | # so one script is as good as another. But avoid the broken or | |
4660 | # incompatible versions: | |
4661 | # SysV /etc/install, /usr/sbin/install | |
4662 | # SunOS /usr/etc/install | |
4663 | # IRIX /sbin/install | |
4664 | # AIX /bin/install | |
4665 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4666 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4667 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4668 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4669 | # OS/2's system install, which has a completely different semantic | |
4670 | # ./install, which can be erroneously created by make from ./install.sh. | |
4671 | # Reject install programs that cannot install multiple files. | |
4672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4673 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4674 | if test -z "$INSTALL"; then | |
4675 | if ${ac_cv_path_install+:} false; then : | |
81ecdfbb | 4676 | $as_echo_n "(cached) " >&6 |
c906108c | 4677 | else |
c2783492 | 4678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
b7026657 AC |
4679 | for as_dir in $PATH |
4680 | do | |
4681 | IFS=$as_save_IFS | |
4682 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
4683 | # Account for people who put trailing slashes in PATH elements. |
4684 | case $as_dir/ in #(( | |
4685 | ./ | .// | /[cC]/* | \ | |
4686 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4687 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4688 | /usr/ucb/* ) ;; | |
4689 | *) | |
4690 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4691 | # Don't use installbsd from OSF since it installs stuff as root | |
4692 | # by default. | |
4693 | for ac_prog in ginstall scoinst install; do | |
4694 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4695 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4696 | if test $ac_prog = install && | |
4697 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4698 | # AIX install. It has an incompatible calling convention. | |
4699 | : | |
4700 | elif test $ac_prog = install && | |
4701 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4702 | # program-specific install script used by HP pwplus--don't use. | |
4703 | : | |
4704 | else | |
4705 | rm -rf conftest.one conftest.two conftest.dir | |
4706 | echo one > conftest.one | |
4707 | echo two > conftest.two | |
4708 | mkdir conftest.dir | |
4709 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4710 | test -s conftest.one && test -s conftest.two && | |
4711 | test -s conftest.dir/conftest.one && | |
4712 | test -s conftest.dir/conftest.two | |
4713 | then | |
4714 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4715 | break 3 | |
4716 | fi | |
4717 | fi | |
4718 | fi | |
4719 | done | |
4720 | done | |
4721 | ;; | |
4722 | esac | |
4723 | ||
81ecdfbb RW |
4724 | done |
4725 | IFS=$as_save_IFS | |
b7026657 | 4726 | |
c2783492 MF |
4727 | rm -rf conftest.one conftest.two conftest.dir |
4728 | ||
c906108c | 4729 | fi |
c2783492 MF |
4730 | if test "${ac_cv_path_install+set}" = set; then |
4731 | INSTALL=$ac_cv_path_install | |
4732 | else | |
4733 | # As a last resort, use the slow shell script. Don't cache a | |
4734 | # value for INSTALL within a source directory, because that will | |
4735 | # break other packages using the cache if that directory is | |
4736 | # removed, or if the value is a relative name. | |
4737 | INSTALL=$ac_install_sh | |
4738 | fi | |
c906108c | 4739 | fi |
c2783492 MF |
4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4741 | $as_echo "$INSTALL" >&6; } | |
b7026657 | 4742 | |
c2783492 MF |
4743 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4744 | # It thinks the first close brace ends the variable substitution. | |
4745 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
81ecdfbb | 4746 | |
c2783492 MF |
4747 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4748 | ||
4749 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4750 | ||
4751 | ||
4752 | ||
4753 | ||
c2783492 MF |
4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
4755 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
4756 | if ${ac_cv_c_bigendian+:} false; then : | |
81ecdfbb | 4757 | $as_echo_n "(cached) " >&6 |
b7026657 | 4758 | else |
c2783492 MF |
4759 | ac_cv_c_bigendian=unknown |
4760 | # See if we're dealing with a universal compiler. | |
4761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4762 | /* end confdefs.h. */ | |
4763 | #ifndef __APPLE_CC__ | |
4764 | not a universal capable compiler | |
4765 | #endif | |
4766 | typedef int dummy; | |
c906108c | 4767 | |
c2783492 MF |
4768 | _ACEOF |
4769 | if ac_fn_c_try_compile "$LINENO"; then : | |
4770 | ||
4771 | # Check for potential -arch flags. It is not universal unless | |
4772 | # there are at least two -arch flags with different values. | |
4773 | ac_arch= | |
4774 | ac_prev= | |
4775 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
4776 | if test -n "$ac_prev"; then | |
4777 | case $ac_word in | |
4778 | i?86 | x86_64 | ppc | ppc64) | |
4779 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
4780 | ac_arch=$ac_word | |
4781 | else | |
4782 | ac_cv_c_bigendian=universal | |
4783 | break | |
4784 | fi | |
4785 | ;; | |
4786 | esac | |
4787 | ac_prev= | |
4788 | elif test "x$ac_word" = "x-arch"; then | |
4789 | ac_prev=arch | |
4790 | fi | |
4791 | done | |
b7026657 | 4792 | fi |
c2783492 MF |
4793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4794 | if test $ac_cv_c_bigendian = unknown; then | |
4795 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4797 | /* end confdefs.h. */ | |
4798 | #include <sys/types.h> | |
4799 | #include <sys/param.h> | |
c906108c | 4800 | |
c2783492 MF |
4801 | int |
4802 | main () | |
4803 | { | |
4804 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
4805 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
4806 | && LITTLE_ENDIAN) | |
4807 | bogus endian macros | |
4808 | #endif | |
4809 | ||
4810 | ; | |
4811 | return 0; | |
4812 | } | |
4813 | _ACEOF | |
4814 | if ac_fn_c_try_compile "$LINENO"; then : | |
4815 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
4816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4817 | /* end confdefs.h. */ | |
4818 | #include <sys/types.h> | |
4819 | #include <sys/param.h> | |
4820 | ||
4821 | int | |
4822 | main () | |
4823 | { | |
4824 | #if BYTE_ORDER != BIG_ENDIAN | |
4825 | not big endian | |
4826 | #endif | |
4827 | ||
4828 | ; | |
4829 | return 0; | |
4830 | } | |
4831 | _ACEOF | |
4832 | if ac_fn_c_try_compile "$LINENO"; then : | |
4833 | ac_cv_c_bigendian=yes | |
b7026657 | 4834 | else |
c2783492 MF |
4835 | ac_cv_c_bigendian=no |
4836 | fi | |
4837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b7026657 | 4838 | fi |
c2783492 MF |
4839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4840 | fi | |
4841 | if test $ac_cv_c_bigendian = unknown; then | |
4842 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
4843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4844 | /* end confdefs.h. */ | |
4845 | #include <limits.h> | |
c906108c | 4846 | |
c2783492 MF |
4847 | int |
4848 | main () | |
4849 | { | |
4850 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
4851 | bogus endian macros | |
4852 | #endif | |
4853 | ||
4854 | ; | |
4855 | return 0; | |
4856 | } | |
4857 | _ACEOF | |
4858 | if ac_fn_c_try_compile "$LINENO"; then : | |
4859 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
4860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4861 | /* end confdefs.h. */ | |
4862 | #include <limits.h> | |
4863 | ||
4864 | int | |
4865 | main () | |
4866 | { | |
4867 | #ifndef _BIG_ENDIAN | |
4868 | not big endian | |
4869 | #endif | |
b7026657 | 4870 | |
c2783492 MF |
4871 | ; |
4872 | return 0; | |
4873 | } | |
4874 | _ACEOF | |
4875 | if ac_fn_c_try_compile "$LINENO"; then : | |
4876 | ac_cv_c_bigendian=yes | |
c906108c | 4877 | else |
c2783492 | 4878 | ac_cv_c_bigendian=no |
c906108c | 4879 | fi |
c2783492 MF |
4880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4881 | fi | |
4882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4883 | fi | |
4884 | if test $ac_cv_c_bigendian = unknown; then | |
4885 | # Compile a test program. | |
4886 | if test "$cross_compiling" = yes; then : | |
4887 | # Try to guess by grepping values from an object file. | |
4888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4889 | /* end confdefs.h. */ | |
4890 | short int ascii_mm[] = | |
4891 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
4892 | short int ascii_ii[] = | |
4893 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
4894 | int use_ascii (int i) { | |
4895 | return ascii_mm[i] + ascii_ii[i]; | |
4896 | } | |
4897 | short int ebcdic_ii[] = | |
4898 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
4899 | short int ebcdic_mm[] = | |
4900 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
4901 | int use_ebcdic (int i) { | |
4902 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
4903 | } | |
4904 | extern int foo; | |
c906108c | 4905 | |
c2783492 MF |
4906 | int |
4907 | main () | |
4908 | { | |
4909 | return use_ascii (foo) == use_ebcdic (foo); | |
4910 | ; | |
4911 | return 0; | |
4912 | } | |
4913 | _ACEOF | |
4914 | if ac_fn_c_try_compile "$LINENO"; then : | |
4915 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
4916 | ac_cv_c_bigendian=yes | |
4917 | fi | |
4918 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
4919 | if test "$ac_cv_c_bigendian" = unknown; then | |
4920 | ac_cv_c_bigendian=no | |
4921 | else | |
4922 | # finding both strings is unlikely to happen, but who knows? | |
4923 | ac_cv_c_bigendian=unknown | |
4924 | fi | |
4925 | fi | |
b7026657 | 4926 | fi |
c2783492 | 4927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 4928 | else |
c2783492 MF |
4929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4930 | /* end confdefs.h. */ | |
4931 | $ac_includes_default | |
4932 | int | |
4933 | main () | |
4934 | { | |
4935 | ||
4936 | /* Are we little or big endian? From Harbison&Steele. */ | |
4937 | union | |
4938 | { | |
4939 | long int l; | |
4940 | char c[sizeof (long int)]; | |
4941 | } u; | |
4942 | u.l = 1; | |
4943 | return u.c[sizeof (long int) - 1] == 1; | |
b7026657 | 4944 | |
c2783492 MF |
4945 | ; |
4946 | return 0; | |
4947 | } | |
4948 | _ACEOF | |
4949 | if ac_fn_c_try_run "$LINENO"; then : | |
4950 | ac_cv_c_bigendian=no | |
4951 | else | |
4952 | ac_cv_c_bigendian=yes | |
c906108c | 4953 | fi |
c2783492 MF |
4954 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4955 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c906108c | 4956 | fi |
c2783492 MF |
4957 | |
4958 | fi | |
c906108c | 4959 | fi |
c2783492 MF |
4960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
4961 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
4962 | case $ac_cv_c_bigendian in #( | |
4963 | yes) | |
4964 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
4965 | ;; #( | |
4966 | no) | |
4967 | ;; #( | |
4968 | universal) | |
c906108c | 4969 | |
c2783492 MF |
4970 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
4971 | ||
4972 | ;; #( | |
4973 | *) | |
4974 | as_fn_error $? "unknown endianness | |
4975 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
4976 | esac | |
4977 | ||
4978 | ||
4979 | ||
4980 | ||
a979f2a0 MF |
4981 | if test -n "$ac_tool_prefix"; then |
4982 | # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args. | |
4983 | set dummy ${ac_tool_prefix}dtc; ac_word=$2 | |
4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4985 | $as_echo_n "checking for $ac_word... " >&6; } | |
4986 | if ${ac_cv_prog_DTC+:} false; then : | |
4987 | $as_echo_n "(cached) " >&6 | |
4988 | else | |
4989 | if test -n "$DTC"; then | |
4990 | ac_cv_prog_DTC="$DTC" # Let the user override the test. | |
4991 | else | |
4992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4993 | for as_dir in $PATH | |
4994 | do | |
4995 | IFS=$as_save_IFS | |
4996 | test -z "$as_dir" && as_dir=. | |
4997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4998 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4999 | ac_cv_prog_DTC="${ac_tool_prefix}dtc" | |
5000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5001 | break 2 | |
5002 | fi | |
5003 | done | |
5004 | done | |
5005 | IFS=$as_save_IFS | |
5006 | ||
5007 | fi | |
5008 | fi | |
5009 | DTC=$ac_cv_prog_DTC | |
5010 | if test -n "$DTC"; then | |
5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5 | |
5012 | $as_echo "$DTC" >&6; } | |
5013 | else | |
5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5015 | $as_echo "no" >&6; } | |
5016 | fi | |
5017 | ||
5018 | ||
5019 | fi | |
5020 | if test -z "$ac_cv_prog_DTC"; then | |
5021 | ac_ct_DTC=$DTC | |
5022 | # Extract the first word of "dtc", so it can be a program name with args. | |
5023 | set dummy dtc; ac_word=$2 | |
5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5025 | $as_echo_n "checking for $ac_word... " >&6; } | |
5026 | if ${ac_cv_prog_ac_ct_DTC+:} false; then : | |
5027 | $as_echo_n "(cached) " >&6 | |
5028 | else | |
5029 | if test -n "$ac_ct_DTC"; then | |
5030 | ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test. | |
5031 | else | |
5032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5033 | for as_dir in $PATH | |
5034 | do | |
5035 | IFS=$as_save_IFS | |
5036 | test -z "$as_dir" && as_dir=. | |
5037 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5038 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5039 | ac_cv_prog_ac_ct_DTC="dtc" | |
5040 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5041 | break 2 | |
5042 | fi | |
5043 | done | |
5044 | done | |
5045 | IFS=$as_save_IFS | |
5046 | ||
5047 | fi | |
5048 | fi | |
5049 | ac_ct_DTC=$ac_cv_prog_ac_ct_DTC | |
5050 | if test -n "$ac_ct_DTC"; then | |
5051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5 | |
5052 | $as_echo "$ac_ct_DTC" >&6; } | |
5053 | else | |
5054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5055 | $as_echo "no" >&6; } | |
5056 | fi | |
5057 | ||
5058 | if test "x$ac_ct_DTC" = x; then | |
5059 | DTC="" | |
5060 | else | |
5061 | case $cross_compiling:$ac_tool_warned in | |
5062 | yes:) | |
5063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5064 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5065 | ac_tool_warned=yes ;; | |
5066 | esac | |
5067 | DTC=$ac_ct_DTC | |
5068 | fi | |
5069 | else | |
5070 | DTC="$ac_cv_prog_DTC" | |
5071 | fi | |
5072 | ||
5073 | ||
c2783492 | 5074 | if test "x$cross_compiling" = "xno"; then |
aa0fca16 | 5075 | : "${AR_FOR_BUILD:=\$(AR)}" |
c2783492 | 5076 | : "${CC_FOR_BUILD:=\$(CC)}" |
aa0fca16 | 5077 | : "${RANLIB_FOR_BUILD:=\$(RANLIB)}" |
c2783492 | 5078 | : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}" |
fde7c6bf | 5079 | : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}" |
c2783492 | 5080 | : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}" |
c906108c | 5081 | else |
aa0fca16 | 5082 | : "${AR_FOR_BUILD:=ar}" |
c2783492 | 5083 | : "${CC_FOR_BUILD:=gcc}" |
aa0fca16 | 5084 | : "${RANLIB_FOR_BUILD:=ranlib}" |
c2783492 | 5085 | : "${CFLAGS_FOR_BUILD:=-g -O}" |
fde7c6bf | 5086 | : "${CPPFLAGS_FOR_BUILD:=}" |
c2783492 | 5087 | : "${LDLFAGS_FOR_BUILD:=}" |
c906108c SS |
5088 | fi |
5089 | ||
5090 | ||
c906108c | 5091 | |
c2783492 MF |
5092 | |
5093 | ||
aa0fca16 MF |
5094 | |
5095 | ||
fde7c6bf | 5096 | |
b7026657 | 5097 | if test -n "$ac_tool_prefix"; then |
c2783492 MF |
5098 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5099 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5101 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 5102 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 5103 | $as_echo_n "(cached) " >&6 |
c906108c | 5104 | else |
c2783492 MF |
5105 | if test -n "$AR"; then |
5106 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
c906108c | 5107 | else |
b7026657 AC |
5108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5109 | for as_dir in $PATH | |
5110 | do | |
5111 | IFS=$as_save_IFS | |
5112 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5113 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5114 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 5115 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 5116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
5117 | break 2 |
5118 | fi | |
5119 | done | |
81ecdfbb RW |
5120 | done |
5121 | IFS=$as_save_IFS | |
b7026657 AC |
5122 | |
5123 | fi | |
5124 | fi | |
c2783492 MF |
5125 | AR=$ac_cv_prog_AR |
5126 | if test -n "$AR"; then | |
5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5128 | $as_echo "$AR" >&6; } | |
b7026657 | 5129 | else |
81ecdfbb RW |
5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5131 | $as_echo "no" >&6; } | |
b7026657 AC |
5132 | fi |
5133 | ||
81ecdfbb | 5134 | |
b7026657 | 5135 | fi |
c2783492 MF |
5136 | if test -z "$ac_cv_prog_AR"; then |
5137 | ac_ct_AR=$AR | |
5138 | # Extract the first word of "ar", so it can be a program name with args. | |
5139 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5141 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 5142 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 5143 | $as_echo_n "(cached) " >&6 |
b7026657 | 5144 | else |
c2783492 MF |
5145 | if test -n "$ac_ct_AR"; then |
5146 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
b7026657 AC |
5147 | else |
5148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5149 | for as_dir in $PATH | |
5150 | do | |
5151 | IFS=$as_save_IFS | |
5152 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5153 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5154 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 5155 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 5156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
5157 | break 2 |
5158 | fi | |
5159 | done | |
81ecdfbb RW |
5160 | done |
5161 | IFS=$as_save_IFS | |
b7026657 AC |
5162 | |
5163 | fi | |
5164 | fi | |
c2783492 MF |
5165 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5166 | if test -n "$ac_ct_AR"; then | |
5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5168 | $as_echo "$ac_ct_AR" >&6; } | |
b7026657 | 5169 | else |
81ecdfbb RW |
5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5171 | $as_echo "no" >&6; } | |
c906108c | 5172 | fi |
b7026657 | 5173 | |
c2783492 MF |
5174 | if test "x$ac_ct_AR" = x; then |
5175 | AR="" | |
81ecdfbb RW |
5176 | else |
5177 | case $cross_compiling:$ac_tool_warned in | |
5178 | yes:) | |
5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5180 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5181 | ac_tool_warned=yes ;; | |
5182 | esac | |
c2783492 | 5183 | AR=$ac_ct_AR |
c906108c | 5184 | fi |
c906108c | 5185 | else |
c2783492 | 5186 | AR="$ac_cv_prog_AR" |
c906108c SS |
5187 | fi |
5188 | ||
c2783492 MF |
5189 | if test -n "$ac_tool_prefix"; then |
5190 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5191 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
5192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5193 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 5194 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 5195 | $as_echo_n "(cached) " >&6 |
c906108c | 5196 | else |
c2783492 MF |
5197 | if test -n "$RANLIB"; then |
5198 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
c906108c | 5199 | else |
b7026657 AC |
5200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5201 | for as_dir in $PATH | |
5202 | do | |
5203 | IFS=$as_save_IFS | |
5204 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5205 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5206 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 5207 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 5208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
5209 | break 2 |
5210 | fi | |
5211 | done | |
81ecdfbb RW |
5212 | done |
5213 | IFS=$as_save_IFS | |
b7026657 | 5214 | |
c906108c SS |
5215 | fi |
5216 | fi | |
c2783492 MF |
5217 | RANLIB=$ac_cv_prog_RANLIB |
5218 | if test -n "$RANLIB"; then | |
5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5220 | $as_echo "$RANLIB" >&6; } | |
c906108c | 5221 | else |
81ecdfbb RW |
5222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5223 | $as_echo "no" >&6; } | |
c906108c SS |
5224 | fi |
5225 | ||
81ecdfbb | 5226 | |
b7026657 | 5227 | fi |
c2783492 MF |
5228 | if test -z "$ac_cv_prog_RANLIB"; then |
5229 | ac_ct_RANLIB=$RANLIB | |
5230 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5231 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
5232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5233 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 5234 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 5235 | $as_echo_n "(cached) " >&6 |
c906108c | 5236 | else |
c2783492 MF |
5237 | if test -n "$ac_ct_RANLIB"; then |
5238 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
b7026657 AC |
5239 | else |
5240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5241 | for as_dir in $PATH | |
5242 | do | |
5243 | IFS=$as_save_IFS | |
5244 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5245 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5246 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 5247 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 5248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
5249 | break 2 |
5250 | fi | |
5251 | done | |
81ecdfbb RW |
5252 | done |
5253 | IFS=$as_save_IFS | |
b7026657 | 5254 | |
c906108c | 5255 | fi |
b7026657 | 5256 | fi |
c2783492 MF |
5257 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5258 | if test -n "$ac_ct_RANLIB"; then | |
5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5260 | $as_echo "$ac_ct_RANLIB" >&6; } | |
c906108c | 5261 | else |
81ecdfbb RW |
5262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5263 | $as_echo "no" >&6; } | |
c906108c | 5264 | fi |
b7026657 | 5265 | |
c2783492 MF |
5266 | if test "x$ac_ct_RANLIB" = x; then |
5267 | RANLIB=":" | |
81ecdfbb RW |
5268 | else |
5269 | case $cross_compiling:$ac_tool_warned in | |
5270 | yes:) | |
5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5272 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5273 | ac_tool_warned=yes ;; | |
5274 | esac | |
c2783492 | 5275 | RANLIB=$ac_ct_RANLIB |
81ecdfbb | 5276 | fi |
c2783492 MF |
5277 | else |
5278 | RANLIB="$ac_cv_prog_RANLIB" | |
5279 | fi | |
5280 | ||
5281 | ||
d57b6533 MF |
5282 | |
5283 | ||
5284 | ||
5285 | ||
5286 | ||
5287 | ||
5288 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
5289 | if test -n "$ac_tool_prefix"; then | |
5290 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
5291 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
5292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5293 | $as_echo_n "checking for $ac_word... " >&6; } | |
5294 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
5295 | $as_echo_n "(cached) " >&6 | |
5296 | else | |
5297 | case $PKG_CONFIG in | |
5298 | [\\/]* | ?:[\\/]*) | |
5299 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
5300 | ;; | |
5301 | *) | |
5302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5303 | for as_dir in $PATH | |
5304 | do | |
5305 | IFS=$as_save_IFS | |
5306 | test -z "$as_dir" && as_dir=. | |
5307 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5308 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5309 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
5310 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5311 | break 2 | |
5312 | fi | |
5313 | done | |
5314 | done | |
5315 | IFS=$as_save_IFS | |
5316 | ||
5317 | ;; | |
5318 | esac | |
5319 | fi | |
5320 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
5321 | if test -n "$PKG_CONFIG"; then | |
5322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
5323 | $as_echo "$PKG_CONFIG" >&6; } | |
5324 | else | |
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5326 | $as_echo "no" >&6; } | |
5327 | fi | |
5328 | ||
5329 | ||
5330 | fi | |
5331 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
5332 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
5333 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
5334 | set dummy pkg-config; ac_word=$2 | |
5335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5336 | $as_echo_n "checking for $ac_word... " >&6; } | |
5337 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
5338 | $as_echo_n "(cached) " >&6 | |
5339 | else | |
5340 | case $ac_pt_PKG_CONFIG in | |
5341 | [\\/]* | ?:[\\/]*) | |
5342 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
5343 | ;; | |
5344 | *) | |
5345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5346 | for as_dir in $PATH | |
5347 | do | |
5348 | IFS=$as_save_IFS | |
5349 | test -z "$as_dir" && as_dir=. | |
5350 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5351 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5352 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
5353 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5354 | break 2 | |
5355 | fi | |
5356 | done | |
5357 | done | |
5358 | IFS=$as_save_IFS | |
5359 | ||
5360 | ;; | |
5361 | esac | |
5362 | fi | |
5363 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
5364 | if test -n "$ac_pt_PKG_CONFIG"; then | |
5365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
5366 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
5367 | else | |
5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5369 | $as_echo "no" >&6; } | |
5370 | fi | |
5371 | ||
5372 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
5373 | PKG_CONFIG="" | |
5374 | else | |
5375 | case $cross_compiling:$ac_tool_warned in | |
5376 | yes:) | |
5377 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5378 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5379 | ac_tool_warned=yes ;; | |
5380 | esac | |
5381 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
5382 | fi | |
5383 | else | |
5384 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
5385 | fi | |
5386 | ||
5387 | fi | |
5388 | if test -n "$PKG_CONFIG"; then | |
5389 | _pkg_min_version=0.9.0 | |
5390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
5391 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
5392 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
5393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5394 | $as_echo "yes" >&6; } | |
5395 | else | |
5396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5397 | $as_echo "no" >&6; } | |
5398 | PKG_CONFIG="" | |
5399 | fi | |
5400 | fi | |
5401 | ||
c2783492 MF |
5402 | # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using |
5403 | # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands | |
5404 | # is C99. So handle it ourselves. | |
5405 | : | |
5406 | C_DIALECT= | |
5407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5 | |
5408 | $as_echo_n "checking whether C11 is supported by default... " >&6; } | |
5409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5410 | /* end confdefs.h. */ | |
5411 | ||
5412 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
5413 | # error "C11 support not found" | |
5414 | #endif | |
5415 | ||
5416 | _ACEOF | |
5417 | if ac_fn_c_try_compile "$LINENO"; then : | |
5418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5419 | $as_echo "yes" >&6; } | |
5420 | else | |
5421 | ||
5422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5423 | $as_echo "no" >&6; } | |
5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5 | |
5425 | $as_echo_n "checking for -std=c11 support... " >&6; } | |
5426 | ac_save_CC="$CC" | |
5427 | CC="$CC -std=c11" | |
5428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5429 | /* end confdefs.h. */ | |
5430 | ||
5431 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
5432 | # error "C11 support not found" | |
5433 | #endif | |
5434 | ||
5435 | _ACEOF | |
5436 | if ac_fn_c_try_compile "$LINENO"; then : | |
5437 | ||
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5439 | $as_echo "yes" >&6; } | |
5440 | CC="$ac_save_CC" | |
5441 | C_DIALECT="-std=c11" | |
5442 | ||
5443 | else | |
5444 | as_fn_error $? "C11 is required" "$LINENO" 5 | |
5445 | fi | |
5446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5447 | fi | |
5448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5449 | ||
5450 | ||
5451 | ||
5452 | ||
c906108c | 5453 | |
b15c5d7a MF |
5454 | for ac_header in $ac_header_list |
5455 | do : | |
5456 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5457 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5458 | " | |
5459 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5460 | cat >>confdefs.h <<_ACEOF | |
5461 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5462 | _ACEOF | |
5463 | ||
b7026657 AC |
5464 | fi |
5465 | ||
b15c5d7a | 5466 | done |
b7026657 | 5467 | |
b7026657 | 5468 | |
c2783492 | 5469 | |
c2783492 | 5470 | |
c2783492 | 5471 | |
c2783492 | 5472 | |
c2783492 | 5473 | |
b15c5d7a MF |
5474 | |
5475 | ||
5476 | ||
5477 | ||
5478 | ||
5479 | ||
5480 | ||
5481 | ||
5482 | ||
5483 | ||
5484 | ||
5485 | ||
5486 | ||
5487 | ||
5488 | ||
5489 | ||
5490 | ||
5491 | ||
5492 | ||
5493 | ||
5494 | ||
5495 | ||
a48ff3ef MF |
5496 | |
5497 | ||
5498 | ||
5499 | ||
5500 | ||
5501 | ||
5502 | ||
5503 | ||
5504 | ||
5505 | ||
5506 | ||
5507 | ||
b15c5d7a MF |
5508 | |
5509 | ||
5510 | ||
5511 | ||
b15c5d7a MF |
5512 | |
5513 | ||
5514 | ||
5515 | for ac_func in $ac_func_list | |
5516 | do : | |
5517 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5518 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5519 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5520 | cat >>confdefs.h <<_ACEOF | |
5521 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5522 | _ACEOF | |
5523 | ||
5524 | fi | |
5525 | done | |
5526 | ||
5527 | ||
5528 | ||
5529 | ||
5530 | ||
5531 | ||
5532 | ||
5533 | ||
5534 | ||
5535 | ||
5536 | ||
5537 | ||
5538 | ||
5539 | ||
5540 | ||
5541 | ||
5542 | ||
5543 | ||
5544 | ||
5545 | ||
5546 | ||
5547 | ||
5548 | ||
5549 | ||
5550 | ||
5551 | ||
5552 | ||
5553 | ||
5554 | ||
5555 | ||
5556 | ||
5557 | ||
5558 | ||
5559 | ||
5560 | ||
5561 | ||
5562 | ||
5563 | ||
5564 | ||
5565 | ||
5566 | ||
5567 | ||
5568 | ||
5569 | ||
5570 | ||
5571 | ||
5572 | ||
5573 | ||
5574 | ||
5575 | ||
5576 | ||
5577 | ||
5578 | ||
5579 | ||
5580 | ||
5581 | ||
5582 | ||
5583 | ||
5584 | ||
a48ff3ef MF |
5585 | |
5586 | ||
5587 | ||
5588 | ||
5589 | ||
5590 | ||
5591 | ||
5592 | ||
5593 | ||
5594 | ||
5595 | ||
5596 | ||
5597 | ||
5598 | ||
5599 | ||
5600 | ||
5601 | ||
5602 | ||
5603 | ||
5604 | ||
5605 | ||
5606 | ||
5607 | ||
5608 | ||
5609 | ||
5610 | ||
5611 | ||
5612 | ||
5613 | ||
5614 | ||
5615 | ||
5616 | ||
5617 | ||
5618 | ||
5619 | ||
5620 | ||
5621 | ||
5622 | ||
5623 | ||
5624 | ||
5625 | ||
5626 | ||
5627 | ||
5628 | ||
5629 | ||
5630 | ||
5631 | ||
5632 | ||
5633 | ||
5634 | ||
5635 | ||
5636 | ||
5637 | ||
5638 | ||
5639 | ||
5640 | ||
5641 | ||
5642 | ||
5643 | ||
95955095 MF |
5644 | |
5645 | ||
5646 | ||
5647 | ||
a48ff3ef MF |
5648 | |
5649 | ||
5650 | ||
5651 | ||
5652 | ||
5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
5654 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
5655 | if ${ac_cv_struct_tm+:} false; then : | |
5656 | $as_echo_n "(cached) " >&6 | |
5657 | else | |
5658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5659 | /* end confdefs.h. */ | |
5660 | #include <sys/types.h> | |
5661 | #include <time.h> | |
5662 | ||
5663 | int | |
5664 | main () | |
5665 | { | |
5666 | struct tm tm; | |
5667 | int *p = &tm.tm_sec; | |
5668 | return !p; | |
5669 | ; | |
5670 | return 0; | |
5671 | } | |
5672 | _ACEOF | |
5673 | if ac_fn_c_try_compile "$LINENO"; then : | |
5674 | ac_cv_struct_tm=time.h | |
5675 | else | |
5676 | ac_cv_struct_tm=sys/time.h | |
5677 | fi | |
5678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5679 | fi | |
5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
5681 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5682 | if test $ac_cv_struct_tm = sys/time.h; then | |
5683 | ||
5684 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
5685 | ||
5686 | fi | |
5687 | ||
5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
5689 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
5690 | if ${ac_cv_type_uid_t+:} false; then : | |
5691 | $as_echo_n "(cached) " >&6 | |
5692 | else | |
5693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5694 | /* end confdefs.h. */ | |
5695 | #include <sys/types.h> | |
5696 | ||
5697 | _ACEOF | |
5698 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5699 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
5700 | ac_cv_type_uid_t=yes | |
5701 | else | |
5702 | ac_cv_type_uid_t=no | |
5703 | fi | |
5704 | rm -f conftest* | |
5705 | ||
5706 | fi | |
5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | |
5708 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
5709 | if test $ac_cv_type_uid_t = no; then | |
5710 | ||
5711 | $as_echo "#define uid_t int" >>confdefs.h | |
5712 | ||
5713 | ||
5714 | $as_echo "#define gid_t int" >>confdefs.h | |
5715 | ||
5716 | fi | |
5717 | ||
b5689863 MF |
5718 | case `pwd` in |
5719 | *\ * | *\ *) | |
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5721 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5722 | esac | |
a48ff3ef | 5723 | |
a48ff3ef | 5724 | |
a48ff3ef | 5725 | |
b5689863 MF |
5726 | macro_version='2.2.7a' |
5727 | macro_revision='1.3134' | |
a48ff3ef | 5728 | |
a48ff3ef | 5729 | |
a48ff3ef | 5730 | |
a48ff3ef | 5731 | |
a48ff3ef | 5732 | |
a48ff3ef | 5733 | |
a48ff3ef | 5734 | |
a48ff3ef | 5735 | |
a48ff3ef | 5736 | |
a48ff3ef MF |
5737 | |
5738 | ||
5739 | ||
5740 | ||
b5689863 | 5741 | ltmain="$ac_aux_dir/ltmain.sh" |
a48ff3ef | 5742 | |
b5689863 MF |
5743 | # Backslashify metacharacters that are still active within |
5744 | # double-quoted strings. | |
5745 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
a48ff3ef | 5746 | |
b5689863 MF |
5747 | # Same as above, but do not quote variable references. |
5748 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
a48ff3ef | 5749 | |
b5689863 MF |
5750 | # Sed substitution to delay expansion of an escaped shell variable in a |
5751 | # double_quote_subst'ed string. | |
5752 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5753 | ||
5754 | # Sed substitution to delay expansion of an escaped single quote. | |
5755 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5756 | ||
5757 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5758 | no_glob_subst='s/\*/\\\*/g' | |
5759 | ||
5760 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5761 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5762 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
a48ff3ef | 5763 | |
b5689863 MF |
5764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
5765 | $as_echo_n "checking how to print strings... " >&6; } | |
5766 | # Test print first, because it will be a builtin if present. | |
5767 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5768 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5769 | ECHO='print -r --' | |
5770 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5771 | ECHO='printf %s\n' | |
5772 | else | |
5773 | # Use this function as a fallback that always works. | |
5774 | func_fallback_echo () | |
5775 | { | |
5776 | eval 'cat <<_LTECHO_EOF | |
5777 | $1 | |
5778 | _LTECHO_EOF' | |
5779 | } | |
5780 | ECHO='func_fallback_echo' | |
a48ff3ef MF |
5781 | fi |
5782 | ||
b5689863 MF |
5783 | # func_echo_all arg... |
5784 | # Invoke $ECHO with all args, space-separated. | |
5785 | func_echo_all () | |
5786 | { | |
5787 | $ECHO "" | |
5788 | } | |
5789 | ||
5790 | case "$ECHO" in | |
5791 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5792 | $as_echo "printf" >&6; } ;; | |
5793 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5794 | $as_echo "print -r" >&6; } ;; | |
5795 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5796 | $as_echo "cat" >&6; } ;; | |
5797 | esac | |
5798 | ||
5799 | ||
a48ff3ef | 5800 | |
a48ff3ef | 5801 | |
a48ff3ef MF |
5802 | |
5803 | ||
a48ff3ef | 5804 | |
a48ff3ef | 5805 | |
a48ff3ef MF |
5806 | |
5807 | ||
a48ff3ef | 5808 | |
a48ff3ef MF |
5809 | |
5810 | ||
a48ff3ef | 5811 | |
b5689863 MF |
5812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5813 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5814 | if ${ac_cv_path_SED+:} false; then : | |
5815 | $as_echo_n "(cached) " >&6 | |
5816 | else | |
5817 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5818 | for ac_i in 1 2 3 4 5 6 7; do | |
5819 | ac_script="$ac_script$as_nl$ac_script" | |
5820 | done | |
5821 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5822 | { ac_script=; unset ac_script;} | |
5823 | if test -z "$SED"; then | |
5824 | ac_path_SED_found=false | |
5825 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5827 | for as_dir in $PATH | |
5828 | do | |
5829 | IFS=$as_save_IFS | |
5830 | test -z "$as_dir" && as_dir=. | |
5831 | for ac_prog in sed gsed; do | |
5832 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5833 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5834 | as_fn_executable_p "$ac_path_SED" || continue | |
5835 | # Check for GNU ac_path_SED and select it if it is found. | |
5836 | # Check for GNU $ac_path_SED | |
5837 | case `"$ac_path_SED" --version 2>&1` in | |
5838 | *GNU*) | |
5839 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5840 | *) | |
5841 | ac_count=0 | |
5842 | $as_echo_n 0123456789 >"conftest.in" | |
5843 | while : | |
5844 | do | |
5845 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5846 | mv "conftest.tmp" "conftest.in" | |
5847 | cp "conftest.in" "conftest.nl" | |
5848 | $as_echo '' >> "conftest.nl" | |
5849 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5850 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5851 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5852 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5853 | # Best one so far, save it but keep looking for a better one | |
5854 | ac_cv_path_SED="$ac_path_SED" | |
5855 | ac_path_SED_max=$ac_count | |
5856 | fi | |
5857 | # 10*(2^10) chars as input seems more than enough | |
5858 | test $ac_count -gt 10 && break | |
5859 | done | |
5860 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5861 | esac | |
5862 | ||
5863 | $ac_path_SED_found && break 3 | |
5864 | done | |
5865 | done | |
5866 | done | |
5867 | IFS=$as_save_IFS | |
5868 | if test -z "$ac_cv_path_SED"; then | |
5869 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5870 | fi | |
5871 | else | |
5872 | ac_cv_path_SED=$SED | |
a48ff3ef MF |
5873 | fi |
5874 | ||
b5689863 MF |
5875 | fi |
5876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5877 | $as_echo "$ac_cv_path_SED" >&6; } | |
5878 | SED="$ac_cv_path_SED" | |
5879 | rm -f conftest.sed | |
a48ff3ef | 5880 | |
b5689863 MF |
5881 | test -z "$SED" && SED=sed |
5882 | Xsed="$SED -e 1s/^X//" | |
a48ff3ef | 5883 | |
a48ff3ef | 5884 | |
a48ff3ef MF |
5885 | |
5886 | ||
a48ff3ef | 5887 | |
a48ff3ef | 5888 | |
a48ff3ef | 5889 | |
a48ff3ef | 5890 | |
a48ff3ef | 5891 | |
b5689863 MF |
5892 | |
5893 | ||
5894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5895 | $as_echo_n "checking for fgrep... " >&6; } | |
5896 | if ${ac_cv_path_FGREP+:} false; then : | |
a48ff3ef MF |
5897 | $as_echo_n "(cached) " >&6 |
5898 | else | |
b5689863 MF |
5899 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5900 | then ac_cv_path_FGREP="$GREP -F" | |
5901 | else | |
5902 | if test -z "$FGREP"; then | |
5903 | ac_path_FGREP_found=false | |
5904 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5906 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5907 | do | |
5908 | IFS=$as_save_IFS | |
5909 | test -z "$as_dir" && as_dir=. | |
5910 | for ac_prog in fgrep; do | |
5911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5912 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5913 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5914 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5915 | # Check for GNU $ac_path_FGREP | |
5916 | case `"$ac_path_FGREP" --version 2>&1` in | |
5917 | *GNU*) | |
5918 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5919 | *) | |
5920 | ac_count=0 | |
5921 | $as_echo_n 0123456789 >"conftest.in" | |
5922 | while : | |
5923 | do | |
5924 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5925 | mv "conftest.tmp" "conftest.in" | |
5926 | cp "conftest.in" "conftest.nl" | |
5927 | $as_echo 'FGREP' >> "conftest.nl" | |
5928 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5929 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5930 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5931 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5932 | # Best one so far, save it but keep looking for a better one | |
5933 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5934 | ac_path_FGREP_max=$ac_count | |
5935 | fi | |
5936 | # 10*(2^10) chars as input seems more than enough | |
5937 | test $ac_count -gt 10 && break | |
5938 | done | |
5939 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5940 | esac | |
5941 | ||
5942 | $ac_path_FGREP_found && break 3 | |
5943 | done | |
5944 | done | |
5945 | done | |
5946 | IFS=$as_save_IFS | |
5947 | if test -z "$ac_cv_path_FGREP"; then | |
5948 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5949 | fi | |
5950 | else | |
5951 | ac_cv_path_FGREP=$FGREP | |
5952 | fi | |
5953 | ||
5954 | fi | |
5955 | fi | |
5956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5957 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5958 | FGREP="$ac_cv_path_FGREP" | |
5959 | ||
5960 | ||
5961 | test -z "$GREP" && GREP=grep | |
5962 | ||
5963 | ||
5964 | ||
5965 | ||
5966 | ||
5967 | ||
5968 | ||
5969 | ||
5970 | ||
5971 | ||
5972 | ||
5973 | ||
5974 | ||
5975 | ||
5976 | ||
5977 | ||
5978 | ||
5979 | ||
5980 | ||
5981 | # Check whether --with-gnu-ld was given. | |
5982 | if test "${with_gnu_ld+set}" = set; then : | |
5983 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5984 | else | |
5985 | with_gnu_ld=no | |
5986 | fi | |
5987 | ||
5988 | ac_prog=ld | |
5989 | if test "$GCC" = yes; then | |
5990 | # Check if gcc -print-prog-name=ld gives a path. | |
5991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5992 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5993 | case $host in | |
5994 | *-*-mingw*) | |
5995 | # gcc leaves a trailing carriage return which upsets mingw | |
5996 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5997 | *) | |
5998 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5999 | esac | |
6000 | case $ac_prog in | |
6001 | # Accept absolute paths. | |
6002 | [\\/]* | ?:[\\/]*) | |
6003 | re_direlt='/[^/][^/]*/\.\./' | |
6004 | # Canonicalize the pathname of ld | |
6005 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6006 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6007 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6008 | done | |
6009 | test -z "$LD" && LD="$ac_prog" | |
6010 | ;; | |
6011 | "") | |
6012 | # If it fails, then pretend we aren't using GCC. | |
6013 | ac_prog=ld | |
6014 | ;; | |
6015 | *) | |
6016 | # If it is relative, then search for the first ld in PATH. | |
6017 | with_gnu_ld=unknown | |
6018 | ;; | |
6019 | esac | |
6020 | elif test "$with_gnu_ld" = yes; then | |
6021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
6022 | $as_echo_n "checking for GNU ld... " >&6; } | |
6023 | else | |
6024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
6025 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
6026 | fi | |
6027 | if ${lt_cv_path_LD+:} false; then : | |
6028 | $as_echo_n "(cached) " >&6 | |
6029 | else | |
6030 | if test -z "$LD"; then | |
6031 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6032 | for ac_dir in $PATH; do | |
6033 | IFS="$lt_save_ifs" | |
6034 | test -z "$ac_dir" && ac_dir=. | |
6035 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6036 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6037 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6038 | # but apparently some variants of GNU ld only accept -v. | |
6039 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6040 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6041 | *GNU* | *'with BFD'*) | |
6042 | test "$with_gnu_ld" != no && break | |
6043 | ;; | |
6044 | *) | |
6045 | test "$with_gnu_ld" != yes && break | |
6046 | ;; | |
6047 | esac | |
6048 | fi | |
6049 | done | |
6050 | IFS="$lt_save_ifs" | |
6051 | else | |
6052 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6053 | fi | |
6054 | fi | |
6055 | ||
6056 | LD="$lt_cv_path_LD" | |
6057 | if test -n "$LD"; then | |
6058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
6059 | $as_echo "$LD" >&6; } | |
6060 | else | |
6061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6062 | $as_echo "no" >&6; } | |
6063 | fi | |
6064 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
6065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
6066 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
6067 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
6068 | $as_echo_n "(cached) " >&6 | |
6069 | else | |
6070 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6071 | case `$LD -v 2>&1 </dev/null` in | |
6072 | *GNU* | *'with BFD'*) | |
6073 | lt_cv_prog_gnu_ld=yes | |
6074 | ;; | |
6075 | *) | |
6076 | lt_cv_prog_gnu_ld=no | |
6077 | ;; | |
6078 | esac | |
6079 | fi | |
6080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
6081 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6082 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
6083 | ||
6084 | ||
6085 | ||
6086 | ||
6087 | ||
6088 | ||
6089 | ||
6090 | ||
6091 | ||
6092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
6093 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
6094 | if ${lt_cv_path_NM+:} false; then : | |
6095 | $as_echo_n "(cached) " >&6 | |
6096 | else | |
6097 | if test -n "$NM"; then | |
b9004024 NA |
6098 | # Let the user override the nm to test. |
6099 | lt_nm_to_check="$NM" | |
6100 | else | |
6101 | lt_nm_to_check="${ac_tool_prefix}nm" | |
6102 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6103 | lt_nm_to_check="$lt_nm_to_check nm" | |
6104 | fi | |
6105 | fi | |
caf606c9 | 6106 | for lt_tmp_nm in "$lt_nm_to_check"; do |
b9004024 NA |
6107 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6108 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6109 | IFS="$lt_save_ifs" | |
6110 | test -z "$ac_dir" && ac_dir=. | |
caf606c9 NA |
6111 | # Strip out any user-provided options from the nm to test twice, |
6112 | # the first time to test to see if nm (rather than its options) has | |
6113 | # an explicit path, the second time to yield a file which can be | |
6114 | # nm'ed itself. | |
6115 | tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" | |
6116 | case "$tmp_nm_path" in | |
b9004024 NA |
6117 | */*|*\\*) tmp_nm="$lt_tmp_nm";; |
6118 | *) tmp_nm="$ac_dir/$lt_tmp_nm";; | |
6119 | esac | |
caf606c9 NA |
6120 | tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" |
6121 | if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then | |
b9004024 NA |
6122 | # Check to see if the nm accepts a BSD-compat flag. |
6123 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6124 | # nm: unknown option "B" ignored | |
caf606c9 | 6125 | case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
b9004024 NA |
6126 | *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" |
6127 | break | |
6128 | ;; | |
6129 | *) | |
caf606c9 | 6130 | case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
b9004024 NA |
6131 | *$tmp_nm*) |
6132 | lt_cv_path_NM="$tmp_nm -p" | |
6133 | break | |
6134 | ;; | |
6135 | *) | |
6136 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6137 | continue # so that we can try to find one that supports BSD flags | |
6138 | ;; | |
6139 | esac | |
6140 | ;; | |
6141 | esac | |
6142 | fi | |
6143 | done | |
6144 | IFS="$lt_save_ifs" | |
6145 | done | |
6146 | : ${lt_cv_path_NM=no} | |
b5689863 MF |
6147 | fi |
6148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
6149 | $as_echo "$lt_cv_path_NM" >&6; } | |
6150 | if test "$lt_cv_path_NM" != "no"; then | |
6151 | NM="$lt_cv_path_NM" | |
6152 | else | |
6153 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
6154 | if test -n "$DUMPBIN"; then : | |
6155 | # Let the user override the test. | |
6156 | else | |
6157 | if test -n "$ac_tool_prefix"; then | |
6158 | for ac_prog in dumpbin "link -dump" | |
6159 | do | |
6160 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6161 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6163 | $as_echo_n "checking for $ac_word... " >&6; } | |
6164 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
6165 | $as_echo_n "(cached) " >&6 | |
6166 | else | |
6167 | if test -n "$DUMPBIN"; then | |
6168 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
6169 | else | |
6170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6171 | for as_dir in $PATH | |
6172 | do | |
6173 | IFS=$as_save_IFS | |
6174 | test -z "$as_dir" && as_dir=. | |
6175 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6176 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6177 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
6178 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6179 | break 2 | |
6180 | fi | |
6181 | done | |
6182 | done | |
6183 | IFS=$as_save_IFS | |
6184 | ||
6185 | fi | |
6186 | fi | |
6187 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
6188 | if test -n "$DUMPBIN"; then | |
6189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
6190 | $as_echo "$DUMPBIN" >&6; } | |
6191 | else | |
6192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6193 | $as_echo "no" >&6; } | |
6194 | fi | |
6195 | ||
6196 | ||
6197 | test -n "$DUMPBIN" && break | |
6198 | done | |
6199 | fi | |
6200 | if test -z "$DUMPBIN"; then | |
6201 | ac_ct_DUMPBIN=$DUMPBIN | |
6202 | for ac_prog in dumpbin "link -dump" | |
6203 | do | |
6204 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6205 | set dummy $ac_prog; ac_word=$2 | |
6206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6207 | $as_echo_n "checking for $ac_word... " >&6; } | |
6208 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
6209 | $as_echo_n "(cached) " >&6 | |
6210 | else | |
6211 | if test -n "$ac_ct_DUMPBIN"; then | |
6212 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
6213 | else | |
6214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6215 | for as_dir in $PATH | |
6216 | do | |
6217 | IFS=$as_save_IFS | |
6218 | test -z "$as_dir" && as_dir=. | |
6219 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6220 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6221 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
6222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6223 | break 2 | |
6224 | fi | |
6225 | done | |
6226 | done | |
6227 | IFS=$as_save_IFS | |
6228 | ||
6229 | fi | |
6230 | fi | |
6231 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
6232 | if test -n "$ac_ct_DUMPBIN"; then | |
6233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
6234 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
6235 | else | |
6236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6237 | $as_echo "no" >&6; } | |
6238 | fi | |
6239 | ||
6240 | ||
6241 | test -n "$ac_ct_DUMPBIN" && break | |
6242 | done | |
6243 | ||
6244 | if test "x$ac_ct_DUMPBIN" = x; then | |
6245 | DUMPBIN=":" | |
6246 | else | |
6247 | case $cross_compiling:$ac_tool_warned in | |
6248 | yes:) | |
6249 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6250 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6251 | ac_tool_warned=yes ;; | |
6252 | esac | |
6253 | DUMPBIN=$ac_ct_DUMPBIN | |
6254 | fi | |
6255 | fi | |
6256 | ||
6257 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
6258 | *COFF*) | |
6259 | DUMPBIN="$DUMPBIN -symbols" | |
6260 | ;; | |
6261 | *) | |
6262 | DUMPBIN=: | |
6263 | ;; | |
6264 | esac | |
6265 | fi | |
6266 | ||
6267 | if test "$DUMPBIN" != ":"; then | |
6268 | NM="$DUMPBIN" | |
6269 | fi | |
6270 | fi | |
6271 | test -z "$NM" && NM=nm | |
6272 | ||
6273 | ||
6274 | ||
6275 | ||
6276 | ||
6277 | ||
6278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
6279 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6280 | if ${lt_cv_nm_interface+:} false; then : | |
6281 | $as_echo_n "(cached) " >&6 | |
6282 | else | |
6283 | lt_cv_nm_interface="BSD nm" | |
6284 | echo "int some_variable = 0;" > conftest.$ac_ext | |
6285 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
6286 | (eval "$ac_compile" 2>conftest.err) | |
6287 | cat conftest.err >&5 | |
6288 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6289 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
6290 | cat conftest.err >&5 | |
6291 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
6292 | cat conftest.out >&5 | |
6293 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6294 | lt_cv_nm_interface="MS dumpbin" | |
6295 | fi | |
6296 | rm -f conftest* | |
6297 | fi | |
6298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
6299 | $as_echo "$lt_cv_nm_interface" >&6; } | |
6300 | ||
6301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
6302 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6303 | LN_S=$as_ln_s | |
6304 | if test "$LN_S" = "ln -s"; then | |
6305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6306 | $as_echo "yes" >&6; } | |
6307 | else | |
6308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
6309 | $as_echo "no, using $LN_S" >&6; } | |
6310 | fi | |
6311 | ||
6312 | # find the maximum length of command line arguments | |
6313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6314 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6315 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
6316 | $as_echo_n "(cached) " >&6 | |
6317 | else | |
6318 | i=0 | |
6319 | teststring="ABCD" | |
6320 | ||
6321 | case $build_os in | |
6322 | msdosdjgpp*) | |
6323 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6324 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6325 | # during glob expansion). Even if it were fixed, the result of this | |
6326 | # check would be larger than it should be. | |
6327 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6328 | ;; | |
6329 | ||
6330 | gnu*) | |
6331 | # Under GNU Hurd, this test is not required because there is | |
6332 | # no limit to the length of command line arguments. | |
6333 | # Libtool will interpret -1 as no limit whatsoever | |
6334 | lt_cv_sys_max_cmd_len=-1; | |
6335 | ;; | |
6336 | ||
6337 | cygwin* | mingw* | cegcc*) | |
6338 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6339 | # about 5 minutes as the teststring grows exponentially. | |
6340 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6341 | # you end up with a "frozen" computer, even though with patience | |
6342 | # the test eventually succeeds (with a max line length of 256k). | |
6343 | # Instead, let's just punt: use the minimum linelength reported by | |
6344 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6345 | lt_cv_sys_max_cmd_len=8192; | |
6346 | ;; | |
6347 | ||
6348 | mint*) | |
6349 | # On MiNT this can take a long time and run out of memory. | |
6350 | lt_cv_sys_max_cmd_len=8192; | |
6351 | ;; | |
6352 | ||
6353 | amigaos*) | |
6354 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6355 | # So we just punt and use a minimum line length of 8192. | |
6356 | lt_cv_sys_max_cmd_len=8192; | |
6357 | ;; | |
6358 | ||
6359 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
6360 | # This has been around since 386BSD, at least. Likely further. | |
6361 | if test -x /sbin/sysctl; then | |
6362 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6363 | elif test -x /usr/sbin/sysctl; then | |
6364 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6365 | else | |
6366 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6367 | fi | |
6368 | # And add a safety zone | |
6369 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6370 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6371 | ;; | |
6372 | ||
6373 | interix*) | |
6374 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6375 | lt_cv_sys_max_cmd_len=196608 | |
6376 | ;; | |
6377 | ||
6378 | osf*) | |
6379 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6380 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6381 | # nice to cause kernel panics so lets avoid the loop below. | |
6382 | # First set a reasonable default. | |
6383 | lt_cv_sys_max_cmd_len=16384 | |
6384 | # | |
6385 | if test -x /sbin/sysconfig; then | |
6386 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6387 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6388 | esac | |
6389 | fi | |
6390 | ;; | |
6391 | sco3.2v5*) | |
6392 | lt_cv_sys_max_cmd_len=102400 | |
6393 | ;; | |
6394 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6395 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6396 | if test -n "$kargmax"; then | |
6397 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6398 | else | |
6399 | lt_cv_sys_max_cmd_len=32768 | |
6400 | fi | |
6401 | ;; | |
6402 | *) | |
6403 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6404 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6405 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6406 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6407 | else | |
6408 | # Make teststring a little bigger before we do anything with it. | |
6409 | # a 1K string should be a reasonable start. | |
6410 | for i in 1 2 3 4 5 6 7 8 ; do | |
6411 | teststring=$teststring$teststring | |
6412 | done | |
6413 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6414 | # If test is not a shell built-in, we'll probably end up computing a | |
6415 | # maximum length that is only half of the actual maximum length, but | |
6416 | # we can't tell. | |
6417 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
6418 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
6419 | test $i != 17 # 1/2 MB should be enough | |
6420 | do | |
6421 | i=`expr $i + 1` | |
6422 | teststring=$teststring$teststring | |
6423 | done | |
6424 | # Only check the string length outside the loop. | |
6425 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6426 | teststring= | |
6427 | # Add a significant safety factor because C++ compilers can tack on | |
6428 | # massive amounts of additional arguments before passing them to the | |
6429 | # linker. It appears as though 1/2 is a usable value. | |
6430 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6431 | fi | |
6432 | ;; | |
6433 | esac | |
6434 | ||
6435 | fi | |
6436 | ||
6437 | if test -n $lt_cv_sys_max_cmd_len ; then | |
6438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6439 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6440 | else | |
6441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6442 | $as_echo "none" >&6; } | |
6443 | fi | |
6444 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
6445 | ||
6446 | ||
6447 | ||
6448 | ||
6449 | ||
6450 | ||
6451 | : ${CP="cp -f"} | |
6452 | : ${MV="mv -f"} | |
6453 | : ${RM="rm -f"} | |
6454 | ||
6455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
6456 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6457 | # Try some XSI features | |
6458 | xsi_shell=no | |
6459 | ( _lt_dummy="a/b/c" | |
6460 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6461 | = c,a/b,, \ | |
6462 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6463 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6464 | && xsi_shell=yes | |
6465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6466 | $as_echo "$xsi_shell" >&6; } | |
6467 | ||
6468 | ||
6469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6470 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6471 | lt_shell_append=no | |
6472 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6473 | >/dev/null 2>&1 \ | |
6474 | && lt_shell_append=yes | |
6475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6476 | $as_echo "$lt_shell_append" >&6; } | |
6477 | ||
6478 | ||
6479 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6480 | lt_unset=unset | |
6481 | else | |
6482 | lt_unset=false | |
6483 | fi | |
6484 | ||
6485 | ||
6486 | ||
6487 | ||
6488 | ||
6489 | # test EBCDIC or ASCII | |
6490 | case `echo X|tr X '\101'` in | |
6491 | A) # ASCII based system | |
6492 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6493 | lt_SP2NL='tr \040 \012' | |
6494 | lt_NL2SP='tr \015\012 \040\040' | |
6495 | ;; | |
6496 | *) # EBCDIC based system | |
6497 | lt_SP2NL='tr \100 \n' | |
6498 | lt_NL2SP='tr \r\n \100\100' | |
6499 | ;; | |
6500 | esac | |
6501 | ||
6502 | ||
6503 | ||
6504 | ||
6505 | ||
6506 | ||
6507 | ||
6508 | ||
6509 | ||
6510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6511 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6512 | if ${lt_cv_ld_reload_flag+:} false; then : | |
6513 | $as_echo_n "(cached) " >&6 | |
6514 | else | |
6515 | lt_cv_ld_reload_flag='-r' | |
6516 | fi | |
6517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6518 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6519 | reload_flag=$lt_cv_ld_reload_flag | |
6520 | case $reload_flag in | |
6521 | "" | " "*) ;; | |
6522 | *) reload_flag=" $reload_flag" ;; | |
6523 | esac | |
6524 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6525 | case $host_os in | |
6526 | darwin*) | |
6527 | if test "$GCC" = yes; then | |
6528 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6529 | else | |
6530 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6531 | fi | |
6532 | ;; | |
6533 | esac | |
6534 | ||
6535 | ||
6536 | ||
6537 | ||
6538 | ||
6539 | ||
6540 | ||
6541 | ||
6542 | ||
6543 | if test -n "$ac_tool_prefix"; then | |
6544 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6545 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6547 | $as_echo_n "checking for $ac_word... " >&6; } | |
6548 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
6549 | $as_echo_n "(cached) " >&6 | |
6550 | else | |
6551 | if test -n "$OBJDUMP"; then | |
6552 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6553 | else | |
6554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6555 | for as_dir in $PATH | |
6556 | do | |
6557 | IFS=$as_save_IFS | |
6558 | test -z "$as_dir" && as_dir=. | |
6559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6560 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6561 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
6562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6563 | break 2 | |
6564 | fi | |
6565 | done | |
6566 | done | |
6567 | IFS=$as_save_IFS | |
6568 | ||
6569 | fi | |
6570 | fi | |
6571 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6572 | if test -n "$OBJDUMP"; then | |
6573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6574 | $as_echo "$OBJDUMP" >&6; } | |
6575 | else | |
6576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6577 | $as_echo "no" >&6; } | |
6578 | fi | |
6579 | ||
6580 | ||
6581 | fi | |
6582 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6583 | ac_ct_OBJDUMP=$OBJDUMP | |
6584 | # Extract the first word of "objdump", so it can be a program name with args. | |
6585 | set dummy objdump; ac_word=$2 | |
6586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6587 | $as_echo_n "checking for $ac_word... " >&6; } | |
6588 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
6589 | $as_echo_n "(cached) " >&6 | |
6590 | else | |
6591 | if test -n "$ac_ct_OBJDUMP"; then | |
6592 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6593 | else | |
6594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6595 | for as_dir in $PATH | |
6596 | do | |
6597 | IFS=$as_save_IFS | |
6598 | test -z "$as_dir" && as_dir=. | |
6599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6600 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6601 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6602 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6603 | break 2 | |
6604 | fi | |
6605 | done | |
6606 | done | |
6607 | IFS=$as_save_IFS | |
6608 | ||
6609 | fi | |
6610 | fi | |
6611 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6612 | if test -n "$ac_ct_OBJDUMP"; then | |
6613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6614 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6615 | else | |
6616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6617 | $as_echo "no" >&6; } | |
6618 | fi | |
6619 | ||
6620 | if test "x$ac_ct_OBJDUMP" = x; then | |
6621 | OBJDUMP="false" | |
6622 | else | |
6623 | case $cross_compiling:$ac_tool_warned in | |
6624 | yes:) | |
6625 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6626 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6627 | ac_tool_warned=yes ;; | |
6628 | esac | |
6629 | OBJDUMP=$ac_ct_OBJDUMP | |
6630 | fi | |
6631 | else | |
6632 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6633 | fi | |
6634 | ||
6635 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6636 | ||
6637 | ||
6638 | ||
6639 | ||
6640 | ||
6641 | ||
6642 | ||
6643 | ||
6644 | ||
6645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
6646 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6647 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6648 | $as_echo_n "(cached) " >&6 | |
6649 | else | |
6650 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6651 | lt_cv_file_magic_test_file= | |
6652 | lt_cv_deplibs_check_method='unknown' | |
6653 | # Need to set the preceding variable on all platforms that support | |
6654 | # interlibrary dependencies. | |
6655 | # 'none' -- dependencies not supported. | |
6656 | # `unknown' -- same as none, but documents that we really don't know. | |
6657 | # 'pass_all' -- all dependencies passed with no checks. | |
6658 | # 'test_compile' -- check by making test program. | |
6659 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6660 | # which responds to the $file_magic_cmd with a given extended regex. | |
6661 | # If you have `file' or equivalent on your system and you're not sure | |
6662 | # whether `pass_all' will *always* work, you probably want this one. | |
6663 | ||
6664 | case $host_os in | |
6665 | aix[4-9]*) | |
6666 | lt_cv_deplibs_check_method=pass_all | |
6667 | ;; | |
6668 | ||
6669 | beos*) | |
6670 | lt_cv_deplibs_check_method=pass_all | |
6671 | ;; | |
6672 | ||
6673 | bsdi[45]*) | |
6674 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6675 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6676 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6677 | ;; | |
6678 | ||
6679 | cygwin*) | |
6680 | # func_win32_libid is a shell function defined in ltmain.sh | |
6681 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6682 | lt_cv_file_magic_cmd='func_win32_libid' | |
6683 | ;; | |
6684 | ||
6685 | mingw* | pw32*) | |
6686 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6687 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6688 | # unless we find 'file', for example because we are cross-compiling. | |
6689 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6690 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6691 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6692 | lt_cv_file_magic_cmd='func_win32_libid' | |
6693 | else | |
6694 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6695 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6696 | fi | |
6697 | ;; | |
6698 | ||
6699 | cegcc*) | |
6700 | # use the weaker test based on 'objdump'. See mingw*. | |
6701 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6702 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6703 | ;; | |
6704 | ||
6705 | darwin* | rhapsody*) | |
6706 | lt_cv_deplibs_check_method=pass_all | |
6707 | ;; | |
6708 | ||
6709 | freebsd* | dragonfly*) | |
6710 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6711 | case $host_cpu in | |
6712 | i*86 ) | |
6713 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6714 | # Let's accept both of them until this is cleared up. | |
6715 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6716 | lt_cv_file_magic_cmd=/usr/bin/file | |
6717 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6718 | ;; | |
6719 | esac | |
6720 | else | |
6721 | lt_cv_deplibs_check_method=pass_all | |
6722 | fi | |
6723 | ;; | |
6724 | ||
6725 | gnu*) | |
6726 | lt_cv_deplibs_check_method=pass_all | |
6727 | ;; | |
6728 | ||
6729 | haiku*) | |
6730 | lt_cv_deplibs_check_method=pass_all | |
6731 | ;; | |
6732 | ||
6733 | hpux10.20* | hpux11*) | |
6734 | lt_cv_file_magic_cmd=/usr/bin/file | |
6735 | case $host_cpu in | |
6736 | ia64*) | |
6737 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6738 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6739 | ;; | |
6740 | hppa*64*) | |
6741 | 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]' | |
6742 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6743 | ;; | |
6744 | *) | |
6745 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6746 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6747 | ;; | |
6748 | esac | |
6749 | ;; | |
6750 | ||
6751 | interix[3-9]*) | |
6752 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6753 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6754 | ;; | |
6755 | ||
6756 | irix5* | irix6* | nonstopux*) | |
6757 | case $LD in | |
6758 | *-32|*"-32 ") libmagic=32-bit;; | |
6759 | *-n32|*"-n32 ") libmagic=N32;; | |
6760 | *-64|*"-64 ") libmagic=64-bit;; | |
6761 | *) libmagic=never-match;; | |
6762 | esac | |
6763 | lt_cv_deplibs_check_method=pass_all | |
6764 | ;; | |
6765 | ||
6766 | # This must be Linux ELF. | |
6a6859cb | 6767 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
b5689863 MF |
6768 | lt_cv_deplibs_check_method=pass_all |
6769 | ;; | |
6770 | ||
6771 | netbsd*) | |
6772 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6773 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6774 | else | |
6775 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6776 | fi | |
6777 | ;; | |
6778 | ||
6779 | newos6*) | |
6780 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6781 | lt_cv_file_magic_cmd=/usr/bin/file | |
6782 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6783 | ;; | |
6784 | ||
6785 | *nto* | *qnx*) | |
6786 | lt_cv_deplibs_check_method=pass_all | |
6787 | ;; | |
6788 | ||
6789 | openbsd*) | |
6790 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6791 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6792 | else | |
6793 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6794 | fi | |
6795 | ;; | |
6796 | ||
6797 | osf3* | osf4* | osf5*) | |
6798 | lt_cv_deplibs_check_method=pass_all | |
6799 | ;; | |
6800 | ||
6801 | rdos*) | |
6802 | lt_cv_deplibs_check_method=pass_all | |
6803 | ;; | |
6804 | ||
6805 | solaris*) | |
6806 | lt_cv_deplibs_check_method=pass_all | |
6807 | ;; | |
6808 | ||
6809 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6810 | lt_cv_deplibs_check_method=pass_all | |
6811 | ;; | |
6812 | ||
6813 | sysv4 | sysv4.3*) | |
6814 | case $host_vendor in | |
6815 | motorola) | |
6816 | 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]' | |
6817 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6818 | ;; | |
6819 | ncr) | |
6820 | lt_cv_deplibs_check_method=pass_all | |
6821 | ;; | |
6822 | sequent) | |
6823 | lt_cv_file_magic_cmd='/bin/file' | |
6824 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6825 | ;; | |
6826 | sni) | |
6827 | lt_cv_file_magic_cmd='/bin/file' | |
6828 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6829 | lt_cv_file_magic_test_file=/lib/libc.so | |
6830 | ;; | |
6831 | siemens) | |
6832 | lt_cv_deplibs_check_method=pass_all | |
6833 | ;; | |
6834 | pc) | |
6835 | lt_cv_deplibs_check_method=pass_all | |
6836 | ;; | |
6837 | esac | |
6838 | ;; | |
6839 | ||
6840 | tpf*) | |
6841 | lt_cv_deplibs_check_method=pass_all | |
6842 | ;; | |
6a6859cb AM |
6843 | vxworks*) |
6844 | # Assume VxWorks cross toolchains are built on Linux, possibly | |
6845 | # as canadian for Windows hosts. | |
6846 | lt_cv_deplibs_check_method=pass_all | |
6847 | ;; | |
b5689863 MF |
6848 | esac |
6849 | ||
6850 | fi | |
6851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6852 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6853 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6854 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6855 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6856 | ||
6857 | ||
6858 | ||
6859 | ||
6860 | ||
6861 | ||
6862 | ||
6863 | ||
6864 | ||
6865 | ||
6866 | ||
6867 | ||
6fb5a51c L |
6868 | |
6869 | # Try CLANG_PLUGIN_FILE first since GCC_PLUGIN_OPTION may return the | |
6870 | # wrong plugin_option with clang. | |
6871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5 | |
6872 | $as_echo_n "checking for clang... " >&6; } | |
6873 | if ${clang_cv_is_clang+:} false; then : | |
6874 | $as_echo_n "(cached) " >&6 | |
6875 | else | |
6876 | ||
6877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6878 | /* end confdefs.h. */ | |
6879 | ||
6880 | #ifdef __clang__ | |
6881 | yes | |
6882 | #endif | |
6883 | ||
6884 | _ACEOF | |
6885 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6886 | $EGREP "yes" >/dev/null 2>&1; then : | |
6887 | clang_cv_is_clang=yes | |
6888 | else | |
6889 | clang_cv_is_clang=no | |
6890 | fi | |
6891 | rm -f conftest* | |
6892 | ||
6893 | fi | |
6894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5 | |
6895 | $as_echo "$clang_cv_is_clang" >&6; } | |
6896 | plugin_file= | |
6897 | if test $clang_cv_is_clang = yes; then | |
6898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5 | |
6899 | $as_echo_n "checking for clang plugin file... " >&6; } | |
6900 | plugin_names="LLVMgold.so" | |
6901 | for plugin in $plugin_names; do | |
6902 | plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin` | |
6903 | if test x$plugin_file = x$plugin; then | |
6904 | if test -n "$ac_tool_prefix"; then | |
6905 | # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args. | |
6906 | set dummy ${ac_tool_prefix}llvm-config; ac_word=$2 | |
6907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6908 | $as_echo_n "checking for $ac_word... " >&6; } | |
6909 | if ${ac_cv_prog_LLVM_CONFIG+:} false; then : | |
6910 | $as_echo_n "(cached) " >&6 | |
6911 | else | |
6912 | if test -n "$LLVM_CONFIG"; then | |
6913 | ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. | |
6914 | else | |
6915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6916 | for as_dir in $PATH | |
6917 | do | |
6918 | IFS=$as_save_IFS | |
6919 | test -z "$as_dir" && as_dir=. | |
6920 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6922 | ac_cv_prog_LLVM_CONFIG="${ac_tool_prefix}llvm-config" | |
6923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6924 | break 2 | |
6925 | fi | |
6926 | done | |
6927 | done | |
6928 | IFS=$as_save_IFS | |
6929 | ||
6930 | fi | |
6931 | fi | |
6932 | LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG | |
6933 | if test -n "$LLVM_CONFIG"; then | |
6934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 | |
6935 | $as_echo "$LLVM_CONFIG" >&6; } | |
6936 | else | |
6937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6938 | $as_echo "no" >&6; } | |
6939 | fi | |
6940 | ||
6941 | ||
6942 | fi | |
6943 | if test -z "$ac_cv_prog_LLVM_CONFIG"; then | |
6944 | ac_ct_LLVM_CONFIG=$LLVM_CONFIG | |
6945 | # Extract the first word of "llvm-config", so it can be a program name with args. | |
6946 | set dummy llvm-config; ac_word=$2 | |
6947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6948 | $as_echo_n "checking for $ac_word... " >&6; } | |
6949 | if ${ac_cv_prog_ac_ct_LLVM_CONFIG+:} false; then : | |
6950 | $as_echo_n "(cached) " >&6 | |
6951 | else | |
6952 | if test -n "$ac_ct_LLVM_CONFIG"; then | |
6953 | ac_cv_prog_ac_ct_LLVM_CONFIG="$ac_ct_LLVM_CONFIG" # Let the user override the test. | |
6954 | else | |
6955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6956 | for as_dir in $PATH | |
6957 | do | |
6958 | IFS=$as_save_IFS | |
6959 | test -z "$as_dir" && as_dir=. | |
6960 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6961 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6962 | ac_cv_prog_ac_ct_LLVM_CONFIG="llvm-config" | |
6963 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6964 | break 2 | |
6965 | fi | |
6966 | done | |
6967 | done | |
6968 | IFS=$as_save_IFS | |
6969 | ||
6970 | fi | |
6971 | fi | |
6972 | ac_ct_LLVM_CONFIG=$ac_cv_prog_ac_ct_LLVM_CONFIG | |
6973 | if test -n "$ac_ct_LLVM_CONFIG"; then | |
6974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LLVM_CONFIG" >&5 | |
6975 | $as_echo "$ac_ct_LLVM_CONFIG" >&6; } | |
6976 | else | |
6977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6978 | $as_echo "no" >&6; } | |
6979 | fi | |
6980 | ||
6981 | if test "x$ac_ct_LLVM_CONFIG" = x; then | |
6982 | LLVM_CONFIG="" | |
6983 | else | |
6984 | case $cross_compiling:$ac_tool_warned in | |
6985 | yes:) | |
6986 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6987 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6988 | ac_tool_warned=yes ;; | |
6989 | esac | |
6990 | LLVM_CONFIG=$ac_ct_LLVM_CONFIG | |
6991 | fi | |
6992 | else | |
6993 | LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG" | |
6994 | fi | |
6995 | ||
6996 | if test "$?" != 0; then | |
6997 | as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5 | |
6998 | fi | |
6999 | clang_lib_dir=`$LLVM_CONFIG --libdir` | |
7000 | if test -f $clang_lib_dir/$plugin; then | |
7001 | plugin_file=$clang_lib_dir/$plugin | |
7002 | fi | |
7003 | if test x$plugin_file != x$plugin; then | |
7004 | break; | |
7005 | fi | |
7006 | fi | |
7007 | done | |
7008 | if test -z $plugin_file; then | |
7009 | as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5 | |
7010 | fi | |
7011 | if test -n "$ac_tool_prefix"; then | |
7012 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
7013 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
7014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7015 | $as_echo_n "checking for $ac_word... " >&6; } | |
7016 | if ${ac_cv_prog_AR+:} false; then : | |
7017 | $as_echo_n "(cached) " >&6 | |
7018 | else | |
7019 | if test -n "$AR"; then | |
7020 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7021 | else | |
7022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7023 | for as_dir in $PATH | |
7024 | do | |
7025 | IFS=$as_save_IFS | |
7026 | test -z "$as_dir" && as_dir=. | |
7027 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7028 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7029 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
7030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7031 | break 2 | |
7032 | fi | |
7033 | done | |
7034 | done | |
7035 | IFS=$as_save_IFS | |
7036 | ||
7037 | fi | |
7038 | fi | |
7039 | AR=$ac_cv_prog_AR | |
7040 | if test -n "$AR"; then | |
7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
7042 | $as_echo "$AR" >&6; } | |
7043 | else | |
7044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7045 | $as_echo "no" >&6; } | |
7046 | fi | |
7047 | ||
7048 | ||
7049 | fi | |
7050 | if test -z "$ac_cv_prog_AR"; then | |
7051 | ac_ct_AR=$AR | |
7052 | # Extract the first word of "ar", so it can be a program name with args. | |
7053 | set dummy ar; ac_word=$2 | |
7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7055 | $as_echo_n "checking for $ac_word... " >&6; } | |
7056 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
7057 | $as_echo_n "(cached) " >&6 | |
7058 | else | |
7059 | if test -n "$ac_ct_AR"; then | |
7060 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7061 | else | |
7062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7063 | for as_dir in $PATH | |
7064 | do | |
7065 | IFS=$as_save_IFS | |
7066 | test -z "$as_dir" && as_dir=. | |
7067 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7068 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7069 | ac_cv_prog_ac_ct_AR="ar" | |
7070 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7071 | break 2 | |
7072 | fi | |
7073 | done | |
7074 | done | |
7075 | IFS=$as_save_IFS | |
7076 | ||
7077 | fi | |
7078 | fi | |
7079 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
7080 | if test -n "$ac_ct_AR"; then | |
7081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
7082 | $as_echo "$ac_ct_AR" >&6; } | |
7083 | else | |
7084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7085 | $as_echo "no" >&6; } | |
7086 | fi | |
7087 | ||
7088 | if test "x$ac_ct_AR" = x; then | |
7089 | AR="" | |
7090 | else | |
7091 | case $cross_compiling:$ac_tool_warned in | |
7092 | yes:) | |
7093 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7094 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7095 | ac_tool_warned=yes ;; | |
7096 | esac | |
7097 | AR=$ac_ct_AR | |
7098 | fi | |
7099 | else | |
7100 | AR="$ac_cv_prog_AR" | |
7101 | fi | |
7102 | ||
7103 | if test "${AR}" = "" ; then | |
7104 | as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 | |
7105 | fi | |
7106 | plugin_option="--plugin $plugin_file" | |
7107 | touch conftest.c | |
7108 | ${AR} $plugin_option rc conftest.a conftest.c | |
7109 | if test "$?" != 0; then | |
7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
7111 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
7112 | plugin_file= | |
7113 | fi | |
7114 | rm -f conftest.* | |
7115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5 | |
7116 | $as_echo "$plugin_file" >&6; } | |
7117 | fi | |
7118 | plugin_file="$plugin_file" | |
7119 | ||
7120 | if test -n "$plugin_file"; then | |
7121 | plugin_option="--plugin $plugin_file" | |
7122 | else | |
7123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5 | |
7124 | $as_echo_n "checking for -plugin option... " >&6; } | |
7125 | ||
b5689863 | 7126 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" |
6fb5a51c | 7127 | plugin_option= |
b5689863 MF |
7128 | for plugin in $plugin_names; do |
7129 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
7130 | if test x$plugin_so = x$plugin; then | |
7131 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
7132 | fi | |
7133 | if test x$plugin_so != x$plugin; then | |
7134 | plugin_option="--plugin $plugin_so" | |
7135 | break | |
7136 | fi | |
7137 | done | |
6fb5a51c L |
7138 | if test -n "$ac_tool_prefix"; then |
7139 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
7140 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
7141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7142 | $as_echo_n "checking for $ac_word... " >&6; } | |
7143 | if ${ac_cv_prog_AR+:} false; then : | |
7144 | $as_echo_n "(cached) " >&6 | |
7145 | else | |
7146 | if test -n "$AR"; then | |
7147 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7148 | else | |
7149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7150 | for as_dir in $PATH | |
7151 | do | |
7152 | IFS=$as_save_IFS | |
7153 | test -z "$as_dir" && as_dir=. | |
7154 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7155 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7156 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
7157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7158 | break 2 | |
7159 | fi | |
7160 | done | |
7161 | done | |
7162 | IFS=$as_save_IFS | |
b5689863 | 7163 | |
6fb5a51c L |
7164 | fi |
7165 | fi | |
7166 | AR=$ac_cv_prog_AR | |
7167 | if test -n "$AR"; then | |
7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
7169 | $as_echo "$AR" >&6; } | |
7170 | else | |
7171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7172 | $as_echo "no" >&6; } | |
7173 | fi | |
7174 | ||
7175 | ||
7176 | fi | |
7177 | if test -z "$ac_cv_prog_AR"; then | |
7178 | ac_ct_AR=$AR | |
7179 | # Extract the first word of "ar", so it can be a program name with args. | |
7180 | set dummy ar; 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_ac_ct_AR+:} false; then : | |
7184 | $as_echo_n "(cached) " >&6 | |
7185 | else | |
7186 | if test -n "$ac_ct_AR"; then | |
7187 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="ar" | |
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 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
7207 | if test -n "$ac_ct_AR"; then | |
7208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
7209 | $as_echo "$ac_ct_AR" >&6; } | |
7210 | else | |
7211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7212 | $as_echo "no" >&6; } | |
7213 | fi | |
7214 | ||
7215 | if test "x$ac_ct_AR" = x; then | |
7216 | AR="" | |
7217 | else | |
7218 | case $cross_compiling:$ac_tool_warned in | |
7219 | yes:) | |
7220 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7221 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7222 | ac_tool_warned=yes ;; | |
7223 | esac | |
7224 | AR=$ac_ct_AR | |
7225 | fi | |
7226 | else | |
7227 | AR="$ac_cv_prog_AR" | |
7228 | fi | |
7229 | ||
7230 | if test "${AR}" = "" ; then | |
7231 | as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 | |
7232 | fi | |
7233 | touch conftest.c | |
7234 | ${AR} $plugin_option rc conftest.a conftest.c | |
7235 | if test "$?" != 0; then | |
7236 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
7237 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
7238 | plugin_option= | |
7239 | fi | |
7240 | rm -f conftest.* | |
7241 | if test -n "$plugin_option"; then | |
7242 | plugin_option="$plugin_option" | |
7243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5 | |
7244 | $as_echo "$plugin_option" >&6; } | |
7245 | else | |
7246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7247 | $as_echo "no" >&6; } | |
7248 | fi | |
7249 | ||
7250 | fi | |
b5689863 MF |
7251 | if test -n "$ac_tool_prefix"; then |
7252 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
7253 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
7254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7255 | $as_echo_n "checking for $ac_word... " >&6; } | |
7256 | if ${ac_cv_prog_AR+:} false; then : | |
7257 | $as_echo_n "(cached) " >&6 | |
7258 | else | |
7259 | if test -n "$AR"; then | |
7260 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7261 | else | |
7262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7263 | for as_dir in $PATH | |
7264 | do | |
7265 | IFS=$as_save_IFS | |
7266 | test -z "$as_dir" && as_dir=. | |
7267 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7268 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7269 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
7270 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7271 | break 2 | |
7272 | fi | |
7273 | done | |
7274 | done | |
7275 | IFS=$as_save_IFS | |
7276 | ||
7277 | fi | |
7278 | fi | |
7279 | AR=$ac_cv_prog_AR | |
7280 | if test -n "$AR"; then | |
7281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
7282 | $as_echo "$AR" >&6; } | |
7283 | else | |
7284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7285 | $as_echo "no" >&6; } | |
7286 | fi | |
7287 | ||
7288 | ||
7289 | fi | |
7290 | if test -z "$ac_cv_prog_AR"; then | |
7291 | ac_ct_AR=$AR | |
7292 | # Extract the first word of "ar", so it can be a program name with args. | |
7293 | set dummy ar; ac_word=$2 | |
7294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7295 | $as_echo_n "checking for $ac_word... " >&6; } | |
7296 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
7297 | $as_echo_n "(cached) " >&6 | |
7298 | else | |
7299 | if test -n "$ac_ct_AR"; then | |
7300 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7301 | else | |
7302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7303 | for as_dir in $PATH | |
7304 | do | |
7305 | IFS=$as_save_IFS | |
7306 | test -z "$as_dir" && as_dir=. | |
7307 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7308 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7309 | ac_cv_prog_ac_ct_AR="ar" | |
7310 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7311 | break 2 | |
7312 | fi | |
7313 | done | |
7314 | done | |
7315 | IFS=$as_save_IFS | |
7316 | ||
7317 | fi | |
7318 | fi | |
7319 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
7320 | if test -n "$ac_ct_AR"; then | |
7321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
7322 | $as_echo "$ac_ct_AR" >&6; } | |
7323 | else | |
7324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7325 | $as_echo "no" >&6; } | |
7326 | fi | |
7327 | ||
7328 | if test "x$ac_ct_AR" = x; then | |
7329 | AR="false" | |
7330 | else | |
7331 | case $cross_compiling:$ac_tool_warned in | |
7332 | yes:) | |
7333 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7334 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7335 | ac_tool_warned=yes ;; | |
7336 | esac | |
7337 | AR=$ac_ct_AR | |
7338 | fi | |
7339 | else | |
7340 | AR="$ac_cv_prog_AR" | |
7341 | fi | |
7342 | ||
7343 | test -z "$AR" && AR=ar | |
7344 | if test -n "$plugin_option"; then | |
6fb5a51c L |
7345 | case "$AR" in |
7346 | *"$plugin_option"*) | |
7347 | ;; | |
7348 | *) | |
7349 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
b5689863 MF |
7350 | AR="$AR $plugin_option" |
7351 | fi | |
6fb5a51c L |
7352 | ;; |
7353 | esac | |
b5689863 MF |
7354 | fi |
7355 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
7356 | ||
7357 | ||
7358 | ||
7359 | ||
7360 | ||
7361 | ||
7362 | ||
7363 | ||
7364 | ||
7365 | ||
7366 | ||
7367 | if test -n "$ac_tool_prefix"; then | |
7368 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7369 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
7370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7371 | $as_echo_n "checking for $ac_word... " >&6; } | |
7372 | if ${ac_cv_prog_STRIP+:} false; then : | |
7373 | $as_echo_n "(cached) " >&6 | |
7374 | else | |
7375 | if test -n "$STRIP"; then | |
7376 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7377 | else | |
7378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7379 | for as_dir in $PATH | |
7380 | do | |
7381 | IFS=$as_save_IFS | |
7382 | test -z "$as_dir" && as_dir=. | |
7383 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7384 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7385 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
7386 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7387 | break 2 | |
7388 | fi | |
7389 | done | |
7390 | done | |
7391 | IFS=$as_save_IFS | |
7392 | ||
7393 | fi | |
7394 | fi | |
7395 | STRIP=$ac_cv_prog_STRIP | |
7396 | if test -n "$STRIP"; then | |
7397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
7398 | $as_echo "$STRIP" >&6; } | |
7399 | else | |
7400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7401 | $as_echo "no" >&6; } | |
7402 | fi | |
7403 | ||
7404 | ||
7405 | fi | |
7406 | if test -z "$ac_cv_prog_STRIP"; then | |
7407 | ac_ct_STRIP=$STRIP | |
7408 | # Extract the first word of "strip", so it can be a program name with args. | |
7409 | set dummy strip; ac_word=$2 | |
7410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7411 | $as_echo_n "checking for $ac_word... " >&6; } | |
7412 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
7413 | $as_echo_n "(cached) " >&6 | |
7414 | else | |
7415 | if test -n "$ac_ct_STRIP"; then | |
7416 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7417 | else | |
7418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7419 | for as_dir in $PATH | |
7420 | do | |
7421 | IFS=$as_save_IFS | |
7422 | test -z "$as_dir" && as_dir=. | |
7423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7424 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7425 | ac_cv_prog_ac_ct_STRIP="strip" | |
7426 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7427 | break 2 | |
7428 | fi | |
7429 | done | |
7430 | done | |
7431 | IFS=$as_save_IFS | |
7432 | ||
7433 | fi | |
7434 | fi | |
7435 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
7436 | if test -n "$ac_ct_STRIP"; then | |
7437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
7438 | $as_echo "$ac_ct_STRIP" >&6; } | |
7439 | else | |
7440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7441 | $as_echo "no" >&6; } | |
7442 | fi | |
7443 | ||
7444 | if test "x$ac_ct_STRIP" = x; then | |
7445 | STRIP=":" | |
7446 | else | |
7447 | case $cross_compiling:$ac_tool_warned in | |
7448 | yes:) | |
7449 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7450 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7451 | ac_tool_warned=yes ;; | |
7452 | esac | |
7453 | STRIP=$ac_ct_STRIP | |
7454 | fi | |
7455 | else | |
7456 | STRIP="$ac_cv_prog_STRIP" | |
7457 | fi | |
7458 | ||
7459 | test -z "$STRIP" && STRIP=: | |
7460 | ||
7461 | ||
7462 | ||
7463 | ||
7464 | ||
7465 | ||
7466 | if test -n "$ac_tool_prefix"; then | |
7467 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7468 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7470 | $as_echo_n "checking for $ac_word... " >&6; } | |
7471 | if ${ac_cv_prog_RANLIB+:} false; then : | |
7472 | $as_echo_n "(cached) " >&6 | |
7473 | else | |
7474 | if test -n "$RANLIB"; then | |
7475 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7476 | else | |
7477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7478 | for as_dir in $PATH | |
7479 | do | |
7480 | IFS=$as_save_IFS | |
7481 | test -z "$as_dir" && as_dir=. | |
7482 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7483 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7484 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
7485 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7486 | break 2 | |
7487 | fi | |
7488 | done | |
7489 | done | |
7490 | IFS=$as_save_IFS | |
7491 | ||
7492 | fi | |
7493 | fi | |
7494 | RANLIB=$ac_cv_prog_RANLIB | |
7495 | if test -n "$RANLIB"; then | |
7496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7497 | $as_echo "$RANLIB" >&6; } | |
7498 | else | |
7499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7500 | $as_echo "no" >&6; } | |
7501 | fi | |
7502 | ||
7503 | ||
7504 | fi | |
7505 | if test -z "$ac_cv_prog_RANLIB"; then | |
7506 | ac_ct_RANLIB=$RANLIB | |
7507 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7508 | set dummy ranlib; ac_word=$2 | |
7509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7510 | $as_echo_n "checking for $ac_word... " >&6; } | |
7511 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
7512 | $as_echo_n "(cached) " >&6 | |
7513 | else | |
7514 | if test -n "$ac_ct_RANLIB"; then | |
7515 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7516 | else | |
7517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7518 | for as_dir in $PATH | |
7519 | do | |
7520 | IFS=$as_save_IFS | |
7521 | test -z "$as_dir" && as_dir=. | |
7522 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7523 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7524 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
7525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7526 | break 2 | |
7527 | fi | |
7528 | done | |
7529 | done | |
7530 | IFS=$as_save_IFS | |
7531 | ||
7532 | fi | |
7533 | fi | |
7534 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7535 | if test -n "$ac_ct_RANLIB"; then | |
7536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7537 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7538 | else | |
7539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7540 | $as_echo "no" >&6; } | |
7541 | fi | |
7542 | ||
7543 | if test "x$ac_ct_RANLIB" = x; then | |
7544 | RANLIB=":" | |
7545 | else | |
7546 | case $cross_compiling:$ac_tool_warned in | |
7547 | yes:) | |
7548 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7549 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7550 | ac_tool_warned=yes ;; | |
7551 | esac | |
7552 | RANLIB=$ac_ct_RANLIB | |
7553 | fi | |
7554 | else | |
7555 | RANLIB="$ac_cv_prog_RANLIB" | |
7556 | fi | |
7557 | ||
7558 | test -z "$RANLIB" && RANLIB=: | |
7559 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then | |
6fb5a51c L |
7560 | case "$RANLIB" in |
7561 | *"$plugin_option"*) | |
7562 | ;; | |
7563 | *) | |
7564 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
7565 | RANLIB="$RANLIB $plugin_option" | |
7566 | fi | |
7567 | ;; | |
7568 | esac | |
b5689863 MF |
7569 | fi |
7570 | ||
7571 | ||
7572 | ||
7573 | ||
7574 | ||
7575 | ||
7576 | # Determine commands to create old-style static archives. | |
7577 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7578 | old_postinstall_cmds='chmod 644 $oldlib' | |
7579 | old_postuninstall_cmds= | |
7580 | ||
7581 | if test -n "$RANLIB"; then | |
7582 | case $host_os in | |
7583 | openbsd*) | |
7584 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7585 | ;; | |
7586 | *) | |
7587 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7588 | ;; | |
7589 | esac | |
7590 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
7591 | fi | |
7592 | ||
7593 | case $host_os in | |
7594 | darwin*) | |
7595 | lock_old_archive_extraction=yes ;; | |
7596 | *) | |
7597 | lock_old_archive_extraction=no ;; | |
7598 | esac | |
7599 | ||
7600 | ||
7601 | ||
7602 | ||
7603 | ||
7604 | ||
7605 | ||
7606 | ||
7607 | ||
7608 | ||
7609 | ||
7610 | ||
7611 | ||
7612 | ||
7613 | ||
7614 | ||
7615 | ||
7616 | ||
7617 | ||
7618 | ||
7619 | ||
7620 | for ac_prog in gawk mawk nawk awk | |
7621 | do | |
7622 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7623 | set dummy $ac_prog; ac_word=$2 | |
7624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7625 | $as_echo_n "checking for $ac_word... " >&6; } | |
7626 | if ${ac_cv_prog_AWK+:} false; then : | |
7627 | $as_echo_n "(cached) " >&6 | |
7628 | else | |
7629 | if test -n "$AWK"; then | |
7630 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
7631 | else | |
7632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7633 | for as_dir in $PATH | |
7634 | do | |
7635 | IFS=$as_save_IFS | |
7636 | test -z "$as_dir" && as_dir=. | |
7637 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7638 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7639 | ac_cv_prog_AWK="$ac_prog" | |
7640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7641 | break 2 | |
7642 | fi | |
7643 | done | |
7644 | done | |
7645 | IFS=$as_save_IFS | |
7646 | ||
7647 | fi | |
7648 | fi | |
7649 | AWK=$ac_cv_prog_AWK | |
7650 | if test -n "$AWK"; then | |
7651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
7652 | $as_echo "$AWK" >&6; } | |
7653 | else | |
7654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7655 | $as_echo "no" >&6; } | |
7656 | fi | |
7657 | ||
7658 | ||
7659 | test -n "$AWK" && break | |
7660 | done | |
7661 | ||
7662 | ||
7663 | ||
7664 | ||
7665 | ||
7666 | ||
7667 | ||
7668 | ||
7669 | ||
7670 | ||
7671 | ||
7672 | ||
7673 | ||
7674 | ||
7675 | ||
7676 | ||
7677 | ||
7678 | ||
7679 | ||
7680 | # If no C compiler was specified, use CC. | |
7681 | LTCC=${LTCC-"$CC"} | |
7682 | ||
7683 | # If no C compiler flags were specified, use CFLAGS. | |
7684 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7685 | ||
7686 | # Allow CC to be a program name with arguments. | |
7687 | compiler=$CC | |
7688 | ||
7689 | ||
7690 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7692 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7693 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
7694 | $as_echo_n "(cached) " >&6 | |
7695 | else | |
7696 | ||
7697 | # These are sane defaults that work on at least a few old systems. | |
7698 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7699 | ||
7700 | # Character class describing NM global symbol codes. | |
7701 | symcode='[BCDEGRST]' | |
7702 | ||
7703 | # Regexp to match symbols that can be accessed directly from C. | |
7704 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7705 | ||
7706 | # Define system-specific variables. | |
7707 | case $host_os in | |
7708 | aix*) | |
7709 | symcode='[BCDT]' | |
7710 | ;; | |
7711 | cygwin* | mingw* | pw32* | cegcc*) | |
7712 | symcode='[ABCDGISTW]' | |
7713 | ;; | |
7714 | hpux*) | |
7715 | if test "$host_cpu" = ia64; then | |
7716 | symcode='[ABCDEGRST]' | |
7717 | fi | |
7718 | ;; | |
7719 | irix* | nonstopux*) | |
7720 | symcode='[BCDEGRST]' | |
7721 | ;; | |
7722 | osf*) | |
7723 | symcode='[BCDEGQRST]' | |
7724 | ;; | |
7725 | solaris*) | |
b9004024 | 7726 | symcode='[BCDRT]' |
b5689863 MF |
7727 | ;; |
7728 | sco3.2v5*) | |
7729 | symcode='[DT]' | |
7730 | ;; | |
7731 | sysv4.2uw2*) | |
7732 | symcode='[DT]' | |
7733 | ;; | |
7734 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7735 | symcode='[ABDT]' | |
7736 | ;; | |
7737 | sysv4) | |
7738 | symcode='[DFNSTU]' | |
7739 | ;; | |
7740 | esac | |
7741 | ||
7742 | # If we're using GNU nm, then use its standard symbol codes. | |
7743 | case `$NM -V 2>&1` in | |
7744 | *GNU* | *'with BFD'*) | |
7745 | symcode='[ABCDGIRSTW]' ;; | |
7746 | esac | |
7747 | ||
7748 | # Transform an extracted symbol line into a proper C declaration. | |
7749 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7750 | # so use this general approach. | |
7751 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7752 | ||
7753 | # Transform an extracted symbol line into symbol name and symbol address | |
7754 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7755 | 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'" | |
7756 | ||
7757 | # Handle CRLF in mingw tool chain | |
7758 | opt_cr= | |
7759 | case $build_os in | |
7760 | mingw*) | |
7761 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7762 | ;; | |
7763 | esac | |
7764 | ||
7765 | # Try without a prefix underscore, then with it. | |
7766 | for ac_symprfx in "" "_"; do | |
7767 | ||
7768 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7769 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7770 | ||
7771 | # Write the raw and C identifiers. | |
7772 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7773 | # Fake it for dumpbin and say T for any non-static function | |
7774 | # and D for any global variable. | |
7775 | # Also find C++ and __fastcall symbols from MSVC++, | |
7776 | # which start with @ or ?. | |
7777 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7778 | " {last_section=section; section=\$ 3};"\ | |
7779 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7780 | " \$ 0!~/External *\|/{next};"\ | |
7781 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7782 | " {if(hide[section]) next};"\ | |
7783 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7784 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7785 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7786 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7787 | " ' prfx=^$ac_symprfx" | |
7788 | else | |
7789 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7790 | fi | |
7791 | ||
7792 | # Check to see that the pipe works correctly. | |
7793 | pipe_works=no | |
7794 | ||
7795 | rm -f conftest* | |
7796 | cat > conftest.$ac_ext <<_LT_EOF | |
7797 | #ifdef __cplusplus | |
7798 | extern "C" { | |
7799 | #endif | |
7800 | char nm_test_var; | |
7801 | void nm_test_func(void); | |
7802 | void nm_test_func(void){} | |
7803 | #ifdef __cplusplus | |
7804 | } | |
7805 | #endif | |
7806 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7807 | _LT_EOF | |
7808 | ||
7809 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7810 | (eval $ac_compile) 2>&5 | |
7811 | ac_status=$? | |
7812 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7813 | test $ac_status = 0; }; then | |
7814 | # Now try to grab the symbols. | |
7815 | nlist=conftest.nm | |
7816 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7817 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7818 | ac_status=$? | |
7819 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7820 | test $ac_status = 0; } && test -s "$nlist"; then | |
7821 | # Try sorting and uniquifying the output. | |
7822 | if sort "$nlist" | uniq > "$nlist"T; then | |
7823 | mv -f "$nlist"T "$nlist" | |
7824 | else | |
7825 | rm -f "$nlist"T | |
7826 | fi | |
7827 | ||
7828 | # Make sure that we snagged all the symbols we need. | |
7829 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7830 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7831 | cat <<_LT_EOF > conftest.$ac_ext | |
7832 | #ifdef __cplusplus | |
7833 | extern "C" { | |
7834 | #endif | |
7835 | ||
7836 | _LT_EOF | |
7837 | # Now generate the symbol file. | |
7838 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7839 | ||
7840 | cat <<_LT_EOF >> conftest.$ac_ext | |
7841 | ||
7842 | /* The mapping between symbol names and symbols. */ | |
7843 | const struct { | |
7844 | const char *name; | |
7845 | void *address; | |
7846 | } | |
7847 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7848 | { | |
7849 | { "@PROGRAM@", (void *) 0 }, | |
7850 | _LT_EOF | |
7851 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7852 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7853 | {0, (void *) 0} | |
7854 | }; | |
7855 | ||
7856 | /* This works around a problem in FreeBSD linker */ | |
7857 | #ifdef FREEBSD_WORKAROUND | |
7858 | static const void *lt_preloaded_setup() { | |
7859 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7860 | } | |
7861 | #endif | |
7862 | ||
7863 | #ifdef __cplusplus | |
7864 | } | |
7865 | #endif | |
7866 | _LT_EOF | |
7867 | # Now try linking the two files. | |
7868 | mv conftest.$ac_objext conftstm.$ac_objext | |
7869 | lt_save_LIBS="$LIBS" | |
7870 | lt_save_CFLAGS="$CFLAGS" | |
7871 | LIBS="conftstm.$ac_objext" | |
7872 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7873 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7874 | (eval $ac_link) 2>&5 | |
7875 | ac_status=$? | |
7876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7877 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7878 | pipe_works=yes | |
7879 | fi | |
7880 | LIBS="$lt_save_LIBS" | |
7881 | CFLAGS="$lt_save_CFLAGS" | |
7882 | else | |
7883 | echo "cannot find nm_test_func in $nlist" >&5 | |
7884 | fi | |
7885 | else | |
7886 | echo "cannot find nm_test_var in $nlist" >&5 | |
7887 | fi | |
7888 | else | |
7889 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7890 | fi | |
7891 | else | |
7892 | echo "$progname: failed program was:" >&5 | |
7893 | cat conftest.$ac_ext >&5 | |
7894 | fi | |
7895 | rm -rf conftest* conftst* | |
7896 | ||
7897 | # Do not use the global_symbol_pipe unless it works. | |
7898 | if test "$pipe_works" = yes; then | |
7899 | break | |
7900 | else | |
7901 | lt_cv_sys_global_symbol_pipe= | |
7902 | fi | |
7903 | done | |
7904 | ||
7905 | fi | |
7906 | ||
7907 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7908 | lt_cv_sys_global_symbol_to_cdecl= | |
7909 | fi | |
7910 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7912 | $as_echo "failed" >&6; } | |
7913 | else | |
7914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
7915 | $as_echo "ok" >&6; } | |
7916 | fi | |
7917 | ||
7918 | ||
7919 | ||
7920 | ||
7921 | ||
7922 | ||
7923 | ||
7924 | ||
7925 | ||
7926 | ||
7927 | ||
7928 | ||
7929 | ||
7930 | ||
7931 | ||
7932 | ||
7933 | ||
7934 | ||
7935 | ||
7936 | ||
7937 | ||
7938 | ||
7939 | # Check whether --enable-libtool-lock was given. | |
7940 | if test "${enable_libtool_lock+set}" = set; then : | |
7941 | enableval=$enable_libtool_lock; | |
7942 | fi | |
7943 | ||
7944 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
7945 | ||
7946 | # Some flags need to be propagated to the compiler or linker for good | |
7947 | # libtool support. | |
7948 | case $host in | |
7949 | ia64-*-hpux*) | |
7950 | # Find out which ABI we are using. | |
7951 | echo 'int i;' > conftest.$ac_ext | |
7952 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7953 | (eval $ac_compile) 2>&5 | |
7954 | ac_status=$? | |
7955 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7956 | test $ac_status = 0; }; then | |
7957 | case `/usr/bin/file conftest.$ac_objext` in | |
7958 | *ELF-32*) | |
7959 | HPUX_IA64_MODE="32" | |
7960 | ;; | |
7961 | *ELF-64*) | |
7962 | HPUX_IA64_MODE="64" | |
7963 | ;; | |
7964 | esac | |
7965 | fi | |
7966 | rm -rf conftest* | |
7967 | ;; | |
7968 | *-*-irix6*) | |
7969 | # Find out which ABI we are using. | |
7970 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7971 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7972 | (eval $ac_compile) 2>&5 | |
7973 | ac_status=$? | |
7974 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7975 | test $ac_status = 0; }; then | |
7976 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7977 | case `/usr/bin/file conftest.$ac_objext` in | |
7978 | *32-bit*) | |
7979 | LD="${LD-ld} -melf32bsmip" | |
7980 | ;; | |
7981 | *N32*) | |
7982 | LD="${LD-ld} -melf32bmipn32" | |
7983 | ;; | |
7984 | *64-bit*) | |
7985 | LD="${LD-ld} -melf64bmip" | |
7986 | ;; | |
7987 | esac | |
7988 | else | |
7989 | case `/usr/bin/file conftest.$ac_objext` in | |
7990 | *32-bit*) | |
7991 | LD="${LD-ld} -32" | |
7992 | ;; | |
7993 | *N32*) | |
7994 | LD="${LD-ld} -n32" | |
7995 | ;; | |
7996 | *64-bit*) | |
7997 | LD="${LD-ld} -64" | |
7998 | ;; | |
7999 | esac | |
8000 | fi | |
8001 | fi | |
8002 | rm -rf conftest* | |
8003 | ;; | |
8004 | ||
8005 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
8006 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
8007 | # Find out which ABI we are using. | |
8008 | echo 'int i;' > conftest.$ac_ext | |
8009 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8010 | (eval $ac_compile) 2>&5 | |
8011 | ac_status=$? | |
8012 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8013 | test $ac_status = 0; }; then | |
8014 | case `/usr/bin/file conftest.o` in | |
8015 | *32-bit*) | |
8016 | case $host in | |
8017 | x86_64-*kfreebsd*-gnu) | |
8018 | LD="${LD-ld} -m elf_i386_fbsd" | |
8019 | ;; | |
8020 | x86_64-*linux*) | |
8021 | case `/usr/bin/file conftest.o` in | |
8022 | *x86-64*) | |
8023 | LD="${LD-ld} -m elf32_x86_64" | |
8024 | ;; | |
8025 | *) | |
8026 | LD="${LD-ld} -m elf_i386" | |
8027 | ;; | |
8028 | esac | |
8029 | ;; | |
8030 | powerpc64le-*linux*) | |
8031 | LD="${LD-ld} -m elf32lppclinux" | |
8032 | ;; | |
8033 | powerpc64-*linux*) | |
8034 | LD="${LD-ld} -m elf32ppclinux" | |
8035 | ;; | |
8036 | s390x-*linux*) | |
8037 | LD="${LD-ld} -m elf_s390" | |
8038 | ;; | |
8039 | sparc64-*linux*) | |
8040 | LD="${LD-ld} -m elf32_sparc" | |
8041 | ;; | |
8042 | esac | |
8043 | ;; | |
8044 | *64-bit*) | |
8045 | case $host in | |
8046 | x86_64-*kfreebsd*-gnu) | |
8047 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
8048 | ;; | |
8049 | x86_64-*linux*) | |
8050 | LD="${LD-ld} -m elf_x86_64" | |
8051 | ;; | |
8052 | powerpcle-*linux*) | |
8053 | LD="${LD-ld} -m elf64lppc" | |
8054 | ;; | |
8055 | powerpc-*linux*) | |
8056 | LD="${LD-ld} -m elf64ppc" | |
8057 | ;; | |
8058 | s390*-*linux*|s390*-*tpf*) | |
8059 | LD="${LD-ld} -m elf64_s390" | |
8060 | ;; | |
8061 | sparc*-*linux*) | |
8062 | LD="${LD-ld} -m elf64_sparc" | |
8063 | ;; | |
8064 | esac | |
8065 | ;; | |
8066 | esac | |
8067 | fi | |
8068 | rm -rf conftest* | |
8069 | ;; | |
8070 | ||
8071 | *-*-sco3.2v5*) | |
8072 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
8073 | SAVE_CFLAGS="$CFLAGS" | |
8074 | CFLAGS="$CFLAGS -belf" | |
8075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
8076 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
8077 | if ${lt_cv_cc_needs_belf+:} false; then : | |
8078 | $as_echo_n "(cached) " >&6 | |
8079 | else | |
8080 | ac_ext=c | |
8081 | ac_cpp='$CPP $CPPFLAGS' | |
8082 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8083 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8084 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8085 | ||
8086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8087 | /* end confdefs.h. */ | |
8088 | ||
8089 | int | |
8090 | main () | |
8091 | { | |
8092 | ||
8093 | ; | |
8094 | return 0; | |
8095 | } | |
8096 | _ACEOF | |
8097 | if ac_fn_c_try_link "$LINENO"; then : | |
8098 | lt_cv_cc_needs_belf=yes | |
8099 | else | |
8100 | lt_cv_cc_needs_belf=no | |
8101 | fi | |
8102 | rm -f core conftest.err conftest.$ac_objext \ | |
8103 | conftest$ac_exeext conftest.$ac_ext | |
8104 | ac_ext=c | |
8105 | ac_cpp='$CPP $CPPFLAGS' | |
8106 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8107 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8108 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8109 | ||
8110 | fi | |
8111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
8112 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
8113 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
8114 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
8115 | CFLAGS="$SAVE_CFLAGS" | |
8116 | fi | |
8117 | ;; | |
8118 | sparc*-*solaris*) | |
8119 | # Find out which ABI we are using. | |
8120 | echo 'int i;' > conftest.$ac_ext | |
8121 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8122 | (eval $ac_compile) 2>&5 | |
8123 | ac_status=$? | |
8124 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8125 | test $ac_status = 0; }; then | |
8126 | case `/usr/bin/file conftest.o` in | |
8127 | *64-bit*) | |
8128 | case $lt_cv_prog_gnu_ld in | |
8129 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
8130 | *) | |
8131 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
8132 | LD="${LD-ld} -64" | |
8133 | fi | |
8134 | ;; | |
8135 | esac | |
8136 | ;; | |
8137 | esac | |
8138 | fi | |
8139 | rm -rf conftest* | |
8140 | ;; | |
8141 | esac | |
8142 | ||
8143 | need_locks="$enable_libtool_lock" | |
8144 | ||
8145 | ||
8146 | case $host_os in | |
8147 | rhapsody* | darwin*) | |
8148 | if test -n "$ac_tool_prefix"; then | |
8149 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8150 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
8151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8152 | $as_echo_n "checking for $ac_word... " >&6; } | |
8153 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
8154 | $as_echo_n "(cached) " >&6 | |
8155 | else | |
8156 | if test -n "$DSYMUTIL"; then | |
8157 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8158 | else | |
8159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8160 | for as_dir in $PATH | |
8161 | do | |
8162 | IFS=$as_save_IFS | |
8163 | test -z "$as_dir" && as_dir=. | |
8164 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8165 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8166 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
8167 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8168 | break 2 | |
8169 | fi | |
8170 | done | |
8171 | done | |
8172 | IFS=$as_save_IFS | |
8173 | ||
8174 | fi | |
8175 | fi | |
8176 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8177 | if test -n "$DSYMUTIL"; then | |
8178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
8179 | $as_echo "$DSYMUTIL" >&6; } | |
8180 | else | |
8181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8182 | $as_echo "no" >&6; } | |
8183 | fi | |
8184 | ||
8185 | ||
8186 | fi | |
8187 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8188 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8189 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8190 | set dummy dsymutil; ac_word=$2 | |
8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8192 | $as_echo_n "checking for $ac_word... " >&6; } | |
8193 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
8194 | $as_echo_n "(cached) " >&6 | |
8195 | else | |
8196 | if test -n "$ac_ct_DSYMUTIL"; then | |
8197 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
8198 | else | |
8199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8200 | for as_dir in $PATH | |
8201 | do | |
8202 | IFS=$as_save_IFS | |
8203 | test -z "$as_dir" && as_dir=. | |
8204 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8205 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8206 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
8207 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8208 | break 2 | |
8209 | fi | |
8210 | done | |
8211 | done | |
8212 | IFS=$as_save_IFS | |
8213 | ||
8214 | fi | |
8215 | fi | |
8216 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
8217 | if test -n "$ac_ct_DSYMUTIL"; then | |
8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8219 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
8220 | else | |
8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8222 | $as_echo "no" >&6; } | |
8223 | fi | |
8224 | ||
8225 | if test "x$ac_ct_DSYMUTIL" = x; then | |
8226 | DSYMUTIL=":" | |
8227 | else | |
8228 | case $cross_compiling:$ac_tool_warned in | |
8229 | yes:) | |
8230 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8231 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8232 | ac_tool_warned=yes ;; | |
8233 | esac | |
8234 | DSYMUTIL=$ac_ct_DSYMUTIL | |
8235 | fi | |
8236 | else | |
8237 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
8238 | fi | |
8239 | ||
8240 | if test -n "$ac_tool_prefix"; then | |
8241 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
8242 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8244 | $as_echo_n "checking for $ac_word... " >&6; } | |
8245 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
8246 | $as_echo_n "(cached) " >&6 | |
8247 | else | |
8248 | if test -n "$NMEDIT"; then | |
8249 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
8250 | else | |
8251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8252 | for as_dir in $PATH | |
8253 | do | |
8254 | IFS=$as_save_IFS | |
8255 | test -z "$as_dir" && as_dir=. | |
8256 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8257 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8258 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
8259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8260 | break 2 | |
8261 | fi | |
8262 | done | |
8263 | done | |
8264 | IFS=$as_save_IFS | |
8265 | ||
8266 | fi | |
8267 | fi | |
8268 | NMEDIT=$ac_cv_prog_NMEDIT | |
8269 | if test -n "$NMEDIT"; then | |
8270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8271 | $as_echo "$NMEDIT" >&6; } | |
8272 | else | |
8273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8274 | $as_echo "no" >&6; } | |
8275 | fi | |
8276 | ||
8277 | ||
8278 | fi | |
8279 | if test -z "$ac_cv_prog_NMEDIT"; then | |
8280 | ac_ct_NMEDIT=$NMEDIT | |
8281 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8282 | set dummy nmedit; ac_word=$2 | |
8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8284 | $as_echo_n "checking for $ac_word... " >&6; } | |
8285 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
8286 | $as_echo_n "(cached) " >&6 | |
8287 | else | |
8288 | if test -n "$ac_ct_NMEDIT"; then | |
8289 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
8290 | else | |
8291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8292 | for as_dir in $PATH | |
8293 | do | |
8294 | IFS=$as_save_IFS | |
8295 | test -z "$as_dir" && as_dir=. | |
8296 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8297 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8298 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
8299 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8300 | break 2 | |
8301 | fi | |
8302 | done | |
8303 | done | |
8304 | IFS=$as_save_IFS | |
8305 | ||
8306 | fi | |
8307 | fi | |
8308 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
8309 | if test -n "$ac_ct_NMEDIT"; then | |
8310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8311 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
8312 | else | |
8313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8314 | $as_echo "no" >&6; } | |
8315 | fi | |
8316 | ||
8317 | if test "x$ac_ct_NMEDIT" = x; then | |
8318 | NMEDIT=":" | |
8319 | else | |
8320 | case $cross_compiling:$ac_tool_warned in | |
8321 | yes:) | |
8322 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8323 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8324 | ac_tool_warned=yes ;; | |
8325 | esac | |
8326 | NMEDIT=$ac_ct_NMEDIT | |
8327 | fi | |
8328 | else | |
8329 | NMEDIT="$ac_cv_prog_NMEDIT" | |
8330 | fi | |
8331 | ||
8332 | if test -n "$ac_tool_prefix"; then | |
8333 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
8334 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
8335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8336 | $as_echo_n "checking for $ac_word... " >&6; } | |
8337 | if ${ac_cv_prog_LIPO+:} false; then : | |
8338 | $as_echo_n "(cached) " >&6 | |
8339 | else | |
8340 | if test -n "$LIPO"; then | |
8341 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8342 | else | |
8343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8344 | for as_dir in $PATH | |
8345 | do | |
8346 | IFS=$as_save_IFS | |
8347 | test -z "$as_dir" && as_dir=. | |
8348 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8349 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8350 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
8351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8352 | break 2 | |
8353 | fi | |
8354 | done | |
8355 | done | |
8356 | IFS=$as_save_IFS | |
8357 | ||
8358 | fi | |
8359 | fi | |
8360 | LIPO=$ac_cv_prog_LIPO | |
8361 | if test -n "$LIPO"; then | |
8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8363 | $as_echo "$LIPO" >&6; } | |
8364 | else | |
8365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8366 | $as_echo "no" >&6; } | |
8367 | fi | |
8368 | ||
8369 | ||
8370 | fi | |
8371 | if test -z "$ac_cv_prog_LIPO"; then | |
8372 | ac_ct_LIPO=$LIPO | |
8373 | # Extract the first word of "lipo", so it can be a program name with args. | |
8374 | set dummy lipo; ac_word=$2 | |
8375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8376 | $as_echo_n "checking for $ac_word... " >&6; } | |
8377 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
8378 | $as_echo_n "(cached) " >&6 | |
8379 | else | |
8380 | if test -n "$ac_ct_LIPO"; then | |
8381 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8382 | else | |
8383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8384 | for as_dir in $PATH | |
8385 | do | |
8386 | IFS=$as_save_IFS | |
8387 | test -z "$as_dir" && as_dir=. | |
8388 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8389 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8390 | ac_cv_prog_ac_ct_LIPO="lipo" | |
8391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8392 | break 2 | |
8393 | fi | |
8394 | done | |
8395 | done | |
8396 | IFS=$as_save_IFS | |
8397 | ||
8398 | fi | |
8399 | fi | |
8400 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8401 | if test -n "$ac_ct_LIPO"; then | |
8402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8403 | $as_echo "$ac_ct_LIPO" >&6; } | |
8404 | else | |
8405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8406 | $as_echo "no" >&6; } | |
8407 | fi | |
8408 | ||
8409 | if test "x$ac_ct_LIPO" = x; then | |
8410 | LIPO=":" | |
8411 | else | |
8412 | case $cross_compiling:$ac_tool_warned in | |
8413 | yes:) | |
8414 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8415 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8416 | ac_tool_warned=yes ;; | |
8417 | esac | |
8418 | LIPO=$ac_ct_LIPO | |
8419 | fi | |
8420 | else | |
8421 | LIPO="$ac_cv_prog_LIPO" | |
8422 | fi | |
8423 | ||
8424 | if test -n "$ac_tool_prefix"; then | |
8425 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8426 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8428 | $as_echo_n "checking for $ac_word... " >&6; } | |
8429 | if ${ac_cv_prog_OTOOL+:} false; then : | |
8430 | $as_echo_n "(cached) " >&6 | |
8431 | else | |
8432 | if test -n "$OTOOL"; then | |
8433 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8434 | else | |
8435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8436 | for as_dir in $PATH | |
8437 | do | |
8438 | IFS=$as_save_IFS | |
8439 | test -z "$as_dir" && as_dir=. | |
8440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8441 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8442 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8444 | break 2 | |
8445 | fi | |
8446 | done | |
8447 | done | |
8448 | IFS=$as_save_IFS | |
8449 | ||
8450 | fi | |
8451 | fi | |
8452 | OTOOL=$ac_cv_prog_OTOOL | |
8453 | if test -n "$OTOOL"; then | |
8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8455 | $as_echo "$OTOOL" >&6; } | |
8456 | else | |
8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8458 | $as_echo "no" >&6; } | |
8459 | fi | |
8460 | ||
8461 | ||
8462 | fi | |
8463 | if test -z "$ac_cv_prog_OTOOL"; then | |
8464 | ac_ct_OTOOL=$OTOOL | |
8465 | # Extract the first word of "otool", so it can be a program name with args. | |
8466 | set dummy otool; ac_word=$2 | |
8467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8468 | $as_echo_n "checking for $ac_word... " >&6; } | |
8469 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
8470 | $as_echo_n "(cached) " >&6 | |
8471 | else | |
8472 | if test -n "$ac_ct_OTOOL"; then | |
8473 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8474 | else | |
8475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8476 | for as_dir in $PATH | |
8477 | do | |
8478 | IFS=$as_save_IFS | |
8479 | test -z "$as_dir" && as_dir=. | |
8480 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8481 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8482 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8484 | break 2 | |
8485 | fi | |
8486 | done | |
8487 | done | |
8488 | IFS=$as_save_IFS | |
8489 | ||
8490 | fi | |
8491 | fi | |
8492 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8493 | if test -n "$ac_ct_OTOOL"; then | |
8494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8495 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8496 | else | |
8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8498 | $as_echo "no" >&6; } | |
8499 | fi | |
8500 | ||
8501 | if test "x$ac_ct_OTOOL" = x; then | |
8502 | OTOOL=":" | |
8503 | else | |
8504 | case $cross_compiling:$ac_tool_warned in | |
8505 | yes:) | |
8506 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8507 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8508 | ac_tool_warned=yes ;; | |
8509 | esac | |
8510 | OTOOL=$ac_ct_OTOOL | |
8511 | fi | |
8512 | else | |
8513 | OTOOL="$ac_cv_prog_OTOOL" | |
8514 | fi | |
8515 | ||
8516 | if test -n "$ac_tool_prefix"; then | |
8517 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8518 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8520 | $as_echo_n "checking for $ac_word... " >&6; } | |
8521 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8522 | $as_echo_n "(cached) " >&6 | |
8523 | else | |
8524 | if test -n "$OTOOL64"; then | |
8525 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8526 | else | |
8527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8528 | for as_dir in $PATH | |
8529 | do | |
8530 | IFS=$as_save_IFS | |
8531 | test -z "$as_dir" && as_dir=. | |
8532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8533 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8534 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8535 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8536 | break 2 | |
8537 | fi | |
8538 | done | |
8539 | done | |
8540 | IFS=$as_save_IFS | |
8541 | ||
8542 | fi | |
8543 | fi | |
8544 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8545 | if test -n "$OTOOL64"; then | |
8546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8547 | $as_echo "$OTOOL64" >&6; } | |
8548 | else | |
8549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8550 | $as_echo "no" >&6; } | |
8551 | fi | |
8552 | ||
8553 | ||
8554 | fi | |
8555 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8556 | ac_ct_OTOOL64=$OTOOL64 | |
8557 | # Extract the first word of "otool64", so it can be a program name with args. | |
8558 | set dummy otool64; ac_word=$2 | |
8559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8560 | $as_echo_n "checking for $ac_word... " >&6; } | |
8561 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8562 | $as_echo_n "(cached) " >&6 | |
8563 | else | |
8564 | if test -n "$ac_ct_OTOOL64"; then | |
8565 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8566 | else | |
8567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8568 | for as_dir in $PATH | |
8569 | do | |
8570 | IFS=$as_save_IFS | |
8571 | test -z "$as_dir" && as_dir=. | |
8572 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8573 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8574 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8575 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8576 | break 2 | |
8577 | fi | |
8578 | done | |
8579 | done | |
8580 | IFS=$as_save_IFS | |
8581 | ||
8582 | fi | |
8583 | fi | |
8584 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8585 | if test -n "$ac_ct_OTOOL64"; then | |
8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8587 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8588 | else | |
8589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8590 | $as_echo "no" >&6; } | |
8591 | fi | |
8592 | ||
8593 | if test "x$ac_ct_OTOOL64" = x; then | |
8594 | OTOOL64=":" | |
8595 | else | |
8596 | case $cross_compiling:$ac_tool_warned in | |
8597 | yes:) | |
8598 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8599 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8600 | ac_tool_warned=yes ;; | |
8601 | esac | |
8602 | OTOOL64=$ac_ct_OTOOL64 | |
8603 | fi | |
8604 | else | |
8605 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8606 | fi | |
8607 | ||
8608 | ||
8609 | ||
8610 | ||
8611 | ||
8612 | ||
8613 | ||
8614 | ||
8615 | ||
8616 | ||
8617 | ||
8618 | ||
8619 | ||
8620 | ||
8621 | ||
8622 | ||
8623 | ||
8624 | ||
8625 | ||
8626 | ||
8627 | ||
8628 | ||
8629 | ||
8630 | ||
8631 | ||
8632 | ||
8633 | ||
8634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8635 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8636 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
8637 | $as_echo_n "(cached) " >&6 | |
8638 | else | |
8639 | lt_cv_apple_cc_single_mod=no | |
8640 | if test -z "${LT_MULTI_MODULE}"; then | |
8641 | # By default we will add the -single_module flag. You can override | |
8642 | # by either setting the environment variable LT_MULTI_MODULE | |
8643 | # non-empty at configure time, or by adding -multi_module to the | |
8644 | # link flags. | |
8645 | rm -rf libconftest.dylib* | |
8646 | echo "int foo(void){return 1;}" > conftest.c | |
8647 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8648 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8649 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8650 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8651 | _lt_result=$? | |
8652 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8653 | lt_cv_apple_cc_single_mod=yes | |
8654 | else | |
8655 | cat conftest.err >&5 | |
8656 | fi | |
8657 | rm -rf libconftest.dylib* | |
8658 | rm -f conftest.* | |
8659 | fi | |
8660 | fi | |
8661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8662 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8664 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8665 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
8666 | $as_echo_n "(cached) " >&6 | |
8667 | else | |
8668 | lt_cv_ld_exported_symbols_list=no | |
8669 | save_LDFLAGS=$LDFLAGS | |
8670 | echo "_main" > conftest.sym | |
8671 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8673 | /* end confdefs.h. */ | |
8674 | ||
8675 | int | |
8676 | main () | |
8677 | { | |
8678 | ||
8679 | ; | |
8680 | return 0; | |
8681 | } | |
8682 | _ACEOF | |
8683 | if ac_fn_c_try_link "$LINENO"; then : | |
8684 | lt_cv_ld_exported_symbols_list=yes | |
8685 | else | |
8686 | lt_cv_ld_exported_symbols_list=no | |
8687 | fi | |
8688 | rm -f core conftest.err conftest.$ac_objext \ | |
8689 | conftest$ac_exeext conftest.$ac_ext | |
8690 | LDFLAGS="$save_LDFLAGS" | |
8691 | ||
8692 | fi | |
8693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
8694 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8696 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8697 | if ${lt_cv_ld_force_load+:} false; then : | |
8698 | $as_echo_n "(cached) " >&6 | |
8699 | else | |
8700 | lt_cv_ld_force_load=no | |
8701 | cat > conftest.c << _LT_EOF | |
8702 | int forced_loaded() { return 2;} | |
8703 | _LT_EOF | |
8704 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8705 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8706 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8707 | $AR cru libconftest.a conftest.o 2>&5 | |
8708 | cat > conftest.c << _LT_EOF | |
8709 | int main() { return 0;} | |
8710 | _LT_EOF | |
8711 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8712 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8713 | _lt_result=$? | |
8714 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8715 | lt_cv_ld_force_load=yes | |
8716 | else | |
8717 | cat conftest.err >&5 | |
8718 | fi | |
8719 | rm -f conftest.err libconftest.a conftest conftest.c | |
8720 | rm -rf conftest.dSYM | |
8721 | ||
8722 | fi | |
8723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8724 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
6a6859cb AM |
8725 | # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to |
8726 | # build without first building modern cctools / linker. | |
8727 | case $host_cpu-$host_os in | |
8728 | *-rhapsody* | *-darwin1.[012]) | |
b5689863 | 8729 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
6a6859cb | 8730 | *-darwin1.*) |
b5689863 | 8731 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
6a6859cb AM |
8732 | *-darwin*) |
8733 | # darwin 5.x (macOS 10.1) onwards we only need to adjust when the | |
8734 | # deployment target is forced to an earlier version. | |
8735 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in | |
8736 | UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) | |
8737 | ;; | |
b5689863 | 8738 | 10.[012][,.]*) |
6a6859cb AM |
8739 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8740 | ;; | |
8741 | *) | |
8742 | ;; | |
8743 | esac | |
b5689863 MF |
8744 | ;; |
8745 | esac | |
8746 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8747 | _lt_dar_single_mod='$single_module' | |
8748 | fi | |
8749 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8750 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8751 | else | |
8752 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8753 | fi | |
8754 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8755 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8756 | else | |
8757 | _lt_dsymutil= | |
8758 | fi | |
8759 | ;; | |
8760 | esac | |
8761 | ||
8762 | for ac_header in dlfcn.h | |
8763 | do : | |
8764 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8765 | " | |
8766 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8767 | cat >>confdefs.h <<_ACEOF | |
8768 | #define HAVE_DLFCN_H 1 | |
8769 | _ACEOF | |
8770 | ||
8771 | fi | |
8772 | ||
8773 | done | |
8774 | ||
8775 | ||
8776 | ac_header_dirent=no | |
8777 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
8778 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
8779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
8780 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
8781 | if eval \${$as_ac_Header+:} false; then : | |
8782 | $as_echo_n "(cached) " >&6 | |
8783 | else | |
8784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8785 | /* end confdefs.h. */ | |
8786 | #include <sys/types.h> | |
8787 | #include <$ac_hdr> | |
8788 | ||
8789 | int | |
8790 | main () | |
8791 | { | |
8792 | if ((DIR *) 0) | |
8793 | return 0; | |
8794 | ; | |
8795 | return 0; | |
8796 | } | |
8797 | _ACEOF | |
8798 | if ac_fn_c_try_compile "$LINENO"; then : | |
8799 | eval "$as_ac_Header=yes" | |
8800 | else | |
8801 | eval "$as_ac_Header=no" | |
8802 | fi | |
8803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8804 | fi | |
8805 | eval ac_res=\$$as_ac_Header | |
8806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8807 | $as_echo "$ac_res" >&6; } | |
8808 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8809 | cat >>confdefs.h <<_ACEOF | |
8810 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
8811 | _ACEOF | |
8812 | ||
8813 | ac_header_dirent=$ac_hdr; break | |
8814 | fi | |
8815 | ||
8816 | done | |
8817 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
8818 | if test $ac_header_dirent = dirent.h; then | |
8819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
8820 | $as_echo_n "checking for library containing opendir... " >&6; } | |
8821 | if ${ac_cv_search_opendir+:} false; then : | |
8822 | $as_echo_n "(cached) " >&6 | |
8823 | else | |
8824 | ac_func_search_save_LIBS=$LIBS | |
8825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8826 | /* end confdefs.h. */ | |
8827 | ||
8828 | /* Override any GCC internal prototype to avoid an error. | |
8829 | Use char because int might match the return type of a GCC | |
8830 | builtin and then its argument prototype would still apply. */ | |
8831 | #ifdef __cplusplus | |
8832 | extern "C" | |
8833 | #endif | |
8834 | char opendir (); | |
8835 | int | |
8836 | main () | |
8837 | { | |
8838 | return opendir (); | |
8839 | ; | |
8840 | return 0; | |
8841 | } | |
8842 | _ACEOF | |
8843 | for ac_lib in '' dir; do | |
8844 | if test -z "$ac_lib"; then | |
8845 | ac_res="none required" | |
8846 | else | |
8847 | ac_res=-l$ac_lib | |
8848 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8849 | fi | |
8850 | if ac_fn_c_try_link "$LINENO"; then : | |
8851 | ac_cv_search_opendir=$ac_res | |
8852 | fi | |
8853 | rm -f core conftest.err conftest.$ac_objext \ | |
8854 | conftest$ac_exeext | |
8855 | if ${ac_cv_search_opendir+:} false; then : | |
8856 | break | |
8857 | fi | |
8858 | done | |
8859 | if ${ac_cv_search_opendir+:} false; then : | |
8860 | ||
8861 | else | |
8862 | ac_cv_search_opendir=no | |
8863 | fi | |
8864 | rm conftest.$ac_ext | |
8865 | LIBS=$ac_func_search_save_LIBS | |
8866 | fi | |
8867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
8868 | $as_echo "$ac_cv_search_opendir" >&6; } | |
8869 | ac_res=$ac_cv_search_opendir | |
8870 | if test "$ac_res" != no; then : | |
8871 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
8872 | ||
8873 | fi | |
8874 | ||
8875 | else | |
8876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
8877 | $as_echo_n "checking for library containing opendir... " >&6; } | |
8878 | if ${ac_cv_search_opendir+:} false; then : | |
8879 | $as_echo_n "(cached) " >&6 | |
8880 | else | |
8881 | ac_func_search_save_LIBS=$LIBS | |
8882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8883 | /* end confdefs.h. */ | |
8884 | ||
8885 | /* Override any GCC internal prototype to avoid an error. | |
8886 | Use char because int might match the return type of a GCC | |
8887 | builtin and then its argument prototype would still apply. */ | |
8888 | #ifdef __cplusplus | |
8889 | extern "C" | |
8890 | #endif | |
8891 | char opendir (); | |
8892 | int | |
8893 | main () | |
8894 | { | |
8895 | return opendir (); | |
8896 | ; | |
8897 | return 0; | |
8898 | } | |
8899 | _ACEOF | |
8900 | for ac_lib in '' x; do | |
8901 | if test -z "$ac_lib"; then | |
8902 | ac_res="none required" | |
8903 | else | |
8904 | ac_res=-l$ac_lib | |
8905 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8906 | fi | |
8907 | if ac_fn_c_try_link "$LINENO"; then : | |
8908 | ac_cv_search_opendir=$ac_res | |
8909 | fi | |
8910 | rm -f core conftest.err conftest.$ac_objext \ | |
8911 | conftest$ac_exeext | |
8912 | if ${ac_cv_search_opendir+:} false; then : | |
8913 | break | |
8914 | fi | |
8915 | done | |
8916 | if ${ac_cv_search_opendir+:} false; then : | |
8917 | ||
8918 | else | |
8919 | ac_cv_search_opendir=no | |
8920 | fi | |
8921 | rm conftest.$ac_ext | |
8922 | LIBS=$ac_func_search_save_LIBS | |
8923 | fi | |
8924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
8925 | $as_echo "$ac_cv_search_opendir" >&6; } | |
8926 | ac_res=$ac_cv_search_opendir | |
8927 | if test "$ac_res" != no; then : | |
8928 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
8929 | ||
8930 | fi | |
8931 | ||
8932 | fi | |
8933 | ||
8934 | ||
8935 | ||
8936 | ||
b5689863 MF |
8937 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> |
8938 | #include <$ac_cv_struct_tm> | |
8939 | ||
8940 | " | |
8941 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | |
8942 | ||
8943 | cat >>confdefs.h <<_ACEOF | |
8944 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
8945 | _ACEOF | |
8946 | ||
8947 | ||
8948 | fi | |
8949 | ||
8950 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
8951 | ||
8952 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | |
8953 | ||
8954 | else | |
8955 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | |
8956 | " | |
8957 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | |
8958 | ac_have_decl=1 | |
8959 | else | |
8960 | ac_have_decl=0 | |
8961 | fi | |
8962 | ||
8963 | cat >>confdefs.h <<_ACEOF | |
8964 | #define HAVE_DECL_TZNAME $ac_have_decl | |
8965 | _ACEOF | |
8966 | ||
8967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | |
8968 | $as_echo_n "checking for tzname... " >&6; } | |
8969 | if ${ac_cv_var_tzname+:} false; then : | |
8970 | $as_echo_n "(cached) " >&6 | |
8971 | else | |
8972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8973 | /* end confdefs.h. */ | |
8974 | #include <time.h> | |
a48ff3ef MF |
8975 | #if !HAVE_DECL_TZNAME |
8976 | extern char *tzname[]; | |
8977 | #endif | |
b5689863 MF |
8978 | |
8979 | int | |
8980 | main () | |
8981 | { | |
8982 | return tzname[0][0]; | |
8983 | ; | |
8984 | return 0; | |
8985 | } | |
8986 | _ACEOF | |
8987 | if ac_fn_c_try_link "$LINENO"; then : | |
8988 | ac_cv_var_tzname=yes | |
8989 | else | |
8990 | ac_cv_var_tzname=no | |
8991 | fi | |
8992 | rm -f core conftest.err conftest.$ac_objext \ | |
8993 | conftest$ac_exeext conftest.$ac_ext | |
8994 | fi | |
8995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | |
8996 | $as_echo "$ac_cv_var_tzname" >&6; } | |
8997 | if test $ac_cv_var_tzname = yes; then | |
8998 | ||
8999 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | |
9000 | ||
9001 | fi | |
9002 | fi | |
9003 | ||
9004 | ||
9005 | ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H | |
9006 | #include <sys/types.h> | |
9007 | #endif | |
b5689863 | 9008 | #include <sys/stat.h> |
b5689863 MF |
9009 | " |
9010 | if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then : | |
9011 | ||
9012 | cat >>confdefs.h <<_ACEOF | |
9013 | #define HAVE_STRUCT_STAT_ST_DEV 1 | |
9014 | _ACEOF | |
9015 | ||
9016 | ||
9017 | fi | |
9018 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H | |
9019 | #include <sys/types.h> | |
9020 | #endif | |
b5689863 | 9021 | #include <sys/stat.h> |
b5689863 MF |
9022 | " |
9023 | if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then : | |
9024 | ||
9025 | cat >>confdefs.h <<_ACEOF | |
9026 | #define HAVE_STRUCT_STAT_ST_INO 1 | |
9027 | _ACEOF | |
9028 | ||
9029 | ||
9030 | fi | |
9031 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H | |
9032 | #include <sys/types.h> | |
9033 | #endif | |
b5689863 | 9034 | #include <sys/stat.h> |
b5689863 MF |
9035 | " |
9036 | if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then : | |
9037 | ||
9038 | cat >>confdefs.h <<_ACEOF | |
9039 | #define HAVE_STRUCT_STAT_ST_MODE 1 | |
9040 | _ACEOF | |
9041 | ||
9042 | ||
9043 | fi | |
9044 | ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H | |
9045 | #include <sys/types.h> | |
9046 | #endif | |
b5689863 | 9047 | #include <sys/stat.h> |
b5689863 MF |
9048 | " |
9049 | if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then : | |
9050 | ||
9051 | cat >>confdefs.h <<_ACEOF | |
9052 | #define HAVE_STRUCT_STAT_ST_NLINK 1 | |
9053 | _ACEOF | |
9054 | ||
9055 | ||
9056 | fi | |
9057 | ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H | |
9058 | #include <sys/types.h> | |
9059 | #endif | |
b5689863 | 9060 | #include <sys/stat.h> |
b5689863 MF |
9061 | " |
9062 | if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then : | |
9063 | ||
9064 | cat >>confdefs.h <<_ACEOF | |
9065 | #define HAVE_STRUCT_STAT_ST_UID 1 | |
9066 | _ACEOF | |
9067 | ||
9068 | ||
9069 | fi | |
9070 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H | |
9071 | #include <sys/types.h> | |
9072 | #endif | |
b5689863 | 9073 | #include <sys/stat.h> |
b5689863 MF |
9074 | " |
9075 | if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then : | |
9076 | ||
9077 | cat >>confdefs.h <<_ACEOF | |
9078 | #define HAVE_STRUCT_STAT_ST_GID 1 | |
9079 | _ACEOF | |
9080 | ||
9081 | ||
9082 | fi | |
9083 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H | |
9084 | #include <sys/types.h> | |
9085 | #endif | |
b5689863 | 9086 | #include <sys/stat.h> |
b5689863 MF |
9087 | " |
9088 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : | |
9089 | ||
9090 | cat >>confdefs.h <<_ACEOF | |
9091 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
9092 | _ACEOF | |
9093 | ||
9094 | ||
9095 | fi | |
9096 | ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H | |
9097 | #include <sys/types.h> | |
9098 | #endif | |
b5689863 | 9099 | #include <sys/stat.h> |
b5689863 MF |
9100 | " |
9101 | if test "x$ac_cv_member_struct_stat_st_size" = xyes; then : | |
9102 | ||
9103 | cat >>confdefs.h <<_ACEOF | |
9104 | #define HAVE_STRUCT_STAT_ST_SIZE 1 | |
9105 | _ACEOF | |
9106 | ||
9107 | ||
9108 | fi | |
9109 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H | |
9110 | #include <sys/types.h> | |
9111 | #endif | |
b5689863 | 9112 | #include <sys/stat.h> |
b5689863 MF |
9113 | " |
9114 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | |
9115 | ||
9116 | cat >>confdefs.h <<_ACEOF | |
9117 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
9118 | _ACEOF | |
9119 | ||
9120 | ||
9121 | fi | |
9122 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H | |
9123 | #include <sys/types.h> | |
9124 | #endif | |
b5689863 | 9125 | #include <sys/stat.h> |
b5689863 MF |
9126 | " |
9127 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | |
9128 | ||
9129 | cat >>confdefs.h <<_ACEOF | |
9130 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
9131 | _ACEOF | |
9132 | ||
9133 | ||
9134 | fi | |
9135 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H | |
9136 | #include <sys/types.h> | |
9137 | #endif | |
b5689863 | 9138 | #include <sys/stat.h> |
b5689863 MF |
9139 | " |
9140 | if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then : | |
9141 | ||
9142 | cat >>confdefs.h <<_ACEOF | |
9143 | #define HAVE_STRUCT_STAT_ST_ATIME 1 | |
9144 | _ACEOF | |
9145 | ||
9146 | ||
9147 | fi | |
9148 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H | |
9149 | #include <sys/types.h> | |
9150 | #endif | |
b5689863 | 9151 | #include <sys/stat.h> |
b5689863 MF |
9152 | " |
9153 | if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then : | |
9154 | ||
9155 | cat >>confdefs.h <<_ACEOF | |
9156 | #define HAVE_STRUCT_STAT_ST_MTIME 1 | |
9157 | _ACEOF | |
9158 | ||
9159 | ||
9160 | fi | |
9161 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H | |
9162 | #include <sys/types.h> | |
9163 | #endif | |
b5689863 | 9164 | #include <sys/stat.h> |
b5689863 MF |
9165 | " |
9166 | if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then : | |
9167 | ||
9168 | cat >>confdefs.h <<_ACEOF | |
9169 | #define HAVE_STRUCT_STAT_ST_CTIME 1 | |
9170 | _ACEOF | |
9171 | ||
9172 | ||
9173 | fi | |
9174 | ||
9175 | ||
9176 | ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default" | |
9177 | if test "x$ac_cv_type___int128" = xyes; then : | |
9178 | ||
9179 | cat >>confdefs.h <<_ACEOF | |
9180 | #define HAVE___INT128 1 | |
9181 | _ACEOF | |
9182 | ||
9183 | ||
9184 | fi | |
9185 | ||
9186 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | |
9187 | #include <sys/socket.h> | |
9188 | ||
9189 | " | |
9190 | if test "x$ac_cv_type_socklen_t" = xyes; then : | |
9191 | ||
9192 | cat >>confdefs.h <<_ACEOF | |
9193 | #define HAVE_SOCKLEN_T 1 | |
9194 | _ACEOF | |
9195 | ||
9196 | ||
9197 | fi | |
9198 | ||
9199 | ||
08a7937f MF |
9200 | # The cast to long int works around a bug in the HP C Compiler |
9201 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
9202 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
9203 | # This bug is HP SR number 8606223364. | |
9204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
9205 | $as_echo_n "checking size of void *... " >&6; } | |
9206 | if ${ac_cv_sizeof_void_p+:} false; then : | |
9207 | $as_echo_n "(cached) " >&6 | |
9208 | else | |
9209 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
9210 | ||
9211 | else | |
9212 | if test "$ac_cv_type_void_p" = yes; then | |
9213 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
9214 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
9215 | as_fn_error 77 "cannot compute sizeof (void *) | |
9216 | See \`config.log' for more details" "$LINENO" 5; } | |
9217 | else | |
9218 | ac_cv_sizeof_void_p=0 | |
9219 | fi | |
9220 | fi | |
9221 | ||
9222 | fi | |
9223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
9224 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
9225 | ||
9226 | ||
9227 | ||
9228 | cat >>confdefs.h <<_ACEOF | |
9229 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
9230 | _ACEOF | |
9231 | ||
9232 | ||
9233 | ||
d43207b0 MF |
9234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5 |
9235 | $as_echo_n "checking for struct statfs... " >&6; } | |
9236 | if ${sim_cv_struct_statfs+:} false; then : | |
9237 | $as_echo_n "(cached) " >&6 | |
9238 | else | |
9239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9240 | /* end confdefs.h. */ | |
9241 | ||
9242 | #include <sys/types.h> | |
9243 | #ifdef HAVE_SYS_PARAM_H | |
9244 | #include <sys/param.h> | |
9245 | #endif | |
9246 | #ifdef HAVE_SYS_MOUNT_H | |
9247 | #include <sys/mount.h> | |
9248 | #endif | |
9249 | #ifdef HAVE_SYS_VFS_H | |
9250 | #include <sys/vfs.h> | |
9251 | #endif | |
9252 | #ifdef HAVE_SYS_STATFS_H | |
9253 | #include <sys/statfs.h> | |
9254 | #endif | |
9255 | int | |
9256 | main () | |
9257 | { | |
9258 | ||
9259 | struct statfs s; | |
9260 | ||
9261 | ; | |
9262 | return 0; | |
9263 | } | |
9264 | _ACEOF | |
9265 | if ac_fn_c_try_compile "$LINENO"; then : | |
9266 | sim_cv_struct_statfs="yes" | |
9267 | else | |
9268 | sim_cv_struct_statfs="no" | |
9269 | fi | |
9270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9271 | fi | |
9272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_struct_statfs" >&5 | |
9273 | $as_echo "$sim_cv_struct_statfs" >&6; } | |
9274 | if test x"sim_cv_struct_statfs" = x"yes"; then : | |
9275 | ||
9276 | $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h | |
9277 | ||
9278 | ||
9279 | fi | |
9280 | ||
d4720664 MF |
9281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5 |
9282 | $as_echo_n "checking if union semun defined... " >&6; } | |
9283 | if ${sim_cv_has_union_semun+:} false; then : | |
9284 | $as_echo_n "(cached) " >&6 | |
9285 | else | |
9286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9287 | /* end confdefs.h. */ | |
9288 | ||
9289 | #include <sys/types.h> | |
9290 | #include <sys/ipc.h> | |
9291 | #include <sys/sem.h> | |
9292 | int | |
9293 | main () | |
9294 | { | |
9295 | ||
9296 | union semun arg; | |
9297 | ||
9298 | ; | |
9299 | return 0; | |
9300 | } | |
9301 | _ACEOF | |
9302 | if ac_fn_c_try_compile "$LINENO"; then : | |
9303 | sim_cv_has_union_semun="yes" | |
9304 | else | |
9305 | sim_cv_has_union_semun="no" | |
9306 | fi | |
9307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9308 | fi | |
9309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_has_union_semun" >&5 | |
9310 | $as_echo "$sim_cv_has_union_semun" >&6; } | |
9311 | if test x"$sim_cv_has_union_semun" = x"yes"; then : | |
9312 | ||
9313 | $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h | |
9314 | ||
9315 | ||
9316 | fi | |
9317 | ||
9318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5 | |
9319 | $as_echo_n "checking whether System V semaphores are supported... " >&6; } | |
9320 | if ${sim_cv_sysv_sem+:} false; then : | |
9321 | $as_echo_n "(cached) " >&6 | |
9322 | else | |
9323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9324 | /* end confdefs.h. */ | |
9325 | ||
9326 | #include <sys/types.h> | |
9327 | #include <sys/ipc.h> | |
9328 | #include <sys/sem.h> | |
9329 | #ifndef HAVE_UNION_SEMUN | |
9330 | union semun { | |
9331 | int val; | |
9332 | struct semid_ds *buf; | |
9333 | ushort *array; | |
9334 | }; | |
9335 | #endif | |
9336 | int | |
9337 | main () | |
9338 | { | |
9339 | ||
9340 | union semun arg; | |
9341 | int id = semget(IPC_PRIVATE, 1, IPC_CREAT|0400); | |
9342 | if (id == -1) | |
9343 | return 1; | |
9344 | arg.val = 0; /* avoid implicit type cast to union */ | |
9345 | if (semctl(id, 0, IPC_RMID, arg) == -1) | |
9346 | return 1; | |
9347 | ||
9348 | ; | |
9349 | return 0; | |
9350 | } | |
9351 | _ACEOF | |
9352 | if ac_fn_c_try_compile "$LINENO"; then : | |
9353 | sim_cv_sysv_sem="yes" | |
9354 | else | |
9355 | sim_cv_sysv_sem="no" | |
9356 | fi | |
9357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9358 | fi | |
9359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_sem" >&5 | |
9360 | $as_echo "$sim_cv_sysv_sem" >&6; } | |
9361 | if test x"$sim_cv_sysv_sem" = x"yes"; then : | |
9362 | ||
9363 | $as_echo "#define HAVE_SYSV_SEM 1" >>confdefs.h | |
9364 | ||
9365 | ||
9366 | fi | |
9367 | ||
9368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5 | |
9369 | $as_echo_n "checking whether System V shared memory is supported... " >&6; } | |
9370 | if ${sim_cv_sysv_shm+:} false; then : | |
9371 | $as_echo_n "(cached) " >&6 | |
9372 | else | |
9373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9374 | /* end confdefs.h. */ | |
9375 | ||
9376 | #include <sys/types.h> | |
9377 | #include <sys/ipc.h> | |
9378 | #include <sys/shm.h> | |
9379 | int | |
9380 | main () | |
9381 | { | |
9382 | ||
9383 | int id = shmget(IPC_PRIVATE, 1, IPC_CREAT|0400); | |
9384 | if (id == -1) | |
9385 | return 1; | |
9386 | if (shmctl(id, IPC_RMID, 0) == -1) | |
9387 | return 1; | |
9388 | ||
9389 | ; | |
9390 | return 0; | |
9391 | } | |
9392 | _ACEOF | |
9393 | if ac_fn_c_try_compile "$LINENO"; then : | |
9394 | sim_cv_sysv_shm="yes" | |
9395 | else | |
9396 | sim_cv_sysv_shm="no" | |
9397 | fi | |
9398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9399 | fi | |
9400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_shm" >&5 | |
9401 | $as_echo "$sim_cv_sysv_shm" >&6; } | |
9402 | if test x"$sim_cv_sysv_shm" = x"yes"; then : | |
9403 | ||
9404 | $as_echo "#define HAVE_SYSV_SHM 1" >>confdefs.h | |
9405 | ||
9406 | ||
9407 | fi | |
9408 | ||
6bf212a8 MF |
9409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5 |
9410 | $as_echo_n "checking for struct termios... " >&6; } | |
9411 | if ${sim_cv_termios_struct+:} false; then : | |
9412 | $as_echo_n "(cached) " >&6 | |
9413 | else | |
9414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9415 | /* end confdefs.h. */ | |
9416 | ||
9417 | #include <sys/types.h> | |
9418 | #include <sys/termios.h> | |
9419 | int | |
9420 | main () | |
9421 | { | |
9422 | ||
9423 | static struct termios x; | |
9424 | x.c_iflag = 0; | |
9425 | x.c_oflag = 0; | |
9426 | x.c_cflag = 0; | |
9427 | x.c_lflag = 0; | |
9428 | x.c_cc[NCCS] = 0; | |
9429 | ||
9430 | ; | |
9431 | return 0; | |
9432 | } | |
9433 | _ACEOF | |
9434 | if ac_fn_c_try_compile "$LINENO"; then : | |
9435 | sim_cv_termios_struct="yes" | |
9436 | else | |
9437 | sim_cv_termios_struct="no" | |
9438 | fi | |
9439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9440 | fi | |
9441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termios_struct" >&5 | |
9442 | $as_echo "$sim_cv_termios_struct" >&6; } | |
9443 | if test $sim_cv_termios_struct = yes; then | |
9444 | ||
9445 | $as_echo "#define HAVE_TERMIOS_STRUCTURE 1" >>confdefs.h | |
9446 | ||
9447 | fi | |
9448 | ||
9449 | if test "$sim_cv_termios_struct" = "yes"; then | |
9450 | if ${sim_cv_termios_cline+:} false; then : | |
9451 | $as_echo_n "(cached) " >&6 | |
9452 | fi | |
9453 | ||
9454 | ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" " | |
9455 | #include <sys/types.h> | |
9456 | #include <sys/termios.h> | |
9457 | ||
9458 | " | |
9459 | if test "x$ac_cv_member_struct_termios_c_line" = xyes; then : | |
9460 | sim_cv_termios_cline="yes" | |
9461 | else | |
9462 | sim_cv_termios_cline="no" | |
9463 | fi | |
9464 | ||
9465 | if test $sim_cv_termios_cline = yes; then | |
9466 | ||
9467 | $as_echo "#define HAVE_TERMIOS_CLINE 1" >>confdefs.h | |
9468 | ||
9469 | fi | |
9470 | else | |
9471 | sim_cv_termios_cline=no | |
9472 | fi | |
9473 | ||
9474 | if test "$sim_cv_termios_struct" != "yes"; then | |
9475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5 | |
9476 | $as_echo_n "checking for struct termio... " >&6; } | |
9477 | if ${sim_cv_termio_struct+:} false; then : | |
9478 | $as_echo_n "(cached) " >&6 | |
9479 | else | |
9480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9481 | /* end confdefs.h. */ | |
9482 | ||
9483 | #include <sys/types.h> | |
9484 | #include <sys/termio.h> | |
9485 | int | |
9486 | main () | |
9487 | { | |
9488 | ||
9489 | static struct termio x; | |
9490 | x.c_iflag = 0; | |
9491 | x.c_oflag = 0; | |
9492 | x.c_cflag = 0; | |
9493 | x.c_lflag = 0; | |
9494 | x.c_cc[NCC] = 0; | |
9495 | ||
9496 | ; | |
9497 | return 0; | |
9498 | } | |
9499 | _ACEOF | |
9500 | if ac_fn_c_try_compile "$LINENO"; then : | |
9501 | sim_cv_termio_struct="yes" | |
9502 | else | |
9503 | sim_cv_termio_struct="no" | |
9504 | fi | |
9505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9506 | fi | |
9507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termio_struct" >&5 | |
9508 | $as_echo "$sim_cv_termio_struct" >&6; } | |
9509 | if test $sim_cv_termio_struct = yes; then | |
9510 | ||
9511 | $as_echo "#define HAVE_TERMIO_STRUCTURE 1" >>confdefs.h | |
9512 | ||
9513 | fi | |
9514 | else | |
9515 | sim_cv_termio_struct=no | |
9516 | fi | |
9517 | ||
9518 | if test "$sim_cv_termio_struct" = "yes"; then | |
9519 | if ${sim_cv_termio_cline+:} false; then : | |
9520 | $as_echo_n "(cached) " >&6 | |
9521 | fi | |
9522 | ||
9523 | ac_fn_c_check_member "$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" " | |
9524 | #include <sys/types.h> | |
9525 | #include <sys/termio.h> | |
9526 | ||
9527 | " | |
9528 | if test "x$ac_cv_member_struct_termio_c_line" = xyes; then : | |
9529 | sim_cv_termio_cline="yes" | |
9530 | else | |
9531 | sim_cv_termio_cline="no" | |
9532 | fi | |
9533 | ||
9534 | if test $sim_cv_termio_cline = yes; then | |
9535 | ||
9536 | $as_echo "#define HAVE_TERMIO_CLINE 1" >>confdefs.h | |
9537 | ||
9538 | fi | |
9539 | else | |
9540 | sim_cv_termio_cline=no | |
9541 | fi | |
9542 | ||
b5689863 MF |
9543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 |
9544 | $as_echo_n "checking type of array argument to getgroups... " >&6; } | |
9545 | if ${ac_cv_type_getgroups+:} false; then : | |
9546 | $as_echo_n "(cached) " >&6 | |
9547 | else | |
9548 | if test "$cross_compiling" = yes; then : | |
9549 | ac_cv_type_getgroups=cross | |
9550 | else | |
9551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9552 | /* end confdefs.h. */ | |
9553 | /* Thanks to Mike Rendell for this test. */ | |
9554 | $ac_includes_default | |
9555 | #define NGID 256 | |
9556 | #undef MAX | |
9557 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
9558 | ||
9559 | int | |
9560 | main () | |
9561 | { | |
9562 | gid_t gidset[NGID]; | |
9563 | int i, n; | |
9564 | union { gid_t gval; long int lval; } val; | |
9565 | ||
9566 | val.lval = -1; | |
9567 | for (i = 0; i < NGID; i++) | |
9568 | gidset[i] = val.gval; | |
9569 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
9570 | gidset); | |
9571 | /* Exit non-zero if getgroups seems to require an array of ints. This | |
9572 | happens when gid_t is short int but getgroups modifies an array | |
9573 | of ints. */ | |
9574 | return n > 0 && gidset[n] != val.gval; | |
9575 | } | |
9576 | _ACEOF | |
9577 | if ac_fn_c_try_run "$LINENO"; then : | |
9578 | ac_cv_type_getgroups=gid_t | |
9579 | else | |
9580 | ac_cv_type_getgroups=int | |
9581 | fi | |
9582 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
9583 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9584 | fi | |
9585 | ||
9586 | if test $ac_cv_type_getgroups = cross; then | |
9587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9588 | /* end confdefs.h. */ | |
9589 | #include <unistd.h> | |
9590 | ||
9591 | _ACEOF | |
9592 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9593 | $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : | |
9594 | ac_cv_type_getgroups=gid_t | |
9595 | else | |
9596 | ac_cv_type_getgroups=int | |
9597 | fi | |
9598 | rm -f conftest* | |
9599 | ||
9600 | fi | |
9601 | fi | |
9602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 | |
9603 | $as_echo "$ac_cv_type_getgroups" >&6; } | |
9604 | ||
9605 | cat >>confdefs.h <<_ACEOF | |
9606 | #define GETGROUPS_T $ac_cv_type_getgroups | |
9607 | _ACEOF | |
9608 | ||
9609 | ||
9610 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
9611 | if test "x$ac_cv_type_mode_t" = xyes; then : | |
9612 | ||
9613 | else | |
9614 | ||
9615 | cat >>confdefs.h <<_ACEOF | |
9616 | #define mode_t int | |
9617 | _ACEOF | |
9618 | ||
9619 | fi | |
9620 | ||
9621 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | |
9622 | if test "x$ac_cv_type_off_t" = xyes; then : | |
9623 | ||
9624 | else | |
9625 | ||
9626 | cat >>confdefs.h <<_ACEOF | |
9627 | #define off_t long int | |
9628 | _ACEOF | |
9629 | ||
9630 | fi | |
9631 | ||
9632 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | |
9633 | if test "x$ac_cv_type_pid_t" = xyes; then : | |
9634 | ||
9635 | else | |
9636 | ||
9637 | cat >>confdefs.h <<_ACEOF | |
9638 | #define pid_t int | |
9639 | _ACEOF | |
9640 | ||
9641 | fi | |
9642 | ||
b5689863 MF |
9643 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
9644 | if test "x$ac_cv_type_size_t" = xyes; then : | |
9645 | ||
9646 | else | |
9647 | ||
9648 | cat >>confdefs.h <<_ACEOF | |
9649 | #define size_t unsigned int | |
9650 | _ACEOF | |
9651 | ||
9652 | fi | |
9653 | ||
9654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
9655 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
9656 | if ${ac_cv_type_uid_t+:} false; then : | |
9657 | $as_echo_n "(cached) " >&6 | |
9658 | else | |
9659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9660 | /* end confdefs.h. */ | |
9661 | #include <sys/types.h> | |
9662 | ||
9663 | _ACEOF | |
9664 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9665 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
9666 | ac_cv_type_uid_t=yes | |
9667 | else | |
9668 | ac_cv_type_uid_t=no | |
9669 | fi | |
9670 | rm -f conftest* | |
9671 | ||
9672 | fi | |
9673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | |
9674 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
9675 | if test $ac_cv_type_uid_t = no; then | |
9676 | ||
9677 | $as_echo "#define uid_t int" >>confdefs.h | |
9678 | ||
9679 | ||
9680 | $as_echo "#define gid_t int" >>confdefs.h | |
9681 | ||
9682 | fi | |
9683 | ||
9684 | ||
b5689863 MF |
9685 | |
9686 | ||
9687 | ||
9688 | ||
9689 | # Set options | |
b5689863 MF |
9690 | |
9691 | ||
9692 | ||
89cf99a9 MF |
9693 | enable_dlopen=no |
9694 | ||
b5689863 MF |
9695 | |
9696 | enable_win32_dll=no | |
9697 | ||
9698 | ||
9699 | # Check whether --enable-shared was given. | |
9700 | if test "${enable_shared+set}" = set; then : | |
9701 | enableval=$enable_shared; p=${PACKAGE-default} | |
9702 | case $enableval in | |
9703 | yes) enable_shared=yes ;; | |
9704 | no) enable_shared=no ;; | |
9705 | *) | |
9706 | enable_shared=no | |
9707 | # Look at the argument we got. We use all the common list separators. | |
9708 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9709 | for pkg in $enableval; do | |
9710 | IFS="$lt_save_ifs" | |
9711 | if test "X$pkg" = "X$p"; then | |
9712 | enable_shared=yes | |
9713 | fi | |
9714 | done | |
9715 | IFS="$lt_save_ifs" | |
9716 | ;; | |
9717 | esac | |
9718 | else | |
9719 | enable_shared=yes | |
9720 | fi | |
9721 | ||
9722 | ||
9723 | ||
9724 | ||
9725 | ||
9726 | ||
9727 | ||
9728 | ||
9729 | ||
9730 | # Check whether --enable-static was given. | |
9731 | if test "${enable_static+set}" = set; then : | |
9732 | enableval=$enable_static; p=${PACKAGE-default} | |
9733 | case $enableval in | |
9734 | yes) enable_static=yes ;; | |
9735 | no) enable_static=no ;; | |
9736 | *) | |
9737 | enable_static=no | |
9738 | # Look at the argument we got. We use all the common list separators. | |
9739 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9740 | for pkg in $enableval; do | |
9741 | IFS="$lt_save_ifs" | |
9742 | if test "X$pkg" = "X$p"; then | |
9743 | enable_static=yes | |
9744 | fi | |
9745 | done | |
9746 | IFS="$lt_save_ifs" | |
9747 | ;; | |
9748 | esac | |
9749 | else | |
9750 | enable_static=yes | |
9751 | fi | |
9752 | ||
9753 | ||
9754 | ||
9755 | ||
9756 | ||
9757 | ||
9758 | ||
9759 | ||
9760 | ||
9761 | ||
9762 | # Check whether --with-pic was given. | |
9763 | if test "${with_pic+set}" = set; then : | |
9764 | withval=$with_pic; pic_mode="$withval" | |
9765 | else | |
9766 | pic_mode=default | |
9767 | fi | |
9768 | ||
9769 | ||
9770 | test -z "$pic_mode" && pic_mode=default | |
9771 | ||
9772 | ||
9773 | ||
9774 | ||
9775 | ||
9776 | ||
9777 | ||
9778 | # Check whether --enable-fast-install was given. | |
9779 | if test "${enable_fast_install+set}" = set; then : | |
9780 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
9781 | case $enableval in | |
9782 | yes) enable_fast_install=yes ;; | |
9783 | no) enable_fast_install=no ;; | |
9784 | *) | |
9785 | enable_fast_install=no | |
9786 | # Look at the argument we got. We use all the common list separators. | |
9787 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9788 | for pkg in $enableval; do | |
9789 | IFS="$lt_save_ifs" | |
9790 | if test "X$pkg" = "X$p"; then | |
9791 | enable_fast_install=yes | |
9792 | fi | |
9793 | done | |
9794 | IFS="$lt_save_ifs" | |
9795 | ;; | |
9796 | esac | |
9797 | else | |
9798 | enable_fast_install=yes | |
9799 | fi | |
9800 | ||
9801 | ||
9802 | ||
9803 | ||
9804 | ||
9805 | ||
9806 | ||
9807 | ||
9808 | ||
9809 | ||
9810 | ||
9811 | # This can be used to rebuild libtool when needed | |
9812 | LIBTOOL_DEPS="$ltmain" | |
9813 | ||
9814 | # Always use our own libtool. | |
9815 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9816 | ||
9817 | ||
9818 | ||
9819 | ||
9820 | ||
9821 | ||
9822 | ||
9823 | ||
9824 | ||
9825 | ||
9826 | ||
9827 | ||
9828 | ||
9829 | ||
9830 | ||
9831 | ||
9832 | ||
9833 | ||
9834 | ||
9835 | ||
9836 | ||
9837 | ||
9838 | ||
9839 | ||
9840 | ||
9841 | ||
9842 | test -z "$LN_S" && LN_S="ln -s" | |
9843 | ||
9844 | ||
9845 | ||
9846 | ||
9847 | ||
9848 | ||
9849 | ||
9850 | ||
9851 | ||
9852 | ||
9853 | ||
9854 | ||
9855 | ||
9856 | ||
9857 | if test -n "${ZSH_VERSION+set}" ; then | |
9858 | setopt NO_GLOB_SUBST | |
9859 | fi | |
9860 | ||
9861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
9862 | $as_echo_n "checking for objdir... " >&6; } | |
9863 | if ${lt_cv_objdir+:} false; then : | |
9864 | $as_echo_n "(cached) " >&6 | |
9865 | else | |
9866 | rm -f .libs 2>/dev/null | |
9867 | mkdir .libs 2>/dev/null | |
9868 | if test -d .libs; then | |
9869 | lt_cv_objdir=.libs | |
9870 | else | |
9871 | # MS-DOS does not allow filenames that begin with a dot. | |
9872 | lt_cv_objdir=_libs | |
9873 | fi | |
9874 | rmdir .libs 2>/dev/null | |
9875 | fi | |
9876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
9877 | $as_echo "$lt_cv_objdir" >&6; } | |
9878 | objdir=$lt_cv_objdir | |
9879 | ||
9880 | ||
9881 | ||
9882 | ||
9883 | ||
9884 | cat >>confdefs.h <<_ACEOF | |
9885 | #define LT_OBJDIR "$lt_cv_objdir/" | |
9886 | _ACEOF | |
9887 | ||
9888 | ||
9889 | ||
9890 | ||
9891 | case $host_os in | |
9892 | aix3*) | |
9893 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9894 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9895 | # vanish in a puff of smoke. | |
9896 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
9897 | COLLECT_NAMES= | |
9898 | export COLLECT_NAMES | |
9899 | fi | |
9900 | ;; | |
9901 | esac | |
9902 | ||
9903 | # Global variables: | |
9904 | ofile=libtool | |
9905 | can_build_shared=yes | |
9906 | ||
9907 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
9908 | # which needs '.lib'). | |
9909 | libext=a | |
9910 | ||
9911 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
9912 | ||
9913 | old_CC="$CC" | |
9914 | old_CFLAGS="$CFLAGS" | |
9915 | ||
9916 | # Set sane defaults for various variables | |
9917 | test -z "$CC" && CC=cc | |
9918 | test -z "$LTCC" && LTCC=$CC | |
9919 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9920 | test -z "$LD" && LD=ld | |
9921 | test -z "$ac_objext" && ac_objext=o | |
9922 | ||
9923 | for cc_temp in $compiler""; do | |
9924 | case $cc_temp in | |
9925 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9926 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9927 | \-*) ;; | |
9928 | *) break;; | |
9929 | esac | |
9930 | done | |
9931 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
9932 | ||
9933 | ||
9934 | # Only perform the check for file, if the check method requires it | |
9935 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9936 | case $deplibs_check_method in | |
9937 | file_magic*) | |
9938 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
9939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
9940 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
9941 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9942 | $as_echo_n "(cached) " >&6 | |
9943 | else | |
9944 | case $MAGIC_CMD in | |
9945 | [\\/*] | ?:[\\/]*) | |
9946 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9947 | ;; | |
9948 | *) | |
9949 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9950 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9951 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9952 | for ac_dir in $ac_dummy; do | |
9953 | IFS="$lt_save_ifs" | |
9954 | test -z "$ac_dir" && ac_dir=. | |
9955 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9956 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9957 | if test -n "$file_magic_test_file"; then | |
9958 | case $deplibs_check_method in | |
9959 | "file_magic "*) | |
9960 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9961 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9962 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9963 | $EGREP "$file_magic_regex" > /dev/null; then | |
9964 | : | |
9965 | else | |
9966 | cat <<_LT_EOF 1>&2 | |
9967 | ||
9968 | *** Warning: the command libtool uses to detect shared libraries, | |
9969 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9970 | *** The result is that libtool may fail to recognize shared libraries | |
9971 | *** as such. This will affect the creation of libtool libraries that | |
9972 | *** depend on shared libraries, but programs linked with such libtool | |
9973 | *** libraries will work regardless of this problem. Nevertheless, you | |
9974 | *** may want to report the problem to your system manager and/or to | |
9975 | *** bug-libtool@gnu.org | |
9976 | ||
9977 | _LT_EOF | |
9978 | fi ;; | |
9979 | esac | |
9980 | fi | |
9981 | break | |
9982 | fi | |
9983 | done | |
9984 | IFS="$lt_save_ifs" | |
9985 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9986 | ;; | |
9987 | esac | |
9988 | fi | |
9989 | ||
9990 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9991 | if test -n "$MAGIC_CMD"; then | |
9992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9993 | $as_echo "$MAGIC_CMD" >&6; } | |
9994 | else | |
9995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9996 | $as_echo "no" >&6; } | |
9997 | fi | |
9998 | ||
9999 | ||
10000 | ||
10001 | ||
10002 | ||
10003 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
10004 | if test -n "$ac_tool_prefix"; then | |
10005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
10006 | $as_echo_n "checking for file... " >&6; } | |
10007 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
10008 | $as_echo_n "(cached) " >&6 | |
10009 | else | |
10010 | case $MAGIC_CMD in | |
10011 | [\\/*] | ?:[\\/]*) | |
10012 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
10013 | ;; | |
10014 | *) | |
10015 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
10016 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
10017 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
10018 | for ac_dir in $ac_dummy; do | |
10019 | IFS="$lt_save_ifs" | |
10020 | test -z "$ac_dir" && ac_dir=. | |
10021 | if test -f $ac_dir/file; then | |
10022 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
10023 | if test -n "$file_magic_test_file"; then | |
10024 | case $deplibs_check_method in | |
10025 | "file_magic "*) | |
10026 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
10027 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
10028 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
10029 | $EGREP "$file_magic_regex" > /dev/null; then | |
10030 | : | |
10031 | else | |
10032 | cat <<_LT_EOF 1>&2 | |
10033 | ||
10034 | *** Warning: the command libtool uses to detect shared libraries, | |
10035 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
10036 | *** The result is that libtool may fail to recognize shared libraries | |
10037 | *** as such. This will affect the creation of libtool libraries that | |
10038 | *** depend on shared libraries, but programs linked with such libtool | |
10039 | *** libraries will work regardless of this problem. Nevertheless, you | |
10040 | *** may want to report the problem to your system manager and/or to | |
10041 | *** bug-libtool@gnu.org | |
10042 | ||
10043 | _LT_EOF | |
10044 | fi ;; | |
10045 | esac | |
10046 | fi | |
10047 | break | |
10048 | fi | |
10049 | done | |
10050 | IFS="$lt_save_ifs" | |
10051 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
10052 | ;; | |
10053 | esac | |
10054 | fi | |
10055 | ||
10056 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
10057 | if test -n "$MAGIC_CMD"; then | |
10058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
10059 | $as_echo "$MAGIC_CMD" >&6; } | |
10060 | else | |
10061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10062 | $as_echo "no" >&6; } | |
10063 | fi | |
10064 | ||
10065 | ||
10066 | else | |
10067 | MAGIC_CMD=: | |
10068 | fi | |
10069 | fi | |
10070 | ||
10071 | fi | |
10072 | ;; | |
10073 | esac | |
10074 | ||
10075 | # Use C for the default configuration in the libtool script | |
10076 | ||
10077 | lt_save_CC="$CC" | |
10078 | ac_ext=c | |
10079 | ac_cpp='$CPP $CPPFLAGS' | |
10080 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10081 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10082 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10083 | ||
10084 | ||
10085 | # Source file extension for C test sources. | |
10086 | ac_ext=c | |
10087 | ||
10088 | # Object file extension for compiled C test sources. | |
10089 | objext=o | |
10090 | objext=$objext | |
10091 | ||
10092 | # Code to be used in simple compile tests | |
10093 | lt_simple_compile_test_code="int some_variable = 0;" | |
10094 | ||
10095 | # Code to be used in simple link tests | |
10096 | lt_simple_link_test_code='int main(){return(0);}' | |
10097 | ||
10098 | ||
10099 | ||
10100 | ||
10101 | ||
10102 | ||
10103 | ||
10104 | # If no C compiler was specified, use CC. | |
10105 | LTCC=${LTCC-"$CC"} | |
10106 | ||
10107 | # If no C compiler flags were specified, use CFLAGS. | |
10108 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
10109 | ||
10110 | # Allow CC to be a program name with arguments. | |
10111 | compiler=$CC | |
10112 | ||
10113 | # Save the default compiler, since it gets overwritten when the other | |
10114 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
10115 | compiler_DEFAULT=$CC | |
10116 | ||
10117 | # save warnings/boilerplate of simple test code | |
10118 | ac_outfile=conftest.$ac_objext | |
10119 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
10120 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10121 | _lt_compiler_boilerplate=`cat conftest.err` | |
10122 | $RM conftest* | |
10123 | ||
10124 | ac_outfile=conftest.$ac_objext | |
10125 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
10126 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10127 | _lt_linker_boilerplate=`cat conftest.err` | |
10128 | $RM -r conftest* | |
10129 | ||
10130 | ||
10131 | ## CAVEAT EMPTOR: | |
10132 | ## There is no encapsulation within the following macros, do not change | |
10133 | ## the running order or otherwise move them around unless you know exactly | |
10134 | ## what you are doing... | |
10135 | if test -n "$compiler"; then | |
10136 | ||
10137 | lt_prog_compiler_no_builtin_flag= | |
10138 | ||
10139 | if test "$GCC" = yes; then | |
10140 | case $cc_basename in | |
10141 | nvcc*) | |
10142 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
10143 | *) | |
10144 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
10145 | esac | |
10146 | ||
10147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
10148 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
10149 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
10150 | $as_echo_n "(cached) " >&6 | |
10151 | else | |
10152 | lt_cv_prog_compiler_rtti_exceptions=no | |
10153 | ac_outfile=conftest.$ac_objext | |
10154 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10155 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
10156 | # Insert the option either (1) after the last *FLAGS variable, or | |
10157 | # (2) before a word containing "conftest.", or (3) at the end. | |
10158 | # Note that $ac_compile itself does not contain backslashes and begins | |
10159 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10160 | # The option is referenced via a variable to avoid confusing sed. | |
10161 | lt_compile=`echo "$ac_compile" | $SED \ | |
10162 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10163 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10164 | -e 's:$: $lt_compiler_flag:'` | |
10165 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10166 | (eval "$lt_compile" 2>conftest.err) | |
10167 | ac_status=$? | |
10168 | cat conftest.err >&5 | |
10169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10170 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
10171 | # The compiler can only warn and ignore the option if not recognized | |
10172 | # So say no if there are warnings other than the usual output. | |
10173 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
10174 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10175 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
10176 | lt_cv_prog_compiler_rtti_exceptions=yes | |
10177 | fi | |
10178 | fi | |
10179 | $RM conftest* | |
10180 | ||
10181 | fi | |
10182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
10183 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
10184 | ||
10185 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
10186 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
10187 | else | |
10188 | : | |
10189 | fi | |
10190 | ||
10191 | fi | |
10192 | ||
10193 | ||
10194 | ||
10195 | ||
10196 | ||
10197 | ||
10198 | lt_prog_compiler_wl= | |
10199 | lt_prog_compiler_pic= | |
10200 | lt_prog_compiler_static= | |
10201 | ||
10202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
10203 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
10204 | ||
10205 | if test "$GCC" = yes; then | |
10206 | lt_prog_compiler_wl='-Wl,' | |
10207 | lt_prog_compiler_static='-static' | |
10208 | ||
10209 | case $host_os in | |
10210 | aix*) | |
10211 | # All AIX code is PIC. | |
10212 | if test "$host_cpu" = ia64; then | |
10213 | # AIX 5 now supports IA64 processor | |
10214 | lt_prog_compiler_static='-Bstatic' | |
10215 | fi | |
10216 | lt_prog_compiler_pic='-fPIC' | |
10217 | ;; | |
10218 | ||
10219 | amigaos*) | |
10220 | case $host_cpu in | |
10221 | powerpc) | |
10222 | # see comment about AmigaOS4 .so support | |
10223 | lt_prog_compiler_pic='-fPIC' | |
10224 | ;; | |
10225 | m68k) | |
10226 | # FIXME: we need at least 68020 code to build shared libraries, but | |
10227 | # adding the `-m68020' flag to GCC prevents building anything better, | |
10228 | # like `-m68040'. | |
10229 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
10230 | ;; | |
10231 | esac | |
10232 | ;; | |
10233 | ||
10234 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
10235 | # PIC is the default for these OSes. | |
10236 | ;; | |
10237 | ||
10238 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
10239 | # This hack is so that the source file can tell whether it is being | |
10240 | # built for inclusion in a dll (and should export symbols for example). | |
10241 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
10242 | # (--disable-auto-import) libraries | |
10243 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
10244 | ;; | |
10245 | ||
10246 | darwin* | rhapsody*) | |
10247 | # PIC is the default on this platform | |
10248 | # Common symbols not allowed in MH_DYLIB files | |
10249 | lt_prog_compiler_pic='-fno-common' | |
10250 | ;; | |
10251 | ||
10252 | haiku*) | |
10253 | # PIC is the default for Haiku. | |
10254 | # The "-static" flag exists, but is broken. | |
10255 | lt_prog_compiler_static= | |
10256 | ;; | |
10257 | ||
10258 | hpux*) | |
10259 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
10260 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
10261 | # sets the default TLS model and affects inlining. | |
10262 | case $host_cpu in | |
10263 | hppa*64*) | |
10264 | # +Z the default | |
10265 | ;; | |
10266 | *) | |
10267 | lt_prog_compiler_pic='-fPIC' | |
10268 | ;; | |
10269 | esac | |
10270 | ;; | |
10271 | ||
10272 | interix[3-9]*) | |
10273 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
10274 | # Instead, we relocate shared libraries at runtime. | |
10275 | ;; | |
10276 | ||
10277 | msdosdjgpp*) | |
10278 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
10279 | # on systems that don't support them. | |
10280 | lt_prog_compiler_can_build_shared=no | |
10281 | enable_shared=no | |
10282 | ;; | |
10283 | ||
10284 | *nto* | *qnx*) | |
10285 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
10286 | # it will coredump. | |
10287 | lt_prog_compiler_pic='-fPIC -shared' | |
10288 | ;; | |
10289 | ||
10290 | sysv4*MP*) | |
10291 | if test -d /usr/nec; then | |
10292 | lt_prog_compiler_pic=-Kconform_pic | |
10293 | fi | |
10294 | ;; | |
10295 | ||
10296 | *) | |
10297 | lt_prog_compiler_pic='-fPIC' | |
10298 | ;; | |
10299 | esac | |
10300 | ||
10301 | case $cc_basename in | |
10302 | nvcc*) # Cuda Compiler Driver 2.2 | |
10303 | lt_prog_compiler_wl='-Xlinker ' | |
10304 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
10305 | ;; | |
10306 | esac | |
10307 | else | |
10308 | # PORTME Check for flag to pass linker flags through the system compiler. | |
10309 | case $host_os in | |
10310 | aix*) | |
10311 | lt_prog_compiler_wl='-Wl,' | |
10312 | if test "$host_cpu" = ia64; then | |
10313 | # AIX 5 now supports IA64 processor | |
10314 | lt_prog_compiler_static='-Bstatic' | |
10315 | else | |
10316 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
10317 | fi | |
10318 | ;; | |
10319 | ||
10320 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
10321 | # This hack is so that the source file can tell whether it is being | |
10322 | # built for inclusion in a dll (and should export symbols for example). | |
10323 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
10324 | ;; | |
10325 | ||
10326 | hpux9* | hpux10* | hpux11*) | |
10327 | lt_prog_compiler_wl='-Wl,' | |
10328 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
10329 | # not for PA HP-UX. | |
10330 | case $host_cpu in | |
10331 | hppa*64*|ia64*) | |
10332 | # +Z the default | |
10333 | ;; | |
10334 | *) | |
10335 | lt_prog_compiler_pic='+Z' | |
10336 | ;; | |
10337 | esac | |
10338 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
10339 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
10340 | ;; | |
10341 | ||
10342 | irix5* | irix6* | nonstopux*) | |
10343 | lt_prog_compiler_wl='-Wl,' | |
10344 | # PIC (with -KPIC) is the default. | |
10345 | lt_prog_compiler_static='-non_shared' | |
10346 | ;; | |
10347 | ||
10348 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
10349 | case $cc_basename in | |
10350 | # old Intel for x86_64 which still supported -KPIC. | |
10351 | ecc*) | |
10352 | lt_prog_compiler_wl='-Wl,' | |
10353 | lt_prog_compiler_pic='-KPIC' | |
10354 | lt_prog_compiler_static='-static' | |
10355 | ;; | |
10356 | # icc used to be incompatible with GCC. | |
10357 | # ICC 10 doesn't accept -KPIC any more. | |
10358 | icc* | ifort*) | |
10359 | lt_prog_compiler_wl='-Wl,' | |
10360 | lt_prog_compiler_pic='-fPIC' | |
10361 | lt_prog_compiler_static='-static' | |
10362 | ;; | |
10363 | # Lahey Fortran 8.1. | |
10364 | lf95*) | |
10365 | lt_prog_compiler_wl='-Wl,' | |
10366 | lt_prog_compiler_pic='--shared' | |
10367 | lt_prog_compiler_static='--static' | |
10368 | ;; | |
10369 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
10370 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
10371 | # which looks to be a dead project) | |
10372 | lt_prog_compiler_wl='-Wl,' | |
10373 | lt_prog_compiler_pic='-fpic' | |
10374 | lt_prog_compiler_static='-Bstatic' | |
10375 | ;; | |
10376 | ccc*) | |
10377 | lt_prog_compiler_wl='-Wl,' | |
10378 | # All Alpha code is PIC. | |
10379 | lt_prog_compiler_static='-non_shared' | |
10380 | ;; | |
10381 | xl* | bgxl* | bgf* | mpixl*) | |
10382 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
10383 | lt_prog_compiler_wl='-Wl,' | |
10384 | lt_prog_compiler_pic='-qpic' | |
10385 | lt_prog_compiler_static='-qstaticlink' | |
10386 | ;; | |
10387 | *) | |
10388 | case `$CC -V 2>&1 | sed 5q` in | |
10389 | *Sun\ F* | *Sun*Fortran*) | |
10390 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
10391 | lt_prog_compiler_pic='-KPIC' | |
10392 | lt_prog_compiler_static='-Bstatic' | |
10393 | lt_prog_compiler_wl='' | |
10394 | ;; | |
10395 | *Sun\ C*) | |
10396 | # Sun C 5.9 | |
10397 | lt_prog_compiler_pic='-KPIC' | |
10398 | lt_prog_compiler_static='-Bstatic' | |
10399 | lt_prog_compiler_wl='-Wl,' | |
10400 | ;; | |
10401 | esac | |
10402 | ;; | |
10403 | esac | |
10404 | ;; | |
10405 | ||
10406 | newsos6) | |
10407 | lt_prog_compiler_pic='-KPIC' | |
10408 | lt_prog_compiler_static='-Bstatic' | |
10409 | ;; | |
10410 | ||
10411 | *nto* | *qnx*) | |
10412 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
10413 | # it will coredump. | |
10414 | lt_prog_compiler_pic='-fPIC -shared' | |
10415 | ;; | |
10416 | ||
10417 | osf3* | osf4* | osf5*) | |
10418 | lt_prog_compiler_wl='-Wl,' | |
10419 | # All OSF/1 code is PIC. | |
10420 | lt_prog_compiler_static='-non_shared' | |
10421 | ;; | |
10422 | ||
10423 | rdos*) | |
10424 | lt_prog_compiler_static='-non_shared' | |
10425 | ;; | |
10426 | ||
10427 | solaris*) | |
10428 | lt_prog_compiler_pic='-KPIC' | |
10429 | lt_prog_compiler_static='-Bstatic' | |
10430 | case $cc_basename in | |
10431 | f77* | f90* | f95*) | |
10432 | lt_prog_compiler_wl='-Qoption ld ';; | |
10433 | *) | |
10434 | lt_prog_compiler_wl='-Wl,';; | |
10435 | esac | |
10436 | ;; | |
10437 | ||
10438 | sunos4*) | |
10439 | lt_prog_compiler_wl='-Qoption ld ' | |
10440 | lt_prog_compiler_pic='-PIC' | |
10441 | lt_prog_compiler_static='-Bstatic' | |
10442 | ;; | |
10443 | ||
10444 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
10445 | lt_prog_compiler_wl='-Wl,' | |
10446 | lt_prog_compiler_pic='-KPIC' | |
10447 | lt_prog_compiler_static='-Bstatic' | |
10448 | ;; | |
10449 | ||
10450 | sysv4*MP*) | |
10451 | if test -d /usr/nec ;then | |
10452 | lt_prog_compiler_pic='-Kconform_pic' | |
10453 | lt_prog_compiler_static='-Bstatic' | |
10454 | fi | |
10455 | ;; | |
10456 | ||
10457 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
10458 | lt_prog_compiler_wl='-Wl,' | |
10459 | lt_prog_compiler_pic='-KPIC' | |
10460 | lt_prog_compiler_static='-Bstatic' | |
10461 | ;; | |
10462 | ||
10463 | unicos*) | |
10464 | lt_prog_compiler_wl='-Wl,' | |
10465 | lt_prog_compiler_can_build_shared=no | |
10466 | ;; | |
10467 | ||
10468 | uts4*) | |
10469 | lt_prog_compiler_pic='-pic' | |
10470 | lt_prog_compiler_static='-Bstatic' | |
10471 | ;; | |
10472 | ||
10473 | *) | |
10474 | lt_prog_compiler_can_build_shared=no | |
10475 | ;; | |
10476 | esac | |
10477 | fi | |
10478 | ||
10479 | case $host_os in | |
10480 | # For platforms which do not support PIC, -DPIC is meaningless: | |
10481 | *djgpp*) | |
10482 | lt_prog_compiler_pic= | |
10483 | ;; | |
10484 | *) | |
10485 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
10486 | ;; | |
10487 | esac | |
10488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
10489 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
10490 | ||
10491 | ||
10492 | ||
10493 | ||
10494 | ||
10495 | ||
10496 | # | |
10497 | # Check to make sure the PIC flag actually works. | |
10498 | # | |
10499 | if test -n "$lt_prog_compiler_pic"; then | |
10500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
10501 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
10502 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
10503 | $as_echo_n "(cached) " >&6 | |
10504 | else | |
10505 | lt_cv_prog_compiler_pic_works=no | |
10506 | ac_outfile=conftest.$ac_objext | |
10507 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10508 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
10509 | # Insert the option either (1) after the last *FLAGS variable, or | |
10510 | # (2) before a word containing "conftest.", or (3) at the end. | |
10511 | # Note that $ac_compile itself does not contain backslashes and begins | |
10512 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10513 | # The option is referenced via a variable to avoid confusing sed. | |
10514 | lt_compile=`echo "$ac_compile" | $SED \ | |
10515 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10516 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10517 | -e 's:$: $lt_compiler_flag:'` | |
10518 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10519 | (eval "$lt_compile" 2>conftest.err) | |
10520 | ac_status=$? | |
10521 | cat conftest.err >&5 | |
10522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10523 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
10524 | # The compiler can only warn and ignore the option if not recognized | |
10525 | # So say no if there are warnings other than the usual output. | |
10526 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
10527 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10528 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
10529 | lt_cv_prog_compiler_pic_works=yes | |
10530 | fi | |
10531 | fi | |
10532 | $RM conftest* | |
10533 | ||
10534 | fi | |
10535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
10536 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
10537 | ||
10538 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
10539 | case $lt_prog_compiler_pic in | |
10540 | "" | " "*) ;; | |
10541 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
10542 | esac | |
10543 | else | |
10544 | lt_prog_compiler_pic= | |
10545 | lt_prog_compiler_can_build_shared=no | |
10546 | fi | |
10547 | ||
10548 | fi | |
10549 | ||
10550 | ||
10551 | ||
10552 | ||
10553 | ||
10554 | ||
10555 | # | |
10556 | # Check to make sure the static flag actually works. | |
10557 | # | |
10558 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
10559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
10560 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
10561 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
10562 | $as_echo_n "(cached) " >&6 | |
10563 | else | |
10564 | lt_cv_prog_compiler_static_works=no | |
10565 | save_LDFLAGS="$LDFLAGS" | |
10566 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
10567 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10568 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10569 | # The linker can only warn and ignore the option if not recognized | |
10570 | # So say no if there are warnings | |
10571 | if test -s conftest.err; then | |
10572 | # Append any errors to the config.log. | |
10573 | cat conftest.err 1>&5 | |
10574 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10575 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10576 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10577 | lt_cv_prog_compiler_static_works=yes | |
10578 | fi | |
10579 | else | |
10580 | lt_cv_prog_compiler_static_works=yes | |
10581 | fi | |
10582 | fi | |
10583 | $RM -r conftest* | |
10584 | LDFLAGS="$save_LDFLAGS" | |
10585 | ||
10586 | fi | |
10587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
10588 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
10589 | ||
10590 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
10591 | : | |
10592 | else | |
10593 | lt_prog_compiler_static= | |
10594 | fi | |
10595 | ||
10596 | ||
10597 | ||
10598 | ||
10599 | ||
10600 | ||
10601 | ||
10602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
10603 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
10604 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
10605 | $as_echo_n "(cached) " >&6 | |
10606 | else | |
10607 | lt_cv_prog_compiler_c_o=no | |
10608 | $RM -r conftest 2>/dev/null | |
10609 | mkdir conftest | |
10610 | cd conftest | |
10611 | mkdir out | |
10612 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10613 | ||
10614 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10615 | # Insert the option either (1) after the last *FLAGS variable, or | |
10616 | # (2) before a word containing "conftest.", or (3) at the end. | |
10617 | # Note that $ac_compile itself does not contain backslashes and begins | |
10618 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10619 | lt_compile=`echo "$ac_compile" | $SED \ | |
10620 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10621 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10622 | -e 's:$: $lt_compiler_flag:'` | |
10623 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10624 | (eval "$lt_compile" 2>out/conftest.err) | |
10625 | ac_status=$? | |
10626 | cat out/conftest.err >&5 | |
10627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10628 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
10629 | then | |
10630 | # The compiler can only warn and ignore the option if not recognized | |
10631 | # So say no if there are warnings | |
10632 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
10633 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
10634 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10635 | lt_cv_prog_compiler_c_o=yes | |
10636 | fi | |
10637 | fi | |
10638 | chmod u+w . 2>&5 | |
10639 | $RM conftest* | |
10640 | # SGI C++ compiler will create directory out/ii_files/ for | |
10641 | # template instantiation | |
10642 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10643 | $RM out/* && rmdir out | |
10644 | cd .. | |
10645 | $RM -r conftest | |
10646 | $RM conftest* | |
10647 | ||
10648 | fi | |
10649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
10650 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
10651 | ||
10652 | ||
10653 | ||
10654 | ||
10655 | ||
10656 | ||
10657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
10658 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
10659 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
10660 | $as_echo_n "(cached) " >&6 | |
10661 | else | |
10662 | lt_cv_prog_compiler_c_o=no | |
10663 | $RM -r conftest 2>/dev/null | |
10664 | mkdir conftest | |
10665 | cd conftest | |
10666 | mkdir out | |
10667 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10668 | ||
10669 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10670 | # Insert the option either (1) after the last *FLAGS variable, or | |
10671 | # (2) before a word containing "conftest.", or (3) at the end. | |
10672 | # Note that $ac_compile itself does not contain backslashes and begins | |
10673 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10674 | lt_compile=`echo "$ac_compile" | $SED \ | |
10675 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10676 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10677 | -e 's:$: $lt_compiler_flag:'` | |
10678 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10679 | (eval "$lt_compile" 2>out/conftest.err) | |
10680 | ac_status=$? | |
10681 | cat out/conftest.err >&5 | |
10682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10683 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
10684 | then | |
10685 | # The compiler can only warn and ignore the option if not recognized | |
10686 | # So say no if there are warnings | |
10687 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
10688 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
10689 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10690 | lt_cv_prog_compiler_c_o=yes | |
10691 | fi | |
10692 | fi | |
10693 | chmod u+w . 2>&5 | |
10694 | $RM conftest* | |
10695 | # SGI C++ compiler will create directory out/ii_files/ for | |
10696 | # template instantiation | |
10697 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10698 | $RM out/* && rmdir out | |
10699 | cd .. | |
10700 | $RM -r conftest | |
10701 | $RM conftest* | |
10702 | ||
10703 | fi | |
10704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
10705 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
10706 | ||
10707 | ||
10708 | ||
10709 | ||
10710 | hard_links="nottested" | |
10711 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
10712 | # do not overwrite the value of need_locks provided by the user | |
10713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
10714 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
10715 | hard_links=yes | |
10716 | $RM conftest* | |
10717 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10718 | touch conftest.a | |
10719 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10720 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
10722 | $as_echo "$hard_links" >&6; } | |
10723 | if test "$hard_links" = no; then | |
10724 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
10725 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
10726 | need_locks=warn | |
10727 | fi | |
10728 | else | |
10729 | need_locks=no | |
10730 | fi | |
10731 | ||
10732 | ||
10733 | ||
10734 | ||
10735 | ||
10736 | ||
10737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10738 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
10739 | ||
10740 | runpath_var= | |
10741 | allow_undefined_flag= | |
10742 | always_export_symbols=no | |
10743 | archive_cmds= | |
10744 | archive_expsym_cmds= | |
10745 | compiler_needs_object=no | |
10746 | enable_shared_with_static_runtimes=no | |
10747 | export_dynamic_flag_spec= | |
10748 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10749 | hardcode_automatic=no | |
10750 | hardcode_direct=no | |
10751 | hardcode_direct_absolute=no | |
10752 | hardcode_libdir_flag_spec= | |
10753 | hardcode_libdir_flag_spec_ld= | |
10754 | hardcode_libdir_separator= | |
10755 | hardcode_minus_L=no | |
10756 | hardcode_shlibpath_var=unsupported | |
10757 | inherit_rpath=no | |
10758 | link_all_deplibs=unknown | |
10759 | module_cmds= | |
10760 | module_expsym_cmds= | |
10761 | old_archive_from_new_cmds= | |
10762 | old_archive_from_expsyms_cmds= | |
10763 | thread_safe_flag_spec= | |
10764 | whole_archive_flag_spec= | |
10765 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10766 | # included in the symbol list | |
10767 | include_expsyms= | |
10768 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10769 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10770 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10771 | # as well as any symbol that contains `d'. | |
10772 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
10773 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
10774 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10775 | # the symbol is explicitly referenced. Since portable code cannot | |
10776 | # rely on this symbol name, it's probably fine to never include it in | |
10777 | # preloaded symbol tables. | |
10778 | # Exclude shared library initialization/finalization symbols. | |
10779 | extract_expsyms_cmds= | |
10780 | ||
10781 | case $host_os in | |
10782 | cygwin* | mingw* | pw32* | cegcc*) | |
10783 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
10784 | # When not using gcc, we currently assume that we are using | |
10785 | # Microsoft Visual C++. | |
10786 | if test "$GCC" != yes; then | |
10787 | with_gnu_ld=no | |
10788 | fi | |
10789 | ;; | |
10790 | interix*) | |
10791 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10792 | with_gnu_ld=yes | |
10793 | ;; | |
10794 | openbsd*) | |
10795 | with_gnu_ld=no | |
10796 | ;; | |
10797 | esac | |
10798 | ||
10799 | ld_shlibs=yes | |
10800 | ||
10801 | # On some targets, GNU ld is compatible enough with the native linker | |
10802 | # that we're better off using the native interface for both. | |
10803 | lt_use_gnu_ld_interface=no | |
10804 | if test "$with_gnu_ld" = yes; then | |
10805 | case $host_os in | |
10806 | aix*) | |
10807 | # The AIX port of GNU ld has always aspired to compatibility | |
10808 | # with the native linker. However, as the warning in the GNU ld | |
10809 | # block says, versions before 2.19.5* couldn't really create working | |
10810 | # shared libraries, regardless of the interface used. | |
10811 | case `$LD -v 2>&1` in | |
10812 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10813 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10814 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10815 | *) | |
10816 | lt_use_gnu_ld_interface=yes | |
10817 | ;; | |
10818 | esac | |
10819 | ;; | |
10820 | *) | |
10821 | lt_use_gnu_ld_interface=yes | |
10822 | ;; | |
10823 | esac | |
10824 | fi | |
10825 | ||
10826 | if test "$lt_use_gnu_ld_interface" = yes; then | |
10827 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
10828 | wlarc='${wl}' | |
10829 | ||
10830 | # Set some defaults for GNU ld with shared library support. These | |
10831 | # are reset later if shared libraries are not supported. Putting them | |
10832 | # here allows them to be overridden if necessary. | |
10833 | runpath_var=LD_RUN_PATH | |
10834 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10835 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
10836 | # ancient GNU ld didn't support --whole-archive et. al. | |
10837 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10838 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10839 | else | |
10840 | whole_archive_flag_spec= | |
10841 | fi | |
10842 | supports_anon_versioning=no | |
10843 | case `$LD -v 2>&1` in | |
10844 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
10845 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
10846 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10847 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10848 | *\ 2.11.*) ;; # other 2.11 versions | |
10849 | *) supports_anon_versioning=yes ;; | |
10850 | esac | |
10851 | ||
10852 | # See if GNU ld supports shared libraries. | |
10853 | case $host_os in | |
10854 | aix[3-9]*) | |
10855 | # On AIX/PPC, the GNU linker is very broken | |
10856 | if test "$host_cpu" != ia64; then | |
10857 | ld_shlibs=no | |
10858 | cat <<_LT_EOF 1>&2 | |
10859 | ||
10860 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
10861 | *** to be unable to reliably create shared libraries on AIX. | |
10862 | *** Therefore, libtool is disabling shared libraries support. If you | |
10863 | *** really care for shared libraries, you may want to install binutils | |
10864 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10865 | *** You will then need to restart the configuration process. | |
10866 | ||
10867 | _LT_EOF | |
10868 | fi | |
10869 | ;; | |
10870 | ||
10871 | amigaos*) | |
10872 | case $host_cpu in | |
10873 | powerpc) | |
10874 | # see comment about AmigaOS4 .so support | |
10875 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10876 | archive_expsym_cmds='' | |
10877 | ;; | |
10878 | m68k) | |
10879 | 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)' | |
10880 | hardcode_libdir_flag_spec='-L$libdir' | |
10881 | hardcode_minus_L=yes | |
10882 | ;; | |
10883 | esac | |
10884 | ;; | |
10885 | ||
10886 | beos*) | |
10887 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10888 | allow_undefined_flag=unsupported | |
10889 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10890 | # support --undefined. This deserves some investigation. FIXME | |
10891 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10892 | else | |
10893 | ld_shlibs=no | |
10894 | fi | |
10895 | ;; | |
10896 | ||
10897 | cygwin* | mingw* | pw32* | cegcc*) | |
10898 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
10899 | # as there is no search path for DLLs. | |
10900 | hardcode_libdir_flag_spec='-L$libdir' | |
10901 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
10902 | allow_undefined_flag=unsupported | |
10903 | always_export_symbols=no | |
10904 | enable_shared_with_static_runtimes=yes | |
10905 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10906 | ||
10907 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10908 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10909 | # If the export-symbols file already is a .def file (1st line | |
10910 | # is EXPORTS), use it as is; otherwise, prepend... | |
10911 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10912 | cp $export_symbols $output_objdir/$soname.def; | |
10913 | else | |
10914 | echo EXPORTS > $output_objdir/$soname.def; | |
10915 | cat $export_symbols >> $output_objdir/$soname.def; | |
10916 | fi~ | |
10917 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10918 | else | |
10919 | ld_shlibs=no | |
10920 | fi | |
10921 | ;; | |
10922 | ||
10923 | haiku*) | |
10924 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10925 | link_all_deplibs=yes | |
10926 | ;; | |
10927 | ||
10928 | interix[3-9]*) | |
10929 | hardcode_direct=no | |
10930 | hardcode_shlibpath_var=no | |
10931 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10932 | export_dynamic_flag_spec='${wl}-E' | |
10933 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10934 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10935 | # default) and relocated if they conflict, which is a slow very memory | |
10936 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10937 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10938 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10939 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10940 | 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' | |
10941 | ;; | |
10942 | ||
6a6859cb | 10943 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
b5689863 MF |
10944 | tmp_diet=no |
10945 | if test "$host_os" = linux-dietlibc; then | |
10946 | case $cc_basename in | |
10947 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10948 | esac | |
10949 | fi | |
10950 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10951 | && test "$tmp_diet" = no | |
10952 | then | |
10953 | tmp_addflag=' $pic_flag' | |
10954 | tmp_sharedflag='-shared' | |
10955 | case $cc_basename,$host_cpu in | |
10956 | pgcc*) # Portland Group C compiler | |
10957 | 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' | |
10958 | tmp_addflag=' $pic_flag' | |
10959 | ;; | |
10960 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
10961 | # Portland Group f77 and f90 compilers | |
10962 | 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' | |
10963 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
10964 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10965 | tmp_addflag=' -i_dynamic' ;; | |
10966 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10967 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10968 | ifc* | ifort*) # Intel Fortran compiler | |
10969 | tmp_addflag=' -nofor_main' ;; | |
10970 | lf95*) # Lahey Fortran 8.1 | |
10971 | whole_archive_flag_spec= | |
10972 | tmp_sharedflag='--shared' ;; | |
10973 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
10974 | tmp_sharedflag='-qmkshrobj' | |
10975 | tmp_addflag= ;; | |
10976 | nvcc*) # Cuda Compiler Driver 2.2 | |
10977 | 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' | |
10978 | compiler_needs_object=yes | |
10979 | ;; | |
10980 | esac | |
10981 | case `$CC -V 2>&1 | sed 5q` in | |
10982 | *Sun\ C*) # Sun C 5.9 | |
10983 | 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' | |
10984 | compiler_needs_object=yes | |
10985 | tmp_sharedflag='-G' ;; | |
10986 | *Sun\ F*) # Sun Fortran 8.3 | |
10987 | tmp_sharedflag='-G' ;; | |
10988 | esac | |
10989 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10990 | ||
10991 | if test "x$supports_anon_versioning" = xyes; then | |
10992 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10993 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10994 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10995 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10996 | fi | |
10997 | ||
10998 | case $cc_basename in | |
10999 | xlf* | bgf* | bgxlf* | mpixlf*) | |
11000 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
11001 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
11002 | hardcode_libdir_flag_spec= | |
11003 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
11004 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
11005 | if test "x$supports_anon_versioning" = xyes; then | |
11006 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
11007 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
11008 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
11009 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
11010 | fi | |
11011 | ;; | |
11012 | esac | |
11013 | else | |
11014 | ld_shlibs=no | |
11015 | fi | |
11016 | ;; | |
11017 | ||
11018 | netbsd*) | |
11019 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11020 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
11021 | wlarc= | |
11022 | else | |
11023 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11024 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11025 | fi | |
11026 | ;; | |
11027 | ||
11028 | solaris*) | |
11029 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
11030 | ld_shlibs=no | |
11031 | cat <<_LT_EOF 1>&2 | |
11032 | ||
11033 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
11034 | *** create shared libraries on Solaris systems. Therefore, libtool | |
11035 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
11036 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
11037 | *** your PATH or compiler configuration so that the native linker is | |
11038 | *** used, and then restart. | |
11039 | ||
11040 | _LT_EOF | |
11041 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11042 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11043 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11044 | else | |
11045 | ld_shlibs=no | |
11046 | fi | |
11047 | ;; | |
11048 | ||
11049 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
11050 | case `$LD -v 2>&1` in | |
11051 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
11052 | ld_shlibs=no | |
11053 | cat <<_LT_EOF 1>&2 | |
11054 | ||
11055 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
11056 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
11057 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
11058 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
11059 | *** your PATH or compiler configuration so that the native linker is | |
11060 | *** used, and then restart. | |
11061 | ||
11062 | _LT_EOF | |
11063 | ;; | |
11064 | *) | |
11065 | # For security reasons, it is highly recommended that you always | |
11066 | # use absolute paths for naming shared libraries, and exclude the | |
11067 | # DT_RUNPATH tag from executables and libraries. But doing so | |
11068 | # requires that you compile everything twice, which is a pain. | |
11069 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11070 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11071 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11072 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11073 | else | |
11074 | ld_shlibs=no | |
11075 | fi | |
11076 | ;; | |
11077 | esac | |
11078 | ;; | |
11079 | ||
11080 | sunos4*) | |
11081 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11082 | wlarc= | |
11083 | hardcode_direct=yes | |
11084 | hardcode_shlibpath_var=no | |
11085 | ;; | |
11086 | ||
11087 | *) | |
11088 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11089 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11090 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11091 | else | |
11092 | ld_shlibs=no | |
11093 | fi | |
11094 | ;; | |
11095 | esac | |
11096 | ||
11097 | if test "$ld_shlibs" = no; then | |
11098 | runpath_var= | |
11099 | hardcode_libdir_flag_spec= | |
11100 | export_dynamic_flag_spec= | |
11101 | whole_archive_flag_spec= | |
11102 | fi | |
11103 | else | |
11104 | # PORTME fill in a description of your system's linker (not GNU ld) | |
11105 | case $host_os in | |
11106 | aix3*) | |
11107 | allow_undefined_flag=unsupported | |
11108 | always_export_symbols=yes | |
11109 | 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' | |
11110 | # Note: this linker hardcodes the directories in LIBPATH if there | |
11111 | # are no directories specified by -L. | |
11112 | hardcode_minus_L=yes | |
11113 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
11114 | # Neither direct hardcoding nor static linking is supported with a | |
11115 | # broken collect2. | |
11116 | hardcode_direct=unsupported | |
11117 | fi | |
11118 | ;; | |
11119 | ||
11120 | aix[4-9]*) | |
11121 | if test "$host_cpu" = ia64; then | |
11122 | # On IA64, the linker does run time linking by default, so we don't | |
11123 | # have to do anything special. | |
11124 | aix_use_runtimelinking=no | |
11125 | exp_sym_flag='-Bexport' | |
11126 | no_entry_flag="" | |
11127 | else | |
11128 | # If we're using GNU nm, then we don't want the "-C" option. | |
11129 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
11130 | # Also, AIX nm treats weak defined symbols like other global | |
11131 | # defined symbols, whereas GNU nm marks them as "W". | |
11132 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
11133 | 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' | |
11134 | else | |
11135 | 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' | |
11136 | fi | |
11137 | aix_use_runtimelinking=no | |
11138 | ||
11139 | # Test if we are trying to use run time linking or normal | |
11140 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
11141 | # need to do runtime linking. | |
11142 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
11143 | for ld_flag in $LDFLAGS; do | |
11144 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
11145 | aix_use_runtimelinking=yes | |
11146 | break | |
11147 | fi | |
11148 | done | |
11149 | ;; | |
11150 | esac | |
11151 | ||
11152 | exp_sym_flag='-bexport' | |
11153 | no_entry_flag='-bnoentry' | |
11154 | fi | |
11155 | ||
11156 | # When large executables or shared objects are built, AIX ld can | |
11157 | # have problems creating the table of contents. If linking a library | |
11158 | # or program results in "error TOC overflow" add -mminimal-toc to | |
11159 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
11160 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
11161 | ||
11162 | archive_cmds='' | |
11163 | hardcode_direct=yes | |
11164 | hardcode_direct_absolute=yes | |
11165 | hardcode_libdir_separator=':' | |
11166 | link_all_deplibs=yes | |
11167 | file_list_spec='${wl}-f,' | |
11168 | ||
11169 | if test "$GCC" = yes; then | |
11170 | case $host_os in aix4.[012]|aix4.[012].*) | |
11171 | # We only want to do this on AIX 4.2 and lower, the check | |
11172 | # below for broken collect2 doesn't work under 4.3+ | |
11173 | collect2name=`${CC} -print-prog-name=collect2` | |
11174 | if test -f "$collect2name" && | |
11175 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
11176 | then | |
11177 | # We have reworked collect2 | |
11178 | : | |
11179 | else | |
11180 | # We have old collect2 | |
11181 | hardcode_direct=unsupported | |
11182 | # It fails to find uninstalled libraries when the uninstalled | |
11183 | # path is not listed in the libpath. Setting hardcode_minus_L | |
11184 | # to unsupported forces relinking | |
11185 | hardcode_minus_L=yes | |
11186 | hardcode_libdir_flag_spec='-L$libdir' | |
11187 | hardcode_libdir_separator= | |
11188 | fi | |
11189 | ;; | |
11190 | esac | |
11191 | shared_flag='-shared' | |
11192 | if test "$aix_use_runtimelinking" = yes; then | |
11193 | shared_flag="$shared_flag "'${wl}-G' | |
11194 | fi | |
11195 | else | |
11196 | # not using gcc | |
11197 | if test "$host_cpu" = ia64; then | |
11198 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
11199 | # chokes on -Wl,-G. The following line is correct: | |
11200 | shared_flag='-G' | |
11201 | else | |
11202 | if test "$aix_use_runtimelinking" = yes; then | |
11203 | shared_flag='${wl}-G' | |
11204 | else | |
11205 | shared_flag='${wl}-bM:SRE' | |
11206 | fi | |
11207 | fi | |
11208 | fi | |
11209 | ||
11210 | export_dynamic_flag_spec='${wl}-bexpall' | |
11211 | # It seems that -bexpall does not export symbols beginning with | |
11212 | # underscore (_), so it is better to generate a list of symbols to export. | |
11213 | always_export_symbols=yes | |
11214 | if test "$aix_use_runtimelinking" = yes; then | |
11215 | # Warning - without using the other runtime loading flags (-brtl), | |
11216 | # -berok will link without error, but may produce a broken library. | |
11217 | allow_undefined_flag='-berok' | |
11218 | # Determine the default libpath from the value encoded in an | |
11219 | # empty executable. | |
11220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11221 | /* end confdefs.h. */ | |
11222 | ||
11223 | int | |
11224 | main () | |
11225 | { | |
11226 | ||
11227 | ; | |
11228 | return 0; | |
11229 | } | |
11230 | _ACEOF | |
11231 | if ac_fn_c_try_link "$LINENO"; then : | |
11232 | ||
11233 | lt_aix_libpath_sed=' | |
11234 | /Import File Strings/,/^$/ { | |
11235 | /^0/ { | |
11236 | s/^0 *\(.*\)$/\1/ | |
11237 | p | |
11238 | } | |
11239 | }' | |
11240 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11241 | # Check for a 64-bit object if we didn't find anything. | |
11242 | if test -z "$aix_libpath"; then | |
11243 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11244 | fi | |
11245 | fi | |
11246 | rm -f core conftest.err conftest.$ac_objext \ | |
11247 | conftest$ac_exeext conftest.$ac_ext | |
11248 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11249 | ||
11250 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11251 | 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" | |
11252 | else | |
11253 | if test "$host_cpu" = ia64; then | |
11254 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
11255 | allow_undefined_flag="-z nodefs" | |
11256 | 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" | |
11257 | else | |
11258 | # Determine the default libpath from the value encoded in an | |
11259 | # empty executable. | |
11260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11261 | /* end confdefs.h. */ | |
11262 | ||
11263 | int | |
11264 | main () | |
11265 | { | |
11266 | ||
11267 | ; | |
11268 | return 0; | |
11269 | } | |
11270 | _ACEOF | |
11271 | if ac_fn_c_try_link "$LINENO"; then : | |
11272 | ||
11273 | lt_aix_libpath_sed=' | |
11274 | /Import File Strings/,/^$/ { | |
11275 | /^0/ { | |
11276 | s/^0 *\(.*\)$/\1/ | |
11277 | p | |
11278 | } | |
11279 | }' | |
11280 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11281 | # Check for a 64-bit object if we didn't find anything. | |
11282 | if test -z "$aix_libpath"; then | |
11283 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11284 | fi | |
11285 | fi | |
11286 | rm -f core conftest.err conftest.$ac_objext \ | |
11287 | conftest$ac_exeext conftest.$ac_ext | |
11288 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11289 | ||
11290 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11291 | # Warning - without using the other run time loading flags, | |
11292 | # -berok will link without error, but may produce a broken library. | |
11293 | no_undefined_flag=' ${wl}-bernotok' | |
11294 | allow_undefined_flag=' ${wl}-berok' | |
11295 | if test "$with_gnu_ld" = yes; then | |
11296 | # We only use this code for GNU lds that support --whole-archive. | |
11297 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
11298 | else | |
11299 | # Exported symbols can be pulled into shared objects from archives | |
11300 | whole_archive_flag_spec='$convenience' | |
11301 | fi | |
11302 | archive_cmds_need_lc=yes | |
11303 | # This is similar to how AIX traditionally builds its shared libraries. | |
11304 | 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' | |
11305 | fi | |
11306 | fi | |
11307 | ;; | |
11308 | ||
11309 | amigaos*) | |
11310 | case $host_cpu in | |
11311 | powerpc) | |
11312 | # see comment about AmigaOS4 .so support | |
11313 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11314 | archive_expsym_cmds='' | |
11315 | ;; | |
11316 | m68k) | |
11317 | 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)' | |
11318 | hardcode_libdir_flag_spec='-L$libdir' | |
11319 | hardcode_minus_L=yes | |
11320 | ;; | |
11321 | esac | |
11322 | ;; | |
11323 | ||
11324 | bsdi[45]*) | |
11325 | export_dynamic_flag_spec=-rdynamic | |
11326 | ;; | |
11327 | ||
11328 | cygwin* | mingw* | pw32* | cegcc*) | |
11329 | # When not using gcc, we currently assume that we are using | |
11330 | # Microsoft Visual C++. | |
11331 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
11332 | # no search path for DLLs. | |
11333 | hardcode_libdir_flag_spec=' ' | |
11334 | allow_undefined_flag=unsupported | |
11335 | # Tell ltmain to make .lib files, not .a files. | |
11336 | libext=lib | |
11337 | # Tell ltmain to make .dll files, not .so files. | |
11338 | shrext_cmds=".dll" | |
11339 | # FIXME: Setting linknames here is a bad hack. | |
11340 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
11341 | # The linker will automatically build a .lib file if we build a DLL. | |
11342 | old_archive_from_new_cmds='true' | |
11343 | # FIXME: Should let the user specify the lib program. | |
11344 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
11345 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
11346 | enable_shared_with_static_runtimes=yes | |
11347 | ;; | |
11348 | ||
11349 | darwin* | rhapsody*) | |
11350 | ||
11351 | ||
11352 | archive_cmds_need_lc=no | |
11353 | hardcode_direct=no | |
11354 | hardcode_automatic=yes | |
11355 | hardcode_shlibpath_var=unsupported | |
11356 | if test "$lt_cv_ld_force_load" = "yes"; then | |
11357 | 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\"`' | |
11358 | else | |
11359 | whole_archive_flag_spec='' | |
11360 | fi | |
11361 | link_all_deplibs=yes | |
11362 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
11363 | case $cc_basename in | |
11364 | ifort*) _lt_dar_can_shared=yes ;; | |
11365 | *) _lt_dar_can_shared=$GCC ;; | |
11366 | esac | |
11367 | if test "$_lt_dar_can_shared" = "yes"; then | |
11368 | output_verbose_link_cmd=func_echo_all | |
11369 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
11370 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
11371 | 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}" | |
11372 | 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}" | |
11373 | ||
11374 | else | |
11375 | ld_shlibs=no | |
11376 | fi | |
11377 | ||
11378 | ;; | |
11379 | ||
11380 | dgux*) | |
11381 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11382 | hardcode_libdir_flag_spec='-L$libdir' | |
11383 | hardcode_shlibpath_var=no | |
11384 | ;; | |
11385 | ||
11386 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
11387 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
11388 | # does not break anything, and helps significantly (at the cost of a little | |
11389 | # extra space). | |
11390 | freebsd2.2*) | |
11391 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
11392 | hardcode_libdir_flag_spec='-R$libdir' | |
11393 | hardcode_direct=yes | |
11394 | hardcode_shlibpath_var=no | |
11395 | ;; | |
11396 | ||
11397 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
11398 | freebsd2.*) | |
11399 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11400 | hardcode_direct=yes | |
11401 | hardcode_minus_L=yes | |
11402 | hardcode_shlibpath_var=no | |
11403 | ;; | |
11404 | ||
11405 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
11406 | freebsd* | dragonfly*) | |
11407 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
11408 | hardcode_libdir_flag_spec='-R$libdir' | |
11409 | hardcode_direct=yes | |
11410 | hardcode_shlibpath_var=no | |
11411 | ;; | |
11412 | ||
11413 | hpux9*) | |
11414 | if test "$GCC" = yes; then | |
11415 | 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' | |
11416 | else | |
11417 | 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' | |
11418 | fi | |
11419 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11420 | hardcode_libdir_separator=: | |
11421 | hardcode_direct=yes | |
11422 | ||
11423 | # hardcode_minus_L: Not really in the search PATH, | |
11424 | # but as the default location of the library. | |
11425 | hardcode_minus_L=yes | |
11426 | export_dynamic_flag_spec='${wl}-E' | |
11427 | ;; | |
11428 | ||
11429 | hpux10*) | |
11430 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
11431 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11432 | else | |
11433 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11434 | fi | |
11435 | if test "$with_gnu_ld" = no; then | |
11436 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11437 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
11438 | hardcode_libdir_separator=: | |
11439 | hardcode_direct=yes | |
11440 | hardcode_direct_absolute=yes | |
11441 | export_dynamic_flag_spec='${wl}-E' | |
11442 | # hardcode_minus_L: Not really in the search PATH, | |
11443 | # but as the default location of the library. | |
11444 | hardcode_minus_L=yes | |
11445 | fi | |
11446 | ;; | |
11447 | ||
11448 | hpux11*) | |
11449 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
11450 | case $host_cpu in | |
11451 | hppa*64*) | |
6a6859cb | 11452 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
b5689863 MF |
11453 | ;; |
11454 | ia64*) | |
11455 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
11456 | ;; | |
11457 | *) | |
11458 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11459 | ;; | |
11460 | esac | |
11461 | else | |
11462 | case $host_cpu in | |
11463 | hppa*64*) | |
6a6859cb | 11464 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
b5689863 MF |
11465 | ;; |
11466 | ia64*) | |
11467 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
11468 | ;; | |
11469 | *) | |
11470 | ||
11471 | # Older versions of the 11.00 compiler do not understand -b yet | |
11472 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
11473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
11474 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
11475 | if ${lt_cv_prog_compiler__b+:} false; then : | |
11476 | $as_echo_n "(cached) " >&6 | |
11477 | else | |
11478 | lt_cv_prog_compiler__b=no | |
11479 | save_LDFLAGS="$LDFLAGS" | |
11480 | LDFLAGS="$LDFLAGS -b" | |
11481 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
11482 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11483 | # The linker can only warn and ignore the option if not recognized | |
11484 | # So say no if there are warnings | |
11485 | if test -s conftest.err; then | |
11486 | # Append any errors to the config.log. | |
11487 | cat conftest.err 1>&5 | |
11488 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11489 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11490 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11491 | lt_cv_prog_compiler__b=yes | |
11492 | fi | |
11493 | else | |
11494 | lt_cv_prog_compiler__b=yes | |
11495 | fi | |
11496 | fi | |
11497 | $RM -r conftest* | |
11498 | LDFLAGS="$save_LDFLAGS" | |
11499 | ||
11500 | fi | |
11501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
11502 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
11503 | ||
11504 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
11505 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11506 | else | |
11507 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11508 | fi | |
11509 | ||
11510 | ;; | |
11511 | esac | |
11512 | fi | |
11513 | if test "$with_gnu_ld" = no; then | |
11514 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11515 | hardcode_libdir_separator=: | |
11516 | ||
11517 | case $host_cpu in | |
11518 | hppa*64*|ia64*) | |
11519 | hardcode_direct=no | |
11520 | hardcode_shlibpath_var=no | |
11521 | ;; | |
11522 | *) | |
11523 | hardcode_direct=yes | |
11524 | hardcode_direct_absolute=yes | |
11525 | export_dynamic_flag_spec='${wl}-E' | |
11526 | ||
11527 | # hardcode_minus_L: Not really in the search PATH, | |
11528 | # but as the default location of the library. | |
11529 | hardcode_minus_L=yes | |
11530 | ;; | |
11531 | esac | |
11532 | fi | |
11533 | ;; | |
11534 | ||
11535 | irix5* | irix6* | nonstopux*) | |
11536 | if test "$GCC" = yes; then | |
11537 | 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' | |
11538 | # Try to use the -exported_symbol ld option, if it does not | |
11539 | # work, assume that -exports_file does not work either and | |
11540 | # implicitly export all symbols. | |
11541 | save_LDFLAGS="$LDFLAGS" | |
11542 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
11543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11544 | /* end confdefs.h. */ | |
11545 | int foo(void) {} | |
11546 | _ACEOF | |
11547 | if ac_fn_c_try_link "$LINENO"; then : | |
11548 | 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' | |
11549 | ||
11550 | fi | |
11551 | rm -f core conftest.err conftest.$ac_objext \ | |
11552 | conftest$ac_exeext conftest.$ac_ext | |
11553 | LDFLAGS="$save_LDFLAGS" | |
11554 | else | |
11555 | 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' | |
11556 | 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' | |
11557 | fi | |
11558 | archive_cmds_need_lc='no' | |
11559 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11560 | hardcode_libdir_separator=: | |
11561 | inherit_rpath=yes | |
11562 | link_all_deplibs=yes | |
11563 | ;; | |
11564 | ||
11565 | netbsd*) | |
11566 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11567 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11568 | else | |
11569 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11570 | fi | |
11571 | hardcode_libdir_flag_spec='-R$libdir' | |
11572 | hardcode_direct=yes | |
11573 | hardcode_shlibpath_var=no | |
11574 | ;; | |
11575 | ||
11576 | newsos6) | |
11577 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11578 | hardcode_direct=yes | |
11579 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11580 | hardcode_libdir_separator=: | |
11581 | hardcode_shlibpath_var=no | |
11582 | ;; | |
11583 | ||
11584 | *nto* | *qnx*) | |
11585 | ;; | |
11586 | ||
11587 | openbsd*) | |
11588 | if test -f /usr/libexec/ld.so; then | |
11589 | hardcode_direct=yes | |
11590 | hardcode_shlibpath_var=no | |
11591 | hardcode_direct_absolute=yes | |
11592 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11593 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11594 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
11595 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11596 | export_dynamic_flag_spec='${wl}-E' | |
11597 | else | |
11598 | case $host_os in | |
11599 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
11600 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11601 | hardcode_libdir_flag_spec='-R$libdir' | |
11602 | ;; | |
11603 | *) | |
11604 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11605 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11606 | ;; | |
11607 | esac | |
11608 | fi | |
11609 | else | |
11610 | ld_shlibs=no | |
11611 | fi | |
11612 | ;; | |
11613 | ||
11614 | os2*) | |
11615 | hardcode_libdir_flag_spec='-L$libdir' | |
11616 | hardcode_minus_L=yes | |
11617 | allow_undefined_flag=unsupported | |
11618 | 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' | |
11619 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
11620 | ;; | |
11621 | ||
11622 | osf3*) | |
11623 | if test "$GCC" = yes; then | |
11624 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
11625 | 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' | |
11626 | else | |
11627 | allow_undefined_flag=' -expect_unresolved \*' | |
11628 | 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' | |
11629 | fi | |
11630 | archive_cmds_need_lc='no' | |
11631 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11632 | hardcode_libdir_separator=: | |
11633 | ;; | |
11634 | ||
11635 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
11636 | if test "$GCC" = yes; then | |
11637 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
11638 | 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' | |
11639 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11640 | else | |
11641 | allow_undefined_flag=' -expect_unresolved \*' | |
11642 | 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' | |
11643 | 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~ | |
11644 | $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' | |
11645 | ||
11646 | # Both c and cxx compiler support -rpath directly | |
11647 | hardcode_libdir_flag_spec='-rpath $libdir' | |
11648 | fi | |
11649 | archive_cmds_need_lc='no' | |
11650 | hardcode_libdir_separator=: | |
11651 | ;; | |
11652 | ||
11653 | solaris*) | |
11654 | no_undefined_flag=' -z defs' | |
11655 | if test "$GCC" = yes; then | |
11656 | wlarc='${wl}' | |
11657 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11658 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11659 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11660 | else | |
11661 | case `$CC -V 2>&1` in | |
11662 | *"Compilers 5.0"*) | |
11663 | wlarc='' | |
11664 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11665 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11666 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
11667 | ;; | |
11668 | *) | |
11669 | wlarc='${wl}' | |
11670 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11671 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11672 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11673 | ;; | |
11674 | esac | |
11675 | fi | |
11676 | hardcode_libdir_flag_spec='-R$libdir' | |
11677 | hardcode_shlibpath_var=no | |
11678 | case $host_os in | |
11679 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11680 | *) | |
11681 | # The compiler driver will combine and reorder linker options, | |
11682 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
11683 | # but is careful enough not to reorder. | |
11684 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11685 | if test "$GCC" = yes; then | |
11686 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11687 | else | |
11688 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11689 | fi | |
11690 | ;; | |
11691 | esac | |
11692 | link_all_deplibs=yes | |
11693 | ;; | |
11694 | ||
11695 | sunos4*) | |
11696 | if test "x$host_vendor" = xsequent; then | |
11697 | # Use $CC to link under sequent, because it throws in some extra .o | |
11698 | # files that make .init and .fini sections work. | |
11699 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11700 | else | |
11701 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11702 | fi | |
11703 | hardcode_libdir_flag_spec='-L$libdir' | |
11704 | hardcode_direct=yes | |
11705 | hardcode_minus_L=yes | |
11706 | hardcode_shlibpath_var=no | |
11707 | ;; | |
11708 | ||
11709 | sysv4) | |
11710 | case $host_vendor in | |
11711 | sni) | |
11712 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11713 | hardcode_direct=yes # is this really true??? | |
11714 | ;; | |
11715 | siemens) | |
11716 | ## LD is ld it makes a PLAMLIB | |
11717 | ## CC just makes a GrossModule. | |
11718 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11719 | reload_cmds='$CC -r -o $output$reload_objs' | |
11720 | hardcode_direct=no | |
11721 | ;; | |
11722 | motorola) | |
11723 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11724 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11725 | ;; | |
11726 | esac | |
11727 | runpath_var='LD_RUN_PATH' | |
11728 | hardcode_shlibpath_var=no | |
11729 | ;; | |
11730 | ||
11731 | sysv4.3*) | |
11732 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11733 | hardcode_shlibpath_var=no | |
11734 | export_dynamic_flag_spec='-Bexport' | |
11735 | ;; | |
11736 | ||
11737 | sysv4*MP*) | |
11738 | if test -d /usr/nec; then | |
11739 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11740 | hardcode_shlibpath_var=no | |
11741 | runpath_var=LD_RUN_PATH | |
11742 | hardcode_runpath_var=yes | |
11743 | ld_shlibs=yes | |
11744 | fi | |
11745 | ;; | |
11746 | ||
11747 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11748 | no_undefined_flag='${wl}-z,text' | |
11749 | archive_cmds_need_lc=no | |
11750 | hardcode_shlibpath_var=no | |
11751 | runpath_var='LD_RUN_PATH' | |
11752 | ||
11753 | if test "$GCC" = yes; then | |
11754 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11755 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11756 | else | |
11757 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11758 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11759 | fi | |
11760 | ;; | |
11761 | ||
11762 | sysv5* | sco3.2v5* | sco5v6*) | |
11763 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11764 | # link with -lc, and that would cause any symbols used from libc to | |
11765 | # always be unresolved, which means just about no library would | |
11766 | # ever link correctly. If we're not using GNU ld we use -z text | |
11767 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11768 | # as -z defs. | |
11769 | no_undefined_flag='${wl}-z,text' | |
11770 | allow_undefined_flag='${wl}-z,nodefs' | |
11771 | archive_cmds_need_lc=no | |
11772 | hardcode_shlibpath_var=no | |
11773 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11774 | hardcode_libdir_separator=':' | |
11775 | link_all_deplibs=yes | |
11776 | export_dynamic_flag_spec='${wl}-Bexport' | |
11777 | runpath_var='LD_RUN_PATH' | |
11778 | ||
11779 | if test "$GCC" = yes; then | |
11780 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11781 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11782 | else | |
11783 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11784 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11785 | fi | |
11786 | ;; | |
11787 | ||
11788 | uts4*) | |
11789 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11790 | hardcode_libdir_flag_spec='-L$libdir' | |
11791 | hardcode_shlibpath_var=no | |
11792 | ;; | |
11793 | ||
11794 | *) | |
11795 | ld_shlibs=no | |
11796 | ;; | |
11797 | esac | |
11798 | ||
11799 | if test x$host_vendor = xsni; then | |
11800 | case $host in | |
11801 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11802 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11803 | ;; | |
11804 | esac | |
11805 | fi | |
11806 | fi | |
11807 | ||
11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
11809 | $as_echo "$ld_shlibs" >&6; } | |
11810 | test "$ld_shlibs" = no && can_build_shared=no | |
11811 | ||
11812 | with_gnu_ld=$with_gnu_ld | |
11813 | ||
11814 | ||
11815 | ||
11816 | ||
11817 | ||
11818 | ||
11819 | ||
11820 | ||
11821 | ||
11822 | ||
11823 | ||
11824 | ||
11825 | ||
11826 | ||
11827 | ||
11828 | # | |
11829 | # Do we need to explicitly link libc? | |
11830 | # | |
11831 | case "x$archive_cmds_need_lc" in | |
11832 | x|xyes) | |
11833 | # Assume -lc should be added | |
11834 | archive_cmds_need_lc=yes | |
11835 | ||
11836 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11837 | case $archive_cmds in | |
11838 | *'~'*) | |
11839 | # FIXME: we may have to deal with multi-command sequences. | |
11840 | ;; | |
11841 | '$CC '*) | |
11842 | # Test whether the compiler implicitly links with -lc since on some | |
11843 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11844 | # to ld, don't add -lc before -lgcc. | |
11845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
11846 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
11847 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
11848 | $as_echo_n "(cached) " >&6 | |
11849 | else | |
11850 | $RM conftest* | |
11851 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11852 | ||
11853 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
11854 | (eval $ac_compile) 2>&5 | |
11855 | ac_status=$? | |
11856 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11857 | test $ac_status = 0; } 2>conftest.err; then | |
11858 | soname=conftest | |
11859 | lib=conftest | |
11860 | libobjs=conftest.$ac_objext | |
11861 | deplibs= | |
11862 | wl=$lt_prog_compiler_wl | |
11863 | pic_flag=$lt_prog_compiler_pic | |
11864 | compiler_flags=-v | |
11865 | linker_flags=-v | |
11866 | verstring= | |
11867 | output_objdir=. | |
11868 | libname=conftest | |
11869 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11870 | allow_undefined_flag= | |
11871 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
11872 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11873 | ac_status=$? | |
11874 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11875 | test $ac_status = 0; } | |
11876 | then | |
11877 | lt_cv_archive_cmds_need_lc=no | |
11878 | else | |
11879 | lt_cv_archive_cmds_need_lc=yes | |
11880 | fi | |
11881 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11882 | else | |
11883 | cat conftest.err 1>&5 | |
11884 | fi | |
11885 | $RM conftest* | |
11886 | ||
11887 | fi | |
11888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
11889 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11890 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
11891 | ;; | |
11892 | esac | |
11893 | fi | |
11894 | ;; | |
11895 | esac | |
11896 | ||
11897 | ||
11898 | ||
11899 | ||
11900 | ||
11901 | ||
11902 | ||
11903 | ||
11904 | ||
11905 | ||
11906 | ||
11907 | ||
11908 | ||
11909 | ||
11910 | ||
11911 | ||
11912 | ||
11913 | ||
11914 | ||
11915 | ||
11916 | ||
11917 | ||
11918 | ||
11919 | ||
11920 | ||
11921 | ||
11922 | ||
11923 | ||
11924 | ||
11925 | ||
11926 | ||
11927 | ||
11928 | ||
11929 | ||
11930 | ||
11931 | ||
11932 | ||
11933 | ||
11934 | ||
11935 | ||
11936 | ||
11937 | ||
11938 | ||
11939 | ||
11940 | ||
11941 | ||
11942 | ||
11943 | ||
11944 | ||
11945 | ||
11946 | ||
11947 | ||
11948 | ||
11949 | ||
11950 | ||
11951 | ||
11952 | ||
11953 | ||
11954 | ||
11955 | ||
11956 | ||
11957 | ||
11958 | ||
11959 | ||
11960 | ||
11961 | ||
11962 | ||
11963 | ||
11964 | ||
11965 | ||
11966 | ||
11967 | ||
11968 | ||
11969 | ||
11970 | ||
11971 | ||
11972 | ||
11973 | ||
11974 | ||
11975 | ||
11976 | ||
11977 | ||
11978 | ||
11979 | ||
11980 | ||
11981 | ||
11982 | ||
11983 | ||
11984 | ||
11985 | ||
11986 | ||
11987 | ||
11988 | ||
11989 | ||
11990 | ||
11991 | ||
11992 | ||
11993 | ||
11994 | ||
11995 | ||
11996 | ||
11997 | ||
11998 | ||
11999 | ||
12000 | ||
12001 | ||
12002 | ||
12003 | ||
12004 | ||
12005 | ||
12006 | ||
12007 | ||
12008 | ||
12009 | ||
12010 | ||
12011 | ||
12012 | ||
12013 | ||
12014 | ||
12015 | ||
12016 | ||
12017 | ||
12018 | ||
12019 | ||
12020 | ||
12021 | ||
12022 | ||
12023 | ||
12024 | ||
12025 | ||
12026 | ||
12027 | ||
12028 | ||
12029 | ||
12030 | ||
12031 | ||
12032 | ||
12033 | ||
12034 | ||
12035 | ||
12036 | ||
12037 | ||
12038 | ||
12039 | ||
12040 | ||
12041 | ||
12042 | ||
12043 | ||
12044 | ||
12045 | ||
12046 | ||
12047 | ||
12048 | ||
12049 | ||
12050 | ||
12051 | ||
12052 | ||
12053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
12054 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
12055 | ||
12056 | if test "$GCC" = yes; then | |
12057 | case $host_os in | |
12058 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
12059 | *) lt_awk_arg="/^libraries:/" ;; | |
12060 | esac | |
12061 | case $host_os in | |
12062 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
12063 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
12064 | esac | |
12065 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
12066 | case $lt_search_path_spec in | |
12067 | *\;*) | |
12068 | # if the path contains ";" then we assume it to be the separator | |
12069 | # otherwise default to the standard path separator (i.e. ":") - it is | |
12070 | # assumed that no part of a normal pathname contains ";" but that should | |
12071 | # okay in the real world where ";" in dirpaths is itself problematic. | |
12072 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
12073 | ;; | |
12074 | *) | |
12075 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
12076 | ;; | |
12077 | esac | |
12078 | # Ok, now we have the path, separated by spaces, we can step through it | |
12079 | # and add multilib dir if necessary. | |
12080 | lt_tmp_lt_search_path_spec= | |
12081 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
12082 | for lt_sys_path in $lt_search_path_spec; do | |
12083 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
12084 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
12085 | else | |
12086 | test -d "$lt_sys_path" && \ | |
12087 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
12088 | fi | |
12089 | done | |
12090 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
12091 | BEGIN {RS=" "; FS="/|\n";} { | |
12092 | lt_foo=""; | |
12093 | lt_count=0; | |
12094 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
12095 | if ($lt_i != "" && $lt_i != ".") { | |
12096 | if ($lt_i == "..") { | |
12097 | lt_count++; | |
12098 | } else { | |
12099 | if (lt_count == 0) { | |
12100 | lt_foo="/" $lt_i lt_foo; | |
12101 | } else { | |
12102 | lt_count--; | |
12103 | } | |
12104 | } | |
12105 | } | |
12106 | } | |
12107 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
12108 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
12109 | }'` | |
12110 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
12111 | # for these hosts. | |
12112 | case $host_os in | |
12113 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
12114 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
12115 | esac | |
12116 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
12117 | else | |
12118 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
12119 | fi | |
12120 | library_names_spec= | |
12121 | libname_spec='lib$name' | |
12122 | soname_spec= | |
12123 | shrext_cmds=".so" | |
12124 | postinstall_cmds= | |
12125 | postuninstall_cmds= | |
12126 | finish_cmds= | |
12127 | finish_eval= | |
12128 | shlibpath_var= | |
12129 | shlibpath_overrides_runpath=unknown | |
12130 | version_type=none | |
12131 | dynamic_linker="$host_os ld.so" | |
12132 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
12133 | need_lib_prefix=unknown | |
12134 | hardcode_into_libs=no | |
12135 | ||
12136 | # when you set need_version to no, make sure it does not cause -set_version | |
12137 | # flags to be left without arguments | |
12138 | need_version=unknown | |
12139 | ||
12140 | case $host_os in | |
12141 | aix3*) | |
12142 | version_type=linux | |
12143 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
12144 | shlibpath_var=LIBPATH | |
12145 | ||
12146 | # AIX 3 has no versioning support, so we append a major version to the name. | |
12147 | soname_spec='${libname}${release}${shared_ext}$major' | |
12148 | ;; | |
12149 | ||
12150 | aix[4-9]*) | |
12151 | version_type=linux | |
12152 | need_lib_prefix=no | |
12153 | need_version=no | |
12154 | hardcode_into_libs=yes | |
12155 | if test "$host_cpu" = ia64; then | |
12156 | # AIX 5 supports IA64 | |
12157 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
12158 | shlibpath_var=LD_LIBRARY_PATH | |
12159 | else | |
12160 | # With GCC up to 2.95.x, collect2 would create an import file | |
12161 | # for dependence libraries. The import file would start with | |
12162 | # the line `#! .'. This would cause the generated library to | |
12163 | # depend on `.', always an invalid library. This was fixed in | |
12164 | # development snapshots of GCC prior to 3.0. | |
12165 | case $host_os in | |
12166 | aix4 | aix4.[01] | aix4.[01].*) | |
12167 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
12168 | echo ' yes ' | |
12169 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
12170 | : | |
12171 | else | |
12172 | can_build_shared=no | |
12173 | fi | |
12174 | ;; | |
12175 | esac | |
12176 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
12177 | # soname into executable. Probably we can add versioning support to | |
12178 | # collect2, so additional links can be useful in future. | |
12179 | if test "$aix_use_runtimelinking" = yes; then | |
12180 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
12181 | # instead of lib<name>.a to let people know that these are not | |
12182 | # typical AIX shared libraries. | |
12183 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12184 | else | |
12185 | # We preserve .a as extension for shared libraries through AIX4.2 | |
12186 | # and later when we are not doing run time linking. | |
12187 | library_names_spec='${libname}${release}.a $libname.a' | |
12188 | soname_spec='${libname}${release}${shared_ext}$major' | |
12189 | fi | |
12190 | shlibpath_var=LIBPATH | |
12191 | fi | |
12192 | ;; | |
12193 | ||
12194 | amigaos*) | |
12195 | case $host_cpu in | |
12196 | powerpc) | |
12197 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
12198 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
12199 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12200 | ;; | |
12201 | m68k) | |
12202 | library_names_spec='$libname.ixlibrary $libname.a' | |
12203 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
12204 | 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' | |
12205 | ;; | |
12206 | esac | |
12207 | ;; | |
12208 | ||
12209 | beos*) | |
12210 | library_names_spec='${libname}${shared_ext}' | |
12211 | dynamic_linker="$host_os ld.so" | |
12212 | shlibpath_var=LIBRARY_PATH | |
12213 | ;; | |
12214 | ||
12215 | bsdi[45]*) | |
12216 | version_type=linux | |
12217 | need_version=no | |
12218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12219 | soname_spec='${libname}${release}${shared_ext}$major' | |
12220 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
12221 | shlibpath_var=LD_LIBRARY_PATH | |
12222 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
12223 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
12224 | # the default ld.so.conf also contains /usr/contrib/lib and | |
12225 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
12226 | # libtool to hard-code these into programs | |
12227 | ;; | |
12228 | ||
12229 | cygwin* | mingw* | pw32* | cegcc*) | |
12230 | version_type=windows | |
12231 | shrext_cmds=".dll" | |
12232 | need_version=no | |
12233 | need_lib_prefix=no | |
12234 | ||
12235 | case $GCC,$host_os in | |
12236 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
12237 | library_names_spec='$libname.dll.a' | |
12238 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
12239 | postinstall_cmds='base_file=`basename \${file}`~ | |
12240 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
12241 | dldir=$destdir/`dirname \$dlpath`~ | |
12242 | test -d \$dldir || mkdir -p \$dldir~ | |
12243 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
12244 | chmod a+x \$dldir/$dlname~ | |
12245 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
12246 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
12247 | fi' | |
12248 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
12249 | dlpath=$dir/\$dldll~ | |
12250 | $RM \$dlpath' | |
12251 | shlibpath_overrides_runpath=yes | |
12252 | ||
12253 | case $host_os in | |
12254 | cygwin*) | |
12255 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
12256 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12257 | ||
12258 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
12259 | ;; | |
12260 | mingw* | cegcc*) | |
12261 | # MinGW DLLs use traditional 'lib' prefix | |
12262 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12263 | ;; | |
12264 | pw32*) | |
12265 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
12266 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12267 | ;; | |
12268 | esac | |
12269 | ;; | |
12270 | ||
12271 | *) | |
12272 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
12273 | ;; | |
12274 | esac | |
12275 | dynamic_linker='Win32 ld.exe' | |
12276 | # FIXME: first we should search . and the directory the executable is in | |
12277 | shlibpath_var=PATH | |
12278 | ;; | |
12279 | ||
12280 | darwin* | rhapsody*) | |
12281 | dynamic_linker="$host_os dyld" | |
12282 | version_type=darwin | |
12283 | need_lib_prefix=no | |
12284 | need_version=no | |
12285 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
12286 | soname_spec='${libname}${release}${major}$shared_ext' | |
12287 | shlibpath_overrides_runpath=yes | |
12288 | shlibpath_var=DYLD_LIBRARY_PATH | |
12289 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
12290 | ||
12291 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
12292 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
12293 | ;; | |
12294 | ||
12295 | dgux*) | |
12296 | version_type=linux | |
12297 | need_lib_prefix=no | |
12298 | need_version=no | |
12299 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
12300 | soname_spec='${libname}${release}${shared_ext}$major' | |
12301 | shlibpath_var=LD_LIBRARY_PATH | |
12302 | ;; | |
12303 | ||
12304 | freebsd* | dragonfly*) | |
12305 | # DragonFly does not have aout. When/if they implement a new | |
12306 | # versioning mechanism, adjust this. | |
12307 | if test -x /usr/bin/objformat; then | |
12308 | objformat=`/usr/bin/objformat` | |
12309 | else | |
12310 | case $host_os in | |
12311 | freebsd[23].*) objformat=aout ;; | |
12312 | *) objformat=elf ;; | |
12313 | esac | |
12314 | fi | |
12315 | version_type=freebsd-$objformat | |
12316 | case $version_type in | |
12317 | freebsd-elf*) | |
12318 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12319 | need_version=no | |
12320 | need_lib_prefix=no | |
12321 | ;; | |
12322 | freebsd-*) | |
12323 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
12324 | need_version=yes | |
12325 | ;; | |
12326 | esac | |
12327 | shlibpath_var=LD_LIBRARY_PATH | |
12328 | case $host_os in | |
12329 | freebsd2.*) | |
12330 | shlibpath_overrides_runpath=yes | |
12331 | ;; | |
12332 | freebsd3.[01]* | freebsdelf3.[01]*) | |
12333 | shlibpath_overrides_runpath=yes | |
12334 | hardcode_into_libs=yes | |
12335 | ;; | |
12336 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
12337 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
12338 | shlibpath_overrides_runpath=no | |
12339 | hardcode_into_libs=yes | |
12340 | ;; | |
12341 | *) # from 4.6 on, and DragonFly | |
12342 | shlibpath_overrides_runpath=yes | |
12343 | hardcode_into_libs=yes | |
12344 | ;; | |
12345 | esac | |
12346 | ;; | |
12347 | ||
12348 | haiku*) | |
12349 | version_type=linux | |
12350 | need_lib_prefix=no | |
12351 | need_version=no | |
12352 | dynamic_linker="$host_os runtime_loader" | |
12353 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
12354 | soname_spec='${libname}${release}${shared_ext}$major' | |
12355 | shlibpath_var=LIBRARY_PATH | |
12356 | shlibpath_overrides_runpath=yes | |
99aedb62 | 12357 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
b5689863 MF |
12358 | hardcode_into_libs=yes |
12359 | ;; | |
12360 | ||
12361 | hpux9* | hpux10* | hpux11*) | |
12362 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
12363 | # link against other versions. | |
12364 | version_type=sunos | |
12365 | need_lib_prefix=no | |
12366 | need_version=no | |
12367 | case $host_cpu in | |
12368 | ia64*) | |
12369 | shrext_cmds='.so' | |
12370 | hardcode_into_libs=yes | |
12371 | dynamic_linker="$host_os dld.so" | |
12372 | shlibpath_var=LD_LIBRARY_PATH | |
12373 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12375 | soname_spec='${libname}${release}${shared_ext}$major' | |
12376 | if test "X$HPUX_IA64_MODE" = X32; then | |
12377 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
12378 | else | |
12379 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
12380 | fi | |
12381 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12382 | ;; | |
12383 | hppa*64*) | |
12384 | shrext_cmds='.sl' | |
12385 | hardcode_into_libs=yes | |
12386 | dynamic_linker="$host_os dld.sl" | |
12387 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
12388 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12389 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12390 | soname_spec='${libname}${release}${shared_ext}$major' | |
12391 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
12392 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12393 | ;; | |
12394 | *) | |
12395 | shrext_cmds='.sl' | |
12396 | dynamic_linker="$host_os dld.sl" | |
12397 | shlibpath_var=SHLIB_PATH | |
12398 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
12399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12400 | soname_spec='${libname}${release}${shared_ext}$major' | |
12401 | ;; | |
12402 | esac | |
12403 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
12404 | postinstall_cmds='chmod 555 $lib' | |
12405 | # or fails outright, so override atomically: | |
12406 | install_override_mode=555 | |
12407 | ;; | |
12408 | ||
12409 | interix[3-9]*) | |
12410 | version_type=linux | |
12411 | need_lib_prefix=no | |
12412 | need_version=no | |
12413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12414 | soname_spec='${libname}${release}${shared_ext}$major' | |
12415 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
12416 | shlibpath_var=LD_LIBRARY_PATH | |
12417 | shlibpath_overrides_runpath=no | |
12418 | hardcode_into_libs=yes | |
12419 | ;; | |
12420 | ||
12421 | irix5* | irix6* | nonstopux*) | |
12422 | case $host_os in | |
12423 | nonstopux*) version_type=nonstopux ;; | |
12424 | *) | |
12425 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
12426 | version_type=linux | |
12427 | else | |
12428 | version_type=irix | |
12429 | fi ;; | |
12430 | esac | |
12431 | need_lib_prefix=no | |
12432 | need_version=no | |
12433 | soname_spec='${libname}${release}${shared_ext}$major' | |
12434 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12435 | case $host_os in | |
12436 | irix5* | nonstopux*) | |
12437 | libsuff= shlibsuff= | |
12438 | ;; | |
12439 | *) | |
12440 | case $LD in # libtool.m4 will add one of these switches to LD | |
12441 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12442 | libsuff= shlibsuff= libmagic=32-bit;; | |
12443 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12444 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12445 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12446 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12447 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12448 | esac | |
12449 | ;; | |
12450 | esac | |
12451 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12452 | shlibpath_overrides_runpath=no | |
12453 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
12454 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12455 | hardcode_into_libs=yes | |
12456 | ;; | |
12457 | ||
12458 | # No shared lib support for Linux oldld, aout, or coff. | |
12459 | linux*oldld* | linux*aout* | linux*coff*) | |
12460 | dynamic_linker=no | |
12461 | ;; | |
12462 | ||
12463 | # This must be Linux ELF. | |
6a6859cb AM |
12464 | |
12465 | # uclinux* changes (here and below) have been submitted to the libtool | |
12466 | # project, but have not yet been accepted: they are GCC-local changes | |
12467 | # for the time being. (See | |
12468 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
12469 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) | |
b5689863 MF |
12470 | version_type=linux |
12471 | need_lib_prefix=no | |
12472 | need_version=no | |
12473 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12474 | soname_spec='${libname}${release}${shared_ext}$major' | |
12475 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12476 | shlibpath_var=LD_LIBRARY_PATH | |
12477 | shlibpath_overrides_runpath=no | |
12478 | ||
12479 | # Some binutils ld are patched to set DT_RUNPATH | |
12480 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
12481 | $as_echo_n "(cached) " >&6 | |
12482 | else | |
12483 | lt_cv_shlibpath_overrides_runpath=no | |
12484 | save_LDFLAGS=$LDFLAGS | |
12485 | save_libdir=$libdir | |
12486 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12487 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12489 | /* end confdefs.h. */ | |
12490 | ||
12491 | int | |
12492 | main () | |
12493 | { | |
12494 | ||
12495 | ; | |
12496 | return 0; | |
12497 | } | |
12498 | _ACEOF | |
12499 | if ac_fn_c_try_link "$LINENO"; then : | |
12500 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
12501 | lt_cv_shlibpath_overrides_runpath=yes | |
12502 | fi | |
12503 | fi | |
12504 | rm -f core conftest.err conftest.$ac_objext \ | |
12505 | conftest$ac_exeext conftest.$ac_ext | |
12506 | LDFLAGS=$save_LDFLAGS | |
12507 | libdir=$save_libdir | |
12508 | ||
12509 | fi | |
12510 | ||
12511 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
12512 | ||
12513 | # This implies no fast_install, which is unacceptable. | |
12514 | # Some rework will be needed to allow for fast_install | |
12515 | # before this can be enabled. | |
12516 | hardcode_into_libs=yes | |
12517 | ||
12518 | # Append ld.so.conf contents to the search path | |
12519 | if test -f /etc/ld.so.conf; then | |
12520 | 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' ' '` | |
12521 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
12522 | fi | |
12523 | ||
12524 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12525 | # powerpc, because MkLinux only supported shared libraries with the | |
12526 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12527 | # most powerpc-linux boxes support dynamic linking these days and | |
12528 | # people can always --disable-shared, the test was removed, and we | |
12529 | # assume the GNU/Linux dynamic linker is in use. | |
12530 | dynamic_linker='GNU/Linux ld.so' | |
12531 | ;; | |
12532 | ||
12533 | netbsd*) | |
12534 | version_type=sunos | |
12535 | need_lib_prefix=no | |
12536 | need_version=no | |
12537 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12538 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12539 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12540 | dynamic_linker='NetBSD (a.out) ld.so' | |
12541 | else | |
12542 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12543 | soname_spec='${libname}${release}${shared_ext}$major' | |
12544 | dynamic_linker='NetBSD ld.elf_so' | |
12545 | fi | |
12546 | shlibpath_var=LD_LIBRARY_PATH | |
12547 | shlibpath_overrides_runpath=yes | |
12548 | hardcode_into_libs=yes | |
12549 | ;; | |
12550 | ||
12551 | newsos6) | |
12552 | version_type=linux | |
12553 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12554 | shlibpath_var=LD_LIBRARY_PATH | |
12555 | shlibpath_overrides_runpath=yes | |
12556 | ;; | |
12557 | ||
12558 | *nto* | *qnx*) | |
12559 | version_type=qnx | |
12560 | need_lib_prefix=no | |
12561 | need_version=no | |
12562 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12563 | soname_spec='${libname}${release}${shared_ext}$major' | |
12564 | shlibpath_var=LD_LIBRARY_PATH | |
12565 | shlibpath_overrides_runpath=no | |
12566 | hardcode_into_libs=yes | |
12567 | dynamic_linker='ldqnx.so' | |
12568 | ;; | |
12569 | ||
12570 | openbsd*) | |
12571 | version_type=sunos | |
12572 | sys_lib_dlsearch_path_spec="/usr/lib" | |
12573 | need_lib_prefix=no | |
12574 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12575 | case $host_os in | |
12576 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12577 | *) need_version=no ;; | |
12578 | esac | |
12579 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12580 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12581 | shlibpath_var=LD_LIBRARY_PATH | |
12582 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12583 | case $host_os in | |
12584 | openbsd2.[89] | openbsd2.[89].*) | |
12585 | shlibpath_overrides_runpath=no | |
12586 | ;; | |
12587 | *) | |
12588 | shlibpath_overrides_runpath=yes | |
12589 | ;; | |
12590 | esac | |
12591 | else | |
12592 | shlibpath_overrides_runpath=yes | |
12593 | fi | |
12594 | ;; | |
12595 | ||
12596 | os2*) | |
12597 | libname_spec='$name' | |
12598 | shrext_cmds=".dll" | |
12599 | need_lib_prefix=no | |
12600 | library_names_spec='$libname${shared_ext} $libname.a' | |
12601 | dynamic_linker='OS/2 ld.exe' | |
12602 | shlibpath_var=LIBPATH | |
12603 | ;; | |
12604 | ||
12605 | osf3* | osf4* | osf5*) | |
12606 | version_type=osf | |
12607 | need_lib_prefix=no | |
12608 | need_version=no | |
12609 | soname_spec='${libname}${release}${shared_ext}$major' | |
12610 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12611 | shlibpath_var=LD_LIBRARY_PATH | |
12612 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12613 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12614 | ;; | |
12615 | ||
12616 | rdos*) | |
12617 | dynamic_linker=no | |
12618 | ;; | |
12619 | ||
12620 | solaris*) | |
12621 | version_type=linux | |
12622 | need_lib_prefix=no | |
12623 | need_version=no | |
12624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12625 | soname_spec='${libname}${release}${shared_ext}$major' | |
12626 | shlibpath_var=LD_LIBRARY_PATH | |
12627 | shlibpath_overrides_runpath=yes | |
12628 | hardcode_into_libs=yes | |
12629 | # ldd complains unless libraries are executable | |
12630 | postinstall_cmds='chmod +x $lib' | |
12631 | ;; | |
12632 | ||
12633 | sunos4*) | |
12634 | version_type=sunos | |
12635 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12636 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12637 | shlibpath_var=LD_LIBRARY_PATH | |
12638 | shlibpath_overrides_runpath=yes | |
12639 | if test "$with_gnu_ld" = yes; then | |
12640 | need_lib_prefix=no | |
12641 | fi | |
12642 | need_version=yes | |
12643 | ;; | |
12644 | ||
12645 | sysv4 | sysv4.3*) | |
12646 | version_type=linux | |
12647 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12648 | soname_spec='${libname}${release}${shared_ext}$major' | |
12649 | shlibpath_var=LD_LIBRARY_PATH | |
12650 | case $host_vendor in | |
12651 | sni) | |
12652 | shlibpath_overrides_runpath=no | |
12653 | need_lib_prefix=no | |
12654 | runpath_var=LD_RUN_PATH | |
12655 | ;; | |
12656 | siemens) | |
12657 | need_lib_prefix=no | |
12658 | ;; | |
12659 | motorola) | |
12660 | need_lib_prefix=no | |
12661 | need_version=no | |
12662 | shlibpath_overrides_runpath=no | |
12663 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12664 | ;; | |
12665 | esac | |
12666 | ;; | |
12667 | ||
12668 | sysv4*MP*) | |
12669 | if test -d /usr/nec ;then | |
12670 | version_type=linux | |
12671 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12672 | soname_spec='$libname${shared_ext}.$major' | |
12673 | shlibpath_var=LD_LIBRARY_PATH | |
12674 | fi | |
12675 | ;; | |
12676 | ||
12677 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12678 | version_type=freebsd-elf | |
12679 | need_lib_prefix=no | |
12680 | need_version=no | |
12681 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12682 | soname_spec='${libname}${release}${shared_ext}$major' | |
12683 | shlibpath_var=LD_LIBRARY_PATH | |
12684 | shlibpath_overrides_runpath=yes | |
12685 | hardcode_into_libs=yes | |
12686 | if test "$with_gnu_ld" = yes; then | |
12687 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12688 | else | |
12689 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12690 | case $host_os in | |
12691 | sco3.2v5*) | |
12692 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12693 | ;; | |
12694 | esac | |
12695 | fi | |
12696 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12697 | ;; | |
12698 | ||
12699 | tpf*) | |
12700 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12701 | version_type=linux | |
12702 | need_lib_prefix=no | |
12703 | need_version=no | |
12704 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12705 | shlibpath_var=LD_LIBRARY_PATH | |
12706 | shlibpath_overrides_runpath=no | |
12707 | hardcode_into_libs=yes | |
12708 | ;; | |
12709 | ||
12710 | uts4*) | |
12711 | version_type=linux | |
12712 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12713 | soname_spec='${libname}${release}${shared_ext}$major' | |
12714 | shlibpath_var=LD_LIBRARY_PATH | |
12715 | ;; | |
12716 | ||
6a6859cb AM |
12717 | # Shared libraries for VwWorks, >= 7 only at this stage |
12718 | # and (fpic) still incompatible with "large" code models | |
12719 | # in a few configurations. Only for RTP mode in any case, | |
12720 | # and upon explicit request at configure time. | |
12721 | vxworks7*) | |
12722 | dynamic_linker=no | |
12723 | case ${with_multisubdir}-${enable_shared} in | |
12724 | *large*) | |
12725 | ;; | |
12726 | *mrtp*-yes) | |
12727 | version_type=linux | |
12728 | need_lib_prefix=no | |
12729 | need_version=no | |
12730 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12731 | soname_spec='${libname}${release}${shared_ext}$major' | |
12732 | dynamic_linker="$host_os module_loader" | |
12733 | ;; | |
12734 | esac | |
12735 | ;; | |
b5689863 MF |
12736 | *) |
12737 | dynamic_linker=no | |
12738 | ;; | |
12739 | esac | |
12740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
12741 | $as_echo "$dynamic_linker" >&6; } | |
12742 | test "$dynamic_linker" = no && can_build_shared=no | |
12743 | ||
12744 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12745 | if test "$GCC" = yes; then | |
12746 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12747 | fi | |
12748 | ||
12749 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
12750 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12751 | fi | |
12752 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12753 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12754 | fi | |
12755 | ||
12756 | ||
12757 | ||
12758 | ||
12759 | ||
12760 | ||
12761 | ||
12762 | ||
12763 | ||
12764 | ||
12765 | ||
12766 | ||
12767 | ||
12768 | ||
12769 | ||
12770 | ||
12771 | ||
12772 | ||
12773 | ||
12774 | ||
12775 | ||
12776 | ||
12777 | ||
12778 | ||
12779 | ||
12780 | ||
12781 | ||
12782 | ||
12783 | ||
12784 | ||
12785 | ||
12786 | ||
12787 | ||
12788 | ||
12789 | ||
12790 | ||
12791 | ||
12792 | ||
12793 | ||
12794 | ||
12795 | ||
12796 | ||
12797 | ||
12798 | ||
12799 | ||
12800 | ||
12801 | ||
12802 | ||
12803 | ||
12804 | ||
12805 | ||
12806 | ||
12807 | ||
12808 | ||
12809 | ||
12810 | ||
12811 | ||
12812 | ||
12813 | ||
12814 | ||
12815 | ||
12816 | ||
12817 | ||
12818 | ||
12819 | ||
12820 | ||
12821 | ||
12822 | ||
12823 | ||
12824 | ||
12825 | ||
12826 | ||
12827 | ||
12828 | ||
12829 | ||
12830 | ||
12831 | ||
12832 | ||
12833 | ||
12834 | ||
12835 | ||
12836 | ||
12837 | ||
12838 | ||
12839 | ||
12840 | ||
12841 | ||
12842 | ||
12843 | ||
12844 | ||
12845 | ||
12846 | ||
12847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
12848 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
12849 | hardcode_action= | |
12850 | if test -n "$hardcode_libdir_flag_spec" || | |
12851 | test -n "$runpath_var" || | |
12852 | test "X$hardcode_automatic" = "Xyes" ; then | |
12853 | ||
12854 | # We can hardcode non-existent directories. | |
12855 | if test "$hardcode_direct" != no && | |
12856 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12857 | # have to relink, otherwise we might link with an installed library | |
12858 | # when we should be linking with a yet-to-be-installed one | |
12859 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12860 | test "$hardcode_minus_L" != no; then | |
12861 | # Linking always hardcodes the temporary library directory. | |
12862 | hardcode_action=relink | |
12863 | else | |
12864 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12865 | hardcode_action=immediate | |
12866 | fi | |
12867 | else | |
12868 | # We cannot hardcode anything, or else we can only hardcode existing | |
12869 | # directories. | |
12870 | hardcode_action=unsupported | |
12871 | fi | |
12872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
12873 | $as_echo "$hardcode_action" >&6; } | |
12874 | ||
12875 | if test "$hardcode_action" = relink || | |
12876 | test "$inherit_rpath" = yes; then | |
12877 | # Fast installation is not supported | |
12878 | enable_fast_install=no | |
12879 | elif test "$shlibpath_overrides_runpath" = yes || | |
12880 | test "$enable_shared" = no; then | |
12881 | # Fast installation is not necessary | |
12882 | enable_fast_install=needless | |
12883 | fi | |
12884 | ||
12885 | ||
12886 | ||
12887 | ||
12888 | ||
12889 | ||
12890 | if test "x$enable_dlopen" != xyes; then | |
12891 | enable_dlopen=unknown | |
12892 | enable_dlopen_self=unknown | |
12893 | enable_dlopen_self_static=unknown | |
12894 | else | |
12895 | lt_cv_dlopen=no | |
12896 | lt_cv_dlopen_libs= | |
12897 | ||
12898 | case $host_os in | |
12899 | beos*) | |
12900 | lt_cv_dlopen="load_add_on" | |
12901 | lt_cv_dlopen_libs= | |
12902 | lt_cv_dlopen_self=yes | |
12903 | ;; | |
12904 | ||
12905 | mingw* | pw32* | cegcc*) | |
12906 | lt_cv_dlopen="LoadLibrary" | |
12907 | lt_cv_dlopen_libs= | |
12908 | ;; | |
12909 | ||
12910 | cygwin*) | |
12911 | lt_cv_dlopen="dlopen" | |
12912 | lt_cv_dlopen_libs= | |
12913 | ;; | |
12914 | ||
12915 | darwin*) | |
12916 | # if libdl is installed we need to link against it | |
12917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12918 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12919 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12920 | $as_echo_n "(cached) " >&6 | |
12921 | else | |
12922 | ac_check_lib_save_LIBS=$LIBS | |
12923 | LIBS="-ldl $LIBS" | |
12924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12925 | /* end confdefs.h. */ | |
12926 | ||
12927 | /* Override any GCC internal prototype to avoid an error. | |
12928 | Use char because int might match the return type of a GCC | |
12929 | builtin and then its argument prototype would still apply. */ | |
12930 | #ifdef __cplusplus | |
12931 | extern "C" | |
12932 | #endif | |
12933 | char dlopen (); | |
12934 | int | |
12935 | main () | |
12936 | { | |
12937 | return dlopen (); | |
12938 | ; | |
12939 | return 0; | |
12940 | } | |
12941 | _ACEOF | |
12942 | if ac_fn_c_try_link "$LINENO"; then : | |
12943 | ac_cv_lib_dl_dlopen=yes | |
12944 | else | |
12945 | ac_cv_lib_dl_dlopen=no | |
12946 | fi | |
12947 | rm -f core conftest.err conftest.$ac_objext \ | |
12948 | conftest$ac_exeext conftest.$ac_ext | |
12949 | LIBS=$ac_check_lib_save_LIBS | |
12950 | fi | |
12951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12952 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12953 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12954 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12955 | else | |
12956 | ||
12957 | lt_cv_dlopen="dyld" | |
12958 | lt_cv_dlopen_libs= | |
12959 | lt_cv_dlopen_self=yes | |
12960 | ||
12961 | fi | |
12962 | ||
12963 | ;; | |
12964 | ||
12965 | *) | |
12966 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12967 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
12968 | lt_cv_dlopen="shl_load" | |
12969 | else | |
12970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12971 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12972 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12973 | $as_echo_n "(cached) " >&6 | |
12974 | else | |
12975 | ac_check_lib_save_LIBS=$LIBS | |
12976 | LIBS="-ldld $LIBS" | |
12977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12978 | /* end confdefs.h. */ | |
12979 | ||
12980 | /* Override any GCC internal prototype to avoid an error. | |
12981 | Use char because int might match the return type of a GCC | |
12982 | builtin and then its argument prototype would still apply. */ | |
12983 | #ifdef __cplusplus | |
12984 | extern "C" | |
12985 | #endif | |
12986 | char shl_load (); | |
a48ff3ef MF |
12987 | int |
12988 | main () | |
12989 | { | |
b5689863 | 12990 | return shl_load (); |
a48ff3ef MF |
12991 | ; |
12992 | return 0; | |
12993 | } | |
12994 | _ACEOF | |
12995 | if ac_fn_c_try_link "$LINENO"; then : | |
b5689863 | 12996 | ac_cv_lib_dld_shl_load=yes |
a48ff3ef | 12997 | else |
b5689863 | 12998 | ac_cv_lib_dld_shl_load=no |
a48ff3ef MF |
12999 | fi |
13000 | rm -f core conftest.err conftest.$ac_objext \ | |
13001 | conftest$ac_exeext conftest.$ac_ext | |
b5689863 | 13002 | LIBS=$ac_check_lib_save_LIBS |
a48ff3ef | 13003 | fi |
b5689863 MF |
13004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
13005 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
13006 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
13007 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
13008 | else | |
13009 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
13010 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
13011 | lt_cv_dlopen="dlopen" | |
13012 | else | |
13013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
13014 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
13015 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
13016 | $as_echo_n "(cached) " >&6 | |
13017 | else | |
13018 | ac_check_lib_save_LIBS=$LIBS | |
13019 | LIBS="-ldl $LIBS" | |
13020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13021 | /* end confdefs.h. */ | |
a48ff3ef | 13022 | |
b5689863 MF |
13023 | /* Override any GCC internal prototype to avoid an error. |
13024 | Use char because int might match the return type of a GCC | |
13025 | builtin and then its argument prototype would still apply. */ | |
13026 | #ifdef __cplusplus | |
13027 | extern "C" | |
13028 | #endif | |
13029 | char dlopen (); | |
13030 | int | |
13031 | main () | |
13032 | { | |
13033 | return dlopen (); | |
13034 | ; | |
13035 | return 0; | |
13036 | } | |
13037 | _ACEOF | |
13038 | if ac_fn_c_try_link "$LINENO"; then : | |
13039 | ac_cv_lib_dl_dlopen=yes | |
13040 | else | |
13041 | ac_cv_lib_dl_dlopen=no | |
a48ff3ef | 13042 | fi |
b5689863 MF |
13043 | rm -f core conftest.err conftest.$ac_objext \ |
13044 | conftest$ac_exeext conftest.$ac_ext | |
13045 | LIBS=$ac_check_lib_save_LIBS | |
13046 | fi | |
13047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
13048 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
13049 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
13050 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
13051 | else | |
13052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
13053 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
13054 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
13055 | $as_echo_n "(cached) " >&6 | |
13056 | else | |
13057 | ac_check_lib_save_LIBS=$LIBS | |
13058 | LIBS="-lsvld $LIBS" | |
13059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13060 | /* end confdefs.h. */ | |
a48ff3ef | 13061 | |
b5689863 MF |
13062 | /* Override any GCC internal prototype to avoid an error. |
13063 | Use char because int might match the return type of a GCC | |
13064 | builtin and then its argument prototype would still apply. */ | |
13065 | #ifdef __cplusplus | |
13066 | extern "C" | |
b15c5d7a | 13067 | #endif |
b5689863 MF |
13068 | char dlopen (); |
13069 | int | |
13070 | main () | |
13071 | { | |
13072 | return dlopen (); | |
13073 | ; | |
13074 | return 0; | |
13075 | } | |
b15c5d7a | 13076 | _ACEOF |
b5689863 MF |
13077 | if ac_fn_c_try_link "$LINENO"; then : |
13078 | ac_cv_lib_svld_dlopen=yes | |
13079 | else | |
13080 | ac_cv_lib_svld_dlopen=no | |
b15c5d7a | 13081 | fi |
b5689863 MF |
13082 | rm -f core conftest.err conftest.$ac_objext \ |
13083 | conftest$ac_exeext conftest.$ac_ext | |
13084 | LIBS=$ac_check_lib_save_LIBS | |
13085 | fi | |
13086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
13087 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
13088 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
13089 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
13090 | else | |
13091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
13092 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
13093 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
13094 | $as_echo_n "(cached) " >&6 | |
13095 | else | |
13096 | ac_check_lib_save_LIBS=$LIBS | |
13097 | LIBS="-ldld $LIBS" | |
13098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13099 | /* end confdefs.h. */ | |
b15c5d7a | 13100 | |
b5689863 MF |
13101 | /* Override any GCC internal prototype to avoid an error. |
13102 | Use char because int might match the return type of a GCC | |
13103 | builtin and then its argument prototype would still apply. */ | |
13104 | #ifdef __cplusplus | |
13105 | extern "C" | |
13106 | #endif | |
13107 | char dld_link (); | |
13108 | int | |
13109 | main () | |
13110 | { | |
13111 | return dld_link (); | |
13112 | ; | |
13113 | return 0; | |
13114 | } | |
b15c5d7a | 13115 | _ACEOF |
b5689863 MF |
13116 | if ac_fn_c_try_link "$LINENO"; then : |
13117 | ac_cv_lib_dld_dld_link=yes | |
13118 | else | |
13119 | ac_cv_lib_dld_dld_link=no | |
13120 | fi | |
13121 | rm -f core conftest.err conftest.$ac_objext \ | |
13122 | conftest$ac_exeext conftest.$ac_ext | |
13123 | LIBS=$ac_check_lib_save_LIBS | |
13124 | fi | |
13125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
13126 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
13127 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
13128 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
13129 | fi | |
b15c5d7a MF |
13130 | |
13131 | ||
13132 | fi | |
b15c5d7a | 13133 | |
b5689863 MF |
13134 | |
13135 | fi | |
b15c5d7a MF |
13136 | |
13137 | ||
13138 | fi | |
b15c5d7a | 13139 | |
b5689863 MF |
13140 | |
13141 | fi | |
b15c5d7a MF |
13142 | |
13143 | ||
13144 | fi | |
b15c5d7a | 13145 | |
b5689863 MF |
13146 | ;; |
13147 | esac | |
b15c5d7a | 13148 | |
b5689863 MF |
13149 | if test "x$lt_cv_dlopen" != xno; then |
13150 | enable_dlopen=yes | |
13151 | else | |
13152 | enable_dlopen=no | |
13153 | fi | |
b15c5d7a | 13154 | |
b5689863 MF |
13155 | case $lt_cv_dlopen in |
13156 | dlopen) | |
13157 | save_CPPFLAGS="$CPPFLAGS" | |
13158 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
b15c5d7a | 13159 | |
b5689863 MF |
13160 | save_LDFLAGS="$LDFLAGS" |
13161 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
b15c5d7a | 13162 | |
b5689863 MF |
13163 | save_LIBS="$LIBS" |
13164 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
b15c5d7a | 13165 | |
b5689863 MF |
13166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
13167 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
13168 | if ${lt_cv_dlopen_self+:} false; then : | |
13169 | $as_echo_n "(cached) " >&6 | |
13170 | else | |
13171 | if test "$cross_compiling" = yes; then : | |
13172 | lt_cv_dlopen_self=cross | |
13173 | else | |
13174 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
13175 | lt_status=$lt_dlunknown | |
13176 | cat > conftest.$ac_ext <<_LT_EOF | |
6fb5a51c | 13177 | #line 13177 "configure" |
b5689863 MF |
13178 | #include "confdefs.h" |
13179 | ||
13180 | #if HAVE_DLFCN_H | |
13181 | #include <dlfcn.h> | |
b15c5d7a | 13182 | #endif |
b15c5d7a | 13183 | |
b5689863 | 13184 | #include <stdio.h> |
b15c5d7a | 13185 | |
b5689863 MF |
13186 | #ifdef RTLD_GLOBAL |
13187 | # define LT_DLGLOBAL RTLD_GLOBAL | |
13188 | #else | |
13189 | # ifdef DL_GLOBAL | |
13190 | # define LT_DLGLOBAL DL_GLOBAL | |
13191 | # else | |
13192 | # define LT_DLGLOBAL 0 | |
13193 | # endif | |
13194 | #endif | |
b15c5d7a | 13195 | |
b5689863 MF |
13196 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
13197 | find out it does not work in some platform. */ | |
13198 | #ifndef LT_DLLAZY_OR_NOW | |
13199 | # ifdef RTLD_LAZY | |
13200 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13201 | # else | |
13202 | # ifdef DL_LAZY | |
13203 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13204 | # else | |
13205 | # ifdef RTLD_NOW | |
13206 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13207 | # else | |
13208 | # ifdef DL_NOW | |
13209 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13210 | # else | |
13211 | # define LT_DLLAZY_OR_NOW 0 | |
13212 | # endif | |
13213 | # endif | |
13214 | # endif | |
13215 | # endif | |
b15c5d7a | 13216 | #endif |
b5689863 MF |
13217 | |
13218 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
13219 | correspondingly for the symbols needed. */ | |
13220 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
13221 | void fnord () __attribute__((visibility("default"))); | |
b15c5d7a | 13222 | #endif |
b15c5d7a | 13223 | |
b5689863 MF |
13224 | void fnord () { int i=42; } |
13225 | int main () | |
13226 | { | |
13227 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
13228 | int status = $lt_dlunknown; | |
b15c5d7a | 13229 | |
b5689863 MF |
13230 | if (self) |
13231 | { | |
13232 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
13233 | else | |
13234 | { | |
13235 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13236 | else puts (dlerror ()); | |
13237 | } | |
13238 | /* dlclose (self); */ | |
13239 | } | |
13240 | else | |
13241 | puts (dlerror ()); | |
b15c5d7a | 13242 | |
b5689863 MF |
13243 | return status; |
13244 | } | |
13245 | _LT_EOF | |
13246 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13247 | (eval $ac_link) 2>&5 | |
13248 | ac_status=$? | |
13249 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13250 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
13251 | (./conftest; exit; ) >&5 2>/dev/null | |
13252 | lt_status=$? | |
13253 | case x$lt_status in | |
13254 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
13255 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
13256 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
13257 | esac | |
13258 | else : | |
13259 | # compilation failed | |
13260 | lt_cv_dlopen_self=no | |
13261 | fi | |
b15c5d7a | 13262 | fi |
b5689863 | 13263 | rm -fr conftest* |
b15c5d7a MF |
13264 | |
13265 | ||
13266 | fi | |
b5689863 MF |
13267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
13268 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
13269 | ||
13270 | if test "x$lt_cv_dlopen_self" = xyes; then | |
13271 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
13272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
13273 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
13274 | if ${lt_cv_dlopen_self_static+:} false; then : | |
13275 | $as_echo_n "(cached) " >&6 | |
13276 | else | |
13277 | if test "$cross_compiling" = yes; then : | |
13278 | lt_cv_dlopen_self_static=cross | |
13279 | else | |
13280 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
13281 | lt_status=$lt_dlunknown | |
13282 | cat > conftest.$ac_ext <<_LT_EOF | |
6fb5a51c | 13283 | #line 13283 "configure" |
b5689863 MF |
13284 | #include "confdefs.h" |
13285 | ||
13286 | #if HAVE_DLFCN_H | |
13287 | #include <dlfcn.h> | |
b15c5d7a | 13288 | #endif |
b15c5d7a | 13289 | |
b5689863 | 13290 | #include <stdio.h> |
b15c5d7a | 13291 | |
b5689863 MF |
13292 | #ifdef RTLD_GLOBAL |
13293 | # define LT_DLGLOBAL RTLD_GLOBAL | |
13294 | #else | |
13295 | # ifdef DL_GLOBAL | |
13296 | # define LT_DLGLOBAL DL_GLOBAL | |
13297 | # else | |
13298 | # define LT_DLGLOBAL 0 | |
13299 | # endif | |
13300 | #endif | |
b15c5d7a | 13301 | |
b5689863 MF |
13302 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
13303 | find out it does not work in some platform. */ | |
13304 | #ifndef LT_DLLAZY_OR_NOW | |
13305 | # ifdef RTLD_LAZY | |
13306 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13307 | # else | |
13308 | # ifdef DL_LAZY | |
13309 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13310 | # else | |
13311 | # ifdef RTLD_NOW | |
13312 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13313 | # else | |
13314 | # ifdef DL_NOW | |
13315 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13316 | # else | |
13317 | # define LT_DLLAZY_OR_NOW 0 | |
13318 | # endif | |
13319 | # endif | |
13320 | # endif | |
13321 | # endif | |
b15c5d7a | 13322 | #endif |
b5689863 MF |
13323 | |
13324 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
13325 | correspondingly for the symbols needed. */ | |
13326 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
13327 | void fnord () __attribute__((visibility("default"))); | |
b15c5d7a | 13328 | #endif |
b15c5d7a | 13329 | |
b5689863 MF |
13330 | void fnord () { int i=42; } |
13331 | int main () | |
13332 | { | |
13333 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
13334 | int status = $lt_dlunknown; | |
13335 | ||
13336 | if (self) | |
13337 | { | |
13338 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
13339 | else | |
13340 | { | |
13341 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13342 | else puts (dlerror ()); | |
13343 | } | |
13344 | /* dlclose (self); */ | |
13345 | } | |
13346 | else | |
13347 | puts (dlerror ()); | |
13348 | ||
13349 | return status; | |
13350 | } | |
13351 | _LT_EOF | |
13352 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13353 | (eval $ac_link) 2>&5 | |
13354 | ac_status=$? | |
13355 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13356 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
13357 | (./conftest; exit; ) >&5 2>/dev/null | |
13358 | lt_status=$? | |
13359 | case x$lt_status in | |
13360 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
13361 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
13362 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
13363 | esac | |
13364 | else : | |
13365 | # compilation failed | |
13366 | lt_cv_dlopen_self_static=no | |
13367 | fi | |
13368 | fi | |
13369 | rm -fr conftest* | |
b15c5d7a MF |
13370 | |
13371 | ||
13372 | fi | |
b5689863 MF |
13373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
13374 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
13375 | fi | |
b15c5d7a | 13376 | |
b5689863 MF |
13377 | CPPFLAGS="$save_CPPFLAGS" |
13378 | LDFLAGS="$save_LDFLAGS" | |
13379 | LIBS="$save_LIBS" | |
13380 | ;; | |
13381 | esac | |
b15c5d7a | 13382 | |
b5689863 MF |
13383 | case $lt_cv_dlopen_self in |
13384 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
13385 | *) enable_dlopen_self=unknown ;; | |
13386 | esac | |
b15c5d7a | 13387 | |
b5689863 MF |
13388 | case $lt_cv_dlopen_self_static in |
13389 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
13390 | *) enable_dlopen_self_static=unknown ;; | |
13391 | esac | |
b15c5d7a | 13392 | fi |
b15c5d7a | 13393 | |
b15c5d7a MF |
13394 | |
13395 | ||
b15c5d7a MF |
13396 | |
13397 | ||
b15c5d7a | 13398 | |
b15c5d7a MF |
13399 | |
13400 | ||
b15c5d7a | 13401 | |
b15c5d7a | 13402 | |
b15c5d7a | 13403 | |
b15c5d7a MF |
13404 | |
13405 | ||
b15c5d7a MF |
13406 | |
13407 | ||
a48ff3ef | 13408 | |
a48ff3ef | 13409 | |
b5689863 MF |
13410 | striplib= |
13411 | old_striplib= | |
13412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
13413 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
13414 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
13415 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
13416 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
13417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13418 | $as_echo "yes" >&6; } | |
a48ff3ef | 13419 | else |
b5689863 MF |
13420 | # FIXME - insert some real tests, host_os isn't really good enough |
13421 | case $host_os in | |
13422 | darwin*) | |
13423 | if test -n "$STRIP" ; then | |
13424 | striplib="$STRIP -x" | |
13425 | old_striplib="$STRIP -S" | |
13426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13427 | $as_echo "yes" >&6; } | |
13428 | else | |
13429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13430 | $as_echo "no" >&6; } | |
13431 | fi | |
13432 | ;; | |
13433 | *) | |
13434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13435 | $as_echo "no" >&6; } | |
13436 | ;; | |
13437 | esac | |
a48ff3ef MF |
13438 | fi |
13439 | ||
a48ff3ef | 13440 | |
a48ff3ef | 13441 | |
a48ff3ef | 13442 | |
a48ff3ef MF |
13443 | |
13444 | ||
a48ff3ef | 13445 | |
a48ff3ef | 13446 | |
a48ff3ef | 13447 | |
a48ff3ef | 13448 | |
a48ff3ef | 13449 | |
a48ff3ef | 13450 | |
b5689863 MF |
13451 | # Report which library types will actually be built |
13452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
13453 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13455 | $as_echo "$can_build_shared" >&6; } | |
a48ff3ef | 13456 | |
b5689863 MF |
13457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13458 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
13459 | test "$can_build_shared" = "no" && enable_shared=no | |
a48ff3ef | 13460 | |
b5689863 MF |
13461 | # On AIX, shared libraries and static libraries use the same namespace, and |
13462 | # are all built from PIC. | |
13463 | case $host_os in | |
13464 | aix3*) | |
13465 | test "$enable_shared" = yes && enable_static=no | |
13466 | if test -n "$RANLIB"; then | |
13467 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13468 | postinstall_cmds='$RANLIB $lib' | |
13469 | fi | |
13470 | ;; | |
a48ff3ef | 13471 | |
b5689863 MF |
13472 | aix[4-9]*) |
13473 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
13474 | test "$enable_shared" = yes && enable_static=no | |
13475 | fi | |
13476 | ;; | |
13477 | esac | |
13478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
13479 | $as_echo "$enable_shared" >&6; } | |
13480 | ||
13481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
13482 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
13483 | # Make sure either enable_shared or enable_static is yes. | |
13484 | test "$enable_shared" = yes || enable_static=yes | |
13485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
13486 | $as_echo "$enable_static" >&6; } | |
a48ff3ef | 13487 | |
a48ff3ef | 13488 | |
a48ff3ef | 13489 | |
b15c5d7a | 13490 | |
b15c5d7a | 13491 | fi |
b5689863 MF |
13492 | ac_ext=c |
13493 | ac_cpp='$CPP $CPPFLAGS' | |
13494 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13495 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13496 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b15c5d7a | 13497 | |
b5689863 | 13498 | CC="$lt_save_CC" |
b15c5d7a MF |
13499 | |
13500 | ||
a48ff3ef | 13501 | |
a48ff3ef | 13502 | |
a48ff3ef | 13503 | |
a48ff3ef | 13504 | |
a48ff3ef | 13505 | |
a48ff3ef | 13506 | |
a48ff3ef | 13507 | |
a48ff3ef MF |
13508 | |
13509 | ||
a48ff3ef | 13510 | |
b5689863 MF |
13511 | |
13512 | ac_config_commands="$ac_config_commands libtool" | |
13513 | ||
13514 | ||
13515 | ||
13516 | ||
13517 | # Only expand once: | |
13518 | ||
13519 | ||
a48ff3ef | 13520 | |
05108158 MF |
13521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5 |
13522 | $as_echo_n "checking for library containing bind... " >&6; } | |
13523 | if ${ac_cv_search_bind+:} false; then : | |
07490bf8 MF |
13524 | $as_echo_n "(cached) " >&6 |
13525 | else | |
05108158 | 13526 | ac_func_search_save_LIBS=$LIBS |
07490bf8 MF |
13527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13528 | /* end confdefs.h. */ | |
13529 | ||
13530 | /* Override any GCC internal prototype to avoid an error. | |
13531 | Use char because int might match the return type of a GCC | |
13532 | builtin and then its argument prototype would still apply. */ | |
13533 | #ifdef __cplusplus | |
13534 | extern "C" | |
13535 | #endif | |
13536 | char bind (); | |
13537 | int | |
13538 | main () | |
13539 | { | |
13540 | return bind (); | |
13541 | ; | |
13542 | return 0; | |
13543 | } | |
13544 | _ACEOF | |
05108158 MF |
13545 | for ac_lib in '' socket; do |
13546 | if test -z "$ac_lib"; then | |
13547 | ac_res="none required" | |
13548 | else | |
13549 | ac_res=-l$ac_lib | |
13550 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13551 | fi | |
13552 | if ac_fn_c_try_link "$LINENO"; then : | |
13553 | ac_cv_search_bind=$ac_res | |
07490bf8 MF |
13554 | fi |
13555 | rm -f core conftest.err conftest.$ac_objext \ | |
05108158 MF |
13556 | conftest$ac_exeext |
13557 | if ${ac_cv_search_bind+:} false; then : | |
13558 | break | |
07490bf8 | 13559 | fi |
05108158 MF |
13560 | done |
13561 | if ${ac_cv_search_bind+:} false; then : | |
07490bf8 | 13562 | |
05108158 MF |
13563 | else |
13564 | ac_cv_search_bind=no | |
13565 | fi | |
13566 | rm conftest.$ac_ext | |
13567 | LIBS=$ac_func_search_save_LIBS | |
13568 | fi | |
13569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5 | |
13570 | $as_echo "$ac_cv_search_bind" >&6; } | |
13571 | ac_res=$ac_cv_search_bind | |
13572 | if test "$ac_res" != no; then : | |
13573 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
07490bf8 MF |
13574 | |
13575 | fi | |
13576 | ||
05108158 MF |
13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 |
13578 | $as_echo_n "checking for library containing gethostbyname... " >&6; } | |
13579 | if ${ac_cv_search_gethostbyname+:} false; then : | |
07490bf8 MF |
13580 | $as_echo_n "(cached) " >&6 |
13581 | else | |
05108158 | 13582 | ac_func_search_save_LIBS=$LIBS |
07490bf8 MF |
13583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13584 | /* end confdefs.h. */ | |
13585 | ||
13586 | /* Override any GCC internal prototype to avoid an error. | |
13587 | Use char because int might match the return type of a GCC | |
13588 | builtin and then its argument prototype would still apply. */ | |
13589 | #ifdef __cplusplus | |
13590 | extern "C" | |
13591 | #endif | |
13592 | char gethostbyname (); | |
13593 | int | |
13594 | main () | |
13595 | { | |
13596 | return gethostbyname (); | |
13597 | ; | |
13598 | return 0; | |
13599 | } | |
13600 | _ACEOF | |
05108158 MF |
13601 | for ac_lib in '' nsl; do |
13602 | if test -z "$ac_lib"; then | |
13603 | ac_res="none required" | |
13604 | else | |
13605 | ac_res=-l$ac_lib | |
13606 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13607 | fi | |
13608 | if ac_fn_c_try_link "$LINENO"; then : | |
13609 | ac_cv_search_gethostbyname=$ac_res | |
07490bf8 MF |
13610 | fi |
13611 | rm -f core conftest.err conftest.$ac_objext \ | |
05108158 MF |
13612 | conftest$ac_exeext |
13613 | if ${ac_cv_search_gethostbyname+:} false; then : | |
13614 | break | |
07490bf8 | 13615 | fi |
05108158 MF |
13616 | done |
13617 | if ${ac_cv_search_gethostbyname+:} false; then : | |
07490bf8 | 13618 | |
05108158 MF |
13619 | else |
13620 | ac_cv_search_gethostbyname=no | |
13621 | fi | |
13622 | rm conftest.$ac_ext | |
13623 | LIBS=$ac_func_search_save_LIBS | |
13624 | fi | |
13625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 | |
13626 | $as_echo "$ac_cv_search_gethostbyname" >&6; } | |
13627 | ac_res=$ac_cv_search_gethostbyname | |
13628 | if test "$ac_res" != no; then : | |
13629 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
07490bf8 MF |
13630 | |
13631 | fi | |
13632 | ||
05108158 MF |
13633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5 |
13634 | $as_echo_n "checking for library containing fabs... " >&6; } | |
13635 | if ${ac_cv_search_fabs+:} false; then : | |
07490bf8 MF |
13636 | $as_echo_n "(cached) " >&6 |
13637 | else | |
05108158 | 13638 | ac_func_search_save_LIBS=$LIBS |
07490bf8 MF |
13639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13640 | /* end confdefs.h. */ | |
13641 | ||
13642 | /* Override any GCC internal prototype to avoid an error. | |
13643 | Use char because int might match the return type of a GCC | |
13644 | builtin and then its argument prototype would still apply. */ | |
13645 | #ifdef __cplusplus | |
13646 | extern "C" | |
13647 | #endif | |
13648 | char fabs (); | |
13649 | int | |
13650 | main () | |
13651 | { | |
13652 | return fabs (); | |
13653 | ; | |
13654 | return 0; | |
13655 | } | |
13656 | _ACEOF | |
05108158 MF |
13657 | for ac_lib in '' m; do |
13658 | if test -z "$ac_lib"; then | |
13659 | ac_res="none required" | |
13660 | else | |
13661 | ac_res=-l$ac_lib | |
13662 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13663 | fi | |
13664 | if ac_fn_c_try_link "$LINENO"; then : | |
13665 | ac_cv_search_fabs=$ac_res | |
07490bf8 MF |
13666 | fi |
13667 | rm -f core conftest.err conftest.$ac_objext \ | |
05108158 MF |
13668 | conftest$ac_exeext |
13669 | if ${ac_cv_search_fabs+:} false; then : | |
13670 | break | |
07490bf8 | 13671 | fi |
05108158 MF |
13672 | done |
13673 | if ${ac_cv_search_fabs+:} false; then : | |
07490bf8 | 13674 | |
05108158 MF |
13675 | else |
13676 | ac_cv_search_fabs=no | |
13677 | fi | |
13678 | rm conftest.$ac_ext | |
13679 | LIBS=$ac_func_search_save_LIBS | |
13680 | fi | |
13681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5 | |
13682 | $as_echo "$ac_cv_search_fabs" >&6; } | |
13683 | ac_res=$ac_cv_search_fabs | |
13684 | if test "$ac_res" != no; then : | |
13685 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
07490bf8 MF |
13686 | |
13687 | fi | |
13688 | ||
05108158 MF |
13689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5 |
13690 | $as_echo_n "checking for library containing log2... " >&6; } | |
13691 | if ${ac_cv_search_log2+:} false; then : | |
07490bf8 MF |
13692 | $as_echo_n "(cached) " >&6 |
13693 | else | |
05108158 | 13694 | ac_func_search_save_LIBS=$LIBS |
07490bf8 MF |
13695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13696 | /* end confdefs.h. */ | |
13697 | ||
13698 | /* Override any GCC internal prototype to avoid an error. | |
13699 | Use char because int might match the return type of a GCC | |
13700 | builtin and then its argument prototype would still apply. */ | |
13701 | #ifdef __cplusplus | |
13702 | extern "C" | |
13703 | #endif | |
13704 | char log2 (); | |
13705 | int | |
13706 | main () | |
13707 | { | |
13708 | return log2 (); | |
13709 | ; | |
13710 | return 0; | |
13711 | } | |
13712 | _ACEOF | |
05108158 MF |
13713 | for ac_lib in '' m; do |
13714 | if test -z "$ac_lib"; then | |
13715 | ac_res="none required" | |
13716 | else | |
13717 | ac_res=-l$ac_lib | |
13718 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13719 | fi | |
13720 | if ac_fn_c_try_link "$LINENO"; then : | |
13721 | ac_cv_search_log2=$ac_res | |
07490bf8 MF |
13722 | fi |
13723 | rm -f core conftest.err conftest.$ac_objext \ | |
05108158 MF |
13724 | conftest$ac_exeext |
13725 | if ${ac_cv_search_log2+:} false; then : | |
13726 | break | |
07490bf8 | 13727 | fi |
05108158 MF |
13728 | done |
13729 | if ${ac_cv_search_log2+:} false; then : | |
07490bf8 | 13730 | |
05108158 MF |
13731 | else |
13732 | ac_cv_search_log2=no | |
13733 | fi | |
13734 | rm conftest.$ac_ext | |
13735 | LIBS=$ac_func_search_save_LIBS | |
13736 | fi | |
13737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5 | |
13738 | $as_echo "$ac_cv_search_log2" >&6; } | |
13739 | ac_res=$ac_cv_search_log2 | |
13740 | if test "$ac_res" != no; then : | |
13741 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
07490bf8 MF |
13742 | |
13743 | fi | |
13744 | ||
13745 | ||
05108158 MF |
13746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
13747 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
13748 | if ${ac_cv_search_dlopen+:} false; then : | |
f050cfdd MF |
13749 | $as_echo_n "(cached) " >&6 |
13750 | else | |
05108158 | 13751 | ac_func_search_save_LIBS=$LIBS |
f050cfdd MF |
13752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13753 | /* end confdefs.h. */ | |
13754 | ||
13755 | /* Override any GCC internal prototype to avoid an error. | |
13756 | Use char because int might match the return type of a GCC | |
13757 | builtin and then its argument prototype would still apply. */ | |
13758 | #ifdef __cplusplus | |
13759 | extern "C" | |
13760 | #endif | |
13761 | char dlopen (); | |
13762 | int | |
13763 | main () | |
13764 | { | |
13765 | return dlopen (); | |
13766 | ; | |
13767 | return 0; | |
13768 | } | |
13769 | _ACEOF | |
05108158 MF |
13770 | for ac_lib in '' dl; do |
13771 | if test -z "$ac_lib"; then | |
13772 | ac_res="none required" | |
13773 | else | |
13774 | ac_res=-l$ac_lib | |
13775 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13776 | fi | |
13777 | if ac_fn_c_try_link "$LINENO"; then : | |
13778 | ac_cv_search_dlopen=$ac_res | |
f050cfdd MF |
13779 | fi |
13780 | rm -f core conftest.err conftest.$ac_objext \ | |
05108158 MF |
13781 | conftest$ac_exeext |
13782 | if ${ac_cv_search_dlopen+:} false; then : | |
13783 | break | |
f050cfdd | 13784 | fi |
05108158 MF |
13785 | done |
13786 | if ${ac_cv_search_dlopen+:} false; then : | |
f050cfdd | 13787 | |
05108158 MF |
13788 | else |
13789 | ac_cv_search_dlopen=no | |
13790 | fi | |
13791 | rm conftest.$ac_ext | |
13792 | LIBS=$ac_func_search_save_LIBS | |
13793 | fi | |
13794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
13795 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
13796 | ac_res=$ac_cv_search_dlopen | |
13797 | if test "$ac_res" != no; then : | |
13798 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
f050cfdd MF |
13799 | |
13800 | fi | |
13801 | ||
708aee5e | 13802 | if test "${ac_cv_search_dlopen}" = "none required" || test "${ac_cv_lib_dl_dlopen}" = "yes"; then |
f050cfdd MF |
13803 | |
13804 | pkg_failed=no | |
13805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5 | |
13806 | $as_echo_n "checking for sdl2... " >&6; } | |
13807 | ||
13808 | if test -n "$SDL_CFLAGS"; then | |
13809 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | |
13810 | elif test -n "$PKG_CONFIG"; then | |
13811 | if test -n "$PKG_CONFIG" && \ | |
13812 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5 | |
13813 | ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5 | |
13814 | ac_status=$? | |
13815 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13816 | test $ac_status = 0; }; then | |
13817 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null` | |
13818 | test "x$?" != "x0" && pkg_failed=yes | |
13819 | else | |
13820 | pkg_failed=yes | |
13821 | fi | |
13822 | else | |
13823 | pkg_failed=untried | |
13824 | fi | |
13825 | if test -n "$SDL_LIBS"; then | |
13826 | pkg_cv_SDL_LIBS="$SDL_LIBS" | |
13827 | elif test -n "$PKG_CONFIG"; then | |
13828 | if test -n "$PKG_CONFIG" && \ | |
13829 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5 | |
13830 | ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5 | |
13831 | ac_status=$? | |
13832 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13833 | test $ac_status = 0; }; then | |
13834 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null` | |
13835 | test "x$?" != "x0" && pkg_failed=yes | |
13836 | else | |
13837 | pkg_failed=yes | |
13838 | fi | |
13839 | else | |
13840 | pkg_failed=untried | |
13841 | fi | |
13842 | ||
13843 | if test $pkg_failed = no; then | |
13844 | pkg_save_LDFLAGS="$LDFLAGS" | |
13845 | LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS" | |
13846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13847 | /* end confdefs.h. */ | |
13848 | ||
13849 | int | |
13850 | main () | |
13851 | { | |
13852 | ||
13853 | ; | |
13854 | return 0; | |
13855 | } | |
13856 | _ACEOF | |
13857 | if ac_fn_c_try_link "$LINENO"; then : | |
13858 | ||
13859 | else | |
13860 | pkg_failed=yes | |
13861 | fi | |
13862 | rm -f core conftest.err conftest.$ac_objext \ | |
13863 | conftest$ac_exeext conftest.$ac_ext | |
13864 | LDFLAGS=$pkg_save_LDFLAGS | |
13865 | fi | |
13866 | ||
13867 | ||
13868 | ||
13869 | if test $pkg_failed = yes; then | |
13870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13871 | $as_echo "no" >&6; } | |
13872 | ||
13873 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13874 | _pkg_short_errors_supported=yes | |
13875 | else | |
13876 | _pkg_short_errors_supported=no | |
13877 | fi | |
13878 | if test $_pkg_short_errors_supported = yes; then | |
13879 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1` | |
13880 | else | |
13881 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1` | |
13882 | fi | |
13883 | # Put the nasty error message in config.log where it belongs | |
13884 | echo "$SDL_PKG_ERRORS" >&5 | |
13885 | ||
13886 | ||
b15c5d7a | 13887 | |
d57b6533 MF |
13888 | pkg_failed=no |
13889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5 | |
13890 | $as_echo_n "checking for sdl... " >&6; } | |
13891 | ||
13892 | if test -n "$SDL_CFLAGS"; then | |
13893 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | |
13894 | elif test -n "$PKG_CONFIG"; then | |
13895 | if test -n "$PKG_CONFIG" && \ | |
13896 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
13897 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
13898 | ac_status=$? | |
13899 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13900 | test $ac_status = 0; }; then | |
13901 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null` | |
13902 | test "x$?" != "x0" && pkg_failed=yes | |
13903 | else | |
13904 | pkg_failed=yes | |
13905 | fi | |
13906 | else | |
13907 | pkg_failed=untried | |
13908 | fi | |
13909 | if test -n "$SDL_LIBS"; then | |
13910 | pkg_cv_SDL_LIBS="$SDL_LIBS" | |
13911 | elif test -n "$PKG_CONFIG"; then | |
13912 | if test -n "$PKG_CONFIG" && \ | |
13913 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
13914 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
13915 | ac_status=$? | |
13916 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13917 | test $ac_status = 0; }; then | |
13918 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null` | |
13919 | test "x$?" != "x0" && pkg_failed=yes | |
13920 | else | |
13921 | pkg_failed=yes | |
13922 | fi | |
13923 | else | |
13924 | pkg_failed=untried | |
13925 | fi | |
13926 | ||
13927 | if test $pkg_failed = no; then | |
13928 | pkg_save_LDFLAGS="$LDFLAGS" | |
13929 | LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS" | |
13930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13931 | /* end confdefs.h. */ | |
13932 | ||
13933 | int | |
13934 | main () | |
13935 | { | |
13936 | ||
13937 | ; | |
13938 | return 0; | |
13939 | } | |
13940 | _ACEOF | |
13941 | if ac_fn_c_try_link "$LINENO"; then : | |
13942 | ||
13943 | else | |
13944 | pkg_failed=yes | |
13945 | fi | |
13946 | rm -f core conftest.err conftest.$ac_objext \ | |
13947 | conftest$ac_exeext conftest.$ac_ext | |
13948 | LDFLAGS=$pkg_save_LDFLAGS | |
13949 | fi | |
13950 | ||
13951 | ||
13952 | ||
13953 | if test $pkg_failed = yes; then | |
13954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13955 | $as_echo "no" >&6; } | |
13956 | ||
13957 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13958 | _pkg_short_errors_supported=yes | |
13959 | else | |
13960 | _pkg_short_errors_supported=no | |
13961 | fi | |
13962 | if test $_pkg_short_errors_supported = yes; then | |
13963 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1` | |
13964 | else | |
13965 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1` | |
13966 | fi | |
13967 | # Put the nasty error message in config.log where it belongs | |
13968 | echo "$SDL_PKG_ERRORS" >&5 | |
13969 | ||
13970 | : | |
13971 | elif test $pkg_failed = untried; then | |
13972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13973 | $as_echo "no" >&6; } | |
13974 | : | |
13975 | else | |
13976 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | |
13977 | SDL_LIBS=$pkg_cv_SDL_LIBS | |
13978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13979 | $as_echo "yes" >&6; } | |
f050cfdd | 13980 | SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1" |
f050cfdd MF |
13981 | |
13982 | fi | |
13983 | ||
13984 | elif test $pkg_failed = untried; then | |
13985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13986 | $as_echo "no" >&6; } | |
13987 | ||
13988 | ||
13989 | pkg_failed=no | |
13990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5 | |
13991 | $as_echo_n "checking for sdl... " >&6; } | |
13992 | ||
13993 | if test -n "$SDL_CFLAGS"; then | |
13994 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | |
13995 | elif test -n "$PKG_CONFIG"; then | |
13996 | if test -n "$PKG_CONFIG" && \ | |
13997 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
13998 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
13999 | ac_status=$? | |
14000 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14001 | test $ac_status = 0; }; then | |
14002 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null` | |
14003 | test "x$?" != "x0" && pkg_failed=yes | |
d57b6533 | 14004 | else |
f050cfdd MF |
14005 | pkg_failed=yes |
14006 | fi | |
14007 | else | |
14008 | pkg_failed=untried | |
14009 | fi | |
14010 | if test -n "$SDL_LIBS"; then | |
14011 | pkg_cv_SDL_LIBS="$SDL_LIBS" | |
14012 | elif test -n "$PKG_CONFIG"; then | |
14013 | if test -n "$PKG_CONFIG" && \ | |
14014 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
14015 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
14016 | ac_status=$? | |
14017 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14018 | test $ac_status = 0; }; then | |
14019 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null` | |
14020 | test "x$?" != "x0" && pkg_failed=yes | |
14021 | else | |
14022 | pkg_failed=yes | |
14023 | fi | |
14024 | else | |
14025 | pkg_failed=untried | |
14026 | fi | |
14027 | ||
14028 | if test $pkg_failed = no; then | |
14029 | pkg_save_LDFLAGS="$LDFLAGS" | |
14030 | LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS" | |
14031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d57b6533 MF |
14032 | /* end confdefs.h. */ |
14033 | ||
d57b6533 MF |
14034 | int |
14035 | main () | |
14036 | { | |
f050cfdd | 14037 | |
d57b6533 MF |
14038 | ; |
14039 | return 0; | |
14040 | } | |
14041 | _ACEOF | |
14042 | if ac_fn_c_try_link "$LINENO"; then : | |
f050cfdd | 14043 | |
d57b6533 | 14044 | else |
f050cfdd | 14045 | pkg_failed=yes |
d57b6533 MF |
14046 | fi |
14047 | rm -f core conftest.err conftest.$ac_objext \ | |
14048 | conftest$ac_exeext conftest.$ac_ext | |
f050cfdd | 14049 | LDFLAGS=$pkg_save_LDFLAGS |
d57b6533 | 14050 | fi |
d57b6533 | 14051 | |
f050cfdd MF |
14052 | |
14053 | ||
14054 | if test $pkg_failed = yes; then | |
14055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14056 | $as_echo "no" >&6; } | |
14057 | ||
14058 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14059 | _pkg_short_errors_supported=yes | |
d57b6533 | 14060 | else |
f050cfdd | 14061 | _pkg_short_errors_supported=no |
d57b6533 | 14062 | fi |
f050cfdd MF |
14063 | if test $_pkg_short_errors_supported = yes; then |
14064 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1` | |
14065 | else | |
14066 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1` | |
14067 | fi | |
14068 | # Put the nasty error message in config.log where it belongs | |
14069 | echo "$SDL_PKG_ERRORS" >&5 | |
14070 | ||
14071 | : | |
14072 | elif test $pkg_failed = untried; then | |
14073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14074 | $as_echo "no" >&6; } | |
14075 | : | |
14076 | else | |
14077 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | |
14078 | SDL_LIBS=$pkg_cv_SDL_LIBS | |
14079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14080 | $as_echo "yes" >&6; } | |
14081 | SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1" | |
d57b6533 | 14082 | |
f050cfdd MF |
14083 | fi |
14084 | ||
14085 | else | |
14086 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | |
14087 | SDL_LIBS=$pkg_cv_SDL_LIBS | |
14088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14089 | $as_echo "yes" >&6; } | |
14090 | SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2" | |
c55c1f6e MF |
14091 | |
14092 | fi | |
14093 | if test -n "$SDL_CFLAGS"; then : | |
14094 | if test "$ac_cv_search_dlopen" = no; then : | |
14095 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5 | |
14096 | $as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;} | |
14097 | ||
14098 | fi | |
d57b6533 MF |
14099 | |
14100 | fi | |
f050cfdd MF |
14101 | else |
14102 | SDL_CFLAGS= | |
f050cfdd | 14103 | fi |
c55c1f6e | 14104 | SDL_LIBS= |
d57b6533 MF |
14105 | |
14106 | ||
5d0b3088 MF |
14107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5 |
14108 | $as_echo_n "checking for cygwin... " >&6; } | |
14109 | if ${sim_cv_os_cygwin+:} false; then : | |
14110 | $as_echo_n "(cached) " >&6 | |
14111 | else | |
14112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14113 | /* end confdefs.h. */ | |
14114 | ||
14115 | #ifdef __CYGWIN__ | |
14116 | lose | |
14117 | #endif | |
14118 | _ACEOF | |
14119 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14120 | $EGREP "lose" >/dev/null 2>&1; then : | |
14121 | sim_cv_os_cygwin=yes | |
14122 | else | |
14123 | sim_cv_os_cygwin=no | |
14124 | fi | |
14125 | rm -f conftest* | |
14126 | ||
14127 | fi | |
14128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5 | |
14129 | $as_echo "$sim_cv_os_cygwin" >&6; } | |
14130 | ||
14131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 | |
14132 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
14133 | if ${ac_cv_search_tgetent+:} false; then : | |
14134 | $as_echo_n "(cached) " >&6 | |
14135 | else | |
14136 | ac_func_search_save_LIBS=$LIBS | |
14137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14138 | /* end confdefs.h. */ | |
14139 | ||
14140 | /* Override any GCC internal prototype to avoid an error. | |
14141 | Use char because int might match the return type of a GCC | |
14142 | builtin and then its argument prototype would still apply. */ | |
14143 | #ifdef __cplusplus | |
14144 | extern "C" | |
14145 | #endif | |
14146 | char tgetent (); | |
14147 | int | |
14148 | main () | |
14149 | { | |
14150 | return tgetent (); | |
14151 | ; | |
14152 | return 0; | |
14153 | } | |
14154 | _ACEOF | |
14155 | for ac_lib in '' termcap tinfo curses ncurses; do | |
14156 | if test -z "$ac_lib"; then | |
14157 | ac_res="none required" | |
14158 | else | |
14159 | ac_res=-l$ac_lib | |
14160 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14161 | fi | |
14162 | if ac_fn_c_try_link "$LINENO"; then : | |
14163 | ac_cv_search_tgetent=$ac_res | |
14164 | fi | |
14165 | rm -f core conftest.err conftest.$ac_objext \ | |
14166 | conftest$ac_exeext | |
14167 | if ${ac_cv_search_tgetent+:} false; then : | |
14168 | break | |
14169 | fi | |
14170 | done | |
14171 | if ${ac_cv_search_tgetent+:} false; then : | |
14172 | ||
14173 | else | |
14174 | ac_cv_search_tgetent=no | |
14175 | fi | |
14176 | rm conftest.$ac_ext | |
14177 | LIBS=$ac_func_search_save_LIBS | |
14178 | fi | |
14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 | |
14180 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
14181 | ac_res=$ac_cv_search_tgetent | |
14182 | if test "$ac_res" != no; then : | |
14183 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14184 | TERMCAP_LIB=$ac_cv_search_tgetent | |
14185 | else | |
14186 | TERMCAP_LIB="" | |
14187 | fi | |
14188 | ||
14189 | if test x$sim_cv_os_cygwin = xyes; then | |
14190 | TERMCAP_LIB="${TERMCAP_LIB} -luser32" | |
14191 | fi | |
14192 | ||
14193 | ||
14194 | if test -r ../readline/Makefile; then | |
5a988617 | 14195 | READLINE_LIB=../readline/readline/libreadline.a |
5d0b3088 MF |
14196 | READLINE_CFLAGS='-I$(READLINE_SRC)/..' |
14197 | else | |
14198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 | |
14199 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
14200 | if ${ac_cv_lib_readline_readline+:} false; then : | |
14201 | $as_echo_n "(cached) " >&6 | |
14202 | else | |
14203 | ac_check_lib_save_LIBS=$LIBS | |
14204 | LIBS="-lreadline $TERMCAP_LIB $LIBS" | |
14205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14206 | /* end confdefs.h. */ | |
14207 | ||
14208 | /* Override any GCC internal prototype to avoid an error. | |
14209 | Use char because int might match the return type of a GCC | |
14210 | builtin and then its argument prototype would still apply. */ | |
14211 | #ifdef __cplusplus | |
14212 | extern "C" | |
14213 | #endif | |
14214 | char readline (); | |
14215 | int | |
14216 | main () | |
14217 | { | |
14218 | return readline (); | |
14219 | ; | |
14220 | return 0; | |
14221 | } | |
14222 | _ACEOF | |
14223 | if ac_fn_c_try_link "$LINENO"; then : | |
14224 | ac_cv_lib_readline_readline=yes | |
14225 | else | |
14226 | ac_cv_lib_readline_readline=no | |
14227 | fi | |
14228 | rm -f core conftest.err conftest.$ac_objext \ | |
14229 | conftest$ac_exeext conftest.$ac_ext | |
14230 | LIBS=$ac_check_lib_save_LIBS | |
14231 | fi | |
14232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 | |
14233 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
14234 | if test "x$ac_cv_lib_readline_readline" = xyes; then : | |
14235 | READLINE_LIB=-lreadline | |
14236 | else | |
14237 | as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5 | |
14238 | fi | |
14239 | ||
14240 | READLINE_CFLAGS= | |
14241 | fi | |
14242 | ||
14243 | ||
14244 | ||
9f046489 TO |
14245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
14246 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
14247 | if ${sim_cv_decl_getopt_unistd_h+:} false; then : | |
14248 | $as_echo_n "(cached) " >&6 | |
14249 | else | |
14250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14251 | /* end confdefs.h. */ | |
14252 | #include <unistd.h> | |
14253 | int | |
14254 | main () | |
14255 | { | |
14256 | extern int getopt (int, char *const*, const char *); | |
14257 | ; | |
14258 | return 0; | |
14259 | } | |
14260 | _ACEOF | |
14261 | if ac_fn_c_try_compile "$LINENO"; then : | |
14262 | sim_cv_decl_getopt_unistd_h=yes | |
14263 | else | |
14264 | sim_cv_decl_getopt_unistd_h=no | |
14265 | fi | |
14266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14267 | fi | |
14268 | ||
14269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5 | |
14270 | $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; } | |
14271 | if test $sim_cv_decl_getopt_unistd_h = yes; then | |
14272 | ||
14273 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h | |
14274 | ||
14275 | fi | |
14276 | ||
d57b6533 | 14277 | |
b15c5d7a | 14278 | |
72d711c1 | 14279 | |
72d711c1 MF |
14280 | ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
14281 | if test "x$ac_cv_have_decl_ffs" = xyes; then : | |
14282 | ac_have_decl=1 | |
14283 | else | |
14284 | ac_have_decl=0 | |
14285 | fi | |
14286 | ||
14287 | cat >>confdefs.h <<_ACEOF | |
14288 | #define HAVE_DECL_FFS $ac_have_decl | |
14289 | _ACEOF | |
14290 | ||
14291 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" | |
14292 | if test "x$ac_cv_have_decl_asprintf" = xyes; then : | |
14293 | ac_have_decl=1 | |
14294 | else | |
14295 | ac_have_decl=0 | |
14296 | fi | |
14297 | ||
14298 | cat >>confdefs.h <<_ACEOF | |
14299 | #define HAVE_DECL_ASPRINTF $ac_have_decl | |
14300 | _ACEOF | |
14301 | ||
14302 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" | |
14303 | if test "x$ac_cv_have_decl_vasprintf" = xyes; then : | |
14304 | ac_have_decl=1 | |
14305 | else | |
14306 | ac_have_decl=0 | |
14307 | fi | |
14308 | ||
14309 | cat >>confdefs.h <<_ACEOF | |
14310 | #define HAVE_DECL_VASPRINTF $ac_have_decl | |
14311 | _ACEOF | |
14312 | ||
14313 | ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" | |
14314 | if test "x$ac_cv_have_decl_snprintf" = xyes; then : | |
14315 | ac_have_decl=1 | |
14316 | else | |
14317 | ac_have_decl=0 | |
14318 | fi | |
14319 | ||
14320 | cat >>confdefs.h <<_ACEOF | |
14321 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
14322 | _ACEOF | |
14323 | ||
14324 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" | |
14325 | if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : | |
14326 | ac_have_decl=1 | |
14327 | else | |
14328 | ac_have_decl=0 | |
14329 | fi | |
14330 | ||
14331 | cat >>confdefs.h <<_ACEOF | |
14332 | #define HAVE_DECL_VSNPRINTF $ac_have_decl | |
14333 | _ACEOF | |
14334 | ||
14335 | ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default" | |
14336 | if test "x$ac_cv_have_decl_strtol" = xyes; then : | |
14337 | ac_have_decl=1 | |
14338 | else | |
14339 | ac_have_decl=0 | |
14340 | fi | |
14341 | ||
14342 | cat >>confdefs.h <<_ACEOF | |
14343 | #define HAVE_DECL_STRTOL $ac_have_decl | |
14344 | _ACEOF | |
14345 | ||
14346 | ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default" | |
14347 | if test "x$ac_cv_have_decl_strtoul" = xyes; then : | |
14348 | ac_have_decl=1 | |
14349 | else | |
14350 | ac_have_decl=0 | |
14351 | fi | |
14352 | ||
14353 | cat >>confdefs.h <<_ACEOF | |
14354 | #define HAVE_DECL_STRTOUL $ac_have_decl | |
14355 | _ACEOF | |
14356 | ||
14357 | ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default" | |
14358 | if test "x$ac_cv_have_decl_strtoll" = xyes; then : | |
14359 | ac_have_decl=1 | |
14360 | else | |
14361 | ac_have_decl=0 | |
14362 | fi | |
14363 | ||
14364 | cat >>confdefs.h <<_ACEOF | |
14365 | #define HAVE_DECL_STRTOLL $ac_have_decl | |
14366 | _ACEOF | |
14367 | ||
14368 | ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default" | |
14369 | if test "x$ac_cv_have_decl_strtoull" = xyes; then : | |
14370 | ac_have_decl=1 | |
14371 | else | |
14372 | ac_have_decl=0 | |
14373 | fi | |
14374 | ||
14375 | cat >>confdefs.h <<_ACEOF | |
14376 | #define HAVE_DECL_STRTOULL $ac_have_decl | |
14377 | _ACEOF | |
14378 | ||
14379 | ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" | |
14380 | if test "x$ac_cv_have_decl_strverscmp" = xyes; then : | |
14381 | ac_have_decl=1 | |
14382 | else | |
14383 | ac_have_decl=0 | |
14384 | fi | |
14385 | ||
14386 | cat >>confdefs.h <<_ACEOF | |
14387 | #define HAVE_DECL_STRVERSCMP $ac_have_decl | |
14388 | _ACEOF | |
14389 | ||
761ed61e | 14390 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" |
72d711c1 MF |
14391 | if test "x$ac_cv_type_long_long" = xyes; then : |
14392 | ||
14393 | cat >>confdefs.h <<_ACEOF | |
14394 | #define HAVE_LONG_LONG 1 | |
14395 | _ACEOF | |
14396 | ||
14397 | # The cast to long int works around a bug in the HP C Compiler | |
14398 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14399 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14400 | # This bug is HP SR number 8606223364. | |
14401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
14402 | $as_echo_n "checking size of long long... " >&6; } | |
14403 | if ${ac_cv_sizeof_long_long+:} false; then : | |
14404 | $as_echo_n "(cached) " >&6 | |
14405 | else | |
14406 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
14407 | ||
14408 | else | |
14409 | if test "$ac_cv_type_long_long" = yes; then | |
14410 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14411 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14412 | as_fn_error 77 "cannot compute sizeof (long long) | |
14413 | See \`config.log' for more details" "$LINENO" 5; } | |
14414 | else | |
14415 | ac_cv_sizeof_long_long=0 | |
14416 | fi | |
14417 | fi | |
14418 | ||
14419 | fi | |
14420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | |
14421 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
14422 | ||
14423 | ||
14424 | ||
14425 | cat >>confdefs.h <<_ACEOF | |
14426 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
14427 | _ACEOF | |
14428 | ||
14429 | ||
14430 | fi | |
14431 | ||
14432 | ||
14433 | as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh` | |
14434 | ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default" | |
14435 | if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : | |
14436 | ac_have_decl=1 | |
14437 | else | |
14438 | ac_have_decl=0 | |
14439 | fi | |
14440 | ||
14441 | cat >>confdefs.h <<_ACEOF | |
14442 | #define HAVE_DECL_BASENAME $ac_have_decl | |
14443 | _ACEOF | |
14444 | ||
14445 | ||
14446 | ||
14447 | ||
14448 | ||
14449 | ||
14450 | ||
b15c5d7a MF |
14451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14452 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14453 | # Check whether --enable-maintainer-mode was given. | |
14454 | if test "${enable_maintainer_mode+set}" = set; then : | |
14455 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
14456 | else | |
14457 | USE_MAINTAINER_MODE=no | |
14458 | fi | |
14459 | ||
14460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14461 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
14462 | if test $USE_MAINTAINER_MODE = yes; then | |
14463 | MAINTAINER_MODE_TRUE= | |
14464 | MAINTAINER_MODE_FALSE='#' | |
14465 | else | |
14466 | MAINTAINER_MODE_TRUE='#' | |
14467 | MAINTAINER_MODE_FALSE= | |
14468 | fi | |
14469 | ||
14470 | MAINT=$MAINTAINER_MODE_TRUE | |
14471 | ||
14472 | ||
14473 | am__api_version='1.15' | |
14474 | ||
14475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
14476 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
14477 | # Reject unsafe characters in $srcdir or the absolute working directory | |
14478 | # name. Accept space and tab only in the latter. | |
14479 | am_lf=' | |
14480 | ' | |
14481 | case `pwd` in | |
14482 | *[\\\"\#\$\&\'\`$am_lf]*) | |
14483 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
14484 | esac | |
14485 | case $srcdir in | |
14486 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
14487 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
14488 | esac | |
14489 | ||
14490 | # Do 'set' in a subshell so we don't clobber the current shell's | |
14491 | # arguments. Must try -L first in case configure is actually a | |
14492 | # symlink; some systems play weird games with the mod time of symlinks | |
14493 | # (eg FreeBSD returns the mod time of the symlink's containing | |
14494 | # directory). | |
14495 | if ( | |
14496 | am_has_slept=no | |
14497 | for am_try in 1 2; do | |
14498 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
14499 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
14500 | if test "$*" = "X"; then | |
14501 | # -L didn't work. | |
14502 | set X `ls -t "$srcdir/configure" conftest.file` | |
14503 | fi | |
14504 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
14505 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
14506 | ||
14507 | # If neither matched, then we have a broken ls. This can happen | |
14508 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
14509 | # broken ls alias from the environment. This has actually | |
14510 | # happened. Such a system could not be considered "sane". | |
14511 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
14512 | alias in your environment" "$LINENO" 5 | |
14513 | fi | |
14514 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
14515 | break | |
14516 | fi | |
14517 | # Just in case. | |
14518 | sleep 1 | |
14519 | am_has_slept=yes | |
14520 | done | |
14521 | test "$2" = conftest.file | |
14522 | ) | |
14523 | then | |
14524 | # Ok. | |
14525 | : | |
14526 | else | |
14527 | as_fn_error $? "newly created file is older than distributed files! | |
14528 | Check your system clock" "$LINENO" 5 | |
14529 | fi | |
14530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14531 | $as_echo "yes" >&6; } | |
14532 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
14533 | # generated files are strictly newer. | |
14534 | am_sleep_pid= | |
14535 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
14536 | ( sleep 1 ) & | |
14537 | am_sleep_pid=$! | |
14538 | fi | |
14539 | ||
14540 | rm -f conftest.file | |
14541 | ||
14542 | if test x"${MISSING+set}" != xset; then | |
14543 | case $am_aux_dir in | |
14544 | *\ * | *\ *) | |
14545 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
14546 | *) | |
14547 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
14548 | esac | |
14549 | fi | |
14550 | # Use eval to expand $SHELL | |
14551 | if eval "$MISSING --is-lightweight"; then | |
14552 | am_missing_run="$MISSING " | |
c2783492 MF |
14553 | else |
14554 | am_missing_run= | |
14555 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
14556 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
14557 | fi | |
14558 | ||
14559 | if test x"${install_sh+set}" != xset; then | |
14560 | case $am_aux_dir in | |
14561 | *\ * | *\ *) | |
14562 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
14563 | *) | |
14564 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
14565 | esac | |
14566 | fi | |
14567 | ||
14568 | # Installed binaries are usually stripped using 'strip' when the user | |
14569 | # run "make install-strip". However 'strip' might not be the right | |
14570 | # tool to use in cross-compilation environments, therefore Automake | |
14571 | # will honor the 'STRIP' environment variable to overrule this program. | |
14572 | if test "$cross_compiling" != no; then | |
14573 | if test -n "$ac_tool_prefix"; then | |
14574 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
14575 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
14576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14577 | $as_echo_n "checking for $ac_word... " >&6; } | |
14578 | if ${ac_cv_prog_STRIP+:} false; then : | |
14579 | $as_echo_n "(cached) " >&6 | |
14580 | else | |
14581 | if test -n "$STRIP"; then | |
14582 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
14583 | else | |
14584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14585 | for as_dir in $PATH | |
14586 | do | |
14587 | IFS=$as_save_IFS | |
14588 | test -z "$as_dir" && as_dir=. | |
14589 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14590 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14591 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
14592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14593 | break 2 | |
81ecdfbb | 14594 | fi |
81ecdfbb | 14595 | done |
c2783492 MF |
14596 | done |
14597 | IFS=$as_save_IFS | |
b7026657 | 14598 | |
c906108c | 14599 | fi |
b7026657 | 14600 | fi |
c2783492 MF |
14601 | STRIP=$ac_cv_prog_STRIP |
14602 | if test -n "$STRIP"; then | |
14603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
14604 | $as_echo "$STRIP" >&6; } | |
81ecdfbb | 14605 | else |
c2783492 MF |
14606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14607 | $as_echo "no" >&6; } | |
81ecdfbb | 14608 | fi |
b7026657 | 14609 | |
b7026657 | 14610 | |
c2783492 MF |
14611 | fi |
14612 | if test -z "$ac_cv_prog_STRIP"; then | |
14613 | ac_ct_STRIP=$STRIP | |
14614 | # Extract the first word of "strip", so it can be a program name with args. | |
14615 | set dummy strip; ac_word=$2 | |
14616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14617 | $as_echo_n "checking for $ac_word... " >&6; } | |
14618 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
14619 | $as_echo_n "(cached) " >&6 | |
c906108c | 14620 | else |
c2783492 MF |
14621 | if test -n "$ac_ct_STRIP"; then |
14622 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
81ecdfbb | 14623 | else |
c2783492 MF |
14624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14625 | for as_dir in $PATH | |
14626 | do | |
14627 | IFS=$as_save_IFS | |
14628 | test -z "$as_dir" && as_dir=. | |
14629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14630 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14631 | ac_cv_prog_ac_ct_STRIP="strip" | |
14632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14633 | break 2 | |
14634 | fi | |
14635 | done | |
14636 | done | |
14637 | IFS=$as_save_IFS | |
81ecdfbb | 14638 | |
81ecdfbb | 14639 | fi |
df1756f4 | 14640 | fi |
c2783492 MF |
14641 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
14642 | if test -n "$ac_ct_STRIP"; then | |
14643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
14644 | $as_echo "$ac_ct_STRIP" >&6; } | |
14645 | else | |
14646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14647 | $as_echo "no" >&6; } | |
b7026657 | 14648 | fi |
c2783492 MF |
14649 | |
14650 | if test "x$ac_ct_STRIP" = x; then | |
14651 | STRIP=":" | |
c906108c | 14652 | else |
c2783492 MF |
14653 | case $cross_compiling:$ac_tool_warned in |
14654 | yes:) | |
14655 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
14656 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
14657 | ac_tool_warned=yes ;; | |
14658 | esac | |
14659 | STRIP=$ac_ct_STRIP | |
c906108c SS |
14660 | fi |
14661 | else | |
c2783492 | 14662 | STRIP="$ac_cv_prog_STRIP" |
c906108c | 14663 | fi |
81ecdfbb | 14664 | |
b7026657 | 14665 | fi |
c2783492 | 14666 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
b7026657 | 14667 | |
c2783492 MF |
14668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
14669 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
14670 | if test -z "$MKDIR_P"; then | |
14671 | if ${ac_cv_path_mkdir+:} false; then : | |
14672 | $as_echo_n "(cached) " >&6 | |
14673 | else | |
14674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14675 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
14676 | do | |
14677 | IFS=$as_save_IFS | |
14678 | test -z "$as_dir" && as_dir=. | |
14679 | for ac_prog in mkdir gmkdir; do | |
14680 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14681 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
14682 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
14683 | 'mkdir (GNU coreutils) '* | \ | |
14684 | 'mkdir (coreutils) '* | \ | |
14685 | 'mkdir (fileutils) '4.1*) | |
14686 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
14687 | break 3;; | |
14688 | esac | |
14689 | done | |
14690 | done | |
14691 | done | |
14692 | IFS=$as_save_IFS | |
b7026657 | 14693 | |
fdd6fa61 AG |
14694 | fi |
14695 | ||
c2783492 MF |
14696 | test -d ./--version && rmdir ./--version |
14697 | if test "${ac_cv_path_mkdir+set}" = set; then | |
14698 | MKDIR_P="$ac_cv_path_mkdir -p" | |
b5689863 MF |
14699 | else |
14700 | # As a last resort, use the slow shell script. Don't cache a | |
14701 | # value for MKDIR_P within a source directory, because that will | |
14702 | # break other packages using the cache if that directory is | |
14703 | # removed, or if the value is a relative name. | |
14704 | MKDIR_P="$ac_install_sh -d" | |
14705 | fi | |
c2783492 | 14706 | fi |
b5689863 MF |
14707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
14708 | $as_echo "$MKDIR_P" >&6; } | |
6bddc3e8 | 14709 | |
c2783492 MF |
14710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
14711 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
14712 | set x ${MAKE-make} | |
14713 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
14714 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
6bddc3e8 MF |
14715 | $as_echo_n "(cached) " >&6 |
14716 | else | |
c2783492 MF |
14717 | cat >conftest.make <<\_ACEOF |
14718 | SHELL = /bin/sh | |
14719 | all: | |
14720 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
14721 | _ACEOF | |
14722 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
14723 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
14724 | *@@@%%%=?*=@@@%%%*) | |
14725 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
14726 | *) | |
14727 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
14728 | esac | |
14729 | rm -f conftest.make | |
14730 | fi | |
14731 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
14732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14733 | $as_echo "yes" >&6; } | |
14734 | SET_MAKE= | |
14735 | else | |
14736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14737 | $as_echo "no" >&6; } | |
14738 | SET_MAKE="MAKE=${MAKE-make}" | |
14739 | fi | |
6bddc3e8 | 14740 | |
c2783492 MF |
14741 | rm -rf .tst 2>/dev/null |
14742 | mkdir .tst 2>/dev/null | |
14743 | if test -d .tst; then | |
14744 | am__leading_dot=. | |
14745 | else | |
14746 | am__leading_dot=_ | |
14747 | fi | |
14748 | rmdir .tst 2>/dev/null | |
6bddc3e8 | 14749 | |
c2783492 | 14750 | DEPDIR="${am__leading_dot}deps" |
6bddc3e8 | 14751 | |
c2783492 | 14752 | ac_config_commands="$ac_config_commands depfiles" |
6bddc3e8 | 14753 | |
c2783492 MF |
14754 | |
14755 | am_make=${MAKE-make} | |
14756 | cat > confinc << 'END' | |
14757 | am__doit: | |
14758 | @echo this is the am__doit target | |
14759 | .PHONY: am__doit | |
14760 | END | |
14761 | # If we don't find an include directive, just comment out the code. | |
14762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
14763 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
14764 | am__include="#" | |
14765 | am__quote= | |
14766 | _am_result=none | |
14767 | # First try GNU make style include. | |
14768 | echo "include confinc" > confmf | |
14769 | # Ignore all kinds of additional output from 'make'. | |
14770 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
14771 | *the\ am__doit\ target*) | |
14772 | am__include=include | |
14773 | am__quote= | |
14774 | _am_result=GNU | |
14775 | ;; | |
14776 | esac | |
14777 | # Now try BSD make style include. | |
14778 | if test "$am__include" = "#"; then | |
14779 | echo '.include "confinc"' > confmf | |
14780 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
14781 | *the\ am__doit\ target*) | |
14782 | am__include=.include | |
14783 | am__quote="\"" | |
14784 | _am_result=BSD | |
14785 | ;; | |
14786 | esac | |
6bddc3e8 MF |
14787 | fi |
14788 | ||
c2783492 MF |
14789 | |
14790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
14791 | $as_echo "$_am_result" >&6; } | |
14792 | rm -f confinc confmf | |
14793 | ||
14794 | # Check whether --enable-dependency-tracking was given. | |
14795 | if test "${enable_dependency_tracking+set}" = set; then : | |
14796 | enableval=$enable_dependency_tracking; | |
6bddc3e8 | 14797 | fi |
6bddc3e8 | 14798 | |
c2783492 MF |
14799 | if test "x$enable_dependency_tracking" != xno; then |
14800 | am_depcomp="$ac_aux_dir/depcomp" | |
14801 | AMDEPBACKSLASH='\' | |
14802 | am__nodep='_no' | |
14803 | fi | |
14804 | if test "x$enable_dependency_tracking" != xno; then | |
14805 | AMDEP_TRUE= | |
14806 | AMDEP_FALSE='#' | |
6bddc3e8 | 14807 | else |
c2783492 MF |
14808 | AMDEP_TRUE='#' |
14809 | AMDEP_FALSE= | |
6bddc3e8 MF |
14810 | fi |
14811 | ||
14812 | ||
c2783492 MF |
14813 | # Check whether --enable-silent-rules was given. |
14814 | if test "${enable_silent_rules+set}" = set; then : | |
14815 | enableval=$enable_silent_rules; | |
5e25901f | 14816 | fi |
c2783492 MF |
14817 | |
14818 | case $enable_silent_rules in # ((( | |
14819 | yes) AM_DEFAULT_VERBOSITY=0;; | |
14820 | no) AM_DEFAULT_VERBOSITY=1;; | |
14821 | *) AM_DEFAULT_VERBOSITY=1;; | |
14822 | esac | |
14823 | am_make=${MAKE-make} | |
14824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
14825 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
14826 | if ${am_cv_make_support_nested_variables+:} false; then : | |
5e25901f MF |
14827 | $as_echo_n "(cached) " >&6 |
14828 | else | |
c2783492 MF |
14829 | if $as_echo 'TRUE=$(BAR$(V)) |
14830 | BAR0=false | |
14831 | BAR1=true | |
14832 | V=1 | |
14833 | am__doit: | |
14834 | @$(TRUE) | |
14835 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
14836 | am_cv_make_support_nested_variables=yes | |
5e25901f | 14837 | else |
c2783492 | 14838 | am_cv_make_support_nested_variables=no |
5e25901f | 14839 | fi |
c2783492 MF |
14840 | fi |
14841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
14842 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
14843 | if test $am_cv_make_support_nested_variables = yes; then | |
14844 | AM_V='$(V)' | |
14845 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
5e25901f | 14846 | else |
c2783492 MF |
14847 | AM_V=$AM_DEFAULT_VERBOSITY |
14848 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
5e25901f | 14849 | fi |
c2783492 | 14850 | AM_BACKSLASH='\' |
5e25901f | 14851 | |
c2783492 MF |
14852 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
14853 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
14854 | # is not polluted with repeated "-I." | |
14855 | am__isrc=' -I$(srcdir)' | |
14856 | # test to see if srcdir already configured | |
14857 | if test -f $srcdir/config.status; then | |
14858 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
14859 | fi | |
5e25901f MF |
14860 | fi |
14861 | ||
c2783492 MF |
14862 | # test whether we have cygpath |
14863 | if test -z "$CYGPATH_W"; then | |
14864 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
14865 | CYGPATH_W='cygpath -w' | |
14866 | else | |
14867 | CYGPATH_W=echo | |
14868 | fi | |
5e25901f | 14869 | fi |
c2783492 MF |
14870 | |
14871 | ||
14872 | # Define the identity of the package. | |
14873 | PACKAGE='sim' | |
14874 | VERSION='0' | |
14875 | ||
14876 | ||
14877 | cat >>confdefs.h <<_ACEOF | |
14878 | #define PACKAGE "$PACKAGE" | |
5e25901f | 14879 | _ACEOF |
5e25901f | 14880 | |
5e25901f | 14881 | |
c2783492 MF |
14882 | cat >>confdefs.h <<_ACEOF |
14883 | #define VERSION "$VERSION" | |
5e25901f | 14884 | _ACEOF |
5e25901f | 14885 | |
c2783492 | 14886 | # Some tools Automake needs. |
5e25901f | 14887 | |
c2783492 MF |
14888 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
14889 | ||
14890 | ||
14891 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
14892 | ||
14893 | ||
14894 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
14895 | ||
14896 | ||
14897 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
14898 | ||
14899 | ||
14900 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
14901 | ||
14902 | # For better backward compatibility. To be removed once Automake 1.9.x | |
14903 | # dies out for good. For more background, see: | |
14904 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
14905 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
14906 | mkdir_p='$(MKDIR_P)' | |
14907 | ||
14908 | # We need awk for the "check" target (and possibly the TAP driver). The | |
14909 | # system "awk" is bad on some platforms. | |
14910 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
14911 | # in the wild :-( We should find a proper way to deprecate it ... | |
14912 | AMTAR='$${TAR-tar}' | |
14913 | ||
14914 | ||
14915 | # We'll loop over all known methods to create a tar archive until one works. | |
14916 | _am_tools='gnutar pax cpio none' | |
14917 | ||
14918 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
5e25901f | 14919 | |
5e25901f | 14920 | |
c906108c | 14921 | |
c906108c | 14922 | |
c2783492 MF |
14923 | |
14924 | depcc="$CC" am_compiler_list= | |
14925 | ||
14926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
14927 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
14928 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
81ecdfbb | 14929 | $as_echo_n "(cached) " >&6 |
c906108c | 14930 | else |
c2783492 MF |
14931 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
14932 | # We make a subdir and do the tests there. Otherwise we can end up | |
14933 | # making bogus files that we don't know about and never remove. For | |
14934 | # instance it was reported that on HP-UX the gcc test will end up | |
14935 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
14936 | # in D". | |
14937 | rm -rf conftest.dir | |
14938 | mkdir conftest.dir | |
14939 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
14940 | # using a relative directory. | |
14941 | cp "$am_depcomp" conftest.dir | |
14942 | cd conftest.dir | |
14943 | # We will build objects and dependencies in a subdirectory because | |
14944 | # it helps to detect inapplicable dependency modes. For instance | |
14945 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
14946 | # side effect of compilation, but ICC will put the dependencies in | |
14947 | # the current directory while Tru64 will put them in the object | |
14948 | # directory. | |
14949 | mkdir sub | |
14950 | ||
14951 | am_cv_CC_dependencies_compiler_type=none | |
14952 | if test "$am_compiler_list" = ""; then | |
14953 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
b7026657 | 14954 | fi |
c2783492 MF |
14955 | am__universal=false |
14956 | case " $depcc " in #( | |
14957 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
14958 | esac | |
14959 | ||
14960 | for depmode in $am_compiler_list; do | |
14961 | # Setup a source with many dependencies, because some compilers | |
14962 | # like to wrap large dependency lists on column 80 (with \), and | |
14963 | # we should not choose a depcomp mode which is confused by this. | |
14964 | # | |
14965 | # We need to recreate these files for each test, as the compiler may | |
14966 | # overwrite some of them when testing with obscure command lines. | |
14967 | # This happens at least with the AIX C compiler. | |
14968 | : > sub/conftest.c | |
14969 | for i in 1 2 3 4 5 6; do | |
14970 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
14971 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
14972 | # Solaris 10 /bin/sh. | |
14973 | echo '/* dummy */' > sub/conftst$i.h | |
14974 | done | |
14975 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
14976 | ||
14977 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
14978 | # mode. It turns out that the SunPro C++ compiler does not properly | |
14979 | # handle '-M -o', and we need to detect this. Also, some Intel | |
14980 | # versions had trouble with output in subdirs. | |
14981 | am__obj=sub/conftest.${OBJEXT-o} | |
14982 | am__minus_obj="-o $am__obj" | |
14983 | case $depmode in | |
14984 | gcc) | |
14985 | # This depmode causes a compiler race in universal mode. | |
14986 | test "$am__universal" = false || continue | |
14987 | ;; | |
14988 | nosideeffect) | |
14989 | # After this tag, mechanisms are not by side-effect, so they'll | |
14990 | # only be used when explicitly requested. | |
14991 | if test "x$enable_dependency_tracking" = xyes; then | |
14992 | continue | |
14993 | else | |
14994 | break | |
14995 | fi | |
14996 | ;; | |
14997 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
14998 | # This compiler won't grok '-c -o', but also, the minuso test has | |
14999 | # not run yet. These depmodes are late enough in the game, and | |
15000 | # so weak that their functioning should not be impacted. | |
15001 | am__obj=conftest.${OBJEXT-o} | |
15002 | am__minus_obj= | |
15003 | ;; | |
15004 | none) break ;; | |
15005 | esac | |
15006 | if depmode=$depmode \ | |
15007 | source=sub/conftest.c object=$am__obj \ | |
15008 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
15009 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
15010 | >/dev/null 2>conftest.err && | |
15011 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
15012 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
15013 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
15014 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
15015 | # icc doesn't choke on unknown options, it will just issue warnings | |
15016 | # or remarks (even with -Werror). So we grep stderr for any message | |
15017 | # that says an option was ignored or not supported. | |
15018 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
15019 | # icc: Command line warning: ignoring option '-M'; no argument required | |
15020 | # The diagnosis changed in icc 8.0: | |
15021 | # icc: Command line remark: option '-MP' not supported | |
15022 | if (grep 'ignoring option' conftest.err || | |
15023 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
15024 | am_cv_CC_dependencies_compiler_type=$depmode | |
15025 | break | |
15026 | fi | |
15027 | fi | |
81ecdfbb | 15028 | done |
b7026657 | 15029 | |
c2783492 MF |
15030 | cd .. |
15031 | rm -rf conftest.dir | |
b7026657 | 15032 | else |
c2783492 | 15033 | am_cv_CC_dependencies_compiler_type=none |
b7026657 AC |
15034 | fi |
15035 | ||
15036 | fi | |
c2783492 MF |
15037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
15038 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
15039 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
b7026657 | 15040 | |
c2783492 MF |
15041 | if |
15042 | test "x$enable_dependency_tracking" != xno \ | |
15043 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
15044 | am__fastdepCC_TRUE= | |
15045 | am__fastdepCC_FALSE='#' | |
c906108c | 15046 | else |
c2783492 MF |
15047 | am__fastdepCC_TRUE='#' |
15048 | am__fastdepCC_FALSE= | |
b7026657 AC |
15049 | fi |
15050 | ||
c906108c SS |
15051 | |
15052 | ||
c2783492 MF |
15053 | # POSIX will say in a future version that running "rm -f" with no argument |
15054 | # is OK; and we want to be able to make that assumption in our Makefile | |
15055 | # recipes. So use an aggressive probe to check that the usage we want is | |
15056 | # actually supported "in the wild" to an acceptable degree. | |
15057 | # See automake bug#10828. | |
15058 | # To make any issue more visible, cause the running configure to be aborted | |
15059 | # by default if the 'rm' program in use doesn't match our expectations; the | |
15060 | # user can still override this though. | |
15061 | if rm -f && rm -fr && rm -rf; then : OK; else | |
15062 | cat >&2 <<'END' | |
15063 | Oops! | |
15064 | ||
15065 | Your 'rm' program seems unable to run without file operands specified | |
15066 | on the command line, even when the '-f' option is present. This is contrary | |
15067 | to the behaviour of most rm programs out there, and not conforming with | |
15068 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
15069 | ||
15070 | Please tell bug-automake@gnu.org about your system, including the value | |
15071 | of your $PATH and any error possibly output before this message. This | |
15072 | can help us improve future automake versions. | |
15073 | ||
15074 | END | |
15075 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
15076 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
15077 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
15078 | echo >&2 | |
5c887dd5 | 15079 | else |
c2783492 MF |
15080 | cat >&2 <<'END' |
15081 | Aborting the configuration process, to ensure you take notice of the issue. | |
15082 | ||
15083 | You can download and install GNU coreutils to get an 'rm' implementation | |
15084 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
15085 | ||
15086 | If you want to complete the configuration process using your problematic | |
15087 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
15088 | to "yes", and re-run configure. | |
15089 | ||
15090 | END | |
15091 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
5c887dd5 | 15092 | fi |
c906108c SS |
15093 | fi |
15094 | ||
fbe8d1cf MF |
15095 | # Check whether --enable-silent-rules was given. |
15096 | if test "${enable_silent_rules+set}" = set; then : | |
15097 | enableval=$enable_silent_rules; | |
15098 | fi | |
15099 | ||
15100 | case $enable_silent_rules in # ((( | |
15101 | yes) AM_DEFAULT_VERBOSITY=0;; | |
15102 | no) AM_DEFAULT_VERBOSITY=1;; | |
15103 | *) AM_DEFAULT_VERBOSITY=0;; | |
15104 | esac | |
15105 | am_make=${MAKE-make} | |
15106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
15107 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
15108 | if ${am_cv_make_support_nested_variables+:} false; then : | |
15109 | $as_echo_n "(cached) " >&6 | |
15110 | else | |
15111 | if $as_echo 'TRUE=$(BAR$(V)) | |
15112 | BAR0=false | |
15113 | BAR1=true | |
15114 | V=1 | |
15115 | am__doit: | |
15116 | @$(TRUE) | |
15117 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
15118 | am_cv_make_support_nested_variables=yes | |
15119 | else | |
15120 | am_cv_make_support_nested_variables=no | |
15121 | fi | |
15122 | fi | |
15123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
15124 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
15125 | if test $am_cv_make_support_nested_variables = yes; then | |
15126 | AM_V='$(V)' | |
15127 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
15128 | else | |
15129 | AM_V=$AM_DEFAULT_VERBOSITY | |
15130 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
15131 | fi | |
15132 | AM_BACKSLASH='\' | |
15133 | ||
c906108c SS |
15134 | |
15135 | # If a cpu ever has more than one simulator to choose from, use | |
15136 | # --enable-sim=... to choose. | |
81ecdfbb RW |
15137 | # Check whether --enable-sim was given. |
15138 | if test "${enable_sim+set}" = set; then : | |
15139 | enableval=$enable_sim; case "${enableval}" in | |
c906108c | 15140 | yes | no) ;; |
d0ac1c44 | 15141 | *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;; |
c906108c | 15142 | esac |
81ecdfbb RW |
15143 | fi |
15144 | ||
c906108c | 15145 | |
26da232c MF |
15146 | # Check whether --enable-example-sims was given. |
15147 | if test "${enable_example_sims+set}" = set; then : | |
15148 | enableval=$enable_example_sims; | |
15149 | fi | |
15150 | ||
15151 | ||
a0e674c1 MF |
15152 | # Check whether --enable-targets was given. |
15153 | if test "${enable_targets+set}" = set; then : | |
15154 | enableval=$enable_targets; case "${enableval}" in | |
15155 | yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
15156 | ;; | |
15157 | no) enable_targets= ;; | |
15158 | *) enable_targets=$enableval ;; | |
15159 | esac | |
15160 | fi | |
15161 | ||
15162 | ||
15163 | SIM_PRIMARY_TARGET= | |
15164 | ||
15165 | ||
2ba09f42 MF |
15166 | SIM_ENABLED_ARCHES= |
15167 | ||
15168 | ||
7c9a934c | 15169 | ENABLE_SIM=no |
a0e674c1 MF |
15170 | |
15171 | ||
bc56166f | 15172 | |
119da465 | 15173 | if test "${enable_sim}" != no; then |
a0e674c1 MF |
15174 | for targ in `echo $target $enable_targets | sed 's/,/ /g'` |
15175 | do | |
65dcce8f MF |
15176 | sim_enable_arch_aarch64=false |
15177 | case "${targ}" in | |
a0e674c1 MF |
15178 | all|aarch64*-*-*) |
15179 | if test "${targ}" = "${target}"; then | |
15180 | SIM_PRIMARY_TARGET=aarch64 | |
15181 | fi | |
7c9a934c MF |
15182 | ENABLE_SIM=yes |
15183 | as_fn_append SIM_ENABLED_ARCHES " aarch64" | |
23912acd MF |
15184 | ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in" |
15185 | ||
bc56166f | 15186 | |
65dcce8f | 15187 | sim_enable_arch_aarch64=true |
3e8bb3e9 | 15188 | ;; |
a0e674c1 | 15189 | esac |
dc4e1fde HPN |
15190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
15191 | $as_echo_n "checking where to find the target cc... " >&6; } | |
15192 | if test "x${build}" != "x${host}" ; then | |
15193 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then | |
15194 | # We already found the complete path | |
15195 | ac_dir=`dirname $CC_FOR_TARGET` | |
15196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15197 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15198 | else | |
15199 | # Canadian cross, just use what we found | |
15200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15201 | $as_echo "pre-installed" >&6; } | |
15202 | fi | |
15203 | else | |
15204 | ok=yes | |
15205 | case " ${configdirs} " in | |
15206 | *" ${target_alias}-gcc "*) ;; | |
15207 | *) ok=no ;; | |
15208 | esac | |
15209 | ||
15210 | if test $ok = yes; then | |
15211 | # An in-tree tool is available and we can use it | |
15212 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc' | |
15213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
15214 | $as_echo "just compiled" >&6; } | |
15215 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then | |
15216 | # We already found the complete path | |
15217 | ac_dir=`dirname $CC_FOR_TARGET` | |
15218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15219 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15220 | elif test "x$target" = "x$host"; then | |
15221 | # We can use an host tool | |
15222 | CC_FOR_TARGET='$(CC)' | |
15223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15224 | $as_echo "host tool" >&6; } | |
15225 | else | |
15226 | # We need a cross tool | |
15227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15228 | $as_echo "pre-installed" >&6; } | |
15229 | fi | |
15230 | fi | |
15231 | ||
15232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 | |
15233 | $as_echo_n "checking where to find the target as... " >&6; } | |
15234 | if test "x${build}" != "x${host}" ; then | |
15235 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then | |
15236 | # We already found the complete path | |
15237 | ac_dir=`dirname $AS_FOR_TARGET` | |
15238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15239 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15240 | else | |
15241 | # Canadian cross, just use what we found | |
15242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15243 | $as_echo "pre-installed" >&6; } | |
15244 | fi | |
15245 | else | |
15246 | ok=yes | |
15247 | case " ${configdirs} " in | |
15248 | *" \$(abs_builddir) "*) ;; | |
15249 | *) ok=no ;; | |
15250 | esac | |
15251 | ||
15252 | if test $ok = yes; then | |
15253 | # An in-tree tool is available and we can use it | |
15254 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new' | |
15255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
15256 | $as_echo "just compiled" >&6; } | |
15257 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then | |
15258 | # We already found the complete path | |
15259 | ac_dir=`dirname $AS_FOR_TARGET` | |
15260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15261 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15262 | elif test "x$target" = "x$host"; then | |
15263 | # We can use an host tool | |
15264 | AS_FOR_TARGET='$(AS)' | |
15265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15266 | $as_echo "host tool" >&6; } | |
15267 | else | |
15268 | # We need a cross tool | |
15269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15270 | $as_echo "pre-installed" >&6; } | |
15271 | fi | |
15272 | fi | |
15273 | ||
15274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 | |
15275 | $as_echo_n "checking where to find the target ld... " >&6; } | |
15276 | if test "x${build}" != "x${host}" ; then | |
15277 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then | |
15278 | # We already found the complete path | |
15279 | ac_dir=`dirname $LD_FOR_TARGET` | |
15280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15281 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15282 | else | |
15283 | # Canadian cross, just use what we found | |
15284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15285 | $as_echo "pre-installed" >&6; } | |
15286 | fi | |
15287 | else | |
15288 | ok=yes | |
15289 | case " ${configdirs} " in | |
15290 | *" \$(abs_builddir) "*) ;; | |
15291 | *) ok=no ;; | |
15292 | esac | |
15293 | ||
15294 | if test $ok = yes; then | |
15295 | # An in-tree tool is available and we can use it | |
15296 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new' | |
15297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
15298 | $as_echo "just compiled" >&6; } | |
15299 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then | |
15300 | # We already found the complete path | |
15301 | ac_dir=`dirname $LD_FOR_TARGET` | |
15302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15303 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15304 | elif test "x$target" = "x$host"; then | |
15305 | # We can use an host tool | |
15306 | LD_FOR_TARGET='$(LD)' | |
15307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15308 | $as_echo "host tool" >&6; } | |
15309 | else | |
15310 | # We need a cross tool | |
15311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15312 | $as_echo "pre-installed" >&6; } | |
15313 | fi | |
15314 | fi | |
15315 | ||
15316 | ||
15317 | ||
8996c210 MF |
15318 | |
15319 | ||
15320 | ||
15321 | if test "$SIM_PRIMARY_TARGET" = "aarch64"; then : | |
dc4e1fde HPN |
15322 | : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}" |
15323 | : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}" | |
15324 | : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15325 | |
15326 | fi | |
15327 | ||
15328 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64" | |
15329 | ||
65dcce8f MF |
15330 | if ${sim_enable_arch_aarch64}; then |
15331 | SIM_ENABLE_ARCH_aarch64_TRUE= | |
15332 | SIM_ENABLE_ARCH_aarch64_FALSE='#' | |
15333 | else | |
15334 | SIM_ENABLE_ARCH_aarch64_TRUE='#' | |
15335 | SIM_ENABLE_ARCH_aarch64_FALSE= | |
15336 | fi | |
15337 | ||
586cfe1a | 15338 | sim_enable_arch_avr=false |
65dcce8f | 15339 | case "${targ}" in |
a0e674c1 MF |
15340 | all|avr*-*-*) |
15341 | if test "${targ}" = "${target}"; then | |
15342 | SIM_PRIMARY_TARGET=avr | |
15343 | fi | |
7c9a934c MF |
15344 | ENABLE_SIM=yes |
15345 | as_fn_append SIM_ENABLED_ARCHES " avr" | |
23912acd MF |
15346 | ac_config_files="$ac_config_files avr/.gdbinit:common/gdbinit.in" |
15347 | ||
0cd79707 | 15348 | |
65dcce8f | 15349 | sim_enable_arch_avr=true |
3e8bb3e9 | 15350 | ;; |
a0e674c1 | 15351 | esac |
8996c210 MF |
15352 | |
15353 | ||
15354 | ||
dc4e1fde | 15355 | |
8996c210 | 15356 | if test "$SIM_PRIMARY_TARGET" = "avr"; then : |
dc4e1fde HPN |
15357 | : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}" |
15358 | : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}" | |
15359 | : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15360 | |
15361 | fi | |
15362 | ||
15363 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR" | |
15364 | ||
65dcce8f MF |
15365 | if ${sim_enable_arch_avr}; then |
15366 | SIM_ENABLE_ARCH_avr_TRUE= | |
15367 | SIM_ENABLE_ARCH_avr_FALSE='#' | |
15368 | else | |
15369 | SIM_ENABLE_ARCH_avr_TRUE='#' | |
15370 | SIM_ENABLE_ARCH_avr_FALSE= | |
15371 | fi | |
a0e674c1 | 15372 | |
586cfe1a | 15373 | sim_enable_arch_bfin=false |
65dcce8f | 15374 | case "${targ}" in |
a0e674c1 MF |
15375 | all|bfin-*-*) |
15376 | if test "${targ}" = "${target}"; then | |
15377 | SIM_PRIMARY_TARGET=bfin | |
15378 | fi | |
7c9a934c MF |
15379 | ENABLE_SIM=yes |
15380 | as_fn_append SIM_ENABLED_ARCHES " bfin" | |
23912acd MF |
15381 | ac_config_files="$ac_config_files bfin/.gdbinit:common/gdbinit.in" |
15382 | ||
ddd44b70 | 15383 | |
65dcce8f | 15384 | sim_enable_arch_bfin=true |
3e8bb3e9 | 15385 | ;; |
a0e674c1 | 15386 | esac |
8996c210 MF |
15387 | |
15388 | ||
15389 | ||
dc4e1fde | 15390 | |
8996c210 | 15391 | if test "$SIM_PRIMARY_TARGET" = "bfin"; then : |
dc4e1fde HPN |
15392 | : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}" |
15393 | : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}" | |
15394 | : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15395 | |
15396 | fi | |
15397 | ||
15398 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN" | |
15399 | ||
65dcce8f MF |
15400 | if ${sim_enable_arch_bfin}; then |
15401 | SIM_ENABLE_ARCH_bfin_TRUE= | |
15402 | SIM_ENABLE_ARCH_bfin_FALSE='#' | |
15403 | else | |
15404 | SIM_ENABLE_ARCH_bfin_TRUE='#' | |
15405 | SIM_ENABLE_ARCH_bfin_FALSE= | |
15406 | fi | |
15407 | ||
586cfe1a | 15408 | sim_enable_arch_bpf=false |
65dcce8f | 15409 | case "${targ}" in |
a0e674c1 MF |
15410 | all|bpf-*-*) |
15411 | if test "${targ}" = "${target}"; then | |
15412 | SIM_PRIMARY_TARGET=bpf | |
15413 | fi | |
7c9a934c MF |
15414 | ENABLE_SIM=yes |
15415 | as_fn_append SIM_ENABLED_ARCHES " bpf" | |
23912acd MF |
15416 | ac_config_files="$ac_config_files bpf/.gdbinit:common/gdbinit.in" |
15417 | ||
ddd44b70 | 15418 | |
65dcce8f | 15419 | sim_enable_arch_bpf=true |
3e8bb3e9 | 15420 | ;; |
a0e674c1 | 15421 | esac |
8996c210 MF |
15422 | |
15423 | ||
15424 | ||
dc4e1fde | 15425 | |
8996c210 | 15426 | if test "$SIM_PRIMARY_TARGET" = "bpf"; then : |
dc4e1fde HPN |
15427 | : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}" |
15428 | : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}" | |
15429 | : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15430 | |
15431 | fi | |
15432 | ||
15433 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF" | |
15434 | ||
65dcce8f MF |
15435 | if ${sim_enable_arch_bpf}; then |
15436 | SIM_ENABLE_ARCH_bpf_TRUE= | |
15437 | SIM_ENABLE_ARCH_bpf_FALSE='#' | |
15438 | else | |
15439 | SIM_ENABLE_ARCH_bpf_TRUE='#' | |
15440 | SIM_ENABLE_ARCH_bpf_FALSE= | |
15441 | fi | |
15442 | ||
586cfe1a | 15443 | sim_enable_arch_cr16=false |
65dcce8f | 15444 | case "${targ}" in |
a0e674c1 MF |
15445 | all|cr16*-*-*) |
15446 | if test "${targ}" = "${target}"; then | |
15447 | SIM_PRIMARY_TARGET=cr16 | |
15448 | fi | |
7c9a934c MF |
15449 | ENABLE_SIM=yes |
15450 | as_fn_append SIM_ENABLED_ARCHES " cr16" | |
23912acd MF |
15451 | ac_config_files="$ac_config_files cr16/.gdbinit:common/gdbinit.in" |
15452 | ||
ddd44b70 | 15453 | |
65dcce8f | 15454 | sim_enable_arch_cr16=true |
3e8bb3e9 | 15455 | ;; |
a0e674c1 | 15456 | esac |
8996c210 MF |
15457 | |
15458 | ||
15459 | ||
dc4e1fde | 15460 | |
8996c210 | 15461 | if test "$SIM_PRIMARY_TARGET" = "cr16"; then : |
dc4e1fde HPN |
15462 | : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}" |
15463 | : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}" | |
15464 | : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15465 | |
15466 | fi | |
15467 | ||
15468 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16" | |
15469 | ||
65dcce8f MF |
15470 | if ${sim_enable_arch_cr16}; then |
15471 | SIM_ENABLE_ARCH_cr16_TRUE= | |
15472 | SIM_ENABLE_ARCH_cr16_FALSE='#' | |
15473 | else | |
15474 | SIM_ENABLE_ARCH_cr16_TRUE='#' | |
15475 | SIM_ENABLE_ARCH_cr16_FALSE= | |
15476 | fi | |
15477 | ||
586cfe1a | 15478 | sim_enable_arch_cris=false |
65dcce8f | 15479 | case "${targ}" in |
a0e674c1 MF |
15480 | all|cris-*-* | crisv32-*-*) |
15481 | if test "${targ}" = "${target}"; then | |
15482 | SIM_PRIMARY_TARGET=cris | |
15483 | fi | |
7c9a934c MF |
15484 | ENABLE_SIM=yes |
15485 | as_fn_append SIM_ENABLED_ARCHES " cris" | |
23912acd MF |
15486 | ac_config_files="$ac_config_files cris/.gdbinit:common/gdbinit.in" |
15487 | ||
b9249c46 | 15488 | |
65dcce8f | 15489 | sim_enable_arch_cris=true |
3e8bb3e9 | 15490 | ;; |
a0e674c1 | 15491 | esac |
8996c210 MF |
15492 | |
15493 | ||
15494 | ||
dc4e1fde | 15495 | |
8996c210 | 15496 | if test "$SIM_PRIMARY_TARGET" = "cris"; then : |
dc4e1fde HPN |
15497 | : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}" |
15498 | : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}" | |
15499 | : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15500 | |
15501 | fi | |
15502 | ||
15503 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS" | |
15504 | ||
65dcce8f MF |
15505 | if ${sim_enable_arch_cris}; then |
15506 | SIM_ENABLE_ARCH_cris_TRUE= | |
15507 | SIM_ENABLE_ARCH_cris_FALSE='#' | |
15508 | else | |
15509 | SIM_ENABLE_ARCH_cris_TRUE='#' | |
15510 | SIM_ENABLE_ARCH_cris_FALSE= | |
15511 | fi | |
a0e674c1 | 15512 | |
586cfe1a | 15513 | sim_enable_arch_d10v=false |
65dcce8f | 15514 | case "${targ}" in |
a0e674c1 MF |
15515 | all|d10v-*-*) |
15516 | if test "${targ}" = "${target}"; then | |
15517 | SIM_PRIMARY_TARGET=d10v | |
15518 | fi | |
7c9a934c MF |
15519 | ENABLE_SIM=yes |
15520 | as_fn_append SIM_ENABLED_ARCHES " d10v" | |
23912acd MF |
15521 | ac_config_files="$ac_config_files d10v/.gdbinit:common/gdbinit.in" |
15522 | ||
b9249c46 | 15523 | |
65dcce8f | 15524 | sim_enable_arch_d10v=true |
3e8bb3e9 | 15525 | ;; |
a0e674c1 | 15526 | esac |
8996c210 MF |
15527 | |
15528 | ||
15529 | ||
dc4e1fde | 15530 | |
8996c210 | 15531 | if test "$SIM_PRIMARY_TARGET" = "d10v"; then : |
dc4e1fde HPN |
15532 | : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}" |
15533 | : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}" | |
15534 | : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15535 | |
15536 | fi | |
15537 | ||
15538 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V" | |
15539 | ||
65dcce8f MF |
15540 | if ${sim_enable_arch_d10v}; then |
15541 | SIM_ENABLE_ARCH_d10v_TRUE= | |
15542 | SIM_ENABLE_ARCH_d10v_FALSE='#' | |
15543 | else | |
15544 | SIM_ENABLE_ARCH_d10v_TRUE='#' | |
15545 | SIM_ENABLE_ARCH_d10v_FALSE= | |
15546 | fi | |
a0e674c1 | 15547 | |
586cfe1a | 15548 | sim_enable_arch_frv=false |
65dcce8f | 15549 | case "${targ}" in |
a0e674c1 MF |
15550 | all|frv-*-*) |
15551 | if test "${targ}" = "${target}"; then | |
15552 | SIM_PRIMARY_TARGET=frv | |
15553 | fi | |
7c9a934c MF |
15554 | ENABLE_SIM=yes |
15555 | as_fn_append SIM_ENABLED_ARCHES " frv" | |
23912acd MF |
15556 | ac_config_files="$ac_config_files frv/.gdbinit:common/gdbinit.in" |
15557 | ||
b9249c46 | 15558 | |
65dcce8f | 15559 | sim_enable_arch_frv=true |
36bb57e4 MF |
15560 | ;; |
15561 | esac | |
8996c210 MF |
15562 | |
15563 | ||
15564 | ||
dc4e1fde | 15565 | |
8996c210 | 15566 | if test "$SIM_PRIMARY_TARGET" = "frv"; then : |
dc4e1fde HPN |
15567 | : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}" |
15568 | : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}" | |
15569 | : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15570 | |
15571 | fi | |
15572 | ||
15573 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV" | |
15574 | ||
65dcce8f MF |
15575 | if ${sim_enable_arch_frv}; then |
15576 | SIM_ENABLE_ARCH_frv_TRUE= | |
15577 | SIM_ENABLE_ARCH_frv_FALSE='#' | |
15578 | else | |
15579 | SIM_ENABLE_ARCH_frv_TRUE='#' | |
15580 | SIM_ENABLE_ARCH_frv_FALSE= | |
15581 | fi | |
15582 | ||
586cfe1a | 15583 | sim_enable_arch_ft32=false |
65dcce8f | 15584 | case "${targ}" in |
36bb57e4 MF |
15585 | all|ft32-*-*) |
15586 | if test "${targ}" = "${target}"; then | |
15587 | SIM_PRIMARY_TARGET=ft32 | |
15588 | fi | |
7c9a934c MF |
15589 | ENABLE_SIM=yes |
15590 | as_fn_append SIM_ENABLED_ARCHES " ft32" | |
23912acd MF |
15591 | ac_config_files="$ac_config_files ft32/.gdbinit:common/gdbinit.in" |
15592 | ||
36bb57e4 | 15593 | |
65dcce8f | 15594 | sim_enable_arch_ft32=true |
3e8bb3e9 | 15595 | ;; |
a0e674c1 | 15596 | esac |
8996c210 MF |
15597 | |
15598 | ||
15599 | ||
dc4e1fde | 15600 | |
8996c210 | 15601 | if test "$SIM_PRIMARY_TARGET" = "ft32"; then : |
dc4e1fde HPN |
15602 | : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}" |
15603 | : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}" | |
15604 | : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15605 | |
15606 | fi | |
15607 | ||
15608 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32" | |
15609 | ||
65dcce8f MF |
15610 | if ${sim_enable_arch_ft32}; then |
15611 | SIM_ENABLE_ARCH_ft32_TRUE= | |
15612 | SIM_ENABLE_ARCH_ft32_FALSE='#' | |
15613 | else | |
15614 | SIM_ENABLE_ARCH_ft32_TRUE='#' | |
15615 | SIM_ENABLE_ARCH_ft32_FALSE= | |
15616 | fi | |
15617 | ||
586cfe1a | 15618 | sim_enable_arch_h8300=false |
65dcce8f | 15619 | case "${targ}" in |
a0e674c1 MF |
15620 | all|h8300*-*-*) |
15621 | if test "${targ}" = "${target}"; then | |
15622 | SIM_PRIMARY_TARGET=h8300 | |
15623 | fi | |
7c9a934c MF |
15624 | ENABLE_SIM=yes |
15625 | as_fn_append SIM_ENABLED_ARCHES " h8300" | |
23912acd MF |
15626 | ac_config_files="$ac_config_files h8300/.gdbinit:common/gdbinit.in" |
15627 | ||
119da465 | 15628 | |
65dcce8f | 15629 | sim_enable_arch_h8300=true |
3e8bb3e9 | 15630 | ;; |
a0e674c1 | 15631 | esac |
8996c210 MF |
15632 | |
15633 | ||
15634 | ||
dc4e1fde | 15635 | |
8996c210 | 15636 | if test "$SIM_PRIMARY_TARGET" = "h8300"; then : |
dc4e1fde HPN |
15637 | : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}" |
15638 | : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}" | |
15639 | : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15640 | |
15641 | fi | |
15642 | ||
15643 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300" | |
15644 | ||
65dcce8f MF |
15645 | if ${sim_enable_arch_h8300}; then |
15646 | SIM_ENABLE_ARCH_h8300_TRUE= | |
15647 | SIM_ENABLE_ARCH_h8300_FALSE='#' | |
15648 | else | |
15649 | SIM_ENABLE_ARCH_h8300_TRUE='#' | |
15650 | SIM_ENABLE_ARCH_h8300_FALSE= | |
15651 | fi | |
15652 | ||
586cfe1a | 15653 | sim_enable_arch_iq2000=false |
65dcce8f | 15654 | case "${targ}" in |
a0e674c1 MF |
15655 | all|iq2000-*-*) |
15656 | if test "${targ}" = "${target}"; then | |
15657 | SIM_PRIMARY_TARGET=iq2000 | |
15658 | fi | |
7c9a934c MF |
15659 | ENABLE_SIM=yes |
15660 | as_fn_append SIM_ENABLED_ARCHES " iq2000" | |
23912acd MF |
15661 | ac_config_files="$ac_config_files iq2000/.gdbinit:common/gdbinit.in" |
15662 | ||
119da465 | 15663 | |
65dcce8f | 15664 | sim_enable_arch_iq2000=true |
3e8bb3e9 | 15665 | ;; |
a0e674c1 | 15666 | esac |
8996c210 MF |
15667 | |
15668 | ||
15669 | ||
dc4e1fde | 15670 | |
8996c210 | 15671 | if test "$SIM_PRIMARY_TARGET" = "iq2000"; then : |
dc4e1fde HPN |
15672 | : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}" |
15673 | : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}" | |
15674 | : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15675 | |
15676 | fi | |
15677 | ||
15678 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000" | |
15679 | ||
65dcce8f MF |
15680 | if ${sim_enable_arch_iq2000}; then |
15681 | SIM_ENABLE_ARCH_iq2000_TRUE= | |
15682 | SIM_ENABLE_ARCH_iq2000_FALSE='#' | |
15683 | else | |
15684 | SIM_ENABLE_ARCH_iq2000_TRUE='#' | |
15685 | SIM_ENABLE_ARCH_iq2000_FALSE= | |
15686 | fi | |
a0e674c1 | 15687 | |
586cfe1a | 15688 | sim_enable_arch_lm32=false |
65dcce8f | 15689 | case "${targ}" in |
a0e674c1 MF |
15690 | all|lm32-*-*) |
15691 | if test "${targ}" = "${target}"; then | |
15692 | SIM_PRIMARY_TARGET=lm32 | |
15693 | fi | |
7c9a934c MF |
15694 | ENABLE_SIM=yes |
15695 | as_fn_append SIM_ENABLED_ARCHES " lm32" | |
23912acd MF |
15696 | ac_config_files="$ac_config_files lm32/.gdbinit:common/gdbinit.in" |
15697 | ||
119da465 | 15698 | |
65dcce8f | 15699 | sim_enable_arch_lm32=true |
3e8bb3e9 | 15700 | ;; |
a0e674c1 | 15701 | esac |
8996c210 MF |
15702 | |
15703 | ||
15704 | ||
dc4e1fde | 15705 | |
8996c210 | 15706 | if test "$SIM_PRIMARY_TARGET" = "lm32"; then : |
dc4e1fde HPN |
15707 | : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}" |
15708 | : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}" | |
15709 | : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15710 | |
15711 | fi | |
15712 | ||
15713 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32" | |
15714 | ||
65dcce8f MF |
15715 | if ${sim_enable_arch_lm32}; then |
15716 | SIM_ENABLE_ARCH_lm32_TRUE= | |
15717 | SIM_ENABLE_ARCH_lm32_FALSE='#' | |
15718 | else | |
15719 | SIM_ENABLE_ARCH_lm32_TRUE='#' | |
15720 | SIM_ENABLE_ARCH_lm32_FALSE= | |
15721 | fi | |
15722 | ||
586cfe1a | 15723 | sim_enable_arch_m32c=false |
65dcce8f | 15724 | case "${targ}" in |
a0e674c1 MF |
15725 | all|m32c-*-*) |
15726 | if test "${targ}" = "${target}"; then | |
15727 | SIM_PRIMARY_TARGET=m32c | |
15728 | fi | |
7c9a934c MF |
15729 | ENABLE_SIM=yes |
15730 | as_fn_append SIM_ENABLED_ARCHES " m32c" | |
23912acd MF |
15731 | ac_config_files="$ac_config_files m32c/.gdbinit:common/gdbinit.in" |
15732 | ||
87326c78 | 15733 | |
65dcce8f | 15734 | sim_enable_arch_m32c=true |
3e8bb3e9 | 15735 | ;; |
a0e674c1 | 15736 | esac |
8996c210 MF |
15737 | |
15738 | ||
15739 | ||
dc4e1fde | 15740 | |
8996c210 | 15741 | if test "$SIM_PRIMARY_TARGET" = "m32c"; then : |
dc4e1fde HPN |
15742 | : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}" |
15743 | : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}" | |
15744 | : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15745 | |
15746 | fi | |
15747 | ||
15748 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C" | |
15749 | ||
65dcce8f MF |
15750 | if ${sim_enable_arch_m32c}; then |
15751 | SIM_ENABLE_ARCH_m32c_TRUE= | |
15752 | SIM_ENABLE_ARCH_m32c_FALSE='#' | |
15753 | else | |
15754 | SIM_ENABLE_ARCH_m32c_TRUE='#' | |
15755 | SIM_ENABLE_ARCH_m32c_FALSE= | |
15756 | fi | |
15757 | ||
586cfe1a | 15758 | sim_enable_arch_m32r=false |
65dcce8f | 15759 | case "${targ}" in |
a0e674c1 MF |
15760 | all|m32r-*-*) |
15761 | if test "${targ}" = "${target}"; then | |
15762 | SIM_PRIMARY_TARGET=m32r | |
15763 | fi | |
7c9a934c MF |
15764 | ENABLE_SIM=yes |
15765 | as_fn_append SIM_ENABLED_ARCHES " m32r" | |
23912acd MF |
15766 | ac_config_files="$ac_config_files m32r/.gdbinit:common/gdbinit.in" |
15767 | ||
87326c78 | 15768 | |
65dcce8f | 15769 | sim_enable_arch_m32r=true |
3e8bb3e9 | 15770 | ;; |
a0e674c1 | 15771 | esac |
8996c210 MF |
15772 | |
15773 | ||
15774 | ||
dc4e1fde | 15775 | |
8996c210 | 15776 | if test "$SIM_PRIMARY_TARGET" = "m32r"; then : |
dc4e1fde HPN |
15777 | : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}" |
15778 | : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}" | |
15779 | : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15780 | |
15781 | fi | |
15782 | ||
15783 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R" | |
15784 | ||
65dcce8f MF |
15785 | if ${sim_enable_arch_m32r}; then |
15786 | SIM_ENABLE_ARCH_m32r_TRUE= | |
15787 | SIM_ENABLE_ARCH_m32r_FALSE='#' | |
15788 | else | |
15789 | SIM_ENABLE_ARCH_m32r_TRUE='#' | |
15790 | SIM_ENABLE_ARCH_m32r_FALSE= | |
15791 | fi | |
a0e674c1 | 15792 | |
586cfe1a | 15793 | sim_enable_arch_m68hc11=false |
65dcce8f | 15794 | case "${targ}" in |
a0e674c1 MF |
15795 | all|m68hc11-*-*|m6811-*-*) |
15796 | if test "${targ}" = "${target}"; then | |
15797 | SIM_PRIMARY_TARGET=m68hc11 | |
15798 | fi | |
7c9a934c MF |
15799 | ENABLE_SIM=yes |
15800 | as_fn_append SIM_ENABLED_ARCHES " m68hc11" | |
23912acd MF |
15801 | ac_config_files="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in" |
15802 | ||
87326c78 | 15803 | |
65dcce8f | 15804 | sim_enable_arch_m68hc11=true |
3e8bb3e9 | 15805 | ;; |
a0e674c1 | 15806 | esac |
8996c210 MF |
15807 | |
15808 | ||
15809 | ||
dc4e1fde | 15810 | |
8996c210 | 15811 | if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then : |
dc4e1fde HPN |
15812 | : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}" |
15813 | : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}" | |
15814 | : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15815 | |
15816 | fi | |
15817 | ||
15818 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11" | |
15819 | ||
65dcce8f MF |
15820 | if ${sim_enable_arch_m68hc11}; then |
15821 | SIM_ENABLE_ARCH_m68hc11_TRUE= | |
15822 | SIM_ENABLE_ARCH_m68hc11_FALSE='#' | |
15823 | else | |
15824 | SIM_ENABLE_ARCH_m68hc11_TRUE='#' | |
15825 | SIM_ENABLE_ARCH_m68hc11_FALSE= | |
15826 | fi | |
a0e674c1 | 15827 | |
586cfe1a | 15828 | sim_enable_arch_mcore=false |
65dcce8f | 15829 | case "${targ}" in |
a0e674c1 MF |
15830 | all|mcore-*-*) |
15831 | if test "${targ}" = "${target}"; then | |
15832 | SIM_PRIMARY_TARGET=mcore | |
15833 | fi | |
7c9a934c MF |
15834 | ENABLE_SIM=yes |
15835 | as_fn_append SIM_ENABLED_ARCHES " mcore" | |
23912acd MF |
15836 | ac_config_files="$ac_config_files mcore/.gdbinit:common/gdbinit.in" |
15837 | ||
119da465 | 15838 | |
65dcce8f | 15839 | sim_enable_arch_mcore=true |
3e8bb3e9 | 15840 | ;; |
a0e674c1 | 15841 | esac |
8996c210 MF |
15842 | |
15843 | ||
15844 | ||
dc4e1fde | 15845 | |
8996c210 | 15846 | if test "$SIM_PRIMARY_TARGET" = "mcore"; then : |
dc4e1fde HPN |
15847 | : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}" |
15848 | : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}" | |
15849 | : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15850 | |
15851 | fi | |
15852 | ||
15853 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE" | |
15854 | ||
65dcce8f MF |
15855 | if ${sim_enable_arch_mcore}; then |
15856 | SIM_ENABLE_ARCH_mcore_TRUE= | |
15857 | SIM_ENABLE_ARCH_mcore_FALSE='#' | |
15858 | else | |
15859 | SIM_ENABLE_ARCH_mcore_TRUE='#' | |
15860 | SIM_ENABLE_ARCH_mcore_FALSE= | |
15861 | fi | |
15862 | ||
586cfe1a | 15863 | sim_enable_arch_microblaze=false |
65dcce8f | 15864 | case "${targ}" in |
99aedb62 | 15865 | all|microblaze*-*-*) |
a0e674c1 MF |
15866 | if test "${targ}" = "${target}"; then |
15867 | SIM_PRIMARY_TARGET=microblaze | |
15868 | fi | |
7c9a934c MF |
15869 | ENABLE_SIM=yes |
15870 | as_fn_append SIM_ENABLED_ARCHES " microblaze" | |
23912acd MF |
15871 | ac_config_files="$ac_config_files microblaze/.gdbinit:common/gdbinit.in" |
15872 | ||
119da465 | 15873 | |
65dcce8f | 15874 | sim_enable_arch_microblaze=true |
3e8bb3e9 | 15875 | ;; |
a0e674c1 | 15876 | esac |
8996c210 MF |
15877 | |
15878 | ||
15879 | ||
dc4e1fde | 15880 | |
8996c210 | 15881 | if test "$SIM_PRIMARY_TARGET" = "microblaze"; then : |
dc4e1fde HPN |
15882 | : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}" |
15883 | : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}" | |
15884 | : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15885 | |
15886 | fi | |
15887 | ||
15888 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE" | |
15889 | ||
65dcce8f MF |
15890 | if ${sim_enable_arch_microblaze}; then |
15891 | SIM_ENABLE_ARCH_microblaze_TRUE= | |
15892 | SIM_ENABLE_ARCH_microblaze_FALSE='#' | |
15893 | else | |
15894 | SIM_ENABLE_ARCH_microblaze_TRUE='#' | |
15895 | SIM_ENABLE_ARCH_microblaze_FALSE= | |
15896 | fi | |
15897 | ||
586cfe1a | 15898 | sim_enable_arch_mips=false |
65dcce8f | 15899 | case "${targ}" in |
a0e674c1 MF |
15900 | all|mips*-*-*) |
15901 | if test "${targ}" = "${target}"; then | |
15902 | SIM_PRIMARY_TARGET=mips | |
15903 | fi | |
7c9a934c MF |
15904 | ENABLE_SIM=yes |
15905 | as_fn_append SIM_ENABLED_ARCHES " mips" | |
23912acd MF |
15906 | ac_config_files="$ac_config_files mips/.gdbinit:common/gdbinit.in" |
15907 | ||
119da465 | 15908 | |
65dcce8f | 15909 | sim_enable_arch_mips=true |
3e8bb3e9 | 15910 | ;; |
a0e674c1 | 15911 | esac |
8996c210 MF |
15912 | |
15913 | ||
15914 | ||
dc4e1fde | 15915 | |
8996c210 | 15916 | if test "$SIM_PRIMARY_TARGET" = "mips"; then : |
dc4e1fde HPN |
15917 | : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}" |
15918 | : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}" | |
15919 | : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15920 | |
15921 | fi | |
15922 | ||
15923 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS" | |
15924 | ||
65dcce8f MF |
15925 | if ${sim_enable_arch_mips}; then |
15926 | SIM_ENABLE_ARCH_mips_TRUE= | |
15927 | SIM_ENABLE_ARCH_mips_FALSE='#' | |
15928 | else | |
15929 | SIM_ENABLE_ARCH_mips_TRUE='#' | |
15930 | SIM_ENABLE_ARCH_mips_FALSE= | |
15931 | fi | |
15932 | ||
586cfe1a | 15933 | sim_enable_arch_mn10300=false |
65dcce8f | 15934 | case "${targ}" in |
a0e674c1 MF |
15935 | all|mn10300*-*-*) |
15936 | if test "${targ}" = "${target}"; then | |
15937 | SIM_PRIMARY_TARGET=mn10300 | |
15938 | fi | |
7c9a934c MF |
15939 | ENABLE_SIM=yes |
15940 | as_fn_append SIM_ENABLED_ARCHES " mn10300" | |
23912acd MF |
15941 | ac_config_files="$ac_config_files mn10300/.gdbinit:common/gdbinit.in" |
15942 | ||
119da465 | 15943 | |
65dcce8f | 15944 | sim_enable_arch_mn10300=true |
3e8bb3e9 | 15945 | ;; |
a0e674c1 | 15946 | esac |
8996c210 MF |
15947 | |
15948 | ||
15949 | ||
dc4e1fde | 15950 | |
8996c210 | 15951 | if test "$SIM_PRIMARY_TARGET" = "mn10300"; then : |
dc4e1fde HPN |
15952 | : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}" |
15953 | : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}" | |
15954 | : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15955 | |
15956 | fi | |
15957 | ||
15958 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300" | |
15959 | ||
65dcce8f MF |
15960 | if ${sim_enable_arch_mn10300}; then |
15961 | SIM_ENABLE_ARCH_mn10300_TRUE= | |
15962 | SIM_ENABLE_ARCH_mn10300_FALSE='#' | |
15963 | else | |
15964 | SIM_ENABLE_ARCH_mn10300_TRUE='#' | |
15965 | SIM_ENABLE_ARCH_mn10300_FALSE= | |
15966 | fi | |
a0e674c1 | 15967 | |
586cfe1a | 15968 | sim_enable_arch_moxie=false |
65dcce8f | 15969 | case "${targ}" in |
a0e674c1 MF |
15970 | all|moxie-*-*) |
15971 | if test "${targ}" = "${target}"; then | |
15972 | SIM_PRIMARY_TARGET=moxie | |
15973 | fi | |
7c9a934c MF |
15974 | ENABLE_SIM=yes |
15975 | as_fn_append SIM_ENABLED_ARCHES " moxie" | |
23912acd MF |
15976 | ac_config_files="$ac_config_files moxie/.gdbinit:common/gdbinit.in" |
15977 | ||
119da465 | 15978 | |
65dcce8f | 15979 | sim_enable_arch_moxie=true |
3e8bb3e9 | 15980 | ;; |
a0e674c1 | 15981 | esac |
8996c210 MF |
15982 | |
15983 | ||
15984 | ||
dc4e1fde | 15985 | |
8996c210 | 15986 | if test "$SIM_PRIMARY_TARGET" = "moxie"; then : |
dc4e1fde HPN |
15987 | : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}" |
15988 | : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}" | |
15989 | : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15990 | |
15991 | fi | |
15992 | ||
15993 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE" | |
15994 | ||
65dcce8f MF |
15995 | if ${sim_enable_arch_moxie}; then |
15996 | SIM_ENABLE_ARCH_moxie_TRUE= | |
15997 | SIM_ENABLE_ARCH_moxie_FALSE='#' | |
15998 | else | |
15999 | SIM_ENABLE_ARCH_moxie_TRUE='#' | |
16000 | SIM_ENABLE_ARCH_moxie_FALSE= | |
16001 | fi | |
a0e674c1 | 16002 | |
586cfe1a | 16003 | sim_enable_arch_msp430=false |
65dcce8f | 16004 | case "${targ}" in |
a0e674c1 MF |
16005 | all|msp430*-*-*) |
16006 | if test "${targ}" = "${target}"; then | |
16007 | SIM_PRIMARY_TARGET=msp430 | |
16008 | fi | |
7c9a934c MF |
16009 | ENABLE_SIM=yes |
16010 | as_fn_append SIM_ENABLED_ARCHES " msp430" | |
23912acd MF |
16011 | ac_config_files="$ac_config_files msp430/.gdbinit:common/gdbinit.in" |
16012 | ||
119da465 | 16013 | |
65dcce8f | 16014 | sim_enable_arch_msp430=true |
3e8bb3e9 | 16015 | ;; |
a0e674c1 | 16016 | esac |
8996c210 MF |
16017 | |
16018 | ||
16019 | ||
dc4e1fde | 16020 | |
8996c210 | 16021 | if test "$SIM_PRIMARY_TARGET" = "msp430"; then : |
dc4e1fde HPN |
16022 | : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}" |
16023 | : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}" | |
16024 | : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
16025 | |
16026 | fi | |
16027 | ||
16028 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430" | |
16029 | ||
65dcce8f MF |
16030 | if ${sim_enable_arch_msp430}; then |
16031 | SIM_ENABLE_ARCH_msp430_TRUE= | |
16032 | SIM_ENABLE_ARCH_msp430_FALSE='#' | |
16033 | else | |
16034 | SIM_ENABLE_ARCH_msp430_TRUE='#' | |
16035 | SIM_ENABLE_ARCH_msp430_FALSE= | |
16036 | fi | |
16037 | ||
586cfe1a | 16038 | sim_enable_arch_or1k=false |
65dcce8f | 16039 | case "${targ}" in |
99aedb62 | 16040 | all|or1k*-*-*) |
a0e674c1 MF |
16041 | if test "${targ}" = "${target}"; then |
16042 | SIM_PRIMARY_TARGET=or1k | |
16043 | fi | |
7c9a934c MF |
16044 | ENABLE_SIM=yes |
16045 | as_fn_append SIM_ENABLED_ARCHES " or1k" | |
23912acd MF |
16046 | ac_config_files="$ac_config_files or1k/.gdbinit:common/gdbinit.in" |
16047 | ||
119da465 | 16048 | |
65dcce8f | 16049 | sim_enable_arch_or1k=true |
99aedb62 MF |
16050 | ;; |
16051 | esac | |
8996c210 MF |
16052 | |
16053 | ||
16054 | ||
dc4e1fde | 16055 | |
8996c210 | 16056 | if test "$SIM_PRIMARY_TARGET" = "or1k"; then : |
dc4e1fde HPN |
16057 | : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}" |
16058 | : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}" | |
16059 | : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
16060 | |
16061 | fi | |
16062 | ||
16063 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K" | |
16064 | ||
65dcce8f MF |
16065 | if ${sim_enable_arch_or1k}; then |
16066 | SIM_ENABLE_ARCH_or1k_TRUE= | |
16067 | SIM_ENABLE_ARCH_or1k_FALSE='#' | |
16068 | else | |
16069 | SIM_ENABLE_ARCH_or1k_TRUE='#' | |
16070 | SIM_ENABLE_ARCH_or1k_FALSE= | |
16071 | fi | |
16072 | ||
586cfe1a | 16073 | sim_enable_arch_ppc=false |
65dcce8f | 16074 | case "${targ}" in |
99aedb62 MF |
16075 | all|powerpc*-*-*) |
16076 | if test "${targ}" = "${target}"; then | |
16077 | SIM_PRIMARY_TARGET=ppc | |
16078 | fi | |
7c9a934c MF |
16079 | ENABLE_SIM=yes |
16080 | as_fn_append SIM_ENABLED_ARCHES " ppc" | |
23912acd MF |
16081 | ac_config_files="$ac_config_files ppc/.gdbinit:common/gdbinit.in" |
16082 | ||
99aedb62 | 16083 | |
65dcce8f | 16084 | sim_enable_arch_ppc=true |
3e8bb3e9 | 16085 | ;; |
a0e674c1 | 16086 | esac |
8996c210 MF |
16087 | |
16088 | ||
16089 | ||
dc4e1fde | 16090 | |
8996c210 | 16091 | if test "$SIM_PRIMARY_TARGET" = "ppc"; then : |
dc4e1fde HPN |
16092 | : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}" |
16093 | : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}" | |
16094 | : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
16095 | |
16096 | fi | |
16097 | ||
16098 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC" | |
16099 | ||
65dcce8f MF |
16100 | if ${sim_enable_arch_ppc}; then |
16101 | SIM_ENABLE_ARCH_ppc_TRUE= | |
16102 | SIM_ENABLE_ARCH_ppc_FALSE='#' | |
16103 | else | |
16104 | SIM_ENABLE_ARCH_ppc_TRUE='#' | |
16105 | SIM_ENABLE_ARCH_ppc_FALSE= | |
16106 | fi | |
16107 | ||
586cfe1a | 16108 | sim_enable_arch_pru=false |
65dcce8f | 16109 | case "${targ}" in |
a0e674c1 MF |
16110 | all|pru*-*-*) |
16111 | if test "${targ}" = "${target}"; then | |
16112 | SIM_PRIMARY_TARGET=pru | |
16113 | fi | |
7c9a934c MF |
16114 | ENABLE_SIM=yes |
16115 | as_fn_append SIM_ENABLED_ARCHES " pru" | |
23912acd MF |
16116 | ac_config_files="$ac_config_files pru/.gdbinit:common/gdbinit.in" |
16117 | ||
119da465 | 16118 | |
65dcce8f | 16119 | sim_enable_arch_pru=true |
3e8bb3e9 | 16120 | ;; |
a0e674c1 | 16121 | esac |
8996c210 MF |
16122 | |
16123 | ||
16124 | ||
dc4e1fde | 16125 | |
8996c210 | 16126 | if test "$SIM_PRIMARY_TARGET" = "pru"; then : |
dc4e1fde HPN |
16127 | : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}" |
16128 | : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}" | |
16129 | : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
16130 | |
16131 | fi | |
16132 | ||
16133 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU" | |
16134 | ||
65dcce8f MF |
16135 | if ${sim_enable_arch_pru}; then |
16136 | SIM_ENABLE_ARCH_pru_TRUE= | |
16137 | SIM_ENABLE_ARCH_pru_FALSE='#' | |
16138 | else | |
16139 | SIM_ENABLE_ARCH_pru_TRUE='#' | |
16140 | SIM_ENABLE_ARCH_pru_FALSE= | |
16141 | fi | |
a0e674c1 | 16142 | |
586cfe1a | 16143 | sim_enable_arch_riscv=false |
65dcce8f | 16144 | case "${targ}" in |
a0e674c1 MF |
16145 | all|riscv*-*-*) |
16146 | if test "${targ}" = "${target}"; then | |
16147 | SIM_PRIMARY_TARGET=riscv | |
16148 | fi | |
7c9a934c MF |
16149 | ENABLE_SIM=yes |
16150 | as_fn_append SIM_ENABLED_ARCHES " riscv" | |
23912acd MF |
16151 | ac_config_files="$ac_config_files riscv/.gdbinit:common/gdbinit.in" |
16152 | ||
119da465 | 16153 | |
65dcce8f | 16154 | sim_enable_arch_riscv=true |
3e8bb3e9 | 16155 | ;; |
a0e674c1 | 16156 | esac |
8996c210 MF |
16157 | |
16158 | ||
16159 | ||
dc4e1fde | 16160 | |
8996c210 | 16161 | if test "$SIM_PRIMARY_TARGET" = "riscv"; then : |
dc4e1fde HPN |
16162 | : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}" |
16163 | : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}" | |
16164 | : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
16165 | |
16166 | fi | |
16167 | ||
16168 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV" | |
16169 | ||
65dcce8f MF |
16170 | if ${sim_enable_arch_riscv}; then |
16171 | SIM_ENABLE_ARCH_riscv_TRUE= | |
16172 | SIM_ENABLE_ARCH_riscv_FALSE='#' | |
16173 | else | |
16174 | SIM_ENABLE_ARCH_riscv_TRUE='#' | |
16175 | SIM_ENABLE_ARCH_riscv_FALSE= | |
16176 | fi | |
16177 | ||
586cfe1a | 16178 | sim_enable_arch_rl78=false |
65dcce8f | 16179 | case "${targ}" in |
a0e674c1 MF |
16180 | all|rl78-*-*) |
16181 | if test "${targ}" = "${target}"; then | |
16182 | SIM_PRIMARY_TARGET=rl78 | |
16183 | fi | |
7c9a934c MF |
16184 | ENABLE_SIM=yes |
16185 | as_fn_append SIM_ENABLED_ARCHES " rl78" | |
23912acd MF |
16186 | ac_config_files="$ac_config_files rl78/.gdbinit:common/gdbinit.in" |
16187 | ||
f46e4eb7 | 16188 | |
65dcce8f | 16189 | sim_enable_arch_rl78=true |
3e8bb3e9 | 16190 | ;; |
a0e674c1 | 16191 | esac |
8996c210 MF |
16192 | |
16193 | ||
16194 | ||
dc4e1fde | 16195 | |
8996c210 | 16196 | if test "$SIM_PRIMARY_TARGET" = "rl78"; then : |
dc4e1fde HPN |
16197 | : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}" |
16198 | : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}" | |
16199 | : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
16200 | |
16201 | fi | |
16202 | ||
16203 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78" | |
16204 | ||
65dcce8f MF |
16205 | if ${sim_enable_arch_rl78}; then |
16206 | SIM_ENABLE_ARCH_rl78_TRUE= | |
16207 | SIM_ENABLE_ARCH_rl78_FALSE='#' | |
16208 | else | |
16209 | SIM_ENABLE_ARCH_rl78_TRUE='#' | |
16210 | SIM_ENABLE_ARCH_rl78_FALSE= | |
16211 | fi | |
16212 | ||
586cfe1a | 16213 | sim_enable_arch_rx=false |
65dcce8f | 16214 | case "${targ}" in |
a0e674c1 MF |
16215 | all|rx-*-*) |
16216 | if test "${targ}" = "${target}"; then | |
16217 | SIM_PRIMARY_TARGET=rx | |
16218 | fi | |
7c9a934c MF |
16219 | ENABLE_SIM=yes |
16220 | as_fn_append SIM_ENABLED_ARCHES " rx" | |
23912acd MF |
16221 | ac_config_files="$ac_config_files rx/.gdbinit:common/gdbinit.in" |
16222 | ||
f46e4eb7 | 16223 | |
65dcce8f | 16224 | sim_enable_arch_rx=true |
3e8bb3e9 | 16225 | ;; |
a0e674c1 | 16226 | esac |
8996c210 MF |
16227 | |
16228 | ||
16229 | ||
dc4e1fde | 16230 | |
8996c210 | 16231 | if test "$SIM_PRIMARY_TARGET" = "rx"; then : |
dc4e1fde HPN |
16232 | : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}" |
16233 | : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}" | |
16234 | : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
16235 | |
16236 | fi | |
16237 | ||
16238 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX" | |
16239 | ||
65dcce8f MF |
16240 | if ${sim_enable_arch_rx}; then |
16241 | SIM_ENABLE_ARCH_rx_TRUE= | |
16242 | SIM_ENABLE_ARCH_rx_FALSE='#' | |
16243 | else | |
16244 | SIM_ENABLE_ARCH_rx_TRUE='#' | |
16245 | SIM_ENABLE_ARCH_rx_FALSE= | |
16246 | fi | |
a0e674c1 | 16247 | |
586cfe1a | 16248 | sim_enable_arch_sh=false |
65dcce8f | 16249 | case "${targ}" in |
a0e674c1 MF |
16250 | all|sh*-*-*) |
16251 | if test "${targ}" = "${target}"; then | |
16252 | SIM_PRIMARY_TARGET=sh | |
16253 | fi | |
7c9a934c MF |
16254 | ENABLE_SIM=yes |
16255 | as_fn_append SIM_ENABLED_ARCHES " sh" | |
23912acd MF |
16256 | ac_config_files="$ac_config_files sh/.gdbinit:common/gdbinit.in" |
16257 | ||
f46e4eb7 | 16258 | |
65dcce8f | 16259 | sim_enable_arch_sh=true |
3e8bb3e9 | 16260 | ;; |
a0e674c1 | 16261 | esac |
8996c210 MF |
16262 | |
16263 | ||
16264 | ||
dc4e1fde | 16265 | |
8996c210 | 16266 | if test "$SIM_PRIMARY_TARGET" = "sh"; then : |
dc4e1fde HPN |
16267 | : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}" |
16268 | : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}" | |
16269 | : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
16270 | |
16271 | fi | |
16272 | ||
16273 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH" | |
16274 | ||
65dcce8f MF |
16275 | if ${sim_enable_arch_sh}; then |
16276 | SIM_ENABLE_ARCH_sh_TRUE= | |
16277 | SIM_ENABLE_ARCH_sh_FALSE='#' | |
16278 | else | |
16279 | SIM_ENABLE_ARCH_sh_TRUE='#' | |
16280 | SIM_ENABLE_ARCH_sh_FALSE= | |
16281 | fi | |
a0e674c1 | 16282 | |
586cfe1a | 16283 | sim_enable_arch_erc32=false |
65dcce8f | 16284 | case "${targ}" in |
99aedb62 | 16285 | all|sparc-*-*) |
a0e674c1 MF |
16286 | if test "${targ}" = "${target}"; then |
16287 | SIM_PRIMARY_TARGET=erc32 | |
16288 | fi | |
7c9a934c MF |
16289 | ENABLE_SIM=yes |
16290 | as_fn_append SIM_ENABLED_ARCHES " erc32" | |
23912acd MF |
16291 | ac_config_files="$ac_config_files erc32/.gdbinit:common/gdbinit.in" |
16292 | ||
119da465 | 16293 | |
65dcce8f | 16294 | sim_enable_arch_erc32=true |
3e8bb3e9 | 16295 | ;; |
a0e674c1 | 16296 | esac |
8996c210 MF |
16297 | |
16298 | ||
16299 | ||
dc4e1fde | 16300 | |
8996c210 | 16301 | if test "$SIM_PRIMARY_TARGET" = "erc32"; then : |
dc4e1fde HPN |
16302 | : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}" |
16303 | : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}" | |
16304 | : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
16305 | |
16306 | fi | |
16307 | ||
16308 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32" | |
16309 | ||
65dcce8f MF |
16310 | if ${sim_enable_arch_erc32}; then |
16311 | SIM_ENABLE_ARCH_erc32_TRUE= | |
16312 | SIM_ENABLE_ARCH_erc32_FALSE='#' | |
16313 | else | |
16314 | SIM_ENABLE_ARCH_erc32_TRUE='#' | |
16315 | SIM_ENABLE_ARCH_erc32_FALSE= | |
16316 | fi | |
16317 | ||
586cfe1a | 16318 | sim_enable_arch_v850=false |
65dcce8f | 16319 | case "${targ}" in |
a0e674c1 MF |
16320 | all|v850*-*-*) |
16321 | if test "${targ}" = "${target}"; then | |
16322 | SIM_PRIMARY_TARGET=v850 | |
16323 | fi | |
7c9a934c MF |
16324 | ENABLE_SIM=yes |
16325 | as_fn_append SIM_ENABLED_ARCHES " v850" | |
23912acd MF |
16326 | ac_config_files="$ac_config_files v850/.gdbinit:common/gdbinit.in" |
16327 | ||
119da465 | 16328 | |
65dcce8f | 16329 | sim_enable_arch_v850=true |
3e8bb3e9 MF |
16330 | ;; |
16331 | esac | |
8996c210 MF |
16332 | |
16333 | ||
16334 | ||
dc4e1fde | 16335 | |
8996c210 | 16336 | if test "$SIM_PRIMARY_TARGET" = "v850"; then : |
dc4e1fde HPN |
16337 | : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}" |
16338 | : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}" | |
16339 | : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
16340 | |
16341 | fi | |
16342 | ||
16343 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850" | |
16344 | ||
65dcce8f MF |
16345 | if ${sim_enable_arch_v850}; then |
16346 | SIM_ENABLE_ARCH_v850_TRUE= | |
16347 | SIM_ENABLE_ARCH_v850_FALSE='#' | |
16348 | else | |
16349 | SIM_ENABLE_ARCH_v850_TRUE='#' | |
16350 | SIM_ENABLE_ARCH_v850_FALSE= | |
16351 | fi | |
16352 | ||
a0e674c1 MF |
16353 | |
16354 | done | |
26da232c MF |
16355 | |
16356 | if test "x${enable_example_sims}" = xyes; then | |
8996c210 MF |
16357 | |
16358 | ||
16359 | ||
dc4e1fde HPN |
16360 | |
16361 | : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}" | |
16362 | : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}" | |
8996c210 MF |
16363 | : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}" |
16364 | ||
16365 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR" | |
16366 | ||
7c9a934c MF |
16367 | ENABLE_SIM=yes |
16368 | as_fn_append SIM_ENABLED_ARCHES " example-synacor" | |
23912acd MF |
16369 | ac_config_files="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in" |
16370 | ||
26da232c MF |
16371 | |
16372 | fi | |
c0c25232 MF |
16373 | if test "${enable_example_sims}" = "yes"; then |
16374 | SIM_ENABLE_ARCH_examples_TRUE= | |
16375 | SIM_ENABLE_ARCH_examples_FALSE='#' | |
16376 | else | |
16377 | SIM_ENABLE_ARCH_examples_TRUE='#' | |
16378 | SIM_ENABLE_ARCH_examples_FALSE= | |
16379 | fi | |
16380 | ||
b6b1c790 | 16381 | fi |
7c9a934c | 16382 | if test "$ENABLE_SIM" = "yes"; then |
fb2c495f MF |
16383 | ENABLE_SIM_TRUE= |
16384 | ENABLE_SIM_FALSE='#' | |
16385 | else | |
16386 | ENABLE_SIM_TRUE='#' | |
16387 | ENABLE_SIM_FALSE= | |
16388 | fi | |
16389 | ||
b6b1c790 | 16390 | |
ba307cdd MF |
16391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5 |
16392 | $as_echo_n "checking whether to force sim alignment... " >&6; } | |
16393 | sim_alignment= | |
16394 | # Check whether --enable-sim-alignment was given. | |
16395 | if test "${enable_sim_alignment+set}" = set; then : | |
16396 | enableval=$enable_sim_alignment; case "${enableval}" in | |
16397 | yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";; | |
16398 | no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";; | |
16399 | forced | FORCED) sim_alignment="FORCED_ALIGNMENT";; | |
16400 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;; | |
16401 | esac | |
16402 | fi | |
16403 | ||
16404 | cat >>confdefs.h <<_ACEOF | |
16405 | #define WITH_ALIGNMENT ${sim_alignment:-0} | |
16406 | _ACEOF | |
16407 | ||
16408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5 | |
16409 | $as_echo "${sim_alignment:-no}" >&6; } | |
16410 | ||
dba333c1 MF |
16411 | |
16412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5 | |
16413 | $as_echo_n "checking whether to enable sim asserts... " >&6; } | |
16414 | sim_assert="1" | |
16415 | # Check whether --enable-sim-assert was given. | |
16416 | if test "${enable_sim_assert+set}" = set; then : | |
16417 | enableval=$enable_sim_assert; case "${enableval}" in | |
16418 | yes) sim_assert="1";; | |
16419 | no) sim_assert="0";; | |
16420 | *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;; | |
16421 | esac | |
16422 | fi | |
16423 | ||
16424 | cat >>confdefs.h <<_ACEOF | |
16425 | #define WITH_ASSERT $sim_assert | |
16426 | _ACEOF | |
16427 | ||
16428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5 | |
16429 | $as_echo "$sim_assert" >&6; } | |
16430 | ||
1bf5c342 MF |
16431 | |
16432 | cgen_maint=no | |
16433 | cgen=guile | |
16434 | cgendir='$(srcdir)/../../cgen' | |
e7ad52cd AM |
16435 | if test -r ${srcdir}/../cgen/iformat.scm; then |
16436 | cgendir='$(srcdir)/../cgen' | |
16437 | fi | |
1bf5c342 MF |
16438 | # Check whether --enable-cgen-maint was given. |
16439 | if test "${enable_cgen_maint+set}" = set; then : | |
16440 | enableval=$enable_cgen_maint; case "${enableval}" in | |
16441 | yes) cgen_maint=yes ;; | |
16442 | no) cgen_maint=no ;; | |
16443 | *) | |
16444 | # Argument is a directory where cgen can be found. In some | |
16445 | # future world cgen could be installable, but right now this | |
16446 | # is not the case. Instead we assume the directory is a path | |
16447 | # to the cgen source tree. | |
16448 | cgen_maint=yes | |
16449 | if test -r ${enableval}/iformat.scm; then | |
16450 | # This looks like a cgen source tree. | |
16451 | cgendir=${enableval} | |
16452 | else | |
16453 | as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5 | |
16454 | fi | |
16455 | ;; | |
16456 | esac | |
16457 | fi | |
16458 | if test x${cgen_maint} != xno ; then | |
16459 | CGEN_MAINT='' | |
16460 | else | |
16461 | CGEN_MAINT='#' | |
16462 | fi | |
16463 | ||
16464 | ||
16465 | ||
16466 | ||
04381273 MF |
16467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5 |
16468 | $as_echo_n "checking for sim debug setting... " >&6; } | |
16469 | sim_debug="0" | |
16470 | # Check whether --enable-sim-debug was given. | |
16471 | if test "${enable_sim_debug+set}" = set; then : | |
16472 | enableval=$enable_sim_debug; case "${enableval}" in | |
16473 | yes) sim_debug="7";; | |
16474 | no) sim_debug="0";; | |
16475 | *) sim_debug="($enableval)";; | |
16476 | esac | |
16477 | fi | |
16478 | if test "$sim_debug" != "0"; then | |
16479 | ||
16480 | cat >>confdefs.h <<_ACEOF | |
16481 | #define DEBUG $sim_debug | |
16482 | _ACEOF | |
16483 | ||
16484 | fi | |
16485 | ||
16486 | cat >>confdefs.h <<_ACEOF | |
16487 | #define WITH_DEBUG $sim_debug | |
16488 | _ACEOF | |
16489 | ||
16490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5 | |
16491 | $as_echo "$sim_debug" >&6; } | |
f9a4d543 MF |
16492 | |
16493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5 | |
16494 | $as_echo_n "checking whether to force sim endianness... " >&6; } | |
16495 | sim_endian= | |
16496 | # Check whether --enable-sim-endian was given. | |
16497 | if test "${enable_sim_endian+set}" = set; then : | |
16498 | enableval=$enable_sim_endian; case "${enableval}" in | |
16499 | b*|B*) sim_endian="BFD_ENDIAN_BIG";; | |
16500 | l*|L*) sim_endian="BFD_ENDIAN_LITTLE";; | |
16501 | yes | no) ;; | |
16502 | *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;; | |
16503 | esac | |
16504 | fi | |
16505 | ||
16506 | cat >>confdefs.h <<_ACEOF | |
16507 | #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN} | |
16508 | _ACEOF | |
16509 | ||
16510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5 | |
16511 | $as_echo "${sim_alignment:-no}" >&6; } | |
04381273 | 16512 | |
dba333c1 | 16513 | |
5ea45474 MF |
16514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5 |
16515 | $as_echo_n "checking default sim environment setting... " >&6; } | |
16516 | sim_environment="ALL_ENVIRONMENT" | |
16517 | # Check whether --enable-sim-environment was given. | |
16518 | if test "${enable_sim_environment+set}" = set; then : | |
16519 | enableval=$enable_sim_environment; case "${enableval}" in | |
16520 | all | ALL) sim_environment="ALL_ENVIRONMENT";; | |
16521 | user | USER) sim_environment="USER_ENVIRONMENT";; | |
16522 | virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";; | |
16523 | operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";; | |
16524 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;; | |
16525 | esac | |
16526 | fi | |
16527 | ||
16528 | cat >>confdefs.h <<_ACEOF | |
16529 | #define WITH_ENVIRONMENT $sim_environment | |
16530 | _ACEOF | |
16531 | ||
16532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5 | |
16533 | $as_echo "$sim_environment" >&6; } | |
16534 | ||
456ef1c1 MF |
16535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5 |
16536 | $as_echo_n "checking for sim hardware settings... " >&6; } | |
16537 | # Check whether --enable-sim-hardware was given. | |
16538 | if test "${enable_sim_hardware+set}" = set; then : | |
16539 | enableval=$enable_sim_hardware; | |
16540 | else | |
16541 | enable_sim_hardware="yes" | |
16542 | fi | |
16543 | ||
16544 | sim_hw_sockser= | |
16545 | if test "$enable_sim_hardware" = no; then | |
16546 | sim_hw_cflags="-DWITH_HW=0" | |
16547 | elif test "$enable_sim_hardware" = yes; then | |
16548 | sim_hw_cflags="-DWITH_HW=1" | |
03de8f26 MF |
16549 | sim_hw_sockser="dv-sockser.o" |
16550 | sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER" | |
456ef1c1 MF |
16551 | else |
16552 | as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5 | |
16553 | fi | |
16554 | if test "$enable_sim_hardware" = "yes"; then | |
16555 | SIM_ENABLE_HW_TRUE= | |
16556 | SIM_ENABLE_HW_FALSE='#' | |
16557 | else | |
16558 | SIM_ENABLE_HW_TRUE='#' | |
16559 | SIM_ENABLE_HW_FALSE= | |
16560 | fi | |
16561 | ||
16562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5 | |
16563 | $as_echo "${enable_sim_hardware}" >&6; } | |
682a2a82 | 16564 | SIM_HW_CFLAGS=$sim_hw_cflags |
456ef1c1 | 16565 | |
682a2a82 | 16566 | SIM_HW_SOCKSER=$sim_hw_sockser |
456ef1c1 MF |
16567 | |
16568 | ||
d73f39ee MF |
16569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5 |
16570 | $as_echo_n "checking sim inline settings... " >&6; } | |
16571 | sim_inline="-DDEFAULT_INLINE=0" | |
16572 | # Check whether --enable-sim-inline was given. | |
16573 | if test "${enable_sim_inline+set}" = set; then : | |
16574 | enableval=$enable_sim_inline; sim_inline="" | |
16575 | case "$enableval" in | |
16576 | no) sim_inline="-DDEFAULT_INLINE=0";; | |
16577 | 0) sim_inline="-DDEFAULT_INLINE=0";; | |
16578 | yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";; | |
16579 | 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";; | |
16580 | *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
16581 | new_flag="" | |
16582 | case "$x" in | |
16583 | *_INLINE=*) new_flag="-D$x";; | |
16584 | *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;; | |
16585 | *_INLINE) new_flag="-D$x=ALL_C_INLINE";; | |
16586 | *) new_flag="-D$x""_INLINE=ALL_C_INLINE";; | |
16587 | esac | |
16588 | if test x"$sim_inline" = x""; then | |
16589 | sim_inline="$new_flag" | |
16590 | else | |
16591 | sim_inline="$sim_inline $new_flag" | |
16592 | fi | |
16593 | done;; | |
16594 | esac | |
16595 | ||
16596 | fi | |
16597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5 | |
16598 | $as_echo "$sim_inline" >&6; } | |
16599 | SIM_INLINE=$sim_inline | |
16600 | ||
16601 | ||
04381273 MF |
16602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5 |
16603 | $as_echo_n "checking for sim profile settings... " >&6; } | |
16604 | profile="1" | |
16605 | sim_profile="-1" | |
16606 | # Check whether --enable-sim-profile was given. | |
16607 | if test "${enable_sim_profile+set}" = set; then : | |
16608 | enableval=$enable_sim_profile; case "${enableval}" in | |
16609 | yes) profile="1" sim_profile="-1";; | |
16610 | no) profile="0" sim_profile="0";; | |
16611 | [-0-9]*) | |
16612 | profile="(${enableval})" sim_profile="(${enableval})";; | |
16613 | [a-z]*) | |
16614 | profile="1" | |
16615 | sim_profile="" | |
16616 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
16617 | if test x"$sim_profile" = x; then | |
16618 | sim_profile="(PROFILE_$x" | |
16619 | else | |
16620 | sim_profile="${sim_profile}|PROFILE_$x" | |
16621 | fi | |
16622 | done | |
16623 | sim_profile="$sim_profile)" ;; | |
16624 | esac | |
16625 | fi | |
16626 | ||
16627 | cat >>confdefs.h <<_ACEOF | |
16628 | #define PROFILE $profile | |
16629 | _ACEOF | |
16630 | ||
16631 | ||
16632 | cat >>confdefs.h <<_ACEOF | |
16633 | #define WITH_PROFILE $sim_profile | |
16634 | _ACEOF | |
16635 | ||
16636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5 | |
16637 | $as_echo "$sim_profile" >&6; } | |
16638 | ||
7eb1f99a MF |
16639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5 |
16640 | $as_echo_n "checking whether to check reserved bits in instruction... " >&6; } | |
16641 | # Check whether --enable-sim-reserved-bits was given. | |
16642 | if test "${enable_sim_reserved_bits+set}" = set; then : | |
16643 | enableval=$enable_sim_reserved_bits; case "${enableval}" in | |
16644 | yes|no) ;; | |
16645 | *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;; | |
16646 | esac | |
16647 | fi | |
16648 | ||
16649 | if test "x${enable_sim_reserved_bits}" != xno; then | |
16650 | sim_reserved_bits=1 | |
16651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16652 | $as_echo "yes" >&6; } | |
16653 | else | |
16654 | sim_reserved_bits=0 | |
16655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16656 | $as_echo "no" >&6; } | |
16657 | fi | |
16658 | ||
16659 | cat >>confdefs.h <<_ACEOF | |
16660 | #define WITH_RESERVED_BITS $sim_reserved_bits | |
16661 | _ACEOF | |
16662 | ||
16663 | ||
b79efe26 MF |
16664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5 |
16665 | $as_echo_n "checking for sim cache size... " >&6; } | |
16666 | sim_scache="16384" | |
16667 | # Check whether --enable-sim-scache was given. | |
16668 | if test "${enable_sim_scache+set}" = set; then : | |
16669 | enableval=$enable_sim_scache; case "${enableval}" in | |
16670 | yes) ;; | |
16671 | no) sim_scache="0";; | |
16672 | [0-9]*) sim_scache="${enableval}";; | |
16673 | *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;; | |
16674 | esac | |
16675 | fi | |
16676 | ||
16677 | ||
16678 | cat >>confdefs.h <<_ACEOF | |
16679 | #define WITH_SCACHE $sim_scache | |
16680 | _ACEOF | |
16681 | ||
16682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5 | |
16683 | $as_echo "$sim_scache" >&6; } | |
16684 | ||
20b579ba MF |
16685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of sim cpus to support" >&5 |
16686 | $as_echo_n "checking number of sim cpus to support... " >&6; } | |
16687 | default_sim_smp="0" | |
16688 | sim_smp="$default_sim_smp" | |
16689 | # Check whether --enable-sim-smp was given. | |
16690 | if test "${enable_sim_smp+set}" = set; then : | |
16691 | enableval=$enable_sim_smp; case "${enableval}" in | |
16692 | yes) sim_smp="5";; | |
16693 | no) sim_smp="0";; | |
16694 | *) sim_smp="$enableval";; | |
16695 | esac | |
16696 | fi | |
111b1cf9 MF |
16697 | IGEN_FLAGS_SMP="-N ${sim_smp}" |
16698 | ||
20b579ba MF |
16699 | if test "x$sim_smp" = x0; then : |
16700 | ||
16701 | else | |
16702 | ||
16703 | cat >>confdefs.h <<_ACEOF | |
16704 | #define WITH_SMP $sim_smp | |
16705 | _ACEOF | |
16706 | ||
16707 | fi | |
16708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_smp" >&5 | |
16709 | $as_echo "$sim_smp" >&6; } | |
16710 | ||
04381273 MF |
16711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5 |
16712 | $as_echo_n "checking for sim stdio debug behavior... " >&6; } | |
16713 | sim_stdio="0" | |
16714 | # Check whether --enable-sim-stdio was given. | |
16715 | if test "${enable_sim_stdio+set}" = set; then : | |
16716 | enableval=$enable_sim_stdio; case "${enableval}" in | |
16717 | yes) sim_stdio="DO_USE_STDIO";; | |
16718 | no) sim_stdio="DONT_USE_STDIO";; | |
16719 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;; | |
16720 | esac | |
16721 | fi | |
16722 | ||
16723 | cat >>confdefs.h <<_ACEOF | |
16724 | #define WITH_STDIO $sim_stdio | |
16725 | _ACEOF | |
16726 | ||
16727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5 | |
16728 | $as_echo "$sim_stdio" >&6; } | |
16729 | ||
16730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5 | |
16731 | $as_echo_n "checking for sim trace settings... " >&6; } | |
16732 | sim_trace="~TRACE_debug" | |
16733 | # Check whether --enable-sim-trace was given. | |
16734 | if test "${enable_sim_trace+set}" = set; then : | |
16735 | enableval=$enable_sim_trace; case "${enableval}" in | |
16736 | yes) sim_trace="-1";; | |
16737 | no) sim_trace="0";; | |
16738 | [-0-9]*) | |
16739 | sim_trace="'(${enableval})'";; | |
16740 | [[:lower:]]*) | |
16741 | sim_trace="" | |
16742 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
16743 | if test x"$sim_trace" = x; then | |
16744 | sim_trace="(TRACE_$x" | |
16745 | else | |
16746 | sim_trace="${sim_trace}|TRACE_$x" | |
16747 | fi | |
16748 | done | |
16749 | sim_trace="$sim_trace)" ;; | |
16750 | esac | |
16751 | fi | |
16752 | ||
16753 | cat >>confdefs.h <<_ACEOF | |
16754 | #define WITH_TRACE $sim_trace | |
16755 | _ACEOF | |
16756 | ||
16757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5 | |
16758 | $as_echo "$sim_trace" >&6; } | |
16759 | ||
47ce766a MF |
16760 | # Check whether --enable-werror was given. |
16761 | if test "${enable_werror+set}" = set; then : | |
16762 | enableval=$enable_werror; case "${enableval}" in | |
16763 | yes | y) ERROR_ON_WARNING="yes" ;; | |
16764 | no | n) ERROR_ON_WARNING="no" ;; | |
16765 | *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
16766 | esac | |
16767 | fi | |
16768 | ||
16769 | ||
ab18008e | 16770 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then |
47ce766a MF |
16771 | ERROR_ON_WARNING=yes |
16772 | fi | |
16773 | ||
16774 | WERROR_CFLAGS="" | |
16775 | if test "${ERROR_ON_WARNING}" = yes ; then | |
16776 | WERROR_CFLAGS="-Werror" | |
16777 | fi | |
16778 | ||
b0c06375 | 16779 | build_warnings="-Wall -Wpointer-arith |
58d38850 | 16780 | -Wno-unused -Wunused-value -Wunused-variable -Wunused-function |
7f6fa743 | 16781 | -Wno-switch -Wno-char-subscripts |
00383ba6 | 16782 | -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable |
b0c06375 MF |
16783 | -Wno-sign-compare -Wno-error=maybe-uninitialized |
16784 | -Wno-error=deprecated-register | |
3a4ee628 | 16785 | -Wimplicit-fallthrough=5 |
95cd009f | 16786 | -Wduplicated-cond |
f6c714d6 | 16787 | -Wshadow=local |
7f6fa743 | 16788 | -Wmissing-declarations |
b0c06375 MF |
16789 | " |
16790 | build_warnings="$build_warnings | |
16791 | -Wdeclaration-after-statement | |
16792 | -Wdeprecated-non-prototype | |
16793 | -Wimplicit-function-declaration | |
16794 | -Wimplicit-int | |
16795 | -Wincompatible-function-pointer-types | |
16796 | -Wincompatible-pointer-types | |
2757c1c6 | 16797 | -Wint-conversion |
b0c06375 MF |
16798 | -Wmisleading-indentation |
16799 | -Wmissing-parameter-type | |
7f6fa743 | 16800 | -Wmissing-prototypes |
b0c06375 MF |
16801 | -Wold-style-declaration |
16802 | -Wold-style-definition | |
7f6fa743 | 16803 | -Wpointer-sign |
fa113bd9 | 16804 | -Wreturn-mismatch |
3744b73e | 16805 | -Wreturn-type |
9f17cdda | 16806 | -Wshift-negative-value |
2757c1c6 | 16807 | -Wstrict-prototypes |
a7292455 | 16808 | -Wno-enum-conversion |
7f6fa743 | 16809 | " |
435ad222 | 16810 | build_build_warnings=" |
435ad222 MF |
16811 | -Wno-stringop-truncation |
16812 | -Wno-implicit-fallthrough | |
16813 | -Wno-shadow=local | |
16814 | " | |
47ce766a | 16815 | |
47ce766a | 16816 | case "${host}" in |
3c7666dc MF |
16817 | *-*-mingw32*) |
16818 | # Enable -Wno-format by default when using gcc on mingw since many | |
16819 | # GCC versions complain about %I64. | |
16820 | build_warnings="$build_warnings -Wno-format" ;; | |
16821 | *-*-solaris*) | |
16822 | # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC | |
16823 | # doesn't understand. | |
16824 | build_warnings="$build_warnings -Wno-unknown-pragmas" | |
16825 | # Solaris 11 <unistd.h> marks vfork deprecated. | |
16826 | build_warnings="$build_warnings -Wno-deprecated-declarations" ;; | |
16827 | *) | |
16828 | # Note that gcc requires -Wformat for -Wformat-nonliteral to work, | |
16829 | # but there's a special case for this below. | |
16830 | build_warnings="$build_warnings -Wformat-nonliteral" ;; | |
47ce766a MF |
16831 | esac |
16832 | ||
16833 | # Check whether --enable-build-warnings was given. | |
16834 | if test "${enable_build_warnings+set}" = set; then : | |
16835 | enableval=$enable_build_warnings; case "${enableval}" in | |
16836 | yes) ;; | |
16837 | no) build_warnings="-w";; | |
16838 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
16839 | build_warnings="${build_warnings} ${t}";; | |
16840 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
16841 | build_warnings="${t} ${build_warnings}";; | |
16842 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
16843 | esac | |
16844 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
16845 | echo "Setting compiler warning flags = $build_warnings" 6>&1 | |
16846 | fi | |
16847 | fi | |
16848 | # Check whether --enable-sim-build-warnings was given. | |
16849 | if test "${enable_sim_build_warnings+set}" = set; then : | |
16850 | enableval=$enable_sim_build_warnings; case "${enableval}" in | |
16851 | yes) ;; | |
16852 | no) build_warnings="-w";; | |
16853 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
16854 | build_warnings="${build_warnings} ${t}";; | |
16855 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
16856 | build_warnings="${t} ${build_warnings}";; | |
16857 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
16858 | esac | |
16859 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
16860 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
16861 | fi | |
16862 | fi | |
16863 | WARN_CFLAGS="" | |
435ad222 | 16864 | BUILD_WARN_CFLAGS="" |
47ce766a MF |
16865 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
16866 | then | |
435ad222 MF |
16867 | |
16868 | ||
16869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5 | |
47ce766a MF |
16870 | $as_echo_n "checking compiler warning flags... " >&6; } |
16871 | # Separate out the -Werror flag as some files just cannot be | |
16872 | # compiled with it enabled. | |
16873 | for w in ${build_warnings}; do | |
16874 | case $w in | |
16875 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
4da6be3f MF |
16876 | *) w="$w" |
16877 | case $w in | |
16878 | -Wno-*) | |
16879 | wtest=`echo $w | sed 's/-Wno-/-W/g'` ;; | |
16880 | -Wformat-nonliteral) | |
16881 | w="-Wformat $w" | |
16882 | wtest="$w" | |
16883 | ;; | |
16884 | *) | |
16885 | wtest=$w ;; | |
16886 | esac | |
16887 | ||
16888 | saved_CFLAGS="$CFLAGS" | |
16889 | CFLAGS="$CFLAGS -Werror $wtest" | |
16890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
47ce766a MF |
16891 | /* end confdefs.h. */ |
16892 | ||
16893 | int | |
16894 | main () | |
16895 | { | |
16896 | ||
16897 | ; | |
16898 | return 0; | |
16899 | } | |
16900 | _ACEOF | |
16901 | if ac_fn_c_try_compile "$LINENO"; then : | |
16902 | WARN_CFLAGS="${WARN_CFLAGS} $w" | |
16903 | fi | |
16904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4da6be3f MF |
16905 | CFLAGS="$saved_CFLAGS" |
16906 | ;; | |
47ce766a MF |
16907 | esac |
16908 | done | |
16909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 | |
16910 | $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } | |
4da6be3f | 16911 | |
435ad222 MF |
16912 | |
16913 | if test "x$cross_compiling" = "xno"; then : | |
16914 | SAVE_WARN_CFLAGS=$WARN_CFLAGS | |
16915 | build_warnings=$build_build_warnings | |
16916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5 | |
16917 | $as_echo_n "checking compiler warning flags... " >&6; } | |
16918 | # Separate out the -Werror flag as some files just cannot be | |
16919 | # compiled with it enabled. | |
16920 | for w in ${build_warnings}; do | |
16921 | case $w in | |
16922 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
16923 | *) w="$w" | |
16924 | case $w in | |
16925 | -Wno-*) | |
16926 | wtest=`echo $w | sed 's/-Wno-/-W/g'` ;; | |
16927 | -Wformat-nonliteral) | |
16928 | w="-Wformat $w" | |
16929 | wtest="$w" | |
16930 | ;; | |
16931 | *) | |
16932 | wtest=$w ;; | |
16933 | esac | |
16934 | ||
16935 | saved_CFLAGS="$CFLAGS" | |
16936 | CFLAGS="$CFLAGS -Werror $wtest" | |
16937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16938 | /* end confdefs.h. */ | |
16939 | ||
16940 | int | |
16941 | main () | |
16942 | { | |
16943 | ||
16944 | ; | |
16945 | return 0; | |
16946 | } | |
16947 | _ACEOF | |
16948 | if ac_fn_c_try_compile "$LINENO"; then : | |
16949 | WARN_CFLAGS="${WARN_CFLAGS} $w" | |
16950 | fi | |
16951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16952 | CFLAGS="$saved_CFLAGS" | |
16953 | ;; | |
16954 | esac | |
16955 | done | |
16956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 | |
16957 | $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } | |
16958 | ||
16959 | BUILD_WARN_CFLAGS=$WARN_CFLAGS | |
16960 | WARN_CFLAGS=$SAVE_WARN_CFLAGS | |
16961 | BUILD_WERROR_CFLAGS=$WERROR_CFLAGS | |
16962 | ||
16963 | fi | |
16964 | ||
4da6be3f MF |
16965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-shadow=local is supported" >&5 |
16966 | $as_echo_n "checking whether -Wno-shadow=local is supported... " >&6; } | |
16967 | w="-Wno-shadow=local" | |
16968 | case $w in | |
16969 | -Wno-*) | |
16970 | wtest=`echo $w | sed 's/-Wno-/-W/g'` ;; | |
16971 | -Wformat-nonliteral) | |
16972 | w="-Wformat $w" | |
16973 | wtest="$w" | |
16974 | ;; | |
16975 | *) | |
16976 | wtest=$w ;; | |
16977 | esac | |
16978 | ||
16979 | saved_CFLAGS="$CFLAGS" | |
16980 | CFLAGS="$CFLAGS -Werror $wtest" | |
16981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16982 | /* end confdefs.h. */ | |
16983 | ||
16984 | int | |
16985 | main () | |
16986 | { | |
16987 | ||
16988 | ; | |
16989 | return 0; | |
16990 | } | |
16991 | _ACEOF | |
16992 | if ac_fn_c_try_compile "$LINENO"; then : | |
16993 | SIM_CFLAG_WNO_SHADOW_LOCAL=-Wno-shadow=local | |
16994 | ||
16995 | ||
16996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16997 | $as_echo "yes" >&6; } | |
16998 | ||
16999 | else | |
17000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17001 | $as_echo "no" >&6; } | |
17002 | fi | |
17003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17004 | CFLAGS="$saved_CFLAGS" | |
17005 | ||
17006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-unused-but-set-variable is supported" >&5 | |
17007 | $as_echo_n "checking whether -Wno-unused-but-set-variable is supported... " >&6; } | |
17008 | w="-Wno-unused-but-set-variable" | |
17009 | case $w in | |
17010 | -Wno-*) | |
17011 | wtest=`echo $w | sed 's/-Wno-/-W/g'` ;; | |
17012 | -Wformat-nonliteral) | |
17013 | w="-Wformat $w" | |
17014 | wtest="$w" | |
17015 | ;; | |
17016 | *) | |
17017 | wtest=$w ;; | |
17018 | esac | |
17019 | ||
17020 | saved_CFLAGS="$CFLAGS" | |
17021 | CFLAGS="$CFLAGS -Werror $wtest" | |
17022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17023 | /* end confdefs.h. */ | |
17024 | ||
17025 | int | |
17026 | main () | |
17027 | { | |
17028 | ||
17029 | ; | |
17030 | return 0; | |
17031 | } | |
17032 | _ACEOF | |
17033 | if ac_fn_c_try_compile "$LINENO"; then : | |
17034 | SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable | |
17035 | ||
17036 | ||
17037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17038 | $as_echo "yes" >&6; } | |
17039 | ||
17040 | else | |
17041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17042 | $as_echo "no" >&6; } | |
17043 | fi | |
17044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17045 | CFLAGS="$saved_CFLAGS" | |
17046 | ||
47ce766a MF |
17047 | fi |
17048 | ||
17049 | ||
408a44aa MF |
17050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5 |
17051 | $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; } | |
17052 | # Check whether --enable-sim-frv-trapdump was given. | |
17053 | if test "${enable_sim_frv_trapdump+set}" = set; then : | |
17054 | enableval=$enable_sim_frv_trapdump; case "${enableval}" in | |
17055 | yes|no) ;; | |
17056 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;; | |
17057 | esac | |
17058 | fi | |
17059 | ||
1ee4d0e3 | 17060 | if test "x${enable_sim_frv_trapdump}" = xyes; then |
408a44aa MF |
17061 | SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1" |
17062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17063 | $as_echo "yes" >&6; } | |
17064 | else | |
17065 | SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0" | |
17066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17067 | $as_echo "no" >&6; } | |
17068 | fi | |
17069 | ||
17070 | ||
2d5700ad MF |
17071 | |
17072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips subtarget" >&5 | |
17073 | $as_echo_n "checking mips subtarget... " >&6; } | |
17074 | SIM_MIPS_SUBTARGET= | |
17075 | case ${target} in #( | |
17076 | mips64vr*-*-*) : | |
17077 | SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #( | |
17078 | mips*tx39*) : | |
17079 | SIM_MIPS_SUBTARGET="-DSUBTARGET_R3900=1" ;; #( | |
17080 | mips*-sde-elf*) : | |
17081 | SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #( | |
17082 | mips*-mti-elf*) : | |
17083 | SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #( | |
17084 | mipsisa32*-*-*) : | |
17085 | SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #( | |
17086 | mipsisa64*-*-*) : | |
17087 | SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #( | |
17088 | *) : | |
17089 | ;; | |
17090 | esac | |
17091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SIM_MIPS_SUBTARGET:-none}" >&5 | |
17092 | $as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; } | |
17093 | ||
17094 | ||
19b11256 MF |
17095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips bitsize" >&5 |
17096 | $as_echo_n "checking mips bitsize... " >&6; } | |
17097 | SIM_MIPS_BITSIZE=64 | |
17098 | case ${target} in #( | |
17099 | mips*-sde-elf*) : | |
17100 | SIM_MIPS_BITSIZE=64 ;; #( | |
17101 | mips*-mti-elf*) : | |
17102 | SIM_MIPS_BITSIZE=64 ;; #( | |
17103 | mips64*-*-*) : | |
17104 | SIM_MIPS_BITSIZE=64 ;; #( | |
17105 | mips16*-*-*) : | |
17106 | SIM_MIPS_BITSIZE=64 ;; #( | |
17107 | mipsisa32*-*-*) : | |
17108 | SIM_MIPS_BITSIZE=32 ;; #( | |
17109 | mipsisa64*-*-*) : | |
17110 | SIM_MIPS_BITSIZE=64 ;; #( | |
17111 | mips*-*-*) : | |
17112 | SIM_MIPS_BITSIZE=32 ;; #( | |
17113 | *) : | |
17114 | ;; | |
17115 | esac | |
17116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_BITSIZE" >&5 | |
17117 | $as_echo "$SIM_MIPS_BITSIZE" >&6; } | |
17118 | ||
17119 | ||
d455df98 MF |
17120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips fpu bitsize" >&5 |
17121 | $as_echo_n "checking mips fpu bitsize... " >&6; } | |
17122 | SIM_MIPS_FPU_BITSIZE=64 | |
17123 | case ${target} in #( | |
17124 | mips*tx39*) : | |
17125 | SIM_MIPS_FPU_BITSIZE=32 ;; #( | |
17126 | mips*-sde-elf*) : | |
17127 | SIM_MIPS_FPU_BITSIZE=64 ;; #( | |
17128 | mips*-mti-elf*) : | |
17129 | SIM_MIPS_FPU_BITSIZE=64 ;; #( | |
17130 | mipsisa32*-*-*) : | |
17131 | SIM_MIPS_FPU_BITSIZE=64 ;; #( | |
17132 | mipsisa64*-*-*) : | |
17133 | SIM_MIPS_FPU_BITSIZE=64 ;; #( | |
17134 | mips*-*-*) : | |
17135 | SIM_MIPS_FPU_BITSIZE=32 ;; #( | |
17136 | *) : | |
17137 | ;; | |
17138 | esac | |
17139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_FPU_BITSIZE" >&5 | |
17140 | $as_echo "$SIM_MIPS_FPU_BITSIZE" >&6; } | |
17141 | ||
17142 | ||
07f60ed8 MF |
17143 | SIM_MIPS_GEN=SINGLE |
17144 | sim_mips_single_machine="-M mipsIV" | |
abc494c6 | 17145 | sim_mips_m16_machine="-M mips16,mipsIII" |
07f60ed8 | 17146 | sim_mips_single_filter="32,64,f" |
abc494c6 MF |
17147 | sim_mips_m16_filter="16" |
17148 | case ${target} in #( | |
17149 | mips*tx39*) : | |
07f60ed8 MF |
17150 | SIM_MIPS_GEN=SINGLE |
17151 | sim_mips_single_filter="32,f" | |
17152 | sim_mips_single_machine="-M r3900" ;; #( | |
abc494c6 MF |
17153 | mips64vr41*) : |
17154 | SIM_MIPS_GEN=M16 | |
07f60ed8 | 17155 | sim_mips_single_machine="-M vr4100" |
abc494c6 MF |
17156 | sim_mips_m16_machine="-M vr4100" ;; #( |
17157 | mips64*) : | |
17158 | SIM_MIPS_GEN=MULTI | |
17159 | sim_mips_multi_configs="\ | |
17160 | vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\ | |
17161 | vr4120:mipsIII,mips16,vr4120:32,64:mips4120\ | |
17162 | vr5000:mipsIV:32,64,f:mips4300,mips5000,mips8000\ | |
17163 | vr5400:mipsIV,vr5400:32,64,f:mips5400\ | |
17164 | vr5500:mipsIV,vr5500:32,64,f:mips5500" | |
17165 | sim_mips_multi_default=mips5000 ;; #( | |
17166 | mips*-sde-elf* | mips*-mti-elf*) : | |
17167 | SIM_MIPS_GEN=MULTI | |
17168 | sim_mips_multi_configs="\ | |
17169 | micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\ | |
17170 | mipsisa64r2:mips64r2,mips16,mips16e,mdmx,dsp,dsp2,mips3d,smartmips:32,64,f:mipsisa32r2,mipsisa64r2,mipsisa32r5,mipsisa64r5\ | |
17171 | mipsisa64r6:mips64r6:32,64,f:mipsisa32r6,mipsisa64r6" | |
17172 | sim_mips_multi_default=mipsisa64r2 ;; #( | |
17173 | mips16*) : | |
17174 | SIM_MIPS_GEN=M16 ;; #( | |
17175 | mipsisa32r2*) : | |
17176 | SIM_MIPS_GEN=MULTI | |
17177 | sim_mips_multi_configs="\ | |
17178 | micromips:micromips32,micromipsdsp:32,f:mips_micromips\ | |
17179 | mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2" | |
17180 | sim_mips_multi_default=mipsisa32r2 ;; #( | |
17181 | mipsisa32r6*) : | |
07f60ed8 MF |
17182 | SIM_MIPS_GEN=SINGLE |
17183 | sim_mips_single_machine="-M mips32r6" | |
17184 | sim_mips_single_filter="32,f" ;; #( | |
abc494c6 MF |
17185 | mipsisa32*) : |
17186 | SIM_MIPS_GEN=M16 | |
07f60ed8 | 17187 | sim_mips_single_machine="-M mips32,mips16,mips16e,smartmips" |
abc494c6 | 17188 | sim_mips_m16_machine="-M mips16,mips16e,mips32" |
07f60ed8 | 17189 | sim_mips_single_filter="32,f" ;; #( |
abc494c6 MF |
17190 | mipsisa64r2*) : |
17191 | SIM_MIPS_GEN=M16 | |
07f60ed8 | 17192 | sim_mips_single_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2" |
abc494c6 MF |
17193 | sim_mips_m16_machine="-M mips16,mips16e,mips64r2" ;; #( |
17194 | mipsisa64r6*) : | |
07f60ed8 MF |
17195 | SIM_MIPS_GEN=SINGLE |
17196 | sim_mips_single_machine="-M mips64r6" ;; #( | |
abc494c6 | 17197 | mipsisa64sb1*) : |
07f60ed8 MF |
17198 | SIM_MIPS_GEN=SINGLE |
17199 | sim_mips_single_machine="-M mips64,mips3d,sb1" ;; #( | |
abc494c6 MF |
17200 | mipsisa64*) : |
17201 | SIM_MIPS_GEN=M16 | |
07f60ed8 | 17202 | sim_mips_single_machine="-M mips64,mips3d,mips16,mips16e,mdmx" |
abc494c6 MF |
17203 | sim_mips_m16_machine="-M mips16,mips16e,mips64" ;; #( |
17204 | mips*lsi*) : | |
17205 | SIM_MIPS_GEN=M16 | |
07f60ed8 | 17206 | sim_mips_single_machine="-M mipsIII,mips16" |
abc494c6 | 17207 | sim_mips_m16_machine="-M mips16,mipsIII" |
07f60ed8 | 17208 | sim_mips_single_filter="32,f" ;; #( |
abc494c6 | 17209 | mips*) : |
07f60ed8 MF |
17210 | SIM_MIPS_GEN=SINGLE |
17211 | sim_mips_single_filter="32,f" ;; #( | |
abc494c6 MF |
17212 | *) : |
17213 | ;; | |
17214 | esac | |
17215 | ||
4c45662c | 17216 | SIM_MIPS_IGEN_ITABLE_FLAGS= |
abc494c6 MF |
17217 | SIM_MIPS_MULTI_SRC= |
17218 | SIM_MIPS_MULTI_OBJ= | |
17219 | SIM_MIPS_MULTI_IGEN_CONFIGS= | |
17220 | if test "x$SIM_MIPS_GEN" = x"MULTI"; then : | |
17221 | if test -z "${sim_mips_multi_configs}" || test -z "${sim_mips_multi_default}"; then : | |
17222 | as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5 | |
17223 | fi | |
17224 | ||
17225 | as_dir=mips; as_fn_mkdir_p | |
17226 | rm -f mips/multi-include.h mips/multi-run.c | |
17227 | sim_mips_seen_default=no | |
17228 | ||
17229 | cat << __EOF__ > mips/multi-run.c | |
17230 | /* Main entry point for MULTI simulators. | |
0d9d77e5 | 17231 | Copyright (C) 2003-2023 Free Software Foundation, Inc. |
abc494c6 MF |
17232 | |
17233 | This program is free software; you can redistribute it and/or modify | |
17234 | it under the terms of the GNU General Public License as published by | |
17235 | the Free Software Foundation; either version 3 of the License, or | |
17236 | (at your option) any later version. | |
17237 | ||
17238 | This program is distributed in the hope that it will be useful, | |
17239 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17240 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17241 | GNU General Public License for more details. | |
17242 | ||
17243 | You should have received a copy of the GNU General Public License | |
17244 | along with this program. If not, see <http://www.gnu.org/licenses/>. | |
17245 | ||
17246 | -- | |
17247 | ||
17248 | This file was generated by sim/mips/configure. */ | |
17249 | ||
17250 | #include "sim-main.h" | |
17251 | #include "multi-include.h" | |
c217e3d5 MF |
17252 | #include "bfd/elf-bfd.h" |
17253 | #include "bfd/elfxx-mips.h" | |
abc494c6 MF |
17254 | #include "elf/mips.h" |
17255 | ||
17256 | #define SD sd | |
17257 | #define CPU cpu | |
17258 | ||
17259 | void | |
17260 | sim_engine_run (SIM_DESC sd, | |
17261 | int next_cpu_nr, | |
17262 | int nr_cpus, | |
17263 | int signal) /* ignore */ | |
17264 | { | |
17265 | int mach; | |
17266 | ||
17267 | if (STATE_ARCHITECTURE (sd) == NULL) | |
17268 | mach = bfd_mach_${sim_mips_multi_default}; | |
17269 | else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags | |
17270 | & EF_MIPS_ARCH_ASE_MICROMIPS) | |
17271 | mach = bfd_mach_mips_micromips; | |
17272 | else | |
17273 | { | |
17274 | mach = _bfd_elf_mips_mach (elf_elfheader (STATE_PROG_BFD (sd))->e_flags); | |
17275 | if (!mach) | |
17276 | mach = STATE_ARCHITECTURE (SD)->mach; | |
17277 | } | |
17278 | ||
17279 | switch (mach) | |
17280 | { | |
17281 | __EOF__ | |
17282 | ||
17283 | for fc in ${sim_mips_multi_configs}; do | |
17284 | ||
17285 | c=`echo ${fc} | sed 's/:[^:]*$//'` | |
17286 | bfdmachs=`echo ${fc} | sed 's/.*://'` | |
17287 | name=`echo ${c} | sed 's/:.*//'` | |
17288 | machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'` | |
17289 | filter=`echo ${c} | sed 's/.*://'` | |
17290 | ||
4c45662c | 17291 | as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F ${filter} -M ${machine}" |
abc494c6 MF |
17292 | |
17293 | case ${c} in #( | |
17294 | *:*mips16*:*) : | |
17295 | ws="m32 m16" | |
17296 | ||
1f1afa43 MF |
17297 | as_fn_append SIM_MIPS_MULTI_SRC " mips/m16${name}_run.c" |
17298 | as_fn_append SIM_MIPS_MULTI_OBJ " mips/m16${name}_run.o" | |
4c45662c | 17299 | as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16" |
abc494c6 MF |
17300 | ;; #( |
17301 | *:*micromips32*:*) : | |
17302 | ws="micromips_m32 micromips16 micromips32" | |
17303 | ||
1f1afa43 MF |
17304 | as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c" |
17305 | as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o" | |
4c45662c | 17306 | as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32" |
abc494c6 MF |
17307 | ;; #( |
17308 | *:*micromips64*:*) : | |
17309 | ws="micromips_m64 micromips16 micromips64" | |
17310 | ||
1f1afa43 MF |
17311 | as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c" |
17312 | as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o" | |
4c45662c | 17313 | as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32,64" |
abc494c6 MF |
17314 | ;; #( |
17315 | *) : | |
17316 | ws=m32 ;; | |
17317 | esac | |
17318 | ||
17319 | for w in ${ws}; do | |
17320 | for base in engine icache idecode model semantics support; do | |
1f1afa43 MF |
17321 | as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.c" |
17322 | as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.h" | |
17323 | as_fn_append SIM_MIPS_MULTI_OBJ " mips/${w}${name}_${base}.o" | |
abc494c6 MF |
17324 | done |
17325 | as_fn_append SIM_MIPS_MULTI_IGEN_CONFIGS " ${w}${c}" | |
17326 | done | |
17327 | ||
17328 | echo "#include \"${w}${name}_engine.h\"" >> mips/multi-include.h | |
17329 | ||
17330 | for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do | |
17331 | echo " case bfd_mach_${mach}:" >> mips/multi-run.c | |
17332 | if test "x$mach" = x"${sim_mips_multi_default}"; then : | |
17333 | echo " default:" >> mips/multi-run.c | |
17334 | sim_mips_seen_default=yes | |
17335 | ||
17336 | fi | |
17337 | done | |
17338 | echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \ | |
17339 | >> mips/multi-run.c | |
17340 | echo " break;" >> mips/multi-run.c | |
17341 | done | |
17342 | ||
17343 | if test "x$sim_mips_seen_default" = xno; then : | |
17344 | as_fn_error $? "Error in configure.ac: \${sim_mips_multi_configs} doesn't have an entry for \${sim_mips_multi_default}" "$LINENO" 5 | |
17345 | fi | |
17346 | ||
17347 | cat << __EOF__ >> mips/multi-run.c | |
17348 | } | |
17349 | } | |
17350 | __EOF__ | |
17351 | ||
17352 | else | |
4c68f4e3 | 17353 | SIM_MIPS_IGEN_ITABLE_FLAGS='$(SIM_MIPS_SINGLE_FLAGS)' |
67c952d1 MF |
17354 | if test "x$SIM_MIPS_GEN" = x"M16"; then : |
17355 | as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS ' $(SIM_MIPS_M16_FLAGS)' | |
17356 | fi | |
abc494c6 MF |
17357 | |
17358 | fi | |
07f60ed8 | 17359 | SIM_MIPS_SINGLE_FLAGS="-F ${sim_mips_single_filter} ${sim_mips_single_machine}" |
111b1cf9 | 17360 | SIM_MIPS_M16_FLAGS="-F ${sim_mips_m16_filter} ${sim_mips_m16_machine}" |
abc494c6 MF |
17361 | |
17362 | ||
17363 | ||
17364 | ||
17365 | ||
17366 | ||
17367 | ||
3a31051b MF |
17368 | if test "$SIM_MIPS_GEN" = "SINGLE"; then |
17369 | SIM_MIPS_GEN_MODE_SINGLE_TRUE= | |
17370 | SIM_MIPS_GEN_MODE_SINGLE_FALSE='#' | |
17371 | else | |
17372 | SIM_MIPS_GEN_MODE_SINGLE_TRUE='#' | |
17373 | SIM_MIPS_GEN_MODE_SINGLE_FALSE= | |
17374 | fi | |
17375 | ||
f6d58d40 MF |
17376 | if test "$SIM_MIPS_GEN" = "M16"; then |
17377 | SIM_MIPS_GEN_MODE_M16_TRUE= | |
17378 | SIM_MIPS_GEN_MODE_M16_FALSE='#' | |
17379 | else | |
17380 | SIM_MIPS_GEN_MODE_M16_TRUE='#' | |
17381 | SIM_MIPS_GEN_MODE_M16_FALSE= | |
17382 | fi | |
17383 | ||
f12c3c63 MF |
17384 | if test "$SIM_MIPS_GEN" = "MULTI"; then |
17385 | SIM_MIPS_GEN_MODE_MULTI_TRUE= | |
17386 | SIM_MIPS_GEN_MODE_MULTI_FALSE='#' | |
17387 | else | |
17388 | SIM_MIPS_GEN_MODE_MULTI_TRUE='#' | |
17389 | SIM_MIPS_GEN_MODE_MULTI_FALSE= | |
17390 | fi | |
5f7e03a6 MF |
17391 | |
17392 | ||
17393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc bitsize settings" >&5 | |
17394 | $as_echo_n "checking for sim ppc bitsize settings... " >&6; } | |
17395 | # Check whether --enable-sim-ppc-bitsize was given. | |
17396 | if test "${enable_sim_ppc_bitsize+set}" = set; then : | |
17397 | enableval=$enable_sim_ppc_bitsize; case "${enableval}" in | |
17398 | 32|64) sim_ppc_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";; | |
17399 | *) as_fn_error $? "\"--enable-sim-ppc-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5;; | |
17400 | esac | |
17401 | else | |
17402 | sim_ppc_bitsize="" | |
17403 | fi | |
17404 | ||
17405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_bitsize" >&5 | |
17406 | $as_echo "$sim_ppc_bitsize" >&6; } | |
17407 | ||
17408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc decode mechanism" >&5 | |
17409 | $as_echo_n "checking for sim ppc decode mechanism... " >&6; } | |
17410 | # Check whether --enable-sim-ppc-decode-mechanism was given. | |
17411 | if test "${enable_sim_ppc_decode_mechanism+set}" = set; then : | |
17412 | enableval=$enable_sim_ppc_decode_mechanism; case "${enableval}" in | |
17413 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-ppc-decode-mechanism=file\"" "$LINENO" 5;; | |
17414 | array|switch|padded-switch|goto-switch) sim_ppc_decode_mechanism="-T ${enableval}";; | |
17415 | *) as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;; | |
17416 | esac | |
17417 | else | |
17418 | sim_ppc_decode_mechanism="" | |
17419 | fi | |
17420 | ||
17421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_decode_mechanism" >&5 | |
17422 | $as_echo "$sim_ppc_decode_mechanism" >&6; } | |
17423 | ||
17424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc default model" >&5 | |
17425 | $as_echo_n "checking for sim ppc default model... " >&6; } | |
17426 | # Check whether --enable-sim-ppc-default-model was given. | |
17427 | if test "${enable_sim_ppc_default_model+set}" = set; then : | |
17428 | enableval=$enable_sim_ppc_default_model; case "${enableval}" in | |
17429 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-ppc-default-model=model\"" "$LINENO" 5;; | |
17430 | *) sim_ppc_default_model="-DWITH_DEFAULT_MODEL=${enableval}";; | |
17431 | esac | |
17432 | else | |
17433 | sim_ppc_default_model="" | |
17434 | fi | |
17435 | ||
17436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_default_model" >&5 | |
17437 | $as_echo "$sim_ppc_default_model" >&6; } | |
17438 | ||
17439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc duplicate settings" >&5 | |
17440 | $as_echo_n "checking for sim ppc duplicate settings... " >&6; } | |
17441 | # Check whether --enable-sim-ppc-duplicate was given. | |
17442 | if test "${enable_sim_ppc_duplicate+set}" = set; then : | |
17443 | enableval=$enable_sim_ppc_duplicate; case "${enableval}" in | |
17444 | yes) sim_ppc_dup="-E";; | |
17445 | no) sim_ppc_dup="";; | |
17446 | *) as_fn_error $? "\"--enable-sim-ppc-duplicate does not take a value\"" "$LINENO" 5;; | |
17447 | esac | |
17448 | else | |
17449 | sim_ppc_dup="-E" | |
17450 | fi | |
17451 | ||
17452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_dup" >&5 | |
17453 | $as_echo "$sim_ppc_dup" >&6; } | |
17454 | ||
17455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc filter rules" >&5 | |
17456 | $as_echo_n "checking for sim ppc filter rules... " >&6; } | |
17457 | # Check whether --enable-sim-ppc-filter was given. | |
17458 | if test "${enable_sim_ppc_filter+set}" = set; then : | |
17459 | enableval=$enable_sim_ppc_filter; case "${enableval}" in | |
17460 | yes) as_fn_error $? "\"--enable-sim-ppc-filter must be specified with a rule to filter or no\"" "$LINENO" 5;; | |
17461 | no) sim_ppc_filter="";; | |
17462 | *) sim_ppc_filter="-F $enableval";; | |
17463 | esac | |
17464 | else | |
17465 | sim_ppc_filter="-F 32,f,o" | |
17466 | fi | |
17467 | ||
17468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_filter" >&5 | |
17469 | $as_echo "$sim_ppc_filter" >&6; } | |
17470 | ||
17471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc float settings" >&5 | |
17472 | $as_echo_n "checking for sim ppc float settings... " >&6; } | |
17473 | # Check whether --enable-sim-ppc-float was given. | |
17474 | if test "${enable_sim_ppc_float+set}" = set; then : | |
17475 | enableval=$enable_sim_ppc_float; case "${enableval}" in | |
17476 | yes | hard) sim_ppc_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";; | |
17477 | no | soft) sim_ppc_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";; | |
17478 | altivec) sim_ppc_float="-DWITH_ALTIVEC" ; sim_ppc_filter="${sim_ppc_filter},av" ;; | |
17479 | *spe*|*simd*) sim_ppc_float="-DWITH_E500" ; sim_ppc_filter="${sim_ppc_filter},e500" ;; | |
17480 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-ppc-float\"" "$LINENO" 5;; | |
17481 | esac | |
17482 | else | |
17483 | case "${target}" in | |
17484 | *altivec*) sim_ppc_float="-DWITH_ALTIVEC" ; sim_ppc_filter="${sim_ppc_filter},av" ;; | |
17485 | *spe*|*simd*) sim_ppc_float="-DWITH_E500" ; sim_ppc_filter="${sim_ppc_filter},e500" ;; | |
17486 | *) sim_ppc_float="" | |
17487 | esac | |
17488 | fi | |
17489 | ||
17490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_float" >&5 | |
17491 | $as_echo "$sim_ppc_float" >&6; } | |
17492 | ||
17493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc hardware settings" >&5 | |
17494 | $as_echo_n "checking for sim ppc hardware settings... " >&6; } | |
17495 | hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide,sem,shm" | |
17496 | # Check whether --enable-sim-ppc-hardware was given. | |
17497 | if test "${enable_sim_ppc_hardware+set}" = set; then : | |
17498 | enableval=$enable_sim_ppc_hardware; case "${enableval}" in | |
17499 | yes) ;; | |
17500 | no) as_fn_error $? "\"List of hardware must be specified for --enable-sim-ppc-hardware\"" "$LINENO" 5;; | |
17501 | ,*) hardware="${hardware}${enableval}";; | |
17502 | *,) hardware="${enableval}${hardware}";; | |
17503 | *) hardware="${enableval}"'';; | |
17504 | esac | |
17505 | fi | |
17506 | ||
17507 | sim_ppc_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'` | |
17508 | sim_ppc_hw_obj=`echo $sim_ppc_hw_src | sed -e 's/\.c/.o/g'` | |
17509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardware" >&5 | |
17510 | $as_echo "$hardware" >&6; } | |
17511 | ||
17512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc icache settings" >&5 | |
17513 | $as_echo_n "checking for sim ppc icache settings... " >&6; } | |
17514 | # Check whether --enable-sim-ppc-icache was given. | |
17515 | if test "${enable_sim_ppc_icache+set}" = set; then : | |
17516 | enableval=$enable_sim_ppc_icache; icache="-R" | |
17517 | case "${enableval}" in | |
17518 | yes) icache="1024"; sim_ppc_icache="-I $icache";; | |
17519 | no) sim_ppc_icache="-R";; | |
17520 | *) icache=1024 | |
17521 | sim_ppc_icache="-" | |
17522 | for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do | |
17523 | case "$x" in | |
17524 | define) sim_ppc_icache="${sim_ppc_icache}R";; | |
17525 | semantic) sim_ppc_icache="${sim_ppc_icache}C";; | |
17526 | insn) sim_ppc_icache="${sim_ppc_icache}S";; | |
17527 | 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;; | |
17528 | *) as_fn_error $? "\"Unknown value $x for --enable-sim-ppc-icache\"" "$LINENO" 5;; | |
17529 | esac | |
17530 | done | |
17531 | sim_ppc_icache="${sim_ppc_icache}I $icache";; | |
17532 | esac | |
17533 | else | |
17534 | sim_ppc_icache="-CSRI 1024" | |
17535 | fi | |
17536 | ||
17537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_icache" >&5 | |
17538 | $as_echo "$sim_ppc_icache" >&6; } | |
17539 | ||
17540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc jump settings" >&5 | |
17541 | $as_echo_n "checking for sim ppc jump settings... " >&6; } | |
17542 | # Check whether --enable-sim-ppc-jump was given. | |
17543 | if test "${enable_sim_ppc_jump+set}" = set; then : | |
17544 | enableval=$enable_sim_ppc_jump; case "${enableval}" in | |
17545 | yes) sim_ppc_jump="-J";; | |
17546 | no) sim_ppc_jump="";; | |
17547 | *) as_fn_error $? "\"--enable-sim-ppc-jump does not take a value\"" "$LINENO" 5;; | |
17548 | esac | |
17549 | else | |
17550 | sim_ppc_jump="" | |
17551 | fi | |
17552 | ||
17553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_jump" >&5 | |
17554 | $as_echo "$sim_ppc_jump" >&6; } | |
17555 | ||
17556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc source debug line numbers" >&5 | |
17557 | $as_echo_n "checking for sim ppc source debug line numbers... " >&6; } | |
17558 | # Check whether --enable-sim-ppc-line-nr was given. | |
17559 | if test "${enable_sim_ppc_line_nr+set}" = set; then : | |
17560 | enableval=$enable_sim_ppc_line_nr; case "${enableval}" in | |
17561 | yes) sim_ppc_line_nr="";; | |
17562 | no) sim_ppc_line_nr="-L";; | |
17563 | *) as_fn_error $? "\"--enable-sim-ppc-line-nr does not take a value\"" "$LINENO" 5;; | |
17564 | esac | |
17565 | else | |
17566 | sim_ppc_line_nr="" | |
17567 | fi | |
17568 | ||
17569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_line_nr" >&5 | |
17570 | $as_echo "$sim_ppc_line_nr" >&6; } | |
17571 | ||
17572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc model" >&5 | |
17573 | $as_echo_n "checking for sim ppc model... " >&6; } | |
17574 | # Check whether --enable-sim-ppc-model was given. | |
17575 | if test "${enable_sim_ppc_model+set}" = set; then : | |
17576 | enableval=$enable_sim_ppc_model; case "${enableval}" in | |
17577 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-ppc-model=model\"" "$LINENO" 5;; | |
17578 | *) sim_ppc_model="-DWITH_MODEL=${enableval}";; | |
17579 | esac | |
17580 | else | |
17581 | sim_ppc_model="" | |
17582 | fi | |
17583 | ||
17584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_model" >&5 | |
17585 | $as_echo "$sim_ppc_model" >&6; } | |
17586 | ||
17587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc model issue" >&5 | |
17588 | $as_echo_n "checking for sim ppc model issue... " >&6; } | |
17589 | # Check whether --enable-sim-ppc-model-issue was given. | |
17590 | if test "${enable_sim_ppc_model_issue+set}" = set; then : | |
17591 | enableval=$enable_sim_ppc_model_issue; case "${enableval}" in | |
17592 | yes) sim_ppc_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";; | |
17593 | no) sim_ppc_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";; | |
17594 | *) as_fn_error $? "\"--enable-sim-ppc-model-issue does not take a value\"" "$LINENO" 5;; | |
17595 | esac | |
17596 | else | |
17597 | sim_ppc_model_issue="" | |
17598 | fi | |
17599 | ||
17600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_model_issue" >&5 | |
17601 | $as_echo "$sim_ppc_model_issue" >&6; } | |
17602 | ||
17603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc event monitoring" >&5 | |
17604 | $as_echo_n "checking for sim ppc event monitoring... " >&6; } | |
17605 | # Check whether --enable-sim-ppc-monitor was given. | |
17606 | if test "${enable_sim_ppc_monitor+set}" = set; then : | |
17607 | enableval=$enable_sim_ppc_monitor; case "${enableval}" in | |
17608 | yes) sim_ppc_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";; | |
17609 | no) sim_ppc_monitor="-DWITH_MON=0";; | |
17610 | instruction) sim_ppc_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";; | |
17611 | memory) sim_ppc_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";; | |
17612 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-ppc-mon\"" "$LINENO" 5;; | |
17613 | esac | |
17614 | else | |
17615 | sim_ppc_monitor="" | |
17616 | fi | |
17617 | ||
17618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_monitor" >&5 | |
17619 | $as_echo "$sim_ppc_monitor" >&6; } | |
17620 | ||
17621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc opcode lookup settings" >&5 | |
17622 | $as_echo_n "checking for sim ppc opcode lookup settings... " >&6; } | |
17623 | # Check whether --enable-sim-ppc-opcode was given. | |
17624 | if test "${enable_sim_ppc_opcode+set}" = set; then : | |
17625 | enableval=$enable_sim_ppc_opcode; case "${enableval}" in | |
17626 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-ppc-opcode=file\"" "$LINENO" 5;; | |
17627 | *) if test -f "${srcdir}/${enableval}"; then | |
17628 | sim_ppc_opcode="${enableval}" | |
17629 | elif test -f "${srcdir}/dc-${enableval}"; then | |
17630 | sim_ppc_opcode="dc-${enableval}" | |
17631 | else | |
17632 | as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5 | |
17633 | fi;; | |
17634 | esac | |
17635 | else | |
17636 | sim_ppc_opcode="dc-complex" | |
17637 | fi | |
17638 | ||
17639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_opcode" >&5 | |
17640 | $as_echo "$sim_ppc_opcode" >&6; } | |
17641 | ||
17642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc smp settings" >&5 | |
17643 | $as_echo_n "checking for sim ppc smp settings... " >&6; } | |
17644 | # Check whether --enable-sim-ppc-smp was given. | |
17645 | if test "${enable_sim_ppc_smp+set}" = set; then : | |
17646 | enableval=$enable_sim_ppc_smp; case "${enableval}" in | |
17647 | yes) sim_ppc_smp="-DWITH_SMP=5" ; sim_ppc_igen_smp="-N 5";; | |
17648 | no) sim_ppc_smp="-DWITH_SMP=0" ; sim_ppc_igen_smp="-N 0";; | |
17649 | *) sim_ppc_smp="-DWITH_SMP=$enableval" ; sim_ppc_igen_smp="-N $enableval";; | |
17650 | esac | |
17651 | else | |
17652 | sim_ppc_smp="-DWITH_SMP=5" ; sim_ppc_igen_smp="-N 5" | |
17653 | fi | |
17654 | ||
17655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_smp" >&5 | |
17656 | $as_echo "$sim_ppc_smp" >&6; } | |
17657 | ||
17658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc switch table settings" >&5 | |
17659 | $as_echo_n "checking for sim ppc switch table settings... " >&6; } | |
17660 | # Check whether --enable-sim-ppc-switch was given. | |
17661 | if test "${enable_sim_ppc_switch+set}" = set; then : | |
17662 | enableval=$enable_sim_ppc_switch; case "${enableval}" in | |
17663 | yes) sim_ppc_switch="-DWITH_SPREG_SWITCH_TABLE";; | |
17664 | no) sim_ppc_switch="";; | |
17665 | *) as_fn_error $? "\"--enable-sim-ppc-switch does not take a value\"" "$LINENO" 5;; | |
17666 | esac | |
17667 | else | |
17668 | sim_ppc_switch="" | |
17669 | fi | |
17670 | ||
17671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_switch" >&5 | |
17672 | $as_echo "$sim_ppc_switch" >&6; } | |
17673 | ||
17674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc timebase" >&5 | |
17675 | $as_echo_n "checking for sim ppc timebase... " >&6; } | |
17676 | # Check whether --enable-sim-ppc-timebase was given. | |
17677 | if test "${enable_sim_ppc_timebase+set}" = set; then : | |
17678 | enableval=$enable_sim_ppc_timebase; case "${enableval}" in | |
17679 | yes) sim_ppc_timebase="-DWITH_TIME_BASE=1";; | |
17680 | no) sim_ppc_timebase="-DWITH_TIME_BASE=0";; | |
17681 | *) as_fn_error $? "\"--enable-sim-ppc-timebase does not take a value\"" "$LINENO" 5;; | |
17682 | esac | |
17683 | else | |
17684 | sim_ppc_timebase="" | |
17685 | fi | |
17686 | ||
17687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_timebase" >&5 | |
17688 | $as_echo "$sim_ppc_timebase" >&6; } | |
17689 | ||
17690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc xor endian settings" >&5 | |
17691 | $as_echo_n "checking for sim ppc xor endian settings... " >&6; } | |
17692 | # Check whether --enable-sim-ppc-xor-endian was given. | |
17693 | if test "${enable_sim_ppc_xor_endian+set}" = set; then : | |
17694 | enableval=$enable_sim_ppc_xor_endian; case "${enableval}" in | |
17695 | yes) sim_ppc_xor_endian="-DWITH_XOR_ENDIAN=8";; | |
17696 | no) sim_ppc_xor_endian="-DWITH_XOR_ENDIAN=0";; | |
17697 | *) sim_ppc_xor_endian="-DWITH_XOR_ENDIAN=$enableval";; | |
17698 | esac | |
17699 | else | |
17700 | sim_ppc_xor_endian="" | |
17701 | fi | |
17702 | ||
17703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_xor_endian" >&5 | |
17704 | $as_echo "$sim_ppc_xor_endian" >&6; } | |
17705 | ||
17706 | ||
17707 | ||
17708 | ||
17709 | ||
17710 | ||
17711 | ||
17712 | ||
17713 | ||
17714 | ||
17715 | ||
17716 | ||
17717 | ||
17718 | ||
17719 | ||
17720 | ||
17721 | ||
17722 | ||
17723 | ||
17724 | ||
f12c3c63 | 17725 | |
abc494c6 | 17726 | |
1787fcc4 MF |
17727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5 |
17728 | $as_echo_n "checking riscv bitsize... " >&6; } | |
17729 | SIM_RISCV_BITSIZE=64 | |
17730 | case $target in #( | |
17731 | riscv32*) : | |
17732 | SIM_RISCV_BITSIZE=32 ;; #( | |
17733 | *) : | |
17734 | ;; | |
17735 | esac | |
4faede61 MF |
17736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_RISCV_BITSIZE" >&5 |
17737 | $as_echo "$SIM_RISCV_BITSIZE" >&6; } | |
1787fcc4 MF |
17738 | |
17739 | ||
e173c80f MF |
17740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5 |
17741 | $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; } | |
17742 | # Check whether --enable-sim-rx-cycle-accurate was given. | |
17743 | if test "${enable_sim_rx_cycle_accurate+set}" = set; then : | |
17744 | enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in | |
17745 | yes | no) ;; | |
17746 | *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;; | |
17747 | esac | |
17748 | fi | |
17749 | ||
17750 | if test "x${enable_sim_rx_cycle_accurate}" != xno; then | |
17751 | SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE" | |
17752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17753 | $as_echo "yes" >&6; } | |
17754 | else | |
17755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17756 | $as_echo "no" >&6; } | |
17757 | fi | |
17758 | ||
17759 | ||
17760 | ||
c67a81c9 | 17761 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in" |
81ecdfbb | 17762 | |
b7026657 | 17763 | cat >confcache <<\_ACEOF |
c906108c SS |
17764 | # This file is a shell script that caches the results of configure |
17765 | # tests run on this system so they can be shared between configure | |
b7026657 AC |
17766 | # scripts and configure runs, see configure's option --config-cache. |
17767 | # It is not useful on other systems. If it contains results you don't | |
17768 | # want to keep, you may remove or edit it. | |
c906108c | 17769 | # |
b7026657 AC |
17770 | # config.status only pays attention to the cache file if you give it |
17771 | # the --recheck option to rerun configure. | |
c906108c | 17772 | # |
b7026657 AC |
17773 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
17774 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17775 | # following values. | |
17776 | ||
17777 | _ACEOF | |
17778 | ||
c906108c SS |
17779 | # The following way of writing the cache mishandles newlines in values, |
17780 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 17781 | # So, we kill variables containing newlines. |
c906108c SS |
17782 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17783 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
17784 | ( |
17785 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17786 | eval ac_val=\$$ac_var | |
17787 | case $ac_val in #( | |
17788 | *${as_nl}*) | |
17789 | case $ac_var in #( | |
17790 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17791 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17792 | esac | |
17793 | case $ac_var in #( | |
17794 | _ | IFS | as_nl) ;; #( | |
17795 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17796 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17797 | esac ;; | |
17798 | esac | |
17799 | done | |
17800 | ||
b7026657 | 17801 | (set) 2>&1 | |
81ecdfbb RW |
17802 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17803 | *${as_nl}ac_space=\ *) | |
17804 | # `set' does not quote correctly, so add quotes: double-quote | |
17805 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b7026657 AC |
17806 | sed -n \ |
17807 | "s/'/'\\\\''/g; | |
17808 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 17809 | ;; #( |
b7026657 AC |
17810 | *) |
17811 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 17812 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 17813 | ;; |
81ecdfbb RW |
17814 | esac | |
17815 | sort | |
17816 | ) | | |
b7026657 | 17817 | sed ' |
81ecdfbb | 17818 | /^ac_cv_env_/b end |
b7026657 | 17819 | t clear |
81ecdfbb | 17820 | :clear |
b7026657 AC |
17821 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17822 | t end | |
81ecdfbb RW |
17823 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17824 | :end' >>confcache | |
17825 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17826 | if test -w "$cache_file"; then | |
d0ac1c44 | 17827 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
17828 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17829 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
17830 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17831 | cat confcache >"$cache_file" | |
17832 | else | |
17833 | case $cache_file in #( | |
17834 | */* | ?:*) | |
17835 | mv -f confcache "$cache_file"$$ && | |
17836 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17837 | *) | |
17838 | mv -f confcache "$cache_file" ;; | |
17839 | esac | |
17840 | fi | |
17841 | fi | |
c906108c | 17842 | else |
81ecdfbb RW |
17843 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17844 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
c906108c SS |
17845 | fi |
17846 | fi | |
17847 | rm -f confcache | |
17848 | ||
c906108c SS |
17849 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17850 | # Let make expand exec_prefix. | |
17851 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17852 | ||
b15c5d7a | 17853 | DEFS=-DHAVE_CONFIG_H |
b7026657 AC |
17854 | |
17855 | ac_libobjs= | |
17856 | ac_ltlibobjs= | |
d0ac1c44 | 17857 | U= |
b7026657 AC |
17858 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17859 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
17860 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
17861 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
17862 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
17863 | # will be set to the directory where LIBOBJS objects are built. | |
17864 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17865 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b7026657 AC |
17866 | done |
17867 | LIBOBJS=$ac_libobjs | |
c906108c | 17868 | |
b7026657 AC |
17869 | LTLIBOBJS=$ac_ltlibobjs |
17870 | ||
17871 | ||
c2783492 | 17872 | |
8c379db2 TT |
17873 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
17874 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
17875 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17876 | fi | |
6bddc3e8 MF |
17877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
17878 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
17879 | if test -n "$am_sleep_pid"; then | |
17880 | # Hide warnings about reused PIDs. | |
17881 | wait $am_sleep_pid 2>/dev/null | |
17882 | fi | |
17883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
17884 | $as_echo "done" >&6; } | |
6bddc3e8 MF |
17885 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
17886 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
17887 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17888 | fi | |
17889 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
17890 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
17891 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17892 | fi | |
c2783492 MF |
17893 | if test -n "$EXEEXT"; then |
17894 | am__EXEEXT_TRUE= | |
17895 | am__EXEEXT_FALSE='#' | |
17896 | else | |
17897 | am__EXEEXT_TRUE='#' | |
17898 | am__EXEEXT_FALSE= | |
6bddc3e8 | 17899 | fi |
b7026657 | 17900 | |
65dcce8f MF |
17901 | if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then |
17902 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined. | |
17903 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17904 | fi | |
65dcce8f MF |
17905 | if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then |
17906 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined. | |
17907 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17908 | fi | |
17909 | if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then | |
17910 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined. | |
17911 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17912 | fi | |
17913 | if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then | |
17914 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined. | |
17915 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17916 | fi | |
17917 | if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then | |
17918 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined. | |
17919 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17920 | fi | |
17921 | if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then | |
17922 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined. | |
17923 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17924 | fi | |
17925 | if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then | |
17926 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined. | |
17927 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17928 | fi | |
17929 | if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then | |
17930 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined. | |
17931 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17932 | fi | |
17933 | if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then | |
17934 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined. | |
17935 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17936 | fi | |
17937 | if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then | |
17938 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined. | |
17939 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17940 | fi | |
17941 | if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then | |
17942 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined. | |
17943 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17944 | fi | |
17945 | if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then | |
17946 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined. | |
17947 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17948 | fi | |
17949 | if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then | |
17950 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined. | |
17951 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17952 | fi | |
17953 | if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then | |
17954 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined. | |
17955 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17956 | fi | |
17957 | if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then | |
17958 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined. | |
17959 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17960 | fi | |
17961 | if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then | |
17962 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined. | |
17963 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17964 | fi | |
17965 | if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then | |
17966 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined. | |
17967 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17968 | fi | |
17969 | if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then | |
17970 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined. | |
17971 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17972 | fi | |
17973 | if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then | |
17974 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined. | |
17975 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17976 | fi | |
17977 | if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then | |
17978 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined. | |
17979 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17980 | fi | |
17981 | if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then | |
17982 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined. | |
17983 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17984 | fi | |
17985 | if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then | |
17986 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined. | |
17987 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17988 | fi | |
17989 | if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then | |
17990 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined. | |
17991 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17992 | fi | |
17993 | if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then | |
17994 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined. | |
17995 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17996 | fi | |
17997 | if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then | |
17998 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined. | |
17999 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18000 | fi | |
18001 | if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then | |
18002 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined. | |
18003 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18004 | fi | |
18005 | if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then | |
18006 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined. | |
18007 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18008 | fi | |
18009 | if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then | |
18010 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined. | |
18011 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18012 | fi | |
18013 | if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then | |
18014 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined. | |
18015 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18016 | fi | |
18017 | if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then | |
18018 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined. | |
18019 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18020 | fi | |
c0c25232 MF |
18021 | if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then |
18022 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_examples\" was never defined. | |
18023 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18024 | fi | |
fb2c495f MF |
18025 | if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then |
18026 | as_fn_error $? "conditional \"ENABLE_SIM\" was never defined. | |
18027 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18028 | fi | |
456ef1c1 MF |
18029 | if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then |
18030 | as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined. | |
18031 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18032 | fi | |
3a31051b MF |
18033 | if test -z "${SIM_MIPS_GEN_MODE_SINGLE_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_SINGLE_FALSE}"; then |
18034 | as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_SINGLE\" was never defined. | |
18035 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18036 | fi | |
f6d58d40 MF |
18037 | if test -z "${SIM_MIPS_GEN_MODE_M16_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_M16_FALSE}"; then |
18038 | as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_M16\" was never defined. | |
18039 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18040 | fi | |
f12c3c63 MF |
18041 | if test -z "${SIM_MIPS_GEN_MODE_MULTI_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_MULTI_FALSE}"; then |
18042 | as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_MULTI\" was never defined. | |
18043 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18044 | fi | |
c2783492 | 18045 | |
d0ac1c44 | 18046 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 18047 | ac_write_fail=0 |
b7026657 AC |
18048 | ac_clean_files_save=$ac_clean_files |
18049 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
18050 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
18051 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18052 | as_write_fail=0 | |
18053 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b7026657 AC |
18054 | #! $SHELL |
18055 | # Generated by $as_me. | |
c906108c | 18056 | # Run this file to recreate the current configuration. |
c906108c | 18057 | # Compiler output produced by configure, useful for debugging |
b7026657 AC |
18058 | # configure, is in config.log if it exists. |
18059 | ||
18060 | debug=false | |
18061 | ac_cs_recheck=false | |
18062 | ac_cs_silent=false | |
b7026657 | 18063 | |
81ecdfbb RW |
18064 | SHELL=\${CONFIG_SHELL-$SHELL} |
18065 | export SHELL | |
18066 | _ASEOF | |
18067 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18068 | ## -------------------- ## | |
18069 | ## M4sh Initialization. ## | |
18070 | ## -------------------- ## | |
18071 | ||
18072 | # Be more Bourne compatible | |
18073 | DUALCASE=1; export DUALCASE # for MKS sh | |
18074 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b7026657 AC |
18075 | emulate sh |
18076 | NULLCMD=: | |
81ecdfbb | 18077 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b7026657 AC |
18078 | # is contrary to our usage. Disable this feature. |
18079 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
18080 | setopt NO_GLOB_SUBST |
18081 | else | |
18082 | case `(set -o) 2>/dev/null` in #( | |
18083 | *posix*) : | |
18084 | set -o posix ;; #( | |
18085 | *) : | |
18086 | ;; | |
18087 | esac | |
b7026657 | 18088 | fi |
c906108c | 18089 | |
81ecdfbb RW |
18090 | |
18091 | as_nl=' | |
18092 | ' | |
18093 | export as_nl | |
18094 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18095 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18096 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18097 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18098 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18099 | # but without wasting forks for bash or zsh. | |
18100 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18101 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18102 | as_echo='print -r --' | |
18103 | as_echo_n='print -rn --' | |
18104 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18105 | as_echo='printf %s\n' | |
18106 | as_echo_n='printf %s' | |
b7026657 | 18107 | else |
81ecdfbb RW |
18108 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
18109 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18110 | as_echo_n='/usr/ucb/echo -n' | |
18111 | else | |
18112 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18113 | as_echo_n_body='eval | |
18114 | arg=$1; | |
18115 | case $arg in #( | |
18116 | *"$as_nl"*) | |
18117 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18118 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18119 | esac; | |
18120 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18121 | ' | |
18122 | export as_echo_n_body | |
18123 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18124 | fi | |
18125 | export as_echo_body | |
18126 | as_echo='sh -c $as_echo_body as_echo' | |
18127 | fi | |
18128 | ||
18129 | # The user is always right. | |
18130 | if test "${PATH_SEPARATOR+set}" != set; then | |
18131 | PATH_SEPARATOR=: | |
18132 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18133 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18134 | PATH_SEPARATOR=';' | |
18135 | } | |
b7026657 AC |
18136 | fi |
18137 | ||
18138 | ||
81ecdfbb RW |
18139 | # IFS |
18140 | # We need space, tab and new line, in precisely that order. Quoting is | |
18141 | # there to prevent editors from complaining about space-tab. | |
18142 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18143 | # splitting by setting IFS to empty value.) | |
18144 | IFS=" "" $as_nl" | |
18145 | ||
18146 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 18147 | as_myself= |
81ecdfbb RW |
18148 | case $0 in #(( |
18149 | *[\\/]* ) as_myself=$0 ;; | |
18150 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18151 | for as_dir in $PATH | |
18152 | do | |
18153 | IFS=$as_save_IFS | |
18154 | test -z "$as_dir" && as_dir=. | |
18155 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18156 | done | |
18157 | IFS=$as_save_IFS | |
18158 | ||
18159 | ;; | |
18160 | esac | |
18161 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18162 | # in which case we are not to be found in the path. | |
18163 | if test "x$as_myself" = x; then | |
18164 | as_myself=$0 | |
18165 | fi | |
18166 | if test ! -f "$as_myself"; then | |
18167 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18168 | exit 1 | |
18169 | fi | |
18170 | ||
18171 | # Unset variables that we do not need and which cause bugs (e.g. in | |
18172 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18173 | # suppresses any "Segmentation fault" message there. '((' could | |
18174 | # trigger a bug in pdksh 5.2.14. | |
18175 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18176 | do eval test x\${$as_var+set} = xset \ | |
18177 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18178 | done | |
b7026657 AC |
18179 | PS1='$ ' |
18180 | PS2='> ' | |
18181 | PS4='+ ' | |
18182 | ||
18183 | # NLS nuisances. | |
81ecdfbb RW |
18184 | LC_ALL=C |
18185 | export LC_ALL | |
18186 | LANGUAGE=C | |
18187 | export LANGUAGE | |
18188 | ||
18189 | # CDPATH. | |
18190 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18191 | ||
18192 | ||
d0ac1c44 SM |
18193 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18194 | # ---------------------------------------- | |
81ecdfbb RW |
18195 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18196 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 18197 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
18198 | as_fn_error () |
18199 | { | |
d0ac1c44 SM |
18200 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18201 | if test "$4"; then | |
18202 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18203 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b7026657 | 18204 | fi |
d0ac1c44 | 18205 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
18206 | as_fn_exit $as_status |
18207 | } # as_fn_error | |
c906108c | 18208 | |
81ecdfbb RW |
18209 | |
18210 | # as_fn_set_status STATUS | |
18211 | # ----------------------- | |
18212 | # Set $? to STATUS, without forking. | |
18213 | as_fn_set_status () | |
18214 | { | |
18215 | return $1 | |
18216 | } # as_fn_set_status | |
18217 | ||
18218 | # as_fn_exit STATUS | |
18219 | # ----------------- | |
18220 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18221 | as_fn_exit () | |
18222 | { | |
18223 | set +e | |
18224 | as_fn_set_status $1 | |
18225 | exit $1 | |
18226 | } # as_fn_exit | |
18227 | ||
18228 | # as_fn_unset VAR | |
18229 | # --------------- | |
18230 | # Portably unset VAR. | |
18231 | as_fn_unset () | |
18232 | { | |
18233 | { eval $1=; unset $1;} | |
18234 | } | |
18235 | as_unset=as_fn_unset | |
18236 | # as_fn_append VAR VALUE | |
18237 | # ---------------------- | |
18238 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18239 | # advantage of any shell optimizations that allow amortized linear growth over | |
18240 | # repeated appends, instead of the typical quadratic growth present in naive | |
18241 | # implementations. | |
18242 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18243 | eval 'as_fn_append () | |
18244 | { | |
18245 | eval $1+=\$2 | |
18246 | }' | |
18247 | else | |
18248 | as_fn_append () | |
18249 | { | |
18250 | eval $1=\$$1\$2 | |
18251 | } | |
18252 | fi # as_fn_append | |
18253 | ||
18254 | # as_fn_arith ARG... | |
18255 | # ------------------ | |
18256 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18257 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18258 | # must be portable across $(()) and expr. | |
18259 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18260 | eval 'as_fn_arith () | |
18261 | { | |
18262 | as_val=$(( $* )) | |
18263 | }' | |
18264 | else | |
18265 | as_fn_arith () | |
18266 | { | |
18267 | as_val=`expr "$@" || test $? -eq 1` | |
18268 | } | |
18269 | fi # as_fn_arith | |
18270 | ||
18271 | ||
18272 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
18273 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 AC |
18274 | as_expr=expr |
18275 | else | |
18276 | as_expr=false | |
18277 | fi | |
c906108c | 18278 | |
81ecdfbb | 18279 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 AC |
18280 | as_basename=basename |
18281 | else | |
18282 | as_basename=false | |
18283 | fi | |
c906108c | 18284 | |
81ecdfbb RW |
18285 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18286 | as_dirname=dirname | |
18287 | else | |
18288 | as_dirname=false | |
18289 | fi | |
c906108c | 18290 | |
81ecdfbb | 18291 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
18292 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18293 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18294 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
18295 | $as_echo X/"$0" | | |
18296 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18297 | s//\1/ | |
18298 | q | |
18299 | } | |
18300 | /^X\/\(\/\/\)$/{ | |
18301 | s//\1/ | |
18302 | q | |
18303 | } | |
18304 | /^X\/\(\/\).*/{ | |
18305 | s//\1/ | |
18306 | q | |
18307 | } | |
18308 | s/.*/./; q'` | |
b7026657 | 18309 | |
fdd6fa61 AG |
18310 | # Avoid depending upon Character Ranges. |
18311 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18312 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18313 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18314 | as_cr_digits='0123456789' | |
18315 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18316 | ||
81ecdfbb RW |
18317 | ECHO_C= ECHO_N= ECHO_T= |
18318 | case `echo -n x` in #((((( | |
18319 | -n*) | |
18320 | case `echo 'xy\c'` in | |
18321 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18322 | xy) ECHO_C='\c';; | |
18323 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18324 | ECHO_T=' ';; | |
18325 | esac;; | |
18326 | *) | |
18327 | ECHO_N='-n';; | |
b7026657 AC |
18328 | esac |
18329 | ||
81ecdfbb RW |
18330 | rm -f conf$$ conf$$.exe conf$$.file |
18331 | if test -d conf$$.dir; then | |
18332 | rm -f conf$$.dir/conf$$.file | |
b7026657 | 18333 | else |
81ecdfbb RW |
18334 | rm -f conf$$.dir |
18335 | mkdir conf$$.dir 2>/dev/null | |
b7026657 | 18336 | fi |
81ecdfbb RW |
18337 | if (echo >conf$$.file) 2>/dev/null; then |
18338 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
fdd6fa61 | 18339 | as_ln_s='ln -s' |
81ecdfbb RW |
18340 | # ... but there are two gotchas: |
18341 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18342 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 18343 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 18344 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 18345 | as_ln_s='cp -pR' |
81ecdfbb RW |
18346 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18347 | as_ln_s=ln | |
18348 | else | |
d0ac1c44 | 18349 | as_ln_s='cp -pR' |
fdd6fa61 | 18350 | fi |
b7026657 | 18351 | else |
d0ac1c44 | 18352 | as_ln_s='cp -pR' |
b7026657 | 18353 | fi |
81ecdfbb RW |
18354 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18355 | rmdir conf$$.dir 2>/dev/null | |
18356 | ||
18357 | ||
18358 | # as_fn_mkdir_p | |
18359 | # ------------- | |
18360 | # Create "$as_dir" as a directory, including parents if necessary. | |
18361 | as_fn_mkdir_p () | |
18362 | { | |
b7026657 | 18363 | |
81ecdfbb RW |
18364 | case $as_dir in #( |
18365 | -*) as_dir=./$as_dir;; | |
18366 | esac | |
18367 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18368 | as_dirs= | |
18369 | while :; do | |
18370 | case $as_dir in #( | |
18371 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18372 | *) as_qdir=$as_dir;; | |
18373 | esac | |
18374 | as_dirs="'$as_qdir' $as_dirs" | |
18375 | as_dir=`$as_dirname -- "$as_dir" || | |
18376 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18377 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18378 | X"$as_dir" : 'X\(//\)$' \| \ | |
18379 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18380 | $as_echo X"$as_dir" | | |
18381 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18382 | s//\1/ | |
18383 | q | |
18384 | } | |
18385 | /^X\(\/\/\)[^/].*/{ | |
18386 | s//\1/ | |
18387 | q | |
18388 | } | |
18389 | /^X\(\/\/\)$/{ | |
18390 | s//\1/ | |
18391 | q | |
18392 | } | |
18393 | /^X\(\/\).*/{ | |
18394 | s//\1/ | |
18395 | q | |
18396 | } | |
18397 | s/.*/./; q'` | |
18398 | test -d "$as_dir" && break | |
18399 | done | |
18400 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 18401 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
18402 | |
18403 | ||
18404 | } # as_fn_mkdir_p | |
b7026657 | 18405 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 18406 | as_mkdir_p='mkdir -p "$as_dir"' |
b7026657 AC |
18407 | else |
18408 | test -d ./-p && rmdir ./-p | |
18409 | as_mkdir_p=false | |
18410 | fi | |
18411 | ||
d0ac1c44 SM |
18412 | |
18413 | # as_fn_executable_p FILE | |
18414 | # ----------------------- | |
18415 | # Test if FILE is an executable regular file. | |
18416 | as_fn_executable_p () | |
18417 | { | |
18418 | test -f "$1" && test -x "$1" | |
18419 | } # as_fn_executable_p | |
18420 | as_test_x='test -x' | |
18421 | as_executable_p=as_fn_executable_p | |
b7026657 AC |
18422 | |
18423 | # Sed expression to map a string onto a valid CPP name. | |
18424 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18425 | ||
18426 | # Sed expression to map a string onto a valid variable name. | |
18427 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18428 | ||
18429 | ||
b7026657 | 18430 | exec 6>&1 |
81ecdfbb RW |
18431 | ## ----------------------------------- ## |
18432 | ## Main body of $CONFIG_STATUS script. ## | |
18433 | ## ----------------------------------- ## | |
18434 | _ASEOF | |
18435 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
18436 | ||
18437 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18438 | # Save the log message, to keep $0 and so on meaningful, and to | |
b7026657 | 18439 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
18440 | # values after options handling. |
18441 | ac_log=" | |
6bddc3e8 | 18442 | This file was extended by sim $as_me 0, which was |
d0ac1c44 | 18443 | generated by GNU Autoconf 2.69. Invocation command line was |
b7026657 AC |
18444 | |
18445 | CONFIG_FILES = $CONFIG_FILES | |
18446 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18447 | CONFIG_LINKS = $CONFIG_LINKS | |
18448 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18449 | $ $0 $@ | |
18450 | ||
81ecdfbb RW |
18451 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18452 | " | |
18453 | ||
b7026657 AC |
18454 | _ACEOF |
18455 | ||
81ecdfbb RW |
18456 | case $ac_config_files in *" |
18457 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18458 | esac | |
b7026657 | 18459 | |
b15c5d7a MF |
18460 | case $ac_config_headers in *" |
18461 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18462 | esac | |
fdd6fa61 | 18463 | |
fdd6fa61 | 18464 | |
81ecdfbb RW |
18465 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18466 | # Files that config.status was made for. | |
18467 | config_files="$ac_config_files" | |
b15c5d7a | 18468 | config_headers="$ac_config_headers" |
6bddc3e8 | 18469 | config_commands="$ac_config_commands" |
b7026657 | 18470 | |
81ecdfbb | 18471 | _ACEOF |
fdd6fa61 | 18472 | |
81ecdfbb | 18473 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 | 18474 | ac_cs_usage="\ |
81ecdfbb RW |
18475 | \`$as_me' instantiates files and other configuration actions |
18476 | from templates according to the current configuration. Unless the files | |
18477 | and actions are specified as TAGs, all are instantiated by default. | |
b7026657 | 18478 | |
81ecdfbb | 18479 | Usage: $0 [OPTION]... [TAG]... |
b7026657 AC |
18480 | |
18481 | -h, --help print this help, then exit | |
81ecdfbb | 18482 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 18483 | --config print configuration, then exit |
81ecdfbb RW |
18484 | -q, --quiet, --silent |
18485 | do not print progress messages | |
b7026657 AC |
18486 | -d, --debug don't remove temporary files |
18487 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
18488 | --file=FILE[:TEMPLATE] |
18489 | instantiate the configuration file FILE | |
b15c5d7a MF |
18490 | --header=FILE[:TEMPLATE] |
18491 | instantiate the configuration header FILE | |
b7026657 AC |
18492 | |
18493 | Configuration files: | |
18494 | $config_files | |
18495 | ||
b15c5d7a MF |
18496 | Configuration headers: |
18497 | $config_headers | |
18498 | ||
6bddc3e8 MF |
18499 | Configuration commands: |
18500 | $config_commands | |
18501 | ||
18502 | Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. | |
18503 | sim home page: <https://sourceware.org/gdb/wiki/Sim/>." | |
fdd6fa61 | 18504 | |
81ecdfbb RW |
18505 | _ACEOF |
18506 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 18507 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b7026657 | 18508 | ac_cs_version="\\ |
6bddc3e8 | 18509 | sim config.status 0 |
d0ac1c44 SM |
18510 | configured by $0, generated by GNU Autoconf 2.69, |
18511 | with options \\"\$ac_cs_config\\" | |
b7026657 | 18512 | |
d0ac1c44 | 18513 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
18514 | This config.status script is free software; the Free Software Foundation |
18515 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
18516 | |
18517 | ac_pwd='$ac_pwd' | |
18518 | srcdir='$srcdir' | |
18519 | INSTALL='$INSTALL' | |
6bddc3e8 MF |
18520 | MKDIR_P='$MKDIR_P' |
18521 | AWK='$AWK' | |
81ecdfbb | 18522 | test -n "\$AWK" || AWK=awk |
b7026657 AC |
18523 | _ACEOF |
18524 | ||
81ecdfbb RW |
18525 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18526 | # The default lists apply if the user does not specify any file. | |
b7026657 AC |
18527 | ac_need_defaults=: |
18528 | while test $# != 0 | |
18529 | do | |
18530 | case $1 in | |
d0ac1c44 | 18531 | --*=?*) |
81ecdfbb RW |
18532 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18533 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b7026657 AC |
18534 | ac_shift=: |
18535 | ;; | |
d0ac1c44 SM |
18536 | --*=) |
18537 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18538 | ac_optarg= | |
18539 | ac_shift=: | |
18540 | ;; | |
81ecdfbb | 18541 | *) |
b7026657 AC |
18542 | ac_option=$1 |
18543 | ac_optarg=$2 | |
18544 | ac_shift=shift | |
18545 | ;; | |
b7026657 AC |
18546 | esac |
18547 | ||
18548 | case $ac_option in | |
18549 | # Handling of the options. | |
b7026657 AC |
18550 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18551 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
18552 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
18553 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
18554 | --config | --confi | --conf | --con | --co | --c ) |
18555 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 18556 | --debug | --debu | --deb | --de | --d | -d ) |
b7026657 AC |
18557 | debug=: ;; |
18558 | --file | --fil | --fi | --f ) | |
18559 | $ac_shift | |
81ecdfbb RW |
18560 | case $ac_optarg in |
18561 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 18562 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
18563 | esac |
18564 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
fdd6fa61 | 18565 | ac_need_defaults=false;; |
b15c5d7a MF |
18566 | --header | --heade | --head | --hea ) |
18567 | $ac_shift | |
18568 | case $ac_optarg in | |
18569 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18570 | esac | |
18571 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
18572 | ac_need_defaults=false;; | |
18573 | --he | --h) | |
18574 | # Conflict between --help and --header | |
18575 | as_fn_error $? "ambiguous option: \`$1' | |
18576 | Try \`$0 --help' for more information.";; | |
18577 | --help | --hel | -h ) | |
81ecdfbb | 18578 | $as_echo "$ac_cs_usage"; exit ;; |
b7026657 AC |
18579 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18580 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18581 | ac_cs_silent=: ;; | |
18582 | ||
18583 | # This is an error. | |
d0ac1c44 | 18584 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 18585 | Try \`$0 --help' for more information." ;; |
b7026657 | 18586 | |
81ecdfbb RW |
18587 | *) as_fn_append ac_config_targets " $1" |
18588 | ac_need_defaults=false ;; | |
b7026657 AC |
18589 | |
18590 | esac | |
18591 | shift | |
c906108c | 18592 | done |
b7026657 AC |
18593 | |
18594 | ac_configure_extra_args= | |
18595 | ||
18596 | if $ac_cs_silent; then | |
18597 | exec 6>/dev/null | |
18598 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
c906108c | 18599 | fi |
c906108c | 18600 | |
b7026657 | 18601 | _ACEOF |
81ecdfbb | 18602 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b7026657 | 18603 | if \$ac_cs_recheck; then |
d0ac1c44 | 18604 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
18605 | shift |
18606 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18607 | CONFIG_SHELL='$SHELL' | |
18608 | export CONFIG_SHELL | |
18609 | exec "\$@" | |
b7026657 | 18610 | fi |
c906108c | 18611 | |
b7026657 | 18612 | _ACEOF |
81ecdfbb RW |
18613 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18614 | exec 5>>config.log | |
18615 | { | |
18616 | echo | |
18617 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18618 | ## Running $as_me. ## | |
18619 | _ASBOX | |
18620 | $as_echo "$ac_log" | |
18621 | } >&5 | |
b7026657 | 18622 | |
81ecdfbb RW |
18623 | _ACEOF |
18624 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6bddc3e8 MF |
18625 | # |
18626 | # INIT-COMMANDS | |
18627 | # | |
b5689863 MF |
18628 | |
18629 | ||
18630 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18631 | # if CDPATH is set. | |
18632 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18633 | ||
18634 | sed_quote_subst='$sed_quote_subst' | |
18635 | double_quote_subst='$double_quote_subst' | |
18636 | delay_variable_subst='$delay_variable_subst' | |
18637 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
18638 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
18639 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
18640 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
18641 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
18642 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
18643 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
18644 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
18645 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
18646 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
18647 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
18648 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
18649 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
18650 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
18651 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
18652 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
18653 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
18654 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
18655 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
18656 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
18657 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
18658 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
18659 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
18660 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
18661 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
18662 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
18663 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
18664 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
18665 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
18666 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
18667 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
18668 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
18669 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
18670 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
18671 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
18672 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
18673 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
18674 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18675 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18676 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18677 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
18678 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
18679 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
18680 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
18681 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
18682 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
18683 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
18684 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
18685 | 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"`' | |
18686 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
18687 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
18688 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
18689 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
18690 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
18691 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
18692 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
18693 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
18694 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
18695 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
18696 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
18697 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
18698 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
18699 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
18700 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
18701 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18702 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
18703 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
18704 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18705 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18706 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
18707 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
18708 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18709 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18710 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18711 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
18712 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18713 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
18714 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18715 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18716 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18717 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
18718 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
18719 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
18720 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
18721 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
18722 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18723 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
18724 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
18725 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
18726 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
18727 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
18728 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
18729 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
18730 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
18731 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
18732 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18733 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
18734 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18735 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
18736 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
18737 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
18738 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18739 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
18740 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
18741 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
18742 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
18743 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
18744 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18745 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18746 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
18747 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
18748 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
18749 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
18750 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
18751 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
18752 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
18753 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
18754 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
18755 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
18756 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
18757 | ||
18758 | LTCC='$LTCC' | |
18759 | LTCFLAGS='$LTCFLAGS' | |
18760 | compiler='$compiler_DEFAULT' | |
18761 | ||
18762 | # A function that is used when there is no print builtin or printf. | |
18763 | func_fallback_echo () | |
18764 | { | |
18765 | eval 'cat <<_LTECHO_EOF | |
18766 | \$1 | |
18767 | _LTECHO_EOF' | |
18768 | } | |
18769 | ||
18770 | # Quote evaled strings. | |
18771 | for var in SHELL \ | |
18772 | ECHO \ | |
18773 | SED \ | |
18774 | GREP \ | |
18775 | EGREP \ | |
18776 | FGREP \ | |
18777 | LD \ | |
18778 | NM \ | |
18779 | LN_S \ | |
18780 | lt_SP2NL \ | |
18781 | lt_NL2SP \ | |
18782 | reload_flag \ | |
18783 | OBJDUMP \ | |
18784 | deplibs_check_method \ | |
18785 | file_magic_cmd \ | |
18786 | AR \ | |
18787 | AR_FLAGS \ | |
18788 | STRIP \ | |
18789 | RANLIB \ | |
18790 | CC \ | |
18791 | CFLAGS \ | |
18792 | compiler \ | |
18793 | lt_cv_sys_global_symbol_pipe \ | |
18794 | lt_cv_sys_global_symbol_to_cdecl \ | |
18795 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18796 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
18797 | lt_prog_compiler_no_builtin_flag \ | |
18798 | lt_prog_compiler_wl \ | |
18799 | lt_prog_compiler_pic \ | |
18800 | lt_prog_compiler_static \ | |
18801 | lt_cv_prog_compiler_c_o \ | |
18802 | need_locks \ | |
18803 | DSYMUTIL \ | |
18804 | NMEDIT \ | |
18805 | LIPO \ | |
18806 | OTOOL \ | |
18807 | OTOOL64 \ | |
18808 | shrext_cmds \ | |
18809 | export_dynamic_flag_spec \ | |
18810 | whole_archive_flag_spec \ | |
18811 | compiler_needs_object \ | |
18812 | with_gnu_ld \ | |
18813 | allow_undefined_flag \ | |
18814 | no_undefined_flag \ | |
18815 | hardcode_libdir_flag_spec \ | |
18816 | hardcode_libdir_flag_spec_ld \ | |
18817 | hardcode_libdir_separator \ | |
18818 | fix_srcfile_path \ | |
18819 | exclude_expsyms \ | |
18820 | include_expsyms \ | |
18821 | file_list_spec \ | |
18822 | variables_saved_for_relink \ | |
18823 | libname_spec \ | |
18824 | library_names_spec \ | |
18825 | soname_spec \ | |
18826 | install_override_mode \ | |
18827 | finish_eval \ | |
18828 | old_striplib \ | |
18829 | striplib; do | |
18830 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
18831 | *[\\\\\\\`\\"\\\$]*) | |
18832 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
18833 | ;; | |
18834 | *) | |
18835 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18836 | ;; | |
18837 | esac | |
18838 | done | |
18839 | ||
18840 | # Double-quote double-evaled strings. | |
18841 | for var in reload_cmds \ | |
18842 | old_postinstall_cmds \ | |
18843 | old_postuninstall_cmds \ | |
18844 | old_archive_cmds \ | |
18845 | extract_expsyms_cmds \ | |
18846 | old_archive_from_new_cmds \ | |
18847 | old_archive_from_expsyms_cmds \ | |
18848 | archive_cmds \ | |
18849 | archive_expsym_cmds \ | |
18850 | module_cmds \ | |
18851 | module_expsym_cmds \ | |
18852 | export_symbols_cmds \ | |
18853 | prelink_cmds \ | |
18854 | postinstall_cmds \ | |
18855 | postuninstall_cmds \ | |
18856 | finish_cmds \ | |
18857 | sys_lib_search_path_spec \ | |
18858 | sys_lib_dlsearch_path_spec; do | |
18859 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
18860 | *[\\\\\\\`\\"\\\$]*) | |
18861 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
18862 | ;; | |
18863 | *) | |
18864 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18865 | ;; | |
18866 | esac | |
18867 | done | |
18868 | ||
18869 | ac_aux_dir='$ac_aux_dir' | |
18870 | xsi_shell='$xsi_shell' | |
18871 | lt_shell_append='$lt_shell_append' | |
18872 | ||
18873 | # See if we are running on zsh, and set the options which allow our | |
18874 | # commands through without removal of \ escapes INIT. | |
18875 | if test -n "\${ZSH_VERSION+set}" ; then | |
18876 | setopt NO_GLOB_SUBST | |
18877 | fi | |
18878 | ||
18879 | ||
18880 | PACKAGE='$PACKAGE' | |
18881 | VERSION='$VERSION' | |
18882 | TIMESTAMP='$TIMESTAMP' | |
18883 | RM='$RM' | |
18884 | ofile='$ofile' | |
18885 | ||
18886 | ||
18887 | ||
6bddc3e8 MF |
18888 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
18889 | ||
81ecdfbb | 18890 | _ACEOF |
b7026657 | 18891 | |
81ecdfbb | 18892 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
df1756f4 | 18893 | |
81ecdfbb | 18894 | # Handling of arguments. |
b7026657 AC |
18895 | for ac_config_target in $ac_config_targets |
18896 | do | |
81ecdfbb | 18897 | case $ac_config_target in |
b15c5d7a | 18898 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
b5689863 | 18899 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
6bddc3e8 | 18900 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
23912acd | 18901 | "aarch64/.gdbinit") CONFIG_FILES="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18902 | "avr/.gdbinit") CONFIG_FILES="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18903 | "bfin/.gdbinit") CONFIG_FILES="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18904 | "bpf/.gdbinit") CONFIG_FILES="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18905 | "cr16/.gdbinit") CONFIG_FILES="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18906 | "cris/.gdbinit") CONFIG_FILES="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18907 | "d10v/.gdbinit") CONFIG_FILES="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18908 | "frv/.gdbinit") CONFIG_FILES="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18909 | "ft32/.gdbinit") CONFIG_FILES="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18910 | "h8300/.gdbinit") CONFIG_FILES="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18911 | "iq2000/.gdbinit") CONFIG_FILES="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18912 | "lm32/.gdbinit") CONFIG_FILES="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18913 | "m32c/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18914 | "m32r/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18915 | "m68hc11/.gdbinit") CONFIG_FILES="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18916 | "mcore/.gdbinit") CONFIG_FILES="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18917 | "microblaze/.gdbinit") CONFIG_FILES="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18918 | "mips/.gdbinit") CONFIG_FILES="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18919 | "mn10300/.gdbinit") CONFIG_FILES="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18920 | "moxie/.gdbinit") CONFIG_FILES="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18921 | "msp430/.gdbinit") CONFIG_FILES="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18922 | "or1k/.gdbinit") CONFIG_FILES="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18923 | "ppc/.gdbinit") CONFIG_FILES="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18924 | "pru/.gdbinit") CONFIG_FILES="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18925 | "riscv/.gdbinit") CONFIG_FILES="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18926 | "rl78/.gdbinit") CONFIG_FILES="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18927 | "rx/.gdbinit") CONFIG_FILES="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18928 | "sh/.gdbinit") CONFIG_FILES="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18929 | "erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18930 | "v850/.gdbinit") CONFIG_FILES="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18931 | "example-synacor/.gdbinit") CONFIG_FILES="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;; |
81ecdfbb | 18932 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
21672298 | 18933 | ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; |
81ecdfbb | 18934 | |
d0ac1c44 | 18935 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c906108c | 18936 | esac |
b7026657 | 18937 | done |
c906108c | 18938 | |
81ecdfbb | 18939 | |
b7026657 AC |
18940 | # If the user did not use the arguments to specify the items to instantiate, |
18941 | # then the envvar interface is used. Set only those that are not. | |
18942 | # We use the long form for the default assignment because of an extremely | |
18943 | # bizarre bug on SunOS 4.1.3. | |
18944 | if $ac_need_defaults; then | |
18945 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
b15c5d7a | 18946 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
6bddc3e8 | 18947 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
b7026657 | 18948 | fi |
c906108c | 18949 | |
b7026657 | 18950 | # Have a temporary directory for convenience. Make it in the build tree |
81ecdfbb | 18951 | # simply because there is no reason against having it here, and in addition, |
b7026657 | 18952 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
18953 | # Hook for its removal unless debugging. |
18954 | # Note that there is a small window in which the directory will not be cleaned: | |
18955 | # after its creation but before its name has been assigned to `$tmp'. | |
b7026657 AC |
18956 | $debug || |
18957 | { | |
d0ac1c44 | 18958 | tmp= ac_tmp= |
81ecdfbb | 18959 | trap 'exit_status=$? |
d0ac1c44 SM |
18960 | : "${ac_tmp:=$tmp}" |
18961 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
18962 | ' 0 |
18963 | trap 'as_fn_exit 1' 1 2 13 15 | |
b7026657 | 18964 | } |
b7026657 AC |
18965 | # Create a (secure) tmp directory for tmp files. |
18966 | ||
18967 | { | |
81ecdfbb | 18968 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 18969 | test -d "$tmp" |
b7026657 AC |
18970 | } || |
18971 | { | |
81ecdfbb RW |
18972 | tmp=./conf$$-$RANDOM |
18973 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
18974 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
18975 | ac_tmp=$tmp | |
81ecdfbb RW |
18976 | |
18977 | # Set up the scripts for CONFIG_FILES section. | |
18978 | # No need to generate them if there are no CONFIG_FILES. | |
18979 | # This happens for instance with `./config.status config.h'. | |
18980 | if test -n "$CONFIG_FILES"; then | |
18981 | ||
18982 | ||
18983 | ac_cr=`echo X | tr X '\015'` | |
18984 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18985 | # But we know of no other shell where ac_cr would be empty at this | |
18986 | # point, so we can use a bashism as a fallback. | |
18987 | if test "x$ac_cr" = x; then | |
18988 | eval ac_cr=\$\'\\r\' | |
18989 | fi | |
18990 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18991 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 18992 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
18993 | else |
18994 | ac_cs_awk_cr=$ac_cr | |
18995 | fi | |
18996 | ||
d0ac1c44 | 18997 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
18998 | _ACEOF |
18999 | ||
19000 | ||
19001 | { | |
19002 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19003 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19004 | echo "_ACEOF" | |
19005 | } >conf$$subs.sh || | |
d0ac1c44 SM |
19006 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
19007 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
19008 | ac_delim='%!_!# ' |
19009 | for ac_last_try in false false false false false :; do | |
19010 | . ./conf$$subs.sh || | |
d0ac1c44 | 19011 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
19012 | |
19013 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19014 | if test $ac_delim_n = $ac_delim_num; then | |
19015 | break | |
19016 | elif $ac_last_try; then | |
d0ac1c44 | 19017 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
19018 | else |
19019 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19020 | fi | |
19021 | done | |
19022 | rm -f conf$$subs.sh | |
19023 | ||
19024 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 19025 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
19026 | _ACEOF |
19027 | sed -n ' | |
19028 | h | |
19029 | s/^/S["/; s/!.*/"]=/ | |
19030 | p | |
19031 | g | |
19032 | s/^[^!]*!// | |
19033 | :repl | |
19034 | t repl | |
19035 | s/'"$ac_delim"'$// | |
19036 | t delim | |
19037 | :nl | |
19038 | h | |
d0ac1c44 | 19039 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
19040 | t more1 |
19041 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19042 | p | |
19043 | n | |
19044 | b repl | |
19045 | :more1 | |
19046 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19047 | p | |
19048 | g | |
19049 | s/.\{148\}// | |
19050 | t nl | |
19051 | :delim | |
19052 | h | |
d0ac1c44 | 19053 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
19054 | t more2 |
19055 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19056 | p | |
19057 | b | |
19058 | :more2 | |
19059 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19060 | p | |
19061 | g | |
19062 | s/.\{148\}// | |
19063 | t delim | |
19064 | ' <conf$$subs.awk | sed ' | |
19065 | /^[^""]/{ | |
19066 | N | |
19067 | s/\n// | |
19068 | } | |
19069 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19070 | rm -f conf$$subs.awk | |
19071 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19072 | _ACAWK | |
d0ac1c44 | 19073 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
19074 | for (key in S) S_is_set[key] = 1 |
19075 | FS = "\a" | |
19076 | ||
19077 | } | |
b7026657 | 19078 | { |
81ecdfbb RW |
19079 | line = $ 0 |
19080 | nfields = split(line, field, "@") | |
19081 | substed = 0 | |
19082 | len = length(field[1]) | |
19083 | for (i = 2; i < nfields; i++) { | |
19084 | key = field[i] | |
19085 | keylen = length(key) | |
19086 | if (S_is_set[key]) { | |
19087 | value = S[key] | |
19088 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19089 | len += length(value) + length(field[++i]) | |
19090 | substed = 1 | |
19091 | } else | |
19092 | len += 1 + keylen | |
19093 | } | |
19094 | ||
19095 | print line | |
b7026657 AC |
19096 | } |
19097 | ||
81ecdfbb RW |
19098 | _ACAWK |
19099 | _ACEOF | |
19100 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19101 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19102 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19103 | else | |
19104 | cat | |
d0ac1c44 SM |
19105 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19106 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
fdd6fa61 AG |
19107 | _ACEOF |
19108 | ||
d0ac1c44 SM |
19109 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19110 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
19111 | # trailing colons and then remove the whole line if VPATH becomes empty |
19112 | # (actually we leave an empty line to preserve line numbers). | |
19113 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
19114 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19115 | h | |
19116 | s/// | |
19117 | s/^/:/ | |
19118 | s/[ ]*$/:/ | |
19119 | s/:\$(srcdir):/:/g | |
19120 | s/:\${srcdir}:/:/g | |
19121 | s/:@srcdir@:/:/g | |
19122 | s/^:*// | |
81ecdfbb | 19123 | s/:*$// |
d0ac1c44 SM |
19124 | x |
19125 | s/\(=[ ]*\).*/\1/ | |
19126 | G | |
19127 | s/\n// | |
81ecdfbb RW |
19128 | s/^[^=]*=[ ]*$// |
19129 | }' | |
19130 | fi | |
fdd6fa61 | 19131 | |
81ecdfbb RW |
19132 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19133 | fi # test -n "$CONFIG_FILES" | |
b7026657 | 19134 | |
b15c5d7a MF |
19135 | # Set up the scripts for CONFIG_HEADERS section. |
19136 | # No need to generate them if there are no CONFIG_HEADERS. | |
19137 | # This happens for instance with `./config.status Makefile'. | |
19138 | if test -n "$CONFIG_HEADERS"; then | |
19139 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
19140 | BEGIN { | |
19141 | _ACEOF | |
19142 | ||
19143 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
19144 | # here-document in config.status, that substitutes the proper values into | |
19145 | # config.h.in to produce config.h. | |
19146 | ||
19147 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
19148 | # handling of long lines. | |
19149 | ac_delim='%!_!# ' | |
19150 | for ac_last_try in false false :; do | |
19151 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
19152 | if test -z "$ac_tt"; then | |
19153 | break | |
19154 | elif $ac_last_try; then | |
19155 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
19156 | else | |
19157 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19158 | fi | |
19159 | done | |
19160 | ||
19161 | # For the awk script, D is an array of macro values keyed by name, | |
19162 | # likewise P contains macro parameters if any. Preserve backslash | |
19163 | # newline sequences. | |
19164 | ||
19165 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
19166 | sed -n ' | |
19167 | s/.\{148\}/&'"$ac_delim"'/g | |
19168 | t rset | |
19169 | :rset | |
19170 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
19171 | t def | |
19172 | d | |
19173 | :def | |
19174 | s/\\$// | |
19175 | t bsnl | |
19176 | s/["\\]/\\&/g | |
19177 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19178 | D["\1"]=" \3"/p | |
19179 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
19180 | d | |
19181 | :bsnl | |
19182 | s/["\\]/\\&/g | |
19183 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19184 | D["\1"]=" \3\\\\\\n"\\/p | |
19185 | t cont | |
19186 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
19187 | t cont | |
19188 | d | |
19189 | :cont | |
19190 | n | |
19191 | s/.\{148\}/&'"$ac_delim"'/g | |
19192 | t clear | |
19193 | :clear | |
19194 | s/\\$// | |
19195 | t bsnlc | |
19196 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
19197 | d | |
19198 | :bsnlc | |
19199 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
19200 | b cont | |
19201 | ' <confdefs.h | sed ' | |
19202 | s/'"$ac_delim"'/"\\\ | |
19203 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
19204 | ||
19205 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19206 | for (key in D) D_is_set[key] = 1 | |
19207 | FS = "\a" | |
19208 | } | |
19209 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
19210 | line = \$ 0 | |
19211 | split(line, arg, " ") | |
19212 | if (arg[1] == "#") { | |
19213 | defundef = arg[2] | |
19214 | mac1 = arg[3] | |
19215 | } else { | |
19216 | defundef = substr(arg[1], 2) | |
19217 | mac1 = arg[2] | |
19218 | } | |
19219 | split(mac1, mac2, "(") #) | |
19220 | macro = mac2[1] | |
19221 | prefix = substr(line, 1, index(line, defundef) - 1) | |
19222 | if (D_is_set[macro]) { | |
19223 | # Preserve the white space surrounding the "#". | |
19224 | print prefix "define", macro P[macro] D[macro] | |
19225 | next | |
19226 | } else { | |
19227 | # Replace #undef with comments. This is necessary, for example, | |
19228 | # in the case of _POSIX_SOURCE, which is predefined and required | |
19229 | # on some systems where configure will not decide to define it. | |
19230 | if (defundef == "undef") { | |
19231 | print "/*", prefix defundef, macro, "*/" | |
19232 | next | |
19233 | } | |
19234 | } | |
19235 | } | |
19236 | { print } | |
19237 | _ACAWK | |
19238 | _ACEOF | |
19239 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19240 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
19241 | fi # test -n "$CONFIG_HEADERS" | |
b7026657 | 19242 | |
b15c5d7a MF |
19243 | |
19244 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
81ecdfbb RW |
19245 | shift |
19246 | for ac_tag | |
19247 | do | |
19248 | case $ac_tag in | |
19249 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19250 | esac | |
19251 | case $ac_mode$ac_tag in | |
19252 | :[FHL]*:*);; | |
d0ac1c44 | 19253 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
19254 | :[FH]-) ac_tag=-:-;; |
19255 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19256 | esac | |
19257 | ac_save_IFS=$IFS | |
19258 | IFS=: | |
19259 | set x $ac_tag | |
19260 | IFS=$ac_save_IFS | |
19261 | shift | |
19262 | ac_file=$1 | |
19263 | shift | |
b7026657 | 19264 | |
81ecdfbb RW |
19265 | case $ac_mode in |
19266 | :L) ac_source=$1;; | |
19267 | :[FH]) | |
19268 | ac_file_inputs= | |
19269 | for ac_f | |
19270 | do | |
19271 | case $ac_f in | |
d0ac1c44 | 19272 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
19273 | *) # Look for the file first in the build tree, then in the source tree |
19274 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19275 | # because $ac_f cannot contain `:'. | |
19276 | test -f "$ac_f" || | |
19277 | case $ac_f in | |
19278 | [\\/$]*) false;; | |
19279 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19280 | esac || | |
d0ac1c44 | 19281 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
19282 | esac |
19283 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19284 | as_fn_append ac_file_inputs " '$ac_f'" | |
19285 | done | |
19286 | ||
19287 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19288 | # use $as_me), people would be surprised to read: | |
19289 | # /* config.h. Generated by config.status. */ | |
19290 | configure_input='Generated from '` | |
19291 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19292 | `' by configure.' | |
19293 | if test x"$ac_file" != x-; then | |
19294 | configure_input="$ac_file. $configure_input" | |
19295 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19296 | $as_echo "$as_me: creating $ac_file" >&6;} | |
fdd6fa61 | 19297 | fi |
81ecdfbb RW |
19298 | # Neutralize special characters interpreted by sed in replacement strings. |
19299 | case $configure_input in #( | |
19300 | *\&* | *\|* | *\\* ) | |
19301 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19302 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19303 | *) ac_sed_conf_input=$configure_input;; | |
19304 | esac | |
df1756f4 | 19305 | |
81ecdfbb | 19306 | case $ac_tag in |
d0ac1c44 SM |
19307 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19308 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
19309 | esac |
19310 | ;; | |
df1756f4 TG |
19311 | esac |
19312 | ||
81ecdfbb | 19313 | ac_dir=`$as_dirname -- "$ac_file" || |
b7026657 AC |
19314 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19315 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19316 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
19317 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
19318 | $as_echo X"$ac_file" | | |
19319 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19320 | s//\1/ | |
19321 | q | |
19322 | } | |
19323 | /^X\(\/\/\)[^/].*/{ | |
19324 | s//\1/ | |
19325 | q | |
19326 | } | |
19327 | /^X\(\/\/\)$/{ | |
19328 | s//\1/ | |
19329 | q | |
19330 | } | |
19331 | /^X\(\/\).*/{ | |
19332 | s//\1/ | |
19333 | q | |
19334 | } | |
19335 | s/.*/./; q'` | |
19336 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b7026657 AC |
19337 | ac_builddir=. |
19338 | ||
81ecdfbb RW |
19339 | case "$ac_dir" in |
19340 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19341 | *) | |
19342 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19343 | # A ".." for each directory in $ac_dir_suffix. | |
19344 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19345 | case $ac_top_builddir_sub in | |
19346 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19347 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19348 | esac ;; | |
19349 | esac | |
19350 | ac_abs_top_builddir=$ac_pwd | |
19351 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19352 | # for backward compatibility: | |
19353 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
19354 | |
19355 | case $srcdir in | |
81ecdfbb | 19356 | .) # We are building in place. |
b7026657 | 19357 | ac_srcdir=. |
81ecdfbb RW |
19358 | ac_top_srcdir=$ac_top_builddir_sub |
19359 | ac_abs_top_srcdir=$ac_pwd ;; | |
19360 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 19361 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
19362 | ac_top_srcdir=$srcdir |
19363 | ac_abs_top_srcdir=$srcdir ;; | |
19364 | *) # Relative name. | |
19365 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19366 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19367 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 19368 | esac |
81ecdfbb | 19369 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b7026657 | 19370 | |
b7026657 | 19371 | |
81ecdfbb RW |
19372 | case $ac_mode in |
19373 | :F) | |
19374 | # | |
19375 | # CONFIG_FILE | |
19376 | # | |
c906108c | 19377 | |
b7026657 AC |
19378 | case $INSTALL in |
19379 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 19380 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
c906108c | 19381 | esac |
6bddc3e8 MF |
19382 | ac_MKDIR_P=$MKDIR_P |
19383 | case $MKDIR_P in | |
19384 | [\\/$]* | ?:[\\/]* ) ;; | |
19385 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19386 | esac | |
81ecdfbb | 19387 | _ACEOF |
c906108c | 19388 | |
81ecdfbb RW |
19389 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19390 | # If the template does not know about datarootdir, expand it. | |
19391 | # FIXME: This hack should be removed a few years after 2.60. | |
19392 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19393 | ac_sed_dataroot=' | |
19394 | /datarootdir/ { | |
19395 | p | |
19396 | q | |
19397 | } | |
19398 | /@datadir@/p | |
19399 | /@docdir@/p | |
19400 | /@infodir@/p | |
19401 | /@localedir@/p | |
19402 | /@mandir@/p' | |
19403 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19404 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19405 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19406 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19407 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
19408 | _ACEOF | |
19409 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19410 | ac_datarootdir_hack=' | |
19411 | s&@datadir@&$datadir&g | |
19412 | s&@docdir@&$docdir&g | |
19413 | s&@infodir@&$infodir&g | |
19414 | s&@localedir@&$localedir&g | |
19415 | s&@mandir@&$mandir&g | |
19416 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19417 | esac | |
b7026657 | 19418 | _ACEOF |
81ecdfbb RW |
19419 | |
19420 | # Neutralize VPATH when `$srcdir' = `.'. | |
19421 | # Shell code in configure.ac might set extrasub. | |
19422 | # FIXME: do we really want to maintain this feature? | |
19423 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19424 | ac_sed_extra="$ac_vpsub | |
b7026657 AC |
19425 | $extrasub |
19426 | _ACEOF | |
81ecdfbb | 19427 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 AC |
19428 | :t |
19429 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
19430 | s|@configure_input@|$ac_sed_conf_input|;t t |
19431 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19432 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19433 | s&@srcdir@&$ac_srcdir&;t t | |
19434 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19435 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19436 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19437 | s&@builddir@&$ac_builddir&;t t | |
19438 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19439 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19440 | s&@INSTALL@&$ac_INSTALL&;t t | |
6bddc3e8 | 19441 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
81ecdfbb RW |
19442 | $ac_datarootdir_hack |
19443 | " | |
d0ac1c44 SM |
19444 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
19445 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
19446 | |
19447 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
19448 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19449 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19450 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 19451 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 19452 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 19453 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 19454 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 19455 | |
d0ac1c44 | 19456 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 19457 | case $ac_file in |
d0ac1c44 SM |
19458 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19459 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 19460 | esac \ |
d0ac1c44 | 19461 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 19462 | ;; |
b15c5d7a MF |
19463 | :H) |
19464 | # | |
19465 | # CONFIG_HEADER | |
19466 | # | |
19467 | if test x"$ac_file" != x-; then | |
19468 | { | |
19469 | $as_echo "/* $configure_input */" \ | |
19470 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
19471 | } >"$ac_tmp/config.h" \ | |
19472 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19473 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
19474 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
19475 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
19476 | else | |
19477 | rm -f "$ac_file" | |
19478 | mv "$ac_tmp/config.h" "$ac_file" \ | |
19479 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19480 | fi | |
19481 | else | |
19482 | $as_echo "/* $configure_input */" \ | |
19483 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
19484 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
19485 | fi | |
19486 | # Compute "$ac_file"'s index in $config_headers. | |
19487 | _am_arg="$ac_file" | |
19488 | _am_stamp_count=1 | |
19489 | for _am_header in $config_headers :; do | |
19490 | case $_am_header in | |
19491 | $_am_arg | $_am_arg:* ) | |
19492 | break ;; | |
19493 | * ) | |
19494 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
19495 | esac | |
19496 | done | |
19497 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
19498 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19499 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
19500 | X"$_am_arg" : 'X\(//\)$' \| \ | |
19501 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
19502 | $as_echo X"$_am_arg" | | |
19503 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19504 | s//\1/ | |
19505 | q | |
19506 | } | |
19507 | /^X\(\/\/\)[^/].*/{ | |
19508 | s//\1/ | |
19509 | q | |
19510 | } | |
19511 | /^X\(\/\/\)$/{ | |
19512 | s//\1/ | |
19513 | q | |
19514 | } | |
19515 | /^X\(\/\).*/{ | |
19516 | s//\1/ | |
19517 | q | |
19518 | } | |
19519 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
19520 | ;; | |
df1756f4 | 19521 | |
6bddc3e8 MF |
19522 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
19523 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19524 | ;; | |
19525 | esac | |
19526 | ||
c906108c | 19527 | |
6bddc3e8 | 19528 | case $ac_file$ac_mode in |
b5689863 MF |
19529 | "libtool":C) |
19530 | ||
19531 | # See if we are running on zsh, and set the options which allow our | |
19532 | # commands through without removal of \ escapes. | |
19533 | if test -n "${ZSH_VERSION+set}" ; then | |
19534 | setopt NO_GLOB_SUBST | |
19535 | fi | |
19536 | ||
19537 | cfgfile="${ofile}T" | |
19538 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19539 | $RM "$cfgfile" | |
19540 | ||
19541 | cat <<_LT_EOF >> "$cfgfile" | |
19542 | #! $SHELL | |
19543 | ||
19544 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
19545 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
19546 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19547 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19548 | # | |
19549 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
19550 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
19551 | # Written by Gordon Matzigkeit, 1996 | |
19552 | # | |
19553 | # This file is part of GNU Libtool. | |
19554 | # | |
19555 | # GNU Libtool is free software; you can redistribute it and/or | |
19556 | # modify it under the terms of the GNU General Public License as | |
19557 | # published by the Free Software Foundation; either version 2 of | |
19558 | # the License, or (at your option) any later version. | |
19559 | # | |
19560 | # As a special exception to the GNU General Public License, | |
19561 | # if you distribute this file as part of a program or library that | |
19562 | # is built using GNU Libtool, you may include this file under the | |
19563 | # same distribution terms that you use for the rest of that program. | |
19564 | # | |
19565 | # GNU Libtool is distributed in the hope that it will be useful, | |
19566 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19567 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19568 | # GNU General Public License for more details. | |
19569 | # | |
19570 | # You should have received a copy of the GNU General Public License | |
19571 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19572 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19573 | # obtained by writing to the Free Software Foundation, Inc., | |
19574 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
19575 | ||
19576 | ||
19577 | # The names of the tagged configurations supported by this script. | |
19578 | available_tags="" | |
19579 | ||
19580 | # ### BEGIN LIBTOOL CONFIG | |
19581 | ||
19582 | # Which release of libtool.m4 was used? | |
19583 | macro_version=$macro_version | |
19584 | macro_revision=$macro_revision | |
19585 | ||
19586 | # Whether or not to build shared libraries. | |
19587 | build_libtool_libs=$enable_shared | |
19588 | ||
19589 | # Whether or not to build static libraries. | |
19590 | build_old_libs=$enable_static | |
19591 | ||
19592 | # What type of objects to build. | |
19593 | pic_mode=$pic_mode | |
19594 | ||
19595 | # Whether or not to optimize for fast installation. | |
19596 | fast_install=$enable_fast_install | |
19597 | ||
19598 | # Shell to use when invoking shell scripts. | |
19599 | SHELL=$lt_SHELL | |
19600 | ||
19601 | # An echo program that protects backslashes. | |
19602 | ECHO=$lt_ECHO | |
19603 | ||
19604 | # The host system. | |
19605 | host_alias=$host_alias | |
19606 | host=$host | |
19607 | host_os=$host_os | |
19608 | ||
19609 | # The build system. | |
19610 | build_alias=$build_alias | |
19611 | build=$build | |
19612 | build_os=$build_os | |
19613 | ||
19614 | # A sed program that does not truncate output. | |
19615 | SED=$lt_SED | |
19616 | ||
19617 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19618 | Xsed="\$SED -e 1s/^X//" | |
19619 | ||
19620 | # A grep program that handles long lines. | |
19621 | GREP=$lt_GREP | |
19622 | ||
19623 | # An ERE matcher. | |
19624 | EGREP=$lt_EGREP | |
19625 | ||
19626 | # A literal string matcher. | |
19627 | FGREP=$lt_FGREP | |
19628 | ||
19629 | # A BSD- or MS-compatible name lister. | |
19630 | NM=$lt_NM | |
19631 | ||
19632 | # Whether we need soft or hard links. | |
19633 | LN_S=$lt_LN_S | |
19634 | ||
19635 | # What is the maximum length of a command? | |
19636 | max_cmd_len=$max_cmd_len | |
19637 | ||
19638 | # Object file suffix (normally "o"). | |
19639 | objext=$ac_objext | |
19640 | ||
19641 | # Executable file suffix (normally ""). | |
19642 | exeext=$exeext | |
19643 | ||
19644 | # whether the shell understands "unset". | |
19645 | lt_unset=$lt_unset | |
19646 | ||
19647 | # turn spaces into newlines. | |
19648 | SP2NL=$lt_lt_SP2NL | |
19649 | ||
19650 | # turn newlines into spaces. | |
19651 | NL2SP=$lt_lt_NL2SP | |
19652 | ||
19653 | # An object symbol dumper. | |
19654 | OBJDUMP=$lt_OBJDUMP | |
19655 | ||
19656 | # Method to check whether dependent libraries are shared objects. | |
19657 | deplibs_check_method=$lt_deplibs_check_method | |
19658 | ||
19659 | # Command to use when deplibs_check_method == "file_magic". | |
19660 | file_magic_cmd=$lt_file_magic_cmd | |
19661 | ||
19662 | # The archiver. | |
19663 | AR=$lt_AR | |
19664 | AR_FLAGS=$lt_AR_FLAGS | |
19665 | ||
19666 | # A symbol stripping program. | |
19667 | STRIP=$lt_STRIP | |
19668 | ||
19669 | # Commands used to install an old-style archive. | |
19670 | RANLIB=$lt_RANLIB | |
19671 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
19672 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19673 | ||
19674 | # Whether to use a lock for old archive extraction. | |
19675 | lock_old_archive_extraction=$lock_old_archive_extraction | |
19676 | ||
19677 | # A C compiler. | |
19678 | LTCC=$lt_CC | |
19679 | ||
19680 | # LTCC compiler flags. | |
19681 | LTCFLAGS=$lt_CFLAGS | |
19682 | ||
19683 | # Take the output of nm and produce a listing of raw symbols and C names. | |
19684 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19685 | ||
19686 | # Transform the output of nm in a proper C declaration. | |
19687 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19688 | ||
19689 | # Transform the output of nm in a C name address pair. | |
19690 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19691 | ||
19692 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
19693 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
19694 | ||
19695 | # The name of the directory that contains temporary libtool files. | |
19696 | objdir=$objdir | |
19697 | ||
19698 | # Used to examine libraries when file_magic_cmd begins with "file". | |
19699 | MAGIC_CMD=$MAGIC_CMD | |
19700 | ||
19701 | # Must we lock files when doing compilation? | |
19702 | need_locks=$lt_need_locks | |
19703 | ||
19704 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
19705 | DSYMUTIL=$lt_DSYMUTIL | |
19706 | ||
19707 | # Tool to change global to local symbols on Mac OS X. | |
19708 | NMEDIT=$lt_NMEDIT | |
19709 | ||
19710 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19711 | LIPO=$lt_LIPO | |
19712 | ||
19713 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19714 | OTOOL=$lt_OTOOL | |
19715 | ||
19716 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19717 | OTOOL64=$lt_OTOOL64 | |
19718 | ||
19719 | # Old archive suffix (normally "a"). | |
19720 | libext=$libext | |
19721 | ||
19722 | # Shared library suffix (normally ".so"). | |
19723 | shrext_cmds=$lt_shrext_cmds | |
19724 | ||
19725 | # The commands to extract the exported symbol list from a shared archive. | |
19726 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19727 | ||
19728 | # Variables whose values should be saved in libtool wrapper scripts and | |
19729 | # restored at link time. | |
19730 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
19731 | ||
19732 | # Do we need the "lib" prefix for modules? | |
19733 | need_lib_prefix=$need_lib_prefix | |
19734 | ||
19735 | # Do we need a version for libraries? | |
19736 | need_version=$need_version | |
19737 | ||
19738 | # Library versioning type. | |
19739 | version_type=$version_type | |
19740 | ||
19741 | # Shared library runtime path variable. | |
19742 | runpath_var=$runpath_var | |
19743 | ||
19744 | # Shared library path variable. | |
19745 | shlibpath_var=$shlibpath_var | |
19746 | ||
19747 | # Is shlibpath searched before the hard-coded library search path? | |
19748 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19749 | ||
19750 | # Format of library name prefix. | |
19751 | libname_spec=$lt_libname_spec | |
19752 | ||
19753 | # List of archive names. First name is the real one, the rest are links. | |
19754 | # The last name is the one that the linker finds with -lNAME | |
19755 | library_names_spec=$lt_library_names_spec | |
19756 | ||
19757 | # The coded name of the library, if different from the real name. | |
19758 | soname_spec=$lt_soname_spec | |
19759 | ||
19760 | # Permission mode override for installation of shared libraries. | |
19761 | install_override_mode=$lt_install_override_mode | |
19762 | ||
19763 | # Command to use after installation of a shared archive. | |
19764 | postinstall_cmds=$lt_postinstall_cmds | |
19765 | ||
19766 | # Command to use after uninstallation of a shared archive. | |
19767 | postuninstall_cmds=$lt_postuninstall_cmds | |
19768 | ||
19769 | # Commands used to finish a libtool library installation in a directory. | |
19770 | finish_cmds=$lt_finish_cmds | |
19771 | ||
19772 | # As "finish_cmds", except a single script fragment to be evaled but | |
19773 | # not shown. | |
19774 | finish_eval=$lt_finish_eval | |
19775 | ||
19776 | # Whether we should hardcode library paths into libraries. | |
19777 | hardcode_into_libs=$hardcode_into_libs | |
19778 | ||
19779 | # Compile-time system search path for libraries. | |
19780 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19781 | ||
19782 | # Run-time system search path for libraries. | |
19783 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19784 | ||
19785 | # Whether dlopen is supported. | |
19786 | dlopen_support=$enable_dlopen | |
19787 | ||
19788 | # Whether dlopen of programs is supported. | |
19789 | dlopen_self=$enable_dlopen_self | |
19790 | ||
19791 | # Whether dlopen of statically linked programs is supported. | |
19792 | dlopen_self_static=$enable_dlopen_self_static | |
19793 | ||
19794 | # Commands to strip libraries. | |
19795 | old_striplib=$lt_old_striplib | |
19796 | striplib=$lt_striplib | |
19797 | ||
19798 | ||
19799 | # The linker used to build libraries. | |
19800 | LD=$lt_LD | |
19801 | ||
19802 | # How to create reloadable object files. | |
19803 | reload_flag=$lt_reload_flag | |
19804 | reload_cmds=$lt_reload_cmds | |
19805 | ||
19806 | # Commands used to build an old-style archive. | |
19807 | old_archive_cmds=$lt_old_archive_cmds | |
19808 | ||
19809 | # A language specific compiler. | |
19810 | CC=$lt_compiler | |
19811 | ||
19812 | # Is the compiler the GNU compiler? | |
19813 | with_gcc=$GCC | |
19814 | ||
19815 | # Compiler flag to turn off builtin functions. | |
19816 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
19817 | ||
19818 | # How to pass a linker flag through the compiler. | |
19819 | wl=$lt_lt_prog_compiler_wl | |
19820 | ||
19821 | # Additional compiler flags for building library objects. | |
19822 | pic_flag=$lt_lt_prog_compiler_pic | |
19823 | ||
19824 | # Compiler flag to prevent dynamic linking. | |
19825 | link_static_flag=$lt_lt_prog_compiler_static | |
19826 | ||
19827 | # Does compiler simultaneously support -c and -o options? | |
19828 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
19829 | ||
19830 | # Whether or not to add -lc for building shared libraries. | |
19831 | build_libtool_need_lc=$archive_cmds_need_lc | |
19832 | ||
19833 | # Whether or not to disallow shared libs when runtime libs are static. | |
19834 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
19835 | ||
19836 | # Compiler flag to allow reflexive dlopens. | |
19837 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
19838 | ||
19839 | # Compiler flag to generate shared objects directly from archives. | |
19840 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
19841 | ||
19842 | # Whether the compiler copes with passing no objects directly. | |
19843 | compiler_needs_object=$lt_compiler_needs_object | |
19844 | ||
19845 | # Create an old-style archive from a shared archive. | |
19846 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19847 | ||
19848 | # Create a temporary old-style archive to link instead of a shared archive. | |
19849 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
19850 | ||
19851 | # Commands used to build a shared archive. | |
19852 | archive_cmds=$lt_archive_cmds | |
19853 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
19854 | ||
19855 | # Commands used to build a loadable module if different from building | |
19856 | # a shared archive. | |
19857 | module_cmds=$lt_module_cmds | |
19858 | module_expsym_cmds=$lt_module_expsym_cmds | |
19859 | ||
19860 | # Whether we are building with GNU ld or not. | |
19861 | with_gnu_ld=$lt_with_gnu_ld | |
19862 | ||
19863 | # Flag that allows shared libraries with undefined symbols to be built. | |
19864 | allow_undefined_flag=$lt_allow_undefined_flag | |
19865 | ||
19866 | # Flag that enforces no undefined symbols. | |
19867 | no_undefined_flag=$lt_no_undefined_flag | |
19868 | ||
19869 | # Flag to hardcode \$libdir into a binary during linking. | |
19870 | # This must work even if \$libdir does not exist | |
19871 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19872 | ||
19873 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19874 | # during linking. This must work even if \$libdir does not exist. | |
19875 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
19876 | ||
19877 | # Whether we need a single "-rpath" flag with a separated argument. | |
19878 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19879 | ||
19880 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19881 | # DIR into the resulting binary. | |
19882 | hardcode_direct=$hardcode_direct | |
19883 | ||
19884 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19885 | # DIR into the resulting binary and the resulting library dependency is | |
19886 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19887 | # library is relocated. | |
19888 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19889 | ||
19890 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19891 | # into the resulting binary. | |
19892 | hardcode_minus_L=$hardcode_minus_L | |
19893 | ||
19894 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19895 | # into the resulting binary. | |
19896 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19897 | ||
19898 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19899 | # into the library and all subsequent libraries and executables linked | |
19900 | # against it. | |
19901 | hardcode_automatic=$hardcode_automatic | |
19902 | ||
19903 | # Set to yes if linker adds runtime paths of dependent libraries | |
19904 | # to runtime path list. | |
19905 | inherit_rpath=$inherit_rpath | |
19906 | ||
19907 | # Whether libtool must link a program against all its dependency libraries. | |
19908 | link_all_deplibs=$link_all_deplibs | |
19909 | ||
19910 | # Fix the shell variable \$srcfile for the compiler. | |
19911 | fix_srcfile_path=$lt_fix_srcfile_path | |
19912 | ||
19913 | # Set to "yes" if exported symbols are required. | |
19914 | always_export_symbols=$always_export_symbols | |
19915 | ||
19916 | # The commands to list exported symbols. | |
19917 | export_symbols_cmds=$lt_export_symbols_cmds | |
19918 | ||
19919 | # Symbols that should not be listed in the preloaded symbols. | |
19920 | exclude_expsyms=$lt_exclude_expsyms | |
19921 | ||
19922 | # Symbols that must always be exported. | |
19923 | include_expsyms=$lt_include_expsyms | |
19924 | ||
19925 | # Commands necessary for linking programs (against libraries) with templates. | |
19926 | prelink_cmds=$lt_prelink_cmds | |
19927 | ||
19928 | # Specify filename containing input files. | |
19929 | file_list_spec=$lt_file_list_spec | |
19930 | ||
19931 | # How to hardcode a shared library path into an executable. | |
19932 | hardcode_action=$hardcode_action | |
19933 | ||
19934 | # ### END LIBTOOL CONFIG | |
19935 | ||
19936 | _LT_EOF | |
19937 | ||
19938 | case $host_os in | |
19939 | aix3*) | |
19940 | cat <<\_LT_EOF >> "$cfgfile" | |
19941 | # AIX sometimes has problems with the GCC collect2 program. For some | |
19942 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
19943 | # vanish in a puff of smoke. | |
19944 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
19945 | COLLECT_NAMES= | |
19946 | export COLLECT_NAMES | |
19947 | fi | |
19948 | _LT_EOF | |
19949 | ;; | |
19950 | esac | |
19951 | ||
19952 | ||
19953 | ltmain="$ac_aux_dir/ltmain.sh" | |
19954 | ||
19955 | ||
19956 | # We use sed instead of cat because bash on DJGPP gets confused if | |
19957 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
19958 | # text mode, it properly converts lines to CR/LF. This bash problem | |
19959 | # is reportedly fixed, but why not run on old versions too? | |
19960 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
19961 | || (rm -f "$cfgfile"; exit 1) | |
19962 | ||
19963 | case $xsi_shell in | |
19964 | yes) | |
19965 | cat << \_LT_EOF >> "$cfgfile" | |
19966 | ||
19967 | # func_dirname file append nondir_replacement | |
19968 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19969 | # otherwise set result to NONDIR_REPLACEMENT. | |
19970 | func_dirname () | |
19971 | { | |
19972 | case ${1} in | |
19973 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19974 | * ) func_dirname_result="${3}" ;; | |
19975 | esac | |
19976 | } | |
19977 | ||
19978 | # func_basename file | |
19979 | func_basename () | |
19980 | { | |
19981 | func_basename_result="${1##*/}" | |
19982 | } | |
19983 | ||
19984 | # func_dirname_and_basename file append nondir_replacement | |
19985 | # perform func_basename and func_dirname in a single function | |
19986 | # call: | |
19987 | # dirname: Compute the dirname of FILE. If nonempty, | |
19988 | # add APPEND to the result, otherwise set result | |
19989 | # to NONDIR_REPLACEMENT. | |
19990 | # value returned in "$func_dirname_result" | |
19991 | # basename: Compute filename of FILE. | |
19992 | # value retuned in "$func_basename_result" | |
19993 | # Implementation must be kept synchronized with func_dirname | |
19994 | # and func_basename. For efficiency, we do not delegate to | |
19995 | # those functions but instead duplicate the functionality here. | |
19996 | func_dirname_and_basename () | |
19997 | { | |
19998 | case ${1} in | |
19999 | */*) func_dirname_result="${1%/*}${2}" ;; | |
20000 | * ) func_dirname_result="${3}" ;; | |
20001 | esac | |
20002 | func_basename_result="${1##*/}" | |
20003 | } | |
20004 | ||
20005 | # func_stripname prefix suffix name | |
20006 | # strip PREFIX and SUFFIX off of NAME. | |
20007 | # PREFIX and SUFFIX must not contain globbing or regex special | |
20008 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
20009 | # dot (in which case that matches only a dot). | |
20010 | func_stripname () | |
20011 | { | |
20012 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
20013 | # positional parameters, so assign one to ordinary parameter first. | |
20014 | func_stripname_result=${3} | |
20015 | func_stripname_result=${func_stripname_result#"${1}"} | |
20016 | func_stripname_result=${func_stripname_result%"${2}"} | |
20017 | } | |
20018 | ||
20019 | # func_opt_split | |
20020 | func_opt_split () | |
20021 | { | |
20022 | func_opt_split_opt=${1%%=*} | |
20023 | func_opt_split_arg=${1#*=} | |
20024 | } | |
20025 | ||
20026 | # func_lo2o object | |
20027 | func_lo2o () | |
20028 | { | |
20029 | case ${1} in | |
20030 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
20031 | *) func_lo2o_result=${1} ;; | |
20032 | esac | |
20033 | } | |
20034 | ||
20035 | # func_xform libobj-or-source | |
20036 | func_xform () | |
20037 | { | |
20038 | func_xform_result=${1%.*}.lo | |
20039 | } | |
20040 | ||
20041 | # func_arith arithmetic-term... | |
20042 | func_arith () | |
20043 | { | |
20044 | func_arith_result=$(( $* )) | |
20045 | } | |
20046 | ||
20047 | # func_len string | |
20048 | # STRING may not start with a hyphen. | |
20049 | func_len () | |
20050 | { | |
20051 | func_len_result=${#1} | |
20052 | } | |
20053 | ||
20054 | _LT_EOF | |
20055 | ;; | |
20056 | *) # Bourne compatible functions. | |
20057 | cat << \_LT_EOF >> "$cfgfile" | |
20058 | ||
20059 | # func_dirname file append nondir_replacement | |
20060 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
20061 | # otherwise set result to NONDIR_REPLACEMENT. | |
20062 | func_dirname () | |
20063 | { | |
20064 | # Extract subdirectory from the argument. | |
20065 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
20066 | if test "X$func_dirname_result" = "X${1}"; then | |
20067 | func_dirname_result="${3}" | |
20068 | else | |
20069 | func_dirname_result="$func_dirname_result${2}" | |
20070 | fi | |
20071 | } | |
20072 | ||
20073 | # func_basename file | |
20074 | func_basename () | |
20075 | { | |
20076 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
20077 | } | |
20078 | ||
20079 | ||
20080 | # func_stripname prefix suffix name | |
20081 | # strip PREFIX and SUFFIX off of NAME. | |
20082 | # PREFIX and SUFFIX must not contain globbing or regex special | |
20083 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
20084 | # dot (in which case that matches only a dot). | |
20085 | # func_strip_suffix prefix name | |
20086 | func_stripname () | |
20087 | { | |
20088 | case ${2} in | |
20089 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
20090 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
20091 | esac | |
20092 | } | |
20093 | ||
20094 | # sed scripts: | |
20095 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
20096 | my_sed_long_arg='1s/^-[^=]*=//' | |
20097 | ||
20098 | # func_opt_split | |
20099 | func_opt_split () | |
20100 | { | |
20101 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
20102 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
20103 | } | |
20104 | ||
20105 | # func_lo2o object | |
20106 | func_lo2o () | |
20107 | { | |
20108 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
20109 | } | |
20110 | ||
20111 | # func_xform libobj-or-source | |
20112 | func_xform () | |
20113 | { | |
20114 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
20115 | } | |
20116 | ||
20117 | # func_arith arithmetic-term... | |
20118 | func_arith () | |
20119 | { | |
20120 | func_arith_result=`expr "$@"` | |
20121 | } | |
20122 | ||
20123 | # func_len string | |
20124 | # STRING may not start with a hyphen. | |
20125 | func_len () | |
20126 | { | |
20127 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
20128 | } | |
20129 | ||
20130 | _LT_EOF | |
20131 | esac | |
20132 | ||
20133 | case $lt_shell_append in | |
20134 | yes) | |
20135 | cat << \_LT_EOF >> "$cfgfile" | |
20136 | ||
20137 | # func_append var value | |
20138 | # Append VALUE to the end of shell variable VAR. | |
20139 | func_append () | |
20140 | { | |
20141 | eval "$1+=\$2" | |
20142 | } | |
20143 | _LT_EOF | |
20144 | ;; | |
20145 | *) | |
20146 | cat << \_LT_EOF >> "$cfgfile" | |
20147 | ||
20148 | # func_append var value | |
20149 | # Append VALUE to the end of shell variable VAR. | |
20150 | func_append () | |
20151 | { | |
20152 | eval "$1=\$$1\$2" | |
20153 | } | |
20154 | ||
20155 | _LT_EOF | |
20156 | ;; | |
20157 | esac | |
20158 | ||
20159 | ||
20160 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
20161 | || (rm -f "$cfgfile"; exit 1) | |
20162 | ||
20163 | mv -f "$cfgfile" "$ofile" || | |
20164 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
20165 | chmod +x "$ofile" | |
20166 | ||
20167 | ;; | |
6bddc3e8 MF |
20168 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
20169 | # Older Autoconf quotes --file arguments for eval, but not when files | |
20170 | # are listed without --file. Let's play safe and only enable the eval | |
20171 | # if we detect the quoting. | |
20172 | case $CONFIG_FILES in | |
20173 | *\'*) eval set x "$CONFIG_FILES" ;; | |
20174 | *) set x $CONFIG_FILES ;; | |
81ecdfbb | 20175 | esac |
6bddc3e8 MF |
20176 | shift |
20177 | for mf | |
20178 | do | |
20179 | # Strip MF so we end up with the name of the file. | |
20180 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
20181 | # Check whether this is an Automake generated Makefile or not. | |
20182 | # We used to match only the files named 'Makefile.in', but | |
20183 | # some people rename them; so instead we look at the file content. | |
20184 | # Grep'ing the first line is not enough: some people post-process | |
20185 | # each Makefile.in and add a new line on top of each file to say so. | |
20186 | # Grep'ing the whole file is not good either: AIX grep has a line | |
20187 | # limit of 2048, but all sed's we know have understand at least 4000. | |
20188 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
20189 | dirpart=`$as_dirname -- "$mf" || | |
20190 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20191 | X"$mf" : 'X\(//\)[^/]' \| \ | |
20192 | X"$mf" : 'X\(//\)$' \| \ | |
20193 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
20194 | $as_echo X"$mf" | | |
20195 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20196 | s//\1/ | |
20197 | q | |
20198 | } | |
20199 | /^X\(\/\/\)[^/].*/{ | |
20200 | s//\1/ | |
20201 | q | |
20202 | } | |
20203 | /^X\(\/\/\)$/{ | |
20204 | s//\1/ | |
20205 | q | |
20206 | } | |
20207 | /^X\(\/\).*/{ | |
20208 | s//\1/ | |
20209 | q | |
20210 | } | |
20211 | s/.*/./; q'` | |
20212 | else | |
20213 | continue | |
20214 | fi | |
20215 | # Extract the definition of DEPDIR, am__include, and am__quote | |
20216 | # from the Makefile without running 'make'. | |
20217 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
20218 | test -z "$DEPDIR" && continue | |
20219 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
20220 | test -z "$am__include" && continue | |
20221 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
20222 | # Find all dependency output files, they are included files with | |
20223 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
20224 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
20225 | # expansion. | |
20226 | for file in `sed -n " | |
20227 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
20228 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
20229 | # Make sure the directory exists. | |
20230 | test -f "$dirpart/$file" && continue | |
20231 | fdir=`$as_dirname -- "$file" || | |
20232 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20233 | X"$file" : 'X\(//\)[^/]' \| \ | |
20234 | X"$file" : 'X\(//\)$' \| \ | |
20235 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
20236 | $as_echo X"$file" | | |
20237 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20238 | s//\1/ | |
20239 | q | |
20240 | } | |
20241 | /^X\(\/\/\)[^/].*/{ | |
20242 | s//\1/ | |
20243 | q | |
20244 | } | |
20245 | /^X\(\/\/\)$/{ | |
20246 | s//\1/ | |
20247 | q | |
20248 | } | |
20249 | /^X\(\/\).*/{ | |
20250 | s//\1/ | |
20251 | q | |
20252 | } | |
20253 | s/.*/./; q'` | |
20254 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
20255 | # echo "creating $dirpart/$file" | |
20256 | echo '# dummy' > "$dirpart/$file" | |
20257 | done | |
20258 | done | |
20259 | } | |
20260 | ;; | |
81ecdfbb | 20261 | |
6bddc3e8 | 20262 | esac |
81ecdfbb RW |
20263 | done # for ac_tag |
20264 | ||
20265 | ||
20266 | as_fn_exit 0 | |
b7026657 | 20267 | _ACEOF |
b7026657 AC |
20268 | ac_clean_files=$ac_clean_files_save |
20269 | ||
81ecdfbb | 20270 | test $ac_write_fail = 0 || |
d0ac1c44 | 20271 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 20272 | |
b7026657 AC |
20273 | |
20274 | # configure is writing to config.log, and then calls config.status. | |
20275 | # config.status does its own redirection, appending to config.log. | |
20276 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20277 | # by configure, so config.status won't be able to write to it; its | |
20278 | # output is simply discarded. So we exec the FD to /dev/null, | |
20279 | # effectively closing config.log, so it can be properly (re)opened and | |
20280 | # appended to by config.status. When coming back to configure, we | |
20281 | # need to make the FD available again. | |
20282 | if test "$no_create" != yes; then | |
20283 | ac_cs_success=: | |
20284 | ac_config_status_args= | |
20285 | test "$silent" = yes && | |
20286 | ac_config_status_args="$ac_config_status_args --quiet" | |
20287 | exec 5>/dev/null | |
20288 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20289 | exec 5>>config.log | |
20290 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20291 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 20292 | $ac_cs_success || as_fn_exit 1 |
b7026657 | 20293 | fi |
81ecdfbb RW |
20294 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
20295 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20296 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
20297 | fi | |
c906108c | 20298 |