Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
573fe3fb | 3 | # Generated by GNU Autoconf 2.69 for opcodes 2.36.50. |
d0ac1c44 SM |
4 | # |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
81ecdfbb | 7 | # |
252b5132 RH |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
979273e3 | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
979273e3 NN |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
979273e3 NN |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
979273e3 | 31 | fi |
979273e3 | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
979273e3 NN |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 90 | as_myself= |
81ecdfbb RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
979273e3 NN |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
81ecdfbb RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
d0ac1c44 SM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
81ecdfbb RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
d0ac1c44 SM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
81ecdfbb RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
3725885a RW |
199 | test \$(( 1 + 1 )) = 2 || exit 1 |
200 | ||
201 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
202 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | PATH=/empty FPATH=/empty; export PATH FPATH | |
206 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
81ecdfbb RW |
208 | if (eval "$as_required") 2>/dev/null; then : |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
979273e3 | 219 | do |
81ecdfbb RW |
220 | IFS=$as_save_IFS |
221 | test -z "$as_dir" && as_dir=. | |
222 | as_found=: | |
223 | case $as_dir in #( | |
224 | /*) | |
225 | for as_base in sh bash ksh sh5; do | |
226 | # Try only shells that exist, to save several forks. | |
227 | as_shell=$as_dir/$as_base | |
228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 | CONFIG_SHELL=$as_shell as_have_required=yes | |
231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | break 2 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 | CONFIG_SHELL=$SHELL as_have_required=yes | |
242 | fi; } | |
243 | IFS=$as_save_IFS | |
244 | ||
245 | ||
246 | if test "x$CONFIG_SHELL" != x; then : | |
d0ac1c44 SM |
247 | export CONFIG_SHELL |
248 | # We cannot yet assume a decent shell, so we have to provide a | |
249 | # neutralization value for shells without unset; and this also | |
250 | # works around shells that cannot unset nonexistent variables. | |
251 | # Preserve -v and -x to the replacement shell. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 | # Admittedly, this is quite paranoid, since all the known shells bail | |
263 | # out after a failed `exec'. | |
264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 | exit 255 | |
81ecdfbb RW |
266 | fi |
267 | ||
268 | if test x$as_have_required = xno; then : | |
269 | $as_echo "$0: This script requires a shell more modern than all" | |
270 | $as_echo "$0: the shells that I found on your system." | |
271 | if test x${ZSH_VERSION+set} = xset ; then | |
272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
979273e3 | 274 | else |
81ecdfbb RW |
275 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
276 | $0: including any error possibly output before this | |
277 | $0: message. Then install a modern shell, or manually run | |
278 | $0: the script under such a shell if you do have one." | |
979273e3 | 279 | fi |
81ecdfbb RW |
280 | exit 1 |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_fn_set_status () | |
306 | { | |
307 | return $1 | |
308 | } # as_fn_set_status | |
309 | ||
310 | # as_fn_exit STATUS | |
311 | # ----------------- | |
312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 | as_fn_exit () | |
314 | { | |
315 | set +e | |
316 | as_fn_set_status $1 | |
317 | exit $1 | |
318 | } # as_fn_exit | |
319 | ||
320 | # as_fn_mkdir_p | |
321 | # ------------- | |
322 | # Create "$as_dir" as a directory, including parents if necessary. | |
323 | as_fn_mkdir_p () | |
324 | { | |
325 | ||
326 | case $as_dir in #( | |
327 | -*) as_dir=./$as_dir;; | |
328 | esac | |
329 | test -d "$as_dir" || eval $as_mkdir_p || { | |
330 | as_dirs= | |
331 | while :; do | |
332 | case $as_dir in #( | |
333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *) as_qdir=$as_dir;; | |
335 | esac | |
336 | as_dirs="'$as_qdir' $as_dirs" | |
337 | as_dir=`$as_dirname -- "$as_dir" || | |
338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 | X"$as_dir" : 'X\(//\)$' \| \ | |
341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 | $as_echo X"$as_dir" | | |
343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)[^/].*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)$/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\).*/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | s/.*/./; q'` | |
360 | test -d "$as_dir" && break | |
361 | done | |
362 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
367 | |
368 | # as_fn_executable_p FILE | |
369 | # ----------------------- | |
370 | # Test if FILE is an executable regular file. | |
371 | as_fn_executable_p () | |
372 | { | |
373 | test -f "$1" && test -x "$1" | |
374 | } # as_fn_executable_p | |
81ecdfbb RW |
375 | # as_fn_append VAR VALUE |
376 | # ---------------------- | |
377 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 | # advantage of any shell optimizations that allow amortized linear growth over | |
379 | # repeated appends, instead of the typical quadratic growth present in naive | |
380 | # implementations. | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | eval 'as_fn_append () | |
383 | { | |
384 | eval $1+=\$2 | |
385 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # as_fn_arith | |
409 | ||
410 | ||
d0ac1c44 SM |
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
81ecdfbb RW |
413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 415 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
416 | as_fn_error () |
417 | { | |
d0ac1c44 SM |
418 | as_status=$1; test $as_status -eq 0 && as_status=1 |
419 | if test "$4"; then | |
420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
81ecdfbb | 422 | fi |
d0ac1c44 | 423 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
979273e3 | 426 | |
81ecdfbb RW |
427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
979273e3 NN |
429 | as_expr=expr |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
81ecdfbb | 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
979273e3 NN |
435 | as_basename=basename |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
81ecdfbb RW |
440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
979273e3 | 445 | |
81ecdfbb | 446 | as_me=`$as_basename -- "$0" || |
979273e3 NN |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
448 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
450 | $as_echo X/"$0" | | |
451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\/\)$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\).*/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | s/.*/./; q'` | |
979273e3 | 464 | |
979273e3 NN |
465 | # Avoid depending upon Character Ranges. |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
471 | ||
979273e3 | 472 | |
81ecdfbb RW |
473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 | sed -n ' | |
479 | p | |
480 | /[$]LINENO/= | |
481 | ' <$as_myself | | |
979273e3 | 482 | sed ' |
81ecdfbb RW |
483 | s/[$]LINENO.*/&-/ |
484 | t lineno | |
485 | b | |
486 | :lineno | |
979273e3 | 487 | N |
81ecdfbb RW |
488 | :loop |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
979273e3 | 490 | t loop |
81ecdfbb | 491 | s/-\n.*// |
979273e3 | 492 | ' >$as_me.lineno && |
81ecdfbb RW |
493 | chmod +x "$as_me.lineno" || |
494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
979273e3 | 495 | |
d0ac1c44 SM |
496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
497 | # already done that, so ensure we don't try to do so again and fall | |
498 | # in an infinite loop. This has already happened in practice. | |
499 | _as_can_reexec=no; export _as_can_reexec | |
979273e3 NN |
500 | # Don't try to exec as it changes $[0], causing all sort of problems |
501 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
502 | # original and so on. Autoconf is especially sensitive to this). |
503 | . "./$as_me.lineno" | |
979273e3 NN |
504 | # Exit status is that of the last command. |
505 | exit | |
506 | } | |
507 | ||
81ecdfbb RW |
508 | ECHO_C= ECHO_N= ECHO_T= |
509 | case `echo -n x` in #((((( | |
510 | -n*) | |
511 | case `echo 'xy\c'` in | |
512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 | xy) ECHO_C='\c';; | |
514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 | ECHO_T=' ';; | |
516 | esac;; | |
517 | *) | |
518 | ECHO_N='-n';; | |
979273e3 NN |
519 | esac |
520 | ||
81ecdfbb RW |
521 | rm -f conf$$ conf$$.exe conf$$.file |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
979273e3 | 524 | else |
81ecdfbb RW |
525 | rm -f conf$$.dir |
526 | mkdir conf$$.dir 2>/dev/null | |
979273e3 | 527 | fi |
81ecdfbb RW |
528 | if (echo >conf$$.file) 2>/dev/null; then |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
979273e3 | 530 | as_ln_s='ln -s' |
81ecdfbb RW |
531 | # ... but there are two gotchas: |
532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 534 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 536 | as_ln_s='cp -pR' |
81ecdfbb RW |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
d0ac1c44 | 540 | as_ln_s='cp -pR' |
979273e3 | 541 | fi |
979273e3 | 542 | else |
d0ac1c44 | 543 | as_ln_s='cp -pR' |
979273e3 | 544 | fi |
81ecdfbb RW |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
979273e3 NN |
547 | |
548 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 549 | as_mkdir_p='mkdir -p "$as_dir"' |
979273e3 NN |
550 | else |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
d0ac1c44 SM |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
979273e3 NN |
557 | |
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | # Sed expression to map a string onto a valid variable name. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
d7040cdb SE |
564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
d7040cdb | 566 | |
d0ac1c44 SM |
567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
81ecdfbb | 569 | |
979273e3 | 570 | # Name of the host. |
d0ac1c44 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
979273e3 NN |
572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 574 | |
979273e3 NN |
575 | # |
576 | # Initializations. | |
577 | # | |
252b5132 | 578 | ac_default_prefix=/usr/local |
81ecdfbb | 579 | ac_clean_files= |
979273e3 | 580 | ac_config_libobj_dir=. |
81ecdfbb | 581 | LIBOBJS= |
979273e3 NN |
582 | cross_compiling=no |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
979273e3 NN |
586 | |
587 | # Identity of this package. | |
2e98a7bd AM |
588 | PACKAGE_NAME='opcodes' |
589 | PACKAGE_TARNAME='opcodes' | |
573fe3fb NC |
590 | PACKAGE_VERSION='2.36.50' |
591 | PACKAGE_STRING='opcodes 2.36.50' | |
2e98a7bd AM |
592 | PACKAGE_BUGREPORT='' |
593 | PACKAGE_URL='' | |
979273e3 NN |
594 | |
595 | ac_unique_file="z8k-dis.c" | |
596 | # Factoring default headers for most tests. | |
597 | ac_includes_default="\ | |
598 | #include <stdio.h> | |
81ecdfbb | 599 | #ifdef HAVE_SYS_TYPES_H |
979273e3 NN |
600 | # include <sys/types.h> |
601 | #endif | |
81ecdfbb | 602 | #ifdef HAVE_SYS_STAT_H |
979273e3 NN |
603 | # include <sys/stat.h> |
604 | #endif | |
81ecdfbb | 605 | #ifdef STDC_HEADERS |
979273e3 NN |
606 | # include <stdlib.h> |
607 | # include <stddef.h> | |
608 | #else | |
81ecdfbb | 609 | # ifdef HAVE_STDLIB_H |
979273e3 NN |
610 | # include <stdlib.h> |
611 | # endif | |
612 | #endif | |
81ecdfbb RW |
613 | #ifdef HAVE_STRING_H |
614 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
979273e3 NN |
615 | # include <memory.h> |
616 | # endif | |
617 | # include <string.h> | |
618 | #endif | |
81ecdfbb | 619 | #ifdef HAVE_STRINGS_H |
979273e3 NN |
620 | # include <strings.h> |
621 | #endif | |
81ecdfbb | 622 | #ifdef HAVE_INTTYPES_H |
979273e3 | 623 | # include <inttypes.h> |
979273e3 | 624 | #endif |
81ecdfbb RW |
625 | #ifdef HAVE_STDINT_H |
626 | # include <stdint.h> | |
627 | #endif | |
628 | #ifdef HAVE_UNISTD_H | |
979273e3 NN |
629 | # include <unistd.h> |
630 | #endif" | |
631 | ||
81ecdfbb RW |
632 | ac_subst_vars='am__EXEEXT_FALSE |
633 | am__EXEEXT_TRUE | |
634 | LTLIBOBJS | |
635 | LIBOBJS | |
636 | BFD_MACHINES | |
637 | archdefs | |
638 | SHARED_DEPENDENCIES | |
639 | SHARED_LIBADD | |
640 | SHARED_LDFLAGS | |
2eee5593 AM |
641 | BUILD_LIB_DEPS |
642 | BUILD_LIBS | |
81ecdfbb RW |
643 | LIBM |
644 | cgendir | |
645 | CGEN_MAINT_FALSE | |
646 | CGEN_MAINT_TRUE | |
647 | HDEFINES | |
648 | EXEEXT_FOR_BUILD | |
649 | CC_FOR_BUILD | |
650 | MSGMERGE | |
651 | MSGFMT | |
652 | MKINSTALLDIRS | |
653 | CATOBJEXT | |
654 | GENCAT | |
655 | INSTOBJEXT | |
656 | DATADIRNAME | |
657 | CATALOGS | |
658 | POSUB | |
659 | GMSGFMT | |
660 | XGETTEXT | |
661 | INCINTL | |
662 | LIBINTL_DEP | |
663 | LIBINTL | |
664 | USE_NLS | |
665 | bfdincludedir | |
666 | bfdlibdir | |
667 | target_noncanonical | |
668 | host_noncanonical | |
669 | INSTALL_LIBBFD_FALSE | |
670 | INSTALL_LIBBFD_TRUE | |
671 | MAINT | |
672 | MAINTAINER_MODE_FALSE | |
673 | MAINTAINER_MODE_TRUE | |
6757cf57 | 674 | WARN_WRITE_STRINGS |
81ecdfbb | 675 | NO_WERROR |
c5da1932 | 676 | WARN_CFLAGS_FOR_BUILD |
81ecdfbb RW |
677 | WARN_CFLAGS |
678 | OTOOL64 | |
679 | OTOOL | |
680 | LIPO | |
681 | NMEDIT | |
682 | DSYMUTIL | |
81ecdfbb RW |
683 | OBJDUMP |
684 | LN_S | |
685 | NM | |
686 | ac_ct_DUMPBIN | |
687 | DUMPBIN | |
688 | LD | |
689 | FGREP | |
690 | SED | |
691 | LIBTOOL | |
692 | RANLIB | |
693 | AR | |
694 | EGREP | |
695 | GREP | |
696 | CPP | |
697 | am__fastdepCC_FALSE | |
698 | am__fastdepCC_TRUE | |
699 | CCDEPMODE | |
6eb7d830 | 700 | am__nodep |
81ecdfbb RW |
701 | AMDEPBACKSLASH |
702 | AMDEP_FALSE | |
703 | AMDEP_TRUE | |
704 | am__quote | |
705 | am__include | |
706 | DEPDIR | |
ab2af25e AM |
707 | OBJEXT |
708 | EXEEXT | |
709 | ac_ct_CC | |
710 | CPPFLAGS | |
711 | LDFLAGS | |
712 | CFLAGS | |
713 | CC | |
714 | AM_BACKSLASH | |
715 | AM_DEFAULT_VERBOSITY | |
716 | AM_DEFAULT_V | |
717 | AM_V | |
81ecdfbb RW |
718 | am__untar |
719 | am__tar | |
720 | AMTAR | |
721 | am__leading_dot | |
722 | SET_MAKE | |
723 | AWK | |
724 | mkdir_p | |
725 | MKDIR_P | |
726 | INSTALL_STRIP_PROGRAM | |
727 | STRIP | |
728 | install_sh | |
729 | MAKEINFO | |
730 | AUTOHEADER | |
731 | AUTOMAKE | |
732 | AUTOCONF | |
733 | ACLOCAL | |
734 | VERSION | |
735 | PACKAGE | |
736 | CYGPATH_W | |
737 | am__isrc | |
738 | INSTALL_DATA | |
739 | INSTALL_SCRIPT | |
740 | INSTALL_PROGRAM | |
81ecdfbb RW |
741 | target_os |
742 | target_vendor | |
743 | target_cpu | |
744 | target | |
745 | host_os | |
746 | host_vendor | |
747 | host_cpu | |
748 | host | |
749 | build_os | |
750 | build_vendor | |
751 | build_cpu | |
752 | build | |
753 | target_alias | |
754 | host_alias | |
755 | build_alias | |
756 | LIBS | |
757 | ECHO_T | |
758 | ECHO_N | |
759 | ECHO_C | |
760 | DEFS | |
761 | mandir | |
762 | localedir | |
763 | libdir | |
764 | psdir | |
765 | pdfdir | |
766 | dvidir | |
767 | htmldir | |
768 | infodir | |
769 | docdir | |
770 | oldincludedir | |
771 | includedir | |
772 | localstatedir | |
773 | sharedstatedir | |
774 | sysconfdir | |
775 | datadir | |
776 | datarootdir | |
777 | libexecdir | |
778 | sbindir | |
779 | bindir | |
780 | program_transform_name | |
781 | prefix | |
782 | exec_prefix | |
783 | PACKAGE_URL | |
784 | PACKAGE_BUGREPORT | |
785 | PACKAGE_STRING | |
786 | PACKAGE_VERSION | |
787 | PACKAGE_TARNAME | |
788 | PACKAGE_NAME | |
789 | PATH_SEPARATOR | |
790 | SHELL' | |
979273e3 | 791 | ac_subst_files='' |
81ecdfbb RW |
792 | ac_user_opts=' |
793 | enable_option_checking | |
d0ac1c44 | 794 | enable_silent_rules |
ab2af25e | 795 | enable_dependency_tracking |
81ecdfbb RW |
796 | enable_shared |
797 | enable_static | |
798 | with_pic | |
799 | enable_fast_install | |
800 | with_gnu_ld | |
801 | enable_libtool_lock | |
43e05cd4 | 802 | enable_checking |
81ecdfbb RW |
803 | enable_targets |
804 | enable_werror | |
805 | enable_build_warnings | |
806 | enable_maintainer_mode | |
807 | enable_install_libbfd | |
808 | enable_nls | |
809 | enable_cgen_maint | |
810 | ' | |
811 | ac_precious_vars='build_alias | |
812 | host_alias | |
813 | target_alias | |
814 | CC | |
815 | CFLAGS | |
816 | LDFLAGS | |
817 | LIBS | |
818 | CPPFLAGS | |
819 | CPP' | |
820 | ||
252b5132 RH |
821 | |
822 | # Initialize some variables set by options. | |
979273e3 NN |
823 | ac_init_help= |
824 | ac_init_version=false | |
81ecdfbb RW |
825 | ac_unrecognized_opts= |
826 | ac_unrecognized_sep= | |
252b5132 RH |
827 | # The variables have the same names as the options, with |
828 | # dashes changed to underlines. | |
979273e3 | 829 | cache_file=/dev/null |
252b5132 | 830 | exec_prefix=NONE |
252b5132 | 831 | no_create= |
252b5132 RH |
832 | no_recursion= |
833 | prefix=NONE | |
834 | program_prefix=NONE | |
835 | program_suffix=NONE | |
836 | program_transform_name=s,x,x, | |
837 | silent= | |
838 | site= | |
839 | srcdir= | |
252b5132 RH |
840 | verbose= |
841 | x_includes=NONE | |
842 | x_libraries=NONE | |
979273e3 NN |
843 | |
844 | # Installation directory options. | |
845 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
846 | # and all the variables that are supposed to be based on exec_prefix | |
847 | # by default will actually change. | |
848 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 849 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
850 | bindir='${exec_prefix}/bin' |
851 | sbindir='${exec_prefix}/sbin' | |
852 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
853 | datarootdir='${prefix}/share' |
854 | datadir='${datarootdir}' | |
252b5132 RH |
855 | sysconfdir='${prefix}/etc' |
856 | sharedstatedir='${prefix}/com' | |
857 | localstatedir='${prefix}/var' | |
252b5132 RH |
858 | includedir='${prefix}/include' |
859 | oldincludedir='/usr/include' | |
2e98a7bd | 860 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
861 | infodir='${datarootdir}/info' |
862 | htmldir='${docdir}' | |
863 | dvidir='${docdir}' | |
864 | pdfdir='${docdir}' | |
865 | psdir='${docdir}' | |
866 | libdir='${exec_prefix}/lib' | |
867 | localedir='${datarootdir}/locale' | |
868 | mandir='${datarootdir}/man' | |
252b5132 | 869 | |
252b5132 | 870 | ac_prev= |
81ecdfbb | 871 | ac_dashdash= |
252b5132 RH |
872 | for ac_option |
873 | do | |
252b5132 RH |
874 | # If the previous option needs an argument, assign it. |
875 | if test -n "$ac_prev"; then | |
81ecdfbb | 876 | eval $ac_prev=\$ac_option |
252b5132 RH |
877 | ac_prev= |
878 | continue | |
879 | fi | |
880 | ||
81ecdfbb | 881 | case $ac_option in |
d0ac1c44 SM |
882 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
883 | *=) ac_optarg= ;; | |
884 | *) ac_optarg=yes ;; | |
81ecdfbb | 885 | esac |
252b5132 RH |
886 | |
887 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
888 | ||
81ecdfbb RW |
889 | case $ac_dashdash$ac_option in |
890 | --) | |
891 | ac_dashdash=yes ;; | |
252b5132 RH |
892 | |
893 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
894 | ac_prev=bindir ;; | |
895 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
979273e3 | 896 | bindir=$ac_optarg ;; |
252b5132 RH |
897 | |
898 | -build | --build | --buil | --bui | --bu) | |
979273e3 | 899 | ac_prev=build_alias ;; |
252b5132 | 900 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
979273e3 | 901 | build_alias=$ac_optarg ;; |
252b5132 RH |
902 | |
903 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
904 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
905 | ac_prev=cache_file ;; | |
906 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
907 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
979273e3 NN |
908 | cache_file=$ac_optarg ;; |
909 | ||
910 | --config-cache | -C) | |
911 | cache_file=config.cache ;; | |
252b5132 | 912 | |
81ecdfbb | 913 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 914 | ac_prev=datadir ;; |
81ecdfbb | 915 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
979273e3 | 916 | datadir=$ac_optarg ;; |
252b5132 | 917 | |
81ecdfbb RW |
918 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
919 | | --dataroo | --dataro | --datar) | |
920 | ac_prev=datarootdir ;; | |
921 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
922 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
923 | datarootdir=$ac_optarg ;; | |
924 | ||
252b5132 | 925 | -disable-* | --disable-*) |
81ecdfbb | 926 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 927 | # Reject names that are not valid shell variable names. |
81ecdfbb | 928 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 929 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
930 | ac_useropt_orig=$ac_useropt |
931 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
932 | case $ac_user_opts in | |
933 | *" | |
934 | "enable_$ac_useropt" | |
935 | "*) ;; | |
936 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
937 | ac_unrecognized_sep=', ';; | |
938 | esac | |
939 | eval enable_$ac_useropt=no ;; | |
940 | ||
941 | -docdir | --docdir | --docdi | --doc | --do) | |
942 | ac_prev=docdir ;; | |
943 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
944 | docdir=$ac_optarg ;; | |
945 | ||
946 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
947 | ac_prev=dvidir ;; | |
948 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
949 | dvidir=$ac_optarg ;; | |
252b5132 RH |
950 | |
951 | -enable-* | --enable-*) | |
81ecdfbb | 952 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 953 | # Reject names that are not valid shell variable names. |
81ecdfbb | 954 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 955 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
956 | ac_useropt_orig=$ac_useropt |
957 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
958 | case $ac_user_opts in | |
959 | *" | |
960 | "enable_$ac_useropt" | |
961 | "*) ;; | |
962 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
963 | ac_unrecognized_sep=', ';; | |
252b5132 | 964 | esac |
81ecdfbb | 965 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
966 | |
967 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
968 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
969 | | --exec | --exe | --ex) | |
970 | ac_prev=exec_prefix ;; | |
971 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
972 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
973 | | --exec=* | --exe=* | --ex=*) | |
979273e3 | 974 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
975 | |
976 | -gas | --gas | --ga | --g) | |
977 | # Obsolete; use --with-gas. | |
978 | with_gas=yes ;; | |
979 | ||
979273e3 NN |
980 | -help | --help | --hel | --he | -h) |
981 | ac_init_help=long ;; | |
982 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
983 | ac_init_help=recursive ;; | |
984 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
985 | ac_init_help=short ;; | |
252b5132 RH |
986 | |
987 | -host | --host | --hos | --ho) | |
979273e3 | 988 | ac_prev=host_alias ;; |
252b5132 | 989 | -host=* | --host=* | --hos=* | --ho=*) |
979273e3 | 990 | host_alias=$ac_optarg ;; |
252b5132 | 991 | |
81ecdfbb RW |
992 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
993 | ac_prev=htmldir ;; | |
994 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
995 | | --ht=*) | |
996 | htmldir=$ac_optarg ;; | |
997 | ||
252b5132 RH |
998 | -includedir | --includedir | --includedi | --included | --include \ |
999 | | --includ | --inclu | --incl | --inc) | |
1000 | ac_prev=includedir ;; | |
1001 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1002 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
979273e3 | 1003 | includedir=$ac_optarg ;; |
252b5132 RH |
1004 | |
1005 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1006 | ac_prev=infodir ;; | |
1007 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
979273e3 | 1008 | infodir=$ac_optarg ;; |
252b5132 RH |
1009 | |
1010 | -libdir | --libdir | --libdi | --libd) | |
1011 | ac_prev=libdir ;; | |
1012 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
979273e3 | 1013 | libdir=$ac_optarg ;; |
252b5132 RH |
1014 | |
1015 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1016 | | --libexe | --libex | --libe) | |
1017 | ac_prev=libexecdir ;; | |
1018 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1019 | | --libexe=* | --libex=* | --libe=*) | |
979273e3 | 1020 | libexecdir=$ac_optarg ;; |
252b5132 | 1021 | |
81ecdfbb RW |
1022 | -localedir | --localedir | --localedi | --localed | --locale) |
1023 | ac_prev=localedir ;; | |
1024 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1025 | localedir=$ac_optarg ;; | |
1026 | ||
252b5132 | 1027 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1028 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1029 | ac_prev=localstatedir ;; |
1030 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1031 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
979273e3 | 1032 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1033 | |
1034 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1035 | ac_prev=mandir ;; | |
1036 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
979273e3 | 1037 | mandir=$ac_optarg ;; |
252b5132 RH |
1038 | |
1039 | -nfp | --nfp | --nf) | |
1040 | # Obsolete; use --without-fp. | |
1041 | with_fp=no ;; | |
1042 | ||
1043 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
979273e3 | 1044 | | --no-cr | --no-c | -n) |
252b5132 RH |
1045 | no_create=yes ;; |
1046 | ||
1047 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1048 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1049 | no_recursion=yes ;; | |
1050 | ||
1051 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1052 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1053 | | --oldin | --oldi | --old | --ol | --o) | |
1054 | ac_prev=oldincludedir ;; | |
1055 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1056 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1057 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
979273e3 | 1058 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1059 | |
1060 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1061 | ac_prev=prefix ;; | |
1062 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
979273e3 | 1063 | prefix=$ac_optarg ;; |
252b5132 RH |
1064 | |
1065 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1066 | | --program-pre | --program-pr | --program-p) | |
1067 | ac_prev=program_prefix ;; | |
1068 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1069 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
979273e3 | 1070 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1071 | |
1072 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1073 | | --program-suf | --program-su | --program-s) | |
1074 | ac_prev=program_suffix ;; | |
1075 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1076 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
979273e3 | 1077 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1078 | |
1079 | -program-transform-name | --program-transform-name \ | |
1080 | | --program-transform-nam | --program-transform-na \ | |
1081 | | --program-transform-n | --program-transform- \ | |
1082 | | --program-transform | --program-transfor \ | |
1083 | | --program-transfo | --program-transf \ | |
1084 | | --program-trans | --program-tran \ | |
1085 | | --progr-tra | --program-tr | --program-t) | |
1086 | ac_prev=program_transform_name ;; | |
1087 | -program-transform-name=* | --program-transform-name=* \ | |
1088 | | --program-transform-nam=* | --program-transform-na=* \ | |
1089 | | --program-transform-n=* | --program-transform-=* \ | |
1090 | | --program-transform=* | --program-transfor=* \ | |
1091 | | --program-transfo=* | --program-transf=* \ | |
1092 | | --program-trans=* | --program-tran=* \ | |
1093 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
979273e3 | 1094 | program_transform_name=$ac_optarg ;; |
252b5132 | 1095 | |
81ecdfbb RW |
1096 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1097 | ac_prev=pdfdir ;; | |
1098 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1099 | pdfdir=$ac_optarg ;; | |
1100 | ||
1101 | -psdir | --psdir | --psdi | --psd | --ps) | |
1102 | ac_prev=psdir ;; | |
1103 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1104 | psdir=$ac_optarg ;; | |
1105 | ||
252b5132 RH |
1106 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1107 | | -silent | --silent | --silen | --sile | --sil) | |
1108 | silent=yes ;; | |
1109 | ||
1110 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1111 | ac_prev=sbindir ;; | |
1112 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1113 | | --sbi=* | --sb=*) | |
979273e3 | 1114 | sbindir=$ac_optarg ;; |
252b5132 RH |
1115 | |
1116 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1117 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1118 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1119 | | --sha | --sh) | |
1120 | ac_prev=sharedstatedir ;; | |
1121 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1122 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1123 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1124 | | --sha=* | --sh=*) | |
979273e3 | 1125 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1126 | |
1127 | -site | --site | --sit) | |
1128 | ac_prev=site ;; | |
1129 | -site=* | --site=* | --sit=*) | |
979273e3 | 1130 | site=$ac_optarg ;; |
1fe1f39c | 1131 | |
252b5132 RH |
1132 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1133 | ac_prev=srcdir ;; | |
1134 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
979273e3 | 1135 | srcdir=$ac_optarg ;; |
252b5132 RH |
1136 | |
1137 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1138 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1139 | ac_prev=sysconfdir ;; | |
1140 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1141 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
979273e3 | 1142 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1143 | |
1144 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
979273e3 | 1145 | ac_prev=target_alias ;; |
252b5132 | 1146 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
979273e3 | 1147 | target_alias=$ac_optarg ;; |
252b5132 RH |
1148 | |
1149 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1150 | verbose=yes ;; | |
1151 | ||
979273e3 NN |
1152 | -version | --version | --versio | --versi | --vers | -V) |
1153 | ac_init_version=: ;; | |
252b5132 RH |
1154 | |
1155 | -with-* | --with-*) | |
81ecdfbb | 1156 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1157 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1158 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1159 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1160 | ac_useropt_orig=$ac_useropt |
1161 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1162 | case $ac_user_opts in | |
1163 | *" | |
1164 | "with_$ac_useropt" | |
1165 | "*) ;; | |
1166 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1167 | ac_unrecognized_sep=', ';; | |
252b5132 | 1168 | esac |
81ecdfbb | 1169 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1170 | |
1171 | -without-* | --without-*) | |
81ecdfbb | 1172 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1173 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1174 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1175 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1176 | ac_useropt_orig=$ac_useropt |
1177 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1178 | case $ac_user_opts in | |
1179 | *" | |
1180 | "with_$ac_useropt" | |
1181 | "*) ;; | |
1182 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1183 | ac_unrecognized_sep=', ';; | |
1184 | esac | |
1185 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1186 | |
1187 | --x) | |
1188 | # Obsolete; use --with-x. | |
1189 | with_x=yes ;; | |
1190 | ||
1191 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1192 | | --x-incl | --x-inc | --x-in | --x-i) | |
1193 | ac_prev=x_includes ;; | |
1194 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1195 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
979273e3 | 1196 | x_includes=$ac_optarg ;; |
252b5132 RH |
1197 | |
1198 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1199 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1200 | ac_prev=x_libraries ;; | |
1201 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1202 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
979273e3 | 1203 | x_libraries=$ac_optarg ;; |
252b5132 | 1204 | |
d0ac1c44 SM |
1205 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1206 | Try \`$0 --help' for more information" | |
252b5132 RH |
1207 | ;; |
1208 | ||
979273e3 NN |
1209 | *=*) |
1210 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1211 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1212 | case $ac_envvar in #( |
1213 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1214 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1215 | esac |
1216 | eval $ac_envvar=\$ac_optarg | |
979273e3 NN |
1217 | export $ac_envvar ;; |
1218 | ||
252b5132 | 1219 | *) |
979273e3 | 1220 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1221 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
979273e3 | 1222 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1223 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1224 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
252b5132 RH |
1225 | ;; |
1226 | ||
1227 | esac | |
1228 | done | |
1229 | ||
1230 | if test -n "$ac_prev"; then | |
979273e3 | 1231 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1232 | as_fn_error $? "missing argument to $ac_option" |
252b5132 | 1233 | fi |
252b5132 | 1234 | |
81ecdfbb RW |
1235 | if test -n "$ac_unrecognized_opts"; then |
1236 | case $enable_option_checking in | |
1237 | no) ;; | |
d0ac1c44 | 1238 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1239 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
979273e3 | 1240 | esac |
81ecdfbb | 1241 | fi |
252b5132 | 1242 | |
81ecdfbb RW |
1243 | # Check all directory arguments for consistency. |
1244 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1245 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1246 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
e0b2a78c | 1247 | libdir localedir mandir |
252b5132 | 1248 | do |
81ecdfbb RW |
1249 | eval ac_val=\$$ac_var |
1250 | # Remove trailing slashes. | |
1251 | case $ac_val in | |
1252 | */ ) | |
1253 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1254 | eval $ac_var=\$ac_val;; | |
1255 | esac | |
1256 | # Be sure to have absolute directory names. | |
979273e3 | 1257 | case $ac_val in |
81ecdfbb RW |
1258 | [\\/$]* | ?:[\\/]* ) continue;; |
1259 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
252b5132 | 1260 | esac |
d0ac1c44 | 1261 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1262 | done |
1263 | ||
979273e3 NN |
1264 | # There might be people who depend on the old broken behavior: `$host' |
1265 | # used to hold the argument of --host etc. | |
1266 | # FIXME: To remove some day. | |
1267 | build=$build_alias | |
1268 | host=$host_alias | |
1269 | target=$target_alias | |
1270 | ||
1271 | # FIXME: To remove some day. | |
1272 | if test "x$host_alias" != x; then | |
1273 | if test "x$build_alias" = x; then | |
1274 | cross_compiling=maybe | |
979273e3 NN |
1275 | elif test "x$build_alias" != "x$host_alias"; then |
1276 | cross_compiling=yes | |
1277 | fi | |
1278 | fi | |
252b5132 | 1279 | |
979273e3 NN |
1280 | ac_tool_prefix= |
1281 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1282 | ||
1283 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1284 | |
252b5132 | 1285 | |
81ecdfbb RW |
1286 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1287 | ac_ls_di=`ls -di .` && | |
1288 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1289 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1290 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1291 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1292 | |
1293 | ||
252b5132 RH |
1294 | # Find the source files, if location was not specified. |
1295 | if test -z "$srcdir"; then | |
1296 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1297 | # Try the directory containing this script, then the parent directory. |
1298 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1299 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1300 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1301 | X"$as_myself" : 'X\(//\)$' \| \ | |
1302 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1303 | $as_echo X"$as_myself" | | |
1304 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1305 | s//\1/ | |
1306 | q | |
1307 | } | |
1308 | /^X\(\/\/\)[^/].*/{ | |
1309 | s//\1/ | |
1310 | q | |
1311 | } | |
1312 | /^X\(\/\/\)$/{ | |
1313 | s//\1/ | |
1314 | q | |
1315 | } | |
1316 | /^X\(\/\).*/{ | |
1317 | s//\1/ | |
1318 | q | |
1319 | } | |
1320 | s/.*/./; q'` | |
252b5132 | 1321 | srcdir=$ac_confdir |
81ecdfbb | 1322 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1323 | srcdir=.. |
1324 | fi | |
1325 | else | |
1326 | ac_srcdir_defaulted=no | |
1327 | fi | |
81ecdfbb RW |
1328 | if test ! -r "$srcdir/$ac_unique_file"; then |
1329 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1330 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1331 | fi |
1332 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1333 | ac_abs_confdir=`( | |
d0ac1c44 | 1334 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1335 | pwd)` |
1336 | # When building in place, set srcdir=. | |
1337 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1338 | srcdir=. | |
1339 | fi | |
1340 | # Remove unnecessary trailing slashes from srcdir. | |
1341 | # Double slashes in file names in object file debugging info | |
1342 | # mess up M-x gdb in Emacs. | |
1343 | case $srcdir in | |
1344 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1345 | esac | |
1346 | for ac_var in $ac_precious_vars; do | |
1347 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1348 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1349 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1350 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1351 | done | |
252b5132 | 1352 | |
979273e3 NN |
1353 | # |
1354 | # Report the --help message. | |
1355 | # | |
1356 | if test "$ac_init_help" = "long"; then | |
1357 | # Omit some internal or obsolete options to make the list less imposing. | |
1358 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1359 | cat <<_ACEOF | |
573fe3fb | 1360 | \`configure' configures opcodes 2.36.50 to adapt to many kinds of systems. |
252b5132 | 1361 | |
979273e3 | 1362 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 1363 | |
979273e3 NN |
1364 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1365 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 1366 | |
979273e3 | 1367 | Defaults for the options are specified in brackets. |
ac48eca1 | 1368 | |
979273e3 NN |
1369 | Configuration: |
1370 | -h, --help display this help and exit | |
1371 | --help=short display options specific to this package | |
1372 | --help=recursive display the short help of all the included packages | |
1373 | -V, --version display version information and exit | |
d0ac1c44 | 1374 | -q, --quiet, --silent do not print \`checking ...' messages |
979273e3 NN |
1375 | --cache-file=FILE cache test results in FILE [disabled] |
1376 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1377 | -n, --no-create do not create output files | |
1378 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1379 | ||
979273e3 NN |
1380 | Installation directories: |
1381 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1382 | [$ac_default_prefix] |
979273e3 | 1383 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1384 | [PREFIX] |
ac48eca1 | 1385 | |
979273e3 NN |
1386 | By default, \`make install' will install all the files in |
1387 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1388 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1389 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 1390 | |
979273e3 | 1391 | For better control, use the options below. |
ac48eca1 | 1392 | |
979273e3 | 1393 | Fine tuning of the installation directories: |
81ecdfbb RW |
1394 | --bindir=DIR user executables [EPREFIX/bin] |
1395 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1396 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1397 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1398 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1399 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1400 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1401 | --includedir=DIR C header files [PREFIX/include] | |
1402 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1403 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1404 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1405 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1406 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1407 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
2e98a7bd | 1408 | --docdir=DIR documentation root [DATAROOTDIR/doc/opcodes] |
81ecdfbb RW |
1409 | --htmldir=DIR html documentation [DOCDIR] |
1410 | --dvidir=DIR dvi documentation [DOCDIR] | |
1411 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1412 | --psdir=DIR ps documentation [DOCDIR] | |
979273e3 | 1413 | _ACEOF |
ac48eca1 | 1414 | |
979273e3 | 1415 | cat <<\_ACEOF |
252b5132 | 1416 | |
979273e3 NN |
1417 | Program names: |
1418 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1419 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1420 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 1421 | |
979273e3 NN |
1422 | System types: |
1423 | --build=BUILD configure for building on BUILD [guessed] | |
1424 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1425 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1426 | _ACEOF | |
252b5132 | 1427 | fi |
252b5132 | 1428 | |
979273e3 | 1429 | if test -n "$ac_init_help"; then |
2e98a7bd | 1430 | case $ac_init_help in |
573fe3fb | 1431 | short | recursive ) echo "Configuration of opcodes 2.36.50:";; |
2e98a7bd | 1432 | esac |
979273e3 | 1433 | cat <<\_ACEOF |
252b5132 | 1434 | |
979273e3 | 1435 | Optional Features: |
81ecdfbb | 1436 | --disable-option-checking ignore unrecognized --enable/--with options |
979273e3 NN |
1437 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1438 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ab2af25e AM |
1439 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1440 | --disable-silent-rules verbose build output (undo: "make V=0") | |
d0ac1c44 SM |
1441 | --enable-dependency-tracking |
1442 | do not reject slow dependency extractors | |
1443 | --disable-dependency-tracking | |
1444 | speeds up one-time build | |
81ecdfbb RW |
1445 | --enable-shared[=PKGS] build shared libraries [default=no] |
1446 | --enable-static[=PKGS] build static libraries [default=yes] | |
d7040cdb SE |
1447 | --enable-fast-install[=PKGS] |
1448 | optimize for fast installation [default=yes] | |
979273e3 | 1449 | --disable-libtool-lock avoid locking (might break parallel builds) |
43e05cd4 | 1450 | --enable-checking enable run-time checks |
979273e3 | 1451 | --enable-targets alternative target configurations |
241a6c40 AM |
1452 | --enable-werror treat compile warnings as errors |
1453 | --enable-build-warnings enable build-time compiler warnings | |
d0ac1c44 SM |
1454 | --enable-maintainer-mode |
1455 | enable make rules and dependencies not useful (and | |
1456 | sometimes confusing) to the casual installer | |
979273e3 NN |
1457 | --enable-install-libbfd controls installation of libbfd and related headers |
1458 | --disable-nls do not use Native Language Support | |
1459 | --enable-cgen-maint=dir build cgen generated files | |
1460 | ||
1461 | Optional Packages: | |
1462 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1463 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1464 | --with-pic try to use only PIC/non-PIC objects [default=use |
1465 | both] | |
1466 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
252b5132 | 1467 | |
979273e3 NN |
1468 | Some influential environment variables: |
1469 | CC C compiler command | |
1470 | CFLAGS C compiler flags | |
1471 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1472 | nonstandard directory <lib dir> | |
81ecdfbb | 1473 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1474 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1475 | you have headers in a nonstandard directory <include dir> |
979273e3 | 1476 | CPP C preprocessor |
a2d91340 | 1477 | |
979273e3 NN |
1478 | Use these variables to override the choices made by `configure' or to help |
1479 | it to find libraries and programs with nonstandard names/locations. | |
1480 | ||
81ecdfbb | 1481 | Report bugs to the package provider. |
979273e3 | 1482 | _ACEOF |
81ecdfbb | 1483 | ac_status=$? |
a2d91340 AC |
1484 | fi |
1485 | ||
979273e3 NN |
1486 | if test "$ac_init_help" = "recursive"; then |
1487 | # If there are subdirs, report their specific --help. | |
979273e3 | 1488 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1489 | test -d "$ac_dir" || |
1490 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1491 | continue | |
979273e3 NN |
1492 | ac_builddir=. |
1493 | ||
81ecdfbb RW |
1494 | case "$ac_dir" in |
1495 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1496 | *) | |
1497 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1498 | # A ".." for each directory in $ac_dir_suffix. | |
1499 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1500 | case $ac_top_builddir_sub in | |
1501 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1502 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1503 | esac ;; | |
1504 | esac | |
1505 | ac_abs_top_builddir=$ac_pwd | |
1506 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1507 | # for backward compatibility: | |
1508 | ac_top_builddir=$ac_top_build_prefix | |
a2d91340 | 1509 | |
979273e3 | 1510 | case $srcdir in |
81ecdfbb | 1511 | .) # We are building in place. |
979273e3 | 1512 | ac_srcdir=. |
81ecdfbb RW |
1513 | ac_top_srcdir=$ac_top_builddir_sub |
1514 | ac_abs_top_srcdir=$ac_pwd ;; | |
1515 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
979273e3 | 1516 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1517 | ac_top_srcdir=$srcdir |
1518 | ac_abs_top_srcdir=$srcdir ;; | |
1519 | *) # Relative name. | |
1520 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1521 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1522 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
a2d91340 | 1523 | esac |
81ecdfbb RW |
1524 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1525 | ||
1526 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1527 | # Check for guested configure. | |
1528 | if test -f "$ac_srcdir/configure.gnu"; then | |
1529 | echo && | |
1530 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1531 | elif test -f "$ac_srcdir/configure"; then | |
1532 | echo && | |
1533 | $SHELL "$ac_srcdir/configure" --help=recursive | |
979273e3 | 1534 | else |
81ecdfbb RW |
1535 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1536 | fi || ac_status=$? | |
1537 | cd "$ac_pwd" || { ac_status=$?; break; } | |
979273e3 NN |
1538 | done |
1539 | fi | |
a2d91340 | 1540 | |
81ecdfbb | 1541 | test -n "$ac_init_help" && exit $ac_status |
979273e3 NN |
1542 | if $ac_init_version; then |
1543 | cat <<\_ACEOF | |
573fe3fb | 1544 | opcodes configure 2.36.50 |
d0ac1c44 | 1545 | generated by GNU Autoconf 2.69 |
252b5132 | 1546 | |
d0ac1c44 | 1547 | Copyright (C) 2012 Free Software Foundation, Inc. |
979273e3 NN |
1548 | This configure script is free software; the Free Software Foundation |
1549 | gives unlimited permission to copy, distribute and modify it. | |
1550 | _ACEOF | |
81ecdfbb | 1551 | exit |
979273e3 | 1552 | fi |
2c73f9d8 | 1553 | |
81ecdfbb RW |
1554 | ## ------------------------ ## |
1555 | ## Autoconf initialization. ## | |
1556 | ## ------------------------ ## | |
252b5132 | 1557 | |
81ecdfbb RW |
1558 | # ac_fn_c_try_compile LINENO |
1559 | # -------------------------- | |
1560 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1561 | ac_fn_c_try_compile () | |
1562 | { | |
1563 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1564 | rm -f conftest.$ac_objext | |
1565 | if { { ac_try="$ac_compile" | |
1566 | case "(($ac_try" in | |
1567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1568 | *) ac_try_echo=$ac_try;; | |
1569 | esac | |
1570 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1571 | $as_echo "$ac_try_echo"; } >&5 | |
1572 | (eval "$ac_compile") 2>conftest.err | |
1573 | ac_status=$? | |
1574 | if test -s conftest.err; then | |
1575 | grep -v '^ *+' conftest.err >conftest.er1 | |
1576 | cat conftest.er1 >&5 | |
1577 | mv -f conftest.er1 conftest.err | |
1578 | fi | |
1579 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1580 | test $ac_status = 0; } && { | |
1581 | test -z "$ac_c_werror_flag" || | |
1582 | test ! -s conftest.err | |
1583 | } && test -s conftest.$ac_objext; then : | |
1584 | ac_retval=0 | |
1585 | else | |
1586 | $as_echo "$as_me: failed program was:" >&5 | |
1587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
252b5132 | 1588 | |
81ecdfbb RW |
1589 | ac_retval=1 |
1590 | fi | |
d0ac1c44 SM |
1591 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1592 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1593 | |
1594 | } # ac_fn_c_try_compile | |
1595 | ||
81ecdfbb RW |
1596 | # ac_fn_c_try_cpp LINENO |
1597 | # ---------------------- | |
1598 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1599 | ac_fn_c_try_cpp () | |
1600 | { | |
1601 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1602 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1603 | case "(($ac_try" in | |
1604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1605 | *) ac_try_echo=$ac_try;; | |
1606 | esac | |
1607 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1608 | $as_echo "$ac_try_echo"; } >&5 | |
1609 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1610 | ac_status=$? | |
1611 | if test -s conftest.err; then | |
1612 | grep -v '^ *+' conftest.err >conftest.er1 | |
1613 | cat conftest.er1 >&5 | |
1614 | mv -f conftest.er1 conftest.err | |
1615 | fi | |
1616 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d0ac1c44 | 1617 | test $ac_status = 0; } > conftest.i && { |
81ecdfbb RW |
1618 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1619 | test ! -s conftest.err | |
1620 | }; then : | |
1621 | ac_retval=0 | |
1622 | else | |
1623 | $as_echo "$as_me: failed program was:" >&5 | |
1624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1625 | ||
1626 | ac_retval=1 | |
1627 | fi | |
d0ac1c44 SM |
1628 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1629 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1630 | |
1631 | } # ac_fn_c_try_cpp | |
1632 | ||
1633 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1634 | # ------------------------------------------------------- | |
1635 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1636 | # the include files in INCLUDES and setting the cache variable VAR | |
1637 | # accordingly. | |
1638 | ac_fn_c_check_header_mongrel () | |
1639 | { | |
1640 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d0ac1c44 | 1641 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1643 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1644 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1645 | $as_echo_n "(cached) " >&6 |
1646 | fi | |
1647 | eval ac_res=\$$3 | |
1648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1649 | $as_echo "$ac_res" >&6; } | |
1650 | else | |
1651 | # Is the header compilable? | |
1652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1653 | $as_echo_n "checking $2 usability... " >&6; } | |
1654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1655 | /* end confdefs.h. */ | |
1656 | $4 | |
1657 | #include <$2> | |
1658 | _ACEOF | |
1659 | if ac_fn_c_try_compile "$LINENO"; then : | |
1660 | ac_header_compiler=yes | |
1661 | else | |
1662 | ac_header_compiler=no | |
1663 | fi | |
1664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1666 | $as_echo "$ac_header_compiler" >&6; } | |
1667 | ||
1668 | # Is the header present? | |
1669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1670 | $as_echo_n "checking $2 presence... " >&6; } | |
1671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1672 | /* end confdefs.h. */ | |
1673 | #include <$2> | |
1674 | _ACEOF | |
1675 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1676 | ac_header_preproc=yes | |
1677 | else | |
1678 | ac_header_preproc=no | |
1679 | fi | |
d0ac1c44 | 1680 | rm -f conftest.err conftest.i conftest.$ac_ext |
81ecdfbb RW |
1681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1682 | $as_echo "$ac_header_preproc" >&6; } | |
1683 | ||
1684 | # So? What about this header? | |
1685 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1686 | yes:no: ) | |
1687 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1688 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1689 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1690 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1691 | ;; | |
1692 | no:yes:* ) | |
1693 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1694 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1696 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1697 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1698 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1700 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1702 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1703 | ;; | |
1704 | esac | |
1705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1706 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1707 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1708 | $as_echo_n "(cached) " >&6 |
1709 | else | |
1710 | eval "$3=\$ac_header_compiler" | |
1711 | fi | |
1712 | eval ac_res=\$$3 | |
1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1714 | $as_echo "$ac_res" >&6; } | |
1715 | fi | |
d0ac1c44 | 1716 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1717 | |
1718 | } # ac_fn_c_check_header_mongrel | |
1719 | ||
1720 | # ac_fn_c_try_run LINENO | |
1721 | # ---------------------- | |
1722 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1723 | # that executables *can* be run. | |
1724 | ac_fn_c_try_run () | |
1725 | { | |
1726 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1727 | if { { ac_try="$ac_link" | |
1728 | case "(($ac_try" in | |
1729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1730 | *) ac_try_echo=$ac_try;; | |
1731 | esac | |
1732 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1733 | $as_echo "$ac_try_echo"; } >&5 | |
1734 | (eval "$ac_link") 2>&5 | |
1735 | ac_status=$? | |
1736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1737 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1738 | { { case "(($ac_try" in | |
1739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1740 | *) ac_try_echo=$ac_try;; | |
1741 | esac | |
1742 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1743 | $as_echo "$ac_try_echo"; } >&5 | |
1744 | (eval "$ac_try") 2>&5 | |
1745 | ac_status=$? | |
1746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1747 | test $ac_status = 0; }; }; then : | |
1748 | ac_retval=0 | |
1749 | else | |
1750 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1751 | $as_echo "$as_me: failed program was:" >&5 | |
1752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1753 | ||
1754 | ac_retval=$ac_status | |
1755 | fi | |
1756 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1757 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1758 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1759 | |
1760 | } # ac_fn_c_try_run | |
1761 | ||
1762 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1763 | # ------------------------------------------------------- | |
1764 | # Tests whether HEADER exists and can be compiled using the include files in | |
1765 | # INCLUDES, setting the cache variable VAR accordingly. | |
1766 | ac_fn_c_check_header_compile () | |
1767 | { | |
1768 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1770 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1771 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1772 | $as_echo_n "(cached) " >&6 |
1773 | else | |
1774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1775 | /* end confdefs.h. */ | |
1776 | $4 | |
1777 | #include <$2> | |
1778 | _ACEOF | |
1779 | if ac_fn_c_try_compile "$LINENO"; then : | |
1780 | eval "$3=yes" | |
1781 | else | |
1782 | eval "$3=no" | |
1783 | fi | |
1784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1785 | fi | |
1786 | eval ac_res=\$$3 | |
1787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1788 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1789 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1790 | |
1791 | } # ac_fn_c_check_header_compile | |
1792 | ||
ab2af25e AM |
1793 | # ac_fn_c_try_link LINENO |
1794 | # ----------------------- | |
1795 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1796 | ac_fn_c_try_link () | |
1797 | { | |
1798 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1800 | if { { ac_try="$ac_link" | |
1801 | case "(($ac_try" in | |
1802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1803 | *) ac_try_echo=$ac_try;; | |
1804 | esac | |
1805 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1806 | $as_echo "$ac_try_echo"; } >&5 | |
1807 | (eval "$ac_link") 2>conftest.err | |
1808 | ac_status=$? | |
1809 | if test -s conftest.err; then | |
1810 | grep -v '^ *+' conftest.err >conftest.er1 | |
1811 | cat conftest.er1 >&5 | |
1812 | mv -f conftest.er1 conftest.err | |
1813 | fi | |
1814 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1815 | test $ac_status = 0; } && { | |
1816 | test -z "$ac_c_werror_flag" || | |
1817 | test ! -s conftest.err | |
1818 | } && test -s conftest$ac_exeext && { | |
1819 | test "$cross_compiling" = yes || | |
1820 | test -x conftest$ac_exeext | |
1821 | }; then : | |
1822 | ac_retval=0 | |
1823 | else | |
1824 | $as_echo "$as_me: failed program was:" >&5 | |
1825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1826 | ||
1827 | ac_retval=1 | |
1828 | fi | |
1829 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1830 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1831 | # interfere with the next link command; also delete a directory that is | |
1832 | # left behind by Apple's compiler. We do this before executing the actions. | |
1833 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1834 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1835 | as_fn_set_status $ac_retval | |
1836 | ||
1837 | } # ac_fn_c_try_link | |
1838 | ||
81ecdfbb RW |
1839 | # ac_fn_c_check_func LINENO FUNC VAR |
1840 | # ---------------------------------- | |
1841 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1842 | ac_fn_c_check_func () | |
1843 | { | |
1844 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1846 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1847 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1848 | $as_echo_n "(cached) " >&6 |
1849 | else | |
1850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1851 | /* end confdefs.h. */ | |
1852 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1853 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1854 | #define $2 innocuous_$2 | |
1855 | ||
1856 | /* System header to define __stub macros and hopefully few prototypes, | |
1857 | which can conflict with char $2 (); below. | |
1858 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1859 | <limits.h> exists even on freestanding compilers. */ | |
1860 | ||
1861 | #ifdef __STDC__ | |
1862 | # include <limits.h> | |
1863 | #else | |
1864 | # include <assert.h> | |
1865 | #endif | |
1866 | ||
1867 | #undef $2 | |
1868 | ||
1869 | /* Override any GCC internal prototype to avoid an error. | |
1870 | Use char because int might match the return type of a GCC | |
1871 | builtin and then its argument prototype would still apply. */ | |
1872 | #ifdef __cplusplus | |
1873 | extern "C" | |
1874 | #endif | |
1875 | char $2 (); | |
1876 | /* The GNU C library defines this for functions which it implements | |
1877 | to always fail with ENOSYS. Some functions are actually named | |
1878 | something starting with __ and the normal name is an alias. */ | |
1879 | #if defined __stub_$2 || defined __stub___$2 | |
1880 | choke me | |
1881 | #endif | |
1882 | ||
1883 | int | |
1884 | main () | |
1885 | { | |
1886 | return $2 (); | |
1887 | ; | |
1888 | return 0; | |
1889 | } | |
1890 | _ACEOF | |
1891 | if ac_fn_c_try_link "$LINENO"; then : | |
1892 | eval "$3=yes" | |
1893 | else | |
1894 | eval "$3=no" | |
1895 | fi | |
1896 | rm -f core conftest.err conftest.$ac_objext \ | |
1897 | conftest$ac_exeext conftest.$ac_ext | |
1898 | fi | |
1899 | eval ac_res=\$$3 | |
1900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1901 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1902 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1903 | |
1904 | } # ac_fn_c_check_func | |
1905 | ||
d0ac1c44 SM |
1906 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
1907 | # --------------------------------------------- | |
1908 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
1909 | # accordingly. | |
81ecdfbb RW |
1910 | ac_fn_c_check_decl () |
1911 | { | |
1912 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
360cfc9c AM |
1913 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1914 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1916 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
d0ac1c44 | 1917 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1918 | $as_echo_n "(cached) " >&6 |
1919 | else | |
1920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1921 | /* end confdefs.h. */ | |
1922 | $4 | |
1923 | int | |
1924 | main () | |
1925 | { | |
360cfc9c AM |
1926 | #ifndef $as_decl_name |
1927 | #ifdef __cplusplus | |
1928 | (void) $as_decl_use; | |
1929 | #else | |
1930 | (void) $as_decl_name; | |
1931 | #endif | |
81ecdfbb RW |
1932 | #endif |
1933 | ||
1934 | ; | |
1935 | return 0; | |
1936 | } | |
1937 | _ACEOF | |
1938 | if ac_fn_c_try_compile "$LINENO"; then : | |
1939 | eval "$3=yes" | |
1940 | else | |
1941 | eval "$3=no" | |
1942 | fi | |
1943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1944 | fi | |
1945 | eval ac_res=\$$3 | |
1946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1947 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1948 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1949 | |
1950 | } # ac_fn_c_check_decl | |
1951 | cat >config.log <<_ACEOF | |
1952 | This file contains any messages produced by compilers while | |
1953 | running configure, to aid debugging if configure makes a mistake. | |
1954 | ||
573fe3fb | 1955 | It was created by opcodes $as_me 2.36.50, which was |
d0ac1c44 | 1956 | generated by GNU Autoconf 2.69. Invocation command line was |
81ecdfbb RW |
1957 | |
1958 | $ $0 $@ | |
1959 | ||
1960 | _ACEOF | |
1961 | exec 5>>config.log | |
1962 | { | |
1963 | cat <<_ASUNAME | |
1964 | ## --------- ## | |
1965 | ## Platform. ## | |
1966 | ## --------- ## | |
1967 | ||
1968 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1969 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1970 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1971 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1972 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1973 | ||
1974 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1975 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
979273e3 NN |
1976 | |
1977 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1978 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1979 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1980 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
979273e3 NN |
1981 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1982 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1983 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1984 | ||
1985 | _ASUNAME | |
1986 | ||
1987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1988 | for as_dir in $PATH | |
1989 | do | |
1990 | IFS=$as_save_IFS | |
1991 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1992 | $as_echo "PATH: $as_dir" |
1993 | done | |
1994 | IFS=$as_save_IFS | |
252b5132 | 1995 | |
979273e3 | 1996 | } >&5 |
75798298 | 1997 | |
979273e3 | 1998 | cat >&5 <<_ACEOF |
252b5132 | 1999 | |
252b5132 | 2000 | |
979273e3 NN |
2001 | ## ----------- ## |
2002 | ## Core tests. ## | |
2003 | ## ----------- ## | |
2004 | ||
2005 | _ACEOF | |
2006 | ||
2007 | ||
2008 | # Keep a trace of the command line. | |
2009 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2010 | # Strip out --silent because we don't want to record it for future runs. | |
2011 | # Also quote any args containing shell meta-characters. | |
2012 | # Make two passes to allow for proper duplicate-argument suppression. | |
2013 | ac_configure_args= | |
2014 | ac_configure_args0= | |
2015 | ac_configure_args1= | |
979273e3 NN |
2016 | ac_must_keep_next=false |
2017 | for ac_pass in 1 2 | |
2018 | do | |
2019 | for ac_arg | |
2020 | do | |
2021 | case $ac_arg in | |
2022 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2023 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2024 | | -silent | --silent | --silen | --sile | --sil) | |
2025 | continue ;; | |
81ecdfbb RW |
2026 | *\'*) |
2027 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
979273e3 NN |
2028 | esac |
2029 | case $ac_pass in | |
81ecdfbb | 2030 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
979273e3 | 2031 | 2) |
81ecdfbb | 2032 | as_fn_append ac_configure_args1 " '$ac_arg'" |
979273e3 NN |
2033 | if test $ac_must_keep_next = true; then |
2034 | ac_must_keep_next=false # Got value, back to normal. | |
2035 | else | |
2036 | case $ac_arg in | |
2037 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2038 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2039 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2040 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2041 | case "$ac_configure_args0 " in | |
2042 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2043 | esac | |
2044 | ;; | |
2045 | -* ) ac_must_keep_next=true ;; | |
2046 | esac | |
2047 | fi | |
81ecdfbb | 2048 | as_fn_append ac_configure_args " '$ac_arg'" |
979273e3 NN |
2049 | ;; |
2050 | esac | |
2051 | done | |
2052 | done | |
81ecdfbb RW |
2053 | { ac_configure_args0=; unset ac_configure_args0;} |
2054 | { ac_configure_args1=; unset ac_configure_args1;} | |
979273e3 NN |
2055 | |
2056 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2057 | # config.log. We remove comments because anyway the quotes in there | |
2058 | # would cause problems or look ugly. | |
81ecdfbb RW |
2059 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2060 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
979273e3 NN |
2061 | trap 'exit_status=$? |
2062 | # Save into config.log some information that might help in debugging. | |
2063 | { | |
2064 | echo | |
2065 | ||
d0ac1c44 | 2066 | $as_echo "## ---------------- ## |
979273e3 | 2067 | ## Cache variables. ## |
d0ac1c44 | 2068 | ## ---------------- ##" |
979273e3 NN |
2069 | echo |
2070 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2071 | ( |
2072 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2073 | eval ac_val=\$$ac_var | |
2074 | case $ac_val in #( | |
2075 | *${as_nl}*) | |
2076 | case $ac_var in #( | |
2077 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2078 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2079 | esac | |
2080 | case $ac_var in #( | |
2081 | _ | IFS | as_nl) ;; #( | |
2082 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2083 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2084 | esac ;; | |
2085 | esac | |
2086 | done | |
979273e3 | 2087 | (set) 2>&1 | |
81ecdfbb RW |
2088 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2089 | *${as_nl}ac_space=\ *) | |
979273e3 | 2090 | sed -n \ |
81ecdfbb RW |
2091 | "s/'\''/'\''\\\\'\'''\''/g; |
2092 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2093 | ;; #( | |
979273e3 | 2094 | *) |
81ecdfbb | 2095 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
979273e3 | 2096 | ;; |
81ecdfbb RW |
2097 | esac | |
2098 | sort | |
2099 | ) | |
979273e3 NN |
2100 | echo |
2101 | ||
d0ac1c44 | 2102 | $as_echo "## ----------------- ## |
979273e3 | 2103 | ## Output variables. ## |
d0ac1c44 | 2104 | ## ----------------- ##" |
979273e3 NN |
2105 | echo |
2106 | for ac_var in $ac_subst_vars | |
2107 | do | |
81ecdfbb RW |
2108 | eval ac_val=\$$ac_var |
2109 | case $ac_val in | |
2110 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2111 | esac | |
2112 | $as_echo "$ac_var='\''$ac_val'\''" | |
979273e3 NN |
2113 | done | sort |
2114 | echo | |
2115 | ||
2116 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2117 | $as_echo "## ------------------- ## |
81ecdfbb | 2118 | ## File substitutions. ## |
d0ac1c44 | 2119 | ## ------------------- ##" |
979273e3 NN |
2120 | echo |
2121 | for ac_var in $ac_subst_files | |
2122 | do | |
81ecdfbb RW |
2123 | eval ac_val=\$$ac_var |
2124 | case $ac_val in | |
2125 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2126 | esac | |
2127 | $as_echo "$ac_var='\''$ac_val'\''" | |
979273e3 NN |
2128 | done | sort |
2129 | echo | |
2130 | fi | |
2131 | ||
2132 | if test -s confdefs.h; then | |
d0ac1c44 | 2133 | $as_echo "## ----------- ## |
979273e3 | 2134 | ## confdefs.h. ## |
d0ac1c44 | 2135 | ## ----------- ##" |
979273e3 | 2136 | echo |
81ecdfbb | 2137 | cat confdefs.h |
979273e3 NN |
2138 | echo |
2139 | fi | |
2140 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2141 | $as_echo "$as_me: caught signal $ac_signal" |
2142 | $as_echo "$as_me: exit $exit_status" | |
979273e3 | 2143 | } >&5 |
81ecdfbb RW |
2144 | rm -f core *.core core.conftest.* && |
2145 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
979273e3 | 2146 | exit $exit_status |
81ecdfbb | 2147 | ' 0 |
979273e3 | 2148 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2149 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
979273e3 NN |
2150 | done |
2151 | ac_signal=0 | |
2152 | ||
2153 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2154 | rm -f -r conftest* confdefs.h |
2155 | ||
2156 | $as_echo "/* confdefs.h */" > confdefs.h | |
979273e3 NN |
2157 | |
2158 | # Predefined preprocessor variables. | |
2159 | ||
2160 | cat >>confdefs.h <<_ACEOF | |
2161 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2162 | _ACEOF | |
2163 | ||
979273e3 NN |
2164 | cat >>confdefs.h <<_ACEOF |
2165 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2166 | _ACEOF | |
2167 | ||
979273e3 NN |
2168 | cat >>confdefs.h <<_ACEOF |
2169 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2170 | _ACEOF | |
2171 | ||
979273e3 NN |
2172 | cat >>confdefs.h <<_ACEOF |
2173 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2174 | _ACEOF | |
2175 | ||
979273e3 NN |
2176 | cat >>confdefs.h <<_ACEOF |
2177 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2178 | _ACEOF | |
2179 | ||
81ecdfbb RW |
2180 | cat >>confdefs.h <<_ACEOF |
2181 | #define PACKAGE_URL "$PACKAGE_URL" | |
2182 | _ACEOF | |
2183 | ||
979273e3 NN |
2184 | |
2185 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2186 | # Prefer an explicitly selected file to automatically selected ones. |
2187 | ac_site_file1=NONE | |
2188 | ac_site_file2=NONE | |
2189 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2190 | # We do not want a PATH search for config.site. |
2191 | case $CONFIG_SITE in #(( | |
2192 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2193 | */*) ac_site_file1=$CONFIG_SITE;; | |
2194 | *) ac_site_file1=./$CONFIG_SITE;; | |
2195 | esac | |
81ecdfbb RW |
2196 | elif test "x$prefix" != xNONE; then |
2197 | ac_site_file1=$prefix/share/config.site | |
2198 | ac_site_file2=$prefix/etc/config.site | |
2199 | else | |
2200 | ac_site_file1=$ac_default_prefix/share/config.site | |
2201 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2202 | fi | |
2203 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2204 | do | |
2205 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2206 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2207 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2208 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
979273e3 | 2209 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2210 | . "$ac_site_file" \ |
2211 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2212 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2213 | as_fn_error $? "failed to load site script $ac_site_file | |
2214 | See \`config.log' for more details" "$LINENO" 5; } | |
979273e3 NN |
2215 | fi |
2216 | done | |
2217 | ||
2218 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2219 | # Some versions of bash will fail to source /dev/null (special files |
2220 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2221 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2222 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2223 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
979273e3 | 2224 | case $cache_file in |
81ecdfbb RW |
2225 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2226 | *) . "./$cache_file";; | |
979273e3 NN |
2227 | esac |
2228 | fi | |
2229 | else | |
81ecdfbb RW |
2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2231 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
979273e3 NN |
2232 | >$cache_file |
2233 | fi | |
2234 | ||
2235 | # Check that the precious variables saved in the cache have kept the same | |
2236 | # value. | |
2237 | ac_cache_corrupted=false | |
81ecdfbb | 2238 | for ac_var in $ac_precious_vars; do |
979273e3 NN |
2239 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2240 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2241 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2242 | eval ac_new_val=\$ac_env_${ac_var}_value | |
979273e3 NN |
2243 | case $ac_old_set,$ac_new_set in |
2244 | set,) | |
81ecdfbb RW |
2245 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2246 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
979273e3 NN |
2247 | ac_cache_corrupted=: ;; |
2248 | ,set) | |
81ecdfbb RW |
2249 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2250 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
979273e3 NN |
2251 | ac_cache_corrupted=: ;; |
2252 | ,);; | |
2253 | *) | |
2254 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2255 | # differences in whitespace do not lead to failure. |
2256 | ac_old_val_w=`echo x $ac_old_val` | |
2257 | ac_new_val_w=`echo x $ac_new_val` | |
2258 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2259 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2260 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2261 | ac_cache_corrupted=: | |
2262 | else | |
2263 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2264 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2265 | eval $ac_var=\$ac_old_val | |
2266 | fi | |
2267 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2268 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2269 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2270 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
979273e3 NN |
2271 | fi;; |
2272 | esac | |
2273 | # Pass precious variables to config.status. | |
2274 | if test "$ac_new_set" = set; then | |
2275 | case $ac_new_val in | |
81ecdfbb | 2276 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
979273e3 NN |
2277 | *) ac_arg=$ac_var=$ac_new_val ;; |
2278 | esac | |
2279 | case " $ac_configure_args " in | |
2280 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2281 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
979273e3 NN |
2282 | esac |
2283 | fi | |
2284 | done | |
2285 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2286 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2287 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2289 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2290 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
979273e3 | 2291 | fi |
81ecdfbb RW |
2292 | ## -------------------- ## |
2293 | ## Main body of script. ## | |
2294 | ## -------------------- ## | |
979273e3 NN |
2295 | |
2296 | ac_ext=c | |
2297 | ac_cpp='$CPP $CPPFLAGS' | |
2298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2301 | ||
2302 | ||
2303 | ||
979273e3 NN |
2304 | |
2305 | ||
2306 | ||
2307 | ||
2308 | ac_aux_dir= | |
81ecdfbb | 2309 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
d0ac1c44 SM |
2310 | if test -f "$ac_dir/install-sh"; then |
2311 | ac_aux_dir=$ac_dir | |
2312 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2313 | break | |
2314 | elif test -f "$ac_dir/install.sh"; then | |
2315 | ac_aux_dir=$ac_dir | |
2316 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2317 | break | |
2318 | elif test -f "$ac_dir/shtool"; then | |
2319 | ac_aux_dir=$ac_dir | |
2320 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2321 | break | |
2322 | fi | |
979273e3 NN |
2323 | done |
2324 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2325 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
979273e3 | 2326 | fi |
81ecdfbb RW |
2327 | |
2328 | # These three variables are undocumented and unsupported, | |
2329 | # and are intended to be withdrawn in a future Autoconf release. | |
2330 | # They can cause serious problems if a builder's source tree is in a directory | |
2331 | # whose full name contains unusual characters. | |
2332 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2333 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2334 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2335 | ||
979273e3 NN |
2336 | |
2337 | # Make sure we can run config.sub. | |
81ecdfbb | 2338 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d0ac1c44 | 2339 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2340 | |
2341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2342 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2343 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2344 | $as_echo_n "(cached) " >&6 |
2345 | else | |
2346 | ac_build_alias=$build_alias | |
2347 | test "x$ac_build_alias" = x && | |
2348 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2349 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2350 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2351 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2352 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2353 | |
2354 | fi | |
2355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2356 | $as_echo "$ac_cv_build" >&6; } | |
2357 | case $ac_cv_build in | |
2358 | *-*-*) ;; | |
d0ac1c44 | 2359 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2360 | esac |
979273e3 | 2361 | build=$ac_cv_build |
81ecdfbb RW |
2362 | ac_save_IFS=$IFS; IFS='-' |
2363 | set x $ac_cv_build | |
2364 | shift | |
2365 | build_cpu=$1 | |
2366 | build_vendor=$2 | |
2367 | shift; shift | |
2368 | # Remember, the first character of IFS is used to create $*, | |
2369 | # except with old shells: | |
2370 | build_os=$* | |
2371 | IFS=$ac_save_IFS | |
2372 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
979273e3 NN |
2373 | |
2374 | ||
81ecdfbb RW |
2375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2376 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2377 | if ${ac_cv_host+:} false; then : |
81ecdfbb | 2378 | $as_echo_n "(cached) " >&6 |
979273e3 | 2379 | else |
81ecdfbb RW |
2380 | if test "x$host_alias" = x; then |
2381 | ac_cv_host=$ac_cv_build | |
2382 | else | |
2383 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d0ac1c44 | 2384 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2385 | fi |
979273e3 NN |
2386 | |
2387 | fi | |
81ecdfbb RW |
2388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2389 | $as_echo "$ac_cv_host" >&6; } | |
2390 | case $ac_cv_host in | |
2391 | *-*-*) ;; | |
d0ac1c44 | 2392 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2393 | esac |
979273e3 | 2394 | host=$ac_cv_host |
81ecdfbb RW |
2395 | ac_save_IFS=$IFS; IFS='-' |
2396 | set x $ac_cv_host | |
2397 | shift | |
2398 | host_cpu=$1 | |
2399 | host_vendor=$2 | |
2400 | shift; shift | |
2401 | # Remember, the first character of IFS is used to create $*, | |
2402 | # except with old shells: | |
2403 | host_os=$* | |
2404 | IFS=$ac_save_IFS | |
2405 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
979273e3 NN |
2406 | |
2407 | ||
81ecdfbb RW |
2408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2409 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 2410 | if ${ac_cv_target+:} false; then : |
81ecdfbb RW |
2411 | $as_echo_n "(cached) " >&6 |
2412 | else | |
2413 | if test "x$target_alias" = x; then | |
2414 | ac_cv_target=$ac_cv_host | |
979273e3 | 2415 | else |
81ecdfbb | 2416 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
d0ac1c44 | 2417 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
81ecdfbb | 2418 | fi |
979273e3 NN |
2419 | |
2420 | fi | |
81ecdfbb RW |
2421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2422 | $as_echo "$ac_cv_target" >&6; } | |
2423 | case $ac_cv_target in | |
2424 | *-*-*) ;; | |
d0ac1c44 | 2425 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb | 2426 | esac |
979273e3 | 2427 | target=$ac_cv_target |
81ecdfbb RW |
2428 | ac_save_IFS=$IFS; IFS='-' |
2429 | set x $ac_cv_target | |
2430 | shift | |
2431 | target_cpu=$1 | |
2432 | target_vendor=$2 | |
2433 | shift; shift | |
2434 | # Remember, the first character of IFS is used to create $*, | |
2435 | # except with old shells: | |
2436 | target_os=$* | |
2437 | IFS=$ac_save_IFS | |
2438 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
979273e3 NN |
2439 | |
2440 | ||
2441 | # The aliases save the names the user supplied, while $host etc. | |
2442 | # will get canonicalized. | |
2443 | test -n "$target_alias" && | |
2444 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2445 | NONENONEs,x,x, && | |
2446 | program_prefix=${target_alias}- | |
d0ac1c44 | 2447 | |
ab2af25e AM |
2448 | am__api_version='1.15' |
2449 | ||
2450 | # Find a good install program. We prefer a C program (faster), | |
2451 | # so one script is as good as another. But avoid the broken or | |
2452 | # incompatible versions: | |
2453 | # SysV /etc/install, /usr/sbin/install | |
2454 | # SunOS /usr/etc/install | |
2455 | # IRIX /sbin/install | |
2456 | # AIX /bin/install | |
2457 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2458 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2459 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2460 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2461 | # OS/2's system install, which has a completely different semantic | |
2462 | # ./install, which can be erroneously created by make from ./install.sh. | |
2463 | # Reject install programs that cannot install multiple files. | |
2464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2465 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2466 | if test -z "$INSTALL"; then | |
2467 | if ${ac_cv_path_install+:} false; then : | |
81ecdfbb | 2468 | $as_echo_n "(cached) " >&6 |
979273e3 | 2469 | else |
ab2af25e | 2470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
979273e3 NN |
2471 | for as_dir in $PATH |
2472 | do | |
2473 | IFS=$as_save_IFS | |
2474 | test -z "$as_dir" && as_dir=. | |
ab2af25e AM |
2475 | # Account for people who put trailing slashes in PATH elements. |
2476 | case $as_dir/ in #(( | |
2477 | ./ | .// | /[cC]/* | \ | |
2478 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2479 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2480 | /usr/ucb/* ) ;; | |
2481 | *) | |
2482 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2483 | # Don't use installbsd from OSF since it installs stuff as root | |
2484 | # by default. | |
2485 | for ac_prog in ginstall scoinst install; do | |
2486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2487 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2488 | if test $ac_prog = install && | |
2489 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2490 | # AIX install. It has an incompatible calling convention. | |
2491 | : | |
2492 | elif test $ac_prog = install && | |
2493 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2494 | # program-specific install script used by HP pwplus--don't use. | |
2495 | : | |
2496 | else | |
2497 | rm -rf conftest.one conftest.two conftest.dir | |
2498 | echo one > conftest.one | |
2499 | echo two > conftest.two | |
2500 | mkdir conftest.dir | |
2501 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2502 | test -s conftest.one && test -s conftest.two && | |
2503 | test -s conftest.dir/conftest.one && | |
2504 | test -s conftest.dir/conftest.two | |
2505 | then | |
2506 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2507 | break 3 | |
2508 | fi | |
2509 | fi | |
2510 | fi | |
2511 | done | |
2512 | done | |
2513 | ;; | |
2514 | esac | |
2515 | ||
81ecdfbb RW |
2516 | done |
2517 | IFS=$as_save_IFS | |
979273e3 | 2518 | |
ab2af25e | 2519 | rm -rf conftest.one conftest.two conftest.dir |
81ecdfbb | 2520 | |
979273e3 | 2521 | fi |
ab2af25e AM |
2522 | if test "${ac_cv_path_install+set}" = set; then |
2523 | INSTALL=$ac_cv_path_install | |
2524 | else | |
2525 | # As a last resort, use the slow shell script. Don't cache a | |
2526 | # value for INSTALL within a source directory, because that will | |
2527 | # break other packages using the cache if that directory is | |
2528 | # removed, or if the value is a relative name. | |
2529 | INSTALL=$ac_install_sh | |
252b5132 RH |
2530 | fi |
2531 | fi | |
81ecdfbb RW |
2532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2533 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
2534 | |
2535 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2536 | # It thinks the first close brace ends the variable substitution. | |
2537 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2538 | ||
979273e3 | 2539 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2540 | |
2541 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2542 | ||
81ecdfbb RW |
2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2544 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
81ecdfbb RW |
2545 | # Reject unsafe characters in $srcdir or the absolute working directory |
2546 | # name. Accept space and tab only in the latter. | |
2547 | am_lf=' | |
2548 | ' | |
2549 | case `pwd` in | |
2550 | *[\\\"\#\$\&\'\`$am_lf]*) | |
d0ac1c44 | 2551 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
81ecdfbb RW |
2552 | esac |
2553 | case $srcdir in | |
2554 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
d0ac1c44 | 2555 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
81ecdfbb RW |
2556 | esac |
2557 | ||
d0ac1c44 | 2558 | # Do 'set' in a subshell so we don't clobber the current shell's |
252b5132 RH |
2559 | # arguments. Must try -L first in case configure is actually a |
2560 | # symlink; some systems play weird games with the mod time of symlinks | |
2561 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2562 | # directory). | |
2563 | if ( | |
d0ac1c44 SM |
2564 | am_has_slept=no |
2565 | for am_try in 1 2; do | |
2566 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2567 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2568 | if test "$*" = "X"; then | |
2569 | # -L didn't work. | |
2570 | set X `ls -t "$srcdir/configure" conftest.file` | |
2571 | fi | |
2572 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2573 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2574 | ||
2575 | # If neither matched, then we have a broken ls. This can happen | |
2576 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2577 | # broken ls alias from the environment. This has actually | |
2578 | # happened. Such a system could not be considered "sane". | |
2579 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2580 | alias in your environment" "$LINENO" 5 | |
2581 | fi | |
2582 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2583 | break | |
2584 | fi | |
2585 | # Just in case. | |
2586 | sleep 1 | |
2587 | am_has_slept=yes | |
2588 | done | |
8ae85421 | 2589 | test "$2" = conftest.file |
252b5132 RH |
2590 | ) |
2591 | then | |
2592 | # Ok. | |
2593 | : | |
2594 | else | |
d0ac1c44 | 2595 | as_fn_error $? "newly created file is older than distributed files! |
81ecdfbb | 2596 | Check your system clock" "$LINENO" 5 |
252b5132 | 2597 | fi |
81ecdfbb RW |
2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2599 | $as_echo "yes" >&6; } | |
d0ac1c44 SM |
2600 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2601 | # generated files are strictly newer. | |
2602 | am_sleep_pid= | |
2603 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2604 | ( sleep 1 ) & | |
2605 | am_sleep_pid=$! | |
2606 | fi | |
2607 | ||
2608 | rm -f conftest.file | |
2609 | ||
252b5132 | 2610 | test "$program_prefix" != NONE && |
81ecdfbb | 2611 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
252b5132 RH |
2612 | # Use a double $ so make ignores it. |
2613 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2614 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2615 | # Double any \ or $. | |
979273e3 | 2616 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2617 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2618 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
979273e3 | 2619 | |
ab2af25e AM |
2620 | # Expand $ac_aux_dir to an absolute path. |
2621 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2622 | ||
81ecdfbb RW |
2623 | if test x"${MISSING+set}" != xset; then |
2624 | case $am_aux_dir in | |
2625 | *\ * | *\ *) | |
2626 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2627 | *) | |
2628 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2629 | esac | |
2630 | fi | |
8ae85421 | 2631 | # Use eval to expand $SHELL |
d0ac1c44 SM |
2632 | if eval "$MISSING --is-lightweight"; then |
2633 | am_missing_run="$MISSING " | |
8ae85421 AM |
2634 | else |
2635 | am_missing_run= | |
d0ac1c44 SM |
2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2637 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
81ecdfbb RW |
2638 | fi |
2639 | ||
d0ac1c44 | 2640 | if test x"${install_sh+set}" != xset; then |
81ecdfbb RW |
2641 | case $am_aux_dir in |
2642 | *\ * | *\ *) | |
2643 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2644 | *) | |
2645 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2646 | esac | |
2647 | fi | |
2648 | ||
d0ac1c44 SM |
2649 | # Installed binaries are usually stripped using 'strip' when the user |
2650 | # run "make install-strip". However 'strip' might not be the right | |
81ecdfbb | 2651 | # tool to use in cross-compilation environments, therefore Automake |
d0ac1c44 | 2652 | # will honor the 'STRIP' environment variable to overrule this program. |
81ecdfbb RW |
2653 | if test "$cross_compiling" != no; then |
2654 | if test -n "$ac_tool_prefix"; then | |
2655 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2656 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2658 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2659 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb RW |
2660 | $as_echo_n "(cached) " >&6 |
2661 | else | |
2662 | if test -n "$STRIP"; then | |
2663 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2664 | else | |
2665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2666 | for as_dir in $PATH | |
2667 | do | |
2668 | IFS=$as_save_IFS | |
2669 | test -z "$as_dir" && as_dir=. | |
2670 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2671 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
2672 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2673 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2674 | break 2 | |
2675 | fi | |
2676 | done | |
2677 | done | |
2678 | IFS=$as_save_IFS | |
2679 | ||
2680 | fi | |
2681 | fi | |
2682 | STRIP=$ac_cv_prog_STRIP | |
2683 | if test -n "$STRIP"; then | |
2684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2685 | $as_echo "$STRIP" >&6; } | |
2686 | else | |
2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2688 | $as_echo "no" >&6; } | |
2689 | fi | |
2690 | ||
2691 | ||
2692 | fi | |
2693 | if test -z "$ac_cv_prog_STRIP"; then | |
2694 | ac_ct_STRIP=$STRIP | |
2695 | # Extract the first word of "strip", so it can be a program name with args. | |
2696 | set dummy strip; ac_word=$2 | |
2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2698 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2699 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
81ecdfbb RW |
2700 | $as_echo_n "(cached) " >&6 |
2701 | else | |
2702 | if test -n "$ac_ct_STRIP"; then | |
2703 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2704 | else | |
2705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2706 | for as_dir in $PATH | |
2707 | do | |
2708 | IFS=$as_save_IFS | |
2709 | test -z "$as_dir" && as_dir=. | |
2710 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2711 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
2712 | ac_cv_prog_ac_ct_STRIP="strip" |
2713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2714 | break 2 | |
2715 | fi | |
2716 | done | |
8ae85421 | 2717 | done |
81ecdfbb RW |
2718 | IFS=$as_save_IFS |
2719 | ||
2720 | fi | |
2721 | fi | |
2722 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2723 | if test -n "$ac_ct_STRIP"; then | |
2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2725 | $as_echo "$ac_ct_STRIP" >&6; } | |
2726 | else | |
2727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2728 | $as_echo "no" >&6; } | |
2729 | fi | |
2730 | ||
2731 | if test "x$ac_ct_STRIP" = x; then | |
2732 | STRIP=":" | |
2733 | else | |
2734 | case $cross_compiling:$ac_tool_warned in | |
2735 | yes:) | |
2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2737 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2738 | ac_tool_warned=yes ;; | |
2739 | esac | |
2740 | STRIP=$ac_ct_STRIP | |
2741 | fi | |
2742 | else | |
2743 | STRIP="$ac_cv_prog_STRIP" | |
2744 | fi | |
2745 | ||
2746 | fi | |
2747 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2748 | ||
2749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2750 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2751 | if test -z "$MKDIR_P"; then | |
d0ac1c44 | 2752 | if ${ac_cv_path_mkdir+:} false; then : |
81ecdfbb RW |
2753 | $as_echo_n "(cached) " >&6 |
2754 | else | |
2755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2756 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2757 | do | |
2758 | IFS=$as_save_IFS | |
2759 | test -z "$as_dir" && as_dir=. | |
2760 | for ac_prog in mkdir gmkdir; do | |
2761 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2762 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
81ecdfbb RW |
2763 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2764 | 'mkdir (GNU coreutils) '* | \ | |
2765 | 'mkdir (coreutils) '* | \ | |
2766 | 'mkdir (fileutils) '4.1*) | |
2767 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2768 | break 3;; | |
2769 | esac | |
2770 | done | |
2771 | done | |
2772 | done | |
2773 | IFS=$as_save_IFS | |
2774 | ||
2775 | fi | |
2776 | ||
d0ac1c44 | 2777 | test -d ./--version && rmdir ./--version |
81ecdfbb RW |
2778 | if test "${ac_cv_path_mkdir+set}" = set; then |
2779 | MKDIR_P="$ac_cv_path_mkdir -p" | |
8ae85421 | 2780 | else |
81ecdfbb RW |
2781 | # As a last resort, use the slow shell script. Don't cache a |
2782 | # value for MKDIR_P within a source directory, because that will | |
2783 | # break other packages using the cache if that directory is | |
2784 | # removed, or if the value is a relative name. | |
81ecdfbb | 2785 | MKDIR_P="$ac_install_sh -d" |
8ae85421 AM |
2786 | fi |
2787 | fi | |
81ecdfbb RW |
2788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
2789 | $as_echo "$MKDIR_P" >&6; } | |
2790 | ||
8ae85421 AM |
2791 | for ac_prog in gawk mawk nawk awk |
2792 | do | |
2793 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2794 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2796 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2797 | if ${ac_cv_prog_AWK+:} false; then : |
81ecdfbb | 2798 | $as_echo_n "(cached) " >&6 |
8ae85421 AM |
2799 | else |
2800 | if test -n "$AWK"; then | |
2801 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2802 | else | |
2803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2804 | for as_dir in $PATH | |
2805 | do | |
2806 | IFS=$as_save_IFS | |
2807 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2808 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2809 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8ae85421 | 2810 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 2811 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8ae85421 AM |
2812 | break 2 |
2813 | fi | |
2814 | done | |
81ecdfbb RW |
2815 | done |
2816 | IFS=$as_save_IFS | |
8ae85421 AM |
2817 | |
2818 | fi | |
2819 | fi | |
2820 | AWK=$ac_cv_prog_AWK | |
2821 | if test -n "$AWK"; then | |
81ecdfbb RW |
2822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
2823 | $as_echo "$AWK" >&6; } | |
8ae85421 | 2824 | else |
81ecdfbb RW |
2825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2826 | $as_echo "no" >&6; } | |
8ae85421 AM |
2827 | fi |
2828 | ||
81ecdfbb | 2829 | |
8ae85421 AM |
2830 | test -n "$AWK" && break |
2831 | done | |
2832 | ||
81ecdfbb RW |
2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2834 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2835 | set x ${MAKE-make} | |
2836 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0ac1c44 | 2837 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
81ecdfbb | 2838 | $as_echo_n "(cached) " >&6 |
979273e3 NN |
2839 | else |
2840 | cat >conftest.make <<\_ACEOF | |
81ecdfbb | 2841 | SHELL = /bin/sh |
252b5132 | 2842 | all: |
81ecdfbb | 2843 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
979273e3 | 2844 | _ACEOF |
d0ac1c44 | 2845 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
81ecdfbb RW |
2846 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2847 | *@@@%%%=?*=@@@%%%*) | |
2848 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2849 | *) | |
2850 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2851 | esac | |
979273e3 | 2852 | rm -f conftest.make |
252b5132 | 2853 | fi |
81ecdfbb RW |
2854 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2856 | $as_echo "yes" >&6; } | |
252b5132 RH |
2857 | SET_MAKE= |
2858 | else | |
81ecdfbb RW |
2859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2860 | $as_echo "no" >&6; } | |
252b5132 RH |
2861 | SET_MAKE="MAKE=${MAKE-make}" |
2862 | fi | |
2863 | ||
8ae85421 AM |
2864 | rm -rf .tst 2>/dev/null |
2865 | mkdir .tst 2>/dev/null | |
2866 | if test -d .tst; then | |
2867 | am__leading_dot=. | |
2868 | else | |
2869 | am__leading_dot=_ | |
2870 | fi | |
2871 | rmdir .tst 2>/dev/null | |
2872 | ||
d0ac1c44 SM |
2873 | # Check whether --enable-silent-rules was given. |
2874 | if test "${enable_silent_rules+set}" = set; then : | |
2875 | enableval=$enable_silent_rules; | |
2876 | fi | |
2877 | ||
2878 | case $enable_silent_rules in # ((( | |
2879 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2880 | no) AM_DEFAULT_VERBOSITY=1;; | |
2881 | *) AM_DEFAULT_VERBOSITY=1;; | |
2882 | esac | |
2883 | am_make=${MAKE-make} | |
2884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2885 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2886 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2887 | $as_echo_n "(cached) " >&6 | |
2888 | else | |
2889 | if $as_echo 'TRUE=$(BAR$(V)) | |
2890 | BAR0=false | |
2891 | BAR1=true | |
2892 | V=1 | |
2893 | am__doit: | |
2894 | @$(TRUE) | |
2895 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2896 | am_cv_make_support_nested_variables=yes | |
2897 | else | |
2898 | am_cv_make_support_nested_variables=no | |
2899 | fi | |
2900 | fi | |
2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2902 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2903 | if test $am_cv_make_support_nested_variables = yes; then | |
2904 | AM_V='$(V)' | |
2905 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2906 | else | |
2907 | AM_V=$AM_DEFAULT_VERBOSITY | |
2908 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2909 | fi | |
2910 | AM_BACKSLASH='\' | |
2911 | ||
81ecdfbb RW |
2912 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2913 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2914 | # is not polluted with repeated "-I." | |
2915 | am__isrc=' -I$(srcdir)' | |
2916 | # test to see if srcdir already configured | |
2917 | if test -f $srcdir/config.status; then | |
d0ac1c44 | 2918 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
81ecdfbb | 2919 | fi |
252b5132 | 2920 | fi |
979273e3 | 2921 | |
8ae85421 AM |
2922 | # test whether we have cygpath |
2923 | if test -z "$CYGPATH_W"; then | |
2924 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2925 | CYGPATH_W='cygpath -w' | |
2926 | else | |
2927 | CYGPATH_W=echo | |
2928 | fi | |
2929 | fi | |
2930 | ||
2931 | ||
2932 | # Define the identity of the package. | |
2e98a7bd | 2933 | PACKAGE='opcodes' |
573fe3fb | 2934 | VERSION='2.36.50' |
8ae85421 AM |
2935 | |
2936 | ||
979273e3 | 2937 | cat >>confdefs.h <<_ACEOF |
252b5132 | 2938 | #define PACKAGE "$PACKAGE" |
979273e3 | 2939 | _ACEOF |
252b5132 | 2940 | |
979273e3 NN |
2941 | |
2942 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 2943 | #define VERSION "$VERSION" |
979273e3 | 2944 | _ACEOF |
252b5132 | 2945 | |
8ae85421 | 2946 | # Some tools Automake needs. |
252b5132 | 2947 | |
8ae85421 | 2948 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
252b5132 | 2949 | |
8ae85421 AM |
2950 | |
2951 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2952 | ||
2953 | ||
2954 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2955 | ||
2956 | ||
2957 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2958 | ||
2959 | ||
2960 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2961 | ||
d0ac1c44 SM |
2962 | # For better backward compatibility. To be removed once Automake 1.9.x |
2963 | # dies out for good. For more background, see: | |
2964 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2965 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2966 | mkdir_p='$(MKDIR_P)' | |
2967 | ||
2968 | # We need awk for the "check" target (and possibly the TAP driver). The | |
2969 | # system "awk" is bad on some platforms. | |
6eb7d830 AM |
2970 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2971 | # in the wild :-( We should find a proper way to deprecate it ... | |
2972 | AMTAR='$${TAR-tar}' | |
8ae85421 | 2973 | |
d0ac1c44 SM |
2974 | |
2975 | # We'll loop over all known methods to create a tar archive until one works. | |
2976 | _am_tools='gnutar pax cpio none' | |
2977 | ||
ab2af25e AM |
2978 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
2979 | ||
8ae85421 | 2980 | |
8ae85421 | 2981 | |
252b5132 RH |
2982 | |
2983 | ||
2984 | ||
d0ac1c44 SM |
2985 | # POSIX will say in a future version that running "rm -f" with no argument |
2986 | # is OK; and we want to be able to make that assumption in our Makefile | |
2987 | # recipes. So use an aggressive probe to check that the usage we want is | |
2988 | # actually supported "in the wild" to an acceptable degree. | |
2989 | # See automake bug#10828. | |
2990 | # To make any issue more visible, cause the running configure to be aborted | |
2991 | # by default if the 'rm' program in use doesn't match our expectations; the | |
2992 | # user can still override this though. | |
2993 | if rm -f && rm -fr && rm -rf; then : OK; else | |
2994 | cat >&2 <<'END' | |
2995 | Oops! | |
2996 | ||
2997 | Your 'rm' program seems unable to run without file operands specified | |
2998 | on the command line, even when the '-f' option is present. This is contrary | |
2999 | to the behaviour of most rm programs out there, and not conforming with | |
3000 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3001 | ||
3002 | Please tell bug-automake@gnu.org about your system, including the value | |
3003 | of your $PATH and any error possibly output before this message. This | |
3004 | can help us improve future automake versions. | |
3005 | ||
3006 | END | |
3007 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3008 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3009 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3010 | echo >&2 | |
3011 | else | |
3012 | cat >&2 <<'END' | |
3013 | Aborting the configuration process, to ensure you take notice of the issue. | |
3014 | ||
3015 | You can download and install GNU coreutils to get an 'rm' implementation | |
3016 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3017 | ||
3018 | If you want to complete the configuration process using your problematic | |
3019 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3020 | to "yes", and re-run configure. | |
3021 | ||
3022 | END | |
3023 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3024 | fi | |
3025 | fi | |
3026 | ||
8ae85421 | 3027 | |
dabbade6 L |
3028 | ac_ext=c |
3029 | ac_cpp='$CPP $CPPFLAGS' | |
3030 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3031 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3032 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
979273e3 | 3033 | if test -n "$ac_tool_prefix"; then |
dabbade6 L |
3034 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3035 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3037 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3038 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3039 | $as_echo_n "(cached) " >&6 |
252b5132 | 3040 | else |
dabbade6 L |
3041 | if test -n "$CC"; then |
3042 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 3043 | else |
979273e3 NN |
3044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3045 | for as_dir in $PATH | |
3046 | do | |
3047 | IFS=$as_save_IFS | |
3048 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3049 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3050 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 3051 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
3053 | break 2 |
3054 | fi | |
3055 | done | |
81ecdfbb RW |
3056 | done |
3057 | IFS=$as_save_IFS | |
979273e3 | 3058 | |
252b5132 RH |
3059 | fi |
3060 | fi | |
dabbade6 L |
3061 | CC=$ac_cv_prog_CC |
3062 | if test -n "$CC"; then | |
81ecdfbb RW |
3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3064 | $as_echo "$CC" >&6; } | |
252b5132 | 3065 | else |
81ecdfbb RW |
3066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3067 | $as_echo "no" >&6; } | |
979273e3 NN |
3068 | fi |
3069 | ||
81ecdfbb | 3070 | |
252b5132 | 3071 | fi |
dabbade6 L |
3072 | if test -z "$ac_cv_prog_CC"; then |
3073 | ac_ct_CC=$CC | |
3074 | # Extract the first word of "gcc", so it can be a program name with args. | |
3075 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
3076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3077 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3078 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 3079 | $as_echo_n "(cached) " >&6 |
979273e3 | 3080 | else |
dabbade6 L |
3081 | if test -n "$ac_ct_CC"; then |
3082 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
979273e3 NN |
3083 | else |
3084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3085 | for as_dir in $PATH | |
3086 | do | |
3087 | IFS=$as_save_IFS | |
3088 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3089 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3090 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 3091 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
3093 | break 2 |
3094 | fi | |
3095 | done | |
81ecdfbb RW |
3096 | done |
3097 | IFS=$as_save_IFS | |
252b5132 | 3098 | |
979273e3 NN |
3099 | fi |
3100 | fi | |
dabbade6 L |
3101 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3102 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3104 | $as_echo "$ac_ct_CC" >&6; } | |
979273e3 | 3105 | else |
81ecdfbb RW |
3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3107 | $as_echo "no" >&6; } | |
979273e3 | 3108 | fi |
252b5132 | 3109 | |
81ecdfbb RW |
3110 | if test "x$ac_ct_CC" = x; then |
3111 | CC="" | |
3112 | else | |
3113 | case $cross_compiling:$ac_tool_warned in | |
3114 | yes:) | |
3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3116 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3117 | ac_tool_warned=yes ;; | |
3118 | esac | |
3119 | CC=$ac_ct_CC | |
3120 | fi | |
979273e3 | 3121 | else |
dabbade6 | 3122 | CC="$ac_cv_prog_CC" |
979273e3 | 3123 | fi |
252b5132 | 3124 | |
dabbade6 | 3125 | if test -z "$CC"; then |
81ecdfbb RW |
3126 | if test -n "$ac_tool_prefix"; then |
3127 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
dabbade6 | 3128 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3130 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3131 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3132 | $as_echo_n "(cached) " >&6 |
252b5132 | 3133 | else |
dabbade6 L |
3134 | if test -n "$CC"; then |
3135 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 3136 | else |
979273e3 NN |
3137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3138 | for as_dir in $PATH | |
3139 | do | |
3140 | IFS=$as_save_IFS | |
3141 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3142 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3143 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 3144 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 3145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
3146 | break 2 |
3147 | fi | |
3148 | done | |
81ecdfbb RW |
3149 | done |
3150 | IFS=$as_save_IFS | |
979273e3 | 3151 | |
252b5132 RH |
3152 | fi |
3153 | fi | |
dabbade6 L |
3154 | CC=$ac_cv_prog_CC |
3155 | if test -n "$CC"; then | |
81ecdfbb RW |
3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3157 | $as_echo "$CC" >&6; } | |
252b5132 | 3158 | else |
81ecdfbb RW |
3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3160 | $as_echo "no" >&6; } | |
252b5132 RH |
3161 | fi |
3162 | ||
252b5132 | 3163 | |
81ecdfbb | 3164 | fi |
dabbade6 L |
3165 | fi |
3166 | if test -z "$CC"; then | |
3167 | # Extract the first word of "cc", so it can be a program name with args. | |
3168 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
3169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3170 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3171 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3172 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
3173 | else |
3174 | if test -n "$CC"; then | |
3175 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3176 | else | |
3177 | ac_prog_rejected=no | |
3178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3179 | for as_dir in $PATH | |
3180 | do | |
3181 | IFS=$as_save_IFS | |
3182 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3183 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3184 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 L |
3185 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3186 | ac_prog_rejected=yes | |
3187 | continue | |
3188 | fi | |
3189 | ac_cv_prog_CC="cc" | |
81ecdfbb | 3190 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
3191 | break 2 |
3192 | fi | |
3193 | done | |
81ecdfbb RW |
3194 | done |
3195 | IFS=$as_save_IFS | |
252b5132 | 3196 | |
dabbade6 L |
3197 | if test $ac_prog_rejected = yes; then |
3198 | # We found a bogon in the path, so make sure we never use it. | |
3199 | set dummy $ac_cv_prog_CC | |
3200 | shift | |
3201 | if test $# != 0; then | |
3202 | # We chose a different compiler from the bogus one. | |
3203 | # However, it has the same basename, so the bogon will be chosen | |
3204 | # first if we set CC to just the basename; use the full file name. | |
3205 | shift | |
3206 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3207 | fi | |
3208 | fi | |
3209 | fi | |
3210 | fi | |
3211 | CC=$ac_cv_prog_CC | |
3212 | if test -n "$CC"; then | |
81ecdfbb RW |
3213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3214 | $as_echo "$CC" >&6; } | |
252b5132 | 3215 | else |
81ecdfbb RW |
3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3217 | $as_echo "no" >&6; } | |
dabbade6 | 3218 | fi |
252b5132 | 3219 | |
81ecdfbb | 3220 | |
dabbade6 L |
3221 | fi |
3222 | if test -z "$CC"; then | |
3223 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 3224 | for ac_prog in cl.exe |
dabbade6 L |
3225 | do |
3226 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3227 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3229 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3230 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3231 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
3232 | else |
3233 | if test -n "$CC"; then | |
3234 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3235 | else | |
3236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3237 | for as_dir in $PATH | |
3238 | do | |
3239 | IFS=$as_save_IFS | |
3240 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3241 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3242 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 3243 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 3244 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
3245 | break 2 |
3246 | fi | |
3247 | done | |
81ecdfbb RW |
3248 | done |
3249 | IFS=$as_save_IFS | |
d7040cdb | 3250 | |
dabbade6 L |
3251 | fi |
3252 | fi | |
3253 | CC=$ac_cv_prog_CC | |
3254 | if test -n "$CC"; then | |
81ecdfbb RW |
3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3256 | $as_echo "$CC" >&6; } | |
dabbade6 | 3257 | else |
81ecdfbb RW |
3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3259 | $as_echo "no" >&6; } | |
dabbade6 | 3260 | fi |
d7040cdb | 3261 | |
81ecdfbb | 3262 | |
dabbade6 L |
3263 | test -n "$CC" && break |
3264 | done | |
3265 | fi | |
3266 | if test -z "$CC"; then | |
3267 | ac_ct_CC=$CC | |
81ecdfbb | 3268 | for ac_prog in cl.exe |
dabbade6 L |
3269 | do |
3270 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3271 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3273 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3274 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 3275 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
3276 | else |
3277 | if test -n "$ac_ct_CC"; then | |
3278 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3279 | else | |
3280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3281 | for as_dir in $PATH | |
3282 | do | |
3283 | IFS=$as_save_IFS | |
3284 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3285 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3286 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 3287 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 3288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
3289 | break 2 |
3290 | fi | |
3291 | done | |
81ecdfbb RW |
3292 | done |
3293 | IFS=$as_save_IFS | |
d7040cdb | 3294 | |
dabbade6 L |
3295 | fi |
3296 | fi | |
3297 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3298 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3300 | $as_echo "$ac_ct_CC" >&6; } | |
dabbade6 | 3301 | else |
81ecdfbb RW |
3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3303 | $as_echo "no" >&6; } | |
dabbade6 | 3304 | fi |
d7040cdb | 3305 | |
81ecdfbb | 3306 | |
dabbade6 L |
3307 | test -n "$ac_ct_CC" && break |
3308 | done | |
d7040cdb | 3309 | |
81ecdfbb RW |
3310 | if test "x$ac_ct_CC" = x; then |
3311 | CC="" | |
3312 | else | |
3313 | case $cross_compiling:$ac_tool_warned in | |
3314 | yes:) | |
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3316 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3317 | ac_tool_warned=yes ;; | |
3318 | esac | |
3319 | CC=$ac_ct_CC | |
3320 | fi | |
dabbade6 | 3321 | fi |
d7040cdb | 3322 | |
dabbade6 | 3323 | fi |
d7040cdb SE |
3324 | |
3325 | ||
81ecdfbb RW |
3326 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3327 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3328 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3329 | See \`config.log' for more details" "$LINENO" 5; } | |
d7040cdb | 3330 | |
dabbade6 | 3331 | # Provide some information about the compiler. |
81ecdfbb RW |
3332 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3333 | set X $ac_compile | |
3334 | ac_compiler=$2 | |
3335 | for ac_option in --version -v -V -qversion; do | |
3336 | { { ac_try="$ac_compiler $ac_option >&5" | |
3337 | case "(($ac_try" in | |
3338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3339 | *) ac_try_echo=$ac_try;; | |
3340 | esac | |
3341 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3342 | $as_echo "$ac_try_echo"; } >&5 | |
3343 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
dabbade6 | 3344 | ac_status=$? |
81ecdfbb RW |
3345 | if test -s conftest.err; then |
3346 | sed '10a\ | |
3347 | ... rest of stderr output deleted ... | |
3348 | 10q' conftest.err >conftest.er1 | |
3349 | cat conftest.er1 >&5 | |
81ecdfbb | 3350 | fi |
d0ac1c44 | 3351 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
3352 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3353 | test $ac_status = 0; } | |
3354 | done | |
d7040cdb | 3355 | |
ab2af25e AM |
3356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3357 | /* end confdefs.h. */ | |
3358 | ||
3359 | int | |
3360 | main () | |
3361 | { | |
3362 | ||
3363 | ; | |
3364 | return 0; | |
3365 | } | |
3366 | _ACEOF | |
3367 | ac_clean_files_save=$ac_clean_files | |
3368 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3369 | # Try to create an executable without -o first, disregard a.out. | |
3370 | # It will help us diagnose broken compilers, and finding out an intuition | |
3371 | # of exeext. | |
3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3373 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3374 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3375 | ||
3376 | # The possible output files: | |
3377 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3378 | ||
3379 | ac_rmfiles= | |
3380 | for ac_file in $ac_files | |
3381 | do | |
3382 | case $ac_file in | |
3383 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3384 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3385 | esac | |
3386 | done | |
3387 | rm -f $ac_rmfiles | |
3388 | ||
3389 | if { { ac_try="$ac_link_default" | |
3390 | case "(($ac_try" in | |
3391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3392 | *) ac_try_echo=$ac_try;; | |
3393 | esac | |
3394 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3395 | $as_echo "$ac_try_echo"; } >&5 | |
3396 | (eval "$ac_link_default") 2>&5 | |
3397 | ac_status=$? | |
3398 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3399 | test $ac_status = 0; }; then : | |
3400 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3401 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3402 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3403 | # so that the user can short-circuit this test for compilers unknown to | |
3404 | # Autoconf. | |
3405 | for ac_file in $ac_files '' | |
3406 | do | |
3407 | test -f "$ac_file" || continue | |
3408 | case $ac_file in | |
3409 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3410 | ;; | |
3411 | [ab].out ) | |
3412 | # We found the default executable, but exeext='' is most | |
3413 | # certainly right. | |
3414 | break;; | |
3415 | *.* ) | |
3416 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3417 | then :; else | |
3418 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3419 | fi | |
3420 | # We set ac_cv_exeext here because the later test for it is not | |
3421 | # safe: cross compilers may not add the suffix if given an `-o' | |
3422 | # argument, so we may need to know it at that point already. | |
3423 | # Even if this section looks crufty: it has the advantage of | |
3424 | # actually working. | |
3425 | break;; | |
3426 | * ) | |
3427 | break;; | |
3428 | esac | |
3429 | done | |
3430 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3431 | ||
3432 | else | |
3433 | ac_file='' | |
3434 | fi | |
3435 | if test -z "$ac_file"; then : | |
3436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3437 | $as_echo "no" >&6; } | |
3438 | $as_echo "$as_me: failed program was:" >&5 | |
3439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3440 | ||
3441 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3442 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3443 | as_fn_error 77 "C compiler cannot create executables | |
3444 | See \`config.log' for more details" "$LINENO" 5; } | |
3445 | else | |
3446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3447 | $as_echo "yes" >&6; } | |
3448 | fi | |
3449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3450 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3452 | $as_echo "$ac_file" >&6; } | |
3453 | ac_exeext=$ac_cv_exeext | |
3454 | ||
3455 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3456 | ac_clean_files=$ac_clean_files_save | |
3457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3458 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3459 | if { { ac_try="$ac_link" | |
3460 | case "(($ac_try" in | |
3461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3462 | *) ac_try_echo=$ac_try;; | |
3463 | esac | |
3464 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3465 | $as_echo "$ac_try_echo"; } >&5 | |
3466 | (eval "$ac_link") 2>&5 | |
3467 | ac_status=$? | |
3468 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3469 | test $ac_status = 0; }; then : | |
3470 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3471 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3472 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3473 | # `rm'. | |
3474 | for ac_file in conftest.exe conftest conftest.*; do | |
3475 | test -f "$ac_file" || continue | |
3476 | case $ac_file in | |
3477 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3478 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3479 | break;; | |
3480 | * ) break;; | |
3481 | esac | |
3482 | done | |
3483 | else | |
3484 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3485 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3486 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3487 | See \`config.log' for more details" "$LINENO" 5; } | |
3488 | fi | |
3489 | rm -f conftest conftest$ac_cv_exeext | |
3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3491 | $as_echo "$ac_cv_exeext" >&6; } | |
3492 | ||
3493 | rm -f conftest.$ac_ext | |
3494 | EXEEXT=$ac_cv_exeext | |
3495 | ac_exeext=$EXEEXT | |
3496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3497 | /* end confdefs.h. */ | |
3498 | #include <stdio.h> | |
3499 | int | |
3500 | main () | |
3501 | { | |
3502 | FILE *f = fopen ("conftest.out", "w"); | |
3503 | return ferror (f) || fclose (f) != 0; | |
3504 | ||
3505 | ; | |
3506 | return 0; | |
3507 | } | |
3508 | _ACEOF | |
3509 | ac_clean_files="$ac_clean_files conftest.out" | |
3510 | # Check that the compiler produces executables we can run. If not, either | |
3511 | # the compiler is broken, or we cross compile. | |
3512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3513 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3514 | if test "$cross_compiling" != yes; then | |
3515 | { { ac_try="$ac_link" | |
3516 | case "(($ac_try" in | |
3517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3518 | *) ac_try_echo=$ac_try;; | |
3519 | esac | |
3520 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3521 | $as_echo "$ac_try_echo"; } >&5 | |
3522 | (eval "$ac_link") 2>&5 | |
3523 | ac_status=$? | |
3524 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3525 | test $ac_status = 0; } | |
3526 | if { ac_try='./conftest$ac_cv_exeext' | |
3527 | { { case "(($ac_try" in | |
3528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3529 | *) ac_try_echo=$ac_try;; | |
3530 | esac | |
3531 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3532 | $as_echo "$ac_try_echo"; } >&5 | |
3533 | (eval "$ac_try") 2>&5 | |
3534 | ac_status=$? | |
3535 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3536 | test $ac_status = 0; }; }; then | |
3537 | cross_compiling=no | |
3538 | else | |
3539 | if test "$cross_compiling" = maybe; then | |
3540 | cross_compiling=yes | |
3541 | else | |
3542 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3543 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3544 | as_fn_error $? "cannot run C compiled programs. | |
3545 | If you meant to cross compile, use \`--host'. | |
3546 | See \`config.log' for more details" "$LINENO" 5; } | |
3547 | fi | |
3548 | fi | |
3549 | fi | |
3550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3551 | $as_echo "$cross_compiling" >&6; } | |
3552 | ||
3553 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3554 | ac_clean_files=$ac_clean_files_save | |
3555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3556 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3557 | if ${ac_cv_objext+:} false; then : | |
3558 | $as_echo_n "(cached) " >&6 | |
3559 | else | |
3560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3561 | /* end confdefs.h. */ | |
3562 | ||
3563 | int | |
3564 | main () | |
3565 | { | |
3566 | ||
3567 | ; | |
3568 | return 0; | |
3569 | } | |
3570 | _ACEOF | |
3571 | rm -f conftest.o conftest.obj | |
3572 | if { { ac_try="$ac_compile" | |
3573 | case "(($ac_try" in | |
3574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3575 | *) ac_try_echo=$ac_try;; | |
3576 | esac | |
3577 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3578 | $as_echo "$ac_try_echo"; } >&5 | |
3579 | (eval "$ac_compile") 2>&5 | |
3580 | ac_status=$? | |
3581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3582 | test $ac_status = 0; }; then : | |
3583 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3584 | test -f "$ac_file" || continue; | |
3585 | case $ac_file in | |
3586 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3587 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3588 | break;; | |
3589 | esac | |
3590 | done | |
3591 | else | |
3592 | $as_echo "$as_me: failed program was:" >&5 | |
3593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3594 | ||
3595 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3596 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3597 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3598 | See \`config.log' for more details" "$LINENO" 5; } | |
3599 | fi | |
3600 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3601 | fi | |
3602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3603 | $as_echo "$ac_cv_objext" >&6; } | |
3604 | OBJEXT=$ac_cv_objext | |
3605 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3607 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 3608 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 3609 | $as_echo_n "(cached) " >&6 |
252b5132 | 3610 | else |
81ecdfbb | 3611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 3612 | /* end confdefs.h. */ |
d7040cdb | 3613 | |
dabbade6 L |
3614 | int |
3615 | main () | |
3616 | { | |
3617 | #ifndef __GNUC__ | |
3618 | choke me | |
3619 | #endif | |
d7040cdb | 3620 | |
dabbade6 L |
3621 | ; |
3622 | return 0; | |
3623 | } | |
3624 | _ACEOF | |
81ecdfbb | 3625 | if ac_fn_c_try_compile "$LINENO"; then : |
dabbade6 | 3626 | ac_compiler_gnu=yes |
d7040cdb | 3627 | else |
81ecdfbb | 3628 | ac_compiler_gnu=no |
dabbade6 | 3629 | fi |
81ecdfbb | 3630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
dabbade6 | 3631 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
d7040cdb | 3632 | |
dabbade6 | 3633 | fi |
81ecdfbb RW |
3634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3635 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3636 | if test $ac_compiler_gnu = yes; then | |
3637 | GCC=yes | |
3638 | else | |
3639 | GCC= | |
3640 | fi | |
dabbade6 L |
3641 | ac_test_CFLAGS=${CFLAGS+set} |
3642 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3644 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 3645 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
3646 | $as_echo_n "(cached) " >&6 |
3647 | else | |
3648 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3649 | ac_c_werror_flag=yes | |
3650 | ac_cv_prog_cc_g=no | |
3651 | CFLAGS="-g" | |
3652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
dabbade6 | 3653 | /* end confdefs.h. */ |
d7040cdb | 3654 | |
dabbade6 L |
3655 | int |
3656 | main () | |
3657 | { | |
d7040cdb | 3658 | |
dabbade6 L |
3659 | ; |
3660 | return 0; | |
3661 | } | |
3662 | _ACEOF | |
81ecdfbb | 3663 | if ac_fn_c_try_compile "$LINENO"; then : |
dabbade6 L |
3664 | ac_cv_prog_cc_g=yes |
3665 | else | |
81ecdfbb RW |
3666 | CFLAGS="" |
3667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3668 | /* end confdefs.h. */ | |
d7040cdb | 3669 | |
81ecdfbb RW |
3670 | int |
3671 | main () | |
3672 | { | |
3673 | ||
3674 | ; | |
3675 | return 0; | |
3676 | } | |
3677 | _ACEOF | |
3678 | if ac_fn_c_try_compile "$LINENO"; then : | |
3679 | ||
3680 | else | |
3681 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3682 | CFLAGS="-g" | |
3683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3684 | /* end confdefs.h. */ | |
3685 | ||
3686 | int | |
3687 | main () | |
3688 | { | |
3689 | ||
3690 | ; | |
3691 | return 0; | |
3692 | } | |
3693 | _ACEOF | |
3694 | if ac_fn_c_try_compile "$LINENO"; then : | |
3695 | ac_cv_prog_cc_g=yes | |
3696 | fi | |
3697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dabbade6 | 3698 | fi |
81ecdfbb | 3699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
dabbade6 | 3700 | fi |
81ecdfbb RW |
3701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3702 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3703 | fi | |
3704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3705 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
dabbade6 L |
3706 | if test "$ac_test_CFLAGS" = set; then |
3707 | CFLAGS=$ac_save_CFLAGS | |
3708 | elif test $ac_cv_prog_cc_g = yes; then | |
3709 | if test "$GCC" = yes; then | |
3710 | CFLAGS="-g -O2" | |
3711 | else | |
3712 | CFLAGS="-g" | |
3713 | fi | |
3714 | else | |
3715 | if test "$GCC" = yes; then | |
3716 | CFLAGS="-O2" | |
3717 | else | |
3718 | CFLAGS= | |
3719 | fi | |
3720 | fi | |
81ecdfbb RW |
3721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3722 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 3723 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 3724 | $as_echo_n "(cached) " >&6 |
d7040cdb | 3725 | else |
81ecdfbb | 3726 | ac_cv_prog_cc_c89=no |
dabbade6 | 3727 | ac_save_CC=$CC |
81ecdfbb | 3728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 L |
3729 | /* end confdefs.h. */ |
3730 | #include <stdarg.h> | |
3731 | #include <stdio.h> | |
d0ac1c44 | 3732 | struct stat; |
dabbade6 L |
3733 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3734 | struct buf { int x; }; | |
3735 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3736 | static char *e (p, i) | |
3737 | char **p; | |
3738 | int i; | |
3739 | { | |
3740 | return p[i]; | |
3741 | } | |
3742 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3743 | { | |
3744 | char *s; | |
3745 | va_list v; | |
3746 | va_start (v,p); | |
3747 | s = g (p, va_arg (v,int)); | |
3748 | va_end (v); | |
3749 | return s; | |
3750 | } | |
d7040cdb | 3751 | |
dabbade6 L |
3752 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3753 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3754 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3755 | as 'x'. The following induces an error, until -std is added to get |
dabbade6 L |
3756 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3757 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3758 | that's true only with -std. */ |
dabbade6 | 3759 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
d7040cdb | 3760 | |
81ecdfbb RW |
3761 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3762 | inside strings and character constants. */ | |
3763 | #define FOO(x) 'x' | |
3764 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3765 | ||
dabbade6 L |
3766 | int test (int i, double x); |
3767 | struct s1 {int (*f) (int a);}; | |
3768 | struct s2 {int (*f) (double a);}; | |
3769 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3770 | int argc; | |
3771 | char **argv; | |
3772 | int | |
3773 | main () | |
3774 | { | |
3775 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3776 | ; | |
3777 | return 0; | |
3778 | } | |
3779 | _ACEOF | |
81ecdfbb RW |
3780 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3781 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
dabbade6 L |
3782 | do |
3783 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3784 | if ac_fn_c_try_compile "$LINENO"; then : |
3785 | ac_cv_prog_cc_c89=$ac_arg | |
d7040cdb | 3786 | fi |
81ecdfbb RW |
3787 | rm -f core conftest.err conftest.$ac_objext |
3788 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
dabbade6 | 3789 | done |
81ecdfbb | 3790 | rm -f conftest.$ac_ext |
dabbade6 | 3791 | CC=$ac_save_CC |
d7040cdb | 3792 | |
dabbade6 | 3793 | fi |
81ecdfbb RW |
3794 | # AC_CACHE_VAL |
3795 | case "x$ac_cv_prog_cc_c89" in | |
3796 | x) | |
3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3798 | $as_echo "none needed" >&6; } ;; | |
3799 | xno) | |
3800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3801 | $as_echo "unsupported" >&6; } ;; | |
252b5132 | 3802 | *) |
81ecdfbb RW |
3803 | CC="$CC $ac_cv_prog_cc_c89" |
3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3805 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
dabbade6 | 3806 | esac |
81ecdfbb | 3807 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
ac48eca1 | 3808 | |
dabbade6 | 3809 | fi |
252b5132 | 3810 | |
dabbade6 L |
3811 | ac_ext=c |
3812 | ac_cpp='$CPP $CPPFLAGS' | |
3813 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3814 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3815 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 3816 | |
d0ac1c44 SM |
3817 | ac_ext=c |
3818 | ac_cpp='$CPP $CPPFLAGS' | |
3819 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3820 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3821 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3823 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3824 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3825 | $as_echo_n "(cached) " >&6 | |
3826 | else | |
3827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3828 | /* end confdefs.h. */ | |
3829 | ||
3830 | int | |
3831 | main () | |
3832 | { | |
3833 | ||
3834 | ; | |
3835 | return 0; | |
3836 | } | |
3837 | _ACEOF | |
3838 | # Make sure it works both with $CC and with simple cc. | |
3839 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3840 | # compilers refuse to overwrite an existing .o file with -o, | |
3841 | # though they will create one. | |
3842 | am_cv_prog_cc_c_o=yes | |
3843 | for am_i in 1 2; do | |
3844 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3845 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3846 | ac_status=$? | |
3847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3848 | (exit $ac_status); } \ | |
3849 | && test -f conftest2.$ac_objext; then | |
3850 | : OK | |
3851 | else | |
3852 | am_cv_prog_cc_c_o=no | |
3853 | break | |
3854 | fi | |
3855 | done | |
3856 | rm -f core conftest* | |
3857 | unset am_i | |
3858 | fi | |
3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3860 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3861 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3862 | # Losing compiler, so override with the script. | |
3863 | # FIXME: It is wrong to rewrite CC. | |
3864 | # But if we don't then we get into trouble of one sort or another. | |
3865 | # A longer-term fix would be to have automake use am__CC in this case, | |
3866 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3867 | CC="$am_aux_dir/compile $CC" | |
3868 | fi | |
3869 | ac_ext=c | |
3870 | ac_cpp='$CPP $CPPFLAGS' | |
3871 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3872 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3873 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3874 | ||
ab2af25e AM |
3875 | DEPDIR="${am__leading_dot}deps" |
3876 | ||
3877 | ac_config_commands="$ac_config_commands depfiles" | |
3878 | ||
3879 | ||
3880 | am_make=${MAKE-make} | |
3881 | cat > confinc << 'END' | |
3882 | am__doit: | |
3883 | @echo this is the am__doit target | |
3884 | .PHONY: am__doit | |
3885 | END | |
3886 | # If we don't find an include directive, just comment out the code. | |
3887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3888 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3889 | am__include="#" | |
3890 | am__quote= | |
3891 | _am_result=none | |
3892 | # First try GNU make style include. | |
3893 | echo "include confinc" > confmf | |
3894 | # Ignore all kinds of additional output from 'make'. | |
3895 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3896 | *the\ am__doit\ target*) | |
3897 | am__include=include | |
3898 | am__quote= | |
3899 | _am_result=GNU | |
3900 | ;; | |
3901 | esac | |
3902 | # Now try BSD make style include. | |
3903 | if test "$am__include" = "#"; then | |
3904 | echo '.include "confinc"' > confmf | |
3905 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3906 | *the\ am__doit\ target*) | |
3907 | am__include=.include | |
3908 | am__quote="\"" | |
3909 | _am_result=BSD | |
3910 | ;; | |
3911 | esac | |
3912 | fi | |
3913 | ||
3914 | ||
3915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3916 | $as_echo "$_am_result" >&6; } | |
3917 | rm -f confinc confmf | |
3918 | ||
3919 | # Check whether --enable-dependency-tracking was given. | |
3920 | if test "${enable_dependency_tracking+set}" = set; then : | |
3921 | enableval=$enable_dependency_tracking; | |
3922 | fi | |
3923 | ||
3924 | if test "x$enable_dependency_tracking" != xno; then | |
3925 | am_depcomp="$ac_aux_dir/depcomp" | |
3926 | AMDEPBACKSLASH='\' | |
3927 | am__nodep='_no' | |
3928 | fi | |
3929 | if test "x$enable_dependency_tracking" != xno; then | |
3930 | AMDEP_TRUE= | |
3931 | AMDEP_FALSE='#' | |
3932 | else | |
3933 | AMDEP_TRUE='#' | |
3934 | AMDEP_FALSE= | |
3935 | fi | |
3936 | ||
3937 | ||
3938 | ||
3939 | depcc="$CC" am_compiler_list= | |
3940 | ||
3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3942 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3943 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
3944 | $as_echo_n "(cached) " >&6 | |
3945 | else | |
3946 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3947 | # We make a subdir and do the tests there. Otherwise we can end up | |
3948 | # making bogus files that we don't know about and never remove. For | |
3949 | # instance it was reported that on HP-UX the gcc test will end up | |
3950 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
3951 | # in D". | |
3952 | rm -rf conftest.dir | |
3953 | mkdir conftest.dir | |
3954 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3955 | # using a relative directory. | |
3956 | cp "$am_depcomp" conftest.dir | |
3957 | cd conftest.dir | |
3958 | # We will build objects and dependencies in a subdirectory because | |
3959 | # it helps to detect inapplicable dependency modes. For instance | |
3960 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3961 | # side effect of compilation, but ICC will put the dependencies in | |
3962 | # the current directory while Tru64 will put them in the object | |
3963 | # directory. | |
3964 | mkdir sub | |
3965 | ||
3966 | am_cv_CC_dependencies_compiler_type=none | |
3967 | if test "$am_compiler_list" = ""; then | |
3968 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3969 | fi | |
3970 | am__universal=false | |
3971 | case " $depcc " in #( | |
3972 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3973 | esac | |
3974 | ||
3975 | for depmode in $am_compiler_list; do | |
3976 | # Setup a source with many dependencies, because some compilers | |
3977 | # like to wrap large dependency lists on column 80 (with \), and | |
3978 | # we should not choose a depcomp mode which is confused by this. | |
3979 | # | |
3980 | # We need to recreate these files for each test, as the compiler may | |
3981 | # overwrite some of them when testing with obscure command lines. | |
3982 | # This happens at least with the AIX C compiler. | |
3983 | : > sub/conftest.c | |
3984 | for i in 1 2 3 4 5 6; do | |
3985 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3986 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
3987 | # Solaris 10 /bin/sh. | |
3988 | echo '/* dummy */' > sub/conftst$i.h | |
3989 | done | |
3990 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3991 | ||
3992 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
3993 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3994 | # handle '-M -o', and we need to detect this. Also, some Intel | |
3995 | # versions had trouble with output in subdirs. | |
3996 | am__obj=sub/conftest.${OBJEXT-o} | |
3997 | am__minus_obj="-o $am__obj" | |
3998 | case $depmode in | |
3999 | gcc) | |
4000 | # This depmode causes a compiler race in universal mode. | |
4001 | test "$am__universal" = false || continue | |
4002 | ;; | |
4003 | nosideeffect) | |
4004 | # After this tag, mechanisms are not by side-effect, so they'll | |
4005 | # only be used when explicitly requested. | |
4006 | if test "x$enable_dependency_tracking" = xyes; then | |
4007 | continue | |
4008 | else | |
4009 | break | |
4010 | fi | |
4011 | ;; | |
4012 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4013 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4014 | # not run yet. These depmodes are late enough in the game, and | |
4015 | # so weak that their functioning should not be impacted. | |
4016 | am__obj=conftest.${OBJEXT-o} | |
4017 | am__minus_obj= | |
4018 | ;; | |
4019 | none) break ;; | |
4020 | esac | |
4021 | if depmode=$depmode \ | |
4022 | source=sub/conftest.c object=$am__obj \ | |
4023 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4024 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4025 | >/dev/null 2>conftest.err && | |
4026 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4027 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4028 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4029 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4030 | # icc doesn't choke on unknown options, it will just issue warnings | |
4031 | # or remarks (even with -Werror). So we grep stderr for any message | |
4032 | # that says an option was ignored or not supported. | |
4033 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4034 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4035 | # The diagnosis changed in icc 8.0: | |
4036 | # icc: Command line remark: option '-MP' not supported | |
4037 | if (grep 'ignoring option' conftest.err || | |
4038 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4039 | am_cv_CC_dependencies_compiler_type=$depmode | |
4040 | break | |
4041 | fi | |
4042 | fi | |
4043 | done | |
4044 | ||
4045 | cd .. | |
4046 | rm -rf conftest.dir | |
4047 | else | |
4048 | am_cv_CC_dependencies_compiler_type=none | |
4049 | fi | |
4050 | ||
4051 | fi | |
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4053 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4054 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4055 | ||
4056 | if | |
4057 | test "x$enable_dependency_tracking" != xno \ | |
4058 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4059 | am__fastdepCC_TRUE= | |
4060 | am__fastdepCC_FALSE='#' | |
4061 | else | |
4062 | am__fastdepCC_TRUE='#' | |
4063 | am__fastdepCC_FALSE= | |
4064 | fi | |
4065 | ||
4066 | ||
d0ac1c44 | 4067 | |
7357c5b6 AM |
4068 | ac_ext=c |
4069 | ac_cpp='$CPP $CPPFLAGS' | |
4070 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4071 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4072 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4074 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7357c5b6 AM |
4075 | # On Suns, sometimes $CPP names a directory. |
4076 | if test -n "$CPP" && test -d "$CPP"; then | |
4077 | CPP= | |
4078 | fi | |
4079 | if test -z "$CPP"; then | |
d0ac1c44 | 4080 | if ${ac_cv_prog_CPP+:} false; then : |
81ecdfbb | 4081 | $as_echo_n "(cached) " >&6 |
dabbade6 | 4082 | else |
7357c5b6 AM |
4083 | # Double quotes because CPP needs to be expanded |
4084 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4085 | do | |
4086 | ac_preproc_ok=false | |
4087 | for ac_c_preproc_warn_flag in '' yes | |
dabbade6 | 4088 | do |
7357c5b6 AM |
4089 | # Use a header file that comes with gcc, so configuring glibc |
4090 | # with a fresh cross-compiler works. | |
4091 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4092 | # <limits.h> exists even on freestanding compilers. | |
4093 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4094 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4096 | /* end confdefs.h. */ |
4097 | #ifdef __STDC__ | |
4098 | # include <limits.h> | |
4099 | #else | |
4100 | # include <assert.h> | |
4101 | #endif | |
4102 | Syntax error | |
4103 | _ACEOF | |
81ecdfbb | 4104 | if ac_fn_c_try_cpp "$LINENO"; then : |
dabbade6 | 4105 | |
81ecdfbb | 4106 | else |
7357c5b6 AM |
4107 | # Broken: fails on valid input. |
4108 | continue | |
252b5132 | 4109 | fi |
d0ac1c44 | 4110 | rm -f conftest.err conftest.i conftest.$ac_ext |
7357c5b6 | 4111 | |
81ecdfbb | 4112 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4113 | # can be detected and how. |
81ecdfbb | 4114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4115 | /* end confdefs.h. */ |
4116 | #include <ac_nonexistent.h> | |
4117 | _ACEOF | |
81ecdfbb | 4118 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4119 | # Broken: success on invalid input. |
4120 | continue | |
dabbade6 | 4121 | else |
7357c5b6 AM |
4122 | # Passes both tests. |
4123 | ac_preproc_ok=: | |
4124 | break | |
dabbade6 | 4125 | fi |
d0ac1c44 | 4126 | rm -f conftest.err conftest.i conftest.$ac_ext |
dabbade6 | 4127 | |
d7040cdb | 4128 | done |
7357c5b6 | 4129 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
d0ac1c44 | 4130 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb | 4131 | if $ac_preproc_ok; then : |
7357c5b6 AM |
4132 | break |
4133 | fi | |
4134 | ||
4135 | done | |
4136 | ac_cv_prog_CPP=$CPP | |
d7040cdb SE |
4137 | |
4138 | fi | |
7357c5b6 AM |
4139 | CPP=$ac_cv_prog_CPP |
4140 | else | |
4141 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 4142 | fi |
81ecdfbb RW |
4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4144 | $as_echo "$CPP" >&6; } | |
7357c5b6 AM |
4145 | ac_preproc_ok=false |
4146 | for ac_c_preproc_warn_flag in '' yes | |
4147 | do | |
4148 | # Use a header file that comes with gcc, so configuring glibc | |
4149 | # with a fresh cross-compiler works. | |
4150 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4151 | # <limits.h> exists even on freestanding compilers. | |
4152 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4153 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4155 | /* end confdefs.h. */ |
4156 | #ifdef __STDC__ | |
4157 | # include <limits.h> | |
4158 | #else | |
4159 | # include <assert.h> | |
4160 | #endif | |
4161 | Syntax error | |
4162 | _ACEOF | |
81ecdfbb | 4163 | if ac_fn_c_try_cpp "$LINENO"; then : |
d7040cdb | 4164 | |
81ecdfbb | 4165 | else |
7357c5b6 AM |
4166 | # Broken: fails on valid input. |
4167 | continue | |
d7040cdb | 4168 | fi |
d0ac1c44 | 4169 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4170 | |
81ecdfbb | 4171 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4172 | # can be detected and how. |
81ecdfbb | 4173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4174 | /* end confdefs.h. */ |
4175 | #include <ac_nonexistent.h> | |
4176 | _ACEOF | |
81ecdfbb | 4177 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4178 | # Broken: success on invalid input. |
4179 | continue | |
dabbade6 | 4180 | else |
7357c5b6 AM |
4181 | # Passes both tests. |
4182 | ac_preproc_ok=: | |
4183 | break | |
4184 | fi | |
d0ac1c44 | 4185 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4186 | |
7357c5b6 AM |
4187 | done |
4188 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 4189 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb RW |
4190 | if $ac_preproc_ok; then : |
4191 | ||
4192 | else | |
4193 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4194 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4195 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4196 | See \`config.log' for more details" "$LINENO" 5; } | |
81ecdfbb RW |
4197 | fi |
4198 | ||
4199 | ac_ext=c | |
4200 | ac_cpp='$CPP $CPPFLAGS' | |
4201 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4202 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4203 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4204 | ||
4205 | ||
4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4207 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
d0ac1c44 | 4208 | if ${ac_cv_path_GREP+:} false; then : |
81ecdfbb RW |
4209 | $as_echo_n "(cached) " >&6 |
4210 | else | |
4211 | if test -z "$GREP"; then | |
4212 | ac_path_GREP_found=false | |
4213 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4215 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4216 | do | |
4217 | IFS=$as_save_IFS | |
4218 | test -z "$as_dir" && as_dir=. | |
4219 | for ac_prog in grep ggrep; do | |
4220 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4221 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4222 | as_fn_executable_p "$ac_path_GREP" || continue |
81ecdfbb RW |
4223 | # Check for GNU ac_path_GREP and select it if it is found. |
4224 | # Check for GNU $ac_path_GREP | |
4225 | case `"$ac_path_GREP" --version 2>&1` in | |
4226 | *GNU*) | |
4227 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4228 | *) | |
4229 | ac_count=0 | |
4230 | $as_echo_n 0123456789 >"conftest.in" | |
4231 | while : | |
4232 | do | |
4233 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4234 | mv "conftest.tmp" "conftest.in" | |
4235 | cp "conftest.in" "conftest.nl" | |
4236 | $as_echo 'GREP' >> "conftest.nl" | |
4237 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4238 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4239 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4240 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4241 | # Best one so far, save it but keep looking for a better one | |
4242 | ac_cv_path_GREP="$ac_path_GREP" | |
4243 | ac_path_GREP_max=$ac_count | |
4244 | fi | |
4245 | # 10*(2^10) chars as input seems more than enough | |
4246 | test $ac_count -gt 10 && break | |
4247 | done | |
4248 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4249 | esac | |
4250 | ||
4251 | $ac_path_GREP_found && break 3 | |
4252 | done | |
4253 | done | |
4254 | done | |
4255 | IFS=$as_save_IFS | |
4256 | if test -z "$ac_cv_path_GREP"; then | |
d0ac1c44 | 4257 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb | 4258 | fi |
dabbade6 | 4259 | else |
81ecdfbb | 4260 | ac_cv_path_GREP=$GREP |
7357c5b6 | 4261 | fi |
d7040cdb | 4262 | |
81ecdfbb RW |
4263 | fi |
4264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4265 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4266 | GREP="$ac_cv_path_GREP" | |
d7040cdb SE |
4267 | |
4268 | ||
81ecdfbb RW |
4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4270 | $as_echo_n "checking for egrep... " >&6; } | |
d0ac1c44 | 4271 | if ${ac_cv_path_EGREP+:} false; then : |
81ecdfbb | 4272 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4273 | else |
81ecdfbb RW |
4274 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4275 | then ac_cv_path_EGREP="$GREP -E" | |
4276 | else | |
4277 | if test -z "$EGREP"; then | |
4278 | ac_path_EGREP_found=false | |
4279 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4281 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4282 | do | |
4283 | IFS=$as_save_IFS | |
4284 | test -z "$as_dir" && as_dir=. | |
4285 | for ac_prog in egrep; do | |
4286 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4287 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4288 | as_fn_executable_p "$ac_path_EGREP" || continue |
81ecdfbb RW |
4289 | # Check for GNU ac_path_EGREP and select it if it is found. |
4290 | # Check for GNU $ac_path_EGREP | |
4291 | case `"$ac_path_EGREP" --version 2>&1` in | |
4292 | *GNU*) | |
4293 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4294 | *) | |
4295 | ac_count=0 | |
4296 | $as_echo_n 0123456789 >"conftest.in" | |
4297 | while : | |
4298 | do | |
4299 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4300 | mv "conftest.tmp" "conftest.in" | |
4301 | cp "conftest.in" "conftest.nl" | |
4302 | $as_echo 'EGREP' >> "conftest.nl" | |
4303 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4304 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4305 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4306 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4307 | # Best one so far, save it but keep looking for a better one | |
4308 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4309 | ac_path_EGREP_max=$ac_count | |
7357c5b6 | 4310 | fi |
81ecdfbb RW |
4311 | # 10*(2^10) chars as input seems more than enough |
4312 | test $ac_count -gt 10 && break | |
4313 | done | |
4314 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4315 | esac | |
4316 | ||
4317 | $ac_path_EGREP_found && break 3 | |
4318 | done | |
4319 | done | |
4320 | done | |
4321 | IFS=$as_save_IFS | |
4322 | if test -z "$ac_cv_path_EGREP"; then | |
d0ac1c44 | 4323 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
4324 | fi |
4325 | else | |
4326 | ac_cv_path_EGREP=$EGREP | |
4327 | fi | |
4328 | ||
4329 | fi | |
7357c5b6 | 4330 | fi |
81ecdfbb RW |
4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4332 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4333 | EGREP="$ac_cv_path_EGREP" | |
d7040cdb SE |
4334 | |
4335 | ||
81ecdfbb RW |
4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4337 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
d0ac1c44 | 4338 | if ${ac_cv_header_stdc+:} false; then : |
81ecdfbb | 4339 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4340 | else |
81ecdfbb | 4341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4342 | /* end confdefs.h. */ |
4343 | #include <stdlib.h> | |
4344 | #include <stdarg.h> | |
4345 | #include <string.h> | |
4346 | #include <float.h> | |
d7040cdb | 4347 | |
7357c5b6 AM |
4348 | int |
4349 | main () | |
4350 | { | |
d7040cdb | 4351 | |
7357c5b6 AM |
4352 | ; |
4353 | return 0; | |
4354 | } | |
4355 | _ACEOF | |
81ecdfbb | 4356 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 AM |
4357 | ac_cv_header_stdc=yes |
4358 | else | |
81ecdfbb | 4359 | ac_cv_header_stdc=no |
7357c5b6 | 4360 | fi |
81ecdfbb | 4361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d7040cdb | 4362 | |
7357c5b6 AM |
4363 | if test $ac_cv_header_stdc = yes; then |
4364 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 4365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4366 | /* end confdefs.h. */ |
4367 | #include <string.h> | |
d7040cdb | 4368 | |
7357c5b6 AM |
4369 | _ACEOF |
4370 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4371 | $EGREP "memchr" >/dev/null 2>&1; then : |
4372 | ||
7357c5b6 AM |
4373 | else |
4374 | ac_cv_header_stdc=no | |
4375 | fi | |
4376 | rm -f conftest* | |
d7040cdb | 4377 | |
7357c5b6 | 4378 | fi |
d7040cdb | 4379 | |
7357c5b6 AM |
4380 | if test $ac_cv_header_stdc = yes; then |
4381 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 4382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4383 | /* end confdefs.h. */ |
4384 | #include <stdlib.h> | |
d7040cdb | 4385 | |
7357c5b6 AM |
4386 | _ACEOF |
4387 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4388 | $EGREP "free" >/dev/null 2>&1; then : |
4389 | ||
7357c5b6 AM |
4390 | else |
4391 | ac_cv_header_stdc=no | |
4392 | fi | |
4393 | rm -f conftest* | |
d7040cdb | 4394 | |
7357c5b6 | 4395 | fi |
d7040cdb | 4396 | |
7357c5b6 AM |
4397 | if test $ac_cv_header_stdc = yes; then |
4398 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 4399 | if test "$cross_compiling" = yes; then : |
7357c5b6 AM |
4400 | : |
4401 | else | |
81ecdfbb | 4402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4403 | /* end confdefs.h. */ |
4404 | #include <ctype.h> | |
81ecdfbb | 4405 | #include <stdlib.h> |
7357c5b6 AM |
4406 | #if ((' ' & 0x0FF) == 0x020) |
4407 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4408 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4409 | #else | |
4410 | # define ISLOWER(c) \ | |
4411 | (('a' <= (c) && (c) <= 'i') \ | |
4412 | || ('j' <= (c) && (c) <= 'r') \ | |
4413 | || ('s' <= (c) && (c) <= 'z')) | |
4414 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4415 | #endif | |
d7040cdb | 4416 | |
7357c5b6 AM |
4417 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4418 | int | |
4419 | main () | |
4420 | { | |
4421 | int i; | |
4422 | for (i = 0; i < 256; i++) | |
4423 | if (XOR (islower (i), ISLOWER (i)) | |
4424 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
4425 | return 2; |
4426 | return 0; | |
7357c5b6 AM |
4427 | } |
4428 | _ACEOF | |
81ecdfbb | 4429 | if ac_fn_c_try_run "$LINENO"; then : |
d7040cdb | 4430 | |
81ecdfbb RW |
4431 | else |
4432 | ac_cv_header_stdc=no | |
7357c5b6 | 4433 | fi |
81ecdfbb RW |
4434 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4435 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7357c5b6 | 4436 | fi |
81ecdfbb | 4437 | |
7357c5b6 AM |
4438 | fi |
4439 | fi | |
81ecdfbb RW |
4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4441 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7357c5b6 | 4442 | if test $ac_cv_header_stdc = yes; then |
d7040cdb | 4443 | |
81ecdfbb | 4444 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d7040cdb | 4445 | |
7357c5b6 | 4446 | fi |
d7040cdb | 4447 | |
7357c5b6 | 4448 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7357c5b6 AM |
4449 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4450 | inttypes.h stdint.h unistd.h | |
81ecdfbb RW |
4451 | do : |
4452 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4453 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4454 | " | |
d0ac1c44 | 4455 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7357c5b6 | 4456 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4457 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7357c5b6 | 4458 | _ACEOF |
d7040cdb | 4459 | |
7357c5b6 | 4460 | fi |
d7040cdb | 4461 | |
7357c5b6 | 4462 | done |
d7040cdb SE |
4463 | |
4464 | ||
4465 | ||
81ecdfbb | 4466 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
d0ac1c44 | 4467 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
7357c5b6 AM |
4468 | MINIX=yes |
4469 | else | |
4470 | MINIX= | |
4471 | fi | |
d7040cdb SE |
4472 | |
4473 | ||
7357c5b6 | 4474 | if test "$MINIX" = yes; then |
d7040cdb | 4475 | |
81ecdfbb | 4476 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
dabbade6 | 4477 | |
252b5132 | 4478 | |
81ecdfbb | 4479 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
d7040cdb SE |
4480 | |
4481 | ||
81ecdfbb | 4482 | $as_echo "#define _MINIX 1" >>confdefs.h |
d7040cdb | 4483 | |
7357c5b6 | 4484 | fi |
d7040cdb SE |
4485 | |
4486 | ||
81ecdfbb RW |
4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4488 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
d0ac1c44 | 4489 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
81ecdfbb | 4490 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 4491 | else |
81ecdfbb | 4492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 4493 | /* end confdefs.h. */ |
ac48eca1 | 4494 | |
d0ac1c44 SM |
4495 | # define __EXTENSIONS__ 1 |
4496 | $ac_includes_default | |
7357c5b6 AM |
4497 | int |
4498 | main () | |
4499 | { | |
87e6d782 | 4500 | |
7357c5b6 AM |
4501 | ; |
4502 | return 0; | |
4503 | } | |
4504 | _ACEOF | |
81ecdfbb | 4505 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 AM |
4506 | ac_cv_safe_to_define___extensions__=yes |
4507 | else | |
81ecdfbb | 4508 | ac_cv_safe_to_define___extensions__=no |
7357c5b6 | 4509 | fi |
81ecdfbb | 4510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7357c5b6 | 4511 | fi |
81ecdfbb RW |
4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4513 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
7357c5b6 | 4514 | test $ac_cv_safe_to_define___extensions__ = yes && |
81ecdfbb | 4515 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
ac48eca1 | 4516 | |
81ecdfbb | 4517 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
d7040cdb | 4518 | |
81ecdfbb RW |
4519 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
4520 | ||
4521 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4522 | ||
4523 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
d7040cdb | 4524 | |
ac48eca1 | 4525 | |
ac48eca1 | 4526 | |
ac48eca1 | 4527 | |
87e6d782 | 4528 | |
7357c5b6 AM |
4529 | if test -n "$ac_tool_prefix"; then |
4530 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4531 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
4532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4533 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4534 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 4535 | $as_echo_n "(cached) " >&6 |
dabbade6 | 4536 | else |
7357c5b6 AM |
4537 | if test -n "$AR"; then |
4538 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4539 | else | |
4540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4541 | for as_dir in $PATH | |
4542 | do | |
4543 | IFS=$as_save_IFS | |
4544 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4545 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4546 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 4547 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 4548 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
4549 | break 2 |
4550 | fi | |
4551 | done | |
81ecdfbb RW |
4552 | done |
4553 | IFS=$as_save_IFS | |
ac48eca1 | 4554 | |
7357c5b6 AM |
4555 | fi |
4556 | fi | |
4557 | AR=$ac_cv_prog_AR | |
4558 | if test -n "$AR"; then | |
81ecdfbb RW |
4559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
4560 | $as_echo "$AR" >&6; } | |
dabbade6 | 4561 | else |
81ecdfbb RW |
4562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4563 | $as_echo "no" >&6; } | |
dabbade6 | 4564 | fi |
6be7c12c | 4565 | |
81ecdfbb | 4566 | |
7357c5b6 AM |
4567 | fi |
4568 | if test -z "$ac_cv_prog_AR"; then | |
4569 | ac_ct_AR=$AR | |
4570 | # Extract the first word of "ar", so it can be a program name with args. | |
4571 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
4572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4573 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4574 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 4575 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
4576 | else |
4577 | if test -n "$ac_ct_AR"; then | |
4578 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4579 | else | |
4580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4581 | for as_dir in $PATH | |
4582 | do | |
4583 | IFS=$as_save_IFS | |
4584 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4585 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4586 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 4587 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 4588 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
4589 | break 2 |
4590 | fi | |
4591 | done | |
81ecdfbb RW |
4592 | done |
4593 | IFS=$as_save_IFS | |
7357c5b6 AM |
4594 | |
4595 | fi | |
4596 | fi | |
4597 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4598 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
4599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
4600 | $as_echo "$ac_ct_AR" >&6; } | |
7357c5b6 | 4601 | else |
81ecdfbb RW |
4602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4603 | $as_echo "no" >&6; } | |
7357c5b6 AM |
4604 | fi |
4605 | ||
81ecdfbb RW |
4606 | if test "x$ac_ct_AR" = x; then |
4607 | AR="" | |
4608 | else | |
4609 | case $cross_compiling:$ac_tool_warned in | |
4610 | yes:) | |
4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4612 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4613 | ac_tool_warned=yes ;; | |
4614 | esac | |
4615 | AR=$ac_ct_AR | |
4616 | fi | |
7357c5b6 AM |
4617 | else |
4618 | AR="$ac_cv_prog_AR" | |
4619 | fi | |
4620 | ||
4621 | if test -n "$ac_tool_prefix"; then | |
4622 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4623 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
4624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4625 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4626 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 4627 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
4628 | else |
4629 | if test -n "$RANLIB"; then | |
4630 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4631 | else | |
4632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4633 | for as_dir in $PATH | |
4634 | do | |
4635 | IFS=$as_save_IFS | |
4636 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4637 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4638 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 4639 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 4640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
4641 | break 2 |
4642 | fi | |
4643 | done | |
81ecdfbb RW |
4644 | done |
4645 | IFS=$as_save_IFS | |
7357c5b6 AM |
4646 | |
4647 | fi | |
4648 | fi | |
4649 | RANLIB=$ac_cv_prog_RANLIB | |
4650 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
4651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
4652 | $as_echo "$RANLIB" >&6; } | |
7357c5b6 | 4653 | else |
81ecdfbb RW |
4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4655 | $as_echo "no" >&6; } | |
7357c5b6 AM |
4656 | fi |
4657 | ||
81ecdfbb | 4658 | |
7357c5b6 AM |
4659 | fi |
4660 | if test -z "$ac_cv_prog_RANLIB"; then | |
4661 | ac_ct_RANLIB=$RANLIB | |
4662 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4663 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
4664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4665 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4666 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 4667 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
4668 | else |
4669 | if test -n "$ac_ct_RANLIB"; then | |
4670 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4671 | else | |
4672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4673 | for as_dir in $PATH | |
4674 | do | |
4675 | IFS=$as_save_IFS | |
4676 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4677 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4678 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 4679 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 4680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
4681 | break 2 |
4682 | fi | |
4683 | done | |
81ecdfbb RW |
4684 | done |
4685 | IFS=$as_save_IFS | |
7357c5b6 | 4686 | |
7357c5b6 AM |
4687 | fi |
4688 | fi | |
4689 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4690 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
4691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
4692 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7357c5b6 | 4693 | else |
81ecdfbb RW |
4694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4695 | $as_echo "no" >&6; } | |
7357c5b6 AM |
4696 | fi |
4697 | ||
81ecdfbb RW |
4698 | if test "x$ac_ct_RANLIB" = x; then |
4699 | RANLIB=":" | |
4700 | else | |
4701 | case $cross_compiling:$ac_tool_warned in | |
4702 | yes:) | |
4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4704 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4705 | ac_tool_warned=yes ;; | |
4706 | esac | |
4707 | RANLIB=$ac_ct_RANLIB | |
4708 | fi | |
7357c5b6 AM |
4709 | else |
4710 | RANLIB="$ac_cv_prog_RANLIB" | |
4711 | fi | |
4712 | ||
4713 | ||
81ecdfbb RW |
4714 | # Check whether --enable-shared was given. |
4715 | if test "${enable_shared+set}" = set; then : | |
4716 | enableval=$enable_shared; p=${PACKAGE-default} | |
7357c5b6 AM |
4717 | case $enableval in |
4718 | yes) enable_shared=yes ;; | |
4719 | no) enable_shared=no ;; | |
4720 | *) | |
4721 | enable_shared=no | |
4722 | # Look at the argument we got. We use all the common list separators. | |
4723 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4724 | for pkg in $enableval; do | |
4725 | IFS="$lt_save_ifs" | |
4726 | if test "X$pkg" = "X$p"; then | |
4727 | enable_shared=yes | |
4728 | fi | |
4729 | done | |
4730 | IFS="$lt_save_ifs" | |
4731 | ;; | |
4732 | esac | |
4733 | else | |
4734 | enable_shared=no | |
81ecdfbb RW |
4735 | fi |
4736 | ||
7357c5b6 AM |
4737 | |
4738 | ||
4739 | ||
4740 | ||
4741 | ||
4742 | ||
4743 | ||
4744 | ||
4745 | ||
1927a18f L |
4746 | case `pwd` in |
4747 | *\ * | *\ *) | |
81ecdfbb RW |
4748 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4749 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
1927a18f | 4750 | esac |
7357c5b6 AM |
4751 | |
4752 | ||
7357c5b6 | 4753 | |
3725885a RW |
4754 | macro_version='2.2.7a' |
4755 | macro_revision='1.3134' | |
7357c5b6 AM |
4756 | |
4757 | ||
4758 | ||
4759 | ||
4760 | ||
4761 | ||
7357c5b6 AM |
4762 | |
4763 | ||
4764 | ||
4765 | ||
4766 | ||
4767 | ||
4768 | ||
1927a18f | 4769 | ltmain="$ac_aux_dir/ltmain.sh" |
7357c5b6 | 4770 | |
3725885a RW |
4771 | # Backslashify metacharacters that are still active within |
4772 | # double-quoted strings. | |
4773 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4774 | ||
4775 | # Same as above, but do not quote variable references. | |
4776 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4777 | ||
4778 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4779 | # double_quote_subst'ed string. | |
4780 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4781 | ||
4782 | # Sed substitution to delay expansion of an escaped single quote. | |
4783 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4784 | ||
4785 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4786 | no_glob_subst='s/\*/\\\*/g' | |
4787 | ||
4788 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4789 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4790 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4791 | ||
4792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4793 | $as_echo_n "checking how to print strings... " >&6; } | |
4794 | # Test print first, because it will be a builtin if present. | |
4795 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
4796 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4797 | ECHO='print -r --' | |
4798 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4799 | ECHO='printf %s\n' | |
4800 | else | |
4801 | # Use this function as a fallback that always works. | |
4802 | func_fallback_echo () | |
4803 | { | |
4804 | eval 'cat <<_LTECHO_EOF | |
4805 | $1 | |
4806 | _LTECHO_EOF' | |
4807 | } | |
4808 | ECHO='func_fallback_echo' | |
4809 | fi | |
4810 | ||
4811 | # func_echo_all arg... | |
4812 | # Invoke $ECHO with all args, space-separated. | |
4813 | func_echo_all () | |
4814 | { | |
4815 | $ECHO "" | |
4816 | } | |
4817 | ||
4818 | case "$ECHO" in | |
4819 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4820 | $as_echo "printf" >&6; } ;; | |
4821 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4822 | $as_echo "print -r" >&6; } ;; | |
4823 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4824 | $as_echo "cat" >&6; } ;; | |
4825 | esac | |
4826 | ||
4827 | ||
4828 | ||
4829 | ||
4830 | ||
4831 | ||
4832 | ||
4833 | ||
4834 | ||
4835 | ||
4836 | ||
4837 | ||
4838 | ||
4839 | ||
81ecdfbb RW |
4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4841 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 4842 | if ${ac_cv_path_SED+:} false; then : |
81ecdfbb | 4843 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4844 | else |
81ecdfbb RW |
4845 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
4846 | for ac_i in 1 2 3 4 5 6 7; do | |
4847 | ac_script="$ac_script$as_nl$ac_script" | |
4848 | done | |
4849 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4850 | { ac_script=; unset ac_script;} | |
4851 | if test -z "$SED"; then | |
4852 | ac_path_SED_found=false | |
4853 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
4855 | for as_dir in $PATH |
4856 | do | |
4857 | IFS=$as_save_IFS | |
4858 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4859 | for ac_prog in sed gsed; do |
7357c5b6 | 4860 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb | 4861 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
d0ac1c44 | 4862 | as_fn_executable_p "$ac_path_SED" || continue |
81ecdfbb RW |
4863 | # Check for GNU ac_path_SED and select it if it is found. |
4864 | # Check for GNU $ac_path_SED | |
4865 | case `"$ac_path_SED" --version 2>&1` in | |
4866 | *GNU*) | |
4867 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4868 | *) | |
4869 | ac_count=0 | |
4870 | $as_echo_n 0123456789 >"conftest.in" | |
4871 | while : | |
4872 | do | |
4873 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4874 | mv "conftest.tmp" "conftest.in" | |
4875 | cp "conftest.in" "conftest.nl" | |
4876 | $as_echo '' >> "conftest.nl" | |
4877 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4878 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4879 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4880 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4881 | # Best one so far, save it but keep looking for a better one | |
4882 | ac_cv_path_SED="$ac_path_SED" | |
4883 | ac_path_SED_max=$ac_count | |
4884 | fi | |
4885 | # 10*(2^10) chars as input seems more than enough | |
4886 | test $ac_count -gt 10 && break | |
4887 | done | |
4888 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4889 | esac | |
4890 | ||
4891 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
4892 | done |
4893 | done | |
81ecdfbb | 4894 | done |
7357c5b6 | 4895 | IFS=$as_save_IFS |
81ecdfbb | 4896 | if test -z "$ac_cv_path_SED"; then |
d0ac1c44 | 4897 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
7357c5b6 | 4898 | fi |
81ecdfbb RW |
4899 | else |
4900 | ac_cv_path_SED=$SED | |
7357c5b6 AM |
4901 | fi |
4902 | ||
81ecdfbb RW |
4903 | fi |
4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4905 | $as_echo "$ac_cv_path_SED" >&6; } | |
4906 | SED="$ac_cv_path_SED" | |
4907 | rm -f conftest.sed | |
7357c5b6 AM |
4908 | |
4909 | test -z "$SED" && SED=sed | |
4910 | Xsed="$SED -e 1s/^X//" | |
4911 | ||
4912 | ||
4913 | ||
4914 | ||
4915 | ||
4916 | ||
4917 | ||
4918 | ||
4919 | ||
4920 | ||
4921 | ||
81ecdfbb RW |
4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
4923 | $as_echo_n "checking for fgrep... " >&6; } | |
d0ac1c44 | 4924 | if ${ac_cv_path_FGREP+:} false; then : |
81ecdfbb | 4925 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4926 | else |
81ecdfbb RW |
4927 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4928 | then ac_cv_path_FGREP="$GREP -F" | |
4929 | else | |
4930 | if test -z "$FGREP"; then | |
4931 | ac_path_FGREP_found=false | |
4932 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4934 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4935 | do | |
4936 | IFS=$as_save_IFS | |
4937 | test -z "$as_dir" && as_dir=. | |
4938 | for ac_prog in fgrep; do | |
4939 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4940 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4941 | as_fn_executable_p "$ac_path_FGREP" || continue |
81ecdfbb RW |
4942 | # Check for GNU ac_path_FGREP and select it if it is found. |
4943 | # Check for GNU $ac_path_FGREP | |
4944 | case `"$ac_path_FGREP" --version 2>&1` in | |
4945 | *GNU*) | |
4946 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4947 | *) | |
4948 | ac_count=0 | |
4949 | $as_echo_n 0123456789 >"conftest.in" | |
4950 | while : | |
4951 | do | |
4952 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4953 | mv "conftest.tmp" "conftest.in" | |
4954 | cp "conftest.in" "conftest.nl" | |
4955 | $as_echo 'FGREP' >> "conftest.nl" | |
4956 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4957 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4958 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4959 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4960 | # Best one so far, save it but keep looking for a better one | |
4961 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4962 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 4963 | fi |
81ecdfbb RW |
4964 | # 10*(2^10) chars as input seems more than enough |
4965 | test $ac_count -gt 10 && break | |
4966 | done | |
4967 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4968 | esac | |
4969 | ||
4970 | $ac_path_FGREP_found && break 3 | |
4971 | done | |
4972 | done | |
4973 | done | |
4974 | IFS=$as_save_IFS | |
4975 | if test -z "$ac_cv_path_FGREP"; then | |
d0ac1c44 | 4976 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
4977 | fi |
4978 | else | |
4979 | ac_cv_path_FGREP=$FGREP | |
4980 | fi | |
4981 | ||
4982 | fi | |
7357c5b6 | 4983 | fi |
81ecdfbb RW |
4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
4985 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4986 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
4987 | |
4988 | ||
4989 | test -z "$GREP" && GREP=grep | |
d7040cdb | 4990 | |
d7040cdb | 4991 | |
d7040cdb | 4992 | |
ac48eca1 AO |
4993 | |
4994 | ||
4995 | ||
ac48eca1 | 4996 | |
ac48eca1 | 4997 | |
ac48eca1 | 4998 | |
ac48eca1 | 4999 | |
ac48eca1 | 5000 | |
ac48eca1 | 5001 | |
ac48eca1 | 5002 | |
ac48eca1 | 5003 | |
ac48eca1 | 5004 | |
ac48eca1 | 5005 | |
dabbade6 L |
5006 | |
5007 | ||
5008 | ||
81ecdfbb RW |
5009 | # Check whether --with-gnu-ld was given. |
5010 | if test "${with_gnu_ld+set}" = set; then : | |
5011 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
dabbade6 L |
5012 | else |
5013 | with_gnu_ld=no | |
81ecdfbb RW |
5014 | fi |
5015 | ||
dabbade6 L |
5016 | ac_prog=ld |
5017 | if test "$GCC" = yes; then | |
5018 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5020 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
dabbade6 L |
5021 | case $host in |
5022 | *-*-mingw*) | |
5023 | # gcc leaves a trailing carriage return which upsets mingw | |
5024 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5025 | *) | |
5026 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5027 | esac | |
5028 | case $ac_prog in | |
5029 | # Accept absolute paths. | |
5030 | [\\/]* | ?:[\\/]*) | |
5031 | re_direlt='/[^/][^/]*/\.\./' | |
5032 | # Canonicalize the pathname of ld | |
5033 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5034 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5035 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5036 | done | |
5037 | test -z "$LD" && LD="$ac_prog" | |
5038 | ;; | |
5039 | "") | |
5040 | # If it fails, then pretend we aren't using GCC. | |
5041 | ac_prog=ld | |
5042 | ;; | |
5043 | *) | |
5044 | # If it is relative, then search for the first ld in PATH. | |
5045 | with_gnu_ld=unknown | |
5046 | ;; | |
5047 | esac | |
5048 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5050 | $as_echo_n "checking for GNU ld... " >&6; } | |
dabbade6 | 5051 | else |
81ecdfbb RW |
5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5053 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
dabbade6 | 5054 | fi |
d0ac1c44 | 5055 | if ${lt_cv_path_LD+:} false; then : |
81ecdfbb | 5056 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 5057 | else |
dabbade6 L |
5058 | if test -z "$LD"; then |
5059 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5060 | for ac_dir in $PATH; do | |
5061 | IFS="$lt_save_ifs" | |
5062 | test -z "$ac_dir" && ac_dir=. | |
5063 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5064 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5065 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5066 | # but apparently some variants of GNU ld only accept -v. | |
5067 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5068 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5069 | *GNU* | *'with BFD'*) | |
5070 | test "$with_gnu_ld" != no && break | |
5071 | ;; | |
5072 | *) | |
5073 | test "$with_gnu_ld" != yes && break | |
5074 | ;; | |
5075 | esac | |
5076 | fi | |
5077 | done | |
5078 | IFS="$lt_save_ifs" | |
ac48eca1 | 5079 | else |
dabbade6 | 5080 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
ac48eca1 AO |
5081 | fi |
5082 | fi | |
dabbade6 L |
5083 | |
5084 | LD="$lt_cv_path_LD" | |
5085 | if test -n "$LD"; then | |
81ecdfbb RW |
5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5087 | $as_echo "$LD" >&6; } | |
ac48eca1 | 5088 | else |
81ecdfbb RW |
5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5090 | $as_echo "no" >&6; } | |
ac48eca1 | 5091 | fi |
d0ac1c44 | 5092 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
81ecdfbb RW |
5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
5094 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d0ac1c44 | 5095 | if ${lt_cv_prog_gnu_ld+:} false; then : |
81ecdfbb | 5096 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 5097 | else |
dabbade6 L |
5098 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5099 | case `$LD -v 2>&1 </dev/null` in | |
5100 | *GNU* | *'with BFD'*) | |
5101 | lt_cv_prog_gnu_ld=yes | |
5102 | ;; | |
5103 | *) | |
5104 | lt_cv_prog_gnu_ld=no | |
5105 | ;; | |
5106 | esac | |
ac48eca1 | 5107 | fi |
81ecdfbb RW |
5108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5109 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
dabbade6 | 5110 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d7040cdb SE |
5111 | |
5112 | ||
5113 | ||
5114 | ||
5115 | ||
5116 | ||
5117 | ||
5118 | ||
5119 | ||
81ecdfbb RW |
5120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5121 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
d0ac1c44 | 5122 | if ${lt_cv_path_NM+:} false; then : |
81ecdfbb | 5123 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 5124 | else |
dabbade6 L |
5125 | if test -n "$NM"; then |
5126 | # Let the user override the test. | |
5127 | lt_cv_path_NM="$NM" | |
ac48eca1 | 5128 | else |
dabbade6 L |
5129 | lt_nm_to_check="${ac_tool_prefix}nm" |
5130 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5131 | lt_nm_to_check="$lt_nm_to_check nm" | |
979273e3 | 5132 | fi |
dabbade6 L |
5133 | for lt_tmp_nm in $lt_nm_to_check; do |
5134 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5135 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5136 | IFS="$lt_save_ifs" | |
5137 | test -z "$ac_dir" && ac_dir=. | |
5138 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5139 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5140 | # Check to see if the nm accepts a BSD-compat flag. | |
5141 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5142 | # nm: unknown option "B" ignored | |
5143 | # Tru64's nm complains that /dev/null is an invalid object file | |
5144 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5145 | */dev/null* | *'Invalid file or object type'*) | |
5146 | lt_cv_path_NM="$tmp_nm -B" | |
5147 | break | |
5148 | ;; | |
5149 | *) | |
5150 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5151 | */dev/null*) | |
5152 | lt_cv_path_NM="$tmp_nm -p" | |
5153 | break | |
5154 | ;; | |
5155 | *) | |
5156 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5157 | continue # so that we can try to find one that supports BSD flags | |
5158 | ;; | |
5159 | esac | |
5160 | ;; | |
5161 | esac | |
5162 | fi | |
5163 | done | |
5164 | IFS="$lt_save_ifs" | |
5165 | done | |
5166 | : ${lt_cv_path_NM=no} | |
ac48eca1 AO |
5167 | fi |
5168 | fi | |
81ecdfbb RW |
5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5170 | $as_echo "$lt_cv_path_NM" >&6; } | |
dabbade6 L |
5171 | if test "$lt_cv_path_NM" != "no"; then |
5172 | NM="$lt_cv_path_NM" | |
ac48eca1 | 5173 | else |
dabbade6 | 5174 | # Didn't find any BSD compatible name lister, look for dumpbin. |
3725885a RW |
5175 | if test -n "$DUMPBIN"; then : |
5176 | # Let the user override the test. | |
5177 | else | |
5178 | if test -n "$ac_tool_prefix"; then | |
5179 | for ac_prog in dumpbin "link -dump" | |
dabbade6 L |
5180 | do |
5181 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5182 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5184 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5185 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
81ecdfbb | 5186 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 5187 | else |
dabbade6 L |
5188 | if test -n "$DUMPBIN"; then |
5189 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ac48eca1 | 5190 | else |
979273e3 NN |
5191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5192 | for as_dir in $PATH | |
5193 | do | |
5194 | IFS=$as_save_IFS | |
5195 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5196 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5197 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 5198 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5199 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
5200 | break 2 |
5201 | fi | |
5202 | done | |
81ecdfbb RW |
5203 | done |
5204 | IFS=$as_save_IFS | |
979273e3 | 5205 | |
ac48eca1 AO |
5206 | fi |
5207 | fi | |
dabbade6 L |
5208 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5209 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5211 | $as_echo "$DUMPBIN" >&6; } | |
ac48eca1 | 5212 | else |
81ecdfbb RW |
5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5214 | $as_echo "no" >&6; } | |
ac48eca1 AO |
5215 | fi |
5216 | ||
81ecdfbb | 5217 | |
dabbade6 L |
5218 | test -n "$DUMPBIN" && break |
5219 | done | |
ac48eca1 | 5220 | fi |
dabbade6 L |
5221 | if test -z "$DUMPBIN"; then |
5222 | ac_ct_DUMPBIN=$DUMPBIN | |
3725885a | 5223 | for ac_prog in dumpbin "link -dump" |
dabbade6 L |
5224 | do |
5225 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5226 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5228 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5229 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
81ecdfbb | 5230 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 5231 | else |
dabbade6 L |
5232 | if test -n "$ac_ct_DUMPBIN"; then |
5233 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
d7040cdb SE |
5234 | else |
5235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5236 | for as_dir in $PATH | |
5237 | do | |
5238 | IFS=$as_save_IFS | |
5239 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5240 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5241 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 5242 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 5243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 5244 | break 2 |
252b5132 | 5245 | fi |
d7040cdb | 5246 | done |
81ecdfbb RW |
5247 | done |
5248 | IFS=$as_save_IFS | |
252b5132 | 5249 | |
d7040cdb SE |
5250 | fi |
5251 | fi | |
dabbade6 L |
5252 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5253 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5255 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
d7040cdb | 5256 | else |
81ecdfbb RW |
5257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5258 | $as_echo "no" >&6; } | |
d7040cdb | 5259 | fi |
4867be41 | 5260 | |
81ecdfbb | 5261 | |
dabbade6 | 5262 | test -n "$ac_ct_DUMPBIN" && break |
d7040cdb | 5263 | done |
32fba81d | 5264 | |
81ecdfbb RW |
5265 | if test "x$ac_ct_DUMPBIN" = x; then |
5266 | DUMPBIN=":" | |
5267 | else | |
5268 | case $cross_compiling:$ac_tool_warned in | |
5269 | yes:) | |
5270 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5271 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5272 | ac_tool_warned=yes ;; | |
5273 | esac | |
5274 | DUMPBIN=$ac_ct_DUMPBIN | |
5275 | fi | |
d7040cdb | 5276 | fi |
979273e3 | 5277 | |
3725885a RW |
5278 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5279 | *COFF*) | |
5280 | DUMPBIN="$DUMPBIN -symbols" | |
5281 | ;; | |
5282 | *) | |
5283 | DUMPBIN=: | |
5284 | ;; | |
5285 | esac | |
5286 | fi | |
979273e3 | 5287 | |
dabbade6 L |
5288 | if test "$DUMPBIN" != ":"; then |
5289 | NM="$DUMPBIN" | |
5290 | fi | |
5291 | fi | |
5292 | test -z "$NM" && NM=nm | |
ac48eca1 | 5293 | |
252b5132 | 5294 | |
252b5132 | 5295 | |
979273e3 | 5296 | |
ac48eca1 | 5297 | |
d7040cdb | 5298 | |
81ecdfbb RW |
5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5300 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
d0ac1c44 | 5301 | if ${lt_cv_nm_interface+:} false; then : |
81ecdfbb | 5302 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
5303 | else |
5304 | lt_cv_nm_interface="BSD nm" | |
5305 | echo "int some_variable = 0;" > conftest.$ac_ext | |
3725885a | 5306 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
dabbade6 L |
5307 | (eval "$ac_compile" 2>conftest.err) |
5308 | cat conftest.err >&5 | |
3725885a | 5309 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
dabbade6 L |
5310 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5311 | cat conftest.err >&5 | |
3725885a | 5312 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
dabbade6 L |
5313 | cat conftest.out >&5 |
5314 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5315 | lt_cv_nm_interface="MS dumpbin" | |
5316 | fi | |
5317 | rm -f conftest* | |
5318 | fi | |
81ecdfbb RW |
5319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5320 | $as_echo "$lt_cv_nm_interface" >&6; } | |
d7040cdb | 5321 | |
81ecdfbb RW |
5322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5323 | $as_echo_n "checking whether ln -s works... " >&6; } | |
dabbade6 L |
5324 | LN_S=$as_ln_s |
5325 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
5326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5327 | $as_echo "yes" >&6; } | |
dabbade6 | 5328 | else |
81ecdfbb RW |
5329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5330 | $as_echo "no, using $LN_S" >&6; } | |
dabbade6 L |
5331 | fi |
5332 | ||
5333 | # find the maximum length of command line arguments | |
81ecdfbb RW |
5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5335 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
d0ac1c44 | 5336 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
81ecdfbb | 5337 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
5338 | else |
5339 | i=0 | |
5340 | teststring="ABCD" | |
5341 | ||
5342 | case $build_os in | |
5343 | msdosdjgpp*) | |
5344 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5345 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5346 | # during glob expansion). Even if it were fixed, the result of this | |
5347 | # check would be larger than it should be. | |
5348 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5349 | ;; | |
5350 | ||
5351 | gnu*) | |
5352 | # Under GNU Hurd, this test is not required because there is | |
5353 | # no limit to the length of command line arguments. | |
5354 | # Libtool will interpret -1 as no limit whatsoever | |
5355 | lt_cv_sys_max_cmd_len=-1; | |
5356 | ;; | |
5357 | ||
1927a18f | 5358 | cygwin* | mingw* | cegcc*) |
dabbade6 L |
5359 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5360 | # about 5 minutes as the teststring grows exponentially. | |
5361 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5362 | # you end up with a "frozen" computer, even though with patience | |
5363 | # the test eventually succeeds (with a max line length of 256k). | |
5364 | # Instead, let's just punt: use the minimum linelength reported by | |
5365 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5366 | lt_cv_sys_max_cmd_len=8192; | |
5367 | ;; | |
5368 | ||
3725885a RW |
5369 | mint*) |
5370 | # On MiNT this can take a long time and run out of memory. | |
5371 | lt_cv_sys_max_cmd_len=8192; | |
5372 | ;; | |
5373 | ||
dabbade6 L |
5374 | amigaos*) |
5375 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5376 | # So we just punt and use a minimum line length of 8192. | |
5377 | lt_cv_sys_max_cmd_len=8192; | |
5378 | ;; | |
5379 | ||
5380 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5381 | # This has been around since 386BSD, at least. Likely further. | |
5382 | if test -x /sbin/sysctl; then | |
5383 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5384 | elif test -x /usr/sbin/sysctl; then | |
5385 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5386 | else | |
5387 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5388 | fi | |
5389 | # And add a safety zone | |
5390 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5391 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5392 | ;; | |
5393 | ||
5394 | interix*) | |
5395 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5396 | lt_cv_sys_max_cmd_len=196608 | |
5397 | ;; | |
5398 | ||
5399 | osf*) | |
5400 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5401 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5402 | # nice to cause kernel panics so lets avoid the loop below. | |
5403 | # First set a reasonable default. | |
5404 | lt_cv_sys_max_cmd_len=16384 | |
5405 | # | |
5406 | if test -x /sbin/sysconfig; then | |
5407 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5408 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5409 | esac | |
5410 | fi | |
5411 | ;; | |
5412 | sco3.2v5*) | |
5413 | lt_cv_sys_max_cmd_len=102400 | |
5414 | ;; | |
5415 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5416 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5417 | if test -n "$kargmax"; then | |
5418 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5419 | else | |
5420 | lt_cv_sys_max_cmd_len=32768 | |
5421 | fi | |
d7040cdb SE |
5422 | ;; |
5423 | *) | |
1927a18f L |
5424 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5425 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
dabbade6 L |
5426 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5427 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5428 | else | |
5429 | # Make teststring a little bigger before we do anything with it. | |
5430 | # a 1K string should be a reasonable start. | |
5431 | for i in 1 2 3 4 5 6 7 8 ; do | |
5432 | teststring=$teststring$teststring | |
5433 | done | |
5434 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5435 | # If test is not a shell built-in, we'll probably end up computing a | |
5436 | # maximum length that is only half of the actual maximum length, but | |
5437 | # we can't tell. | |
3725885a RW |
5438 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
5439 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
dabbade6 L |
5440 | test $i != 17 # 1/2 MB should be enough |
5441 | do | |
5442 | i=`expr $i + 1` | |
5443 | teststring=$teststring$teststring | |
5444 | done | |
5445 | # Only check the string length outside the loop. | |
5446 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5447 | teststring= | |
5448 | # Add a significant safety factor because C++ compilers can tack on | |
5449 | # massive amounts of additional arguments before passing them to the | |
5450 | # linker. It appears as though 1/2 is a usable value. | |
5451 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5452 | fi | |
d7040cdb SE |
5453 | ;; |
5454 | esac | |
252b5132 | 5455 | |
dabbade6 | 5456 | fi |
252b5132 | 5457 | |
dabbade6 | 5458 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
5459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5460 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
dabbade6 | 5461 | else |
81ecdfbb RW |
5462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5463 | $as_echo "none" >&6; } | |
dabbade6 L |
5464 | fi |
5465 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
252b5132 | 5466 | |
252b5132 | 5467 | |
979273e3 | 5468 | |
979273e3 | 5469 | |
252b5132 | 5470 | |
252b5132 | 5471 | |
dabbade6 L |
5472 | : ${CP="cp -f"} |
5473 | : ${MV="mv -f"} | |
5474 | : ${RM="rm -f"} | |
252b5132 | 5475 | |
81ecdfbb RW |
5476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5477 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
dabbade6 L |
5478 | # Try some XSI features |
5479 | xsi_shell=no | |
5480 | ( _lt_dummy="a/b/c" | |
5481 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
1927a18f L |
5482 | = c,a/b,, \ |
5483 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5484 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
dabbade6 | 5485 | && xsi_shell=yes |
81ecdfbb RW |
5486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5487 | $as_echo "$xsi_shell" >&6; } | |
252b5132 | 5488 | |
252b5132 | 5489 | |
81ecdfbb RW |
5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5491 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
dabbade6 L |
5492 | lt_shell_append=no |
5493 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5494 | >/dev/null 2>&1 \ | |
5495 | && lt_shell_append=yes | |
81ecdfbb RW |
5496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5497 | $as_echo "$lt_shell_append" >&6; } | |
252b5132 | 5498 | |
ac48eca1 | 5499 | |
dabbade6 L |
5500 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5501 | lt_unset=unset | |
5502 | else | |
5503 | lt_unset=false | |
5504 | fi | |
979273e3 NN |
5505 | |
5506 | ||
5507 | ||
5508 | ||
ac48eca1 | 5509 | |
dabbade6 L |
5510 | # test EBCDIC or ASCII |
5511 | case `echo X|tr X '\101'` in | |
5512 | A) # ASCII based system | |
5513 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5514 | lt_SP2NL='tr \040 \012' | |
5515 | lt_NL2SP='tr \015\012 \040\040' | |
5516 | ;; | |
5517 | *) # EBCDIC based system | |
5518 | lt_SP2NL='tr \100 \n' | |
5519 | lt_NL2SP='tr \r\n \100\100' | |
5520 | ;; | |
5521 | esac | |
9e9b66a9 | 5522 | |
1ad12f97 | 5523 | |
1ad12f97 | 5524 | |
9e9b66a9 | 5525 | |
1ad12f97 | 5526 | |
a541e3ce | 5527 | |
9e9b66a9 | 5528 | |
a2d91340 AC |
5529 | |
5530 | ||
81ecdfbb RW |
5531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5532 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
d0ac1c44 | 5533 | if ${lt_cv_ld_reload_flag+:} false; then : |
81ecdfbb | 5534 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
5535 | else |
5536 | lt_cv_ld_reload_flag='-r' | |
5537 | fi | |
81ecdfbb RW |
5538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5539 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
dabbade6 L |
5540 | reload_flag=$lt_cv_ld_reload_flag |
5541 | case $reload_flag in | |
5542 | "" | " "*) ;; | |
5543 | *) reload_flag=" $reload_flag" ;; | |
5544 | esac | |
5545 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5546 | case $host_os in | |
5547 | darwin*) | |
5548 | if test "$GCC" = yes; then | |
5549 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5550 | else | |
5551 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5552 | fi | |
5553 | ;; | |
5554 | esac | |
9e9b66a9 AM |
5555 | |
5556 | ||
5557 | ||
252b5132 | 5558 | |
252b5132 | 5559 | |
252b5132 | 5560 | |
252b5132 | 5561 | |
252b5132 | 5562 | |
d7040cdb | 5563 | |
1927a18f L |
5564 | if test -n "$ac_tool_prefix"; then |
5565 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5566 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5568 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5569 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 5570 | $as_echo_n "(cached) " >&6 |
1927a18f L |
5571 | else |
5572 | if test -n "$OBJDUMP"; then | |
5573 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5574 | else | |
5575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5576 | for as_dir in $PATH | |
5577 | do | |
5578 | IFS=$as_save_IFS | |
5579 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5580 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5581 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 5582 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 5583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
5584 | break 2 |
5585 | fi | |
5586 | done | |
81ecdfbb RW |
5587 | done |
5588 | IFS=$as_save_IFS | |
1927a18f L |
5589 | |
5590 | fi | |
5591 | fi | |
5592 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5593 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
5594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5595 | $as_echo "$OBJDUMP" >&6; } | |
1927a18f | 5596 | else |
81ecdfbb RW |
5597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5598 | $as_echo "no" >&6; } | |
1927a18f L |
5599 | fi |
5600 | ||
81ecdfbb | 5601 | |
1927a18f L |
5602 | fi |
5603 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5604 | ac_ct_OBJDUMP=$OBJDUMP | |
5605 | # Extract the first word of "objdump", so it can be a program name with args. | |
5606 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
5607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5608 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5609 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
81ecdfbb | 5610 | $as_echo_n "(cached) " >&6 |
1927a18f L |
5611 | else |
5612 | if test -n "$ac_ct_OBJDUMP"; then | |
5613 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5614 | else | |
5615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5616 | for as_dir in $PATH | |
5617 | do | |
5618 | IFS=$as_save_IFS | |
5619 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5620 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5621 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 5622 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 5623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
5624 | break 2 |
5625 | fi | |
5626 | done | |
81ecdfbb RW |
5627 | done |
5628 | IFS=$as_save_IFS | |
1927a18f | 5629 | |
1927a18f L |
5630 | fi |
5631 | fi | |
5632 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5633 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
5634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5635 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
1927a18f | 5636 | else |
81ecdfbb RW |
5637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5638 | $as_echo "no" >&6; } | |
1927a18f L |
5639 | fi |
5640 | ||
81ecdfbb RW |
5641 | if test "x$ac_ct_OBJDUMP" = x; then |
5642 | OBJDUMP="false" | |
5643 | else | |
5644 | case $cross_compiling:$ac_tool_warned in | |
5645 | yes:) | |
5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5647 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5648 | ac_tool_warned=yes ;; | |
5649 | esac | |
5650 | OBJDUMP=$ac_ct_OBJDUMP | |
5651 | fi | |
1927a18f L |
5652 | else |
5653 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5654 | fi | |
5655 | ||
5656 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5657 | ||
5658 | ||
5659 | ||
5660 | ||
5661 | ||
5662 | ||
5663 | ||
5664 | ||
d7040cdb | 5665 | |
81ecdfbb RW |
5666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5667 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
d0ac1c44 | 5668 | if ${lt_cv_deplibs_check_method+:} false; then : |
81ecdfbb | 5669 | $as_echo_n "(cached) " >&6 |
252b5132 | 5670 | else |
dabbade6 L |
5671 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5672 | lt_cv_file_magic_test_file= | |
5673 | lt_cv_deplibs_check_method='unknown' | |
5674 | # Need to set the preceding variable on all platforms that support | |
5675 | # interlibrary dependencies. | |
5676 | # 'none' -- dependencies not supported. | |
5677 | # `unknown' -- same as none, but documents that we really don't know. | |
5678 | # 'pass_all' -- all dependencies passed with no checks. | |
5679 | # 'test_compile' -- check by making test program. | |
5680 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5681 | # which responds to the $file_magic_cmd with a given extended regex. | |
5682 | # If you have `file' or equivalent on your system and you're not sure | |
5683 | # whether `pass_all' will *always* work, you probably want this one. | |
8ae85421 | 5684 | |
dabbade6 | 5685 | case $host_os in |
50e7d84b | 5686 | aix[4-9]*) |
dabbade6 L |
5687 | lt_cv_deplibs_check_method=pass_all |
5688 | ;; | |
979273e3 | 5689 | |
dabbade6 L |
5690 | beos*) |
5691 | lt_cv_deplibs_check_method=pass_all | |
5692 | ;; | |
24443139 | 5693 | |
dabbade6 L |
5694 | bsdi[45]*) |
5695 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5696 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5697 | lt_cv_file_magic_test_file=/shlib/libc.so | |
d7040cdb | 5698 | ;; |
dabbade6 L |
5699 | |
5700 | cygwin*) | |
5701 | # func_win32_libid is a shell function defined in ltmain.sh | |
5702 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5703 | lt_cv_file_magic_cmd='func_win32_libid' | |
d7040cdb | 5704 | ;; |
dabbade6 L |
5705 | |
5706 | mingw* | pw32*) | |
5707 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5708 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5709 | # unless we find 'file', for example because we are cross-compiling. | |
3725885a RW |
5710 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
5711 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
dabbade6 L |
5712 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5713 | lt_cv_file_magic_cmd='func_win32_libid' | |
5714 | else | |
5715 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5716 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
d7040cdb SE |
5717 | fi |
5718 | ;; | |
dabbade6 | 5719 | |
3725885a | 5720 | cegcc*) |
1927a18f L |
5721 | # use the weaker test based on 'objdump'. See mingw*. |
5722 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5723 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5724 | ;; | |
5725 | ||
dabbade6 L |
5726 | darwin* | rhapsody*) |
5727 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 5728 | ;; |
dabbade6 L |
5729 | |
5730 | freebsd* | dragonfly*) | |
5731 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5732 | case $host_cpu in | |
5733 | i*86 ) | |
5734 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5735 | # Let's accept both of them until this is cleared up. | |
5736 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5737 | lt_cv_file_magic_cmd=/usr/bin/file | |
5738 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5739 | ;; | |
5740 | esac | |
5741 | else | |
5742 | lt_cv_deplibs_check_method=pass_all | |
5743 | fi | |
d7040cdb | 5744 | ;; |
dabbade6 L |
5745 | |
5746 | gnu*) | |
5747 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 5748 | ;; |
dabbade6 | 5749 | |
3725885a RW |
5750 | haiku*) |
5751 | lt_cv_deplibs_check_method=pass_all | |
5752 | ;; | |
5753 | ||
dabbade6 L |
5754 | hpux10.20* | hpux11*) |
5755 | lt_cv_file_magic_cmd=/usr/bin/file | |
5756 | case $host_cpu in | |
5757 | ia64*) | |
5758 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5759 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5760 | ;; | |
5761 | hppa*64*) | |
3725885a | 5762 | 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]' |
dabbade6 L |
5763 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5764 | ;; | |
5765 | *) | |
3725885a | 5766 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
dabbade6 L |
5767 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5768 | ;; | |
5769 | esac | |
d7040cdb | 5770 | ;; |
24443139 | 5771 | |
dabbade6 L |
5772 | interix[3-9]*) |
5773 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5774 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5775 | ;; | |
24443139 | 5776 | |
dabbade6 L |
5777 | irix5* | irix6* | nonstopux*) |
5778 | case $LD in | |
5779 | *-32|*"-32 ") libmagic=32-bit;; | |
5780 | *-n32|*"-n32 ") libmagic=N32;; | |
5781 | *-64|*"-64 ") libmagic=64-bit;; | |
5782 | *) libmagic=never-match;; | |
5783 | esac | |
5784 | lt_cv_deplibs_check_method=pass_all | |
5785 | ;; | |
8ae85421 | 5786 | |
dabbade6 | 5787 | # This must be Linux ELF. |
58e24671 | 5788 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
dabbade6 L |
5789 | lt_cv_deplibs_check_method=pass_all |
5790 | ;; | |
24443139 | 5791 | |
dabbade6 L |
5792 | netbsd*) |
5793 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5794 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5795 | else | |
5796 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5797 | fi | |
d7040cdb | 5798 | ;; |
24443139 | 5799 | |
dabbade6 L |
5800 | newos6*) |
5801 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5802 | lt_cv_file_magic_cmd=/usr/bin/file | |
5803 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5804 | ;; | |
d7040cdb | 5805 | |
dabbade6 L |
5806 | *nto* | *qnx*) |
5807 | lt_cv_deplibs_check_method=pass_all | |
5808 | ;; | |
d7040cdb | 5809 | |
dabbade6 L |
5810 | openbsd*) |
5811 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5812 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
d7040cdb | 5813 | else |
dabbade6 | 5814 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
d7040cdb | 5815 | fi |
dabbade6 | 5816 | ;; |
24443139 | 5817 | |
dabbade6 L |
5818 | osf3* | osf4* | osf5*) |
5819 | lt_cv_deplibs_check_method=pass_all | |
5820 | ;; | |
24443139 | 5821 | |
dabbade6 L |
5822 | rdos*) |
5823 | lt_cv_deplibs_check_method=pass_all | |
5824 | ;; | |
81172ff2 | 5825 | |
dabbade6 L |
5826 | solaris*) |
5827 | lt_cv_deplibs_check_method=pass_all | |
5828 | ;; | |
81172ff2 | 5829 | |
dabbade6 L |
5830 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5831 | lt_cv_deplibs_check_method=pass_all | |
5832 | ;; | |
252b5132 | 5833 | |
dabbade6 L |
5834 | sysv4 | sysv4.3*) |
5835 | case $host_vendor in | |
5836 | motorola) | |
5837 | 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]' | |
5838 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5839 | ;; | |
5840 | ncr) | |
5841 | lt_cv_deplibs_check_method=pass_all | |
5842 | ;; | |
5843 | sequent) | |
5844 | lt_cv_file_magic_cmd='/bin/file' | |
5845 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5846 | ;; | |
5847 | sni) | |
5848 | lt_cv_file_magic_cmd='/bin/file' | |
5849 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5850 | lt_cv_file_magic_test_file=/lib/libc.so | |
5851 | ;; | |
5852 | siemens) | |
5853 | lt_cv_deplibs_check_method=pass_all | |
5854 | ;; | |
5855 | pc) | |
5856 | lt_cv_deplibs_check_method=pass_all | |
5857 | ;; | |
5858 | esac | |
5859 | ;; | |
252b5132 | 5860 | |
dabbade6 L |
5861 | tpf*) |
5862 | lt_cv_deplibs_check_method=pass_all | |
5863 | ;; | |
5864 | esac | |
979273e3 | 5865 | |
dabbade6 | 5866 | fi |
81ecdfbb RW |
5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
5868 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
dabbade6 L |
5869 | file_magic_cmd=$lt_cv_file_magic_cmd |
5870 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5871 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb | 5872 | |
979273e3 | 5873 | |
979273e3 | 5874 | |
dabbade6 L |
5875 | |
5876 | ||
5877 | ||
5878 | ||
5879 | ||
5880 | ||
5881 | ||
5882 | ||
5883 | ||
a4966cd9 L |
5884 | plugin_option= |
5885 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
5886 | for plugin in $plugin_names; do | |
5887 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
5888 | if test x$plugin_so = x$plugin; then | |
5889 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
5890 | fi | |
5891 | if test x$plugin_so != x$plugin; then | |
5892 | plugin_option="--plugin $plugin_so" | |
5893 | break | |
5894 | fi | |
5895 | done | |
5896 | ||
dabbade6 L |
5897 | if test -n "$ac_tool_prefix"; then |
5898 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5899 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
5900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5901 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5902 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 5903 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
5904 | else |
5905 | if test -n "$AR"; then | |
5906 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5907 | else | |
5908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5909 | for as_dir in $PATH | |
5910 | do | |
5911 | IFS=$as_save_IFS | |
5912 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5913 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5914 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 5915 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 5916 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 | 5917 | break 2 |
252b5132 | 5918 | fi |
979273e3 | 5919 | done |
81ecdfbb RW |
5920 | done |
5921 | IFS=$as_save_IFS | |
979273e3 | 5922 | |
dabbade6 L |
5923 | fi |
5924 | fi | |
5925 | AR=$ac_cv_prog_AR | |
5926 | if test -n "$AR"; then | |
81ecdfbb RW |
5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
5928 | $as_echo "$AR" >&6; } | |
dabbade6 | 5929 | else |
81ecdfbb RW |
5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5931 | $as_echo "no" >&6; } | |
979273e3 | 5932 | fi |
d7040cdb | 5933 | |
81ecdfbb | 5934 | |
252b5132 | 5935 | fi |
dabbade6 L |
5936 | if test -z "$ac_cv_prog_AR"; then |
5937 | ac_ct_AR=$AR | |
5938 | # Extract the first word of "ar", so it can be a program name with args. | |
5939 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
5940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5941 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5942 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 5943 | $as_echo_n "(cached) " >&6 |
979273e3 | 5944 | else |
dabbade6 L |
5945 | if test -n "$ac_ct_AR"; then |
5946 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5947 | else | |
5948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5949 | for as_dir in $PATH | |
5950 | do | |
5951 | IFS=$as_save_IFS | |
5952 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5953 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5954 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 5955 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 5956 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
5957 | break 2 |
5958 | fi | |
5959 | done | |
81ecdfbb RW |
5960 | done |
5961 | IFS=$as_save_IFS | |
dabbade6 | 5962 | |
dabbade6 L |
5963 | fi |
5964 | fi | |
5965 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5966 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
5968 | $as_echo "$ac_ct_AR" >&6; } | |
dabbade6 | 5969 | else |
81ecdfbb RW |
5970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5971 | $as_echo "no" >&6; } | |
252b5132 RH |
5972 | fi |
5973 | ||
81ecdfbb RW |
5974 | if test "x$ac_ct_AR" = x; then |
5975 | AR="false" | |
5976 | else | |
5977 | case $cross_compiling:$ac_tool_warned in | |
5978 | yes:) | |
5979 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5980 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5981 | ac_tool_warned=yes ;; | |
5982 | esac | |
5983 | AR=$ac_ct_AR | |
5984 | fi | |
dabbade6 L |
5985 | else |
5986 | AR="$ac_cv_prog_AR" | |
5987 | fi | |
252b5132 | 5988 | |
dabbade6 | 5989 | test -z "$AR" && AR=ar |
a4966cd9 L |
5990 | if test -n "$plugin_option"; then |
5991 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
83b33c6c L |
5992 | touch conftest.c |
5993 | $AR $plugin_option rc conftest.a conftest.c | |
5994 | if test "$?" != 0; then | |
5995 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
5996 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
5997 | else | |
5998 | AR="$AR $plugin_option" | |
5999 | fi | |
6000 | rm -f conftest.* | |
a4966cd9 L |
6001 | fi |
6002 | fi | |
dabbade6 | 6003 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
252b5132 | 6004 | |
979273e3 | 6005 | |
979273e3 | 6006 | |
979273e3 | 6007 | |
252b5132 | 6008 | |
979273e3 | 6009 | |
979273e3 | 6010 | |
252b5132 | 6011 | |
979273e3 | 6012 | |
979273e3 | 6013 | |
979273e3 | 6014 | |
dabbade6 L |
6015 | if test -n "$ac_tool_prefix"; then |
6016 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6017 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
6018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6019 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6020 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 6021 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
6022 | else |
6023 | if test -n "$STRIP"; then | |
6024 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6025 | else | |
6026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6027 | for as_dir in $PATH | |
6028 | do | |
6029 | IFS=$as_save_IFS | |
6030 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6031 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6032 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 6033 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 6034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
6035 | break 2 |
6036 | fi | |
6037 | done | |
81ecdfbb RW |
6038 | done |
6039 | IFS=$as_save_IFS | |
979273e3 | 6040 | |
dabbade6 L |
6041 | fi |
6042 | fi | |
6043 | STRIP=$ac_cv_prog_STRIP | |
6044 | if test -n "$STRIP"; then | |
81ecdfbb RW |
6045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6046 | $as_echo "$STRIP" >&6; } | |
dabbade6 | 6047 | else |
81ecdfbb RW |
6048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6049 | $as_echo "no" >&6; } | |
dabbade6 | 6050 | fi |
979273e3 | 6051 | |
81ecdfbb | 6052 | |
dabbade6 L |
6053 | fi |
6054 | if test -z "$ac_cv_prog_STRIP"; then | |
6055 | ac_ct_STRIP=$STRIP | |
6056 | # Extract the first word of "strip", so it can be a program name with args. | |
6057 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
6058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6059 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6060 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
81ecdfbb | 6061 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
6062 | else |
6063 | if test -n "$ac_ct_STRIP"; then | |
6064 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6065 | else | |
6066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6067 | for as_dir in $PATH | |
6068 | do | |
6069 | IFS=$as_save_IFS | |
6070 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6071 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6072 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 6073 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 6074 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
6075 | break 2 |
6076 | fi | |
6077 | done | |
81ecdfbb RW |
6078 | done |
6079 | IFS=$as_save_IFS | |
979273e3 | 6080 | |
dabbade6 L |
6081 | fi |
6082 | fi | |
6083 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6084 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
6085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6086 | $as_echo "$ac_ct_STRIP" >&6; } | |
dabbade6 | 6087 | else |
81ecdfbb RW |
6088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6089 | $as_echo "no" >&6; } | |
dabbade6 | 6090 | fi |
979273e3 | 6091 | |
81ecdfbb RW |
6092 | if test "x$ac_ct_STRIP" = x; then |
6093 | STRIP=":" | |
6094 | else | |
6095 | case $cross_compiling:$ac_tool_warned in | |
6096 | yes:) | |
6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6098 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6099 | ac_tool_warned=yes ;; | |
6100 | esac | |
6101 | STRIP=$ac_ct_STRIP | |
6102 | fi | |
dabbade6 L |
6103 | else |
6104 | STRIP="$ac_cv_prog_STRIP" | |
6105 | fi | |
979273e3 | 6106 | |
dabbade6 | 6107 | test -z "$STRIP" && STRIP=: |
979273e3 | 6108 | |
d7040cdb | 6109 | |
979273e3 | 6110 | |
d7040cdb | 6111 | |
979273e3 | 6112 | |
979273e3 | 6113 | |
dabbade6 L |
6114 | if test -n "$ac_tool_prefix"; then |
6115 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6116 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
6117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6118 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6119 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 6120 | $as_echo_n "(cached) " >&6 |
979273e3 | 6121 | else |
dabbade6 L |
6122 | if test -n "$RANLIB"; then |
6123 | ac_cv_prog_RANLIB="$RANLIB" # 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=. | |
81ecdfbb | 6130 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6131 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 6132 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 6133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
6134 | break 2 |
6135 | fi | |
6136 | done | |
81ecdfbb RW |
6137 | done |
6138 | IFS=$as_save_IFS | |
979273e3 | 6139 | |
979273e3 | 6140 | fi |
979273e3 | 6141 | fi |
dabbade6 L |
6142 | RANLIB=$ac_cv_prog_RANLIB |
6143 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
6144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6145 | $as_echo "$RANLIB" >&6; } | |
dabbade6 | 6146 | else |
81ecdfbb RW |
6147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6148 | $as_echo "no" >&6; } | |
dabbade6 | 6149 | fi |
d7040cdb | 6150 | |
81ecdfbb | 6151 | |
d7040cdb | 6152 | fi |
dabbade6 L |
6153 | if test -z "$ac_cv_prog_RANLIB"; then |
6154 | ac_ct_RANLIB=$RANLIB | |
6155 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6156 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
6157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6158 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6159 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 6160 | $as_echo_n "(cached) " >&6 |
979273e3 | 6161 | else |
dabbade6 L |
6162 | if test -n "$ac_ct_RANLIB"; then |
6163 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6164 | else | |
6165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6166 | for as_dir in $PATH | |
d7040cdb | 6167 | do |
dabbade6 L |
6168 | IFS=$as_save_IFS |
6169 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6170 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6171 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 6172 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 6173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 | 6174 | break 2 |
979273e3 | 6175 | fi |
dabbade6 | 6176 | done |
81ecdfbb RW |
6177 | done |
6178 | IFS=$as_save_IFS | |
dabbade6 | 6179 | |
979273e3 | 6180 | fi |
dabbade6 L |
6181 | fi |
6182 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6183 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
6184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6185 | $as_echo "$ac_ct_RANLIB" >&6; } | |
979273e3 | 6186 | else |
81ecdfbb RW |
6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6188 | $as_echo "no" >&6; } | |
d7040cdb | 6189 | fi |
d7040cdb | 6190 | |
81ecdfbb RW |
6191 | if test "x$ac_ct_RANLIB" = x; then |
6192 | RANLIB=":" | |
6193 | else | |
6194 | case $cross_compiling:$ac_tool_warned in | |
6195 | yes:) | |
6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6197 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6198 | ac_tool_warned=yes ;; | |
6199 | esac | |
6200 | RANLIB=$ac_ct_RANLIB | |
6201 | fi | |
d7040cdb | 6202 | else |
dabbade6 | 6203 | RANLIB="$ac_cv_prog_RANLIB" |
d7040cdb | 6204 | fi |
979273e3 | 6205 | |
dabbade6 | 6206 | test -z "$RANLIB" && RANLIB=: |
a4966cd9 L |
6207 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then |
6208 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
6209 | RANLIB="$RANLIB $plugin_option" | |
6210 | fi | |
6211 | fi | |
979273e3 | 6212 | |
252b5132 | 6213 | |
252b5132 | 6214 | |
d7040cdb | 6215 | |
d7040cdb | 6216 | |
d7040cdb | 6217 | |
dabbade6 | 6218 | # Determine commands to create old-style static archives. |
1927a18f | 6219 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
dabbade6 L |
6220 | old_postinstall_cmds='chmod 644 $oldlib' |
6221 | old_postuninstall_cmds= | |
d7040cdb | 6222 | |
dabbade6 L |
6223 | if test -n "$RANLIB"; then |
6224 | case $host_os in | |
6225 | openbsd*) | |
6226 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6227 | ;; | |
6228 | *) | |
6229 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6230 | ;; | |
6231 | esac | |
6232 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
d7040cdb SE |
6233 | fi |
6234 | ||
3725885a RW |
6235 | case $host_os in |
6236 | darwin*) | |
6237 | lock_old_archive_extraction=yes ;; | |
6238 | *) | |
6239 | lock_old_archive_extraction=no ;; | |
6240 | esac | |
6241 | ||
6242 | ||
6243 | ||
6244 | ||
6245 | ||
6246 | ||
d7040cdb SE |
6247 | |
6248 | ||
d7040cdb | 6249 | |
d7040cdb | 6250 | |
252b5132 | 6251 | |
d7040cdb | 6252 | |
d7040cdb | 6253 | |
d7040cdb SE |
6254 | |
6255 | ||
6256 | ||
d7040cdb | 6257 | |
d7040cdb | 6258 | |
d7040cdb | 6259 | |
252b5132 | 6260 | |
d7040cdb SE |
6261 | |
6262 | ||
6263 | ||
d7040cdb | 6264 | |
d7040cdb SE |
6265 | |
6266 | ||
6267 | ||
6268 | ||
6269 | ||
6270 | ||
6271 | ||
6272 | ||
6273 | ||
6274 | ||
6275 | ||
6276 | ||
6277 | ||
6278 | ||
6279 | ||
dabbade6 L |
6280 | # If no C compiler was specified, use CC. |
6281 | LTCC=${LTCC-"$CC"} | |
d7040cdb | 6282 | |
dabbade6 L |
6283 | # If no C compiler flags were specified, use CFLAGS. |
6284 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d7040cdb | 6285 | |
dabbade6 L |
6286 | # Allow CC to be a program name with arguments. |
6287 | compiler=$CC | |
d7040cdb SE |
6288 | |
6289 | ||
dabbade6 | 6290 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
81ecdfbb RW |
6291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6292 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
d0ac1c44 | 6293 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
81ecdfbb | 6294 | $as_echo_n "(cached) " >&6 |
dabbade6 | 6295 | else |
d7040cdb | 6296 | |
dabbade6 L |
6297 | # These are sane defaults that work on at least a few old systems. |
6298 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d7040cdb | 6299 | |
dabbade6 L |
6300 | # Character class describing NM global symbol codes. |
6301 | symcode='[BCDEGRST]' | |
d7040cdb | 6302 | |
dabbade6 L |
6303 | # Regexp to match symbols that can be accessed directly from C. |
6304 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
d7040cdb | 6305 | |
dabbade6 L |
6306 | # Define system-specific variables. |
6307 | case $host_os in | |
6308 | aix*) | |
6309 | symcode='[BCDT]' | |
6310 | ;; | |
1927a18f | 6311 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
6312 | symcode='[ABCDGISTW]' |
6313 | ;; | |
6314 | hpux*) | |
6315 | if test "$host_cpu" = ia64; then | |
6316 | symcode='[ABCDEGRST]' | |
6317 | fi | |
6318 | ;; | |
6319 | irix* | nonstopux*) | |
6320 | symcode='[BCDEGRST]' | |
6321 | ;; | |
6322 | osf*) | |
6323 | symcode='[BCDEGQRST]' | |
6324 | ;; | |
6325 | solaris*) | |
6326 | symcode='[BDRT]' | |
6327 | ;; | |
6328 | sco3.2v5*) | |
6329 | symcode='[DT]' | |
6330 | ;; | |
6331 | sysv4.2uw2*) | |
6332 | symcode='[DT]' | |
6333 | ;; | |
6334 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6335 | symcode='[ABDT]' | |
6336 | ;; | |
6337 | sysv4) | |
6338 | symcode='[DFNSTU]' | |
6339 | ;; | |
6340 | esac | |
6341 | ||
6342 | # If we're using GNU nm, then use its standard symbol codes. | |
6343 | case `$NM -V 2>&1` in | |
6344 | *GNU* | *'with BFD'*) | |
6345 | symcode='[ABCDGIRSTW]' ;; | |
6346 | esac | |
d7040cdb | 6347 | |
dabbade6 L |
6348 | # Transform an extracted symbol line into a proper C declaration. |
6349 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6350 | # so use this general approach. | |
6351 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
d7040cdb | 6352 | |
dabbade6 | 6353 | # Transform an extracted symbol line into symbol name and symbol address |
7357c5b6 | 6354 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
1927a18f | 6355 | 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'" |
d7040cdb | 6356 | |
7357c5b6 AM |
6357 | # Handle CRLF in mingw tool chain |
6358 | opt_cr= | |
6359 | case $build_os in | |
6360 | mingw*) | |
6361 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6362 | ;; | |
6363 | esac | |
d7040cdb | 6364 | |
7357c5b6 AM |
6365 | # Try without a prefix underscore, then with it. |
6366 | for ac_symprfx in "" "_"; do | |
d7040cdb | 6367 | |
7357c5b6 AM |
6368 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6369 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 6370 | |
7357c5b6 AM |
6371 | # Write the raw and C identifiers. |
6372 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6373 | # Fake it for dumpbin and say T for any non-static function | |
6374 | # and D for any global variable. | |
6375 | # Also find C++ and __fastcall symbols from MSVC++, | |
6376 | # which start with @ or ?. | |
6377 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6378 | " {last_section=section; section=\$ 3};"\ | |
6379 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6380 | " \$ 0!~/External *\|/{next};"\ | |
6381 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6382 | " {if(hide[section]) next};"\ | |
6383 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6384 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6385 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6386 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6387 | " ' prfx=^$ac_symprfx" | |
6388 | else | |
6389 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6390 | fi | |
d7040cdb | 6391 | |
7357c5b6 AM |
6392 | # Check to see that the pipe works correctly. |
6393 | pipe_works=no | |
d7040cdb | 6394 | |
7357c5b6 AM |
6395 | rm -f conftest* |
6396 | cat > conftest.$ac_ext <<_LT_EOF | |
6397 | #ifdef __cplusplus | |
6398 | extern "C" { | |
6399 | #endif | |
6400 | char nm_test_var; | |
6401 | void nm_test_func(void); | |
6402 | void nm_test_func(void){} | |
6403 | #ifdef __cplusplus | |
dabbade6 | 6404 | } |
7357c5b6 AM |
6405 | #endif |
6406 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6407 | _LT_EOF | |
6408 | ||
81ecdfbb | 6409 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 6410 | (eval $ac_compile) 2>&5 |
dabbade6 | 6411 | ac_status=$? |
81ecdfbb RW |
6412 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6413 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6414 | # Now try to grab the symbols. |
6415 | nlist=conftest.nm | |
3725885a RW |
6416 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6417 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
dabbade6 | 6418 | ac_status=$? |
81ecdfbb RW |
6419 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6420 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
6421 | # Try sorting and uniquifying the output. |
6422 | if sort "$nlist" | uniq > "$nlist"T; then | |
6423 | mv -f "$nlist"T "$nlist" | |
6424 | else | |
6425 | rm -f "$nlist"T | |
6426 | fi | |
d7040cdb | 6427 | |
7357c5b6 AM |
6428 | # Make sure that we snagged all the symbols we need. |
6429 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6430 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6431 | cat <<_LT_EOF > conftest.$ac_ext | |
6432 | #ifdef __cplusplus | |
6433 | extern "C" { | |
6434 | #endif | |
d7040cdb | 6435 | |
7357c5b6 AM |
6436 | _LT_EOF |
6437 | # Now generate the symbol file. | |
6438 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d7040cdb | 6439 | |
7357c5b6 | 6440 | cat <<_LT_EOF >> conftest.$ac_ext |
d7040cdb | 6441 | |
7357c5b6 AM |
6442 | /* The mapping between symbol names and symbols. */ |
6443 | const struct { | |
6444 | const char *name; | |
6445 | void *address; | |
6446 | } | |
6447 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6448 | { | |
6449 | { "@PROGRAM@", (void *) 0 }, | |
6450 | _LT_EOF | |
6451 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6452 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6453 | {0, (void *) 0} | |
6454 | }; | |
d7040cdb | 6455 | |
7357c5b6 AM |
6456 | /* This works around a problem in FreeBSD linker */ |
6457 | #ifdef FREEBSD_WORKAROUND | |
6458 | static const void *lt_preloaded_setup() { | |
6459 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6460 | } | |
dabbade6 | 6461 | #endif |
d7040cdb | 6462 | |
7357c5b6 | 6463 | #ifdef __cplusplus |
dabbade6 | 6464 | } |
7357c5b6 AM |
6465 | #endif |
6466 | _LT_EOF | |
6467 | # Now try linking the two files. | |
6468 | mv conftest.$ac_objext conftstm.$ac_objext | |
6469 | lt_save_LIBS="$LIBS" | |
6470 | lt_save_CFLAGS="$CFLAGS" | |
6471 | LIBS="conftstm.$ac_objext" | |
6472 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 6473 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
dabbade6 L |
6474 | (eval $ac_link) 2>&5 |
6475 | ac_status=$? | |
81ecdfbb RW |
6476 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6477 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
6478 | pipe_works=yes |
6479 | fi | |
6480 | LIBS="$lt_save_LIBS" | |
6481 | CFLAGS="$lt_save_CFLAGS" | |
6482 | else | |
6483 | echo "cannot find nm_test_func in $nlist" >&5 | |
6484 | fi | |
6485 | else | |
6486 | echo "cannot find nm_test_var in $nlist" >&5 | |
6487 | fi | |
6488 | else | |
6489 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6490 | fi | |
6491 | else | |
6492 | echo "$progname: failed program was:" >&5 | |
6493 | cat conftest.$ac_ext >&5 | |
6494 | fi | |
1927a18f | 6495 | rm -rf conftest* conftst* |
7357c5b6 AM |
6496 | |
6497 | # Do not use the global_symbol_pipe unless it works. | |
6498 | if test "$pipe_works" = yes; then | |
6499 | break | |
6500 | else | |
6501 | lt_cv_sys_global_symbol_pipe= | |
6502 | fi | |
6503 | done | |
d7040cdb | 6504 | |
dabbade6 | 6505 | fi |
7357c5b6 AM |
6506 | |
6507 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6508 | lt_cv_sys_global_symbol_to_cdecl= | |
dabbade6 | 6509 | fi |
7357c5b6 | 6510 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
6511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6512 | $as_echo "failed" >&6; } | |
7357c5b6 | 6513 | else |
81ecdfbb RW |
6514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6515 | $as_echo "ok" >&6; } | |
dabbade6 | 6516 | fi |
d7040cdb | 6517 | |
d7040cdb | 6518 | |
d7040cdb | 6519 | |
d7040cdb | 6520 | |
d7040cdb | 6521 | |
d7040cdb | 6522 | |
d7040cdb | 6523 | |
d7040cdb | 6524 | |
d7040cdb | 6525 | |
d7040cdb | 6526 | |
d7040cdb | 6527 | |
d7040cdb | 6528 | |
7357c5b6 AM |
6529 | |
6530 | ||
6531 | ||
1927a18f L |
6532 | |
6533 | ||
6534 | ||
6535 | ||
6536 | ||
7357c5b6 AM |
6537 | |
6538 | ||
81ecdfbb RW |
6539 | # Check whether --enable-libtool-lock was given. |
6540 | if test "${enable_libtool_lock+set}" = set; then : | |
6541 | enableval=$enable_libtool_lock; | |
6542 | fi | |
7357c5b6 | 6543 | |
7357c5b6 AM |
6544 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6545 | ||
6546 | # Some flags need to be propagated to the compiler or linker for good | |
6547 | # libtool support. | |
6548 | case $host in | |
6549 | ia64-*-hpux*) | |
6550 | # Find out which ABI we are using. | |
6551 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6552 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6553 | (eval $ac_compile) 2>&5 |
6554 | ac_status=$? | |
81ecdfbb RW |
6555 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6556 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6557 | case `/usr/bin/file conftest.$ac_objext` in |
6558 | *ELF-32*) | |
6559 | HPUX_IA64_MODE="32" | |
6560 | ;; | |
6561 | *ELF-64*) | |
6562 | HPUX_IA64_MODE="64" | |
6563 | ;; | |
6564 | esac | |
6565 | fi | |
6566 | rm -rf conftest* | |
6567 | ;; | |
6568 | *-*-irix6*) | |
6569 | # Find out which ABI we are using. | |
3725885a | 6570 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
81ecdfbb | 6571 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6572 | (eval $ac_compile) 2>&5 |
6573 | ac_status=$? | |
81ecdfbb RW |
6574 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6575 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6576 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6577 | case `/usr/bin/file conftest.$ac_objext` in | |
6578 | *32-bit*) | |
6579 | LD="${LD-ld} -melf32bsmip" | |
6580 | ;; | |
6581 | *N32*) | |
6582 | LD="${LD-ld} -melf32bmipn32" | |
6583 | ;; | |
6584 | *64-bit*) | |
6585 | LD="${LD-ld} -melf64bmip" | |
6586 | ;; | |
6587 | esac | |
6588 | else | |
6589 | case `/usr/bin/file conftest.$ac_objext` in | |
6590 | *32-bit*) | |
6591 | LD="${LD-ld} -32" | |
6592 | ;; | |
6593 | *N32*) | |
6594 | LD="${LD-ld} -n32" | |
6595 | ;; | |
6596 | *64-bit*) | |
6597 | LD="${LD-ld} -64" | |
6598 | ;; | |
6599 | esac | |
6600 | fi | |
6601 | fi | |
6602 | rm -rf conftest* | |
6603 | ;; | |
6604 | ||
cc9afea3 | 6605 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7357c5b6 AM |
6606 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6607 | # Find out which ABI we are using. | |
6608 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6609 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6610 | (eval $ac_compile) 2>&5 |
6611 | ac_status=$? | |
81ecdfbb RW |
6612 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6613 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6614 | case `/usr/bin/file conftest.o` in |
6615 | *32-bit*) | |
6616 | case $host in | |
6617 | x86_64-*kfreebsd*-gnu) | |
6618 | LD="${LD-ld} -m elf_i386_fbsd" | |
6619 | ;; | |
6620 | x86_64-*linux*) | |
6d2920c8 L |
6621 | case `/usr/bin/file conftest.o` in |
6622 | *x86-64*) | |
6623 | LD="${LD-ld} -m elf32_x86_64" | |
6624 | ;; | |
6625 | *) | |
6626 | LD="${LD-ld} -m elf_i386" | |
6627 | ;; | |
6628 | esac | |
7357c5b6 | 6629 | ;; |
cc9afea3 AM |
6630 | powerpc64le-*linux*) |
6631 | LD="${LD-ld} -m elf32lppclinux" | |
6632 | ;; | |
6633 | powerpc64-*linux*) | |
7357c5b6 AM |
6634 | LD="${LD-ld} -m elf32ppclinux" |
6635 | ;; | |
6636 | s390x-*linux*) | |
6637 | LD="${LD-ld} -m elf_s390" | |
6638 | ;; | |
6639 | sparc64-*linux*) | |
6640 | LD="${LD-ld} -m elf32_sparc" | |
6641 | ;; | |
6642 | esac | |
6643 | ;; | |
6644 | *64-bit*) | |
6645 | case $host in | |
6646 | x86_64-*kfreebsd*-gnu) | |
6647 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6648 | ;; | |
6649 | x86_64-*linux*) | |
6650 | LD="${LD-ld} -m elf_x86_64" | |
6651 | ;; | |
cc9afea3 AM |
6652 | powerpcle-*linux*) |
6653 | LD="${LD-ld} -m elf64lppc" | |
6654 | ;; | |
6655 | powerpc-*linux*) | |
7357c5b6 AM |
6656 | LD="${LD-ld} -m elf64ppc" |
6657 | ;; | |
6658 | s390*-*linux*|s390*-*tpf*) | |
6659 | LD="${LD-ld} -m elf64_s390" | |
6660 | ;; | |
6661 | sparc*-*linux*) | |
6662 | LD="${LD-ld} -m elf64_sparc" | |
6663 | ;; | |
6664 | esac | |
6665 | ;; | |
6666 | esac | |
6667 | fi | |
6668 | rm -rf conftest* | |
6669 | ;; | |
6670 | ||
6671 | *-*-sco3.2v5*) | |
6672 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6673 | SAVE_CFLAGS="$CFLAGS" | |
6674 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
6675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6676 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
d0ac1c44 | 6677 | if ${lt_cv_cc_needs_belf+:} false; then : |
81ecdfbb | 6678 | $as_echo_n "(cached) " >&6 |
dabbade6 | 6679 | else |
7357c5b6 AM |
6680 | ac_ext=c |
6681 | ac_cpp='$CPP $CPPFLAGS' | |
6682 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6683 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6684 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6685 | ||
81ecdfbb | 6686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 6687 | /* end confdefs.h. */ |
d7040cdb | 6688 | |
7357c5b6 AM |
6689 | int |
6690 | main () | |
6691 | { | |
6692 | ||
6693 | ; | |
6694 | return 0; | |
6695 | } | |
dabbade6 | 6696 | _ACEOF |
81ecdfbb | 6697 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 6698 | lt_cv_cc_needs_belf=yes |
dabbade6 | 6699 | else |
81ecdfbb | 6700 | lt_cv_cc_needs_belf=no |
dabbade6 | 6701 | fi |
81ecdfbb RW |
6702 | rm -f core conftest.err conftest.$ac_objext \ |
6703 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
6704 | ac_ext=c |
6705 | ac_cpp='$CPP $CPPFLAGS' | |
6706 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6707 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6708 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 6709 | |
dabbade6 | 6710 | fi |
81ecdfbb RW |
6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6712 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7357c5b6 AM |
6713 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
6714 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6715 | CFLAGS="$SAVE_CFLAGS" | |
6716 | fi | |
6717 | ;; | |
6718 | sparc*-*solaris*) | |
6719 | # Find out which ABI we are using. | |
6720 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6721 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6722 | (eval $ac_compile) 2>&5 |
6723 | ac_status=$? | |
81ecdfbb RW |
6724 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6725 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6726 | case `/usr/bin/file conftest.o` in |
6727 | *64-bit*) | |
6728 | case $lt_cv_prog_gnu_ld in | |
6729 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
1927a18f L |
6730 | *) |
6731 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6732 | LD="${LD-ld} -64" | |
6733 | fi | |
6734 | ;; | |
7357c5b6 AM |
6735 | esac |
6736 | ;; | |
6737 | esac | |
6738 | fi | |
6739 | rm -rf conftest* | |
6740 | ;; | |
6741 | esac | |
d7040cdb | 6742 | |
7357c5b6 | 6743 | need_locks="$enable_libtool_lock" |
d7040cdb | 6744 | |
d7040cdb | 6745 | |
1927a18f L |
6746 | case $host_os in |
6747 | rhapsody* | darwin*) | |
6748 | if test -n "$ac_tool_prefix"; then | |
6749 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6750 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6752 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6753 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
81ecdfbb | 6754 | $as_echo_n "(cached) " >&6 |
1927a18f L |
6755 | else |
6756 | if test -n "$DSYMUTIL"; then | |
6757 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6758 | else | |
6759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6760 | for as_dir in $PATH | |
6761 | do | |
6762 | IFS=$as_save_IFS | |
6763 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6764 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6765 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 6766 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 6767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
6768 | break 2 |
6769 | fi | |
6770 | done | |
81ecdfbb RW |
6771 | done |
6772 | IFS=$as_save_IFS | |
1927a18f L |
6773 | |
6774 | fi | |
6775 | fi | |
6776 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6777 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
6778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
6779 | $as_echo "$DSYMUTIL" >&6; } | |
1927a18f | 6780 | else |
81ecdfbb RW |
6781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6782 | $as_echo "no" >&6; } | |
1927a18f L |
6783 | fi |
6784 | ||
81ecdfbb | 6785 | |
1927a18f L |
6786 | fi |
6787 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6788 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6789 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6790 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
6791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6792 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6793 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
81ecdfbb | 6794 | $as_echo_n "(cached) " >&6 |
1927a18f L |
6795 | else |
6796 | if test -n "$ac_ct_DSYMUTIL"; then | |
6797 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6798 | else | |
6799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6800 | for as_dir in $PATH | |
6801 | do | |
6802 | IFS=$as_save_IFS | |
6803 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6804 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6805 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 6806 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 6807 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
6808 | break 2 |
6809 | fi | |
6810 | done | |
81ecdfbb RW |
6811 | done |
6812 | IFS=$as_save_IFS | |
1927a18f | 6813 | |
1927a18f L |
6814 | fi |
6815 | fi | |
6816 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6817 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
6818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
6819 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
1927a18f | 6820 | else |
81ecdfbb RW |
6821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6822 | $as_echo "no" >&6; } | |
1927a18f L |
6823 | fi |
6824 | ||
81ecdfbb RW |
6825 | if test "x$ac_ct_DSYMUTIL" = x; then |
6826 | DSYMUTIL=":" | |
6827 | else | |
6828 | case $cross_compiling:$ac_tool_warned in | |
6829 | yes:) | |
6830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6831 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6832 | ac_tool_warned=yes ;; | |
6833 | esac | |
6834 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6835 | fi | |
1927a18f L |
6836 | else |
6837 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6838 | fi | |
6839 | ||
6840 | if test -n "$ac_tool_prefix"; then | |
6841 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6842 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6844 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6845 | if ${ac_cv_prog_NMEDIT+:} false; then : |
81ecdfbb | 6846 | $as_echo_n "(cached) " >&6 |
1927a18f L |
6847 | else |
6848 | if test -n "$NMEDIT"; then | |
6849 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6850 | else | |
6851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6852 | for as_dir in $PATH | |
6853 | do | |
6854 | IFS=$as_save_IFS | |
6855 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6856 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6857 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 6858 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 6859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
6860 | break 2 |
6861 | fi | |
6862 | done | |
81ecdfbb RW |
6863 | done |
6864 | IFS=$as_save_IFS | |
1927a18f L |
6865 | |
6866 | fi | |
6867 | fi | |
6868 | NMEDIT=$ac_cv_prog_NMEDIT | |
6869 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
6870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
6871 | $as_echo "$NMEDIT" >&6; } | |
1927a18f | 6872 | else |
81ecdfbb RW |
6873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6874 | $as_echo "no" >&6; } | |
1927a18f L |
6875 | fi |
6876 | ||
81ecdfbb | 6877 | |
1927a18f L |
6878 | fi |
6879 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6880 | ac_ct_NMEDIT=$NMEDIT | |
6881 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6882 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
6883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6884 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6885 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
81ecdfbb | 6886 | $as_echo_n "(cached) " >&6 |
1927a18f L |
6887 | else |
6888 | if test -n "$ac_ct_NMEDIT"; then | |
6889 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6890 | else | |
6891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6892 | for as_dir in $PATH | |
6893 | do | |
6894 | IFS=$as_save_IFS | |
6895 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6896 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6897 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 6898 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 6899 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
6900 | break 2 |
6901 | fi | |
6902 | done | |
81ecdfbb RW |
6903 | done |
6904 | IFS=$as_save_IFS | |
1927a18f | 6905 | |
1927a18f L |
6906 | fi |
6907 | fi | |
6908 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6909 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
6910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
6911 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
1927a18f | 6912 | else |
81ecdfbb RW |
6913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6914 | $as_echo "no" >&6; } | |
1927a18f L |
6915 | fi |
6916 | ||
81ecdfbb RW |
6917 | if test "x$ac_ct_NMEDIT" = x; then |
6918 | NMEDIT=":" | |
6919 | else | |
6920 | case $cross_compiling:$ac_tool_warned in | |
6921 | yes:) | |
6922 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6923 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6924 | ac_tool_warned=yes ;; | |
6925 | esac | |
6926 | NMEDIT=$ac_ct_NMEDIT | |
6927 | fi | |
1927a18f L |
6928 | else |
6929 | NMEDIT="$ac_cv_prog_NMEDIT" | |
6930 | fi | |
6931 | ||
6932 | if test -n "$ac_tool_prefix"; then | |
6933 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6934 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
6935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6936 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6937 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 6938 | $as_echo_n "(cached) " >&6 |
1927a18f L |
6939 | else |
6940 | if test -n "$LIPO"; then | |
6941 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6942 | else | |
6943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6944 | for as_dir in $PATH | |
6945 | do | |
6946 | IFS=$as_save_IFS | |
6947 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6948 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6949 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 6950 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 6951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
6952 | break 2 |
6953 | fi | |
6954 | done | |
81ecdfbb RW |
6955 | done |
6956 | IFS=$as_save_IFS | |
1927a18f L |
6957 | |
6958 | fi | |
6959 | fi | |
6960 | LIPO=$ac_cv_prog_LIPO | |
6961 | if test -n "$LIPO"; then | |
81ecdfbb RW |
6962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
6963 | $as_echo "$LIPO" >&6; } | |
1927a18f | 6964 | else |
81ecdfbb RW |
6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6966 | $as_echo "no" >&6; } | |
1927a18f L |
6967 | fi |
6968 | ||
81ecdfbb | 6969 | |
1927a18f L |
6970 | fi |
6971 | if test -z "$ac_cv_prog_LIPO"; then | |
6972 | ac_ct_LIPO=$LIPO | |
6973 | # Extract the first word of "lipo", so it can be a program name with args. | |
6974 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6976 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6977 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
81ecdfbb | 6978 | $as_echo_n "(cached) " >&6 |
1927a18f L |
6979 | else |
6980 | if test -n "$ac_ct_LIPO"; then | |
6981 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6982 | else | |
6983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6984 | for as_dir in $PATH | |
6985 | do | |
6986 | IFS=$as_save_IFS | |
6987 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6988 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6989 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 6990 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 6991 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
6992 | break 2 |
6993 | fi | |
6994 | done | |
81ecdfbb RW |
6995 | done |
6996 | IFS=$as_save_IFS | |
1927a18f | 6997 | |
1927a18f L |
6998 | fi |
6999 | fi | |
7000 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7001 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
7002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7003 | $as_echo "$ac_ct_LIPO" >&6; } | |
1927a18f | 7004 | else |
81ecdfbb RW |
7005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7006 | $as_echo "no" >&6; } | |
1927a18f L |
7007 | fi |
7008 | ||
81ecdfbb RW |
7009 | if test "x$ac_ct_LIPO" = x; then |
7010 | LIPO=":" | |
7011 | else | |
7012 | case $cross_compiling:$ac_tool_warned in | |
7013 | yes:) | |
7014 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7015 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7016 | ac_tool_warned=yes ;; | |
7017 | esac | |
7018 | LIPO=$ac_ct_LIPO | |
7019 | fi | |
1927a18f L |
7020 | else |
7021 | LIPO="$ac_cv_prog_LIPO" | |
7022 | fi | |
7023 | ||
7024 | if test -n "$ac_tool_prefix"; then | |
7025 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7026 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7028 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7029 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 7030 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7031 | else |
7032 | if test -n "$OTOOL"; then | |
7033 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7034 | else | |
7035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7036 | for as_dir in $PATH | |
7037 | do | |
7038 | IFS=$as_save_IFS | |
7039 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7040 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7041 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 7042 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 7043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7044 | break 2 |
7045 | fi | |
7046 | done | |
81ecdfbb RW |
7047 | done |
7048 | IFS=$as_save_IFS | |
1927a18f L |
7049 | |
7050 | fi | |
7051 | fi | |
7052 | OTOOL=$ac_cv_prog_OTOOL | |
7053 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7055 | $as_echo "$OTOOL" >&6; } | |
1927a18f | 7056 | else |
81ecdfbb RW |
7057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7058 | $as_echo "no" >&6; } | |
1927a18f L |
7059 | fi |
7060 | ||
81ecdfbb | 7061 | |
1927a18f L |
7062 | fi |
7063 | if test -z "$ac_cv_prog_OTOOL"; then | |
7064 | ac_ct_OTOOL=$OTOOL | |
7065 | # Extract the first word of "otool", so it can be a program name with args. | |
7066 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7068 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7069 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
81ecdfbb | 7070 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7071 | else |
7072 | if test -n "$ac_ct_OTOOL"; then | |
7073 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7074 | else | |
7075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7076 | for as_dir in $PATH | |
7077 | do | |
7078 | IFS=$as_save_IFS | |
7079 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7080 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7081 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 7082 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 7083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7084 | break 2 |
7085 | fi | |
7086 | done | |
81ecdfbb RW |
7087 | done |
7088 | IFS=$as_save_IFS | |
1927a18f | 7089 | |
1927a18f L |
7090 | fi |
7091 | fi | |
7092 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7093 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7095 | $as_echo "$ac_ct_OTOOL" >&6; } | |
1927a18f | 7096 | else |
81ecdfbb RW |
7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7098 | $as_echo "no" >&6; } | |
1927a18f L |
7099 | fi |
7100 | ||
81ecdfbb RW |
7101 | if test "x$ac_ct_OTOOL" = x; then |
7102 | OTOOL=":" | |
7103 | else | |
7104 | case $cross_compiling:$ac_tool_warned in | |
7105 | yes:) | |
7106 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7107 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7108 | ac_tool_warned=yes ;; | |
7109 | esac | |
7110 | OTOOL=$ac_ct_OTOOL | |
7111 | fi | |
1927a18f L |
7112 | else |
7113 | OTOOL="$ac_cv_prog_OTOOL" | |
7114 | fi | |
7115 | ||
7116 | if test -n "$ac_tool_prefix"; then | |
7117 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7118 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
7119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7120 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7121 | if ${ac_cv_prog_OTOOL64+:} false; then : |
81ecdfbb | 7122 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7123 | else |
7124 | if test -n "$OTOOL64"; then | |
7125 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7126 | else | |
7127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7128 | for as_dir in $PATH | |
7129 | do | |
7130 | IFS=$as_save_IFS | |
7131 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7132 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7133 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 7134 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 7135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7136 | break 2 |
7137 | fi | |
7138 | done | |
81ecdfbb RW |
7139 | done |
7140 | IFS=$as_save_IFS | |
1927a18f L |
7141 | |
7142 | fi | |
7143 | fi | |
7144 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7145 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7147 | $as_echo "$OTOOL64" >&6; } | |
1927a18f | 7148 | else |
81ecdfbb RW |
7149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7150 | $as_echo "no" >&6; } | |
1927a18f L |
7151 | fi |
7152 | ||
81ecdfbb | 7153 | |
1927a18f L |
7154 | fi |
7155 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7156 | ac_ct_OTOOL64=$OTOOL64 | |
7157 | # Extract the first word of "otool64", so it can be a program name with args. | |
7158 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
7159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7160 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7161 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
81ecdfbb | 7162 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7163 | else |
7164 | if test -n "$ac_ct_OTOOL64"; then | |
7165 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7166 | else | |
7167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7168 | for as_dir in $PATH | |
7169 | do | |
7170 | IFS=$as_save_IFS | |
7171 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7172 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7173 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 7174 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 7175 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7176 | break 2 |
7177 | fi | |
7178 | done | |
81ecdfbb RW |
7179 | done |
7180 | IFS=$as_save_IFS | |
1927a18f | 7181 | |
1927a18f L |
7182 | fi |
7183 | fi | |
7184 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7185 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
7186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7187 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
1927a18f | 7188 | else |
81ecdfbb RW |
7189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7190 | $as_echo "no" >&6; } | |
1927a18f L |
7191 | fi |
7192 | ||
81ecdfbb RW |
7193 | if test "x$ac_ct_OTOOL64" = x; then |
7194 | OTOOL64=":" | |
7195 | else | |
7196 | case $cross_compiling:$ac_tool_warned in | |
7197 | yes:) | |
7198 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7199 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7200 | ac_tool_warned=yes ;; | |
7201 | esac | |
7202 | OTOOL64=$ac_ct_OTOOL64 | |
7203 | fi | |
1927a18f L |
7204 | else |
7205 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7206 | fi | |
7207 | ||
7208 | ||
7209 | ||
7210 | ||
7211 | ||
7212 | ||
7213 | ||
7214 | ||
7215 | ||
7216 | ||
7217 | ||
7218 | ||
7219 | ||
7220 | ||
7221 | ||
7222 | ||
7223 | ||
7224 | ||
7225 | ||
7226 | ||
7227 | ||
7228 | ||
7229 | ||
7230 | ||
7231 | ||
7232 | ||
7233 | ||
81ecdfbb RW |
7234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7235 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
d0ac1c44 | 7236 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
81ecdfbb | 7237 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7238 | else |
7239 | lt_cv_apple_cc_single_mod=no | |
7240 | if test -z "${LT_MULTI_MODULE}"; then | |
7241 | # By default we will add the -single_module flag. You can override | |
7242 | # by either setting the environment variable LT_MULTI_MODULE | |
7243 | # non-empty at configure time, or by adding -multi_module to the | |
7244 | # link flags. | |
7245 | rm -rf libconftest.dylib* | |
7246 | echo "int foo(void){return 1;}" > conftest.c | |
7247 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7248 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7249 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7250 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7251 | _lt_result=$? | |
7252 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7253 | lt_cv_apple_cc_single_mod=yes | |
7254 | else | |
7255 | cat conftest.err >&5 | |
7256 | fi | |
7257 | rm -rf libconftest.dylib* | |
7258 | rm -f conftest.* | |
7259 | fi | |
7260 | fi | |
81ecdfbb RW |
7261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7262 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7264 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
d0ac1c44 | 7265 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
81ecdfbb | 7266 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7267 | else |
7268 | lt_cv_ld_exported_symbols_list=no | |
7269 | save_LDFLAGS=$LDFLAGS | |
7270 | echo "_main" > conftest.sym | |
7271 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 7272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1927a18f L |
7273 | /* end confdefs.h. */ |
7274 | ||
7275 | int | |
7276 | main () | |
7277 | { | |
7278 | ||
7279 | ; | |
7280 | return 0; | |
7281 | } | |
7282 | _ACEOF | |
81ecdfbb | 7283 | if ac_fn_c_try_link "$LINENO"; then : |
1927a18f L |
7284 | lt_cv_ld_exported_symbols_list=yes |
7285 | else | |
81ecdfbb | 7286 | lt_cv_ld_exported_symbols_list=no |
1927a18f | 7287 | fi |
81ecdfbb RW |
7288 | rm -f core conftest.err conftest.$ac_objext \ |
7289 | conftest$ac_exeext conftest.$ac_ext | |
1927a18f L |
7290 | LDFLAGS="$save_LDFLAGS" |
7291 | ||
7292 | fi | |
81ecdfbb RW |
7293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7294 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
3725885a RW |
7295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7296 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
d0ac1c44 | 7297 | if ${lt_cv_ld_force_load+:} false; then : |
3725885a RW |
7298 | $as_echo_n "(cached) " >&6 |
7299 | else | |
7300 | lt_cv_ld_force_load=no | |
7301 | cat > conftest.c << _LT_EOF | |
7302 | int forced_loaded() { return 2;} | |
7303 | _LT_EOF | |
7304 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7305 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7306 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7307 | $AR cru libconftest.a conftest.o 2>&5 | |
7308 | cat > conftest.c << _LT_EOF | |
7309 | int main() { return 0;} | |
7310 | _LT_EOF | |
7311 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7312 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7313 | _lt_result=$? | |
7314 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7315 | lt_cv_ld_force_load=yes | |
7316 | else | |
7317 | cat conftest.err >&5 | |
7318 | fi | |
7319 | rm -f conftest.err libconftest.a conftest conftest.c | |
7320 | rm -rf conftest.dSYM | |
7321 | ||
7322 | fi | |
7323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7324 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
1927a18f L |
7325 | case $host_os in |
7326 | rhapsody* | darwin1.[012]) | |
7327 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7328 | darwin1.*) | |
7329 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7330 | darwin*) # darwin 5.x on | |
7331 | # if running on 10.5 or later, the deployment target defaults | |
7332 | # to the OS version, if on x86, and 10.4, the deployment | |
7333 | # target defaults to 10.4. Don't you love it? | |
7334 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7335 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7336 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6e733cce | 7337 | 10.[012][,.]*) |
1927a18f L |
7338 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7339 | 10.*) | |
7340 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7341 | esac | |
7342 | ;; | |
7343 | esac | |
7344 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7345 | _lt_dar_single_mod='$single_module' | |
7346 | fi | |
7347 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7348 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7349 | else | |
7350 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7351 | fi | |
3725885a | 7352 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
1927a18f L |
7353 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7354 | else | |
7355 | _lt_dsymutil= | |
7356 | fi | |
7357 | ;; | |
7358 | esac | |
7359 | ||
dabbade6 | 7360 | for ac_header in dlfcn.h |
81ecdfbb RW |
7361 | do : |
7362 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7363 | " | |
d0ac1c44 | 7364 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
dabbade6 | 7365 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7366 | #define HAVE_DLFCN_H 1 |
dabbade6 | 7367 | _ACEOF |
d7040cdb | 7368 | |
dabbade6 | 7369 | fi |
d7040cdb | 7370 | |
dabbade6 | 7371 | done |
d7040cdb | 7372 | |
d7040cdb | 7373 | |
d7040cdb | 7374 | |
3725885a RW |
7375 | |
7376 | ||
1927a18f L |
7377 | # Set options |
7378 | ||
7379 | ||
7380 | ||
7381 | enable_dlopen=no | |
7382 | ||
7383 | ||
7384 | enable_win32_dll=no | |
7385 | ||
7386 | ||
7387 | ||
81ecdfbb RW |
7388 | # Check whether --enable-static was given. |
7389 | if test "${enable_static+set}" = set; then : | |
7390 | enableval=$enable_static; p=${PACKAGE-default} | |
1927a18f L |
7391 | case $enableval in |
7392 | yes) enable_static=yes ;; | |
7393 | no) enable_static=no ;; | |
7394 | *) | |
7395 | enable_static=no | |
7396 | # Look at the argument we got. We use all the common list separators. | |
7397 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7398 | for pkg in $enableval; do | |
7399 | IFS="$lt_save_ifs" | |
7400 | if test "X$pkg" = "X$p"; then | |
7401 | enable_static=yes | |
7402 | fi | |
7403 | done | |
7404 | IFS="$lt_save_ifs" | |
7405 | ;; | |
7406 | esac | |
7407 | else | |
7408 | enable_static=yes | |
81ecdfbb | 7409 | fi |
1927a18f L |
7410 | |
7411 | ||
7412 | ||
7413 | ||
7414 | ||
7415 | ||
7416 | ||
7417 | ||
7418 | ||
81ecdfbb RW |
7419 | |
7420 | # Check whether --with-pic was given. | |
7421 | if test "${with_pic+set}" = set; then : | |
7422 | withval=$with_pic; pic_mode="$withval" | |
1927a18f L |
7423 | else |
7424 | pic_mode=default | |
81ecdfbb RW |
7425 | fi |
7426 | ||
1927a18f L |
7427 | |
7428 | test -z "$pic_mode" && pic_mode=default | |
7429 | ||
7430 | ||
7431 | ||
7432 | ||
7433 | ||
7434 | ||
7435 | ||
81ecdfbb RW |
7436 | # Check whether --enable-fast-install was given. |
7437 | if test "${enable_fast_install+set}" = set; then : | |
7438 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
1927a18f L |
7439 | case $enableval in |
7440 | yes) enable_fast_install=yes ;; | |
7441 | no) enable_fast_install=no ;; | |
7442 | *) | |
7443 | enable_fast_install=no | |
7444 | # Look at the argument we got. We use all the common list separators. | |
7445 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7446 | for pkg in $enableval; do | |
7447 | IFS="$lt_save_ifs" | |
7448 | if test "X$pkg" = "X$p"; then | |
7449 | enable_fast_install=yes | |
7450 | fi | |
7451 | done | |
7452 | IFS="$lt_save_ifs" | |
7453 | ;; | |
7454 | esac | |
7455 | else | |
7456 | enable_fast_install=yes | |
81ecdfbb RW |
7457 | fi |
7458 | ||
1927a18f L |
7459 | |
7460 | ||
7461 | ||
7462 | ||
7463 | ||
7464 | ||
7465 | ||
7466 | ||
7467 | ||
7468 | ||
dabbade6 L |
7469 | # This can be used to rebuild libtool when needed |
7470 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 7471 | |
dabbade6 L |
7472 | # Always use our own libtool. |
7473 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 7474 | |
d7040cdb | 7475 | |
d7040cdb | 7476 | |
d7040cdb SE |
7477 | |
7478 | ||
7479 | ||
7480 | ||
7481 | ||
7482 | ||
d7040cdb | 7483 | |
d7040cdb | 7484 | |
d7040cdb | 7485 | |
d7040cdb SE |
7486 | |
7487 | ||
7488 | ||
7489 | ||
7490 | ||
7491 | ||
d7040cdb | 7492 | |
d7040cdb | 7493 | |
d7040cdb SE |
7494 | |
7495 | ||
7496 | ||
3725885a | 7497 | |
d7040cdb SE |
7498 | |
7499 | ||
dabbade6 | 7500 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
7501 | |
7502 | ||
d7040cdb | 7503 | |
d7040cdb | 7504 | |
d7040cdb SE |
7505 | |
7506 | ||
7507 | ||
7508 | ||
7509 | ||
7510 | ||
dabbade6 L |
7511 | |
7512 | ||
7513 | ||
7514 | ||
7515 | if test -n "${ZSH_VERSION+set}" ; then | |
7516 | setopt NO_GLOB_SUBST | |
7517 | fi | |
7518 | ||
81ecdfbb RW |
7519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
7520 | $as_echo_n "checking for objdir... " >&6; } | |
d0ac1c44 | 7521 | if ${lt_cv_objdir+:} false; then : |
81ecdfbb | 7522 | $as_echo_n "(cached) " >&6 |
d7040cdb | 7523 | else |
dabbade6 L |
7524 | rm -f .libs 2>/dev/null |
7525 | mkdir .libs 2>/dev/null | |
7526 | if test -d .libs; then | |
7527 | lt_cv_objdir=.libs | |
7528 | else | |
7529 | # MS-DOS does not allow filenames that begin with a dot. | |
7530 | lt_cv_objdir=_libs | |
d7040cdb | 7531 | fi |
dabbade6 L |
7532 | rmdir .libs 2>/dev/null |
7533 | fi | |
81ecdfbb RW |
7534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
7535 | $as_echo "$lt_cv_objdir" >&6; } | |
dabbade6 | 7536 | objdir=$lt_cv_objdir |
d7040cdb SE |
7537 | |
7538 | ||
7539 | ||
7540 | ||
d7040cdb | 7541 | |
dabbade6 L |
7542 | cat >>confdefs.h <<_ACEOF |
7543 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7544 | _ACEOF | |
d7040cdb SE |
7545 | |
7546 | ||
7547 | ||
7548 | ||
dabbade6 L |
7549 | case $host_os in |
7550 | aix3*) | |
7551 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7552 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7553 | # vanish in a puff of smoke. | |
7554 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7555 | COLLECT_NAMES= | |
7556 | export COLLECT_NAMES | |
7557 | fi | |
7558 | ;; | |
7559 | esac | |
d7040cdb | 7560 | |
dabbade6 L |
7561 | # Global variables: |
7562 | ofile=libtool | |
7563 | can_build_shared=yes | |
d7040cdb | 7564 | |
dabbade6 L |
7565 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7566 | # which needs '.lib'). | |
7567 | libext=a | |
d7040cdb | 7568 | |
dabbade6 | 7569 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 7570 | |
dabbade6 L |
7571 | old_CC="$CC" |
7572 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 7573 | |
dabbade6 L |
7574 | # Set sane defaults for various variables |
7575 | test -z "$CC" && CC=cc | |
7576 | test -z "$LTCC" && LTCC=$CC | |
7577 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7578 | test -z "$LD" && LD=ld | |
7579 | test -z "$ac_objext" && ac_objext=o | |
7580 | ||
7581 | for cc_temp in $compiler""; do | |
7582 | case $cc_temp in | |
7583 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7584 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7585 | \-*) ;; | |
7586 | *) break;; | |
7587 | esac | |
7588 | done | |
3725885a | 7589 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
dabbade6 L |
7590 | |
7591 | ||
7592 | # Only perform the check for file, if the check method requires it | |
7593 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7594 | case $deplibs_check_method in | |
7595 | file_magic*) | |
7596 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
7597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
7598 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
d0ac1c44 | 7599 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
81ecdfbb | 7600 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
7601 | else |
7602 | case $MAGIC_CMD in | |
7603 | [\\/*] | ?:[\\/]*) | |
7604 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7605 | ;; | |
7606 | *) | |
7607 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7608 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7609 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7610 | for ac_dir in $ac_dummy; do | |
7611 | IFS="$lt_save_ifs" | |
7612 | test -z "$ac_dir" && ac_dir=. | |
7613 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7614 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7615 | if test -n "$file_magic_test_file"; then | |
7616 | case $deplibs_check_method in | |
7617 | "file_magic "*) | |
7618 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7619 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7620 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7621 | $EGREP "$file_magic_regex" > /dev/null; then | |
7622 | : | |
d7040cdb | 7623 | else |
dabbade6 | 7624 | cat <<_LT_EOF 1>&2 |
d7040cdb | 7625 | |
dabbade6 L |
7626 | *** Warning: the command libtool uses to detect shared libraries, |
7627 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7628 | *** The result is that libtool may fail to recognize shared libraries | |
7629 | *** as such. This will affect the creation of libtool libraries that | |
7630 | *** depend on shared libraries, but programs linked with such libtool | |
7631 | *** libraries will work regardless of this problem. Nevertheless, you | |
7632 | *** may want to report the problem to your system manager and/or to | |
7633 | *** bug-libtool@gnu.org | |
d7040cdb | 7634 | |
dabbade6 L |
7635 | _LT_EOF |
7636 | fi ;; | |
7637 | esac | |
d7040cdb | 7638 | fi |
dabbade6 | 7639 | break |
d7040cdb | 7640 | fi |
dabbade6 L |
7641 | done |
7642 | IFS="$lt_save_ifs" | |
7643 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7644 | ;; | |
7645 | esac | |
7646 | fi | |
d7040cdb | 7647 | |
dabbade6 L |
7648 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7649 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
7650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7651 | $as_echo "$MAGIC_CMD" >&6; } | |
dabbade6 | 7652 | else |
81ecdfbb RW |
7653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7654 | $as_echo "no" >&6; } | |
dabbade6 | 7655 | fi |
d7040cdb | 7656 | |
d7040cdb | 7657 | |
d7040cdb | 7658 | |
d7040cdb | 7659 | |
d7040cdb | 7660 | |
dabbade6 L |
7661 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7662 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
7663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
7664 | $as_echo_n "checking for file... " >&6; } | |
d0ac1c44 | 7665 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
81ecdfbb | 7666 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
7667 | else |
7668 | case $MAGIC_CMD in | |
7669 | [\\/*] | ?:[\\/]*) | |
7670 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7671 | ;; | |
7672 | *) | |
7673 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7674 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7675 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7676 | for ac_dir in $ac_dummy; do | |
7677 | IFS="$lt_save_ifs" | |
7678 | test -z "$ac_dir" && ac_dir=. | |
7679 | if test -f $ac_dir/file; then | |
7680 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7681 | if test -n "$file_magic_test_file"; then | |
7682 | case $deplibs_check_method in | |
7683 | "file_magic "*) | |
7684 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7685 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7686 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7687 | $EGREP "$file_magic_regex" > /dev/null; then | |
7688 | : | |
d7040cdb | 7689 | else |
dabbade6 | 7690 | cat <<_LT_EOF 1>&2 |
d7040cdb | 7691 | |
dabbade6 L |
7692 | *** Warning: the command libtool uses to detect shared libraries, |
7693 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7694 | *** The result is that libtool may fail to recognize shared libraries | |
7695 | *** as such. This will affect the creation of libtool libraries that | |
7696 | *** depend on shared libraries, but programs linked with such libtool | |
7697 | *** libraries will work regardless of this problem. Nevertheless, you | |
7698 | *** may want to report the problem to your system manager and/or to | |
7699 | *** bug-libtool@gnu.org | |
d7040cdb | 7700 | |
dabbade6 L |
7701 | _LT_EOF |
7702 | fi ;; | |
7703 | esac | |
7704 | fi | |
7705 | break | |
7706 | fi | |
7707 | done | |
7708 | IFS="$lt_save_ifs" | |
7709 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7710 | ;; | |
7711 | esac | |
d7040cdb | 7712 | fi |
dabbade6 L |
7713 | |
7714 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7715 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
7716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7717 | $as_echo "$MAGIC_CMD" >&6; } | |
d7040cdb | 7718 | else |
81ecdfbb RW |
7719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7720 | $as_echo "no" >&6; } | |
dabbade6 L |
7721 | fi |
7722 | ||
d7040cdb | 7723 | |
dabbade6 L |
7724 | else |
7725 | MAGIC_CMD=: | |
7726 | fi | |
d7040cdb | 7727 | fi |
d7040cdb | 7728 | |
dabbade6 L |
7729 | fi |
7730 | ;; | |
7731 | esac | |
d7040cdb | 7732 | |
dabbade6 | 7733 | # Use C for the default configuration in the libtool script |
d7040cdb | 7734 | |
dabbade6 L |
7735 | lt_save_CC="$CC" |
7736 | ac_ext=c | |
7737 | ac_cpp='$CPP $CPPFLAGS' | |
7738 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7739 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7740 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 7741 | |
d7040cdb | 7742 | |
dabbade6 L |
7743 | # Source file extension for C test sources. |
7744 | ac_ext=c | |
d7040cdb | 7745 | |
dabbade6 L |
7746 | # Object file extension for compiled C test sources. |
7747 | objext=o | |
7748 | objext=$objext | |
7749 | ||
7750 | # Code to be used in simple compile tests | |
7751 | lt_simple_compile_test_code="int some_variable = 0;" | |
7752 | ||
7753 | # Code to be used in simple link tests | |
7754 | lt_simple_link_test_code='int main(){return(0);}' | |
7755 | ||
7756 | ||
7757 | ||
7758 | ||
7759 | ||
7760 | ||
7761 | ||
7762 | # If no C compiler was specified, use CC. | |
7763 | LTCC=${LTCC-"$CC"} | |
7764 | ||
7765 | # If no C compiler flags were specified, use CFLAGS. | |
7766 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7767 | ||
7768 | # Allow CC to be a program name with arguments. | |
7769 | compiler=$CC | |
7770 | ||
7771 | # Save the default compiler, since it gets overwritten when the other | |
7772 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7773 | compiler_DEFAULT=$CC | |
7774 | ||
7775 | # save warnings/boilerplate of simple test code | |
7776 | ac_outfile=conftest.$ac_objext | |
7777 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7778 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7779 | _lt_compiler_boilerplate=`cat conftest.err` | |
7780 | $RM conftest* | |
7781 | ||
7782 | ac_outfile=conftest.$ac_objext | |
7783 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7784 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7785 | _lt_linker_boilerplate=`cat conftest.err` | |
1927a18f | 7786 | $RM -r conftest* |
dabbade6 L |
7787 | |
7788 | ||
7789 | ## CAVEAT EMPTOR: | |
7790 | ## There is no encapsulation within the following macros, do not change | |
7791 | ## the running order or otherwise move them around unless you know exactly | |
7792 | ## what you are doing... | |
7793 | if test -n "$compiler"; then | |
7794 | ||
7795 | lt_prog_compiler_no_builtin_flag= | |
7796 | ||
7797 | if test "$GCC" = yes; then | |
3725885a RW |
7798 | case $cc_basename in |
7799 | nvcc*) | |
7800 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
7801 | *) | |
7802 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
7803 | esac | |
dabbade6 | 7804 | |
81ecdfbb RW |
7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7806 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
d0ac1c44 | 7807 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
81ecdfbb | 7808 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
7809 | else |
7810 | lt_cv_prog_compiler_rtti_exceptions=no | |
7811 | ac_outfile=conftest.$ac_objext | |
7812 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7813 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7814 | # Insert the option either (1) after the last *FLAGS variable, or | |
7815 | # (2) before a word containing "conftest.", or (3) at the end. | |
7816 | # Note that $ac_compile itself does not contain backslashes and begins | |
7817 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7818 | # The option is referenced via a variable to avoid confusing sed. | |
7819 | lt_compile=`echo "$ac_compile" | $SED \ | |
7820 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7821 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7822 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 7823 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
dabbade6 L |
7824 | (eval "$lt_compile" 2>conftest.err) |
7825 | ac_status=$? | |
7826 | cat conftest.err >&5 | |
3725885a | 7827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dabbade6 L |
7828 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7829 | # The compiler can only warn and ignore the option if not recognized | |
7830 | # So say no if there are warnings other than the usual output. | |
3725885a | 7831 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
dabbade6 L |
7832 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7833 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7834 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7835 | fi | |
7836 | fi | |
7837 | $RM conftest* | |
7838 | ||
7839 | fi | |
81ecdfbb RW |
7840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7841 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
dabbade6 L |
7842 | |
7843 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7844 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7845 | else | |
7846 | : | |
7847 | fi | |
7848 | ||
7849 | fi | |
7850 | ||
7851 | ||
7852 | ||
7853 | ||
7854 | ||
7855 | ||
7856 | lt_prog_compiler_wl= | |
7857 | lt_prog_compiler_pic= | |
7858 | lt_prog_compiler_static= | |
7859 | ||
81ecdfbb RW |
7860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
7861 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
dabbade6 L |
7862 | |
7863 | if test "$GCC" = yes; then | |
7864 | lt_prog_compiler_wl='-Wl,' | |
7865 | lt_prog_compiler_static='-static' | |
7866 | ||
7867 | case $host_os in | |
7868 | aix*) | |
7869 | # All AIX code is PIC. | |
7870 | if test "$host_cpu" = ia64; then | |
7871 | # AIX 5 now supports IA64 processor | |
7872 | lt_prog_compiler_static='-Bstatic' | |
7873 | fi | |
b132a67d | 7874 | lt_prog_compiler_pic='-fPIC' |
dabbade6 | 7875 | ;; |
d7040cdb SE |
7876 | |
7877 | amigaos*) | |
1927a18f L |
7878 | case $host_cpu in |
7879 | powerpc) | |
7880 | # see comment about AmigaOS4 .so support | |
7881 | lt_prog_compiler_pic='-fPIC' | |
7882 | ;; | |
7883 | m68k) | |
7884 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7885 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7886 | # like `-m68040'. | |
7887 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7888 | ;; | |
7889 | esac | |
d7040cdb SE |
7890 | ;; |
7891 | ||
dabbade6 L |
7892 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7893 | # PIC is the default for these OSes. | |
d7040cdb SE |
7894 | ;; |
7895 | ||
1927a18f | 7896 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
dabbade6 L |
7897 | # This hack is so that the source file can tell whether it is being |
7898 | # built for inclusion in a dll (and should export symbols for example). | |
7899 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7900 | # (--disable-auto-import) libraries | |
7901 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
7902 | ;; |
7903 | ||
7904 | darwin* | rhapsody*) | |
dabbade6 L |
7905 | # PIC is the default on this platform |
7906 | # Common symbols not allowed in MH_DYLIB files | |
7907 | lt_prog_compiler_pic='-fno-common' | |
7908 | ;; | |
7909 | ||
3725885a RW |
7910 | haiku*) |
7911 | # PIC is the default for Haiku. | |
7912 | # The "-static" flag exists, but is broken. | |
7913 | lt_prog_compiler_static= | |
7914 | ;; | |
7915 | ||
dabbade6 | 7916 | hpux*) |
1927a18f L |
7917 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
7918 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7919 | # sets the default TLS model and affects inlining. | |
dabbade6 | 7920 | case $host_cpu in |
1927a18f | 7921 | hppa*64*) |
dabbade6 | 7922 | # +Z the default |
d7040cdb | 7923 | ;; |
dabbade6 L |
7924 | *) |
7925 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb SE |
7926 | ;; |
7927 | esac | |
dabbade6 | 7928 | ;; |
d7040cdb | 7929 | |
dabbade6 L |
7930 | interix[3-9]*) |
7931 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7932 | # Instead, we relocate shared libraries at runtime. | |
d7040cdb SE |
7933 | ;; |
7934 | ||
dabbade6 L |
7935 | msdosdjgpp*) |
7936 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7937 | # on systems that don't support them. | |
7938 | lt_prog_compiler_can_build_shared=no | |
7939 | enable_shared=no | |
d7040cdb SE |
7940 | ;; |
7941 | ||
dabbade6 L |
7942 | *nto* | *qnx*) |
7943 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7944 | # it will coredump. | |
7945 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
7946 | ;; |
7947 | ||
dabbade6 L |
7948 | sysv4*MP*) |
7949 | if test -d /usr/nec; then | |
7950 | lt_prog_compiler_pic=-Kconform_pic | |
7951 | fi | |
d7040cdb SE |
7952 | ;; |
7953 | ||
dabbade6 L |
7954 | *) |
7955 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb | 7956 | ;; |
dabbade6 | 7957 | esac |
3725885a RW |
7958 | |
7959 | case $cc_basename in | |
7960 | nvcc*) # Cuda Compiler Driver 2.2 | |
7961 | lt_prog_compiler_wl='-Xlinker ' | |
7962 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
7963 | ;; | |
7964 | esac | |
dabbade6 L |
7965 | else |
7966 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7967 | case $host_os in | |
7968 | aix*) | |
7969 | lt_prog_compiler_wl='-Wl,' | |
7970 | if test "$host_cpu" = ia64; then | |
7971 | # AIX 5 now supports IA64 processor | |
7972 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb | 7973 | else |
dabbade6 | 7974 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d7040cdb | 7975 | fi |
dabbade6 | 7976 | ;; |
d7040cdb | 7977 | |
1927a18f | 7978 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
dabbade6 L |
7979 | # This hack is so that the source file can tell whether it is being |
7980 | # built for inclusion in a dll (and should export symbols for example). | |
7981 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
7982 | ;; |
7983 | ||
dabbade6 L |
7984 | hpux9* | hpux10* | hpux11*) |
7985 | lt_prog_compiler_wl='-Wl,' | |
7986 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7987 | # not for PA HP-UX. | |
7988 | case $host_cpu in | |
7989 | hppa*64*|ia64*) | |
7990 | # +Z the default | |
7991 | ;; | |
7992 | *) | |
7993 | lt_prog_compiler_pic='+Z' | |
7994 | ;; | |
7995 | esac | |
7996 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7997 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
d7040cdb SE |
7998 | ;; |
7999 | ||
dabbade6 L |
8000 | irix5* | irix6* | nonstopux*) |
8001 | lt_prog_compiler_wl='-Wl,' | |
8002 | # PIC (with -KPIC) is the default. | |
8003 | lt_prog_compiler_static='-non_shared' | |
8004 | ;; | |
d7040cdb | 8005 | |
58e24671 | 8006 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
dabbade6 | 8007 | case $cc_basename in |
1927a18f L |
8008 | # old Intel for x86_64 which still supported -KPIC. |
8009 | ecc*) | |
dabbade6 L |
8010 | lt_prog_compiler_wl='-Wl,' |
8011 | lt_prog_compiler_pic='-KPIC' | |
8012 | lt_prog_compiler_static='-static' | |
8013 | ;; | |
1927a18f L |
8014 | # icc used to be incompatible with GCC. |
8015 | # ICC 10 doesn't accept -KPIC any more. | |
8016 | icc* | ifort*) | |
8017 | lt_prog_compiler_wl='-Wl,' | |
8018 | lt_prog_compiler_pic='-fPIC' | |
8019 | lt_prog_compiler_static='-static' | |
8020 | ;; | |
8021 | # Lahey Fortran 8.1. | |
8022 | lf95*) | |
8023 | lt_prog_compiler_wl='-Wl,' | |
8024 | lt_prog_compiler_pic='--shared' | |
8025 | lt_prog_compiler_static='--static' | |
8026 | ;; | |
3725885a | 8027 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
dabbade6 L |
8028 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8029 | # which looks to be a dead project) | |
8030 | lt_prog_compiler_wl='-Wl,' | |
8031 | lt_prog_compiler_pic='-fpic' | |
8032 | lt_prog_compiler_static='-Bstatic' | |
8033 | ;; | |
8034 | ccc*) | |
8035 | lt_prog_compiler_wl='-Wl,' | |
8036 | # All Alpha code is PIC. | |
8037 | lt_prog_compiler_static='-non_shared' | |
8038 | ;; | |
3725885a RW |
8039 | xl* | bgxl* | bgf* | mpixl*) |
8040 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
1927a18f L |
8041 | lt_prog_compiler_wl='-Wl,' |
8042 | lt_prog_compiler_pic='-qpic' | |
8043 | lt_prog_compiler_static='-qstaticlink' | |
8044 | ;; | |
dabbade6 L |
8045 | *) |
8046 | case `$CC -V 2>&1 | sed 5q` in | |
3725885a RW |
8047 | *Sun\ F* | *Sun*Fortran*) |
8048 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
dabbade6 L |
8049 | lt_prog_compiler_pic='-KPIC' |
8050 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8051 | lt_prog_compiler_wl='' |
d7040cdb | 8052 | ;; |
3725885a RW |
8053 | *Sun\ C*) |
8054 | # Sun C 5.9 | |
dabbade6 L |
8055 | lt_prog_compiler_pic='-KPIC' |
8056 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8057 | lt_prog_compiler_wl='-Wl,' |
d7040cdb SE |
8058 | ;; |
8059 | esac | |
dabbade6 L |
8060 | ;; |
8061 | esac | |
d7040cdb SE |
8062 | ;; |
8063 | ||
dabbade6 L |
8064 | newsos6) |
8065 | lt_prog_compiler_pic='-KPIC' | |
8066 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8067 | ;; |
8068 | ||
dabbade6 L |
8069 | *nto* | *qnx*) |
8070 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8071 | # it will coredump. | |
8072 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
8073 | ;; |
8074 | ||
dabbade6 L |
8075 | osf3* | osf4* | osf5*) |
8076 | lt_prog_compiler_wl='-Wl,' | |
8077 | # All OSF/1 code is PIC. | |
8078 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
8079 | ;; |
8080 | ||
dabbade6 L |
8081 | rdos*) |
8082 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
8083 | ;; |
8084 | ||
8085 | solaris*) | |
dabbade6 L |
8086 | lt_prog_compiler_pic='-KPIC' |
8087 | lt_prog_compiler_static='-Bstatic' | |
8088 | case $cc_basename in | |
8089 | f77* | f90* | f95*) | |
8090 | lt_prog_compiler_wl='-Qoption ld ';; | |
d7040cdb | 8091 | *) |
dabbade6 | 8092 | lt_prog_compiler_wl='-Wl,';; |
d7040cdb | 8093 | esac |
d7040cdb SE |
8094 | ;; |
8095 | ||
8096 | sunos4*) | |
dabbade6 L |
8097 | lt_prog_compiler_wl='-Qoption ld ' |
8098 | lt_prog_compiler_pic='-PIC' | |
8099 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8100 | ;; |
8101 | ||
dabbade6 L |
8102 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8103 | lt_prog_compiler_wl='-Wl,' | |
8104 | lt_prog_compiler_pic='-KPIC' | |
8105 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8106 | ;; |
8107 | ||
8108 | sysv4*MP*) | |
dabbade6 L |
8109 | if test -d /usr/nec ;then |
8110 | lt_prog_compiler_pic='-Kconform_pic' | |
8111 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8112 | fi |
8113 | ;; | |
8114 | ||
dabbade6 L |
8115 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8116 | lt_prog_compiler_wl='-Wl,' | |
8117 | lt_prog_compiler_pic='-KPIC' | |
8118 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8119 | ;; |
8120 | ||
dabbade6 L |
8121 | unicos*) |
8122 | lt_prog_compiler_wl='-Wl,' | |
8123 | lt_prog_compiler_can_build_shared=no | |
d7040cdb SE |
8124 | ;; |
8125 | ||
8126 | uts4*) | |
dabbade6 L |
8127 | lt_prog_compiler_pic='-pic' |
8128 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8129 | ;; |
8130 | ||
8131 | *) | |
dabbade6 | 8132 | lt_prog_compiler_can_build_shared=no |
d7040cdb SE |
8133 | ;; |
8134 | esac | |
d7040cdb SE |
8135 | fi |
8136 | ||
dabbade6 L |
8137 | case $host_os in |
8138 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8139 | *djgpp*) | |
8140 | lt_prog_compiler_pic= | |
8141 | ;; | |
8142 | *) | |
8143 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8144 | ;; | |
8145 | esac | |
81ecdfbb RW |
8146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8147 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d7040cdb SE |
8148 | |
8149 | ||
8150 | ||
8151 | ||
8152 | ||
8153 | ||
8154 | # | |
dabbade6 | 8155 | # Check to make sure the PIC flag actually works. |
d7040cdb | 8156 | # |
dabbade6 | 8157 | if test -n "$lt_prog_compiler_pic"; then |
81ecdfbb RW |
8158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8159 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
d0ac1c44 | 8160 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
81ecdfbb | 8161 | $as_echo_n "(cached) " >&6 |
dabbade6 | 8162 | else |
1927a18f | 8163 | lt_cv_prog_compiler_pic_works=no |
dabbade6 L |
8164 | ac_outfile=conftest.$ac_objext |
8165 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8166 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8167 | # Insert the option either (1) after the last *FLAGS variable, or | |
8168 | # (2) before a word containing "conftest.", or (3) at the end. | |
8169 | # Note that $ac_compile itself does not contain backslashes and begins | |
8170 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8171 | # The option is referenced via a variable to avoid confusing sed. | |
8172 | lt_compile=`echo "$ac_compile" | $SED \ | |
8173 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8174 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8175 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8176 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
dabbade6 L |
8177 | (eval "$lt_compile" 2>conftest.err) |
8178 | ac_status=$? | |
8179 | cat conftest.err >&5 | |
3725885a | 8180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dabbade6 L |
8181 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8182 | # The compiler can only warn and ignore the option if not recognized | |
8183 | # So say no if there are warnings other than the usual output. | |
3725885a | 8184 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
dabbade6 L |
8185 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8186 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
1927a18f | 8187 | lt_cv_prog_compiler_pic_works=yes |
dabbade6 L |
8188 | fi |
8189 | fi | |
8190 | $RM conftest* | |
d7040cdb | 8191 | |
dabbade6 | 8192 | fi |
81ecdfbb RW |
8193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8194 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
d7040cdb | 8195 | |
1927a18f | 8196 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
dabbade6 L |
8197 | case $lt_prog_compiler_pic in |
8198 | "" | " "*) ;; | |
8199 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8200 | esac | |
8201 | else | |
8202 | lt_prog_compiler_pic= | |
8203 | lt_prog_compiler_can_build_shared=no | |
8204 | fi | |
d7040cdb | 8205 | |
dabbade6 | 8206 | fi |
d7040cdb SE |
8207 | |
8208 | ||
8209 | ||
8210 | ||
8211 | ||
8212 | ||
dabbade6 L |
8213 | # |
8214 | # Check to make sure the static flag actually works. | |
8215 | # | |
8216 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8218 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
d0ac1c44 | 8219 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
81ecdfbb | 8220 | $as_echo_n "(cached) " >&6 |
dabbade6 | 8221 | else |
1927a18f | 8222 | lt_cv_prog_compiler_static_works=no |
dabbade6 L |
8223 | save_LDFLAGS="$LDFLAGS" |
8224 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8225 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8226 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8227 | # The linker can only warn and ignore the option if not recognized | |
8228 | # So say no if there are warnings | |
8229 | if test -s conftest.err; then | |
8230 | # Append any errors to the config.log. | |
8231 | cat conftest.err 1>&5 | |
3725885a | 8232 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
dabbade6 L |
8233 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8234 | if diff conftest.exp conftest.er2 >/dev/null; then | |
1927a18f | 8235 | lt_cv_prog_compiler_static_works=yes |
dabbade6 L |
8236 | fi |
8237 | else | |
1927a18f | 8238 | lt_cv_prog_compiler_static_works=yes |
dabbade6 L |
8239 | fi |
8240 | fi | |
1927a18f | 8241 | $RM -r conftest* |
dabbade6 | 8242 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 8243 | |
dabbade6 | 8244 | fi |
81ecdfbb RW |
8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8246 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 8247 | |
1927a18f | 8248 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
dabbade6 L |
8249 | : |
8250 | else | |
8251 | lt_prog_compiler_static= | |
8252 | fi | |
d7040cdb SE |
8253 | |
8254 | ||
8255 | ||
8256 | ||
8257 | ||
8258 | ||
8259 | ||
81ecdfbb RW |
8260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8261 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 8262 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
81ecdfbb | 8263 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
8264 | else |
8265 | lt_cv_prog_compiler_c_o=no | |
8266 | $RM -r conftest 2>/dev/null | |
8267 | mkdir conftest | |
8268 | cd conftest | |
8269 | mkdir out | |
8270 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8271 | |
dabbade6 L |
8272 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8273 | # Insert the option either (1) after the last *FLAGS variable, or | |
8274 | # (2) before a word containing "conftest.", or (3) at the end. | |
8275 | # Note that $ac_compile itself does not contain backslashes and begins | |
8276 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8277 | lt_compile=`echo "$ac_compile" | $SED \ | |
8278 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8279 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8280 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8281 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
dabbade6 L |
8282 | (eval "$lt_compile" 2>out/conftest.err) |
8283 | ac_status=$? | |
8284 | cat out/conftest.err >&5 | |
3725885a | 8285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dabbade6 L |
8286 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8287 | then | |
8288 | # The compiler can only warn and ignore the option if not recognized | |
8289 | # So say no if there are warnings | |
3725885a | 8290 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
dabbade6 L |
8291 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8292 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8293 | lt_cv_prog_compiler_c_o=yes | |
8294 | fi | |
8295 | fi | |
8296 | chmod u+w . 2>&5 | |
8297 | $RM conftest* | |
8298 | # SGI C++ compiler will create directory out/ii_files/ for | |
8299 | # template instantiation | |
8300 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8301 | $RM out/* && rmdir out | |
8302 | cd .. | |
8303 | $RM -r conftest | |
8304 | $RM conftest* | |
d7040cdb | 8305 | |
dabbade6 | 8306 | fi |
81ecdfbb RW |
8307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8308 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8309 | |
8310 | ||
8311 | ||
8312 | ||
8313 | ||
8314 | ||
81ecdfbb RW |
8315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8316 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 8317 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
81ecdfbb | 8318 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
8319 | else |
8320 | lt_cv_prog_compiler_c_o=no | |
8321 | $RM -r conftest 2>/dev/null | |
8322 | mkdir conftest | |
8323 | cd conftest | |
8324 | mkdir out | |
8325 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8326 | |
dabbade6 L |
8327 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8328 | # Insert the option either (1) after the last *FLAGS variable, or | |
8329 | # (2) before a word containing "conftest.", or (3) at the end. | |
8330 | # Note that $ac_compile itself does not contain backslashes and begins | |
8331 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8332 | lt_compile=`echo "$ac_compile" | $SED \ | |
8333 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8334 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8335 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8336 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
dabbade6 L |
8337 | (eval "$lt_compile" 2>out/conftest.err) |
8338 | ac_status=$? | |
8339 | cat out/conftest.err >&5 | |
3725885a | 8340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dabbade6 L |
8341 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8342 | then | |
8343 | # The compiler can only warn and ignore the option if not recognized | |
8344 | # So say no if there are warnings | |
3725885a | 8345 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
dabbade6 L |
8346 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8347 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8348 | lt_cv_prog_compiler_c_o=yes | |
8349 | fi | |
8350 | fi | |
8351 | chmod u+w . 2>&5 | |
8352 | $RM conftest* | |
8353 | # SGI C++ compiler will create directory out/ii_files/ for | |
8354 | # template instantiation | |
8355 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8356 | $RM out/* && rmdir out | |
8357 | cd .. | |
8358 | $RM -r conftest | |
8359 | $RM conftest* | |
d7040cdb | 8360 | |
dabbade6 | 8361 | fi |
81ecdfbb RW |
8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8363 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8364 | |
8365 | ||
8366 | ||
8367 | ||
dabbade6 L |
8368 | hard_links="nottested" |
8369 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8370 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
8371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8372 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
dabbade6 L |
8373 | hard_links=yes |
8374 | $RM conftest* | |
8375 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8376 | touch conftest.a | |
8377 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8378 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
8379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8380 | $as_echo "$hard_links" >&6; } | |
dabbade6 | 8381 | if test "$hard_links" = no; then |
81ecdfbb RW |
8382 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8383 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
dabbade6 L |
8384 | need_locks=warn |
8385 | fi | |
8386 | else | |
8387 | need_locks=no | |
8388 | fi | |
d7040cdb SE |
8389 | |
8390 | ||
8391 | ||
8392 | ||
8393 | ||
8394 | ||
81ecdfbb RW |
8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8396 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 8397 | |
dabbade6 L |
8398 | runpath_var= |
8399 | allow_undefined_flag= | |
8400 | always_export_symbols=no | |
8401 | archive_cmds= | |
8402 | archive_expsym_cmds= | |
8403 | compiler_needs_object=no | |
8404 | enable_shared_with_static_runtimes=no | |
8405 | export_dynamic_flag_spec= | |
8406 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8407 | hardcode_automatic=no | |
8408 | hardcode_direct=no | |
8409 | hardcode_direct_absolute=no | |
8410 | hardcode_libdir_flag_spec= | |
8411 | hardcode_libdir_flag_spec_ld= | |
8412 | hardcode_libdir_separator= | |
8413 | hardcode_minus_L=no | |
8414 | hardcode_shlibpath_var=unsupported | |
8415 | inherit_rpath=no | |
8416 | link_all_deplibs=unknown | |
8417 | module_cmds= | |
8418 | module_expsym_cmds= | |
8419 | old_archive_from_new_cmds= | |
8420 | old_archive_from_expsyms_cmds= | |
8421 | thread_safe_flag_spec= | |
8422 | whole_archive_flag_spec= | |
8423 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8424 | # included in the symbol list | |
8425 | include_expsyms= | |
8426 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8427 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8428 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8429 | # as well as any symbol that contains `d'. | |
1927a18f | 8430 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
dabbade6 L |
8431 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8432 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8433 | # the symbol is explicitly referenced. Since portable code cannot | |
8434 | # rely on this symbol name, it's probably fine to never include it in | |
8435 | # preloaded symbol tables. | |
1927a18f | 8436 | # Exclude shared library initialization/finalization symbols. |
dabbade6 | 8437 | extract_expsyms_cmds= |
d7040cdb | 8438 | |
dabbade6 | 8439 | case $host_os in |
1927a18f | 8440 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
8441 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8442 | # When not using gcc, we currently assume that we are using | |
8443 | # Microsoft Visual C++. | |
8444 | if test "$GCC" != yes; then | |
8445 | with_gnu_ld=no | |
8446 | fi | |
8447 | ;; | |
8448 | interix*) | |
8449 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8450 | with_gnu_ld=yes | |
8451 | ;; | |
8452 | openbsd*) | |
8453 | with_gnu_ld=no | |
8454 | ;; | |
8455 | esac | |
d7040cdb | 8456 | |
dabbade6 | 8457 | ld_shlibs=yes |
3725885a RW |
8458 | |
8459 | # On some targets, GNU ld is compatible enough with the native linker | |
8460 | # that we're better off using the native interface for both. | |
8461 | lt_use_gnu_ld_interface=no | |
dabbade6 | 8462 | if test "$with_gnu_ld" = yes; then |
3725885a RW |
8463 | case $host_os in |
8464 | aix*) | |
8465 | # The AIX port of GNU ld has always aspired to compatibility | |
8466 | # with the native linker. However, as the warning in the GNU ld | |
8467 | # block says, versions before 2.19.5* couldn't really create working | |
8468 | # shared libraries, regardless of the interface used. | |
8469 | case `$LD -v 2>&1` in | |
8470 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8471 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8472 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8473 | *) | |
8474 | lt_use_gnu_ld_interface=yes | |
8475 | ;; | |
8476 | esac | |
8477 | ;; | |
8478 | *) | |
8479 | lt_use_gnu_ld_interface=yes | |
8480 | ;; | |
8481 | esac | |
8482 | fi | |
8483 | ||
8484 | if test "$lt_use_gnu_ld_interface" = yes; then | |
dabbade6 L |
8485 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8486 | wlarc='${wl}' | |
d7040cdb | 8487 | |
dabbade6 L |
8488 | # Set some defaults for GNU ld with shared library support. These |
8489 | # are reset later if shared libraries are not supported. Putting them | |
8490 | # here allows them to be overridden if necessary. | |
8491 | runpath_var=LD_RUN_PATH | |
8492 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8493 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8494 | # ancient GNU ld didn't support --whole-archive et. al. | |
8495 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8496 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8497 | else | |
8498 | whole_archive_flag_spec= | |
8499 | fi | |
8500 | supports_anon_versioning=no | |
8501 | case `$LD -v 2>&1` in | |
3725885a | 8502 | *GNU\ gold*) supports_anon_versioning=yes ;; |
dabbade6 L |
8503 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8504 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8505 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8506 | *\ 2.11.*) ;; # other 2.11 versions | |
8507 | *) supports_anon_versioning=yes ;; | |
8508 | esac | |
d7040cdb | 8509 | |
dabbade6 L |
8510 | # See if GNU ld supports shared libraries. |
8511 | case $host_os in | |
50e7d84b | 8512 | aix[3-9]*) |
dabbade6 L |
8513 | # On AIX/PPC, the GNU linker is very broken |
8514 | if test "$host_cpu" != ia64; then | |
8515 | ld_shlibs=no | |
8516 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8517 | |
3725885a | 8518 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
dabbade6 L |
8519 | *** to be unable to reliably create shared libraries on AIX. |
8520 | *** Therefore, libtool is disabling shared libraries support. If you | |
3725885a RW |
8521 | *** really care for shared libraries, you may want to install binutils |
8522 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8523 | *** You will then need to restart the configuration process. | |
d7040cdb | 8524 | |
dabbade6 L |
8525 | _LT_EOF |
8526 | fi | |
8527 | ;; | |
d7040cdb | 8528 | |
dabbade6 | 8529 | amigaos*) |
1927a18f L |
8530 | case $host_cpu in |
8531 | powerpc) | |
8532 | # see comment about AmigaOS4 .so support | |
8533 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8534 | archive_expsym_cmds='' | |
8535 | ;; | |
8536 | m68k) | |
8537 | 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)' | |
8538 | hardcode_libdir_flag_spec='-L$libdir' | |
8539 | hardcode_minus_L=yes | |
8540 | ;; | |
8541 | esac | |
dabbade6 | 8542 | ;; |
d7040cdb | 8543 | |
dabbade6 L |
8544 | beos*) |
8545 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8546 | allow_undefined_flag=unsupported | |
8547 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8548 | # support --undefined. This deserves some investigation. FIXME | |
8549 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8550 | else | |
8551 | ld_shlibs=no | |
8552 | fi | |
8553 | ;; | |
d7040cdb | 8554 | |
1927a18f | 8555 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
8556 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8557 | # as there is no search path for DLLs. | |
8558 | hardcode_libdir_flag_spec='-L$libdir' | |
3725885a | 8559 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
dabbade6 L |
8560 | allow_undefined_flag=unsupported |
8561 | always_export_symbols=no | |
8562 | enable_shared_with_static_runtimes=yes | |
8563 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
d7040cdb | 8564 | |
dabbade6 L |
8565 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8566 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8567 | # If the export-symbols file already is a .def file (1st line | |
8568 | # is EXPORTS), use it as is; otherwise, prepend... | |
8569 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8570 | cp $export_symbols $output_objdir/$soname.def; | |
8571 | else | |
8572 | echo EXPORTS > $output_objdir/$soname.def; | |
8573 | cat $export_symbols >> $output_objdir/$soname.def; | |
8574 | fi~ | |
8575 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8576 | else | |
8577 | ld_shlibs=no | |
8578 | fi | |
8579 | ;; | |
d7040cdb | 8580 | |
3725885a RW |
8581 | haiku*) |
8582 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8583 | link_all_deplibs=yes | |
8584 | ;; | |
8585 | ||
dabbade6 L |
8586 | interix[3-9]*) |
8587 | hardcode_direct=no | |
8588 | hardcode_shlibpath_var=no | |
8589 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8590 | export_dynamic_flag_spec='${wl}-E' | |
8591 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8592 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8593 | # default) and relocated if they conflict, which is a slow very memory | |
8594 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8595 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8596 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8597 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8598 | 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' | |
8599 | ;; | |
d7040cdb | 8600 | |
58e24671 | 8601 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
dabbade6 L |
8602 | tmp_diet=no |
8603 | if test "$host_os" = linux-dietlibc; then | |
8604 | case $cc_basename in | |
8605 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8606 | esac | |
8607 | fi | |
8608 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8609 | && test "$tmp_diet" = no | |
8610 | then | |
6e733cce | 8611 | tmp_addflag=' $pic_flag' |
1927a18f | 8612 | tmp_sharedflag='-shared' |
dabbade6 L |
8613 | case $cc_basename,$host_cpu in |
8614 | pgcc*) # Portland Group C compiler | |
3725885a | 8615 | 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' |
dabbade6 L |
8616 | tmp_addflag=' $pic_flag' |
8617 | ;; | |
3725885a RW |
8618 | pgf77* | pgf90* | pgf95* | pgfortran*) |
8619 | # Portland Group f77 and f90 compilers | |
8620 | 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' | |
dabbade6 L |
8621 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8622 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8623 | tmp_addflag=' -i_dynamic' ;; | |
8624 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8625 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8626 | ifc* | ifort*) # Intel Fortran compiler | |
8627 | tmp_addflag=' -nofor_main' ;; | |
1927a18f L |
8628 | lf95*) # Lahey Fortran 8.1 |
8629 | whole_archive_flag_spec= | |
8630 | tmp_sharedflag='--shared' ;; | |
3725885a | 8631 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
1927a18f L |
8632 | tmp_sharedflag='-qmkshrobj' |
8633 | tmp_addflag= ;; | |
3725885a RW |
8634 | nvcc*) # Cuda Compiler Driver 2.2 |
8635 | 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' | |
8636 | compiler_needs_object=yes | |
8637 | ;; | |
dabbade6 L |
8638 | esac |
8639 | case `$CC -V 2>&1 | sed 5q` in | |
8640 | *Sun\ C*) # Sun C 5.9 | |
3725885a | 8641 | 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' |
dabbade6 L |
8642 | compiler_needs_object=yes |
8643 | tmp_sharedflag='-G' ;; | |
8644 | *Sun\ F*) # Sun Fortran 8.3 | |
8645 | tmp_sharedflag='-G' ;; | |
dabbade6 L |
8646 | esac |
8647 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 8648 | |
dabbade6 L |
8649 | if test "x$supports_anon_versioning" = xyes; then |
8650 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8651 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8652 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8653 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8654 | fi | |
1927a18f L |
8655 | |
8656 | case $cc_basename in | |
3725885a | 8657 | xlf* | bgf* | bgxlf* | mpixlf*) |
1927a18f L |
8658 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
8659 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8660 | hardcode_libdir_flag_spec= | |
8661 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8662 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8663 | if test "x$supports_anon_versioning" = xyes; then | |
8664 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8665 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8666 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8667 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8668 | fi | |
8669 | ;; | |
8670 | esac | |
dabbade6 L |
8671 | else |
8672 | ld_shlibs=no | |
8673 | fi | |
8674 | ;; | |
d7040cdb | 8675 | |
dabbade6 L |
8676 | netbsd*) |
8677 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8678 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8679 | wlarc= | |
8680 | else | |
8681 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8682 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8683 | fi | |
8684 | ;; | |
d7040cdb | 8685 | |
dabbade6 L |
8686 | solaris*) |
8687 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8688 | ld_shlibs=no | |
8689 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8690 | |
dabbade6 L |
8691 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8692 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8693 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8694 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8695 | *** your PATH or compiler configuration so that the native linker is | |
8696 | *** used, and then restart. | |
d7040cdb | 8697 | |
dabbade6 L |
8698 | _LT_EOF |
8699 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8700 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8701 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8702 | else | |
8703 | ld_shlibs=no | |
8704 | fi | |
8705 | ;; | |
d7040cdb | 8706 | |
dabbade6 L |
8707 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8708 | case `$LD -v 2>&1` in | |
8709 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8710 | ld_shlibs=no | |
8711 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8712 | |
dabbade6 L |
8713 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8714 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8715 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8716 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8717 | *** your PATH or compiler configuration so that the native linker is | |
8718 | *** used, and then restart. | |
d7040cdb | 8719 | |
dabbade6 L |
8720 | _LT_EOF |
8721 | ;; | |
8722 | *) | |
8723 | # For security reasons, it is highly recommended that you always | |
8724 | # use absolute paths for naming shared libraries, and exclude the | |
8725 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8726 | # requires that you compile everything twice, which is a pain. | |
8727 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8728 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8729 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8730 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8731 | else | |
8732 | ld_shlibs=no | |
8733 | fi | |
8734 | ;; | |
8735 | esac | |
8736 | ;; | |
d7040cdb | 8737 | |
dabbade6 L |
8738 | sunos4*) |
8739 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8740 | wlarc= | |
8741 | hardcode_direct=yes | |
8742 | hardcode_shlibpath_var=no | |
8743 | ;; | |
d7040cdb | 8744 | |
dabbade6 L |
8745 | *) |
8746 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8747 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8748 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8749 | else | |
8750 | ld_shlibs=no | |
8751 | fi | |
8752 | ;; | |
8753 | esac | |
d7040cdb | 8754 | |
dabbade6 L |
8755 | if test "$ld_shlibs" = no; then |
8756 | runpath_var= | |
8757 | hardcode_libdir_flag_spec= | |
8758 | export_dynamic_flag_spec= | |
8759 | whole_archive_flag_spec= | |
8760 | fi | |
8761 | else | |
8762 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8763 | case $host_os in | |
8764 | aix3*) | |
8765 | allow_undefined_flag=unsupported | |
8766 | always_export_symbols=yes | |
8767 | 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' | |
8768 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8769 | # are no directories specified by -L. | |
8770 | hardcode_minus_L=yes | |
8771 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8772 | # Neither direct hardcoding nor static linking is supported with a | |
8773 | # broken collect2. | |
8774 | hardcode_direct=unsupported | |
8775 | fi | |
8776 | ;; | |
d7040cdb | 8777 | |
50e7d84b | 8778 | aix[4-9]*) |
dabbade6 L |
8779 | if test "$host_cpu" = ia64; then |
8780 | # On IA64, the linker does run time linking by default, so we don't | |
8781 | # have to do anything special. | |
8782 | aix_use_runtimelinking=no | |
8783 | exp_sym_flag='-Bexport' | |
8784 | no_entry_flag="" | |
8785 | else | |
8786 | # If we're using GNU nm, then we don't want the "-C" option. | |
8787 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
3725885a RW |
8788 | # Also, AIX nm treats weak defined symbols like other global |
8789 | # defined symbols, whereas GNU nm marks them as "W". | |
dabbade6 | 8790 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
3725885a | 8791 | 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' |
dabbade6 | 8792 | else |
5c14705f | 8793 | 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' |
dabbade6 L |
8794 | fi |
8795 | aix_use_runtimelinking=no | |
d7040cdb | 8796 | |
dabbade6 L |
8797 | # Test if we are trying to use run time linking or normal |
8798 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8799 | # need to do runtime linking. | |
50e7d84b | 8800 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
dabbade6 L |
8801 | for ld_flag in $LDFLAGS; do |
8802 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8803 | aix_use_runtimelinking=yes | |
8804 | break | |
8805 | fi | |
8806 | done | |
8807 | ;; | |
8808 | esac | |
d7040cdb | 8809 | |
dabbade6 L |
8810 | exp_sym_flag='-bexport' |
8811 | no_entry_flag='-bnoentry' | |
8812 | fi | |
d7040cdb | 8813 | |
dabbade6 L |
8814 | # When large executables or shared objects are built, AIX ld can |
8815 | # have problems creating the table of contents. If linking a library | |
8816 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8817 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8818 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d7040cdb | 8819 | |
dabbade6 L |
8820 | archive_cmds='' |
8821 | hardcode_direct=yes | |
8822 | hardcode_direct_absolute=yes | |
8823 | hardcode_libdir_separator=':' | |
8824 | link_all_deplibs=yes | |
8825 | file_list_spec='${wl}-f,' | |
d7040cdb | 8826 | |
dabbade6 L |
8827 | if test "$GCC" = yes; then |
8828 | case $host_os in aix4.[012]|aix4.[012].*) | |
8829 | # We only want to do this on AIX 4.2 and lower, the check | |
8830 | # below for broken collect2 doesn't work under 4.3+ | |
8831 | collect2name=`${CC} -print-prog-name=collect2` | |
8832 | if test -f "$collect2name" && | |
8833 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8834 | then | |
8835 | # We have reworked collect2 | |
8836 | : | |
8837 | else | |
8838 | # We have old collect2 | |
8839 | hardcode_direct=unsupported | |
8840 | # It fails to find uninstalled libraries when the uninstalled | |
8841 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8842 | # to unsupported forces relinking | |
8843 | hardcode_minus_L=yes | |
8844 | hardcode_libdir_flag_spec='-L$libdir' | |
8845 | hardcode_libdir_separator= | |
8846 | fi | |
8847 | ;; | |
8848 | esac | |
8849 | shared_flag='-shared' | |
8850 | if test "$aix_use_runtimelinking" = yes; then | |
8851 | shared_flag="$shared_flag "'${wl}-G' | |
8852 | fi | |
8853 | else | |
8854 | # not using gcc | |
8855 | if test "$host_cpu" = ia64; then | |
8856 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8857 | # chokes on -Wl,-G. The following line is correct: | |
8858 | shared_flag='-G' | |
8859 | else | |
8860 | if test "$aix_use_runtimelinking" = yes; then | |
8861 | shared_flag='${wl}-G' | |
8862 | else | |
8863 | shared_flag='${wl}-bM:SRE' | |
8864 | fi | |
8865 | fi | |
8866 | fi | |
d7040cdb | 8867 | |
1927a18f | 8868 | export_dynamic_flag_spec='${wl}-bexpall' |
dabbade6 L |
8869 | # It seems that -bexpall does not export symbols beginning with |
8870 | # underscore (_), so it is better to generate a list of symbols to export. | |
8871 | always_export_symbols=yes | |
8872 | if test "$aix_use_runtimelinking" = yes; then | |
8873 | # Warning - without using the other runtime loading flags (-brtl), | |
8874 | # -berok will link without error, but may produce a broken library. | |
8875 | allow_undefined_flag='-berok' | |
8876 | # Determine the default libpath from the value encoded in an | |
8877 | # empty executable. | |
81ecdfbb | 8878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 8879 | /* end confdefs.h. */ |
d7040cdb | 8880 | |
dabbade6 L |
8881 | int |
8882 | main () | |
8883 | { | |
d7040cdb | 8884 | |
dabbade6 L |
8885 | ; |
8886 | return 0; | |
8887 | } | |
8888 | _ACEOF | |
81ecdfbb | 8889 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 8890 | |
dabbade6 L |
8891 | lt_aix_libpath_sed=' |
8892 | /Import File Strings/,/^$/ { | |
8893 | /^0/ { | |
8894 | s/^0 *\(.*\)$/\1/ | |
8895 | p | |
8896 | } | |
8897 | }' | |
8898 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8899 | # Check for a 64-bit object if we didn't find anything. | |
8900 | if test -z "$aix_libpath"; then | |
8901 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8902 | fi | |
dabbade6 | 8903 | fi |
81ecdfbb RW |
8904 | rm -f core conftest.err conftest.$ac_objext \ |
8905 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 | 8906 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 8907 | |
dabbade6 | 8908 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
3725885a | 8909 | 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" |
dabbade6 L |
8910 | else |
8911 | if test "$host_cpu" = ia64; then | |
8912 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8913 | allow_undefined_flag="-z nodefs" | |
8914 | 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" | |
8915 | else | |
8916 | # Determine the default libpath from the value encoded in an | |
8917 | # empty executable. | |
81ecdfbb | 8918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 8919 | /* end confdefs.h. */ |
d7040cdb | 8920 | |
dabbade6 L |
8921 | int |
8922 | main () | |
8923 | { | |
d7040cdb | 8924 | |
dabbade6 L |
8925 | ; |
8926 | return 0; | |
8927 | } | |
8928 | _ACEOF | |
81ecdfbb | 8929 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 8930 | |
dabbade6 L |
8931 | lt_aix_libpath_sed=' |
8932 | /Import File Strings/,/^$/ { | |
8933 | /^0/ { | |
8934 | s/^0 *\(.*\)$/\1/ | |
8935 | p | |
8936 | } | |
8937 | }' | |
8938 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8939 | # Check for a 64-bit object if we didn't find anything. | |
8940 | if test -z "$aix_libpath"; then | |
8941 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8942 | fi | |
dabbade6 | 8943 | fi |
81ecdfbb RW |
8944 | rm -f core conftest.err conftest.$ac_objext \ |
8945 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 | 8946 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 8947 | |
dabbade6 L |
8948 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8949 | # Warning - without using the other run time loading flags, | |
8950 | # -berok will link without error, but may produce a broken library. | |
8951 | no_undefined_flag=' ${wl}-bernotok' | |
8952 | allow_undefined_flag=' ${wl}-berok' | |
3725885a RW |
8953 | if test "$with_gnu_ld" = yes; then |
8954 | # We only use this code for GNU lds that support --whole-archive. | |
8955 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
8956 | else | |
8957 | # Exported symbols can be pulled into shared objects from archives | |
8958 | whole_archive_flag_spec='$convenience' | |
8959 | fi | |
dabbade6 L |
8960 | archive_cmds_need_lc=yes |
8961 | # This is similar to how AIX traditionally builds its shared libraries. | |
8962 | 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' | |
8963 | fi | |
8964 | fi | |
8965 | ;; | |
d7040cdb | 8966 | |
dabbade6 | 8967 | amigaos*) |
1927a18f L |
8968 | case $host_cpu in |
8969 | powerpc) | |
8970 | # see comment about AmigaOS4 .so support | |
8971 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8972 | archive_expsym_cmds='' | |
8973 | ;; | |
8974 | m68k) | |
8975 | 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)' | |
8976 | hardcode_libdir_flag_spec='-L$libdir' | |
8977 | hardcode_minus_L=yes | |
8978 | ;; | |
8979 | esac | |
dabbade6 | 8980 | ;; |
d7040cdb | 8981 | |
dabbade6 L |
8982 | bsdi[45]*) |
8983 | export_dynamic_flag_spec=-rdynamic | |
8984 | ;; | |
d7040cdb | 8985 | |
1927a18f | 8986 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
8987 | # When not using gcc, we currently assume that we are using |
8988 | # Microsoft Visual C++. | |
8989 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8990 | # no search path for DLLs. | |
8991 | hardcode_libdir_flag_spec=' ' | |
8992 | allow_undefined_flag=unsupported | |
8993 | # Tell ltmain to make .lib files, not .a files. | |
8994 | libext=lib | |
8995 | # Tell ltmain to make .dll files, not .so files. | |
8996 | shrext_cmds=".dll" | |
8997 | # FIXME: Setting linknames here is a bad hack. | |
3725885a | 8998 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
dabbade6 L |
8999 | # The linker will automatically build a .lib file if we build a DLL. |
9000 | old_archive_from_new_cmds='true' | |
9001 | # FIXME: Should let the user specify the lib program. | |
9002 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9003 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9004 | enable_shared_with_static_runtimes=yes | |
9005 | ;; | |
d7040cdb | 9006 | |
dabbade6 | 9007 | darwin* | rhapsody*) |
d7040cdb | 9008 | |
1927a18f L |
9009 | |
9010 | archive_cmds_need_lc=no | |
9011 | hardcode_direct=no | |
9012 | hardcode_automatic=yes | |
9013 | hardcode_shlibpath_var=unsupported | |
3725885a RW |
9014 | if test "$lt_cv_ld_force_load" = "yes"; then |
9015 | 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\"`' | |
9016 | else | |
9017 | whole_archive_flag_spec='' | |
9018 | fi | |
1927a18f L |
9019 | link_all_deplibs=yes |
9020 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9021 | case $cc_basename in | |
9022 | ifort*) _lt_dar_can_shared=yes ;; | |
9023 | *) _lt_dar_can_shared=$GCC ;; | |
9024 | esac | |
9025 | if test "$_lt_dar_can_shared" = "yes"; then | |
3725885a | 9026 | output_verbose_link_cmd=func_echo_all |
1927a18f L |
9027 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9028 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9029 | 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}" | |
9030 | 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}" | |
9031 | ||
9032 | else | |
9033 | ld_shlibs=no | |
9034 | fi | |
9035 | ||
dabbade6 | 9036 | ;; |
d7040cdb | 9037 | |
dabbade6 L |
9038 | dgux*) |
9039 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9040 | hardcode_libdir_flag_spec='-L$libdir' | |
9041 | hardcode_shlibpath_var=no | |
9042 | ;; | |
d7040cdb | 9043 | |
dabbade6 L |
9044 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9045 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9046 | # does not break anything, and helps significantly (at the cost of a little | |
9047 | # extra space). | |
9048 | freebsd2.2*) | |
9049 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9050 | hardcode_libdir_flag_spec='-R$libdir' | |
9051 | hardcode_direct=yes | |
9052 | hardcode_shlibpath_var=no | |
9053 | ;; | |
d7040cdb | 9054 | |
dabbade6 | 9055 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
6d2920c8 | 9056 | freebsd2.*) |
dabbade6 L |
9057 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9058 | hardcode_direct=yes | |
9059 | hardcode_minus_L=yes | |
9060 | hardcode_shlibpath_var=no | |
9061 | ;; | |
d7040cdb | 9062 | |
dabbade6 L |
9063 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9064 | freebsd* | dragonfly*) | |
9065 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9066 | hardcode_libdir_flag_spec='-R$libdir' | |
9067 | hardcode_direct=yes | |
9068 | hardcode_shlibpath_var=no | |
9069 | ;; | |
d7040cdb | 9070 | |
dabbade6 L |
9071 | hpux9*) |
9072 | if test "$GCC" = yes; then | |
9073 | 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' | |
9074 | else | |
9075 | 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' | |
9076 | fi | |
9077 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9078 | hardcode_libdir_separator=: | |
9079 | hardcode_direct=yes | |
d7040cdb | 9080 | |
dabbade6 L |
9081 | # hardcode_minus_L: Not really in the search PATH, |
9082 | # but as the default location of the library. | |
9083 | hardcode_minus_L=yes | |
9084 | export_dynamic_flag_spec='${wl}-E' | |
9085 | ;; | |
d7040cdb | 9086 | |
dabbade6 | 9087 | hpux10*) |
3725885a | 9088 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
dabbade6 L |
9089 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9090 | else | |
9091 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9092 | fi | |
9093 | if test "$with_gnu_ld" = no; then | |
9094 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9095 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9096 | hardcode_libdir_separator=: | |
9097 | hardcode_direct=yes | |
9098 | hardcode_direct_absolute=yes | |
9099 | export_dynamic_flag_spec='${wl}-E' | |
9100 | # hardcode_minus_L: Not really in the search PATH, | |
9101 | # but as the default location of the library. | |
9102 | hardcode_minus_L=yes | |
9103 | fi | |
9104 | ;; | |
d7040cdb | 9105 | |
dabbade6 | 9106 | hpux11*) |
3725885a | 9107 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
dabbade6 L |
9108 | case $host_cpu in |
9109 | hppa*64*) | |
9110 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9111 | ;; | |
9112 | ia64*) | |
1927a18f | 9113 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
dabbade6 L |
9114 | ;; |
9115 | *) | |
9116 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9117 | ;; | |
9118 | esac | |
9119 | else | |
9120 | case $host_cpu in | |
9121 | hppa*64*) | |
9122 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9123 | ;; | |
9124 | ia64*) | |
9125 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9126 | ;; | |
9127 | *) | |
3725885a RW |
9128 | |
9129 | # Older versions of the 11.00 compiler do not understand -b yet | |
9130 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9132 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
d0ac1c44 | 9133 | if ${lt_cv_prog_compiler__b+:} false; then : |
3725885a RW |
9134 | $as_echo_n "(cached) " >&6 |
9135 | else | |
9136 | lt_cv_prog_compiler__b=no | |
9137 | save_LDFLAGS="$LDFLAGS" | |
9138 | LDFLAGS="$LDFLAGS -b" | |
9139 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9140 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9141 | # The linker can only warn and ignore the option if not recognized | |
9142 | # So say no if there are warnings | |
9143 | if test -s conftest.err; then | |
9144 | # Append any errors to the config.log. | |
9145 | cat conftest.err 1>&5 | |
9146 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9147 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9148 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9149 | lt_cv_prog_compiler__b=yes | |
9150 | fi | |
9151 | else | |
9152 | lt_cv_prog_compiler__b=yes | |
9153 | fi | |
9154 | fi | |
9155 | $RM -r conftest* | |
9156 | LDFLAGS="$save_LDFLAGS" | |
9157 | ||
9158 | fi | |
9159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9160 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9161 | ||
9162 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9163 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9164 | else | |
9165 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9166 | fi | |
9167 | ||
dabbade6 L |
9168 | ;; |
9169 | esac | |
9170 | fi | |
9171 | if test "$with_gnu_ld" = no; then | |
9172 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9173 | hardcode_libdir_separator=: | |
d7040cdb | 9174 | |
dabbade6 L |
9175 | case $host_cpu in |
9176 | hppa*64*|ia64*) | |
9177 | hardcode_direct=no | |
9178 | hardcode_shlibpath_var=no | |
9179 | ;; | |
9180 | *) | |
9181 | hardcode_direct=yes | |
9182 | hardcode_direct_absolute=yes | |
9183 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 9184 | |
dabbade6 L |
9185 | # hardcode_minus_L: Not really in the search PATH, |
9186 | # but as the default location of the library. | |
9187 | hardcode_minus_L=yes | |
9188 | ;; | |
9189 | esac | |
9190 | fi | |
9191 | ;; | |
d7040cdb | 9192 | |
dabbade6 L |
9193 | irix5* | irix6* | nonstopux*) |
9194 | if test "$GCC" = yes; then | |
3725885a | 9195 | 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' |
dabbade6 L |
9196 | # Try to use the -exported_symbol ld option, if it does not |
9197 | # work, assume that -exports_file does not work either and | |
9198 | # implicitly export all symbols. | |
9199 | save_LDFLAGS="$LDFLAGS" | |
9200 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
81ecdfbb RW |
9201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9202 | /* end confdefs.h. */ | |
dabbade6 L |
9203 | int foo(void) {} |
9204 | _ACEOF | |
81ecdfbb | 9205 | if ac_fn_c_try_link "$LINENO"; then : |
3725885a | 9206 | 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' |
d7040cdb | 9207 | |
d7040cdb | 9208 | fi |
81ecdfbb RW |
9209 | rm -f core conftest.err conftest.$ac_objext \ |
9210 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 L |
9211 | LDFLAGS="$save_LDFLAGS" |
9212 | else | |
3725885a RW |
9213 | 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' |
9214 | 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' | |
dabbade6 L |
9215 | fi |
9216 | archive_cmds_need_lc='no' | |
9217 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9218 | hardcode_libdir_separator=: | |
9219 | inherit_rpath=yes | |
9220 | link_all_deplibs=yes | |
9221 | ;; | |
d7040cdb | 9222 | |
dabbade6 L |
9223 | netbsd*) |
9224 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9225 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9226 | else | |
9227 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9228 | fi | |
9229 | hardcode_libdir_flag_spec='-R$libdir' | |
9230 | hardcode_direct=yes | |
9231 | hardcode_shlibpath_var=no | |
9232 | ;; | |
d7040cdb | 9233 | |
dabbade6 L |
9234 | newsos6) |
9235 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9236 | hardcode_direct=yes | |
9237 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9238 | hardcode_libdir_separator=: | |
9239 | hardcode_shlibpath_var=no | |
9240 | ;; | |
d7040cdb | 9241 | |
dabbade6 L |
9242 | *nto* | *qnx*) |
9243 | ;; | |
d7040cdb | 9244 | |
dabbade6 | 9245 | openbsd*) |
1927a18f L |
9246 | if test -f /usr/libexec/ld.so; then |
9247 | hardcode_direct=yes | |
9248 | hardcode_shlibpath_var=no | |
9249 | hardcode_direct_absolute=yes | |
9250 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
dabbade6 | 9251 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
1927a18f | 9252 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
dabbade6 | 9253 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
1927a18f L |
9254 | export_dynamic_flag_spec='${wl}-E' |
9255 | else | |
9256 | case $host_os in | |
9257 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9258 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9259 | hardcode_libdir_flag_spec='-R$libdir' | |
9260 | ;; | |
9261 | *) | |
9262 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9263 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9264 | ;; | |
9265 | esac | |
9266 | fi | |
9267 | else | |
9268 | ld_shlibs=no | |
d7040cdb SE |
9269 | fi |
9270 | ;; | |
d7040cdb | 9271 | |
dabbade6 L |
9272 | os2*) |
9273 | hardcode_libdir_flag_spec='-L$libdir' | |
9274 | hardcode_minus_L=yes | |
9275 | allow_undefined_flag=unsupported | |
3725885a | 9276 | 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' |
dabbade6 L |
9277 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9278 | ;; | |
d7040cdb | 9279 | |
dabbade6 L |
9280 | osf3*) |
9281 | if test "$GCC" = yes; then | |
9282 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 9283 | 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' |
dabbade6 L |
9284 | else |
9285 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9286 | 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' |
dabbade6 L |
9287 | fi |
9288 | archive_cmds_need_lc='no' | |
9289 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9290 | hardcode_libdir_separator=: | |
9291 | ;; | |
d7040cdb | 9292 | |
dabbade6 L |
9293 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9294 | if test "$GCC" = yes; then | |
9295 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 9296 | 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' |
dabbade6 L |
9297 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9298 | else | |
9299 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9300 | 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' |
dabbade6 | 9301 | 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~ |
3725885a | 9302 | $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' |
d7040cdb | 9303 | |
dabbade6 L |
9304 | # Both c and cxx compiler support -rpath directly |
9305 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9306 | fi | |
9307 | archive_cmds_need_lc='no' | |
9308 | hardcode_libdir_separator=: | |
9309 | ;; | |
d7040cdb | 9310 | |
dabbade6 L |
9311 | solaris*) |
9312 | no_undefined_flag=' -z defs' | |
9313 | if test "$GCC" = yes; then | |
9314 | wlarc='${wl}' | |
9315 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9316 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9317 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9318 | else | |
9319 | case `$CC -V 2>&1` in | |
9320 | *"Compilers 5.0"*) | |
9321 | wlarc='' | |
9322 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9323 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9324 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9325 | ;; | |
9326 | *) | |
9327 | wlarc='${wl}' | |
9328 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9329 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9330 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9331 | ;; | |
9332 | esac | |
9333 | fi | |
9334 | hardcode_libdir_flag_spec='-R$libdir' | |
9335 | hardcode_shlibpath_var=no | |
9336 | case $host_os in | |
9337 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9338 | *) | |
9339 | # The compiler driver will combine and reorder linker options, | |
9340 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9341 | # but is careful enough not to reorder. | |
9342 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9343 | if test "$GCC" = yes; then | |
9344 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9345 | else | |
9346 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9347 | fi | |
9348 | ;; | |
9349 | esac | |
9350 | link_all_deplibs=yes | |
d7040cdb | 9351 | ;; |
dabbade6 L |
9352 | |
9353 | sunos4*) | |
9354 | if test "x$host_vendor" = xsequent; then | |
9355 | # Use $CC to link under sequent, because it throws in some extra .o | |
9356 | # files that make .init and .fini sections work. | |
9357 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
d7040cdb | 9358 | else |
dabbade6 | 9359 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
d7040cdb | 9360 | fi |
dabbade6 L |
9361 | hardcode_libdir_flag_spec='-L$libdir' |
9362 | hardcode_direct=yes | |
9363 | hardcode_minus_L=yes | |
9364 | hardcode_shlibpath_var=no | |
d7040cdb | 9365 | ;; |
dabbade6 L |
9366 | |
9367 | sysv4) | |
9368 | case $host_vendor in | |
9369 | sni) | |
9370 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9371 | hardcode_direct=yes # is this really true??? | |
9372 | ;; | |
9373 | siemens) | |
9374 | ## LD is ld it makes a PLAMLIB | |
9375 | ## CC just makes a GrossModule. | |
9376 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9377 | reload_cmds='$CC -r -o $output$reload_objs' | |
9378 | hardcode_direct=no | |
9379 | ;; | |
9380 | motorola) | |
9381 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9382 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9383 | ;; | |
9384 | esac | |
9385 | runpath_var='LD_RUN_PATH' | |
9386 | hardcode_shlibpath_var=no | |
d7040cdb | 9387 | ;; |
d7040cdb | 9388 | |
dabbade6 L |
9389 | sysv4.3*) |
9390 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9391 | hardcode_shlibpath_var=no | |
9392 | export_dynamic_flag_spec='-Bexport' | |
9393 | ;; | |
d7040cdb | 9394 | |
dabbade6 L |
9395 | sysv4*MP*) |
9396 | if test -d /usr/nec; then | |
9397 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9398 | hardcode_shlibpath_var=no | |
9399 | runpath_var=LD_RUN_PATH | |
9400 | hardcode_runpath_var=yes | |
9401 | ld_shlibs=yes | |
9402 | fi | |
9403 | ;; | |
d7040cdb | 9404 | |
dabbade6 L |
9405 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9406 | no_undefined_flag='${wl}-z,text' | |
9407 | archive_cmds_need_lc=no | |
9408 | hardcode_shlibpath_var=no | |
9409 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9410 | |
dabbade6 L |
9411 | if test "$GCC" = yes; then |
9412 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9413 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9414 | else | |
9415 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9416 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9417 | fi | |
9418 | ;; | |
d7040cdb | 9419 | |
dabbade6 L |
9420 | sysv5* | sco3.2v5* | sco5v6*) |
9421 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9422 | # link with -lc, and that would cause any symbols used from libc to | |
9423 | # always be unresolved, which means just about no library would | |
9424 | # ever link correctly. If we're not using GNU ld we use -z text | |
9425 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9426 | # as -z defs. | |
9427 | no_undefined_flag='${wl}-z,text' | |
9428 | allow_undefined_flag='${wl}-z,nodefs' | |
9429 | archive_cmds_need_lc=no | |
9430 | hardcode_shlibpath_var=no | |
9431 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9432 | hardcode_libdir_separator=':' | |
9433 | link_all_deplibs=yes | |
9434 | export_dynamic_flag_spec='${wl}-Bexport' | |
9435 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9436 | |
dabbade6 L |
9437 | if test "$GCC" = yes; then |
9438 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9439 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9440 | else | |
9441 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9442 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9443 | fi | |
d7040cdb | 9444 | ;; |
d7040cdb | 9445 | |
dabbade6 L |
9446 | uts4*) |
9447 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9448 | hardcode_libdir_flag_spec='-L$libdir' | |
9449 | hardcode_shlibpath_var=no | |
9450 | ;; | |
d7040cdb | 9451 | |
dabbade6 L |
9452 | *) |
9453 | ld_shlibs=no | |
9454 | ;; | |
9455 | esac | |
9456 | ||
9457 | if test x$host_vendor = xsni; then | |
9458 | case $host in | |
9459 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9460 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9461 | ;; | |
9462 | esac | |
d7040cdb | 9463 | fi |
dabbade6 | 9464 | fi |
d7040cdb | 9465 | |
81ecdfbb RW |
9466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
9467 | $as_echo "$ld_shlibs" >&6; } | |
dabbade6 | 9468 | test "$ld_shlibs" = no && can_build_shared=no |
d7040cdb | 9469 | |
dabbade6 | 9470 | with_gnu_ld=$with_gnu_ld |
d7040cdb | 9471 | |
d7040cdb | 9472 | |
d7040cdb | 9473 | |
d7040cdb | 9474 | |
d7040cdb | 9475 | |
d7040cdb | 9476 | |
d7040cdb | 9477 | |
d7040cdb | 9478 | |
d7040cdb | 9479 | |
d7040cdb | 9480 | |
d7040cdb | 9481 | |
d7040cdb | 9482 | |
d7040cdb | 9483 | |
d7040cdb | 9484 | |
d7040cdb | 9485 | |
dabbade6 L |
9486 | # |
9487 | # Do we need to explicitly link libc? | |
9488 | # | |
9489 | case "x$archive_cmds_need_lc" in | |
9490 | x|xyes) | |
9491 | # Assume -lc should be added | |
9492 | archive_cmds_need_lc=yes | |
d7040cdb | 9493 | |
dabbade6 L |
9494 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
9495 | case $archive_cmds in | |
9496 | *'~'*) | |
9497 | # FIXME: we may have to deal with multi-command sequences. | |
9498 | ;; | |
9499 | '$CC '*) | |
9500 | # Test whether the compiler implicitly links with -lc since on some | |
9501 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9502 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
9503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9504 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
d0ac1c44 | 9505 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
81ecdfbb | 9506 | $as_echo_n "(cached) " >&6 |
39144654 RW |
9507 | else |
9508 | $RM conftest* | |
9509 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9510 | |
81ecdfbb | 9511 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
dabbade6 L |
9512 | (eval $ac_compile) 2>&5 |
9513 | ac_status=$? | |
81ecdfbb RW |
9514 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9515 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
9516 | soname=conftest |
9517 | lib=conftest | |
9518 | libobjs=conftest.$ac_objext | |
9519 | deplibs= | |
9520 | wl=$lt_prog_compiler_wl | |
9521 | pic_flag=$lt_prog_compiler_pic | |
9522 | compiler_flags=-v | |
9523 | linker_flags=-v | |
9524 | verstring= | |
9525 | output_objdir=. | |
9526 | libname=conftest | |
9527 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9528 | allow_undefined_flag= | |
81ecdfbb | 9529 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
dabbade6 L |
9530 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9531 | ac_status=$? | |
81ecdfbb RW |
9532 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9533 | test $ac_status = 0; } | |
39144654 RW |
9534 | then |
9535 | lt_cv_archive_cmds_need_lc=no | |
9536 | else | |
9537 | lt_cv_archive_cmds_need_lc=yes | |
9538 | fi | |
9539 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9540 | else | |
9541 | cat conftest.err 1>&5 | |
9542 | fi | |
9543 | $RM conftest* | |
9544 | ||
9545 | fi | |
81ecdfbb RW |
9546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
9547 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 9548 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
dabbade6 L |
9549 | ;; |
9550 | esac | |
d7040cdb | 9551 | fi |
d7040cdb | 9552 | ;; |
dabbade6 | 9553 | esac |
d7040cdb | 9554 | |
d7040cdb | 9555 | |
d7040cdb | 9556 | |
d7040cdb | 9557 | |
d7040cdb | 9558 | |
d7040cdb | 9559 | |
d7040cdb | 9560 | |
d7040cdb SE |
9561 | |
9562 | ||
9563 | ||
9564 | ||
9565 | ||
9566 | ||
9567 | ||
9568 | ||
9569 | ||
9570 | ||
9571 | ||
9572 | ||
9573 | ||
9574 | ||
9575 | ||
9576 | ||
9577 | ||
9578 | ||
9579 | ||
9580 | ||
9581 | ||
9582 | ||
9583 | ||
9584 | ||
9585 | ||
9586 | ||
9587 | ||
9588 | ||
9589 | ||
9590 | ||
9591 | ||
9592 | ||
9593 | ||
9594 | ||
9595 | ||
9596 | ||
9597 | ||
9598 | ||
9599 | ||
9600 | ||
9601 | ||
9602 | ||
9603 | ||
9604 | ||
9605 | ||
9606 | ||
9607 | ||
9608 | ||
9609 | ||
9610 | ||
9611 | ||
9612 | ||
9613 | ||
9614 | ||
9615 | ||
9616 | ||
9617 | ||
9618 | ||
9619 | ||
9620 | ||
9621 | ||
9622 | ||
9623 | ||
9624 | ||
9625 | ||
9626 | ||
9627 | ||
9628 | ||
9629 | ||
9630 | ||
9631 | ||
9632 | ||
9633 | ||
9634 | ||
9635 | ||
9636 | ||
9637 | ||
9638 | ||
9639 | ||
9640 | ||
9641 | ||
9642 | ||
9643 | ||
9644 | ||
9645 | ||
9646 | ||
9647 | ||
d7040cdb | 9648 | |
d7040cdb | 9649 | |
d7040cdb SE |
9650 | |
9651 | ||
9652 | ||
9653 | ||
9654 | ||
9655 | ||
d7040cdb | 9656 | |
d7040cdb | 9657 | |
d7040cdb | 9658 | |
d7040cdb | 9659 | |
d7040cdb | 9660 | |
d7040cdb | 9661 | |
d7040cdb | 9662 | |
d7040cdb | 9663 | |
d7040cdb | 9664 | |
d7040cdb | 9665 | |
d7040cdb | 9666 | |
d7040cdb | 9667 | |
d7040cdb | 9668 | |
d7040cdb | 9669 | |
d7040cdb | 9670 | |
d7040cdb | 9671 | |
d7040cdb | 9672 | |
d7040cdb | 9673 | |
d7040cdb | 9674 | |
d7040cdb | 9675 | |
d7040cdb | 9676 | |
d7040cdb | 9677 | |
d7040cdb | 9678 | |
d7040cdb | 9679 | |
dabbade6 L |
9680 | |
9681 | ||
9682 | ||
9683 | ||
9684 | ||
9685 | ||
9686 | ||
9687 | ||
9688 | ||
9689 | ||
9690 | ||
9691 | ||
9692 | ||
9693 | ||
9694 | ||
9695 | ||
9696 | ||
9697 | ||
9698 | ||
9699 | ||
9700 | ||
9701 | ||
9702 | ||
9703 | ||
9704 | ||
9705 | ||
9706 | ||
9707 | ||
9708 | ||
9709 | ||
9710 | ||
81ecdfbb RW |
9711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
9712 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
1927a18f L |
9713 | |
9714 | if test "$GCC" = yes; then | |
dabbade6 L |
9715 | case $host_os in |
9716 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9717 | *) lt_awk_arg="/^libraries:/" ;; | |
9718 | esac | |
3725885a RW |
9719 | case $host_os in |
9720 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
9721 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
9722 | esac | |
9723 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
9724 | case $lt_search_path_spec in | |
9725 | *\;*) | |
dabbade6 L |
9726 | # if the path contains ";" then we assume it to be the separator |
9727 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9728 | # assumed that no part of a normal pathname contains ";" but that should | |
9729 | # okay in the real world where ";" in dirpaths is itself problematic. | |
3725885a RW |
9730 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
9731 | ;; | |
9732 | *) | |
9733 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
9734 | ;; | |
9735 | esac | |
dabbade6 L |
9736 | # Ok, now we have the path, separated by spaces, we can step through it |
9737 | # and add multilib dir if necessary. | |
9738 | lt_tmp_lt_search_path_spec= | |
9739 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9740 | for lt_sys_path in $lt_search_path_spec; do | |
9741 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9742 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9743 | else | |
9744 | test -d "$lt_sys_path" && \ | |
9745 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9746 | fi | |
9747 | done | |
3725885a | 9748 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
dabbade6 L |
9749 | BEGIN {RS=" "; FS="/|\n";} { |
9750 | lt_foo=""; | |
9751 | lt_count=0; | |
9752 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9753 | if ($lt_i != "" && $lt_i != ".") { | |
9754 | if ($lt_i == "..") { | |
9755 | lt_count++; | |
9756 | } else { | |
9757 | if (lt_count == 0) { | |
9758 | lt_foo="/" $lt_i lt_foo; | |
9759 | } else { | |
9760 | lt_count--; | |
9761 | } | |
9762 | } | |
9763 | } | |
9764 | } | |
9765 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9766 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9767 | }'` | |
3725885a RW |
9768 | # AWK program above erroneously prepends '/' to C:/dos/paths |
9769 | # for these hosts. | |
9770 | case $host_os in | |
9771 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
9772 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
9773 | esac | |
9774 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
d7040cdb | 9775 | else |
dabbade6 L |
9776 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
9777 | fi | |
9778 | library_names_spec= | |
9779 | libname_spec='lib$name' | |
9780 | soname_spec= | |
9781 | shrext_cmds=".so" | |
9782 | postinstall_cmds= | |
9783 | postuninstall_cmds= | |
9784 | finish_cmds= | |
9785 | finish_eval= | |
9786 | shlibpath_var= | |
9787 | shlibpath_overrides_runpath=unknown | |
9788 | version_type=none | |
9789 | dynamic_linker="$host_os ld.so" | |
9790 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9791 | need_lib_prefix=unknown | |
9792 | hardcode_into_libs=no | |
9793 | ||
9794 | # when you set need_version to no, make sure it does not cause -set_version | |
9795 | # flags to be left without arguments | |
9796 | need_version=unknown | |
9797 | ||
9798 | case $host_os in | |
9799 | aix3*) | |
9800 | version_type=linux | |
9801 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9802 | shlibpath_var=LIBPATH | |
9803 | ||
9804 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9805 | soname_spec='${libname}${release}${shared_ext}$major' | |
9806 | ;; | |
9807 | ||
50e7d84b | 9808 | aix[4-9]*) |
dabbade6 L |
9809 | version_type=linux |
9810 | need_lib_prefix=no | |
9811 | need_version=no | |
9812 | hardcode_into_libs=yes | |
9813 | if test "$host_cpu" = ia64; then | |
9814 | # AIX 5 supports IA64 | |
9815 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9816 | shlibpath_var=LD_LIBRARY_PATH | |
9817 | else | |
9818 | # With GCC up to 2.95.x, collect2 would create an import file | |
9819 | # for dependence libraries. The import file would start with | |
9820 | # the line `#! .'. This would cause the generated library to | |
9821 | # depend on `.', always an invalid library. This was fixed in | |
9822 | # development snapshots of GCC prior to 3.0. | |
9823 | case $host_os in | |
9824 | aix4 | aix4.[01] | aix4.[01].*) | |
9825 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9826 | echo ' yes ' | |
9827 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9828 | : | |
9829 | else | |
9830 | can_build_shared=no | |
9831 | fi | |
9832 | ;; | |
9833 | esac | |
9834 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9835 | # soname into executable. Probably we can add versioning support to | |
9836 | # collect2, so additional links can be useful in future. | |
9837 | if test "$aix_use_runtimelinking" = yes; then | |
9838 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9839 | # instead of lib<name>.a to let people know that these are not | |
9840 | # typical AIX shared libraries. | |
9841 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9842 | else | |
9843 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9844 | # and later when we are not doing run time linking. | |
9845 | library_names_spec='${libname}${release}.a $libname.a' | |
9846 | soname_spec='${libname}${release}${shared_ext}$major' | |
9847 | fi | |
9848 | shlibpath_var=LIBPATH | |
9849 | fi | |
9850 | ;; | |
9851 | ||
9852 | amigaos*) | |
1927a18f L |
9853 | case $host_cpu in |
9854 | powerpc) | |
9855 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9856 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9857 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9858 | ;; | |
9859 | m68k) | |
dabbade6 L |
9860 | library_names_spec='$libname.ixlibrary $libname.a' |
9861 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
3725885a | 9862 | 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' |
1927a18f L |
9863 | ;; |
9864 | esac | |
dabbade6 L |
9865 | ;; |
9866 | ||
9867 | beos*) | |
9868 | library_names_spec='${libname}${shared_ext}' | |
9869 | dynamic_linker="$host_os ld.so" | |
9870 | shlibpath_var=LIBRARY_PATH | |
9871 | ;; | |
9872 | ||
9873 | bsdi[45]*) | |
9874 | version_type=linux | |
9875 | need_version=no | |
9876 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9877 | soname_spec='${libname}${release}${shared_ext}$major' | |
9878 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9879 | shlibpath_var=LD_LIBRARY_PATH | |
9880 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9881 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9882 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9883 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9884 | # libtool to hard-code these into programs | |
9885 | ;; | |
9886 | ||
1927a18f | 9887 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
9888 | version_type=windows |
9889 | shrext_cmds=".dll" | |
9890 | need_version=no | |
9891 | need_lib_prefix=no | |
9892 | ||
1927a18f L |
9893 | case $GCC,$host_os in |
9894 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
dabbade6 L |
9895 | library_names_spec='$libname.dll.a' |
9896 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9897 | postinstall_cmds='base_file=`basename \${file}`~ | |
9898 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
9899 | dldir=$destdir/`dirname \$dlpath`~ | |
9900 | test -d \$dldir || mkdir -p \$dldir~ | |
9901 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
9902 | chmod a+x \$dldir/$dlname~ | |
9903 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9904 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9905 | fi' | |
9906 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9907 | dlpath=$dir/\$dldll~ | |
9908 | $RM \$dlpath' | |
9909 | shlibpath_overrides_runpath=yes | |
9910 | ||
9911 | case $host_os in | |
9912 | cygwin*) | |
9913 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9914 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
3725885a RW |
9915 | |
9916 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
dabbade6 | 9917 | ;; |
1927a18f | 9918 | mingw* | cegcc*) |
dabbade6 L |
9919 | # MinGW DLLs use traditional 'lib' prefix |
9920 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
dabbade6 L |
9921 | ;; |
9922 | pw32*) | |
9923 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9924 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9925 | ;; | |
9926 | esac | |
9927 | ;; | |
9928 | ||
9929 | *) | |
9930 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9931 | ;; | |
9932 | esac | |
9933 | dynamic_linker='Win32 ld.exe' | |
9934 | # FIXME: first we should search . and the directory the executable is in | |
9935 | shlibpath_var=PATH | |
9936 | ;; | |
9937 | ||
9938 | darwin* | rhapsody*) | |
9939 | dynamic_linker="$host_os dyld" | |
9940 | version_type=darwin | |
9941 | need_lib_prefix=no | |
9942 | need_version=no | |
9943 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
9944 | soname_spec='${libname}${release}${major}$shared_ext' | |
9945 | shlibpath_overrides_runpath=yes | |
9946 | shlibpath_var=DYLD_LIBRARY_PATH | |
9947 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9948 | ||
9949 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
9950 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
9951 | ;; | |
9952 | ||
9953 | dgux*) | |
9954 | version_type=linux | |
9955 | need_lib_prefix=no | |
9956 | need_version=no | |
9957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9958 | soname_spec='${libname}${release}${shared_ext}$major' | |
9959 | shlibpath_var=LD_LIBRARY_PATH | |
9960 | ;; | |
9961 | ||
dabbade6 L |
9962 | freebsd* | dragonfly*) |
9963 | # DragonFly does not have aout. When/if they implement a new | |
9964 | # versioning mechanism, adjust this. | |
9965 | if test -x /usr/bin/objformat; then | |
9966 | objformat=`/usr/bin/objformat` | |
9967 | else | |
9968 | case $host_os in | |
6d2920c8 | 9969 | freebsd[23].*) objformat=aout ;; |
dabbade6 L |
9970 | *) objformat=elf ;; |
9971 | esac | |
9972 | fi | |
9973 | version_type=freebsd-$objformat | |
9974 | case $version_type in | |
9975 | freebsd-elf*) | |
9976 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9977 | need_version=no | |
9978 | need_lib_prefix=no | |
9979 | ;; | |
9980 | freebsd-*) | |
9981 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9982 | need_version=yes | |
9983 | ;; | |
9984 | esac | |
9985 | shlibpath_var=LD_LIBRARY_PATH | |
9986 | case $host_os in | |
6d2920c8 | 9987 | freebsd2.*) |
dabbade6 L |
9988 | shlibpath_overrides_runpath=yes |
9989 | ;; | |
9990 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9991 | shlibpath_overrides_runpath=yes | |
9992 | hardcode_into_libs=yes | |
9993 | ;; | |
9994 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9995 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9996 | shlibpath_overrides_runpath=no | |
9997 | hardcode_into_libs=yes | |
9998 | ;; | |
9999 | *) # from 4.6 on, and DragonFly | |
10000 | shlibpath_overrides_runpath=yes | |
10001 | hardcode_into_libs=yes | |
10002 | ;; | |
10003 | esac | |
10004 | ;; | |
10005 | ||
3725885a RW |
10006 | haiku*) |
10007 | version_type=linux | |
10008 | need_lib_prefix=no | |
10009 | need_version=no | |
10010 | dynamic_linker="$host_os runtime_loader" | |
10011 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10012 | soname_spec='${libname}${release}${shared_ext}$major' | |
10013 | shlibpath_var=LIBRARY_PATH | |
10014 | shlibpath_overrides_runpath=yes | |
10015 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
10016 | hardcode_into_libs=yes | |
10017 | ;; | |
10018 | ||
dabbade6 L |
10019 | hpux9* | hpux10* | hpux11*) |
10020 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10021 | # link against other versions. | |
10022 | version_type=sunos | |
10023 | need_lib_prefix=no | |
10024 | need_version=no | |
10025 | case $host_cpu in | |
10026 | ia64*) | |
10027 | shrext_cmds='.so' | |
10028 | hardcode_into_libs=yes | |
10029 | dynamic_linker="$host_os dld.so" | |
10030 | shlibpath_var=LD_LIBRARY_PATH | |
10031 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10032 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10033 | soname_spec='${libname}${release}${shared_ext}$major' | |
10034 | if test "X$HPUX_IA64_MODE" = X32; then | |
10035 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10036 | else | |
10037 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10038 | fi | |
10039 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10040 | ;; | |
10041 | hppa*64*) | |
10042 | shrext_cmds='.sl' | |
10043 | hardcode_into_libs=yes | |
10044 | dynamic_linker="$host_os dld.sl" | |
10045 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10046 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10048 | soname_spec='${libname}${release}${shared_ext}$major' | |
10049 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10050 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10051 | ;; | |
10052 | *) | |
10053 | shrext_cmds='.sl' | |
10054 | dynamic_linker="$host_os dld.sl" | |
10055 | shlibpath_var=SHLIB_PATH | |
10056 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10057 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10058 | soname_spec='${libname}${release}${shared_ext}$major' | |
10059 | ;; | |
10060 | esac | |
3725885a | 10061 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
dabbade6 | 10062 | postinstall_cmds='chmod 555 $lib' |
3725885a RW |
10063 | # or fails outright, so override atomically: |
10064 | install_override_mode=555 | |
dabbade6 L |
10065 | ;; |
10066 | ||
10067 | interix[3-9]*) | |
10068 | version_type=linux | |
10069 | need_lib_prefix=no | |
10070 | need_version=no | |
10071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10072 | soname_spec='${libname}${release}${shared_ext}$major' | |
10073 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10074 | shlibpath_var=LD_LIBRARY_PATH | |
10075 | shlibpath_overrides_runpath=no | |
10076 | hardcode_into_libs=yes | |
10077 | ;; | |
10078 | ||
10079 | irix5* | irix6* | nonstopux*) | |
10080 | case $host_os in | |
10081 | nonstopux*) version_type=nonstopux ;; | |
10082 | *) | |
10083 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10084 | version_type=linux | |
10085 | else | |
10086 | version_type=irix | |
10087 | fi ;; | |
10088 | esac | |
10089 | need_lib_prefix=no | |
10090 | need_version=no | |
10091 | soname_spec='${libname}${release}${shared_ext}$major' | |
10092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10093 | case $host_os in | |
10094 | irix5* | nonstopux*) | |
10095 | libsuff= shlibsuff= | |
10096 | ;; | |
10097 | *) | |
10098 | case $LD in # libtool.m4 will add one of these switches to LD | |
10099 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10100 | libsuff= shlibsuff= libmagic=32-bit;; | |
10101 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10102 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10103 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10104 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10105 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10106 | esac | |
10107 | ;; | |
10108 | esac | |
10109 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10110 | shlibpath_overrides_runpath=no | |
10111 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10112 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10113 | hardcode_into_libs=yes | |
10114 | ;; | |
10115 | ||
10116 | # No shared lib support for Linux oldld, aout, or coff. | |
10117 | linux*oldld* | linux*aout* | linux*coff*) | |
10118 | dynamic_linker=no | |
10119 | ;; | |
10120 | ||
10121 | # This must be Linux ELF. | |
f4782128 | 10122 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
dabbade6 L |
10123 | version_type=linux |
10124 | need_lib_prefix=no | |
10125 | need_version=no | |
10126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10127 | soname_spec='${libname}${release}${shared_ext}$major' | |
10128 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10129 | shlibpath_var=LD_LIBRARY_PATH | |
10130 | shlibpath_overrides_runpath=no | |
39144654 | 10131 | |
dabbade6 | 10132 | # Some binutils ld are patched to set DT_RUNPATH |
d0ac1c44 | 10133 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
81ecdfbb | 10134 | $as_echo_n "(cached) " >&6 |
39144654 RW |
10135 | else |
10136 | lt_cv_shlibpath_overrides_runpath=no | |
10137 | save_LDFLAGS=$LDFLAGS | |
10138 | save_libdir=$libdir | |
10139 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10140 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 10141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10142 | /* end confdefs.h. */ |
10143 | ||
d7040cdb SE |
10144 | int |
10145 | main () | |
10146 | { | |
dabbade6 | 10147 | |
d7040cdb SE |
10148 | ; |
10149 | return 0; | |
10150 | } | |
10151 | _ACEOF | |
81ecdfbb RW |
10152 | if ac_fn_c_try_link "$LINENO"; then : |
10153 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 10154 | lt_cv_shlibpath_overrides_runpath=yes |
dabbade6 | 10155 | fi |
d7040cdb | 10156 | fi |
81ecdfbb RW |
10157 | rm -f core conftest.err conftest.$ac_objext \ |
10158 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10159 | LDFLAGS=$save_LDFLAGS |
10160 | libdir=$save_libdir | |
10161 | ||
10162 | fi | |
10163 | ||
10164 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
dabbade6 L |
10165 | |
10166 | # This implies no fast_install, which is unacceptable. | |
10167 | # Some rework will be needed to allow for fast_install | |
10168 | # before this can be enabled. | |
10169 | hardcode_into_libs=yes | |
10170 | ||
10171 | # Append ld.so.conf contents to the search path | |
10172 | if test -f /etc/ld.so.conf; then | |
3725885a | 10173 | 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' ' '` |
dabbade6 L |
10174 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10175 | fi | |
10176 | ||
10177 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10178 | # powerpc, because MkLinux only supported shared libraries with the | |
10179 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10180 | # most powerpc-linux boxes support dynamic linking these days and | |
10181 | # people can always --disable-shared, the test was removed, and we | |
10182 | # assume the GNU/Linux dynamic linker is in use. | |
10183 | dynamic_linker='GNU/Linux ld.so' | |
10184 | ;; | |
10185 | ||
10186 | netbsd*) | |
10187 | version_type=sunos | |
10188 | need_lib_prefix=no | |
10189 | need_version=no | |
10190 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10191 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10192 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10193 | dynamic_linker='NetBSD (a.out) ld.so' | |
10194 | else | |
10195 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10196 | soname_spec='${libname}${release}${shared_ext}$major' | |
10197 | dynamic_linker='NetBSD ld.elf_so' | |
10198 | fi | |
10199 | shlibpath_var=LD_LIBRARY_PATH | |
10200 | shlibpath_overrides_runpath=yes | |
10201 | hardcode_into_libs=yes | |
10202 | ;; | |
10203 | ||
10204 | newsos6) | |
10205 | version_type=linux | |
10206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10207 | shlibpath_var=LD_LIBRARY_PATH | |
10208 | shlibpath_overrides_runpath=yes | |
10209 | ;; | |
10210 | ||
10211 | *nto* | *qnx*) | |
10212 | version_type=qnx | |
10213 | need_lib_prefix=no | |
10214 | need_version=no | |
10215 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10216 | soname_spec='${libname}${release}${shared_ext}$major' | |
10217 | shlibpath_var=LD_LIBRARY_PATH | |
10218 | shlibpath_overrides_runpath=no | |
10219 | hardcode_into_libs=yes | |
10220 | dynamic_linker='ldqnx.so' | |
10221 | ;; | |
10222 | ||
10223 | openbsd*) | |
10224 | version_type=sunos | |
10225 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10226 | need_lib_prefix=no | |
10227 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10228 | case $host_os in | |
10229 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10230 | *) need_version=no ;; | |
10231 | esac | |
10232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10233 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10234 | shlibpath_var=LD_LIBRARY_PATH | |
10235 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10236 | case $host_os in | |
10237 | openbsd2.[89] | openbsd2.[89].*) | |
10238 | shlibpath_overrides_runpath=no | |
10239 | ;; | |
10240 | *) | |
10241 | shlibpath_overrides_runpath=yes | |
10242 | ;; | |
10243 | esac | |
10244 | else | |
10245 | shlibpath_overrides_runpath=yes | |
10246 | fi | |
10247 | ;; | |
10248 | ||
10249 | os2*) | |
10250 | libname_spec='$name' | |
10251 | shrext_cmds=".dll" | |
10252 | need_lib_prefix=no | |
10253 | library_names_spec='$libname${shared_ext} $libname.a' | |
10254 | dynamic_linker='OS/2 ld.exe' | |
10255 | shlibpath_var=LIBPATH | |
10256 | ;; | |
10257 | ||
10258 | osf3* | osf4* | osf5*) | |
10259 | version_type=osf | |
10260 | need_lib_prefix=no | |
10261 | need_version=no | |
10262 | soname_spec='${libname}${release}${shared_ext}$major' | |
10263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10264 | shlibpath_var=LD_LIBRARY_PATH | |
10265 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10266 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10267 | ;; | |
10268 | ||
10269 | rdos*) | |
10270 | dynamic_linker=no | |
10271 | ;; | |
10272 | ||
10273 | solaris*) | |
10274 | version_type=linux | |
10275 | need_lib_prefix=no | |
10276 | need_version=no | |
10277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10278 | soname_spec='${libname}${release}${shared_ext}$major' | |
10279 | shlibpath_var=LD_LIBRARY_PATH | |
10280 | shlibpath_overrides_runpath=yes | |
10281 | hardcode_into_libs=yes | |
10282 | # ldd complains unless libraries are executable | |
10283 | postinstall_cmds='chmod +x $lib' | |
10284 | ;; | |
10285 | ||
10286 | sunos4*) | |
10287 | version_type=sunos | |
10288 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10289 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10290 | shlibpath_var=LD_LIBRARY_PATH | |
10291 | shlibpath_overrides_runpath=yes | |
10292 | if test "$with_gnu_ld" = yes; then | |
10293 | need_lib_prefix=no | |
10294 | fi | |
10295 | need_version=yes | |
10296 | ;; | |
10297 | ||
10298 | sysv4 | sysv4.3*) | |
10299 | version_type=linux | |
10300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10301 | soname_spec='${libname}${release}${shared_ext}$major' | |
10302 | shlibpath_var=LD_LIBRARY_PATH | |
10303 | case $host_vendor in | |
10304 | sni) | |
10305 | shlibpath_overrides_runpath=no | |
10306 | need_lib_prefix=no | |
10307 | runpath_var=LD_RUN_PATH | |
10308 | ;; | |
10309 | siemens) | |
10310 | need_lib_prefix=no | |
10311 | ;; | |
10312 | motorola) | |
10313 | need_lib_prefix=no | |
10314 | need_version=no | |
10315 | shlibpath_overrides_runpath=no | |
10316 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10317 | ;; | |
10318 | esac | |
10319 | ;; | |
10320 | ||
10321 | sysv4*MP*) | |
10322 | if test -d /usr/nec ;then | |
10323 | version_type=linux | |
10324 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10325 | soname_spec='$libname${shared_ext}.$major' | |
10326 | shlibpath_var=LD_LIBRARY_PATH | |
10327 | fi | |
10328 | ;; | |
10329 | ||
10330 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10331 | version_type=freebsd-elf | |
10332 | need_lib_prefix=no | |
10333 | need_version=no | |
10334 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10335 | soname_spec='${libname}${release}${shared_ext}$major' | |
10336 | shlibpath_var=LD_LIBRARY_PATH | |
10337 | shlibpath_overrides_runpath=yes | |
10338 | hardcode_into_libs=yes | |
10339 | if test "$with_gnu_ld" = yes; then | |
10340 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10341 | else | |
10342 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10343 | case $host_os in | |
10344 | sco3.2v5*) | |
10345 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10346 | ;; | |
10347 | esac | |
10348 | fi | |
10349 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10350 | ;; | |
10351 | ||
10352 | tpf*) | |
10353 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10354 | version_type=linux | |
10355 | need_lib_prefix=no | |
10356 | need_version=no | |
1927a18f | 10357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
dabbade6 L |
10358 | shlibpath_var=LD_LIBRARY_PATH |
10359 | shlibpath_overrides_runpath=no | |
10360 | hardcode_into_libs=yes | |
10361 | ;; | |
10362 | ||
10363 | uts4*) | |
10364 | version_type=linux | |
10365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10366 | soname_spec='${libname}${release}${shared_ext}$major' | |
10367 | shlibpath_var=LD_LIBRARY_PATH | |
10368 | ;; | |
d7040cdb | 10369 | |
dabbade6 L |
10370 | *) |
10371 | dynamic_linker=no | |
10372 | ;; | |
10373 | esac | |
81ecdfbb RW |
10374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10375 | $as_echo "$dynamic_linker" >&6; } | |
dabbade6 | 10376 | test "$dynamic_linker" = no && can_build_shared=no |
d7040cdb | 10377 | |
dabbade6 L |
10378 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
10379 | if test "$GCC" = yes; then | |
10380 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb | 10381 | fi |
d7040cdb | 10382 | |
1927a18f L |
10383 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10384 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10385 | fi | |
10386 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10387 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10388 | fi | |
10389 | ||
d7040cdb | 10390 | |
d7040cdb SE |
10391 | |
10392 | ||
d7040cdb SE |
10393 | |
10394 | ||
d7040cdb SE |
10395 | |
10396 | ||
d7040cdb SE |
10397 | |
10398 | ||
d7040cdb SE |
10399 | |
10400 | ||
d7040cdb | 10401 | |
d7040cdb | 10402 | |
d7040cdb | 10403 | |
d7040cdb | 10404 | |
d7040cdb | 10405 | |
d7040cdb | 10406 | |
d7040cdb | 10407 | |
d7040cdb | 10408 | |
d7040cdb | 10409 | |
d7040cdb | 10410 | |
d7040cdb | 10411 | |
d7040cdb | 10412 | |
d7040cdb | 10413 | |
d7040cdb | 10414 | |
d7040cdb SE |
10415 | |
10416 | ||
d7040cdb | 10417 | |
d7040cdb | 10418 | |
d7040cdb | 10419 | |
d7040cdb | 10420 | |
d7040cdb | 10421 | |
d7040cdb | 10422 | |
d7040cdb | 10423 | |
d7040cdb | 10424 | |
d7040cdb | 10425 | |
d7040cdb SE |
10426 | |
10427 | ||
d7040cdb | 10428 | |
d7040cdb | 10429 | |
d7040cdb | 10430 | |
d7040cdb SE |
10431 | |
10432 | ||
10433 | ||
10434 | ||
10435 | ||
10436 | ||
10437 | ||
10438 | ||
10439 | ||
10440 | ||
10441 | ||
10442 | ||
10443 | ||
10444 | ||
10445 | ||
10446 | ||
10447 | ||
d7040cdb SE |
10448 | |
10449 | ||
10450 | ||
10451 | ||
10452 | ||
10453 | ||
10454 | ||
10455 | ||
10456 | ||
10457 | ||
10458 | ||
10459 | ||
d7040cdb | 10460 | |
d7040cdb | 10461 | |
dabbade6 L |
10462 | |
10463 | ||
10464 | ||
10465 | ||
10466 | ||
10467 | ||
10468 | ||
10469 | ||
3725885a RW |
10470 | |
10471 | ||
10472 | ||
10473 | ||
10474 | ||
dabbade6 L |
10475 | |
10476 | ||
10477 | ||
10478 | ||
10479 | ||
10480 | ||
81ecdfbb RW |
10481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
10482 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
dabbade6 L |
10483 | hardcode_action= |
10484 | if test -n "$hardcode_libdir_flag_spec" || | |
10485 | test -n "$runpath_var" || | |
10486 | test "X$hardcode_automatic" = "Xyes" ; then | |
10487 | ||
10488 | # We can hardcode non-existent directories. | |
10489 | if test "$hardcode_direct" != no && | |
10490 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10491 | # have to relink, otherwise we might link with an installed library | |
10492 | # when we should be linking with a yet-to-be-installed one | |
10493 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10494 | test "$hardcode_minus_L" != no; then | |
10495 | # Linking always hardcodes the temporary library directory. | |
10496 | hardcode_action=relink | |
10497 | else | |
10498 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10499 | hardcode_action=immediate | |
10500 | fi | |
10501 | else | |
10502 | # We cannot hardcode anything, or else we can only hardcode existing | |
10503 | # directories. | |
10504 | hardcode_action=unsupported | |
10505 | fi | |
81ecdfbb RW |
10506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10507 | $as_echo "$hardcode_action" >&6; } | |
dabbade6 L |
10508 | |
10509 | if test "$hardcode_action" = relink || | |
10510 | test "$inherit_rpath" = yes; then | |
10511 | # Fast installation is not supported | |
10512 | enable_fast_install=no | |
10513 | elif test "$shlibpath_overrides_runpath" = yes || | |
10514 | test "$enable_shared" = no; then | |
10515 | # Fast installation is not necessary | |
10516 | enable_fast_install=needless | |
10517 | fi | |
10518 | ||
10519 | ||
10520 | ||
10521 | ||
10522 | ||
10523 | ||
10524 | if test "x$enable_dlopen" != xyes; then | |
10525 | enable_dlopen=unknown | |
10526 | enable_dlopen_self=unknown | |
10527 | enable_dlopen_self_static=unknown | |
10528 | else | |
10529 | lt_cv_dlopen=no | |
10530 | lt_cv_dlopen_libs= | |
10531 | ||
d7040cdb | 10532 | case $host_os in |
dabbade6 L |
10533 | beos*) |
10534 | lt_cv_dlopen="load_add_on" | |
10535 | lt_cv_dlopen_libs= | |
10536 | lt_cv_dlopen_self=yes | |
d7040cdb SE |
10537 | ;; |
10538 | ||
1927a18f | 10539 | mingw* | pw32* | cegcc*) |
dabbade6 L |
10540 | lt_cv_dlopen="LoadLibrary" |
10541 | lt_cv_dlopen_libs= | |
d7040cdb | 10542 | ;; |
d7040cdb | 10543 | |
dabbade6 L |
10544 | cygwin*) |
10545 | lt_cv_dlopen="dlopen" | |
10546 | lt_cv_dlopen_libs= | |
10547 | ;; | |
d7040cdb | 10548 | |
dabbade6 L |
10549 | darwin*) |
10550 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
10551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10552 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 10553 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
81ecdfbb | 10554 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
10555 | else |
10556 | ac_check_lib_save_LIBS=$LIBS | |
10557 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 10559 | /* end confdefs.h. */ |
d7040cdb | 10560 | |
81ecdfbb RW |
10561 | /* Override any GCC internal prototype to avoid an error. |
10562 | Use char because int might match the return type of a GCC | |
10563 | builtin and then its argument prototype would still apply. */ | |
dabbade6 L |
10564 | #ifdef __cplusplus |
10565 | extern "C" | |
10566 | #endif | |
dabbade6 L |
10567 | char dlopen (); |
10568 | int | |
10569 | main () | |
10570 | { | |
81ecdfbb | 10571 | return dlopen (); |
dabbade6 L |
10572 | ; |
10573 | return 0; | |
10574 | } | |
10575 | _ACEOF | |
81ecdfbb | 10576 | if ac_fn_c_try_link "$LINENO"; then : |
dabbade6 L |
10577 | ac_cv_lib_dl_dlopen=yes |
10578 | else | |
81ecdfbb | 10579 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 10580 | fi |
81ecdfbb RW |
10581 | rm -f core conftest.err conftest.$ac_objext \ |
10582 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 L |
10583 | LIBS=$ac_check_lib_save_LIBS |
10584 | fi | |
81ecdfbb RW |
10585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10586 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 10587 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
dabbade6 L |
10588 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10589 | else | |
d7040cdb | 10590 | |
dabbade6 L |
10591 | lt_cv_dlopen="dyld" |
10592 | lt_cv_dlopen_libs= | |
10593 | lt_cv_dlopen_self=yes | |
d7040cdb | 10594 | |
81ecdfbb | 10595 | fi |
d7040cdb | 10596 | |
81ecdfbb RW |
10597 | ;; |
10598 | ||
10599 | *) | |
10600 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
d0ac1c44 | 10601 | if test "x$ac_cv_func_shl_load" = xyes; then : |
81ecdfbb RW |
10602 | lt_cv_dlopen="shl_load" |
10603 | else | |
10604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
10605 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
d0ac1c44 | 10606 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
81ecdfbb RW |
10607 | $as_echo_n "(cached) " >&6 |
10608 | else | |
10609 | ac_check_lib_save_LIBS=$LIBS | |
10610 | LIBS="-ldld $LIBS" | |
10611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10612 | /* end confdefs.h. */ | |
10613 | ||
10614 | /* Override any GCC internal prototype to avoid an error. | |
10615 | Use char because int might match the return type of a GCC | |
dabbade6 | 10616 | builtin and then its argument prototype would still apply. */ |
dabbade6 | 10617 | #ifdef __cplusplus |
81ecdfbb | 10618 | extern "C" |
dabbade6 | 10619 | #endif |
81ecdfbb | 10620 | char shl_load (); |
dabbade6 L |
10621 | int |
10622 | main () | |
10623 | { | |
81ecdfbb | 10624 | return shl_load (); |
dabbade6 L |
10625 | ; |
10626 | return 0; | |
10627 | } | |
10628 | _ACEOF | |
81ecdfbb RW |
10629 | if ac_fn_c_try_link "$LINENO"; then : |
10630 | ac_cv_lib_dld_shl_load=yes | |
dabbade6 | 10631 | else |
81ecdfbb | 10632 | ac_cv_lib_dld_shl_load=no |
dabbade6 | 10633 | fi |
81ecdfbb RW |
10634 | rm -f core conftest.err conftest.$ac_objext \ |
10635 | conftest$ac_exeext conftest.$ac_ext | |
10636 | LIBS=$ac_check_lib_save_LIBS | |
dabbade6 | 10637 | fi |
81ecdfbb RW |
10638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
10639 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
d0ac1c44 | 10640 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
81ecdfbb RW |
10641 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
10642 | else | |
10643 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
d0ac1c44 | 10644 | if test "x$ac_cv_func_dlopen" = xyes; then : |
dabbade6 L |
10645 | lt_cv_dlopen="dlopen" |
10646 | else | |
81ecdfbb RW |
10647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10648 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 10649 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
81ecdfbb | 10650 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
10651 | else |
10652 | ac_check_lib_save_LIBS=$LIBS | |
10653 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 10655 | /* end confdefs.h. */ |
d7040cdb | 10656 | |
81ecdfbb RW |
10657 | /* Override any GCC internal prototype to avoid an error. |
10658 | Use char because int might match the return type of a GCC | |
10659 | builtin and then its argument prototype would still apply. */ | |
dabbade6 L |
10660 | #ifdef __cplusplus |
10661 | extern "C" | |
10662 | #endif | |
dabbade6 L |
10663 | char dlopen (); |
10664 | int | |
10665 | main () | |
10666 | { | |
81ecdfbb | 10667 | return dlopen (); |
dabbade6 L |
10668 | ; |
10669 | return 0; | |
10670 | } | |
10671 | _ACEOF | |
81ecdfbb | 10672 | if ac_fn_c_try_link "$LINENO"; then : |
dabbade6 L |
10673 | ac_cv_lib_dl_dlopen=yes |
10674 | else | |
81ecdfbb | 10675 | ac_cv_lib_dl_dlopen=no |
dabbade6 | 10676 | fi |
81ecdfbb RW |
10677 | rm -f core conftest.err conftest.$ac_objext \ |
10678 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 L |
10679 | LIBS=$ac_check_lib_save_LIBS |
10680 | fi | |
81ecdfbb RW |
10681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10682 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 10683 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
dabbade6 L |
10684 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10685 | else | |
81ecdfbb RW |
10686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
10687 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
d0ac1c44 | 10688 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
81ecdfbb | 10689 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
10690 | else |
10691 | ac_check_lib_save_LIBS=$LIBS | |
10692 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 10693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 10694 | /* end confdefs.h. */ |
d7040cdb | 10695 | |
81ecdfbb RW |
10696 | /* Override any GCC internal prototype to avoid an error. |
10697 | Use char because int might match the return type of a GCC | |
10698 | builtin and then its argument prototype would still apply. */ | |
dabbade6 L |
10699 | #ifdef __cplusplus |
10700 | extern "C" | |
10701 | #endif | |
dabbade6 L |
10702 | char dlopen (); |
10703 | int | |
10704 | main () | |
10705 | { | |
81ecdfbb | 10706 | return dlopen (); |
dabbade6 L |
10707 | ; |
10708 | return 0; | |
10709 | } | |
10710 | _ACEOF | |
81ecdfbb | 10711 | if ac_fn_c_try_link "$LINENO"; then : |
dabbade6 L |
10712 | ac_cv_lib_svld_dlopen=yes |
10713 | else | |
81ecdfbb | 10714 | ac_cv_lib_svld_dlopen=no |
dabbade6 | 10715 | fi |
81ecdfbb RW |
10716 | rm -f core conftest.err conftest.$ac_objext \ |
10717 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 L |
10718 | LIBS=$ac_check_lib_save_LIBS |
10719 | fi | |
81ecdfbb RW |
10720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
10721 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
d0ac1c44 | 10722 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
dabbade6 L |
10723 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10724 | else | |
81ecdfbb RW |
10725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
10726 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
d0ac1c44 | 10727 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
81ecdfbb | 10728 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
10729 | else |
10730 | ac_check_lib_save_LIBS=$LIBS | |
10731 | LIBS="-ldld $LIBS" | |
81ecdfbb | 10732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 10733 | /* end confdefs.h. */ |
d7040cdb | 10734 | |
81ecdfbb RW |
10735 | /* Override any GCC internal prototype to avoid an error. |
10736 | Use char because int might match the return type of a GCC | |
10737 | builtin and then its argument prototype would still apply. */ | |
dabbade6 L |
10738 | #ifdef __cplusplus |
10739 | extern "C" | |
10740 | #endif | |
dabbade6 L |
10741 | char dld_link (); |
10742 | int | |
10743 | main () | |
10744 | { | |
81ecdfbb | 10745 | return dld_link (); |
dabbade6 L |
10746 | ; |
10747 | return 0; | |
10748 | } | |
10749 | _ACEOF | |
81ecdfbb | 10750 | if ac_fn_c_try_link "$LINENO"; then : |
dabbade6 L |
10751 | ac_cv_lib_dld_dld_link=yes |
10752 | else | |
81ecdfbb | 10753 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 10754 | fi |
81ecdfbb RW |
10755 | rm -f core conftest.err conftest.$ac_objext \ |
10756 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 | 10757 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 10758 | fi |
81ecdfbb RW |
10759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
10760 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
d0ac1c44 | 10761 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
1927a18f | 10762 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
d7040cdb SE |
10763 | fi |
10764 | ||
d7040cdb | 10765 | |
d7040cdb SE |
10766 | fi |
10767 | ||
10768 | ||
dabbade6 | 10769 | fi |
d7040cdb SE |
10770 | |
10771 | ||
dabbade6 | 10772 | fi |
d7040cdb SE |
10773 | |
10774 | ||
d7040cdb SE |
10775 | fi |
10776 | ||
979273e3 | 10777 | |
252b5132 | 10778 | fi |
252b5132 | 10779 | |
dabbade6 L |
10780 | ;; |
10781 | esac | |
252b5132 | 10782 | |
dabbade6 L |
10783 | if test "x$lt_cv_dlopen" != xno; then |
10784 | enable_dlopen=yes | |
10785 | else | |
10786 | enable_dlopen=no | |
10787 | fi | |
1c0d3aa6 | 10788 | |
dabbade6 L |
10789 | case $lt_cv_dlopen in |
10790 | dlopen) | |
10791 | save_CPPFLAGS="$CPPFLAGS" | |
10792 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
20e95c23 | 10793 | |
dabbade6 L |
10794 | save_LDFLAGS="$LDFLAGS" |
10795 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
20e95c23 | 10796 | |
dabbade6 L |
10797 | save_LIBS="$LIBS" |
10798 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
20e95c23 | 10799 | |
81ecdfbb RW |
10800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
10801 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
d0ac1c44 | 10802 | if ${lt_cv_dlopen_self+:} false; then : |
81ecdfbb | 10803 | $as_echo_n "(cached) " >&6 |
d7040cdb | 10804 | else |
dabbade6 L |
10805 | if test "$cross_compiling" = yes; then : |
10806 | lt_cv_dlopen_self=cross | |
d7040cdb | 10807 | else |
dabbade6 L |
10808 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10809 | lt_status=$lt_dlunknown | |
10810 | cat > conftest.$ac_ext <<_LT_EOF | |
43e05cd4 | 10811 | #line 10811 "configure" |
dabbade6 | 10812 | #include "confdefs.h" |
20e95c23 | 10813 | |
dabbade6 L |
10814 | #if HAVE_DLFCN_H |
10815 | #include <dlfcn.h> | |
10816 | #endif | |
20e95c23 | 10817 | |
dabbade6 | 10818 | #include <stdio.h> |
20e95c23 | 10819 | |
dabbade6 L |
10820 | #ifdef RTLD_GLOBAL |
10821 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10822 | #else | |
10823 | # ifdef DL_GLOBAL | |
10824 | # define LT_DLGLOBAL DL_GLOBAL | |
10825 | # else | |
10826 | # define LT_DLGLOBAL 0 | |
10827 | # endif | |
10828 | #endif | |
20e95c23 | 10829 | |
dabbade6 L |
10830 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10831 | find out it does not work in some platform. */ | |
10832 | #ifndef LT_DLLAZY_OR_NOW | |
10833 | # ifdef RTLD_LAZY | |
10834 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10835 | # else | |
10836 | # ifdef DL_LAZY | |
10837 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10838 | # else | |
10839 | # ifdef RTLD_NOW | |
10840 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10841 | # else | |
10842 | # ifdef DL_NOW | |
10843 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10844 | # else | |
10845 | # define LT_DLLAZY_OR_NOW 0 | |
10846 | # endif | |
10847 | # endif | |
10848 | # endif | |
10849 | # endif | |
10850 | #endif | |
20e95c23 | 10851 | |
3725885a RW |
10852 | /* When -fvisbility=hidden is used, assume the code has been annotated |
10853 | correspondingly for the symbols needed. */ | |
10854 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
10855 | void fnord () __attribute__((visibility("default"))); | |
10856 | #endif | |
10857 | ||
10858 | void fnord () { int i=42; } | |
dabbade6 L |
10859 | int main () |
10860 | { | |
10861 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10862 | int status = $lt_dlunknown; | |
20e95c23 | 10863 | |
dabbade6 L |
10864 | if (self) |
10865 | { | |
10866 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
10867 | else |
10868 | { | |
10869 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10870 | else puts (dlerror ()); | |
10871 | } | |
dabbade6 L |
10872 | /* dlclose (self); */ |
10873 | } | |
10874 | else | |
10875 | puts (dlerror ()); | |
d7040cdb | 10876 | |
1927a18f | 10877 | return status; |
dabbade6 L |
10878 | } |
10879 | _LT_EOF | |
81ecdfbb | 10880 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
dabbade6 L |
10881 | (eval $ac_link) 2>&5 |
10882 | ac_status=$? | |
81ecdfbb RW |
10883 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10884 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
dabbade6 L |
10885 | (./conftest; exit; ) >&5 2>/dev/null |
10886 | lt_status=$? | |
10887 | case x$lt_status in | |
10888 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10889 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10890 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10891 | esac | |
10892 | else : | |
10893 | # compilation failed | |
10894 | lt_cv_dlopen_self=no | |
10895 | fi | |
d7040cdb | 10896 | fi |
dabbade6 L |
10897 | rm -fr conftest* |
10898 | ||
252b5132 | 10899 | |
d7040cdb | 10900 | fi |
81ecdfbb RW |
10901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
10902 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
d7040cdb | 10903 | |
dabbade6 L |
10904 | if test "x$lt_cv_dlopen_self" = xyes; then |
10905 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
10906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
10907 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
d0ac1c44 | 10908 | if ${lt_cv_dlopen_self_static+:} false; then : |
81ecdfbb | 10909 | $as_echo_n "(cached) " >&6 |
252b5132 | 10910 | else |
dabbade6 L |
10911 | if test "$cross_compiling" = yes; then : |
10912 | lt_cv_dlopen_self_static=cross | |
d7040cdb | 10913 | else |
dabbade6 L |
10914 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10915 | lt_status=$lt_dlunknown | |
10916 | cat > conftest.$ac_ext <<_LT_EOF | |
43e05cd4 | 10917 | #line 10917 "configure" |
dabbade6 | 10918 | #include "confdefs.h" |
252b5132 | 10919 | |
dabbade6 L |
10920 | #if HAVE_DLFCN_H |
10921 | #include <dlfcn.h> | |
10922 | #endif | |
252b5132 | 10923 | |
dabbade6 | 10924 | #include <stdio.h> |
d7040cdb | 10925 | |
dabbade6 L |
10926 | #ifdef RTLD_GLOBAL |
10927 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10928 | #else | |
10929 | # ifdef DL_GLOBAL | |
10930 | # define LT_DLGLOBAL DL_GLOBAL | |
10931 | # else | |
10932 | # define LT_DLGLOBAL 0 | |
10933 | # endif | |
10934 | #endif | |
20e95c23 | 10935 | |
dabbade6 L |
10936 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10937 | find out it does not work in some platform. */ | |
10938 | #ifndef LT_DLLAZY_OR_NOW | |
10939 | # ifdef RTLD_LAZY | |
10940 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10941 | # else | |
10942 | # ifdef DL_LAZY | |
10943 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10944 | # else | |
10945 | # ifdef RTLD_NOW | |
10946 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10947 | # else | |
10948 | # ifdef DL_NOW | |
10949 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10950 | # else | |
10951 | # define LT_DLLAZY_OR_NOW 0 | |
10952 | # endif | |
10953 | # endif | |
10954 | # endif | |
10955 | # endif | |
10956 | #endif | |
979273e3 | 10957 | |
3725885a RW |
10958 | /* When -fvisbility=hidden is used, assume the code has been annotated |
10959 | correspondingly for the symbols needed. */ | |
10960 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
10961 | void fnord () __attribute__((visibility("default"))); | |
10962 | #endif | |
10963 | ||
10964 | void fnord () { int i=42; } | |
dabbade6 L |
10965 | int main () |
10966 | { | |
10967 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10968 | int status = $lt_dlunknown; | |
d7040cdb | 10969 | |
dabbade6 L |
10970 | if (self) |
10971 | { | |
10972 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
10973 | else |
10974 | { | |
10975 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10976 | else puts (dlerror ()); | |
10977 | } | |
dabbade6 L |
10978 | /* dlclose (self); */ |
10979 | } | |
10980 | else | |
10981 | puts (dlerror ()); | |
d7040cdb | 10982 | |
1927a18f | 10983 | return status; |
dabbade6 L |
10984 | } |
10985 | _LT_EOF | |
81ecdfbb | 10986 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
dabbade6 L |
10987 | (eval $ac_link) 2>&5 |
10988 | ac_status=$? | |
81ecdfbb RW |
10989 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10990 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
dabbade6 L |
10991 | (./conftest; exit; ) >&5 2>/dev/null |
10992 | lt_status=$? | |
10993 | case x$lt_status in | |
10994 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10995 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10996 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10997 | esac | |
10998 | else : | |
10999 | # compilation failed | |
11000 | lt_cv_dlopen_self_static=no | |
11001 | fi | |
20e95c23 | 11002 | fi |
dabbade6 | 11003 | rm -fr conftest* |
979273e3 | 11004 | |
d7040cdb SE |
11005 | |
11006 | fi | |
81ecdfbb RW |
11007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11008 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
dabbade6 L |
11009 | fi |
11010 | ||
11011 | CPPFLAGS="$save_CPPFLAGS" | |
11012 | LDFLAGS="$save_LDFLAGS" | |
11013 | LIBS="$save_LIBS" | |
11014 | ;; | |
11015 | esac | |
11016 | ||
11017 | case $lt_cv_dlopen_self in | |
11018 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11019 | *) enable_dlopen_self=unknown ;; | |
11020 | esac | |
11021 | ||
11022 | case $lt_cv_dlopen_self_static in | |
11023 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11024 | *) enable_dlopen_self_static=unknown ;; | |
11025 | esac | |
d7040cdb | 11026 | fi |
dabbade6 L |
11027 | |
11028 | ||
11029 | ||
11030 | ||
11031 | ||
11032 | ||
11033 | ||
11034 | ||
11035 | ||
11036 | ||
11037 | ||
11038 | ||
11039 | ||
11040 | ||
11041 | ||
11042 | ||
11043 | ||
11044 | striplib= | |
11045 | old_striplib= | |
81ecdfbb RW |
11046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11047 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
dabbade6 L |
11048 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11049 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11050 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
81ecdfbb RW |
11051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11052 | $as_echo "yes" >&6; } | |
d7040cdb | 11053 | else |
dabbade6 L |
11054 | # FIXME - insert some real tests, host_os isn't really good enough |
11055 | case $host_os in | |
11056 | darwin*) | |
11057 | if test -n "$STRIP" ; then | |
11058 | striplib="$STRIP -x" | |
11059 | old_striplib="$STRIP -S" | |
81ecdfbb RW |
11060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11061 | $as_echo "yes" >&6; } | |
dabbade6 | 11062 | else |
81ecdfbb RW |
11063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11064 | $as_echo "no" >&6; } | |
dabbade6 L |
11065 | fi |
11066 | ;; | |
11067 | *) | |
81ecdfbb RW |
11068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11069 | $as_echo "no" >&6; } | |
dabbade6 L |
11070 | ;; |
11071 | esac | |
d7040cdb | 11072 | fi |
20e95c23 | 11073 | |
979273e3 | 11074 | |
dabbade6 L |
11075 | |
11076 | ||
11077 | ||
11078 | ||
11079 | ||
11080 | ||
11081 | ||
11082 | ||
11083 | ||
11084 | ||
11085 | # Report which library types will actually be built | |
81ecdfbb RW |
11086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11087 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11089 | $as_echo "$can_build_shared" >&6; } | |
dabbade6 | 11090 | |
81ecdfbb RW |
11091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11092 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
dabbade6 L |
11093 | test "$can_build_shared" = "no" && enable_shared=no |
11094 | ||
11095 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11096 | # are all built from PIC. | |
11097 | case $host_os in | |
11098 | aix3*) | |
11099 | test "$enable_shared" = yes && enable_static=no | |
11100 | if test -n "$RANLIB"; then | |
11101 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11102 | postinstall_cmds='$RANLIB $lib' | |
11103 | fi | |
11104 | ;; | |
11105 | ||
50e7d84b | 11106 | aix[4-9]*) |
dabbade6 L |
11107 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11108 | test "$enable_shared" = yes && enable_static=no | |
11109 | fi | |
11110 | ;; | |
11111 | esac | |
81ecdfbb RW |
11112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11113 | $as_echo "$enable_shared" >&6; } | |
dabbade6 | 11114 | |
81ecdfbb RW |
11115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11116 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
dabbade6 L |
11117 | # Make sure either enable_shared or enable_static is yes. |
11118 | test "$enable_shared" = yes || enable_static=yes | |
81ecdfbb RW |
11119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11120 | $as_echo "$enable_static" >&6; } | |
dabbade6 L |
11121 | |
11122 | ||
11123 | ||
d7040cdb | 11124 | |
252b5132 | 11125 | fi |
dabbade6 L |
11126 | ac_ext=c |
11127 | ac_cpp='$CPP $CPPFLAGS' | |
11128 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11129 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11130 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20e95c23 | 11131 | |
dabbade6 | 11132 | CC="$lt_save_CC" |
20e95c23 | 11133 | |
20e95c23 | 11134 | |
d7040cdb | 11135 | |
d7040cdb | 11136 | |
d7040cdb | 11137 | |
20e95c23 | 11138 | |
dabbade6 L |
11139 | |
11140 | ||
11141 | ||
11142 | ||
11143 | ||
11144 | ||
11145 | ||
81ecdfbb | 11146 | ac_config_commands="$ac_config_commands libtool" |
dabbade6 L |
11147 | |
11148 | ||
11149 | ||
11150 | ||
11151 | # Only expand once: | |
11152 | ||
11153 | ||
11154 | ||
43e05cd4 AM |
11155 | ac_checking= |
11156 | . ${srcdir}/../bfd/development.sh | |
11157 | test "$development" = true && ac_checking=yes | |
11158 | # Check whether --enable-checking was given. | |
11159 | if test "${enable_checking+set}" = set; then : | |
11160 | enableval=$enable_checking; case "${enableval}" in | |
11161 | no|none) ac_checking= ;; | |
11162 | *) ac_checking=yes ;; | |
11163 | esac | |
11164 | fi | |
11165 | if test x$ac_checking != x ; then | |
11166 | ||
11167 | $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h | |
11168 | ||
11169 | fi | |
11170 | ||
81ecdfbb RW |
11171 | # Check whether --enable-targets was given. |
11172 | if test "${enable_targets+set}" = set; then : | |
11173 | enableval=$enable_targets; case "${enableval}" in | |
d0ac1c44 | 11174 | yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 |
dabbade6 L |
11175 | ;; |
11176 | no) enable_targets= ;; | |
11177 | *) enable_targets=$enableval ;; | |
11178 | esac | |
81ecdfbb RW |
11179 | fi |
11180 | ||
dabbade6 | 11181 | |
270c9937 JB |
11182 | # Set the 'development' global. |
11183 | . $srcdir/../bfd/development.sh | |
11184 | ||
c5da1932 VZ |
11185 | # Set acp_cpp_for_build variable |
11186 | ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" | |
11187 | ||
9780e045 | 11188 | # Default set of GCC warnings to enable. |
397841b5 | 11189 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
c5da1932 | 11190 | GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
9780e045 NC |
11191 | |
11192 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
397841b5 AM |
11193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11194 | /* end confdefs.h. */ | |
11195 | __GNUC__ | |
11196 | _ACEOF | |
11197 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11198 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
397841b5 AM |
11199 | |
11200 | else | |
11201 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
11202 | fi | |
11203 | rm -f conftest* | |
11204 | ||
dabbade6 | 11205 | |
9780e045 NC |
11206 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. |
11207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11208 | /* end confdefs.h. */ | |
11209 | __GNUC__ | |
11210 | _ACEOF | |
11211 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11212 | $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : |
9780e045 NC |
11213 | |
11214 | else | |
11215 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" | |
11216 | fi | |
11217 | rm -f conftest* | |
11218 | ||
11219 | ||
6757cf57 TS |
11220 | # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. |
11221 | WARN_WRITE_STRINGS="" | |
11222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11223 | /* end confdefs.h. */ | |
11224 | __GNUC__ | |
11225 | _ACEOF | |
11226 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11227 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
6757cf57 TS |
11228 | |
11229 | else | |
11230 | WARN_WRITE_STRINGS="-Wwrite-strings" | |
11231 | fi | |
11232 | rm -f conftest* | |
11233 | ||
9780e045 | 11234 | |
96fe4562 | 11235 | # Verify CC_FOR_BUILD to be compatible with warning flags |
c5da1932 VZ |
11236 | |
11237 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
11238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11239 | /* end confdefs.h. */ | |
11240 | __GNUC__ | |
11241 | _ACEOF | |
11242 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
3107326d | 11243 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
c5da1932 VZ |
11244 | |
11245 | else | |
11246 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" | |
11247 | fi | |
11248 | rm -f conftest* | |
11249 | ||
11250 | ||
11251 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. | |
11252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11253 | /* end confdefs.h. */ | |
11254 | __GNUC__ | |
11255 | _ACEOF | |
11256 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
3107326d | 11257 | $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : |
c5da1932 VZ |
11258 | |
11259 | else | |
11260 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" | |
11261 | fi | |
11262 | rm -f conftest* | |
11263 | ||
11264 | ||
81ecdfbb RW |
11265 | # Check whether --enable-werror was given. |
11266 | if test "${enable_werror+set}" = set; then : | |
11267 | enableval=$enable_werror; case "${enableval}" in | |
dabbade6 L |
11268 | yes | y) ERROR_ON_WARNING="yes" ;; |
11269 | no | n) ERROR_ON_WARNING="no" ;; | |
d0ac1c44 | 11270 | *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
dabbade6 | 11271 | esac |
81ecdfbb RW |
11272 | fi |
11273 | ||
dabbade6 | 11274 | |
397841b5 | 11275 | # Disable -Wformat by default when using gcc on mingw |
bb8541b9 L |
11276 | case "${host}" in |
11277 | *-*-mingw32*) | |
11278 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11279 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
c5da1932 | 11280 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" |
bb8541b9 L |
11281 | fi |
11282 | ;; | |
11283 | *) ;; | |
11284 | esac | |
11285 | ||
270c9937 JB |
11286 | # Enable -Werror by default when using gcc. Turn it off for releases. |
11287 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then | |
dabbade6 | 11288 | ERROR_ON_WARNING=yes |
d7040cdb | 11289 | fi |
20e95c23 | 11290 | |
dabbade6 L |
11291 | NO_WERROR= |
11292 | if test "${ERROR_ON_WARNING}" = yes ; then | |
9780e045 | 11293 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
c5da1932 | 11294 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" |
dabbade6 | 11295 | NO_WERROR="-Wno-error" |
20e95c23 | 11296 | fi |
d7040cdb | 11297 | |
dabbade6 L |
11298 | if test "${GCC}" = yes ; then |
11299 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
c5da1932 | 11300 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" |
dabbade6 | 11301 | fi |
d7040cdb | 11302 | |
81ecdfbb RW |
11303 | # Check whether --enable-build-warnings was given. |
11304 | if test "${enable_build_warnings+set}" = set; then : | |
11305 | enableval=$enable_build_warnings; case "${enableval}" in | |
c5da1932 VZ |
11306 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" |
11307 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
dabbade6 L |
11308 | no) if test "${GCC}" = yes ; then |
11309 | WARN_CFLAGS="-w" | |
c5da1932 | 11310 | WARN_CFLAGS_FOR_BUILD="-w" |
dabbade6 L |
11311 | fi;; |
11312 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
c5da1932 VZ |
11313 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" |
11314 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; | |
dabbade6 | 11315 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
c5da1932 VZ |
11316 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" |
11317 | WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
11318 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11319 | WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
dabbade6 | 11320 | esac |
81ecdfbb RW |
11321 | fi |
11322 | ||
979273e3 | 11323 | |
dabbade6 L |
11324 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
11325 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
d7040cdb | 11326 | fi |
dabbade6 L |
11327 | |
11328 | ||
11329 | ||
11330 | ||
6757cf57 | 11331 | |
c5da1932 | 11332 | |
dabbade6 | 11333 | |
81ecdfbb | 11334 | ac_config_headers="$ac_config_headers config.h:config.in" |
dabbade6 L |
11335 | |
11336 | ||
df7b86aa NC |
11337 | # PR 14072 |
11338 | ||
11339 | ||
dabbade6 | 11340 | if test -z "$target" ; then |
d0ac1c44 | 11341 | as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5 |
d7040cdb | 11342 | fi |
dabbade6 | 11343 | |
81ecdfbb RW |
11344 | |
11345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
11346 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
11347 | # Check whether --enable-maintainer-mode was given. | |
11348 | if test "${enable_maintainer_mode+set}" = set; then : | |
11349 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
d7040cdb | 11350 | else |
dabbade6 | 11351 | USE_MAINTAINER_MODE=no |
81ecdfbb | 11352 | fi |
d7040cdb | 11353 | |
81ecdfbb RW |
11354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
11355 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
11356 | if test $USE_MAINTAINER_MODE = yes; then | |
dabbade6 L |
11357 | MAINTAINER_MODE_TRUE= |
11358 | MAINTAINER_MODE_FALSE='#' | |
252b5132 | 11359 | else |
dabbade6 L |
11360 | MAINTAINER_MODE_TRUE='#' |
11361 | MAINTAINER_MODE_FALSE= | |
252b5132 | 11362 | fi |
d7040cdb | 11363 | |
dabbade6 L |
11364 | MAINT=$MAINTAINER_MODE_TRUE |
11365 | ||
11366 | ||
11367 | case ${build_alias} in | |
11368 | "") build_noncanonical=${build} ;; | |
11369 | *) build_noncanonical=${build_alias} ;; | |
11370 | esac | |
11371 | ||
11372 | case ${host_alias} in | |
11373 | "") host_noncanonical=${build_noncanonical} ;; | |
11374 | *) host_noncanonical=${host_alias} ;; | |
11375 | esac | |
979273e3 | 11376 | |
dabbade6 L |
11377 | case ${target_alias} in |
11378 | "") target_noncanonical=${host_noncanonical} ;; | |
11379 | *) target_noncanonical=${target_alias} ;; | |
d7040cdb | 11380 | esac |
252b5132 | 11381 | |
81ecdfbb RW |
11382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5 |
11383 | $as_echo_n "checking whether to install libbfd... " >&6; } | |
11384 | # Check whether --enable-install-libbfd was given. | |
11385 | if test "${enable_install_libbfd+set}" = set; then : | |
11386 | enableval=$enable_install_libbfd; install_libbfd_p=$enableval | |
979273e3 | 11387 | else |
dabbade6 L |
11388 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then |
11389 | install_libbfd_p=yes | |
11390 | else | |
11391 | install_libbfd_p=no | |
11392 | fi | |
81ecdfbb | 11393 | fi |
d7040cdb | 11394 | |
81ecdfbb RW |
11395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5 |
11396 | $as_echo "$install_libbfd_p" >&6; } | |
11397 | if test $install_libbfd_p = yes; then | |
dabbade6 L |
11398 | INSTALL_LIBBFD_TRUE= |
11399 | INSTALL_LIBBFD_FALSE='#' | |
11400 | else | |
11401 | INSTALL_LIBBFD_TRUE='#' | |
11402 | INSTALL_LIBBFD_FALSE= | |
d7040cdb SE |
11403 | fi |
11404 | ||
dabbade6 | 11405 | # Need _noncanonical variables for this. |
979273e3 | 11406 | |
d7040cdb SE |
11407 | |
11408 | ||
dabbade6 L |
11409 | |
11410 | # libbfd.a is a host library containing target dependent code | |
11411 | bfdlibdir='$(libdir)' | |
11412 | bfdincludedir='$(includedir)' | |
11413 | if test "${host}" != "${target}"; then | |
11414 | bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' | |
11415 | bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' | |
11416 | fi | |
11417 | ||
11418 | ||
11419 | ||
11420 | ||
11421 | ||
11422 | ||
573e8a1c RW |
11423 | |
11424 | ||
dabbade6 L |
11425 | # host-specific stuff: |
11426 | ||
e184813f | 11427 | ALL_LINGUAS="da de es fi fr ga id it nl pt_BR ro sr sv tr uk vi zh_CN" |
d7040cdb SE |
11428 | # If we haven't got the data from the intl directory, |
11429 | # assume NLS is disabled. | |
11430 | USE_NLS=no | |
11431 | LIBINTL= | |
11432 | LIBINTL_DEP= | |
11433 | INCINTL= | |
11434 | XGETTEXT= | |
11435 | GMSGFMT= | |
11436 | POSUB= | |
11437 | ||
11438 | if test -f ../intl/config.intl; then | |
11439 | . ../intl/config.intl | |
11440 | fi | |
81ecdfbb RW |
11441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
11442 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 11443 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
11444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11445 | $as_echo "no" >&6; } | |
d7040cdb | 11446 | else |
81ecdfbb RW |
11447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11448 | $as_echo "yes" >&6; } | |
d7040cdb | 11449 | |
81ecdfbb | 11450 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
11451 | |
11452 | ||
81ecdfbb RW |
11453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
11454 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
11455 | # Look for .po and .gmo files in the source directory. |
11456 | CATALOGS= | |
11457 | XLINGUAS= | |
11458 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
11459 | # If there aren't any .gmo files the shell will give us the | |
11460 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
11461 | # weeded out. | |
11462 | case "$cat" in *\**) | |
11463 | continue;; | |
11464 | esac | |
11465 | # The quadruple backslash is collapsed to a double backslash | |
11466 | # by the backticks, then collapsed again by the double quotes, | |
11467 | # leaving us with one backslash in the sed expression (right | |
11468 | # before the dot that mustn't act as a wildcard). | |
11469 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
11470 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
11471 | # The user is allowed to set LINGUAS to a list of languages to | |
11472 | # install catalogs for. If it's empty that means "all of them." | |
11473 | if test "x$LINGUAS" = x; then | |
11474 | CATALOGS="$CATALOGS $cat" | |
11475 | XLINGUAS="$XLINGUAS $lang" | |
11476 | else | |
11477 | case "$LINGUAS" in *$lang*) | |
11478 | CATALOGS="$CATALOGS $cat" | |
11479 | XLINGUAS="$XLINGUAS $lang" | |
11480 | ;; | |
11481 | esac | |
11482 | fi | |
11483 | done | |
11484 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
11486 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
11487 | |
11488 | ||
11489 | DATADIRNAME=share | |
11490 | ||
11491 | INSTOBJEXT=.mo | |
11492 | ||
11493 | GENCAT=gencat | |
11494 | ||
11495 | CATOBJEXT=.gmo | |
11496 | ||
11497 | fi | |
11498 | ||
11499 | MKINSTALLDIRS= | |
11500 | if test -n "$ac_aux_dir"; then | |
11501 | case "$ac_aux_dir" in | |
11502 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
11503 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
11504 | esac | |
11505 | fi | |
11506 | if test -z "$MKINSTALLDIRS"; then | |
11507 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
11508 | fi | |
11509 | ||
11510 | ||
11511 | ||
81ecdfbb RW |
11512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
11513 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
11514 | # Check whether --enable-nls was given. | |
11515 | if test "${enable_nls+set}" = set; then : | |
11516 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
11517 | else |
11518 | USE_NLS=yes | |
81ecdfbb RW |
11519 | fi |
11520 | ||
11521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
11522 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
11523 | |
11524 | ||
11525 | ||
11526 | ||
11527 | ||
11528 | ||
11529 | # Prepare PATH_SEPARATOR. | |
11530 | # The user is always right. | |
11531 | if test "${PATH_SEPARATOR+set}" != set; then | |
11532 | echo "#! /bin/sh" >conf$$.sh | |
11533 | echo "exit 0" >>conf$$.sh | |
11534 | chmod +x conf$$.sh | |
11535 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11536 | PATH_SEPARATOR=';' | |
11537 | else | |
11538 | PATH_SEPARATOR=: | |
11539 | fi | |
11540 | rm -f conf$$.sh | |
11541 | fi | |
979273e3 | 11542 | |
d7040cdb SE |
11543 | # Find out how to test for executable files. Don't use a zero-byte file, |
11544 | # as systems may use methods other than mode bits to determine executability. | |
11545 | cat >conf$$.file <<_ASEOF | |
11546 | #! /bin/sh | |
11547 | exit 0 | |
11548 | _ASEOF | |
11549 | chmod +x conf$$.file | |
11550 | if test -x conf$$.file >/dev/null 2>&1; then | |
11551 | ac_executable_p="test -x" | |
252b5132 | 11552 | else |
d7040cdb | 11553 | ac_executable_p="test -f" |
252b5132 | 11554 | fi |
d7040cdb | 11555 | rm -f conf$$.file |
252b5132 | 11556 | |
d7040cdb SE |
11557 | # Extract the first word of "msgfmt", so it can be a program name with args. |
11558 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
11559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11560 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11561 | if ${ac_cv_path_MSGFMT+:} false; then : |
81ecdfbb | 11562 | $as_echo_n "(cached) " >&6 |
252b5132 | 11563 | else |
d7040cdb SE |
11564 | case "$MSGFMT" in |
11565 | [\\/]* | ?:[\\/]*) | |
11566 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
11567 | ;; | |
11568 | *) | |
11569 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11570 | for ac_dir in $PATH; do | |
11571 | IFS="$ac_save_IFS" | |
11572 | test -z "$ac_dir" && ac_dir=. | |
11573 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11574 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11575 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
11576 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11577 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
11578 | break 2 | |
11579 | fi | |
11580 | fi | |
11581 | done | |
11582 | done | |
11583 | IFS="$ac_save_IFS" | |
11584 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
11585 | ;; | |
11586 | esac | |
11587 | fi | |
11588 | MSGFMT="$ac_cv_path_MSGFMT" | |
11589 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
11590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
11591 | $as_echo "$MSGFMT" >&6; } | |
d7040cdb | 11592 | else |
81ecdfbb RW |
11593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11594 | $as_echo "no" >&6; } | |
252b5132 RH |
11595 | fi |
11596 | ||
d7040cdb SE |
11597 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
11598 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
11599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11600 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11601 | if ${ac_cv_path_GMSGFMT+:} false; then : |
81ecdfbb | 11602 | $as_echo_n "(cached) " >&6 |
20e95c23 | 11603 | else |
d7040cdb SE |
11604 | case $GMSGFMT in |
11605 | [\\/]* | ?:[\\/]*) | |
11606 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
11607 | ;; | |
11608 | *) | |
11609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11610 | for as_dir in $PATH | |
11611 | do | |
11612 | IFS=$as_save_IFS | |
11613 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11614 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11615 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 11616 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11617 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
11618 | break 2 |
11619 | fi | |
11620 | done | |
81ecdfbb RW |
11621 | done |
11622 | IFS=$as_save_IFS | |
252b5132 | 11623 | |
d7040cdb SE |
11624 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
11625 | ;; | |
11626 | esac | |
11627 | fi | |
11628 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 11629 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
11630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
11631 | $as_echo "$GMSGFMT" >&6; } | |
252b5132 | 11632 | else |
81ecdfbb RW |
11633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11634 | $as_echo "no" >&6; } | |
252b5132 RH |
11635 | fi |
11636 | ||
11637 | ||
20e95c23 | 11638 | |
81ecdfbb | 11639 | |
d7040cdb SE |
11640 | # Prepare PATH_SEPARATOR. |
11641 | # The user is always right. | |
11642 | if test "${PATH_SEPARATOR+set}" != set; then | |
11643 | echo "#! /bin/sh" >conf$$.sh | |
11644 | echo "exit 0" >>conf$$.sh | |
11645 | chmod +x conf$$.sh | |
11646 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11647 | PATH_SEPARATOR=';' | |
11648 | else | |
11649 | PATH_SEPARATOR=: | |
11650 | fi | |
11651 | rm -f conf$$.sh | |
252b5132 RH |
11652 | fi |
11653 | ||
d7040cdb SE |
11654 | # Find out how to test for executable files. Don't use a zero-byte file, |
11655 | # as systems may use methods other than mode bits to determine executability. | |
11656 | cat >conf$$.file <<_ASEOF | |
11657 | #! /bin/sh | |
11658 | exit 0 | |
11659 | _ASEOF | |
11660 | chmod +x conf$$.file | |
11661 | if test -x conf$$.file >/dev/null 2>&1; then | |
11662 | ac_executable_p="test -x" | |
11663 | else | |
11664 | ac_executable_p="test -f" | |
11665 | fi | |
11666 | rm -f conf$$.file | |
20e95c23 | 11667 | |
d7040cdb SE |
11668 | # Extract the first word of "xgettext", so it can be a program name with args. |
11669 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
11670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11671 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11672 | if ${ac_cv_path_XGETTEXT+:} false; then : |
81ecdfbb | 11673 | $as_echo_n "(cached) " >&6 |
252b5132 | 11674 | else |
d7040cdb SE |
11675 | case "$XGETTEXT" in |
11676 | [\\/]* | ?:[\\/]*) | |
11677 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
11678 | ;; | |
11679 | *) | |
11680 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11681 | for ac_dir in $PATH; do | |
11682 | IFS="$ac_save_IFS" | |
11683 | test -z "$ac_dir" && ac_dir=. | |
11684 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11685 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11686 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
11687 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11688 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
11689 | break 2 | |
11690 | fi | |
11691 | fi | |
11692 | done | |
11693 | done | |
11694 | IFS="$ac_save_IFS" | |
11695 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
11696 | ;; | |
11697 | esac | |
20e95c23 | 11698 | fi |
d7040cdb SE |
11699 | XGETTEXT="$ac_cv_path_XGETTEXT" |
11700 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
11701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
11702 | $as_echo "$XGETTEXT" >&6; } | |
d7040cdb | 11703 | else |
81ecdfbb RW |
11704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11705 | $as_echo "no" >&6; } | |
d7040cdb SE |
11706 | fi |
11707 | ||
11708 | rm -f messages.po | |
11709 | ||
979273e3 | 11710 | |
d7040cdb SE |
11711 | # Prepare PATH_SEPARATOR. |
11712 | # The user is always right. | |
11713 | if test "${PATH_SEPARATOR+set}" != set; then | |
11714 | echo "#! /bin/sh" >conf$$.sh | |
11715 | echo "exit 0" >>conf$$.sh | |
11716 | chmod +x conf$$.sh | |
11717 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11718 | PATH_SEPARATOR=';' | |
11719 | else | |
11720 | PATH_SEPARATOR=: | |
11721 | fi | |
11722 | rm -f conf$$.sh | |
252b5132 | 11723 | fi |
979273e3 | 11724 | |
d7040cdb SE |
11725 | # Find out how to test for executable files. Don't use a zero-byte file, |
11726 | # as systems may use methods other than mode bits to determine executability. | |
11727 | cat >conf$$.file <<_ASEOF | |
11728 | #! /bin/sh | |
11729 | exit 0 | |
11730 | _ASEOF | |
11731 | chmod +x conf$$.file | |
11732 | if test -x conf$$.file >/dev/null 2>&1; then | |
11733 | ac_executable_p="test -x" | |
252b5132 | 11734 | else |
d7040cdb SE |
11735 | ac_executable_p="test -f" |
11736 | fi | |
11737 | rm -f conf$$.file | |
252b5132 | 11738 | |
d7040cdb SE |
11739 | # Extract the first word of "msgmerge", so it can be a program name with args. |
11740 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
11741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11742 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11743 | if ${ac_cv_path_MSGMERGE+:} false; then : |
81ecdfbb | 11744 | $as_echo_n "(cached) " >&6 |
252b5132 | 11745 | else |
d7040cdb SE |
11746 | case "$MSGMERGE" in |
11747 | [\\/]* | ?:[\\/]*) | |
11748 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
11749 | ;; | |
11750 | *) | |
11751 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11752 | for ac_dir in $PATH; do | |
11753 | IFS="$ac_save_IFS" | |
11754 | test -z "$ac_dir" && ac_dir=. | |
11755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11756 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11757 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
11758 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
11759 | break 2 | |
11760 | fi | |
11761 | fi | |
11762 | done | |
11763 | done | |
11764 | IFS="$ac_save_IFS" | |
11765 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
11766 | ;; | |
11767 | esac | |
20e95c23 | 11768 | fi |
d7040cdb SE |
11769 | MSGMERGE="$ac_cv_path_MSGMERGE" |
11770 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
11771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
11772 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 11773 | else |
81ecdfbb RW |
11774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11775 | $as_echo "no" >&6; } | |
20e95c23 | 11776 | fi |
252b5132 | 11777 | |
979273e3 | 11778 | |
d7040cdb SE |
11779 | if test "$GMSGFMT" != ":"; then |
11780 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
11781 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11782 | : ; | |
11783 | else | |
11784 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
11785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
11786 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
11787 | GMSGFMT=":" |
11788 | fi | |
11789 | fi | |
979273e3 | 11790 | |
d7040cdb SE |
11791 | if test "$XGETTEXT" != ":"; then |
11792 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
11793 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11794 | : ; | |
11795 | else | |
81ecdfbb RW |
11796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
11797 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
11798 | XGETTEXT=":" |
11799 | fi | |
11800 | rm -f messages.po | |
11801 | fi | |
979273e3 | 11802 | |
81ecdfbb | 11803 | ac_config_commands="$ac_config_commands default-1" |
979273e3 | 11804 | |
979273e3 | 11805 | |
979273e3 | 11806 | |
81ecdfbb | 11807 | . ${srcdir}/../bfd/configure.host |
252b5132 | 11808 | |
81ecdfbb RW |
11809 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
11810 | if test -z "$CC_FOR_BUILD"; then | |
11811 | if test "x$cross_compiling" = "xno"; then | |
11812 | CC_FOR_BUILD='$(CC)' | |
11813 | else | |
11814 | CC_FOR_BUILD=gcc | |
11815 | fi | |
11816 | fi | |
252b5132 | 11817 | |
81ecdfbb RW |
11818 | # Also set EXEEXT_FOR_BUILD. |
11819 | if test "x$cross_compiling" = "xno"; then | |
11820 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
4bd60896 | 11821 | else |
81ecdfbb RW |
11822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 |
11823 | $as_echo_n "checking for build system executable suffix... " >&6; } | |
d0ac1c44 | 11824 | if ${bfd_cv_build_exeext+:} false; then : |
81ecdfbb | 11825 | $as_echo_n "(cached) " >&6 |
4bd60896 | 11826 | else |
81ecdfbb RW |
11827 | rm -f conftest* |
11828 | echo 'int main () { return 0; }' > conftest.c | |
11829 | bfd_cv_build_exeext= | |
11830 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
11831 | for file in conftest.*; do | |
11832 | case $file in | |
11833 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
11834 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
11835 | esac | |
11836 | done | |
11837 | rm -f conftest* | |
11838 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
4bd60896 | 11839 | fi |
81ecdfbb RW |
11840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 |
11841 | $as_echo "$bfd_cv_build_exeext" >&6; } | |
11842 | EXEEXT_FOR_BUILD="" | |
11843 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
4bd60896 | 11844 | fi |
4bd60896 | 11845 | |
4bd60896 JG |
11846 | |
11847 | ||
81ecdfbb RW |
11848 | |
11849 | ||
81ecdfbb | 11850 | ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" |
d0ac1c44 | 11851 | if test "x$ac_cv_have_decl_basename" = xyes; then : |
81ecdfbb RW |
11852 | ac_have_decl=1 |
11853 | else | |
11854 | ac_have_decl=0 | |
dabbade6 | 11855 | fi |
dabbade6 L |
11856 | |
11857 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 11858 | #define HAVE_DECL_BASENAME $ac_have_decl |
dabbade6 | 11859 | _ACEOF |
81ecdfbb | 11860 | ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" |
d0ac1c44 | 11861 | if test "x$ac_cv_have_decl_stpcpy" = xyes; then : |
81ecdfbb | 11862 | ac_have_decl=1 |
dabbade6 | 11863 | else |
81ecdfbb | 11864 | ac_have_decl=0 |
4bd60896 JG |
11865 | fi |
11866 | ||
81ecdfbb RW |
11867 | cat >>confdefs.h <<_ACEOF |
11868 | #define HAVE_DECL_STPCPY $ac_have_decl | |
11869 | _ACEOF | |
4bd60896 JG |
11870 | |
11871 | ||
8df14d78 L |
11872 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
11873 | # since sigsetjmp might only be defined as a macro. | |
11874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5 | |
11875 | $as_echo_n "checking for sigsetjmp... " >&6; } | |
d0ac1c44 | 11876 | if ${gdb_cv_func_sigsetjmp+:} false; then : |
8df14d78 L |
11877 | $as_echo_n "(cached) " >&6 |
11878 | else | |
11879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11880 | /* end confdefs.h. */ | |
11881 | ||
11882 | #include <setjmp.h> | |
11883 | ||
11884 | int | |
11885 | main () | |
11886 | { | |
11887 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); | |
11888 | ; | |
11889 | return 0; | |
11890 | } | |
11891 | _ACEOF | |
11892 | if ac_fn_c_try_compile "$LINENO"; then : | |
11893 | bfd_cv_func_sigsetjmp=yes | |
11894 | else | |
11895 | bfd_cv_func_sigsetjmp=no | |
11896 | fi | |
11897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11898 | fi | |
11899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5 | |
11900 | $as_echo "$gdb_cv_func_sigsetjmp" >&6; } | |
11901 | if test $bfd_cv_func_sigsetjmp = yes; then | |
11902 | ||
11903 | $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h | |
11904 | ||
11905 | fi | |
11906 | ||
6e31aea3 BE |
11907 | cgen_maint=no |
11908 | cgendir='$(srcdir)/../cgen' | |
11909 | ||
81ecdfbb RW |
11910 | # Check whether --enable-cgen-maint was given. |
11911 | if test "${enable_cgen_maint+set}" = set; then : | |
11912 | enableval=$enable_cgen_maint; case "${enableval}" in | |
6e31aea3 BE |
11913 | yes) cgen_maint=yes ;; |
11914 | no) cgen_maint=no ;; | |
11915 | *) | |
7fb45a68 AB |
11916 | # Argument is a directory where cgen can be found. In some |
11917 | # future world cgen could be installable, but right now this | |
11918 | # is not the case. Instead we assume the directory is a path | |
11919 | # to the cgen source tree. | |
6e31aea3 | 11920 | cgen_maint=yes |
7fb45a68 AB |
11921 | if test -r ${enableval}/iformat.scm; then |
11922 | # This looks like a cgen source tree. | |
11923 | cgendir=${enableval} | |
11924 | else | |
11925 | as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5 | |
11926 | fi | |
6e31aea3 BE |
11927 | ;; |
11928 | esac | |
81ecdfbb RW |
11929 | fi |
11930 | if test x${cgen_maint} = xyes; then | |
6e31aea3 BE |
11931 | CGEN_MAINT_TRUE= |
11932 | CGEN_MAINT_FALSE='#' | |
11933 | else | |
11934 | CGEN_MAINT_TRUE='#' | |
11935 | CGEN_MAINT_FALSE= | |
11936 | fi | |
11937 | ||
252b5132 | 11938 | |
8ae85421 | 11939 | |
252b5132 RH |
11940 | using_cgen=no |
11941 | ||
51dec227 | 11942 | # Check if linker supports --as-needed and --no-as-needed options |
81ecdfbb RW |
11943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 |
11944 | $as_echo_n "checking linker --as-needed support... " >&6; } | |
d0ac1c44 | 11945 | if ${bfd_cv_ld_as_needed+:} false; then : |
81ecdfbb | 11946 | $as_echo_n "(cached) " >&6 |
51dec227 AM |
11947 | else |
11948 | bfd_cv_ld_as_needed=no | |
11949 | if $LD --help 2>/dev/null | grep as-needed > /dev/null; then | |
11950 | bfd_cv_ld_as_needed=yes | |
11951 | fi | |
11952 | ||
11953 | fi | |
81ecdfbb RW |
11954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5 |
11955 | $as_echo "$bfd_cv_ld_as_needed" >&6; } | |
51dec227 AM |
11956 | |
11957 | LIBM= | |
11958 | case $host in | |
3725885a | 11959 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) |
51dec227 AM |
11960 | # These system don't have libm, or don't need it |
11961 | ;; | |
11962 | *-ncr-sysv4.3*) | |
81ecdfbb RW |
11963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 |
11964 | $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } | |
d0ac1c44 | 11965 | if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : |
81ecdfbb | 11966 | $as_echo_n "(cached) " >&6 |
51dec227 AM |
11967 | else |
11968 | ac_check_lib_save_LIBS=$LIBS | |
11969 | LIBS="-lmw $LIBS" | |
81ecdfbb | 11970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
51dec227 AM |
11971 | /* end confdefs.h. */ |
11972 | ||
81ecdfbb RW |
11973 | /* Override any GCC internal prototype to avoid an error. |
11974 | Use char because int might match the return type of a GCC | |
11975 | builtin and then its argument prototype would still apply. */ | |
51dec227 AM |
11976 | #ifdef __cplusplus |
11977 | extern "C" | |
11978 | #endif | |
51dec227 AM |
11979 | char _mwvalidcheckl (); |
11980 | int | |
11981 | main () | |
11982 | { | |
81ecdfbb | 11983 | return _mwvalidcheckl (); |
51dec227 AM |
11984 | ; |
11985 | return 0; | |
11986 | } | |
11987 | _ACEOF | |
81ecdfbb | 11988 | if ac_fn_c_try_link "$LINENO"; then : |
51dec227 AM |
11989 | ac_cv_lib_mw__mwvalidcheckl=yes |
11990 | else | |
81ecdfbb | 11991 | ac_cv_lib_mw__mwvalidcheckl=no |
51dec227 | 11992 | fi |
81ecdfbb RW |
11993 | rm -f core conftest.err conftest.$ac_objext \ |
11994 | conftest$ac_exeext conftest.$ac_ext | |
51dec227 AM |
11995 | LIBS=$ac_check_lib_save_LIBS |
11996 | fi | |
81ecdfbb RW |
11997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 |
11998 | $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } | |
d0ac1c44 | 11999 | if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : |
51dec227 AM |
12000 | LIBM="-lmw" |
12001 | fi | |
12002 | ||
81ecdfbb RW |
12003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
12004 | $as_echo_n "checking for cos in -lm... " >&6; } | |
d0ac1c44 | 12005 | if ${ac_cv_lib_m_cos+:} false; then : |
81ecdfbb | 12006 | $as_echo_n "(cached) " >&6 |
51dec227 AM |
12007 | else |
12008 | ac_check_lib_save_LIBS=$LIBS | |
12009 | LIBS="-lm $LIBS" | |
81ecdfbb | 12010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
51dec227 AM |
12011 | /* end confdefs.h. */ |
12012 | ||
81ecdfbb RW |
12013 | /* Override any GCC internal prototype to avoid an error. |
12014 | Use char because int might match the return type of a GCC | |
12015 | builtin and then its argument prototype would still apply. */ | |
51dec227 AM |
12016 | #ifdef __cplusplus |
12017 | extern "C" | |
12018 | #endif | |
51dec227 AM |
12019 | char cos (); |
12020 | int | |
12021 | main () | |
12022 | { | |
81ecdfbb | 12023 | return cos (); |
51dec227 AM |
12024 | ; |
12025 | return 0; | |
12026 | } | |
12027 | _ACEOF | |
81ecdfbb | 12028 | if ac_fn_c_try_link "$LINENO"; then : |
51dec227 AM |
12029 | ac_cv_lib_m_cos=yes |
12030 | else | |
81ecdfbb | 12031 | ac_cv_lib_m_cos=no |
51dec227 | 12032 | fi |
81ecdfbb RW |
12033 | rm -f core conftest.err conftest.$ac_objext \ |
12034 | conftest$ac_exeext conftest.$ac_ext | |
51dec227 AM |
12035 | LIBS=$ac_check_lib_save_LIBS |
12036 | fi | |
81ecdfbb RW |
12037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
12038 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
d0ac1c44 | 12039 | if test "x$ac_cv_lib_m_cos" = xyes; then : |
51dec227 AM |
12040 | LIBM="$LIBM -lm" |
12041 | fi | |
12042 | ||
12043 | ;; | |
12044 | *) | |
81ecdfbb RW |
12045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
12046 | $as_echo_n "checking for cos in -lm... " >&6; } | |
d0ac1c44 | 12047 | if ${ac_cv_lib_m_cos+:} false; then : |
81ecdfbb | 12048 | $as_echo_n "(cached) " >&6 |
51dec227 AM |
12049 | else |
12050 | ac_check_lib_save_LIBS=$LIBS | |
12051 | LIBS="-lm $LIBS" | |
81ecdfbb | 12052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
51dec227 AM |
12053 | /* end confdefs.h. */ |
12054 | ||
81ecdfbb RW |
12055 | /* Override any GCC internal prototype to avoid an error. |
12056 | Use char because int might match the return type of a GCC | |
12057 | builtin and then its argument prototype would still apply. */ | |
51dec227 AM |
12058 | #ifdef __cplusplus |
12059 | extern "C" | |
12060 | #endif | |
51dec227 AM |
12061 | char cos (); |
12062 | int | |
12063 | main () | |
12064 | { | |
81ecdfbb | 12065 | return cos (); |
51dec227 AM |
12066 | ; |
12067 | return 0; | |
12068 | } | |
12069 | _ACEOF | |
81ecdfbb | 12070 | if ac_fn_c_try_link "$LINENO"; then : |
51dec227 AM |
12071 | ac_cv_lib_m_cos=yes |
12072 | else | |
81ecdfbb | 12073 | ac_cv_lib_m_cos=no |
51dec227 | 12074 | fi |
81ecdfbb RW |
12075 | rm -f core conftest.err conftest.$ac_objext \ |
12076 | conftest$ac_exeext conftest.$ac_ext | |
51dec227 AM |
12077 | LIBS=$ac_check_lib_save_LIBS |
12078 | fi | |
81ecdfbb RW |
12079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
12080 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
d0ac1c44 | 12081 | if test "x$ac_cv_lib_m_cos" = xyes; then : |
51dec227 AM |
12082 | LIBM="-lm" |
12083 | fi | |
12084 | ||
12085 | ;; | |
12086 | esac | |
12087 | ||
12088 | ||
12089 | ||
2eee5593 AM |
12090 | #Libs for generator progs |
12091 | if test "x$cross_compiling" = "xno"; then | |
12092 | BUILD_LIBS=../libiberty/libiberty.a | |
12093 | BUILD_LIB_DEPS=$BUILD_LIBS | |
12094 | else | |
12095 | # if cross-compiling, assume that the system provides -liberty | |
12096 | # and that the version is compatible with new headers. | |
12097 | BUILD_LIBS=-liberty | |
12098 | BUILD_LIB_DEPS= | |
12099 | fi | |
12100 | BUILD_LIBS="$BUILD_LIBS $LIBINTL" | |
12101 | BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP" | |
12102 | ||
12103 | ||
12104 | ||
12105 | ||
45d42143 NC |
12106 | # Horrible hacks to build DLLs on Windows and a shared library elsewhere. |
12107 | SHARED_LDFLAGS= | |
12108 | SHARED_LIBADD= | |
12109 | SHARED_DEPENDENCIES= | |
12110 | if test "$enable_shared" = "yes"; then | |
29670fb9 AM |
12111 | # When building a shared libopcodes, link against the pic version of libiberty |
12112 | # so that apps that use libopcodes won't need libiberty just to satisfy any | |
12113 | # libopcodes references. | |
12114 | # We can't do that if a pic libiberty is unavailable since including non-pic | |
12115 | # code would insert text relocations into libopcodes. | |
12116 | # Note that linking against libbfd as we do here, which is itself linked | |
12117 | # against libiberty, may not satisfy all the libopcodes libiberty references | |
12118 | # since libbfd may not pull in the entirety of libiberty. | |
95148614 NA |
12119 | # Also, jam libintl into the right place in all of this: after libiberty, |
12120 | # which uses it, but before -lcygwin, which it uses. | |
29670fb9 AM |
12121 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` |
12122 | if test -n "$x"; then | |
12123 | SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" | |
12124 | fi | |
95148614 NA |
12125 | fi |
12126 | ||
12127 | SHARED_LIBADD="$SHARED_LIBADD $LIBINTL" | |
29670fb9 | 12128 | |
95148614 | 12129 | if test "$enable_shared" = "yes"; then |
45d42143 NC |
12130 | case "${host}" in |
12131 | *-*-cygwin*) | |
12132 | SHARED_LDFLAGS="-no-undefined" | |
95148614 | 12133 | SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty $SHARED_LIBADD" |
45d42143 | 12134 | ;; |
0e336180 | 12135 | *-*-darwin*) |
29670fb9 | 12136 | SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib ${SHARED_LIBADD}" |
0e336180 NC |
12137 | SHARED_DEPENDENCIES="../bfd/libbfd.la" |
12138 | ;; | |
45d42143 | 12139 | *) |
0e336180 NC |
12140 | case "$host_vendor" in |
12141 | hp) | |
29670fb9 | 12142 | SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl ${SHARED_LIBADD}" |
0e336180 NC |
12143 | ;; |
12144 | *) | |
29670fb9 | 12145 | SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so ${SHARED_LIBADD}" |
0e336180 NC |
12146 | ;; |
12147 | esac | |
4267b19f | 12148 | SHARED_DEPENDENCIES="../bfd/libbfd.la" |
45d42143 NC |
12149 | ;; |
12150 | esac | |
51dec227 AM |
12151 | |
12152 | if test -n "$SHARED_LIBADD"; then | |
12153 | if test -n "$LIBM"; then | |
12154 | if test x"$bfd_cv_ld_as_needed" = xyes; then | |
12155 | # Link against libm only when needed. Put -lc, -lm inside -Wl | |
12156 | # to stop libtool reordering these options. | |
12157 | SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed" | |
12158 | else | |
12159 | SHARED_LIBADD="$SHARED_LIBADD $LIBM" | |
12160 | fi | |
12161 | fi | |
12162 | fi | |
45d42143 NC |
12163 | fi |
12164 | ||
252b5132 RH |
12165 | |
12166 | ||
12167 | ||
12168 | # target-specific stuff: | |
12169 | ||
12170 | # Canonicalize the secondary target names. | |
12171 | if test -n "$enable_targets" ; then | |
12172 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
12173 | do | |
6d83c84b | 12174 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
12175 | if test -n "$result" ; then |
12176 | canon_targets="$canon_targets $result" | |
12177 | else | |
12178 | # Allow targets that config.sub doesn't recognize, like "all". | |
12179 | canon_targets="$canon_targets $targ" | |
12180 | fi | |
12181 | done | |
12182 | fi | |
12183 | ||
12184 | all_targets=false | |
12185 | selarchs= | |
12186 | for targ in $target $canon_targets | |
12187 | do | |
12188 | if test "x$targ" = "xall" ; then | |
12189 | all_targets=true | |
12190 | else | |
12191 | . $srcdir/../bfd/config.bfd | |
12192 | selarchs="$selarchs $targ_archs" | |
12193 | fi | |
979273e3 | 12194 | done |
252b5132 RH |
12195 | |
12196 | # Utility var, documents generic cgen support files. | |
12197 | ||
3609e0fe | 12198 | cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo" |
252b5132 RH |
12199 | |
12200 | # We don't do any links based on the target system, just makefile config. | |
12201 | ||
12202 | if test x${all_targets} = xfalse ; then | |
12203 | ||
12204 | # Target architecture .o files. | |
12205 | ta= | |
12206 | ||
12207 | for arch in $selarchs | |
12208 | do | |
12209 | ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g` | |
12210 | archdefs="$archdefs -DARCH_$ad" | |
12211 | case "$arch" in | |
a06ea964 | 12212 | bfd_aarch64_arch) ta="$ta aarch64-asm.lo aarch64-dis.lo aarch64-opc.lo aarch64-asm-2.lo aarch64-dis-2.lo aarch64-opc-2.lo" ;; |
252b5132 | 12213 | bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;; |
0d2bcfaf | 12214 | bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;; |
252b5132 | 12215 | bfd_arm_arch) ta="$ta arm-dis.lo" ;; |
adde6300 | 12216 | bfd_avr_arch) ta="$ta avr-dis.lo" ;; |
4b7f6baa | 12217 | bfd_bfin_arch) ta="$ta bfin-dis.lo" ;; |
3843081d | 12218 | bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;; |
3609e0fe | 12219 | bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;; |
3843081d | 12220 | bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;; |
b8891f8d | 12221 | bfd_csky_arch) ta="$ta csky-dis.lo" ;; |
252b5132 RH |
12222 | bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;; |
12223 | bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;; | |
d172d4ba | 12224 | bfd_dlx_arch) ta="$ta dlx-dis.lo" ;; |
3843081d JBG |
12225 | bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;; |
12226 | bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;; | |
3f8107ab | 12227 | bfd_ft32_arch) ta="$ta ft32-opc.lo ft32-dis.lo" ;; |
20135e4c | 12228 | bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;; |
252b5132 | 12229 | bfd_h8300_arch) ta="$ta h8300-dis.lo" ;; |
252b5132 | 12230 | bfd_hppa_arch) ta="$ta hppa-dis.lo" ;; |
7b6d09fb | 12231 | bfd_i386_arch|bfd_iamcu_arch|bfd_l1om_arch|bfd_k1om_arch) |
8a9036a4 | 12232 | ta="$ta i386-dis.lo i386-opc.lo" ;; |
800eeca4 | 12233 | bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;; |
a40cbfa3 | 12234 | bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;; |
48891606 | 12235 | bfd_epiphany_arch) ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;; |
3843081d JBG |
12236 | bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;; |
12237 | bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;; | |
c5f5f1f4 | 12238 | bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;; |
252b5132 | 12239 | bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;; |
60bcf0fa NC |
12240 | bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; |
12241 | bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; | |
48891606 | 12242 | bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; |
6927f982 | 12243 | bfd_m9s12xg_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; |
7e9ca91e | 12244 | bfd_s12z_arch) ta="$ta s12z-dis.lo s12z-opc.lo" ;; |
252b5132 | 12245 | bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;; |
252b5132 | 12246 | bfd_mcore_arch) ta="$ta mcore-dis.lo" ;; |
bd2f2e55 | 12247 | bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;; |
a3c62988 | 12248 | bfd_metag_arch) ta="$ta metag-dis.lo" ;; |
7ba29e2a | 12249 | bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;; |
df58fc94 | 12250 | bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo micromips-opc.lo" ;; |
3c3bdf30 | 12251 | bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;; |
252b5132 RH |
12252 | bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;; |
12253 | bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;; | |
d031aafb | 12254 | bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;; |
34c911a4 | 12255 | bfd_msp430_arch) ta="$ta msp430-dis.lo msp430-decode.lo" ;; |
35c08157 | 12256 | bfd_nds32_arch) ta="$ta nds32-asm.lo nds32-dis.lo" ;; |
fe944acf | 12257 | bfd_nfp_arch) ta="$ta nfp-dis.lo" ;; |
36591ba1 | 12258 | bfd_nios2_arch) ta="$ta nios2-dis.lo nios2-opc.lo" ;; |
252b5132 | 12259 | bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;; |
73589c9d | 12260 | bfd_or1k_arch) ta="$ta or1k-asm.lo or1k-desc.lo or1k-dis.lo or1k-ibld.lo or1k-opc.lo" using_cgen=yes ;; |
e135f41b | 12261 | bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;; |
3843081d | 12262 | bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;; |
252b5132 | 12263 | bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
a85d7ed0 | 12264 | bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
11146849 | 12265 | bfd_pru_arch) ta="$ta pru-dis.lo pru-opc.lo" ;; |
5dd0794d | 12266 | bfd_pyramid_arch) ;; |
252b5132 | 12267 | bfd_romp_arch) ;; |
e23eba97 | 12268 | bfd_riscv_arch) ta="$ta riscv-dis.lo riscv-opc.lo" ;; |
252b5132 | 12269 | bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
99c513f6 | 12270 | bfd_rl78_arch) ta="$ta rl78-dis.lo rl78-decode.lo";; |
c7927a3c | 12271 | bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";; |
a85d7ed0 | 12272 | bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;; |
3843081d | 12273 | bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;; |
211dc24b | 12274 | bfd_sh_arch) ta="$ta sh-dis.lo cgen-bitset.lo" ;; |
252b5132 | 12275 | bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;; |
e9f53129 | 12276 | bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;; |
252b5132 | 12277 | bfd_tic30_arch) ta="$ta tic30-dis.lo" ;; |
3843081d | 12278 | bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;; |
5c84d377 | 12279 | bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;; |
40b36596 | 12280 | bfd_tic6x_arch) ta="$ta tic6x-dis.lo" ;; |
aa137e4d NC |
12281 | bfd_tilegx_arch) ta="$ta tilegx-dis.lo tilegx-opc.lo" ;; |
12282 | bfd_tilepro_arch) ta="$ta tilepro-dis.lo tilepro-opc.lo" ;; | |
252b5132 RH |
12283 | bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; |
12284 | bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; | |
12285 | bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; | |
de863c74 | 12286 | bfd_v850_rh850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; |
252b5132 | 12287 | bfd_vax_arch) ta="$ta vax-dis.lo" ;; |
1945cfa5 | 12288 | bfd_visium_arch) ta="$ta visium-dis.lo visium-opc.lo" ;; |
62ecb94c | 12289 | bfd_wasm32_arch) ta="$ta wasm32-dis.lo" ;; |
3843081d JBG |
12290 | bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;; |
12291 | bfd_xgate_arch) ta="$ta xgate-dis.lo xgate-opc.lo" ;; | |
93fbbb04 | 12292 | bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;; |
e0001a05 | 12293 | bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;; |
3c9b82ba | 12294 | bfd_z80_arch) ta="$ta z80-dis.lo" ;; |
252b5132 | 12295 | bfd_z8k_arch) ta="$ta z8k-dis.lo" ;; |
79472b45 | 12296 | bfd_bpf_arch) ta="$ta bpf-asm.lo bpf-desc.lo bpf-dis.lo bpf-ibld.lo bpf-opc.lo" using_cgen=yes ;; |
252b5132 RH |
12297 | |
12298 | "") ;; | |
d0ac1c44 | 12299 | *) as_fn_error $? "*** unknown target architecture $arch" "$LINENO" 5 ;; |
252b5132 RH |
12300 | esac |
12301 | done | |
12302 | ||
12303 | if test $using_cgen = yes ; then | |
12304 | ta="$ta $cgen_files" | |
12305 | fi | |
12306 | ||
12307 | # Weed out duplicate .o files. | |
12308 | f="" | |
12309 | for i in $ta ; do | |
12310 | case " $f " in | |
12311 | *" $i "*) ;; | |
12312 | *) f="$f $i" ;; | |
12313 | esac | |
12314 | done | |
12315 | ta="$f" | |
12316 | ||
12317 | # And duplicate -D flags. | |
12318 | f="" | |
12319 | for i in $archdefs ; do | |
12320 | case " $f " in | |
12321 | *" $i "*) ;; | |
12322 | *) f="$f $i" ;; | |
12323 | esac | |
12324 | done | |
12325 | archdefs="$f" | |
12326 | ||
12327 | BFD_MACHINES="$ta" | |
12328 | ||
12329 | else # all_targets is true | |
12330 | archdefs=-DARCH_all | |
12331 | BFD_MACHINES='$(ALL_MACHINES)' | |
12332 | fi | |
12333 | ||
12334 | ||
12335 | ||
12336 | ||
81ecdfbb | 12337 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
979273e3 | 12338 | |
979273e3 | 12339 | cat >confcache <<\_ACEOF |
252b5132 RH |
12340 | # This file is a shell script that caches the results of configure |
12341 | # tests run on this system so they can be shared between configure | |
979273e3 NN |
12342 | # scripts and configure runs, see configure's option --config-cache. |
12343 | # It is not useful on other systems. If it contains results you don't | |
12344 | # want to keep, you may remove or edit it. | |
252b5132 | 12345 | # |
979273e3 NN |
12346 | # config.status only pays attention to the cache file if you give it |
12347 | # the --recheck option to rerun configure. | |
252b5132 | 12348 | # |
979273e3 NN |
12349 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
12350 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12351 | # following values. | |
12352 | ||
12353 | _ACEOF | |
12354 | ||
252b5132 RH |
12355 | # The following way of writing the cache mishandles newlines in values, |
12356 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 12357 | # So, we kill variables containing newlines. |
252b5132 RH |
12358 | # Ultrix sh set writes to stderr and can't be redirected directly, |
12359 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
12360 | ( |
12361 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12362 | eval ac_val=\$$ac_var | |
12363 | case $ac_val in #( | |
12364 | *${as_nl}*) | |
12365 | case $ac_var in #( | |
12366 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
12367 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
12368 | esac | |
12369 | case $ac_var in #( | |
12370 | _ | IFS | as_nl) ;; #( | |
12371 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
12372 | *) { eval $ac_var=; unset $ac_var;} ;; | |
12373 | esac ;; | |
12374 | esac | |
12375 | done | |
12376 | ||
979273e3 | 12377 | (set) 2>&1 | |
81ecdfbb RW |
12378 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
12379 | *${as_nl}ac_space=\ *) | |
12380 | # `set' does not quote correctly, so add quotes: double-quote | |
12381 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
979273e3 NN |
12382 | sed -n \ |
12383 | "s/'/'\\\\''/g; | |
12384 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 12385 | ;; #( |
979273e3 NN |
12386 | *) |
12387 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 12388 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
979273e3 | 12389 | ;; |
81ecdfbb RW |
12390 | esac | |
12391 | sort | |
12392 | ) | | |
979273e3 | 12393 | sed ' |
81ecdfbb | 12394 | /^ac_cv_env_/b end |
979273e3 | 12395 | t clear |
81ecdfbb | 12396 | :clear |
979273e3 NN |
12397 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12398 | t end | |
81ecdfbb RW |
12399 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12400 | :end' >>confcache | |
12401 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12402 | if test -w "$cache_file"; then | |
d0ac1c44 | 12403 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
12404 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
12405 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
12406 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
12407 | cat confcache >"$cache_file" | |
12408 | else | |
12409 | case $cache_file in #( | |
12410 | */* | ?:*) | |
12411 | mv -f confcache "$cache_file"$$ && | |
12412 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
12413 | *) | |
12414 | mv -f confcache "$cache_file" ;; | |
12415 | esac | |
12416 | fi | |
12417 | fi | |
252b5132 | 12418 | else |
81ecdfbb RW |
12419 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
12420 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
252b5132 RH |
12421 | fi |
12422 | fi | |
12423 | rm -f confcache | |
12424 | ||
252b5132 RH |
12425 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12426 | # Let make expand exec_prefix. | |
12427 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12428 | ||
252b5132 RH |
12429 | DEFS=-DHAVE_CONFIG_H |
12430 | ||
979273e3 NN |
12431 | ac_libobjs= |
12432 | ac_ltlibobjs= | |
d0ac1c44 | 12433 | U= |
979273e3 NN |
12434 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
12435 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
12436 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
12437 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
12438 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
12439 | # will be set to the directory where LIBOBJS objects are built. | |
12440 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
12441 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
979273e3 NN |
12442 | done |
12443 | LIBOBJS=$ac_libobjs | |
252b5132 | 12444 | |
979273e3 NN |
12445 | LTLIBOBJS=$ac_ltlibobjs |
12446 | ||
12447 | ||
d0ac1c44 SM |
12448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
12449 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
12450 | if test -n "$am_sleep_pid"; then | |
12451 | # Hide warnings about reused PIDs. | |
12452 | wait $am_sleep_pid 2>/dev/null | |
12453 | fi | |
12454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
12455 | $as_echo "done" >&6; } | |
81ecdfbb RW |
12456 | if test -n "$EXEEXT"; then |
12457 | am__EXEEXT_TRUE= | |
12458 | am__EXEEXT_FALSE='#' | |
12459 | else | |
12460 | am__EXEEXT_TRUE='#' | |
12461 | am__EXEEXT_FALSE= | |
8ae85421 | 12462 | fi |
81ecdfbb | 12463 | |
ab2af25e AM |
12464 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
12465 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
12466 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
12467 | fi | |
12468 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
12469 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
12470 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
12471 | fi | |
8ae85421 | 12472 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
d0ac1c44 | 12473 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
81ecdfbb | 12474 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
8ae85421 AM |
12475 | fi |
12476 | if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then | |
d0ac1c44 | 12477 | as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined. |
81ecdfbb | 12478 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
8ae85421 AM |
12479 | fi |
12480 | if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then | |
d0ac1c44 | 12481 | as_fn_error $? "conditional \"CGEN_MAINT\" was never defined. |
81ecdfbb | 12482 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
8ae85421 | 12483 | fi |
979273e3 | 12484 | |
d0ac1c44 | 12485 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 12486 | ac_write_fail=0 |
979273e3 NN |
12487 | ac_clean_files_save=$ac_clean_files |
12488 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
12489 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
12490 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12491 | as_write_fail=0 | |
12492 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
979273e3 NN |
12493 | #! $SHELL |
12494 | # Generated by $as_me. | |
252b5132 | 12495 | # Run this file to recreate the current configuration. |
252b5132 | 12496 | # Compiler output produced by configure, useful for debugging |
979273e3 | 12497 | # configure, is in config.log if it exists. |
252b5132 | 12498 | |
979273e3 NN |
12499 | debug=false |
12500 | ac_cs_recheck=false | |
12501 | ac_cs_silent=false | |
979273e3 | 12502 | |
81ecdfbb RW |
12503 | SHELL=\${CONFIG_SHELL-$SHELL} |
12504 | export SHELL | |
12505 | _ASEOF | |
12506 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
12507 | ## -------------------- ## | |
12508 | ## M4sh Initialization. ## | |
12509 | ## -------------------- ## | |
979273e3 | 12510 | |
81ecdfbb RW |
12511 | # Be more Bourne compatible |
12512 | DUALCASE=1; export DUALCASE # for MKS sh | |
12513 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
979273e3 NN |
12514 | emulate sh |
12515 | NULLCMD=: | |
81ecdfbb | 12516 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
979273e3 NN |
12517 | # is contrary to our usage. Disable this feature. |
12518 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
12519 | setopt NO_GLOB_SUBST |
12520 | else | |
12521 | case `(set -o) 2>/dev/null` in #( | |
12522 | *posix*) : | |
12523 | set -o posix ;; #( | |
12524 | *) : | |
12525 | ;; | |
12526 | esac | |
979273e3 | 12527 | fi |
979273e3 | 12528 | |
81ecdfbb RW |
12529 | |
12530 | as_nl=' | |
12531 | ' | |
12532 | export as_nl | |
12533 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12534 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12535 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12536 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
12537 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
12538 | # but without wasting forks for bash or zsh. | |
12539 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
12540 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12541 | as_echo='print -r --' | |
12542 | as_echo_n='print -rn --' | |
12543 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12544 | as_echo='printf %s\n' | |
12545 | as_echo_n='printf %s' | |
12546 | else | |
12547 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12548 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12549 | as_echo_n='/usr/ucb/echo -n' | |
12550 | else | |
12551 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
12552 | as_echo_n_body='eval | |
12553 | arg=$1; | |
12554 | case $arg in #( | |
12555 | *"$as_nl"*) | |
12556 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12557 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12558 | esac; | |
12559 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12560 | ' | |
12561 | export as_echo_n_body | |
12562 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
12563 | fi | |
12564 | export as_echo_body | |
12565 | as_echo='sh -c $as_echo_body as_echo' | |
12566 | fi | |
12567 | ||
12568 | # The user is always right. | |
12569 | if test "${PATH_SEPARATOR+set}" != set; then | |
12570 | PATH_SEPARATOR=: | |
12571 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12572 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12573 | PATH_SEPARATOR=';' | |
12574 | } | |
979273e3 NN |
12575 | fi |
12576 | ||
12577 | ||
81ecdfbb RW |
12578 | # IFS |
12579 | # We need space, tab and new line, in precisely that order. Quoting is | |
12580 | # there to prevent editors from complaining about space-tab. | |
12581 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12582 | # splitting by setting IFS to empty value.) | |
12583 | IFS=" "" $as_nl" | |
12584 | ||
12585 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 12586 | as_myself= |
81ecdfbb RW |
12587 | case $0 in #(( |
12588 | *[\\/]* ) as_myself=$0 ;; | |
12589 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12590 | for as_dir in $PATH | |
12591 | do | |
12592 | IFS=$as_save_IFS | |
12593 | test -z "$as_dir" && as_dir=. | |
12594 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12595 | done | |
12596 | IFS=$as_save_IFS | |
12597 | ||
12598 | ;; | |
12599 | esac | |
12600 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12601 | # in which case we are not to be found in the path. | |
12602 | if test "x$as_myself" = x; then | |
12603 | as_myself=$0 | |
12604 | fi | |
12605 | if test ! -f "$as_myself"; then | |
12606 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
12607 | exit 1 | |
12608 | fi | |
12609 | ||
12610 | # Unset variables that we do not need and which cause bugs (e.g. in | |
12611 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
12612 | # suppresses any "Segmentation fault" message there. '((' could | |
12613 | # trigger a bug in pdksh 5.2.14. | |
12614 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
12615 | do eval test x\${$as_var+set} = xset \ | |
12616 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
12617 | done | |
979273e3 NN |
12618 | PS1='$ ' |
12619 | PS2='> ' | |
12620 | PS4='+ ' | |
12621 | ||
12622 | # NLS nuisances. | |
81ecdfbb RW |
12623 | LC_ALL=C |
12624 | export LC_ALL | |
12625 | LANGUAGE=C | |
12626 | export LANGUAGE | |
12627 | ||
12628 | # CDPATH. | |
12629 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12630 | ||
12631 | ||
d0ac1c44 SM |
12632 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
12633 | # ---------------------------------------- | |
81ecdfbb RW |
12634 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
12635 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 12636 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
12637 | as_fn_error () |
12638 | { | |
d0ac1c44 SM |
12639 | as_status=$1; test $as_status -eq 0 && as_status=1 |
12640 | if test "$4"; then | |
12641 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
12642 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
979273e3 | 12643 | fi |
d0ac1c44 | 12644 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
12645 | as_fn_exit $as_status |
12646 | } # as_fn_error | |
12647 | ||
12648 | ||
12649 | # as_fn_set_status STATUS | |
12650 | # ----------------------- | |
12651 | # Set $? to STATUS, without forking. | |
12652 | as_fn_set_status () | |
12653 | { | |
12654 | return $1 | |
12655 | } # as_fn_set_status | |
12656 | ||
12657 | # as_fn_exit STATUS | |
12658 | # ----------------- | |
12659 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
12660 | as_fn_exit () | |
12661 | { | |
12662 | set +e | |
12663 | as_fn_set_status $1 | |
12664 | exit $1 | |
12665 | } # as_fn_exit | |
12666 | ||
12667 | # as_fn_unset VAR | |
12668 | # --------------- | |
12669 | # Portably unset VAR. | |
12670 | as_fn_unset () | |
12671 | { | |
12672 | { eval $1=; unset $1;} | |
12673 | } | |
12674 | as_unset=as_fn_unset | |
12675 | # as_fn_append VAR VALUE | |
12676 | # ---------------------- | |
12677 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
12678 | # advantage of any shell optimizations that allow amortized linear growth over | |
12679 | # repeated appends, instead of the typical quadratic growth present in naive | |
12680 | # implementations. | |
12681 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
12682 | eval 'as_fn_append () | |
12683 | { | |
12684 | eval $1+=\$2 | |
12685 | }' | |
12686 | else | |
12687 | as_fn_append () | |
12688 | { | |
12689 | eval $1=\$$1\$2 | |
12690 | } | |
12691 | fi # as_fn_append | |
12692 | ||
12693 | # as_fn_arith ARG... | |
12694 | # ------------------ | |
12695 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
12696 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
12697 | # must be portable across $(()) and expr. | |
12698 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
12699 | eval 'as_fn_arith () | |
12700 | { | |
12701 | as_val=$(( $* )) | |
12702 | }' | |
12703 | else | |
12704 | as_fn_arith () | |
12705 | { | |
12706 | as_val=`expr "$@" || test $? -eq 1` | |
12707 | } | |
12708 | fi # as_fn_arith | |
12709 | ||
252b5132 | 12710 | |
81ecdfbb RW |
12711 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12712 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
979273e3 NN |
12713 | as_expr=expr |
12714 | else | |
12715 | as_expr=false | |
12716 | fi | |
12717 | ||
81ecdfbb | 12718 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
979273e3 NN |
12719 | as_basename=basename |
12720 | else | |
12721 | as_basename=false | |
12722 | fi | |
252b5132 | 12723 | |
81ecdfbb RW |
12724 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12725 | as_dirname=dirname | |
12726 | else | |
12727 | as_dirname=false | |
12728 | fi | |
252b5132 | 12729 | |
81ecdfbb | 12730 | as_me=`$as_basename -- "$0" || |
979273e3 NN |
12731 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12732 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
12733 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
12734 | $as_echo X/"$0" | | |
12735 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12736 | s//\1/ | |
12737 | q | |
12738 | } | |
12739 | /^X\/\(\/\/\)$/{ | |
12740 | s//\1/ | |
12741 | q | |
12742 | } | |
12743 | /^X\/\(\/\).*/{ | |
12744 | s//\1/ | |
12745 | q | |
12746 | } | |
12747 | s/.*/./; q'` | |
252b5132 | 12748 | |
979273e3 NN |
12749 | # Avoid depending upon Character Ranges. |
12750 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12751 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12752 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12753 | as_cr_digits='0123456789' | |
12754 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12755 | ||
81ecdfbb RW |
12756 | ECHO_C= ECHO_N= ECHO_T= |
12757 | case `echo -n x` in #((((( | |
12758 | -n*) | |
12759 | case `echo 'xy\c'` in | |
12760 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12761 | xy) ECHO_C='\c';; | |
12762 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
12763 | ECHO_T=' ';; | |
12764 | esac;; | |
12765 | *) | |
12766 | ECHO_N='-n';; | |
979273e3 NN |
12767 | esac |
12768 | ||
81ecdfbb RW |
12769 | rm -f conf$$ conf$$.exe conf$$.file |
12770 | if test -d conf$$.dir; then | |
12771 | rm -f conf$$.dir/conf$$.file | |
979273e3 | 12772 | else |
81ecdfbb RW |
12773 | rm -f conf$$.dir |
12774 | mkdir conf$$.dir 2>/dev/null | |
979273e3 | 12775 | fi |
81ecdfbb RW |
12776 | if (echo >conf$$.file) 2>/dev/null; then |
12777 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
979273e3 | 12778 | as_ln_s='ln -s' |
81ecdfbb RW |
12779 | # ... but there are two gotchas: |
12780 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12781 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 12782 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 12783 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 12784 | as_ln_s='cp -pR' |
81ecdfbb RW |
12785 | elif ln conf$$.file conf$$ 2>/dev/null; then |
12786 | as_ln_s=ln | |
12787 | else | |
d0ac1c44 | 12788 | as_ln_s='cp -pR' |
252b5132 | 12789 | fi |
979273e3 | 12790 | else |
d0ac1c44 | 12791 | as_ln_s='cp -pR' |
979273e3 | 12792 | fi |
81ecdfbb RW |
12793 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12794 | rmdir conf$$.dir 2>/dev/null | |
12795 | ||
12796 | ||
12797 | # as_fn_mkdir_p | |
12798 | # ------------- | |
12799 | # Create "$as_dir" as a directory, including parents if necessary. | |
12800 | as_fn_mkdir_p () | |
12801 | { | |
12802 | ||
12803 | case $as_dir in #( | |
12804 | -*) as_dir=./$as_dir;; | |
12805 | esac | |
12806 | test -d "$as_dir" || eval $as_mkdir_p || { | |
12807 | as_dirs= | |
12808 | while :; do | |
12809 | case $as_dir in #( | |
12810 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12811 | *) as_qdir=$as_dir;; | |
12812 | esac | |
12813 | as_dirs="'$as_qdir' $as_dirs" | |
12814 | as_dir=`$as_dirname -- "$as_dir" || | |
12815 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12816 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12817 | X"$as_dir" : 'X\(//\)$' \| \ | |
12818 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12819 | $as_echo X"$as_dir" | | |
12820 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12821 | s//\1/ | |
12822 | q | |
12823 | } | |
12824 | /^X\(\/\/\)[^/].*/{ | |
12825 | s//\1/ | |
12826 | q | |
12827 | } | |
12828 | /^X\(\/\/\)$/{ | |
12829 | s//\1/ | |
12830 | q | |
12831 | } | |
12832 | /^X\(\/\).*/{ | |
12833 | s//\1/ | |
12834 | q | |
12835 | } | |
12836 | s/.*/./; q'` | |
12837 | test -d "$as_dir" && break | |
12838 | done | |
12839 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 12840 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
979273e3 | 12841 | |
81ecdfbb RW |
12842 | |
12843 | } # as_fn_mkdir_p | |
979273e3 | 12844 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 12845 | as_mkdir_p='mkdir -p "$as_dir"' |
979273e3 NN |
12846 | else |
12847 | test -d ./-p && rmdir ./-p | |
12848 | as_mkdir_p=false | |
12849 | fi | |
12850 | ||
d0ac1c44 SM |
12851 | |
12852 | # as_fn_executable_p FILE | |
12853 | # ----------------------- | |
12854 | # Test if FILE is an executable regular file. | |
12855 | as_fn_executable_p () | |
12856 | { | |
12857 | test -f "$1" && test -x "$1" | |
12858 | } # as_fn_executable_p | |
12859 | as_test_x='test -x' | |
12860 | as_executable_p=as_fn_executable_p | |
979273e3 NN |
12861 | |
12862 | # Sed expression to map a string onto a valid CPP name. | |
12863 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12864 | ||
12865 | # Sed expression to map a string onto a valid variable name. | |
12866 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12867 | ||
12868 | ||
979273e3 | 12869 | exec 6>&1 |
81ecdfbb RW |
12870 | ## ----------------------------------- ## |
12871 | ## Main body of $CONFIG_STATUS script. ## | |
12872 | ## ----------------------------------- ## | |
12873 | _ASEOF | |
12874 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
979273e3 | 12875 | |
81ecdfbb RW |
12876 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12877 | # Save the log message, to keep $0 and so on meaningful, and to | |
979273e3 | 12878 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
12879 | # values after options handling. |
12880 | ac_log=" | |
573fe3fb | 12881 | This file was extended by opcodes $as_me 2.36.50, which was |
d0ac1c44 | 12882 | generated by GNU Autoconf 2.69. Invocation command line was |
979273e3 NN |
12883 | |
12884 | CONFIG_FILES = $CONFIG_FILES | |
12885 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12886 | CONFIG_LINKS = $CONFIG_LINKS | |
12887 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12888 | $ $0 $@ | |
12889 | ||
81ecdfbb RW |
12890 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12891 | " | |
12892 | ||
979273e3 NN |
12893 | _ACEOF |
12894 | ||
81ecdfbb RW |
12895 | case $ac_config_files in *" |
12896 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
12897 | esac | |
979273e3 | 12898 | |
81ecdfbb RW |
12899 | case $ac_config_headers in *" |
12900 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12901 | esac | |
979273e3 | 12902 | |
979273e3 | 12903 | |
81ecdfbb RW |
12904 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12905 | # Files that config.status was made for. | |
12906 | config_files="$ac_config_files" | |
12907 | config_headers="$ac_config_headers" | |
12908 | config_commands="$ac_config_commands" | |
979273e3 | 12909 | |
81ecdfbb | 12910 | _ACEOF |
979273e3 | 12911 | |
81ecdfbb | 12912 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
979273e3 | 12913 | ac_cs_usage="\ |
81ecdfbb RW |
12914 | \`$as_me' instantiates files and other configuration actions |
12915 | from templates according to the current configuration. Unless the files | |
12916 | and actions are specified as TAGs, all are instantiated by default. | |
979273e3 | 12917 | |
81ecdfbb | 12918 | Usage: $0 [OPTION]... [TAG]... |
979273e3 NN |
12919 | |
12920 | -h, --help print this help, then exit | |
81ecdfbb | 12921 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 12922 | --config print configuration, then exit |
81ecdfbb RW |
12923 | -q, --quiet, --silent |
12924 | do not print progress messages | |
979273e3 NN |
12925 | -d, --debug don't remove temporary files |
12926 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
12927 | --file=FILE[:TEMPLATE] |
12928 | instantiate the configuration file FILE | |
12929 | --header=FILE[:TEMPLATE] | |
12930 | instantiate the configuration header FILE | |
979273e3 NN |
12931 | |
12932 | Configuration files: | |
12933 | $config_files | |
12934 | ||
12935 | Configuration headers: | |
12936 | $config_headers | |
12937 | ||
12938 | Configuration commands: | |
12939 | $config_commands | |
12940 | ||
81ecdfbb | 12941 | Report bugs to the package provider." |
979273e3 | 12942 | |
81ecdfbb RW |
12943 | _ACEOF |
12944 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 12945 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
979273e3 | 12946 | ac_cs_version="\\ |
573fe3fb | 12947 | opcodes config.status 2.36.50 |
d0ac1c44 SM |
12948 | configured by $0, generated by GNU Autoconf 2.69, |
12949 | with options \\"\$ac_cs_config\\" | |
979273e3 | 12950 | |
d0ac1c44 | 12951 | Copyright (C) 2012 Free Software Foundation, Inc. |
979273e3 NN |
12952 | This config.status script is free software; the Free Software Foundation |
12953 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
12954 | |
12955 | ac_pwd='$ac_pwd' | |
12956 | srcdir='$srcdir' | |
12957 | INSTALL='$INSTALL' | |
12958 | MKDIR_P='$MKDIR_P' | |
12959 | AWK='$AWK' | |
12960 | test -n "\$AWK" || AWK=awk | |
979273e3 NN |
12961 | _ACEOF |
12962 | ||
81ecdfbb RW |
12963 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12964 | # The default lists apply if the user does not specify any file. | |
979273e3 NN |
12965 | ac_need_defaults=: |
12966 | while test $# != 0 | |
12967 | do | |
12968 | case $1 in | |
d0ac1c44 | 12969 | --*=?*) |
81ecdfbb RW |
12970 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12971 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
979273e3 NN |
12972 | ac_shift=: |
12973 | ;; | |
d0ac1c44 SM |
12974 | --*=) |
12975 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12976 | ac_optarg= | |
12977 | ac_shift=: | |
12978 | ;; | |
81ecdfbb | 12979 | *) |
979273e3 NN |
12980 | ac_option=$1 |
12981 | ac_optarg=$2 | |
12982 | ac_shift=shift | |
12983 | ;; | |
979273e3 NN |
12984 | esac |
12985 | ||
12986 | case $ac_option in | |
12987 | # Handling of the options. | |
979273e3 NN |
12988 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
12989 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
12990 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
12991 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
12992 | --config | --confi | --conf | --con | --co | --c ) |
12993 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 12994 | --debug | --debu | --deb | --de | --d | -d ) |
979273e3 NN |
12995 | debug=: ;; |
12996 | --file | --fil | --fi | --f ) | |
12997 | $ac_shift | |
81ecdfbb RW |
12998 | case $ac_optarg in |
12999 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 13000 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
13001 | esac |
13002 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
979273e3 NN |
13003 | ac_need_defaults=false;; |
13004 | --header | --heade | --head | --hea ) | |
13005 | $ac_shift | |
81ecdfbb RW |
13006 | case $ac_optarg in |
13007 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13008 | esac | |
13009 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
979273e3 | 13010 | ac_need_defaults=false;; |
81ecdfbb RW |
13011 | --he | --h) |
13012 | # Conflict between --help and --header | |
d0ac1c44 | 13013 | as_fn_error $? "ambiguous option: \`$1' |
81ecdfbb RW |
13014 | Try \`$0 --help' for more information.";; |
13015 | --help | --hel | -h ) | |
13016 | $as_echo "$ac_cs_usage"; exit ;; | |
979273e3 NN |
13017 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13018 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13019 | ac_cs_silent=: ;; | |
13020 | ||
13021 | # This is an error. | |
d0ac1c44 | 13022 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 13023 | Try \`$0 --help' for more information." ;; |
979273e3 | 13024 | |
81ecdfbb RW |
13025 | *) as_fn_append ac_config_targets " $1" |
13026 | ac_need_defaults=false ;; | |
979273e3 NN |
13027 | |
13028 | esac | |
13029 | shift | |
252b5132 | 13030 | done |
979273e3 NN |
13031 | |
13032 | ac_configure_extra_args= | |
13033 | ||
13034 | if $ac_cs_silent; then | |
13035 | exec 6>/dev/null | |
13036 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
252b5132 | 13037 | fi |
252b5132 | 13038 | |
979273e3 | 13039 | _ACEOF |
81ecdfbb | 13040 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
979273e3 | 13041 | if \$ac_cs_recheck; then |
d0ac1c44 | 13042 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
13043 | shift |
13044 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13045 | CONFIG_SHELL='$SHELL' | |
13046 | export CONFIG_SHELL | |
13047 | exec "\$@" | |
979273e3 | 13048 | fi |
252b5132 | 13049 | |
979273e3 | 13050 | _ACEOF |
81ecdfbb RW |
13051 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13052 | exec 5>>config.log | |
13053 | { | |
13054 | echo | |
13055 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13056 | ## Running $as_me. ## | |
13057 | _ASBOX | |
13058 | $as_echo "$ac_log" | |
13059 | } >&5 | |
979273e3 | 13060 | |
81ecdfbb RW |
13061 | _ACEOF |
13062 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
979273e3 | 13063 | # |
81ecdfbb | 13064 | # INIT-COMMANDS |
979273e3 | 13065 | # |
8ae85421 | 13066 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
13067 | |
13068 | ||
13069 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
13070 | # if CDPATH is set. | |
13071 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13072 | ||
13073 | sed_quote_subst='$sed_quote_subst' | |
13074 | double_quote_subst='$double_quote_subst' | |
13075 | delay_variable_subst='$delay_variable_subst' | |
3725885a RW |
13076 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
13077 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
13078 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
13079 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
13080 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
13081 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
13082 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
13083 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
13084 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
13085 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
13086 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
13087 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
13088 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
13089 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
13090 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
13091 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
13092 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
13093 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
13094 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
13095 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
13096 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
13097 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
13098 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
13099 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
13100 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
13101 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
13102 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
13103 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
13104 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
13105 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
13106 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
13107 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
13108 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
13109 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
13110 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
13111 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
13112 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
13113 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13114 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13115 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13116 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
13117 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
13118 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
13119 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
13120 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
13121 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
13122 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
13123 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
13124 | 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"`' | |
13125 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
13126 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
13127 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
13128 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
13129 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
13130 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
13131 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
13132 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
13133 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
13134 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
13135 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
13136 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
13137 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
13138 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
13139 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
13140 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13141 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
13142 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
13143 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13144 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13145 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
13146 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
13147 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13148 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13149 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13150 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
13151 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13152 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
13153 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13154 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13155 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13156 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
13157 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
13158 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
13159 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
13160 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
13161 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13162 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
13163 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
13164 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
13165 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
13166 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
13167 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
13168 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
13169 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
13170 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
13171 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
13172 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
13173 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
13174 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
13175 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
13176 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
13177 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13178 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
13179 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
13180 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
13181 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
13182 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
13183 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13184 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13185 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
13186 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
13187 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
13188 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
13189 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
13190 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
13191 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
13192 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
13193 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
13194 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
13195 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
d7040cdb SE |
13196 | |
13197 | LTCC='$LTCC' | |
13198 | LTCFLAGS='$LTCFLAGS' | |
13199 | compiler='$compiler_DEFAULT' | |
13200 | ||
3725885a RW |
13201 | # A function that is used when there is no print builtin or printf. |
13202 | func_fallback_echo () | |
13203 | { | |
13204 | eval 'cat <<_LTECHO_EOF | |
13205 | \$1 | |
13206 | _LTECHO_EOF' | |
13207 | } | |
13208 | ||
d7040cdb | 13209 | # Quote evaled strings. |
3725885a RW |
13210 | for var in SHELL \ |
13211 | ECHO \ | |
13212 | SED \ | |
d7040cdb SE |
13213 | GREP \ |
13214 | EGREP \ | |
13215 | FGREP \ | |
13216 | LD \ | |
13217 | NM \ | |
13218 | LN_S \ | |
13219 | lt_SP2NL \ | |
13220 | lt_NL2SP \ | |
13221 | reload_flag \ | |
1927a18f | 13222 | OBJDUMP \ |
d7040cdb SE |
13223 | deplibs_check_method \ |
13224 | file_magic_cmd \ | |
13225 | AR \ | |
13226 | AR_FLAGS \ | |
13227 | STRIP \ | |
13228 | RANLIB \ | |
13229 | CC \ | |
13230 | CFLAGS \ | |
13231 | compiler \ | |
13232 | lt_cv_sys_global_symbol_pipe \ | |
13233 | lt_cv_sys_global_symbol_to_cdecl \ | |
13234 | lt_cv_sys_global_symbol_to_c_name_address \ | |
1927a18f | 13235 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
13236 | lt_prog_compiler_no_builtin_flag \ |
13237 | lt_prog_compiler_wl \ | |
13238 | lt_prog_compiler_pic \ | |
13239 | lt_prog_compiler_static \ | |
13240 | lt_cv_prog_compiler_c_o \ | |
13241 | need_locks \ | |
1927a18f L |
13242 | DSYMUTIL \ |
13243 | NMEDIT \ | |
13244 | LIPO \ | |
13245 | OTOOL \ | |
13246 | OTOOL64 \ | |
d7040cdb SE |
13247 | shrext_cmds \ |
13248 | export_dynamic_flag_spec \ | |
13249 | whole_archive_flag_spec \ | |
13250 | compiler_needs_object \ | |
13251 | with_gnu_ld \ | |
13252 | allow_undefined_flag \ | |
13253 | no_undefined_flag \ | |
13254 | hardcode_libdir_flag_spec \ | |
13255 | hardcode_libdir_flag_spec_ld \ | |
13256 | hardcode_libdir_separator \ | |
13257 | fix_srcfile_path \ | |
13258 | exclude_expsyms \ | |
13259 | include_expsyms \ | |
13260 | file_list_spec \ | |
13261 | variables_saved_for_relink \ | |
13262 | libname_spec \ | |
13263 | library_names_spec \ | |
13264 | soname_spec \ | |
3725885a | 13265 | install_override_mode \ |
d7040cdb SE |
13266 | finish_eval \ |
13267 | old_striplib \ | |
13268 | striplib; do | |
3725885a | 13269 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 13270 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 13271 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
13272 | ;; |
13273 | *) | |
13274 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13275 | ;; | |
13276 | esac | |
13277 | done | |
13278 | ||
13279 | # Double-quote double-evaled strings. | |
13280 | for var in reload_cmds \ | |
13281 | old_postinstall_cmds \ | |
13282 | old_postuninstall_cmds \ | |
13283 | old_archive_cmds \ | |
13284 | extract_expsyms_cmds \ | |
13285 | old_archive_from_new_cmds \ | |
13286 | old_archive_from_expsyms_cmds \ | |
13287 | archive_cmds \ | |
13288 | archive_expsym_cmds \ | |
13289 | module_cmds \ | |
13290 | module_expsym_cmds \ | |
13291 | export_symbols_cmds \ | |
13292 | prelink_cmds \ | |
13293 | postinstall_cmds \ | |
13294 | postuninstall_cmds \ | |
13295 | finish_cmds \ | |
13296 | sys_lib_search_path_spec \ | |
13297 | sys_lib_dlsearch_path_spec; do | |
3725885a | 13298 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 13299 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 13300 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
13301 | ;; |
13302 | *) | |
13303 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13304 | ;; | |
13305 | esac | |
13306 | done | |
13307 | ||
d7040cdb SE |
13308 | ac_aux_dir='$ac_aux_dir' |
13309 | xsi_shell='$xsi_shell' | |
13310 | lt_shell_append='$lt_shell_append' | |
13311 | ||
13312 | # See if we are running on zsh, and set the options which allow our | |
13313 | # commands through without removal of \ escapes INIT. | |
13314 | if test -n "\${ZSH_VERSION+set}" ; then | |
13315 | setopt NO_GLOB_SUBST | |
13316 | fi | |
13317 | ||
13318 | ||
13319 | PACKAGE='$PACKAGE' | |
13320 | VERSION='$VERSION' | |
13321 | TIMESTAMP='$TIMESTAMP' | |
13322 | RM='$RM' | |
13323 | ofile='$ofile' | |
13324 | ||
13325 | ||
13326 | ||
20e95c23 DJ |
13327 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
13328 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
13329 | # from automake. | |
13330 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
13331 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
13332 | LINGUAS="${LINGUAS-%UNSET%}" | |
979273e3 NN |
13333 | |
13334 | ||
13335 | _ACEOF | |
13336 | ||
81ecdfbb | 13337 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
979273e3 | 13338 | |
81ecdfbb | 13339 | # Handling of arguments. |
979273e3 NN |
13340 | for ac_config_target in $ac_config_targets |
13341 | do | |
81ecdfbb RW |
13342 | case $ac_config_target in |
13343 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
13344 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
13345 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
13346 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
13347 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13348 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
13349 | ||
d0ac1c44 | 13350 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
252b5132 | 13351 | esac |
979273e3 | 13352 | done |
252b5132 | 13353 | |
81ecdfbb | 13354 | |
979273e3 NN |
13355 | # If the user did not use the arguments to specify the items to instantiate, |
13356 | # then the envvar interface is used. Set only those that are not. | |
13357 | # We use the long form for the default assignment because of an extremely | |
13358 | # bizarre bug on SunOS 4.1.3. | |
13359 | if $ac_need_defaults; then | |
13360 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13361 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13362 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13363 | fi | |
13364 | ||
13365 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 13366 | # simply because there is no reason against having it here, and in addition, |
979273e3 | 13367 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
13368 | # Hook for its removal unless debugging. |
13369 | # Note that there is a small window in which the directory will not be cleaned: | |
13370 | # after its creation but before its name has been assigned to `$tmp'. | |
979273e3 NN |
13371 | $debug || |
13372 | { | |
d0ac1c44 | 13373 | tmp= ac_tmp= |
81ecdfbb | 13374 | trap 'exit_status=$? |
d0ac1c44 SM |
13375 | : "${ac_tmp:=$tmp}" |
13376 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
13377 | ' 0 |
13378 | trap 'as_fn_exit 1' 1 2 13 15 | |
979273e3 | 13379 | } |
979273e3 NN |
13380 | # Create a (secure) tmp directory for tmp files. |
13381 | ||
13382 | { | |
81ecdfbb | 13383 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 13384 | test -d "$tmp" |
979273e3 NN |
13385 | } || |
13386 | { | |
81ecdfbb RW |
13387 | tmp=./conf$$-$RANDOM |
13388 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
13389 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
13390 | ac_tmp=$tmp | |
81ecdfbb RW |
13391 | |
13392 | # Set up the scripts for CONFIG_FILES section. | |
13393 | # No need to generate them if there are no CONFIG_FILES. | |
13394 | # This happens for instance with `./config.status config.h'. | |
13395 | if test -n "$CONFIG_FILES"; then | |
13396 | ||
13397 | ||
13398 | ac_cr=`echo X | tr X '\015'` | |
13399 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
13400 | # But we know of no other shell where ac_cr would be empty at this | |
13401 | # point, so we can use a bashism as a fallback. | |
13402 | if test "x$ac_cr" = x; then | |
13403 | eval ac_cr=\$\'\\r\' | |
13404 | fi | |
13405 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
13406 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 13407 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
13408 | else |
13409 | ac_cs_awk_cr=$ac_cr | |
13410 | fi | |
13411 | ||
d0ac1c44 | 13412 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
13413 | _ACEOF |
13414 | ||
13415 | ||
13416 | { | |
13417 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
13418 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13419 | echo "_ACEOF" | |
13420 | } >conf$$subs.sh || | |
d0ac1c44 SM |
13421 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
13422 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
13423 | ac_delim='%!_!# ' |
13424 | for ac_last_try in false false false false false :; do | |
13425 | . ./conf$$subs.sh || | |
d0ac1c44 | 13426 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
13427 | |
13428 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
13429 | if test $ac_delim_n = $ac_delim_num; then | |
13430 | break | |
13431 | elif $ac_last_try; then | |
d0ac1c44 | 13432 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
13433 | else |
13434 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13435 | fi | |
13436 | done | |
13437 | rm -f conf$$subs.sh | |
13438 | ||
13439 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 13440 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
13441 | _ACEOF |
13442 | sed -n ' | |
13443 | h | |
13444 | s/^/S["/; s/!.*/"]=/ | |
13445 | p | |
13446 | g | |
13447 | s/^[^!]*!// | |
13448 | :repl | |
13449 | t repl | |
13450 | s/'"$ac_delim"'$// | |
13451 | t delim | |
13452 | :nl | |
13453 | h | |
d0ac1c44 | 13454 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
13455 | t more1 |
13456 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13457 | p | |
13458 | n | |
13459 | b repl | |
13460 | :more1 | |
13461 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13462 | p | |
13463 | g | |
13464 | s/.\{148\}// | |
13465 | t nl | |
13466 | :delim | |
13467 | h | |
d0ac1c44 | 13468 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
13469 | t more2 |
13470 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13471 | p | |
13472 | b | |
13473 | :more2 | |
13474 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13475 | p | |
13476 | g | |
13477 | s/.\{148\}// | |
13478 | t delim | |
13479 | ' <conf$$subs.awk | sed ' | |
13480 | /^[^""]/{ | |
13481 | N | |
13482 | s/\n// | |
13483 | } | |
13484 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13485 | rm -f conf$$subs.awk | |
13486 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13487 | _ACAWK | |
d0ac1c44 | 13488 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
13489 | for (key in S) S_is_set[key] = 1 |
13490 | FS = "\a" | |
13491 | ||
13492 | } | |
979273e3 | 13493 | { |
81ecdfbb RW |
13494 | line = $ 0 |
13495 | nfields = split(line, field, "@") | |
13496 | substed = 0 | |
13497 | len = length(field[1]) | |
13498 | for (i = 2; i < nfields; i++) { | |
13499 | key = field[i] | |
13500 | keylen = length(key) | |
13501 | if (S_is_set[key]) { | |
13502 | value = S[key] | |
13503 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13504 | len += length(value) + length(field[++i]) | |
13505 | substed = 1 | |
13506 | } else | |
13507 | len += 1 + keylen | |
13508 | } | |
13509 | ||
13510 | print line | |
979273e3 NN |
13511 | } |
13512 | ||
81ecdfbb RW |
13513 | _ACAWK |
13514 | _ACEOF | |
13515 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13516 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13517 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
13518 | else | |
13519 | cat | |
d0ac1c44 SM |
13520 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
13521 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
979273e3 NN |
13522 | _ACEOF |
13523 | ||
d0ac1c44 SM |
13524 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
13525 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
13526 | # trailing colons and then remove the whole line if VPATH becomes empty |
13527 | # (actually we leave an empty line to preserve line numbers). | |
13528 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
13529 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
13530 | h | |
13531 | s/// | |
13532 | s/^/:/ | |
13533 | s/[ ]*$/:/ | |
13534 | s/:\$(srcdir):/:/g | |
13535 | s/:\${srcdir}:/:/g | |
13536 | s/:@srcdir@:/:/g | |
13537 | s/^:*// | |
81ecdfbb | 13538 | s/:*$// |
d0ac1c44 SM |
13539 | x |
13540 | s/\(=[ ]*\).*/\1/ | |
13541 | G | |
13542 | s/\n// | |
81ecdfbb RW |
13543 | s/^[^=]*=[ ]*$// |
13544 | }' | |
13545 | fi | |
13546 | ||
13547 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13548 | fi # test -n "$CONFIG_FILES" | |
979273e3 | 13549 | |
81ecdfbb RW |
13550 | # Set up the scripts for CONFIG_HEADERS section. |
13551 | # No need to generate them if there are no CONFIG_HEADERS. | |
13552 | # This happens for instance with `./config.status Makefile'. | |
13553 | if test -n "$CONFIG_HEADERS"; then | |
d0ac1c44 | 13554 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
81ecdfbb RW |
13555 | BEGIN { |
13556 | _ACEOF | |
979273e3 | 13557 | |
81ecdfbb RW |
13558 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
13559 | # here-document in config.status, that substitutes the proper values into | |
13560 | # config.h.in to produce config.h. | |
979273e3 | 13561 | |
81ecdfbb RW |
13562 | # Create a delimiter string that does not exist in confdefs.h, to ease |
13563 | # handling of long lines. | |
13564 | ac_delim='%!_!# ' | |
13565 | for ac_last_try in false false :; do | |
d0ac1c44 SM |
13566 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
13567 | if test -z "$ac_tt"; then | |
81ecdfbb RW |
13568 | break |
13569 | elif $ac_last_try; then | |
d0ac1c44 | 13570 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
81ecdfbb RW |
13571 | else |
13572 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13573 | fi | |
13574 | done | |
13575 | ||
13576 | # For the awk script, D is an array of macro values keyed by name, | |
13577 | # likewise P contains macro parameters if any. Preserve backslash | |
13578 | # newline sequences. | |
13579 | ||
13580 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13581 | sed -n ' | |
13582 | s/.\{148\}/&'"$ac_delim"'/g | |
13583 | t rset | |
13584 | :rset | |
13585 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13586 | t def | |
13587 | d | |
13588 | :def | |
13589 | s/\\$// | |
13590 | t bsnl | |
13591 | s/["\\]/\\&/g | |
13592 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13593 | D["\1"]=" \3"/p | |
13594 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13595 | d | |
13596 | :bsnl | |
13597 | s/["\\]/\\&/g | |
13598 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13599 | D["\1"]=" \3\\\\\\n"\\/p | |
13600 | t cont | |
13601 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13602 | t cont | |
13603 | d | |
13604 | :cont | |
13605 | n | |
13606 | s/.\{148\}/&'"$ac_delim"'/g | |
13607 | t clear | |
13608 | :clear | |
13609 | s/\\$// | |
13610 | t bsnlc | |
13611 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13612 | d | |
13613 | :bsnlc | |
13614 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13615 | b cont | |
13616 | ' <confdefs.h | sed ' | |
13617 | s/'"$ac_delim"'/"\\\ | |
13618 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13619 | ||
13620 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13621 | for (key in D) D_is_set[key] = 1 | |
13622 | FS = "\a" | |
13623 | } | |
13624 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13625 | line = \$ 0 | |
13626 | split(line, arg, " ") | |
13627 | if (arg[1] == "#") { | |
13628 | defundef = arg[2] | |
13629 | mac1 = arg[3] | |
13630 | } else { | |
13631 | defundef = substr(arg[1], 2) | |
13632 | mac1 = arg[2] | |
13633 | } | |
13634 | split(mac1, mac2, "(") #) | |
13635 | macro = mac2[1] | |
13636 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13637 | if (D_is_set[macro]) { | |
13638 | # Preserve the white space surrounding the "#". | |
13639 | print prefix "define", macro P[macro] D[macro] | |
13640 | next | |
13641 | } else { | |
13642 | # Replace #undef with comments. This is necessary, for example, | |
13643 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13644 | # on some systems where configure will not decide to define it. | |
13645 | if (defundef == "undef") { | |
13646 | print "/*", prefix defundef, macro, "*/" | |
13647 | next | |
13648 | } | |
13649 | } | |
13650 | } | |
13651 | { print } | |
13652 | _ACAWK | |
979273e3 | 13653 | _ACEOF |
81ecdfbb | 13654 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d0ac1c44 | 13655 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
81ecdfbb | 13656 | fi # test -n "$CONFIG_HEADERS" |
979273e3 | 13657 | |
81ecdfbb RW |
13658 | |
13659 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
13660 | shift | |
13661 | for ac_tag | |
13662 | do | |
13663 | case $ac_tag in | |
13664 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13665 | esac | |
13666 | case $ac_mode$ac_tag in | |
13667 | :[FHL]*:*);; | |
d0ac1c44 | 13668 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
13669 | :[FH]-) ac_tag=-:-;; |
13670 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13671 | esac | |
13672 | ac_save_IFS=$IFS | |
13673 | IFS=: | |
13674 | set x $ac_tag | |
13675 | IFS=$ac_save_IFS | |
13676 | shift | |
13677 | ac_file=$1 | |
13678 | shift | |
13679 | ||
13680 | case $ac_mode in | |
13681 | :L) ac_source=$1;; | |
13682 | :[FH]) | |
13683 | ac_file_inputs= | |
13684 | for ac_f | |
13685 | do | |
13686 | case $ac_f in | |
d0ac1c44 | 13687 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
13688 | *) # Look for the file first in the build tree, then in the source tree |
13689 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13690 | # because $ac_f cannot contain `:'. | |
13691 | test -f "$ac_f" || | |
13692 | case $ac_f in | |
13693 | [\\/$]*) false;; | |
13694 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13695 | esac || | |
d0ac1c44 | 13696 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
13697 | esac |
13698 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
13699 | as_fn_append ac_file_inputs " '$ac_f'" | |
13700 | done | |
13701 | ||
13702 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13703 | # use $as_me), people would be surprised to read: | |
13704 | # /* config.h. Generated by config.status. */ | |
13705 | configure_input='Generated from '` | |
13706 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13707 | `' by configure.' | |
13708 | if test x"$ac_file" != x-; then | |
13709 | configure_input="$ac_file. $configure_input" | |
13710 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
13711 | $as_echo "$as_me: creating $ac_file" >&6;} | |
979273e3 | 13712 | fi |
81ecdfbb RW |
13713 | # Neutralize special characters interpreted by sed in replacement strings. |
13714 | case $configure_input in #( | |
13715 | *\&* | *\|* | *\\* ) | |
13716 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13717 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13718 | *) ac_sed_conf_input=$configure_input;; | |
13719 | esac | |
252b5132 | 13720 | |
81ecdfbb | 13721 | case $ac_tag in |
d0ac1c44 SM |
13722 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
13723 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
13724 | esac |
13725 | ;; | |
252b5132 RH |
13726 | esac |
13727 | ||
81ecdfbb | 13728 | ac_dir=`$as_dirname -- "$ac_file" || |
979273e3 NN |
13729 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13730 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13731 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
13732 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
13733 | $as_echo X"$ac_file" | | |
13734 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13735 | s//\1/ | |
13736 | q | |
13737 | } | |
13738 | /^X\(\/\/\)[^/].*/{ | |
13739 | s//\1/ | |
13740 | q | |
13741 | } | |
13742 | /^X\(\/\/\)$/{ | |
13743 | s//\1/ | |
13744 | q | |
13745 | } | |
13746 | /^X\(\/\).*/{ | |
13747 | s//\1/ | |
13748 | q | |
13749 | } | |
13750 | s/.*/./; q'` | |
13751 | as_dir="$ac_dir"; as_fn_mkdir_p | |
979273e3 NN |
13752 | ac_builddir=. |
13753 | ||
81ecdfbb RW |
13754 | case "$ac_dir" in |
13755 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13756 | *) | |
13757 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
13758 | # A ".." for each directory in $ac_dir_suffix. | |
13759 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
13760 | case $ac_top_builddir_sub in | |
13761 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13762 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13763 | esac ;; | |
13764 | esac | |
13765 | ac_abs_top_builddir=$ac_pwd | |
13766 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13767 | # for backward compatibility: | |
13768 | ac_top_builddir=$ac_top_build_prefix | |
979273e3 NN |
13769 | |
13770 | case $srcdir in | |
81ecdfbb | 13771 | .) # We are building in place. |
979273e3 | 13772 | ac_srcdir=. |
81ecdfbb RW |
13773 | ac_top_srcdir=$ac_top_builddir_sub |
13774 | ac_abs_top_srcdir=$ac_pwd ;; | |
13775 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
979273e3 | 13776 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
13777 | ac_top_srcdir=$srcdir |
13778 | ac_abs_top_srcdir=$srcdir ;; | |
13779 | *) # Relative name. | |
13780 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13781 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13782 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
979273e3 | 13783 | esac |
81ecdfbb | 13784 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
979273e3 | 13785 | |
252b5132 | 13786 | |
81ecdfbb RW |
13787 | case $ac_mode in |
13788 | :F) | |
13789 | # | |
13790 | # CONFIG_FILE | |
13791 | # | |
979273e3 NN |
13792 | |
13793 | case $INSTALL in | |
13794 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
13795 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
13796 | esac | |
13797 | ac_MKDIR_P=$MKDIR_P | |
13798 | case $MKDIR_P in | |
13799 | [\\/$]* | ?:[\\/]* ) ;; | |
13800 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
252b5132 | 13801 | esac |
81ecdfbb | 13802 | _ACEOF |
252b5132 | 13803 | |
81ecdfbb RW |
13804 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13805 | # If the template does not know about datarootdir, expand it. | |
13806 | # FIXME: This hack should be removed a few years after 2.60. | |
13807 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
13808 | ac_sed_dataroot=' | |
13809 | /datarootdir/ { | |
13810 | p | |
13811 | q | |
13812 | } | |
13813 | /@datadir@/p | |
13814 | /@docdir@/p | |
13815 | /@infodir@/p | |
13816 | /@localedir@/p | |
13817 | /@mandir@/p' | |
13818 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
13819 | *datarootdir*) ac_datarootdir_seen=yes;; | |
13820 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
13821 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
13822 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
13823 | _ACEOF | |
13824 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13825 | ac_datarootdir_hack=' | |
13826 | s&@datadir@&$datadir&g | |
13827 | s&@docdir@&$docdir&g | |
13828 | s&@infodir@&$infodir&g | |
13829 | s&@localedir@&$localedir&g | |
13830 | s&@mandir@&$mandir&g | |
13831 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
13832 | esac | |
979273e3 | 13833 | _ACEOF |
81ecdfbb RW |
13834 | |
13835 | # Neutralize VPATH when `$srcdir' = `.'. | |
13836 | # Shell code in configure.ac might set extrasub. | |
13837 | # FIXME: do we really want to maintain this feature? | |
13838 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13839 | ac_sed_extra="$ac_vpsub | |
979273e3 NN |
13840 | $extrasub |
13841 | _ACEOF | |
81ecdfbb | 13842 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
979273e3 NN |
13843 | :t |
13844 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
13845 | s|@configure_input@|$ac_sed_conf_input|;t t |
13846 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13847 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
13848 | s&@srcdir@&$ac_srcdir&;t t | |
13849 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13850 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13851 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13852 | s&@builddir@&$ac_builddir&;t t | |
13853 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13854 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13855 | s&@INSTALL@&$ac_INSTALL&;t t | |
13856 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
13857 | $ac_datarootdir_hack | |
13858 | " | |
d0ac1c44 SM |
13859 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
13860 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
13861 | |
13862 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
13863 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
13864 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
13865 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 13866 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 13867 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 13868 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 13869 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 13870 | |
d0ac1c44 | 13871 | rm -f "$ac_tmp/stdin" |
979273e3 | 13872 | case $ac_file in |
d0ac1c44 SM |
13873 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
13874 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 13875 | esac \ |
d0ac1c44 | 13876 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb RW |
13877 | ;; |
13878 | :H) | |
13879 | # | |
13880 | # CONFIG_HEADER | |
13881 | # | |
979273e3 | 13882 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
13883 | { |
13884 | $as_echo "/* $configure_input */" \ | |
d0ac1c44 SM |
13885 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
13886 | } >"$ac_tmp/config.h" \ | |
13887 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
13888 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
81ecdfbb RW |
13889 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
13890 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
979273e3 | 13891 | else |
81ecdfbb | 13892 | rm -f "$ac_file" |
d0ac1c44 SM |
13893 | mv "$ac_tmp/config.h" "$ac_file" \ |
13894 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
252b5132 | 13895 | fi |
979273e3 | 13896 | else |
81ecdfbb | 13897 | $as_echo "/* $configure_input */" \ |
d0ac1c44 SM |
13898 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
13899 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
252b5132 | 13900 | fi |
81ecdfbb RW |
13901 | # Compute "$ac_file"'s index in $config_headers. |
13902 | _am_arg="$ac_file" | |
8ae85421 AM |
13903 | _am_stamp_count=1 |
13904 | for _am_header in $config_headers :; do | |
13905 | case $_am_header in | |
81ecdfbb | 13906 | $_am_arg | $_am_arg:* ) |
8ae85421 AM |
13907 | break ;; |
13908 | * ) | |
13909 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13910 | esac | |
13911 | done | |
81ecdfbb RW |
13912 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
13913 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13914 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
13915 | X"$_am_arg" : 'X\(//\)$' \| \ | |
13916 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
13917 | $as_echo X"$_am_arg" | | |
13918 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13919 | s//\1/ | |
13920 | q | |
13921 | } | |
13922 | /^X\(\/\/\)[^/].*/{ | |
13923 | s//\1/ | |
13924 | q | |
13925 | } | |
13926 | /^X\(\/\/\)$/{ | |
13927 | s//\1/ | |
13928 | q | |
13929 | } | |
13930 | /^X\(\/\).*/{ | |
13931 | s//\1/ | |
13932 | q | |
13933 | } | |
13934 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
13935 | ;; | |
979273e3 | 13936 | |
81ecdfbb RW |
13937 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
13938 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
13939 | ;; | |
13940 | esac | |
979273e3 NN |
13941 | |
13942 | ||
81ecdfbb RW |
13943 | case $ac_file$ac_mode in |
13944 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
d0ac1c44 | 13945 | # Older Autoconf quotes --file arguments for eval, but not when files |
81ecdfbb RW |
13946 | # are listed without --file. Let's play safe and only enable the eval |
13947 | # if we detect the quoting. | |
13948 | case $CONFIG_FILES in | |
13949 | *\'*) eval set x "$CONFIG_FILES" ;; | |
13950 | *) set x $CONFIG_FILES ;; | |
13951 | esac | |
13952 | shift | |
13953 | for mf | |
13954 | do | |
13955 | # Strip MF so we end up with the name of the file. | |
13956 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13957 | # Check whether this is an Automake generated Makefile or not. | |
d0ac1c44 | 13958 | # We used to match only the files named 'Makefile.in', but |
81ecdfbb RW |
13959 | # some people rename them; so instead we look at the file content. |
13960 | # Grep'ing the first line is not enough: some people post-process | |
13961 | # each Makefile.in and add a new line on top of each file to say so. | |
13962 | # Grep'ing the whole file is not good either: AIX grep has a line | |
13963 | # limit of 2048, but all sed's we know have understand at least 4000. | |
13964 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
13965 | dirpart=`$as_dirname -- "$mf" || | |
8ae85421 AM |
13966 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13967 | X"$mf" : 'X\(//\)[^/]' \| \ | |
13968 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
13969 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
13970 | $as_echo X"$mf" | | |
13971 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13972 | s//\1/ | |
13973 | q | |
13974 | } | |
13975 | /^X\(\/\/\)[^/].*/{ | |
13976 | s//\1/ | |
13977 | q | |
13978 | } | |
13979 | /^X\(\/\/\)$/{ | |
13980 | s//\1/ | |
13981 | q | |
13982 | } | |
13983 | /^X\(\/\).*/{ | |
13984 | s//\1/ | |
13985 | q | |
13986 | } | |
13987 | s/.*/./; q'` | |
13988 | else | |
13989 | continue | |
13990 | fi | |
13991 | # Extract the definition of DEPDIR, am__include, and am__quote | |
d0ac1c44 | 13992 | # from the Makefile without running 'make'. |
81ecdfbb RW |
13993 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
13994 | test -z "$DEPDIR" && continue | |
13995 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
d0ac1c44 | 13996 | test -z "$am__include" && continue |
81ecdfbb | 13997 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
81ecdfbb RW |
13998 | # Find all dependency output files, they are included files with |
13999 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14000 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
14001 | # expansion. | |
14002 | for file in `sed -n " | |
14003 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
d0ac1c44 | 14004 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
81ecdfbb RW |
14005 | # Make sure the directory exists. |
14006 | test -f "$dirpart/$file" && continue | |
14007 | fdir=`$as_dirname -- "$file" || | |
8ae85421 AM |
14008 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14009 | X"$file" : 'X\(//\)[^/]' \| \ | |
14010 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14011 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
14012 | $as_echo X"$file" | | |
14013 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14014 | s//\1/ | |
14015 | q | |
14016 | } | |
14017 | /^X\(\/\/\)[^/].*/{ | |
14018 | s//\1/ | |
14019 | q | |
14020 | } | |
14021 | /^X\(\/\/\)$/{ | |
14022 | s//\1/ | |
14023 | q | |
14024 | } | |
14025 | /^X\(\/\).*/{ | |
14026 | s//\1/ | |
14027 | q | |
14028 | } | |
14029 | s/.*/./; q'` | |
14030 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
14031 | # echo "creating $dirpart/$file" | |
14032 | echo '# dummy' > "$dirpart/$file" | |
8ae85421 | 14033 | done |
8ae85421 | 14034 | done |
81ecdfbb | 14035 | } |
d7040cdb | 14036 | ;; |
81ecdfbb | 14037 | "libtool":C) |
d7040cdb SE |
14038 | |
14039 | # See if we are running on zsh, and set the options which allow our | |
14040 | # commands through without removal of \ escapes. | |
14041 | if test -n "${ZSH_VERSION+set}" ; then | |
14042 | setopt NO_GLOB_SUBST | |
14043 | fi | |
14044 | ||
14045 | cfgfile="${ofile}T" | |
14046 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
14047 | $RM "$cfgfile" | |
14048 | ||
14049 | cat <<_LT_EOF >> "$cfgfile" | |
14050 | #! $SHELL | |
14051 | ||
14052 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
1927a18f | 14053 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
14054 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
14055 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
14056 | # | |
1927a18f | 14057 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
3725885a | 14058 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
1927a18f | 14059 | # Written by Gordon Matzigkeit, 1996 |
d7040cdb | 14060 | # |
1927a18f | 14061 | # This file is part of GNU Libtool. |
d7040cdb | 14062 | # |
1927a18f L |
14063 | # GNU Libtool is free software; you can redistribute it and/or |
14064 | # modify it under the terms of the GNU General Public License as | |
14065 | # published by the Free Software Foundation; either version 2 of | |
14066 | # the License, or (at your option) any later version. | |
d7040cdb | 14067 | # |
1927a18f L |
14068 | # As a special exception to the GNU General Public License, |
14069 | # if you distribute this file as part of a program or library that | |
14070 | # is built using GNU Libtool, you may include this file under the | |
14071 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 14072 | # |
1927a18f L |
14073 | # GNU Libtool is distributed in the hope that it will be useful, |
14074 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14075 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14076 | # GNU General Public License for more details. | |
d7040cdb | 14077 | # |
1927a18f L |
14078 | # You should have received a copy of the GNU General Public License |
14079 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
14080 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
14081 | # obtained by writing to the Free Software Foundation, Inc., | |
14082 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
14083 | |
14084 | ||
14085 | # The names of the tagged configurations supported by this script. | |
14086 | available_tags="" | |
14087 | ||
14088 | # ### BEGIN LIBTOOL CONFIG | |
14089 | ||
14090 | # Whether or not to build shared libraries. | |
14091 | build_libtool_libs=$enable_shared | |
14092 | ||
14093 | # Which release of libtool.m4 was used? | |
14094 | macro_version=$macro_version | |
14095 | macro_revision=$macro_revision | |
14096 | ||
14097 | # Whether or not to build static libraries. | |
14098 | build_old_libs=$enable_static | |
14099 | ||
14100 | # What type of objects to build. | |
14101 | pic_mode=$pic_mode | |
14102 | ||
14103 | # Whether or not to optimize for fast installation. | |
14104 | fast_install=$enable_fast_install | |
14105 | ||
3725885a RW |
14106 | # Shell to use when invoking shell scripts. |
14107 | SHELL=$lt_SHELL | |
14108 | ||
14109 | # An echo program that protects backslashes. | |
14110 | ECHO=$lt_ECHO | |
14111 | ||
d7040cdb SE |
14112 | # The host system. |
14113 | host_alias=$host_alias | |
14114 | host=$host | |
14115 | host_os=$host_os | |
14116 | ||
14117 | # The build system. | |
14118 | build_alias=$build_alias | |
14119 | build=$build | |
14120 | build_os=$build_os | |
14121 | ||
14122 | # A sed program that does not truncate output. | |
14123 | SED=$lt_SED | |
14124 | ||
14125 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
14126 | Xsed="\$SED -e 1s/^X//" | |
14127 | ||
14128 | # A grep program that handles long lines. | |
14129 | GREP=$lt_GREP | |
14130 | ||
14131 | # An ERE matcher. | |
14132 | EGREP=$lt_EGREP | |
14133 | ||
14134 | # A literal string matcher. | |
14135 | FGREP=$lt_FGREP | |
14136 | ||
14137 | # A BSD- or MS-compatible name lister. | |
14138 | NM=$lt_NM | |
14139 | ||
14140 | # Whether we need soft or hard links. | |
14141 | LN_S=$lt_LN_S | |
14142 | ||
14143 | # What is the maximum length of a command? | |
14144 | max_cmd_len=$max_cmd_len | |
14145 | ||
14146 | # Object file suffix (normally "o"). | |
14147 | objext=$ac_objext | |
14148 | ||
14149 | # Executable file suffix (normally ""). | |
14150 | exeext=$exeext | |
14151 | ||
14152 | # whether the shell understands "unset". | |
14153 | lt_unset=$lt_unset | |
14154 | ||
14155 | # turn spaces into newlines. | |
14156 | SP2NL=$lt_lt_SP2NL | |
14157 | ||
14158 | # turn newlines into spaces. | |
14159 | NL2SP=$lt_lt_NL2SP | |
14160 | ||
1927a18f L |
14161 | # An object symbol dumper. |
14162 | OBJDUMP=$lt_OBJDUMP | |
14163 | ||
d7040cdb SE |
14164 | # Method to check whether dependent libraries are shared objects. |
14165 | deplibs_check_method=$lt_deplibs_check_method | |
14166 | ||
14167 | # Command to use when deplibs_check_method == "file_magic". | |
14168 | file_magic_cmd=$lt_file_magic_cmd | |
14169 | ||
14170 | # The archiver. | |
14171 | AR=$lt_AR | |
14172 | AR_FLAGS=$lt_AR_FLAGS | |
14173 | ||
14174 | # A symbol stripping program. | |
14175 | STRIP=$lt_STRIP | |
14176 | ||
14177 | # Commands used to install an old-style archive. | |
14178 | RANLIB=$lt_RANLIB | |
14179 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14180 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14181 | ||
3725885a RW |
14182 | # Whether to use a lock for old archive extraction. |
14183 | lock_old_archive_extraction=$lock_old_archive_extraction | |
14184 | ||
d7040cdb SE |
14185 | # A C compiler. |
14186 | LTCC=$lt_CC | |
14187 | ||
14188 | # LTCC compiler flags. | |
14189 | LTCFLAGS=$lt_CFLAGS | |
14190 | ||
14191 | # Take the output of nm and produce a listing of raw symbols and C names. | |
14192 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14193 | ||
14194 | # Transform the output of nm in a proper C declaration. | |
14195 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14196 | ||
14197 | # Transform the output of nm in a C name address pair. | |
14198 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14199 | ||
1927a18f L |
14200 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
14201 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
14202 | ||
d7040cdb SE |
14203 | # The name of the directory that contains temporary libtool files. |
14204 | objdir=$objdir | |
14205 | ||
d7040cdb SE |
14206 | # Used to examine libraries when file_magic_cmd begins with "file". |
14207 | MAGIC_CMD=$MAGIC_CMD | |
14208 | ||
14209 | # Must we lock files when doing compilation? | |
14210 | need_locks=$lt_need_locks | |
14211 | ||
1927a18f L |
14212 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
14213 | DSYMUTIL=$lt_DSYMUTIL | |
14214 | ||
14215 | # Tool to change global to local symbols on Mac OS X. | |
14216 | NMEDIT=$lt_NMEDIT | |
14217 | ||
14218 | # Tool to manipulate fat objects and archives on Mac OS X. | |
14219 | LIPO=$lt_LIPO | |
14220 | ||
14221 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
14222 | OTOOL=$lt_OTOOL | |
14223 | ||
14224 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
14225 | OTOOL64=$lt_OTOOL64 | |
14226 | ||
d7040cdb SE |
14227 | # Old archive suffix (normally "a"). |
14228 | libext=$libext | |
14229 | ||
14230 | # Shared library suffix (normally ".so"). | |
14231 | shrext_cmds=$lt_shrext_cmds | |
14232 | ||
14233 | # The commands to extract the exported symbol list from a shared archive. | |
14234 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
14235 | ||
14236 | # Variables whose values should be saved in libtool wrapper scripts and | |
14237 | # restored at link time. | |
14238 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
14239 | ||
14240 | # Do we need the "lib" prefix for modules? | |
14241 | need_lib_prefix=$need_lib_prefix | |
14242 | ||
14243 | # Do we need a version for libraries? | |
14244 | need_version=$need_version | |
14245 | ||
14246 | # Library versioning type. | |
14247 | version_type=$version_type | |
14248 | ||
14249 | # Shared library runtime path variable. | |
14250 | runpath_var=$runpath_var | |
14251 | ||
14252 | # Shared library path variable. | |
14253 | shlibpath_var=$shlibpath_var | |
14254 | ||
14255 | # Is shlibpath searched before the hard-coded library search path? | |
14256 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
14257 | ||
14258 | # Format of library name prefix. | |
14259 | libname_spec=$lt_libname_spec | |
14260 | ||
14261 | # List of archive names. First name is the real one, the rest are links. | |
14262 | # The last name is the one that the linker finds with -lNAME | |
14263 | library_names_spec=$lt_library_names_spec | |
14264 | ||
14265 | # The coded name of the library, if different from the real name. | |
14266 | soname_spec=$lt_soname_spec | |
14267 | ||
3725885a RW |
14268 | # Permission mode override for installation of shared libraries. |
14269 | install_override_mode=$lt_install_override_mode | |
14270 | ||
d7040cdb SE |
14271 | # Command to use after installation of a shared archive. |
14272 | postinstall_cmds=$lt_postinstall_cmds | |
14273 | ||
14274 | # Command to use after uninstallation of a shared archive. | |
14275 | postuninstall_cmds=$lt_postuninstall_cmds | |
14276 | ||
14277 | # Commands used to finish a libtool library installation in a directory. | |
14278 | finish_cmds=$lt_finish_cmds | |
14279 | ||
14280 | # As "finish_cmds", except a single script fragment to be evaled but | |
14281 | # not shown. | |
14282 | finish_eval=$lt_finish_eval | |
14283 | ||
14284 | # Whether we should hardcode library paths into libraries. | |
14285 | hardcode_into_libs=$hardcode_into_libs | |
14286 | ||
14287 | # Compile-time system search path for libraries. | |
14288 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
14289 | ||
14290 | # Run-time system search path for libraries. | |
14291 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
14292 | ||
14293 | # Whether dlopen is supported. | |
14294 | dlopen_support=$enable_dlopen | |
14295 | ||
14296 | # Whether dlopen of programs is supported. | |
14297 | dlopen_self=$enable_dlopen_self | |
14298 | ||
14299 | # Whether dlopen of statically linked programs is supported. | |
14300 | dlopen_self_static=$enable_dlopen_self_static | |
14301 | ||
14302 | # Commands to strip libraries. | |
14303 | old_striplib=$lt_old_striplib | |
14304 | striplib=$lt_striplib | |
14305 | ||
14306 | ||
14307 | # The linker used to build libraries. | |
14308 | LD=$lt_LD | |
14309 | ||
3725885a RW |
14310 | # How to create reloadable object files. |
14311 | reload_flag=$lt_reload_flag | |
14312 | reload_cmds=$lt_reload_cmds | |
14313 | ||
d7040cdb SE |
14314 | # Commands used to build an old-style archive. |
14315 | old_archive_cmds=$lt_old_archive_cmds | |
14316 | ||
14317 | # A language specific compiler. | |
14318 | CC=$lt_compiler | |
14319 | ||
14320 | # Is the compiler the GNU compiler? | |
14321 | with_gcc=$GCC | |
14322 | ||
14323 | # Compiler flag to turn off builtin functions. | |
14324 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
14325 | ||
14326 | # How to pass a linker flag through the compiler. | |
14327 | wl=$lt_lt_prog_compiler_wl | |
14328 | ||
14329 | # Additional compiler flags for building library objects. | |
14330 | pic_flag=$lt_lt_prog_compiler_pic | |
14331 | ||
14332 | # Compiler flag to prevent dynamic linking. | |
14333 | link_static_flag=$lt_lt_prog_compiler_static | |
14334 | ||
14335 | # Does compiler simultaneously support -c and -o options? | |
14336 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
14337 | ||
14338 | # Whether or not to add -lc for building shared libraries. | |
14339 | build_libtool_need_lc=$archive_cmds_need_lc | |
14340 | ||
14341 | # Whether or not to disallow shared libs when runtime libs are static. | |
14342 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
14343 | ||
14344 | # Compiler flag to allow reflexive dlopens. | |
14345 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
14346 | ||
14347 | # Compiler flag to generate shared objects directly from archives. | |
14348 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
14349 | ||
14350 | # Whether the compiler copes with passing no objects directly. | |
14351 | compiler_needs_object=$lt_compiler_needs_object | |
14352 | ||
14353 | # Create an old-style archive from a shared archive. | |
14354 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
14355 | ||
14356 | # Create a temporary old-style archive to link instead of a shared archive. | |
14357 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
14358 | ||
14359 | # Commands used to build a shared archive. | |
14360 | archive_cmds=$lt_archive_cmds | |
14361 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
14362 | ||
14363 | # Commands used to build a loadable module if different from building | |
14364 | # a shared archive. | |
14365 | module_cmds=$lt_module_cmds | |
14366 | module_expsym_cmds=$lt_module_expsym_cmds | |
14367 | ||
14368 | # Whether we are building with GNU ld or not. | |
14369 | with_gnu_ld=$lt_with_gnu_ld | |
14370 | ||
14371 | # Flag that allows shared libraries with undefined symbols to be built. | |
14372 | allow_undefined_flag=$lt_allow_undefined_flag | |
14373 | ||
14374 | # Flag that enforces no undefined symbols. | |
14375 | no_undefined_flag=$lt_no_undefined_flag | |
14376 | ||
14377 | # Flag to hardcode \$libdir into a binary during linking. | |
14378 | # This must work even if \$libdir does not exist | |
14379 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
14380 | ||
14381 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
14382 | # during linking. This must work even if \$libdir does not exist. | |
14383 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
14384 | ||
14385 | # Whether we need a single "-rpath" flag with a separated argument. | |
14386 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
14387 | ||
14388 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
14389 | # DIR into the resulting binary. | |
14390 | hardcode_direct=$hardcode_direct | |
14391 | ||
14392 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
14393 | # DIR into the resulting binary and the resulting library dependency is | |
14394 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
14395 | # library is relocated. | |
14396 | hardcode_direct_absolute=$hardcode_direct_absolute | |
14397 | ||
14398 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
14399 | # into the resulting binary. | |
14400 | hardcode_minus_L=$hardcode_minus_L | |
14401 | ||
14402 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
14403 | # into the resulting binary. | |
14404 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
14405 | ||
14406 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
14407 | # into the library and all subsequent libraries and executables linked | |
14408 | # against it. | |
14409 | hardcode_automatic=$hardcode_automatic | |
14410 | ||
14411 | # Set to yes if linker adds runtime paths of dependent libraries | |
14412 | # to runtime path list. | |
14413 | inherit_rpath=$inherit_rpath | |
14414 | ||
14415 | # Whether libtool must link a program against all its dependency libraries. | |
14416 | link_all_deplibs=$link_all_deplibs | |
14417 | ||
14418 | # Fix the shell variable \$srcfile for the compiler. | |
14419 | fix_srcfile_path=$lt_fix_srcfile_path | |
14420 | ||
14421 | # Set to "yes" if exported symbols are required. | |
14422 | always_export_symbols=$always_export_symbols | |
14423 | ||
14424 | # The commands to list exported symbols. | |
14425 | export_symbols_cmds=$lt_export_symbols_cmds | |
14426 | ||
14427 | # Symbols that should not be listed in the preloaded symbols. | |
14428 | exclude_expsyms=$lt_exclude_expsyms | |
14429 | ||
14430 | # Symbols that must always be exported. | |
14431 | include_expsyms=$lt_include_expsyms | |
14432 | ||
14433 | # Commands necessary for linking programs (against libraries) with templates. | |
14434 | prelink_cmds=$lt_prelink_cmds | |
14435 | ||
14436 | # Specify filename containing input files. | |
14437 | file_list_spec=$lt_file_list_spec | |
14438 | ||
14439 | # How to hardcode a shared library path into an executable. | |
14440 | hardcode_action=$hardcode_action | |
14441 | ||
14442 | # ### END LIBTOOL CONFIG | |
14443 | ||
14444 | _LT_EOF | |
14445 | ||
14446 | case $host_os in | |
14447 | aix3*) | |
14448 | cat <<\_LT_EOF >> "$cfgfile" | |
14449 | # AIX sometimes has problems with the GCC collect2 program. For some | |
14450 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
14451 | # vanish in a puff of smoke. | |
14452 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
14453 | COLLECT_NAMES= | |
14454 | export COLLECT_NAMES | |
14455 | fi | |
14456 | _LT_EOF | |
14457 | ;; | |
14458 | esac | |
14459 | ||
14460 | ||
14461 | ltmain="$ac_aux_dir/ltmain.sh" | |
14462 | ||
14463 | ||
14464 | # We use sed instead of cat because bash on DJGPP gets confused if | |
14465 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
14466 | # text mode, it properly converts lines to CR/LF. This bash problem | |
14467 | # is reportedly fixed, but why not run on old versions too? | |
14468 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
14469 | || (rm -f "$cfgfile"; exit 1) | |
14470 | ||
14471 | case $xsi_shell in | |
14472 | yes) | |
14473 | cat << \_LT_EOF >> "$cfgfile" | |
1927a18f | 14474 | |
d7040cdb SE |
14475 | # func_dirname file append nondir_replacement |
14476 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14477 | # otherwise set result to NONDIR_REPLACEMENT. | |
14478 | func_dirname () | |
14479 | { | |
14480 | case ${1} in | |
14481 | */*) func_dirname_result="${1%/*}${2}" ;; | |
14482 | * ) func_dirname_result="${3}" ;; | |
14483 | esac | |
14484 | } | |
14485 | ||
14486 | # func_basename file | |
14487 | func_basename () | |
14488 | { | |
14489 | func_basename_result="${1##*/}" | |
14490 | } | |
14491 | ||
1927a18f L |
14492 | # func_dirname_and_basename file append nondir_replacement |
14493 | # perform func_basename and func_dirname in a single function | |
14494 | # call: | |
14495 | # dirname: Compute the dirname of FILE. If nonempty, | |
14496 | # add APPEND to the result, otherwise set result | |
14497 | # to NONDIR_REPLACEMENT. | |
14498 | # value returned in "$func_dirname_result" | |
14499 | # basename: Compute filename of FILE. | |
14500 | # value retuned in "$func_basename_result" | |
14501 | # Implementation must be kept synchronized with func_dirname | |
14502 | # and func_basename. For efficiency, we do not delegate to | |
14503 | # those functions but instead duplicate the functionality here. | |
14504 | func_dirname_and_basename () | |
14505 | { | |
14506 | case ${1} in | |
14507 | */*) func_dirname_result="${1%/*}${2}" ;; | |
14508 | * ) func_dirname_result="${3}" ;; | |
14509 | esac | |
14510 | func_basename_result="${1##*/}" | |
14511 | } | |
14512 | ||
d7040cdb SE |
14513 | # func_stripname prefix suffix name |
14514 | # strip PREFIX and SUFFIX off of NAME. | |
14515 | # PREFIX and SUFFIX must not contain globbing or regex special | |
14516 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14517 | # dot (in which case that matches only a dot). | |
14518 | func_stripname () | |
14519 | { | |
14520 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
14521 | # positional parameters, so assign one to ordinary parameter first. | |
14522 | func_stripname_result=${3} | |
14523 | func_stripname_result=${func_stripname_result#"${1}"} | |
14524 | func_stripname_result=${func_stripname_result%"${2}"} | |
14525 | } | |
14526 | ||
14527 | # func_opt_split | |
14528 | func_opt_split () | |
14529 | { | |
14530 | func_opt_split_opt=${1%%=*} | |
14531 | func_opt_split_arg=${1#*=} | |
14532 | } | |
14533 | ||
14534 | # func_lo2o object | |
14535 | func_lo2o () | |
14536 | { | |
14537 | case ${1} in | |
14538 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
14539 | *) func_lo2o_result=${1} ;; | |
14540 | esac | |
14541 | } | |
1927a18f L |
14542 | |
14543 | # func_xform libobj-or-source | |
14544 | func_xform () | |
14545 | { | |
14546 | func_xform_result=${1%.*}.lo | |
14547 | } | |
14548 | ||
14549 | # func_arith arithmetic-term... | |
14550 | func_arith () | |
14551 | { | |
14552 | func_arith_result=$(( $* )) | |
14553 | } | |
14554 | ||
14555 | # func_len string | |
14556 | # STRING may not start with a hyphen. | |
14557 | func_len () | |
14558 | { | |
14559 | func_len_result=${#1} | |
14560 | } | |
14561 | ||
d7040cdb SE |
14562 | _LT_EOF |
14563 | ;; | |
14564 | *) # Bourne compatible functions. | |
14565 | cat << \_LT_EOF >> "$cfgfile" | |
1927a18f | 14566 | |
d7040cdb SE |
14567 | # func_dirname file append nondir_replacement |
14568 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14569 | # otherwise set result to NONDIR_REPLACEMENT. | |
14570 | func_dirname () | |
14571 | { | |
14572 | # Extract subdirectory from the argument. | |
3725885a | 14573 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
d7040cdb SE |
14574 | if test "X$func_dirname_result" = "X${1}"; then |
14575 | func_dirname_result="${3}" | |
14576 | else | |
14577 | func_dirname_result="$func_dirname_result${2}" | |
14578 | fi | |
14579 | } | |
14580 | ||
14581 | # func_basename file | |
14582 | func_basename () | |
14583 | { | |
3725885a | 14584 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
d7040cdb SE |
14585 | } |
14586 | ||
1927a18f | 14587 | |
d7040cdb SE |
14588 | # func_stripname prefix suffix name |
14589 | # strip PREFIX and SUFFIX off of NAME. | |
14590 | # PREFIX and SUFFIX must not contain globbing or regex special | |
14591 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14592 | # dot (in which case that matches only a dot). | |
14593 | # func_strip_suffix prefix name | |
14594 | func_stripname () | |
14595 | { | |
14596 | case ${2} in | |
3725885a RW |
14597 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
14598 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
d7040cdb SE |
14599 | esac |
14600 | } | |
14601 | ||
14602 | # sed scripts: | |
14603 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
14604 | my_sed_long_arg='1s/^-[^=]*=//' | |
14605 | ||
14606 | # func_opt_split | |
14607 | func_opt_split () | |
14608 | { | |
3725885a RW |
14609 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
14610 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
d7040cdb SE |
14611 | } |
14612 | ||
14613 | # func_lo2o object | |
14614 | func_lo2o () | |
14615 | { | |
3725885a | 14616 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
d7040cdb | 14617 | } |
1927a18f L |
14618 | |
14619 | # func_xform libobj-or-source | |
14620 | func_xform () | |
14621 | { | |
3725885a | 14622 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
1927a18f L |
14623 | } |
14624 | ||
14625 | # func_arith arithmetic-term... | |
14626 | func_arith () | |
14627 | { | |
14628 | func_arith_result=`expr "$@"` | |
14629 | } | |
14630 | ||
14631 | # func_len string | |
14632 | # STRING may not start with a hyphen. | |
14633 | func_len () | |
14634 | { | |
14635 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
14636 | } | |
14637 | ||
d7040cdb SE |
14638 | _LT_EOF |
14639 | esac | |
14640 | ||
14641 | case $lt_shell_append in | |
14642 | yes) | |
14643 | cat << \_LT_EOF >> "$cfgfile" | |
14644 | ||
14645 | # func_append var value | |
14646 | # Append VALUE to the end of shell variable VAR. | |
14647 | func_append () | |
14648 | { | |
14649 | eval "$1+=\$2" | |
14650 | } | |
14651 | _LT_EOF | |
14652 | ;; | |
14653 | *) | |
14654 | cat << \_LT_EOF >> "$cfgfile" | |
14655 | ||
14656 | # func_append var value | |
14657 | # Append VALUE to the end of shell variable VAR. | |
14658 | func_append () | |
14659 | { | |
14660 | eval "$1=\$$1\$2" | |
14661 | } | |
1927a18f | 14662 | |
d7040cdb SE |
14663 | _LT_EOF |
14664 | ;; | |
14665 | esac | |
14666 | ||
14667 | ||
14668 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
14669 | || (rm -f "$cfgfile"; exit 1) | |
14670 | ||
14671 | mv -f "$cfgfile" "$ofile" || | |
14672 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
14673 | chmod +x "$ofile" | |
14674 | ||
8ae85421 | 14675 | ;; |
81ecdfbb | 14676 | "default-1":C) |
20e95c23 DJ |
14677 | for ac_file in $CONFIG_FILES; do |
14678 | # Support "outfile[:infile[:infile...]]" | |
14679 | case "$ac_file" in | |
14680 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
14681 | esac | |
14682 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
14683 | case "$ac_file" in */Makefile.in) | |
14684 | # Adjust a relative srcdir. | |
14685 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
3cac54d2 | 14686 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
20e95c23 DJ |
14687 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
14688 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
14689 | # In autoconf-2.50 it is called $srcdir. | |
14690 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
14691 | case "$ac_given_srcdir" in | |
14692 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
14693 | /*) top_srcdir="$ac_given_srcdir" ;; | |
14694 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
14695 | esac | |
14696 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
14697 | rm -f "$ac_dir/POTFILES" | |
14698 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
14699 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
14700 | POMAKEFILEDEPS="POTFILES.in" | |
14701 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
14702 | # on $ac_dir but don't depend on user-specified configuration | |
14703 | # parameters. | |
14704 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
14705 | # The LINGUAS file contains the set of available languages. | |
14706 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
37a42ee9 | 14707 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" |
20e95c23 DJ |
14708 | fi |
14709 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
14710 | # Hide the ALL_LINGUAS assigment from automake. | |
14711 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
14712 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
14713 | else | |
37a42ee9 | 14714 | # The set of available languages was given in configure.ac. |
20e95c23 DJ |
14715 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
14716 | fi | |
14717 | case "$ac_given_srcdir" in | |
14718 | .) srcdirpre= ;; | |
14719 | *) srcdirpre='$(srcdir)/' ;; | |
14720 | esac | |
14721 | POFILES= | |
14722 | GMOFILES= | |
14723 | UPDATEPOFILES= | |
14724 | DUMMYPOFILES= | |
14725 | for lang in $ALL_LINGUAS; do | |
14726 | POFILES="$POFILES $srcdirpre$lang.po" | |
14727 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
14728 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
14729 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
14730 | done | |
14731 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
14732 | # environment variable. | |
14733 | INST_LINGUAS= | |
14734 | if test -n "$ALL_LINGUAS"; then | |
14735 | for presentlang in $ALL_LINGUAS; do | |
14736 | useit=no | |
14737 | if test "%UNSET%" != "$LINGUAS"; then | |
14738 | desiredlanguages="$LINGUAS" | |
14739 | else | |
14740 | desiredlanguages="$ALL_LINGUAS" | |
14741 | fi | |
14742 | for desiredlang in $desiredlanguages; do | |
14743 | # Use the presentlang catalog if desiredlang is | |
14744 | # a. equal to presentlang, or | |
14745 | # b. a variant of presentlang (because in this case, | |
14746 | # presentlang can be used as a fallback for messages | |
14747 | # which are not translated in the desiredlang catalog). | |
14748 | case "$desiredlang" in | |
14749 | "$presentlang"*) useit=yes;; | |
14750 | esac | |
14751 | done | |
14752 | if test $useit = yes; then | |
14753 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
14754 | fi | |
14755 | done | |
14756 | fi | |
14757 | CATALOGS= | |
14758 | if test -n "$INST_LINGUAS"; then | |
14759 | for lang in $INST_LINGUAS; do | |
14760 | CATALOGS="$CATALOGS $lang.gmo" | |
14761 | done | |
14762 | fi | |
14763 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
14764 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
14765 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
14766 | if test -f "$f"; then | |
14767 | case "$f" in | |
14768 | *.orig | *.bak | *~) ;; | |
14769 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
14770 | esac | |
14771 | fi | |
14772 | done | |
14773 | fi | |
14774 | ;; | |
14775 | esac | |
14776 | done ;; | |
81ecdfbb | 14777 | |
979273e3 | 14778 | esac |
81ecdfbb | 14779 | done # for ac_tag |
979273e3 | 14780 | |
979273e3 | 14781 | |
81ecdfbb | 14782 | as_fn_exit 0 |
979273e3 | 14783 | _ACEOF |
979273e3 NN |
14784 | ac_clean_files=$ac_clean_files_save |
14785 | ||
81ecdfbb | 14786 | test $ac_write_fail = 0 || |
d0ac1c44 | 14787 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 14788 | |
979273e3 NN |
14789 | |
14790 | # configure is writing to config.log, and then calls config.status. | |
14791 | # config.status does its own redirection, appending to config.log. | |
14792 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14793 | # by configure, so config.status won't be able to write to it; its | |
14794 | # output is simply discarded. So we exec the FD to /dev/null, | |
14795 | # effectively closing config.log, so it can be properly (re)opened and | |
14796 | # appended to by config.status. When coming back to configure, we | |
14797 | # need to make the FD available again. | |
14798 | if test "$no_create" != yes; then | |
14799 | ac_cs_success=: | |
14800 | ac_config_status_args= | |
14801 | test "$silent" = yes && | |
14802 | ac_config_status_args="$ac_config_status_args --quiet" | |
14803 | exec 5>/dev/null | |
14804 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14805 | exec 5>>config.log | |
14806 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14807 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 14808 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
14809 | fi |
14810 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
14811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
14812 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
979273e3 | 14813 | fi |
252b5132 | 14814 | |
d546b610 L |
14815 | |
14816 | ||
14817 | touch config.status.tmp | |
14818 | if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then | |
14819 | sed '/as_fn_exit 0/i \ | |
14820 | sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \ | |
14821 | touch --reference=Makefile Makefile.tmp \ | |
14822 | mv Makefile.tmp Makefile \ | |
14823 | ' config.status > config.status.tmp | |
14824 | touch --reference=config.status config.status.tmp | |
14825 | mv config.status.tmp config.status | |
14826 | chmod +x config.status | |
14827 | sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp | |
14828 | touch --reference=Makefile Makefile.tmp | |
14829 | mv Makefile.tmp Makefile | |
14830 | else | |
14831 | rm -f config.status.tmp | |
14832 | fi |