]>
Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
c906108c | 2 | # Guess values for system-dependent variables and create Makefiles. |
6bddc3e8 MF |
3 | # Generated by GNU Autoconf 2.69 for sim 0. |
4 | # | |
5 | # Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. | |
d0ac1c44 SM |
6 | # |
7 | # | |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
81ecdfbb | 9 | # |
c906108c SS |
10 | # |
11 | # This configure script is free software; the Free Software Foundation | |
12 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
b7026657 | 16 | |
81ecdfbb RW |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b7026657 AC |
20 | emulate sh |
21 | NULLCMD=: | |
81ecdfbb | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b7026657 AC |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
25 | setopt NO_GLOB_SUBST |
26 | else | |
27 | case `(set -o) 2>/dev/null` in #( | |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
32 | esac | |
b7026657 | 33 | fi |
b7026657 | 34 | |
81ecdfbb RW |
35 | |
36 | as_nl=' | |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
b7026657 | 52 | else |
81ecdfbb RW |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
b7026657 AC |
81 | fi |
82 | ||
83 | ||
81ecdfbb RW |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
89 | IFS=" "" $as_nl" | |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 92 | as_myself= |
81ecdfbb RW |
93 | case $0 in #(( |
94 | *[\\/]* ) as_myself=$0 ;; | |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | done | |
102 | IFS=$as_save_IFS | |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | exit 1 | |
114 | fi | |
115 | ||
116 | # Unset variables that we do not need and which cause bugs (e.g. in | |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 | done | |
b7026657 AC |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
81ecdfbb RW |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
d0ac1c44 SM |
137 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
81ecdfbb RW |
162 | if test "x$CONFIG_SHELL" = x; then |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
d0ac1c44 SM |
195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | |
81ecdfbb RW |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
c2783492 | 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
b5689863 MF |
201 | test \$(( 1 + 1 )) = 2 || exit 1 |
202 | ||
203 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
204 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
206 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
207 | PATH=/empty FPATH=/empty; export PATH FPATH | |
208 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
209 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
81ecdfbb RW |
210 | if (eval "$as_required") 2>/dev/null; then : |
211 | as_have_required=yes | |
212 | else | |
213 | as_have_required=no | |
214 | fi | |
215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
216 | ||
217 | else | |
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
219 | as_found=false | |
220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
b7026657 | 221 | do |
81ecdfbb RW |
222 | IFS=$as_save_IFS |
223 | test -z "$as_dir" && as_dir=. | |
224 | as_found=: | |
225 | case $as_dir in #( | |
226 | /*) | |
227 | for as_base in sh bash ksh sh5; do | |
228 | # Try only shells that exist, to save several forks. | |
229 | as_shell=$as_dir/$as_base | |
230 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | CONFIG_SHELL=$as_shell as_have_required=yes | |
233 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
234 | break 2 | |
235 | fi | |
236 | fi | |
237 | done;; | |
238 | esac | |
239 | as_found=false | |
240 | done | |
241 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
242 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
243 | CONFIG_SHELL=$SHELL as_have_required=yes | |
244 | fi; } | |
245 | IFS=$as_save_IFS | |
246 | ||
247 | ||
248 | if test "x$CONFIG_SHELL" != x; then : | |
d0ac1c44 SM |
249 | export CONFIG_SHELL |
250 | # We cannot yet assume a decent shell, so we have to provide a | |
251 | # neutralization value for shells without unset; and this also | |
252 | # works around shells that cannot unset nonexistent variables. | |
253 | # Preserve -v and -x to the replacement shell. | |
254 | BASH_ENV=/dev/null | |
255 | ENV=/dev/null | |
256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
257 | case $- in # (((( | |
258 | *v*x* | *x*v* ) as_opts=-vx ;; | |
259 | *v* ) as_opts=-v ;; | |
260 | *x* ) as_opts=-x ;; | |
261 | * ) as_opts= ;; | |
262 | esac | |
263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
264 | # Admittedly, this is quite paranoid, since all the known shells bail | |
265 | # out after a failed `exec'. | |
266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
267 | exit 255 | |
81ecdfbb RW |
268 | fi |
269 | ||
270 | if test x$as_have_required = xno; then : | |
271 | $as_echo "$0: This script requires a shell more modern than all" | |
272 | $as_echo "$0: the shells that I found on your system." | |
273 | if test x${ZSH_VERSION+set} = xset ; then | |
274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
b7026657 | 276 | else |
6bddc3e8 MF |
277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
278 | $0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim | |
279 | $0: about your system, including any error possibly output | |
280 | $0: before this message. Then install a modern shell, or | |
281 | $0: manually run the script under such a shell if you do | |
282 | $0: have one." | |
b7026657 | 283 | fi |
81ecdfbb RW |
284 | exit 1 |
285 | fi | |
286 | fi | |
287 | fi | |
288 | SHELL=${CONFIG_SHELL-/bin/sh} | |
289 | export SHELL | |
290 | # Unset more variables known to interfere with behavior of common tools. | |
291 | CLICOLOR_FORCE= GREP_OPTIONS= | |
292 | unset CLICOLOR_FORCE GREP_OPTIONS | |
293 | ||
294 | ## --------------------- ## | |
295 | ## M4sh Shell Functions. ## | |
296 | ## --------------------- ## | |
297 | # as_fn_unset VAR | |
298 | # --------------- | |
299 | # Portably unset VAR. | |
300 | as_fn_unset () | |
301 | { | |
302 | { eval $1=; unset $1;} | |
303 | } | |
304 | as_unset=as_fn_unset | |
305 | ||
306 | # as_fn_set_status STATUS | |
307 | # ----------------------- | |
308 | # Set $? to STATUS, without forking. | |
309 | as_fn_set_status () | |
310 | { | |
311 | return $1 | |
312 | } # as_fn_set_status | |
313 | ||
314 | # as_fn_exit STATUS | |
315 | # ----------------- | |
316 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
317 | as_fn_exit () | |
318 | { | |
319 | set +e | |
320 | as_fn_set_status $1 | |
321 | exit $1 | |
322 | } # as_fn_exit | |
323 | ||
324 | # as_fn_mkdir_p | |
325 | # ------------- | |
326 | # Create "$as_dir" as a directory, including parents if necessary. | |
327 | as_fn_mkdir_p () | |
328 | { | |
329 | ||
330 | case $as_dir in #( | |
331 | -*) as_dir=./$as_dir;; | |
332 | esac | |
333 | test -d "$as_dir" || eval $as_mkdir_p || { | |
334 | as_dirs= | |
335 | while :; do | |
336 | case $as_dir in #( | |
337 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
338 | *) as_qdir=$as_dir;; | |
339 | esac | |
340 | as_dirs="'$as_qdir' $as_dirs" | |
341 | as_dir=`$as_dirname -- "$as_dir" || | |
342 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
343 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
344 | X"$as_dir" : 'X\(//\)$' \| \ | |
345 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
346 | $as_echo X"$as_dir" | | |
347 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)[^/].*/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\/\)$/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | /^X\(\/\).*/{ | |
360 | s//\1/ | |
361 | q | |
362 | } | |
363 | s/.*/./; q'` | |
364 | test -d "$as_dir" && break | |
365 | done | |
366 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 367 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
368 | |
369 | ||
370 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
371 | |
372 | # as_fn_executable_p FILE | |
373 | # ----------------------- | |
374 | # Test if FILE is an executable regular file. | |
375 | as_fn_executable_p () | |
376 | { | |
377 | test -f "$1" && test -x "$1" | |
378 | } # as_fn_executable_p | |
81ecdfbb RW |
379 | # as_fn_append VAR VALUE |
380 | # ---------------------- | |
381 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
382 | # advantage of any shell optimizations that allow amortized linear growth over | |
383 | # repeated appends, instead of the typical quadratic growth present in naive | |
384 | # implementations. | |
385 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
386 | eval 'as_fn_append () | |
387 | { | |
388 | eval $1+=\$2 | |
389 | }' | |
390 | else | |
391 | as_fn_append () | |
392 | { | |
393 | eval $1=\$$1\$2 | |
394 | } | |
395 | fi # as_fn_append | |
396 | ||
397 | # as_fn_arith ARG... | |
398 | # ------------------ | |
399 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
400 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
401 | # must be portable across $(()) and expr. | |
402 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
403 | eval 'as_fn_arith () | |
404 | { | |
405 | as_val=$(( $* )) | |
406 | }' | |
407 | else | |
408 | as_fn_arith () | |
409 | { | |
410 | as_val=`expr "$@" || test $? -eq 1` | |
411 | } | |
412 | fi # as_fn_arith | |
413 | ||
414 | ||
d0ac1c44 SM |
415 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
416 | # ---------------------------------------- | |
81ecdfbb RW |
417 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
418 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 419 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
420 | as_fn_error () |
421 | { | |
d0ac1c44 SM |
422 | as_status=$1; test $as_status -eq 0 && as_status=1 |
423 | if test "$4"; then | |
424 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
425 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
81ecdfbb | 426 | fi |
d0ac1c44 | 427 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
428 | as_fn_exit $as_status |
429 | } # as_fn_error | |
b7026657 | 430 | |
81ecdfbb RW |
431 | if expr a : '\(a\)' >/dev/null 2>&1 && |
432 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 AC |
433 | as_expr=expr |
434 | else | |
435 | as_expr=false | |
436 | fi | |
437 | ||
81ecdfbb | 438 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 AC |
439 | as_basename=basename |
440 | else | |
441 | as_basename=false | |
442 | fi | |
443 | ||
81ecdfbb RW |
444 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
445 | as_dirname=dirname | |
446 | else | |
447 | as_dirname=false | |
448 | fi | |
b7026657 | 449 | |
81ecdfbb | 450 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
451 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
452 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
453 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
454 | $as_echo X/"$0" | | |
455 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\/\)$/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | /^X\/\(\/\).*/{ | |
464 | s//\1/ | |
465 | q | |
466 | } | |
467 | s/.*/./; q'` | |
b7026657 | 468 | |
fdd6fa61 AG |
469 | # Avoid depending upon Character Ranges. |
470 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
471 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
472 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
473 | as_cr_digits='0123456789' | |
474 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
df1756f4 | 475 | |
b7026657 | 476 | |
81ecdfbb RW |
477 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
478 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
479 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
480 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
481 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
482 | sed -n ' | |
483 | p | |
484 | /[$]LINENO/= | |
485 | ' <$as_myself | | |
b7026657 | 486 | sed ' |
81ecdfbb RW |
487 | s/[$]LINENO.*/&-/ |
488 | t lineno | |
489 | b | |
490 | :lineno | |
b7026657 | 491 | N |
81ecdfbb RW |
492 | :loop |
493 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b7026657 | 494 | t loop |
81ecdfbb | 495 | s/-\n.*// |
b7026657 | 496 | ' >$as_me.lineno && |
81ecdfbb RW |
497 | chmod +x "$as_me.lineno" || |
498 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
b7026657 | 499 | |
d0ac1c44 SM |
500 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
501 | # already done that, so ensure we don't try to do so again and fall | |
502 | # in an infinite loop. This has already happened in practice. | |
503 | _as_can_reexec=no; export _as_can_reexec | |
b7026657 AC |
504 | # Don't try to exec as it changes $[0], causing all sort of problems |
505 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
506 | # original and so on. Autoconf is especially sensitive to this). |
507 | . "./$as_me.lineno" | |
b7026657 AC |
508 | # Exit status is that of the last command. |
509 | exit | |
510 | } | |
511 | ||
81ecdfbb RW |
512 | ECHO_C= ECHO_N= ECHO_T= |
513 | case `echo -n x` in #((((( | |
514 | -n*) | |
515 | case `echo 'xy\c'` in | |
516 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
517 | xy) ECHO_C='\c';; | |
518 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
519 | ECHO_T=' ';; | |
520 | esac;; | |
521 | *) | |
522 | ECHO_N='-n';; | |
b7026657 AC |
523 | esac |
524 | ||
81ecdfbb RW |
525 | rm -f conf$$ conf$$.exe conf$$.file |
526 | if test -d conf$$.dir; then | |
527 | rm -f conf$$.dir/conf$$.file | |
b7026657 | 528 | else |
81ecdfbb RW |
529 | rm -f conf$$.dir |
530 | mkdir conf$$.dir 2>/dev/null | |
b7026657 | 531 | fi |
81ecdfbb RW |
532 | if (echo >conf$$.file) 2>/dev/null; then |
533 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
fdd6fa61 | 534 | as_ln_s='ln -s' |
81ecdfbb RW |
535 | # ... but there are two gotchas: |
536 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
537 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 538 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 539 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 540 | as_ln_s='cp -pR' |
81ecdfbb RW |
541 | elif ln conf$$.file conf$$ 2>/dev/null; then |
542 | as_ln_s=ln | |
543 | else | |
d0ac1c44 | 544 | as_ln_s='cp -pR' |
fdd6fa61 | 545 | fi |
b7026657 | 546 | else |
d0ac1c44 | 547 | as_ln_s='cp -pR' |
b7026657 | 548 | fi |
81ecdfbb RW |
549 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
550 | rmdir conf$$.dir 2>/dev/null | |
b7026657 AC |
551 | |
552 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 553 | as_mkdir_p='mkdir -p "$as_dir"' |
b7026657 AC |
554 | else |
555 | test -d ./-p && rmdir ./-p | |
556 | as_mkdir_p=false | |
557 | fi | |
c906108c | 558 | |
d0ac1c44 SM |
559 | as_test_x='test -x' |
560 | as_executable_p=as_fn_executable_p | |
b7026657 AC |
561 | |
562 | # Sed expression to map a string onto a valid CPP name. | |
563 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
564 | ||
565 | # Sed expression to map a string onto a valid variable name. | |
566 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
567 | ||
b5689863 MF |
568 | SHELL=${CONFIG_SHELL-/bin/sh} |
569 | ||
b7026657 | 570 | |
d0ac1c44 SM |
571 | test -n "$DJDIR" || exec 7<&0 </dev/null |
572 | exec 6>&1 | |
b7026657 AC |
573 | |
574 | # Name of the host. | |
d0ac1c44 | 575 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
b7026657 AC |
576 | # so uname gets run too. |
577 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
578 | ||
b7026657 AC |
579 | # |
580 | # Initializations. | |
581 | # | |
c906108c | 582 | ac_default_prefix=/usr/local |
81ecdfbb | 583 | ac_clean_files= |
b7026657 | 584 | ac_config_libobj_dir=. |
81ecdfbb | 585 | LIBOBJS= |
b7026657 AC |
586 | cross_compiling=no |
587 | subdirs= | |
588 | MFLAGS= | |
589 | MAKEFLAGS= | |
fdd6fa61 | 590 | |
b7026657 | 591 | # Identity of this package. |
6bddc3e8 MF |
592 | PACKAGE_NAME='sim' |
593 | PACKAGE_TARNAME='sim' | |
594 | PACKAGE_VERSION='0' | |
595 | PACKAGE_STRING='sim 0' | |
596 | PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim' | |
597 | PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/' | |
598 | ||
c2783492 MF |
599 | # Factoring default headers for most tests. |
600 | ac_includes_default="\ | |
601 | #include <stdio.h> | |
602 | #ifdef HAVE_SYS_TYPES_H | |
603 | # include <sys/types.h> | |
604 | #endif | |
605 | #ifdef HAVE_SYS_STAT_H | |
606 | # include <sys/stat.h> | |
607 | #endif | |
608 | #ifdef STDC_HEADERS | |
609 | # include <stdlib.h> | |
610 | # include <stddef.h> | |
611 | #else | |
612 | # ifdef HAVE_STDLIB_H | |
613 | # include <stdlib.h> | |
614 | # endif | |
615 | #endif | |
616 | #ifdef HAVE_STRING_H | |
617 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
618 | # include <memory.h> | |
619 | # endif | |
620 | # include <string.h> | |
621 | #endif | |
622 | #ifdef HAVE_STRINGS_H | |
623 | # include <strings.h> | |
624 | #endif | |
625 | #ifdef HAVE_INTTYPES_H | |
626 | # include <inttypes.h> | |
627 | #endif | |
628 | #ifdef HAVE_STDINT_H | |
629 | # include <stdint.h> | |
630 | #endif | |
631 | #ifdef HAVE_UNISTD_H | |
632 | # include <unistd.h> | |
633 | #endif" | |
634 | ||
b15c5d7a MF |
635 | ac_header_list= |
636 | ac_func_list= | |
81ecdfbb | 637 | enable_option_checking=no |
6bddc3e8 MF |
638 | ac_subst_vars='am__EXEEXT_FALSE |
639 | am__EXEEXT_TRUE | |
640 | LTLIBOBJS | |
e173c80f | 641 | SIM_RX_CYCLE_ACCURATE_FLAGS |
1787fcc4 | 642 | SIM_RISCV_BITSIZE |
f12c3c63 MF |
643 | SIM_MIPS_GEN_MODE_MULTI_FALSE |
644 | SIM_MIPS_GEN_MODE_MULTI_TRUE | |
f6d58d40 MF |
645 | SIM_MIPS_GEN_MODE_M16_FALSE |
646 | SIM_MIPS_GEN_MODE_M16_TRUE | |
3a31051b MF |
647 | SIM_MIPS_GEN_MODE_SINGLE_FALSE |
648 | SIM_MIPS_GEN_MODE_SINGLE_TRUE | |
abc494c6 MF |
649 | SIM_MIPS_MULTI_OBJ |
650 | SIM_MIPS_MULTI_SRC | |
651 | SIM_MIPS_MULTI_IGEN_CONFIGS | |
4c45662c | 652 | SIM_MIPS_IGEN_ITABLE_FLAGS |
abc494c6 | 653 | SIM_MIPS_GEN |
abc494c6 | 654 | SIM_MIPS_M16_FLAGS |
07f60ed8 | 655 | SIM_MIPS_SINGLE_FLAGS |
d455df98 | 656 | SIM_MIPS_FPU_BITSIZE |
19b11256 | 657 | SIM_MIPS_BITSIZE |
2d5700ad | 658 | SIM_MIPS_SUBTARGET |
408a44aa | 659 | SIM_FRV_TRAPDUMP_FLAGS |
111b1cf9 | 660 | IGEN_FLAGS_SMP |
d73f39ee | 661 | SIM_INLINE |
682a2a82 MF |
662 | SIM_HW_SOCKSER |
663 | SIM_HW_CFLAGS | |
456ef1c1 MF |
664 | SIM_ENABLE_HW_FALSE |
665 | SIM_ENABLE_HW_TRUE | |
1bf5c342 MF |
666 | cgen |
667 | cgendir | |
668 | CGEN_MAINT | |
fb2c495f MF |
669 | ENABLE_SIM_FALSE |
670 | ENABLE_SIM_TRUE | |
c0c25232 MF |
671 | SIM_ENABLE_ARCH_examples_FALSE |
672 | SIM_ENABLE_ARCH_examples_TRUE | |
8996c210 MF |
673 | CC_FOR_TARGET_EXAMPLE_SYNACOR |
674 | LD_FOR_TARGET_EXAMPLE_SYNACOR | |
675 | AS_FOR_TARGET_EXAMPLE_SYNACOR | |
65dcce8f MF |
676 | SIM_ENABLE_ARCH_v850_FALSE |
677 | SIM_ENABLE_ARCH_v850_TRUE | |
8996c210 MF |
678 | CC_FOR_TARGET_V850 |
679 | LD_FOR_TARGET_V850 | |
680 | AS_FOR_TARGET_V850 | |
65dcce8f MF |
681 | SIM_ENABLE_ARCH_erc32_FALSE |
682 | SIM_ENABLE_ARCH_erc32_TRUE | |
8996c210 MF |
683 | CC_FOR_TARGET_ERC32 |
684 | LD_FOR_TARGET_ERC32 | |
685 | AS_FOR_TARGET_ERC32 | |
65dcce8f MF |
686 | SIM_ENABLE_ARCH_sh_FALSE |
687 | SIM_ENABLE_ARCH_sh_TRUE | |
8996c210 MF |
688 | CC_FOR_TARGET_SH |
689 | LD_FOR_TARGET_SH | |
690 | AS_FOR_TARGET_SH | |
65dcce8f MF |
691 | SIM_ENABLE_ARCH_rx_FALSE |
692 | SIM_ENABLE_ARCH_rx_TRUE | |
8996c210 MF |
693 | CC_FOR_TARGET_RX |
694 | LD_FOR_TARGET_RX | |
695 | AS_FOR_TARGET_RX | |
65dcce8f MF |
696 | SIM_ENABLE_ARCH_rl78_FALSE |
697 | SIM_ENABLE_ARCH_rl78_TRUE | |
8996c210 MF |
698 | CC_FOR_TARGET_RL78 |
699 | LD_FOR_TARGET_RL78 | |
700 | AS_FOR_TARGET_RL78 | |
65dcce8f MF |
701 | SIM_ENABLE_ARCH_riscv_FALSE |
702 | SIM_ENABLE_ARCH_riscv_TRUE | |
8996c210 MF |
703 | CC_FOR_TARGET_RISCV |
704 | LD_FOR_TARGET_RISCV | |
705 | AS_FOR_TARGET_RISCV | |
65dcce8f MF |
706 | SIM_ENABLE_ARCH_pru_FALSE |
707 | SIM_ENABLE_ARCH_pru_TRUE | |
8996c210 MF |
708 | CC_FOR_TARGET_PRU |
709 | LD_FOR_TARGET_PRU | |
710 | AS_FOR_TARGET_PRU | |
65dcce8f MF |
711 | SIM_ENABLE_ARCH_ppc_FALSE |
712 | SIM_ENABLE_ARCH_ppc_TRUE | |
8996c210 MF |
713 | CC_FOR_TARGET_PPC |
714 | LD_FOR_TARGET_PPC | |
715 | AS_FOR_TARGET_PPC | |
abc494c6 | 716 | subdirs |
65dcce8f MF |
717 | SIM_ENABLE_ARCH_or1k_FALSE |
718 | SIM_ENABLE_ARCH_or1k_TRUE | |
8996c210 MF |
719 | CC_FOR_TARGET_OR1K |
720 | LD_FOR_TARGET_OR1K | |
721 | AS_FOR_TARGET_OR1K | |
65dcce8f MF |
722 | SIM_ENABLE_ARCH_msp430_FALSE |
723 | SIM_ENABLE_ARCH_msp430_TRUE | |
8996c210 MF |
724 | CC_FOR_TARGET_MSP430 |
725 | LD_FOR_TARGET_MSP430 | |
726 | AS_FOR_TARGET_MSP430 | |
65dcce8f MF |
727 | SIM_ENABLE_ARCH_moxie_FALSE |
728 | SIM_ENABLE_ARCH_moxie_TRUE | |
8996c210 MF |
729 | CC_FOR_TARGET_MOXIE |
730 | LD_FOR_TARGET_MOXIE | |
731 | AS_FOR_TARGET_MOXIE | |
65dcce8f MF |
732 | SIM_ENABLE_ARCH_mn10300_FALSE |
733 | SIM_ENABLE_ARCH_mn10300_TRUE | |
8996c210 MF |
734 | CC_FOR_TARGET_MN10300 |
735 | LD_FOR_TARGET_MN10300 | |
736 | AS_FOR_TARGET_MN10300 | |
65dcce8f MF |
737 | SIM_ENABLE_ARCH_mips_FALSE |
738 | SIM_ENABLE_ARCH_mips_TRUE | |
8996c210 MF |
739 | CC_FOR_TARGET_MIPS |
740 | LD_FOR_TARGET_MIPS | |
741 | AS_FOR_TARGET_MIPS | |
65dcce8f MF |
742 | SIM_ENABLE_ARCH_microblaze_FALSE |
743 | SIM_ENABLE_ARCH_microblaze_TRUE | |
8996c210 MF |
744 | CC_FOR_TARGET_MICROBLAZE |
745 | LD_FOR_TARGET_MICROBLAZE | |
746 | AS_FOR_TARGET_MICROBLAZE | |
65dcce8f MF |
747 | SIM_ENABLE_ARCH_mcore_FALSE |
748 | SIM_ENABLE_ARCH_mcore_TRUE | |
8996c210 MF |
749 | CC_FOR_TARGET_MCORE |
750 | LD_FOR_TARGET_MCORE | |
751 | AS_FOR_TARGET_MCORE | |
65dcce8f MF |
752 | SIM_ENABLE_ARCH_m68hc11_FALSE |
753 | SIM_ENABLE_ARCH_m68hc11_TRUE | |
8996c210 MF |
754 | CC_FOR_TARGET_M68HC11 |
755 | LD_FOR_TARGET_M68HC11 | |
756 | AS_FOR_TARGET_M68HC11 | |
65dcce8f MF |
757 | SIM_ENABLE_ARCH_m32r_FALSE |
758 | SIM_ENABLE_ARCH_m32r_TRUE | |
8996c210 MF |
759 | CC_FOR_TARGET_M32R |
760 | LD_FOR_TARGET_M32R | |
761 | AS_FOR_TARGET_M32R | |
65dcce8f MF |
762 | SIM_ENABLE_ARCH_m32c_FALSE |
763 | SIM_ENABLE_ARCH_m32c_TRUE | |
8996c210 MF |
764 | CC_FOR_TARGET_M32C |
765 | LD_FOR_TARGET_M32C | |
766 | AS_FOR_TARGET_M32C | |
65dcce8f MF |
767 | SIM_ENABLE_ARCH_lm32_FALSE |
768 | SIM_ENABLE_ARCH_lm32_TRUE | |
8996c210 MF |
769 | CC_FOR_TARGET_LM32 |
770 | LD_FOR_TARGET_LM32 | |
771 | AS_FOR_TARGET_LM32 | |
65dcce8f MF |
772 | SIM_ENABLE_ARCH_iq2000_FALSE |
773 | SIM_ENABLE_ARCH_iq2000_TRUE | |
8996c210 MF |
774 | CC_FOR_TARGET_IQ2000 |
775 | LD_FOR_TARGET_IQ2000 | |
776 | AS_FOR_TARGET_IQ2000 | |
65dcce8f MF |
777 | SIM_ENABLE_ARCH_h8300_FALSE |
778 | SIM_ENABLE_ARCH_h8300_TRUE | |
8996c210 MF |
779 | CC_FOR_TARGET_H8300 |
780 | LD_FOR_TARGET_H8300 | |
781 | AS_FOR_TARGET_H8300 | |
65dcce8f MF |
782 | SIM_ENABLE_ARCH_ft32_FALSE |
783 | SIM_ENABLE_ARCH_ft32_TRUE | |
8996c210 MF |
784 | CC_FOR_TARGET_FT32 |
785 | LD_FOR_TARGET_FT32 | |
786 | AS_FOR_TARGET_FT32 | |
65dcce8f MF |
787 | SIM_ENABLE_ARCH_frv_FALSE |
788 | SIM_ENABLE_ARCH_frv_TRUE | |
8996c210 MF |
789 | CC_FOR_TARGET_FRV |
790 | LD_FOR_TARGET_FRV | |
791 | AS_FOR_TARGET_FRV | |
65dcce8f MF |
792 | SIM_ENABLE_ARCH_d10v_FALSE |
793 | SIM_ENABLE_ARCH_d10v_TRUE | |
8996c210 MF |
794 | CC_FOR_TARGET_D10V |
795 | LD_FOR_TARGET_D10V | |
796 | AS_FOR_TARGET_D10V | |
65dcce8f MF |
797 | SIM_ENABLE_ARCH_cris_FALSE |
798 | SIM_ENABLE_ARCH_cris_TRUE | |
8996c210 MF |
799 | CC_FOR_TARGET_CRIS |
800 | LD_FOR_TARGET_CRIS | |
801 | AS_FOR_TARGET_CRIS | |
65dcce8f MF |
802 | SIM_ENABLE_ARCH_cr16_FALSE |
803 | SIM_ENABLE_ARCH_cr16_TRUE | |
8996c210 MF |
804 | CC_FOR_TARGET_CR16 |
805 | LD_FOR_TARGET_CR16 | |
806 | AS_FOR_TARGET_CR16 | |
65dcce8f MF |
807 | SIM_ENABLE_ARCH_bpf_FALSE |
808 | SIM_ENABLE_ARCH_bpf_TRUE | |
8996c210 MF |
809 | CC_FOR_TARGET_BPF |
810 | LD_FOR_TARGET_BPF | |
811 | AS_FOR_TARGET_BPF | |
65dcce8f MF |
812 | SIM_ENABLE_ARCH_bfin_FALSE |
813 | SIM_ENABLE_ARCH_bfin_TRUE | |
8996c210 MF |
814 | CC_FOR_TARGET_BFIN |
815 | LD_FOR_TARGET_BFIN | |
816 | AS_FOR_TARGET_BFIN | |
65dcce8f MF |
817 | SIM_ENABLE_ARCH_avr_FALSE |
818 | SIM_ENABLE_ARCH_avr_TRUE | |
8996c210 MF |
819 | CC_FOR_TARGET_AVR |
820 | LD_FOR_TARGET_AVR | |
821 | AS_FOR_TARGET_AVR | |
65dcce8f MF |
822 | SIM_ENABLE_ARCH_arm_FALSE |
823 | SIM_ENABLE_ARCH_arm_TRUE | |
8996c210 MF |
824 | CC_FOR_TARGET_ARM |
825 | LD_FOR_TARGET_ARM | |
826 | AS_FOR_TARGET_ARM | |
65dcce8f MF |
827 | SIM_ENABLE_ARCH_aarch64_FALSE |
828 | SIM_ENABLE_ARCH_aarch64_TRUE | |
8996c210 MF |
829 | CC_FOR_TARGET_AARCH64 |
830 | LD_FOR_TARGET_AARCH64 | |
831 | AS_FOR_TARGET_AARCH64 | |
dc4e1fde HPN |
832 | LD_FOR_TARGET |
833 | AS_FOR_TARGET | |
834 | CC_FOR_TARGET | |
2ba09f42 | 835 | SIM_ENABLED_ARCHES |
a0e674c1 | 836 | SIM_PRIMARY_TARGET |
c2783492 MF |
837 | AM_BACKSLASH |
838 | AM_DEFAULT_VERBOSITY | |
839 | AM_DEFAULT_V | |
840 | AM_V | |
6bddc3e8 MF |
841 | am__fastdepCC_FALSE |
842 | am__fastdepCC_TRUE | |
843 | CCDEPMODE | |
844 | am__nodep | |
845 | AMDEPBACKSLASH | |
846 | AMDEP_FALSE | |
847 | AMDEP_TRUE | |
848 | am__quote | |
849 | am__include | |
850 | DEPDIR | |
6bddc3e8 MF |
851 | am__untar |
852 | am__tar | |
853 | AMTAR | |
854 | am__leading_dot | |
855 | SET_MAKE | |
6bddc3e8 MF |
856 | mkdir_p |
857 | MKDIR_P | |
858 | INSTALL_STRIP_PROGRAM | |
6bddc3e8 MF |
859 | install_sh |
860 | MAKEINFO | |
861 | AUTOHEADER | |
862 | AUTOMAKE | |
863 | AUTOCONF | |
864 | ACLOCAL | |
865 | VERSION | |
866 | PACKAGE | |
867 | CYGPATH_W | |
868 | am__isrc | |
8c379db2 TT |
869 | MAINT |
870 | MAINTAINER_MODE_FALSE | |
871 | MAINTAINER_MODE_TRUE | |
5d0b3088 MF |
872 | READLINE_CFLAGS |
873 | READLINE_LIB | |
874 | TERMCAP_LIB | |
d57b6533 MF |
875 | SDL_LIBS |
876 | SDL_CFLAGS | |
b5689863 MF |
877 | OTOOL64 |
878 | OTOOL | |
879 | LIPO | |
880 | NMEDIT | |
881 | DSYMUTIL | |
882 | AWK | |
883 | STRIP | |
884 | OBJDUMP | |
885 | LN_S | |
886 | NM | |
887 | ac_ct_DUMPBIN | |
888 | DUMPBIN | |
889 | LD | |
890 | FGREP | |
891 | SED | |
892 | LIBTOOL | |
a48ff3ef | 893 | LIBOBJS |
c2783492 | 894 | C_DIALECT |
d57b6533 MF |
895 | PKG_CONFIG_LIBDIR |
896 | PKG_CONFIG_PATH | |
897 | PKG_CONFIG | |
c2783492 MF |
898 | RANLIB |
899 | AR | |
900 | LDFLAGS_FOR_BUILD | |
fde7c6bf | 901 | CPPFLAGS_FOR_BUILD |
c2783492 | 902 | CFLAGS_FOR_BUILD |
aa0fca16 | 903 | RANLIB_FOR_BUILD |
c2783492 | 904 | CC_FOR_BUILD |
aa0fca16 | 905 | AR_FOR_BUILD |
a979f2a0 | 906 | DTC |
c2783492 MF |
907 | INSTALL_DATA |
908 | INSTALL_SCRIPT | |
909 | INSTALL_PROGRAM | |
910 | EGREP | |
911 | GREP | |
912 | CPP | |
913 | OBJEXT | |
914 | EXEEXT | |
915 | ac_ct_CC | |
916 | CPPFLAGS | |
917 | LDFLAGS | |
918 | CFLAGS | |
919 | CC | |
81ecdfbb RW |
920 | target_os |
921 | target_vendor | |
922 | target_cpu | |
923 | target | |
924 | host_os | |
925 | host_vendor | |
926 | host_cpu | |
927 | host | |
928 | build_os | |
929 | build_vendor | |
930 | build_cpu | |
931 | build | |
6dd65fc0 MF |
932 | REPORT_BUGS_TEXI |
933 | REPORT_BUGS_TO | |
934 | PKGVERSION | |
81ecdfbb RW |
935 | target_alias |
936 | host_alias | |
937 | build_alias | |
938 | LIBS | |
939 | ECHO_T | |
940 | ECHO_N | |
941 | ECHO_C | |
942 | DEFS | |
943 | mandir | |
944 | localedir | |
945 | libdir | |
946 | psdir | |
947 | pdfdir | |
948 | dvidir | |
949 | htmldir | |
950 | infodir | |
951 | docdir | |
952 | oldincludedir | |
953 | includedir | |
954 | localstatedir | |
955 | sharedstatedir | |
956 | sysconfdir | |
957 | datadir | |
958 | datarootdir | |
959 | libexecdir | |
960 | sbindir | |
961 | bindir | |
962 | program_transform_name | |
963 | prefix | |
964 | exec_prefix | |
965 | PACKAGE_URL | |
966 | PACKAGE_BUGREPORT | |
967 | PACKAGE_STRING | |
968 | PACKAGE_VERSION | |
969 | PACKAGE_TARNAME | |
970 | PACKAGE_NAME | |
971 | PATH_SEPARATOR | |
47ce766a | 972 | SHELL |
8996c210 | 973 | SIM_TOOLCHAIN_VARS |
47ce766a MF |
974 | WERROR_CFLAGS |
975 | WARN_CFLAGS' | |
b7026657 | 976 | ac_subst_files='' |
81ecdfbb RW |
977 | ac_user_opts=' |
978 | enable_option_checking | |
6dd65fc0 MF |
979 | with_pkgversion |
980 | with_bugurl | |
b5689863 MF |
981 | enable_shared |
982 | enable_static | |
983 | with_pic | |
984 | enable_fast_install | |
985 | with_gnu_ld | |
986 | enable_libtool_lock | |
8c379db2 | 987 | enable_maintainer_mode |
6bddc3e8 | 988 | enable_dependency_tracking |
c2783492 | 989 | enable_silent_rules |
81ecdfbb | 990 | enable_sim |
26da232c | 991 | enable_example_sims |
a0e674c1 | 992 | enable_targets |
ba307cdd | 993 | enable_sim_alignment |
dba333c1 | 994 | enable_sim_assert |
1bf5c342 | 995 | enable_cgen_maint |
04381273 | 996 | enable_sim_debug |
f9a4d543 | 997 | enable_sim_endian |
5ea45474 | 998 | enable_sim_environment |
456ef1c1 | 999 | enable_sim_hardware |
d73f39ee | 1000 | enable_sim_inline |
04381273 | 1001 | enable_sim_profile |
7eb1f99a | 1002 | enable_sim_reserved_bits |
b79efe26 | 1003 | enable_sim_scache |
20b579ba | 1004 | enable_sim_smp |
04381273 MF |
1005 | enable_sim_stdio |
1006 | enable_sim_trace | |
47ce766a MF |
1007 | enable_werror |
1008 | enable_build_warnings | |
1009 | enable_sim_build_warnings | |
408a44aa | 1010 | enable_sim_frv_trapdump |
e173c80f | 1011 | enable_sim_rx_cycle_accurate |
81ecdfbb RW |
1012 | ' |
1013 | ac_precious_vars='build_alias | |
1014 | host_alias | |
1015 | target_alias | |
1016 | CC | |
1017 | CFLAGS | |
1018 | LDFLAGS | |
1019 | LIBS | |
5e25901f | 1020 | CPPFLAGS |
d57b6533 MF |
1021 | CPP |
1022 | PKG_CONFIG | |
1023 | PKG_CONFIG_PATH | |
1024 | PKG_CONFIG_LIBDIR | |
1025 | SDL_CFLAGS | |
8996c210 MF |
1026 | SDL_LIBS |
1027 | AS_FOR_TARGET_AARCH64 | |
1028 | LD_FOR_TARGET_AARCH64 | |
1029 | CC_FOR_TARGET_AARCH64 | |
1030 | AS_FOR_TARGET_ARM | |
1031 | LD_FOR_TARGET_ARM | |
1032 | CC_FOR_TARGET_ARM | |
1033 | AS_FOR_TARGET_AVR | |
1034 | LD_FOR_TARGET_AVR | |
1035 | CC_FOR_TARGET_AVR | |
1036 | AS_FOR_TARGET_BFIN | |
1037 | LD_FOR_TARGET_BFIN | |
1038 | CC_FOR_TARGET_BFIN | |
1039 | AS_FOR_TARGET_BPF | |
1040 | LD_FOR_TARGET_BPF | |
1041 | CC_FOR_TARGET_BPF | |
1042 | AS_FOR_TARGET_CR16 | |
1043 | LD_FOR_TARGET_CR16 | |
1044 | CC_FOR_TARGET_CR16 | |
1045 | AS_FOR_TARGET_CRIS | |
1046 | LD_FOR_TARGET_CRIS | |
1047 | CC_FOR_TARGET_CRIS | |
1048 | AS_FOR_TARGET_D10V | |
1049 | LD_FOR_TARGET_D10V | |
1050 | CC_FOR_TARGET_D10V | |
1051 | AS_FOR_TARGET_FRV | |
1052 | LD_FOR_TARGET_FRV | |
1053 | CC_FOR_TARGET_FRV | |
1054 | AS_FOR_TARGET_FT32 | |
1055 | LD_FOR_TARGET_FT32 | |
1056 | CC_FOR_TARGET_FT32 | |
1057 | AS_FOR_TARGET_H8300 | |
1058 | LD_FOR_TARGET_H8300 | |
1059 | CC_FOR_TARGET_H8300 | |
1060 | AS_FOR_TARGET_IQ2000 | |
1061 | LD_FOR_TARGET_IQ2000 | |
1062 | CC_FOR_TARGET_IQ2000 | |
1063 | AS_FOR_TARGET_LM32 | |
1064 | LD_FOR_TARGET_LM32 | |
1065 | CC_FOR_TARGET_LM32 | |
1066 | AS_FOR_TARGET_M32C | |
1067 | LD_FOR_TARGET_M32C | |
1068 | CC_FOR_TARGET_M32C | |
1069 | AS_FOR_TARGET_M32R | |
1070 | LD_FOR_TARGET_M32R | |
1071 | CC_FOR_TARGET_M32R | |
1072 | AS_FOR_TARGET_M68HC11 | |
1073 | LD_FOR_TARGET_M68HC11 | |
1074 | CC_FOR_TARGET_M68HC11 | |
1075 | AS_FOR_TARGET_MCORE | |
1076 | LD_FOR_TARGET_MCORE | |
1077 | CC_FOR_TARGET_MCORE | |
1078 | AS_FOR_TARGET_MICROBLAZE | |
1079 | LD_FOR_TARGET_MICROBLAZE | |
1080 | CC_FOR_TARGET_MICROBLAZE | |
1081 | AS_FOR_TARGET_MIPS | |
1082 | LD_FOR_TARGET_MIPS | |
1083 | CC_FOR_TARGET_MIPS | |
1084 | AS_FOR_TARGET_MN10300 | |
1085 | LD_FOR_TARGET_MN10300 | |
1086 | CC_FOR_TARGET_MN10300 | |
1087 | AS_FOR_TARGET_MOXIE | |
1088 | LD_FOR_TARGET_MOXIE | |
1089 | CC_FOR_TARGET_MOXIE | |
1090 | AS_FOR_TARGET_MSP430 | |
1091 | LD_FOR_TARGET_MSP430 | |
1092 | CC_FOR_TARGET_MSP430 | |
1093 | AS_FOR_TARGET_OR1K | |
1094 | LD_FOR_TARGET_OR1K | |
1095 | CC_FOR_TARGET_OR1K | |
1096 | AS_FOR_TARGET_PPC | |
1097 | LD_FOR_TARGET_PPC | |
1098 | CC_FOR_TARGET_PPC | |
1099 | AS_FOR_TARGET_PRU | |
1100 | LD_FOR_TARGET_PRU | |
1101 | CC_FOR_TARGET_PRU | |
1102 | AS_FOR_TARGET_RISCV | |
1103 | LD_FOR_TARGET_RISCV | |
1104 | CC_FOR_TARGET_RISCV | |
1105 | AS_FOR_TARGET_RL78 | |
1106 | LD_FOR_TARGET_RL78 | |
1107 | CC_FOR_TARGET_RL78 | |
1108 | AS_FOR_TARGET_RX | |
1109 | LD_FOR_TARGET_RX | |
1110 | CC_FOR_TARGET_RX | |
1111 | AS_FOR_TARGET_SH | |
1112 | LD_FOR_TARGET_SH | |
1113 | CC_FOR_TARGET_SH | |
1114 | AS_FOR_TARGET_ERC32 | |
1115 | LD_FOR_TARGET_ERC32 | |
1116 | CC_FOR_TARGET_ERC32 | |
1117 | AS_FOR_TARGET_V850 | |
1118 | LD_FOR_TARGET_V850 | |
1119 | CC_FOR_TARGET_V850 | |
1120 | AS_FOR_TARGET_EXAMPLE_SYNACOR | |
1121 | LD_FOR_TARGET_EXAMPLE_SYNACOR | |
1122 | CC_FOR_TARGET_EXAMPLE_SYNACOR' | |
abc494c6 | 1123 | ac_subdirs_all='ppc' |
c906108c SS |
1124 | |
1125 | # Initialize some variables set by options. | |
b7026657 AC |
1126 | ac_init_help= |
1127 | ac_init_version=false | |
81ecdfbb RW |
1128 | ac_unrecognized_opts= |
1129 | ac_unrecognized_sep= | |
c906108c SS |
1130 | # The variables have the same names as the options, with |
1131 | # dashes changed to underlines. | |
b7026657 | 1132 | cache_file=/dev/null |
c906108c | 1133 | exec_prefix=NONE |
c906108c | 1134 | no_create= |
c906108c SS |
1135 | no_recursion= |
1136 | prefix=NONE | |
1137 | program_prefix=NONE | |
1138 | program_suffix=NONE | |
1139 | program_transform_name=s,x,x, | |
1140 | silent= | |
1141 | site= | |
1142 | srcdir= | |
c906108c SS |
1143 | verbose= |
1144 | x_includes=NONE | |
1145 | x_libraries=NONE | |
b7026657 AC |
1146 | |
1147 | # Installation directory options. | |
1148 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
1149 | # and all the variables that are supposed to be based on exec_prefix | |
1150 | # by default will actually change. | |
1151 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 1152 | # (The list follows the same order as the GNU Coding Standards.) |
c906108c SS |
1153 | bindir='${exec_prefix}/bin' |
1154 | sbindir='${exec_prefix}/sbin' | |
1155 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
1156 | datarootdir='${prefix}/share' |
1157 | datadir='${datarootdir}' | |
c906108c SS |
1158 | sysconfdir='${prefix}/etc' |
1159 | sharedstatedir='${prefix}/com' | |
1160 | localstatedir='${prefix}/var' | |
c906108c SS |
1161 | includedir='${prefix}/include' |
1162 | oldincludedir='/usr/include' | |
6bddc3e8 | 1163 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
1164 | infodir='${datarootdir}/info' |
1165 | htmldir='${docdir}' | |
1166 | dvidir='${docdir}' | |
1167 | pdfdir='${docdir}' | |
1168 | psdir='${docdir}' | |
1169 | libdir='${exec_prefix}/lib' | |
1170 | localedir='${datarootdir}/locale' | |
1171 | mandir='${datarootdir}/man' | |
c906108c | 1172 | |
c906108c | 1173 | ac_prev= |
81ecdfbb | 1174 | ac_dashdash= |
c906108c SS |
1175 | for ac_option |
1176 | do | |
c906108c SS |
1177 | # If the previous option needs an argument, assign it. |
1178 | if test -n "$ac_prev"; then | |
81ecdfbb | 1179 | eval $ac_prev=\$ac_option |
c906108c SS |
1180 | ac_prev= |
1181 | continue | |
1182 | fi | |
1183 | ||
81ecdfbb | 1184 | case $ac_option in |
d0ac1c44 SM |
1185 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
1186 | *=) ac_optarg= ;; | |
1187 | *) ac_optarg=yes ;; | |
81ecdfbb | 1188 | esac |
c906108c SS |
1189 | |
1190 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1191 | ||
81ecdfbb RW |
1192 | case $ac_dashdash$ac_option in |
1193 | --) | |
1194 | ac_dashdash=yes ;; | |
c906108c SS |
1195 | |
1196 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1197 | ac_prev=bindir ;; | |
1198 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 1199 | bindir=$ac_optarg ;; |
c906108c SS |
1200 | |
1201 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 1202 | ac_prev=build_alias ;; |
c906108c | 1203 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 1204 | build_alias=$ac_optarg ;; |
c906108c SS |
1205 | |
1206 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1207 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1208 | ac_prev=cache_file ;; | |
1209 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1210 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b7026657 AC |
1211 | cache_file=$ac_optarg ;; |
1212 | ||
1213 | --config-cache | -C) | |
1214 | cache_file=config.cache ;; | |
c906108c | 1215 | |
81ecdfbb | 1216 | -datadir | --datadir | --datadi | --datad) |
c906108c | 1217 | ac_prev=datadir ;; |
81ecdfbb | 1218 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b7026657 | 1219 | datadir=$ac_optarg ;; |
c906108c | 1220 | |
81ecdfbb RW |
1221 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1222 | | --dataroo | --dataro | --datar) | |
1223 | ac_prev=datarootdir ;; | |
1224 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1225 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1226 | datarootdir=$ac_optarg ;; | |
1227 | ||
c906108c | 1228 | -disable-* | --disable-*) |
81ecdfbb | 1229 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 1230 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1231 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1232 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1233 | ac_useropt_orig=$ac_useropt |
1234 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1235 | case $ac_user_opts in | |
1236 | *" | |
1237 | "enable_$ac_useropt" | |
1238 | "*) ;; | |
1239 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1240 | ac_unrecognized_sep=', ';; | |
1241 | esac | |
1242 | eval enable_$ac_useropt=no ;; | |
1243 | ||
1244 | -docdir | --docdir | --docdi | --doc | --do) | |
1245 | ac_prev=docdir ;; | |
1246 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1247 | docdir=$ac_optarg ;; | |
1248 | ||
1249 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1250 | ac_prev=dvidir ;; | |
1251 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1252 | dvidir=$ac_optarg ;; | |
c906108c SS |
1253 | |
1254 | -enable-* | --enable-*) | |
81ecdfbb | 1255 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 1256 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1257 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1258 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1259 | ac_useropt_orig=$ac_useropt |
1260 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1261 | case $ac_user_opts in | |
1262 | *" | |
1263 | "enable_$ac_useropt" | |
1264 | "*) ;; | |
1265 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1266 | ac_unrecognized_sep=', ';; | |
fdd6fa61 | 1267 | esac |
81ecdfbb | 1268 | eval enable_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
1269 | |
1270 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1271 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1272 | | --exec | --exe | --ex) | |
1273 | ac_prev=exec_prefix ;; | |
1274 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1275 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1276 | | --exec=* | --exe=* | --ex=*) | |
b7026657 | 1277 | exec_prefix=$ac_optarg ;; |
c906108c SS |
1278 | |
1279 | -gas | --gas | --ga | --g) | |
1280 | # Obsolete; use --with-gas. | |
1281 | with_gas=yes ;; | |
1282 | ||
b7026657 AC |
1283 | -help | --help | --hel | --he | -h) |
1284 | ac_init_help=long ;; | |
1285 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1286 | ac_init_help=recursive ;; | |
1287 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1288 | ac_init_help=short ;; | |
c906108c SS |
1289 | |
1290 | -host | --host | --hos | --ho) | |
b7026657 | 1291 | ac_prev=host_alias ;; |
c906108c | 1292 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 1293 | host_alias=$ac_optarg ;; |
c906108c | 1294 | |
81ecdfbb RW |
1295 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1296 | ac_prev=htmldir ;; | |
1297 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1298 | | --ht=*) | |
1299 | htmldir=$ac_optarg ;; | |
1300 | ||
c906108c SS |
1301 | -includedir | --includedir | --includedi | --included | --include \ |
1302 | | --includ | --inclu | --incl | --inc) | |
1303 | ac_prev=includedir ;; | |
1304 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1305 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b7026657 | 1306 | includedir=$ac_optarg ;; |
c906108c SS |
1307 | |
1308 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1309 | ac_prev=infodir ;; | |
1310 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 1311 | infodir=$ac_optarg ;; |
c906108c SS |
1312 | |
1313 | -libdir | --libdir | --libdi | --libd) | |
1314 | ac_prev=libdir ;; | |
1315 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 1316 | libdir=$ac_optarg ;; |
c906108c SS |
1317 | |
1318 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1319 | | --libexe | --libex | --libe) | |
1320 | ac_prev=libexecdir ;; | |
1321 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1322 | | --libexe=* | --libex=* | --libe=*) | |
b7026657 | 1323 | libexecdir=$ac_optarg ;; |
c906108c | 1324 | |
81ecdfbb RW |
1325 | -localedir | --localedir | --localedi | --localed | --locale) |
1326 | ac_prev=localedir ;; | |
1327 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1328 | localedir=$ac_optarg ;; | |
1329 | ||
c906108c | 1330 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1331 | | --localstate | --localstat | --localsta | --localst | --locals) |
c906108c SS |
1332 | ac_prev=localstatedir ;; |
1333 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1334 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b7026657 | 1335 | localstatedir=$ac_optarg ;; |
c906108c SS |
1336 | |
1337 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1338 | ac_prev=mandir ;; | |
1339 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b7026657 | 1340 | mandir=$ac_optarg ;; |
c906108c SS |
1341 | |
1342 | -nfp | --nfp | --nf) | |
1343 | # Obsolete; use --without-fp. | |
1344 | with_fp=no ;; | |
1345 | ||
1346 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b7026657 | 1347 | | --no-cr | --no-c | -n) |
c906108c SS |
1348 | no_create=yes ;; |
1349 | ||
1350 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1351 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1352 | no_recursion=yes ;; | |
1353 | ||
1354 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1355 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1356 | | --oldin | --oldi | --old | --ol | --o) | |
1357 | ac_prev=oldincludedir ;; | |
1358 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1359 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1360 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b7026657 | 1361 | oldincludedir=$ac_optarg ;; |
c906108c SS |
1362 | |
1363 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1364 | ac_prev=prefix ;; | |
1365 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b7026657 | 1366 | prefix=$ac_optarg ;; |
c906108c SS |
1367 | |
1368 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1369 | | --program-pre | --program-pr | --program-p) | |
1370 | ac_prev=program_prefix ;; | |
1371 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1372 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b7026657 | 1373 | program_prefix=$ac_optarg ;; |
c906108c SS |
1374 | |
1375 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1376 | | --program-suf | --program-su | --program-s) | |
1377 | ac_prev=program_suffix ;; | |
1378 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1379 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b7026657 | 1380 | program_suffix=$ac_optarg ;; |
c906108c SS |
1381 | |
1382 | -program-transform-name | --program-transform-name \ | |
1383 | | --program-transform-nam | --program-transform-na \ | |
1384 | | --program-transform-n | --program-transform- \ | |
1385 | | --program-transform | --program-transfor \ | |
1386 | | --program-transfo | --program-transf \ | |
1387 | | --program-trans | --program-tran \ | |
1388 | | --progr-tra | --program-tr | --program-t) | |
1389 | ac_prev=program_transform_name ;; | |
1390 | -program-transform-name=* | --program-transform-name=* \ | |
1391 | | --program-transform-nam=* | --program-transform-na=* \ | |
1392 | | --program-transform-n=* | --program-transform-=* \ | |
1393 | | --program-transform=* | --program-transfor=* \ | |
1394 | | --program-transfo=* | --program-transf=* \ | |
1395 | | --program-trans=* | --program-tran=* \ | |
1396 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b7026657 | 1397 | program_transform_name=$ac_optarg ;; |
c906108c | 1398 | |
81ecdfbb RW |
1399 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1400 | ac_prev=pdfdir ;; | |
1401 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1402 | pdfdir=$ac_optarg ;; | |
1403 | ||
1404 | -psdir | --psdir | --psdi | --psd | --ps) | |
1405 | ac_prev=psdir ;; | |
1406 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1407 | psdir=$ac_optarg ;; | |
1408 | ||
c906108c SS |
1409 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1410 | | -silent | --silent | --silen | --sile | --sil) | |
1411 | silent=yes ;; | |
1412 | ||
1413 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1414 | ac_prev=sbindir ;; | |
1415 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1416 | | --sbi=* | --sb=*) | |
b7026657 | 1417 | sbindir=$ac_optarg ;; |
c906108c SS |
1418 | |
1419 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1420 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1421 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1422 | | --sha | --sh) | |
1423 | ac_prev=sharedstatedir ;; | |
1424 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1425 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1426 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1427 | | --sha=* | --sh=*) | |
b7026657 | 1428 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
1429 | |
1430 | -site | --site | --sit) | |
1431 | ac_prev=site ;; | |
1432 | -site=* | --site=* | --sit=*) | |
b7026657 | 1433 | site=$ac_optarg ;; |
0fda6bd2 | 1434 | |
c906108c SS |
1435 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1436 | ac_prev=srcdir ;; | |
1437 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 1438 | srcdir=$ac_optarg ;; |
c906108c SS |
1439 | |
1440 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1441 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1442 | ac_prev=sysconfdir ;; | |
1443 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1444 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b7026657 | 1445 | sysconfdir=$ac_optarg ;; |
c906108c SS |
1446 | |
1447 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 1448 | ac_prev=target_alias ;; |
c906108c | 1449 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 1450 | target_alias=$ac_optarg ;; |
c906108c SS |
1451 | |
1452 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1453 | verbose=yes ;; | |
1454 | ||
b7026657 AC |
1455 | -version | --version | --versio | --versi | --vers | -V) |
1456 | ac_init_version=: ;; | |
c906108c SS |
1457 | |
1458 | -with-* | --with-*) | |
81ecdfbb | 1459 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 1460 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1461 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1462 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1463 | ac_useropt_orig=$ac_useropt |
1464 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1465 | case $ac_user_opts in | |
1466 | *" | |
1467 | "with_$ac_useropt" | |
1468 | "*) ;; | |
1469 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1470 | ac_unrecognized_sep=', ';; | |
fdd6fa61 | 1471 | esac |
81ecdfbb | 1472 | eval with_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
1473 | |
1474 | -without-* | --without-*) | |
81ecdfbb | 1475 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 1476 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1477 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1478 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1479 | ac_useropt_orig=$ac_useropt |
1480 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1481 | case $ac_user_opts in | |
1482 | *" | |
1483 | "with_$ac_useropt" | |
1484 | "*) ;; | |
1485 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1486 | ac_unrecognized_sep=', ';; | |
1487 | esac | |
1488 | eval with_$ac_useropt=no ;; | |
c906108c SS |
1489 | |
1490 | --x) | |
1491 | # Obsolete; use --with-x. | |
1492 | with_x=yes ;; | |
1493 | ||
1494 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1495 | | --x-incl | --x-inc | --x-in | --x-i) | |
1496 | ac_prev=x_includes ;; | |
1497 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1498 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b7026657 | 1499 | x_includes=$ac_optarg ;; |
c906108c SS |
1500 | |
1501 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1502 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1503 | ac_prev=x_libraries ;; | |
1504 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1505 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b7026657 | 1506 | x_libraries=$ac_optarg ;; |
c906108c | 1507 | |
d0ac1c44 SM |
1508 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1509 | Try \`$0 --help' for more information" | |
c906108c SS |
1510 | ;; |
1511 | ||
b7026657 AC |
1512 | *=*) |
1513 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1514 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1515 | case $ac_envvar in #( |
1516 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1517 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1518 | esac |
1519 | eval $ac_envvar=\$ac_optarg | |
b7026657 AC |
1520 | export $ac_envvar ;; |
1521 | ||
c906108c | 1522 | *) |
b7026657 | 1523 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1524 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b7026657 | 1525 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1526 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1527 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c906108c SS |
1528 | ;; |
1529 | ||
1530 | esac | |
1531 | done | |
1532 | ||
1533 | if test -n "$ac_prev"; then | |
b7026657 | 1534 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1535 | as_fn_error $? "missing argument to $ac_option" |
c906108c | 1536 | fi |
c906108c | 1537 | |
81ecdfbb RW |
1538 | if test -n "$ac_unrecognized_opts"; then |
1539 | case $enable_option_checking in | |
1540 | no) ;; | |
d0ac1c44 | 1541 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1542 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
fdd6fa61 | 1543 | esac |
81ecdfbb | 1544 | fi |
fdd6fa61 | 1545 | |
81ecdfbb RW |
1546 | # Check all directory arguments for consistency. |
1547 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1548 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1549 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1550 | libdir localedir mandir | |
c906108c | 1551 | do |
81ecdfbb RW |
1552 | eval ac_val=\$$ac_var |
1553 | # Remove trailing slashes. | |
1554 | case $ac_val in | |
1555 | */ ) | |
1556 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1557 | eval $ac_var=\$ac_val;; | |
1558 | esac | |
1559 | # Be sure to have absolute directory names. | |
b7026657 | 1560 | case $ac_val in |
81ecdfbb RW |
1561 | [\\/$]* | ?:[\\/]* ) continue;; |
1562 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
c906108c | 1563 | esac |
d0ac1c44 | 1564 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c906108c SS |
1565 | done |
1566 | ||
b7026657 AC |
1567 | # There might be people who depend on the old broken behavior: `$host' |
1568 | # used to hold the argument of --host etc. | |
1569 | # FIXME: To remove some day. | |
1570 | build=$build_alias | |
1571 | host=$host_alias | |
1572 | target=$target_alias | |
1573 | ||
1574 | # FIXME: To remove some day. | |
1575 | if test "x$host_alias" != x; then | |
1576 | if test "x$build_alias" = x; then | |
1577 | cross_compiling=maybe | |
b7026657 AC |
1578 | elif test "x$build_alias" != "x$host_alias"; then |
1579 | cross_compiling=yes | |
1580 | fi | |
1581 | fi | |
c906108c | 1582 | |
b7026657 AC |
1583 | ac_tool_prefix= |
1584 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1585 | ||
1586 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 1587 | |
c906108c | 1588 | |
81ecdfbb RW |
1589 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1590 | ac_ls_di=`ls -di .` && | |
1591 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1592 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1593 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1594 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1595 | |
1596 | ||
c906108c SS |
1597 | # Find the source files, if location was not specified. |
1598 | if test -z "$srcdir"; then | |
1599 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1600 | # Try the directory containing this script, then the parent directory. |
1601 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1602 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1603 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1604 | X"$as_myself" : 'X\(//\)$' \| \ | |
1605 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1606 | $as_echo X"$as_myself" | | |
1607 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1608 | s//\1/ | |
1609 | q | |
1610 | } | |
1611 | /^X\(\/\/\)[^/].*/{ | |
1612 | s//\1/ | |
1613 | q | |
1614 | } | |
1615 | /^X\(\/\/\)$/{ | |
1616 | s//\1/ | |
1617 | q | |
1618 | } | |
1619 | /^X\(\/\).*/{ | |
1620 | s//\1/ | |
1621 | q | |
1622 | } | |
1623 | s/.*/./; q'` | |
c906108c | 1624 | srcdir=$ac_confdir |
81ecdfbb | 1625 | if test ! -r "$srcdir/$ac_unique_file"; then |
c906108c SS |
1626 | srcdir=.. |
1627 | fi | |
1628 | else | |
1629 | ac_srcdir_defaulted=no | |
1630 | fi | |
81ecdfbb RW |
1631 | if test ! -r "$srcdir/$ac_unique_file"; then |
1632 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1633 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1634 | fi |
1635 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1636 | ac_abs_confdir=`( | |
d0ac1c44 | 1637 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1638 | pwd)` |
1639 | # When building in place, set srcdir=. | |
1640 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1641 | srcdir=. | |
1642 | fi | |
1643 | # Remove unnecessary trailing slashes from srcdir. | |
1644 | # Double slashes in file names in object file debugging info | |
1645 | # mess up M-x gdb in Emacs. | |
1646 | case $srcdir in | |
1647 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1648 | esac | |
1649 | for ac_var in $ac_precious_vars; do | |
1650 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1651 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1652 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1653 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1654 | done | |
df1756f4 TG |
1655 | |
1656 | # | |
b7026657 AC |
1657 | # Report the --help message. |
1658 | # | |
1659 | if test "$ac_init_help" = "long"; then | |
1660 | # Omit some internal or obsolete options to make the list less imposing. | |
1661 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1662 | cat <<_ACEOF | |
6bddc3e8 | 1663 | \`configure' configures sim 0 to adapt to many kinds of systems. |
b7026657 AC |
1664 | |
1665 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1666 | ||
1667 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1668 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1669 | ||
1670 | Defaults for the options are specified in brackets. | |
1671 | ||
1672 | Configuration: | |
1673 | -h, --help display this help and exit | |
1674 | --help=short display options specific to this package | |
1675 | --help=recursive display the short help of all the included packages | |
1676 | -V, --version display version information and exit | |
d0ac1c44 | 1677 | -q, --quiet, --silent do not print \`checking ...' messages |
b7026657 AC |
1678 | --cache-file=FILE cache test results in FILE [disabled] |
1679 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1680 | -n, --no-create do not create output files | |
1681 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1682 | ||
b7026657 AC |
1683 | Installation directories: |
1684 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1685 | [$ac_default_prefix] |
b7026657 | 1686 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1687 | [PREFIX] |
b7026657 AC |
1688 | |
1689 | By default, \`make install' will install all the files in | |
1690 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1691 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1692 | for instance \`--prefix=\$HOME'. | |
1693 | ||
1694 | For better control, use the options below. | |
1695 | ||
1696 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1697 | --bindir=DIR user executables [EPREFIX/bin] |
1698 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1699 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1700 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1701 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1702 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1703 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1704 | --includedir=DIR C header files [PREFIX/include] | |
1705 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1706 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1707 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1708 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1709 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1710 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
6bddc3e8 | 1711 | --docdir=DIR documentation root [DATAROOTDIR/doc/sim] |
81ecdfbb RW |
1712 | --htmldir=DIR html documentation [DOCDIR] |
1713 | --dvidir=DIR dvi documentation [DOCDIR] | |
1714 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1715 | --psdir=DIR ps documentation [DOCDIR] | |
b7026657 AC |
1716 | _ACEOF |
1717 | ||
1718 | cat <<\_ACEOF | |
1719 | ||
1720 | Program names: | |
1721 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1722 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1723 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1724 | ||
1725 | System types: | |
1726 | --build=BUILD configure for building on BUILD [guessed] | |
1727 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1728 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1729 | _ACEOF | |
1730 | fi | |
1731 | ||
1732 | if test -n "$ac_init_help"; then | |
6bddc3e8 MF |
1733 | case $ac_init_help in |
1734 | short | recursive ) echo "Configuration of sim 0:";; | |
1735 | esac | |
b7026657 AC |
1736 | cat <<\_ACEOF |
1737 | ||
1738 | Optional Features: | |
81ecdfbb | 1739 | --disable-option-checking ignore unrecognized --enable/--with options |
b7026657 AC |
1740 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1741 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b5689863 MF |
1742 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1743 | --enable-static[=PKGS] build static libraries [default=yes] | |
1744 | --enable-fast-install[=PKGS] | |
1745 | optimize for fast installation [default=yes] | |
1746 | --disable-libtool-lock avoid locking (might break parallel builds) | |
8c379db2 TT |
1747 | --enable-maintainer-mode |
1748 | enable make rules and dependencies not useful (and | |
1749 | sometimes confusing) to the casual installer | |
6bddc3e8 MF |
1750 | --enable-dependency-tracking |
1751 | do not reject slow dependency extractors | |
1752 | --disable-dependency-tracking | |
1753 | speeds up one-time build | |
c2783492 MF |
1754 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1755 | --disable-silent-rules verbose build output (undo: "make V=0") | |
8d0978fb | 1756 | --enable-sim Enable the GNU simulator |
26da232c | 1757 | --enable-example-sims enable example GNU simulators |
a0e674c1 | 1758 | --enable-targets alternative target configurations |
ba307cdd MF |
1759 | --enable-sim-alignment=align |
1760 | Specify strict, nonstrict or forced alignment of | |
1761 | memory accesses | |
dba333c1 | 1762 | --enable-sim-assert Specify whether to perform random assertions |
1bf5c342 | 1763 | --enable-cgen-maint=DIR build cgen generated files |
04381273 MF |
1764 | --enable-sim-debug=opts Enable debugging flags (for developers of the sim |
1765 | itself) | |
f9a4d543 MF |
1766 | --enable-sim-endian=endian |
1767 | Specify target byte endian orientation | |
5ea45474 MF |
1768 | --enable-sim-environment=environment |
1769 | Specify mixed, user, virtual or operating | |
1770 | environment | |
456ef1c1 | 1771 | --enable-sim-hardware Whether to enable hardware/device simulation |
d73f39ee MF |
1772 | --enable-sim-inline=inlines |
1773 | Specify which functions should be inlined | |
04381273 MF |
1774 | --enable-sim-profile=opts |
1775 | Enable profiling flags | |
7eb1f99a MF |
1776 | --enable-sim-reserved-bits |
1777 | Specify whether to check reserved bits in | |
1778 | instruction | |
b79efe26 MF |
1779 | --enable-sim-scache=size |
1780 | Specify simulator execution cache size | |
20b579ba MF |
1781 | --enable-sim-smp=n Specify number of processors to configure for |
1782 | (default 1) | |
04381273 MF |
1783 | --enable-sim-stdio Specify whether to use stdio for console |
1784 | input/output | |
1785 | --enable-sim-trace=opts Enable tracing of simulated programs | |
47ce766a MF |
1786 | --enable-werror treat compile warnings as errors |
1787 | --enable-build-warnings enable build-time compiler warnings if gcc is used | |
1788 | --enable-sim-build-warnings | |
1789 | enable SIM specific build-time compiler warnings if | |
1790 | gcc is used | |
408a44aa MF |
1791 | --enable-sim-frv-trapdump |
1792 | Make unknown traps dump the registers | |
e173c80f MF |
1793 | --disable-sim-rx-cycle-accurate |
1794 | Disable cycle accurate simulation (faster runtime) | |
b7026657 | 1795 | |
6dd65fc0 MF |
1796 | Optional Packages: |
1797 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1798 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1799 | --with-pkgversion=PKG Use PKG in the version string in place of "SIM" | |
1800 | --with-bugurl=URL Direct users to URL to report a bug | |
b5689863 MF |
1801 | --with-pic try to use only PIC/non-PIC objects [default=use |
1802 | both] | |
1803 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
6dd65fc0 | 1804 | |
b7026657 AC |
1805 | Some influential environment variables: |
1806 | CC C compiler command | |
1807 | CFLAGS C compiler flags | |
1808 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1809 | nonstandard directory <lib dir> | |
81ecdfbb | 1810 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1811 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1812 | you have headers in a nonstandard directory <include dir> |
5e25901f | 1813 | CPP C preprocessor |
d57b6533 MF |
1814 | PKG_CONFIG path to pkg-config utility |
1815 | PKG_CONFIG_PATH | |
1816 | directories to add to pkg-config's search path | |
1817 | PKG_CONFIG_LIBDIR | |
1818 | path overriding pkg-config's built-in search path | |
1819 | SDL_CFLAGS C compiler flags for SDL, overriding pkg-config | |
1820 | SDL_LIBS linker flags for SDL, overriding pkg-config | |
8996c210 MF |
1821 | AS_FOR_TARGET_AARCH64 |
1822 | Assembler for aarch64 tests | |
1823 | LD_FOR_TARGET_AARCH64 | |
1824 | Linker for aarch64 tests | |
1825 | CC_FOR_TARGET_AARCH64 | |
1826 | C compiler for aarch64 tests | |
1827 | AS_FOR_TARGET_ARM | |
1828 | Assembler for arm tests | |
1829 | LD_FOR_TARGET_ARM | |
1830 | Linker for arm tests | |
1831 | CC_FOR_TARGET_ARM | |
1832 | C compiler for arm tests | |
1833 | AS_FOR_TARGET_AVR | |
1834 | Assembler for avr tests | |
1835 | LD_FOR_TARGET_AVR | |
1836 | Linker for avr tests | |
1837 | CC_FOR_TARGET_AVR | |
1838 | C compiler for avr tests | |
1839 | AS_FOR_TARGET_BFIN | |
1840 | Assembler for bfin tests | |
1841 | LD_FOR_TARGET_BFIN | |
1842 | Linker for bfin tests | |
1843 | CC_FOR_TARGET_BFIN | |
1844 | C compiler for bfin tests | |
1845 | AS_FOR_TARGET_BPF | |
1846 | Assembler for bpf tests | |
1847 | LD_FOR_TARGET_BPF | |
1848 | Linker for bpf tests | |
1849 | CC_FOR_TARGET_BPF | |
1850 | C compiler for bpf tests | |
1851 | AS_FOR_TARGET_CR16 | |
1852 | Assembler for cr16 tests | |
1853 | LD_FOR_TARGET_CR16 | |
1854 | Linker for cr16 tests | |
1855 | CC_FOR_TARGET_CR16 | |
1856 | C compiler for cr16 tests | |
1857 | AS_FOR_TARGET_CRIS | |
1858 | Assembler for cris tests | |
1859 | LD_FOR_TARGET_CRIS | |
1860 | Linker for cris tests | |
1861 | CC_FOR_TARGET_CRIS | |
1862 | C compiler for cris tests | |
1863 | AS_FOR_TARGET_D10V | |
1864 | Assembler for d10v tests | |
1865 | LD_FOR_TARGET_D10V | |
1866 | Linker for d10v tests | |
1867 | CC_FOR_TARGET_D10V | |
1868 | C compiler for d10v tests | |
1869 | AS_FOR_TARGET_FRV | |
1870 | Assembler for frv tests | |
1871 | LD_FOR_TARGET_FRV | |
1872 | Linker for frv tests | |
1873 | CC_FOR_TARGET_FRV | |
1874 | C compiler for frv tests | |
1875 | AS_FOR_TARGET_FT32 | |
1876 | Assembler for ft32 tests | |
1877 | LD_FOR_TARGET_FT32 | |
1878 | Linker for ft32 tests | |
1879 | CC_FOR_TARGET_FT32 | |
1880 | C compiler for ft32 tests | |
1881 | AS_FOR_TARGET_H8300 | |
1882 | Assembler for h8300 tests | |
1883 | LD_FOR_TARGET_H8300 | |
1884 | Linker for h8300 tests | |
1885 | CC_FOR_TARGET_H8300 | |
1886 | C compiler for h8300 tests | |
1887 | AS_FOR_TARGET_IQ2000 | |
1888 | Assembler for iq2000 tests | |
1889 | LD_FOR_TARGET_IQ2000 | |
1890 | Linker for iq2000 tests | |
1891 | CC_FOR_TARGET_IQ2000 | |
1892 | C compiler for iq2000 tests | |
1893 | AS_FOR_TARGET_LM32 | |
1894 | Assembler for lm32 tests | |
1895 | LD_FOR_TARGET_LM32 | |
1896 | Linker for lm32 tests | |
1897 | CC_FOR_TARGET_LM32 | |
1898 | C compiler for lm32 tests | |
1899 | AS_FOR_TARGET_M32C | |
1900 | Assembler for m32c tests | |
1901 | LD_FOR_TARGET_M32C | |
1902 | Linker for m32c tests | |
1903 | CC_FOR_TARGET_M32C | |
1904 | C compiler for m32c tests | |
1905 | AS_FOR_TARGET_M32R | |
1906 | Assembler for m32r tests | |
1907 | LD_FOR_TARGET_M32R | |
1908 | Linker for m32r tests | |
1909 | CC_FOR_TARGET_M32R | |
1910 | C compiler for m32r tests | |
1911 | AS_FOR_TARGET_M68HC11 | |
1912 | Assembler for m68hc11 tests | |
1913 | LD_FOR_TARGET_M68HC11 | |
1914 | Linker for m68hc11 tests | |
1915 | CC_FOR_TARGET_M68HC11 | |
1916 | C compiler for m68hc11 tests | |
1917 | AS_FOR_TARGET_MCORE | |
1918 | Assembler for mcore tests | |
1919 | LD_FOR_TARGET_MCORE | |
1920 | Linker for mcore tests | |
1921 | CC_FOR_TARGET_MCORE | |
1922 | C compiler for mcore tests | |
1923 | AS_FOR_TARGET_MICROBLAZE | |
1924 | Assembler for microblaze tests | |
1925 | LD_FOR_TARGET_MICROBLAZE | |
1926 | Linker for microblaze tests | |
1927 | CC_FOR_TARGET_MICROBLAZE | |
1928 | C compiler for microblaze tests | |
1929 | AS_FOR_TARGET_MIPS | |
1930 | Assembler for mips tests | |
1931 | LD_FOR_TARGET_MIPS | |
1932 | Linker for mips tests | |
1933 | CC_FOR_TARGET_MIPS | |
1934 | C compiler for mips tests | |
1935 | AS_FOR_TARGET_MN10300 | |
1936 | Assembler for mn10300 tests | |
1937 | LD_FOR_TARGET_MN10300 | |
1938 | Linker for mn10300 tests | |
1939 | CC_FOR_TARGET_MN10300 | |
1940 | C compiler for mn10300 tests | |
1941 | AS_FOR_TARGET_MOXIE | |
1942 | Assembler for moxie tests | |
1943 | LD_FOR_TARGET_MOXIE | |
1944 | Linker for moxie tests | |
1945 | CC_FOR_TARGET_MOXIE | |
1946 | C compiler for moxie tests | |
1947 | AS_FOR_TARGET_MSP430 | |
1948 | Assembler for msp430 tests | |
1949 | LD_FOR_TARGET_MSP430 | |
1950 | Linker for msp430 tests | |
1951 | CC_FOR_TARGET_MSP430 | |
1952 | C compiler for msp430 tests | |
1953 | AS_FOR_TARGET_OR1K | |
1954 | Assembler for or1k tests | |
1955 | LD_FOR_TARGET_OR1K | |
1956 | Linker for or1k tests | |
1957 | CC_FOR_TARGET_OR1K | |
1958 | C compiler for or1k tests | |
1959 | AS_FOR_TARGET_PPC | |
1960 | Assembler for ppc tests | |
1961 | LD_FOR_TARGET_PPC | |
1962 | Linker for ppc tests | |
1963 | CC_FOR_TARGET_PPC | |
1964 | C compiler for ppc tests | |
1965 | AS_FOR_TARGET_PRU | |
1966 | Assembler for pru tests | |
1967 | LD_FOR_TARGET_PRU | |
1968 | Linker for pru tests | |
1969 | CC_FOR_TARGET_PRU | |
1970 | C compiler for pru tests | |
1971 | AS_FOR_TARGET_RISCV | |
1972 | Assembler for riscv tests | |
1973 | LD_FOR_TARGET_RISCV | |
1974 | Linker for riscv tests | |
1975 | CC_FOR_TARGET_RISCV | |
1976 | C compiler for riscv tests | |
1977 | AS_FOR_TARGET_RL78 | |
1978 | Assembler for rl78 tests | |
1979 | LD_FOR_TARGET_RL78 | |
1980 | Linker for rl78 tests | |
1981 | CC_FOR_TARGET_RL78 | |
1982 | C compiler for rl78 tests | |
1983 | AS_FOR_TARGET_RX | |
1984 | Assembler for rx tests | |
1985 | LD_FOR_TARGET_RX | |
1986 | Linker for rx tests | |
1987 | CC_FOR_TARGET_RX | |
1988 | C compiler for rx tests | |
1989 | AS_FOR_TARGET_SH | |
1990 | Assembler for sh tests | |
1991 | LD_FOR_TARGET_SH | |
1992 | Linker for sh tests | |
1993 | CC_FOR_TARGET_SH | |
1994 | C compiler for sh tests | |
1995 | AS_FOR_TARGET_ERC32 | |
1996 | Assembler for erc32 tests | |
1997 | LD_FOR_TARGET_ERC32 | |
1998 | Linker for erc32 tests | |
1999 | CC_FOR_TARGET_ERC32 | |
2000 | C compiler for erc32 tests | |
2001 | AS_FOR_TARGET_V850 | |
2002 | Assembler for v850 tests | |
2003 | LD_FOR_TARGET_V850 | |
2004 | Linker for v850 tests | |
2005 | CC_FOR_TARGET_V850 | |
2006 | C compiler for v850 tests | |
2007 | AS_FOR_TARGET_EXAMPLE_SYNACOR | |
2008 | Assembler for example-synacor tests | |
2009 | LD_FOR_TARGET_EXAMPLE_SYNACOR | |
2010 | Linker for example-synacor tests | |
2011 | CC_FOR_TARGET_EXAMPLE_SYNACOR | |
2012 | C compiler for example-synacor tests | |
b7026657 AC |
2013 | |
2014 | Use these variables to override the choices made by `configure' or to help | |
2015 | it to find libraries and programs with nonstandard names/locations. | |
2016 | ||
6bddc3e8 MF |
2017 | Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. |
2018 | sim home page: <https://sourceware.org/gdb/wiki/Sim/>. | |
b7026657 | 2019 | _ACEOF |
81ecdfbb | 2020 | ac_status=$? |
b7026657 AC |
2021 | fi |
2022 | ||
2023 | if test "$ac_init_help" = "recursive"; then | |
2024 | # If there are subdirs, report their specific --help. | |
b7026657 | 2025 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
2026 | test -d "$ac_dir" || |
2027 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
2028 | continue | |
b7026657 AC |
2029 | ac_builddir=. |
2030 | ||
81ecdfbb RW |
2031 | case "$ac_dir" in |
2032 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
2033 | *) | |
2034 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
2035 | # A ".." for each directory in $ac_dir_suffix. | |
2036 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
2037 | case $ac_top_builddir_sub in | |
2038 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
2039 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
2040 | esac ;; | |
2041 | esac | |
2042 | ac_abs_top_builddir=$ac_pwd | |
2043 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
2044 | # for backward compatibility: | |
2045 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
2046 | |
2047 | case $srcdir in | |
81ecdfbb | 2048 | .) # We are building in place. |
b7026657 | 2049 | ac_srcdir=. |
81ecdfbb RW |
2050 | ac_top_srcdir=$ac_top_builddir_sub |
2051 | ac_abs_top_srcdir=$ac_pwd ;; | |
2052 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 2053 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
2054 | ac_top_srcdir=$srcdir |
2055 | ac_abs_top_srcdir=$srcdir ;; | |
2056 | *) # Relative name. | |
2057 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
2058 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
2059 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fdd6fa61 | 2060 | esac |
81ecdfbb | 2061 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
fdd6fa61 | 2062 | |
81ecdfbb RW |
2063 | cd "$ac_dir" || { ac_status=$?; continue; } |
2064 | # Check for guested configure. | |
2065 | if test -f "$ac_srcdir/configure.gnu"; then | |
2066 | echo && | |
2067 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
2068 | elif test -f "$ac_srcdir/configure"; then | |
2069 | echo && | |
2070 | $SHELL "$ac_srcdir/configure" --help=recursive | |
0fda6bd2 | 2071 | else |
81ecdfbb RW |
2072 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
2073 | fi || ac_status=$? | |
2074 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b7026657 AC |
2075 | done |
2076 | fi | |
2077 | ||
81ecdfbb | 2078 | test -n "$ac_init_help" && exit $ac_status |
b7026657 AC |
2079 | if $ac_init_version; then |
2080 | cat <<\_ACEOF | |
6bddc3e8 | 2081 | sim configure 0 |
d0ac1c44 | 2082 | generated by GNU Autoconf 2.69 |
b7026657 | 2083 | |
d0ac1c44 | 2084 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
2085 | This configure script is free software; the Free Software Foundation |
2086 | gives unlimited permission to copy, distribute and modify it. | |
2087 | _ACEOF | |
81ecdfbb | 2088 | exit |
b7026657 | 2089 | fi |
81ecdfbb RW |
2090 | |
2091 | ## ------------------------ ## | |
2092 | ## Autoconf initialization. ## | |
2093 | ## ------------------------ ## | |
2094 | ||
2095 | # ac_fn_c_try_compile LINENO | |
2096 | # -------------------------- | |
2097 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2098 | ac_fn_c_try_compile () | |
2099 | { | |
2100 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2101 | rm -f conftest.$ac_objext | |
2102 | if { { ac_try="$ac_compile" | |
2103 | case "(($ac_try" in | |
2104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2105 | *) ac_try_echo=$ac_try;; | |
2106 | esac | |
2107 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2108 | $as_echo "$ac_try_echo"; } >&5 | |
2109 | (eval "$ac_compile") 2>conftest.err | |
2110 | ac_status=$? | |
2111 | if test -s conftest.err; then | |
2112 | grep -v '^ *+' conftest.err >conftest.er1 | |
2113 | cat conftest.er1 >&5 | |
2114 | mv -f conftest.er1 conftest.err | |
2115 | fi | |
2116 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2117 | test $ac_status = 0; } && { | |
2118 | test -z "$ac_c_werror_flag" || | |
2119 | test ! -s conftest.err | |
2120 | } && test -s conftest.$ac_objext; then : | |
2121 | ac_retval=0 | |
2122 | else | |
2123 | $as_echo "$as_me: failed program was:" >&5 | |
2124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2125 | ||
2126 | ac_retval=1 | |
2127 | fi | |
d0ac1c44 SM |
2128 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2129 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
2130 | |
2131 | } # ac_fn_c_try_compile | |
5e25901f MF |
2132 | |
2133 | # ac_fn_c_try_cpp LINENO | |
2134 | # ---------------------- | |
2135 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
2136 | ac_fn_c_try_cpp () | |
2137 | { | |
2138 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2139 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2140 | case "(($ac_try" in | |
2141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2142 | *) ac_try_echo=$ac_try;; | |
2143 | esac | |
2144 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2145 | $as_echo "$ac_try_echo"; } >&5 | |
2146 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2147 | ac_status=$? | |
2148 | if test -s conftest.err; then | |
2149 | grep -v '^ *+' conftest.err >conftest.er1 | |
2150 | cat conftest.er1 >&5 | |
2151 | mv -f conftest.er1 conftest.err | |
2152 | fi | |
2153 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2154 | test $ac_status = 0; } > conftest.i && { | |
2155 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
2156 | test ! -s conftest.err | |
2157 | }; then : | |
2158 | ac_retval=0 | |
2159 | else | |
2160 | $as_echo "$as_me: failed program was:" >&5 | |
2161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2162 | ||
2163 | ac_retval=1 | |
2164 | fi | |
2165 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2166 | as_fn_set_status $ac_retval | |
2167 | ||
2168 | } # ac_fn_c_try_cpp | |
c2783492 MF |
2169 | |
2170 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2171 | # ------------------------------------------------------- | |
2172 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2173 | # the include files in INCLUDES and setting the cache variable VAR | |
2174 | # accordingly. | |
2175 | ac_fn_c_check_header_mongrel () | |
2176 | { | |
2177 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2178 | if eval \${$3+:} false; then : | |
2179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2180 | $as_echo_n "checking for $2... " >&6; } | |
2181 | if eval \${$3+:} false; then : | |
2182 | $as_echo_n "(cached) " >&6 | |
2183 | fi | |
2184 | eval ac_res=\$$3 | |
2185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2186 | $as_echo "$ac_res" >&6; } | |
2187 | else | |
2188 | # Is the header compilable? | |
2189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2190 | $as_echo_n "checking $2 usability... " >&6; } | |
2191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2192 | /* end confdefs.h. */ | |
2193 | $4 | |
2194 | #include <$2> | |
2195 | _ACEOF | |
2196 | if ac_fn_c_try_compile "$LINENO"; then : | |
2197 | ac_header_compiler=yes | |
2198 | else | |
2199 | ac_header_compiler=no | |
2200 | fi | |
2201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2203 | $as_echo "$ac_header_compiler" >&6; } | |
2204 | ||
2205 | # Is the header present? | |
2206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2207 | $as_echo_n "checking $2 presence... " >&6; } | |
2208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2209 | /* end confdefs.h. */ | |
2210 | #include <$2> | |
2211 | _ACEOF | |
2212 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2213 | ac_header_preproc=yes | |
2214 | else | |
2215 | ac_header_preproc=no | |
2216 | fi | |
2217 | rm -f conftest.err conftest.i conftest.$ac_ext | |
2218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2219 | $as_echo "$ac_header_preproc" >&6; } | |
2220 | ||
2221 | # So? What about this header? | |
2222 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2223 | yes:no: ) | |
2224 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2225 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2227 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2228 | ;; | |
2229 | no:yes:* ) | |
2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2231 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2233 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2234 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2235 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2236 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2237 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2238 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2239 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2240 | ( $as_echo "## -------------------------------------------------------------------------------------- ## | |
2241 | ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ## | |
2242 | ## -------------------------------------------------------------------------------------- ##" | |
2243 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2244 | ;; | |
2245 | esac | |
2246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2247 | $as_echo_n "checking for $2... " >&6; } | |
2248 | if eval \${$3+:} false; then : | |
2249 | $as_echo_n "(cached) " >&6 | |
2250 | else | |
2251 | eval "$3=\$ac_header_compiler" | |
2252 | fi | |
2253 | eval ac_res=\$$3 | |
2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2255 | $as_echo "$ac_res" >&6; } | |
2256 | fi | |
2257 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2258 | ||
2259 | } # ac_fn_c_check_header_mongrel | |
2260 | ||
2261 | # ac_fn_c_try_run LINENO | |
2262 | # ---------------------- | |
2263 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
2264 | # that executables *can* be run. | |
2265 | ac_fn_c_try_run () | |
2266 | { | |
2267 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2268 | if { { ac_try="$ac_link" | |
2269 | case "(($ac_try" in | |
2270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2271 | *) ac_try_echo=$ac_try;; | |
2272 | esac | |
2273 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2274 | $as_echo "$ac_try_echo"; } >&5 | |
2275 | (eval "$ac_link") 2>&5 | |
2276 | ac_status=$? | |
2277 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2278 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
2279 | { { case "(($ac_try" in | |
2280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2281 | *) ac_try_echo=$ac_try;; | |
2282 | esac | |
2283 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2284 | $as_echo "$ac_try_echo"; } >&5 | |
2285 | (eval "$ac_try") 2>&5 | |
2286 | ac_status=$? | |
2287 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2288 | test $ac_status = 0; }; }; then : | |
2289 | ac_retval=0 | |
2290 | else | |
2291 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
2292 | $as_echo "$as_me: failed program was:" >&5 | |
2293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2294 | ||
2295 | ac_retval=$ac_status | |
2296 | fi | |
2297 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2298 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2299 | as_fn_set_status $ac_retval | |
2300 | ||
2301 | } # ac_fn_c_try_run | |
2302 | ||
2303 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
2304 | # ------------------------------------------------------- | |
2305 | # Tests whether HEADER exists and can be compiled using the include files in | |
2306 | # INCLUDES, setting the cache variable VAR accordingly. | |
2307 | ac_fn_c_check_header_compile () | |
2308 | { | |
2309 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2311 | $as_echo_n "checking for $2... " >&6; } | |
2312 | if eval \${$3+:} false; then : | |
2313 | $as_echo_n "(cached) " >&6 | |
2314 | else | |
2315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2316 | /* end confdefs.h. */ | |
2317 | $4 | |
2318 | #include <$2> | |
2319 | _ACEOF | |
2320 | if ac_fn_c_try_compile "$LINENO"; then : | |
2321 | eval "$3=yes" | |
2322 | else | |
2323 | eval "$3=no" | |
2324 | fi | |
2325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2326 | fi | |
2327 | eval ac_res=\$$3 | |
2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2329 | $as_echo "$ac_res" >&6; } | |
2330 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2331 | ||
2332 | } # ac_fn_c_check_header_compile | |
b15c5d7a MF |
2333 | |
2334 | # ac_fn_c_try_link LINENO | |
2335 | # ----------------------- | |
2336 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2337 | ac_fn_c_try_link () | |
2338 | { | |
2339 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2340 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2341 | if { { ac_try="$ac_link" | |
2342 | case "(($ac_try" in | |
2343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2344 | *) ac_try_echo=$ac_try;; | |
2345 | esac | |
2346 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2347 | $as_echo "$ac_try_echo"; } >&5 | |
2348 | (eval "$ac_link") 2>conftest.err | |
2349 | ac_status=$? | |
2350 | if test -s conftest.err; then | |
2351 | grep -v '^ *+' conftest.err >conftest.er1 | |
2352 | cat conftest.er1 >&5 | |
2353 | mv -f conftest.er1 conftest.err | |
2354 | fi | |
2355 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2356 | test $ac_status = 0; } && { | |
2357 | test -z "$ac_c_werror_flag" || | |
2358 | test ! -s conftest.err | |
2359 | } && test -s conftest$ac_exeext && { | |
2360 | test "$cross_compiling" = yes || | |
2361 | test -x conftest$ac_exeext | |
2362 | }; then : | |
2363 | ac_retval=0 | |
2364 | else | |
2365 | $as_echo "$as_me: failed program was:" >&5 | |
2366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2367 | ||
2368 | ac_retval=1 | |
2369 | fi | |
2370 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2371 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2372 | # interfere with the next link command; also delete a directory that is | |
2373 | # left behind by Apple's compiler. We do this before executing the actions. | |
2374 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2375 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2376 | as_fn_set_status $ac_retval | |
2377 | ||
2378 | } # ac_fn_c_try_link | |
2379 | ||
2380 | # ac_fn_c_check_func LINENO FUNC VAR | |
2381 | # ---------------------------------- | |
2382 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2383 | ac_fn_c_check_func () | |
2384 | { | |
2385 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2387 | $as_echo_n "checking for $2... " >&6; } | |
2388 | if eval \${$3+:} false; then : | |
2389 | $as_echo_n "(cached) " >&6 | |
2390 | else | |
2391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2392 | /* end confdefs.h. */ | |
2393 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2394 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2395 | #define $2 innocuous_$2 | |
2396 | ||
2397 | /* System header to define __stub macros and hopefully few prototypes, | |
2398 | which can conflict with char $2 (); below. | |
2399 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2400 | <limits.h> exists even on freestanding compilers. */ | |
2401 | ||
2402 | #ifdef __STDC__ | |
2403 | # include <limits.h> | |
2404 | #else | |
2405 | # include <assert.h> | |
2406 | #endif | |
2407 | ||
2408 | #undef $2 | |
2409 | ||
2410 | /* Override any GCC internal prototype to avoid an error. | |
2411 | Use char because int might match the return type of a GCC | |
2412 | builtin and then its argument prototype would still apply. */ | |
2413 | #ifdef __cplusplus | |
2414 | extern "C" | |
2415 | #endif | |
2416 | char $2 (); | |
2417 | /* The GNU C library defines this for functions which it implements | |
2418 | to always fail with ENOSYS. Some functions are actually named | |
2419 | something starting with __ and the normal name is an alias. */ | |
2420 | #if defined __stub_$2 || defined __stub___$2 | |
2421 | choke me | |
2422 | #endif | |
2423 | ||
2424 | int | |
2425 | main () | |
2426 | { | |
2427 | return $2 (); | |
2428 | ; | |
2429 | return 0; | |
2430 | } | |
2431 | _ACEOF | |
2432 | if ac_fn_c_try_link "$LINENO"; then : | |
2433 | eval "$3=yes" | |
2434 | else | |
2435 | eval "$3=no" | |
2436 | fi | |
2437 | rm -f core conftest.err conftest.$ac_objext \ | |
2438 | conftest$ac_exeext conftest.$ac_ext | |
2439 | fi | |
2440 | eval ac_res=\$$3 | |
2441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2442 | $as_echo "$ac_res" >&6; } | |
2443 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2444 | ||
2445 | } # ac_fn_c_check_func | |
2446 | ||
2447 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
2448 | # ---------------------------------------------------- | |
2449 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2450 | # INCLUDES, setting cache variable VAR accordingly. | |
2451 | ac_fn_c_check_member () | |
2452 | { | |
2453 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2455 | $as_echo_n "checking for $2.$3... " >&6; } | |
2456 | if eval \${$4+:} false; then : | |
2457 | $as_echo_n "(cached) " >&6 | |
2458 | else | |
2459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2460 | /* end confdefs.h. */ | |
2461 | $5 | |
2462 | int | |
2463 | main () | |
2464 | { | |
2465 | static $2 ac_aggr; | |
2466 | if (ac_aggr.$3) | |
2467 | return 0; | |
2468 | ; | |
2469 | return 0; | |
2470 | } | |
2471 | _ACEOF | |
2472 | if ac_fn_c_try_compile "$LINENO"; then : | |
2473 | eval "$4=yes" | |
2474 | else | |
2475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2476 | /* end confdefs.h. */ | |
2477 | $5 | |
2478 | int | |
2479 | main () | |
2480 | { | |
2481 | static $2 ac_aggr; | |
2482 | if (sizeof ac_aggr.$3) | |
2483 | return 0; | |
2484 | ; | |
2485 | return 0; | |
2486 | } | |
2487 | _ACEOF | |
2488 | if ac_fn_c_try_compile "$LINENO"; then : | |
2489 | eval "$4=yes" | |
2490 | else | |
2491 | eval "$4=no" | |
2492 | fi | |
2493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2494 | fi | |
2495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2496 | fi | |
2497 | eval ac_res=\$$4 | |
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2499 | $as_echo "$ac_res" >&6; } | |
2500 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2501 | ||
2502 | } # ac_fn_c_check_member | |
2503 | ||
a48ff3ef MF |
2504 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2505 | # --------------------------------------------- | |
2506 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2507 | # accordingly. | |
2508 | ac_fn_c_check_decl () | |
2509 | { | |
2510 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2511 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2512 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2514 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2515 | if eval \${$3+:} false; then : | |
2516 | $as_echo_n "(cached) " >&6 | |
2517 | else | |
2518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2519 | /* end confdefs.h. */ | |
2520 | $4 | |
2521 | int | |
2522 | main () | |
2523 | { | |
2524 | #ifndef $as_decl_name | |
2525 | #ifdef __cplusplus | |
2526 | (void) $as_decl_use; | |
2527 | #else | |
2528 | (void) $as_decl_name; | |
2529 | #endif | |
2530 | #endif | |
2531 | ||
2532 | ; | |
2533 | return 0; | |
2534 | } | |
2535 | _ACEOF | |
2536 | if ac_fn_c_try_compile "$LINENO"; then : | |
2537 | eval "$3=yes" | |
2538 | else | |
2539 | eval "$3=no" | |
2540 | fi | |
2541 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2542 | fi | |
2543 | eval ac_res=\$$3 | |
2544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2545 | $as_echo "$ac_res" >&6; } | |
2546 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2547 | ||
2548 | } # ac_fn_c_check_decl | |
2549 | ||
b15c5d7a MF |
2550 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2551 | # ------------------------------------------- | |
2552 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2553 | # variable VAR accordingly. | |
2554 | ac_fn_c_check_type () | |
2555 | { | |
2556 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2558 | $as_echo_n "checking for $2... " >&6; } | |
2559 | if eval \${$3+:} false; then : | |
2560 | $as_echo_n "(cached) " >&6 | |
2561 | else | |
2562 | eval "$3=no" | |
2563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2564 | /* end confdefs.h. */ | |
2565 | $4 | |
2566 | int | |
2567 | main () | |
2568 | { | |
2569 | if (sizeof ($2)) | |
2570 | return 0; | |
2571 | ; | |
2572 | return 0; | |
2573 | } | |
2574 | _ACEOF | |
2575 | if ac_fn_c_try_compile "$LINENO"; then : | |
2576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2577 | /* end confdefs.h. */ | |
2578 | $4 | |
2579 | int | |
2580 | main () | |
2581 | { | |
2582 | if (sizeof (($2))) | |
2583 | return 0; | |
2584 | ; | |
2585 | return 0; | |
2586 | } | |
2587 | _ACEOF | |
2588 | if ac_fn_c_try_compile "$LINENO"; then : | |
2589 | ||
2590 | else | |
2591 | eval "$3=yes" | |
2592 | fi | |
2593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2594 | fi | |
2595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2596 | fi | |
2597 | eval ac_res=\$$3 | |
2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2599 | $as_echo "$ac_res" >&6; } | |
2600 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2601 | ||
2602 | } # ac_fn_c_check_type | |
81ecdfbb | 2603 | cat >config.log <<_ACEOF |
b7026657 AC |
2604 | This file contains any messages produced by compilers while |
2605 | running configure, to aid debugging if configure makes a mistake. | |
2606 | ||
6bddc3e8 | 2607 | It was created by sim $as_me 0, which was |
d0ac1c44 | 2608 | generated by GNU Autoconf 2.69. Invocation command line was |
b7026657 AC |
2609 | |
2610 | $ $0 $@ | |
2611 | ||
2612 | _ACEOF | |
81ecdfbb | 2613 | exec 5>>config.log |
b7026657 AC |
2614 | { |
2615 | cat <<_ASUNAME | |
2616 | ## --------- ## | |
2617 | ## Platform. ## | |
2618 | ## --------- ## | |
2619 | ||
2620 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2621 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2622 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2623 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2624 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2625 | ||
2626 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2627 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2628 | ||
2629 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2630 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2631 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 2632 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b7026657 AC |
2633 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2634 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2635 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2636 | ||
2637 | _ASUNAME | |
2638 | ||
2639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2640 | for as_dir in $PATH | |
2641 | do | |
2642 | IFS=$as_save_IFS | |
2643 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2644 | $as_echo "PATH: $as_dir" |
2645 | done | |
2646 | IFS=$as_save_IFS | |
b7026657 AC |
2647 | |
2648 | } >&5 | |
2649 | ||
2650 | cat >&5 <<_ACEOF | |
2651 | ||
2652 | ||
2653 | ## ----------- ## | |
2654 | ## Core tests. ## | |
2655 | ## ----------- ## | |
2656 | ||
2657 | _ACEOF | |
2658 | ||
2659 | ||
2660 | # Keep a trace of the command line. | |
2661 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2662 | # Strip out --silent because we don't want to record it for future runs. | |
2663 | # Also quote any args containing shell meta-characters. | |
2664 | # Make two passes to allow for proper duplicate-argument suppression. | |
2665 | ac_configure_args= | |
2666 | ac_configure_args0= | |
2667 | ac_configure_args1= | |
b7026657 AC |
2668 | ac_must_keep_next=false |
2669 | for ac_pass in 1 2 | |
2670 | do | |
2671 | for ac_arg | |
2672 | do | |
2673 | case $ac_arg in | |
2674 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2675 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2676 | | -silent | --silent | --silen | --sile | --sil) | |
2677 | continue ;; | |
81ecdfbb RW |
2678 | *\'*) |
2679 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b7026657 AC |
2680 | esac |
2681 | case $ac_pass in | |
81ecdfbb | 2682 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b7026657 | 2683 | 2) |
81ecdfbb | 2684 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b7026657 AC |
2685 | if test $ac_must_keep_next = true; then |
2686 | ac_must_keep_next=false # Got value, back to normal. | |
2687 | else | |
2688 | case $ac_arg in | |
2689 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2690 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2691 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2692 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2693 | case "$ac_configure_args0 " in | |
2694 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2695 | esac | |
2696 | ;; | |
2697 | -* ) ac_must_keep_next=true ;; | |
2698 | esac | |
2699 | fi | |
81ecdfbb | 2700 | as_fn_append ac_configure_args " '$ac_arg'" |
b7026657 AC |
2701 | ;; |
2702 | esac | |
2703 | done | |
2704 | done | |
81ecdfbb RW |
2705 | { ac_configure_args0=; unset ac_configure_args0;} |
2706 | { ac_configure_args1=; unset ac_configure_args1;} | |
b7026657 AC |
2707 | |
2708 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2709 | # config.log. We remove comments because anyway the quotes in there | |
2710 | # would cause problems or look ugly. | |
81ecdfbb RW |
2711 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2712 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b7026657 AC |
2713 | trap 'exit_status=$? |
2714 | # Save into config.log some information that might help in debugging. | |
2715 | { | |
2716 | echo | |
2717 | ||
d0ac1c44 | 2718 | $as_echo "## ---------------- ## |
b7026657 | 2719 | ## Cache variables. ## |
d0ac1c44 | 2720 | ## ---------------- ##" |
b7026657 AC |
2721 | echo |
2722 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2723 | ( |
2724 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2725 | eval ac_val=\$$ac_var | |
2726 | case $ac_val in #( | |
2727 | *${as_nl}*) | |
2728 | case $ac_var in #( | |
2729 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2730 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2731 | esac | |
2732 | case $ac_var in #( | |
2733 | _ | IFS | as_nl) ;; #( | |
2734 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2735 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2736 | esac ;; | |
2737 | esac | |
2738 | done | |
b7026657 | 2739 | (set) 2>&1 | |
81ecdfbb RW |
2740 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2741 | *${as_nl}ac_space=\ *) | |
b7026657 | 2742 | sed -n \ |
81ecdfbb RW |
2743 | "s/'\''/'\''\\\\'\'''\''/g; |
2744 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2745 | ;; #( | |
b7026657 | 2746 | *) |
81ecdfbb | 2747 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 2748 | ;; |
81ecdfbb RW |
2749 | esac | |
2750 | sort | |
2751 | ) | |
b7026657 AC |
2752 | echo |
2753 | ||
d0ac1c44 | 2754 | $as_echo "## ----------------- ## |
b7026657 | 2755 | ## Output variables. ## |
d0ac1c44 | 2756 | ## ----------------- ##" |
b7026657 AC |
2757 | echo |
2758 | for ac_var in $ac_subst_vars | |
2759 | do | |
81ecdfbb RW |
2760 | eval ac_val=\$$ac_var |
2761 | case $ac_val in | |
2762 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2763 | esac | |
2764 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2765 | done | sort |
2766 | echo | |
2767 | ||
2768 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2769 | $as_echo "## ------------------- ## |
81ecdfbb | 2770 | ## File substitutions. ## |
d0ac1c44 | 2771 | ## ------------------- ##" |
b7026657 AC |
2772 | echo |
2773 | for ac_var in $ac_subst_files | |
2774 | do | |
81ecdfbb RW |
2775 | eval ac_val=\$$ac_var |
2776 | case $ac_val in | |
2777 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2778 | esac | |
2779 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2780 | done | sort |
2781 | echo | |
2782 | fi | |
2783 | ||
2784 | if test -s confdefs.h; then | |
d0ac1c44 | 2785 | $as_echo "## ----------- ## |
b7026657 | 2786 | ## confdefs.h. ## |
d0ac1c44 | 2787 | ## ----------- ##" |
b7026657 | 2788 | echo |
81ecdfbb | 2789 | cat confdefs.h |
b7026657 | 2790 | echo |
0fda6bd2 | 2791 | fi |
b7026657 | 2792 | test "$ac_signal" != 0 && |
81ecdfbb RW |
2793 | $as_echo "$as_me: caught signal $ac_signal" |
2794 | $as_echo "$as_me: exit $exit_status" | |
b7026657 | 2795 | } >&5 |
81ecdfbb RW |
2796 | rm -f core *.core core.conftest.* && |
2797 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b7026657 | 2798 | exit $exit_status |
81ecdfbb | 2799 | ' 0 |
b7026657 | 2800 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2801 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b7026657 AC |
2802 | done |
2803 | ac_signal=0 | |
2804 | ||
2805 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2806 | rm -f -r conftest* confdefs.h |
2807 | ||
2808 | $as_echo "/* confdefs.h */" > confdefs.h | |
b7026657 AC |
2809 | |
2810 | # Predefined preprocessor variables. | |
2811 | ||
2812 | cat >>confdefs.h <<_ACEOF | |
2813 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2814 | _ACEOF | |
2815 | ||
b7026657 AC |
2816 | cat >>confdefs.h <<_ACEOF |
2817 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2818 | _ACEOF | |
2819 | ||
b7026657 AC |
2820 | cat >>confdefs.h <<_ACEOF |
2821 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2822 | _ACEOF | |
2823 | ||
b7026657 AC |
2824 | cat >>confdefs.h <<_ACEOF |
2825 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2826 | _ACEOF | |
2827 | ||
b7026657 AC |
2828 | cat >>confdefs.h <<_ACEOF |
2829 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2830 | _ACEOF | |
2831 | ||
81ecdfbb RW |
2832 | cat >>confdefs.h <<_ACEOF |
2833 | #define PACKAGE_URL "$PACKAGE_URL" | |
2834 | _ACEOF | |
2835 | ||
b7026657 AC |
2836 | |
2837 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2838 | # Prefer an explicitly selected file to automatically selected ones. |
2839 | ac_site_file1=NONE | |
2840 | ac_site_file2=NONE | |
2841 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2842 | # We do not want a PATH search for config.site. |
2843 | case $CONFIG_SITE in #(( | |
2844 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2845 | */*) ac_site_file1=$CONFIG_SITE;; | |
2846 | *) ac_site_file1=./$CONFIG_SITE;; | |
2847 | esac | |
81ecdfbb RW |
2848 | elif test "x$prefix" != xNONE; then |
2849 | ac_site_file1=$prefix/share/config.site | |
2850 | ac_site_file2=$prefix/etc/config.site | |
2851 | else | |
2852 | ac_site_file1=$ac_default_prefix/share/config.site | |
2853 | ac_site_file2=$ac_default_prefix/etc/config.site | |
c906108c | 2854 | fi |
81ecdfbb RW |
2855 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2856 | do | |
2857 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2858 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2859 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2860 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b7026657 | 2861 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2862 | . "$ac_site_file" \ |
2863 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2864 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2865 | as_fn_error $? "failed to load site script $ac_site_file | |
2866 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c SS |
2867 | fi |
2868 | done | |
2869 | ||
2870 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2871 | # Some versions of bash will fail to source /dev/null (special files |
2872 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2873 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2874 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2875 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b7026657 | 2876 | case $cache_file in |
81ecdfbb RW |
2877 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2878 | *) . "./$cache_file";; | |
b7026657 AC |
2879 | esac |
2880 | fi | |
c906108c | 2881 | else |
81ecdfbb RW |
2882 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2883 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b7026657 | 2884 | >$cache_file |
c906108c SS |
2885 | fi |
2886 | ||
b15c5d7a MF |
2887 | as_fn_append ac_header_list " dlfcn.h" |
2888 | as_fn_append ac_header_list " fcntl.h" | |
2889 | as_fn_append ac_header_list " fpu_control.h" | |
2890 | as_fn_append ac_header_list " termios.h" | |
2891 | as_fn_append ac_header_list " unistd.h" | |
2892 | as_fn_append ac_header_list " utime.h" | |
2893 | as_fn_append ac_header_list " linux/if_tun.h" | |
2894 | as_fn_append ac_header_list " linux/mii.h" | |
2895 | as_fn_append ac_header_list " linux/types.h" | |
2896 | as_fn_append ac_header_list " net/if.h" | |
2897 | as_fn_append ac_header_list " netinet/in.h" | |
2898 | as_fn_append ac_header_list " netinet/tcp.h" | |
2899 | as_fn_append ac_header_list " sys/ioctl.h" | |
2900 | as_fn_append ac_header_list " sys/mman.h" | |
a48ff3ef | 2901 | as_fn_append ac_header_list " sys/mount.h" |
b15c5d7a MF |
2902 | as_fn_append ac_header_list " sys/param.h" |
2903 | as_fn_append ac_header_list " sys/resource.h" | |
b15c5d7a MF |
2904 | as_fn_append ac_header_list " sys/socket.h" |
2905 | as_fn_append ac_header_list " sys/stat.h" | |
a48ff3ef MF |
2906 | as_fn_append ac_header_list " sys/statfs.h" |
2907 | as_fn_append ac_header_list " sys/termio.h" | |
2908 | as_fn_append ac_header_list " sys/termios.h" | |
2909 | as_fn_append ac_header_list " sys/types.h" | |
2910 | as_fn_append ac_header_list " sys/vfs.h" | |
b15c5d7a | 2911 | as_fn_append ac_func_list " __setfpucw" |
a48ff3ef | 2912 | as_fn_append ac_func_list " access" |
b15c5d7a MF |
2913 | as_fn_append ac_func_list " aint" |
2914 | as_fn_append ac_func_list " anint" | |
a48ff3ef MF |
2915 | as_fn_append ac_func_list " cfgetispeed" |
2916 | as_fn_append ac_func_list " cfgetospeed" | |
2917 | as_fn_append ac_func_list " cfsetispeed" | |
2918 | as_fn_append ac_func_list " cfsetospeed" | |
2919 | as_fn_append ac_func_list " chdir" | |
b15c5d7a | 2920 | as_fn_append ac_func_list " chmod" |
a48ff3ef MF |
2921 | as_fn_append ac_func_list " dup" |
2922 | as_fn_append ac_func_list " dup2" | |
b15c5d7a MF |
2923 | as_fn_append ac_func_list " execv" |
2924 | as_fn_append ac_func_list " execve" | |
a48ff3ef | 2925 | as_fn_append ac_func_list " fcntl" |
b15c5d7a | 2926 | as_fn_append ac_func_list " fork" |
a48ff3ef MF |
2927 | as_fn_append ac_func_list " fstat" |
2928 | as_fn_append ac_func_list " fstatfs" | |
b15c5d7a | 2929 | as_fn_append ac_func_list " ftruncate" |
a48ff3ef | 2930 | as_fn_append ac_func_list " getdirentries" |
b15c5d7a | 2931 | as_fn_append ac_func_list " getegid" |
a48ff3ef | 2932 | as_fn_append ac_func_list " geteuid" |
b15c5d7a | 2933 | as_fn_append ac_func_list " getgid" |
a48ff3ef MF |
2934 | as_fn_append ac_func_list " getpid" |
2935 | as_fn_append ac_func_list " getppid" | |
b15c5d7a | 2936 | as_fn_append ac_func_list " getrusage" |
a48ff3ef | 2937 | as_fn_append ac_func_list " gettimeofday" |
b15c5d7a | 2938 | as_fn_append ac_func_list " getuid" |
a48ff3ef | 2939 | as_fn_append ac_func_list " ioctl" |
b15c5d7a | 2940 | as_fn_append ac_func_list " kill" |
a48ff3ef MF |
2941 | as_fn_append ac_func_list " link" |
2942 | as_fn_append ac_func_list " lseek" | |
95955095 MF |
2943 | as_fn_append ac_func_list " lstat" |
2944 | as_fn_append ac_func_list " mkdir" | |
b15c5d7a MF |
2945 | as_fn_append ac_func_list " mmap" |
2946 | as_fn_append ac_func_list " munmap" | |
a48ff3ef | 2947 | as_fn_append ac_func_list " pipe" |
b15c5d7a MF |
2948 | as_fn_append ac_func_list " posix_fallocate" |
2949 | as_fn_append ac_func_list " pread" | |
a48ff3ef MF |
2950 | as_fn_append ac_func_list " rmdir" |
2951 | as_fn_append ac_func_list " setregid" | |
2952 | as_fn_append ac_func_list " setreuid" | |
b15c5d7a | 2953 | as_fn_append ac_func_list " setgid" |
a48ff3ef | 2954 | as_fn_append ac_func_list " setuid" |
b15c5d7a | 2955 | as_fn_append ac_func_list " sigaction" |
a48ff3ef | 2956 | as_fn_append ac_func_list " sigprocmask" |
b15c5d7a | 2957 | as_fn_append ac_func_list " sqrt" |
a48ff3ef | 2958 | as_fn_append ac_func_list " stat" |
b15c5d7a | 2959 | as_fn_append ac_func_list " strsignal" |
a48ff3ef MF |
2960 | as_fn_append ac_func_list " symlink" |
2961 | as_fn_append ac_func_list " tcdrain" | |
2962 | as_fn_append ac_func_list " tcflow" | |
2963 | as_fn_append ac_func_list " tcflush" | |
2964 | as_fn_append ac_func_list " tcgetattr" | |
2965 | as_fn_append ac_func_list " tcgetpgrp" | |
2966 | as_fn_append ac_func_list " tcsendbreak" | |
2967 | as_fn_append ac_func_list " tcsetattr" | |
2968 | as_fn_append ac_func_list " tcsetpgrp" | |
b15c5d7a MF |
2969 | as_fn_append ac_func_list " time" |
2970 | as_fn_append ac_func_list " truncate" | |
a48ff3ef MF |
2971 | as_fn_append ac_func_list " umask" |
2972 | as_fn_append ac_func_list " unlink" | |
b15c5d7a | 2973 | as_fn_append ac_func_list " utime" |
b7026657 AC |
2974 | # Check that the precious variables saved in the cache have kept the same |
2975 | # value. | |
2976 | ac_cache_corrupted=false | |
81ecdfbb | 2977 | for ac_var in $ac_precious_vars; do |
b7026657 AC |
2978 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2979 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2980 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2981 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b7026657 AC |
2982 | case $ac_old_set,$ac_new_set in |
2983 | set,) | |
81ecdfbb RW |
2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2985 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b7026657 AC |
2986 | ac_cache_corrupted=: ;; |
2987 | ,set) | |
81ecdfbb RW |
2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2989 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b7026657 AC |
2990 | ac_cache_corrupted=: ;; |
2991 | ,);; | |
2992 | *) | |
2993 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2994 | # differences in whitespace do not lead to failure. |
2995 | ac_old_val_w=`echo x $ac_old_val` | |
2996 | ac_new_val_w=`echo x $ac_new_val` | |
2997 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2998 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2999 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
3000 | ac_cache_corrupted=: | |
3001 | else | |
3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
3003 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
3004 | eval $ac_var=\$ac_old_val | |
3005 | fi | |
3006 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
3007 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
3009 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b7026657 AC |
3010 | fi;; |
3011 | esac | |
3012 | # Pass precious variables to config.status. | |
3013 | if test "$ac_new_set" = set; then | |
3014 | case $ac_new_val in | |
81ecdfbb | 3015 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b7026657 AC |
3016 | *) ac_arg=$ac_var=$ac_new_val ;; |
3017 | esac | |
3018 | case " $ac_configure_args " in | |
3019 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 3020 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b7026657 | 3021 | esac |
c906108c | 3022 | fi |
b7026657 AC |
3023 | done |
3024 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3026 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3027 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
3028 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 3029 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
c906108c | 3030 | fi |
81ecdfbb RW |
3031 | ## -------------------- ## |
3032 | ## Main body of script. ## | |
3033 | ## -------------------- ## | |
c906108c | 3034 | |
fdd6fa61 AG |
3035 | ac_ext=c |
3036 | ac_cpp='$CPP $CPPFLAGS' | |
3037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3040 | ||
c906108c SS |
3041 | |
3042 | ||
8c379db2 TT |
3043 | |
3044 | ||
3045 | ||
6dd65fc0 MF |
3046 | |
3047 | ||
3048 | # Check whether --with-pkgversion was given. | |
3049 | if test "${with_pkgversion+set}" = set; then : | |
3050 | withval=$with_pkgversion; case "$withval" in | |
3051 | yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; | |
3052 | no) PKGVERSION= ;; | |
3053 | *) PKGVERSION="($withval) " ;; | |
3054 | esac | |
3055 | else | |
3056 | PKGVERSION="(SIM) " | |
3057 | ||
3058 | fi | |
3059 | ||
3060 | ||
3061 | ||
3062 | ||
3063 | cat >>confdefs.h <<_ACEOF | |
3064 | #define PKGVERSION "$PKGVERSION" | |
3065 | _ACEOF | |
3066 | ||
3067 | ||
3068 | ||
3069 | # Check whether --with-bugurl was given. | |
3070 | if test "${with_bugurl+set}" = set; then : | |
3071 | withval=$with_bugurl; case "$withval" in | |
3072 | yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; | |
3073 | no) BUGURL= | |
3074 | ;; | |
3075 | *) BUGURL="$withval" | |
3076 | ;; | |
3077 | esac | |
3078 | else | |
3079 | BUGURL="$PACKAGE_BUGREPORT" | |
3080 | ||
3081 | fi | |
3082 | ||
3083 | case ${BUGURL} in | |
3084 | "") | |
3085 | REPORT_BUGS_TO= | |
3086 | REPORT_BUGS_TEXI= | |
3087 | ;; | |
3088 | *) | |
3089 | REPORT_BUGS_TO="<$BUGURL>" | |
3090 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
3091 | ;; | |
3092 | esac; | |
3093 | ||
3094 | ||
3095 | ||
3096 | ||
3097 | cat >>confdefs.h <<_ACEOF | |
3098 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
3099 | _ACEOF | |
3100 | ||
3101 | ||
b15c5d7a MF |
3102 | ac_config_headers="$ac_config_headers config.h" |
3103 | ||
3104 | ||
6bddc3e8 MF |
3105 | ac_aux_dir= |
3106 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
3107 | if test -f "$ac_dir/install-sh"; then | |
3108 | ac_aux_dir=$ac_dir | |
3109 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3110 | break | |
3111 | elif test -f "$ac_dir/install.sh"; then | |
3112 | ac_aux_dir=$ac_dir | |
3113 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3114 | break | |
3115 | elif test -f "$ac_dir/shtool"; then | |
3116 | ac_aux_dir=$ac_dir | |
3117 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3118 | break | |
b7026657 AC |
3119 | fi |
3120 | done | |
6bddc3e8 MF |
3121 | if test -z "$ac_aux_dir"; then |
3122 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
c906108c SS |
3123 | fi |
3124 | ||
6bddc3e8 MF |
3125 | # These three variables are undocumented and unsupported, |
3126 | # and are intended to be withdrawn in a future Autoconf release. | |
3127 | # They can cause serious problems if a builder's source tree is in a directory | |
3128 | # whose full name contains unusual characters. | |
3129 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3130 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3131 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
81ecdfbb | 3132 | |
6bddc3e8 MF |
3133 | |
3134 | # Make sure we can run config.sub. | |
3135 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3136 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3137 | ||
3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3139 | $as_echo_n "checking build system type... " >&6; } | |
3140 | if ${ac_cv_build+:} false; then : | |
81ecdfbb | 3141 | $as_echo_n "(cached) " >&6 |
c906108c | 3142 | else |
6bddc3e8 MF |
3143 | ac_build_alias=$build_alias |
3144 | test "x$ac_build_alias" = x && | |
3145 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3146 | test "x$ac_build_alias" = x && | |
3147 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
3148 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3149 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
b7026657 AC |
3150 | |
3151 | fi | |
6bddc3e8 MF |
3152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
3153 | $as_echo "$ac_cv_build" >&6; } | |
3154 | case $ac_cv_build in | |
3155 | *-*-*) ;; | |
3156 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
81ecdfbb | 3157 | esac |
6bddc3e8 MF |
3158 | build=$ac_cv_build |
3159 | ac_save_IFS=$IFS; IFS='-' | |
3160 | set x $ac_cv_build | |
3161 | shift | |
3162 | build_cpu=$1 | |
3163 | build_vendor=$2 | |
3164 | shift; shift | |
3165 | # Remember, the first character of IFS is used to create $*, | |
3166 | # except with old shells: | |
3167 | build_os=$* | |
3168 | IFS=$ac_save_IFS | |
3169 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
b7026657 | 3170 | |
6bddc3e8 MF |
3171 | |
3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3173 | $as_echo_n "checking host system type... " >&6; } | |
3174 | if ${ac_cv_host+:} false; then : | |
81ecdfbb | 3175 | $as_echo_n "(cached) " >&6 |
b7026657 | 3176 | else |
6bddc3e8 MF |
3177 | if test "x$host_alias" = x; then |
3178 | ac_cv_host=$ac_cv_build | |
b7026657 | 3179 | else |
6bddc3e8 MF |
3180 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
3181 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
b7026657 | 3182 | fi |
6bddc3e8 | 3183 | |
fdd6fa61 | 3184 | fi |
6bddc3e8 MF |
3185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
3186 | $as_echo "$ac_cv_host" >&6; } | |
3187 | case $ac_cv_host in | |
3188 | *-*-*) ;; | |
3189 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
3190 | esac | |
3191 | host=$ac_cv_host | |
3192 | ac_save_IFS=$IFS; IFS='-' | |
3193 | set x $ac_cv_host | |
3194 | shift | |
3195 | host_cpu=$1 | |
3196 | host_vendor=$2 | |
3197 | shift; shift | |
3198 | # Remember, the first character of IFS is used to create $*, | |
3199 | # except with old shells: | |
3200 | host_os=$* | |
3201 | IFS=$ac_save_IFS | |
3202 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
fdd6fa61 | 3203 | |
fdd6fa61 | 3204 | |
6bddc3e8 MF |
3205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
3206 | $as_echo_n "checking target system type... " >&6; } | |
3207 | if ${ac_cv_target+:} false; then : | |
81ecdfbb | 3208 | $as_echo_n "(cached) " >&6 |
b7026657 | 3209 | else |
6bddc3e8 MF |
3210 | if test "x$target_alias" = x; then |
3211 | ac_cv_target=$ac_cv_host | |
c906108c | 3212 | else |
6bddc3e8 MF |
3213 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
3214 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
3215 | fi | |
3216 | ||
3217 | fi | |
3218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
3219 | $as_echo "$ac_cv_target" >&6; } | |
3220 | case $ac_cv_target in | |
3221 | *-*-*) ;; | |
3222 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
3223 | esac | |
3224 | target=$ac_cv_target | |
3225 | ac_save_IFS=$IFS; IFS='-' | |
3226 | set x $ac_cv_target | |
3227 | shift | |
3228 | target_cpu=$1 | |
3229 | target_vendor=$2 | |
3230 | shift; shift | |
3231 | # Remember, the first character of IFS is used to create $*, | |
3232 | # except with old shells: | |
3233 | target_os=$* | |
3234 | IFS=$ac_save_IFS | |
3235 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
3236 | ||
3237 | ||
3238 | # The aliases save the names the user supplied, while $host etc. | |
3239 | # will get canonicalized. | |
3240 | test -n "$target_alias" && | |
3241 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
3242 | NONENONEs,x,x, && | |
3243 | program_prefix=${target_alias}- | |
c2783492 MF |
3244 | # Expand $ac_aux_dir to an absolute path. |
3245 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
6bddc3e8 | 3246 | |
c2783492 MF |
3247 | ac_ext=c |
3248 | ac_cpp='$CPP $CPPFLAGS' | |
3249 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3250 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3251 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3252 | if test -n "$ac_tool_prefix"; then | |
3253 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3254 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3256 | $as_echo_n "checking for $ac_word... " >&6; } | |
3257 | if ${ac_cv_prog_CC+:} false; then : | |
3258 | $as_echo_n "(cached) " >&6 | |
8c379db2 | 3259 | else |
c2783492 MF |
3260 | if test -n "$CC"; then |
3261 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3262 | else | |
3263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3264 | for as_dir in $PATH | |
3265 | do | |
3266 | IFS=$as_save_IFS | |
3267 | test -z "$as_dir" && as_dir=. | |
3268 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3269 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3270 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3271 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3272 | break 2 | |
3273 | fi | |
3274 | done | |
3275 | done | |
3276 | IFS=$as_save_IFS | |
8c379db2 | 3277 | |
c2783492 MF |
3278 | fi |
3279 | fi | |
3280 | CC=$ac_cv_prog_CC | |
3281 | if test -n "$CC"; then | |
3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3283 | $as_echo "$CC" >&6; } | |
8c379db2 | 3284 | else |
c2783492 MF |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3286 | $as_echo "no" >&6; } | |
8c379db2 TT |
3287 | fi |
3288 | ||
6bddc3e8 | 3289 | |
c2783492 MF |
3290 | fi |
3291 | if test -z "$ac_cv_prog_CC"; then | |
3292 | ac_ct_CC=$CC | |
3293 | # Extract the first word of "gcc", so it can be a program name with args. | |
3294 | set dummy gcc; ac_word=$2 | |
3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3296 | $as_echo_n "checking for $ac_word... " >&6; } | |
3297 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
6bddc3e8 MF |
3298 | $as_echo_n "(cached) " >&6 |
3299 | else | |
c2783492 MF |
3300 | if test -n "$ac_ct_CC"; then |
3301 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3302 | else | |
3303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6bddc3e8 MF |
3304 | for as_dir in $PATH |
3305 | do | |
3306 | IFS=$as_save_IFS | |
3307 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
3308 | for ac_exec_ext in '' $ac_executable_extensions; do |
3309 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3310 | ac_cv_prog_ac_ct_CC="gcc" | |
3311 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3312 | break 2 | |
3313 | fi | |
3314 | done | |
6bddc3e8 MF |
3315 | done |
3316 | IFS=$as_save_IFS | |
3317 | ||
6bddc3e8 | 3318 | fi |
6bddc3e8 | 3319 | fi |
c2783492 MF |
3320 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3321 | if test -n "$ac_ct_CC"; then | |
3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3323 | $as_echo "$ac_ct_CC" >&6; } | |
6bddc3e8 | 3324 | else |
c2783492 MF |
3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3326 | $as_echo "no" >&6; } | |
6bddc3e8 MF |
3327 | fi |
3328 | ||
c2783492 MF |
3329 | if test "x$ac_ct_CC" = x; then |
3330 | CC="" | |
3331 | else | |
3332 | case $cross_compiling:$ac_tool_warned in | |
3333 | yes:) | |
3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3335 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3336 | ac_tool_warned=yes ;; | |
3337 | esac | |
3338 | CC=$ac_ct_CC | |
3339 | fi | |
6bddc3e8 | 3340 | else |
c2783492 | 3341 | CC="$ac_cv_prog_CC" |
6bddc3e8 MF |
3342 | fi |
3343 | ||
c2783492 MF |
3344 | if test -z "$CC"; then |
3345 | if test -n "$ac_tool_prefix"; then | |
3346 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3347 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
6bddc3e8 MF |
3348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3349 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 3350 | if ${ac_cv_prog_CC+:} false; then : |
6bddc3e8 MF |
3351 | $as_echo_n "(cached) " >&6 |
3352 | else | |
c2783492 MF |
3353 | if test -n "$CC"; then |
3354 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6bddc3e8 MF |
3355 | else |
3356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3357 | for as_dir in $PATH | |
3358 | do | |
3359 | IFS=$as_save_IFS | |
3360 | test -z "$as_dir" && as_dir=. | |
3361 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3362 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 | 3363 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
6bddc3e8 MF |
3364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3365 | break 2 | |
3366 | fi | |
3367 | done | |
3368 | done | |
3369 | IFS=$as_save_IFS | |
3370 | ||
3371 | fi | |
3372 | fi | |
c2783492 MF |
3373 | CC=$ac_cv_prog_CC |
3374 | if test -n "$CC"; then | |
3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3376 | $as_echo "$CC" >&6; } | |
6bddc3e8 MF |
3377 | else |
3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3379 | $as_echo "no" >&6; } | |
3380 | fi | |
3381 | ||
3382 | ||
c2783492 | 3383 | fi |
6bddc3e8 | 3384 | fi |
c2783492 MF |
3385 | if test -z "$CC"; then |
3386 | # Extract the first word of "cc", so it can be a program name with args. | |
3387 | set dummy cc; ac_word=$2 | |
6bddc3e8 MF |
3388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3389 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 3390 | if ${ac_cv_prog_CC+:} false; then : |
6bddc3e8 MF |
3391 | $as_echo_n "(cached) " >&6 |
3392 | else | |
c2783492 MF |
3393 | if test -n "$CC"; then |
3394 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6bddc3e8 | 3395 | else |
c2783492 | 3396 | ac_prog_rejected=no |
6bddc3e8 MF |
3397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3398 | for as_dir in $PATH | |
3399 | do | |
3400 | IFS=$as_save_IFS | |
3401 | test -z "$as_dir" && as_dir=. | |
3402 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3403 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 MF |
3404 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3405 | ac_prog_rejected=yes | |
3406 | continue | |
3407 | fi | |
3408 | ac_cv_prog_CC="cc" | |
6bddc3e8 MF |
3409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3410 | break 2 | |
3411 | fi | |
3412 | done | |
3413 | done | |
3414 | IFS=$as_save_IFS | |
3415 | ||
c2783492 MF |
3416 | if test $ac_prog_rejected = yes; then |
3417 | # We found a bogon in the path, so make sure we never use it. | |
3418 | set dummy $ac_cv_prog_CC | |
3419 | shift | |
3420 | if test $# != 0; then | |
3421 | # We chose a different compiler from the bogus one. | |
3422 | # However, it has the same basename, so the bogon will be chosen | |
3423 | # first if we set CC to just the basename; use the full file name. | |
3424 | shift | |
3425 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3426 | fi | |
6bddc3e8 MF |
3427 | fi |
3428 | fi | |
c2783492 MF |
3429 | fi |
3430 | CC=$ac_cv_prog_CC | |
3431 | if test -n "$CC"; then | |
3432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3433 | $as_echo "$CC" >&6; } | |
6bddc3e8 MF |
3434 | else |
3435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3436 | $as_echo "no" >&6; } | |
3437 | fi | |
3438 | ||
6bddc3e8 MF |
3439 | |
3440 | fi | |
c2783492 MF |
3441 | if test -z "$CC"; then |
3442 | if test -n "$ac_tool_prefix"; then | |
3443 | for ac_prog in cl.exe | |
3444 | do | |
3445 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3446 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3448 | $as_echo_n "checking for $ac_word... " >&6; } | |
3449 | if ${ac_cv_prog_CC+:} false; then : | |
6bddc3e8 MF |
3450 | $as_echo_n "(cached) " >&6 |
3451 | else | |
c2783492 MF |
3452 | if test -n "$CC"; then |
3453 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3454 | else | |
3455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3456 | for as_dir in $PATH | |
6bddc3e8 MF |
3457 | do |
3458 | IFS=$as_save_IFS | |
3459 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
3460 | for ac_exec_ext in '' $ac_executable_extensions; do |
3461 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3462 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3464 | break 2 | |
3465 | fi | |
3466 | done | |
6bddc3e8 MF |
3467 | done |
3468 | IFS=$as_save_IFS | |
3469 | ||
3470 | fi | |
6bddc3e8 | 3471 | fi |
c2783492 MF |
3472 | CC=$ac_cv_prog_CC |
3473 | if test -n "$CC"; then | |
3474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3475 | $as_echo "$CC" >&6; } | |
3476 | else | |
3477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3478 | $as_echo "no" >&6; } | |
3479 | fi | |
6bddc3e8 | 3480 | |
c2783492 MF |
3481 | |
3482 | test -n "$CC" && break | |
3483 | done | |
3484 | fi | |
3485 | if test -z "$CC"; then | |
3486 | ac_ct_CC=$CC | |
3487 | for ac_prog in cl.exe | |
6bddc3e8 MF |
3488 | do |
3489 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3490 | set dummy $ac_prog; ac_word=$2 | |
3491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3492 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 3493 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
6bddc3e8 MF |
3494 | $as_echo_n "(cached) " >&6 |
3495 | else | |
c2783492 MF |
3496 | if test -n "$ac_ct_CC"; then |
3497 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
6bddc3e8 MF |
3498 | else |
3499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3500 | for as_dir in $PATH | |
3501 | do | |
3502 | IFS=$as_save_IFS | |
3503 | test -z "$as_dir" && as_dir=. | |
3504 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3505 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 | 3506 | ac_cv_prog_ac_ct_CC="$ac_prog" |
6bddc3e8 MF |
3507 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3508 | break 2 | |
3509 | fi | |
3510 | done | |
3511 | done | |
3512 | IFS=$as_save_IFS | |
3513 | ||
3514 | fi | |
3515 | fi | |
c2783492 MF |
3516 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3517 | if test -n "$ac_ct_CC"; then | |
3518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3519 | $as_echo "$ac_ct_CC" >&6; } | |
6bddc3e8 MF |
3520 | else |
3521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3522 | $as_echo "no" >&6; } | |
3523 | fi | |
3524 | ||
3525 | ||
c2783492 | 3526 | test -n "$ac_ct_CC" && break |
6bddc3e8 MF |
3527 | done |
3528 | ||
c2783492 MF |
3529 | if test "x$ac_ct_CC" = x; then |
3530 | CC="" | |
3531 | else | |
3532 | case $cross_compiling:$ac_tool_warned in | |
3533 | yes:) | |
3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3535 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3536 | ac_tool_warned=yes ;; | |
6bddc3e8 | 3537 | esac |
c2783492 | 3538 | CC=$ac_ct_CC |
6bddc3e8 MF |
3539 | fi |
3540 | fi | |
3541 | ||
6bddc3e8 MF |
3542 | fi |
3543 | ||
3544 | ||
c2783492 MF |
3545 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3546 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3547 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3548 | See \`config.log' for more details" "$LINENO" 5; } | |
6bddc3e8 | 3549 | |
c2783492 MF |
3550 | # Provide some information about the compiler. |
3551 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3552 | set X $ac_compile | |
3553 | ac_compiler=$2 | |
3554 | for ac_option in --version -v -V -qversion; do | |
3555 | { { ac_try="$ac_compiler $ac_option >&5" | |
3556 | case "(($ac_try" in | |
3557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3558 | *) ac_try_echo=$ac_try;; | |
3559 | esac | |
3560 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3561 | $as_echo "$ac_try_echo"; } >&5 | |
3562 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3563 | ac_status=$? | |
3564 | if test -s conftest.err; then | |
3565 | sed '10a\ | |
3566 | ... rest of stderr output deleted ... | |
3567 | 10q' conftest.err >conftest.er1 | |
3568 | cat conftest.er1 >&5 | |
3569 | fi | |
3570 | rm -f conftest.er1 conftest.err | |
3571 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3572 | test $ac_status = 0; } | |
3573 | done | |
6bddc3e8 | 3574 | |
c2783492 MF |
3575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3576 | /* end confdefs.h. */ | |
6bddc3e8 | 3577 | |
c2783492 MF |
3578 | int |
3579 | main () | |
3580 | { | |
6bddc3e8 | 3581 | |
c2783492 MF |
3582 | ; |
3583 | return 0; | |
3584 | } | |
6bddc3e8 | 3585 | _ACEOF |
c2783492 MF |
3586 | ac_clean_files_save=$ac_clean_files |
3587 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3588 | # Try to create an executable without -o first, disregard a.out. | |
3589 | # It will help us diagnose broken compilers, and finding out an intuition | |
3590 | # of exeext. | |
3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3592 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3593 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
6bddc3e8 | 3594 | |
c2783492 MF |
3595 | # The possible output files: |
3596 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
6bddc3e8 | 3597 | |
c2783492 MF |
3598 | ac_rmfiles= |
3599 | for ac_file in $ac_files | |
3600 | do | |
3601 | case $ac_file in | |
3602 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3603 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3604 | esac | |
3605 | done | |
3606 | rm -f $ac_rmfiles | |
81ecdfbb RW |
3607 | |
3608 | if { { ac_try="$ac_link_default" | |
3609 | case "(($ac_try" in | |
3610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3611 | *) ac_try_echo=$ac_try;; | |
3612 | esac | |
3613 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3614 | $as_echo "$ac_try_echo"; } >&5 | |
3615 | (eval "$ac_link_default") 2>&5 | |
b7026657 | 3616 | ac_status=$? |
81ecdfbb RW |
3617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3618 | test $ac_status = 0; }; then : | |
3619 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3620 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3621 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3622 | # so that the user can short-circuit this test for compilers unknown to | |
3623 | # Autoconf. | |
3624 | for ac_file in $ac_files '' | |
b7026657 AC |
3625 | do |
3626 | test -f "$ac_file" || continue | |
3627 | case $ac_file in | |
81ecdfbb | 3628 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b7026657 AC |
3629 | ;; |
3630 | [ab].out ) | |
3631 | # We found the default executable, but exeext='' is most | |
3632 | # certainly right. | |
3633 | break;; | |
3634 | *.* ) | |
81ecdfbb RW |
3635 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3636 | then :; else | |
3637 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3638 | fi | |
3639 | # We set ac_cv_exeext here because the later test for it is not | |
3640 | # safe: cross compilers may not add the suffix if given an `-o' | |
3641 | # argument, so we may need to know it at that point already. | |
3642 | # Even if this section looks crufty: it has the advantage of | |
3643 | # actually working. | |
b7026657 AC |
3644 | break;; |
3645 | * ) | |
3646 | break;; | |
3647 | esac | |
3648 | done | |
81ecdfbb RW |
3649 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3650 | ||
b7026657 | 3651 | else |
81ecdfbb RW |
3652 | ac_file='' |
3653 | fi | |
81ecdfbb | 3654 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3656 | $as_echo "no" >&6; } | |
3657 | $as_echo "$as_me: failed program was:" >&5 | |
b7026657 AC |
3658 | sed 's/^/| /' conftest.$ac_ext >&5 |
3659 | ||
81ecdfbb RW |
3660 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3661 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3662 | as_fn_error 77 "C compiler cannot create executables |
3663 | See \`config.log' for more details" "$LINENO" 5; } | |
3664 | else | |
3665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3666 | $as_echo "yes" >&6; } | |
b7026657 | 3667 | fi |
d0ac1c44 SM |
3668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3669 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3671 | $as_echo "$ac_file" >&6; } | |
b7026657 | 3672 | ac_exeext=$ac_cv_exeext |
b7026657 | 3673 | |
d0ac1c44 | 3674 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b7026657 | 3675 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
3676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3677 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3678 | if { { ac_try="$ac_link" | |
3679 | case "(($ac_try" in | |
3680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3681 | *) ac_try_echo=$ac_try;; | |
3682 | esac | |
3683 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3684 | $as_echo "$ac_try_echo"; } >&5 | |
3685 | (eval "$ac_link") 2>&5 | |
b7026657 | 3686 | ac_status=$? |
81ecdfbb RW |
3687 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3688 | test $ac_status = 0; }; then : | |
b7026657 AC |
3689 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3690 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3691 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3692 | # `rm'. | |
3693 | for ac_file in conftest.exe conftest conftest.*; do | |
3694 | test -f "$ac_file" || continue | |
3695 | case $ac_file in | |
81ecdfbb | 3696 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b7026657 | 3697 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b7026657 AC |
3698 | break;; |
3699 | * ) break;; | |
3700 | esac | |
3701 | done | |
c906108c | 3702 | else |
81ecdfbb RW |
3703 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3704 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3705 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3706 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 3707 | fi |
d0ac1c44 | 3708 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3710 | $as_echo "$ac_cv_exeext" >&6; } | |
b7026657 AC |
3711 | |
3712 | rm -f conftest.$ac_ext | |
3713 | EXEEXT=$ac_cv_exeext | |
3714 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
3715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3716 | /* end confdefs.h. */ | |
3717 | #include <stdio.h> | |
3718 | int | |
3719 | main () | |
3720 | { | |
3721 | FILE *f = fopen ("conftest.out", "w"); | |
3722 | return ferror (f) || fclose (f) != 0; | |
3723 | ||
3724 | ; | |
3725 | return 0; | |
3726 | } | |
3727 | _ACEOF | |
3728 | ac_clean_files="$ac_clean_files conftest.out" | |
3729 | # Check that the compiler produces executables we can run. If not, either | |
3730 | # the compiler is broken, or we cross compile. | |
3731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3732 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3733 | if test "$cross_compiling" != yes; then | |
3734 | { { ac_try="$ac_link" | |
3735 | case "(($ac_try" in | |
3736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3737 | *) ac_try_echo=$ac_try;; | |
3738 | esac | |
3739 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3740 | $as_echo "$ac_try_echo"; } >&5 | |
3741 | (eval "$ac_link") 2>&5 | |
3742 | ac_status=$? | |
3743 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3744 | test $ac_status = 0; } | |
3745 | if { ac_try='./conftest$ac_cv_exeext' | |
3746 | { { case "(($ac_try" in | |
3747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3748 | *) ac_try_echo=$ac_try;; | |
3749 | esac | |
3750 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3751 | $as_echo "$ac_try_echo"; } >&5 | |
3752 | (eval "$ac_try") 2>&5 | |
3753 | ac_status=$? | |
3754 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3755 | test $ac_status = 0; }; }; then | |
3756 | cross_compiling=no | |
3757 | else | |
3758 | if test "$cross_compiling" = maybe; then | |
3759 | cross_compiling=yes | |
3760 | else | |
3761 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3762 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3763 | as_fn_error $? "cannot run C compiled programs. | |
3764 | If you meant to cross compile, use \`--host'. | |
3765 | See \`config.log' for more details" "$LINENO" 5; } | |
3766 | fi | |
3767 | fi | |
3768 | fi | |
3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3770 | $as_echo "$cross_compiling" >&6; } | |
3771 | ||
3772 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3773 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3775 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 3776 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 3777 | $as_echo_n "(cached) " >&6 |
b7026657 | 3778 | else |
81ecdfbb | 3779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3780 | /* end confdefs.h. */ |
3781 | ||
3782 | int | |
3783 | main () | |
3784 | { | |
3785 | ||
3786 | ; | |
3787 | return 0; | |
3788 | } | |
3789 | _ACEOF | |
3790 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3791 | if { { ac_try="$ac_compile" |
3792 | case "(($ac_try" in | |
3793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3794 | *) ac_try_echo=$ac_try;; | |
3795 | esac | |
3796 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3797 | $as_echo "$ac_try_echo"; } >&5 | |
3798 | (eval "$ac_compile") 2>&5 | |
b7026657 | 3799 | ac_status=$? |
81ecdfbb RW |
3800 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3801 | test $ac_status = 0; }; then : | |
3802 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3803 | test -f "$ac_file" || continue; | |
b7026657 | 3804 | case $ac_file in |
81ecdfbb | 3805 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b7026657 AC |
3806 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3807 | break;; | |
3808 | esac | |
3809 | done | |
3810 | else | |
81ecdfbb | 3811 | $as_echo "$as_me: failed program was:" >&5 |
b7026657 AC |
3812 | sed 's/^/| /' conftest.$ac_ext >&5 |
3813 | ||
81ecdfbb RW |
3814 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3815 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3816 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3817 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 3818 | fi |
b7026657 AC |
3819 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3820 | fi | |
81ecdfbb RW |
3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3822 | $as_echo "$ac_cv_objext" >&6; } | |
b7026657 AC |
3823 | OBJEXT=$ac_cv_objext |
3824 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3826 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 3827 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 3828 | $as_echo_n "(cached) " >&6 |
b7026657 | 3829 | else |
81ecdfbb | 3830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3831 | /* end confdefs.h. */ |
3832 | ||
3833 | int | |
3834 | main () | |
3835 | { | |
3836 | #ifndef __GNUC__ | |
3837 | choke me | |
3838 | #endif | |
c906108c | 3839 | |
b7026657 AC |
3840 | ; |
3841 | return 0; | |
3842 | } | |
3843 | _ACEOF | |
81ecdfbb | 3844 | if ac_fn_c_try_compile "$LINENO"; then : |
b7026657 | 3845 | ac_compiler_gnu=yes |
c906108c | 3846 | else |
81ecdfbb | 3847 | ac_compiler_gnu=no |
c906108c | 3848 | fi |
81ecdfbb | 3849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 3850 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
c906108c | 3851 | |
b7026657 | 3852 | fi |
81ecdfbb RW |
3853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3854 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3855 | if test $ac_compiler_gnu = yes; then | |
3856 | GCC=yes | |
3857 | else | |
3858 | GCC= | |
3859 | fi | |
b7026657 AC |
3860 | ac_test_CFLAGS=${CFLAGS+set} |
3861 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3863 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 3864 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb | 3865 | $as_echo_n "(cached) " >&6 |
c906108c | 3866 | else |
81ecdfbb RW |
3867 | ac_save_c_werror_flag=$ac_c_werror_flag |
3868 | ac_c_werror_flag=yes | |
3869 | ac_cv_prog_cc_g=no | |
3870 | CFLAGS="-g" | |
3871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 AC |
3872 | /* end confdefs.h. */ |
3873 | ||
3874 | int | |
3875 | main () | |
3876 | { | |
3877 | ||
3878 | ; | |
3879 | return 0; | |
3880 | } | |
3881 | _ACEOF | |
81ecdfbb | 3882 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
3883 | ac_cv_prog_cc_g=yes |
3884 | else | |
81ecdfbb RW |
3885 | CFLAGS="" |
3886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3887 | /* end confdefs.h. */ | |
3888 | ||
3889 | int | |
3890 | main () | |
3891 | { | |
3892 | ||
3893 | ; | |
3894 | return 0; | |
3895 | } | |
3896 | _ACEOF | |
3897 | if ac_fn_c_try_compile "$LINENO"; then : | |
3898 | ||
3899 | else | |
3900 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3901 | CFLAGS="-g" | |
3902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3903 | /* end confdefs.h. */ | |
3904 | ||
3905 | int | |
3906 | main () | |
3907 | { | |
c906108c | 3908 | |
81ecdfbb RW |
3909 | ; |
3910 | return 0; | |
3911 | } | |
3912 | _ACEOF | |
3913 | if ac_fn_c_try_compile "$LINENO"; then : | |
3914 | ac_cv_prog_cc_g=yes | |
3915 | fi | |
3916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 3917 | fi |
81ecdfbb | 3918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 3919 | fi |
81ecdfbb RW |
3920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3921 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3922 | fi | |
3923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3924 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
c906108c | 3925 | if test "$ac_test_CFLAGS" = set; then |
b7026657 | 3926 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
3927 | elif test $ac_cv_prog_cc_g = yes; then |
3928 | if test "$GCC" = yes; then | |
3929 | CFLAGS="-g -O2" | |
3930 | else | |
3931 | CFLAGS="-g" | |
3932 | fi | |
3933 | else | |
3934 | if test "$GCC" = yes; then | |
3935 | CFLAGS="-O2" | |
3936 | else | |
3937 | CFLAGS= | |
3938 | fi | |
3939 | fi | |
81ecdfbb RW |
3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3941 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 3942 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 3943 | $as_echo_n "(cached) " >&6 |
b7026657 | 3944 | else |
81ecdfbb | 3945 | ac_cv_prog_cc_c89=no |
b7026657 | 3946 | ac_save_CC=$CC |
81ecdfbb | 3947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3948 | /* end confdefs.h. */ |
3949 | #include <stdarg.h> | |
3950 | #include <stdio.h> | |
d0ac1c44 | 3951 | struct stat; |
b7026657 AC |
3952 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3953 | struct buf { int x; }; | |
3954 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3955 | static char *e (p, i) | |
3956 | char **p; | |
3957 | int i; | |
3958 | { | |
3959 | return p[i]; | |
3960 | } | |
3961 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3962 | { | |
3963 | char *s; | |
3964 | va_list v; | |
3965 | va_start (v,p); | |
3966 | s = g (p, va_arg (v,int)); | |
3967 | va_end (v); | |
3968 | return s; | |
3969 | } | |
3970 | ||
3971 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3972 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3973 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3974 | as 'x'. The following induces an error, until -std is added to get |
b7026657 AC |
3975 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3976 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3977 | that's true only with -std. */ |
b7026657 AC |
3978 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3979 | ||
81ecdfbb RW |
3980 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3981 | inside strings and character constants. */ | |
3982 | #define FOO(x) 'x' | |
3983 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3984 | ||
b7026657 AC |
3985 | int test (int i, double x); |
3986 | struct s1 {int (*f) (int a);}; | |
3987 | struct s2 {int (*f) (double a);}; | |
3988 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3989 | int argc; | |
3990 | char **argv; | |
3991 | int | |
3992 | main () | |
3993 | { | |
3994 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3995 | ; | |
3996 | return 0; | |
3997 | } | |
3998 | _ACEOF | |
81ecdfbb RW |
3999 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4000 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b7026657 AC |
4001 | do |
4002 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4003 | if ac_fn_c_try_compile "$LINENO"; then : |
4004 | ac_cv_prog_cc_c89=$ac_arg | |
b7026657 | 4005 | fi |
81ecdfbb RW |
4006 | rm -f core conftest.err conftest.$ac_objext |
4007 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b7026657 | 4008 | done |
81ecdfbb | 4009 | rm -f conftest.$ac_ext |
b7026657 AC |
4010 | CC=$ac_save_CC |
4011 | ||
4012 | fi | |
81ecdfbb RW |
4013 | # AC_CACHE_VAL |
4014 | case "x$ac_cv_prog_cc_c89" in | |
4015 | x) | |
4016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4017 | $as_echo "none needed" >&6; } ;; | |
4018 | xno) | |
4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4020 | $as_echo "unsupported" >&6; } ;; | |
b7026657 | 4021 | *) |
81ecdfbb RW |
4022 | CC="$CC $ac_cv_prog_cc_c89" |
4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4024 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b7026657 | 4025 | esac |
81ecdfbb | 4026 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b7026657 | 4027 | |
fdd6fa61 AG |
4028 | fi |
4029 | ||
fdd6fa61 AG |
4030 | ac_ext=c |
4031 | ac_cpp='$CPP $CPPFLAGS' | |
4032 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4033 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4034 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4035 | ||
c2783492 MF |
4036 | ac_ext=c |
4037 | ac_cpp='$CPP $CPPFLAGS' | |
4038 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4039 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4040 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4042 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4043 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4044 | $as_echo_n "(cached) " >&6 | |
4045 | else | |
4046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4047 | /* end confdefs.h. */ | |
4048 | ||
4049 | int | |
4050 | main () | |
4051 | { | |
4052 | ||
4053 | ; | |
4054 | return 0; | |
4055 | } | |
4056 | _ACEOF | |
4057 | # Make sure it works both with $CC and with simple cc. | |
4058 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4059 | # compilers refuse to overwrite an existing .o file with -o, | |
4060 | # though they will create one. | |
4061 | am_cv_prog_cc_c_o=yes | |
4062 | for am_i in 1 2; do | |
4063 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4064 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4065 | ac_status=$? | |
4066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4067 | (exit $ac_status); } \ | |
4068 | && test -f conftest2.$ac_objext; then | |
4069 | : OK | |
4070 | else | |
4071 | am_cv_prog_cc_c_o=no | |
4072 | break | |
4073 | fi | |
4074 | done | |
4075 | rm -f core conftest* | |
4076 | unset am_i | |
4077 | fi | |
4078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4079 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4080 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4081 | # Losing compiler, so override with the script. | |
4082 | # FIXME: It is wrong to rewrite CC. | |
4083 | # But if we don't then we get into trouble of one sort or another. | |
4084 | # A longer-term fix would be to have automake use am__CC in this case, | |
4085 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4086 | CC="$am_aux_dir/compile $CC" | |
4087 | fi | |
4088 | ac_ext=c | |
4089 | ac_cpp='$CPP $CPPFLAGS' | |
4090 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4091 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4092 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4093 | ||
4094 | ||
4095 | ||
4096 | ac_ext=c | |
4097 | ac_cpp='$CPP $CPPFLAGS' | |
4098 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4099 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4100 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4102 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4103 | # On Suns, sometimes $CPP names a directory. | |
4104 | if test -n "$CPP" && test -d "$CPP"; then | |
4105 | CPP= | |
4106 | fi | |
4107 | if test -z "$CPP"; then | |
4108 | if ${ac_cv_prog_CPP+:} false; then : | |
4109 | $as_echo_n "(cached) " >&6 | |
4110 | else | |
4111 | # Double quotes because CPP needs to be expanded | |
4112 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4113 | do | |
4114 | ac_preproc_ok=false | |
4115 | for ac_c_preproc_warn_flag in '' yes | |
4116 | do | |
4117 | # Use a header file that comes with gcc, so configuring glibc | |
4118 | # with a fresh cross-compiler works. | |
4119 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4120 | # <limits.h> exists even on freestanding compilers. | |
4121 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4122 | # not just through cpp. "Syntax error" is here to catch this case. | |
4123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4124 | /* end confdefs.h. */ | |
4125 | #ifdef __STDC__ | |
4126 | # include <limits.h> | |
4127 | #else | |
4128 | # include <assert.h> | |
4129 | #endif | |
4130 | Syntax error | |
4131 | _ACEOF | |
4132 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4133 | ||
4134 | else | |
4135 | # Broken: fails on valid input. | |
4136 | continue | |
4137 | fi | |
4138 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4139 | ||
4140 | # OK, works on sane cases. Now check whether nonexistent headers | |
4141 | # can be detected and how. | |
4142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4143 | /* end confdefs.h. */ | |
4144 | #include <ac_nonexistent.h> | |
4145 | _ACEOF | |
4146 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4147 | # Broken: success on invalid input. | |
4148 | continue | |
4149 | else | |
4150 | # Passes both tests. | |
4151 | ac_preproc_ok=: | |
4152 | break | |
4153 | fi | |
4154 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4155 | ||
4156 | done | |
4157 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4158 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4159 | if $ac_preproc_ok; then : | |
4160 | break | |
4161 | fi | |
4162 | ||
4163 | done | |
4164 | ac_cv_prog_CPP=$CPP | |
4165 | ||
4166 | fi | |
4167 | CPP=$ac_cv_prog_CPP | |
4168 | else | |
4169 | ac_cv_prog_CPP=$CPP | |
4170 | fi | |
4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4172 | $as_echo "$CPP" >&6; } | |
4173 | ac_preproc_ok=false | |
4174 | for ac_c_preproc_warn_flag in '' yes | |
4175 | do | |
4176 | # Use a header file that comes with gcc, so configuring glibc | |
4177 | # with a fresh cross-compiler works. | |
4178 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4179 | # <limits.h> exists even on freestanding compilers. | |
4180 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4181 | # not just through cpp. "Syntax error" is here to catch this case. | |
4182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4183 | /* end confdefs.h. */ | |
4184 | #ifdef __STDC__ | |
4185 | # include <limits.h> | |
4186 | #else | |
4187 | # include <assert.h> | |
4188 | #endif | |
4189 | Syntax error | |
4190 | _ACEOF | |
4191 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4192 | ||
4193 | else | |
4194 | # Broken: fails on valid input. | |
4195 | continue | |
4196 | fi | |
4197 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4198 | ||
4199 | # OK, works on sane cases. Now check whether nonexistent headers | |
4200 | # can be detected and how. | |
4201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4202 | /* end confdefs.h. */ | |
4203 | #include <ac_nonexistent.h> | |
4204 | _ACEOF | |
4205 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4206 | # Broken: success on invalid input. | |
4207 | continue | |
4208 | else | |
4209 | # Passes both tests. | |
4210 | ac_preproc_ok=: | |
4211 | break | |
4212 | fi | |
4213 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4214 | ||
4215 | done | |
4216 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4217 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4218 | if $ac_preproc_ok; then : | |
4219 | ||
4220 | else | |
4221 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4222 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4223 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
4224 | See \`config.log' for more details" "$LINENO" 5; } | |
4225 | fi | |
4226 | ||
4227 | ac_ext=c | |
4228 | ac_cpp='$CPP $CPPFLAGS' | |
4229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4232 | ||
4233 | ||
4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4235 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4236 | if ${ac_cv_path_GREP+:} false; then : | |
4237 | $as_echo_n "(cached) " >&6 | |
4238 | else | |
4239 | if test -z "$GREP"; then | |
4240 | ac_path_GREP_found=false | |
4241 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4243 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4244 | do | |
4245 | IFS=$as_save_IFS | |
4246 | test -z "$as_dir" && as_dir=. | |
4247 | for ac_prog in grep ggrep; do | |
4248 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4249 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4250 | as_fn_executable_p "$ac_path_GREP" || continue | |
4251 | # Check for GNU ac_path_GREP and select it if it is found. | |
4252 | # Check for GNU $ac_path_GREP | |
4253 | case `"$ac_path_GREP" --version 2>&1` in | |
4254 | *GNU*) | |
4255 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4256 | *) | |
4257 | ac_count=0 | |
4258 | $as_echo_n 0123456789 >"conftest.in" | |
4259 | while : | |
4260 | do | |
4261 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4262 | mv "conftest.tmp" "conftest.in" | |
4263 | cp "conftest.in" "conftest.nl" | |
4264 | $as_echo 'GREP' >> "conftest.nl" | |
4265 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4266 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4267 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4268 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4269 | # Best one so far, save it but keep looking for a better one | |
4270 | ac_cv_path_GREP="$ac_path_GREP" | |
4271 | ac_path_GREP_max=$ac_count | |
4272 | fi | |
4273 | # 10*(2^10) chars as input seems more than enough | |
4274 | test $ac_count -gt 10 && break | |
4275 | done | |
4276 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4277 | esac | |
4278 | ||
4279 | $ac_path_GREP_found && break 3 | |
4280 | done | |
4281 | done | |
4282 | done | |
4283 | IFS=$as_save_IFS | |
4284 | if test -z "$ac_cv_path_GREP"; then | |
4285 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4286 | fi | |
4287 | else | |
4288 | ac_cv_path_GREP=$GREP | |
4289 | fi | |
4290 | ||
4291 | fi | |
4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4293 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4294 | GREP="$ac_cv_path_GREP" | |
4295 | ||
4296 | ||
4297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4298 | $as_echo_n "checking for egrep... " >&6; } | |
4299 | if ${ac_cv_path_EGREP+:} false; then : | |
4300 | $as_echo_n "(cached) " >&6 | |
4301 | else | |
4302 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4303 | then ac_cv_path_EGREP="$GREP -E" | |
4304 | else | |
4305 | if test -z "$EGREP"; then | |
4306 | ac_path_EGREP_found=false | |
4307 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4309 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4310 | do | |
4311 | IFS=$as_save_IFS | |
4312 | test -z "$as_dir" && as_dir=. | |
4313 | for ac_prog in egrep; do | |
4314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4315 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4316 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4317 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4318 | # Check for GNU $ac_path_EGREP | |
4319 | case `"$ac_path_EGREP" --version 2>&1` in | |
4320 | *GNU*) | |
4321 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4322 | *) | |
4323 | ac_count=0 | |
4324 | $as_echo_n 0123456789 >"conftest.in" | |
4325 | while : | |
4326 | do | |
4327 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4328 | mv "conftest.tmp" "conftest.in" | |
4329 | cp "conftest.in" "conftest.nl" | |
4330 | $as_echo 'EGREP' >> "conftest.nl" | |
4331 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4332 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4333 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4334 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4335 | # Best one so far, save it but keep looking for a better one | |
4336 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4337 | ac_path_EGREP_max=$ac_count | |
4338 | fi | |
4339 | # 10*(2^10) chars as input seems more than enough | |
4340 | test $ac_count -gt 10 && break | |
4341 | done | |
4342 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4343 | esac | |
4344 | ||
4345 | $ac_path_EGREP_found && break 3 | |
4346 | done | |
4347 | done | |
4348 | done | |
4349 | IFS=$as_save_IFS | |
4350 | if test -z "$ac_cv_path_EGREP"; then | |
4351 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4352 | fi | |
4353 | else | |
4354 | ac_cv_path_EGREP=$EGREP | |
4355 | fi | |
4356 | ||
4357 | fi | |
4358 | fi | |
4359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4360 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4361 | EGREP="$ac_cv_path_EGREP" | |
4362 | ||
4363 | ||
4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4365 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4366 | if ${ac_cv_header_stdc+:} false; then : | |
6bddc3e8 MF |
4367 | $as_echo_n "(cached) " >&6 |
4368 | else | |
4369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4370 | /* end confdefs.h. */ | |
c2783492 MF |
4371 | #include <stdlib.h> |
4372 | #include <stdarg.h> | |
4373 | #include <string.h> | |
4374 | #include <float.h> | |
6bddc3e8 MF |
4375 | |
4376 | int | |
4377 | main () | |
4378 | { | |
4379 | ||
4380 | ; | |
4381 | return 0; | |
4382 | } | |
4383 | _ACEOF | |
c2783492 MF |
4384 | if ac_fn_c_try_compile "$LINENO"; then : |
4385 | ac_cv_header_stdc=yes | |
4386 | else | |
4387 | ac_cv_header_stdc=no | |
fdd6fa61 | 4388 | fi |
c2783492 | 4389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
81ecdfbb | 4390 | |
c2783492 MF |
4391 | if test $ac_cv_header_stdc = yes; then |
4392 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4394 | /* end confdefs.h. */ | |
4395 | #include <string.h> | |
6bddc3e8 | 4396 | |
c2783492 MF |
4397 | _ACEOF |
4398 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4399 | $EGREP "memchr" >/dev/null 2>&1; then : | |
6bddc3e8 | 4400 | |
c2783492 MF |
4401 | else |
4402 | ac_cv_header_stdc=no | |
4403 | fi | |
4404 | rm -f conftest* | |
6bddc3e8 | 4405 | |
6bddc3e8 | 4406 | fi |
81ecdfbb | 4407 | |
c2783492 MF |
4408 | if test $ac_cv_header_stdc = yes; then |
4409 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4411 | /* end confdefs.h. */ | |
4412 | #include <stdlib.h> | |
fdd6fa61 | 4413 | |
c2783492 MF |
4414 | _ACEOF |
4415 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4416 | $EGREP "free" >/dev/null 2>&1; then : | |
6bddc3e8 | 4417 | |
c2783492 MF |
4418 | else |
4419 | ac_cv_header_stdc=no | |
6bddc3e8 | 4420 | fi |
c2783492 | 4421 | rm -f conftest* |
6bddc3e8 | 4422 | |
6bddc3e8 | 4423 | fi |
c2783492 MF |
4424 | |
4425 | if test $ac_cv_header_stdc = yes; then | |
4426 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4427 | if test "$cross_compiling" = yes; then : | |
4428 | : | |
6bddc3e8 | 4429 | else |
c2783492 MF |
4430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4431 | /* end confdefs.h. */ | |
4432 | #include <ctype.h> | |
4433 | #include <stdlib.h> | |
4434 | #if ((' ' & 0x0FF) == 0x020) | |
4435 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4436 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4437 | #else | |
4438 | # define ISLOWER(c) \ | |
4439 | (('a' <= (c) && (c) <= 'i') \ | |
4440 | || ('j' <= (c) && (c) <= 'r') \ | |
4441 | || ('s' <= (c) && (c) <= 'z')) | |
4442 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4443 | #endif | |
4444 | ||
4445 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4446 | int | |
4447 | main () | |
4448 | { | |
4449 | int i; | |
4450 | for (i = 0; i < 256; i++) | |
4451 | if (XOR (islower (i), ISLOWER (i)) | |
4452 | || toupper (i) != TOUPPER (i)) | |
4453 | return 2; | |
4454 | return 0; | |
4455 | } | |
4456 | _ACEOF | |
4457 | if ac_fn_c_try_run "$LINENO"; then : | |
4458 | ||
4459 | else | |
4460 | ac_cv_header_stdc=no | |
4461 | fi | |
4462 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4463 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6bddc3e8 MF |
4464 | fi |
4465 | ||
c2783492 MF |
4466 | fi |
4467 | fi | |
4468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4469 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4470 | if test $ac_cv_header_stdc = yes; then | |
6bddc3e8 | 4471 | |
c2783492 | 4472 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
6bddc3e8 | 4473 | |
c2783492 | 4474 | fi |
6bddc3e8 | 4475 | |
c2783492 MF |
4476 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4477 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4478 | inttypes.h stdint.h unistd.h | |
4479 | do : | |
4480 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4481 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4482 | " | |
4483 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4484 | cat >>confdefs.h <<_ACEOF | |
4485 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4486 | _ACEOF | |
4487 | ||
4488 | fi | |
4489 | ||
4490 | done | |
4491 | ||
4492 | ||
4493 | ||
4494 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4495 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
4496 | MINIX=yes | |
fdd6fa61 | 4497 | else |
c2783492 MF |
4498 | MINIX= |
4499 | fi | |
4500 | ||
4501 | ||
4502 | if test "$MINIX" = yes; then | |
4503 | ||
4504 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4505 | ||
4506 | ||
4507 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4508 | ||
4509 | ||
4510 | $as_echo "#define _MINIX 1" >>confdefs.h | |
6bddc3e8 | 4511 | |
6bddc3e8 | 4512 | fi |
6bddc3e8 | 4513 | |
6bddc3e8 | 4514 | |
c2783492 MF |
4515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4516 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4517 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
4518 | $as_echo_n "(cached) " >&6 | |
4519 | else | |
4520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4521 | /* end confdefs.h. */ | |
c906108c | 4522 | |
c2783492 MF |
4523 | # define __EXTENSIONS__ 1 |
4524 | $ac_includes_default | |
4525 | int | |
4526 | main () | |
4527 | { | |
4528 | ||
4529 | ; | |
4530 | return 0; | |
4531 | } | |
4532 | _ACEOF | |
4533 | if ac_fn_c_try_compile "$LINENO"; then : | |
4534 | ac_cv_safe_to_define___extensions__=yes | |
6bddc3e8 | 4535 | else |
c2783492 MF |
4536 | ac_cv_safe_to_define___extensions__=no |
4537 | fi | |
4538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 4539 | fi |
c2783492 MF |
4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4541 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4542 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4543 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
6bddc3e8 | 4544 | |
c2783492 | 4545 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
c906108c | 4546 | |
c2783492 | 4547 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
c906108c | 4548 | |
c2783492 | 4549 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
c906108c | 4550 | |
c2783492 | 4551 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
c906108c | 4552 | |
c2783492 MF |
4553 | |
4554 | test "$program_prefix" != NONE && | |
4555 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4556 | # Use a double $ so make ignores it. | |
4557 | test "$program_suffix" != NONE && | |
4558 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4559 | # Double any \ or $. | |
4560 | # By default was `s,x,x', remove it if useless. | |
4561 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4562 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4563 | ||
4564 | # Find a good install program. We prefer a C program (faster), | |
4565 | # so one script is as good as another. But avoid the broken or | |
4566 | # incompatible versions: | |
4567 | # SysV /etc/install, /usr/sbin/install | |
4568 | # SunOS /usr/etc/install | |
4569 | # IRIX /sbin/install | |
4570 | # AIX /bin/install | |
4571 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4572 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4573 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4574 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4575 | # OS/2's system install, which has a completely different semantic | |
4576 | # ./install, which can be erroneously created by make from ./install.sh. | |
4577 | # Reject install programs that cannot install multiple files. | |
4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4579 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4580 | if test -z "$INSTALL"; then | |
4581 | if ${ac_cv_path_install+:} false; then : | |
81ecdfbb | 4582 | $as_echo_n "(cached) " >&6 |
c906108c | 4583 | else |
c2783492 | 4584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
b7026657 AC |
4585 | for as_dir in $PATH |
4586 | do | |
4587 | IFS=$as_save_IFS | |
4588 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
4589 | # Account for people who put trailing slashes in PATH elements. |
4590 | case $as_dir/ in #(( | |
4591 | ./ | .// | /[cC]/* | \ | |
4592 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4593 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4594 | /usr/ucb/* ) ;; | |
4595 | *) | |
4596 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4597 | # Don't use installbsd from OSF since it installs stuff as root | |
4598 | # by default. | |
4599 | for ac_prog in ginstall scoinst install; do | |
4600 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4601 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4602 | if test $ac_prog = install && | |
4603 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4604 | # AIX install. It has an incompatible calling convention. | |
4605 | : | |
4606 | elif test $ac_prog = install && | |
4607 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4608 | # program-specific install script used by HP pwplus--don't use. | |
4609 | : | |
4610 | else | |
4611 | rm -rf conftest.one conftest.two conftest.dir | |
4612 | echo one > conftest.one | |
4613 | echo two > conftest.two | |
4614 | mkdir conftest.dir | |
4615 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4616 | test -s conftest.one && test -s conftest.two && | |
4617 | test -s conftest.dir/conftest.one && | |
4618 | test -s conftest.dir/conftest.two | |
4619 | then | |
4620 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4621 | break 3 | |
4622 | fi | |
4623 | fi | |
4624 | fi | |
4625 | done | |
4626 | done | |
4627 | ;; | |
4628 | esac | |
4629 | ||
81ecdfbb RW |
4630 | done |
4631 | IFS=$as_save_IFS | |
b7026657 | 4632 | |
c2783492 MF |
4633 | rm -rf conftest.one conftest.two conftest.dir |
4634 | ||
c906108c | 4635 | fi |
c2783492 MF |
4636 | if test "${ac_cv_path_install+set}" = set; then |
4637 | INSTALL=$ac_cv_path_install | |
4638 | else | |
4639 | # As a last resort, use the slow shell script. Don't cache a | |
4640 | # value for INSTALL within a source directory, because that will | |
4641 | # break other packages using the cache if that directory is | |
4642 | # removed, or if the value is a relative name. | |
4643 | INSTALL=$ac_install_sh | |
4644 | fi | |
c906108c | 4645 | fi |
c2783492 MF |
4646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4647 | $as_echo "$INSTALL" >&6; } | |
b7026657 | 4648 | |
c2783492 MF |
4649 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4650 | # It thinks the first close brace ends the variable substitution. | |
4651 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
81ecdfbb | 4652 | |
c2783492 MF |
4653 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4654 | ||
4655 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4656 | ||
4657 | ||
4658 | ||
4659 | ||
4660 | ||
4661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
4662 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
4663 | if ${ac_cv_c_bigendian+:} false; then : | |
81ecdfbb | 4664 | $as_echo_n "(cached) " >&6 |
b7026657 | 4665 | else |
c2783492 MF |
4666 | ac_cv_c_bigendian=unknown |
4667 | # See if we're dealing with a universal compiler. | |
4668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4669 | /* end confdefs.h. */ | |
4670 | #ifndef __APPLE_CC__ | |
4671 | not a universal capable compiler | |
4672 | #endif | |
4673 | typedef int dummy; | |
c906108c | 4674 | |
c2783492 MF |
4675 | _ACEOF |
4676 | if ac_fn_c_try_compile "$LINENO"; then : | |
4677 | ||
4678 | # Check for potential -arch flags. It is not universal unless | |
4679 | # there are at least two -arch flags with different values. | |
4680 | ac_arch= | |
4681 | ac_prev= | |
4682 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
4683 | if test -n "$ac_prev"; then | |
4684 | case $ac_word in | |
4685 | i?86 | x86_64 | ppc | ppc64) | |
4686 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
4687 | ac_arch=$ac_word | |
4688 | else | |
4689 | ac_cv_c_bigendian=universal | |
4690 | break | |
4691 | fi | |
4692 | ;; | |
4693 | esac | |
4694 | ac_prev= | |
4695 | elif test "x$ac_word" = "x-arch"; then | |
4696 | ac_prev=arch | |
4697 | fi | |
4698 | done | |
b7026657 | 4699 | fi |
c2783492 MF |
4700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4701 | if test $ac_cv_c_bigendian = unknown; then | |
4702 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4704 | /* end confdefs.h. */ | |
4705 | #include <sys/types.h> | |
4706 | #include <sys/param.h> | |
c906108c | 4707 | |
c2783492 MF |
4708 | int |
4709 | main () | |
4710 | { | |
4711 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
4712 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
4713 | && LITTLE_ENDIAN) | |
4714 | bogus endian macros | |
4715 | #endif | |
4716 | ||
4717 | ; | |
4718 | return 0; | |
4719 | } | |
4720 | _ACEOF | |
4721 | if ac_fn_c_try_compile "$LINENO"; then : | |
4722 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
4723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4724 | /* end confdefs.h. */ | |
4725 | #include <sys/types.h> | |
4726 | #include <sys/param.h> | |
4727 | ||
4728 | int | |
4729 | main () | |
4730 | { | |
4731 | #if BYTE_ORDER != BIG_ENDIAN | |
4732 | not big endian | |
4733 | #endif | |
4734 | ||
4735 | ; | |
4736 | return 0; | |
4737 | } | |
4738 | _ACEOF | |
4739 | if ac_fn_c_try_compile "$LINENO"; then : | |
4740 | ac_cv_c_bigendian=yes | |
b7026657 | 4741 | else |
c2783492 MF |
4742 | ac_cv_c_bigendian=no |
4743 | fi | |
4744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b7026657 | 4745 | fi |
c2783492 MF |
4746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4747 | fi | |
4748 | if test $ac_cv_c_bigendian = unknown; then | |
4749 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
4750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4751 | /* end confdefs.h. */ | |
4752 | #include <limits.h> | |
c906108c | 4753 | |
c2783492 MF |
4754 | int |
4755 | main () | |
4756 | { | |
4757 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
4758 | bogus endian macros | |
4759 | #endif | |
4760 | ||
4761 | ; | |
4762 | return 0; | |
4763 | } | |
4764 | _ACEOF | |
4765 | if ac_fn_c_try_compile "$LINENO"; then : | |
4766 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
4767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4768 | /* end confdefs.h. */ | |
4769 | #include <limits.h> | |
4770 | ||
4771 | int | |
4772 | main () | |
4773 | { | |
4774 | #ifndef _BIG_ENDIAN | |
4775 | not big endian | |
4776 | #endif | |
b7026657 | 4777 | |
c2783492 MF |
4778 | ; |
4779 | return 0; | |
4780 | } | |
4781 | _ACEOF | |
4782 | if ac_fn_c_try_compile "$LINENO"; then : | |
4783 | ac_cv_c_bigendian=yes | |
c906108c | 4784 | else |
c2783492 | 4785 | ac_cv_c_bigendian=no |
c906108c | 4786 | fi |
c2783492 MF |
4787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4788 | fi | |
4789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4790 | fi | |
4791 | if test $ac_cv_c_bigendian = unknown; then | |
4792 | # Compile a test program. | |
4793 | if test "$cross_compiling" = yes; then : | |
4794 | # Try to guess by grepping values from an object file. | |
4795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4796 | /* end confdefs.h. */ | |
4797 | short int ascii_mm[] = | |
4798 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
4799 | short int ascii_ii[] = | |
4800 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
4801 | int use_ascii (int i) { | |
4802 | return ascii_mm[i] + ascii_ii[i]; | |
4803 | } | |
4804 | short int ebcdic_ii[] = | |
4805 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
4806 | short int ebcdic_mm[] = | |
4807 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
4808 | int use_ebcdic (int i) { | |
4809 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
4810 | } | |
4811 | extern int foo; | |
c906108c | 4812 | |
c2783492 MF |
4813 | int |
4814 | main () | |
4815 | { | |
4816 | return use_ascii (foo) == use_ebcdic (foo); | |
4817 | ; | |
4818 | return 0; | |
4819 | } | |
4820 | _ACEOF | |
4821 | if ac_fn_c_try_compile "$LINENO"; then : | |
4822 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
4823 | ac_cv_c_bigendian=yes | |
4824 | fi | |
4825 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
4826 | if test "$ac_cv_c_bigendian" = unknown; then | |
4827 | ac_cv_c_bigendian=no | |
4828 | else | |
4829 | # finding both strings is unlikely to happen, but who knows? | |
4830 | ac_cv_c_bigendian=unknown | |
4831 | fi | |
4832 | fi | |
b7026657 | 4833 | fi |
c2783492 | 4834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 4835 | else |
c2783492 MF |
4836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4837 | /* end confdefs.h. */ | |
4838 | $ac_includes_default | |
4839 | int | |
4840 | main () | |
4841 | { | |
4842 | ||
4843 | /* Are we little or big endian? From Harbison&Steele. */ | |
4844 | union | |
4845 | { | |
4846 | long int l; | |
4847 | char c[sizeof (long int)]; | |
4848 | } u; | |
4849 | u.l = 1; | |
4850 | return u.c[sizeof (long int) - 1] == 1; | |
b7026657 | 4851 | |
c2783492 MF |
4852 | ; |
4853 | return 0; | |
4854 | } | |
4855 | _ACEOF | |
4856 | if ac_fn_c_try_run "$LINENO"; then : | |
4857 | ac_cv_c_bigendian=no | |
4858 | else | |
4859 | ac_cv_c_bigendian=yes | |
c906108c | 4860 | fi |
c2783492 MF |
4861 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4862 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c906108c | 4863 | fi |
c2783492 MF |
4864 | |
4865 | fi | |
c906108c | 4866 | fi |
c2783492 MF |
4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
4868 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
4869 | case $ac_cv_c_bigendian in #( | |
4870 | yes) | |
4871 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
4872 | ;; #( | |
4873 | no) | |
4874 | ;; #( | |
4875 | universal) | |
c906108c | 4876 | |
c2783492 MF |
4877 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
4878 | ||
4879 | ;; #( | |
4880 | *) | |
4881 | as_fn_error $? "unknown endianness | |
4882 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
4883 | esac | |
4884 | ||
4885 | ||
4886 | ||
4887 | ||
a979f2a0 MF |
4888 | if test -n "$ac_tool_prefix"; then |
4889 | # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args. | |
4890 | set dummy ${ac_tool_prefix}dtc; ac_word=$2 | |
4891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4892 | $as_echo_n "checking for $ac_word... " >&6; } | |
4893 | if ${ac_cv_prog_DTC+:} false; then : | |
4894 | $as_echo_n "(cached) " >&6 | |
4895 | else | |
4896 | if test -n "$DTC"; then | |
4897 | ac_cv_prog_DTC="$DTC" # Let the user override the test. | |
4898 | else | |
4899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4900 | for as_dir in $PATH | |
4901 | do | |
4902 | IFS=$as_save_IFS | |
4903 | test -z "$as_dir" && as_dir=. | |
4904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4905 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4906 | ac_cv_prog_DTC="${ac_tool_prefix}dtc" | |
4907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4908 | break 2 | |
4909 | fi | |
4910 | done | |
4911 | done | |
4912 | IFS=$as_save_IFS | |
4913 | ||
4914 | fi | |
4915 | fi | |
4916 | DTC=$ac_cv_prog_DTC | |
4917 | if test -n "$DTC"; then | |
4918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5 | |
4919 | $as_echo "$DTC" >&6; } | |
4920 | else | |
4921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4922 | $as_echo "no" >&6; } | |
4923 | fi | |
4924 | ||
4925 | ||
4926 | fi | |
4927 | if test -z "$ac_cv_prog_DTC"; then | |
4928 | ac_ct_DTC=$DTC | |
4929 | # Extract the first word of "dtc", so it can be a program name with args. | |
4930 | set dummy dtc; ac_word=$2 | |
4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4932 | $as_echo_n "checking for $ac_word... " >&6; } | |
4933 | if ${ac_cv_prog_ac_ct_DTC+:} false; then : | |
4934 | $as_echo_n "(cached) " >&6 | |
4935 | else | |
4936 | if test -n "$ac_ct_DTC"; then | |
4937 | ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test. | |
4938 | else | |
4939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4940 | for as_dir in $PATH | |
4941 | do | |
4942 | IFS=$as_save_IFS | |
4943 | test -z "$as_dir" && as_dir=. | |
4944 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4945 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4946 | ac_cv_prog_ac_ct_DTC="dtc" | |
4947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4948 | break 2 | |
4949 | fi | |
4950 | done | |
4951 | done | |
4952 | IFS=$as_save_IFS | |
4953 | ||
4954 | fi | |
4955 | fi | |
4956 | ac_ct_DTC=$ac_cv_prog_ac_ct_DTC | |
4957 | if test -n "$ac_ct_DTC"; then | |
4958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5 | |
4959 | $as_echo "$ac_ct_DTC" >&6; } | |
4960 | else | |
4961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4962 | $as_echo "no" >&6; } | |
4963 | fi | |
4964 | ||
4965 | if test "x$ac_ct_DTC" = x; then | |
4966 | DTC="" | |
4967 | else | |
4968 | case $cross_compiling:$ac_tool_warned in | |
4969 | yes:) | |
4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4971 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4972 | ac_tool_warned=yes ;; | |
4973 | esac | |
4974 | DTC=$ac_ct_DTC | |
4975 | fi | |
4976 | else | |
4977 | DTC="$ac_cv_prog_DTC" | |
4978 | fi | |
4979 | ||
4980 | ||
c2783492 | 4981 | if test "x$cross_compiling" = "xno"; then |
aa0fca16 | 4982 | : "${AR_FOR_BUILD:=\$(AR)}" |
c2783492 | 4983 | : "${CC_FOR_BUILD:=\$(CC)}" |
aa0fca16 | 4984 | : "${RANLIB_FOR_BUILD:=\$(RANLIB)}" |
c2783492 | 4985 | : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}" |
fde7c6bf | 4986 | : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}" |
c2783492 | 4987 | : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}" |
c906108c | 4988 | else |
aa0fca16 | 4989 | : "${AR_FOR_BUILD:=ar}" |
c2783492 | 4990 | : "${CC_FOR_BUILD:=gcc}" |
aa0fca16 | 4991 | : "${RANLIB_FOR_BUILD:=ranlib}" |
c2783492 | 4992 | : "${CFLAGS_FOR_BUILD:=-g -O}" |
fde7c6bf | 4993 | : "${CPPFLAGS_FOR_BUILD:=}" |
c2783492 | 4994 | : "${LDLFAGS_FOR_BUILD:=}" |
c906108c SS |
4995 | fi |
4996 | ||
4997 | ||
c906108c | 4998 | |
c2783492 MF |
4999 | |
5000 | ||
aa0fca16 MF |
5001 | |
5002 | ||
fde7c6bf | 5003 | |
b7026657 | 5004 | if test -n "$ac_tool_prefix"; then |
c2783492 MF |
5005 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5006 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5008 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 5009 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 5010 | $as_echo_n "(cached) " >&6 |
c906108c | 5011 | else |
c2783492 MF |
5012 | if test -n "$AR"; then |
5013 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
c906108c | 5014 | else |
b7026657 AC |
5015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5016 | for as_dir in $PATH | |
5017 | do | |
5018 | IFS=$as_save_IFS | |
5019 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5020 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5021 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 5022 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 5023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
5024 | break 2 |
5025 | fi | |
5026 | done | |
81ecdfbb RW |
5027 | done |
5028 | IFS=$as_save_IFS | |
b7026657 AC |
5029 | |
5030 | fi | |
5031 | fi | |
c2783492 MF |
5032 | AR=$ac_cv_prog_AR |
5033 | if test -n "$AR"; then | |
5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5035 | $as_echo "$AR" >&6; } | |
b7026657 | 5036 | else |
81ecdfbb RW |
5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5038 | $as_echo "no" >&6; } | |
b7026657 AC |
5039 | fi |
5040 | ||
81ecdfbb | 5041 | |
b7026657 | 5042 | fi |
c2783492 MF |
5043 | if test -z "$ac_cv_prog_AR"; then |
5044 | ac_ct_AR=$AR | |
5045 | # Extract the first word of "ar", so it can be a program name with args. | |
5046 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
5047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5048 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 5049 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 5050 | $as_echo_n "(cached) " >&6 |
b7026657 | 5051 | else |
c2783492 MF |
5052 | if test -n "$ac_ct_AR"; then |
5053 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
b7026657 AC |
5054 | else |
5055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5056 | for as_dir in $PATH | |
5057 | do | |
5058 | IFS=$as_save_IFS | |
5059 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5060 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5061 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 5062 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 5063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
5064 | break 2 |
5065 | fi | |
5066 | done | |
81ecdfbb RW |
5067 | done |
5068 | IFS=$as_save_IFS | |
b7026657 AC |
5069 | |
5070 | fi | |
5071 | fi | |
c2783492 MF |
5072 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5073 | if test -n "$ac_ct_AR"; then | |
5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5075 | $as_echo "$ac_ct_AR" >&6; } | |
b7026657 | 5076 | else |
81ecdfbb RW |
5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5078 | $as_echo "no" >&6; } | |
c906108c | 5079 | fi |
b7026657 | 5080 | |
c2783492 MF |
5081 | if test "x$ac_ct_AR" = x; then |
5082 | AR="" | |
81ecdfbb RW |
5083 | else |
5084 | case $cross_compiling:$ac_tool_warned in | |
5085 | yes:) | |
5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5087 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5088 | ac_tool_warned=yes ;; | |
5089 | esac | |
c2783492 | 5090 | AR=$ac_ct_AR |
c906108c | 5091 | fi |
c906108c | 5092 | else |
c2783492 | 5093 | AR="$ac_cv_prog_AR" |
c906108c SS |
5094 | fi |
5095 | ||
c2783492 MF |
5096 | if test -n "$ac_tool_prefix"; then |
5097 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5098 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5100 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 5101 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 5102 | $as_echo_n "(cached) " >&6 |
c906108c | 5103 | else |
c2783492 MF |
5104 | if test -n "$RANLIB"; then |
5105 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
c906108c | 5106 | else |
b7026657 AC |
5107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5108 | for as_dir in $PATH | |
5109 | do | |
5110 | IFS=$as_save_IFS | |
5111 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5112 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5113 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 5114 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 5115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
5116 | break 2 |
5117 | fi | |
5118 | done | |
81ecdfbb RW |
5119 | done |
5120 | IFS=$as_save_IFS | |
b7026657 | 5121 | |
c906108c SS |
5122 | fi |
5123 | fi | |
c2783492 MF |
5124 | RANLIB=$ac_cv_prog_RANLIB |
5125 | if test -n "$RANLIB"; then | |
5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5127 | $as_echo "$RANLIB" >&6; } | |
c906108c | 5128 | else |
81ecdfbb RW |
5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5130 | $as_echo "no" >&6; } | |
c906108c SS |
5131 | fi |
5132 | ||
81ecdfbb | 5133 | |
b7026657 | 5134 | fi |
c2783492 MF |
5135 | if test -z "$ac_cv_prog_RANLIB"; then |
5136 | ac_ct_RANLIB=$RANLIB | |
5137 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5138 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
5139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5140 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 5141 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 5142 | $as_echo_n "(cached) " >&6 |
c906108c | 5143 | else |
c2783492 MF |
5144 | if test -n "$ac_ct_RANLIB"; then |
5145 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
b7026657 AC |
5146 | else |
5147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5148 | for as_dir in $PATH | |
5149 | do | |
5150 | IFS=$as_save_IFS | |
5151 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5152 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5153 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 5154 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 5155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
5156 | break 2 |
5157 | fi | |
5158 | done | |
81ecdfbb RW |
5159 | done |
5160 | IFS=$as_save_IFS | |
b7026657 | 5161 | |
c906108c | 5162 | fi |
b7026657 | 5163 | fi |
c2783492 MF |
5164 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5165 | if test -n "$ac_ct_RANLIB"; then | |
5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5167 | $as_echo "$ac_ct_RANLIB" >&6; } | |
c906108c | 5168 | else |
81ecdfbb RW |
5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5170 | $as_echo "no" >&6; } | |
c906108c | 5171 | fi |
b7026657 | 5172 | |
c2783492 MF |
5173 | if test "x$ac_ct_RANLIB" = x; then |
5174 | RANLIB=":" | |
81ecdfbb RW |
5175 | else |
5176 | case $cross_compiling:$ac_tool_warned in | |
5177 | yes:) | |
5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5179 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5180 | ac_tool_warned=yes ;; | |
5181 | esac | |
c2783492 | 5182 | RANLIB=$ac_ct_RANLIB |
81ecdfbb | 5183 | fi |
c2783492 MF |
5184 | else |
5185 | RANLIB="$ac_cv_prog_RANLIB" | |
5186 | fi | |
5187 | ||
5188 | ||
d57b6533 MF |
5189 | |
5190 | ||
5191 | ||
5192 | ||
5193 | ||
5194 | ||
5195 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
5196 | if test -n "$ac_tool_prefix"; then | |
5197 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
5198 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
5199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5200 | $as_echo_n "checking for $ac_word... " >&6; } | |
5201 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
5202 | $as_echo_n "(cached) " >&6 | |
5203 | else | |
5204 | case $PKG_CONFIG in | |
5205 | [\\/]* | ?:[\\/]*) | |
5206 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
5207 | ;; | |
5208 | *) | |
5209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5210 | for as_dir in $PATH | |
5211 | do | |
5212 | IFS=$as_save_IFS | |
5213 | test -z "$as_dir" && as_dir=. | |
5214 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5215 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5216 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
5217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5218 | break 2 | |
5219 | fi | |
5220 | done | |
5221 | done | |
5222 | IFS=$as_save_IFS | |
5223 | ||
5224 | ;; | |
5225 | esac | |
5226 | fi | |
5227 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
5228 | if test -n "$PKG_CONFIG"; then | |
5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
5230 | $as_echo "$PKG_CONFIG" >&6; } | |
5231 | else | |
5232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5233 | $as_echo "no" >&6; } | |
5234 | fi | |
5235 | ||
5236 | ||
5237 | fi | |
5238 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
5239 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
5240 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
5241 | set dummy pkg-config; ac_word=$2 | |
5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5243 | $as_echo_n "checking for $ac_word... " >&6; } | |
5244 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
5245 | $as_echo_n "(cached) " >&6 | |
5246 | else | |
5247 | case $ac_pt_PKG_CONFIG in | |
5248 | [\\/]* | ?:[\\/]*) | |
5249 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
5250 | ;; | |
5251 | *) | |
5252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5253 | for as_dir in $PATH | |
5254 | do | |
5255 | IFS=$as_save_IFS | |
5256 | test -z "$as_dir" && as_dir=. | |
5257 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5258 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5259 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
5260 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5261 | break 2 | |
5262 | fi | |
5263 | done | |
5264 | done | |
5265 | IFS=$as_save_IFS | |
5266 | ||
5267 | ;; | |
5268 | esac | |
5269 | fi | |
5270 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
5271 | if test -n "$ac_pt_PKG_CONFIG"; then | |
5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
5273 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
5274 | else | |
5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5276 | $as_echo "no" >&6; } | |
5277 | fi | |
5278 | ||
5279 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
5280 | PKG_CONFIG="" | |
5281 | else | |
5282 | case $cross_compiling:$ac_tool_warned in | |
5283 | yes:) | |
5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5285 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5286 | ac_tool_warned=yes ;; | |
5287 | esac | |
5288 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
5289 | fi | |
5290 | else | |
5291 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
5292 | fi | |
5293 | ||
5294 | fi | |
5295 | if test -n "$PKG_CONFIG"; then | |
5296 | _pkg_min_version=0.9.0 | |
5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
5298 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
5299 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5301 | $as_echo "yes" >&6; } | |
5302 | else | |
5303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5304 | $as_echo "no" >&6; } | |
5305 | PKG_CONFIG="" | |
5306 | fi | |
5307 | fi | |
5308 | ||
c2783492 MF |
5309 | # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using |
5310 | # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands | |
5311 | # is C99. So handle it ourselves. | |
5312 | : | |
5313 | C_DIALECT= | |
5314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5 | |
5315 | $as_echo_n "checking whether C11 is supported by default... " >&6; } | |
5316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5317 | /* end confdefs.h. */ | |
5318 | ||
5319 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
5320 | # error "C11 support not found" | |
5321 | #endif | |
5322 | ||
5323 | _ACEOF | |
5324 | if ac_fn_c_try_compile "$LINENO"; then : | |
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5326 | $as_echo "yes" >&6; } | |
5327 | else | |
5328 | ||
5329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5330 | $as_echo "no" >&6; } | |
5331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5 | |
5332 | $as_echo_n "checking for -std=c11 support... " >&6; } | |
5333 | ac_save_CC="$CC" | |
5334 | CC="$CC -std=c11" | |
5335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5336 | /* end confdefs.h. */ | |
5337 | ||
5338 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
5339 | # error "C11 support not found" | |
5340 | #endif | |
5341 | ||
5342 | _ACEOF | |
5343 | if ac_fn_c_try_compile "$LINENO"; then : | |
5344 | ||
5345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5346 | $as_echo "yes" >&6; } | |
5347 | CC="$ac_save_CC" | |
5348 | C_DIALECT="-std=c11" | |
5349 | ||
5350 | else | |
5351 | as_fn_error $? "C11 is required" "$LINENO" 5 | |
5352 | fi | |
5353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5354 | fi | |
5355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5356 | ||
5357 | ||
5358 | ||
5359 | ||
c906108c | 5360 | |
b15c5d7a MF |
5361 | for ac_header in $ac_header_list |
5362 | do : | |
5363 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5364 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5365 | " | |
5366 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5367 | cat >>confdefs.h <<_ACEOF | |
5368 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5369 | _ACEOF | |
5370 | ||
b7026657 AC |
5371 | fi |
5372 | ||
b15c5d7a | 5373 | done |
b7026657 | 5374 | |
b7026657 | 5375 | |
c2783492 | 5376 | |
c2783492 | 5377 | |
c2783492 | 5378 | |
c2783492 | 5379 | |
c2783492 | 5380 | |
b15c5d7a MF |
5381 | |
5382 | ||
5383 | ||
5384 | ||
5385 | ||
5386 | ||
5387 | ||
5388 | ||
5389 | ||
5390 | ||
5391 | ||
5392 | ||
5393 | ||
5394 | ||
5395 | ||
5396 | ||
5397 | ||
5398 | ||
5399 | ||
5400 | ||
5401 | ||
5402 | ||
a48ff3ef MF |
5403 | |
5404 | ||
5405 | ||
5406 | ||
5407 | ||
5408 | ||
5409 | ||
5410 | ||
5411 | ||
5412 | ||
5413 | ||
5414 | ||
b15c5d7a MF |
5415 | |
5416 | ||
5417 | ||
5418 | ||
5419 | ||
5420 | ||
5421 | ||
5422 | ||
b15c5d7a MF |
5423 | |
5424 | ||
5425 | ||
5426 | for ac_func in $ac_func_list | |
5427 | do : | |
5428 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5429 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5430 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5431 | cat >>confdefs.h <<_ACEOF | |
5432 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5433 | _ACEOF | |
5434 | ||
5435 | fi | |
5436 | done | |
5437 | ||
5438 | ||
5439 | ||
5440 | ||
5441 | ||
5442 | ||
5443 | ||
5444 | ||
5445 | ||
5446 | ||
5447 | ||
5448 | ||
5449 | ||
5450 | ||
5451 | ||
5452 | ||
5453 | ||
5454 | ||
5455 | ||
5456 | ||
5457 | ||
5458 | ||
5459 | ||
5460 | ||
5461 | ||
5462 | ||
5463 | ||
5464 | ||
5465 | ||
5466 | ||
5467 | ||
5468 | ||
5469 | ||
5470 | ||
5471 | ||
5472 | ||
5473 | ||
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 | ||
5508 | ||
5509 | ||
5510 | ||
5511 | ||
5512 | ||
5513 | ||
5514 | ||
5515 | ||
5516 | ||
5517 | ||
5518 | ||
5519 | ||
5520 | ||
5521 | ||
5522 | ||
5523 | ||
5524 | ||
5525 | ||
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 | ||
95955095 MF |
5555 | |
5556 | ||
5557 | ||
5558 | ||
a48ff3ef MF |
5559 | |
5560 | ||
5561 | ||
5562 | ||
5563 | ||
5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
5565 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
5566 | if ${ac_cv_struct_tm+:} false; then : | |
5567 | $as_echo_n "(cached) " >&6 | |
5568 | else | |
5569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5570 | /* end confdefs.h. */ | |
5571 | #include <sys/types.h> | |
5572 | #include <time.h> | |
5573 | ||
5574 | int | |
5575 | main () | |
5576 | { | |
5577 | struct tm tm; | |
5578 | int *p = &tm.tm_sec; | |
5579 | return !p; | |
5580 | ; | |
5581 | return 0; | |
5582 | } | |
5583 | _ACEOF | |
5584 | if ac_fn_c_try_compile "$LINENO"; then : | |
5585 | ac_cv_struct_tm=time.h | |
5586 | else | |
5587 | ac_cv_struct_tm=sys/time.h | |
5588 | fi | |
5589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5590 | fi | |
5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
5592 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5593 | if test $ac_cv_struct_tm = sys/time.h; then | |
5594 | ||
5595 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
5596 | ||
5597 | fi | |
5598 | ||
5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
5600 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
5601 | if ${ac_cv_type_uid_t+:} false; then : | |
5602 | $as_echo_n "(cached) " >&6 | |
5603 | else | |
5604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5605 | /* end confdefs.h. */ | |
5606 | #include <sys/types.h> | |
5607 | ||
5608 | _ACEOF | |
5609 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5610 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
5611 | ac_cv_type_uid_t=yes | |
5612 | else | |
5613 | ac_cv_type_uid_t=no | |
5614 | fi | |
5615 | rm -f conftest* | |
5616 | ||
5617 | fi | |
5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | |
5619 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
5620 | if test $ac_cv_type_uid_t = no; then | |
5621 | ||
5622 | $as_echo "#define uid_t int" >>confdefs.h | |
5623 | ||
5624 | ||
5625 | $as_echo "#define gid_t int" >>confdefs.h | |
5626 | ||
5627 | fi | |
5628 | ||
b5689863 MF |
5629 | case `pwd` in |
5630 | *\ * | *\ *) | |
5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5632 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5633 | esac | |
a48ff3ef | 5634 | |
a48ff3ef | 5635 | |
a48ff3ef | 5636 | |
b5689863 MF |
5637 | macro_version='2.2.7a' |
5638 | macro_revision='1.3134' | |
a48ff3ef | 5639 | |
a48ff3ef | 5640 | |
a48ff3ef | 5641 | |
a48ff3ef | 5642 | |
a48ff3ef | 5643 | |
a48ff3ef | 5644 | |
a48ff3ef | 5645 | |
a48ff3ef | 5646 | |
a48ff3ef | 5647 | |
a48ff3ef MF |
5648 | |
5649 | ||
5650 | ||
5651 | ||
b5689863 | 5652 | ltmain="$ac_aux_dir/ltmain.sh" |
a48ff3ef | 5653 | |
b5689863 MF |
5654 | # Backslashify metacharacters that are still active within |
5655 | # double-quoted strings. | |
5656 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
a48ff3ef | 5657 | |
b5689863 MF |
5658 | # Same as above, but do not quote variable references. |
5659 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
a48ff3ef | 5660 | |
b5689863 MF |
5661 | # Sed substitution to delay expansion of an escaped shell variable in a |
5662 | # double_quote_subst'ed string. | |
5663 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5664 | ||
5665 | # Sed substitution to delay expansion of an escaped single quote. | |
5666 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5667 | ||
5668 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5669 | no_glob_subst='s/\*/\\\*/g' | |
5670 | ||
5671 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5672 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5673 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
a48ff3ef | 5674 | |
b5689863 MF |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
5676 | $as_echo_n "checking how to print strings... " >&6; } | |
5677 | # Test print first, because it will be a builtin if present. | |
5678 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5679 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5680 | ECHO='print -r --' | |
5681 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5682 | ECHO='printf %s\n' | |
5683 | else | |
5684 | # Use this function as a fallback that always works. | |
5685 | func_fallback_echo () | |
5686 | { | |
5687 | eval 'cat <<_LTECHO_EOF | |
5688 | $1 | |
5689 | _LTECHO_EOF' | |
5690 | } | |
5691 | ECHO='func_fallback_echo' | |
a48ff3ef MF |
5692 | fi |
5693 | ||
b5689863 MF |
5694 | # func_echo_all arg... |
5695 | # Invoke $ECHO with all args, space-separated. | |
5696 | func_echo_all () | |
5697 | { | |
5698 | $ECHO "" | |
5699 | } | |
5700 | ||
5701 | case "$ECHO" in | |
5702 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5703 | $as_echo "printf" >&6; } ;; | |
5704 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5705 | $as_echo "print -r" >&6; } ;; | |
5706 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5707 | $as_echo "cat" >&6; } ;; | |
5708 | esac | |
5709 | ||
5710 | ||
a48ff3ef | 5711 | |
a48ff3ef | 5712 | |
a48ff3ef MF |
5713 | |
5714 | ||
a48ff3ef | 5715 | |
a48ff3ef | 5716 | |
a48ff3ef MF |
5717 | |
5718 | ||
a48ff3ef | 5719 | |
a48ff3ef MF |
5720 | |
5721 | ||
a48ff3ef | 5722 | |
b5689863 MF |
5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5724 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5725 | if ${ac_cv_path_SED+:} false; then : | |
5726 | $as_echo_n "(cached) " >&6 | |
5727 | else | |
5728 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5729 | for ac_i in 1 2 3 4 5 6 7; do | |
5730 | ac_script="$ac_script$as_nl$ac_script" | |
5731 | done | |
5732 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5733 | { ac_script=; unset ac_script;} | |
5734 | if test -z "$SED"; then | |
5735 | ac_path_SED_found=false | |
5736 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5738 | for as_dir in $PATH | |
5739 | do | |
5740 | IFS=$as_save_IFS | |
5741 | test -z "$as_dir" && as_dir=. | |
5742 | for ac_prog in sed gsed; do | |
5743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5744 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5745 | as_fn_executable_p "$ac_path_SED" || continue | |
5746 | # Check for GNU ac_path_SED and select it if it is found. | |
5747 | # Check for GNU $ac_path_SED | |
5748 | case `"$ac_path_SED" --version 2>&1` in | |
5749 | *GNU*) | |
5750 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5751 | *) | |
5752 | ac_count=0 | |
5753 | $as_echo_n 0123456789 >"conftest.in" | |
5754 | while : | |
5755 | do | |
5756 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5757 | mv "conftest.tmp" "conftest.in" | |
5758 | cp "conftest.in" "conftest.nl" | |
5759 | $as_echo '' >> "conftest.nl" | |
5760 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5761 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5762 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5763 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5764 | # Best one so far, save it but keep looking for a better one | |
5765 | ac_cv_path_SED="$ac_path_SED" | |
5766 | ac_path_SED_max=$ac_count | |
5767 | fi | |
5768 | # 10*(2^10) chars as input seems more than enough | |
5769 | test $ac_count -gt 10 && break | |
5770 | done | |
5771 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5772 | esac | |
5773 | ||
5774 | $ac_path_SED_found && break 3 | |
5775 | done | |
5776 | done | |
5777 | done | |
5778 | IFS=$as_save_IFS | |
5779 | if test -z "$ac_cv_path_SED"; then | |
5780 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5781 | fi | |
5782 | else | |
5783 | ac_cv_path_SED=$SED | |
a48ff3ef MF |
5784 | fi |
5785 | ||
b5689863 MF |
5786 | fi |
5787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5788 | $as_echo "$ac_cv_path_SED" >&6; } | |
5789 | SED="$ac_cv_path_SED" | |
5790 | rm -f conftest.sed | |
a48ff3ef | 5791 | |
b5689863 MF |
5792 | test -z "$SED" && SED=sed |
5793 | Xsed="$SED -e 1s/^X//" | |
a48ff3ef | 5794 | |
a48ff3ef | 5795 | |
a48ff3ef MF |
5796 | |
5797 | ||
a48ff3ef | 5798 | |
a48ff3ef | 5799 | |
a48ff3ef | 5800 | |
a48ff3ef | 5801 | |
a48ff3ef | 5802 | |
b5689863 MF |
5803 | |
5804 | ||
5805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5806 | $as_echo_n "checking for fgrep... " >&6; } | |
5807 | if ${ac_cv_path_FGREP+:} false; then : | |
a48ff3ef MF |
5808 | $as_echo_n "(cached) " >&6 |
5809 | else | |
b5689863 MF |
5810 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5811 | then ac_cv_path_FGREP="$GREP -F" | |
5812 | else | |
5813 | if test -z "$FGREP"; then | |
5814 | ac_path_FGREP_found=false | |
5815 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5817 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5818 | do | |
5819 | IFS=$as_save_IFS | |
5820 | test -z "$as_dir" && as_dir=. | |
5821 | for ac_prog in fgrep; do | |
5822 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5823 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5824 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5825 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5826 | # Check for GNU $ac_path_FGREP | |
5827 | case `"$ac_path_FGREP" --version 2>&1` in | |
5828 | *GNU*) | |
5829 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5830 | *) | |
5831 | ac_count=0 | |
5832 | $as_echo_n 0123456789 >"conftest.in" | |
5833 | while : | |
5834 | do | |
5835 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5836 | mv "conftest.tmp" "conftest.in" | |
5837 | cp "conftest.in" "conftest.nl" | |
5838 | $as_echo 'FGREP' >> "conftest.nl" | |
5839 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5840 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5841 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5842 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5843 | # Best one so far, save it but keep looking for a better one | |
5844 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5845 | ac_path_FGREP_max=$ac_count | |
5846 | fi | |
5847 | # 10*(2^10) chars as input seems more than enough | |
5848 | test $ac_count -gt 10 && break | |
5849 | done | |
5850 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5851 | esac | |
5852 | ||
5853 | $ac_path_FGREP_found && break 3 | |
5854 | done | |
5855 | done | |
5856 | done | |
5857 | IFS=$as_save_IFS | |
5858 | if test -z "$ac_cv_path_FGREP"; then | |
5859 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5860 | fi | |
5861 | else | |
5862 | ac_cv_path_FGREP=$FGREP | |
5863 | fi | |
5864 | ||
5865 | fi | |
5866 | fi | |
5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5868 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5869 | FGREP="$ac_cv_path_FGREP" | |
5870 | ||
5871 | ||
5872 | test -z "$GREP" && GREP=grep | |
5873 | ||
5874 | ||
5875 | ||
5876 | ||
5877 | ||
5878 | ||
5879 | ||
5880 | ||
5881 | ||
5882 | ||
5883 | ||
5884 | ||
5885 | ||
5886 | ||
5887 | ||
5888 | ||
5889 | ||
5890 | ||
5891 | ||
5892 | # Check whether --with-gnu-ld was given. | |
5893 | if test "${with_gnu_ld+set}" = set; then : | |
5894 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5895 | else | |
5896 | with_gnu_ld=no | |
5897 | fi | |
5898 | ||
5899 | ac_prog=ld | |
5900 | if test "$GCC" = yes; then | |
5901 | # Check if gcc -print-prog-name=ld gives a path. | |
5902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5903 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5904 | case $host in | |
5905 | *-*-mingw*) | |
5906 | # gcc leaves a trailing carriage return which upsets mingw | |
5907 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5908 | *) | |
5909 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5910 | esac | |
5911 | case $ac_prog in | |
5912 | # Accept absolute paths. | |
5913 | [\\/]* | ?:[\\/]*) | |
5914 | re_direlt='/[^/][^/]*/\.\./' | |
5915 | # Canonicalize the pathname of ld | |
5916 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5917 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5918 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5919 | done | |
5920 | test -z "$LD" && LD="$ac_prog" | |
5921 | ;; | |
5922 | "") | |
5923 | # If it fails, then pretend we aren't using GCC. | |
5924 | ac_prog=ld | |
5925 | ;; | |
5926 | *) | |
5927 | # If it is relative, then search for the first ld in PATH. | |
5928 | with_gnu_ld=unknown | |
5929 | ;; | |
5930 | esac | |
5931 | elif test "$with_gnu_ld" = yes; then | |
5932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5933 | $as_echo_n "checking for GNU ld... " >&6; } | |
5934 | else | |
5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5936 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5937 | fi | |
5938 | if ${lt_cv_path_LD+:} false; then : | |
5939 | $as_echo_n "(cached) " >&6 | |
5940 | else | |
5941 | if test -z "$LD"; then | |
5942 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5943 | for ac_dir in $PATH; do | |
5944 | IFS="$lt_save_ifs" | |
5945 | test -z "$ac_dir" && ac_dir=. | |
5946 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5947 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5948 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5949 | # but apparently some variants of GNU ld only accept -v. | |
5950 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5951 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5952 | *GNU* | *'with BFD'*) | |
5953 | test "$with_gnu_ld" != no && break | |
5954 | ;; | |
5955 | *) | |
5956 | test "$with_gnu_ld" != yes && break | |
5957 | ;; | |
5958 | esac | |
5959 | fi | |
5960 | done | |
5961 | IFS="$lt_save_ifs" | |
5962 | else | |
5963 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5964 | fi | |
5965 | fi | |
5966 | ||
5967 | LD="$lt_cv_path_LD" | |
5968 | if test -n "$LD"; then | |
5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5970 | $as_echo "$LD" >&6; } | |
5971 | else | |
5972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5973 | $as_echo "no" >&6; } | |
5974 | fi | |
5975 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5977 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5978 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5979 | $as_echo_n "(cached) " >&6 | |
5980 | else | |
5981 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5982 | case `$LD -v 2>&1 </dev/null` in | |
5983 | *GNU* | *'with BFD'*) | |
5984 | lt_cv_prog_gnu_ld=yes | |
5985 | ;; | |
5986 | *) | |
5987 | lt_cv_prog_gnu_ld=no | |
5988 | ;; | |
5989 | esac | |
5990 | fi | |
5991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5992 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5993 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5994 | ||
5995 | ||
5996 | ||
5997 | ||
5998 | ||
5999 | ||
6000 | ||
6001 | ||
6002 | ||
6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
6004 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
6005 | if ${lt_cv_path_NM+:} false; then : | |
6006 | $as_echo_n "(cached) " >&6 | |
6007 | else | |
6008 | if test -n "$NM"; then | |
b9004024 NA |
6009 | # Let the user override the nm to test. |
6010 | lt_nm_to_check="$NM" | |
6011 | else | |
6012 | lt_nm_to_check="${ac_tool_prefix}nm" | |
6013 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6014 | lt_nm_to_check="$lt_nm_to_check nm" | |
6015 | fi | |
6016 | fi | |
caf606c9 | 6017 | for lt_tmp_nm in "$lt_nm_to_check"; do |
b9004024 NA |
6018 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6019 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6020 | IFS="$lt_save_ifs" | |
6021 | test -z "$ac_dir" && ac_dir=. | |
caf606c9 NA |
6022 | # Strip out any user-provided options from the nm to test twice, |
6023 | # the first time to test to see if nm (rather than its options) has | |
6024 | # an explicit path, the second time to yield a file which can be | |
6025 | # nm'ed itself. | |
6026 | tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" | |
6027 | case "$tmp_nm_path" in | |
b9004024 NA |
6028 | */*|*\\*) tmp_nm="$lt_tmp_nm";; |
6029 | *) tmp_nm="$ac_dir/$lt_tmp_nm";; | |
6030 | esac | |
caf606c9 NA |
6031 | tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" |
6032 | if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then | |
b9004024 NA |
6033 | # Check to see if the nm accepts a BSD-compat flag. |
6034 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6035 | # nm: unknown option "B" ignored | |
caf606c9 | 6036 | case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
b9004024 NA |
6037 | *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" |
6038 | break | |
6039 | ;; | |
6040 | *) | |
caf606c9 | 6041 | case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
b9004024 NA |
6042 | *$tmp_nm*) |
6043 | lt_cv_path_NM="$tmp_nm -p" | |
6044 | break | |
6045 | ;; | |
6046 | *) | |
6047 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6048 | continue # so that we can try to find one that supports BSD flags | |
6049 | ;; | |
6050 | esac | |
6051 | ;; | |
6052 | esac | |
6053 | fi | |
6054 | done | |
6055 | IFS="$lt_save_ifs" | |
6056 | done | |
6057 | : ${lt_cv_path_NM=no} | |
b5689863 MF |
6058 | fi |
6059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
6060 | $as_echo "$lt_cv_path_NM" >&6; } | |
6061 | if test "$lt_cv_path_NM" != "no"; then | |
6062 | NM="$lt_cv_path_NM" | |
6063 | else | |
6064 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
6065 | if test -n "$DUMPBIN"; then : | |
6066 | # Let the user override the test. | |
6067 | else | |
6068 | if test -n "$ac_tool_prefix"; then | |
6069 | for ac_prog in dumpbin "link -dump" | |
6070 | do | |
6071 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6072 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6074 | $as_echo_n "checking for $ac_word... " >&6; } | |
6075 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
6076 | $as_echo_n "(cached) " >&6 | |
6077 | else | |
6078 | if test -n "$DUMPBIN"; then | |
6079 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
6080 | else | |
6081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6082 | for as_dir in $PATH | |
6083 | do | |
6084 | IFS=$as_save_IFS | |
6085 | test -z "$as_dir" && as_dir=. | |
6086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6087 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6088 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
6089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6090 | break 2 | |
6091 | fi | |
6092 | done | |
6093 | done | |
6094 | IFS=$as_save_IFS | |
6095 | ||
6096 | fi | |
6097 | fi | |
6098 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
6099 | if test -n "$DUMPBIN"; then | |
6100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
6101 | $as_echo "$DUMPBIN" >&6; } | |
6102 | else | |
6103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6104 | $as_echo "no" >&6; } | |
6105 | fi | |
6106 | ||
6107 | ||
6108 | test -n "$DUMPBIN" && break | |
6109 | done | |
6110 | fi | |
6111 | if test -z "$DUMPBIN"; then | |
6112 | ac_ct_DUMPBIN=$DUMPBIN | |
6113 | for ac_prog in dumpbin "link -dump" | |
6114 | do | |
6115 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6116 | set dummy $ac_prog; ac_word=$2 | |
6117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6118 | $as_echo_n "checking for $ac_word... " >&6; } | |
6119 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
6120 | $as_echo_n "(cached) " >&6 | |
6121 | else | |
6122 | if test -n "$ac_ct_DUMPBIN"; then | |
6123 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
6124 | else | |
6125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6126 | for as_dir in $PATH | |
6127 | do | |
6128 | IFS=$as_save_IFS | |
6129 | test -z "$as_dir" && as_dir=. | |
6130 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6131 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6132 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
6133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6134 | break 2 | |
6135 | fi | |
6136 | done | |
6137 | done | |
6138 | IFS=$as_save_IFS | |
6139 | ||
6140 | fi | |
6141 | fi | |
6142 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
6143 | if test -n "$ac_ct_DUMPBIN"; then | |
6144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
6145 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
6146 | else | |
6147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6148 | $as_echo "no" >&6; } | |
6149 | fi | |
6150 | ||
6151 | ||
6152 | test -n "$ac_ct_DUMPBIN" && break | |
6153 | done | |
6154 | ||
6155 | if test "x$ac_ct_DUMPBIN" = x; then | |
6156 | DUMPBIN=":" | |
6157 | else | |
6158 | case $cross_compiling:$ac_tool_warned in | |
6159 | yes:) | |
6160 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6161 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6162 | ac_tool_warned=yes ;; | |
6163 | esac | |
6164 | DUMPBIN=$ac_ct_DUMPBIN | |
6165 | fi | |
6166 | fi | |
6167 | ||
6168 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
6169 | *COFF*) | |
6170 | DUMPBIN="$DUMPBIN -symbols" | |
6171 | ;; | |
6172 | *) | |
6173 | DUMPBIN=: | |
6174 | ;; | |
6175 | esac | |
6176 | fi | |
6177 | ||
6178 | if test "$DUMPBIN" != ":"; then | |
6179 | NM="$DUMPBIN" | |
6180 | fi | |
6181 | fi | |
6182 | test -z "$NM" && NM=nm | |
6183 | ||
6184 | ||
6185 | ||
6186 | ||
6187 | ||
6188 | ||
6189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
6190 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6191 | if ${lt_cv_nm_interface+:} false; then : | |
6192 | $as_echo_n "(cached) " >&6 | |
6193 | else | |
6194 | lt_cv_nm_interface="BSD nm" | |
6195 | echo "int some_variable = 0;" > conftest.$ac_ext | |
6196 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
6197 | (eval "$ac_compile" 2>conftest.err) | |
6198 | cat conftest.err >&5 | |
6199 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6200 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
6201 | cat conftest.err >&5 | |
6202 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
6203 | cat conftest.out >&5 | |
6204 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6205 | lt_cv_nm_interface="MS dumpbin" | |
6206 | fi | |
6207 | rm -f conftest* | |
6208 | fi | |
6209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
6210 | $as_echo "$lt_cv_nm_interface" >&6; } | |
6211 | ||
6212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
6213 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6214 | LN_S=$as_ln_s | |
6215 | if test "$LN_S" = "ln -s"; then | |
6216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6217 | $as_echo "yes" >&6; } | |
6218 | else | |
6219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
6220 | $as_echo "no, using $LN_S" >&6; } | |
6221 | fi | |
6222 | ||
6223 | # find the maximum length of command line arguments | |
6224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6225 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6226 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
6227 | $as_echo_n "(cached) " >&6 | |
6228 | else | |
6229 | i=0 | |
6230 | teststring="ABCD" | |
6231 | ||
6232 | case $build_os in | |
6233 | msdosdjgpp*) | |
6234 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6235 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6236 | # during glob expansion). Even if it were fixed, the result of this | |
6237 | # check would be larger than it should be. | |
6238 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6239 | ;; | |
6240 | ||
6241 | gnu*) | |
6242 | # Under GNU Hurd, this test is not required because there is | |
6243 | # no limit to the length of command line arguments. | |
6244 | # Libtool will interpret -1 as no limit whatsoever | |
6245 | lt_cv_sys_max_cmd_len=-1; | |
6246 | ;; | |
6247 | ||
6248 | cygwin* | mingw* | cegcc*) | |
6249 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6250 | # about 5 minutes as the teststring grows exponentially. | |
6251 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6252 | # you end up with a "frozen" computer, even though with patience | |
6253 | # the test eventually succeeds (with a max line length of 256k). | |
6254 | # Instead, let's just punt: use the minimum linelength reported by | |
6255 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6256 | lt_cv_sys_max_cmd_len=8192; | |
6257 | ;; | |
6258 | ||
6259 | mint*) | |
6260 | # On MiNT this can take a long time and run out of memory. | |
6261 | lt_cv_sys_max_cmd_len=8192; | |
6262 | ;; | |
6263 | ||
6264 | amigaos*) | |
6265 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6266 | # So we just punt and use a minimum line length of 8192. | |
6267 | lt_cv_sys_max_cmd_len=8192; | |
6268 | ;; | |
6269 | ||
6270 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
6271 | # This has been around since 386BSD, at least. Likely further. | |
6272 | if test -x /sbin/sysctl; then | |
6273 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6274 | elif test -x /usr/sbin/sysctl; then | |
6275 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6276 | else | |
6277 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6278 | fi | |
6279 | # And add a safety zone | |
6280 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6281 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6282 | ;; | |
6283 | ||
6284 | interix*) | |
6285 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6286 | lt_cv_sys_max_cmd_len=196608 | |
6287 | ;; | |
6288 | ||
6289 | osf*) | |
6290 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6291 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6292 | # nice to cause kernel panics so lets avoid the loop below. | |
6293 | # First set a reasonable default. | |
6294 | lt_cv_sys_max_cmd_len=16384 | |
6295 | # | |
6296 | if test -x /sbin/sysconfig; then | |
6297 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6298 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6299 | esac | |
6300 | fi | |
6301 | ;; | |
6302 | sco3.2v5*) | |
6303 | lt_cv_sys_max_cmd_len=102400 | |
6304 | ;; | |
6305 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6306 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6307 | if test -n "$kargmax"; then | |
6308 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6309 | else | |
6310 | lt_cv_sys_max_cmd_len=32768 | |
6311 | fi | |
6312 | ;; | |
6313 | *) | |
6314 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6315 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6316 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6317 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6318 | else | |
6319 | # Make teststring a little bigger before we do anything with it. | |
6320 | # a 1K string should be a reasonable start. | |
6321 | for i in 1 2 3 4 5 6 7 8 ; do | |
6322 | teststring=$teststring$teststring | |
6323 | done | |
6324 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6325 | # If test is not a shell built-in, we'll probably end up computing a | |
6326 | # maximum length that is only half of the actual maximum length, but | |
6327 | # we can't tell. | |
6328 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
6329 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
6330 | test $i != 17 # 1/2 MB should be enough | |
6331 | do | |
6332 | i=`expr $i + 1` | |
6333 | teststring=$teststring$teststring | |
6334 | done | |
6335 | # Only check the string length outside the loop. | |
6336 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6337 | teststring= | |
6338 | # Add a significant safety factor because C++ compilers can tack on | |
6339 | # massive amounts of additional arguments before passing them to the | |
6340 | # linker. It appears as though 1/2 is a usable value. | |
6341 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6342 | fi | |
6343 | ;; | |
6344 | esac | |
6345 | ||
6346 | fi | |
6347 | ||
6348 | if test -n $lt_cv_sys_max_cmd_len ; then | |
6349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6350 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6351 | else | |
6352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6353 | $as_echo "none" >&6; } | |
6354 | fi | |
6355 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
6356 | ||
6357 | ||
6358 | ||
6359 | ||
6360 | ||
6361 | ||
6362 | : ${CP="cp -f"} | |
6363 | : ${MV="mv -f"} | |
6364 | : ${RM="rm -f"} | |
6365 | ||
6366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
6367 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6368 | # Try some XSI features | |
6369 | xsi_shell=no | |
6370 | ( _lt_dummy="a/b/c" | |
6371 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6372 | = c,a/b,, \ | |
6373 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6374 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6375 | && xsi_shell=yes | |
6376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6377 | $as_echo "$xsi_shell" >&6; } | |
6378 | ||
6379 | ||
6380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6381 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6382 | lt_shell_append=no | |
6383 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6384 | >/dev/null 2>&1 \ | |
6385 | && lt_shell_append=yes | |
6386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6387 | $as_echo "$lt_shell_append" >&6; } | |
6388 | ||
6389 | ||
6390 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6391 | lt_unset=unset | |
6392 | else | |
6393 | lt_unset=false | |
6394 | fi | |
6395 | ||
6396 | ||
6397 | ||
6398 | ||
6399 | ||
6400 | # test EBCDIC or ASCII | |
6401 | case `echo X|tr X '\101'` in | |
6402 | A) # ASCII based system | |
6403 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6404 | lt_SP2NL='tr \040 \012' | |
6405 | lt_NL2SP='tr \015\012 \040\040' | |
6406 | ;; | |
6407 | *) # EBCDIC based system | |
6408 | lt_SP2NL='tr \100 \n' | |
6409 | lt_NL2SP='tr \r\n \100\100' | |
6410 | ;; | |
6411 | esac | |
6412 | ||
6413 | ||
6414 | ||
6415 | ||
6416 | ||
6417 | ||
6418 | ||
6419 | ||
6420 | ||
6421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6422 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6423 | if ${lt_cv_ld_reload_flag+:} false; then : | |
6424 | $as_echo_n "(cached) " >&6 | |
6425 | else | |
6426 | lt_cv_ld_reload_flag='-r' | |
6427 | fi | |
6428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6429 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6430 | reload_flag=$lt_cv_ld_reload_flag | |
6431 | case $reload_flag in | |
6432 | "" | " "*) ;; | |
6433 | *) reload_flag=" $reload_flag" ;; | |
6434 | esac | |
6435 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6436 | case $host_os in | |
6437 | darwin*) | |
6438 | if test "$GCC" = yes; then | |
6439 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6440 | else | |
6441 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6442 | fi | |
6443 | ;; | |
6444 | esac | |
6445 | ||
6446 | ||
6447 | ||
6448 | ||
6449 | ||
6450 | ||
6451 | ||
6452 | ||
6453 | ||
6454 | if test -n "$ac_tool_prefix"; then | |
6455 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6456 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6458 | $as_echo_n "checking for $ac_word... " >&6; } | |
6459 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
6460 | $as_echo_n "(cached) " >&6 | |
6461 | else | |
6462 | if test -n "$OBJDUMP"; then | |
6463 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6464 | else | |
6465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6466 | for as_dir in $PATH | |
6467 | do | |
6468 | IFS=$as_save_IFS | |
6469 | test -z "$as_dir" && as_dir=. | |
6470 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6471 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6472 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
6473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6474 | break 2 | |
6475 | fi | |
6476 | done | |
6477 | done | |
6478 | IFS=$as_save_IFS | |
6479 | ||
6480 | fi | |
6481 | fi | |
6482 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6483 | if test -n "$OBJDUMP"; then | |
6484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6485 | $as_echo "$OBJDUMP" >&6; } | |
6486 | else | |
6487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6488 | $as_echo "no" >&6; } | |
6489 | fi | |
6490 | ||
6491 | ||
6492 | fi | |
6493 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6494 | ac_ct_OBJDUMP=$OBJDUMP | |
6495 | # Extract the first word of "objdump", so it can be a program name with args. | |
6496 | set dummy objdump; ac_word=$2 | |
6497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6498 | $as_echo_n "checking for $ac_word... " >&6; } | |
6499 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
6500 | $as_echo_n "(cached) " >&6 | |
6501 | else | |
6502 | if test -n "$ac_ct_OBJDUMP"; then | |
6503 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6504 | else | |
6505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6506 | for as_dir in $PATH | |
6507 | do | |
6508 | IFS=$as_save_IFS | |
6509 | test -z "$as_dir" && as_dir=. | |
6510 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6511 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6512 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6514 | break 2 | |
6515 | fi | |
6516 | done | |
6517 | done | |
6518 | IFS=$as_save_IFS | |
6519 | ||
6520 | fi | |
6521 | fi | |
6522 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6523 | if test -n "$ac_ct_OBJDUMP"; then | |
6524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6525 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6526 | else | |
6527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6528 | $as_echo "no" >&6; } | |
6529 | fi | |
6530 | ||
6531 | if test "x$ac_ct_OBJDUMP" = x; then | |
6532 | OBJDUMP="false" | |
6533 | else | |
6534 | case $cross_compiling:$ac_tool_warned in | |
6535 | yes:) | |
6536 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6537 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6538 | ac_tool_warned=yes ;; | |
6539 | esac | |
6540 | OBJDUMP=$ac_ct_OBJDUMP | |
6541 | fi | |
6542 | else | |
6543 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6544 | fi | |
6545 | ||
6546 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6547 | ||
6548 | ||
6549 | ||
6550 | ||
6551 | ||
6552 | ||
6553 | ||
6554 | ||
6555 | ||
6556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
6557 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6558 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6559 | $as_echo_n "(cached) " >&6 | |
6560 | else | |
6561 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6562 | lt_cv_file_magic_test_file= | |
6563 | lt_cv_deplibs_check_method='unknown' | |
6564 | # Need to set the preceding variable on all platforms that support | |
6565 | # interlibrary dependencies. | |
6566 | # 'none' -- dependencies not supported. | |
6567 | # `unknown' -- same as none, but documents that we really don't know. | |
6568 | # 'pass_all' -- all dependencies passed with no checks. | |
6569 | # 'test_compile' -- check by making test program. | |
6570 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6571 | # which responds to the $file_magic_cmd with a given extended regex. | |
6572 | # If you have `file' or equivalent on your system and you're not sure | |
6573 | # whether `pass_all' will *always* work, you probably want this one. | |
6574 | ||
6575 | case $host_os in | |
6576 | aix[4-9]*) | |
6577 | lt_cv_deplibs_check_method=pass_all | |
6578 | ;; | |
6579 | ||
6580 | beos*) | |
6581 | lt_cv_deplibs_check_method=pass_all | |
6582 | ;; | |
6583 | ||
6584 | bsdi[45]*) | |
6585 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6586 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6587 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6588 | ;; | |
6589 | ||
6590 | cygwin*) | |
6591 | # func_win32_libid is a shell function defined in ltmain.sh | |
6592 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6593 | lt_cv_file_magic_cmd='func_win32_libid' | |
6594 | ;; | |
6595 | ||
6596 | mingw* | pw32*) | |
6597 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6598 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6599 | # unless we find 'file', for example because we are cross-compiling. | |
6600 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6601 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6602 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6603 | lt_cv_file_magic_cmd='func_win32_libid' | |
6604 | else | |
6605 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6606 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6607 | fi | |
6608 | ;; | |
6609 | ||
6610 | cegcc*) | |
6611 | # use the weaker test based on 'objdump'. See mingw*. | |
6612 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6613 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6614 | ;; | |
6615 | ||
6616 | darwin* | rhapsody*) | |
6617 | lt_cv_deplibs_check_method=pass_all | |
6618 | ;; | |
6619 | ||
6620 | freebsd* | dragonfly*) | |
6621 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6622 | case $host_cpu in | |
6623 | i*86 ) | |
6624 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6625 | # Let's accept both of them until this is cleared up. | |
6626 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6627 | lt_cv_file_magic_cmd=/usr/bin/file | |
6628 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6629 | ;; | |
6630 | esac | |
6631 | else | |
6632 | lt_cv_deplibs_check_method=pass_all | |
6633 | fi | |
6634 | ;; | |
6635 | ||
6636 | gnu*) | |
6637 | lt_cv_deplibs_check_method=pass_all | |
6638 | ;; | |
6639 | ||
6640 | haiku*) | |
6641 | lt_cv_deplibs_check_method=pass_all | |
6642 | ;; | |
6643 | ||
6644 | hpux10.20* | hpux11*) | |
6645 | lt_cv_file_magic_cmd=/usr/bin/file | |
6646 | case $host_cpu in | |
6647 | ia64*) | |
6648 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6649 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6650 | ;; | |
6651 | hppa*64*) | |
6652 | 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]' | |
6653 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6654 | ;; | |
6655 | *) | |
6656 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6657 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6658 | ;; | |
6659 | esac | |
6660 | ;; | |
6661 | ||
6662 | interix[3-9]*) | |
6663 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6664 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6665 | ;; | |
6666 | ||
6667 | irix5* | irix6* | nonstopux*) | |
6668 | case $LD in | |
6669 | *-32|*"-32 ") libmagic=32-bit;; | |
6670 | *-n32|*"-n32 ") libmagic=N32;; | |
6671 | *-64|*"-64 ") libmagic=64-bit;; | |
6672 | *) libmagic=never-match;; | |
6673 | esac | |
6674 | lt_cv_deplibs_check_method=pass_all | |
6675 | ;; | |
6676 | ||
6677 | # This must be Linux ELF. | |
6678 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6679 | lt_cv_deplibs_check_method=pass_all | |
6680 | ;; | |
6681 | ||
6682 | netbsd*) | |
6683 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6684 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6685 | else | |
6686 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6687 | fi | |
6688 | ;; | |
6689 | ||
6690 | newos6*) | |
6691 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6692 | lt_cv_file_magic_cmd=/usr/bin/file | |
6693 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6694 | ;; | |
6695 | ||
6696 | *nto* | *qnx*) | |
6697 | lt_cv_deplibs_check_method=pass_all | |
6698 | ;; | |
6699 | ||
6700 | openbsd*) | |
6701 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6702 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6703 | else | |
6704 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6705 | fi | |
6706 | ;; | |
6707 | ||
6708 | osf3* | osf4* | osf5*) | |
6709 | lt_cv_deplibs_check_method=pass_all | |
6710 | ;; | |
6711 | ||
6712 | rdos*) | |
6713 | lt_cv_deplibs_check_method=pass_all | |
6714 | ;; | |
6715 | ||
6716 | solaris*) | |
6717 | lt_cv_deplibs_check_method=pass_all | |
6718 | ;; | |
6719 | ||
6720 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6721 | lt_cv_deplibs_check_method=pass_all | |
6722 | ;; | |
6723 | ||
6724 | sysv4 | sysv4.3*) | |
6725 | case $host_vendor in | |
6726 | motorola) | |
6727 | 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]' | |
6728 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6729 | ;; | |
6730 | ncr) | |
6731 | lt_cv_deplibs_check_method=pass_all | |
6732 | ;; | |
6733 | sequent) | |
6734 | lt_cv_file_magic_cmd='/bin/file' | |
6735 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6736 | ;; | |
6737 | sni) | |
6738 | lt_cv_file_magic_cmd='/bin/file' | |
6739 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6740 | lt_cv_file_magic_test_file=/lib/libc.so | |
6741 | ;; | |
6742 | siemens) | |
6743 | lt_cv_deplibs_check_method=pass_all | |
6744 | ;; | |
6745 | pc) | |
6746 | lt_cv_deplibs_check_method=pass_all | |
6747 | ;; | |
6748 | esac | |
6749 | ;; | |
6750 | ||
6751 | tpf*) | |
6752 | lt_cv_deplibs_check_method=pass_all | |
6753 | ;; | |
6754 | esac | |
6755 | ||
6756 | fi | |
6757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6758 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6759 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6760 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6761 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6762 | ||
6763 | ||
6764 | ||
6765 | ||
6766 | ||
6767 | ||
6768 | ||
6769 | ||
6770 | ||
6771 | ||
6772 | ||
6773 | ||
6774 | plugin_option= | |
6775 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
6776 | for plugin in $plugin_names; do | |
6777 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
6778 | if test x$plugin_so = x$plugin; then | |
6779 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
6780 | fi | |
6781 | if test x$plugin_so != x$plugin; then | |
6782 | plugin_option="--plugin $plugin_so" | |
6783 | break | |
6784 | fi | |
6785 | done | |
6786 | ||
6787 | if test -n "$ac_tool_prefix"; then | |
6788 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6789 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6791 | $as_echo_n "checking for $ac_word... " >&6; } | |
6792 | if ${ac_cv_prog_AR+:} false; then : | |
6793 | $as_echo_n "(cached) " >&6 | |
6794 | else | |
6795 | if test -n "$AR"; then | |
6796 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6797 | else | |
6798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6799 | for as_dir in $PATH | |
6800 | do | |
6801 | IFS=$as_save_IFS | |
6802 | test -z "$as_dir" && as_dir=. | |
6803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6804 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6805 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
6806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6807 | break 2 | |
6808 | fi | |
6809 | done | |
6810 | done | |
6811 | IFS=$as_save_IFS | |
6812 | ||
6813 | fi | |
6814 | fi | |
6815 | AR=$ac_cv_prog_AR | |
6816 | if test -n "$AR"; then | |
6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6818 | $as_echo "$AR" >&6; } | |
6819 | else | |
6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6821 | $as_echo "no" >&6; } | |
6822 | fi | |
6823 | ||
6824 | ||
6825 | fi | |
6826 | if test -z "$ac_cv_prog_AR"; then | |
6827 | ac_ct_AR=$AR | |
6828 | # Extract the first word of "ar", so it can be a program name with args. | |
6829 | set dummy ar; ac_word=$2 | |
6830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6831 | $as_echo_n "checking for $ac_word... " >&6; } | |
6832 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6833 | $as_echo_n "(cached) " >&6 | |
6834 | else | |
6835 | if test -n "$ac_ct_AR"; then | |
6836 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6837 | else | |
6838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6839 | for as_dir in $PATH | |
6840 | do | |
6841 | IFS=$as_save_IFS | |
6842 | test -z "$as_dir" && as_dir=. | |
6843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6844 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6845 | ac_cv_prog_ac_ct_AR="ar" | |
6846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6847 | break 2 | |
6848 | fi | |
6849 | done | |
6850 | done | |
6851 | IFS=$as_save_IFS | |
6852 | ||
6853 | fi | |
6854 | fi | |
6855 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6856 | if test -n "$ac_ct_AR"; then | |
6857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6858 | $as_echo "$ac_ct_AR" >&6; } | |
6859 | else | |
6860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6861 | $as_echo "no" >&6; } | |
6862 | fi | |
6863 | ||
6864 | if test "x$ac_ct_AR" = x; then | |
6865 | AR="false" | |
6866 | else | |
6867 | case $cross_compiling:$ac_tool_warned in | |
6868 | yes:) | |
6869 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6870 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6871 | ac_tool_warned=yes ;; | |
6872 | esac | |
6873 | AR=$ac_ct_AR | |
6874 | fi | |
6875 | else | |
6876 | AR="$ac_cv_prog_AR" | |
6877 | fi | |
6878 | ||
6879 | test -z "$AR" && AR=ar | |
6880 | if test -n "$plugin_option"; then | |
6881 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
6882 | touch conftest.c | |
6883 | $AR $plugin_option rc conftest.a conftest.c | |
6884 | if test "$?" != 0; then | |
6885 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
6886 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
6887 | else | |
6888 | AR="$AR $plugin_option" | |
6889 | fi | |
6890 | rm -f conftest.* | |
6891 | fi | |
6892 | fi | |
6893 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6894 | ||
6895 | ||
6896 | ||
6897 | ||
6898 | ||
6899 | ||
6900 | ||
6901 | ||
6902 | ||
6903 | ||
6904 | ||
6905 | if test -n "$ac_tool_prefix"; then | |
6906 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6907 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6909 | $as_echo_n "checking for $ac_word... " >&6; } | |
6910 | if ${ac_cv_prog_STRIP+:} false; then : | |
6911 | $as_echo_n "(cached) " >&6 | |
6912 | else | |
6913 | if test -n "$STRIP"; then | |
6914 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6915 | else | |
6916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6917 | for as_dir in $PATH | |
6918 | do | |
6919 | IFS=$as_save_IFS | |
6920 | test -z "$as_dir" && as_dir=. | |
6921 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6922 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6923 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6925 | break 2 | |
6926 | fi | |
6927 | done | |
6928 | done | |
6929 | IFS=$as_save_IFS | |
6930 | ||
6931 | fi | |
6932 | fi | |
6933 | STRIP=$ac_cv_prog_STRIP | |
6934 | if test -n "$STRIP"; then | |
6935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6936 | $as_echo "$STRIP" >&6; } | |
6937 | else | |
6938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6939 | $as_echo "no" >&6; } | |
6940 | fi | |
6941 | ||
6942 | ||
6943 | fi | |
6944 | if test -z "$ac_cv_prog_STRIP"; then | |
6945 | ac_ct_STRIP=$STRIP | |
6946 | # Extract the first word of "strip", so it can be a program name with args. | |
6947 | set dummy strip; ac_word=$2 | |
6948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6949 | $as_echo_n "checking for $ac_word... " >&6; } | |
6950 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
6951 | $as_echo_n "(cached) " >&6 | |
6952 | else | |
6953 | if test -n "$ac_ct_STRIP"; then | |
6954 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6955 | else | |
6956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6957 | for as_dir in $PATH | |
6958 | do | |
6959 | IFS=$as_save_IFS | |
6960 | test -z "$as_dir" && as_dir=. | |
6961 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6962 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6963 | ac_cv_prog_ac_ct_STRIP="strip" | |
6964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6965 | break 2 | |
6966 | fi | |
6967 | done | |
6968 | done | |
6969 | IFS=$as_save_IFS | |
6970 | ||
6971 | fi | |
6972 | fi | |
6973 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6974 | if test -n "$ac_ct_STRIP"; then | |
6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6976 | $as_echo "$ac_ct_STRIP" >&6; } | |
6977 | else | |
6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6979 | $as_echo "no" >&6; } | |
6980 | fi | |
6981 | ||
6982 | if test "x$ac_ct_STRIP" = x; then | |
6983 | STRIP=":" | |
6984 | else | |
6985 | case $cross_compiling:$ac_tool_warned in | |
6986 | yes:) | |
6987 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6988 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6989 | ac_tool_warned=yes ;; | |
6990 | esac | |
6991 | STRIP=$ac_ct_STRIP | |
6992 | fi | |
6993 | else | |
6994 | STRIP="$ac_cv_prog_STRIP" | |
6995 | fi | |
6996 | ||
6997 | test -z "$STRIP" && STRIP=: | |
6998 | ||
6999 | ||
7000 | ||
7001 | ||
7002 | ||
7003 | ||
7004 | if test -n "$ac_tool_prefix"; then | |
7005 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7006 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7008 | $as_echo_n "checking for $ac_word... " >&6; } | |
7009 | if ${ac_cv_prog_RANLIB+:} false; then : | |
7010 | $as_echo_n "(cached) " >&6 | |
7011 | else | |
7012 | if test -n "$RANLIB"; then | |
7013 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7014 | else | |
7015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7016 | for as_dir in $PATH | |
7017 | do | |
7018 | IFS=$as_save_IFS | |
7019 | test -z "$as_dir" && as_dir=. | |
7020 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7021 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7022 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
7023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7024 | break 2 | |
7025 | fi | |
7026 | done | |
7027 | done | |
7028 | IFS=$as_save_IFS | |
7029 | ||
7030 | fi | |
7031 | fi | |
7032 | RANLIB=$ac_cv_prog_RANLIB | |
7033 | if test -n "$RANLIB"; then | |
7034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7035 | $as_echo "$RANLIB" >&6; } | |
7036 | else | |
7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7038 | $as_echo "no" >&6; } | |
7039 | fi | |
7040 | ||
7041 | ||
7042 | fi | |
7043 | if test -z "$ac_cv_prog_RANLIB"; then | |
7044 | ac_ct_RANLIB=$RANLIB | |
7045 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7046 | set dummy ranlib; ac_word=$2 | |
7047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7048 | $as_echo_n "checking for $ac_word... " >&6; } | |
7049 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
7050 | $as_echo_n "(cached) " >&6 | |
7051 | else | |
7052 | if test -n "$ac_ct_RANLIB"; then | |
7053 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7054 | else | |
7055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7056 | for as_dir in $PATH | |
7057 | do | |
7058 | IFS=$as_save_IFS | |
7059 | test -z "$as_dir" && as_dir=. | |
7060 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7061 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7062 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
7063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7064 | break 2 | |
7065 | fi | |
7066 | done | |
7067 | done | |
7068 | IFS=$as_save_IFS | |
7069 | ||
7070 | fi | |
7071 | fi | |
7072 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7073 | if test -n "$ac_ct_RANLIB"; then | |
7074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7075 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7076 | else | |
7077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7078 | $as_echo "no" >&6; } | |
7079 | fi | |
7080 | ||
7081 | if test "x$ac_ct_RANLIB" = x; then | |
7082 | RANLIB=":" | |
7083 | else | |
7084 | case $cross_compiling:$ac_tool_warned in | |
7085 | yes:) | |
7086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7087 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7088 | ac_tool_warned=yes ;; | |
7089 | esac | |
7090 | RANLIB=$ac_ct_RANLIB | |
7091 | fi | |
7092 | else | |
7093 | RANLIB="$ac_cv_prog_RANLIB" | |
7094 | fi | |
7095 | ||
7096 | test -z "$RANLIB" && RANLIB=: | |
7097 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then | |
7098 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
7099 | RANLIB="$RANLIB $plugin_option" | |
7100 | fi | |
7101 | fi | |
7102 | ||
7103 | ||
7104 | ||
7105 | ||
7106 | ||
7107 | ||
7108 | # Determine commands to create old-style static archives. | |
7109 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7110 | old_postinstall_cmds='chmod 644 $oldlib' | |
7111 | old_postuninstall_cmds= | |
7112 | ||
7113 | if test -n "$RANLIB"; then | |
7114 | case $host_os in | |
7115 | openbsd*) | |
7116 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7117 | ;; | |
7118 | *) | |
7119 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7120 | ;; | |
7121 | esac | |
7122 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
7123 | fi | |
7124 | ||
7125 | case $host_os in | |
7126 | darwin*) | |
7127 | lock_old_archive_extraction=yes ;; | |
7128 | *) | |
7129 | lock_old_archive_extraction=no ;; | |
7130 | esac | |
7131 | ||
7132 | ||
7133 | ||
7134 | ||
7135 | ||
7136 | ||
7137 | ||
7138 | ||
7139 | ||
7140 | ||
7141 | ||
7142 | ||
7143 | ||
7144 | ||
7145 | ||
7146 | ||
7147 | ||
7148 | ||
7149 | ||
7150 | ||
7151 | ||
7152 | for ac_prog in gawk mawk nawk awk | |
7153 | do | |
7154 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7155 | set dummy $ac_prog; ac_word=$2 | |
7156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7157 | $as_echo_n "checking for $ac_word... " >&6; } | |
7158 | if ${ac_cv_prog_AWK+:} false; then : | |
7159 | $as_echo_n "(cached) " >&6 | |
7160 | else | |
7161 | if test -n "$AWK"; then | |
7162 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
7163 | else | |
7164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7165 | for as_dir in $PATH | |
7166 | do | |
7167 | IFS=$as_save_IFS | |
7168 | test -z "$as_dir" && as_dir=. | |
7169 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7170 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7171 | ac_cv_prog_AWK="$ac_prog" | |
7172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7173 | break 2 | |
7174 | fi | |
7175 | done | |
7176 | done | |
7177 | IFS=$as_save_IFS | |
7178 | ||
7179 | fi | |
7180 | fi | |
7181 | AWK=$ac_cv_prog_AWK | |
7182 | if test -n "$AWK"; then | |
7183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
7184 | $as_echo "$AWK" >&6; } | |
7185 | else | |
7186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7187 | $as_echo "no" >&6; } | |
7188 | fi | |
7189 | ||
7190 | ||
7191 | test -n "$AWK" && break | |
7192 | done | |
7193 | ||
7194 | ||
7195 | ||
7196 | ||
7197 | ||
7198 | ||
7199 | ||
7200 | ||
7201 | ||
7202 | ||
7203 | ||
7204 | ||
7205 | ||
7206 | ||
7207 | ||
7208 | ||
7209 | ||
7210 | ||
7211 | ||
7212 | # If no C compiler was specified, use CC. | |
7213 | LTCC=${LTCC-"$CC"} | |
7214 | ||
7215 | # If no C compiler flags were specified, use CFLAGS. | |
7216 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7217 | ||
7218 | # Allow CC to be a program name with arguments. | |
7219 | compiler=$CC | |
7220 | ||
7221 | ||
7222 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7224 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7225 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
7226 | $as_echo_n "(cached) " >&6 | |
7227 | else | |
7228 | ||
7229 | # These are sane defaults that work on at least a few old systems. | |
7230 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7231 | ||
7232 | # Character class describing NM global symbol codes. | |
7233 | symcode='[BCDEGRST]' | |
7234 | ||
7235 | # Regexp to match symbols that can be accessed directly from C. | |
7236 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7237 | ||
7238 | # Define system-specific variables. | |
7239 | case $host_os in | |
7240 | aix*) | |
7241 | symcode='[BCDT]' | |
7242 | ;; | |
7243 | cygwin* | mingw* | pw32* | cegcc*) | |
7244 | symcode='[ABCDGISTW]' | |
7245 | ;; | |
7246 | hpux*) | |
7247 | if test "$host_cpu" = ia64; then | |
7248 | symcode='[ABCDEGRST]' | |
7249 | fi | |
7250 | ;; | |
7251 | irix* | nonstopux*) | |
7252 | symcode='[BCDEGRST]' | |
7253 | ;; | |
7254 | osf*) | |
7255 | symcode='[BCDEGQRST]' | |
7256 | ;; | |
7257 | solaris*) | |
b9004024 | 7258 | symcode='[BCDRT]' |
b5689863 MF |
7259 | ;; |
7260 | sco3.2v5*) | |
7261 | symcode='[DT]' | |
7262 | ;; | |
7263 | sysv4.2uw2*) | |
7264 | symcode='[DT]' | |
7265 | ;; | |
7266 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7267 | symcode='[ABDT]' | |
7268 | ;; | |
7269 | sysv4) | |
7270 | symcode='[DFNSTU]' | |
7271 | ;; | |
7272 | esac | |
7273 | ||
7274 | # If we're using GNU nm, then use its standard symbol codes. | |
7275 | case `$NM -V 2>&1` in | |
7276 | *GNU* | *'with BFD'*) | |
7277 | symcode='[ABCDGIRSTW]' ;; | |
7278 | esac | |
7279 | ||
7280 | # Transform an extracted symbol line into a proper C declaration. | |
7281 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7282 | # so use this general approach. | |
7283 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7284 | ||
7285 | # Transform an extracted symbol line into symbol name and symbol address | |
7286 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7287 | 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'" | |
7288 | ||
7289 | # Handle CRLF in mingw tool chain | |
7290 | opt_cr= | |
7291 | case $build_os in | |
7292 | mingw*) | |
7293 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7294 | ;; | |
7295 | esac | |
7296 | ||
7297 | # Try without a prefix underscore, then with it. | |
7298 | for ac_symprfx in "" "_"; do | |
7299 | ||
7300 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7301 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7302 | ||
7303 | # Write the raw and C identifiers. | |
7304 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7305 | # Fake it for dumpbin and say T for any non-static function | |
7306 | # and D for any global variable. | |
7307 | # Also find C++ and __fastcall symbols from MSVC++, | |
7308 | # which start with @ or ?. | |
7309 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7310 | " {last_section=section; section=\$ 3};"\ | |
7311 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7312 | " \$ 0!~/External *\|/{next};"\ | |
7313 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7314 | " {if(hide[section]) next};"\ | |
7315 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7316 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7317 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7318 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7319 | " ' prfx=^$ac_symprfx" | |
7320 | else | |
7321 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7322 | fi | |
7323 | ||
7324 | # Check to see that the pipe works correctly. | |
7325 | pipe_works=no | |
7326 | ||
7327 | rm -f conftest* | |
7328 | cat > conftest.$ac_ext <<_LT_EOF | |
7329 | #ifdef __cplusplus | |
7330 | extern "C" { | |
7331 | #endif | |
7332 | char nm_test_var; | |
7333 | void nm_test_func(void); | |
7334 | void nm_test_func(void){} | |
7335 | #ifdef __cplusplus | |
7336 | } | |
7337 | #endif | |
7338 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7339 | _LT_EOF | |
7340 | ||
7341 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7342 | (eval $ac_compile) 2>&5 | |
7343 | ac_status=$? | |
7344 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7345 | test $ac_status = 0; }; then | |
7346 | # Now try to grab the symbols. | |
7347 | nlist=conftest.nm | |
7348 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7349 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7350 | ac_status=$? | |
7351 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7352 | test $ac_status = 0; } && test -s "$nlist"; then | |
7353 | # Try sorting and uniquifying the output. | |
7354 | if sort "$nlist" | uniq > "$nlist"T; then | |
7355 | mv -f "$nlist"T "$nlist" | |
7356 | else | |
7357 | rm -f "$nlist"T | |
7358 | fi | |
7359 | ||
7360 | # Make sure that we snagged all the symbols we need. | |
7361 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7362 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7363 | cat <<_LT_EOF > conftest.$ac_ext | |
7364 | #ifdef __cplusplus | |
7365 | extern "C" { | |
7366 | #endif | |
7367 | ||
7368 | _LT_EOF | |
7369 | # Now generate the symbol file. | |
7370 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7371 | ||
7372 | cat <<_LT_EOF >> conftest.$ac_ext | |
7373 | ||
7374 | /* The mapping between symbol names and symbols. */ | |
7375 | const struct { | |
7376 | const char *name; | |
7377 | void *address; | |
7378 | } | |
7379 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7380 | { | |
7381 | { "@PROGRAM@", (void *) 0 }, | |
7382 | _LT_EOF | |
7383 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7384 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7385 | {0, (void *) 0} | |
7386 | }; | |
7387 | ||
7388 | /* This works around a problem in FreeBSD linker */ | |
7389 | #ifdef FREEBSD_WORKAROUND | |
7390 | static const void *lt_preloaded_setup() { | |
7391 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7392 | } | |
7393 | #endif | |
7394 | ||
7395 | #ifdef __cplusplus | |
7396 | } | |
7397 | #endif | |
7398 | _LT_EOF | |
7399 | # Now try linking the two files. | |
7400 | mv conftest.$ac_objext conftstm.$ac_objext | |
7401 | lt_save_LIBS="$LIBS" | |
7402 | lt_save_CFLAGS="$CFLAGS" | |
7403 | LIBS="conftstm.$ac_objext" | |
7404 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7405 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7406 | (eval $ac_link) 2>&5 | |
7407 | ac_status=$? | |
7408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7409 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7410 | pipe_works=yes | |
7411 | fi | |
7412 | LIBS="$lt_save_LIBS" | |
7413 | CFLAGS="$lt_save_CFLAGS" | |
7414 | else | |
7415 | echo "cannot find nm_test_func in $nlist" >&5 | |
7416 | fi | |
7417 | else | |
7418 | echo "cannot find nm_test_var in $nlist" >&5 | |
7419 | fi | |
7420 | else | |
7421 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7422 | fi | |
7423 | else | |
7424 | echo "$progname: failed program was:" >&5 | |
7425 | cat conftest.$ac_ext >&5 | |
7426 | fi | |
7427 | rm -rf conftest* conftst* | |
7428 | ||
7429 | # Do not use the global_symbol_pipe unless it works. | |
7430 | if test "$pipe_works" = yes; then | |
7431 | break | |
7432 | else | |
7433 | lt_cv_sys_global_symbol_pipe= | |
7434 | fi | |
7435 | done | |
7436 | ||
7437 | fi | |
7438 | ||
7439 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7440 | lt_cv_sys_global_symbol_to_cdecl= | |
7441 | fi | |
7442 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7444 | $as_echo "failed" >&6; } | |
7445 | else | |
7446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
7447 | $as_echo "ok" >&6; } | |
7448 | fi | |
7449 | ||
7450 | ||
7451 | ||
7452 | ||
7453 | ||
7454 | ||
7455 | ||
7456 | ||
7457 | ||
7458 | ||
7459 | ||
7460 | ||
7461 | ||
7462 | ||
7463 | ||
7464 | ||
7465 | ||
7466 | ||
7467 | ||
7468 | ||
7469 | ||
7470 | ||
7471 | # Check whether --enable-libtool-lock was given. | |
7472 | if test "${enable_libtool_lock+set}" = set; then : | |
7473 | enableval=$enable_libtool_lock; | |
7474 | fi | |
7475 | ||
7476 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
7477 | ||
7478 | # Some flags need to be propagated to the compiler or linker for good | |
7479 | # libtool support. | |
7480 | case $host in | |
7481 | ia64-*-hpux*) | |
7482 | # Find out which ABI we are using. | |
7483 | echo 'int i;' > conftest.$ac_ext | |
7484 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7485 | (eval $ac_compile) 2>&5 | |
7486 | ac_status=$? | |
7487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7488 | test $ac_status = 0; }; then | |
7489 | case `/usr/bin/file conftest.$ac_objext` in | |
7490 | *ELF-32*) | |
7491 | HPUX_IA64_MODE="32" | |
7492 | ;; | |
7493 | *ELF-64*) | |
7494 | HPUX_IA64_MODE="64" | |
7495 | ;; | |
7496 | esac | |
7497 | fi | |
7498 | rm -rf conftest* | |
7499 | ;; | |
7500 | *-*-irix6*) | |
7501 | # Find out which ABI we are using. | |
7502 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7503 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7504 | (eval $ac_compile) 2>&5 | |
7505 | ac_status=$? | |
7506 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7507 | test $ac_status = 0; }; then | |
7508 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7509 | case `/usr/bin/file conftest.$ac_objext` in | |
7510 | *32-bit*) | |
7511 | LD="${LD-ld} -melf32bsmip" | |
7512 | ;; | |
7513 | *N32*) | |
7514 | LD="${LD-ld} -melf32bmipn32" | |
7515 | ;; | |
7516 | *64-bit*) | |
7517 | LD="${LD-ld} -melf64bmip" | |
7518 | ;; | |
7519 | esac | |
7520 | else | |
7521 | case `/usr/bin/file conftest.$ac_objext` in | |
7522 | *32-bit*) | |
7523 | LD="${LD-ld} -32" | |
7524 | ;; | |
7525 | *N32*) | |
7526 | LD="${LD-ld} -n32" | |
7527 | ;; | |
7528 | *64-bit*) | |
7529 | LD="${LD-ld} -64" | |
7530 | ;; | |
7531 | esac | |
7532 | fi | |
7533 | fi | |
7534 | rm -rf conftest* | |
7535 | ;; | |
7536 | ||
7537 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
7538 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7539 | # Find out which ABI we are using. | |
7540 | echo 'int i;' > conftest.$ac_ext | |
7541 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7542 | (eval $ac_compile) 2>&5 | |
7543 | ac_status=$? | |
7544 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7545 | test $ac_status = 0; }; then | |
7546 | case `/usr/bin/file conftest.o` in | |
7547 | *32-bit*) | |
7548 | case $host in | |
7549 | x86_64-*kfreebsd*-gnu) | |
7550 | LD="${LD-ld} -m elf_i386_fbsd" | |
7551 | ;; | |
7552 | x86_64-*linux*) | |
7553 | case `/usr/bin/file conftest.o` in | |
7554 | *x86-64*) | |
7555 | LD="${LD-ld} -m elf32_x86_64" | |
7556 | ;; | |
7557 | *) | |
7558 | LD="${LD-ld} -m elf_i386" | |
7559 | ;; | |
7560 | esac | |
7561 | ;; | |
7562 | powerpc64le-*linux*) | |
7563 | LD="${LD-ld} -m elf32lppclinux" | |
7564 | ;; | |
7565 | powerpc64-*linux*) | |
7566 | LD="${LD-ld} -m elf32ppclinux" | |
7567 | ;; | |
7568 | s390x-*linux*) | |
7569 | LD="${LD-ld} -m elf_s390" | |
7570 | ;; | |
7571 | sparc64-*linux*) | |
7572 | LD="${LD-ld} -m elf32_sparc" | |
7573 | ;; | |
7574 | esac | |
7575 | ;; | |
7576 | *64-bit*) | |
7577 | case $host in | |
7578 | x86_64-*kfreebsd*-gnu) | |
7579 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7580 | ;; | |
7581 | x86_64-*linux*) | |
7582 | LD="${LD-ld} -m elf_x86_64" | |
7583 | ;; | |
7584 | powerpcle-*linux*) | |
7585 | LD="${LD-ld} -m elf64lppc" | |
7586 | ;; | |
7587 | powerpc-*linux*) | |
7588 | LD="${LD-ld} -m elf64ppc" | |
7589 | ;; | |
7590 | s390*-*linux*|s390*-*tpf*) | |
7591 | LD="${LD-ld} -m elf64_s390" | |
7592 | ;; | |
7593 | sparc*-*linux*) | |
7594 | LD="${LD-ld} -m elf64_sparc" | |
7595 | ;; | |
7596 | esac | |
7597 | ;; | |
7598 | esac | |
7599 | fi | |
7600 | rm -rf conftest* | |
7601 | ;; | |
7602 | ||
7603 | *-*-sco3.2v5*) | |
7604 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7605 | SAVE_CFLAGS="$CFLAGS" | |
7606 | CFLAGS="$CFLAGS -belf" | |
7607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7608 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7609 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7610 | $as_echo_n "(cached) " >&6 | |
7611 | else | |
7612 | ac_ext=c | |
7613 | ac_cpp='$CPP $CPPFLAGS' | |
7614 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7615 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7616 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7617 | ||
7618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7619 | /* end confdefs.h. */ | |
7620 | ||
7621 | int | |
7622 | main () | |
7623 | { | |
7624 | ||
7625 | ; | |
7626 | return 0; | |
7627 | } | |
7628 | _ACEOF | |
7629 | if ac_fn_c_try_link "$LINENO"; then : | |
7630 | lt_cv_cc_needs_belf=yes | |
7631 | else | |
7632 | lt_cv_cc_needs_belf=no | |
7633 | fi | |
7634 | rm -f core conftest.err conftest.$ac_objext \ | |
7635 | conftest$ac_exeext conftest.$ac_ext | |
7636 | ac_ext=c | |
7637 | ac_cpp='$CPP $CPPFLAGS' | |
7638 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7639 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7640 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7641 | ||
7642 | fi | |
7643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7644 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7645 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7646 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7647 | CFLAGS="$SAVE_CFLAGS" | |
7648 | fi | |
7649 | ;; | |
7650 | sparc*-*solaris*) | |
7651 | # Find out which ABI we are using. | |
7652 | echo 'int i;' > conftest.$ac_ext | |
7653 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7654 | (eval $ac_compile) 2>&5 | |
7655 | ac_status=$? | |
7656 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7657 | test $ac_status = 0; }; then | |
7658 | case `/usr/bin/file conftest.o` in | |
7659 | *64-bit*) | |
7660 | case $lt_cv_prog_gnu_ld in | |
7661 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7662 | *) | |
7663 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7664 | LD="${LD-ld} -64" | |
7665 | fi | |
7666 | ;; | |
7667 | esac | |
7668 | ;; | |
7669 | esac | |
7670 | fi | |
7671 | rm -rf conftest* | |
7672 | ;; | |
7673 | esac | |
7674 | ||
7675 | need_locks="$enable_libtool_lock" | |
7676 | ||
7677 | ||
7678 | case $host_os in | |
7679 | rhapsody* | darwin*) | |
7680 | if test -n "$ac_tool_prefix"; then | |
7681 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7682 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7684 | $as_echo_n "checking for $ac_word... " >&6; } | |
7685 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7686 | $as_echo_n "(cached) " >&6 | |
7687 | else | |
7688 | if test -n "$DSYMUTIL"; then | |
7689 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7690 | else | |
7691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7692 | for as_dir in $PATH | |
7693 | do | |
7694 | IFS=$as_save_IFS | |
7695 | test -z "$as_dir" && as_dir=. | |
7696 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7697 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7698 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7700 | break 2 | |
7701 | fi | |
7702 | done | |
7703 | done | |
7704 | IFS=$as_save_IFS | |
7705 | ||
7706 | fi | |
7707 | fi | |
7708 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7709 | if test -n "$DSYMUTIL"; then | |
7710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7711 | $as_echo "$DSYMUTIL" >&6; } | |
7712 | else | |
7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7714 | $as_echo "no" >&6; } | |
7715 | fi | |
7716 | ||
7717 | ||
7718 | fi | |
7719 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7720 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7721 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7722 | set dummy dsymutil; ac_word=$2 | |
7723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7724 | $as_echo_n "checking for $ac_word... " >&6; } | |
7725 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
7726 | $as_echo_n "(cached) " >&6 | |
7727 | else | |
7728 | if test -n "$ac_ct_DSYMUTIL"; then | |
7729 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7730 | else | |
7731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7732 | for as_dir in $PATH | |
7733 | do | |
7734 | IFS=$as_save_IFS | |
7735 | test -z "$as_dir" && as_dir=. | |
7736 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7738 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7740 | break 2 | |
7741 | fi | |
7742 | done | |
7743 | done | |
7744 | IFS=$as_save_IFS | |
7745 | ||
7746 | fi | |
7747 | fi | |
7748 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7749 | if test -n "$ac_ct_DSYMUTIL"; then | |
7750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7751 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7752 | else | |
7753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7754 | $as_echo "no" >&6; } | |
7755 | fi | |
7756 | ||
7757 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7758 | DSYMUTIL=":" | |
7759 | else | |
7760 | case $cross_compiling:$ac_tool_warned in | |
7761 | yes:) | |
7762 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7763 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7764 | ac_tool_warned=yes ;; | |
7765 | esac | |
7766 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7767 | fi | |
7768 | else | |
7769 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7770 | fi | |
7771 | ||
7772 | if test -n "$ac_tool_prefix"; then | |
7773 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7774 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7776 | $as_echo_n "checking for $ac_word... " >&6; } | |
7777 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
7778 | $as_echo_n "(cached) " >&6 | |
7779 | else | |
7780 | if test -n "$NMEDIT"; then | |
7781 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7782 | else | |
7783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7784 | for as_dir in $PATH | |
7785 | do | |
7786 | IFS=$as_save_IFS | |
7787 | test -z "$as_dir" && as_dir=. | |
7788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7789 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7790 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7792 | break 2 | |
7793 | fi | |
7794 | done | |
7795 | done | |
7796 | IFS=$as_save_IFS | |
7797 | ||
7798 | fi | |
7799 | fi | |
7800 | NMEDIT=$ac_cv_prog_NMEDIT | |
7801 | if test -n "$NMEDIT"; then | |
7802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7803 | $as_echo "$NMEDIT" >&6; } | |
7804 | else | |
7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7806 | $as_echo "no" >&6; } | |
7807 | fi | |
7808 | ||
7809 | ||
7810 | fi | |
7811 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7812 | ac_ct_NMEDIT=$NMEDIT | |
7813 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7814 | set dummy nmedit; ac_word=$2 | |
7815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7816 | $as_echo_n "checking for $ac_word... " >&6; } | |
7817 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
7818 | $as_echo_n "(cached) " >&6 | |
7819 | else | |
7820 | if test -n "$ac_ct_NMEDIT"; then | |
7821 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7822 | else | |
7823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7824 | for as_dir in $PATH | |
7825 | do | |
7826 | IFS=$as_save_IFS | |
7827 | test -z "$as_dir" && as_dir=. | |
7828 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7829 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7830 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7832 | break 2 | |
7833 | fi | |
7834 | done | |
7835 | done | |
7836 | IFS=$as_save_IFS | |
7837 | ||
7838 | fi | |
7839 | fi | |
7840 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7841 | if test -n "$ac_ct_NMEDIT"; then | |
7842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7843 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7844 | else | |
7845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7846 | $as_echo "no" >&6; } | |
7847 | fi | |
7848 | ||
7849 | if test "x$ac_ct_NMEDIT" = x; then | |
7850 | NMEDIT=":" | |
7851 | else | |
7852 | case $cross_compiling:$ac_tool_warned in | |
7853 | yes:) | |
7854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7855 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7856 | ac_tool_warned=yes ;; | |
7857 | esac | |
7858 | NMEDIT=$ac_ct_NMEDIT | |
7859 | fi | |
7860 | else | |
7861 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7862 | fi | |
7863 | ||
7864 | if test -n "$ac_tool_prefix"; then | |
7865 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7866 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7868 | $as_echo_n "checking for $ac_word... " >&6; } | |
7869 | if ${ac_cv_prog_LIPO+:} false; then : | |
7870 | $as_echo_n "(cached) " >&6 | |
7871 | else | |
7872 | if test -n "$LIPO"; then | |
7873 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7874 | else | |
7875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7876 | for as_dir in $PATH | |
7877 | do | |
7878 | IFS=$as_save_IFS | |
7879 | test -z "$as_dir" && as_dir=. | |
7880 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7881 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7882 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7883 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7884 | break 2 | |
7885 | fi | |
7886 | done | |
7887 | done | |
7888 | IFS=$as_save_IFS | |
7889 | ||
7890 | fi | |
7891 | fi | |
7892 | LIPO=$ac_cv_prog_LIPO | |
7893 | if test -n "$LIPO"; then | |
7894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7895 | $as_echo "$LIPO" >&6; } | |
7896 | else | |
7897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7898 | $as_echo "no" >&6; } | |
7899 | fi | |
7900 | ||
7901 | ||
7902 | fi | |
7903 | if test -z "$ac_cv_prog_LIPO"; then | |
7904 | ac_ct_LIPO=$LIPO | |
7905 | # Extract the first word of "lipo", so it can be a program name with args. | |
7906 | set dummy lipo; ac_word=$2 | |
7907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7908 | $as_echo_n "checking for $ac_word... " >&6; } | |
7909 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
7910 | $as_echo_n "(cached) " >&6 | |
7911 | else | |
7912 | if test -n "$ac_ct_LIPO"; then | |
7913 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7914 | else | |
7915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7916 | for as_dir in $PATH | |
7917 | do | |
7918 | IFS=$as_save_IFS | |
7919 | test -z "$as_dir" && as_dir=. | |
7920 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7922 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7924 | break 2 | |
7925 | fi | |
7926 | done | |
7927 | done | |
7928 | IFS=$as_save_IFS | |
7929 | ||
7930 | fi | |
7931 | fi | |
7932 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7933 | if test -n "$ac_ct_LIPO"; then | |
7934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7935 | $as_echo "$ac_ct_LIPO" >&6; } | |
7936 | else | |
7937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7938 | $as_echo "no" >&6; } | |
7939 | fi | |
7940 | ||
7941 | if test "x$ac_ct_LIPO" = x; then | |
7942 | LIPO=":" | |
7943 | else | |
7944 | case $cross_compiling:$ac_tool_warned in | |
7945 | yes:) | |
7946 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7947 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7948 | ac_tool_warned=yes ;; | |
7949 | esac | |
7950 | LIPO=$ac_ct_LIPO | |
7951 | fi | |
7952 | else | |
7953 | LIPO="$ac_cv_prog_LIPO" | |
7954 | fi | |
7955 | ||
7956 | if test -n "$ac_tool_prefix"; then | |
7957 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7958 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7960 | $as_echo_n "checking for $ac_word... " >&6; } | |
7961 | if ${ac_cv_prog_OTOOL+:} false; then : | |
7962 | $as_echo_n "(cached) " >&6 | |
7963 | else | |
7964 | if test -n "$OTOOL"; then | |
7965 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7966 | else | |
7967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7968 | for as_dir in $PATH | |
7969 | do | |
7970 | IFS=$as_save_IFS | |
7971 | test -z "$as_dir" && as_dir=. | |
7972 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7973 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7974 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7975 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7976 | break 2 | |
7977 | fi | |
7978 | done | |
7979 | done | |
7980 | IFS=$as_save_IFS | |
7981 | ||
7982 | fi | |
7983 | fi | |
7984 | OTOOL=$ac_cv_prog_OTOOL | |
7985 | if test -n "$OTOOL"; then | |
7986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7987 | $as_echo "$OTOOL" >&6; } | |
7988 | else | |
7989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7990 | $as_echo "no" >&6; } | |
7991 | fi | |
7992 | ||
7993 | ||
7994 | fi | |
7995 | if test -z "$ac_cv_prog_OTOOL"; then | |
7996 | ac_ct_OTOOL=$OTOOL | |
7997 | # Extract the first word of "otool", so it can be a program name with args. | |
7998 | set dummy otool; ac_word=$2 | |
7999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8000 | $as_echo_n "checking for $ac_word... " >&6; } | |
8001 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
8002 | $as_echo_n "(cached) " >&6 | |
8003 | else | |
8004 | if test -n "$ac_ct_OTOOL"; then | |
8005 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8006 | else | |
8007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8008 | for as_dir in $PATH | |
8009 | do | |
8010 | IFS=$as_save_IFS | |
8011 | test -z "$as_dir" && as_dir=. | |
8012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8013 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8014 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8015 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8016 | break 2 | |
8017 | fi | |
8018 | done | |
8019 | done | |
8020 | IFS=$as_save_IFS | |
8021 | ||
8022 | fi | |
8023 | fi | |
8024 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8025 | if test -n "$ac_ct_OTOOL"; then | |
8026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8027 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8028 | else | |
8029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8030 | $as_echo "no" >&6; } | |
8031 | fi | |
8032 | ||
8033 | if test "x$ac_ct_OTOOL" = x; then | |
8034 | OTOOL=":" | |
8035 | else | |
8036 | case $cross_compiling:$ac_tool_warned in | |
8037 | yes:) | |
8038 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8039 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8040 | ac_tool_warned=yes ;; | |
8041 | esac | |
8042 | OTOOL=$ac_ct_OTOOL | |
8043 | fi | |
8044 | else | |
8045 | OTOOL="$ac_cv_prog_OTOOL" | |
8046 | fi | |
8047 | ||
8048 | if test -n "$ac_tool_prefix"; then | |
8049 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8050 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8052 | $as_echo_n "checking for $ac_word... " >&6; } | |
8053 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8054 | $as_echo_n "(cached) " >&6 | |
8055 | else | |
8056 | if test -n "$OTOOL64"; then | |
8057 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8058 | else | |
8059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8060 | for as_dir in $PATH | |
8061 | do | |
8062 | IFS=$as_save_IFS | |
8063 | test -z "$as_dir" && as_dir=. | |
8064 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8065 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8066 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8068 | break 2 | |
8069 | fi | |
8070 | done | |
8071 | done | |
8072 | IFS=$as_save_IFS | |
8073 | ||
8074 | fi | |
8075 | fi | |
8076 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8077 | if test -n "$OTOOL64"; then | |
8078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8079 | $as_echo "$OTOOL64" >&6; } | |
8080 | else | |
8081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8082 | $as_echo "no" >&6; } | |
8083 | fi | |
8084 | ||
8085 | ||
8086 | fi | |
8087 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8088 | ac_ct_OTOOL64=$OTOOL64 | |
8089 | # Extract the first word of "otool64", so it can be a program name with args. | |
8090 | set dummy otool64; ac_word=$2 | |
8091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8092 | $as_echo_n "checking for $ac_word... " >&6; } | |
8093 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8094 | $as_echo_n "(cached) " >&6 | |
8095 | else | |
8096 | if test -n "$ac_ct_OTOOL64"; then | |
8097 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8098 | else | |
8099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8100 | for as_dir in $PATH | |
8101 | do | |
8102 | IFS=$as_save_IFS | |
8103 | test -z "$as_dir" && as_dir=. | |
8104 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8105 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8106 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8108 | break 2 | |
8109 | fi | |
8110 | done | |
8111 | done | |
8112 | IFS=$as_save_IFS | |
8113 | ||
8114 | fi | |
8115 | fi | |
8116 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8117 | if test -n "$ac_ct_OTOOL64"; then | |
8118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8119 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8120 | else | |
8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8122 | $as_echo "no" >&6; } | |
8123 | fi | |
8124 | ||
8125 | if test "x$ac_ct_OTOOL64" = x; then | |
8126 | OTOOL64=":" | |
8127 | else | |
8128 | case $cross_compiling:$ac_tool_warned in | |
8129 | yes:) | |
8130 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8131 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8132 | ac_tool_warned=yes ;; | |
8133 | esac | |
8134 | OTOOL64=$ac_ct_OTOOL64 | |
8135 | fi | |
8136 | else | |
8137 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8138 | fi | |
8139 | ||
8140 | ||
8141 | ||
8142 | ||
8143 | ||
8144 | ||
8145 | ||
8146 | ||
8147 | ||
8148 | ||
8149 | ||
8150 | ||
8151 | ||
8152 | ||
8153 | ||
8154 | ||
8155 | ||
8156 | ||
8157 | ||
8158 | ||
8159 | ||
8160 | ||
8161 | ||
8162 | ||
8163 | ||
8164 | ||
8165 | ||
8166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8167 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8168 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
8169 | $as_echo_n "(cached) " >&6 | |
8170 | else | |
8171 | lt_cv_apple_cc_single_mod=no | |
8172 | if test -z "${LT_MULTI_MODULE}"; then | |
8173 | # By default we will add the -single_module flag. You can override | |
8174 | # by either setting the environment variable LT_MULTI_MODULE | |
8175 | # non-empty at configure time, or by adding -multi_module to the | |
8176 | # link flags. | |
8177 | rm -rf libconftest.dylib* | |
8178 | echo "int foo(void){return 1;}" > conftest.c | |
8179 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8180 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8181 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8182 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8183 | _lt_result=$? | |
8184 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8185 | lt_cv_apple_cc_single_mod=yes | |
8186 | else | |
8187 | cat conftest.err >&5 | |
8188 | fi | |
8189 | rm -rf libconftest.dylib* | |
8190 | rm -f conftest.* | |
8191 | fi | |
8192 | fi | |
8193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8194 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8196 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8197 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
8198 | $as_echo_n "(cached) " >&6 | |
8199 | else | |
8200 | lt_cv_ld_exported_symbols_list=no | |
8201 | save_LDFLAGS=$LDFLAGS | |
8202 | echo "_main" > conftest.sym | |
8203 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8205 | /* end confdefs.h. */ | |
8206 | ||
8207 | int | |
8208 | main () | |
8209 | { | |
8210 | ||
8211 | ; | |
8212 | return 0; | |
8213 | } | |
8214 | _ACEOF | |
8215 | if ac_fn_c_try_link "$LINENO"; then : | |
8216 | lt_cv_ld_exported_symbols_list=yes | |
8217 | else | |
8218 | lt_cv_ld_exported_symbols_list=no | |
8219 | fi | |
8220 | rm -f core conftest.err conftest.$ac_objext \ | |
8221 | conftest$ac_exeext conftest.$ac_ext | |
8222 | LDFLAGS="$save_LDFLAGS" | |
8223 | ||
8224 | fi | |
8225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
8226 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8228 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8229 | if ${lt_cv_ld_force_load+:} false; then : | |
8230 | $as_echo_n "(cached) " >&6 | |
8231 | else | |
8232 | lt_cv_ld_force_load=no | |
8233 | cat > conftest.c << _LT_EOF | |
8234 | int forced_loaded() { return 2;} | |
8235 | _LT_EOF | |
8236 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8237 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8238 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8239 | $AR cru libconftest.a conftest.o 2>&5 | |
8240 | cat > conftest.c << _LT_EOF | |
8241 | int main() { return 0;} | |
8242 | _LT_EOF | |
8243 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8244 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8245 | _lt_result=$? | |
8246 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8247 | lt_cv_ld_force_load=yes | |
8248 | else | |
8249 | cat conftest.err >&5 | |
8250 | fi | |
8251 | rm -f conftest.err libconftest.a conftest conftest.c | |
8252 | rm -rf conftest.dSYM | |
8253 | ||
8254 | fi | |
8255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8256 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8257 | case $host_os in | |
8258 | rhapsody* | darwin1.[012]) | |
8259 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8260 | darwin1.*) | |
8261 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8262 | darwin*) # darwin 5.x on | |
8263 | # if running on 10.5 or later, the deployment target defaults | |
8264 | # to the OS version, if on x86, and 10.4, the deployment | |
8265 | # target defaults to 10.4. Don't you love it? | |
8266 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8267 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8268 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8269 | 10.[012][,.]*) | |
8270 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8271 | 10.*) | |
8272 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8273 | esac | |
8274 | ;; | |
8275 | esac | |
8276 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8277 | _lt_dar_single_mod='$single_module' | |
8278 | fi | |
8279 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8280 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8281 | else | |
8282 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8283 | fi | |
8284 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8285 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8286 | else | |
8287 | _lt_dsymutil= | |
8288 | fi | |
8289 | ;; | |
8290 | esac | |
8291 | ||
8292 | for ac_header in dlfcn.h | |
8293 | do : | |
8294 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8295 | " | |
8296 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8297 | cat >>confdefs.h <<_ACEOF | |
8298 | #define HAVE_DLFCN_H 1 | |
8299 | _ACEOF | |
8300 | ||
8301 | fi | |
8302 | ||
8303 | done | |
8304 | ||
8305 | ||
8306 | ac_header_dirent=no | |
8307 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
8308 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
8309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
8310 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
8311 | if eval \${$as_ac_Header+:} false; then : | |
8312 | $as_echo_n "(cached) " >&6 | |
8313 | else | |
8314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8315 | /* end confdefs.h. */ | |
8316 | #include <sys/types.h> | |
8317 | #include <$ac_hdr> | |
8318 | ||
8319 | int | |
8320 | main () | |
8321 | { | |
8322 | if ((DIR *) 0) | |
8323 | return 0; | |
8324 | ; | |
8325 | return 0; | |
8326 | } | |
8327 | _ACEOF | |
8328 | if ac_fn_c_try_compile "$LINENO"; then : | |
8329 | eval "$as_ac_Header=yes" | |
8330 | else | |
8331 | eval "$as_ac_Header=no" | |
8332 | fi | |
8333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8334 | fi | |
8335 | eval ac_res=\$$as_ac_Header | |
8336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8337 | $as_echo "$ac_res" >&6; } | |
8338 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8339 | cat >>confdefs.h <<_ACEOF | |
8340 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
8341 | _ACEOF | |
8342 | ||
8343 | ac_header_dirent=$ac_hdr; break | |
8344 | fi | |
8345 | ||
8346 | done | |
8347 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
8348 | if test $ac_header_dirent = dirent.h; then | |
8349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
8350 | $as_echo_n "checking for library containing opendir... " >&6; } | |
8351 | if ${ac_cv_search_opendir+:} false; then : | |
8352 | $as_echo_n "(cached) " >&6 | |
8353 | else | |
8354 | ac_func_search_save_LIBS=$LIBS | |
8355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8356 | /* end confdefs.h. */ | |
8357 | ||
8358 | /* Override any GCC internal prototype to avoid an error. | |
8359 | Use char because int might match the return type of a GCC | |
8360 | builtin and then its argument prototype would still apply. */ | |
8361 | #ifdef __cplusplus | |
8362 | extern "C" | |
8363 | #endif | |
8364 | char opendir (); | |
8365 | int | |
8366 | main () | |
8367 | { | |
8368 | return opendir (); | |
8369 | ; | |
8370 | return 0; | |
8371 | } | |
8372 | _ACEOF | |
8373 | for ac_lib in '' dir; do | |
8374 | if test -z "$ac_lib"; then | |
8375 | ac_res="none required" | |
8376 | else | |
8377 | ac_res=-l$ac_lib | |
8378 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8379 | fi | |
8380 | if ac_fn_c_try_link "$LINENO"; then : | |
8381 | ac_cv_search_opendir=$ac_res | |
8382 | fi | |
8383 | rm -f core conftest.err conftest.$ac_objext \ | |
8384 | conftest$ac_exeext | |
8385 | if ${ac_cv_search_opendir+:} false; then : | |
8386 | break | |
8387 | fi | |
8388 | done | |
8389 | if ${ac_cv_search_opendir+:} false; then : | |
8390 | ||
8391 | else | |
8392 | ac_cv_search_opendir=no | |
8393 | fi | |
8394 | rm conftest.$ac_ext | |
8395 | LIBS=$ac_func_search_save_LIBS | |
8396 | fi | |
8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
8398 | $as_echo "$ac_cv_search_opendir" >&6; } | |
8399 | ac_res=$ac_cv_search_opendir | |
8400 | if test "$ac_res" != no; then : | |
8401 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
8402 | ||
8403 | fi | |
8404 | ||
8405 | else | |
8406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
8407 | $as_echo_n "checking for library containing opendir... " >&6; } | |
8408 | if ${ac_cv_search_opendir+:} false; then : | |
8409 | $as_echo_n "(cached) " >&6 | |
8410 | else | |
8411 | ac_func_search_save_LIBS=$LIBS | |
8412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8413 | /* end confdefs.h. */ | |
8414 | ||
8415 | /* Override any GCC internal prototype to avoid an error. | |
8416 | Use char because int might match the return type of a GCC | |
8417 | builtin and then its argument prototype would still apply. */ | |
8418 | #ifdef __cplusplus | |
8419 | extern "C" | |
8420 | #endif | |
8421 | char opendir (); | |
8422 | int | |
8423 | main () | |
8424 | { | |
8425 | return opendir (); | |
8426 | ; | |
8427 | return 0; | |
8428 | } | |
8429 | _ACEOF | |
8430 | for ac_lib in '' x; do | |
8431 | if test -z "$ac_lib"; then | |
8432 | ac_res="none required" | |
8433 | else | |
8434 | ac_res=-l$ac_lib | |
8435 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8436 | fi | |
8437 | if ac_fn_c_try_link "$LINENO"; then : | |
8438 | ac_cv_search_opendir=$ac_res | |
8439 | fi | |
8440 | rm -f core conftest.err conftest.$ac_objext \ | |
8441 | conftest$ac_exeext | |
8442 | if ${ac_cv_search_opendir+:} false; then : | |
8443 | break | |
8444 | fi | |
8445 | done | |
8446 | if ${ac_cv_search_opendir+:} false; then : | |
8447 | ||
8448 | else | |
8449 | ac_cv_search_opendir=no | |
8450 | fi | |
8451 | rm conftest.$ac_ext | |
8452 | LIBS=$ac_func_search_save_LIBS | |
8453 | fi | |
8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
8455 | $as_echo "$ac_cv_search_opendir" >&6; } | |
8456 | ac_res=$ac_cv_search_opendir | |
8457 | if test "$ac_res" != no; then : | |
8458 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
8459 | ||
8460 | fi | |
8461 | ||
8462 | fi | |
8463 | ||
8464 | ||
8465 | ||
8466 | ||
8467 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | |
8468 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | |
8469 | ||
8470 | cat >>confdefs.h <<_ACEOF | |
8471 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
8472 | _ACEOF | |
8473 | ||
8474 | ||
8475 | $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h | |
8476 | ||
8477 | fi | |
8478 | ||
8479 | ||
8480 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | |
8481 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | |
8482 | ||
8483 | cat >>confdefs.h <<_ACEOF | |
8484 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
8485 | _ACEOF | |
8486 | ||
8487 | ||
8488 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h | |
8489 | ||
8490 | else | |
8491 | case " $LIBOBJS " in | |
8492 | *" fileblocks.$ac_objext "* ) ;; | |
8493 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | |
8494 | ;; | |
8495 | esac | |
8496 | ||
8497 | fi | |
8498 | ||
8499 | ||
8500 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
8501 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : | |
8502 | ||
8503 | cat >>confdefs.h <<_ACEOF | |
8504 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
8505 | _ACEOF | |
8506 | ||
8507 | ||
8508 | $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h | |
8509 | ||
8510 | fi | |
8511 | ||
8512 | ||
8513 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | |
8514 | #include <$ac_cv_struct_tm> | |
8515 | ||
8516 | " | |
8517 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | |
8518 | ||
8519 | cat >>confdefs.h <<_ACEOF | |
8520 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
8521 | _ACEOF | |
8522 | ||
8523 | ||
8524 | fi | |
8525 | ||
8526 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
8527 | ||
8528 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | |
8529 | ||
8530 | else | |
8531 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | |
8532 | " | |
8533 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | |
8534 | ac_have_decl=1 | |
8535 | else | |
8536 | ac_have_decl=0 | |
8537 | fi | |
8538 | ||
8539 | cat >>confdefs.h <<_ACEOF | |
8540 | #define HAVE_DECL_TZNAME $ac_have_decl | |
8541 | _ACEOF | |
8542 | ||
8543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | |
8544 | $as_echo_n "checking for tzname... " >&6; } | |
8545 | if ${ac_cv_var_tzname+:} false; then : | |
8546 | $as_echo_n "(cached) " >&6 | |
8547 | else | |
8548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8549 | /* end confdefs.h. */ | |
8550 | #include <time.h> | |
a48ff3ef MF |
8551 | #if !HAVE_DECL_TZNAME |
8552 | extern char *tzname[]; | |
8553 | #endif | |
b5689863 MF |
8554 | |
8555 | int | |
8556 | main () | |
8557 | { | |
8558 | return tzname[0][0]; | |
8559 | ; | |
8560 | return 0; | |
8561 | } | |
8562 | _ACEOF | |
8563 | if ac_fn_c_try_link "$LINENO"; then : | |
8564 | ac_cv_var_tzname=yes | |
8565 | else | |
8566 | ac_cv_var_tzname=no | |
8567 | fi | |
8568 | rm -f core conftest.err conftest.$ac_objext \ | |
8569 | conftest$ac_exeext conftest.$ac_ext | |
8570 | fi | |
8571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | |
8572 | $as_echo "$ac_cv_var_tzname" >&6; } | |
8573 | if test $ac_cv_var_tzname = yes; then | |
8574 | ||
8575 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | |
8576 | ||
8577 | fi | |
8578 | fi | |
8579 | ||
8580 | ||
8581 | ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H | |
8582 | #include <sys/types.h> | |
8583 | #endif | |
8584 | #ifdef HAVE_SYS_STAT_H | |
8585 | #include <sys/stat.h> | |
8586 | #endif | |
8587 | " | |
8588 | if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then : | |
8589 | ||
8590 | cat >>confdefs.h <<_ACEOF | |
8591 | #define HAVE_STRUCT_STAT_ST_DEV 1 | |
8592 | _ACEOF | |
8593 | ||
8594 | ||
8595 | fi | |
8596 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H | |
8597 | #include <sys/types.h> | |
8598 | #endif | |
8599 | #ifdef HAVE_SYS_STAT_H | |
8600 | #include <sys/stat.h> | |
8601 | #endif | |
8602 | " | |
8603 | if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then : | |
8604 | ||
8605 | cat >>confdefs.h <<_ACEOF | |
8606 | #define HAVE_STRUCT_STAT_ST_INO 1 | |
8607 | _ACEOF | |
8608 | ||
8609 | ||
8610 | fi | |
8611 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H | |
8612 | #include <sys/types.h> | |
8613 | #endif | |
8614 | #ifdef HAVE_SYS_STAT_H | |
8615 | #include <sys/stat.h> | |
8616 | #endif | |
8617 | " | |
8618 | if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then : | |
8619 | ||
8620 | cat >>confdefs.h <<_ACEOF | |
8621 | #define HAVE_STRUCT_STAT_ST_MODE 1 | |
8622 | _ACEOF | |
8623 | ||
8624 | ||
8625 | fi | |
8626 | ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H | |
8627 | #include <sys/types.h> | |
8628 | #endif | |
8629 | #ifdef HAVE_SYS_STAT_H | |
8630 | #include <sys/stat.h> | |
8631 | #endif | |
8632 | " | |
8633 | if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then : | |
8634 | ||
8635 | cat >>confdefs.h <<_ACEOF | |
8636 | #define HAVE_STRUCT_STAT_ST_NLINK 1 | |
8637 | _ACEOF | |
8638 | ||
8639 | ||
8640 | fi | |
8641 | ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H | |
8642 | #include <sys/types.h> | |
8643 | #endif | |
8644 | #ifdef HAVE_SYS_STAT_H | |
8645 | #include <sys/stat.h> | |
8646 | #endif | |
8647 | " | |
8648 | if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then : | |
8649 | ||
8650 | cat >>confdefs.h <<_ACEOF | |
8651 | #define HAVE_STRUCT_STAT_ST_UID 1 | |
8652 | _ACEOF | |
8653 | ||
8654 | ||
8655 | fi | |
8656 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H | |
8657 | #include <sys/types.h> | |
8658 | #endif | |
8659 | #ifdef HAVE_SYS_STAT_H | |
8660 | #include <sys/stat.h> | |
8661 | #endif | |
8662 | " | |
8663 | if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then : | |
8664 | ||
8665 | cat >>confdefs.h <<_ACEOF | |
8666 | #define HAVE_STRUCT_STAT_ST_GID 1 | |
8667 | _ACEOF | |
8668 | ||
8669 | ||
8670 | fi | |
8671 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H | |
8672 | #include <sys/types.h> | |
8673 | #endif | |
8674 | #ifdef HAVE_SYS_STAT_H | |
8675 | #include <sys/stat.h> | |
8676 | #endif | |
8677 | " | |
8678 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : | |
8679 | ||
8680 | cat >>confdefs.h <<_ACEOF | |
8681 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
8682 | _ACEOF | |
8683 | ||
8684 | ||
8685 | fi | |
8686 | ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H | |
8687 | #include <sys/types.h> | |
8688 | #endif | |
8689 | #ifdef HAVE_SYS_STAT_H | |
8690 | #include <sys/stat.h> | |
8691 | #endif | |
8692 | " | |
8693 | if test "x$ac_cv_member_struct_stat_st_size" = xyes; then : | |
8694 | ||
8695 | cat >>confdefs.h <<_ACEOF | |
8696 | #define HAVE_STRUCT_STAT_ST_SIZE 1 | |
8697 | _ACEOF | |
8698 | ||
8699 | ||
8700 | fi | |
8701 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H | |
8702 | #include <sys/types.h> | |
8703 | #endif | |
8704 | #ifdef HAVE_SYS_STAT_H | |
8705 | #include <sys/stat.h> | |
8706 | #endif | |
8707 | " | |
8708 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | |
8709 | ||
8710 | cat >>confdefs.h <<_ACEOF | |
8711 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
8712 | _ACEOF | |
8713 | ||
8714 | ||
8715 | fi | |
8716 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H | |
8717 | #include <sys/types.h> | |
8718 | #endif | |
8719 | #ifdef HAVE_SYS_STAT_H | |
8720 | #include <sys/stat.h> | |
8721 | #endif | |
8722 | " | |
8723 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | |
8724 | ||
8725 | cat >>confdefs.h <<_ACEOF | |
8726 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
8727 | _ACEOF | |
8728 | ||
8729 | ||
8730 | fi | |
8731 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H | |
8732 | #include <sys/types.h> | |
8733 | #endif | |
8734 | #ifdef HAVE_SYS_STAT_H | |
8735 | #include <sys/stat.h> | |
8736 | #endif | |
8737 | " | |
8738 | if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then : | |
8739 | ||
8740 | cat >>confdefs.h <<_ACEOF | |
8741 | #define HAVE_STRUCT_STAT_ST_ATIME 1 | |
8742 | _ACEOF | |
8743 | ||
8744 | ||
8745 | fi | |
8746 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H | |
8747 | #include <sys/types.h> | |
8748 | #endif | |
8749 | #ifdef HAVE_SYS_STAT_H | |
8750 | #include <sys/stat.h> | |
8751 | #endif | |
8752 | " | |
8753 | if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then : | |
8754 | ||
8755 | cat >>confdefs.h <<_ACEOF | |
8756 | #define HAVE_STRUCT_STAT_ST_MTIME 1 | |
8757 | _ACEOF | |
8758 | ||
8759 | ||
8760 | fi | |
8761 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H | |
8762 | #include <sys/types.h> | |
8763 | #endif | |
8764 | #ifdef HAVE_SYS_STAT_H | |
8765 | #include <sys/stat.h> | |
8766 | #endif | |
8767 | " | |
8768 | if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then : | |
8769 | ||
8770 | cat >>confdefs.h <<_ACEOF | |
8771 | #define HAVE_STRUCT_STAT_ST_CTIME 1 | |
8772 | _ACEOF | |
8773 | ||
8774 | ||
8775 | fi | |
8776 | ||
8777 | ||
8778 | ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default" | |
8779 | if test "x$ac_cv_type___int128" = xyes; then : | |
8780 | ||
8781 | cat >>confdefs.h <<_ACEOF | |
8782 | #define HAVE___INT128 1 | |
8783 | _ACEOF | |
8784 | ||
8785 | ||
8786 | fi | |
8787 | ||
8788 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | |
8789 | #include <sys/socket.h> | |
8790 | ||
8791 | " | |
8792 | if test "x$ac_cv_type_socklen_t" = xyes; then : | |
8793 | ||
8794 | cat >>confdefs.h <<_ACEOF | |
8795 | #define HAVE_SOCKLEN_T 1 | |
8796 | _ACEOF | |
8797 | ||
8798 | ||
8799 | fi | |
8800 | ||
8801 | ||
8802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 | |
8803 | $as_echo_n "checking type of array argument to getgroups... " >&6; } | |
8804 | if ${ac_cv_type_getgroups+:} false; then : | |
8805 | $as_echo_n "(cached) " >&6 | |
8806 | else | |
8807 | if test "$cross_compiling" = yes; then : | |
8808 | ac_cv_type_getgroups=cross | |
8809 | else | |
8810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8811 | /* end confdefs.h. */ | |
8812 | /* Thanks to Mike Rendell for this test. */ | |
8813 | $ac_includes_default | |
8814 | #define NGID 256 | |
8815 | #undef MAX | |
8816 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
8817 | ||
8818 | int | |
8819 | main () | |
8820 | { | |
8821 | gid_t gidset[NGID]; | |
8822 | int i, n; | |
8823 | union { gid_t gval; long int lval; } val; | |
8824 | ||
8825 | val.lval = -1; | |
8826 | for (i = 0; i < NGID; i++) | |
8827 | gidset[i] = val.gval; | |
8828 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
8829 | gidset); | |
8830 | /* Exit non-zero if getgroups seems to require an array of ints. This | |
8831 | happens when gid_t is short int but getgroups modifies an array | |
8832 | of ints. */ | |
8833 | return n > 0 && gidset[n] != val.gval; | |
8834 | } | |
8835 | _ACEOF | |
8836 | if ac_fn_c_try_run "$LINENO"; then : | |
8837 | ac_cv_type_getgroups=gid_t | |
8838 | else | |
8839 | ac_cv_type_getgroups=int | |
8840 | fi | |
8841 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8842 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8843 | fi | |
8844 | ||
8845 | if test $ac_cv_type_getgroups = cross; then | |
8846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8847 | /* end confdefs.h. */ | |
8848 | #include <unistd.h> | |
8849 | ||
8850 | _ACEOF | |
8851 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8852 | $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : | |
8853 | ac_cv_type_getgroups=gid_t | |
8854 | else | |
8855 | ac_cv_type_getgroups=int | |
8856 | fi | |
8857 | rm -f conftest* | |
8858 | ||
8859 | fi | |
8860 | fi | |
8861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 | |
8862 | $as_echo "$ac_cv_type_getgroups" >&6; } | |
8863 | ||
8864 | cat >>confdefs.h <<_ACEOF | |
8865 | #define GETGROUPS_T $ac_cv_type_getgroups | |
8866 | _ACEOF | |
8867 | ||
8868 | ||
8869 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
8870 | if test "x$ac_cv_type_mode_t" = xyes; then : | |
8871 | ||
8872 | else | |
8873 | ||
8874 | cat >>confdefs.h <<_ACEOF | |
8875 | #define mode_t int | |
8876 | _ACEOF | |
8877 | ||
8878 | fi | |
8879 | ||
8880 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | |
8881 | if test "x$ac_cv_type_off_t" = xyes; then : | |
8882 | ||
8883 | else | |
8884 | ||
8885 | cat >>confdefs.h <<_ACEOF | |
8886 | #define off_t long int | |
8887 | _ACEOF | |
8888 | ||
8889 | fi | |
8890 | ||
8891 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | |
8892 | if test "x$ac_cv_type_pid_t" = xyes; then : | |
8893 | ||
8894 | else | |
8895 | ||
8896 | cat >>confdefs.h <<_ACEOF | |
8897 | #define pid_t int | |
8898 | _ACEOF | |
8899 | ||
8900 | fi | |
8901 | ||
8902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
8903 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
8904 | if ${ac_cv_type_signal+:} false; then : | |
8905 | $as_echo_n "(cached) " >&6 | |
8906 | else | |
8907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8908 | /* end confdefs.h. */ | |
8909 | #include <sys/types.h> | |
8910 | #include <signal.h> | |
8911 | ||
8912 | int | |
8913 | main () | |
8914 | { | |
8915 | return *(signal (0, 0)) (0) == 1; | |
8916 | ; | |
8917 | return 0; | |
8918 | } | |
8919 | _ACEOF | |
8920 | if ac_fn_c_try_compile "$LINENO"; then : | |
8921 | ac_cv_type_signal=int | |
8922 | else | |
8923 | ac_cv_type_signal=void | |
8924 | fi | |
8925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8926 | fi | |
8927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 | |
8928 | $as_echo "$ac_cv_type_signal" >&6; } | |
8929 | ||
8930 | cat >>confdefs.h <<_ACEOF | |
8931 | #define RETSIGTYPE $ac_cv_type_signal | |
8932 | _ACEOF | |
8933 | ||
8934 | ||
8935 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
8936 | if test "x$ac_cv_type_size_t" = xyes; then : | |
8937 | ||
8938 | else | |
8939 | ||
8940 | cat >>confdefs.h <<_ACEOF | |
8941 | #define size_t unsigned int | |
8942 | _ACEOF | |
8943 | ||
8944 | fi | |
8945 | ||
8946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
8947 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
8948 | if ${ac_cv_type_uid_t+:} false; then : | |
8949 | $as_echo_n "(cached) " >&6 | |
8950 | else | |
8951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8952 | /* end confdefs.h. */ | |
8953 | #include <sys/types.h> | |
8954 | ||
8955 | _ACEOF | |
8956 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8957 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
8958 | ac_cv_type_uid_t=yes | |
8959 | else | |
8960 | ac_cv_type_uid_t=no | |
8961 | fi | |
8962 | rm -f conftest* | |
8963 | ||
8964 | fi | |
8965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | |
8966 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
8967 | if test $ac_cv_type_uid_t = no; then | |
8968 | ||
8969 | $as_echo "#define uid_t int" >>confdefs.h | |
8970 | ||
8971 | ||
8972 | $as_echo "#define gid_t int" >>confdefs.h | |
8973 | ||
8974 | fi | |
8975 | ||
8976 | ||
b5689863 MF |
8977 | |
8978 | ||
8979 | ||
8980 | ||
8981 | # Set options | |
b5689863 MF |
8982 | |
8983 | ||
8984 | ||
89cf99a9 MF |
8985 | enable_dlopen=no |
8986 | ||
b5689863 MF |
8987 | |
8988 | enable_win32_dll=no | |
8989 | ||
8990 | ||
8991 | # Check whether --enable-shared was given. | |
8992 | if test "${enable_shared+set}" = set; then : | |
8993 | enableval=$enable_shared; p=${PACKAGE-default} | |
8994 | case $enableval in | |
8995 | yes) enable_shared=yes ;; | |
8996 | no) enable_shared=no ;; | |
8997 | *) | |
8998 | enable_shared=no | |
8999 | # Look at the argument we got. We use all the common list separators. | |
9000 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9001 | for pkg in $enableval; do | |
9002 | IFS="$lt_save_ifs" | |
9003 | if test "X$pkg" = "X$p"; then | |
9004 | enable_shared=yes | |
9005 | fi | |
9006 | done | |
9007 | IFS="$lt_save_ifs" | |
9008 | ;; | |
9009 | esac | |
9010 | else | |
9011 | enable_shared=yes | |
9012 | fi | |
9013 | ||
9014 | ||
9015 | ||
9016 | ||
9017 | ||
9018 | ||
9019 | ||
9020 | ||
9021 | ||
9022 | # Check whether --enable-static was given. | |
9023 | if test "${enable_static+set}" = set; then : | |
9024 | enableval=$enable_static; p=${PACKAGE-default} | |
9025 | case $enableval in | |
9026 | yes) enable_static=yes ;; | |
9027 | no) enable_static=no ;; | |
9028 | *) | |
9029 | enable_static=no | |
9030 | # Look at the argument we got. We use all the common list separators. | |
9031 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9032 | for pkg in $enableval; do | |
9033 | IFS="$lt_save_ifs" | |
9034 | if test "X$pkg" = "X$p"; then | |
9035 | enable_static=yes | |
9036 | fi | |
9037 | done | |
9038 | IFS="$lt_save_ifs" | |
9039 | ;; | |
9040 | esac | |
9041 | else | |
9042 | enable_static=yes | |
9043 | fi | |
9044 | ||
9045 | ||
9046 | ||
9047 | ||
9048 | ||
9049 | ||
9050 | ||
9051 | ||
9052 | ||
9053 | ||
9054 | # Check whether --with-pic was given. | |
9055 | if test "${with_pic+set}" = set; then : | |
9056 | withval=$with_pic; pic_mode="$withval" | |
9057 | else | |
9058 | pic_mode=default | |
9059 | fi | |
9060 | ||
9061 | ||
9062 | test -z "$pic_mode" && pic_mode=default | |
9063 | ||
9064 | ||
9065 | ||
9066 | ||
9067 | ||
9068 | ||
9069 | ||
9070 | # Check whether --enable-fast-install was given. | |
9071 | if test "${enable_fast_install+set}" = set; then : | |
9072 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
9073 | case $enableval in | |
9074 | yes) enable_fast_install=yes ;; | |
9075 | no) enable_fast_install=no ;; | |
9076 | *) | |
9077 | enable_fast_install=no | |
9078 | # Look at the argument we got. We use all the common list separators. | |
9079 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9080 | for pkg in $enableval; do | |
9081 | IFS="$lt_save_ifs" | |
9082 | if test "X$pkg" = "X$p"; then | |
9083 | enable_fast_install=yes | |
9084 | fi | |
9085 | done | |
9086 | IFS="$lt_save_ifs" | |
9087 | ;; | |
9088 | esac | |
9089 | else | |
9090 | enable_fast_install=yes | |
9091 | fi | |
9092 | ||
9093 | ||
9094 | ||
9095 | ||
9096 | ||
9097 | ||
9098 | ||
9099 | ||
9100 | ||
9101 | ||
9102 | ||
9103 | # This can be used to rebuild libtool when needed | |
9104 | LIBTOOL_DEPS="$ltmain" | |
9105 | ||
9106 | # Always use our own libtool. | |
9107 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9108 | ||
9109 | ||
9110 | ||
9111 | ||
9112 | ||
9113 | ||
9114 | ||
9115 | ||
9116 | ||
9117 | ||
9118 | ||
9119 | ||
9120 | ||
9121 | ||
9122 | ||
9123 | ||
9124 | ||
9125 | ||
9126 | ||
9127 | ||
9128 | ||
9129 | ||
9130 | ||
9131 | ||
9132 | ||
9133 | ||
9134 | test -z "$LN_S" && LN_S="ln -s" | |
9135 | ||
9136 | ||
9137 | ||
9138 | ||
9139 | ||
9140 | ||
9141 | ||
9142 | ||
9143 | ||
9144 | ||
9145 | ||
9146 | ||
9147 | ||
9148 | ||
9149 | if test -n "${ZSH_VERSION+set}" ; then | |
9150 | setopt NO_GLOB_SUBST | |
9151 | fi | |
9152 | ||
9153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
9154 | $as_echo_n "checking for objdir... " >&6; } | |
9155 | if ${lt_cv_objdir+:} false; then : | |
9156 | $as_echo_n "(cached) " >&6 | |
9157 | else | |
9158 | rm -f .libs 2>/dev/null | |
9159 | mkdir .libs 2>/dev/null | |
9160 | if test -d .libs; then | |
9161 | lt_cv_objdir=.libs | |
9162 | else | |
9163 | # MS-DOS does not allow filenames that begin with a dot. | |
9164 | lt_cv_objdir=_libs | |
9165 | fi | |
9166 | rmdir .libs 2>/dev/null | |
9167 | fi | |
9168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
9169 | $as_echo "$lt_cv_objdir" >&6; } | |
9170 | objdir=$lt_cv_objdir | |
9171 | ||
9172 | ||
9173 | ||
9174 | ||
9175 | ||
9176 | cat >>confdefs.h <<_ACEOF | |
9177 | #define LT_OBJDIR "$lt_cv_objdir/" | |
9178 | _ACEOF | |
9179 | ||
9180 | ||
9181 | ||
9182 | ||
9183 | case $host_os in | |
9184 | aix3*) | |
9185 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9186 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9187 | # vanish in a puff of smoke. | |
9188 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
9189 | COLLECT_NAMES= | |
9190 | export COLLECT_NAMES | |
9191 | fi | |
9192 | ;; | |
9193 | esac | |
9194 | ||
9195 | # Global variables: | |
9196 | ofile=libtool | |
9197 | can_build_shared=yes | |
9198 | ||
9199 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
9200 | # which needs '.lib'). | |
9201 | libext=a | |
9202 | ||
9203 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
9204 | ||
9205 | old_CC="$CC" | |
9206 | old_CFLAGS="$CFLAGS" | |
9207 | ||
9208 | # Set sane defaults for various variables | |
9209 | test -z "$CC" && CC=cc | |
9210 | test -z "$LTCC" && LTCC=$CC | |
9211 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9212 | test -z "$LD" && LD=ld | |
9213 | test -z "$ac_objext" && ac_objext=o | |
9214 | ||
9215 | for cc_temp in $compiler""; do | |
9216 | case $cc_temp in | |
9217 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9218 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9219 | \-*) ;; | |
9220 | *) break;; | |
9221 | esac | |
9222 | done | |
9223 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
9224 | ||
9225 | ||
9226 | # Only perform the check for file, if the check method requires it | |
9227 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9228 | case $deplibs_check_method in | |
9229 | file_magic*) | |
9230 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
9231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
9232 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
9233 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9234 | $as_echo_n "(cached) " >&6 | |
9235 | else | |
9236 | case $MAGIC_CMD in | |
9237 | [\\/*] | ?:[\\/]*) | |
9238 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9239 | ;; | |
9240 | *) | |
9241 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9242 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9243 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9244 | for ac_dir in $ac_dummy; do | |
9245 | IFS="$lt_save_ifs" | |
9246 | test -z "$ac_dir" && ac_dir=. | |
9247 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9248 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9249 | if test -n "$file_magic_test_file"; then | |
9250 | case $deplibs_check_method in | |
9251 | "file_magic "*) | |
9252 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9253 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9254 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9255 | $EGREP "$file_magic_regex" > /dev/null; then | |
9256 | : | |
9257 | else | |
9258 | cat <<_LT_EOF 1>&2 | |
9259 | ||
9260 | *** Warning: the command libtool uses to detect shared libraries, | |
9261 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9262 | *** The result is that libtool may fail to recognize shared libraries | |
9263 | *** as such. This will affect the creation of libtool libraries that | |
9264 | *** depend on shared libraries, but programs linked with such libtool | |
9265 | *** libraries will work regardless of this problem. Nevertheless, you | |
9266 | *** may want to report the problem to your system manager and/or to | |
9267 | *** bug-libtool@gnu.org | |
9268 | ||
9269 | _LT_EOF | |
9270 | fi ;; | |
9271 | esac | |
9272 | fi | |
9273 | break | |
9274 | fi | |
9275 | done | |
9276 | IFS="$lt_save_ifs" | |
9277 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9278 | ;; | |
9279 | esac | |
9280 | fi | |
9281 | ||
9282 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9283 | if test -n "$MAGIC_CMD"; then | |
9284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9285 | $as_echo "$MAGIC_CMD" >&6; } | |
9286 | else | |
9287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9288 | $as_echo "no" >&6; } | |
9289 | fi | |
9290 | ||
9291 | ||
9292 | ||
9293 | ||
9294 | ||
9295 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9296 | if test -n "$ac_tool_prefix"; then | |
9297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
9298 | $as_echo_n "checking for file... " >&6; } | |
9299 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9300 | $as_echo_n "(cached) " >&6 | |
9301 | else | |
9302 | case $MAGIC_CMD in | |
9303 | [\\/*] | ?:[\\/]*) | |
9304 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9305 | ;; | |
9306 | *) | |
9307 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9308 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9309 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9310 | for ac_dir in $ac_dummy; do | |
9311 | IFS="$lt_save_ifs" | |
9312 | test -z "$ac_dir" && ac_dir=. | |
9313 | if test -f $ac_dir/file; then | |
9314 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9315 | if test -n "$file_magic_test_file"; then | |
9316 | case $deplibs_check_method in | |
9317 | "file_magic "*) | |
9318 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9319 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9320 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9321 | $EGREP "$file_magic_regex" > /dev/null; then | |
9322 | : | |
9323 | else | |
9324 | cat <<_LT_EOF 1>&2 | |
9325 | ||
9326 | *** Warning: the command libtool uses to detect shared libraries, | |
9327 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9328 | *** The result is that libtool may fail to recognize shared libraries | |
9329 | *** as such. This will affect the creation of libtool libraries that | |
9330 | *** depend on shared libraries, but programs linked with such libtool | |
9331 | *** libraries will work regardless of this problem. Nevertheless, you | |
9332 | *** may want to report the problem to your system manager and/or to | |
9333 | *** bug-libtool@gnu.org | |
9334 | ||
9335 | _LT_EOF | |
9336 | fi ;; | |
9337 | esac | |
9338 | fi | |
9339 | break | |
9340 | fi | |
9341 | done | |
9342 | IFS="$lt_save_ifs" | |
9343 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9344 | ;; | |
9345 | esac | |
9346 | fi | |
9347 | ||
9348 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9349 | if test -n "$MAGIC_CMD"; then | |
9350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9351 | $as_echo "$MAGIC_CMD" >&6; } | |
9352 | else | |
9353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9354 | $as_echo "no" >&6; } | |
9355 | fi | |
9356 | ||
9357 | ||
9358 | else | |
9359 | MAGIC_CMD=: | |
9360 | fi | |
9361 | fi | |
9362 | ||
9363 | fi | |
9364 | ;; | |
9365 | esac | |
9366 | ||
9367 | # Use C for the default configuration in the libtool script | |
9368 | ||
9369 | lt_save_CC="$CC" | |
9370 | ac_ext=c | |
9371 | ac_cpp='$CPP $CPPFLAGS' | |
9372 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9373 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9374 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9375 | ||
9376 | ||
9377 | # Source file extension for C test sources. | |
9378 | ac_ext=c | |
9379 | ||
9380 | # Object file extension for compiled C test sources. | |
9381 | objext=o | |
9382 | objext=$objext | |
9383 | ||
9384 | # Code to be used in simple compile tests | |
9385 | lt_simple_compile_test_code="int some_variable = 0;" | |
9386 | ||
9387 | # Code to be used in simple link tests | |
9388 | lt_simple_link_test_code='int main(){return(0);}' | |
9389 | ||
9390 | ||
9391 | ||
9392 | ||
9393 | ||
9394 | ||
9395 | ||
9396 | # If no C compiler was specified, use CC. | |
9397 | LTCC=${LTCC-"$CC"} | |
9398 | ||
9399 | # If no C compiler flags were specified, use CFLAGS. | |
9400 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9401 | ||
9402 | # Allow CC to be a program name with arguments. | |
9403 | compiler=$CC | |
9404 | ||
9405 | # Save the default compiler, since it gets overwritten when the other | |
9406 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9407 | compiler_DEFAULT=$CC | |
9408 | ||
9409 | # save warnings/boilerplate of simple test code | |
9410 | ac_outfile=conftest.$ac_objext | |
9411 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9412 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9413 | _lt_compiler_boilerplate=`cat conftest.err` | |
9414 | $RM conftest* | |
9415 | ||
9416 | ac_outfile=conftest.$ac_objext | |
9417 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9418 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9419 | _lt_linker_boilerplate=`cat conftest.err` | |
9420 | $RM -r conftest* | |
9421 | ||
9422 | ||
9423 | ## CAVEAT EMPTOR: | |
9424 | ## There is no encapsulation within the following macros, do not change | |
9425 | ## the running order or otherwise move them around unless you know exactly | |
9426 | ## what you are doing... | |
9427 | if test -n "$compiler"; then | |
9428 | ||
9429 | lt_prog_compiler_no_builtin_flag= | |
9430 | ||
9431 | if test "$GCC" = yes; then | |
9432 | case $cc_basename in | |
9433 | nvcc*) | |
9434 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9435 | *) | |
9436 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9437 | esac | |
9438 | ||
9439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
9440 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9441 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
9442 | $as_echo_n "(cached) " >&6 | |
9443 | else | |
9444 | lt_cv_prog_compiler_rtti_exceptions=no | |
9445 | ac_outfile=conftest.$ac_objext | |
9446 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9447 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9448 | # Insert the option either (1) after the last *FLAGS variable, or | |
9449 | # (2) before a word containing "conftest.", or (3) at the end. | |
9450 | # Note that $ac_compile itself does not contain backslashes and begins | |
9451 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9452 | # The option is referenced via a variable to avoid confusing sed. | |
9453 | lt_compile=`echo "$ac_compile" | $SED \ | |
9454 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9455 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9456 | -e 's:$: $lt_compiler_flag:'` | |
9457 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9458 | (eval "$lt_compile" 2>conftest.err) | |
9459 | ac_status=$? | |
9460 | cat conftest.err >&5 | |
9461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9462 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9463 | # The compiler can only warn and ignore the option if not recognized | |
9464 | # So say no if there are warnings other than the usual output. | |
9465 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9466 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9467 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9468 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9469 | fi | |
9470 | fi | |
9471 | $RM conftest* | |
9472 | ||
9473 | fi | |
9474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9475 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9476 | ||
9477 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9478 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9479 | else | |
9480 | : | |
9481 | fi | |
9482 | ||
9483 | fi | |
9484 | ||
9485 | ||
9486 | ||
9487 | ||
9488 | ||
9489 | ||
9490 | lt_prog_compiler_wl= | |
9491 | lt_prog_compiler_pic= | |
9492 | lt_prog_compiler_static= | |
9493 | ||
9494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
9495 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9496 | ||
9497 | if test "$GCC" = yes; then | |
9498 | lt_prog_compiler_wl='-Wl,' | |
9499 | lt_prog_compiler_static='-static' | |
9500 | ||
9501 | case $host_os in | |
9502 | aix*) | |
9503 | # All AIX code is PIC. | |
9504 | if test "$host_cpu" = ia64; then | |
9505 | # AIX 5 now supports IA64 processor | |
9506 | lt_prog_compiler_static='-Bstatic' | |
9507 | fi | |
9508 | lt_prog_compiler_pic='-fPIC' | |
9509 | ;; | |
9510 | ||
9511 | amigaos*) | |
9512 | case $host_cpu in | |
9513 | powerpc) | |
9514 | # see comment about AmigaOS4 .so support | |
9515 | lt_prog_compiler_pic='-fPIC' | |
9516 | ;; | |
9517 | m68k) | |
9518 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9519 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9520 | # like `-m68040'. | |
9521 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9522 | ;; | |
9523 | esac | |
9524 | ;; | |
9525 | ||
9526 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9527 | # PIC is the default for these OSes. | |
9528 | ;; | |
9529 | ||
9530 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9531 | # This hack is so that the source file can tell whether it is being | |
9532 | # built for inclusion in a dll (and should export symbols for example). | |
9533 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9534 | # (--disable-auto-import) libraries | |
9535 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9536 | ;; | |
9537 | ||
9538 | darwin* | rhapsody*) | |
9539 | # PIC is the default on this platform | |
9540 | # Common symbols not allowed in MH_DYLIB files | |
9541 | lt_prog_compiler_pic='-fno-common' | |
9542 | ;; | |
9543 | ||
9544 | haiku*) | |
9545 | # PIC is the default for Haiku. | |
9546 | # The "-static" flag exists, but is broken. | |
9547 | lt_prog_compiler_static= | |
9548 | ;; | |
9549 | ||
9550 | hpux*) | |
9551 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9552 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9553 | # sets the default TLS model and affects inlining. | |
9554 | case $host_cpu in | |
9555 | hppa*64*) | |
9556 | # +Z the default | |
9557 | ;; | |
9558 | *) | |
9559 | lt_prog_compiler_pic='-fPIC' | |
9560 | ;; | |
9561 | esac | |
9562 | ;; | |
9563 | ||
9564 | interix[3-9]*) | |
9565 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9566 | # Instead, we relocate shared libraries at runtime. | |
9567 | ;; | |
9568 | ||
9569 | msdosdjgpp*) | |
9570 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9571 | # on systems that don't support them. | |
9572 | lt_prog_compiler_can_build_shared=no | |
9573 | enable_shared=no | |
9574 | ;; | |
9575 | ||
9576 | *nto* | *qnx*) | |
9577 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9578 | # it will coredump. | |
9579 | lt_prog_compiler_pic='-fPIC -shared' | |
9580 | ;; | |
9581 | ||
9582 | sysv4*MP*) | |
9583 | if test -d /usr/nec; then | |
9584 | lt_prog_compiler_pic=-Kconform_pic | |
9585 | fi | |
9586 | ;; | |
9587 | ||
9588 | *) | |
9589 | lt_prog_compiler_pic='-fPIC' | |
9590 | ;; | |
9591 | esac | |
9592 | ||
9593 | case $cc_basename in | |
9594 | nvcc*) # Cuda Compiler Driver 2.2 | |
9595 | lt_prog_compiler_wl='-Xlinker ' | |
9596 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9597 | ;; | |
9598 | esac | |
9599 | else | |
9600 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9601 | case $host_os in | |
9602 | aix*) | |
9603 | lt_prog_compiler_wl='-Wl,' | |
9604 | if test "$host_cpu" = ia64; then | |
9605 | # AIX 5 now supports IA64 processor | |
9606 | lt_prog_compiler_static='-Bstatic' | |
9607 | else | |
9608 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9609 | fi | |
9610 | ;; | |
9611 | ||
9612 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9613 | # This hack is so that the source file can tell whether it is being | |
9614 | # built for inclusion in a dll (and should export symbols for example). | |
9615 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9616 | ;; | |
9617 | ||
9618 | hpux9* | hpux10* | hpux11*) | |
9619 | lt_prog_compiler_wl='-Wl,' | |
9620 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9621 | # not for PA HP-UX. | |
9622 | case $host_cpu in | |
9623 | hppa*64*|ia64*) | |
9624 | # +Z the default | |
9625 | ;; | |
9626 | *) | |
9627 | lt_prog_compiler_pic='+Z' | |
9628 | ;; | |
9629 | esac | |
9630 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9631 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9632 | ;; | |
9633 | ||
9634 | irix5* | irix6* | nonstopux*) | |
9635 | lt_prog_compiler_wl='-Wl,' | |
9636 | # PIC (with -KPIC) is the default. | |
9637 | lt_prog_compiler_static='-non_shared' | |
9638 | ;; | |
9639 | ||
9640 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
9641 | case $cc_basename in | |
9642 | # old Intel for x86_64 which still supported -KPIC. | |
9643 | ecc*) | |
9644 | lt_prog_compiler_wl='-Wl,' | |
9645 | lt_prog_compiler_pic='-KPIC' | |
9646 | lt_prog_compiler_static='-static' | |
9647 | ;; | |
9648 | # icc used to be incompatible with GCC. | |
9649 | # ICC 10 doesn't accept -KPIC any more. | |
9650 | icc* | ifort*) | |
9651 | lt_prog_compiler_wl='-Wl,' | |
9652 | lt_prog_compiler_pic='-fPIC' | |
9653 | lt_prog_compiler_static='-static' | |
9654 | ;; | |
9655 | # Lahey Fortran 8.1. | |
9656 | lf95*) | |
9657 | lt_prog_compiler_wl='-Wl,' | |
9658 | lt_prog_compiler_pic='--shared' | |
9659 | lt_prog_compiler_static='--static' | |
9660 | ;; | |
9661 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9662 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9663 | # which looks to be a dead project) | |
9664 | lt_prog_compiler_wl='-Wl,' | |
9665 | lt_prog_compiler_pic='-fpic' | |
9666 | lt_prog_compiler_static='-Bstatic' | |
9667 | ;; | |
9668 | ccc*) | |
9669 | lt_prog_compiler_wl='-Wl,' | |
9670 | # All Alpha code is PIC. | |
9671 | lt_prog_compiler_static='-non_shared' | |
9672 | ;; | |
9673 | xl* | bgxl* | bgf* | mpixl*) | |
9674 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9675 | lt_prog_compiler_wl='-Wl,' | |
9676 | lt_prog_compiler_pic='-qpic' | |
9677 | lt_prog_compiler_static='-qstaticlink' | |
9678 | ;; | |
9679 | *) | |
9680 | case `$CC -V 2>&1 | sed 5q` in | |
9681 | *Sun\ F* | *Sun*Fortran*) | |
9682 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9683 | lt_prog_compiler_pic='-KPIC' | |
9684 | lt_prog_compiler_static='-Bstatic' | |
9685 | lt_prog_compiler_wl='' | |
9686 | ;; | |
9687 | *Sun\ C*) | |
9688 | # Sun C 5.9 | |
9689 | lt_prog_compiler_pic='-KPIC' | |
9690 | lt_prog_compiler_static='-Bstatic' | |
9691 | lt_prog_compiler_wl='-Wl,' | |
9692 | ;; | |
9693 | esac | |
9694 | ;; | |
9695 | esac | |
9696 | ;; | |
9697 | ||
9698 | newsos6) | |
9699 | lt_prog_compiler_pic='-KPIC' | |
9700 | lt_prog_compiler_static='-Bstatic' | |
9701 | ;; | |
9702 | ||
9703 | *nto* | *qnx*) | |
9704 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9705 | # it will coredump. | |
9706 | lt_prog_compiler_pic='-fPIC -shared' | |
9707 | ;; | |
9708 | ||
9709 | osf3* | osf4* | osf5*) | |
9710 | lt_prog_compiler_wl='-Wl,' | |
9711 | # All OSF/1 code is PIC. | |
9712 | lt_prog_compiler_static='-non_shared' | |
9713 | ;; | |
9714 | ||
9715 | rdos*) | |
9716 | lt_prog_compiler_static='-non_shared' | |
9717 | ;; | |
9718 | ||
9719 | solaris*) | |
9720 | lt_prog_compiler_pic='-KPIC' | |
9721 | lt_prog_compiler_static='-Bstatic' | |
9722 | case $cc_basename in | |
9723 | f77* | f90* | f95*) | |
9724 | lt_prog_compiler_wl='-Qoption ld ';; | |
9725 | *) | |
9726 | lt_prog_compiler_wl='-Wl,';; | |
9727 | esac | |
9728 | ;; | |
9729 | ||
9730 | sunos4*) | |
9731 | lt_prog_compiler_wl='-Qoption ld ' | |
9732 | lt_prog_compiler_pic='-PIC' | |
9733 | lt_prog_compiler_static='-Bstatic' | |
9734 | ;; | |
9735 | ||
9736 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9737 | lt_prog_compiler_wl='-Wl,' | |
9738 | lt_prog_compiler_pic='-KPIC' | |
9739 | lt_prog_compiler_static='-Bstatic' | |
9740 | ;; | |
9741 | ||
9742 | sysv4*MP*) | |
9743 | if test -d /usr/nec ;then | |
9744 | lt_prog_compiler_pic='-Kconform_pic' | |
9745 | lt_prog_compiler_static='-Bstatic' | |
9746 | fi | |
9747 | ;; | |
9748 | ||
9749 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9750 | lt_prog_compiler_wl='-Wl,' | |
9751 | lt_prog_compiler_pic='-KPIC' | |
9752 | lt_prog_compiler_static='-Bstatic' | |
9753 | ;; | |
9754 | ||
9755 | unicos*) | |
9756 | lt_prog_compiler_wl='-Wl,' | |
9757 | lt_prog_compiler_can_build_shared=no | |
9758 | ;; | |
9759 | ||
9760 | uts4*) | |
9761 | lt_prog_compiler_pic='-pic' | |
9762 | lt_prog_compiler_static='-Bstatic' | |
9763 | ;; | |
9764 | ||
9765 | *) | |
9766 | lt_prog_compiler_can_build_shared=no | |
9767 | ;; | |
9768 | esac | |
9769 | fi | |
9770 | ||
9771 | case $host_os in | |
9772 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9773 | *djgpp*) | |
9774 | lt_prog_compiler_pic= | |
9775 | ;; | |
9776 | *) | |
9777 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9778 | ;; | |
9779 | esac | |
9780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
9781 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
9782 | ||
9783 | ||
9784 | ||
9785 | ||
9786 | ||
9787 | ||
9788 | # | |
9789 | # Check to make sure the PIC flag actually works. | |
9790 | # | |
9791 | if test -n "$lt_prog_compiler_pic"; then | |
9792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9793 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9794 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9795 | $as_echo_n "(cached) " >&6 | |
9796 | else | |
9797 | lt_cv_prog_compiler_pic_works=no | |
9798 | ac_outfile=conftest.$ac_objext | |
9799 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9800 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9801 | # Insert the option either (1) after the last *FLAGS variable, or | |
9802 | # (2) before a word containing "conftest.", or (3) at the end. | |
9803 | # Note that $ac_compile itself does not contain backslashes and begins | |
9804 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9805 | # The option is referenced via a variable to avoid confusing sed. | |
9806 | lt_compile=`echo "$ac_compile" | $SED \ | |
9807 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9808 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9809 | -e 's:$: $lt_compiler_flag:'` | |
9810 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9811 | (eval "$lt_compile" 2>conftest.err) | |
9812 | ac_status=$? | |
9813 | cat conftest.err >&5 | |
9814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9815 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9816 | # The compiler can only warn and ignore the option if not recognized | |
9817 | # So say no if there are warnings other than the usual output. | |
9818 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9819 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9820 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9821 | lt_cv_prog_compiler_pic_works=yes | |
9822 | fi | |
9823 | fi | |
9824 | $RM conftest* | |
9825 | ||
9826 | fi | |
9827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9828 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9829 | ||
9830 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
9831 | case $lt_prog_compiler_pic in | |
9832 | "" | " "*) ;; | |
9833 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9834 | esac | |
9835 | else | |
9836 | lt_prog_compiler_pic= | |
9837 | lt_prog_compiler_can_build_shared=no | |
9838 | fi | |
9839 | ||
9840 | fi | |
9841 | ||
9842 | ||
9843 | ||
9844 | ||
9845 | ||
9846 | ||
9847 | # | |
9848 | # Check to make sure the static flag actually works. | |
9849 | # | |
9850 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9852 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9853 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9854 | $as_echo_n "(cached) " >&6 | |
9855 | else | |
9856 | lt_cv_prog_compiler_static_works=no | |
9857 | save_LDFLAGS="$LDFLAGS" | |
9858 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9859 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9860 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9861 | # The linker can only warn and ignore the option if not recognized | |
9862 | # So say no if there are warnings | |
9863 | if test -s conftest.err; then | |
9864 | # Append any errors to the config.log. | |
9865 | cat conftest.err 1>&5 | |
9866 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9867 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9868 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9869 | lt_cv_prog_compiler_static_works=yes | |
9870 | fi | |
9871 | else | |
9872 | lt_cv_prog_compiler_static_works=yes | |
9873 | fi | |
9874 | fi | |
9875 | $RM -r conftest* | |
9876 | LDFLAGS="$save_LDFLAGS" | |
9877 | ||
9878 | fi | |
9879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9880 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9881 | ||
9882 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
9883 | : | |
9884 | else | |
9885 | lt_prog_compiler_static= | |
9886 | fi | |
9887 | ||
9888 | ||
9889 | ||
9890 | ||
9891 | ||
9892 | ||
9893 | ||
9894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9895 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9896 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9897 | $as_echo_n "(cached) " >&6 | |
9898 | else | |
9899 | lt_cv_prog_compiler_c_o=no | |
9900 | $RM -r conftest 2>/dev/null | |
9901 | mkdir conftest | |
9902 | cd conftest | |
9903 | mkdir out | |
9904 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9905 | ||
9906 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9907 | # Insert the option either (1) after the last *FLAGS variable, or | |
9908 | # (2) before a word containing "conftest.", or (3) at the end. | |
9909 | # Note that $ac_compile itself does not contain backslashes and begins | |
9910 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9911 | lt_compile=`echo "$ac_compile" | $SED \ | |
9912 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9913 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9914 | -e 's:$: $lt_compiler_flag:'` | |
9915 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9916 | (eval "$lt_compile" 2>out/conftest.err) | |
9917 | ac_status=$? | |
9918 | cat out/conftest.err >&5 | |
9919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9920 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9921 | then | |
9922 | # The compiler can only warn and ignore the option if not recognized | |
9923 | # So say no if there are warnings | |
9924 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9925 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9926 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9927 | lt_cv_prog_compiler_c_o=yes | |
9928 | fi | |
9929 | fi | |
9930 | chmod u+w . 2>&5 | |
9931 | $RM conftest* | |
9932 | # SGI C++ compiler will create directory out/ii_files/ for | |
9933 | # template instantiation | |
9934 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9935 | $RM out/* && rmdir out | |
9936 | cd .. | |
9937 | $RM -r conftest | |
9938 | $RM conftest* | |
9939 | ||
9940 | fi | |
9941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9942 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9943 | ||
9944 | ||
9945 | ||
9946 | ||
9947 | ||
9948 | ||
9949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9950 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9951 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9952 | $as_echo_n "(cached) " >&6 | |
9953 | else | |
9954 | lt_cv_prog_compiler_c_o=no | |
9955 | $RM -r conftest 2>/dev/null | |
9956 | mkdir conftest | |
9957 | cd conftest | |
9958 | mkdir out | |
9959 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9960 | ||
9961 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9962 | # Insert the option either (1) after the last *FLAGS variable, or | |
9963 | # (2) before a word containing "conftest.", or (3) at the end. | |
9964 | # Note that $ac_compile itself does not contain backslashes and begins | |
9965 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9966 | lt_compile=`echo "$ac_compile" | $SED \ | |
9967 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9968 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9969 | -e 's:$: $lt_compiler_flag:'` | |
9970 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9971 | (eval "$lt_compile" 2>out/conftest.err) | |
9972 | ac_status=$? | |
9973 | cat out/conftest.err >&5 | |
9974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9975 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9976 | then | |
9977 | # The compiler can only warn and ignore the option if not recognized | |
9978 | # So say no if there are warnings | |
9979 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9980 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9981 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9982 | lt_cv_prog_compiler_c_o=yes | |
9983 | fi | |
9984 | fi | |
9985 | chmod u+w . 2>&5 | |
9986 | $RM conftest* | |
9987 | # SGI C++ compiler will create directory out/ii_files/ for | |
9988 | # template instantiation | |
9989 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9990 | $RM out/* && rmdir out | |
9991 | cd .. | |
9992 | $RM -r conftest | |
9993 | $RM conftest* | |
9994 | ||
9995 | fi | |
9996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9997 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9998 | ||
9999 | ||
10000 | ||
10001 | ||
10002 | hard_links="nottested" | |
10003 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
10004 | # do not overwrite the value of need_locks provided by the user | |
10005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
10006 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
10007 | hard_links=yes | |
10008 | $RM conftest* | |
10009 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10010 | touch conftest.a | |
10011 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10012 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
10014 | $as_echo "$hard_links" >&6; } | |
10015 | if test "$hard_links" = no; then | |
10016 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
10017 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
10018 | need_locks=warn | |
10019 | fi | |
10020 | else | |
10021 | need_locks=no | |
10022 | fi | |
10023 | ||
10024 | ||
10025 | ||
10026 | ||
10027 | ||
10028 | ||
10029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10030 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
10031 | ||
10032 | runpath_var= | |
10033 | allow_undefined_flag= | |
10034 | always_export_symbols=no | |
10035 | archive_cmds= | |
10036 | archive_expsym_cmds= | |
10037 | compiler_needs_object=no | |
10038 | enable_shared_with_static_runtimes=no | |
10039 | export_dynamic_flag_spec= | |
10040 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10041 | hardcode_automatic=no | |
10042 | hardcode_direct=no | |
10043 | hardcode_direct_absolute=no | |
10044 | hardcode_libdir_flag_spec= | |
10045 | hardcode_libdir_flag_spec_ld= | |
10046 | hardcode_libdir_separator= | |
10047 | hardcode_minus_L=no | |
10048 | hardcode_shlibpath_var=unsupported | |
10049 | inherit_rpath=no | |
10050 | link_all_deplibs=unknown | |
10051 | module_cmds= | |
10052 | module_expsym_cmds= | |
10053 | old_archive_from_new_cmds= | |
10054 | old_archive_from_expsyms_cmds= | |
10055 | thread_safe_flag_spec= | |
10056 | whole_archive_flag_spec= | |
10057 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10058 | # included in the symbol list | |
10059 | include_expsyms= | |
10060 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10061 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10062 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10063 | # as well as any symbol that contains `d'. | |
10064 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
10065 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
10066 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10067 | # the symbol is explicitly referenced. Since portable code cannot | |
10068 | # rely on this symbol name, it's probably fine to never include it in | |
10069 | # preloaded symbol tables. | |
10070 | # Exclude shared library initialization/finalization symbols. | |
10071 | extract_expsyms_cmds= | |
10072 | ||
10073 | case $host_os in | |
10074 | cygwin* | mingw* | pw32* | cegcc*) | |
10075 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
10076 | # When not using gcc, we currently assume that we are using | |
10077 | # Microsoft Visual C++. | |
10078 | if test "$GCC" != yes; then | |
10079 | with_gnu_ld=no | |
10080 | fi | |
10081 | ;; | |
10082 | interix*) | |
10083 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10084 | with_gnu_ld=yes | |
10085 | ;; | |
10086 | openbsd*) | |
10087 | with_gnu_ld=no | |
10088 | ;; | |
10089 | esac | |
10090 | ||
10091 | ld_shlibs=yes | |
10092 | ||
10093 | # On some targets, GNU ld is compatible enough with the native linker | |
10094 | # that we're better off using the native interface for both. | |
10095 | lt_use_gnu_ld_interface=no | |
10096 | if test "$with_gnu_ld" = yes; then | |
10097 | case $host_os in | |
10098 | aix*) | |
10099 | # The AIX port of GNU ld has always aspired to compatibility | |
10100 | # with the native linker. However, as the warning in the GNU ld | |
10101 | # block says, versions before 2.19.5* couldn't really create working | |
10102 | # shared libraries, regardless of the interface used. | |
10103 | case `$LD -v 2>&1` in | |
10104 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10105 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10106 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10107 | *) | |
10108 | lt_use_gnu_ld_interface=yes | |
10109 | ;; | |
10110 | esac | |
10111 | ;; | |
10112 | *) | |
10113 | lt_use_gnu_ld_interface=yes | |
10114 | ;; | |
10115 | esac | |
10116 | fi | |
10117 | ||
10118 | if test "$lt_use_gnu_ld_interface" = yes; then | |
10119 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
10120 | wlarc='${wl}' | |
10121 | ||
10122 | # Set some defaults for GNU ld with shared library support. These | |
10123 | # are reset later if shared libraries are not supported. Putting them | |
10124 | # here allows them to be overridden if necessary. | |
10125 | runpath_var=LD_RUN_PATH | |
10126 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10127 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
10128 | # ancient GNU ld didn't support --whole-archive et. al. | |
10129 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10130 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10131 | else | |
10132 | whole_archive_flag_spec= | |
10133 | fi | |
10134 | supports_anon_versioning=no | |
10135 | case `$LD -v 2>&1` in | |
10136 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
10137 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
10138 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10139 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10140 | *\ 2.11.*) ;; # other 2.11 versions | |
10141 | *) supports_anon_versioning=yes ;; | |
10142 | esac | |
10143 | ||
10144 | # See if GNU ld supports shared libraries. | |
10145 | case $host_os in | |
10146 | aix[3-9]*) | |
10147 | # On AIX/PPC, the GNU linker is very broken | |
10148 | if test "$host_cpu" != ia64; then | |
10149 | ld_shlibs=no | |
10150 | cat <<_LT_EOF 1>&2 | |
10151 | ||
10152 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
10153 | *** to be unable to reliably create shared libraries on AIX. | |
10154 | *** Therefore, libtool is disabling shared libraries support. If you | |
10155 | *** really care for shared libraries, you may want to install binutils | |
10156 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10157 | *** You will then need to restart the configuration process. | |
10158 | ||
10159 | _LT_EOF | |
10160 | fi | |
10161 | ;; | |
10162 | ||
10163 | amigaos*) | |
10164 | case $host_cpu in | |
10165 | powerpc) | |
10166 | # see comment about AmigaOS4 .so support | |
10167 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10168 | archive_expsym_cmds='' | |
10169 | ;; | |
10170 | m68k) | |
10171 | 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)' | |
10172 | hardcode_libdir_flag_spec='-L$libdir' | |
10173 | hardcode_minus_L=yes | |
10174 | ;; | |
10175 | esac | |
10176 | ;; | |
10177 | ||
10178 | beos*) | |
10179 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10180 | allow_undefined_flag=unsupported | |
10181 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10182 | # support --undefined. This deserves some investigation. FIXME | |
10183 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10184 | else | |
10185 | ld_shlibs=no | |
10186 | fi | |
10187 | ;; | |
10188 | ||
10189 | cygwin* | mingw* | pw32* | cegcc*) | |
10190 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
10191 | # as there is no search path for DLLs. | |
10192 | hardcode_libdir_flag_spec='-L$libdir' | |
10193 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
10194 | allow_undefined_flag=unsupported | |
10195 | always_export_symbols=no | |
10196 | enable_shared_with_static_runtimes=yes | |
10197 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10198 | ||
10199 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10200 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10201 | # If the export-symbols file already is a .def file (1st line | |
10202 | # is EXPORTS), use it as is; otherwise, prepend... | |
10203 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10204 | cp $export_symbols $output_objdir/$soname.def; | |
10205 | else | |
10206 | echo EXPORTS > $output_objdir/$soname.def; | |
10207 | cat $export_symbols >> $output_objdir/$soname.def; | |
10208 | fi~ | |
10209 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10210 | else | |
10211 | ld_shlibs=no | |
10212 | fi | |
10213 | ;; | |
10214 | ||
10215 | haiku*) | |
10216 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10217 | link_all_deplibs=yes | |
10218 | ;; | |
10219 | ||
10220 | interix[3-9]*) | |
10221 | hardcode_direct=no | |
10222 | hardcode_shlibpath_var=no | |
10223 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10224 | export_dynamic_flag_spec='${wl}-E' | |
10225 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10226 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10227 | # default) and relocated if they conflict, which is a slow very memory | |
10228 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10229 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10230 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10231 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10232 | 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' | |
10233 | ;; | |
10234 | ||
10235 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
10236 | tmp_diet=no | |
10237 | if test "$host_os" = linux-dietlibc; then | |
10238 | case $cc_basename in | |
10239 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10240 | esac | |
10241 | fi | |
10242 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10243 | && test "$tmp_diet" = no | |
10244 | then | |
10245 | tmp_addflag=' $pic_flag' | |
10246 | tmp_sharedflag='-shared' | |
10247 | case $cc_basename,$host_cpu in | |
10248 | pgcc*) # Portland Group C compiler | |
10249 | 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' | |
10250 | tmp_addflag=' $pic_flag' | |
10251 | ;; | |
10252 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
10253 | # Portland Group f77 and f90 compilers | |
10254 | 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' | |
10255 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
10256 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10257 | tmp_addflag=' -i_dynamic' ;; | |
10258 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10259 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10260 | ifc* | ifort*) # Intel Fortran compiler | |
10261 | tmp_addflag=' -nofor_main' ;; | |
10262 | lf95*) # Lahey Fortran 8.1 | |
10263 | whole_archive_flag_spec= | |
10264 | tmp_sharedflag='--shared' ;; | |
10265 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
10266 | tmp_sharedflag='-qmkshrobj' | |
10267 | tmp_addflag= ;; | |
10268 | nvcc*) # Cuda Compiler Driver 2.2 | |
10269 | 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' | |
10270 | compiler_needs_object=yes | |
10271 | ;; | |
10272 | esac | |
10273 | case `$CC -V 2>&1 | sed 5q` in | |
10274 | *Sun\ C*) # Sun C 5.9 | |
10275 | 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' | |
10276 | compiler_needs_object=yes | |
10277 | tmp_sharedflag='-G' ;; | |
10278 | *Sun\ F*) # Sun Fortran 8.3 | |
10279 | tmp_sharedflag='-G' ;; | |
10280 | esac | |
10281 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10282 | ||
10283 | if test "x$supports_anon_versioning" = xyes; then | |
10284 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10285 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10286 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10287 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10288 | fi | |
10289 | ||
10290 | case $cc_basename in | |
10291 | xlf* | bgf* | bgxlf* | mpixlf*) | |
10292 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
10293 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10294 | hardcode_libdir_flag_spec= | |
10295 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10296 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
10297 | if test "x$supports_anon_versioning" = xyes; then | |
10298 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10299 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10300 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10301 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10302 | fi | |
10303 | ;; | |
10304 | esac | |
10305 | else | |
10306 | ld_shlibs=no | |
10307 | fi | |
10308 | ;; | |
10309 | ||
10310 | netbsd*) | |
10311 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10312 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10313 | wlarc= | |
10314 | else | |
10315 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10316 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10317 | fi | |
10318 | ;; | |
10319 | ||
10320 | solaris*) | |
10321 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10322 | ld_shlibs=no | |
10323 | cat <<_LT_EOF 1>&2 | |
10324 | ||
10325 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10326 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10327 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10328 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10329 | *** your PATH or compiler configuration so that the native linker is | |
10330 | *** used, and then restart. | |
10331 | ||
10332 | _LT_EOF | |
10333 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10334 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10335 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10336 | else | |
10337 | ld_shlibs=no | |
10338 | fi | |
10339 | ;; | |
10340 | ||
10341 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10342 | case `$LD -v 2>&1` in | |
10343 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10344 | ld_shlibs=no | |
10345 | cat <<_LT_EOF 1>&2 | |
10346 | ||
10347 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10348 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10349 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10350 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10351 | *** your PATH or compiler configuration so that the native linker is | |
10352 | *** used, and then restart. | |
10353 | ||
10354 | _LT_EOF | |
10355 | ;; | |
10356 | *) | |
10357 | # For security reasons, it is highly recommended that you always | |
10358 | # use absolute paths for naming shared libraries, and exclude the | |
10359 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10360 | # requires that you compile everything twice, which is a pain. | |
10361 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10362 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10363 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10364 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10365 | else | |
10366 | ld_shlibs=no | |
10367 | fi | |
10368 | ;; | |
10369 | esac | |
10370 | ;; | |
10371 | ||
10372 | sunos4*) | |
10373 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10374 | wlarc= | |
10375 | hardcode_direct=yes | |
10376 | hardcode_shlibpath_var=no | |
10377 | ;; | |
10378 | ||
10379 | *) | |
10380 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10381 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10382 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10383 | else | |
10384 | ld_shlibs=no | |
10385 | fi | |
10386 | ;; | |
10387 | esac | |
10388 | ||
10389 | if test "$ld_shlibs" = no; then | |
10390 | runpath_var= | |
10391 | hardcode_libdir_flag_spec= | |
10392 | export_dynamic_flag_spec= | |
10393 | whole_archive_flag_spec= | |
10394 | fi | |
10395 | else | |
10396 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10397 | case $host_os in | |
10398 | aix3*) | |
10399 | allow_undefined_flag=unsupported | |
10400 | always_export_symbols=yes | |
10401 | 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' | |
10402 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10403 | # are no directories specified by -L. | |
10404 | hardcode_minus_L=yes | |
10405 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10406 | # Neither direct hardcoding nor static linking is supported with a | |
10407 | # broken collect2. | |
10408 | hardcode_direct=unsupported | |
10409 | fi | |
10410 | ;; | |
10411 | ||
10412 | aix[4-9]*) | |
10413 | if test "$host_cpu" = ia64; then | |
10414 | # On IA64, the linker does run time linking by default, so we don't | |
10415 | # have to do anything special. | |
10416 | aix_use_runtimelinking=no | |
10417 | exp_sym_flag='-Bexport' | |
10418 | no_entry_flag="" | |
10419 | else | |
10420 | # If we're using GNU nm, then we don't want the "-C" option. | |
10421 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10422 | # Also, AIX nm treats weak defined symbols like other global | |
10423 | # defined symbols, whereas GNU nm marks them as "W". | |
10424 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10425 | 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' | |
10426 | else | |
10427 | 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' | |
10428 | fi | |
10429 | aix_use_runtimelinking=no | |
10430 | ||
10431 | # Test if we are trying to use run time linking or normal | |
10432 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10433 | # need to do runtime linking. | |
10434 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10435 | for ld_flag in $LDFLAGS; do | |
10436 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10437 | aix_use_runtimelinking=yes | |
10438 | break | |
10439 | fi | |
10440 | done | |
10441 | ;; | |
10442 | esac | |
10443 | ||
10444 | exp_sym_flag='-bexport' | |
10445 | no_entry_flag='-bnoentry' | |
10446 | fi | |
10447 | ||
10448 | # When large executables or shared objects are built, AIX ld can | |
10449 | # have problems creating the table of contents. If linking a library | |
10450 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10451 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10452 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10453 | ||
10454 | archive_cmds='' | |
10455 | hardcode_direct=yes | |
10456 | hardcode_direct_absolute=yes | |
10457 | hardcode_libdir_separator=':' | |
10458 | link_all_deplibs=yes | |
10459 | file_list_spec='${wl}-f,' | |
10460 | ||
10461 | if test "$GCC" = yes; then | |
10462 | case $host_os in aix4.[012]|aix4.[012].*) | |
10463 | # We only want to do this on AIX 4.2 and lower, the check | |
10464 | # below for broken collect2 doesn't work under 4.3+ | |
10465 | collect2name=`${CC} -print-prog-name=collect2` | |
10466 | if test -f "$collect2name" && | |
10467 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10468 | then | |
10469 | # We have reworked collect2 | |
10470 | : | |
10471 | else | |
10472 | # We have old collect2 | |
10473 | hardcode_direct=unsupported | |
10474 | # It fails to find uninstalled libraries when the uninstalled | |
10475 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10476 | # to unsupported forces relinking | |
10477 | hardcode_minus_L=yes | |
10478 | hardcode_libdir_flag_spec='-L$libdir' | |
10479 | hardcode_libdir_separator= | |
10480 | fi | |
10481 | ;; | |
10482 | esac | |
10483 | shared_flag='-shared' | |
10484 | if test "$aix_use_runtimelinking" = yes; then | |
10485 | shared_flag="$shared_flag "'${wl}-G' | |
10486 | fi | |
10487 | else | |
10488 | # not using gcc | |
10489 | if test "$host_cpu" = ia64; then | |
10490 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10491 | # chokes on -Wl,-G. The following line is correct: | |
10492 | shared_flag='-G' | |
10493 | else | |
10494 | if test "$aix_use_runtimelinking" = yes; then | |
10495 | shared_flag='${wl}-G' | |
10496 | else | |
10497 | shared_flag='${wl}-bM:SRE' | |
10498 | fi | |
10499 | fi | |
10500 | fi | |
10501 | ||
10502 | export_dynamic_flag_spec='${wl}-bexpall' | |
10503 | # It seems that -bexpall does not export symbols beginning with | |
10504 | # underscore (_), so it is better to generate a list of symbols to export. | |
10505 | always_export_symbols=yes | |
10506 | if test "$aix_use_runtimelinking" = yes; then | |
10507 | # Warning - without using the other runtime loading flags (-brtl), | |
10508 | # -berok will link without error, but may produce a broken library. | |
10509 | allow_undefined_flag='-berok' | |
10510 | # Determine the default libpath from the value encoded in an | |
10511 | # empty executable. | |
10512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10513 | /* end confdefs.h. */ | |
10514 | ||
10515 | int | |
10516 | main () | |
10517 | { | |
10518 | ||
10519 | ; | |
10520 | return 0; | |
10521 | } | |
10522 | _ACEOF | |
10523 | if ac_fn_c_try_link "$LINENO"; then : | |
10524 | ||
10525 | lt_aix_libpath_sed=' | |
10526 | /Import File Strings/,/^$/ { | |
10527 | /^0/ { | |
10528 | s/^0 *\(.*\)$/\1/ | |
10529 | p | |
10530 | } | |
10531 | }' | |
10532 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10533 | # Check for a 64-bit object if we didn't find anything. | |
10534 | if test -z "$aix_libpath"; then | |
10535 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10536 | fi | |
10537 | fi | |
10538 | rm -f core conftest.err conftest.$ac_objext \ | |
10539 | conftest$ac_exeext conftest.$ac_ext | |
10540 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10541 | ||
10542 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10543 | 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" | |
10544 | else | |
10545 | if test "$host_cpu" = ia64; then | |
10546 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10547 | allow_undefined_flag="-z nodefs" | |
10548 | 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" | |
10549 | else | |
10550 | # Determine the default libpath from the value encoded in an | |
10551 | # empty executable. | |
10552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10553 | /* end confdefs.h. */ | |
10554 | ||
10555 | int | |
10556 | main () | |
10557 | { | |
10558 | ||
10559 | ; | |
10560 | return 0; | |
10561 | } | |
10562 | _ACEOF | |
10563 | if ac_fn_c_try_link "$LINENO"; then : | |
10564 | ||
10565 | lt_aix_libpath_sed=' | |
10566 | /Import File Strings/,/^$/ { | |
10567 | /^0/ { | |
10568 | s/^0 *\(.*\)$/\1/ | |
10569 | p | |
10570 | } | |
10571 | }' | |
10572 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10573 | # Check for a 64-bit object if we didn't find anything. | |
10574 | if test -z "$aix_libpath"; then | |
10575 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10576 | fi | |
10577 | fi | |
10578 | rm -f core conftest.err conftest.$ac_objext \ | |
10579 | conftest$ac_exeext conftest.$ac_ext | |
10580 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10581 | ||
10582 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10583 | # Warning - without using the other run time loading flags, | |
10584 | # -berok will link without error, but may produce a broken library. | |
10585 | no_undefined_flag=' ${wl}-bernotok' | |
10586 | allow_undefined_flag=' ${wl}-berok' | |
10587 | if test "$with_gnu_ld" = yes; then | |
10588 | # We only use this code for GNU lds that support --whole-archive. | |
10589 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10590 | else | |
10591 | # Exported symbols can be pulled into shared objects from archives | |
10592 | whole_archive_flag_spec='$convenience' | |
10593 | fi | |
10594 | archive_cmds_need_lc=yes | |
10595 | # This is similar to how AIX traditionally builds its shared libraries. | |
10596 | 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' | |
10597 | fi | |
10598 | fi | |
10599 | ;; | |
10600 | ||
10601 | amigaos*) | |
10602 | case $host_cpu in | |
10603 | powerpc) | |
10604 | # see comment about AmigaOS4 .so support | |
10605 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10606 | archive_expsym_cmds='' | |
10607 | ;; | |
10608 | m68k) | |
10609 | 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)' | |
10610 | hardcode_libdir_flag_spec='-L$libdir' | |
10611 | hardcode_minus_L=yes | |
10612 | ;; | |
10613 | esac | |
10614 | ;; | |
10615 | ||
10616 | bsdi[45]*) | |
10617 | export_dynamic_flag_spec=-rdynamic | |
10618 | ;; | |
10619 | ||
10620 | cygwin* | mingw* | pw32* | cegcc*) | |
10621 | # When not using gcc, we currently assume that we are using | |
10622 | # Microsoft Visual C++. | |
10623 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10624 | # no search path for DLLs. | |
10625 | hardcode_libdir_flag_spec=' ' | |
10626 | allow_undefined_flag=unsupported | |
10627 | # Tell ltmain to make .lib files, not .a files. | |
10628 | libext=lib | |
10629 | # Tell ltmain to make .dll files, not .so files. | |
10630 | shrext_cmds=".dll" | |
10631 | # FIXME: Setting linknames here is a bad hack. | |
10632 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10633 | # The linker will automatically build a .lib file if we build a DLL. | |
10634 | old_archive_from_new_cmds='true' | |
10635 | # FIXME: Should let the user specify the lib program. | |
10636 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10637 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10638 | enable_shared_with_static_runtimes=yes | |
10639 | ;; | |
10640 | ||
10641 | darwin* | rhapsody*) | |
10642 | ||
10643 | ||
10644 | archive_cmds_need_lc=no | |
10645 | hardcode_direct=no | |
10646 | hardcode_automatic=yes | |
10647 | hardcode_shlibpath_var=unsupported | |
10648 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10649 | 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\"`' | |
10650 | else | |
10651 | whole_archive_flag_spec='' | |
10652 | fi | |
10653 | link_all_deplibs=yes | |
10654 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10655 | case $cc_basename in | |
10656 | ifort*) _lt_dar_can_shared=yes ;; | |
10657 | *) _lt_dar_can_shared=$GCC ;; | |
10658 | esac | |
10659 | if test "$_lt_dar_can_shared" = "yes"; then | |
10660 | output_verbose_link_cmd=func_echo_all | |
10661 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10662 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10663 | 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}" | |
10664 | 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}" | |
10665 | ||
10666 | else | |
10667 | ld_shlibs=no | |
10668 | fi | |
10669 | ||
10670 | ;; | |
10671 | ||
10672 | dgux*) | |
10673 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10674 | hardcode_libdir_flag_spec='-L$libdir' | |
10675 | hardcode_shlibpath_var=no | |
10676 | ;; | |
10677 | ||
10678 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10679 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10680 | # does not break anything, and helps significantly (at the cost of a little | |
10681 | # extra space). | |
10682 | freebsd2.2*) | |
10683 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10684 | hardcode_libdir_flag_spec='-R$libdir' | |
10685 | hardcode_direct=yes | |
10686 | hardcode_shlibpath_var=no | |
10687 | ;; | |
10688 | ||
10689 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10690 | freebsd2.*) | |
10691 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10692 | hardcode_direct=yes | |
10693 | hardcode_minus_L=yes | |
10694 | hardcode_shlibpath_var=no | |
10695 | ;; | |
10696 | ||
10697 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10698 | freebsd* | dragonfly*) | |
10699 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10700 | hardcode_libdir_flag_spec='-R$libdir' | |
10701 | hardcode_direct=yes | |
10702 | hardcode_shlibpath_var=no | |
10703 | ;; | |
10704 | ||
10705 | hpux9*) | |
10706 | if test "$GCC" = yes; then | |
10707 | 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' | |
10708 | else | |
10709 | 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' | |
10710 | fi | |
10711 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10712 | hardcode_libdir_separator=: | |
10713 | hardcode_direct=yes | |
10714 | ||
10715 | # hardcode_minus_L: Not really in the search PATH, | |
10716 | # but as the default location of the library. | |
10717 | hardcode_minus_L=yes | |
10718 | export_dynamic_flag_spec='${wl}-E' | |
10719 | ;; | |
10720 | ||
10721 | hpux10*) | |
10722 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10723 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10724 | else | |
10725 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10726 | fi | |
10727 | if test "$with_gnu_ld" = no; then | |
10728 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10729 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10730 | hardcode_libdir_separator=: | |
10731 | hardcode_direct=yes | |
10732 | hardcode_direct_absolute=yes | |
10733 | export_dynamic_flag_spec='${wl}-E' | |
10734 | # hardcode_minus_L: Not really in the search PATH, | |
10735 | # but as the default location of the library. | |
10736 | hardcode_minus_L=yes | |
10737 | fi | |
10738 | ;; | |
10739 | ||
10740 | hpux11*) | |
10741 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10742 | case $host_cpu in | |
10743 | hppa*64*) | |
10744 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10745 | ;; | |
10746 | ia64*) | |
10747 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10748 | ;; | |
10749 | *) | |
10750 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10751 | ;; | |
10752 | esac | |
10753 | else | |
10754 | case $host_cpu in | |
10755 | hppa*64*) | |
10756 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10757 | ;; | |
10758 | ia64*) | |
10759 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10760 | ;; | |
10761 | *) | |
10762 | ||
10763 | # Older versions of the 11.00 compiler do not understand -b yet | |
10764 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10766 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10767 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10768 | $as_echo_n "(cached) " >&6 | |
10769 | else | |
10770 | lt_cv_prog_compiler__b=no | |
10771 | save_LDFLAGS="$LDFLAGS" | |
10772 | LDFLAGS="$LDFLAGS -b" | |
10773 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10774 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10775 | # The linker can only warn and ignore the option if not recognized | |
10776 | # So say no if there are warnings | |
10777 | if test -s conftest.err; then | |
10778 | # Append any errors to the config.log. | |
10779 | cat conftest.err 1>&5 | |
10780 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10781 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10782 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10783 | lt_cv_prog_compiler__b=yes | |
10784 | fi | |
10785 | else | |
10786 | lt_cv_prog_compiler__b=yes | |
10787 | fi | |
10788 | fi | |
10789 | $RM -r conftest* | |
10790 | LDFLAGS="$save_LDFLAGS" | |
10791 | ||
10792 | fi | |
10793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10794 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10795 | ||
10796 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10797 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10798 | else | |
10799 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10800 | fi | |
10801 | ||
10802 | ;; | |
10803 | esac | |
10804 | fi | |
10805 | if test "$with_gnu_ld" = no; then | |
10806 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10807 | hardcode_libdir_separator=: | |
10808 | ||
10809 | case $host_cpu in | |
10810 | hppa*64*|ia64*) | |
10811 | hardcode_direct=no | |
10812 | hardcode_shlibpath_var=no | |
10813 | ;; | |
10814 | *) | |
10815 | hardcode_direct=yes | |
10816 | hardcode_direct_absolute=yes | |
10817 | export_dynamic_flag_spec='${wl}-E' | |
10818 | ||
10819 | # hardcode_minus_L: Not really in the search PATH, | |
10820 | # but as the default location of the library. | |
10821 | hardcode_minus_L=yes | |
10822 | ;; | |
10823 | esac | |
10824 | fi | |
10825 | ;; | |
10826 | ||
10827 | irix5* | irix6* | nonstopux*) | |
10828 | if test "$GCC" = yes; then | |
10829 | 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' | |
10830 | # Try to use the -exported_symbol ld option, if it does not | |
10831 | # work, assume that -exports_file does not work either and | |
10832 | # implicitly export all symbols. | |
10833 | save_LDFLAGS="$LDFLAGS" | |
10834 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10836 | /* end confdefs.h. */ | |
10837 | int foo(void) {} | |
10838 | _ACEOF | |
10839 | if ac_fn_c_try_link "$LINENO"; then : | |
10840 | 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' | |
10841 | ||
10842 | fi | |
10843 | rm -f core conftest.err conftest.$ac_objext \ | |
10844 | conftest$ac_exeext conftest.$ac_ext | |
10845 | LDFLAGS="$save_LDFLAGS" | |
10846 | else | |
10847 | 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' | |
10848 | 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' | |
10849 | fi | |
10850 | archive_cmds_need_lc='no' | |
10851 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10852 | hardcode_libdir_separator=: | |
10853 | inherit_rpath=yes | |
10854 | link_all_deplibs=yes | |
10855 | ;; | |
10856 | ||
10857 | netbsd*) | |
10858 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10859 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10860 | else | |
10861 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10862 | fi | |
10863 | hardcode_libdir_flag_spec='-R$libdir' | |
10864 | hardcode_direct=yes | |
10865 | hardcode_shlibpath_var=no | |
10866 | ;; | |
10867 | ||
10868 | newsos6) | |
10869 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10870 | hardcode_direct=yes | |
10871 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10872 | hardcode_libdir_separator=: | |
10873 | hardcode_shlibpath_var=no | |
10874 | ;; | |
10875 | ||
10876 | *nto* | *qnx*) | |
10877 | ;; | |
10878 | ||
10879 | openbsd*) | |
10880 | if test -f /usr/libexec/ld.so; then | |
10881 | hardcode_direct=yes | |
10882 | hardcode_shlibpath_var=no | |
10883 | hardcode_direct_absolute=yes | |
10884 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10885 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10886 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10887 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10888 | export_dynamic_flag_spec='${wl}-E' | |
10889 | else | |
10890 | case $host_os in | |
10891 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10892 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10893 | hardcode_libdir_flag_spec='-R$libdir' | |
10894 | ;; | |
10895 | *) | |
10896 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10897 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10898 | ;; | |
10899 | esac | |
10900 | fi | |
10901 | else | |
10902 | ld_shlibs=no | |
10903 | fi | |
10904 | ;; | |
10905 | ||
10906 | os2*) | |
10907 | hardcode_libdir_flag_spec='-L$libdir' | |
10908 | hardcode_minus_L=yes | |
10909 | allow_undefined_flag=unsupported | |
10910 | 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' | |
10911 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10912 | ;; | |
10913 | ||
10914 | osf3*) | |
10915 | if test "$GCC" = yes; then | |
10916 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10917 | 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' | |
10918 | else | |
10919 | allow_undefined_flag=' -expect_unresolved \*' | |
10920 | 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' | |
10921 | fi | |
10922 | archive_cmds_need_lc='no' | |
10923 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10924 | hardcode_libdir_separator=: | |
10925 | ;; | |
10926 | ||
10927 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10928 | if test "$GCC" = yes; then | |
10929 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10930 | 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' | |
10931 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10932 | else | |
10933 | allow_undefined_flag=' -expect_unresolved \*' | |
10934 | 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' | |
10935 | 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~ | |
10936 | $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' | |
10937 | ||
10938 | # Both c and cxx compiler support -rpath directly | |
10939 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10940 | fi | |
10941 | archive_cmds_need_lc='no' | |
10942 | hardcode_libdir_separator=: | |
10943 | ;; | |
10944 | ||
10945 | solaris*) | |
10946 | no_undefined_flag=' -z defs' | |
10947 | if test "$GCC" = yes; then | |
10948 | wlarc='${wl}' | |
10949 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10950 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10951 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10952 | else | |
10953 | case `$CC -V 2>&1` in | |
10954 | *"Compilers 5.0"*) | |
10955 | wlarc='' | |
10956 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10957 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10958 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10959 | ;; | |
10960 | *) | |
10961 | wlarc='${wl}' | |
10962 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10963 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10964 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10965 | ;; | |
10966 | esac | |
10967 | fi | |
10968 | hardcode_libdir_flag_spec='-R$libdir' | |
10969 | hardcode_shlibpath_var=no | |
10970 | case $host_os in | |
10971 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10972 | *) | |
10973 | # The compiler driver will combine and reorder linker options, | |
10974 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10975 | # but is careful enough not to reorder. | |
10976 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10977 | if test "$GCC" = yes; then | |
10978 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10979 | else | |
10980 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10981 | fi | |
10982 | ;; | |
10983 | esac | |
10984 | link_all_deplibs=yes | |
10985 | ;; | |
10986 | ||
10987 | sunos4*) | |
10988 | if test "x$host_vendor" = xsequent; then | |
10989 | # Use $CC to link under sequent, because it throws in some extra .o | |
10990 | # files that make .init and .fini sections work. | |
10991 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10992 | else | |
10993 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10994 | fi | |
10995 | hardcode_libdir_flag_spec='-L$libdir' | |
10996 | hardcode_direct=yes | |
10997 | hardcode_minus_L=yes | |
10998 | hardcode_shlibpath_var=no | |
10999 | ;; | |
11000 | ||
11001 | sysv4) | |
11002 | case $host_vendor in | |
11003 | sni) | |
11004 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11005 | hardcode_direct=yes # is this really true??? | |
11006 | ;; | |
11007 | siemens) | |
11008 | ## LD is ld it makes a PLAMLIB | |
11009 | ## CC just makes a GrossModule. | |
11010 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11011 | reload_cmds='$CC -r -o $output$reload_objs' | |
11012 | hardcode_direct=no | |
11013 | ;; | |
11014 | motorola) | |
11015 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11016 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11017 | ;; | |
11018 | esac | |
11019 | runpath_var='LD_RUN_PATH' | |
11020 | hardcode_shlibpath_var=no | |
11021 | ;; | |
11022 | ||
11023 | sysv4.3*) | |
11024 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11025 | hardcode_shlibpath_var=no | |
11026 | export_dynamic_flag_spec='-Bexport' | |
11027 | ;; | |
11028 | ||
11029 | sysv4*MP*) | |
11030 | if test -d /usr/nec; then | |
11031 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11032 | hardcode_shlibpath_var=no | |
11033 | runpath_var=LD_RUN_PATH | |
11034 | hardcode_runpath_var=yes | |
11035 | ld_shlibs=yes | |
11036 | fi | |
11037 | ;; | |
11038 | ||
11039 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11040 | no_undefined_flag='${wl}-z,text' | |
11041 | archive_cmds_need_lc=no | |
11042 | hardcode_shlibpath_var=no | |
11043 | runpath_var='LD_RUN_PATH' | |
11044 | ||
11045 | if test "$GCC" = yes; then | |
11046 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11047 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11048 | else | |
11049 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11050 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11051 | fi | |
11052 | ;; | |
11053 | ||
11054 | sysv5* | sco3.2v5* | sco5v6*) | |
11055 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11056 | # link with -lc, and that would cause any symbols used from libc to | |
11057 | # always be unresolved, which means just about no library would | |
11058 | # ever link correctly. If we're not using GNU ld we use -z text | |
11059 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11060 | # as -z defs. | |
11061 | no_undefined_flag='${wl}-z,text' | |
11062 | allow_undefined_flag='${wl}-z,nodefs' | |
11063 | archive_cmds_need_lc=no | |
11064 | hardcode_shlibpath_var=no | |
11065 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11066 | hardcode_libdir_separator=':' | |
11067 | link_all_deplibs=yes | |
11068 | export_dynamic_flag_spec='${wl}-Bexport' | |
11069 | runpath_var='LD_RUN_PATH' | |
11070 | ||
11071 | if test "$GCC" = yes; then | |
11072 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11073 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11074 | else | |
11075 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11076 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11077 | fi | |
11078 | ;; | |
11079 | ||
11080 | uts4*) | |
11081 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11082 | hardcode_libdir_flag_spec='-L$libdir' | |
11083 | hardcode_shlibpath_var=no | |
11084 | ;; | |
11085 | ||
11086 | *) | |
11087 | ld_shlibs=no | |
11088 | ;; | |
11089 | esac | |
11090 | ||
11091 | if test x$host_vendor = xsni; then | |
11092 | case $host in | |
11093 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11094 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11095 | ;; | |
11096 | esac | |
11097 | fi | |
11098 | fi | |
11099 | ||
11100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
11101 | $as_echo "$ld_shlibs" >&6; } | |
11102 | test "$ld_shlibs" = no && can_build_shared=no | |
11103 | ||
11104 | with_gnu_ld=$with_gnu_ld | |
11105 | ||
11106 | ||
11107 | ||
11108 | ||
11109 | ||
11110 | ||
11111 | ||
11112 | ||
11113 | ||
11114 | ||
11115 | ||
11116 | ||
11117 | ||
11118 | ||
11119 | ||
11120 | # | |
11121 | # Do we need to explicitly link libc? | |
11122 | # | |
11123 | case "x$archive_cmds_need_lc" in | |
11124 | x|xyes) | |
11125 | # Assume -lc should be added | |
11126 | archive_cmds_need_lc=yes | |
11127 | ||
11128 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11129 | case $archive_cmds in | |
11130 | *'~'*) | |
11131 | # FIXME: we may have to deal with multi-command sequences. | |
11132 | ;; | |
11133 | '$CC '*) | |
11134 | # Test whether the compiler implicitly links with -lc since on some | |
11135 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11136 | # to ld, don't add -lc before -lgcc. | |
11137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
11138 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
11139 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
11140 | $as_echo_n "(cached) " >&6 | |
11141 | else | |
11142 | $RM conftest* | |
11143 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11144 | ||
11145 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
11146 | (eval $ac_compile) 2>&5 | |
11147 | ac_status=$? | |
11148 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11149 | test $ac_status = 0; } 2>conftest.err; then | |
11150 | soname=conftest | |
11151 | lib=conftest | |
11152 | libobjs=conftest.$ac_objext | |
11153 | deplibs= | |
11154 | wl=$lt_prog_compiler_wl | |
11155 | pic_flag=$lt_prog_compiler_pic | |
11156 | compiler_flags=-v | |
11157 | linker_flags=-v | |
11158 | verstring= | |
11159 | output_objdir=. | |
11160 | libname=conftest | |
11161 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11162 | allow_undefined_flag= | |
11163 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
11164 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11165 | ac_status=$? | |
11166 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11167 | test $ac_status = 0; } | |
11168 | then | |
11169 | lt_cv_archive_cmds_need_lc=no | |
11170 | else | |
11171 | lt_cv_archive_cmds_need_lc=yes | |
11172 | fi | |
11173 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11174 | else | |
11175 | cat conftest.err 1>&5 | |
11176 | fi | |
11177 | $RM conftest* | |
11178 | ||
11179 | fi | |
11180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
11181 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11182 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
11183 | ;; | |
11184 | esac | |
11185 | fi | |
11186 | ;; | |
11187 | esac | |
11188 | ||
11189 | ||
11190 | ||
11191 | ||
11192 | ||
11193 | ||
11194 | ||
11195 | ||
11196 | ||
11197 | ||
11198 | ||
11199 | ||
11200 | ||
11201 | ||
11202 | ||
11203 | ||
11204 | ||
11205 | ||
11206 | ||
11207 | ||
11208 | ||
11209 | ||
11210 | ||
11211 | ||
11212 | ||
11213 | ||
11214 | ||
11215 | ||
11216 | ||
11217 | ||
11218 | ||
11219 | ||
11220 | ||
11221 | ||
11222 | ||
11223 | ||
11224 | ||
11225 | ||
11226 | ||
11227 | ||
11228 | ||
11229 | ||
11230 | ||
11231 | ||
11232 | ||
11233 | ||
11234 | ||
11235 | ||
11236 | ||
11237 | ||
11238 | ||
11239 | ||
11240 | ||
11241 | ||
11242 | ||
11243 | ||
11244 | ||
11245 | ||
11246 | ||
11247 | ||
11248 | ||
11249 | ||
11250 | ||
11251 | ||
11252 | ||
11253 | ||
11254 | ||
11255 | ||
11256 | ||
11257 | ||
11258 | ||
11259 | ||
11260 | ||
11261 | ||
11262 | ||
11263 | ||
11264 | ||
11265 | ||
11266 | ||
11267 | ||
11268 | ||
11269 | ||
11270 | ||
11271 | ||
11272 | ||
11273 | ||
11274 | ||
11275 | ||
11276 | ||
11277 | ||
11278 | ||
11279 | ||
11280 | ||
11281 | ||
11282 | ||
11283 | ||
11284 | ||
11285 | ||
11286 | ||
11287 | ||
11288 | ||
11289 | ||
11290 | ||
11291 | ||
11292 | ||
11293 | ||
11294 | ||
11295 | ||
11296 | ||
11297 | ||
11298 | ||
11299 | ||
11300 | ||
11301 | ||
11302 | ||
11303 | ||
11304 | ||
11305 | ||
11306 | ||
11307 | ||
11308 | ||
11309 | ||
11310 | ||
11311 | ||
11312 | ||
11313 | ||
11314 | ||
11315 | ||
11316 | ||
11317 | ||
11318 | ||
11319 | ||
11320 | ||
11321 | ||
11322 | ||
11323 | ||
11324 | ||
11325 | ||
11326 | ||
11327 | ||
11328 | ||
11329 | ||
11330 | ||
11331 | ||
11332 | ||
11333 | ||
11334 | ||
11335 | ||
11336 | ||
11337 | ||
11338 | ||
11339 | ||
11340 | ||
11341 | ||
11342 | ||
11343 | ||
11344 | ||
11345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11346 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11347 | ||
11348 | if test "$GCC" = yes; then | |
11349 | case $host_os in | |
11350 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11351 | *) lt_awk_arg="/^libraries:/" ;; | |
11352 | esac | |
11353 | case $host_os in | |
11354 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11355 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11356 | esac | |
11357 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11358 | case $lt_search_path_spec in | |
11359 | *\;*) | |
11360 | # if the path contains ";" then we assume it to be the separator | |
11361 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11362 | # assumed that no part of a normal pathname contains ";" but that should | |
11363 | # okay in the real world where ";" in dirpaths is itself problematic. | |
11364 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
11365 | ;; | |
11366 | *) | |
11367 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11368 | ;; | |
11369 | esac | |
11370 | # Ok, now we have the path, separated by spaces, we can step through it | |
11371 | # and add multilib dir if necessary. | |
11372 | lt_tmp_lt_search_path_spec= | |
11373 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11374 | for lt_sys_path in $lt_search_path_spec; do | |
11375 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11376 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11377 | else | |
11378 | test -d "$lt_sys_path" && \ | |
11379 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11380 | fi | |
11381 | done | |
11382 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
11383 | BEGIN {RS=" "; FS="/|\n";} { | |
11384 | lt_foo=""; | |
11385 | lt_count=0; | |
11386 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11387 | if ($lt_i != "" && $lt_i != ".") { | |
11388 | if ($lt_i == "..") { | |
11389 | lt_count++; | |
11390 | } else { | |
11391 | if (lt_count == 0) { | |
11392 | lt_foo="/" $lt_i lt_foo; | |
11393 | } else { | |
11394 | lt_count--; | |
11395 | } | |
11396 | } | |
11397 | } | |
11398 | } | |
11399 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11400 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11401 | }'` | |
11402 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
11403 | # for these hosts. | |
11404 | case $host_os in | |
11405 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11406 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11407 | esac | |
11408 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11409 | else | |
11410 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11411 | fi | |
11412 | library_names_spec= | |
11413 | libname_spec='lib$name' | |
11414 | soname_spec= | |
11415 | shrext_cmds=".so" | |
11416 | postinstall_cmds= | |
11417 | postuninstall_cmds= | |
11418 | finish_cmds= | |
11419 | finish_eval= | |
11420 | shlibpath_var= | |
11421 | shlibpath_overrides_runpath=unknown | |
11422 | version_type=none | |
11423 | dynamic_linker="$host_os ld.so" | |
11424 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11425 | need_lib_prefix=unknown | |
11426 | hardcode_into_libs=no | |
11427 | ||
11428 | # when you set need_version to no, make sure it does not cause -set_version | |
11429 | # flags to be left without arguments | |
11430 | need_version=unknown | |
11431 | ||
11432 | case $host_os in | |
11433 | aix3*) | |
11434 | version_type=linux | |
11435 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11436 | shlibpath_var=LIBPATH | |
11437 | ||
11438 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11439 | soname_spec='${libname}${release}${shared_ext}$major' | |
11440 | ;; | |
11441 | ||
11442 | aix[4-9]*) | |
11443 | version_type=linux | |
11444 | need_lib_prefix=no | |
11445 | need_version=no | |
11446 | hardcode_into_libs=yes | |
11447 | if test "$host_cpu" = ia64; then | |
11448 | # AIX 5 supports IA64 | |
11449 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11450 | shlibpath_var=LD_LIBRARY_PATH | |
11451 | else | |
11452 | # With GCC up to 2.95.x, collect2 would create an import file | |
11453 | # for dependence libraries. The import file would start with | |
11454 | # the line `#! .'. This would cause the generated library to | |
11455 | # depend on `.', always an invalid library. This was fixed in | |
11456 | # development snapshots of GCC prior to 3.0. | |
11457 | case $host_os in | |
11458 | aix4 | aix4.[01] | aix4.[01].*) | |
11459 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11460 | echo ' yes ' | |
11461 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11462 | : | |
11463 | else | |
11464 | can_build_shared=no | |
11465 | fi | |
11466 | ;; | |
11467 | esac | |
11468 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11469 | # soname into executable. Probably we can add versioning support to | |
11470 | # collect2, so additional links can be useful in future. | |
11471 | if test "$aix_use_runtimelinking" = yes; then | |
11472 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11473 | # instead of lib<name>.a to let people know that these are not | |
11474 | # typical AIX shared libraries. | |
11475 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11476 | else | |
11477 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11478 | # and later when we are not doing run time linking. | |
11479 | library_names_spec='${libname}${release}.a $libname.a' | |
11480 | soname_spec='${libname}${release}${shared_ext}$major' | |
11481 | fi | |
11482 | shlibpath_var=LIBPATH | |
11483 | fi | |
11484 | ;; | |
11485 | ||
11486 | amigaos*) | |
11487 | case $host_cpu in | |
11488 | powerpc) | |
11489 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11490 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11492 | ;; | |
11493 | m68k) | |
11494 | library_names_spec='$libname.ixlibrary $libname.a' | |
11495 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11496 | 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' | |
11497 | ;; | |
11498 | esac | |
11499 | ;; | |
11500 | ||
11501 | beos*) | |
11502 | library_names_spec='${libname}${shared_ext}' | |
11503 | dynamic_linker="$host_os ld.so" | |
11504 | shlibpath_var=LIBRARY_PATH | |
11505 | ;; | |
11506 | ||
11507 | bsdi[45]*) | |
11508 | version_type=linux | |
11509 | need_version=no | |
11510 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11511 | soname_spec='${libname}${release}${shared_ext}$major' | |
11512 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11513 | shlibpath_var=LD_LIBRARY_PATH | |
11514 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11515 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11516 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11517 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11518 | # libtool to hard-code these into programs | |
11519 | ;; | |
11520 | ||
11521 | cygwin* | mingw* | pw32* | cegcc*) | |
11522 | version_type=windows | |
11523 | shrext_cmds=".dll" | |
11524 | need_version=no | |
11525 | need_lib_prefix=no | |
11526 | ||
11527 | case $GCC,$host_os in | |
11528 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
11529 | library_names_spec='$libname.dll.a' | |
11530 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11531 | postinstall_cmds='base_file=`basename \${file}`~ | |
11532 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11533 | dldir=$destdir/`dirname \$dlpath`~ | |
11534 | test -d \$dldir || mkdir -p \$dldir~ | |
11535 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11536 | chmod a+x \$dldir/$dlname~ | |
11537 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11538 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11539 | fi' | |
11540 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11541 | dlpath=$dir/\$dldll~ | |
11542 | $RM \$dlpath' | |
11543 | shlibpath_overrides_runpath=yes | |
11544 | ||
11545 | case $host_os in | |
11546 | cygwin*) | |
11547 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11548 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11549 | ||
11550 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
11551 | ;; | |
11552 | mingw* | cegcc*) | |
11553 | # MinGW DLLs use traditional 'lib' prefix | |
11554 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11555 | ;; | |
11556 | pw32*) | |
11557 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11558 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11559 | ;; | |
11560 | esac | |
11561 | ;; | |
11562 | ||
11563 | *) | |
11564 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11565 | ;; | |
11566 | esac | |
11567 | dynamic_linker='Win32 ld.exe' | |
11568 | # FIXME: first we should search . and the directory the executable is in | |
11569 | shlibpath_var=PATH | |
11570 | ;; | |
11571 | ||
11572 | darwin* | rhapsody*) | |
11573 | dynamic_linker="$host_os dyld" | |
11574 | version_type=darwin | |
11575 | need_lib_prefix=no | |
11576 | need_version=no | |
11577 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11578 | soname_spec='${libname}${release}${major}$shared_ext' | |
11579 | shlibpath_overrides_runpath=yes | |
11580 | shlibpath_var=DYLD_LIBRARY_PATH | |
11581 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11582 | ||
11583 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11584 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11585 | ;; | |
11586 | ||
11587 | dgux*) | |
11588 | version_type=linux | |
11589 | need_lib_prefix=no | |
11590 | need_version=no | |
11591 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11592 | soname_spec='${libname}${release}${shared_ext}$major' | |
11593 | shlibpath_var=LD_LIBRARY_PATH | |
11594 | ;; | |
11595 | ||
11596 | freebsd* | dragonfly*) | |
11597 | # DragonFly does not have aout. When/if they implement a new | |
11598 | # versioning mechanism, adjust this. | |
11599 | if test -x /usr/bin/objformat; then | |
11600 | objformat=`/usr/bin/objformat` | |
11601 | else | |
11602 | case $host_os in | |
11603 | freebsd[23].*) objformat=aout ;; | |
11604 | *) objformat=elf ;; | |
11605 | esac | |
11606 | fi | |
11607 | version_type=freebsd-$objformat | |
11608 | case $version_type in | |
11609 | freebsd-elf*) | |
11610 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11611 | need_version=no | |
11612 | need_lib_prefix=no | |
11613 | ;; | |
11614 | freebsd-*) | |
11615 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11616 | need_version=yes | |
11617 | ;; | |
11618 | esac | |
11619 | shlibpath_var=LD_LIBRARY_PATH | |
11620 | case $host_os in | |
11621 | freebsd2.*) | |
11622 | shlibpath_overrides_runpath=yes | |
11623 | ;; | |
11624 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11625 | shlibpath_overrides_runpath=yes | |
11626 | hardcode_into_libs=yes | |
11627 | ;; | |
11628 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11629 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11630 | shlibpath_overrides_runpath=no | |
11631 | hardcode_into_libs=yes | |
11632 | ;; | |
11633 | *) # from 4.6 on, and DragonFly | |
11634 | shlibpath_overrides_runpath=yes | |
11635 | hardcode_into_libs=yes | |
11636 | ;; | |
11637 | esac | |
11638 | ;; | |
11639 | ||
11640 | haiku*) | |
11641 | version_type=linux | |
11642 | need_lib_prefix=no | |
11643 | need_version=no | |
11644 | dynamic_linker="$host_os runtime_loader" | |
11645 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11646 | soname_spec='${libname}${release}${shared_ext}$major' | |
11647 | shlibpath_var=LIBRARY_PATH | |
11648 | shlibpath_overrides_runpath=yes | |
99aedb62 | 11649 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
b5689863 MF |
11650 | hardcode_into_libs=yes |
11651 | ;; | |
11652 | ||
11653 | hpux9* | hpux10* | hpux11*) | |
11654 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11655 | # link against other versions. | |
11656 | version_type=sunos | |
11657 | need_lib_prefix=no | |
11658 | need_version=no | |
11659 | case $host_cpu in | |
11660 | ia64*) | |
11661 | shrext_cmds='.so' | |
11662 | hardcode_into_libs=yes | |
11663 | dynamic_linker="$host_os dld.so" | |
11664 | shlibpath_var=LD_LIBRARY_PATH | |
11665 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11666 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11667 | soname_spec='${libname}${release}${shared_ext}$major' | |
11668 | if test "X$HPUX_IA64_MODE" = X32; then | |
11669 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11670 | else | |
11671 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11672 | fi | |
11673 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11674 | ;; | |
11675 | hppa*64*) | |
11676 | shrext_cmds='.sl' | |
11677 | hardcode_into_libs=yes | |
11678 | dynamic_linker="$host_os dld.sl" | |
11679 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11680 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11681 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11682 | soname_spec='${libname}${release}${shared_ext}$major' | |
11683 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11684 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11685 | ;; | |
11686 | *) | |
11687 | shrext_cmds='.sl' | |
11688 | dynamic_linker="$host_os dld.sl" | |
11689 | shlibpath_var=SHLIB_PATH | |
11690 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11691 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11692 | soname_spec='${libname}${release}${shared_ext}$major' | |
11693 | ;; | |
11694 | esac | |
11695 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11696 | postinstall_cmds='chmod 555 $lib' | |
11697 | # or fails outright, so override atomically: | |
11698 | install_override_mode=555 | |
11699 | ;; | |
11700 | ||
11701 | interix[3-9]*) | |
11702 | version_type=linux | |
11703 | need_lib_prefix=no | |
11704 | need_version=no | |
11705 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11706 | soname_spec='${libname}${release}${shared_ext}$major' | |
11707 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11708 | shlibpath_var=LD_LIBRARY_PATH | |
11709 | shlibpath_overrides_runpath=no | |
11710 | hardcode_into_libs=yes | |
11711 | ;; | |
11712 | ||
11713 | irix5* | irix6* | nonstopux*) | |
11714 | case $host_os in | |
11715 | nonstopux*) version_type=nonstopux ;; | |
11716 | *) | |
11717 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11718 | version_type=linux | |
11719 | else | |
11720 | version_type=irix | |
11721 | fi ;; | |
11722 | esac | |
11723 | need_lib_prefix=no | |
11724 | need_version=no | |
11725 | soname_spec='${libname}${release}${shared_ext}$major' | |
11726 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11727 | case $host_os in | |
11728 | irix5* | nonstopux*) | |
11729 | libsuff= shlibsuff= | |
11730 | ;; | |
11731 | *) | |
11732 | case $LD in # libtool.m4 will add one of these switches to LD | |
11733 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11734 | libsuff= shlibsuff= libmagic=32-bit;; | |
11735 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11736 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11737 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11738 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11739 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11740 | esac | |
11741 | ;; | |
11742 | esac | |
11743 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11744 | shlibpath_overrides_runpath=no | |
11745 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11746 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11747 | hardcode_into_libs=yes | |
11748 | ;; | |
11749 | ||
11750 | # No shared lib support for Linux oldld, aout, or coff. | |
11751 | linux*oldld* | linux*aout* | linux*coff*) | |
11752 | dynamic_linker=no | |
11753 | ;; | |
11754 | ||
11755 | # This must be Linux ELF. | |
11756 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11757 | version_type=linux | |
11758 | need_lib_prefix=no | |
11759 | need_version=no | |
11760 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11761 | soname_spec='${libname}${release}${shared_ext}$major' | |
11762 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11763 | shlibpath_var=LD_LIBRARY_PATH | |
11764 | shlibpath_overrides_runpath=no | |
11765 | ||
11766 | # Some binutils ld are patched to set DT_RUNPATH | |
11767 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
11768 | $as_echo_n "(cached) " >&6 | |
11769 | else | |
11770 | lt_cv_shlibpath_overrides_runpath=no | |
11771 | save_LDFLAGS=$LDFLAGS | |
11772 | save_libdir=$libdir | |
11773 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11774 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11776 | /* end confdefs.h. */ | |
11777 | ||
11778 | int | |
11779 | main () | |
11780 | { | |
11781 | ||
11782 | ; | |
11783 | return 0; | |
11784 | } | |
11785 | _ACEOF | |
11786 | if ac_fn_c_try_link "$LINENO"; then : | |
11787 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11788 | lt_cv_shlibpath_overrides_runpath=yes | |
11789 | fi | |
11790 | fi | |
11791 | rm -f core conftest.err conftest.$ac_objext \ | |
11792 | conftest$ac_exeext conftest.$ac_ext | |
11793 | LDFLAGS=$save_LDFLAGS | |
11794 | libdir=$save_libdir | |
11795 | ||
11796 | fi | |
11797 | ||
11798 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11799 | ||
11800 | # This implies no fast_install, which is unacceptable. | |
11801 | # Some rework will be needed to allow for fast_install | |
11802 | # before this can be enabled. | |
11803 | hardcode_into_libs=yes | |
11804 | ||
11805 | # Append ld.so.conf contents to the search path | |
11806 | if test -f /etc/ld.so.conf; then | |
11807 | 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' ' '` | |
11808 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11809 | fi | |
11810 | ||
11811 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11812 | # powerpc, because MkLinux only supported shared libraries with the | |
11813 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11814 | # most powerpc-linux boxes support dynamic linking these days and | |
11815 | # people can always --disable-shared, the test was removed, and we | |
11816 | # assume the GNU/Linux dynamic linker is in use. | |
11817 | dynamic_linker='GNU/Linux ld.so' | |
11818 | ;; | |
11819 | ||
11820 | netbsd*) | |
11821 | version_type=sunos | |
11822 | need_lib_prefix=no | |
11823 | need_version=no | |
11824 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11826 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11827 | dynamic_linker='NetBSD (a.out) ld.so' | |
11828 | else | |
11829 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11830 | soname_spec='${libname}${release}${shared_ext}$major' | |
11831 | dynamic_linker='NetBSD ld.elf_so' | |
11832 | fi | |
11833 | shlibpath_var=LD_LIBRARY_PATH | |
11834 | shlibpath_overrides_runpath=yes | |
11835 | hardcode_into_libs=yes | |
11836 | ;; | |
11837 | ||
11838 | newsos6) | |
11839 | version_type=linux | |
11840 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11841 | shlibpath_var=LD_LIBRARY_PATH | |
11842 | shlibpath_overrides_runpath=yes | |
11843 | ;; | |
11844 | ||
11845 | *nto* | *qnx*) | |
11846 | version_type=qnx | |
11847 | need_lib_prefix=no | |
11848 | need_version=no | |
11849 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11850 | soname_spec='${libname}${release}${shared_ext}$major' | |
11851 | shlibpath_var=LD_LIBRARY_PATH | |
11852 | shlibpath_overrides_runpath=no | |
11853 | hardcode_into_libs=yes | |
11854 | dynamic_linker='ldqnx.so' | |
11855 | ;; | |
11856 | ||
11857 | openbsd*) | |
11858 | version_type=sunos | |
11859 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11860 | need_lib_prefix=no | |
11861 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11862 | case $host_os in | |
11863 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11864 | *) need_version=no ;; | |
11865 | esac | |
11866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11867 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11868 | shlibpath_var=LD_LIBRARY_PATH | |
11869 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11870 | case $host_os in | |
11871 | openbsd2.[89] | openbsd2.[89].*) | |
11872 | shlibpath_overrides_runpath=no | |
11873 | ;; | |
11874 | *) | |
11875 | shlibpath_overrides_runpath=yes | |
11876 | ;; | |
11877 | esac | |
11878 | else | |
11879 | shlibpath_overrides_runpath=yes | |
11880 | fi | |
11881 | ;; | |
11882 | ||
11883 | os2*) | |
11884 | libname_spec='$name' | |
11885 | shrext_cmds=".dll" | |
11886 | need_lib_prefix=no | |
11887 | library_names_spec='$libname${shared_ext} $libname.a' | |
11888 | dynamic_linker='OS/2 ld.exe' | |
11889 | shlibpath_var=LIBPATH | |
11890 | ;; | |
11891 | ||
11892 | osf3* | osf4* | osf5*) | |
11893 | version_type=osf | |
11894 | need_lib_prefix=no | |
11895 | need_version=no | |
11896 | soname_spec='${libname}${release}${shared_ext}$major' | |
11897 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11898 | shlibpath_var=LD_LIBRARY_PATH | |
11899 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11900 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11901 | ;; | |
11902 | ||
11903 | rdos*) | |
11904 | dynamic_linker=no | |
11905 | ;; | |
11906 | ||
11907 | solaris*) | |
11908 | version_type=linux | |
11909 | need_lib_prefix=no | |
11910 | need_version=no | |
11911 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11912 | soname_spec='${libname}${release}${shared_ext}$major' | |
11913 | shlibpath_var=LD_LIBRARY_PATH | |
11914 | shlibpath_overrides_runpath=yes | |
11915 | hardcode_into_libs=yes | |
11916 | # ldd complains unless libraries are executable | |
11917 | postinstall_cmds='chmod +x $lib' | |
11918 | ;; | |
11919 | ||
11920 | sunos4*) | |
11921 | version_type=sunos | |
11922 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11923 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11924 | shlibpath_var=LD_LIBRARY_PATH | |
11925 | shlibpath_overrides_runpath=yes | |
11926 | if test "$with_gnu_ld" = yes; then | |
11927 | need_lib_prefix=no | |
11928 | fi | |
11929 | need_version=yes | |
11930 | ;; | |
11931 | ||
11932 | sysv4 | sysv4.3*) | |
11933 | version_type=linux | |
11934 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11935 | soname_spec='${libname}${release}${shared_ext}$major' | |
11936 | shlibpath_var=LD_LIBRARY_PATH | |
11937 | case $host_vendor in | |
11938 | sni) | |
11939 | shlibpath_overrides_runpath=no | |
11940 | need_lib_prefix=no | |
11941 | runpath_var=LD_RUN_PATH | |
11942 | ;; | |
11943 | siemens) | |
11944 | need_lib_prefix=no | |
11945 | ;; | |
11946 | motorola) | |
11947 | need_lib_prefix=no | |
11948 | need_version=no | |
11949 | shlibpath_overrides_runpath=no | |
11950 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11951 | ;; | |
11952 | esac | |
11953 | ;; | |
11954 | ||
11955 | sysv4*MP*) | |
11956 | if test -d /usr/nec ;then | |
11957 | version_type=linux | |
11958 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11959 | soname_spec='$libname${shared_ext}.$major' | |
11960 | shlibpath_var=LD_LIBRARY_PATH | |
11961 | fi | |
11962 | ;; | |
11963 | ||
11964 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11965 | version_type=freebsd-elf | |
11966 | need_lib_prefix=no | |
11967 | need_version=no | |
11968 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11969 | soname_spec='${libname}${release}${shared_ext}$major' | |
11970 | shlibpath_var=LD_LIBRARY_PATH | |
11971 | shlibpath_overrides_runpath=yes | |
11972 | hardcode_into_libs=yes | |
11973 | if test "$with_gnu_ld" = yes; then | |
11974 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11975 | else | |
11976 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11977 | case $host_os in | |
11978 | sco3.2v5*) | |
11979 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11980 | ;; | |
11981 | esac | |
11982 | fi | |
11983 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11984 | ;; | |
11985 | ||
11986 | tpf*) | |
11987 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11988 | version_type=linux | |
11989 | need_lib_prefix=no | |
11990 | need_version=no | |
11991 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11992 | shlibpath_var=LD_LIBRARY_PATH | |
11993 | shlibpath_overrides_runpath=no | |
11994 | hardcode_into_libs=yes | |
11995 | ;; | |
11996 | ||
11997 | uts4*) | |
11998 | version_type=linux | |
11999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12000 | soname_spec='${libname}${release}${shared_ext}$major' | |
12001 | shlibpath_var=LD_LIBRARY_PATH | |
12002 | ;; | |
12003 | ||
12004 | *) | |
12005 | dynamic_linker=no | |
12006 | ;; | |
12007 | esac | |
12008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
12009 | $as_echo "$dynamic_linker" >&6; } | |
12010 | test "$dynamic_linker" = no && can_build_shared=no | |
12011 | ||
12012 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12013 | if test "$GCC" = yes; then | |
12014 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12015 | fi | |
12016 | ||
12017 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
12018 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12019 | fi | |
12020 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12021 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12022 | fi | |
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 | ||
12054 | ||
12055 | ||
12056 | ||
12057 | ||
12058 | ||
12059 | ||
12060 | ||
12061 | ||
12062 | ||
12063 | ||
12064 | ||
12065 | ||
12066 | ||
12067 | ||
12068 | ||
12069 | ||
12070 | ||
12071 | ||
12072 | ||
12073 | ||
12074 | ||
12075 | ||
12076 | ||
12077 | ||
12078 | ||
12079 | ||
12080 | ||
12081 | ||
12082 | ||
12083 | ||
12084 | ||
12085 | ||
12086 | ||
12087 | ||
12088 | ||
12089 | ||
12090 | ||
12091 | ||
12092 | ||
12093 | ||
12094 | ||
12095 | ||
12096 | ||
12097 | ||
12098 | ||
12099 | ||
12100 | ||
12101 | ||
12102 | ||
12103 | ||
12104 | ||
12105 | ||
12106 | ||
12107 | ||
12108 | ||
12109 | ||
12110 | ||
12111 | ||
12112 | ||
12113 | ||
12114 | ||
12115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
12116 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
12117 | hardcode_action= | |
12118 | if test -n "$hardcode_libdir_flag_spec" || | |
12119 | test -n "$runpath_var" || | |
12120 | test "X$hardcode_automatic" = "Xyes" ; then | |
12121 | ||
12122 | # We can hardcode non-existent directories. | |
12123 | if test "$hardcode_direct" != no && | |
12124 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12125 | # have to relink, otherwise we might link with an installed library | |
12126 | # when we should be linking with a yet-to-be-installed one | |
12127 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12128 | test "$hardcode_minus_L" != no; then | |
12129 | # Linking always hardcodes the temporary library directory. | |
12130 | hardcode_action=relink | |
12131 | else | |
12132 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12133 | hardcode_action=immediate | |
12134 | fi | |
12135 | else | |
12136 | # We cannot hardcode anything, or else we can only hardcode existing | |
12137 | # directories. | |
12138 | hardcode_action=unsupported | |
12139 | fi | |
12140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
12141 | $as_echo "$hardcode_action" >&6; } | |
12142 | ||
12143 | if test "$hardcode_action" = relink || | |
12144 | test "$inherit_rpath" = yes; then | |
12145 | # Fast installation is not supported | |
12146 | enable_fast_install=no | |
12147 | elif test "$shlibpath_overrides_runpath" = yes || | |
12148 | test "$enable_shared" = no; then | |
12149 | # Fast installation is not necessary | |
12150 | enable_fast_install=needless | |
12151 | fi | |
12152 | ||
12153 | ||
12154 | ||
12155 | ||
12156 | ||
12157 | ||
12158 | if test "x$enable_dlopen" != xyes; then | |
12159 | enable_dlopen=unknown | |
12160 | enable_dlopen_self=unknown | |
12161 | enable_dlopen_self_static=unknown | |
12162 | else | |
12163 | lt_cv_dlopen=no | |
12164 | lt_cv_dlopen_libs= | |
12165 | ||
12166 | case $host_os in | |
12167 | beos*) | |
12168 | lt_cv_dlopen="load_add_on" | |
12169 | lt_cv_dlopen_libs= | |
12170 | lt_cv_dlopen_self=yes | |
12171 | ;; | |
12172 | ||
12173 | mingw* | pw32* | cegcc*) | |
12174 | lt_cv_dlopen="LoadLibrary" | |
12175 | lt_cv_dlopen_libs= | |
12176 | ;; | |
12177 | ||
12178 | cygwin*) | |
12179 | lt_cv_dlopen="dlopen" | |
12180 | lt_cv_dlopen_libs= | |
12181 | ;; | |
12182 | ||
12183 | darwin*) | |
12184 | # if libdl is installed we need to link against it | |
12185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12186 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12187 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12188 | $as_echo_n "(cached) " >&6 | |
12189 | else | |
12190 | ac_check_lib_save_LIBS=$LIBS | |
12191 | LIBS="-ldl $LIBS" | |
12192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12193 | /* end confdefs.h. */ | |
12194 | ||
12195 | /* Override any GCC internal prototype to avoid an error. | |
12196 | Use char because int might match the return type of a GCC | |
12197 | builtin and then its argument prototype would still apply. */ | |
12198 | #ifdef __cplusplus | |
12199 | extern "C" | |
12200 | #endif | |
12201 | char dlopen (); | |
12202 | int | |
12203 | main () | |
12204 | { | |
12205 | return dlopen (); | |
12206 | ; | |
12207 | return 0; | |
12208 | } | |
12209 | _ACEOF | |
12210 | if ac_fn_c_try_link "$LINENO"; then : | |
12211 | ac_cv_lib_dl_dlopen=yes | |
12212 | else | |
12213 | ac_cv_lib_dl_dlopen=no | |
12214 | fi | |
12215 | rm -f core conftest.err conftest.$ac_objext \ | |
12216 | conftest$ac_exeext conftest.$ac_ext | |
12217 | LIBS=$ac_check_lib_save_LIBS | |
12218 | fi | |
12219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12220 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12221 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12222 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12223 | else | |
12224 | ||
12225 | lt_cv_dlopen="dyld" | |
12226 | lt_cv_dlopen_libs= | |
12227 | lt_cv_dlopen_self=yes | |
12228 | ||
12229 | fi | |
12230 | ||
12231 | ;; | |
12232 | ||
12233 | *) | |
12234 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12235 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
12236 | lt_cv_dlopen="shl_load" | |
12237 | else | |
12238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12239 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12240 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12241 | $as_echo_n "(cached) " >&6 | |
12242 | else | |
12243 | ac_check_lib_save_LIBS=$LIBS | |
12244 | LIBS="-ldld $LIBS" | |
12245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12246 | /* end confdefs.h. */ | |
12247 | ||
12248 | /* Override any GCC internal prototype to avoid an error. | |
12249 | Use char because int might match the return type of a GCC | |
12250 | builtin and then its argument prototype would still apply. */ | |
12251 | #ifdef __cplusplus | |
12252 | extern "C" | |
12253 | #endif | |
12254 | char shl_load (); | |
a48ff3ef MF |
12255 | int |
12256 | main () | |
12257 | { | |
b5689863 | 12258 | return shl_load (); |
a48ff3ef MF |
12259 | ; |
12260 | return 0; | |
12261 | } | |
12262 | _ACEOF | |
12263 | if ac_fn_c_try_link "$LINENO"; then : | |
b5689863 | 12264 | ac_cv_lib_dld_shl_load=yes |
a48ff3ef | 12265 | else |
b5689863 | 12266 | ac_cv_lib_dld_shl_load=no |
a48ff3ef MF |
12267 | fi |
12268 | rm -f core conftest.err conftest.$ac_objext \ | |
12269 | conftest$ac_exeext conftest.$ac_ext | |
b5689863 | 12270 | LIBS=$ac_check_lib_save_LIBS |
a48ff3ef | 12271 | fi |
b5689863 MF |
12272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12273 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12274 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
12275 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
12276 | else | |
12277 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
12278 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
12279 | lt_cv_dlopen="dlopen" | |
12280 | else | |
12281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12282 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12283 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12284 | $as_echo_n "(cached) " >&6 | |
12285 | else | |
12286 | ac_check_lib_save_LIBS=$LIBS | |
12287 | LIBS="-ldl $LIBS" | |
12288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12289 | /* end confdefs.h. */ | |
a48ff3ef | 12290 | |
b5689863 MF |
12291 | /* Override any GCC internal prototype to avoid an error. |
12292 | Use char because int might match the return type of a GCC | |
12293 | builtin and then its argument prototype would still apply. */ | |
12294 | #ifdef __cplusplus | |
12295 | extern "C" | |
12296 | #endif | |
12297 | char dlopen (); | |
12298 | int | |
12299 | main () | |
12300 | { | |
12301 | return dlopen (); | |
12302 | ; | |
12303 | return 0; | |
12304 | } | |
12305 | _ACEOF | |
12306 | if ac_fn_c_try_link "$LINENO"; then : | |
12307 | ac_cv_lib_dl_dlopen=yes | |
12308 | else | |
12309 | ac_cv_lib_dl_dlopen=no | |
a48ff3ef | 12310 | fi |
b5689863 MF |
12311 | rm -f core conftest.err conftest.$ac_objext \ |
12312 | conftest$ac_exeext conftest.$ac_ext | |
12313 | LIBS=$ac_check_lib_save_LIBS | |
12314 | fi | |
12315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12316 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12317 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12318 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12319 | else | |
12320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12321 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12322 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
12323 | $as_echo_n "(cached) " >&6 | |
12324 | else | |
12325 | ac_check_lib_save_LIBS=$LIBS | |
12326 | LIBS="-lsvld $LIBS" | |
12327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12328 | /* end confdefs.h. */ | |
a48ff3ef | 12329 | |
b5689863 MF |
12330 | /* Override any GCC internal prototype to avoid an error. |
12331 | Use char because int might match the return type of a GCC | |
12332 | builtin and then its argument prototype would still apply. */ | |
12333 | #ifdef __cplusplus | |
12334 | extern "C" | |
b15c5d7a | 12335 | #endif |
b5689863 MF |
12336 | char dlopen (); |
12337 | int | |
12338 | main () | |
12339 | { | |
12340 | return dlopen (); | |
12341 | ; | |
12342 | return 0; | |
12343 | } | |
b15c5d7a | 12344 | _ACEOF |
b5689863 MF |
12345 | if ac_fn_c_try_link "$LINENO"; then : |
12346 | ac_cv_lib_svld_dlopen=yes | |
12347 | else | |
12348 | ac_cv_lib_svld_dlopen=no | |
b15c5d7a | 12349 | fi |
b5689863 MF |
12350 | rm -f core conftest.err conftest.$ac_objext \ |
12351 | conftest$ac_exeext conftest.$ac_ext | |
12352 | LIBS=$ac_check_lib_save_LIBS | |
12353 | fi | |
12354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12355 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12356 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
12357 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
12358 | else | |
12359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12360 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12361 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12362 | $as_echo_n "(cached) " >&6 | |
12363 | else | |
12364 | ac_check_lib_save_LIBS=$LIBS | |
12365 | LIBS="-ldld $LIBS" | |
12366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12367 | /* end confdefs.h. */ | |
b15c5d7a | 12368 | |
b5689863 MF |
12369 | /* Override any GCC internal prototype to avoid an error. |
12370 | Use char because int might match the return type of a GCC | |
12371 | builtin and then its argument prototype would still apply. */ | |
12372 | #ifdef __cplusplus | |
12373 | extern "C" | |
12374 | #endif | |
12375 | char dld_link (); | |
12376 | int | |
12377 | main () | |
12378 | { | |
12379 | return dld_link (); | |
12380 | ; | |
12381 | return 0; | |
12382 | } | |
b15c5d7a | 12383 | _ACEOF |
b5689863 MF |
12384 | if ac_fn_c_try_link "$LINENO"; then : |
12385 | ac_cv_lib_dld_dld_link=yes | |
12386 | else | |
12387 | ac_cv_lib_dld_dld_link=no | |
12388 | fi | |
12389 | rm -f core conftest.err conftest.$ac_objext \ | |
12390 | conftest$ac_exeext conftest.$ac_ext | |
12391 | LIBS=$ac_check_lib_save_LIBS | |
12392 | fi | |
12393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12394 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12395 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
12396 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
12397 | fi | |
b15c5d7a MF |
12398 | |
12399 | ||
12400 | fi | |
b15c5d7a | 12401 | |
b5689863 MF |
12402 | |
12403 | fi | |
b15c5d7a MF |
12404 | |
12405 | ||
12406 | fi | |
b15c5d7a | 12407 | |
b5689863 MF |
12408 | |
12409 | fi | |
b15c5d7a MF |
12410 | |
12411 | ||
12412 | fi | |
b15c5d7a | 12413 | |
b5689863 MF |
12414 | ;; |
12415 | esac | |
b15c5d7a | 12416 | |
b5689863 MF |
12417 | if test "x$lt_cv_dlopen" != xno; then |
12418 | enable_dlopen=yes | |
12419 | else | |
12420 | enable_dlopen=no | |
12421 | fi | |
b15c5d7a | 12422 | |
b5689863 MF |
12423 | case $lt_cv_dlopen in |
12424 | dlopen) | |
12425 | save_CPPFLAGS="$CPPFLAGS" | |
12426 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
b15c5d7a | 12427 | |
b5689863 MF |
12428 | save_LDFLAGS="$LDFLAGS" |
12429 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
b15c5d7a | 12430 | |
b5689863 MF |
12431 | save_LIBS="$LIBS" |
12432 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
b15c5d7a | 12433 | |
b5689863 MF |
12434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12435 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12436 | if ${lt_cv_dlopen_self+:} false; then : | |
12437 | $as_echo_n "(cached) " >&6 | |
12438 | else | |
12439 | if test "$cross_compiling" = yes; then : | |
12440 | lt_cv_dlopen_self=cross | |
12441 | else | |
12442 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12443 | lt_status=$lt_dlunknown | |
12444 | cat > conftest.$ac_ext <<_LT_EOF | |
9a7472d7 | 12445 | #line 12445 "configure" |
b5689863 MF |
12446 | #include "confdefs.h" |
12447 | ||
12448 | #if HAVE_DLFCN_H | |
12449 | #include <dlfcn.h> | |
b15c5d7a | 12450 | #endif |
b15c5d7a | 12451 | |
b5689863 | 12452 | #include <stdio.h> |
b15c5d7a | 12453 | |
b5689863 MF |
12454 | #ifdef RTLD_GLOBAL |
12455 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12456 | #else | |
12457 | # ifdef DL_GLOBAL | |
12458 | # define LT_DLGLOBAL DL_GLOBAL | |
12459 | # else | |
12460 | # define LT_DLGLOBAL 0 | |
12461 | # endif | |
12462 | #endif | |
b15c5d7a | 12463 | |
b5689863 MF |
12464 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12465 | find out it does not work in some platform. */ | |
12466 | #ifndef LT_DLLAZY_OR_NOW | |
12467 | # ifdef RTLD_LAZY | |
12468 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12469 | # else | |
12470 | # ifdef DL_LAZY | |
12471 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12472 | # else | |
12473 | # ifdef RTLD_NOW | |
12474 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12475 | # else | |
12476 | # ifdef DL_NOW | |
12477 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12478 | # else | |
12479 | # define LT_DLLAZY_OR_NOW 0 | |
12480 | # endif | |
12481 | # endif | |
12482 | # endif | |
12483 | # endif | |
b15c5d7a | 12484 | #endif |
b5689863 MF |
12485 | |
12486 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12487 | correspondingly for the symbols needed. */ | |
12488 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12489 | void fnord () __attribute__((visibility("default"))); | |
b15c5d7a | 12490 | #endif |
b15c5d7a | 12491 | |
b5689863 MF |
12492 | void fnord () { int i=42; } |
12493 | int main () | |
12494 | { | |
12495 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12496 | int status = $lt_dlunknown; | |
b15c5d7a | 12497 | |
b5689863 MF |
12498 | if (self) |
12499 | { | |
12500 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12501 | else | |
12502 | { | |
12503 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12504 | else puts (dlerror ()); | |
12505 | } | |
12506 | /* dlclose (self); */ | |
12507 | } | |
12508 | else | |
12509 | puts (dlerror ()); | |
b15c5d7a | 12510 | |
b5689863 MF |
12511 | return status; |
12512 | } | |
12513 | _LT_EOF | |
12514 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12515 | (eval $ac_link) 2>&5 | |
12516 | ac_status=$? | |
12517 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12518 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12519 | (./conftest; exit; ) >&5 2>/dev/null | |
12520 | lt_status=$? | |
12521 | case x$lt_status in | |
12522 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12523 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12524 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12525 | esac | |
12526 | else : | |
12527 | # compilation failed | |
12528 | lt_cv_dlopen_self=no | |
12529 | fi | |
b15c5d7a | 12530 | fi |
b5689863 | 12531 | rm -fr conftest* |
b15c5d7a MF |
12532 | |
12533 | ||
12534 | fi | |
b5689863 MF |
12535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12536 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12537 | ||
12538 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12539 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12541 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12542 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12543 | $as_echo_n "(cached) " >&6 | |
12544 | else | |
12545 | if test "$cross_compiling" = yes; then : | |
12546 | lt_cv_dlopen_self_static=cross | |
12547 | else | |
12548 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12549 | lt_status=$lt_dlunknown | |
12550 | cat > conftest.$ac_ext <<_LT_EOF | |
9a7472d7 | 12551 | #line 12551 "configure" |
b5689863 MF |
12552 | #include "confdefs.h" |
12553 | ||
12554 | #if HAVE_DLFCN_H | |
12555 | #include <dlfcn.h> | |
b15c5d7a | 12556 | #endif |
b15c5d7a | 12557 | |
b5689863 | 12558 | #include <stdio.h> |
b15c5d7a | 12559 | |
b5689863 MF |
12560 | #ifdef RTLD_GLOBAL |
12561 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12562 | #else | |
12563 | # ifdef DL_GLOBAL | |
12564 | # define LT_DLGLOBAL DL_GLOBAL | |
12565 | # else | |
12566 | # define LT_DLGLOBAL 0 | |
12567 | # endif | |
12568 | #endif | |
b15c5d7a | 12569 | |
b5689863 MF |
12570 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12571 | find out it does not work in some platform. */ | |
12572 | #ifndef LT_DLLAZY_OR_NOW | |
12573 | # ifdef RTLD_LAZY | |
12574 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12575 | # else | |
12576 | # ifdef DL_LAZY | |
12577 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12578 | # else | |
12579 | # ifdef RTLD_NOW | |
12580 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12581 | # else | |
12582 | # ifdef DL_NOW | |
12583 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12584 | # else | |
12585 | # define LT_DLLAZY_OR_NOW 0 | |
12586 | # endif | |
12587 | # endif | |
12588 | # endif | |
12589 | # endif | |
b15c5d7a | 12590 | #endif |
b5689863 MF |
12591 | |
12592 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12593 | correspondingly for the symbols needed. */ | |
12594 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12595 | void fnord () __attribute__((visibility("default"))); | |
b15c5d7a | 12596 | #endif |
b15c5d7a | 12597 | |
b5689863 MF |
12598 | void fnord () { int i=42; } |
12599 | int main () | |
12600 | { | |
12601 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12602 | int status = $lt_dlunknown; | |
12603 | ||
12604 | if (self) | |
12605 | { | |
12606 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12607 | else | |
12608 | { | |
12609 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12610 | else puts (dlerror ()); | |
12611 | } | |
12612 | /* dlclose (self); */ | |
12613 | } | |
12614 | else | |
12615 | puts (dlerror ()); | |
12616 | ||
12617 | return status; | |
12618 | } | |
12619 | _LT_EOF | |
12620 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12621 | (eval $ac_link) 2>&5 | |
12622 | ac_status=$? | |
12623 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12624 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12625 | (./conftest; exit; ) >&5 2>/dev/null | |
12626 | lt_status=$? | |
12627 | case x$lt_status in | |
12628 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12629 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12630 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12631 | esac | |
12632 | else : | |
12633 | # compilation failed | |
12634 | lt_cv_dlopen_self_static=no | |
12635 | fi | |
12636 | fi | |
12637 | rm -fr conftest* | |
b15c5d7a MF |
12638 | |
12639 | ||
12640 | fi | |
b5689863 MF |
12641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12642 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12643 | fi | |
b15c5d7a | 12644 | |
b5689863 MF |
12645 | CPPFLAGS="$save_CPPFLAGS" |
12646 | LDFLAGS="$save_LDFLAGS" | |
12647 | LIBS="$save_LIBS" | |
12648 | ;; | |
12649 | esac | |
b15c5d7a | 12650 | |
b5689863 MF |
12651 | case $lt_cv_dlopen_self in |
12652 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12653 | *) enable_dlopen_self=unknown ;; | |
12654 | esac | |
b15c5d7a | 12655 | |
b5689863 MF |
12656 | case $lt_cv_dlopen_self_static in |
12657 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12658 | *) enable_dlopen_self_static=unknown ;; | |
12659 | esac | |
b15c5d7a | 12660 | fi |
b15c5d7a | 12661 | |
b15c5d7a MF |
12662 | |
12663 | ||
b15c5d7a MF |
12664 | |
12665 | ||
b15c5d7a | 12666 | |
b15c5d7a MF |
12667 | |
12668 | ||
b15c5d7a | 12669 | |
b15c5d7a | 12670 | |
b15c5d7a | 12671 | |
b15c5d7a MF |
12672 | |
12673 | ||
b15c5d7a MF |
12674 | |
12675 | ||
a48ff3ef | 12676 | |
a48ff3ef | 12677 | |
b5689863 MF |
12678 | striplib= |
12679 | old_striplib= | |
12680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12681 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12682 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12683 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12684 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12686 | $as_echo "yes" >&6; } | |
a48ff3ef | 12687 | else |
b5689863 MF |
12688 | # FIXME - insert some real tests, host_os isn't really good enough |
12689 | case $host_os in | |
12690 | darwin*) | |
12691 | if test -n "$STRIP" ; then | |
12692 | striplib="$STRIP -x" | |
12693 | old_striplib="$STRIP -S" | |
12694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12695 | $as_echo "yes" >&6; } | |
12696 | else | |
12697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12698 | $as_echo "no" >&6; } | |
12699 | fi | |
12700 | ;; | |
12701 | *) | |
12702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12703 | $as_echo "no" >&6; } | |
12704 | ;; | |
12705 | esac | |
a48ff3ef MF |
12706 | fi |
12707 | ||
a48ff3ef | 12708 | |
a48ff3ef | 12709 | |
a48ff3ef | 12710 | |
a48ff3ef MF |
12711 | |
12712 | ||
a48ff3ef | 12713 | |
a48ff3ef | 12714 | |
a48ff3ef | 12715 | |
a48ff3ef | 12716 | |
a48ff3ef | 12717 | |
a48ff3ef | 12718 | |
b5689863 MF |
12719 | # Report which library types will actually be built |
12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12721 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12723 | $as_echo "$can_build_shared" >&6; } | |
a48ff3ef | 12724 | |
b5689863 MF |
12725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12726 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12727 | test "$can_build_shared" = "no" && enable_shared=no | |
a48ff3ef | 12728 | |
b5689863 MF |
12729 | # On AIX, shared libraries and static libraries use the same namespace, and |
12730 | # are all built from PIC. | |
12731 | case $host_os in | |
12732 | aix3*) | |
12733 | test "$enable_shared" = yes && enable_static=no | |
12734 | if test -n "$RANLIB"; then | |
12735 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12736 | postinstall_cmds='$RANLIB $lib' | |
12737 | fi | |
12738 | ;; | |
a48ff3ef | 12739 | |
b5689863 MF |
12740 | aix[4-9]*) |
12741 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12742 | test "$enable_shared" = yes && enable_static=no | |
12743 | fi | |
12744 | ;; | |
12745 | esac | |
12746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12747 | $as_echo "$enable_shared" >&6; } | |
12748 | ||
12749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12750 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12751 | # Make sure either enable_shared or enable_static is yes. | |
12752 | test "$enable_shared" = yes || enable_static=yes | |
12753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12754 | $as_echo "$enable_static" >&6; } | |
a48ff3ef | 12755 | |
a48ff3ef | 12756 | |
a48ff3ef | 12757 | |
b15c5d7a | 12758 | |
b15c5d7a | 12759 | fi |
b5689863 MF |
12760 | ac_ext=c |
12761 | ac_cpp='$CPP $CPPFLAGS' | |
12762 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12763 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12764 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b15c5d7a | 12765 | |
b5689863 | 12766 | CC="$lt_save_CC" |
b15c5d7a MF |
12767 | |
12768 | ||
a48ff3ef | 12769 | |
a48ff3ef | 12770 | |
a48ff3ef | 12771 | |
a48ff3ef | 12772 | |
a48ff3ef | 12773 | |
a48ff3ef | 12774 | |
a48ff3ef | 12775 | |
a48ff3ef MF |
12776 | |
12777 | ||
a48ff3ef | 12778 | |
b5689863 MF |
12779 | |
12780 | ac_config_commands="$ac_config_commands libtool" | |
12781 | ||
12782 | ||
12783 | ||
12784 | ||
12785 | # Only expand once: | |
12786 | ||
12787 | ||
a48ff3ef | 12788 | |
05108158 MF |
12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5 |
12790 | $as_echo_n "checking for library containing bind... " >&6; } | |
12791 | if ${ac_cv_search_bind+:} false; then : | |
07490bf8 MF |
12792 | $as_echo_n "(cached) " >&6 |
12793 | else | |
05108158 | 12794 | ac_func_search_save_LIBS=$LIBS |
07490bf8 MF |
12795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12796 | /* end confdefs.h. */ | |
12797 | ||
12798 | /* Override any GCC internal prototype to avoid an error. | |
12799 | Use char because int might match the return type of a GCC | |
12800 | builtin and then its argument prototype would still apply. */ | |
12801 | #ifdef __cplusplus | |
12802 | extern "C" | |
12803 | #endif | |
12804 | char bind (); | |
12805 | int | |
12806 | main () | |
12807 | { | |
12808 | return bind (); | |
12809 | ; | |
12810 | return 0; | |
12811 | } | |
12812 | _ACEOF | |
05108158 MF |
12813 | for ac_lib in '' socket; do |
12814 | if test -z "$ac_lib"; then | |
12815 | ac_res="none required" | |
12816 | else | |
12817 | ac_res=-l$ac_lib | |
12818 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12819 | fi | |
12820 | if ac_fn_c_try_link "$LINENO"; then : | |
12821 | ac_cv_search_bind=$ac_res | |
07490bf8 MF |
12822 | fi |
12823 | rm -f core conftest.err conftest.$ac_objext \ | |
05108158 MF |
12824 | conftest$ac_exeext |
12825 | if ${ac_cv_search_bind+:} false; then : | |
12826 | break | |
07490bf8 | 12827 | fi |
05108158 MF |
12828 | done |
12829 | if ${ac_cv_search_bind+:} false; then : | |
07490bf8 | 12830 | |
05108158 MF |
12831 | else |
12832 | ac_cv_search_bind=no | |
12833 | fi | |
12834 | rm conftest.$ac_ext | |
12835 | LIBS=$ac_func_search_save_LIBS | |
12836 | fi | |
12837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5 | |
12838 | $as_echo "$ac_cv_search_bind" >&6; } | |
12839 | ac_res=$ac_cv_search_bind | |
12840 | if test "$ac_res" != no; then : | |
12841 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
07490bf8 MF |
12842 | |
12843 | fi | |
12844 | ||
05108158 MF |
12845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 |
12846 | $as_echo_n "checking for library containing gethostbyname... " >&6; } | |
12847 | if ${ac_cv_search_gethostbyname+:} false; then : | |
07490bf8 MF |
12848 | $as_echo_n "(cached) " >&6 |
12849 | else | |
05108158 | 12850 | ac_func_search_save_LIBS=$LIBS |
07490bf8 MF |
12851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12852 | /* end confdefs.h. */ | |
12853 | ||
12854 | /* Override any GCC internal prototype to avoid an error. | |
12855 | Use char because int might match the return type of a GCC | |
12856 | builtin and then its argument prototype would still apply. */ | |
12857 | #ifdef __cplusplus | |
12858 | extern "C" | |
12859 | #endif | |
12860 | char gethostbyname (); | |
12861 | int | |
12862 | main () | |
12863 | { | |
12864 | return gethostbyname (); | |
12865 | ; | |
12866 | return 0; | |
12867 | } | |
12868 | _ACEOF | |
05108158 MF |
12869 | for ac_lib in '' nsl; do |
12870 | if test -z "$ac_lib"; then | |
12871 | ac_res="none required" | |
12872 | else | |
12873 | ac_res=-l$ac_lib | |
12874 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12875 | fi | |
12876 | if ac_fn_c_try_link "$LINENO"; then : | |
12877 | ac_cv_search_gethostbyname=$ac_res | |
07490bf8 MF |
12878 | fi |
12879 | rm -f core conftest.err conftest.$ac_objext \ | |
05108158 MF |
12880 | conftest$ac_exeext |
12881 | if ${ac_cv_search_gethostbyname+:} false; then : | |
12882 | break | |
07490bf8 | 12883 | fi |
05108158 MF |
12884 | done |
12885 | if ${ac_cv_search_gethostbyname+:} false; then : | |
07490bf8 | 12886 | |
05108158 MF |
12887 | else |
12888 | ac_cv_search_gethostbyname=no | |
12889 | fi | |
12890 | rm conftest.$ac_ext | |
12891 | LIBS=$ac_func_search_save_LIBS | |
12892 | fi | |
12893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 | |
12894 | $as_echo "$ac_cv_search_gethostbyname" >&6; } | |
12895 | ac_res=$ac_cv_search_gethostbyname | |
12896 | if test "$ac_res" != no; then : | |
12897 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
07490bf8 MF |
12898 | |
12899 | fi | |
12900 | ||
05108158 MF |
12901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5 |
12902 | $as_echo_n "checking for library containing fabs... " >&6; } | |
12903 | if ${ac_cv_search_fabs+:} false; then : | |
07490bf8 MF |
12904 | $as_echo_n "(cached) " >&6 |
12905 | else | |
05108158 | 12906 | ac_func_search_save_LIBS=$LIBS |
07490bf8 MF |
12907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12908 | /* end confdefs.h. */ | |
12909 | ||
12910 | /* Override any GCC internal prototype to avoid an error. | |
12911 | Use char because int might match the return type of a GCC | |
12912 | builtin and then its argument prototype would still apply. */ | |
12913 | #ifdef __cplusplus | |
12914 | extern "C" | |
12915 | #endif | |
12916 | char fabs (); | |
12917 | int | |
12918 | main () | |
12919 | { | |
12920 | return fabs (); | |
12921 | ; | |
12922 | return 0; | |
12923 | } | |
12924 | _ACEOF | |
05108158 MF |
12925 | for ac_lib in '' m; do |
12926 | if test -z "$ac_lib"; then | |
12927 | ac_res="none required" | |
12928 | else | |
12929 | ac_res=-l$ac_lib | |
12930 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12931 | fi | |
12932 | if ac_fn_c_try_link "$LINENO"; then : | |
12933 | ac_cv_search_fabs=$ac_res | |
07490bf8 MF |
12934 | fi |
12935 | rm -f core conftest.err conftest.$ac_objext \ | |
05108158 MF |
12936 | conftest$ac_exeext |
12937 | if ${ac_cv_search_fabs+:} false; then : | |
12938 | break | |
07490bf8 | 12939 | fi |
05108158 MF |
12940 | done |
12941 | if ${ac_cv_search_fabs+:} false; then : | |
07490bf8 | 12942 | |
05108158 MF |
12943 | else |
12944 | ac_cv_search_fabs=no | |
12945 | fi | |
12946 | rm conftest.$ac_ext | |
12947 | LIBS=$ac_func_search_save_LIBS | |
12948 | fi | |
12949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5 | |
12950 | $as_echo "$ac_cv_search_fabs" >&6; } | |
12951 | ac_res=$ac_cv_search_fabs | |
12952 | if test "$ac_res" != no; then : | |
12953 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
07490bf8 MF |
12954 | |
12955 | fi | |
12956 | ||
05108158 MF |
12957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5 |
12958 | $as_echo_n "checking for library containing log2... " >&6; } | |
12959 | if ${ac_cv_search_log2+:} false; then : | |
07490bf8 MF |
12960 | $as_echo_n "(cached) " >&6 |
12961 | else | |
05108158 | 12962 | ac_func_search_save_LIBS=$LIBS |
07490bf8 MF |
12963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12964 | /* end confdefs.h. */ | |
12965 | ||
12966 | /* Override any GCC internal prototype to avoid an error. | |
12967 | Use char because int might match the return type of a GCC | |
12968 | builtin and then its argument prototype would still apply. */ | |
12969 | #ifdef __cplusplus | |
12970 | extern "C" | |
12971 | #endif | |
12972 | char log2 (); | |
12973 | int | |
12974 | main () | |
12975 | { | |
12976 | return log2 (); | |
12977 | ; | |
12978 | return 0; | |
12979 | } | |
12980 | _ACEOF | |
05108158 MF |
12981 | for ac_lib in '' m; do |
12982 | if test -z "$ac_lib"; then | |
12983 | ac_res="none required" | |
12984 | else | |
12985 | ac_res=-l$ac_lib | |
12986 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12987 | fi | |
12988 | if ac_fn_c_try_link "$LINENO"; then : | |
12989 | ac_cv_search_log2=$ac_res | |
07490bf8 MF |
12990 | fi |
12991 | rm -f core conftest.err conftest.$ac_objext \ | |
05108158 MF |
12992 | conftest$ac_exeext |
12993 | if ${ac_cv_search_log2+:} false; then : | |
12994 | break | |
07490bf8 | 12995 | fi |
05108158 MF |
12996 | done |
12997 | if ${ac_cv_search_log2+:} false; then : | |
07490bf8 | 12998 | |
05108158 MF |
12999 | else |
13000 | ac_cv_search_log2=no | |
13001 | fi | |
13002 | rm conftest.$ac_ext | |
13003 | LIBS=$ac_func_search_save_LIBS | |
13004 | fi | |
13005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5 | |
13006 | $as_echo "$ac_cv_search_log2" >&6; } | |
13007 | ac_res=$ac_cv_search_log2 | |
13008 | if test "$ac_res" != no; then : | |
13009 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
07490bf8 MF |
13010 | |
13011 | fi | |
13012 | ||
13013 | ||
05108158 MF |
13014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
13015 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
13016 | if ${ac_cv_search_dlopen+:} false; then : | |
f050cfdd MF |
13017 | $as_echo_n "(cached) " >&6 |
13018 | else | |
05108158 | 13019 | ac_func_search_save_LIBS=$LIBS |
f050cfdd MF |
13020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13021 | /* end confdefs.h. */ | |
13022 | ||
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 | |
05108158 MF |
13038 | for ac_lib in '' dl; do |
13039 | if test -z "$ac_lib"; then | |
13040 | ac_res="none required" | |
13041 | else | |
13042 | ac_res=-l$ac_lib | |
13043 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13044 | fi | |
13045 | if ac_fn_c_try_link "$LINENO"; then : | |
13046 | ac_cv_search_dlopen=$ac_res | |
f050cfdd MF |
13047 | fi |
13048 | rm -f core conftest.err conftest.$ac_objext \ | |
05108158 MF |
13049 | conftest$ac_exeext |
13050 | if ${ac_cv_search_dlopen+:} false; then : | |
13051 | break | |
f050cfdd | 13052 | fi |
05108158 MF |
13053 | done |
13054 | if ${ac_cv_search_dlopen+:} false; then : | |
f050cfdd | 13055 | |
05108158 MF |
13056 | else |
13057 | ac_cv_search_dlopen=no | |
13058 | fi | |
13059 | rm conftest.$ac_ext | |
13060 | LIBS=$ac_func_search_save_LIBS | |
13061 | fi | |
13062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
13063 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
13064 | ac_res=$ac_cv_search_dlopen | |
13065 | if test "$ac_res" != no; then : | |
13066 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
f050cfdd MF |
13067 | |
13068 | fi | |
13069 | ||
13070 | if test "${ac_cv_lib_dl_dlopen}" = "yes"; then | |
13071 | ||
13072 | pkg_failed=no | |
13073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5 | |
13074 | $as_echo_n "checking for sdl2... " >&6; } | |
13075 | ||
13076 | if test -n "$SDL_CFLAGS"; then | |
13077 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | |
13078 | elif test -n "$PKG_CONFIG"; then | |
13079 | if test -n "$PKG_CONFIG" && \ | |
13080 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5 | |
13081 | ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5 | |
13082 | ac_status=$? | |
13083 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13084 | test $ac_status = 0; }; then | |
13085 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null` | |
13086 | test "x$?" != "x0" && pkg_failed=yes | |
13087 | else | |
13088 | pkg_failed=yes | |
13089 | fi | |
13090 | else | |
13091 | pkg_failed=untried | |
13092 | fi | |
13093 | if test -n "$SDL_LIBS"; then | |
13094 | pkg_cv_SDL_LIBS="$SDL_LIBS" | |
13095 | elif test -n "$PKG_CONFIG"; then | |
13096 | if test -n "$PKG_CONFIG" && \ | |
13097 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5 | |
13098 | ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5 | |
13099 | ac_status=$? | |
13100 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13101 | test $ac_status = 0; }; then | |
13102 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null` | |
13103 | test "x$?" != "x0" && pkg_failed=yes | |
13104 | else | |
13105 | pkg_failed=yes | |
13106 | fi | |
13107 | else | |
13108 | pkg_failed=untried | |
13109 | fi | |
13110 | ||
13111 | if test $pkg_failed = no; then | |
13112 | pkg_save_LDFLAGS="$LDFLAGS" | |
13113 | LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS" | |
13114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13115 | /* end confdefs.h. */ | |
13116 | ||
13117 | int | |
13118 | main () | |
13119 | { | |
13120 | ||
13121 | ; | |
13122 | return 0; | |
13123 | } | |
13124 | _ACEOF | |
13125 | if ac_fn_c_try_link "$LINENO"; then : | |
13126 | ||
13127 | else | |
13128 | pkg_failed=yes | |
13129 | fi | |
13130 | rm -f core conftest.err conftest.$ac_objext \ | |
13131 | conftest$ac_exeext conftest.$ac_ext | |
13132 | LDFLAGS=$pkg_save_LDFLAGS | |
13133 | fi | |
13134 | ||
13135 | ||
13136 | ||
13137 | if test $pkg_failed = yes; then | |
13138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13139 | $as_echo "no" >&6; } | |
13140 | ||
13141 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13142 | _pkg_short_errors_supported=yes | |
13143 | else | |
13144 | _pkg_short_errors_supported=no | |
13145 | fi | |
13146 | if test $_pkg_short_errors_supported = yes; then | |
13147 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1` | |
13148 | else | |
13149 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1` | |
13150 | fi | |
13151 | # Put the nasty error message in config.log where it belongs | |
13152 | echo "$SDL_PKG_ERRORS" >&5 | |
13153 | ||
13154 | ||
b15c5d7a | 13155 | |
d57b6533 MF |
13156 | pkg_failed=no |
13157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5 | |
13158 | $as_echo_n "checking for sdl... " >&6; } | |
13159 | ||
13160 | if test -n "$SDL_CFLAGS"; then | |
13161 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | |
13162 | elif test -n "$PKG_CONFIG"; then | |
13163 | if test -n "$PKG_CONFIG" && \ | |
13164 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
13165 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
13166 | ac_status=$? | |
13167 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13168 | test $ac_status = 0; }; then | |
13169 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null` | |
13170 | test "x$?" != "x0" && pkg_failed=yes | |
13171 | else | |
13172 | pkg_failed=yes | |
13173 | fi | |
13174 | else | |
13175 | pkg_failed=untried | |
13176 | fi | |
13177 | if test -n "$SDL_LIBS"; then | |
13178 | pkg_cv_SDL_LIBS="$SDL_LIBS" | |
13179 | elif test -n "$PKG_CONFIG"; then | |
13180 | if test -n "$PKG_CONFIG" && \ | |
13181 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
13182 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
13183 | ac_status=$? | |
13184 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13185 | test $ac_status = 0; }; then | |
13186 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null` | |
13187 | test "x$?" != "x0" && pkg_failed=yes | |
13188 | else | |
13189 | pkg_failed=yes | |
13190 | fi | |
13191 | else | |
13192 | pkg_failed=untried | |
13193 | fi | |
13194 | ||
13195 | if test $pkg_failed = no; then | |
13196 | pkg_save_LDFLAGS="$LDFLAGS" | |
13197 | LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS" | |
13198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13199 | /* end confdefs.h. */ | |
13200 | ||
13201 | int | |
13202 | main () | |
13203 | { | |
13204 | ||
13205 | ; | |
13206 | return 0; | |
13207 | } | |
13208 | _ACEOF | |
13209 | if ac_fn_c_try_link "$LINENO"; then : | |
13210 | ||
13211 | else | |
13212 | pkg_failed=yes | |
13213 | fi | |
13214 | rm -f core conftest.err conftest.$ac_objext \ | |
13215 | conftest$ac_exeext conftest.$ac_ext | |
13216 | LDFLAGS=$pkg_save_LDFLAGS | |
13217 | fi | |
13218 | ||
13219 | ||
13220 | ||
13221 | if test $pkg_failed = yes; then | |
13222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13223 | $as_echo "no" >&6; } | |
13224 | ||
13225 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13226 | _pkg_short_errors_supported=yes | |
13227 | else | |
13228 | _pkg_short_errors_supported=no | |
13229 | fi | |
13230 | if test $_pkg_short_errors_supported = yes; then | |
13231 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1` | |
13232 | else | |
13233 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1` | |
13234 | fi | |
13235 | # Put the nasty error message in config.log where it belongs | |
13236 | echo "$SDL_PKG_ERRORS" >&5 | |
13237 | ||
13238 | : | |
13239 | elif test $pkg_failed = untried; then | |
13240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13241 | $as_echo "no" >&6; } | |
13242 | : | |
13243 | else | |
13244 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | |
13245 | SDL_LIBS=$pkg_cv_SDL_LIBS | |
13246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13247 | $as_echo "yes" >&6; } | |
f050cfdd | 13248 | SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1" |
f050cfdd MF |
13249 | |
13250 | fi | |
13251 | ||
13252 | elif test $pkg_failed = untried; then | |
13253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13254 | $as_echo "no" >&6; } | |
13255 | ||
13256 | ||
13257 | pkg_failed=no | |
13258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5 | |
13259 | $as_echo_n "checking for sdl... " >&6; } | |
13260 | ||
13261 | if test -n "$SDL_CFLAGS"; then | |
13262 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | |
13263 | elif test -n "$PKG_CONFIG"; then | |
13264 | if test -n "$PKG_CONFIG" && \ | |
13265 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
13266 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
13267 | ac_status=$? | |
13268 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13269 | test $ac_status = 0; }; then | |
13270 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null` | |
13271 | test "x$?" != "x0" && pkg_failed=yes | |
d57b6533 | 13272 | else |
f050cfdd MF |
13273 | pkg_failed=yes |
13274 | fi | |
13275 | else | |
13276 | pkg_failed=untried | |
13277 | fi | |
13278 | if test -n "$SDL_LIBS"; then | |
13279 | pkg_cv_SDL_LIBS="$SDL_LIBS" | |
13280 | elif test -n "$PKG_CONFIG"; then | |
13281 | if test -n "$PKG_CONFIG" && \ | |
13282 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
13283 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
13284 | ac_status=$? | |
13285 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13286 | test $ac_status = 0; }; then | |
13287 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null` | |
13288 | test "x$?" != "x0" && pkg_failed=yes | |
13289 | else | |
13290 | pkg_failed=yes | |
13291 | fi | |
13292 | else | |
13293 | pkg_failed=untried | |
13294 | fi | |
13295 | ||
13296 | if test $pkg_failed = no; then | |
13297 | pkg_save_LDFLAGS="$LDFLAGS" | |
13298 | LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS" | |
13299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d57b6533 MF |
13300 | /* end confdefs.h. */ |
13301 | ||
d57b6533 MF |
13302 | int |
13303 | main () | |
13304 | { | |
f050cfdd | 13305 | |
d57b6533 MF |
13306 | ; |
13307 | return 0; | |
13308 | } | |
13309 | _ACEOF | |
13310 | if ac_fn_c_try_link "$LINENO"; then : | |
f050cfdd | 13311 | |
d57b6533 | 13312 | else |
f050cfdd | 13313 | pkg_failed=yes |
d57b6533 MF |
13314 | fi |
13315 | rm -f core conftest.err conftest.$ac_objext \ | |
13316 | conftest$ac_exeext conftest.$ac_ext | |
f050cfdd | 13317 | LDFLAGS=$pkg_save_LDFLAGS |
d57b6533 | 13318 | fi |
d57b6533 | 13319 | |
f050cfdd MF |
13320 | |
13321 | ||
13322 | if test $pkg_failed = yes; then | |
13323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13324 | $as_echo "no" >&6; } | |
13325 | ||
13326 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13327 | _pkg_short_errors_supported=yes | |
d57b6533 | 13328 | else |
f050cfdd | 13329 | _pkg_short_errors_supported=no |
d57b6533 | 13330 | fi |
f050cfdd MF |
13331 | if test $_pkg_short_errors_supported = yes; then |
13332 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1` | |
13333 | else | |
13334 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1` | |
13335 | fi | |
13336 | # Put the nasty error message in config.log where it belongs | |
13337 | echo "$SDL_PKG_ERRORS" >&5 | |
13338 | ||
13339 | : | |
13340 | elif test $pkg_failed = untried; then | |
13341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13342 | $as_echo "no" >&6; } | |
13343 | : | |
13344 | else | |
13345 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | |
13346 | SDL_LIBS=$pkg_cv_SDL_LIBS | |
13347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13348 | $as_echo "yes" >&6; } | |
13349 | SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1" | |
d57b6533 | 13350 | |
f050cfdd MF |
13351 | fi |
13352 | ||
13353 | else | |
13354 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | |
13355 | SDL_LIBS=$pkg_cv_SDL_LIBS | |
13356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13357 | $as_echo "yes" >&6; } | |
13358 | SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2" | |
c55c1f6e MF |
13359 | |
13360 | fi | |
13361 | if test -n "$SDL_CFLAGS"; then : | |
13362 | if test "$ac_cv_search_dlopen" = no; then : | |
13363 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5 | |
13364 | $as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;} | |
13365 | ||
13366 | fi | |
d57b6533 MF |
13367 | |
13368 | fi | |
f050cfdd MF |
13369 | else |
13370 | SDL_CFLAGS= | |
f050cfdd | 13371 | fi |
c55c1f6e | 13372 | SDL_LIBS= |
d57b6533 MF |
13373 | |
13374 | ||
5d0b3088 MF |
13375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5 |
13376 | $as_echo_n "checking for cygwin... " >&6; } | |
13377 | if ${sim_cv_os_cygwin+:} false; then : | |
13378 | $as_echo_n "(cached) " >&6 | |
13379 | else | |
13380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13381 | /* end confdefs.h. */ | |
13382 | ||
13383 | #ifdef __CYGWIN__ | |
13384 | lose | |
13385 | #endif | |
13386 | _ACEOF | |
13387 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13388 | $EGREP "lose" >/dev/null 2>&1; then : | |
13389 | sim_cv_os_cygwin=yes | |
13390 | else | |
13391 | sim_cv_os_cygwin=no | |
13392 | fi | |
13393 | rm -f conftest* | |
13394 | ||
13395 | fi | |
13396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5 | |
13397 | $as_echo "$sim_cv_os_cygwin" >&6; } | |
13398 | ||
13399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 | |
13400 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
13401 | if ${ac_cv_search_tgetent+:} false; then : | |
13402 | $as_echo_n "(cached) " >&6 | |
13403 | else | |
13404 | ac_func_search_save_LIBS=$LIBS | |
13405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13406 | /* end confdefs.h. */ | |
13407 | ||
13408 | /* Override any GCC internal prototype to avoid an error. | |
13409 | Use char because int might match the return type of a GCC | |
13410 | builtin and then its argument prototype would still apply. */ | |
13411 | #ifdef __cplusplus | |
13412 | extern "C" | |
13413 | #endif | |
13414 | char tgetent (); | |
13415 | int | |
13416 | main () | |
13417 | { | |
13418 | return tgetent (); | |
13419 | ; | |
13420 | return 0; | |
13421 | } | |
13422 | _ACEOF | |
13423 | for ac_lib in '' termcap tinfo curses ncurses; do | |
13424 | if test -z "$ac_lib"; then | |
13425 | ac_res="none required" | |
13426 | else | |
13427 | ac_res=-l$ac_lib | |
13428 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13429 | fi | |
13430 | if ac_fn_c_try_link "$LINENO"; then : | |
13431 | ac_cv_search_tgetent=$ac_res | |
13432 | fi | |
13433 | rm -f core conftest.err conftest.$ac_objext \ | |
13434 | conftest$ac_exeext | |
13435 | if ${ac_cv_search_tgetent+:} false; then : | |
13436 | break | |
13437 | fi | |
13438 | done | |
13439 | if ${ac_cv_search_tgetent+:} false; then : | |
13440 | ||
13441 | else | |
13442 | ac_cv_search_tgetent=no | |
13443 | fi | |
13444 | rm conftest.$ac_ext | |
13445 | LIBS=$ac_func_search_save_LIBS | |
13446 | fi | |
13447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 | |
13448 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
13449 | ac_res=$ac_cv_search_tgetent | |
13450 | if test "$ac_res" != no; then : | |
13451 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
13452 | TERMCAP_LIB=$ac_cv_search_tgetent | |
13453 | else | |
13454 | TERMCAP_LIB="" | |
13455 | fi | |
13456 | ||
13457 | if test x$sim_cv_os_cygwin = xyes; then | |
13458 | TERMCAP_LIB="${TERMCAP_LIB} -luser32" | |
13459 | fi | |
13460 | ||
13461 | ||
13462 | if test -r ../readline/Makefile; then | |
5a988617 | 13463 | READLINE_LIB=../readline/readline/libreadline.a |
5d0b3088 MF |
13464 | READLINE_CFLAGS='-I$(READLINE_SRC)/..' |
13465 | else | |
13466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 | |
13467 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
13468 | if ${ac_cv_lib_readline_readline+:} false; then : | |
13469 | $as_echo_n "(cached) " >&6 | |
13470 | else | |
13471 | ac_check_lib_save_LIBS=$LIBS | |
13472 | LIBS="-lreadline $TERMCAP_LIB $LIBS" | |
13473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13474 | /* end confdefs.h. */ | |
13475 | ||
13476 | /* Override any GCC internal prototype to avoid an error. | |
13477 | Use char because int might match the return type of a GCC | |
13478 | builtin and then its argument prototype would still apply. */ | |
13479 | #ifdef __cplusplus | |
13480 | extern "C" | |
13481 | #endif | |
13482 | char readline (); | |
13483 | int | |
13484 | main () | |
13485 | { | |
13486 | return readline (); | |
13487 | ; | |
13488 | return 0; | |
13489 | } | |
13490 | _ACEOF | |
13491 | if ac_fn_c_try_link "$LINENO"; then : | |
13492 | ac_cv_lib_readline_readline=yes | |
13493 | else | |
13494 | ac_cv_lib_readline_readline=no | |
13495 | fi | |
13496 | rm -f core conftest.err conftest.$ac_objext \ | |
13497 | conftest$ac_exeext conftest.$ac_ext | |
13498 | LIBS=$ac_check_lib_save_LIBS | |
13499 | fi | |
13500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 | |
13501 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
13502 | if test "x$ac_cv_lib_readline_readline" = xyes; then : | |
13503 | READLINE_LIB=-lreadline | |
13504 | else | |
13505 | as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5 | |
13506 | fi | |
13507 | ||
13508 | READLINE_CFLAGS= | |
13509 | fi | |
13510 | ||
13511 | ||
13512 | ||
9f046489 TO |
13513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
13514 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
13515 | if ${sim_cv_decl_getopt_unistd_h+:} false; then : | |
13516 | $as_echo_n "(cached) " >&6 | |
13517 | else | |
13518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13519 | /* end confdefs.h. */ | |
13520 | #include <unistd.h> | |
13521 | int | |
13522 | main () | |
13523 | { | |
13524 | extern int getopt (int, char *const*, const char *); | |
13525 | ; | |
13526 | return 0; | |
13527 | } | |
13528 | _ACEOF | |
13529 | if ac_fn_c_try_compile "$LINENO"; then : | |
13530 | sim_cv_decl_getopt_unistd_h=yes | |
13531 | else | |
13532 | sim_cv_decl_getopt_unistd_h=no | |
13533 | fi | |
13534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13535 | fi | |
13536 | ||
13537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5 | |
13538 | $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; } | |
13539 | if test $sim_cv_decl_getopt_unistd_h = yes; then | |
13540 | ||
13541 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h | |
13542 | ||
13543 | fi | |
13544 | ||
d57b6533 | 13545 | |
b15c5d7a MF |
13546 | |
13547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
13548 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
13549 | # Check whether --enable-maintainer-mode was given. | |
13550 | if test "${enable_maintainer_mode+set}" = set; then : | |
13551 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
13552 | else | |
13553 | USE_MAINTAINER_MODE=no | |
13554 | fi | |
13555 | ||
13556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
13557 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
13558 | if test $USE_MAINTAINER_MODE = yes; then | |
13559 | MAINTAINER_MODE_TRUE= | |
13560 | MAINTAINER_MODE_FALSE='#' | |
13561 | else | |
13562 | MAINTAINER_MODE_TRUE='#' | |
13563 | MAINTAINER_MODE_FALSE= | |
13564 | fi | |
13565 | ||
13566 | MAINT=$MAINTAINER_MODE_TRUE | |
13567 | ||
13568 | ||
13569 | am__api_version='1.15' | |
13570 | ||
13571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
13572 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
13573 | # Reject unsafe characters in $srcdir or the absolute working directory | |
13574 | # name. Accept space and tab only in the latter. | |
13575 | am_lf=' | |
13576 | ' | |
13577 | case `pwd` in | |
13578 | *[\\\"\#\$\&\'\`$am_lf]*) | |
13579 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
13580 | esac | |
13581 | case $srcdir in | |
13582 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
13583 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
13584 | esac | |
13585 | ||
13586 | # Do 'set' in a subshell so we don't clobber the current shell's | |
13587 | # arguments. Must try -L first in case configure is actually a | |
13588 | # symlink; some systems play weird games with the mod time of symlinks | |
13589 | # (eg FreeBSD returns the mod time of the symlink's containing | |
13590 | # directory). | |
13591 | if ( | |
13592 | am_has_slept=no | |
13593 | for am_try in 1 2; do | |
13594 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
13595 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
13596 | if test "$*" = "X"; then | |
13597 | # -L didn't work. | |
13598 | set X `ls -t "$srcdir/configure" conftest.file` | |
13599 | fi | |
13600 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
13601 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
13602 | ||
13603 | # If neither matched, then we have a broken ls. This can happen | |
13604 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
13605 | # broken ls alias from the environment. This has actually | |
13606 | # happened. Such a system could not be considered "sane". | |
13607 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
13608 | alias in your environment" "$LINENO" 5 | |
13609 | fi | |
13610 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
13611 | break | |
13612 | fi | |
13613 | # Just in case. | |
13614 | sleep 1 | |
13615 | am_has_slept=yes | |
13616 | done | |
13617 | test "$2" = conftest.file | |
13618 | ) | |
13619 | then | |
13620 | # Ok. | |
13621 | : | |
13622 | else | |
13623 | as_fn_error $? "newly created file is older than distributed files! | |
13624 | Check your system clock" "$LINENO" 5 | |
13625 | fi | |
13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13627 | $as_echo "yes" >&6; } | |
13628 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
13629 | # generated files are strictly newer. | |
13630 | am_sleep_pid= | |
13631 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
13632 | ( sleep 1 ) & | |
13633 | am_sleep_pid=$! | |
13634 | fi | |
13635 | ||
13636 | rm -f conftest.file | |
13637 | ||
13638 | if test x"${MISSING+set}" != xset; then | |
13639 | case $am_aux_dir in | |
13640 | *\ * | *\ *) | |
13641 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
13642 | *) | |
13643 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
13644 | esac | |
13645 | fi | |
13646 | # Use eval to expand $SHELL | |
13647 | if eval "$MISSING --is-lightweight"; then | |
13648 | am_missing_run="$MISSING " | |
c2783492 MF |
13649 | else |
13650 | am_missing_run= | |
13651 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
13652 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
13653 | fi | |
13654 | ||
13655 | if test x"${install_sh+set}" != xset; then | |
13656 | case $am_aux_dir in | |
13657 | *\ * | *\ *) | |
13658 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
13659 | *) | |
13660 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
13661 | esac | |
13662 | fi | |
13663 | ||
13664 | # Installed binaries are usually stripped using 'strip' when the user | |
13665 | # run "make install-strip". However 'strip' might not be the right | |
13666 | # tool to use in cross-compilation environments, therefore Automake | |
13667 | # will honor the 'STRIP' environment variable to overrule this program. | |
13668 | if test "$cross_compiling" != no; then | |
13669 | if test -n "$ac_tool_prefix"; then | |
13670 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
13671 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
13672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13673 | $as_echo_n "checking for $ac_word... " >&6; } | |
13674 | if ${ac_cv_prog_STRIP+:} false; then : | |
13675 | $as_echo_n "(cached) " >&6 | |
13676 | else | |
13677 | if test -n "$STRIP"; then | |
13678 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
13679 | else | |
13680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13681 | for as_dir in $PATH | |
13682 | do | |
13683 | IFS=$as_save_IFS | |
13684 | test -z "$as_dir" && as_dir=. | |
13685 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13686 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13687 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
13688 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13689 | break 2 | |
81ecdfbb | 13690 | fi |
81ecdfbb | 13691 | done |
c2783492 MF |
13692 | done |
13693 | IFS=$as_save_IFS | |
b7026657 | 13694 | |
c906108c | 13695 | fi |
b7026657 | 13696 | fi |
c2783492 MF |
13697 | STRIP=$ac_cv_prog_STRIP |
13698 | if test -n "$STRIP"; then | |
13699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
13700 | $as_echo "$STRIP" >&6; } | |
81ecdfbb | 13701 | else |
c2783492 MF |
13702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13703 | $as_echo "no" >&6; } | |
81ecdfbb | 13704 | fi |
b7026657 | 13705 | |
b7026657 | 13706 | |
c2783492 MF |
13707 | fi |
13708 | if test -z "$ac_cv_prog_STRIP"; then | |
13709 | ac_ct_STRIP=$STRIP | |
13710 | # Extract the first word of "strip", so it can be a program name with args. | |
13711 | set dummy strip; ac_word=$2 | |
13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13713 | $as_echo_n "checking for $ac_word... " >&6; } | |
13714 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
13715 | $as_echo_n "(cached) " >&6 | |
c906108c | 13716 | else |
c2783492 MF |
13717 | if test -n "$ac_ct_STRIP"; then |
13718 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
81ecdfbb | 13719 | else |
c2783492 MF |
13720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13721 | for as_dir in $PATH | |
13722 | do | |
13723 | IFS=$as_save_IFS | |
13724 | test -z "$as_dir" && as_dir=. | |
13725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13726 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13727 | ac_cv_prog_ac_ct_STRIP="strip" | |
13728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13729 | break 2 | |
13730 | fi | |
13731 | done | |
13732 | done | |
13733 | IFS=$as_save_IFS | |
81ecdfbb | 13734 | |
81ecdfbb | 13735 | fi |
df1756f4 | 13736 | fi |
c2783492 MF |
13737 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
13738 | if test -n "$ac_ct_STRIP"; then | |
13739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
13740 | $as_echo "$ac_ct_STRIP" >&6; } | |
13741 | else | |
13742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13743 | $as_echo "no" >&6; } | |
b7026657 | 13744 | fi |
c2783492 MF |
13745 | |
13746 | if test "x$ac_ct_STRIP" = x; then | |
13747 | STRIP=":" | |
c906108c | 13748 | else |
c2783492 MF |
13749 | case $cross_compiling:$ac_tool_warned in |
13750 | yes:) | |
13751 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13752 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13753 | ac_tool_warned=yes ;; | |
13754 | esac | |
13755 | STRIP=$ac_ct_STRIP | |
c906108c SS |
13756 | fi |
13757 | else | |
c2783492 | 13758 | STRIP="$ac_cv_prog_STRIP" |
c906108c | 13759 | fi |
81ecdfbb | 13760 | |
b7026657 | 13761 | fi |
c2783492 | 13762 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
b7026657 | 13763 | |
c2783492 MF |
13764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
13765 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
13766 | if test -z "$MKDIR_P"; then | |
13767 | if ${ac_cv_path_mkdir+:} false; then : | |
13768 | $as_echo_n "(cached) " >&6 | |
13769 | else | |
13770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13771 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
13772 | do | |
13773 | IFS=$as_save_IFS | |
13774 | test -z "$as_dir" && as_dir=. | |
13775 | for ac_prog in mkdir gmkdir; do | |
13776 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13777 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
13778 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
13779 | 'mkdir (GNU coreutils) '* | \ | |
13780 | 'mkdir (coreutils) '* | \ | |
13781 | 'mkdir (fileutils) '4.1*) | |
13782 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
13783 | break 3;; | |
13784 | esac | |
13785 | done | |
13786 | done | |
13787 | done | |
13788 | IFS=$as_save_IFS | |
b7026657 | 13789 | |
fdd6fa61 AG |
13790 | fi |
13791 | ||
c2783492 MF |
13792 | test -d ./--version && rmdir ./--version |
13793 | if test "${ac_cv_path_mkdir+set}" = set; then | |
13794 | MKDIR_P="$ac_cv_path_mkdir -p" | |
b5689863 MF |
13795 | else |
13796 | # As a last resort, use the slow shell script. Don't cache a | |
13797 | # value for MKDIR_P within a source directory, because that will | |
13798 | # break other packages using the cache if that directory is | |
13799 | # removed, or if the value is a relative name. | |
13800 | MKDIR_P="$ac_install_sh -d" | |
13801 | fi | |
c2783492 | 13802 | fi |
b5689863 MF |
13803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
13804 | $as_echo "$MKDIR_P" >&6; } | |
6bddc3e8 | 13805 | |
c2783492 MF |
13806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
13807 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
13808 | set x ${MAKE-make} | |
13809 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
13810 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
6bddc3e8 MF |
13811 | $as_echo_n "(cached) " >&6 |
13812 | else | |
c2783492 MF |
13813 | cat >conftest.make <<\_ACEOF |
13814 | SHELL = /bin/sh | |
13815 | all: | |
13816 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
13817 | _ACEOF | |
13818 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
13819 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
13820 | *@@@%%%=?*=@@@%%%*) | |
13821 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
13822 | *) | |
13823 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
13824 | esac | |
13825 | rm -f conftest.make | |
13826 | fi | |
13827 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
13828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13829 | $as_echo "yes" >&6; } | |
13830 | SET_MAKE= | |
13831 | else | |
13832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13833 | $as_echo "no" >&6; } | |
13834 | SET_MAKE="MAKE=${MAKE-make}" | |
13835 | fi | |
6bddc3e8 | 13836 | |
c2783492 MF |
13837 | rm -rf .tst 2>/dev/null |
13838 | mkdir .tst 2>/dev/null | |
13839 | if test -d .tst; then | |
13840 | am__leading_dot=. | |
13841 | else | |
13842 | am__leading_dot=_ | |
13843 | fi | |
13844 | rmdir .tst 2>/dev/null | |
6bddc3e8 | 13845 | |
c2783492 | 13846 | DEPDIR="${am__leading_dot}deps" |
6bddc3e8 | 13847 | |
c2783492 | 13848 | ac_config_commands="$ac_config_commands depfiles" |
6bddc3e8 | 13849 | |
c2783492 MF |
13850 | |
13851 | am_make=${MAKE-make} | |
13852 | cat > confinc << 'END' | |
13853 | am__doit: | |
13854 | @echo this is the am__doit target | |
13855 | .PHONY: am__doit | |
13856 | END | |
13857 | # If we don't find an include directive, just comment out the code. | |
13858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
13859 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
13860 | am__include="#" | |
13861 | am__quote= | |
13862 | _am_result=none | |
13863 | # First try GNU make style include. | |
13864 | echo "include confinc" > confmf | |
13865 | # Ignore all kinds of additional output from 'make'. | |
13866 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
13867 | *the\ am__doit\ target*) | |
13868 | am__include=include | |
13869 | am__quote= | |
13870 | _am_result=GNU | |
13871 | ;; | |
13872 | esac | |
13873 | # Now try BSD make style include. | |
13874 | if test "$am__include" = "#"; then | |
13875 | echo '.include "confinc"' > confmf | |
13876 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
13877 | *the\ am__doit\ target*) | |
13878 | am__include=.include | |
13879 | am__quote="\"" | |
13880 | _am_result=BSD | |
13881 | ;; | |
13882 | esac | |
6bddc3e8 MF |
13883 | fi |
13884 | ||
c2783492 MF |
13885 | |
13886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
13887 | $as_echo "$_am_result" >&6; } | |
13888 | rm -f confinc confmf | |
13889 | ||
13890 | # Check whether --enable-dependency-tracking was given. | |
13891 | if test "${enable_dependency_tracking+set}" = set; then : | |
13892 | enableval=$enable_dependency_tracking; | |
6bddc3e8 | 13893 | fi |
6bddc3e8 | 13894 | |
c2783492 MF |
13895 | if test "x$enable_dependency_tracking" != xno; then |
13896 | am_depcomp="$ac_aux_dir/depcomp" | |
13897 | AMDEPBACKSLASH='\' | |
13898 | am__nodep='_no' | |
13899 | fi | |
13900 | if test "x$enable_dependency_tracking" != xno; then | |
13901 | AMDEP_TRUE= | |
13902 | AMDEP_FALSE='#' | |
6bddc3e8 | 13903 | else |
c2783492 MF |
13904 | AMDEP_TRUE='#' |
13905 | AMDEP_FALSE= | |
6bddc3e8 MF |
13906 | fi |
13907 | ||
13908 | ||
c2783492 MF |
13909 | # Check whether --enable-silent-rules was given. |
13910 | if test "${enable_silent_rules+set}" = set; then : | |
13911 | enableval=$enable_silent_rules; | |
5e25901f | 13912 | fi |
c2783492 MF |
13913 | |
13914 | case $enable_silent_rules in # ((( | |
13915 | yes) AM_DEFAULT_VERBOSITY=0;; | |
13916 | no) AM_DEFAULT_VERBOSITY=1;; | |
13917 | *) AM_DEFAULT_VERBOSITY=1;; | |
13918 | esac | |
13919 | am_make=${MAKE-make} | |
13920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
13921 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
13922 | if ${am_cv_make_support_nested_variables+:} false; then : | |
5e25901f MF |
13923 | $as_echo_n "(cached) " >&6 |
13924 | else | |
c2783492 MF |
13925 | if $as_echo 'TRUE=$(BAR$(V)) |
13926 | BAR0=false | |
13927 | BAR1=true | |
13928 | V=1 | |
13929 | am__doit: | |
13930 | @$(TRUE) | |
13931 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
13932 | am_cv_make_support_nested_variables=yes | |
5e25901f | 13933 | else |
c2783492 | 13934 | am_cv_make_support_nested_variables=no |
5e25901f | 13935 | fi |
c2783492 MF |
13936 | fi |
13937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
13938 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
13939 | if test $am_cv_make_support_nested_variables = yes; then | |
13940 | AM_V='$(V)' | |
13941 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
5e25901f | 13942 | else |
c2783492 MF |
13943 | AM_V=$AM_DEFAULT_VERBOSITY |
13944 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
5e25901f | 13945 | fi |
c2783492 | 13946 | AM_BACKSLASH='\' |
5e25901f | 13947 | |
c2783492 MF |
13948 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
13949 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
13950 | # is not polluted with repeated "-I." | |
13951 | am__isrc=' -I$(srcdir)' | |
13952 | # test to see if srcdir already configured | |
13953 | if test -f $srcdir/config.status; then | |
13954 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
13955 | fi | |
5e25901f MF |
13956 | fi |
13957 | ||
c2783492 MF |
13958 | # test whether we have cygpath |
13959 | if test -z "$CYGPATH_W"; then | |
13960 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
13961 | CYGPATH_W='cygpath -w' | |
13962 | else | |
13963 | CYGPATH_W=echo | |
13964 | fi | |
5e25901f | 13965 | fi |
c2783492 MF |
13966 | |
13967 | ||
13968 | # Define the identity of the package. | |
13969 | PACKAGE='sim' | |
13970 | VERSION='0' | |
13971 | ||
13972 | ||
13973 | cat >>confdefs.h <<_ACEOF | |
13974 | #define PACKAGE "$PACKAGE" | |
5e25901f | 13975 | _ACEOF |
5e25901f | 13976 | |
5e25901f | 13977 | |
c2783492 MF |
13978 | cat >>confdefs.h <<_ACEOF |
13979 | #define VERSION "$VERSION" | |
5e25901f | 13980 | _ACEOF |
5e25901f | 13981 | |
c2783492 | 13982 | # Some tools Automake needs. |
5e25901f | 13983 | |
c2783492 MF |
13984 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
13985 | ||
13986 | ||
13987 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
13988 | ||
13989 | ||
13990 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
13991 | ||
13992 | ||
13993 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
13994 | ||
13995 | ||
13996 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
13997 | ||
13998 | # For better backward compatibility. To be removed once Automake 1.9.x | |
13999 | # dies out for good. For more background, see: | |
14000 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
14001 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
14002 | mkdir_p='$(MKDIR_P)' | |
14003 | ||
14004 | # We need awk for the "check" target (and possibly the TAP driver). The | |
14005 | # system "awk" is bad on some platforms. | |
14006 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
14007 | # in the wild :-( We should find a proper way to deprecate it ... | |
14008 | AMTAR='$${TAR-tar}' | |
14009 | ||
14010 | ||
14011 | # We'll loop over all known methods to create a tar archive until one works. | |
14012 | _am_tools='gnutar pax cpio none' | |
14013 | ||
14014 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
5e25901f | 14015 | |
5e25901f | 14016 | |
c906108c | 14017 | |
c906108c | 14018 | |
c2783492 MF |
14019 | |
14020 | depcc="$CC" am_compiler_list= | |
14021 | ||
14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
14023 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
14024 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
81ecdfbb | 14025 | $as_echo_n "(cached) " >&6 |
c906108c | 14026 | else |
c2783492 MF |
14027 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
14028 | # We make a subdir and do the tests there. Otherwise we can end up | |
14029 | # making bogus files that we don't know about and never remove. For | |
14030 | # instance it was reported that on HP-UX the gcc test will end up | |
14031 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
14032 | # in D". | |
14033 | rm -rf conftest.dir | |
14034 | mkdir conftest.dir | |
14035 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
14036 | # using a relative directory. | |
14037 | cp "$am_depcomp" conftest.dir | |
14038 | cd conftest.dir | |
14039 | # We will build objects and dependencies in a subdirectory because | |
14040 | # it helps to detect inapplicable dependency modes. For instance | |
14041 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
14042 | # side effect of compilation, but ICC will put the dependencies in | |
14043 | # the current directory while Tru64 will put them in the object | |
14044 | # directory. | |
14045 | mkdir sub | |
14046 | ||
14047 | am_cv_CC_dependencies_compiler_type=none | |
14048 | if test "$am_compiler_list" = ""; then | |
14049 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
b7026657 | 14050 | fi |
c2783492 MF |
14051 | am__universal=false |
14052 | case " $depcc " in #( | |
14053 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
14054 | esac | |
14055 | ||
14056 | for depmode in $am_compiler_list; do | |
14057 | # Setup a source with many dependencies, because some compilers | |
14058 | # like to wrap large dependency lists on column 80 (with \), and | |
14059 | # we should not choose a depcomp mode which is confused by this. | |
14060 | # | |
14061 | # We need to recreate these files for each test, as the compiler may | |
14062 | # overwrite some of them when testing with obscure command lines. | |
14063 | # This happens at least with the AIX C compiler. | |
14064 | : > sub/conftest.c | |
14065 | for i in 1 2 3 4 5 6; do | |
14066 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
14067 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
14068 | # Solaris 10 /bin/sh. | |
14069 | echo '/* dummy */' > sub/conftst$i.h | |
14070 | done | |
14071 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
14072 | ||
14073 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
14074 | # mode. It turns out that the SunPro C++ compiler does not properly | |
14075 | # handle '-M -o', and we need to detect this. Also, some Intel | |
14076 | # versions had trouble with output in subdirs. | |
14077 | am__obj=sub/conftest.${OBJEXT-o} | |
14078 | am__minus_obj="-o $am__obj" | |
14079 | case $depmode in | |
14080 | gcc) | |
14081 | # This depmode causes a compiler race in universal mode. | |
14082 | test "$am__universal" = false || continue | |
14083 | ;; | |
14084 | nosideeffect) | |
14085 | # After this tag, mechanisms are not by side-effect, so they'll | |
14086 | # only be used when explicitly requested. | |
14087 | if test "x$enable_dependency_tracking" = xyes; then | |
14088 | continue | |
14089 | else | |
14090 | break | |
14091 | fi | |
14092 | ;; | |
14093 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
14094 | # This compiler won't grok '-c -o', but also, the minuso test has | |
14095 | # not run yet. These depmodes are late enough in the game, and | |
14096 | # so weak that their functioning should not be impacted. | |
14097 | am__obj=conftest.${OBJEXT-o} | |
14098 | am__minus_obj= | |
14099 | ;; | |
14100 | none) break ;; | |
14101 | esac | |
14102 | if depmode=$depmode \ | |
14103 | source=sub/conftest.c object=$am__obj \ | |
14104 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
14105 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
14106 | >/dev/null 2>conftest.err && | |
14107 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
14108 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
14109 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
14110 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
14111 | # icc doesn't choke on unknown options, it will just issue warnings | |
14112 | # or remarks (even with -Werror). So we grep stderr for any message | |
14113 | # that says an option was ignored or not supported. | |
14114 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
14115 | # icc: Command line warning: ignoring option '-M'; no argument required | |
14116 | # The diagnosis changed in icc 8.0: | |
14117 | # icc: Command line remark: option '-MP' not supported | |
14118 | if (grep 'ignoring option' conftest.err || | |
14119 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
14120 | am_cv_CC_dependencies_compiler_type=$depmode | |
14121 | break | |
14122 | fi | |
14123 | fi | |
81ecdfbb | 14124 | done |
b7026657 | 14125 | |
c2783492 MF |
14126 | cd .. |
14127 | rm -rf conftest.dir | |
b7026657 | 14128 | else |
c2783492 | 14129 | am_cv_CC_dependencies_compiler_type=none |
b7026657 AC |
14130 | fi |
14131 | ||
14132 | fi | |
c2783492 MF |
14133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
14134 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
14135 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
b7026657 | 14136 | |
c2783492 MF |
14137 | if |
14138 | test "x$enable_dependency_tracking" != xno \ | |
14139 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
14140 | am__fastdepCC_TRUE= | |
14141 | am__fastdepCC_FALSE='#' | |
c906108c | 14142 | else |
c2783492 MF |
14143 | am__fastdepCC_TRUE='#' |
14144 | am__fastdepCC_FALSE= | |
b7026657 AC |
14145 | fi |
14146 | ||
c906108c SS |
14147 | |
14148 | ||
c2783492 MF |
14149 | # POSIX will say in a future version that running "rm -f" with no argument |
14150 | # is OK; and we want to be able to make that assumption in our Makefile | |
14151 | # recipes. So use an aggressive probe to check that the usage we want is | |
14152 | # actually supported "in the wild" to an acceptable degree. | |
14153 | # See automake bug#10828. | |
14154 | # To make any issue more visible, cause the running configure to be aborted | |
14155 | # by default if the 'rm' program in use doesn't match our expectations; the | |
14156 | # user can still override this though. | |
14157 | if rm -f && rm -fr && rm -rf; then : OK; else | |
14158 | cat >&2 <<'END' | |
14159 | Oops! | |
14160 | ||
14161 | Your 'rm' program seems unable to run without file operands specified | |
14162 | on the command line, even when the '-f' option is present. This is contrary | |
14163 | to the behaviour of most rm programs out there, and not conforming with | |
14164 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
14165 | ||
14166 | Please tell bug-automake@gnu.org about your system, including the value | |
14167 | of your $PATH and any error possibly output before this message. This | |
14168 | can help us improve future automake versions. | |
14169 | ||
14170 | END | |
14171 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
14172 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
14173 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
14174 | echo >&2 | |
5c887dd5 | 14175 | else |
c2783492 MF |
14176 | cat >&2 <<'END' |
14177 | Aborting the configuration process, to ensure you take notice of the issue. | |
14178 | ||
14179 | You can download and install GNU coreutils to get an 'rm' implementation | |
14180 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
14181 | ||
14182 | If you want to complete the configuration process using your problematic | |
14183 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
14184 | to "yes", and re-run configure. | |
14185 | ||
14186 | END | |
14187 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
5c887dd5 | 14188 | fi |
c906108c SS |
14189 | fi |
14190 | ||
fbe8d1cf MF |
14191 | # Check whether --enable-silent-rules was given. |
14192 | if test "${enable_silent_rules+set}" = set; then : | |
14193 | enableval=$enable_silent_rules; | |
14194 | fi | |
14195 | ||
14196 | case $enable_silent_rules in # ((( | |
14197 | yes) AM_DEFAULT_VERBOSITY=0;; | |
14198 | no) AM_DEFAULT_VERBOSITY=1;; | |
14199 | *) AM_DEFAULT_VERBOSITY=0;; | |
14200 | esac | |
14201 | am_make=${MAKE-make} | |
14202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
14203 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
14204 | if ${am_cv_make_support_nested_variables+:} false; then : | |
14205 | $as_echo_n "(cached) " >&6 | |
14206 | else | |
14207 | if $as_echo 'TRUE=$(BAR$(V)) | |
14208 | BAR0=false | |
14209 | BAR1=true | |
14210 | V=1 | |
14211 | am__doit: | |
14212 | @$(TRUE) | |
14213 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
14214 | am_cv_make_support_nested_variables=yes | |
14215 | else | |
14216 | am_cv_make_support_nested_variables=no | |
14217 | fi | |
14218 | fi | |
14219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
14220 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
14221 | if test $am_cv_make_support_nested_variables = yes; then | |
14222 | AM_V='$(V)' | |
14223 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
14224 | else | |
14225 | AM_V=$AM_DEFAULT_VERBOSITY | |
14226 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
14227 | fi | |
14228 | AM_BACKSLASH='\' | |
14229 | ||
c906108c SS |
14230 | |
14231 | # If a cpu ever has more than one simulator to choose from, use | |
14232 | # --enable-sim=... to choose. | |
81ecdfbb RW |
14233 | # Check whether --enable-sim was given. |
14234 | if test "${enable_sim+set}" = set; then : | |
14235 | enableval=$enable_sim; case "${enableval}" in | |
c906108c | 14236 | yes | no) ;; |
d0ac1c44 | 14237 | *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;; |
c906108c | 14238 | esac |
81ecdfbb RW |
14239 | fi |
14240 | ||
c906108c | 14241 | |
26da232c MF |
14242 | # Check whether --enable-example-sims was given. |
14243 | if test "${enable_example_sims+set}" = set; then : | |
14244 | enableval=$enable_example_sims; | |
14245 | fi | |
14246 | ||
14247 | ||
a0e674c1 MF |
14248 | # Check whether --enable-targets was given. |
14249 | if test "${enable_targets+set}" = set; then : | |
14250 | enableval=$enable_targets; case "${enableval}" in | |
14251 | yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
14252 | ;; | |
14253 | no) enable_targets= ;; | |
14254 | *) enable_targets=$enableval ;; | |
14255 | esac | |
14256 | fi | |
14257 | ||
14258 | ||
14259 | SIM_PRIMARY_TARGET= | |
14260 | ||
14261 | ||
2ba09f42 MF |
14262 | SIM_ENABLED_ARCHES= |
14263 | ||
14264 | ||
7c9a934c | 14265 | ENABLE_SIM=no |
a0e674c1 MF |
14266 | |
14267 | ||
bc56166f | 14268 | |
119da465 | 14269 | if test "${enable_sim}" != no; then |
a0e674c1 MF |
14270 | for targ in `echo $target $enable_targets | sed 's/,/ /g'` |
14271 | do | |
65dcce8f MF |
14272 | sim_enable_arch_aarch64=false |
14273 | case "${targ}" in | |
a0e674c1 MF |
14274 | all|aarch64*-*-*) |
14275 | if test "${targ}" = "${target}"; then | |
14276 | SIM_PRIMARY_TARGET=aarch64 | |
14277 | fi | |
7c9a934c MF |
14278 | ENABLE_SIM=yes |
14279 | as_fn_append SIM_ENABLED_ARCHES " aarch64" | |
fdd6fa61 | 14280 | |
23912acd MF |
14281 | ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in" |
14282 | ||
bc56166f | 14283 | |
65dcce8f | 14284 | sim_enable_arch_aarch64=true |
3e8bb3e9 | 14285 | ;; |
a0e674c1 | 14286 | esac |
dc4e1fde HPN |
14287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
14288 | $as_echo_n "checking where to find the target cc... " >&6; } | |
14289 | if test "x${build}" != "x${host}" ; then | |
14290 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then | |
14291 | # We already found the complete path | |
14292 | ac_dir=`dirname $CC_FOR_TARGET` | |
14293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14294 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14295 | else | |
14296 | # Canadian cross, just use what we found | |
14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14298 | $as_echo "pre-installed" >&6; } | |
14299 | fi | |
14300 | else | |
14301 | ok=yes | |
14302 | case " ${configdirs} " in | |
14303 | *" ${target_alias}-gcc "*) ;; | |
14304 | *) ok=no ;; | |
14305 | esac | |
14306 | ||
14307 | if test $ok = yes; then | |
14308 | # An in-tree tool is available and we can use it | |
14309 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc' | |
14310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14311 | $as_echo "just compiled" >&6; } | |
14312 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then | |
14313 | # We already found the complete path | |
14314 | ac_dir=`dirname $CC_FOR_TARGET` | |
14315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14316 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14317 | elif test "x$target" = "x$host"; then | |
14318 | # We can use an host tool | |
14319 | CC_FOR_TARGET='$(CC)' | |
14320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14321 | $as_echo "host tool" >&6; } | |
14322 | else | |
14323 | # We need a cross tool | |
14324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14325 | $as_echo "pre-installed" >&6; } | |
14326 | fi | |
14327 | fi | |
14328 | ||
14329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 | |
14330 | $as_echo_n "checking where to find the target as... " >&6; } | |
14331 | if test "x${build}" != "x${host}" ; then | |
14332 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then | |
14333 | # We already found the complete path | |
14334 | ac_dir=`dirname $AS_FOR_TARGET` | |
14335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14336 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14337 | else | |
14338 | # Canadian cross, just use what we found | |
14339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14340 | $as_echo "pre-installed" >&6; } | |
14341 | fi | |
14342 | else | |
14343 | ok=yes | |
14344 | case " ${configdirs} " in | |
14345 | *" \$(abs_builddir) "*) ;; | |
14346 | *) ok=no ;; | |
14347 | esac | |
14348 | ||
14349 | if test $ok = yes; then | |
14350 | # An in-tree tool is available and we can use it | |
14351 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new' | |
14352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14353 | $as_echo "just compiled" >&6; } | |
14354 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then | |
14355 | # We already found the complete path | |
14356 | ac_dir=`dirname $AS_FOR_TARGET` | |
14357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14358 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14359 | elif test "x$target" = "x$host"; then | |
14360 | # We can use an host tool | |
14361 | AS_FOR_TARGET='$(AS)' | |
14362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14363 | $as_echo "host tool" >&6; } | |
14364 | else | |
14365 | # We need a cross tool | |
14366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14367 | $as_echo "pre-installed" >&6; } | |
14368 | fi | |
14369 | fi | |
14370 | ||
14371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 | |
14372 | $as_echo_n "checking where to find the target ld... " >&6; } | |
14373 | if test "x${build}" != "x${host}" ; then | |
14374 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then | |
14375 | # We already found the complete path | |
14376 | ac_dir=`dirname $LD_FOR_TARGET` | |
14377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14378 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14379 | else | |
14380 | # Canadian cross, just use what we found | |
14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14382 | $as_echo "pre-installed" >&6; } | |
14383 | fi | |
14384 | else | |
14385 | ok=yes | |
14386 | case " ${configdirs} " in | |
14387 | *" \$(abs_builddir) "*) ;; | |
14388 | *) ok=no ;; | |
14389 | esac | |
14390 | ||
14391 | if test $ok = yes; then | |
14392 | # An in-tree tool is available and we can use it | |
14393 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new' | |
14394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14395 | $as_echo "just compiled" >&6; } | |
14396 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then | |
14397 | # We already found the complete path | |
14398 | ac_dir=`dirname $LD_FOR_TARGET` | |
14399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14400 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14401 | elif test "x$target" = "x$host"; then | |
14402 | # We can use an host tool | |
14403 | LD_FOR_TARGET='$(LD)' | |
14404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14405 | $as_echo "host tool" >&6; } | |
14406 | else | |
14407 | # We need a cross tool | |
14408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14409 | $as_echo "pre-installed" >&6; } | |
14410 | fi | |
14411 | fi | |
14412 | ||
14413 | ||
14414 | ||
8996c210 MF |
14415 | |
14416 | ||
14417 | ||
14418 | if test "$SIM_PRIMARY_TARGET" = "aarch64"; then : | |
dc4e1fde HPN |
14419 | : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}" |
14420 | : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}" | |
14421 | : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14422 | |
14423 | fi | |
14424 | ||
14425 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64" | |
14426 | ||
65dcce8f MF |
14427 | if ${sim_enable_arch_aarch64}; then |
14428 | SIM_ENABLE_ARCH_aarch64_TRUE= | |
14429 | SIM_ENABLE_ARCH_aarch64_FALSE='#' | |
14430 | else | |
14431 | SIM_ENABLE_ARCH_aarch64_TRUE='#' | |
14432 | SIM_ENABLE_ARCH_aarch64_FALSE= | |
14433 | fi | |
14434 | ||
a0e674c1 | 14435 | |
65dcce8f MF |
14436 | sim_enable_arch_arm=false |
14437 | case "${targ}" in | |
a0e674c1 MF |
14438 | all|arm*-*-*) |
14439 | if test "${targ}" = "${target}"; then | |
14440 | SIM_PRIMARY_TARGET=arm | |
14441 | fi | |
7c9a934c MF |
14442 | ENABLE_SIM=yes |
14443 | as_fn_append SIM_ENABLED_ARCHES " arm" | |
bc56166f | 14444 | |
23912acd MF |
14445 | ac_config_files="$ac_config_files arm/.gdbinit:common/gdbinit.in" |
14446 | ||
fdd6fa61 | 14447 | |
65dcce8f | 14448 | sim_enable_arch_arm=true |
3e8bb3e9 | 14449 | ;; |
a0e674c1 | 14450 | esac |
8996c210 MF |
14451 | |
14452 | ||
14453 | ||
dc4e1fde | 14454 | |
8996c210 | 14455 | if test "$SIM_PRIMARY_TARGET" = "arm"; then : |
dc4e1fde HPN |
14456 | : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}" |
14457 | : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}" | |
14458 | : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14459 | |
14460 | fi | |
14461 | ||
14462 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM" | |
14463 | ||
65dcce8f MF |
14464 | if ${sim_enable_arch_arm}; then |
14465 | SIM_ENABLE_ARCH_arm_TRUE= | |
14466 | SIM_ENABLE_ARCH_arm_FALSE='#' | |
14467 | else | |
14468 | SIM_ENABLE_ARCH_arm_TRUE='#' | |
14469 | SIM_ENABLE_ARCH_arm_FALSE= | |
14470 | fi | |
a0e674c1 | 14471 | |
65dcce8f MF |
14472 | |
14473 | sim_enable_arch_avr=false | |
14474 | case "${targ}" in | |
a0e674c1 MF |
14475 | all|avr*-*-*) |
14476 | if test "${targ}" = "${target}"; then | |
14477 | SIM_PRIMARY_TARGET=avr | |
14478 | fi | |
7c9a934c MF |
14479 | ENABLE_SIM=yes |
14480 | as_fn_append SIM_ENABLED_ARCHES " avr" | |
bc56166f | 14481 | |
23912acd MF |
14482 | ac_config_files="$ac_config_files avr/.gdbinit:common/gdbinit.in" |
14483 | ||
0cd79707 | 14484 | |
65dcce8f | 14485 | sim_enable_arch_avr=true |
3e8bb3e9 | 14486 | ;; |
a0e674c1 | 14487 | esac |
8996c210 MF |
14488 | |
14489 | ||
14490 | ||
dc4e1fde | 14491 | |
8996c210 | 14492 | if test "$SIM_PRIMARY_TARGET" = "avr"; then : |
dc4e1fde HPN |
14493 | : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}" |
14494 | : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}" | |
14495 | : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14496 | |
14497 | fi | |
14498 | ||
14499 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR" | |
14500 | ||
65dcce8f MF |
14501 | if ${sim_enable_arch_avr}; then |
14502 | SIM_ENABLE_ARCH_avr_TRUE= | |
14503 | SIM_ENABLE_ARCH_avr_FALSE='#' | |
14504 | else | |
14505 | SIM_ENABLE_ARCH_avr_TRUE='#' | |
14506 | SIM_ENABLE_ARCH_avr_FALSE= | |
14507 | fi | |
a0e674c1 | 14508 | |
65dcce8f MF |
14509 | |
14510 | sim_enable_arch_bfin=false | |
14511 | case "${targ}" in | |
a0e674c1 MF |
14512 | all|bfin-*-*) |
14513 | if test "${targ}" = "${target}"; then | |
14514 | SIM_PRIMARY_TARGET=bfin | |
14515 | fi | |
7c9a934c MF |
14516 | ENABLE_SIM=yes |
14517 | as_fn_append SIM_ENABLED_ARCHES " bfin" | |
bc56166f | 14518 | |
23912acd MF |
14519 | ac_config_files="$ac_config_files bfin/.gdbinit:common/gdbinit.in" |
14520 | ||
ddd44b70 | 14521 | |
65dcce8f | 14522 | sim_enable_arch_bfin=true |
3e8bb3e9 | 14523 | ;; |
a0e674c1 | 14524 | esac |
8996c210 MF |
14525 | |
14526 | ||
14527 | ||
dc4e1fde | 14528 | |
8996c210 | 14529 | if test "$SIM_PRIMARY_TARGET" = "bfin"; then : |
dc4e1fde HPN |
14530 | : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}" |
14531 | : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}" | |
14532 | : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14533 | |
14534 | fi | |
14535 | ||
14536 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN" | |
14537 | ||
65dcce8f MF |
14538 | if ${sim_enable_arch_bfin}; then |
14539 | SIM_ENABLE_ARCH_bfin_TRUE= | |
14540 | SIM_ENABLE_ARCH_bfin_FALSE='#' | |
14541 | else | |
14542 | SIM_ENABLE_ARCH_bfin_TRUE='#' | |
14543 | SIM_ENABLE_ARCH_bfin_FALSE= | |
14544 | fi | |
14545 | ||
a0e674c1 | 14546 | |
65dcce8f MF |
14547 | sim_enable_arch_bpf=false |
14548 | case "${targ}" in | |
a0e674c1 MF |
14549 | all|bpf-*-*) |
14550 | if test "${targ}" = "${target}"; then | |
14551 | SIM_PRIMARY_TARGET=bpf | |
14552 | fi | |
7c9a934c MF |
14553 | ENABLE_SIM=yes |
14554 | as_fn_append SIM_ENABLED_ARCHES " bpf" | |
bc56166f | 14555 | |
23912acd MF |
14556 | ac_config_files="$ac_config_files bpf/.gdbinit:common/gdbinit.in" |
14557 | ||
ddd44b70 | 14558 | |
65dcce8f | 14559 | sim_enable_arch_bpf=true |
3e8bb3e9 | 14560 | ;; |
a0e674c1 | 14561 | esac |
8996c210 MF |
14562 | |
14563 | ||
14564 | ||
dc4e1fde | 14565 | |
8996c210 | 14566 | if test "$SIM_PRIMARY_TARGET" = "bpf"; then : |
dc4e1fde HPN |
14567 | : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}" |
14568 | : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}" | |
14569 | : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14570 | |
14571 | fi | |
14572 | ||
14573 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF" | |
14574 | ||
65dcce8f MF |
14575 | if ${sim_enable_arch_bpf}; then |
14576 | SIM_ENABLE_ARCH_bpf_TRUE= | |
14577 | SIM_ENABLE_ARCH_bpf_FALSE='#' | |
14578 | else | |
14579 | SIM_ENABLE_ARCH_bpf_TRUE='#' | |
14580 | SIM_ENABLE_ARCH_bpf_FALSE= | |
14581 | fi | |
14582 | ||
a0e674c1 | 14583 | |
65dcce8f MF |
14584 | sim_enable_arch_cr16=false |
14585 | case "${targ}" in | |
a0e674c1 MF |
14586 | all|cr16*-*-*) |
14587 | if test "${targ}" = "${target}"; then | |
14588 | SIM_PRIMARY_TARGET=cr16 | |
14589 | fi | |
7c9a934c MF |
14590 | ENABLE_SIM=yes |
14591 | as_fn_append SIM_ENABLED_ARCHES " cr16" | |
bc56166f | 14592 | |
23912acd MF |
14593 | ac_config_files="$ac_config_files cr16/.gdbinit:common/gdbinit.in" |
14594 | ||
ddd44b70 | 14595 | |
65dcce8f | 14596 | sim_enable_arch_cr16=true |
3e8bb3e9 | 14597 | ;; |
a0e674c1 | 14598 | esac |
8996c210 MF |
14599 | |
14600 | ||
14601 | ||
dc4e1fde | 14602 | |
8996c210 | 14603 | if test "$SIM_PRIMARY_TARGET" = "cr16"; then : |
dc4e1fde HPN |
14604 | : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}" |
14605 | : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}" | |
14606 | : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14607 | |
14608 | fi | |
14609 | ||
14610 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16" | |
14611 | ||
65dcce8f MF |
14612 | if ${sim_enable_arch_cr16}; then |
14613 | SIM_ENABLE_ARCH_cr16_TRUE= | |
14614 | SIM_ENABLE_ARCH_cr16_FALSE='#' | |
14615 | else | |
14616 | SIM_ENABLE_ARCH_cr16_TRUE='#' | |
14617 | SIM_ENABLE_ARCH_cr16_FALSE= | |
14618 | fi | |
14619 | ||
a0e674c1 | 14620 | |
65dcce8f MF |
14621 | sim_enable_arch_cris=false |
14622 | case "${targ}" in | |
a0e674c1 MF |
14623 | all|cris-*-* | crisv32-*-*) |
14624 | if test "${targ}" = "${target}"; then | |
14625 | SIM_PRIMARY_TARGET=cris | |
14626 | fi | |
7c9a934c MF |
14627 | ENABLE_SIM=yes |
14628 | as_fn_append SIM_ENABLED_ARCHES " cris" | |
bc56166f | 14629 | |
23912acd MF |
14630 | ac_config_files="$ac_config_files cris/.gdbinit:common/gdbinit.in" |
14631 | ||
b9249c46 | 14632 | |
65dcce8f | 14633 | sim_enable_arch_cris=true |
3e8bb3e9 | 14634 | ;; |
a0e674c1 | 14635 | esac |
8996c210 MF |
14636 | |
14637 | ||
14638 | ||
dc4e1fde | 14639 | |
8996c210 | 14640 | if test "$SIM_PRIMARY_TARGET" = "cris"; then : |
dc4e1fde HPN |
14641 | : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}" |
14642 | : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}" | |
14643 | : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14644 | |
14645 | fi | |
14646 | ||
14647 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS" | |
14648 | ||
65dcce8f MF |
14649 | if ${sim_enable_arch_cris}; then |
14650 | SIM_ENABLE_ARCH_cris_TRUE= | |
14651 | SIM_ENABLE_ARCH_cris_FALSE='#' | |
14652 | else | |
14653 | SIM_ENABLE_ARCH_cris_TRUE='#' | |
14654 | SIM_ENABLE_ARCH_cris_FALSE= | |
14655 | fi | |
a0e674c1 | 14656 | |
65dcce8f MF |
14657 | |
14658 | sim_enable_arch_d10v=false | |
14659 | case "${targ}" in | |
a0e674c1 MF |
14660 | all|d10v-*-*) |
14661 | if test "${targ}" = "${target}"; then | |
14662 | SIM_PRIMARY_TARGET=d10v | |
14663 | fi | |
7c9a934c MF |
14664 | ENABLE_SIM=yes |
14665 | as_fn_append SIM_ENABLED_ARCHES " d10v" | |
bc56166f | 14666 | |
23912acd MF |
14667 | ac_config_files="$ac_config_files d10v/.gdbinit:common/gdbinit.in" |
14668 | ||
b9249c46 | 14669 | |
65dcce8f | 14670 | sim_enable_arch_d10v=true |
3e8bb3e9 | 14671 | ;; |
a0e674c1 | 14672 | esac |
8996c210 MF |
14673 | |
14674 | ||
14675 | ||
dc4e1fde | 14676 | |
8996c210 | 14677 | if test "$SIM_PRIMARY_TARGET" = "d10v"; then : |
dc4e1fde HPN |
14678 | : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}" |
14679 | : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}" | |
14680 | : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14681 | |
14682 | fi | |
14683 | ||
14684 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V" | |
14685 | ||
65dcce8f MF |
14686 | if ${sim_enable_arch_d10v}; then |
14687 | SIM_ENABLE_ARCH_d10v_TRUE= | |
14688 | SIM_ENABLE_ARCH_d10v_FALSE='#' | |
14689 | else | |
14690 | SIM_ENABLE_ARCH_d10v_TRUE='#' | |
14691 | SIM_ENABLE_ARCH_d10v_FALSE= | |
14692 | fi | |
a0e674c1 | 14693 | |
65dcce8f MF |
14694 | |
14695 | sim_enable_arch_frv=false | |
14696 | case "${targ}" in | |
a0e674c1 MF |
14697 | all|frv-*-*) |
14698 | if test "${targ}" = "${target}"; then | |
14699 | SIM_PRIMARY_TARGET=frv | |
14700 | fi | |
7c9a934c MF |
14701 | ENABLE_SIM=yes |
14702 | as_fn_append SIM_ENABLED_ARCHES " frv" | |
bc56166f | 14703 | |
23912acd MF |
14704 | ac_config_files="$ac_config_files frv/.gdbinit:common/gdbinit.in" |
14705 | ||
b9249c46 | 14706 | |
65dcce8f | 14707 | sim_enable_arch_frv=true |
36bb57e4 MF |
14708 | ;; |
14709 | esac | |
8996c210 MF |
14710 | |
14711 | ||
14712 | ||
dc4e1fde | 14713 | |
8996c210 | 14714 | if test "$SIM_PRIMARY_TARGET" = "frv"; then : |
dc4e1fde HPN |
14715 | : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}" |
14716 | : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}" | |
14717 | : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14718 | |
14719 | fi | |
14720 | ||
14721 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV" | |
14722 | ||
65dcce8f MF |
14723 | if ${sim_enable_arch_frv}; then |
14724 | SIM_ENABLE_ARCH_frv_TRUE= | |
14725 | SIM_ENABLE_ARCH_frv_FALSE='#' | |
14726 | else | |
14727 | SIM_ENABLE_ARCH_frv_TRUE='#' | |
14728 | SIM_ENABLE_ARCH_frv_FALSE= | |
14729 | fi | |
14730 | ||
36bb57e4 | 14731 | |
65dcce8f MF |
14732 | sim_enable_arch_ft32=false |
14733 | case "${targ}" in | |
36bb57e4 MF |
14734 | all|ft32-*-*) |
14735 | if test "${targ}" = "${target}"; then | |
14736 | SIM_PRIMARY_TARGET=ft32 | |
14737 | fi | |
7c9a934c MF |
14738 | ENABLE_SIM=yes |
14739 | as_fn_append SIM_ENABLED_ARCHES " ft32" | |
36bb57e4 | 14740 | |
23912acd MF |
14741 | ac_config_files="$ac_config_files ft32/.gdbinit:common/gdbinit.in" |
14742 | ||
36bb57e4 | 14743 | |
65dcce8f | 14744 | sim_enable_arch_ft32=true |
3e8bb3e9 | 14745 | ;; |
a0e674c1 | 14746 | esac |
8996c210 MF |
14747 | |
14748 | ||
14749 | ||
dc4e1fde | 14750 | |
8996c210 | 14751 | if test "$SIM_PRIMARY_TARGET" = "ft32"; then : |
dc4e1fde HPN |
14752 | : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}" |
14753 | : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}" | |
14754 | : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14755 | |
14756 | fi | |
14757 | ||
14758 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32" | |
14759 | ||
65dcce8f MF |
14760 | if ${sim_enable_arch_ft32}; then |
14761 | SIM_ENABLE_ARCH_ft32_TRUE= | |
14762 | SIM_ENABLE_ARCH_ft32_FALSE='#' | |
14763 | else | |
14764 | SIM_ENABLE_ARCH_ft32_TRUE='#' | |
14765 | SIM_ENABLE_ARCH_ft32_FALSE= | |
14766 | fi | |
14767 | ||
a0e674c1 | 14768 | |
65dcce8f MF |
14769 | sim_enable_arch_h8300=false |
14770 | case "${targ}" in | |
a0e674c1 MF |
14771 | all|h8300*-*-*) |
14772 | if test "${targ}" = "${target}"; then | |
14773 | SIM_PRIMARY_TARGET=h8300 | |
14774 | fi | |
7c9a934c MF |
14775 | ENABLE_SIM=yes |
14776 | as_fn_append SIM_ENABLED_ARCHES " h8300" | |
bc56166f | 14777 | |
23912acd MF |
14778 | ac_config_files="$ac_config_files h8300/.gdbinit:common/gdbinit.in" |
14779 | ||
119da465 | 14780 | |
65dcce8f | 14781 | sim_enable_arch_h8300=true |
3e8bb3e9 | 14782 | ;; |
a0e674c1 | 14783 | esac |
8996c210 MF |
14784 | |
14785 | ||
14786 | ||
dc4e1fde | 14787 | |
8996c210 | 14788 | if test "$SIM_PRIMARY_TARGET" = "h8300"; then : |
dc4e1fde HPN |
14789 | : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}" |
14790 | : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}" | |
14791 | : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14792 | |
14793 | fi | |
14794 | ||
14795 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300" | |
14796 | ||
65dcce8f MF |
14797 | if ${sim_enable_arch_h8300}; then |
14798 | SIM_ENABLE_ARCH_h8300_TRUE= | |
14799 | SIM_ENABLE_ARCH_h8300_FALSE='#' | |
14800 | else | |
14801 | SIM_ENABLE_ARCH_h8300_TRUE='#' | |
14802 | SIM_ENABLE_ARCH_h8300_FALSE= | |
14803 | fi | |
14804 | ||
a0e674c1 | 14805 | |
65dcce8f MF |
14806 | sim_enable_arch_iq2000=false |
14807 | case "${targ}" in | |
a0e674c1 MF |
14808 | all|iq2000-*-*) |
14809 | if test "${targ}" = "${target}"; then | |
14810 | SIM_PRIMARY_TARGET=iq2000 | |
14811 | fi | |
7c9a934c MF |
14812 | ENABLE_SIM=yes |
14813 | as_fn_append SIM_ENABLED_ARCHES " iq2000" | |
bc56166f | 14814 | |
23912acd MF |
14815 | ac_config_files="$ac_config_files iq2000/.gdbinit:common/gdbinit.in" |
14816 | ||
119da465 | 14817 | |
65dcce8f | 14818 | sim_enable_arch_iq2000=true |
3e8bb3e9 | 14819 | ;; |
a0e674c1 | 14820 | esac |
8996c210 MF |
14821 | |
14822 | ||
14823 | ||
dc4e1fde | 14824 | |
8996c210 | 14825 | if test "$SIM_PRIMARY_TARGET" = "iq2000"; then : |
dc4e1fde HPN |
14826 | : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}" |
14827 | : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}" | |
14828 | : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14829 | |
14830 | fi | |
14831 | ||
14832 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000" | |
14833 | ||
65dcce8f MF |
14834 | if ${sim_enable_arch_iq2000}; then |
14835 | SIM_ENABLE_ARCH_iq2000_TRUE= | |
14836 | SIM_ENABLE_ARCH_iq2000_FALSE='#' | |
14837 | else | |
14838 | SIM_ENABLE_ARCH_iq2000_TRUE='#' | |
14839 | SIM_ENABLE_ARCH_iq2000_FALSE= | |
14840 | fi | |
a0e674c1 | 14841 | |
65dcce8f MF |
14842 | |
14843 | sim_enable_arch_lm32=false | |
14844 | case "${targ}" in | |
a0e674c1 MF |
14845 | all|lm32-*-*) |
14846 | if test "${targ}" = "${target}"; then | |
14847 | SIM_PRIMARY_TARGET=lm32 | |
14848 | fi | |
7c9a934c MF |
14849 | ENABLE_SIM=yes |
14850 | as_fn_append SIM_ENABLED_ARCHES " lm32" | |
bc56166f | 14851 | |
23912acd MF |
14852 | ac_config_files="$ac_config_files lm32/.gdbinit:common/gdbinit.in" |
14853 | ||
119da465 | 14854 | |
65dcce8f | 14855 | sim_enable_arch_lm32=true |
3e8bb3e9 | 14856 | ;; |
a0e674c1 | 14857 | esac |
8996c210 MF |
14858 | |
14859 | ||
14860 | ||
dc4e1fde | 14861 | |
8996c210 | 14862 | if test "$SIM_PRIMARY_TARGET" = "lm32"; then : |
dc4e1fde HPN |
14863 | : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}" |
14864 | : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}" | |
14865 | : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14866 | |
14867 | fi | |
14868 | ||
14869 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32" | |
14870 | ||
65dcce8f MF |
14871 | if ${sim_enable_arch_lm32}; then |
14872 | SIM_ENABLE_ARCH_lm32_TRUE= | |
14873 | SIM_ENABLE_ARCH_lm32_FALSE='#' | |
14874 | else | |
14875 | SIM_ENABLE_ARCH_lm32_TRUE='#' | |
14876 | SIM_ENABLE_ARCH_lm32_FALSE= | |
14877 | fi | |
14878 | ||
a0e674c1 | 14879 | |
65dcce8f MF |
14880 | sim_enable_arch_m32c=false |
14881 | case "${targ}" in | |
a0e674c1 MF |
14882 | all|m32c-*-*) |
14883 | if test "${targ}" = "${target}"; then | |
14884 | SIM_PRIMARY_TARGET=m32c | |
14885 | fi | |
7c9a934c MF |
14886 | ENABLE_SIM=yes |
14887 | as_fn_append SIM_ENABLED_ARCHES " m32c" | |
bc56166f | 14888 | |
23912acd MF |
14889 | ac_config_files="$ac_config_files m32c/.gdbinit:common/gdbinit.in" |
14890 | ||
87326c78 | 14891 | |
65dcce8f | 14892 | sim_enable_arch_m32c=true |
3e8bb3e9 | 14893 | ;; |
a0e674c1 | 14894 | esac |
8996c210 MF |
14895 | |
14896 | ||
14897 | ||
dc4e1fde | 14898 | |
8996c210 | 14899 | if test "$SIM_PRIMARY_TARGET" = "m32c"; then : |
dc4e1fde HPN |
14900 | : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}" |
14901 | : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}" | |
14902 | : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14903 | |
14904 | fi | |
14905 | ||
14906 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C" | |
14907 | ||
65dcce8f MF |
14908 | if ${sim_enable_arch_m32c}; then |
14909 | SIM_ENABLE_ARCH_m32c_TRUE= | |
14910 | SIM_ENABLE_ARCH_m32c_FALSE='#' | |
14911 | else | |
14912 | SIM_ENABLE_ARCH_m32c_TRUE='#' | |
14913 | SIM_ENABLE_ARCH_m32c_FALSE= | |
14914 | fi | |
14915 | ||
a0e674c1 | 14916 | |
65dcce8f MF |
14917 | sim_enable_arch_m32r=false |
14918 | case "${targ}" in | |
a0e674c1 MF |
14919 | all|m32r-*-*) |
14920 | if test "${targ}" = "${target}"; then | |
14921 | SIM_PRIMARY_TARGET=m32r | |
14922 | fi | |
7c9a934c MF |
14923 | ENABLE_SIM=yes |
14924 | as_fn_append SIM_ENABLED_ARCHES " m32r" | |
bc56166f | 14925 | |
23912acd MF |
14926 | ac_config_files="$ac_config_files m32r/.gdbinit:common/gdbinit.in" |
14927 | ||
87326c78 | 14928 | |
65dcce8f | 14929 | sim_enable_arch_m32r=true |
3e8bb3e9 | 14930 | ;; |
a0e674c1 | 14931 | esac |
8996c210 MF |
14932 | |
14933 | ||
14934 | ||
dc4e1fde | 14935 | |
8996c210 | 14936 | if test "$SIM_PRIMARY_TARGET" = "m32r"; then : |
dc4e1fde HPN |
14937 | : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}" |
14938 | : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}" | |
14939 | : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14940 | |
14941 | fi | |
14942 | ||
14943 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R" | |
14944 | ||
65dcce8f MF |
14945 | if ${sim_enable_arch_m32r}; then |
14946 | SIM_ENABLE_ARCH_m32r_TRUE= | |
14947 | SIM_ENABLE_ARCH_m32r_FALSE='#' | |
14948 | else | |
14949 | SIM_ENABLE_ARCH_m32r_TRUE='#' | |
14950 | SIM_ENABLE_ARCH_m32r_FALSE= | |
14951 | fi | |
a0e674c1 | 14952 | |
65dcce8f MF |
14953 | |
14954 | sim_enable_arch_m68hc11=false | |
14955 | case "${targ}" in | |
a0e674c1 MF |
14956 | all|m68hc11-*-*|m6811-*-*) |
14957 | if test "${targ}" = "${target}"; then | |
14958 | SIM_PRIMARY_TARGET=m68hc11 | |
14959 | fi | |
7c9a934c MF |
14960 | ENABLE_SIM=yes |
14961 | as_fn_append SIM_ENABLED_ARCHES " m68hc11" | |
bc56166f | 14962 | |
23912acd MF |
14963 | ac_config_files="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in" |
14964 | ||
87326c78 | 14965 | |
65dcce8f | 14966 | sim_enable_arch_m68hc11=true |
3e8bb3e9 | 14967 | ;; |
a0e674c1 | 14968 | esac |
8996c210 MF |
14969 | |
14970 | ||
14971 | ||
dc4e1fde | 14972 | |
8996c210 | 14973 | if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then : |
dc4e1fde HPN |
14974 | : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}" |
14975 | : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}" | |
14976 | : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14977 | |
14978 | fi | |
14979 | ||
14980 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11" | |
14981 | ||
65dcce8f MF |
14982 | if ${sim_enable_arch_m68hc11}; then |
14983 | SIM_ENABLE_ARCH_m68hc11_TRUE= | |
14984 | SIM_ENABLE_ARCH_m68hc11_FALSE='#' | |
14985 | else | |
14986 | SIM_ENABLE_ARCH_m68hc11_TRUE='#' | |
14987 | SIM_ENABLE_ARCH_m68hc11_FALSE= | |
14988 | fi | |
a0e674c1 | 14989 | |
65dcce8f MF |
14990 | |
14991 | sim_enable_arch_mcore=false | |
14992 | case "${targ}" in | |
a0e674c1 MF |
14993 | all|mcore-*-*) |
14994 | if test "${targ}" = "${target}"; then | |
14995 | SIM_PRIMARY_TARGET=mcore | |
14996 | fi | |
7c9a934c MF |
14997 | ENABLE_SIM=yes |
14998 | as_fn_append SIM_ENABLED_ARCHES " mcore" | |
bc56166f | 14999 | |
23912acd MF |
15000 | ac_config_files="$ac_config_files mcore/.gdbinit:common/gdbinit.in" |
15001 | ||
119da465 | 15002 | |
65dcce8f | 15003 | sim_enable_arch_mcore=true |
3e8bb3e9 | 15004 | ;; |
a0e674c1 | 15005 | esac |
8996c210 MF |
15006 | |
15007 | ||
15008 | ||
dc4e1fde | 15009 | |
8996c210 | 15010 | if test "$SIM_PRIMARY_TARGET" = "mcore"; then : |
dc4e1fde HPN |
15011 | : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}" |
15012 | : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}" | |
15013 | : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15014 | |
15015 | fi | |
15016 | ||
15017 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE" | |
15018 | ||
65dcce8f MF |
15019 | if ${sim_enable_arch_mcore}; then |
15020 | SIM_ENABLE_ARCH_mcore_TRUE= | |
15021 | SIM_ENABLE_ARCH_mcore_FALSE='#' | |
15022 | else | |
15023 | SIM_ENABLE_ARCH_mcore_TRUE='#' | |
15024 | SIM_ENABLE_ARCH_mcore_FALSE= | |
15025 | fi | |
15026 | ||
a0e674c1 | 15027 | |
65dcce8f MF |
15028 | sim_enable_arch_microblaze=false |
15029 | case "${targ}" in | |
99aedb62 | 15030 | all|microblaze*-*-*) |
a0e674c1 MF |
15031 | if test "${targ}" = "${target}"; then |
15032 | SIM_PRIMARY_TARGET=microblaze | |
15033 | fi | |
7c9a934c MF |
15034 | ENABLE_SIM=yes |
15035 | as_fn_append SIM_ENABLED_ARCHES " microblaze" | |
bc56166f | 15036 | |
23912acd MF |
15037 | ac_config_files="$ac_config_files microblaze/.gdbinit:common/gdbinit.in" |
15038 | ||
119da465 | 15039 | |
65dcce8f | 15040 | sim_enable_arch_microblaze=true |
3e8bb3e9 | 15041 | ;; |
a0e674c1 | 15042 | esac |
8996c210 MF |
15043 | |
15044 | ||
15045 | ||
dc4e1fde | 15046 | |
8996c210 | 15047 | if test "$SIM_PRIMARY_TARGET" = "microblaze"; then : |
dc4e1fde HPN |
15048 | : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}" |
15049 | : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}" | |
15050 | : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15051 | |
15052 | fi | |
15053 | ||
15054 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE" | |
15055 | ||
65dcce8f MF |
15056 | if ${sim_enable_arch_microblaze}; then |
15057 | SIM_ENABLE_ARCH_microblaze_TRUE= | |
15058 | SIM_ENABLE_ARCH_microblaze_FALSE='#' | |
15059 | else | |
15060 | SIM_ENABLE_ARCH_microblaze_TRUE='#' | |
15061 | SIM_ENABLE_ARCH_microblaze_FALSE= | |
15062 | fi | |
15063 | ||
a0e674c1 | 15064 | |
65dcce8f MF |
15065 | sim_enable_arch_mips=false |
15066 | case "${targ}" in | |
a0e674c1 MF |
15067 | all|mips*-*-*) |
15068 | if test "${targ}" = "${target}"; then | |
15069 | SIM_PRIMARY_TARGET=mips | |
15070 | fi | |
7c9a934c MF |
15071 | ENABLE_SIM=yes |
15072 | as_fn_append SIM_ENABLED_ARCHES " mips" | |
bc56166f | 15073 | |
23912acd MF |
15074 | ac_config_files="$ac_config_files mips/.gdbinit:common/gdbinit.in" |
15075 | ||
119da465 | 15076 | |
65dcce8f | 15077 | sim_enable_arch_mips=true |
3e8bb3e9 | 15078 | ;; |
a0e674c1 | 15079 | esac |
8996c210 MF |
15080 | |
15081 | ||
15082 | ||
dc4e1fde | 15083 | |
8996c210 | 15084 | if test "$SIM_PRIMARY_TARGET" = "mips"; then : |
dc4e1fde HPN |
15085 | : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}" |
15086 | : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}" | |
15087 | : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15088 | |
15089 | fi | |
15090 | ||
15091 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS" | |
15092 | ||
65dcce8f MF |
15093 | if ${sim_enable_arch_mips}; then |
15094 | SIM_ENABLE_ARCH_mips_TRUE= | |
15095 | SIM_ENABLE_ARCH_mips_FALSE='#' | |
15096 | else | |
15097 | SIM_ENABLE_ARCH_mips_TRUE='#' | |
15098 | SIM_ENABLE_ARCH_mips_FALSE= | |
15099 | fi | |
15100 | ||
a0e674c1 | 15101 | |
65dcce8f MF |
15102 | sim_enable_arch_mn10300=false |
15103 | case "${targ}" in | |
a0e674c1 MF |
15104 | all|mn10300*-*-*) |
15105 | if test "${targ}" = "${target}"; then | |
15106 | SIM_PRIMARY_TARGET=mn10300 | |
15107 | fi | |
7c9a934c MF |
15108 | ENABLE_SIM=yes |
15109 | as_fn_append SIM_ENABLED_ARCHES " mn10300" | |
bc56166f | 15110 | |
23912acd MF |
15111 | ac_config_files="$ac_config_files mn10300/.gdbinit:common/gdbinit.in" |
15112 | ||
119da465 | 15113 | |
65dcce8f | 15114 | sim_enable_arch_mn10300=true |
3e8bb3e9 | 15115 | ;; |
a0e674c1 | 15116 | esac |
8996c210 MF |
15117 | |
15118 | ||
15119 | ||
dc4e1fde | 15120 | |
8996c210 | 15121 | if test "$SIM_PRIMARY_TARGET" = "mn10300"; then : |
dc4e1fde HPN |
15122 | : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}" |
15123 | : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}" | |
15124 | : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15125 | |
15126 | fi | |
15127 | ||
15128 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300" | |
15129 | ||
65dcce8f MF |
15130 | if ${sim_enable_arch_mn10300}; then |
15131 | SIM_ENABLE_ARCH_mn10300_TRUE= | |
15132 | SIM_ENABLE_ARCH_mn10300_FALSE='#' | |
15133 | else | |
15134 | SIM_ENABLE_ARCH_mn10300_TRUE='#' | |
15135 | SIM_ENABLE_ARCH_mn10300_FALSE= | |
15136 | fi | |
a0e674c1 | 15137 | |
65dcce8f MF |
15138 | |
15139 | sim_enable_arch_moxie=false | |
15140 | case "${targ}" in | |
a0e674c1 MF |
15141 | all|moxie-*-*) |
15142 | if test "${targ}" = "${target}"; then | |
15143 | SIM_PRIMARY_TARGET=moxie | |
15144 | fi | |
7c9a934c MF |
15145 | ENABLE_SIM=yes |
15146 | as_fn_append SIM_ENABLED_ARCHES " moxie" | |
bc56166f | 15147 | |
23912acd MF |
15148 | ac_config_files="$ac_config_files moxie/.gdbinit:common/gdbinit.in" |
15149 | ||
119da465 | 15150 | |
65dcce8f | 15151 | sim_enable_arch_moxie=true |
3e8bb3e9 | 15152 | ;; |
a0e674c1 | 15153 | esac |
8996c210 MF |
15154 | |
15155 | ||
15156 | ||
dc4e1fde | 15157 | |
8996c210 | 15158 | if test "$SIM_PRIMARY_TARGET" = "moxie"; then : |
dc4e1fde HPN |
15159 | : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}" |
15160 | : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}" | |
15161 | : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15162 | |
15163 | fi | |
15164 | ||
15165 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE" | |
15166 | ||
65dcce8f MF |
15167 | if ${sim_enable_arch_moxie}; then |
15168 | SIM_ENABLE_ARCH_moxie_TRUE= | |
15169 | SIM_ENABLE_ARCH_moxie_FALSE='#' | |
15170 | else | |
15171 | SIM_ENABLE_ARCH_moxie_TRUE='#' | |
15172 | SIM_ENABLE_ARCH_moxie_FALSE= | |
15173 | fi | |
a0e674c1 | 15174 | |
65dcce8f MF |
15175 | |
15176 | sim_enable_arch_msp430=false | |
15177 | case "${targ}" in | |
a0e674c1 MF |
15178 | all|msp430*-*-*) |
15179 | if test "${targ}" = "${target}"; then | |
15180 | SIM_PRIMARY_TARGET=msp430 | |
15181 | fi | |
7c9a934c MF |
15182 | ENABLE_SIM=yes |
15183 | as_fn_append SIM_ENABLED_ARCHES " msp430" | |
bc56166f | 15184 | |
23912acd MF |
15185 | ac_config_files="$ac_config_files msp430/.gdbinit:common/gdbinit.in" |
15186 | ||
119da465 | 15187 | |
65dcce8f | 15188 | sim_enable_arch_msp430=true |
3e8bb3e9 | 15189 | ;; |
a0e674c1 | 15190 | esac |
8996c210 MF |
15191 | |
15192 | ||
15193 | ||
dc4e1fde | 15194 | |
8996c210 | 15195 | if test "$SIM_PRIMARY_TARGET" = "msp430"; then : |
dc4e1fde HPN |
15196 | : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}" |
15197 | : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}" | |
15198 | : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15199 | |
15200 | fi | |
15201 | ||
15202 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430" | |
15203 | ||
65dcce8f MF |
15204 | if ${sim_enable_arch_msp430}; then |
15205 | SIM_ENABLE_ARCH_msp430_TRUE= | |
15206 | SIM_ENABLE_ARCH_msp430_FALSE='#' | |
15207 | else | |
15208 | SIM_ENABLE_ARCH_msp430_TRUE='#' | |
15209 | SIM_ENABLE_ARCH_msp430_FALSE= | |
15210 | fi | |
15211 | ||
a0e674c1 | 15212 | |
65dcce8f MF |
15213 | sim_enable_arch_or1k=false |
15214 | case "${targ}" in | |
99aedb62 | 15215 | all|or1k*-*-*) |
a0e674c1 MF |
15216 | if test "${targ}" = "${target}"; then |
15217 | SIM_PRIMARY_TARGET=or1k | |
15218 | fi | |
7c9a934c MF |
15219 | ENABLE_SIM=yes |
15220 | as_fn_append SIM_ENABLED_ARCHES " or1k" | |
bc56166f | 15221 | |
23912acd MF |
15222 | ac_config_files="$ac_config_files or1k/.gdbinit:common/gdbinit.in" |
15223 | ||
119da465 | 15224 | |
65dcce8f | 15225 | sim_enable_arch_or1k=true |
99aedb62 MF |
15226 | ;; |
15227 | esac | |
8996c210 MF |
15228 | |
15229 | ||
15230 | ||
dc4e1fde | 15231 | |
8996c210 | 15232 | if test "$SIM_PRIMARY_TARGET" = "or1k"; then : |
dc4e1fde HPN |
15233 | : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}" |
15234 | : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}" | |
15235 | : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15236 | |
15237 | fi | |
15238 | ||
15239 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K" | |
15240 | ||
65dcce8f MF |
15241 | if ${sim_enable_arch_or1k}; then |
15242 | SIM_ENABLE_ARCH_or1k_TRUE= | |
15243 | SIM_ENABLE_ARCH_or1k_FALSE='#' | |
15244 | else | |
15245 | SIM_ENABLE_ARCH_or1k_TRUE='#' | |
15246 | SIM_ENABLE_ARCH_or1k_FALSE= | |
15247 | fi | |
15248 | ||
99aedb62 | 15249 | |
65dcce8f MF |
15250 | sim_enable_arch_ppc=false |
15251 | case "${targ}" in | |
99aedb62 MF |
15252 | all|powerpc*-*-*) |
15253 | if test "${targ}" = "${target}"; then | |
15254 | SIM_PRIMARY_TARGET=ppc | |
15255 | fi | |
7c9a934c MF |
15256 | ENABLE_SIM=yes |
15257 | as_fn_append SIM_ENABLED_ARCHES " ppc" | |
abc494c6 MF |
15258 | |
15259 | ||
15260 | subdirs="$subdirs ppc" | |
99aedb62 MF |
15261 | |
15262 | ||
23912acd MF |
15263 | ac_config_files="$ac_config_files ppc/.gdbinit:common/gdbinit.in" |
15264 | ||
99aedb62 | 15265 | |
65dcce8f | 15266 | sim_enable_arch_ppc=true |
3e8bb3e9 | 15267 | ;; |
a0e674c1 | 15268 | esac |
8996c210 MF |
15269 | |
15270 | ||
15271 | ||
dc4e1fde | 15272 | |
8996c210 | 15273 | if test "$SIM_PRIMARY_TARGET" = "ppc"; then : |
dc4e1fde HPN |
15274 | : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}" |
15275 | : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}" | |
15276 | : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15277 | |
15278 | fi | |
15279 | ||
15280 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC" | |
15281 | ||
65dcce8f MF |
15282 | if ${sim_enable_arch_ppc}; then |
15283 | SIM_ENABLE_ARCH_ppc_TRUE= | |
15284 | SIM_ENABLE_ARCH_ppc_FALSE='#' | |
15285 | else | |
15286 | SIM_ENABLE_ARCH_ppc_TRUE='#' | |
15287 | SIM_ENABLE_ARCH_ppc_FALSE= | |
15288 | fi | |
15289 | ||
a0e674c1 | 15290 | |
65dcce8f MF |
15291 | sim_enable_arch_pru=false |
15292 | case "${targ}" in | |
a0e674c1 MF |
15293 | all|pru*-*-*) |
15294 | if test "${targ}" = "${target}"; then | |
15295 | SIM_PRIMARY_TARGET=pru | |
15296 | fi | |
7c9a934c MF |
15297 | ENABLE_SIM=yes |
15298 | as_fn_append SIM_ENABLED_ARCHES " pru" | |
bc56166f | 15299 | |
23912acd MF |
15300 | ac_config_files="$ac_config_files pru/.gdbinit:common/gdbinit.in" |
15301 | ||
119da465 | 15302 | |
65dcce8f | 15303 | sim_enable_arch_pru=true |
3e8bb3e9 | 15304 | ;; |
a0e674c1 | 15305 | esac |
8996c210 MF |
15306 | |
15307 | ||
15308 | ||
dc4e1fde | 15309 | |
8996c210 | 15310 | if test "$SIM_PRIMARY_TARGET" = "pru"; then : |
dc4e1fde HPN |
15311 | : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}" |
15312 | : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}" | |
15313 | : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15314 | |
15315 | fi | |
15316 | ||
15317 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU" | |
15318 | ||
65dcce8f MF |
15319 | if ${sim_enable_arch_pru}; then |
15320 | SIM_ENABLE_ARCH_pru_TRUE= | |
15321 | SIM_ENABLE_ARCH_pru_FALSE='#' | |
15322 | else | |
15323 | SIM_ENABLE_ARCH_pru_TRUE='#' | |
15324 | SIM_ENABLE_ARCH_pru_FALSE= | |
15325 | fi | |
a0e674c1 | 15326 | |
65dcce8f MF |
15327 | |
15328 | sim_enable_arch_riscv=false | |
15329 | case "${targ}" in | |
a0e674c1 MF |
15330 | all|riscv*-*-*) |
15331 | if test "${targ}" = "${target}"; then | |
15332 | SIM_PRIMARY_TARGET=riscv | |
15333 | fi | |
7c9a934c MF |
15334 | ENABLE_SIM=yes |
15335 | as_fn_append SIM_ENABLED_ARCHES " riscv" | |
bc56166f | 15336 | |
23912acd MF |
15337 | ac_config_files="$ac_config_files riscv/.gdbinit:common/gdbinit.in" |
15338 | ||
119da465 | 15339 | |
65dcce8f | 15340 | sim_enable_arch_riscv=true |
3e8bb3e9 | 15341 | ;; |
a0e674c1 | 15342 | esac |
8996c210 MF |
15343 | |
15344 | ||
15345 | ||
dc4e1fde | 15346 | |
8996c210 | 15347 | if test "$SIM_PRIMARY_TARGET" = "riscv"; then : |
dc4e1fde HPN |
15348 | : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}" |
15349 | : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}" | |
15350 | : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15351 | |
15352 | fi | |
15353 | ||
15354 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV" | |
15355 | ||
65dcce8f MF |
15356 | if ${sim_enable_arch_riscv}; then |
15357 | SIM_ENABLE_ARCH_riscv_TRUE= | |
15358 | SIM_ENABLE_ARCH_riscv_FALSE='#' | |
15359 | else | |
15360 | SIM_ENABLE_ARCH_riscv_TRUE='#' | |
15361 | SIM_ENABLE_ARCH_riscv_FALSE= | |
15362 | fi | |
15363 | ||
a0e674c1 | 15364 | |
65dcce8f MF |
15365 | sim_enable_arch_rl78=false |
15366 | case "${targ}" in | |
a0e674c1 MF |
15367 | all|rl78-*-*) |
15368 | if test "${targ}" = "${target}"; then | |
15369 | SIM_PRIMARY_TARGET=rl78 | |
15370 | fi | |
7c9a934c MF |
15371 | ENABLE_SIM=yes |
15372 | as_fn_append SIM_ENABLED_ARCHES " rl78" | |
bc56166f | 15373 | |
23912acd MF |
15374 | ac_config_files="$ac_config_files rl78/.gdbinit:common/gdbinit.in" |
15375 | ||
f46e4eb7 | 15376 | |
65dcce8f | 15377 | sim_enable_arch_rl78=true |
3e8bb3e9 | 15378 | ;; |
a0e674c1 | 15379 | esac |
8996c210 MF |
15380 | |
15381 | ||
15382 | ||
dc4e1fde | 15383 | |
8996c210 | 15384 | if test "$SIM_PRIMARY_TARGET" = "rl78"; then : |
dc4e1fde HPN |
15385 | : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}" |
15386 | : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}" | |
15387 | : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15388 | |
15389 | fi | |
15390 | ||
15391 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78" | |
15392 | ||
65dcce8f MF |
15393 | if ${sim_enable_arch_rl78}; then |
15394 | SIM_ENABLE_ARCH_rl78_TRUE= | |
15395 | SIM_ENABLE_ARCH_rl78_FALSE='#' | |
15396 | else | |
15397 | SIM_ENABLE_ARCH_rl78_TRUE='#' | |
15398 | SIM_ENABLE_ARCH_rl78_FALSE= | |
15399 | fi | |
15400 | ||
a0e674c1 | 15401 | |
65dcce8f MF |
15402 | sim_enable_arch_rx=false |
15403 | case "${targ}" in | |
a0e674c1 MF |
15404 | all|rx-*-*) |
15405 | if test "${targ}" = "${target}"; then | |
15406 | SIM_PRIMARY_TARGET=rx | |
15407 | fi | |
7c9a934c MF |
15408 | ENABLE_SIM=yes |
15409 | as_fn_append SIM_ENABLED_ARCHES " rx" | |
bc56166f | 15410 | |
23912acd MF |
15411 | ac_config_files="$ac_config_files rx/.gdbinit:common/gdbinit.in" |
15412 | ||
f46e4eb7 | 15413 | |
65dcce8f | 15414 | sim_enable_arch_rx=true |
3e8bb3e9 | 15415 | ;; |
a0e674c1 | 15416 | esac |
8996c210 MF |
15417 | |
15418 | ||
15419 | ||
dc4e1fde | 15420 | |
8996c210 | 15421 | if test "$SIM_PRIMARY_TARGET" = "rx"; then : |
dc4e1fde HPN |
15422 | : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}" |
15423 | : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}" | |
15424 | : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15425 | |
15426 | fi | |
15427 | ||
15428 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX" | |
15429 | ||
65dcce8f MF |
15430 | if ${sim_enable_arch_rx}; then |
15431 | SIM_ENABLE_ARCH_rx_TRUE= | |
15432 | SIM_ENABLE_ARCH_rx_FALSE='#' | |
15433 | else | |
15434 | SIM_ENABLE_ARCH_rx_TRUE='#' | |
15435 | SIM_ENABLE_ARCH_rx_FALSE= | |
15436 | fi | |
a0e674c1 | 15437 | |
65dcce8f MF |
15438 | |
15439 | sim_enable_arch_sh=false | |
15440 | case "${targ}" in | |
a0e674c1 MF |
15441 | all|sh*-*-*) |
15442 | if test "${targ}" = "${target}"; then | |
15443 | SIM_PRIMARY_TARGET=sh | |
15444 | fi | |
7c9a934c MF |
15445 | ENABLE_SIM=yes |
15446 | as_fn_append SIM_ENABLED_ARCHES " sh" | |
bc56166f | 15447 | |
23912acd MF |
15448 | ac_config_files="$ac_config_files sh/.gdbinit:common/gdbinit.in" |
15449 | ||
f46e4eb7 | 15450 | |
65dcce8f | 15451 | sim_enable_arch_sh=true |
3e8bb3e9 | 15452 | ;; |
a0e674c1 | 15453 | esac |
8996c210 MF |
15454 | |
15455 | ||
15456 | ||
dc4e1fde | 15457 | |
8996c210 | 15458 | if test "$SIM_PRIMARY_TARGET" = "sh"; then : |
dc4e1fde HPN |
15459 | : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}" |
15460 | : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}" | |
15461 | : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15462 | |
15463 | fi | |
15464 | ||
15465 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH" | |
15466 | ||
65dcce8f MF |
15467 | if ${sim_enable_arch_sh}; then |
15468 | SIM_ENABLE_ARCH_sh_TRUE= | |
15469 | SIM_ENABLE_ARCH_sh_FALSE='#' | |
15470 | else | |
15471 | SIM_ENABLE_ARCH_sh_TRUE='#' | |
15472 | SIM_ENABLE_ARCH_sh_FALSE= | |
15473 | fi | |
a0e674c1 | 15474 | |
65dcce8f MF |
15475 | |
15476 | sim_enable_arch_erc32=false | |
15477 | case "${targ}" in | |
99aedb62 | 15478 | all|sparc-*-*) |
a0e674c1 MF |
15479 | if test "${targ}" = "${target}"; then |
15480 | SIM_PRIMARY_TARGET=erc32 | |
15481 | fi | |
7c9a934c MF |
15482 | ENABLE_SIM=yes |
15483 | as_fn_append SIM_ENABLED_ARCHES " erc32" | |
bc56166f | 15484 | |
23912acd MF |
15485 | ac_config_files="$ac_config_files erc32/.gdbinit:common/gdbinit.in" |
15486 | ||
119da465 | 15487 | |
65dcce8f | 15488 | sim_enable_arch_erc32=true |
3e8bb3e9 | 15489 | ;; |
a0e674c1 | 15490 | esac |
8996c210 MF |
15491 | |
15492 | ||
15493 | ||
dc4e1fde | 15494 | |
8996c210 | 15495 | if test "$SIM_PRIMARY_TARGET" = "erc32"; then : |
dc4e1fde HPN |
15496 | : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}" |
15497 | : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}" | |
15498 | : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15499 | |
15500 | fi | |
15501 | ||
15502 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32" | |
15503 | ||
65dcce8f MF |
15504 | if ${sim_enable_arch_erc32}; then |
15505 | SIM_ENABLE_ARCH_erc32_TRUE= | |
15506 | SIM_ENABLE_ARCH_erc32_FALSE='#' | |
15507 | else | |
15508 | SIM_ENABLE_ARCH_erc32_TRUE='#' | |
15509 | SIM_ENABLE_ARCH_erc32_FALSE= | |
15510 | fi | |
15511 | ||
a0e674c1 | 15512 | |
65dcce8f MF |
15513 | sim_enable_arch_v850=false |
15514 | case "${targ}" in | |
a0e674c1 MF |
15515 | all|v850*-*-*) |
15516 | if test "${targ}" = "${target}"; then | |
15517 | SIM_PRIMARY_TARGET=v850 | |
15518 | fi | |
7c9a934c MF |
15519 | ENABLE_SIM=yes |
15520 | as_fn_append SIM_ENABLED_ARCHES " v850" | |
bc56166f | 15521 | |
23912acd MF |
15522 | ac_config_files="$ac_config_files v850/.gdbinit:common/gdbinit.in" |
15523 | ||
119da465 | 15524 | |
65dcce8f | 15525 | sim_enable_arch_v850=true |
3e8bb3e9 MF |
15526 | ;; |
15527 | esac | |
8996c210 MF |
15528 | |
15529 | ||
15530 | ||
dc4e1fde | 15531 | |
8996c210 | 15532 | if test "$SIM_PRIMARY_TARGET" = "v850"; then : |
dc4e1fde HPN |
15533 | : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}" |
15534 | : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}" | |
15535 | : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15536 | |
15537 | fi | |
15538 | ||
15539 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850" | |
15540 | ||
65dcce8f MF |
15541 | if ${sim_enable_arch_v850}; then |
15542 | SIM_ENABLE_ARCH_v850_TRUE= | |
15543 | SIM_ENABLE_ARCH_v850_FALSE='#' | |
15544 | else | |
15545 | SIM_ENABLE_ARCH_v850_TRUE='#' | |
15546 | SIM_ENABLE_ARCH_v850_FALSE= | |
15547 | fi | |
15548 | ||
a0e674c1 MF |
15549 | |
15550 | done | |
26da232c MF |
15551 | |
15552 | if test "x${enable_example_sims}" = xyes; then | |
8996c210 MF |
15553 | |
15554 | ||
15555 | ||
dc4e1fde HPN |
15556 | |
15557 | : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}" | |
15558 | : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}" | |
8996c210 MF |
15559 | : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}" |
15560 | ||
15561 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR" | |
15562 | ||
7c9a934c MF |
15563 | ENABLE_SIM=yes |
15564 | as_fn_append SIM_ENABLED_ARCHES " example-synacor" | |
bc56166f | 15565 | |
23912acd MF |
15566 | ac_config_files="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in" |
15567 | ||
26da232c MF |
15568 | |
15569 | fi | |
c0c25232 MF |
15570 | if test "${enable_example_sims}" = "yes"; then |
15571 | SIM_ENABLE_ARCH_examples_TRUE= | |
15572 | SIM_ENABLE_ARCH_examples_FALSE='#' | |
15573 | else | |
15574 | SIM_ENABLE_ARCH_examples_TRUE='#' | |
15575 | SIM_ENABLE_ARCH_examples_FALSE= | |
15576 | fi | |
15577 | ||
b6b1c790 | 15578 | fi |
7c9a934c | 15579 | if test "$ENABLE_SIM" = "yes"; then |
fb2c495f MF |
15580 | ENABLE_SIM_TRUE= |
15581 | ENABLE_SIM_FALSE='#' | |
15582 | else | |
15583 | ENABLE_SIM_TRUE='#' | |
15584 | ENABLE_SIM_FALSE= | |
15585 | fi | |
15586 | ||
b6b1c790 | 15587 | |
ba307cdd MF |
15588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5 |
15589 | $as_echo_n "checking whether to force sim alignment... " >&6; } | |
15590 | sim_alignment= | |
15591 | # Check whether --enable-sim-alignment was given. | |
15592 | if test "${enable_sim_alignment+set}" = set; then : | |
15593 | enableval=$enable_sim_alignment; case "${enableval}" in | |
15594 | yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";; | |
15595 | no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";; | |
15596 | forced | FORCED) sim_alignment="FORCED_ALIGNMENT";; | |
15597 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;; | |
15598 | esac | |
15599 | fi | |
15600 | ||
15601 | cat >>confdefs.h <<_ACEOF | |
15602 | #define WITH_ALIGNMENT ${sim_alignment:-0} | |
15603 | _ACEOF | |
15604 | ||
15605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5 | |
15606 | $as_echo "${sim_alignment:-no}" >&6; } | |
15607 | ||
dba333c1 MF |
15608 | |
15609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5 | |
15610 | $as_echo_n "checking whether to enable sim asserts... " >&6; } | |
15611 | sim_assert="1" | |
15612 | # Check whether --enable-sim-assert was given. | |
15613 | if test "${enable_sim_assert+set}" = set; then : | |
15614 | enableval=$enable_sim_assert; case "${enableval}" in | |
15615 | yes) sim_assert="1";; | |
15616 | no) sim_assert="0";; | |
15617 | *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;; | |
15618 | esac | |
15619 | fi | |
15620 | ||
15621 | cat >>confdefs.h <<_ACEOF | |
15622 | #define WITH_ASSERT $sim_assert | |
15623 | _ACEOF | |
15624 | ||
15625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5 | |
15626 | $as_echo "$sim_assert" >&6; } | |
15627 | ||
1bf5c342 MF |
15628 | |
15629 | cgen_maint=no | |
15630 | cgen=guile | |
15631 | cgendir='$(srcdir)/../../cgen' | |
15632 | # Check whether --enable-cgen-maint was given. | |
15633 | if test "${enable_cgen_maint+set}" = set; then : | |
15634 | enableval=$enable_cgen_maint; case "${enableval}" in | |
15635 | yes) cgen_maint=yes ;; | |
15636 | no) cgen_maint=no ;; | |
15637 | *) | |
15638 | # Argument is a directory where cgen can be found. In some | |
15639 | # future world cgen could be installable, but right now this | |
15640 | # is not the case. Instead we assume the directory is a path | |
15641 | # to the cgen source tree. | |
15642 | cgen_maint=yes | |
15643 | if test -r ${enableval}/iformat.scm; then | |
15644 | # This looks like a cgen source tree. | |
15645 | cgendir=${enableval} | |
15646 | else | |
15647 | as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5 | |
15648 | fi | |
15649 | ;; | |
15650 | esac | |
15651 | fi | |
15652 | if test x${cgen_maint} != xno ; then | |
15653 | CGEN_MAINT='' | |
15654 | else | |
15655 | CGEN_MAINT='#' | |
15656 | fi | |
15657 | ||
15658 | ||
15659 | ||
15660 | ||
04381273 MF |
15661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5 |
15662 | $as_echo_n "checking for sim debug setting... " >&6; } | |
15663 | sim_debug="0" | |
15664 | # Check whether --enable-sim-debug was given. | |
15665 | if test "${enable_sim_debug+set}" = set; then : | |
15666 | enableval=$enable_sim_debug; case "${enableval}" in | |
15667 | yes) sim_debug="7";; | |
15668 | no) sim_debug="0";; | |
15669 | *) sim_debug="($enableval)";; | |
15670 | esac | |
15671 | fi | |
15672 | if test "$sim_debug" != "0"; then | |
15673 | ||
15674 | cat >>confdefs.h <<_ACEOF | |
15675 | #define DEBUG $sim_debug | |
15676 | _ACEOF | |
15677 | ||
15678 | fi | |
15679 | ||
15680 | cat >>confdefs.h <<_ACEOF | |
15681 | #define WITH_DEBUG $sim_debug | |
15682 | _ACEOF | |
15683 | ||
15684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5 | |
15685 | $as_echo "$sim_debug" >&6; } | |
f9a4d543 MF |
15686 | |
15687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5 | |
15688 | $as_echo_n "checking whether to force sim endianness... " >&6; } | |
15689 | sim_endian= | |
15690 | # Check whether --enable-sim-endian was given. | |
15691 | if test "${enable_sim_endian+set}" = set; then : | |
15692 | enableval=$enable_sim_endian; case "${enableval}" in | |
15693 | b*|B*) sim_endian="BFD_ENDIAN_BIG";; | |
15694 | l*|L*) sim_endian="BFD_ENDIAN_LITTLE";; | |
15695 | yes | no) ;; | |
15696 | *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;; | |
15697 | esac | |
15698 | fi | |
15699 | ||
15700 | cat >>confdefs.h <<_ACEOF | |
15701 | #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN} | |
15702 | _ACEOF | |
15703 | ||
15704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5 | |
15705 | $as_echo "${sim_alignment:-no}" >&6; } | |
04381273 | 15706 | |
dba333c1 | 15707 | |
5ea45474 MF |
15708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5 |
15709 | $as_echo_n "checking default sim environment setting... " >&6; } | |
15710 | sim_environment="ALL_ENVIRONMENT" | |
15711 | # Check whether --enable-sim-environment was given. | |
15712 | if test "${enable_sim_environment+set}" = set; then : | |
15713 | enableval=$enable_sim_environment; case "${enableval}" in | |
15714 | all | ALL) sim_environment="ALL_ENVIRONMENT";; | |
15715 | user | USER) sim_environment="USER_ENVIRONMENT";; | |
15716 | virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";; | |
15717 | operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";; | |
15718 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;; | |
15719 | esac | |
15720 | fi | |
15721 | ||
15722 | cat >>confdefs.h <<_ACEOF | |
15723 | #define WITH_ENVIRONMENT $sim_environment | |
15724 | _ACEOF | |
15725 | ||
15726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5 | |
15727 | $as_echo "$sim_environment" >&6; } | |
15728 | ||
456ef1c1 MF |
15729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5 |
15730 | $as_echo_n "checking for sim hardware settings... " >&6; } | |
15731 | # Check whether --enable-sim-hardware was given. | |
15732 | if test "${enable_sim_hardware+set}" = set; then : | |
15733 | enableval=$enable_sim_hardware; | |
15734 | else | |
15735 | enable_sim_hardware="yes" | |
15736 | fi | |
15737 | ||
15738 | sim_hw_sockser= | |
15739 | if test "$enable_sim_hardware" = no; then | |
15740 | sim_hw_cflags="-DWITH_HW=0" | |
15741 | elif test "$enable_sim_hardware" = yes; then | |
15742 | sim_hw_cflags="-DWITH_HW=1" | |
03de8f26 MF |
15743 | sim_hw_sockser="dv-sockser.o" |
15744 | sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER" | |
456ef1c1 MF |
15745 | else |
15746 | as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5 | |
15747 | fi | |
15748 | if test "$enable_sim_hardware" = "yes"; then | |
15749 | SIM_ENABLE_HW_TRUE= | |
15750 | SIM_ENABLE_HW_FALSE='#' | |
15751 | else | |
15752 | SIM_ENABLE_HW_TRUE='#' | |
15753 | SIM_ENABLE_HW_FALSE= | |
15754 | fi | |
15755 | ||
15756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5 | |
15757 | $as_echo "${enable_sim_hardware}" >&6; } | |
682a2a82 | 15758 | SIM_HW_CFLAGS=$sim_hw_cflags |
456ef1c1 | 15759 | |
682a2a82 | 15760 | SIM_HW_SOCKSER=$sim_hw_sockser |
456ef1c1 MF |
15761 | |
15762 | ||
d73f39ee MF |
15763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5 |
15764 | $as_echo_n "checking sim inline settings... " >&6; } | |
15765 | sim_inline="-DDEFAULT_INLINE=0" | |
15766 | # Check whether --enable-sim-inline was given. | |
15767 | if test "${enable_sim_inline+set}" = set; then : | |
15768 | enableval=$enable_sim_inline; sim_inline="" | |
15769 | case "$enableval" in | |
15770 | no) sim_inline="-DDEFAULT_INLINE=0";; | |
15771 | 0) sim_inline="-DDEFAULT_INLINE=0";; | |
15772 | yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";; | |
15773 | 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";; | |
15774 | *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
15775 | new_flag="" | |
15776 | case "$x" in | |
15777 | *_INLINE=*) new_flag="-D$x";; | |
15778 | *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;; | |
15779 | *_INLINE) new_flag="-D$x=ALL_C_INLINE";; | |
15780 | *) new_flag="-D$x""_INLINE=ALL_C_INLINE";; | |
15781 | esac | |
15782 | if test x"$sim_inline" = x""; then | |
15783 | sim_inline="$new_flag" | |
15784 | else | |
15785 | sim_inline="$sim_inline $new_flag" | |
15786 | fi | |
15787 | done;; | |
15788 | esac | |
15789 | ||
15790 | fi | |
15791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5 | |
15792 | $as_echo "$sim_inline" >&6; } | |
15793 | SIM_INLINE=$sim_inline | |
15794 | ||
15795 | ||
04381273 MF |
15796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5 |
15797 | $as_echo_n "checking for sim profile settings... " >&6; } | |
15798 | profile="1" | |
15799 | sim_profile="-1" | |
15800 | # Check whether --enable-sim-profile was given. | |
15801 | if test "${enable_sim_profile+set}" = set; then : | |
15802 | enableval=$enable_sim_profile; case "${enableval}" in | |
15803 | yes) profile="1" sim_profile="-1";; | |
15804 | no) profile="0" sim_profile="0";; | |
15805 | [-0-9]*) | |
15806 | profile="(${enableval})" sim_profile="(${enableval})";; | |
15807 | [a-z]*) | |
15808 | profile="1" | |
15809 | sim_profile="" | |
15810 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
15811 | if test x"$sim_profile" = x; then | |
15812 | sim_profile="(PROFILE_$x" | |
15813 | else | |
15814 | sim_profile="${sim_profile}|PROFILE_$x" | |
15815 | fi | |
15816 | done | |
15817 | sim_profile="$sim_profile)" ;; | |
15818 | esac | |
15819 | fi | |
15820 | ||
15821 | cat >>confdefs.h <<_ACEOF | |
15822 | #define PROFILE $profile | |
15823 | _ACEOF | |
15824 | ||
15825 | ||
15826 | cat >>confdefs.h <<_ACEOF | |
15827 | #define WITH_PROFILE $sim_profile | |
15828 | _ACEOF | |
15829 | ||
15830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5 | |
15831 | $as_echo "$sim_profile" >&6; } | |
15832 | ||
7eb1f99a MF |
15833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5 |
15834 | $as_echo_n "checking whether to check reserved bits in instruction... " >&6; } | |
15835 | # Check whether --enable-sim-reserved-bits was given. | |
15836 | if test "${enable_sim_reserved_bits+set}" = set; then : | |
15837 | enableval=$enable_sim_reserved_bits; case "${enableval}" in | |
15838 | yes|no) ;; | |
15839 | *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;; | |
15840 | esac | |
15841 | fi | |
15842 | ||
15843 | if test "x${enable_sim_reserved_bits}" != xno; then | |
15844 | sim_reserved_bits=1 | |
15845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15846 | $as_echo "yes" >&6; } | |
15847 | else | |
15848 | sim_reserved_bits=0 | |
15849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15850 | $as_echo "no" >&6; } | |
15851 | fi | |
15852 | ||
15853 | cat >>confdefs.h <<_ACEOF | |
15854 | #define WITH_RESERVED_BITS $sim_reserved_bits | |
15855 | _ACEOF | |
15856 | ||
15857 | ||
b79efe26 MF |
15858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5 |
15859 | $as_echo_n "checking for sim cache size... " >&6; } | |
15860 | sim_scache="16384" | |
15861 | # Check whether --enable-sim-scache was given. | |
15862 | if test "${enable_sim_scache+set}" = set; then : | |
15863 | enableval=$enable_sim_scache; case "${enableval}" in | |
15864 | yes) ;; | |
15865 | no) sim_scache="0";; | |
15866 | [0-9]*) sim_scache="${enableval}";; | |
15867 | *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;; | |
15868 | esac | |
15869 | fi | |
15870 | ||
15871 | ||
15872 | cat >>confdefs.h <<_ACEOF | |
15873 | #define WITH_SCACHE $sim_scache | |
15874 | _ACEOF | |
15875 | ||
15876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5 | |
15877 | $as_echo "$sim_scache" >&6; } | |
15878 | ||
20b579ba MF |
15879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of sim cpus to support" >&5 |
15880 | $as_echo_n "checking number of sim cpus to support... " >&6; } | |
15881 | default_sim_smp="0" | |
15882 | sim_smp="$default_sim_smp" | |
15883 | # Check whether --enable-sim-smp was given. | |
15884 | if test "${enable_sim_smp+set}" = set; then : | |
15885 | enableval=$enable_sim_smp; case "${enableval}" in | |
15886 | yes) sim_smp="5";; | |
15887 | no) sim_smp="0";; | |
15888 | *) sim_smp="$enableval";; | |
15889 | esac | |
15890 | fi | |
111b1cf9 MF |
15891 | IGEN_FLAGS_SMP="-N ${sim_smp}" |
15892 | ||
20b579ba MF |
15893 | if test "x$sim_smp" = x0; then : |
15894 | ||
15895 | else | |
15896 | ||
15897 | cat >>confdefs.h <<_ACEOF | |
15898 | #define WITH_SMP $sim_smp | |
15899 | _ACEOF | |
15900 | ||
15901 | fi | |
15902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_smp" >&5 | |
15903 | $as_echo "$sim_smp" >&6; } | |
15904 | ||
04381273 MF |
15905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5 |
15906 | $as_echo_n "checking for sim stdio debug behavior... " >&6; } | |
15907 | sim_stdio="0" | |
15908 | # Check whether --enable-sim-stdio was given. | |
15909 | if test "${enable_sim_stdio+set}" = set; then : | |
15910 | enableval=$enable_sim_stdio; case "${enableval}" in | |
15911 | yes) sim_stdio="DO_USE_STDIO";; | |
15912 | no) sim_stdio="DONT_USE_STDIO";; | |
15913 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;; | |
15914 | esac | |
15915 | fi | |
15916 | ||
15917 | cat >>confdefs.h <<_ACEOF | |
15918 | #define WITH_STDIO $sim_stdio | |
15919 | _ACEOF | |
15920 | ||
15921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5 | |
15922 | $as_echo "$sim_stdio" >&6; } | |
15923 | ||
15924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5 | |
15925 | $as_echo_n "checking for sim trace settings... " >&6; } | |
15926 | sim_trace="~TRACE_debug" | |
15927 | # Check whether --enable-sim-trace was given. | |
15928 | if test "${enable_sim_trace+set}" = set; then : | |
15929 | enableval=$enable_sim_trace; case "${enableval}" in | |
15930 | yes) sim_trace="-1";; | |
15931 | no) sim_trace="0";; | |
15932 | [-0-9]*) | |
15933 | sim_trace="'(${enableval})'";; | |
15934 | [[:lower:]]*) | |
15935 | sim_trace="" | |
15936 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
15937 | if test x"$sim_trace" = x; then | |
15938 | sim_trace="(TRACE_$x" | |
15939 | else | |
15940 | sim_trace="${sim_trace}|TRACE_$x" | |
15941 | fi | |
15942 | done | |
15943 | sim_trace="$sim_trace)" ;; | |
15944 | esac | |
15945 | fi | |
15946 | ||
15947 | cat >>confdefs.h <<_ACEOF | |
15948 | #define WITH_TRACE $sim_trace | |
15949 | _ACEOF | |
15950 | ||
15951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5 | |
15952 | $as_echo "$sim_trace" >&6; } | |
15953 | ||
5ea45474 | 15954 | |
47ce766a MF |
15955 | # Check whether --enable-werror was given. |
15956 | if test "${enable_werror+set}" = set; then : | |
15957 | enableval=$enable_werror; case "${enableval}" in | |
15958 | yes | y) ERROR_ON_WARNING="yes" ;; | |
15959 | no | n) ERROR_ON_WARNING="no" ;; | |
15960 | *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
15961 | esac | |
15962 | fi | |
15963 | ||
15964 | ||
15965 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
15966 | ERROR_ON_WARNING=yes | |
15967 | fi | |
15968 | ||
15969 | WERROR_CFLAGS="" | |
15970 | if test "${ERROR_ON_WARNING}" = yes ; then | |
15971 | WERROR_CFLAGS="-Werror" | |
15972 | fi | |
15973 | ||
7f6fa743 MF |
15974 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith |
15975 | -Wno-unused -Wunused-value -Wunused-function | |
15976 | -Wno-switch -Wno-char-subscripts | |
15977 | -Wempty-body -Wunused-but-set-parameter | |
3167423f | 15978 | -Wno-error=maybe-uninitialized |
7f6fa743 MF |
15979 | -Wmissing-declarations |
15980 | -Wmissing-prototypes | |
15981 | -Wdeclaration-after-statement -Wmissing-parameter-type | |
15982 | -Wpointer-sign | |
15983 | -Wold-style-declaration -Wold-style-definition | |
15984 | " | |
47ce766a MF |
15985 | |
15986 | # Enable -Wno-format by default when using gcc on mingw since many | |
15987 | # GCC versions complain about %I64. | |
15988 | case "${host}" in | |
15989 | *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;; | |
15990 | *) build_warnings="$build_warnings -Wformat-nonliteral" ;; | |
15991 | esac | |
15992 | ||
15993 | # Check whether --enable-build-warnings was given. | |
15994 | if test "${enable_build_warnings+set}" = set; then : | |
15995 | enableval=$enable_build_warnings; case "${enableval}" in | |
15996 | yes) ;; | |
15997 | no) build_warnings="-w";; | |
15998 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
15999 | build_warnings="${build_warnings} ${t}";; | |
16000 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
16001 | build_warnings="${t} ${build_warnings}";; | |
16002 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
16003 | esac | |
16004 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
16005 | echo "Setting compiler warning flags = $build_warnings" 6>&1 | |
16006 | fi | |
16007 | fi | |
16008 | # Check whether --enable-sim-build-warnings was given. | |
16009 | if test "${enable_sim_build_warnings+set}" = set; then : | |
16010 | enableval=$enable_sim_build_warnings; case "${enableval}" in | |
16011 | yes) ;; | |
16012 | no) build_warnings="-w";; | |
16013 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
16014 | build_warnings="${build_warnings} ${t}";; | |
16015 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
16016 | build_warnings="${t} ${build_warnings}";; | |
16017 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
16018 | esac | |
16019 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
16020 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
16021 | fi | |
16022 | fi | |
16023 | WARN_CFLAGS="" | |
16024 | if test "x${build_warnings}" != x -a "x$GCC" = xyes | |
16025 | then | |
16026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5 | |
16027 | $as_echo_n "checking compiler warning flags... " >&6; } | |
16028 | # Separate out the -Werror flag as some files just cannot be | |
16029 | # compiled with it enabled. | |
16030 | for w in ${build_warnings}; do | |
16031 | case $w in | |
16032 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
16033 | *) # Check that GCC accepts it | |
16034 | saved_CFLAGS="$CFLAGS" | |
16035 | CFLAGS="$CFLAGS -Werror $w" | |
16036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16037 | /* end confdefs.h. */ | |
16038 | ||
16039 | int | |
16040 | main () | |
16041 | { | |
16042 | ||
16043 | ; | |
16044 | return 0; | |
16045 | } | |
16046 | _ACEOF | |
16047 | if ac_fn_c_try_compile "$LINENO"; then : | |
16048 | WARN_CFLAGS="${WARN_CFLAGS} $w" | |
16049 | fi | |
16050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16051 | CFLAGS="$saved_CFLAGS" | |
16052 | esac | |
16053 | done | |
16054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 | |
16055 | $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } | |
16056 | fi | |
16057 | ||
16058 | ||
408a44aa MF |
16059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5 |
16060 | $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; } | |
16061 | # Check whether --enable-sim-frv-trapdump was given. | |
16062 | if test "${enable_sim_frv_trapdump+set}" = set; then : | |
16063 | enableval=$enable_sim_frv_trapdump; case "${enableval}" in | |
16064 | yes|no) ;; | |
16065 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;; | |
16066 | esac | |
16067 | fi | |
16068 | ||
1ee4d0e3 | 16069 | if test "x${enable_sim_frv_trapdump}" = xyes; then |
408a44aa MF |
16070 | SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1" |
16071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16072 | $as_echo "yes" >&6; } | |
16073 | else | |
16074 | SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0" | |
16075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16076 | $as_echo "no" >&6; } | |
16077 | fi | |
16078 | ||
16079 | ||
2d5700ad MF |
16080 | |
16081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips subtarget" >&5 | |
16082 | $as_echo_n "checking mips subtarget... " >&6; } | |
16083 | SIM_MIPS_SUBTARGET= | |
16084 | case ${target} in #( | |
16085 | mips64vr*-*-*) : | |
16086 | SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #( | |
16087 | mips*tx39*) : | |
16088 | SIM_MIPS_SUBTARGET="-DSUBTARGET_R3900=1" ;; #( | |
16089 | mips*-sde-elf*) : | |
16090 | SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #( | |
16091 | mips*-mti-elf*) : | |
16092 | SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #( | |
16093 | mipsisa32*-*-*) : | |
16094 | SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #( | |
16095 | mipsisa64*-*-*) : | |
16096 | SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #( | |
16097 | *) : | |
16098 | ;; | |
16099 | esac | |
16100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SIM_MIPS_SUBTARGET:-none}" >&5 | |
16101 | $as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; } | |
16102 | ||
16103 | ||
19b11256 MF |
16104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips bitsize" >&5 |
16105 | $as_echo_n "checking mips bitsize... " >&6; } | |
16106 | SIM_MIPS_BITSIZE=64 | |
16107 | case ${target} in #( | |
16108 | mips*-sde-elf*) : | |
16109 | SIM_MIPS_BITSIZE=64 ;; #( | |
16110 | mips*-mti-elf*) : | |
16111 | SIM_MIPS_BITSIZE=64 ;; #( | |
16112 | mips64*-*-*) : | |
16113 | SIM_MIPS_BITSIZE=64 ;; #( | |
16114 | mips16*-*-*) : | |
16115 | SIM_MIPS_BITSIZE=64 ;; #( | |
16116 | mipsisa32*-*-*) : | |
16117 | SIM_MIPS_BITSIZE=32 ;; #( | |
16118 | mipsisa64*-*-*) : | |
16119 | SIM_MIPS_BITSIZE=64 ;; #( | |
16120 | mips*-*-*) : | |
16121 | SIM_MIPS_BITSIZE=32 ;; #( | |
16122 | *) : | |
16123 | ;; | |
16124 | esac | |
16125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_BITSIZE" >&5 | |
16126 | $as_echo "$SIM_MIPS_BITSIZE" >&6; } | |
16127 | ||
16128 | ||
d455df98 MF |
16129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips fpu bitsize" >&5 |
16130 | $as_echo_n "checking mips fpu bitsize... " >&6; } | |
16131 | SIM_MIPS_FPU_BITSIZE=64 | |
16132 | case ${target} in #( | |
16133 | mips*tx39*) : | |
16134 | SIM_MIPS_FPU_BITSIZE=32 ;; #( | |
16135 | mips*-sde-elf*) : | |
16136 | SIM_MIPS_FPU_BITSIZE=64 ;; #( | |
16137 | mips*-mti-elf*) : | |
16138 | SIM_MIPS_FPU_BITSIZE=64 ;; #( | |
16139 | mipsisa32*-*-*) : | |
16140 | SIM_MIPS_FPU_BITSIZE=64 ;; #( | |
16141 | mipsisa64*-*-*) : | |
16142 | SIM_MIPS_FPU_BITSIZE=64 ;; #( | |
16143 | mips*-*-*) : | |
16144 | SIM_MIPS_FPU_BITSIZE=32 ;; #( | |
16145 | *) : | |
16146 | ;; | |
16147 | esac | |
16148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_FPU_BITSIZE" >&5 | |
16149 | $as_echo "$SIM_MIPS_FPU_BITSIZE" >&6; } | |
16150 | ||
16151 | ||
07f60ed8 MF |
16152 | SIM_MIPS_GEN=SINGLE |
16153 | sim_mips_single_machine="-M mipsIV" | |
abc494c6 | 16154 | sim_mips_m16_machine="-M mips16,mipsIII" |
07f60ed8 | 16155 | sim_mips_single_filter="32,64,f" |
abc494c6 MF |
16156 | sim_mips_m16_filter="16" |
16157 | case ${target} in #( | |
16158 | mips*tx39*) : | |
07f60ed8 MF |
16159 | SIM_MIPS_GEN=SINGLE |
16160 | sim_mips_single_filter="32,f" | |
16161 | sim_mips_single_machine="-M r3900" ;; #( | |
abc494c6 MF |
16162 | mips64vr41*) : |
16163 | SIM_MIPS_GEN=M16 | |
07f60ed8 | 16164 | sim_mips_single_machine="-M vr4100" |
abc494c6 MF |
16165 | sim_mips_m16_machine="-M vr4100" ;; #( |
16166 | mips64*) : | |
16167 | SIM_MIPS_GEN=MULTI | |
16168 | sim_mips_multi_configs="\ | |
16169 | vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\ | |
16170 | vr4120:mipsIII,mips16,vr4120:32,64:mips4120\ | |
16171 | vr5000:mipsIV:32,64,f:mips4300,mips5000,mips8000\ | |
16172 | vr5400:mipsIV,vr5400:32,64,f:mips5400\ | |
16173 | vr5500:mipsIV,vr5500:32,64,f:mips5500" | |
16174 | sim_mips_multi_default=mips5000 ;; #( | |
16175 | mips*-sde-elf* | mips*-mti-elf*) : | |
16176 | SIM_MIPS_GEN=MULTI | |
16177 | sim_mips_multi_configs="\ | |
16178 | micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\ | |
16179 | mipsisa64r2:mips64r2,mips16,mips16e,mdmx,dsp,dsp2,mips3d,smartmips:32,64,f:mipsisa32r2,mipsisa64r2,mipsisa32r5,mipsisa64r5\ | |
16180 | mipsisa64r6:mips64r6:32,64,f:mipsisa32r6,mipsisa64r6" | |
16181 | sim_mips_multi_default=mipsisa64r2 ;; #( | |
16182 | mips16*) : | |
16183 | SIM_MIPS_GEN=M16 ;; #( | |
16184 | mipsisa32r2*) : | |
16185 | SIM_MIPS_GEN=MULTI | |
16186 | sim_mips_multi_configs="\ | |
16187 | micromips:micromips32,micromipsdsp:32,f:mips_micromips\ | |
16188 | mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2" | |
16189 | sim_mips_multi_default=mipsisa32r2 ;; #( | |
16190 | mipsisa32r6*) : | |
07f60ed8 MF |
16191 | SIM_MIPS_GEN=SINGLE |
16192 | sim_mips_single_machine="-M mips32r6" | |
16193 | sim_mips_single_filter="32,f" ;; #( | |
abc494c6 MF |
16194 | mipsisa32*) : |
16195 | SIM_MIPS_GEN=M16 | |
07f60ed8 | 16196 | sim_mips_single_machine="-M mips32,mips16,mips16e,smartmips" |
abc494c6 | 16197 | sim_mips_m16_machine="-M mips16,mips16e,mips32" |
07f60ed8 | 16198 | sim_mips_single_filter="32,f" ;; #( |
abc494c6 MF |
16199 | mipsisa64r2*) : |
16200 | SIM_MIPS_GEN=M16 | |
07f60ed8 | 16201 | sim_mips_single_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2" |
abc494c6 MF |
16202 | sim_mips_m16_machine="-M mips16,mips16e,mips64r2" ;; #( |
16203 | mipsisa64r6*) : | |
07f60ed8 MF |
16204 | SIM_MIPS_GEN=SINGLE |
16205 | sim_mips_single_machine="-M mips64r6" ;; #( | |
abc494c6 | 16206 | mipsisa64sb1*) : |
07f60ed8 MF |
16207 | SIM_MIPS_GEN=SINGLE |
16208 | sim_mips_single_machine="-M mips64,mips3d,sb1" ;; #( | |
abc494c6 MF |
16209 | mipsisa64*) : |
16210 | SIM_MIPS_GEN=M16 | |
07f60ed8 | 16211 | sim_mips_single_machine="-M mips64,mips3d,mips16,mips16e,mdmx" |
abc494c6 MF |
16212 | sim_mips_m16_machine="-M mips16,mips16e,mips64" ;; #( |
16213 | mips*lsi*) : | |
16214 | SIM_MIPS_GEN=M16 | |
07f60ed8 | 16215 | sim_mips_single_machine="-M mipsIII,mips16" |
abc494c6 | 16216 | sim_mips_m16_machine="-M mips16,mipsIII" |
07f60ed8 | 16217 | sim_mips_single_filter="32,f" ;; #( |
abc494c6 | 16218 | mips*) : |
07f60ed8 MF |
16219 | SIM_MIPS_GEN=SINGLE |
16220 | sim_mips_single_filter="32,f" ;; #( | |
abc494c6 MF |
16221 | *) : |
16222 | ;; | |
16223 | esac | |
16224 | ||
4c45662c | 16225 | SIM_MIPS_IGEN_ITABLE_FLAGS= |
abc494c6 MF |
16226 | SIM_MIPS_MULTI_SRC= |
16227 | SIM_MIPS_MULTI_OBJ= | |
16228 | SIM_MIPS_MULTI_IGEN_CONFIGS= | |
16229 | if test "x$SIM_MIPS_GEN" = x"MULTI"; then : | |
16230 | if test -z "${sim_mips_multi_configs}" || test -z "${sim_mips_multi_default}"; then : | |
16231 | as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5 | |
16232 | fi | |
16233 | ||
16234 | as_dir=mips; as_fn_mkdir_p | |
16235 | rm -f mips/multi-include.h mips/multi-run.c | |
16236 | sim_mips_seen_default=no | |
16237 | ||
16238 | cat << __EOF__ > mips/multi-run.c | |
16239 | /* Main entry point for MULTI simulators. | |
0d9d77e5 | 16240 | Copyright (C) 2003-2023 Free Software Foundation, Inc. |
abc494c6 MF |
16241 | |
16242 | This program is free software; you can redistribute it and/or modify | |
16243 | it under the terms of the GNU General Public License as published by | |
16244 | the Free Software Foundation; either version 3 of the License, or | |
16245 | (at your option) any later version. | |
16246 | ||
16247 | This program is distributed in the hope that it will be useful, | |
16248 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16249 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16250 | GNU General Public License for more details. | |
16251 | ||
16252 | You should have received a copy of the GNU General Public License | |
16253 | along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16254 | ||
16255 | -- | |
16256 | ||
16257 | This file was generated by sim/mips/configure. */ | |
16258 | ||
16259 | #include "sim-main.h" | |
16260 | #include "multi-include.h" | |
c217e3d5 MF |
16261 | #include "bfd/elf-bfd.h" |
16262 | #include "bfd/elfxx-mips.h" | |
abc494c6 MF |
16263 | #include "elf/mips.h" |
16264 | ||
16265 | #define SD sd | |
16266 | #define CPU cpu | |
16267 | ||
16268 | void | |
16269 | sim_engine_run (SIM_DESC sd, | |
16270 | int next_cpu_nr, | |
16271 | int nr_cpus, | |
16272 | int signal) /* ignore */ | |
16273 | { | |
16274 | int mach; | |
16275 | ||
16276 | if (STATE_ARCHITECTURE (sd) == NULL) | |
16277 | mach = bfd_mach_${sim_mips_multi_default}; | |
16278 | else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags | |
16279 | & EF_MIPS_ARCH_ASE_MICROMIPS) | |
16280 | mach = bfd_mach_mips_micromips; | |
16281 | else | |
16282 | { | |
16283 | mach = _bfd_elf_mips_mach (elf_elfheader (STATE_PROG_BFD (sd))->e_flags); | |
16284 | if (!mach) | |
16285 | mach = STATE_ARCHITECTURE (SD)->mach; | |
16286 | } | |
16287 | ||
16288 | switch (mach) | |
16289 | { | |
16290 | __EOF__ | |
16291 | ||
16292 | for fc in ${sim_mips_multi_configs}; do | |
16293 | ||
16294 | c=`echo ${fc} | sed 's/:[^:]*$//'` | |
16295 | bfdmachs=`echo ${fc} | sed 's/.*://'` | |
16296 | name=`echo ${c} | sed 's/:.*//'` | |
16297 | machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'` | |
16298 | filter=`echo ${c} | sed 's/.*://'` | |
16299 | ||
4c45662c | 16300 | as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F ${filter} -M ${machine}" |
abc494c6 MF |
16301 | |
16302 | case ${c} in #( | |
16303 | *:*mips16*:*) : | |
16304 | ws="m32 m16" | |
16305 | ||
1f1afa43 MF |
16306 | as_fn_append SIM_MIPS_MULTI_SRC " mips/m16${name}_run.c" |
16307 | as_fn_append SIM_MIPS_MULTI_OBJ " mips/m16${name}_run.o" | |
4c45662c | 16308 | as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16" |
abc494c6 MF |
16309 | ;; #( |
16310 | *:*micromips32*:*) : | |
16311 | ws="micromips_m32 micromips16 micromips32" | |
16312 | ||
1f1afa43 MF |
16313 | as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c" |
16314 | as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o" | |
4c45662c | 16315 | as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32" |
abc494c6 MF |
16316 | ;; #( |
16317 | *:*micromips64*:*) : | |
16318 | ws="micromips_m64 micromips16 micromips64" | |
16319 | ||
1f1afa43 MF |
16320 | as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c" |
16321 | as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o" | |
4c45662c | 16322 | as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32,64" |
abc494c6 MF |
16323 | ;; #( |
16324 | *) : | |
16325 | ws=m32 ;; | |
16326 | esac | |
16327 | ||
16328 | for w in ${ws}; do | |
16329 | for base in engine icache idecode model semantics support; do | |
1f1afa43 MF |
16330 | as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.c" |
16331 | as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.h" | |
16332 | as_fn_append SIM_MIPS_MULTI_OBJ " mips/${w}${name}_${base}.o" | |
abc494c6 MF |
16333 | done |
16334 | as_fn_append SIM_MIPS_MULTI_IGEN_CONFIGS " ${w}${c}" | |
16335 | done | |
16336 | ||
16337 | echo "#include \"${w}${name}_engine.h\"" >> mips/multi-include.h | |
16338 | ||
16339 | for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do | |
16340 | echo " case bfd_mach_${mach}:" >> mips/multi-run.c | |
16341 | if test "x$mach" = x"${sim_mips_multi_default}"; then : | |
16342 | echo " default:" >> mips/multi-run.c | |
16343 | sim_mips_seen_default=yes | |
16344 | ||
16345 | fi | |
16346 | done | |
16347 | echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \ | |
16348 | >> mips/multi-run.c | |
16349 | echo " break;" >> mips/multi-run.c | |
16350 | done | |
16351 | ||
16352 | if test "x$sim_mips_seen_default" = xno; then : | |
16353 | as_fn_error $? "Error in configure.ac: \${sim_mips_multi_configs} doesn't have an entry for \${sim_mips_multi_default}" "$LINENO" 5 | |
16354 | fi | |
16355 | ||
16356 | cat << __EOF__ >> mips/multi-run.c | |
16357 | } | |
16358 | } | |
16359 | __EOF__ | |
16360 | ||
16361 | else | |
1f1afa43 | 16362 | SIM_MIPS_MULTI_SRC=mips/doesnt-exist.c |
07f60ed8 | 16363 | SIM_MIPS_IGEN_ITABLE_FLAGS='$(SIM_MIPS_SINGLE_FLAGS)' |
67c952d1 MF |
16364 | if test "x$SIM_MIPS_GEN" = x"M16"; then : |
16365 | as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS ' $(SIM_MIPS_M16_FLAGS)' | |
16366 | fi | |
abc494c6 MF |
16367 | |
16368 | fi | |
07f60ed8 | 16369 | SIM_MIPS_SINGLE_FLAGS="-F ${sim_mips_single_filter} ${sim_mips_single_machine}" |
111b1cf9 | 16370 | SIM_MIPS_M16_FLAGS="-F ${sim_mips_m16_filter} ${sim_mips_m16_machine}" |
abc494c6 MF |
16371 | |
16372 | ||
16373 | ||
16374 | ||
16375 | ||
16376 | ||
16377 | ||
3a31051b MF |
16378 | if test "$SIM_MIPS_GEN" = "SINGLE"; then |
16379 | SIM_MIPS_GEN_MODE_SINGLE_TRUE= | |
16380 | SIM_MIPS_GEN_MODE_SINGLE_FALSE='#' | |
16381 | else | |
16382 | SIM_MIPS_GEN_MODE_SINGLE_TRUE='#' | |
16383 | SIM_MIPS_GEN_MODE_SINGLE_FALSE= | |
16384 | fi | |
16385 | ||
f6d58d40 MF |
16386 | if test "$SIM_MIPS_GEN" = "M16"; then |
16387 | SIM_MIPS_GEN_MODE_M16_TRUE= | |
16388 | SIM_MIPS_GEN_MODE_M16_FALSE='#' | |
16389 | else | |
16390 | SIM_MIPS_GEN_MODE_M16_TRUE='#' | |
16391 | SIM_MIPS_GEN_MODE_M16_FALSE= | |
16392 | fi | |
16393 | ||
f12c3c63 MF |
16394 | if test "$SIM_MIPS_GEN" = "MULTI"; then |
16395 | SIM_MIPS_GEN_MODE_MULTI_TRUE= | |
16396 | SIM_MIPS_GEN_MODE_MULTI_FALSE='#' | |
16397 | else | |
16398 | SIM_MIPS_GEN_MODE_MULTI_TRUE='#' | |
16399 | SIM_MIPS_GEN_MODE_MULTI_FALSE= | |
16400 | fi | |
16401 | ||
abc494c6 | 16402 | |
1787fcc4 MF |
16403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5 |
16404 | $as_echo_n "checking riscv bitsize... " >&6; } | |
16405 | SIM_RISCV_BITSIZE=64 | |
16406 | case $target in #( | |
16407 | riscv32*) : | |
16408 | SIM_RISCV_BITSIZE=32 ;; #( | |
16409 | *) : | |
16410 | ;; | |
16411 | esac | |
4faede61 MF |
16412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_RISCV_BITSIZE" >&5 |
16413 | $as_echo "$SIM_RISCV_BITSIZE" >&6; } | |
1787fcc4 MF |
16414 | |
16415 | ||
e173c80f MF |
16416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5 |
16417 | $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; } | |
16418 | # Check whether --enable-sim-rx-cycle-accurate was given. | |
16419 | if test "${enable_sim_rx_cycle_accurate+set}" = set; then : | |
16420 | enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in | |
16421 | yes | no) ;; | |
16422 | *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;; | |
16423 | esac | |
16424 | fi | |
16425 | ||
16426 | if test "x${enable_sim_rx_cycle_accurate}" != xno; then | |
16427 | SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE" | |
16428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16429 | $as_echo "yes" >&6; } | |
16430 | else | |
16431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16432 | $as_echo "no" >&6; } | |
16433 | fi | |
16434 | ||
16435 | ||
16436 | ||
21672298 | 16437 | ac_config_files="$ac_config_files arch-subdir.mk Makefile .gdbinit:gdbinit.in" |
81ecdfbb | 16438 | |
b7026657 | 16439 | cat >confcache <<\_ACEOF |
c906108c SS |
16440 | # This file is a shell script that caches the results of configure |
16441 | # tests run on this system so they can be shared between configure | |
b7026657 AC |
16442 | # scripts and configure runs, see configure's option --config-cache. |
16443 | # It is not useful on other systems. If it contains results you don't | |
16444 | # want to keep, you may remove or edit it. | |
c906108c | 16445 | # |
b7026657 AC |
16446 | # config.status only pays attention to the cache file if you give it |
16447 | # the --recheck option to rerun configure. | |
c906108c | 16448 | # |
b7026657 AC |
16449 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
16450 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16451 | # following values. | |
16452 | ||
16453 | _ACEOF | |
16454 | ||
c906108c SS |
16455 | # The following way of writing the cache mishandles newlines in values, |
16456 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 16457 | # So, we kill variables containing newlines. |
c906108c SS |
16458 | # Ultrix sh set writes to stderr and can't be redirected directly, |
16459 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
16460 | ( |
16461 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16462 | eval ac_val=\$$ac_var | |
16463 | case $ac_val in #( | |
16464 | *${as_nl}*) | |
16465 | case $ac_var in #( | |
16466 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
16467 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
16468 | esac | |
16469 | case $ac_var in #( | |
16470 | _ | IFS | as_nl) ;; #( | |
16471 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
16472 | *) { eval $ac_var=; unset $ac_var;} ;; | |
16473 | esac ;; | |
16474 | esac | |
16475 | done | |
16476 | ||
b7026657 | 16477 | (set) 2>&1 | |
81ecdfbb RW |
16478 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
16479 | *${as_nl}ac_space=\ *) | |
16480 | # `set' does not quote correctly, so add quotes: double-quote | |
16481 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b7026657 AC |
16482 | sed -n \ |
16483 | "s/'/'\\\\''/g; | |
16484 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 16485 | ;; #( |
b7026657 AC |
16486 | *) |
16487 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 16488 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 16489 | ;; |
81ecdfbb RW |
16490 | esac | |
16491 | sort | |
16492 | ) | | |
b7026657 | 16493 | sed ' |
81ecdfbb | 16494 | /^ac_cv_env_/b end |
b7026657 | 16495 | t clear |
81ecdfbb | 16496 | :clear |
b7026657 AC |
16497 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
16498 | t end | |
81ecdfbb RW |
16499 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
16500 | :end' >>confcache | |
16501 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16502 | if test -w "$cache_file"; then | |
d0ac1c44 | 16503 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
16504 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
16505 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
16506 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
16507 | cat confcache >"$cache_file" | |
16508 | else | |
16509 | case $cache_file in #( | |
16510 | */* | ?:*) | |
16511 | mv -f confcache "$cache_file"$$ && | |
16512 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
16513 | *) | |
16514 | mv -f confcache "$cache_file" ;; | |
16515 | esac | |
16516 | fi | |
16517 | fi | |
c906108c | 16518 | else |
81ecdfbb RW |
16519 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
16520 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
c906108c SS |
16521 | fi |
16522 | fi | |
16523 | rm -f confcache | |
16524 | ||
c906108c SS |
16525 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
16526 | # Let make expand exec_prefix. | |
16527 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16528 | ||
b15c5d7a | 16529 | DEFS=-DHAVE_CONFIG_H |
b7026657 AC |
16530 | |
16531 | ac_libobjs= | |
16532 | ac_ltlibobjs= | |
d0ac1c44 | 16533 | U= |
b7026657 AC |
16534 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
16535 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
16536 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
16537 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
16538 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
16539 | # will be set to the directory where LIBOBJS objects are built. | |
16540 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
16541 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b7026657 AC |
16542 | done |
16543 | LIBOBJS=$ac_libobjs | |
c906108c | 16544 | |
b7026657 AC |
16545 | LTLIBOBJS=$ac_ltlibobjs |
16546 | ||
16547 | ||
c2783492 | 16548 | |
8c379db2 TT |
16549 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
16550 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
16551 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16552 | fi | |
6bddc3e8 MF |
16553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
16554 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
16555 | if test -n "$am_sleep_pid"; then | |
16556 | # Hide warnings about reused PIDs. | |
16557 | wait $am_sleep_pid 2>/dev/null | |
16558 | fi | |
16559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
16560 | $as_echo "done" >&6; } | |
6bddc3e8 MF |
16561 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
16562 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
16563 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16564 | fi | |
16565 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
16566 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
16567 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16568 | fi | |
c2783492 MF |
16569 | if test -n "$EXEEXT"; then |
16570 | am__EXEEXT_TRUE= | |
16571 | am__EXEEXT_FALSE='#' | |
16572 | else | |
16573 | am__EXEEXT_TRUE='#' | |
16574 | am__EXEEXT_FALSE= | |
6bddc3e8 | 16575 | fi |
b7026657 | 16576 | |
65dcce8f MF |
16577 | if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then |
16578 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined. | |
16579 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16580 | fi | |
16581 | if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then | |
16582 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined. | |
16583 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16584 | fi | |
16585 | if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then | |
16586 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined. | |
16587 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16588 | fi | |
16589 | if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then | |
16590 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined. | |
16591 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16592 | fi | |
16593 | if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then | |
16594 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined. | |
16595 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16596 | fi | |
16597 | if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then | |
16598 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined. | |
16599 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16600 | fi | |
16601 | if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then | |
16602 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined. | |
16603 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16604 | fi | |
16605 | if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then | |
16606 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined. | |
16607 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16608 | fi | |
16609 | if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then | |
16610 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined. | |
16611 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16612 | fi | |
16613 | if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then | |
16614 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined. | |
16615 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16616 | fi | |
16617 | if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then | |
16618 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined. | |
16619 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16620 | fi | |
16621 | if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then | |
16622 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined. | |
16623 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16624 | fi | |
16625 | if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then | |
16626 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined. | |
16627 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16628 | fi | |
16629 | if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then | |
16630 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined. | |
16631 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16632 | fi | |
16633 | if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then | |
16634 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined. | |
16635 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16636 | fi | |
16637 | if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then | |
16638 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined. | |
16639 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16640 | fi | |
16641 | if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then | |
16642 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined. | |
16643 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16644 | fi | |
16645 | if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then | |
16646 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined. | |
16647 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16648 | fi | |
16649 | if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then | |
16650 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined. | |
16651 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16652 | fi | |
16653 | if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then | |
16654 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined. | |
16655 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16656 | fi | |
16657 | if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then | |
16658 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined. | |
16659 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16660 | fi | |
16661 | if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then | |
16662 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined. | |
16663 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16664 | fi | |
16665 | if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then | |
16666 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined. | |
16667 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16668 | fi | |
16669 | if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then | |
16670 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined. | |
16671 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16672 | fi | |
16673 | if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then | |
16674 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined. | |
16675 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16676 | fi | |
16677 | if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then | |
16678 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined. | |
16679 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16680 | fi | |
16681 | if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then | |
16682 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined. | |
16683 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16684 | fi | |
16685 | if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then | |
16686 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined. | |
16687 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16688 | fi | |
16689 | if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then | |
16690 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined. | |
16691 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16692 | fi | |
16693 | if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then | |
16694 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined. | |
16695 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16696 | fi | |
16697 | if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then | |
16698 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined. | |
16699 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16700 | fi | |
c0c25232 MF |
16701 | if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then |
16702 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_examples\" was never defined. | |
16703 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16704 | fi | |
fb2c495f MF |
16705 | if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then |
16706 | as_fn_error $? "conditional \"ENABLE_SIM\" was never defined. | |
16707 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16708 | fi | |
456ef1c1 MF |
16709 | if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then |
16710 | as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined. | |
16711 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16712 | fi | |
3a31051b MF |
16713 | if test -z "${SIM_MIPS_GEN_MODE_SINGLE_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_SINGLE_FALSE}"; then |
16714 | as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_SINGLE\" was never defined. | |
16715 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16716 | fi | |
f6d58d40 MF |
16717 | if test -z "${SIM_MIPS_GEN_MODE_M16_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_M16_FALSE}"; then |
16718 | as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_M16\" was never defined. | |
16719 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16720 | fi | |
f12c3c63 MF |
16721 | if test -z "${SIM_MIPS_GEN_MODE_MULTI_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_MULTI_FALSE}"; then |
16722 | as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_MULTI\" was never defined. | |
16723 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16724 | fi | |
c2783492 | 16725 | |
d0ac1c44 | 16726 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 16727 | ac_write_fail=0 |
b7026657 AC |
16728 | ac_clean_files_save=$ac_clean_files |
16729 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
16730 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
16731 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
16732 | as_write_fail=0 | |
16733 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b7026657 AC |
16734 | #! $SHELL |
16735 | # Generated by $as_me. | |
c906108c | 16736 | # Run this file to recreate the current configuration. |
c906108c | 16737 | # Compiler output produced by configure, useful for debugging |
b7026657 AC |
16738 | # configure, is in config.log if it exists. |
16739 | ||
16740 | debug=false | |
16741 | ac_cs_recheck=false | |
16742 | ac_cs_silent=false | |
b7026657 | 16743 | |
81ecdfbb RW |
16744 | SHELL=\${CONFIG_SHELL-$SHELL} |
16745 | export SHELL | |
16746 | _ASEOF | |
16747 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
16748 | ## -------------------- ## | |
16749 | ## M4sh Initialization. ## | |
16750 | ## -------------------- ## | |
16751 | ||
16752 | # Be more Bourne compatible | |
16753 | DUALCASE=1; export DUALCASE # for MKS sh | |
16754 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b7026657 AC |
16755 | emulate sh |
16756 | NULLCMD=: | |
81ecdfbb | 16757 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b7026657 AC |
16758 | # is contrary to our usage. Disable this feature. |
16759 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
16760 | setopt NO_GLOB_SUBST |
16761 | else | |
16762 | case `(set -o) 2>/dev/null` in #( | |
16763 | *posix*) : | |
16764 | set -o posix ;; #( | |
16765 | *) : | |
16766 | ;; | |
16767 | esac | |
b7026657 | 16768 | fi |
c906108c | 16769 | |
81ecdfbb RW |
16770 | |
16771 | as_nl=' | |
16772 | ' | |
16773 | export as_nl | |
16774 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
16775 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
16776 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
16777 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
16778 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
16779 | # but without wasting forks for bash or zsh. | |
16780 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
16781 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16782 | as_echo='print -r --' | |
16783 | as_echo_n='print -rn --' | |
16784 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16785 | as_echo='printf %s\n' | |
16786 | as_echo_n='printf %s' | |
b7026657 | 16787 | else |
81ecdfbb RW |
16788 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
16789 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
16790 | as_echo_n='/usr/ucb/echo -n' | |
16791 | else | |
16792 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
16793 | as_echo_n_body='eval | |
16794 | arg=$1; | |
16795 | case $arg in #( | |
16796 | *"$as_nl"*) | |
16797 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
16798 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
16799 | esac; | |
16800 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
16801 | ' | |
16802 | export as_echo_n_body | |
16803 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
16804 | fi | |
16805 | export as_echo_body | |
16806 | as_echo='sh -c $as_echo_body as_echo' | |
16807 | fi | |
16808 | ||
16809 | # The user is always right. | |
16810 | if test "${PATH_SEPARATOR+set}" != set; then | |
16811 | PATH_SEPARATOR=: | |
16812 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
16813 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
16814 | PATH_SEPARATOR=';' | |
16815 | } | |
b7026657 AC |
16816 | fi |
16817 | ||
16818 | ||
81ecdfbb RW |
16819 | # IFS |
16820 | # We need space, tab and new line, in precisely that order. Quoting is | |
16821 | # there to prevent editors from complaining about space-tab. | |
16822 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
16823 | # splitting by setting IFS to empty value.) | |
16824 | IFS=" "" $as_nl" | |
16825 | ||
16826 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 16827 | as_myself= |
81ecdfbb RW |
16828 | case $0 in #(( |
16829 | *[\\/]* ) as_myself=$0 ;; | |
16830 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16831 | for as_dir in $PATH | |
16832 | do | |
16833 | IFS=$as_save_IFS | |
16834 | test -z "$as_dir" && as_dir=. | |
16835 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16836 | done | |
16837 | IFS=$as_save_IFS | |
16838 | ||
16839 | ;; | |
16840 | esac | |
16841 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16842 | # in which case we are not to be found in the path. | |
16843 | if test "x$as_myself" = x; then | |
16844 | as_myself=$0 | |
16845 | fi | |
16846 | if test ! -f "$as_myself"; then | |
16847 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
16848 | exit 1 | |
16849 | fi | |
16850 | ||
16851 | # Unset variables that we do not need and which cause bugs (e.g. in | |
16852 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
16853 | # suppresses any "Segmentation fault" message there. '((' could | |
16854 | # trigger a bug in pdksh 5.2.14. | |
16855 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
16856 | do eval test x\${$as_var+set} = xset \ | |
16857 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
16858 | done | |
b7026657 AC |
16859 | PS1='$ ' |
16860 | PS2='> ' | |
16861 | PS4='+ ' | |
16862 | ||
16863 | # NLS nuisances. | |
81ecdfbb RW |
16864 | LC_ALL=C |
16865 | export LC_ALL | |
16866 | LANGUAGE=C | |
16867 | export LANGUAGE | |
16868 | ||
16869 | # CDPATH. | |
16870 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16871 | ||
16872 | ||
d0ac1c44 SM |
16873 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
16874 | # ---------------------------------------- | |
81ecdfbb RW |
16875 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
16876 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 16877 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
16878 | as_fn_error () |
16879 | { | |
d0ac1c44 SM |
16880 | as_status=$1; test $as_status -eq 0 && as_status=1 |
16881 | if test "$4"; then | |
16882 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
16883 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b7026657 | 16884 | fi |
d0ac1c44 | 16885 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
16886 | as_fn_exit $as_status |
16887 | } # as_fn_error | |
c906108c | 16888 | |
81ecdfbb RW |
16889 | |
16890 | # as_fn_set_status STATUS | |
16891 | # ----------------------- | |
16892 | # Set $? to STATUS, without forking. | |
16893 | as_fn_set_status () | |
16894 | { | |
16895 | return $1 | |
16896 | } # as_fn_set_status | |
16897 | ||
16898 | # as_fn_exit STATUS | |
16899 | # ----------------- | |
16900 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
16901 | as_fn_exit () | |
16902 | { | |
16903 | set +e | |
16904 | as_fn_set_status $1 | |
16905 | exit $1 | |
16906 | } # as_fn_exit | |
16907 | ||
16908 | # as_fn_unset VAR | |
16909 | # --------------- | |
16910 | # Portably unset VAR. | |
16911 | as_fn_unset () | |
16912 | { | |
16913 | { eval $1=; unset $1;} | |
16914 | } | |
16915 | as_unset=as_fn_unset | |
16916 | # as_fn_append VAR VALUE | |
16917 | # ---------------------- | |
16918 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
16919 | # advantage of any shell optimizations that allow amortized linear growth over | |
16920 | # repeated appends, instead of the typical quadratic growth present in naive | |
16921 | # implementations. | |
16922 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
16923 | eval 'as_fn_append () | |
16924 | { | |
16925 | eval $1+=\$2 | |
16926 | }' | |
16927 | else | |
16928 | as_fn_append () | |
16929 | { | |
16930 | eval $1=\$$1\$2 | |
16931 | } | |
16932 | fi # as_fn_append | |
16933 | ||
16934 | # as_fn_arith ARG... | |
16935 | # ------------------ | |
16936 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
16937 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
16938 | # must be portable across $(()) and expr. | |
16939 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
16940 | eval 'as_fn_arith () | |
16941 | { | |
16942 | as_val=$(( $* )) | |
16943 | }' | |
16944 | else | |
16945 | as_fn_arith () | |
16946 | { | |
16947 | as_val=`expr "$@" || test $? -eq 1` | |
16948 | } | |
16949 | fi # as_fn_arith | |
16950 | ||
16951 | ||
16952 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
16953 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 AC |
16954 | as_expr=expr |
16955 | else | |
16956 | as_expr=false | |
16957 | fi | |
c906108c | 16958 | |
81ecdfbb | 16959 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 AC |
16960 | as_basename=basename |
16961 | else | |
16962 | as_basename=false | |
16963 | fi | |
c906108c | 16964 | |
81ecdfbb RW |
16965 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
16966 | as_dirname=dirname | |
16967 | else | |
16968 | as_dirname=false | |
16969 | fi | |
c906108c | 16970 | |
81ecdfbb | 16971 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
16972 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
16973 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
16974 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
16975 | $as_echo X/"$0" | | |
16976 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16977 | s//\1/ | |
16978 | q | |
16979 | } | |
16980 | /^X\/\(\/\/\)$/{ | |
16981 | s//\1/ | |
16982 | q | |
16983 | } | |
16984 | /^X\/\(\/\).*/{ | |
16985 | s//\1/ | |
16986 | q | |
16987 | } | |
16988 | s/.*/./; q'` | |
b7026657 | 16989 | |
fdd6fa61 AG |
16990 | # Avoid depending upon Character Ranges. |
16991 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16992 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16993 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16994 | as_cr_digits='0123456789' | |
16995 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16996 | ||
81ecdfbb RW |
16997 | ECHO_C= ECHO_N= ECHO_T= |
16998 | case `echo -n x` in #((((( | |
16999 | -n*) | |
17000 | case `echo 'xy\c'` in | |
17001 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
17002 | xy) ECHO_C='\c';; | |
17003 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
17004 | ECHO_T=' ';; | |
17005 | esac;; | |
17006 | *) | |
17007 | ECHO_N='-n';; | |
b7026657 AC |
17008 | esac |
17009 | ||
81ecdfbb RW |
17010 | rm -f conf$$ conf$$.exe conf$$.file |
17011 | if test -d conf$$.dir; then | |
17012 | rm -f conf$$.dir/conf$$.file | |
b7026657 | 17013 | else |
81ecdfbb RW |
17014 | rm -f conf$$.dir |
17015 | mkdir conf$$.dir 2>/dev/null | |
b7026657 | 17016 | fi |
81ecdfbb RW |
17017 | if (echo >conf$$.file) 2>/dev/null; then |
17018 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
fdd6fa61 | 17019 | as_ln_s='ln -s' |
81ecdfbb RW |
17020 | # ... but there are two gotchas: |
17021 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
17022 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 17023 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 17024 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 17025 | as_ln_s='cp -pR' |
81ecdfbb RW |
17026 | elif ln conf$$.file conf$$ 2>/dev/null; then |
17027 | as_ln_s=ln | |
17028 | else | |
d0ac1c44 | 17029 | as_ln_s='cp -pR' |
fdd6fa61 | 17030 | fi |
b7026657 | 17031 | else |
d0ac1c44 | 17032 | as_ln_s='cp -pR' |
b7026657 | 17033 | fi |
81ecdfbb RW |
17034 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
17035 | rmdir conf$$.dir 2>/dev/null | |
17036 | ||
17037 | ||
17038 | # as_fn_mkdir_p | |
17039 | # ------------- | |
17040 | # Create "$as_dir" as a directory, including parents if necessary. | |
17041 | as_fn_mkdir_p () | |
17042 | { | |
b7026657 | 17043 | |
81ecdfbb RW |
17044 | case $as_dir in #( |
17045 | -*) as_dir=./$as_dir;; | |
17046 | esac | |
17047 | test -d "$as_dir" || eval $as_mkdir_p || { | |
17048 | as_dirs= | |
17049 | while :; do | |
17050 | case $as_dir in #( | |
17051 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
17052 | *) as_qdir=$as_dir;; | |
17053 | esac | |
17054 | as_dirs="'$as_qdir' $as_dirs" | |
17055 | as_dir=`$as_dirname -- "$as_dir" || | |
17056 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17057 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17058 | X"$as_dir" : 'X\(//\)$' \| \ | |
17059 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
17060 | $as_echo X"$as_dir" | | |
17061 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17062 | s//\1/ | |
17063 | q | |
17064 | } | |
17065 | /^X\(\/\/\)[^/].*/{ | |
17066 | s//\1/ | |
17067 | q | |
17068 | } | |
17069 | /^X\(\/\/\)$/{ | |
17070 | s//\1/ | |
17071 | q | |
17072 | } | |
17073 | /^X\(\/\).*/{ | |
17074 | s//\1/ | |
17075 | q | |
17076 | } | |
17077 | s/.*/./; q'` | |
17078 | test -d "$as_dir" && break | |
17079 | done | |
17080 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 17081 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
17082 | |
17083 | ||
17084 | } # as_fn_mkdir_p | |
b7026657 | 17085 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 17086 | as_mkdir_p='mkdir -p "$as_dir"' |
b7026657 AC |
17087 | else |
17088 | test -d ./-p && rmdir ./-p | |
17089 | as_mkdir_p=false | |
17090 | fi | |
17091 | ||
d0ac1c44 SM |
17092 | |
17093 | # as_fn_executable_p FILE | |
17094 | # ----------------------- | |
17095 | # Test if FILE is an executable regular file. | |
17096 | as_fn_executable_p () | |
17097 | { | |
17098 | test -f "$1" && test -x "$1" | |
17099 | } # as_fn_executable_p | |
17100 | as_test_x='test -x' | |
17101 | as_executable_p=as_fn_executable_p | |
b7026657 AC |
17102 | |
17103 | # Sed expression to map a string onto a valid CPP name. | |
17104 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
17105 | ||
17106 | # Sed expression to map a string onto a valid variable name. | |
17107 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
17108 | ||
17109 | ||
b7026657 | 17110 | exec 6>&1 |
81ecdfbb RW |
17111 | ## ----------------------------------- ## |
17112 | ## Main body of $CONFIG_STATUS script. ## | |
17113 | ## ----------------------------------- ## | |
17114 | _ASEOF | |
17115 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
17116 | ||
17117 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17118 | # Save the log message, to keep $0 and so on meaningful, and to | |
b7026657 | 17119 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
17120 | # values after options handling. |
17121 | ac_log=" | |
6bddc3e8 | 17122 | This file was extended by sim $as_me 0, which was |
d0ac1c44 | 17123 | generated by GNU Autoconf 2.69. Invocation command line was |
b7026657 AC |
17124 | |
17125 | CONFIG_FILES = $CONFIG_FILES | |
17126 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17127 | CONFIG_LINKS = $CONFIG_LINKS | |
17128 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17129 | $ $0 $@ | |
17130 | ||
81ecdfbb RW |
17131 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
17132 | " | |
17133 | ||
b7026657 AC |
17134 | _ACEOF |
17135 | ||
81ecdfbb RW |
17136 | case $ac_config_files in *" |
17137 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17138 | esac | |
b7026657 | 17139 | |
b15c5d7a MF |
17140 | case $ac_config_headers in *" |
17141 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
17142 | esac | |
fdd6fa61 | 17143 | |
fdd6fa61 | 17144 | |
81ecdfbb RW |
17145 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17146 | # Files that config.status was made for. | |
17147 | config_files="$ac_config_files" | |
b15c5d7a | 17148 | config_headers="$ac_config_headers" |
6bddc3e8 | 17149 | config_commands="$ac_config_commands" |
b7026657 | 17150 | |
81ecdfbb | 17151 | _ACEOF |
fdd6fa61 | 17152 | |
81ecdfbb | 17153 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 | 17154 | ac_cs_usage="\ |
81ecdfbb RW |
17155 | \`$as_me' instantiates files and other configuration actions |
17156 | from templates according to the current configuration. Unless the files | |
17157 | and actions are specified as TAGs, all are instantiated by default. | |
b7026657 | 17158 | |
81ecdfbb | 17159 | Usage: $0 [OPTION]... [TAG]... |
b7026657 AC |
17160 | |
17161 | -h, --help print this help, then exit | |
81ecdfbb | 17162 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 17163 | --config print configuration, then exit |
81ecdfbb RW |
17164 | -q, --quiet, --silent |
17165 | do not print progress messages | |
b7026657 AC |
17166 | -d, --debug don't remove temporary files |
17167 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
17168 | --file=FILE[:TEMPLATE] |
17169 | instantiate the configuration file FILE | |
b15c5d7a MF |
17170 | --header=FILE[:TEMPLATE] |
17171 | instantiate the configuration header FILE | |
b7026657 AC |
17172 | |
17173 | Configuration files: | |
17174 | $config_files | |
17175 | ||
b15c5d7a MF |
17176 | Configuration headers: |
17177 | $config_headers | |
17178 | ||
6bddc3e8 MF |
17179 | Configuration commands: |
17180 | $config_commands | |
17181 | ||
17182 | Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. | |
17183 | sim home page: <https://sourceware.org/gdb/wiki/Sim/>." | |
fdd6fa61 | 17184 | |
81ecdfbb RW |
17185 | _ACEOF |
17186 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 17187 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b7026657 | 17188 | ac_cs_version="\\ |
6bddc3e8 | 17189 | sim config.status 0 |
d0ac1c44 SM |
17190 | configured by $0, generated by GNU Autoconf 2.69, |
17191 | with options \\"\$ac_cs_config\\" | |
b7026657 | 17192 | |
d0ac1c44 | 17193 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
17194 | This config.status script is free software; the Free Software Foundation |
17195 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
17196 | |
17197 | ac_pwd='$ac_pwd' | |
17198 | srcdir='$srcdir' | |
17199 | INSTALL='$INSTALL' | |
6bddc3e8 MF |
17200 | MKDIR_P='$MKDIR_P' |
17201 | AWK='$AWK' | |
81ecdfbb | 17202 | test -n "\$AWK" || AWK=awk |
b7026657 AC |
17203 | _ACEOF |
17204 | ||
81ecdfbb RW |
17205 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17206 | # The default lists apply if the user does not specify any file. | |
b7026657 AC |
17207 | ac_need_defaults=: |
17208 | while test $# != 0 | |
17209 | do | |
17210 | case $1 in | |
d0ac1c44 | 17211 | --*=?*) |
81ecdfbb RW |
17212 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
17213 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b7026657 AC |
17214 | ac_shift=: |
17215 | ;; | |
d0ac1c44 SM |
17216 | --*=) |
17217 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
17218 | ac_optarg= | |
17219 | ac_shift=: | |
17220 | ;; | |
81ecdfbb | 17221 | *) |
b7026657 AC |
17222 | ac_option=$1 |
17223 | ac_optarg=$2 | |
17224 | ac_shift=shift | |
17225 | ;; | |
b7026657 AC |
17226 | esac |
17227 | ||
17228 | case $ac_option in | |
17229 | # Handling of the options. | |
b7026657 AC |
17230 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
17231 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
17232 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
17233 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
17234 | --config | --confi | --conf | --con | --co | --c ) |
17235 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 17236 | --debug | --debu | --deb | --de | --d | -d ) |
b7026657 AC |
17237 | debug=: ;; |
17238 | --file | --fil | --fi | --f ) | |
17239 | $ac_shift | |
81ecdfbb RW |
17240 | case $ac_optarg in |
17241 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 17242 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
17243 | esac |
17244 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
fdd6fa61 | 17245 | ac_need_defaults=false;; |
b15c5d7a MF |
17246 | --header | --heade | --head | --hea ) |
17247 | $ac_shift | |
17248 | case $ac_optarg in | |
17249 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17250 | esac | |
17251 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
17252 | ac_need_defaults=false;; | |
17253 | --he | --h) | |
17254 | # Conflict between --help and --header | |
17255 | as_fn_error $? "ambiguous option: \`$1' | |
17256 | Try \`$0 --help' for more information.";; | |
17257 | --help | --hel | -h ) | |
81ecdfbb | 17258 | $as_echo "$ac_cs_usage"; exit ;; |
b7026657 AC |
17259 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
17260 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17261 | ac_cs_silent=: ;; | |
17262 | ||
17263 | # This is an error. | |
d0ac1c44 | 17264 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 17265 | Try \`$0 --help' for more information." ;; |
b7026657 | 17266 | |
81ecdfbb RW |
17267 | *) as_fn_append ac_config_targets " $1" |
17268 | ac_need_defaults=false ;; | |
b7026657 AC |
17269 | |
17270 | esac | |
17271 | shift | |
c906108c | 17272 | done |
b7026657 AC |
17273 | |
17274 | ac_configure_extra_args= | |
17275 | ||
17276 | if $ac_cs_silent; then | |
17277 | exec 6>/dev/null | |
17278 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
c906108c | 17279 | fi |
c906108c | 17280 | |
b7026657 | 17281 | _ACEOF |
81ecdfbb | 17282 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b7026657 | 17283 | if \$ac_cs_recheck; then |
d0ac1c44 | 17284 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
17285 | shift |
17286 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17287 | CONFIG_SHELL='$SHELL' | |
17288 | export CONFIG_SHELL | |
17289 | exec "\$@" | |
b7026657 | 17290 | fi |
c906108c | 17291 | |
b7026657 | 17292 | _ACEOF |
81ecdfbb RW |
17293 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17294 | exec 5>>config.log | |
17295 | { | |
17296 | echo | |
17297 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17298 | ## Running $as_me. ## | |
17299 | _ASBOX | |
17300 | $as_echo "$ac_log" | |
17301 | } >&5 | |
b7026657 | 17302 | |
81ecdfbb RW |
17303 | _ACEOF |
17304 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6bddc3e8 MF |
17305 | # |
17306 | # INIT-COMMANDS | |
17307 | # | |
b5689863 MF |
17308 | |
17309 | ||
17310 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
17311 | # if CDPATH is set. | |
17312 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17313 | ||
17314 | sed_quote_subst='$sed_quote_subst' | |
17315 | double_quote_subst='$double_quote_subst' | |
17316 | delay_variable_subst='$delay_variable_subst' | |
17317 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
17318 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
17319 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
17320 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
17321 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
17322 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
17323 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
17324 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
17325 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
17326 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
17327 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
17328 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
17329 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
17330 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
17331 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
17332 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
17333 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
17334 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
17335 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
17336 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
17337 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
17338 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
17339 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
17340 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
17341 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
17342 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
17343 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
17344 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
17345 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
17346 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
17347 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
17348 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
17349 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
17350 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
17351 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
17352 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
17353 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
17354 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17355 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17356 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
17357 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
17358 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
17359 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
17360 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
17361 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
17362 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
17363 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
17364 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
17365 | 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"`' | |
17366 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
17367 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
17368 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
17369 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
17370 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
17371 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
17372 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
17373 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
17374 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
17375 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
17376 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
17377 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
17378 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
17379 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
17380 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
17381 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17382 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
17383 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
17384 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17385 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17386 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
17387 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
17388 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17389 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
17390 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17391 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
17392 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17393 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
17394 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17395 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17396 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17397 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
17398 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
17399 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
17400 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
17401 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
17402 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
17403 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
17404 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
17405 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
17406 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
17407 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
17408 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
17409 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
17410 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
17411 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
17412 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
17413 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
17414 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
17415 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
17416 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
17417 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
17418 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
17419 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
17420 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
17421 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
17422 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
17423 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
17424 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17425 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17426 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
17427 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
17428 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
17429 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
17430 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
17431 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
17432 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
17433 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
17434 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
17435 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
17436 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
17437 | ||
17438 | LTCC='$LTCC' | |
17439 | LTCFLAGS='$LTCFLAGS' | |
17440 | compiler='$compiler_DEFAULT' | |
17441 | ||
17442 | # A function that is used when there is no print builtin or printf. | |
17443 | func_fallback_echo () | |
17444 | { | |
17445 | eval 'cat <<_LTECHO_EOF | |
17446 | \$1 | |
17447 | _LTECHO_EOF' | |
17448 | } | |
17449 | ||
17450 | # Quote evaled strings. | |
17451 | for var in SHELL \ | |
17452 | ECHO \ | |
17453 | SED \ | |
17454 | GREP \ | |
17455 | EGREP \ | |
17456 | FGREP \ | |
17457 | LD \ | |
17458 | NM \ | |
17459 | LN_S \ | |
17460 | lt_SP2NL \ | |
17461 | lt_NL2SP \ | |
17462 | reload_flag \ | |
17463 | OBJDUMP \ | |
17464 | deplibs_check_method \ | |
17465 | file_magic_cmd \ | |
17466 | AR \ | |
17467 | AR_FLAGS \ | |
17468 | STRIP \ | |
17469 | RANLIB \ | |
17470 | CC \ | |
17471 | CFLAGS \ | |
17472 | compiler \ | |
17473 | lt_cv_sys_global_symbol_pipe \ | |
17474 | lt_cv_sys_global_symbol_to_cdecl \ | |
17475 | lt_cv_sys_global_symbol_to_c_name_address \ | |
17476 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
17477 | lt_prog_compiler_no_builtin_flag \ | |
17478 | lt_prog_compiler_wl \ | |
17479 | lt_prog_compiler_pic \ | |
17480 | lt_prog_compiler_static \ | |
17481 | lt_cv_prog_compiler_c_o \ | |
17482 | need_locks \ | |
17483 | DSYMUTIL \ | |
17484 | NMEDIT \ | |
17485 | LIPO \ | |
17486 | OTOOL \ | |
17487 | OTOOL64 \ | |
17488 | shrext_cmds \ | |
17489 | export_dynamic_flag_spec \ | |
17490 | whole_archive_flag_spec \ | |
17491 | compiler_needs_object \ | |
17492 | with_gnu_ld \ | |
17493 | allow_undefined_flag \ | |
17494 | no_undefined_flag \ | |
17495 | hardcode_libdir_flag_spec \ | |
17496 | hardcode_libdir_flag_spec_ld \ | |
17497 | hardcode_libdir_separator \ | |
17498 | fix_srcfile_path \ | |
17499 | exclude_expsyms \ | |
17500 | include_expsyms \ | |
17501 | file_list_spec \ | |
17502 | variables_saved_for_relink \ | |
17503 | libname_spec \ | |
17504 | library_names_spec \ | |
17505 | soname_spec \ | |
17506 | install_override_mode \ | |
17507 | finish_eval \ | |
17508 | old_striplib \ | |
17509 | striplib; do | |
17510 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
17511 | *[\\\\\\\`\\"\\\$]*) | |
17512 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
17513 | ;; | |
17514 | *) | |
17515 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17516 | ;; | |
17517 | esac | |
17518 | done | |
17519 | ||
17520 | # Double-quote double-evaled strings. | |
17521 | for var in reload_cmds \ | |
17522 | old_postinstall_cmds \ | |
17523 | old_postuninstall_cmds \ | |
17524 | old_archive_cmds \ | |
17525 | extract_expsyms_cmds \ | |
17526 | old_archive_from_new_cmds \ | |
17527 | old_archive_from_expsyms_cmds \ | |
17528 | archive_cmds \ | |
17529 | archive_expsym_cmds \ | |
17530 | module_cmds \ | |
17531 | module_expsym_cmds \ | |
17532 | export_symbols_cmds \ | |
17533 | prelink_cmds \ | |
17534 | postinstall_cmds \ | |
17535 | postuninstall_cmds \ | |
17536 | finish_cmds \ | |
17537 | sys_lib_search_path_spec \ | |
17538 | sys_lib_dlsearch_path_spec; do | |
17539 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
17540 | *[\\\\\\\`\\"\\\$]*) | |
17541 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
17542 | ;; | |
17543 | *) | |
17544 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17545 | ;; | |
17546 | esac | |
17547 | done | |
17548 | ||
17549 | ac_aux_dir='$ac_aux_dir' | |
17550 | xsi_shell='$xsi_shell' | |
17551 | lt_shell_append='$lt_shell_append' | |
17552 | ||
17553 | # See if we are running on zsh, and set the options which allow our | |
17554 | # commands through without removal of \ escapes INIT. | |
17555 | if test -n "\${ZSH_VERSION+set}" ; then | |
17556 | setopt NO_GLOB_SUBST | |
17557 | fi | |
17558 | ||
17559 | ||
17560 | PACKAGE='$PACKAGE' | |
17561 | VERSION='$VERSION' | |
17562 | TIMESTAMP='$TIMESTAMP' | |
17563 | RM='$RM' | |
17564 | ofile='$ofile' | |
17565 | ||
17566 | ||
17567 | ||
6bddc3e8 MF |
17568 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
17569 | ||
81ecdfbb | 17570 | _ACEOF |
b7026657 | 17571 | |
81ecdfbb | 17572 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
df1756f4 | 17573 | |
81ecdfbb | 17574 | # Handling of arguments. |
b7026657 AC |
17575 | for ac_config_target in $ac_config_targets |
17576 | do | |
81ecdfbb | 17577 | case $ac_config_target in |
b15c5d7a | 17578 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
b5689863 | 17579 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
6bddc3e8 | 17580 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
23912acd | 17581 | "aarch64/.gdbinit") CONFIG_FILES="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17582 | "arm/.gdbinit") CONFIG_FILES="$CONFIG_FILES arm/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17583 | "avr/.gdbinit") CONFIG_FILES="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17584 | "bfin/.gdbinit") CONFIG_FILES="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17585 | "bpf/.gdbinit") CONFIG_FILES="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17586 | "cr16/.gdbinit") CONFIG_FILES="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17587 | "cris/.gdbinit") CONFIG_FILES="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17588 | "d10v/.gdbinit") CONFIG_FILES="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17589 | "frv/.gdbinit") CONFIG_FILES="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17590 | "ft32/.gdbinit") CONFIG_FILES="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17591 | "h8300/.gdbinit") CONFIG_FILES="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17592 | "iq2000/.gdbinit") CONFIG_FILES="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17593 | "lm32/.gdbinit") CONFIG_FILES="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17594 | "m32c/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17595 | "m32r/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17596 | "m68hc11/.gdbinit") CONFIG_FILES="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17597 | "mcore/.gdbinit") CONFIG_FILES="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17598 | "microblaze/.gdbinit") CONFIG_FILES="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17599 | "mips/.gdbinit") CONFIG_FILES="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17600 | "mn10300/.gdbinit") CONFIG_FILES="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17601 | "moxie/.gdbinit") CONFIG_FILES="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17602 | "msp430/.gdbinit") CONFIG_FILES="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17603 | "or1k/.gdbinit") CONFIG_FILES="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17604 | "ppc/.gdbinit") CONFIG_FILES="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17605 | "pru/.gdbinit") CONFIG_FILES="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17606 | "riscv/.gdbinit") CONFIG_FILES="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17607 | "rl78/.gdbinit") CONFIG_FILES="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17608 | "rx/.gdbinit") CONFIG_FILES="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17609 | "sh/.gdbinit") CONFIG_FILES="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17610 | "erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17611 | "v850/.gdbinit") CONFIG_FILES="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;; |
23912acd | 17612 | "example-synacor/.gdbinit") CONFIG_FILES="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;; |
3f8414df | 17613 | "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;; |
81ecdfbb | 17614 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
21672298 | 17615 | ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; |
81ecdfbb | 17616 | |
d0ac1c44 | 17617 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c906108c | 17618 | esac |
b7026657 | 17619 | done |
c906108c | 17620 | |
81ecdfbb | 17621 | |
b7026657 AC |
17622 | # If the user did not use the arguments to specify the items to instantiate, |
17623 | # then the envvar interface is used. Set only those that are not. | |
17624 | # We use the long form for the default assignment because of an extremely | |
17625 | # bizarre bug on SunOS 4.1.3. | |
17626 | if $ac_need_defaults; then | |
17627 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
b15c5d7a | 17628 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
6bddc3e8 | 17629 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
b7026657 | 17630 | fi |
c906108c | 17631 | |
b7026657 | 17632 | # Have a temporary directory for convenience. Make it in the build tree |
81ecdfbb | 17633 | # simply because there is no reason against having it here, and in addition, |
b7026657 | 17634 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
17635 | # Hook for its removal unless debugging. |
17636 | # Note that there is a small window in which the directory will not be cleaned: | |
17637 | # after its creation but before its name has been assigned to `$tmp'. | |
b7026657 AC |
17638 | $debug || |
17639 | { | |
d0ac1c44 | 17640 | tmp= ac_tmp= |
81ecdfbb | 17641 | trap 'exit_status=$? |
d0ac1c44 SM |
17642 | : "${ac_tmp:=$tmp}" |
17643 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
17644 | ' 0 |
17645 | trap 'as_fn_exit 1' 1 2 13 15 | |
b7026657 | 17646 | } |
b7026657 AC |
17647 | # Create a (secure) tmp directory for tmp files. |
17648 | ||
17649 | { | |
81ecdfbb | 17650 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 17651 | test -d "$tmp" |
b7026657 AC |
17652 | } || |
17653 | { | |
81ecdfbb RW |
17654 | tmp=./conf$$-$RANDOM |
17655 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
17656 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
17657 | ac_tmp=$tmp | |
81ecdfbb RW |
17658 | |
17659 | # Set up the scripts for CONFIG_FILES section. | |
17660 | # No need to generate them if there are no CONFIG_FILES. | |
17661 | # This happens for instance with `./config.status config.h'. | |
17662 | if test -n "$CONFIG_FILES"; then | |
17663 | ||
17664 | ||
17665 | ac_cr=`echo X | tr X '\015'` | |
17666 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
17667 | # But we know of no other shell where ac_cr would be empty at this | |
17668 | # point, so we can use a bashism as a fallback. | |
17669 | if test "x$ac_cr" = x; then | |
17670 | eval ac_cr=\$\'\\r\' | |
17671 | fi | |
17672 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
17673 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 17674 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
17675 | else |
17676 | ac_cs_awk_cr=$ac_cr | |
17677 | fi | |
17678 | ||
d0ac1c44 | 17679 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
17680 | _ACEOF |
17681 | ||
17682 | ||
17683 | { | |
17684 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
17685 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
17686 | echo "_ACEOF" | |
17687 | } >conf$$subs.sh || | |
d0ac1c44 SM |
17688 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
17689 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
17690 | ac_delim='%!_!# ' |
17691 | for ac_last_try in false false false false false :; do | |
17692 | . ./conf$$subs.sh || | |
d0ac1c44 | 17693 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
17694 | |
17695 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
17696 | if test $ac_delim_n = $ac_delim_num; then | |
17697 | break | |
17698 | elif $ac_last_try; then | |
d0ac1c44 | 17699 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
17700 | else |
17701 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17702 | fi | |
17703 | done | |
17704 | rm -f conf$$subs.sh | |
17705 | ||
17706 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 17707 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
17708 | _ACEOF |
17709 | sed -n ' | |
17710 | h | |
17711 | s/^/S["/; s/!.*/"]=/ | |
17712 | p | |
17713 | g | |
17714 | s/^[^!]*!// | |
17715 | :repl | |
17716 | t repl | |
17717 | s/'"$ac_delim"'$// | |
17718 | t delim | |
17719 | :nl | |
17720 | h | |
d0ac1c44 | 17721 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
17722 | t more1 |
17723 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
17724 | p | |
17725 | n | |
17726 | b repl | |
17727 | :more1 | |
17728 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17729 | p | |
17730 | g | |
17731 | s/.\{148\}// | |
17732 | t nl | |
17733 | :delim | |
17734 | h | |
d0ac1c44 | 17735 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
17736 | t more2 |
17737 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
17738 | p | |
17739 | b | |
17740 | :more2 | |
17741 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17742 | p | |
17743 | g | |
17744 | s/.\{148\}// | |
17745 | t delim | |
17746 | ' <conf$$subs.awk | sed ' | |
17747 | /^[^""]/{ | |
17748 | N | |
17749 | s/\n// | |
17750 | } | |
17751 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
17752 | rm -f conf$$subs.awk | |
17753 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17754 | _ACAWK | |
d0ac1c44 | 17755 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
17756 | for (key in S) S_is_set[key] = 1 |
17757 | FS = "\a" | |
17758 | ||
17759 | } | |
b7026657 | 17760 | { |
81ecdfbb RW |
17761 | line = $ 0 |
17762 | nfields = split(line, field, "@") | |
17763 | substed = 0 | |
17764 | len = length(field[1]) | |
17765 | for (i = 2; i < nfields; i++) { | |
17766 | key = field[i] | |
17767 | keylen = length(key) | |
17768 | if (S_is_set[key]) { | |
17769 | value = S[key] | |
17770 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
17771 | len += length(value) + length(field[++i]) | |
17772 | substed = 1 | |
17773 | } else | |
17774 | len += 1 + keylen | |
17775 | } | |
17776 | ||
17777 | print line | |
b7026657 AC |
17778 | } |
17779 | ||
81ecdfbb RW |
17780 | _ACAWK |
17781 | _ACEOF | |
17782 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17783 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
17784 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
17785 | else | |
17786 | cat | |
d0ac1c44 SM |
17787 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
17788 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
fdd6fa61 AG |
17789 | _ACEOF |
17790 | ||
d0ac1c44 SM |
17791 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
17792 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
17793 | # trailing colons and then remove the whole line if VPATH becomes empty |
17794 | # (actually we leave an empty line to preserve line numbers). | |
17795 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
17796 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
17797 | h | |
17798 | s/// | |
17799 | s/^/:/ | |
17800 | s/[ ]*$/:/ | |
17801 | s/:\$(srcdir):/:/g | |
17802 | s/:\${srcdir}:/:/g | |
17803 | s/:@srcdir@:/:/g | |
17804 | s/^:*// | |
81ecdfbb | 17805 | s/:*$// |
d0ac1c44 SM |
17806 | x |
17807 | s/\(=[ ]*\).*/\1/ | |
17808 | G | |
17809 | s/\n// | |
81ecdfbb RW |
17810 | s/^[^=]*=[ ]*$// |
17811 | }' | |
17812 | fi | |
fdd6fa61 | 17813 | |
81ecdfbb RW |
17814 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17815 | fi # test -n "$CONFIG_FILES" | |
b7026657 | 17816 | |
b15c5d7a MF |
17817 | # Set up the scripts for CONFIG_HEADERS section. |
17818 | # No need to generate them if there are no CONFIG_HEADERS. | |
17819 | # This happens for instance with `./config.status Makefile'. | |
17820 | if test -n "$CONFIG_HEADERS"; then | |
17821 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
17822 | BEGIN { | |
17823 | _ACEOF | |
17824 | ||
17825 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
17826 | # here-document in config.status, that substitutes the proper values into | |
17827 | # config.h.in to produce config.h. | |
17828 | ||
17829 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
17830 | # handling of long lines. | |
17831 | ac_delim='%!_!# ' | |
17832 | for ac_last_try in false false :; do | |
17833 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
17834 | if test -z "$ac_tt"; then | |
17835 | break | |
17836 | elif $ac_last_try; then | |
17837 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
17838 | else | |
17839 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17840 | fi | |
17841 | done | |
17842 | ||
17843 | # For the awk script, D is an array of macro values keyed by name, | |
17844 | # likewise P contains macro parameters if any. Preserve backslash | |
17845 | # newline sequences. | |
17846 | ||
17847 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
17848 | sed -n ' | |
17849 | s/.\{148\}/&'"$ac_delim"'/g | |
17850 | t rset | |
17851 | :rset | |
17852 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
17853 | t def | |
17854 | d | |
17855 | :def | |
17856 | s/\\$// | |
17857 | t bsnl | |
17858 | s/["\\]/\\&/g | |
17859 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17860 | D["\1"]=" \3"/p | |
17861 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
17862 | d | |
17863 | :bsnl | |
17864 | s/["\\]/\\&/g | |
17865 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17866 | D["\1"]=" \3\\\\\\n"\\/p | |
17867 | t cont | |
17868 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
17869 | t cont | |
17870 | d | |
17871 | :cont | |
17872 | n | |
17873 | s/.\{148\}/&'"$ac_delim"'/g | |
17874 | t clear | |
17875 | :clear | |
17876 | s/\\$// | |
17877 | t bsnlc | |
17878 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
17879 | d | |
17880 | :bsnlc | |
17881 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
17882 | b cont | |
17883 | ' <confdefs.h | sed ' | |
17884 | s/'"$ac_delim"'/"\\\ | |
17885 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
17886 | ||
17887 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17888 | for (key in D) D_is_set[key] = 1 | |
17889 | FS = "\a" | |
17890 | } | |
17891 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
17892 | line = \$ 0 | |
17893 | split(line, arg, " ") | |
17894 | if (arg[1] == "#") { | |
17895 | defundef = arg[2] | |
17896 | mac1 = arg[3] | |
17897 | } else { | |
17898 | defundef = substr(arg[1], 2) | |
17899 | mac1 = arg[2] | |
17900 | } | |
17901 | split(mac1, mac2, "(") #) | |
17902 | macro = mac2[1] | |
17903 | prefix = substr(line, 1, index(line, defundef) - 1) | |
17904 | if (D_is_set[macro]) { | |
17905 | # Preserve the white space surrounding the "#". | |
17906 | print prefix "define", macro P[macro] D[macro] | |
17907 | next | |
17908 | } else { | |
17909 | # Replace #undef with comments. This is necessary, for example, | |
17910 | # in the case of _POSIX_SOURCE, which is predefined and required | |
17911 | # on some systems where configure will not decide to define it. | |
17912 | if (defundef == "undef") { | |
17913 | print "/*", prefix defundef, macro, "*/" | |
17914 | next | |
17915 | } | |
17916 | } | |
17917 | } | |
17918 | { print } | |
17919 | _ACAWK | |
17920 | _ACEOF | |
17921 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17922 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
17923 | fi # test -n "$CONFIG_HEADERS" | |
b7026657 | 17924 | |
b15c5d7a MF |
17925 | |
17926 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
81ecdfbb RW |
17927 | shift |
17928 | for ac_tag | |
17929 | do | |
17930 | case $ac_tag in | |
17931 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
17932 | esac | |
17933 | case $ac_mode$ac_tag in | |
17934 | :[FHL]*:*);; | |
d0ac1c44 | 17935 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
17936 | :[FH]-) ac_tag=-:-;; |
17937 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17938 | esac | |
17939 | ac_save_IFS=$IFS | |
17940 | IFS=: | |
17941 | set x $ac_tag | |
17942 | IFS=$ac_save_IFS | |
17943 | shift | |
17944 | ac_file=$1 | |
17945 | shift | |
b7026657 | 17946 | |
81ecdfbb RW |
17947 | case $ac_mode in |
17948 | :L) ac_source=$1;; | |
17949 | :[FH]) | |
17950 | ac_file_inputs= | |
17951 | for ac_f | |
17952 | do | |
17953 | case $ac_f in | |
d0ac1c44 | 17954 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
17955 | *) # Look for the file first in the build tree, then in the source tree |
17956 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
17957 | # because $ac_f cannot contain `:'. | |
17958 | test -f "$ac_f" || | |
17959 | case $ac_f in | |
17960 | [\\/$]*) false;; | |
17961 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17962 | esac || | |
d0ac1c44 | 17963 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
17964 | esac |
17965 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
17966 | as_fn_append ac_file_inputs " '$ac_f'" | |
17967 | done | |
17968 | ||
17969 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17970 | # use $as_me), people would be surprised to read: | |
17971 | # /* config.h. Generated by config.status. */ | |
17972 | configure_input='Generated from '` | |
17973 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
17974 | `' by configure.' | |
17975 | if test x"$ac_file" != x-; then | |
17976 | configure_input="$ac_file. $configure_input" | |
17977 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
17978 | $as_echo "$as_me: creating $ac_file" >&6;} | |
fdd6fa61 | 17979 | fi |
81ecdfbb RW |
17980 | # Neutralize special characters interpreted by sed in replacement strings. |
17981 | case $configure_input in #( | |
17982 | *\&* | *\|* | *\\* ) | |
17983 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
17984 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
17985 | *) ac_sed_conf_input=$configure_input;; | |
17986 | esac | |
df1756f4 | 17987 | |
81ecdfbb | 17988 | case $ac_tag in |
d0ac1c44 SM |
17989 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
17990 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
17991 | esac |
17992 | ;; | |
df1756f4 TG |
17993 | esac |
17994 | ||
81ecdfbb | 17995 | ac_dir=`$as_dirname -- "$ac_file" || |
b7026657 AC |
17996 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
17997 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17998 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
17999 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
18000 | $as_echo X"$ac_file" | | |
18001 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18002 | s//\1/ | |
18003 | q | |
18004 | } | |
18005 | /^X\(\/\/\)[^/].*/{ | |
18006 | s//\1/ | |
18007 | q | |
18008 | } | |
18009 | /^X\(\/\/\)$/{ | |
18010 | s//\1/ | |
18011 | q | |
18012 | } | |
18013 | /^X\(\/\).*/{ | |
18014 | s//\1/ | |
18015 | q | |
18016 | } | |
18017 | s/.*/./; q'` | |
18018 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b7026657 AC |
18019 | ac_builddir=. |
18020 | ||
81ecdfbb RW |
18021 | case "$ac_dir" in |
18022 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18023 | *) | |
18024 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
18025 | # A ".." for each directory in $ac_dir_suffix. | |
18026 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
18027 | case $ac_top_builddir_sub in | |
18028 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18029 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
18030 | esac ;; | |
18031 | esac | |
18032 | ac_abs_top_builddir=$ac_pwd | |
18033 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
18034 | # for backward compatibility: | |
18035 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
18036 | |
18037 | case $srcdir in | |
81ecdfbb | 18038 | .) # We are building in place. |
b7026657 | 18039 | ac_srcdir=. |
81ecdfbb RW |
18040 | ac_top_srcdir=$ac_top_builddir_sub |
18041 | ac_abs_top_srcdir=$ac_pwd ;; | |
18042 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 18043 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
18044 | ac_top_srcdir=$srcdir |
18045 | ac_abs_top_srcdir=$srcdir ;; | |
18046 | *) # Relative name. | |
18047 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
18048 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
18049 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 18050 | esac |
81ecdfbb | 18051 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b7026657 | 18052 | |
b7026657 | 18053 | |
81ecdfbb RW |
18054 | case $ac_mode in |
18055 | :F) | |
18056 | # | |
18057 | # CONFIG_FILE | |
18058 | # | |
c906108c | 18059 | |
b7026657 AC |
18060 | case $INSTALL in |
18061 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 18062 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
c906108c | 18063 | esac |
6bddc3e8 MF |
18064 | ac_MKDIR_P=$MKDIR_P |
18065 | case $MKDIR_P in | |
18066 | [\\/$]* | ?:[\\/]* ) ;; | |
18067 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
18068 | esac | |
81ecdfbb | 18069 | _ACEOF |
c906108c | 18070 | |
81ecdfbb RW |
18071 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18072 | # If the template does not know about datarootdir, expand it. | |
18073 | # FIXME: This hack should be removed a few years after 2.60. | |
18074 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
18075 | ac_sed_dataroot=' | |
18076 | /datarootdir/ { | |
18077 | p | |
18078 | q | |
18079 | } | |
18080 | /@datadir@/p | |
18081 | /@docdir@/p | |
18082 | /@infodir@/p | |
18083 | /@localedir@/p | |
18084 | /@mandir@/p' | |
18085 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
18086 | *datarootdir*) ac_datarootdir_seen=yes;; | |
18087 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
18088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
18089 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
18090 | _ACEOF | |
18091 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18092 | ac_datarootdir_hack=' | |
18093 | s&@datadir@&$datadir&g | |
18094 | s&@docdir@&$docdir&g | |
18095 | s&@infodir@&$infodir&g | |
18096 | s&@localedir@&$localedir&g | |
18097 | s&@mandir@&$mandir&g | |
18098 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
18099 | esac | |
b7026657 | 18100 | _ACEOF |
81ecdfbb RW |
18101 | |
18102 | # Neutralize VPATH when `$srcdir' = `.'. | |
18103 | # Shell code in configure.ac might set extrasub. | |
18104 | # FIXME: do we really want to maintain this feature? | |
18105 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18106 | ac_sed_extra="$ac_vpsub | |
b7026657 AC |
18107 | $extrasub |
18108 | _ACEOF | |
81ecdfbb | 18109 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 AC |
18110 | :t |
18111 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
18112 | s|@configure_input@|$ac_sed_conf_input|;t t |
18113 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
18114 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
18115 | s&@srcdir@&$ac_srcdir&;t t | |
18116 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
18117 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
18118 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
18119 | s&@builddir@&$ac_builddir&;t t | |
18120 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
18121 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
18122 | s&@INSTALL@&$ac_INSTALL&;t t | |
6bddc3e8 | 18123 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
81ecdfbb RW |
18124 | $ac_datarootdir_hack |
18125 | " | |
d0ac1c44 SM |
18126 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
18127 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
18128 | |
18129 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
18130 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
18131 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
18132 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 18133 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 18134 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 18135 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 18136 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 18137 | |
d0ac1c44 | 18138 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 18139 | case $ac_file in |
d0ac1c44 SM |
18140 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
18141 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 18142 | esac \ |
d0ac1c44 | 18143 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 18144 | ;; |
b15c5d7a MF |
18145 | :H) |
18146 | # | |
18147 | # CONFIG_HEADER | |
18148 | # | |
18149 | if test x"$ac_file" != x-; then | |
18150 | { | |
18151 | $as_echo "/* $configure_input */" \ | |
18152 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
18153 | } >"$ac_tmp/config.h" \ | |
18154 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
18155 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
18156 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
18157 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
18158 | else | |
18159 | rm -f "$ac_file" | |
18160 | mv "$ac_tmp/config.h" "$ac_file" \ | |
18161 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
18162 | fi | |
18163 | else | |
18164 | $as_echo "/* $configure_input */" \ | |
18165 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
18166 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
18167 | fi | |
18168 | # Compute "$ac_file"'s index in $config_headers. | |
18169 | _am_arg="$ac_file" | |
18170 | _am_stamp_count=1 | |
18171 | for _am_header in $config_headers :; do | |
18172 | case $_am_header in | |
18173 | $_am_arg | $_am_arg:* ) | |
18174 | break ;; | |
18175 | * ) | |
18176 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
18177 | esac | |
18178 | done | |
18179 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
18180 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18181 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
18182 | X"$_am_arg" : 'X\(//\)$' \| \ | |
18183 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
18184 | $as_echo X"$_am_arg" | | |
18185 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18186 | s//\1/ | |
18187 | q | |
18188 | } | |
18189 | /^X\(\/\/\)[^/].*/{ | |
18190 | s//\1/ | |
18191 | q | |
18192 | } | |
18193 | /^X\(\/\/\)$/{ | |
18194 | s//\1/ | |
18195 | q | |
18196 | } | |
18197 | /^X\(\/\).*/{ | |
18198 | s//\1/ | |
18199 | q | |
18200 | } | |
18201 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
18202 | ;; | |
df1756f4 | 18203 | |
6bddc3e8 MF |
18204 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
18205 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
18206 | ;; | |
18207 | esac | |
18208 | ||
c906108c | 18209 | |
6bddc3e8 | 18210 | case $ac_file$ac_mode in |
b5689863 MF |
18211 | "libtool":C) |
18212 | ||
18213 | # See if we are running on zsh, and set the options which allow our | |
18214 | # commands through without removal of \ escapes. | |
18215 | if test -n "${ZSH_VERSION+set}" ; then | |
18216 | setopt NO_GLOB_SUBST | |
18217 | fi | |
18218 | ||
18219 | cfgfile="${ofile}T" | |
18220 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
18221 | $RM "$cfgfile" | |
18222 | ||
18223 | cat <<_LT_EOF >> "$cfgfile" | |
18224 | #! $SHELL | |
18225 | ||
18226 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
18227 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
18228 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18229 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
18230 | # | |
18231 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
18232 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
18233 | # Written by Gordon Matzigkeit, 1996 | |
18234 | # | |
18235 | # This file is part of GNU Libtool. | |
18236 | # | |
18237 | # GNU Libtool is free software; you can redistribute it and/or | |
18238 | # modify it under the terms of the GNU General Public License as | |
18239 | # published by the Free Software Foundation; either version 2 of | |
18240 | # the License, or (at your option) any later version. | |
18241 | # | |
18242 | # As a special exception to the GNU General Public License, | |
18243 | # if you distribute this file as part of a program or library that | |
18244 | # is built using GNU Libtool, you may include this file under the | |
18245 | # same distribution terms that you use for the rest of that program. | |
18246 | # | |
18247 | # GNU Libtool is distributed in the hope that it will be useful, | |
18248 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18249 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18250 | # GNU General Public License for more details. | |
18251 | # | |
18252 | # You should have received a copy of the GNU General Public License | |
18253 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
18254 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
18255 | # obtained by writing to the Free Software Foundation, Inc., | |
18256 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
18257 | ||
18258 | ||
18259 | # The names of the tagged configurations supported by this script. | |
18260 | available_tags="" | |
18261 | ||
18262 | # ### BEGIN LIBTOOL CONFIG | |
18263 | ||
18264 | # Which release of libtool.m4 was used? | |
18265 | macro_version=$macro_version | |
18266 | macro_revision=$macro_revision | |
18267 | ||
18268 | # Whether or not to build shared libraries. | |
18269 | build_libtool_libs=$enable_shared | |
18270 | ||
18271 | # Whether or not to build static libraries. | |
18272 | build_old_libs=$enable_static | |
18273 | ||
18274 | # What type of objects to build. | |
18275 | pic_mode=$pic_mode | |
18276 | ||
18277 | # Whether or not to optimize for fast installation. | |
18278 | fast_install=$enable_fast_install | |
18279 | ||
18280 | # Shell to use when invoking shell scripts. | |
18281 | SHELL=$lt_SHELL | |
18282 | ||
18283 | # An echo program that protects backslashes. | |
18284 | ECHO=$lt_ECHO | |
18285 | ||
18286 | # The host system. | |
18287 | host_alias=$host_alias | |
18288 | host=$host | |
18289 | host_os=$host_os | |
18290 | ||
18291 | # The build system. | |
18292 | build_alias=$build_alias | |
18293 | build=$build | |
18294 | build_os=$build_os | |
18295 | ||
18296 | # A sed program that does not truncate output. | |
18297 | SED=$lt_SED | |
18298 | ||
18299 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
18300 | Xsed="\$SED -e 1s/^X//" | |
18301 | ||
18302 | # A grep program that handles long lines. | |
18303 | GREP=$lt_GREP | |
18304 | ||
18305 | # An ERE matcher. | |
18306 | EGREP=$lt_EGREP | |
18307 | ||
18308 | # A literal string matcher. | |
18309 | FGREP=$lt_FGREP | |
18310 | ||
18311 | # A BSD- or MS-compatible name lister. | |
18312 | NM=$lt_NM | |
18313 | ||
18314 | # Whether we need soft or hard links. | |
18315 | LN_S=$lt_LN_S | |
18316 | ||
18317 | # What is the maximum length of a command? | |
18318 | max_cmd_len=$max_cmd_len | |
18319 | ||
18320 | # Object file suffix (normally "o"). | |
18321 | objext=$ac_objext | |
18322 | ||
18323 | # Executable file suffix (normally ""). | |
18324 | exeext=$exeext | |
18325 | ||
18326 | # whether the shell understands "unset". | |
18327 | lt_unset=$lt_unset | |
18328 | ||
18329 | # turn spaces into newlines. | |
18330 | SP2NL=$lt_lt_SP2NL | |
18331 | ||
18332 | # turn newlines into spaces. | |
18333 | NL2SP=$lt_lt_NL2SP | |
18334 | ||
18335 | # An object symbol dumper. | |
18336 | OBJDUMP=$lt_OBJDUMP | |
18337 | ||
18338 | # Method to check whether dependent libraries are shared objects. | |
18339 | deplibs_check_method=$lt_deplibs_check_method | |
18340 | ||
18341 | # Command to use when deplibs_check_method == "file_magic". | |
18342 | file_magic_cmd=$lt_file_magic_cmd | |
18343 | ||
18344 | # The archiver. | |
18345 | AR=$lt_AR | |
18346 | AR_FLAGS=$lt_AR_FLAGS | |
18347 | ||
18348 | # A symbol stripping program. | |
18349 | STRIP=$lt_STRIP | |
18350 | ||
18351 | # Commands used to install an old-style archive. | |
18352 | RANLIB=$lt_RANLIB | |
18353 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18354 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18355 | ||
18356 | # Whether to use a lock for old archive extraction. | |
18357 | lock_old_archive_extraction=$lock_old_archive_extraction | |
18358 | ||
18359 | # A C compiler. | |
18360 | LTCC=$lt_CC | |
18361 | ||
18362 | # LTCC compiler flags. | |
18363 | LTCFLAGS=$lt_CFLAGS | |
18364 | ||
18365 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18366 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18367 | ||
18368 | # Transform the output of nm in a proper C declaration. | |
18369 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18370 | ||
18371 | # Transform the output of nm in a C name address pair. | |
18372 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18373 | ||
18374 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
18375 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
18376 | ||
18377 | # The name of the directory that contains temporary libtool files. | |
18378 | objdir=$objdir | |
18379 | ||
18380 | # Used to examine libraries when file_magic_cmd begins with "file". | |
18381 | MAGIC_CMD=$MAGIC_CMD | |
18382 | ||
18383 | # Must we lock files when doing compilation? | |
18384 | need_locks=$lt_need_locks | |
18385 | ||
18386 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
18387 | DSYMUTIL=$lt_DSYMUTIL | |
18388 | ||
18389 | # Tool to change global to local symbols on Mac OS X. | |
18390 | NMEDIT=$lt_NMEDIT | |
18391 | ||
18392 | # Tool to manipulate fat objects and archives on Mac OS X. | |
18393 | LIPO=$lt_LIPO | |
18394 | ||
18395 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
18396 | OTOOL=$lt_OTOOL | |
18397 | ||
18398 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
18399 | OTOOL64=$lt_OTOOL64 | |
18400 | ||
18401 | # Old archive suffix (normally "a"). | |
18402 | libext=$libext | |
18403 | ||
18404 | # Shared library suffix (normally ".so"). | |
18405 | shrext_cmds=$lt_shrext_cmds | |
18406 | ||
18407 | # The commands to extract the exported symbol list from a shared archive. | |
18408 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18409 | ||
18410 | # Variables whose values should be saved in libtool wrapper scripts and | |
18411 | # restored at link time. | |
18412 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
18413 | ||
18414 | # Do we need the "lib" prefix for modules? | |
18415 | need_lib_prefix=$need_lib_prefix | |
18416 | ||
18417 | # Do we need a version for libraries? | |
18418 | need_version=$need_version | |
18419 | ||
18420 | # Library versioning type. | |
18421 | version_type=$version_type | |
18422 | ||
18423 | # Shared library runtime path variable. | |
18424 | runpath_var=$runpath_var | |
18425 | ||
18426 | # Shared library path variable. | |
18427 | shlibpath_var=$shlibpath_var | |
18428 | ||
18429 | # Is shlibpath searched before the hard-coded library search path? | |
18430 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18431 | ||
18432 | # Format of library name prefix. | |
18433 | libname_spec=$lt_libname_spec | |
18434 | ||
18435 | # List of archive names. First name is the real one, the rest are links. | |
18436 | # The last name is the one that the linker finds with -lNAME | |
18437 | library_names_spec=$lt_library_names_spec | |
18438 | ||
18439 | # The coded name of the library, if different from the real name. | |
18440 | soname_spec=$lt_soname_spec | |
18441 | ||
18442 | # Permission mode override for installation of shared libraries. | |
18443 | install_override_mode=$lt_install_override_mode | |
18444 | ||
18445 | # Command to use after installation of a shared archive. | |
18446 | postinstall_cmds=$lt_postinstall_cmds | |
18447 | ||
18448 | # Command to use after uninstallation of a shared archive. | |
18449 | postuninstall_cmds=$lt_postuninstall_cmds | |
18450 | ||
18451 | # Commands used to finish a libtool library installation in a directory. | |
18452 | finish_cmds=$lt_finish_cmds | |
18453 | ||
18454 | # As "finish_cmds", except a single script fragment to be evaled but | |
18455 | # not shown. | |
18456 | finish_eval=$lt_finish_eval | |
18457 | ||
18458 | # Whether we should hardcode library paths into libraries. | |
18459 | hardcode_into_libs=$hardcode_into_libs | |
18460 | ||
18461 | # Compile-time system search path for libraries. | |
18462 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18463 | ||
18464 | # Run-time system search path for libraries. | |
18465 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18466 | ||
18467 | # Whether dlopen is supported. | |
18468 | dlopen_support=$enable_dlopen | |
18469 | ||
18470 | # Whether dlopen of programs is supported. | |
18471 | dlopen_self=$enable_dlopen_self | |
18472 | ||
18473 | # Whether dlopen of statically linked programs is supported. | |
18474 | dlopen_self_static=$enable_dlopen_self_static | |
18475 | ||
18476 | # Commands to strip libraries. | |
18477 | old_striplib=$lt_old_striplib | |
18478 | striplib=$lt_striplib | |
18479 | ||
18480 | ||
18481 | # The linker used to build libraries. | |
18482 | LD=$lt_LD | |
18483 | ||
18484 | # How to create reloadable object files. | |
18485 | reload_flag=$lt_reload_flag | |
18486 | reload_cmds=$lt_reload_cmds | |
18487 | ||
18488 | # Commands used to build an old-style archive. | |
18489 | old_archive_cmds=$lt_old_archive_cmds | |
18490 | ||
18491 | # A language specific compiler. | |
18492 | CC=$lt_compiler | |
18493 | ||
18494 | # Is the compiler the GNU compiler? | |
18495 | with_gcc=$GCC | |
18496 | ||
18497 | # Compiler flag to turn off builtin functions. | |
18498 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
18499 | ||
18500 | # How to pass a linker flag through the compiler. | |
18501 | wl=$lt_lt_prog_compiler_wl | |
18502 | ||
18503 | # Additional compiler flags for building library objects. | |
18504 | pic_flag=$lt_lt_prog_compiler_pic | |
18505 | ||
18506 | # Compiler flag to prevent dynamic linking. | |
18507 | link_static_flag=$lt_lt_prog_compiler_static | |
18508 | ||
18509 | # Does compiler simultaneously support -c and -o options? | |
18510 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
18511 | ||
18512 | # Whether or not to add -lc for building shared libraries. | |
18513 | build_libtool_need_lc=$archive_cmds_need_lc | |
18514 | ||
18515 | # Whether or not to disallow shared libs when runtime libs are static. | |
18516 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
18517 | ||
18518 | # Compiler flag to allow reflexive dlopens. | |
18519 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
18520 | ||
18521 | # Compiler flag to generate shared objects directly from archives. | |
18522 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
18523 | ||
18524 | # Whether the compiler copes with passing no objects directly. | |
18525 | compiler_needs_object=$lt_compiler_needs_object | |
18526 | ||
18527 | # Create an old-style archive from a shared archive. | |
18528 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
18529 | ||
18530 | # Create a temporary old-style archive to link instead of a shared archive. | |
18531 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
18532 | ||
18533 | # Commands used to build a shared archive. | |
18534 | archive_cmds=$lt_archive_cmds | |
18535 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
18536 | ||
18537 | # Commands used to build a loadable module if different from building | |
18538 | # a shared archive. | |
18539 | module_cmds=$lt_module_cmds | |
18540 | module_expsym_cmds=$lt_module_expsym_cmds | |
18541 | ||
18542 | # Whether we are building with GNU ld or not. | |
18543 | with_gnu_ld=$lt_with_gnu_ld | |
18544 | ||
18545 | # Flag that allows shared libraries with undefined symbols to be built. | |
18546 | allow_undefined_flag=$lt_allow_undefined_flag | |
18547 | ||
18548 | # Flag that enforces no undefined symbols. | |
18549 | no_undefined_flag=$lt_no_undefined_flag | |
18550 | ||
18551 | # Flag to hardcode \$libdir into a binary during linking. | |
18552 | # This must work even if \$libdir does not exist | |
18553 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
18554 | ||
18555 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
18556 | # during linking. This must work even if \$libdir does not exist. | |
18557 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
18558 | ||
18559 | # Whether we need a single "-rpath" flag with a separated argument. | |
18560 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
18561 | ||
18562 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18563 | # DIR into the resulting binary. | |
18564 | hardcode_direct=$hardcode_direct | |
18565 | ||
18566 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18567 | # DIR into the resulting binary and the resulting library dependency is | |
18568 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
18569 | # library is relocated. | |
18570 | hardcode_direct_absolute=$hardcode_direct_absolute | |
18571 | ||
18572 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
18573 | # into the resulting binary. | |
18574 | hardcode_minus_L=$hardcode_minus_L | |
18575 | ||
18576 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
18577 | # into the resulting binary. | |
18578 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
18579 | ||
18580 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
18581 | # into the library and all subsequent libraries and executables linked | |
18582 | # against it. | |
18583 | hardcode_automatic=$hardcode_automatic | |
18584 | ||
18585 | # Set to yes if linker adds runtime paths of dependent libraries | |
18586 | # to runtime path list. | |
18587 | inherit_rpath=$inherit_rpath | |
18588 | ||
18589 | # Whether libtool must link a program against all its dependency libraries. | |
18590 | link_all_deplibs=$link_all_deplibs | |
18591 | ||
18592 | # Fix the shell variable \$srcfile for the compiler. | |
18593 | fix_srcfile_path=$lt_fix_srcfile_path | |
18594 | ||
18595 | # Set to "yes" if exported symbols are required. | |
18596 | always_export_symbols=$always_export_symbols | |
18597 | ||
18598 | # The commands to list exported symbols. | |
18599 | export_symbols_cmds=$lt_export_symbols_cmds | |
18600 | ||
18601 | # Symbols that should not be listed in the preloaded symbols. | |
18602 | exclude_expsyms=$lt_exclude_expsyms | |
18603 | ||
18604 | # Symbols that must always be exported. | |
18605 | include_expsyms=$lt_include_expsyms | |
18606 | ||
18607 | # Commands necessary for linking programs (against libraries) with templates. | |
18608 | prelink_cmds=$lt_prelink_cmds | |
18609 | ||
18610 | # Specify filename containing input files. | |
18611 | file_list_spec=$lt_file_list_spec | |
18612 | ||
18613 | # How to hardcode a shared library path into an executable. | |
18614 | hardcode_action=$hardcode_action | |
18615 | ||
18616 | # ### END LIBTOOL CONFIG | |
18617 | ||
18618 | _LT_EOF | |
18619 | ||
18620 | case $host_os in | |
18621 | aix3*) | |
18622 | cat <<\_LT_EOF >> "$cfgfile" | |
18623 | # AIX sometimes has problems with the GCC collect2 program. For some | |
18624 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
18625 | # vanish in a puff of smoke. | |
18626 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
18627 | COLLECT_NAMES= | |
18628 | export COLLECT_NAMES | |
18629 | fi | |
18630 | _LT_EOF | |
18631 | ;; | |
18632 | esac | |
18633 | ||
18634 | ||
18635 | ltmain="$ac_aux_dir/ltmain.sh" | |
18636 | ||
18637 | ||
18638 | # We use sed instead of cat because bash on DJGPP gets confused if | |
18639 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
18640 | # text mode, it properly converts lines to CR/LF. This bash problem | |
18641 | # is reportedly fixed, but why not run on old versions too? | |
18642 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
18643 | || (rm -f "$cfgfile"; exit 1) | |
18644 | ||
18645 | case $xsi_shell in | |
18646 | yes) | |
18647 | cat << \_LT_EOF >> "$cfgfile" | |
18648 | ||
18649 | # func_dirname file append nondir_replacement | |
18650 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
18651 | # otherwise set result to NONDIR_REPLACEMENT. | |
18652 | func_dirname () | |
18653 | { | |
18654 | case ${1} in | |
18655 | */*) func_dirname_result="${1%/*}${2}" ;; | |
18656 | * ) func_dirname_result="${3}" ;; | |
18657 | esac | |
18658 | } | |
18659 | ||
18660 | # func_basename file | |
18661 | func_basename () | |
18662 | { | |
18663 | func_basename_result="${1##*/}" | |
18664 | } | |
18665 | ||
18666 | # func_dirname_and_basename file append nondir_replacement | |
18667 | # perform func_basename and func_dirname in a single function | |
18668 | # call: | |
18669 | # dirname: Compute the dirname of FILE. If nonempty, | |
18670 | # add APPEND to the result, otherwise set result | |
18671 | # to NONDIR_REPLACEMENT. | |
18672 | # value returned in "$func_dirname_result" | |
18673 | # basename: Compute filename of FILE. | |
18674 | # value retuned in "$func_basename_result" | |
18675 | # Implementation must be kept synchronized with func_dirname | |
18676 | # and func_basename. For efficiency, we do not delegate to | |
18677 | # those functions but instead duplicate the functionality here. | |
18678 | func_dirname_and_basename () | |
18679 | { | |
18680 | case ${1} in | |
18681 | */*) func_dirname_result="${1%/*}${2}" ;; | |
18682 | * ) func_dirname_result="${3}" ;; | |
18683 | esac | |
18684 | func_basename_result="${1##*/}" | |
18685 | } | |
18686 | ||
18687 | # func_stripname prefix suffix name | |
18688 | # strip PREFIX and SUFFIX off of NAME. | |
18689 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18690 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18691 | # dot (in which case that matches only a dot). | |
18692 | func_stripname () | |
18693 | { | |
18694 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
18695 | # positional parameters, so assign one to ordinary parameter first. | |
18696 | func_stripname_result=${3} | |
18697 | func_stripname_result=${func_stripname_result#"${1}"} | |
18698 | func_stripname_result=${func_stripname_result%"${2}"} | |
18699 | } | |
18700 | ||
18701 | # func_opt_split | |
18702 | func_opt_split () | |
18703 | { | |
18704 | func_opt_split_opt=${1%%=*} | |
18705 | func_opt_split_arg=${1#*=} | |
18706 | } | |
18707 | ||
18708 | # func_lo2o object | |
18709 | func_lo2o () | |
18710 | { | |
18711 | case ${1} in | |
18712 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
18713 | *) func_lo2o_result=${1} ;; | |
18714 | esac | |
18715 | } | |
18716 | ||
18717 | # func_xform libobj-or-source | |
18718 | func_xform () | |
18719 | { | |
18720 | func_xform_result=${1%.*}.lo | |
18721 | } | |
18722 | ||
18723 | # func_arith arithmetic-term... | |
18724 | func_arith () | |
18725 | { | |
18726 | func_arith_result=$(( $* )) | |
18727 | } | |
18728 | ||
18729 | # func_len string | |
18730 | # STRING may not start with a hyphen. | |
18731 | func_len () | |
18732 | { | |
18733 | func_len_result=${#1} | |
18734 | } | |
18735 | ||
18736 | _LT_EOF | |
18737 | ;; | |
18738 | *) # Bourne compatible functions. | |
18739 | cat << \_LT_EOF >> "$cfgfile" | |
18740 | ||
18741 | # func_dirname file append nondir_replacement | |
18742 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
18743 | # otherwise set result to NONDIR_REPLACEMENT. | |
18744 | func_dirname () | |
18745 | { | |
18746 | # Extract subdirectory from the argument. | |
18747 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
18748 | if test "X$func_dirname_result" = "X${1}"; then | |
18749 | func_dirname_result="${3}" | |
18750 | else | |
18751 | func_dirname_result="$func_dirname_result${2}" | |
18752 | fi | |
18753 | } | |
18754 | ||
18755 | # func_basename file | |
18756 | func_basename () | |
18757 | { | |
18758 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
18759 | } | |
18760 | ||
18761 | ||
18762 | # func_stripname prefix suffix name | |
18763 | # strip PREFIX and SUFFIX off of NAME. | |
18764 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18765 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18766 | # dot (in which case that matches only a dot). | |
18767 | # func_strip_suffix prefix name | |
18768 | func_stripname () | |
18769 | { | |
18770 | case ${2} in | |
18771 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
18772 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
18773 | esac | |
18774 | } | |
18775 | ||
18776 | # sed scripts: | |
18777 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
18778 | my_sed_long_arg='1s/^-[^=]*=//' | |
18779 | ||
18780 | # func_opt_split | |
18781 | func_opt_split () | |
18782 | { | |
18783 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
18784 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
18785 | } | |
18786 | ||
18787 | # func_lo2o object | |
18788 | func_lo2o () | |
18789 | { | |
18790 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
18791 | } | |
18792 | ||
18793 | # func_xform libobj-or-source | |
18794 | func_xform () | |
18795 | { | |
18796 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
18797 | } | |
18798 | ||
18799 | # func_arith arithmetic-term... | |
18800 | func_arith () | |
18801 | { | |
18802 | func_arith_result=`expr "$@"` | |
18803 | } | |
18804 | ||
18805 | # func_len string | |
18806 | # STRING may not start with a hyphen. | |
18807 | func_len () | |
18808 | { | |
18809 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
18810 | } | |
18811 | ||
18812 | _LT_EOF | |
18813 | esac | |
18814 | ||
18815 | case $lt_shell_append in | |
18816 | yes) | |
18817 | cat << \_LT_EOF >> "$cfgfile" | |
18818 | ||
18819 | # func_append var value | |
18820 | # Append VALUE to the end of shell variable VAR. | |
18821 | func_append () | |
18822 | { | |
18823 | eval "$1+=\$2" | |
18824 | } | |
18825 | _LT_EOF | |
18826 | ;; | |
18827 | *) | |
18828 | cat << \_LT_EOF >> "$cfgfile" | |
18829 | ||
18830 | # func_append var value | |
18831 | # Append VALUE to the end of shell variable VAR. | |
18832 | func_append () | |
18833 | { | |
18834 | eval "$1=\$$1\$2" | |
18835 | } | |
18836 | ||
18837 | _LT_EOF | |
18838 | ;; | |
18839 | esac | |
18840 | ||
18841 | ||
18842 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
18843 | || (rm -f "$cfgfile"; exit 1) | |
18844 | ||
18845 | mv -f "$cfgfile" "$ofile" || | |
18846 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
18847 | chmod +x "$ofile" | |
18848 | ||
18849 | ;; | |
6bddc3e8 MF |
18850 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
18851 | # Older Autoconf quotes --file arguments for eval, but not when files | |
18852 | # are listed without --file. Let's play safe and only enable the eval | |
18853 | # if we detect the quoting. | |
18854 | case $CONFIG_FILES in | |
18855 | *\'*) eval set x "$CONFIG_FILES" ;; | |
18856 | *) set x $CONFIG_FILES ;; | |
81ecdfbb | 18857 | esac |
6bddc3e8 MF |
18858 | shift |
18859 | for mf | |
18860 | do | |
18861 | # Strip MF so we end up with the name of the file. | |
18862 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
18863 | # Check whether this is an Automake generated Makefile or not. | |
18864 | # We used to match only the files named 'Makefile.in', but | |
18865 | # some people rename them; so instead we look at the file content. | |
18866 | # Grep'ing the first line is not enough: some people post-process | |
18867 | # each Makefile.in and add a new line on top of each file to say so. | |
18868 | # Grep'ing the whole file is not good either: AIX grep has a line | |
18869 | # limit of 2048, but all sed's we know have understand at least 4000. | |
18870 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
18871 | dirpart=`$as_dirname -- "$mf" || | |
18872 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18873 | X"$mf" : 'X\(//\)[^/]' \| \ | |
18874 | X"$mf" : 'X\(//\)$' \| \ | |
18875 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
18876 | $as_echo X"$mf" | | |
18877 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18878 | s//\1/ | |
18879 | q | |
18880 | } | |
18881 | /^X\(\/\/\)[^/].*/{ | |
18882 | s//\1/ | |
18883 | q | |
18884 | } | |
18885 | /^X\(\/\/\)$/{ | |
18886 | s//\1/ | |
18887 | q | |
18888 | } | |
18889 | /^X\(\/\).*/{ | |
18890 | s//\1/ | |
18891 | q | |
18892 | } | |
18893 | s/.*/./; q'` | |
18894 | else | |
18895 | continue | |
18896 | fi | |
18897 | # Extract the definition of DEPDIR, am__include, and am__quote | |
18898 | # from the Makefile without running 'make'. | |
18899 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
18900 | test -z "$DEPDIR" && continue | |
18901 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
18902 | test -z "$am__include" && continue | |
18903 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
18904 | # Find all dependency output files, they are included files with | |
18905 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
18906 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
18907 | # expansion. | |
18908 | for file in `sed -n " | |
18909 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
18910 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
18911 | # Make sure the directory exists. | |
18912 | test -f "$dirpart/$file" && continue | |
18913 | fdir=`$as_dirname -- "$file" || | |
18914 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18915 | X"$file" : 'X\(//\)[^/]' \| \ | |
18916 | X"$file" : 'X\(//\)$' \| \ | |
18917 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
18918 | $as_echo X"$file" | | |
18919 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18920 | s//\1/ | |
18921 | q | |
18922 | } | |
18923 | /^X\(\/\/\)[^/].*/{ | |
18924 | s//\1/ | |
18925 | q | |
18926 | } | |
18927 | /^X\(\/\/\)$/{ | |
18928 | s//\1/ | |
18929 | q | |
18930 | } | |
18931 | /^X\(\/\).*/{ | |
18932 | s//\1/ | |
18933 | q | |
18934 | } | |
18935 | s/.*/./; q'` | |
18936 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
18937 | # echo "creating $dirpart/$file" | |
18938 | echo '# dummy' > "$dirpart/$file" | |
18939 | done | |
18940 | done | |
18941 | } | |
18942 | ;; | |
81ecdfbb | 18943 | |
6bddc3e8 | 18944 | esac |
81ecdfbb RW |
18945 | done # for ac_tag |
18946 | ||
18947 | ||
18948 | as_fn_exit 0 | |
b7026657 | 18949 | _ACEOF |
b7026657 AC |
18950 | ac_clean_files=$ac_clean_files_save |
18951 | ||
81ecdfbb | 18952 | test $ac_write_fail = 0 || |
d0ac1c44 | 18953 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 18954 | |
b7026657 AC |
18955 | |
18956 | # configure is writing to config.log, and then calls config.status. | |
18957 | # config.status does its own redirection, appending to config.log. | |
18958 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
18959 | # by configure, so config.status won't be able to write to it; its | |
18960 | # output is simply discarded. So we exec the FD to /dev/null, | |
18961 | # effectively closing config.log, so it can be properly (re)opened and | |
18962 | # appended to by config.status. When coming back to configure, we | |
18963 | # need to make the FD available again. | |
18964 | if test "$no_create" != yes; then | |
18965 | ac_cs_success=: | |
18966 | ac_config_status_args= | |
18967 | test "$silent" = yes && | |
18968 | ac_config_status_args="$ac_config_status_args --quiet" | |
18969 | exec 5>/dev/null | |
18970 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
18971 | exec 5>>config.log | |
18972 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
18973 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 18974 | $ac_cs_success || as_fn_exit 1 |
b7026657 | 18975 | fi |
c906108c | 18976 | |
b7026657 | 18977 | # |
81ecdfbb | 18978 | # CONFIG_SUBDIRS section. |
b7026657 | 18979 | # |
c906108c SS |
18980 | if test "$no_recursion" != yes; then |
18981 | ||
81ecdfbb RW |
18982 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
18983 | # so they do not pile up. | |
c906108c SS |
18984 | ac_sub_configure_args= |
18985 | ac_prev= | |
d6416cdc RW |
18986 | eval "set x $ac_configure_args" |
18987 | shift | |
18988 | for ac_arg | |
18989 | do | |
c906108c SS |
18990 | if test -n "$ac_prev"; then |
18991 | ac_prev= | |
18992 | continue | |
18993 | fi | |
b7026657 | 18994 | case $ac_arg in |
c906108c SS |
18995 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
18996 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
18997 | ac_prev=cache_file ;; | |
18998 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
b7026657 AC |
18999 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
19000 | | --c=*) | |
19001 | ;; | |
19002 | --config-cache | -C) | |
c906108c SS |
19003 | ;; |
19004 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
19005 | ac_prev=srcdir ;; | |
19006 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
19007 | ;; | |
b7026657 AC |
19008 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
19009 | ac_prev=prefix ;; | |
19010 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
19011 | ;; | |
81ecdfbb RW |
19012 | --disable-option-checking) |
19013 | ;; | |
d6416cdc RW |
19014 | *) |
19015 | case $ac_arg in | |
81ecdfbb | 19016 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d6416cdc | 19017 | esac |
81ecdfbb | 19018 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
c906108c SS |
19019 | esac |
19020 | done | |
19021 | ||
b7026657 AC |
19022 | # Always prepend --prefix to ensure using the same prefix |
19023 | # in subdir configurations. | |
d6416cdc RW |
19024 | ac_arg="--prefix=$prefix" |
19025 | case $ac_arg in | |
81ecdfbb | 19026 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d6416cdc | 19027 | esac |
81ecdfbb RW |
19028 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
19029 | ||
19030 | # Pass --silent | |
19031 | if test "$silent" = yes; then | |
19032 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
19033 | fi | |
19034 | ||
19035 | # Always prepend --disable-option-checking to silence warnings, since | |
19036 | # different subdirs can have different --enable and --with options. | |
19037 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
b7026657 AC |
19038 | |
19039 | ac_popdir=`pwd` | |
19040 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
c906108c SS |
19041 | |
19042 | # Do not complain, so a configure script can configure whichever | |
19043 | # parts of a large source tree are present. | |
d6416cdc | 19044 | test -d "$srcdir/$ac_dir" || continue |
fdd6fa61 | 19045 | |
81ecdfbb RW |
19046 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
19047 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
19048 | $as_echo "$ac_msg" >&6 | |
19049 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b7026657 AC |
19050 | ac_builddir=. |
19051 | ||
81ecdfbb RW |
19052 | case "$ac_dir" in |
19053 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19054 | *) | |
19055 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19056 | # A ".." for each directory in $ac_dir_suffix. | |
19057 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19058 | case $ac_top_builddir_sub in | |
19059 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19060 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19061 | esac ;; | |
19062 | esac | |
19063 | ac_abs_top_builddir=$ac_pwd | |
19064 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19065 | # for backward compatibility: | |
19066 | ac_top_builddir=$ac_top_build_prefix | |
c906108c | 19067 | |
b7026657 | 19068 | case $srcdir in |
81ecdfbb | 19069 | .) # We are building in place. |
b7026657 | 19070 | ac_srcdir=. |
81ecdfbb RW |
19071 | ac_top_srcdir=$ac_top_builddir_sub |
19072 | ac_abs_top_srcdir=$ac_pwd ;; | |
19073 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 19074 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
19075 | ac_top_srcdir=$srcdir |
19076 | ac_abs_top_srcdir=$srcdir ;; | |
19077 | *) # Relative name. | |
19078 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19079 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19080 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 19081 | esac |
81ecdfbb | 19082 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
c906108c | 19083 | |
c906108c | 19084 | |
d6416cdc | 19085 | cd "$ac_dir" |
c906108c SS |
19086 | |
19087 | # Check for guested configure; otherwise get Cygnus style configure. | |
d6416cdc RW |
19088 | if test -f "$ac_srcdir/configure.gnu"; then |
19089 | ac_sub_configure=$ac_srcdir/configure.gnu | |
19090 | elif test -f "$ac_srcdir/configure"; then | |
19091 | ac_sub_configure=$ac_srcdir/configure | |
19092 | elif test -f "$ac_srcdir/configure.in"; then | |
19093 | # This should be Cygnus configure. | |
19094 | ac_sub_configure=$ac_aux_dir/configure | |
c906108c | 19095 | else |
81ecdfbb RW |
19096 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
19097 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
19098 | ac_sub_configure= |
19099 | fi | |
19100 | ||
19101 | # The recursion is here. | |
19102 | if test -n "$ac_sub_configure"; then | |
c906108c | 19103 | # Make the cache file name correct relative to the subdirectory. |
b7026657 AC |
19104 | case $cache_file in |
19105 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
81ecdfbb RW |
19106 | *) # Relative name. |
19107 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
c906108c | 19108 | esac |
c906108c | 19109 | |
81ecdfbb RW |
19110 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
19111 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 19112 | # The eval makes quoting arguments work. |
d6416cdc RW |
19113 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
19114 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
d0ac1c44 | 19115 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
c906108c SS |
19116 | fi |
19117 | ||
d6416cdc | 19118 | cd "$ac_popdir" |
c906108c SS |
19119 | done |
19120 | fi | |
81ecdfbb RW |
19121 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
19122 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19123 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
19124 | fi | |
c906108c | 19125 |