]>
Commit | Line | Data |
---|---|---|
0a35513e AH |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
22e05272 JM |
3 | # Generated by GNU Autoconf 2.69 for GNU TM Runtime Library 1.0. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
0a35513e | 7 | # |
0a35513e AH |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## -------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
14 | ||
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 : | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
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 | |
31 | fi | |
32 | ||
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 | } | |
79 | fi | |
80 | ||
81 | ||
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. | |
22e05272 | 90 | as_myself= |
0a35513e AH |
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 | |
122 | PS1='$ ' | |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
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 | ||
22e05272 JM |
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;} | |
0a35513e AH |
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 | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
0a35513e AH |
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 | |
199 | ||
200 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
201 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
202 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | PATH=/empty FPATH=/empty; export PATH FPATH | |
205 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
206 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
207 | test \$(( 1 + 1 )) = 2 || exit 1" | |
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 | |
219 | do | |
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 : | |
22e05272 JM |
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 | |
0a35513e AH |
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." | |
274 | else | |
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." | |
279 | fi | |
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" | |
22e05272 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
0a35513e AH |
364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
22e05272 JM |
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 | |
0a35513e AH |
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 | ||
22e05272 JM |
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
0a35513e AH |
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 | |
22e05272 | 415 | # script with STATUS, using 1 if that was 0. |
0a35513e AH |
416 | as_fn_error () |
417 | { | |
22e05272 JM |
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 | |
0a35513e | 422 | fi |
22e05272 | 423 | $as_echo "$as_me: error: $2" >&2 |
0a35513e AH |
424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
426 | ||
427 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
429 | as_expr=expr | |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
435 | as_basename=basename | |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
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 | |
445 | ||
446 | as_me=`$as_basename -- "$0" || | |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
448 | X"$0" : 'X\(//\)$' \| \ | |
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'` | |
464 | ||
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 | ||
472 | ||
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 | | |
482 | sed ' | |
483 | s/[$]LINENO.*/&-/ | |
484 | t lineno | |
485 | b | |
486 | :lineno | |
487 | N | |
488 | :loop | |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
490 | t loop | |
491 | s/-\n.*// | |
492 | ' >$as_me.lineno && | |
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; } | |
495 | ||
22e05272 JM |
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 | |
0a35513e AH |
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 | |
502 | # original and so on. Autoconf is especially sensitive to this). | |
503 | . "./$as_me.lineno" | |
504 | # Exit status is that of the last command. | |
505 | exit | |
506 | } | |
507 | ||
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';; | |
519 | esac | |
520 | ||
521 | rm -f conf$$ conf$$.exe conf$$.file | |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
524 | else | |
525 | rm -f conf$$.dir | |
526 | mkdir conf$$.dir 2>/dev/null | |
527 | fi | |
528 | if (echo >conf$$.file) 2>/dev/null; then | |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
530 | as_ln_s='ln -s' | |
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. | |
22e05272 | 534 | # In both cases, we have to default to `cp -pR'. |
0a35513e | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 536 | as_ln_s='cp -pR' |
0a35513e AH |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
22e05272 | 540 | as_ln_s='cp -pR' |
0a35513e AH |
541 | fi |
542 | else | |
22e05272 | 543 | as_ln_s='cp -pR' |
0a35513e AH |
544 | fi |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
546 | rmdir conf$$.dir 2>/dev/null | |
547 | ||
548 | if mkdir -p . 2>/dev/null; then | |
549 | as_mkdir_p='mkdir -p "$as_dir"' | |
550 | else | |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
22e05272 JM |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
0a35513e AH |
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 | ||
564 | SHELL=${CONFIG_SHELL-/bin/sh} | |
565 | ||
566 | ||
22e05272 JM |
567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
0a35513e AH |
569 | |
570 | # Name of the host. | |
22e05272 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
0a35513e AH |
572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | ||
575 | # | |
576 | # Initializations. | |
577 | # | |
578 | ac_default_prefix=/usr/local | |
579 | ac_clean_files= | |
580 | ac_config_libobj_dir=. | |
581 | LIBOBJS= | |
582 | cross_compiling=no | |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
586 | ||
587 | # Identity of this package. | |
588 | PACKAGE_NAME='GNU TM Runtime Library' | |
589 | PACKAGE_TARNAME='libitm' | |
590 | PACKAGE_VERSION='1.0' | |
591 | PACKAGE_STRING='GNU TM Runtime Library 1.0' | |
592 | PACKAGE_BUGREPORT='' | |
593 | PACKAGE_URL='http://www.gnu.org/software/libitm/' | |
594 | ||
595 | # Factoring default headers for most tests. | |
596 | ac_includes_default="\ | |
597 | #include <stdio.h> | |
598 | #ifdef HAVE_SYS_TYPES_H | |
599 | # include <sys/types.h> | |
600 | #endif | |
601 | #ifdef HAVE_SYS_STAT_H | |
602 | # include <sys/stat.h> | |
603 | #endif | |
604 | #ifdef STDC_HEADERS | |
605 | # include <stdlib.h> | |
606 | # include <stddef.h> | |
607 | #else | |
608 | # ifdef HAVE_STDLIB_H | |
609 | # include <stdlib.h> | |
610 | # endif | |
611 | #endif | |
612 | #ifdef HAVE_STRING_H | |
613 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
614 | # include <memory.h> | |
615 | # endif | |
616 | # include <string.h> | |
617 | #endif | |
618 | #ifdef HAVE_STRINGS_H | |
619 | # include <strings.h> | |
620 | #endif | |
621 | #ifdef HAVE_INTTYPES_H | |
622 | # include <inttypes.h> | |
623 | #endif | |
624 | #ifdef HAVE_STDINT_H | |
625 | # include <stdint.h> | |
626 | #endif | |
627 | #ifdef HAVE_UNISTD_H | |
628 | # include <unistd.h> | |
629 | #endif" | |
630 | ||
631 | ac_subst_vars='am__EXEEXT_FALSE | |
632 | am__EXEEXT_TRUE | |
633 | LTLIBOBJS | |
634 | LIBOBJS | |
3c36aa6b | 635 | get_gcc_base_ver |
0a35513e AH |
636 | ARCH_FUTEX_FALSE |
637 | ARCH_FUTEX_TRUE | |
d4b17902 RH |
638 | ARCH_X86_AVX_FALSE |
639 | ARCH_X86_AVX_TRUE | |
0a35513e AH |
640 | ARCH_X86_FALSE |
641 | ARCH_X86_TRUE | |
aebac0ca RH |
642 | ARCH_ARM_FALSE |
643 | ARCH_ARM_TRUE | |
0a35513e AH |
644 | link_itm |
645 | XLDFLAGS | |
646 | XCFLAGS | |
647 | config_path | |
adcd36bc RO |
648 | LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE |
649 | LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE | |
650 | LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE | |
651 | LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE | |
0a35513e AH |
652 | LIBITM_BUILD_VERSIONED_SHLIB_FALSE |
653 | LIBITM_BUILD_VERSIONED_SHLIB_TRUE | |
654 | OPT_LDFLAGS | |
655 | SECTION_LDFLAGS | |
9ce91011 RO |
656 | HAVE_HWCAP_FALSE |
657 | HAVE_HWCAP_TRUE | |
658 | HWCAP_LDFLAGS | |
0a35513e AH |
659 | libtool_VERSION |
660 | MAINT | |
661 | MAINTAINER_MODE_FALSE | |
662 | MAINTAINER_MODE_TRUE | |
663 | enable_static | |
664 | enable_shared | |
665 | CXXCPP | |
666 | CPP | |
667 | OTOOL64 | |
668 | OTOOL | |
669 | LIPO | |
670 | NMEDIT | |
671 | DSYMUTIL | |
672 | OBJDUMP | |
673 | LN_S | |
674 | ac_ct_DUMPBIN | |
675 | DUMPBIN | |
676 | LD | |
677 | FGREP | |
678 | EGREP | |
679 | GREP | |
680 | SED | |
681 | LIBTOOL | |
682 | BUILD_INFO_FALSE | |
683 | BUILD_INFO_TRUE | |
684 | PERL | |
685 | RANLIB | |
686 | NM | |
687 | AR | |
688 | am__fastdepCCAS_FALSE | |
689 | am__fastdepCCAS_TRUE | |
690 | CCASDEPMODE | |
691 | CCASFLAGS | |
692 | CCAS | |
693 | am__fastdepCXX_FALSE | |
694 | am__fastdepCXX_TRUE | |
695 | CXXDEPMODE | |
696 | ac_ct_CXX | |
697 | CXXFLAGS | |
698 | CXX | |
699 | am__fastdepCC_FALSE | |
700 | am__fastdepCC_TRUE | |
701 | CCDEPMODE | |
503902f9 | 702 | am__nodep |
0a35513e AH |
703 | AMDEPBACKSLASH |
704 | AMDEP_FALSE | |
705 | AMDEP_TRUE | |
706 | am__quote | |
707 | am__include | |
708 | DEPDIR | |
709 | OBJEXT | |
710 | EXEEXT | |
711 | ac_ct_CC | |
712 | CPPFLAGS | |
713 | LDFLAGS | |
714 | CFLAGS | |
715 | CC | |
716 | toolexeclibdir | |
717 | toolexecdir | |
718 | multi_basedir | |
22e05272 JM |
719 | AM_BACKSLASH |
720 | AM_DEFAULT_VERBOSITY | |
721 | AM_DEFAULT_V | |
722 | AM_V | |
0a35513e AH |
723 | am__untar |
724 | am__tar | |
725 | AMTAR | |
726 | am__leading_dot | |
727 | SET_MAKE | |
728 | AWK | |
729 | mkdir_p | |
730 | MKDIR_P | |
731 | INSTALL_STRIP_PROGRAM | |
732 | STRIP | |
733 | install_sh | |
734 | MAKEINFO | |
735 | AUTOHEADER | |
736 | AUTOMAKE | |
737 | AUTOCONF | |
738 | ACLOCAL | |
739 | VERSION | |
740 | PACKAGE | |
741 | CYGPATH_W | |
742 | am__isrc | |
743 | INSTALL_DATA | |
744 | INSTALL_SCRIPT | |
745 | INSTALL_PROGRAM | |
746 | target_os | |
747 | target_vendor | |
748 | target_cpu | |
749 | target | |
750 | host_os | |
751 | host_vendor | |
752 | host_cpu | |
753 | host | |
754 | build_os | |
755 | build_vendor | |
756 | build_cpu | |
757 | build | |
758 | GENINSRC_FALSE | |
759 | GENINSRC_TRUE | |
760 | target_alias | |
761 | host_alias | |
762 | build_alias | |
763 | LIBS | |
764 | ECHO_T | |
765 | ECHO_N | |
766 | ECHO_C | |
767 | DEFS | |
768 | mandir | |
769 | localedir | |
770 | libdir | |
771 | psdir | |
772 | pdfdir | |
773 | dvidir | |
774 | htmldir | |
775 | infodir | |
776 | docdir | |
777 | oldincludedir | |
778 | includedir | |
779 | localstatedir | |
780 | sharedstatedir | |
781 | sysconfdir | |
782 | datadir | |
783 | datarootdir | |
784 | libexecdir | |
785 | sbindir | |
786 | bindir | |
787 | program_transform_name | |
788 | prefix | |
789 | exec_prefix | |
790 | PACKAGE_URL | |
791 | PACKAGE_BUGREPORT | |
792 | PACKAGE_STRING | |
793 | PACKAGE_VERSION | |
794 | PACKAGE_TARNAME | |
795 | PACKAGE_NAME | |
796 | PATH_SEPARATOR | |
797 | SHELL' | |
798 | ac_subst_files='' | |
799 | ac_user_opts=' | |
800 | enable_option_checking | |
801 | enable_version_specific_runtime_libs | |
802 | enable_generated_files_in_srcdir | |
22e05272 | 803 | enable_silent_rules |
0a35513e AH |
804 | enable_multilib |
805 | enable_dependency_tracking | |
806 | enable_shared | |
807 | enable_static | |
808 | with_pic | |
809 | enable_fast_install | |
810 | with_gnu_ld | |
811 | enable_libtool_lock | |
812 | enable_maintainer_mode | |
813 | enable_linux_futex | |
814 | enable_tls | |
815 | enable_symvers | |
c51081fc | 816 | enable_cet |
3c36aa6b | 817 | with_gcc_major_version_only |
0a35513e AH |
818 | ' |
819 | ac_precious_vars='build_alias | |
820 | host_alias | |
821 | target_alias | |
822 | CPP | |
823 | CPPFLAGS | |
824 | CXXCPP' | |
825 | ||
826 | ||
827 | # Initialize some variables set by options. | |
828 | ac_init_help= | |
829 | ac_init_version=false | |
830 | ac_unrecognized_opts= | |
831 | ac_unrecognized_sep= | |
832 | # The variables have the same names as the options, with | |
833 | # dashes changed to underlines. | |
834 | cache_file=/dev/null | |
835 | exec_prefix=NONE | |
836 | no_create= | |
837 | no_recursion= | |
838 | prefix=NONE | |
839 | program_prefix=NONE | |
840 | program_suffix=NONE | |
841 | program_transform_name=s,x,x, | |
842 | silent= | |
843 | site= | |
844 | srcdir= | |
845 | verbose= | |
846 | x_includes=NONE | |
847 | x_libraries=NONE | |
848 | ||
849 | # Installation directory options. | |
850 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
851 | # and all the variables that are supposed to be based on exec_prefix | |
852 | # by default will actually change. | |
853 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
854 | # (The list follows the same order as the GNU Coding Standards.) | |
855 | bindir='${exec_prefix}/bin' | |
856 | sbindir='${exec_prefix}/sbin' | |
857 | libexecdir='${exec_prefix}/libexec' | |
858 | datarootdir='${prefix}/share' | |
859 | datadir='${datarootdir}' | |
860 | sysconfdir='${prefix}/etc' | |
861 | sharedstatedir='${prefix}/com' | |
862 | localstatedir='${prefix}/var' | |
863 | includedir='${prefix}/include' | |
864 | oldincludedir='/usr/include' | |
865 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
866 | infodir='${datarootdir}/info' | |
867 | htmldir='${docdir}' | |
868 | dvidir='${docdir}' | |
869 | pdfdir='${docdir}' | |
870 | psdir='${docdir}' | |
871 | libdir='${exec_prefix}/lib' | |
872 | localedir='${datarootdir}/locale' | |
873 | mandir='${datarootdir}/man' | |
874 | ||
875 | ac_prev= | |
876 | ac_dashdash= | |
877 | for ac_option | |
878 | do | |
879 | # If the previous option needs an argument, assign it. | |
880 | if test -n "$ac_prev"; then | |
881 | eval $ac_prev=\$ac_option | |
882 | ac_prev= | |
883 | continue | |
884 | fi | |
885 | ||
886 | case $ac_option in | |
22e05272 JM |
887 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
888 | *=) ac_optarg= ;; | |
889 | *) ac_optarg=yes ;; | |
0a35513e AH |
890 | esac |
891 | ||
892 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
893 | ||
894 | case $ac_dashdash$ac_option in | |
895 | --) | |
896 | ac_dashdash=yes ;; | |
897 | ||
898 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
899 | ac_prev=bindir ;; | |
900 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
901 | bindir=$ac_optarg ;; | |
902 | ||
903 | -build | --build | --buil | --bui | --bu) | |
904 | ac_prev=build_alias ;; | |
905 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
906 | build_alias=$ac_optarg ;; | |
907 | ||
908 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
909 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
910 | ac_prev=cache_file ;; | |
911 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
912 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
913 | cache_file=$ac_optarg ;; | |
914 | ||
915 | --config-cache | -C) | |
916 | cache_file=config.cache ;; | |
917 | ||
918 | -datadir | --datadir | --datadi | --datad) | |
919 | ac_prev=datadir ;; | |
920 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
921 | datadir=$ac_optarg ;; | |
922 | ||
923 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
924 | | --dataroo | --dataro | --datar) | |
925 | ac_prev=datarootdir ;; | |
926 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
927 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
928 | datarootdir=$ac_optarg ;; | |
929 | ||
930 | -disable-* | --disable-*) | |
931 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
932 | # Reject names that are not valid shell variable names. | |
933 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 934 | as_fn_error $? "invalid feature name: $ac_useropt" |
0a35513e AH |
935 | ac_useropt_orig=$ac_useropt |
936 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
937 | case $ac_user_opts in | |
938 | *" | |
939 | "enable_$ac_useropt" | |
940 | "*) ;; | |
941 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
942 | ac_unrecognized_sep=', ';; | |
943 | esac | |
944 | eval enable_$ac_useropt=no ;; | |
945 | ||
946 | -docdir | --docdir | --docdi | --doc | --do) | |
947 | ac_prev=docdir ;; | |
948 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
949 | docdir=$ac_optarg ;; | |
950 | ||
951 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
952 | ac_prev=dvidir ;; | |
953 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
954 | dvidir=$ac_optarg ;; | |
955 | ||
956 | -enable-* | --enable-*) | |
957 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
958 | # Reject names that are not valid shell variable names. | |
959 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 960 | as_fn_error $? "invalid feature name: $ac_useropt" |
0a35513e AH |
961 | ac_useropt_orig=$ac_useropt |
962 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
963 | case $ac_user_opts in | |
964 | *" | |
965 | "enable_$ac_useropt" | |
966 | "*) ;; | |
967 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
968 | ac_unrecognized_sep=', ';; | |
969 | esac | |
970 | eval enable_$ac_useropt=\$ac_optarg ;; | |
971 | ||
972 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
973 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
974 | | --exec | --exe | --ex) | |
975 | ac_prev=exec_prefix ;; | |
976 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
977 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
978 | | --exec=* | --exe=* | --ex=*) | |
979 | exec_prefix=$ac_optarg ;; | |
980 | ||
981 | -gas | --gas | --ga | --g) | |
982 | # Obsolete; use --with-gas. | |
983 | with_gas=yes ;; | |
984 | ||
985 | -help | --help | --hel | --he | -h) | |
986 | ac_init_help=long ;; | |
987 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
988 | ac_init_help=recursive ;; | |
989 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
990 | ac_init_help=short ;; | |
991 | ||
992 | -host | --host | --hos | --ho) | |
993 | ac_prev=host_alias ;; | |
994 | -host=* | --host=* | --hos=* | --ho=*) | |
995 | host_alias=$ac_optarg ;; | |
996 | ||
997 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
998 | ac_prev=htmldir ;; | |
999 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1000 | | --ht=*) | |
1001 | htmldir=$ac_optarg ;; | |
1002 | ||
1003 | -includedir | --includedir | --includedi | --included | --include \ | |
1004 | | --includ | --inclu | --incl | --inc) | |
1005 | ac_prev=includedir ;; | |
1006 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1007 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1008 | includedir=$ac_optarg ;; | |
1009 | ||
1010 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1011 | ac_prev=infodir ;; | |
1012 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1013 | infodir=$ac_optarg ;; | |
1014 | ||
1015 | -libdir | --libdir | --libdi | --libd) | |
1016 | ac_prev=libdir ;; | |
1017 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1018 | libdir=$ac_optarg ;; | |
1019 | ||
1020 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1021 | | --libexe | --libex | --libe) | |
1022 | ac_prev=libexecdir ;; | |
1023 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1024 | | --libexe=* | --libex=* | --libe=*) | |
1025 | libexecdir=$ac_optarg ;; | |
1026 | ||
1027 | -localedir | --localedir | --localedi | --localed | --locale) | |
1028 | ac_prev=localedir ;; | |
1029 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1030 | localedir=$ac_optarg ;; | |
1031 | ||
1032 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1033 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1034 | ac_prev=localstatedir ;; | |
1035 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1036 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1037 | localstatedir=$ac_optarg ;; | |
1038 | ||
1039 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1040 | ac_prev=mandir ;; | |
1041 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1042 | mandir=$ac_optarg ;; | |
1043 | ||
1044 | -nfp | --nfp | --nf) | |
1045 | # Obsolete; use --without-fp. | |
1046 | with_fp=no ;; | |
1047 | ||
1048 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1049 | | --no-cr | --no-c | -n) | |
1050 | no_create=yes ;; | |
1051 | ||
1052 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1053 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1054 | no_recursion=yes ;; | |
1055 | ||
1056 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1057 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1058 | | --oldin | --oldi | --old | --ol | --o) | |
1059 | ac_prev=oldincludedir ;; | |
1060 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1061 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1062 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1063 | oldincludedir=$ac_optarg ;; | |
1064 | ||
1065 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1066 | ac_prev=prefix ;; | |
1067 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1068 | prefix=$ac_optarg ;; | |
1069 | ||
1070 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1071 | | --program-pre | --program-pr | --program-p) | |
1072 | ac_prev=program_prefix ;; | |
1073 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1074 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1075 | program_prefix=$ac_optarg ;; | |
1076 | ||
1077 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1078 | | --program-suf | --program-su | --program-s) | |
1079 | ac_prev=program_suffix ;; | |
1080 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1081 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1082 | program_suffix=$ac_optarg ;; | |
1083 | ||
1084 | -program-transform-name | --program-transform-name \ | |
1085 | | --program-transform-nam | --program-transform-na \ | |
1086 | | --program-transform-n | --program-transform- \ | |
1087 | | --program-transform | --program-transfor \ | |
1088 | | --program-transfo | --program-transf \ | |
1089 | | --program-trans | --program-tran \ | |
1090 | | --progr-tra | --program-tr | --program-t) | |
1091 | ac_prev=program_transform_name ;; | |
1092 | -program-transform-name=* | --program-transform-name=* \ | |
1093 | | --program-transform-nam=* | --program-transform-na=* \ | |
1094 | | --program-transform-n=* | --program-transform-=* \ | |
1095 | | --program-transform=* | --program-transfor=* \ | |
1096 | | --program-transfo=* | --program-transf=* \ | |
1097 | | --program-trans=* | --program-tran=* \ | |
1098 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1099 | program_transform_name=$ac_optarg ;; | |
1100 | ||
1101 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1102 | ac_prev=pdfdir ;; | |
1103 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1104 | pdfdir=$ac_optarg ;; | |
1105 | ||
1106 | -psdir | --psdir | --psdi | --psd | --ps) | |
1107 | ac_prev=psdir ;; | |
1108 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1109 | psdir=$ac_optarg ;; | |
1110 | ||
1111 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1112 | | -silent | --silent | --silen | --sile | --sil) | |
1113 | silent=yes ;; | |
1114 | ||
1115 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1116 | ac_prev=sbindir ;; | |
1117 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1118 | | --sbi=* | --sb=*) | |
1119 | sbindir=$ac_optarg ;; | |
1120 | ||
1121 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1122 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1123 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1124 | | --sha | --sh) | |
1125 | ac_prev=sharedstatedir ;; | |
1126 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1127 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1128 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1129 | | --sha=* | --sh=*) | |
1130 | sharedstatedir=$ac_optarg ;; | |
1131 | ||
1132 | -site | --site | --sit) | |
1133 | ac_prev=site ;; | |
1134 | -site=* | --site=* | --sit=*) | |
1135 | site=$ac_optarg ;; | |
1136 | ||
1137 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1138 | ac_prev=srcdir ;; | |
1139 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1140 | srcdir=$ac_optarg ;; | |
1141 | ||
1142 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1143 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1144 | ac_prev=sysconfdir ;; | |
1145 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1146 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1147 | sysconfdir=$ac_optarg ;; | |
1148 | ||
1149 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1150 | ac_prev=target_alias ;; | |
1151 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1152 | target_alias=$ac_optarg ;; | |
1153 | ||
1154 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1155 | verbose=yes ;; | |
1156 | ||
1157 | -version | --version | --versio | --versi | --vers | -V) | |
1158 | ac_init_version=: ;; | |
1159 | ||
1160 | -with-* | --with-*) | |
1161 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1162 | # Reject names that are not valid shell variable names. | |
1163 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 1164 | as_fn_error $? "invalid package name: $ac_useropt" |
0a35513e AH |
1165 | ac_useropt_orig=$ac_useropt |
1166 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1167 | case $ac_user_opts in | |
1168 | *" | |
1169 | "with_$ac_useropt" | |
1170 | "*) ;; | |
1171 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1172 | ac_unrecognized_sep=', ';; | |
1173 | esac | |
1174 | eval with_$ac_useropt=\$ac_optarg ;; | |
1175 | ||
1176 | -without-* | --without-*) | |
1177 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1178 | # Reject names that are not valid shell variable names. | |
1179 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 1180 | as_fn_error $? "invalid package name: $ac_useropt" |
0a35513e AH |
1181 | ac_useropt_orig=$ac_useropt |
1182 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1183 | case $ac_user_opts in | |
1184 | *" | |
1185 | "with_$ac_useropt" | |
1186 | "*) ;; | |
1187 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1188 | ac_unrecognized_sep=', ';; | |
1189 | esac | |
1190 | eval with_$ac_useropt=no ;; | |
1191 | ||
1192 | --x) | |
1193 | # Obsolete; use --with-x. | |
1194 | with_x=yes ;; | |
1195 | ||
1196 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1197 | | --x-incl | --x-inc | --x-in | --x-i) | |
1198 | ac_prev=x_includes ;; | |
1199 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1200 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1201 | x_includes=$ac_optarg ;; | |
1202 | ||
1203 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1204 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1205 | ac_prev=x_libraries ;; | |
1206 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1207 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1208 | x_libraries=$ac_optarg ;; | |
1209 | ||
22e05272 JM |
1210 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1211 | Try \`$0 --help' for more information" | |
0a35513e AH |
1212 | ;; |
1213 | ||
1214 | *=*) | |
1215 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1216 | # Reject names that are not valid shell variable names. | |
1217 | case $ac_envvar in #( | |
1218 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1219 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
0a35513e AH |
1220 | esac |
1221 | eval $ac_envvar=\$ac_optarg | |
1222 | export $ac_envvar ;; | |
1223 | ||
1224 | *) | |
1225 | # FIXME: should be removed in autoconf 3.0. | |
1226 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1227 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1228 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
22e05272 | 1229 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
0a35513e AH |
1230 | ;; |
1231 | ||
1232 | esac | |
1233 | done | |
1234 | ||
1235 | if test -n "$ac_prev"; then | |
1236 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
22e05272 | 1237 | as_fn_error $? "missing argument to $ac_option" |
0a35513e AH |
1238 | fi |
1239 | ||
1240 | if test -n "$ac_unrecognized_opts"; then | |
1241 | case $enable_option_checking in | |
1242 | no) ;; | |
22e05272 | 1243 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
0a35513e AH |
1244 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1245 | esac | |
1246 | fi | |
1247 | ||
1248 | # Check all directory arguments for consistency. | |
1249 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1250 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1251 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1252 | libdir localedir mandir | |
1253 | do | |
1254 | eval ac_val=\$$ac_var | |
1255 | # Remove trailing slashes. | |
1256 | case $ac_val in | |
1257 | */ ) | |
1258 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1259 | eval $ac_var=\$ac_val;; | |
1260 | esac | |
1261 | # Be sure to have absolute directory names. | |
1262 | case $ac_val in | |
1263 | [\\/$]* | ?:[\\/]* ) continue;; | |
1264 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1265 | esac | |
22e05272 | 1266 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
0a35513e AH |
1267 | done |
1268 | ||
1269 | # There might be people who depend on the old broken behavior: `$host' | |
1270 | # used to hold the argument of --host etc. | |
1271 | # FIXME: To remove some day. | |
1272 | build=$build_alias | |
1273 | host=$host_alias | |
1274 | target=$target_alias | |
1275 | ||
1276 | # FIXME: To remove some day. | |
1277 | if test "x$host_alias" != x; then | |
1278 | if test "x$build_alias" = x; then | |
1279 | cross_compiling=maybe | |
0a35513e AH |
1280 | elif test "x$build_alias" != "x$host_alias"; then |
1281 | cross_compiling=yes | |
1282 | fi | |
1283 | fi | |
1284 | ||
1285 | ac_tool_prefix= | |
1286 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1287 | ||
1288 | test "$silent" = yes && exec 6>/dev/null | |
1289 | ||
1290 | ||
1291 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1292 | ac_ls_di=`ls -di .` && | |
1293 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1294 | as_fn_error $? "working directory cannot be determined" |
0a35513e | 1295 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1296 | as_fn_error $? "pwd does not report name of working directory" |
0a35513e AH |
1297 | |
1298 | ||
1299 | # Find the source files, if location was not specified. | |
1300 | if test -z "$srcdir"; then | |
1301 | ac_srcdir_defaulted=yes | |
1302 | # Try the directory containing this script, then the parent directory. | |
1303 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1304 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1305 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1306 | X"$as_myself" : 'X\(//\)$' \| \ | |
1307 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1308 | $as_echo X"$as_myself" | | |
1309 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1310 | s//\1/ | |
1311 | q | |
1312 | } | |
1313 | /^X\(\/\/\)[^/].*/{ | |
1314 | s//\1/ | |
1315 | q | |
1316 | } | |
1317 | /^X\(\/\/\)$/{ | |
1318 | s//\1/ | |
1319 | q | |
1320 | } | |
1321 | /^X\(\/\).*/{ | |
1322 | s//\1/ | |
1323 | q | |
1324 | } | |
1325 | s/.*/./; q'` | |
1326 | srcdir=$ac_confdir | |
1327 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1328 | srcdir=.. | |
1329 | fi | |
1330 | else | |
1331 | ac_srcdir_defaulted=no | |
1332 | fi | |
1333 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1334 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1335 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
0a35513e AH |
1336 | fi |
1337 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1338 | ac_abs_confdir=`( | |
22e05272 | 1339 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
0a35513e AH |
1340 | pwd)` |
1341 | # When building in place, set srcdir=. | |
1342 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1343 | srcdir=. | |
1344 | fi | |
1345 | # Remove unnecessary trailing slashes from srcdir. | |
1346 | # Double slashes in file names in object file debugging info | |
1347 | # mess up M-x gdb in Emacs. | |
1348 | case $srcdir in | |
1349 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1350 | esac | |
1351 | for ac_var in $ac_precious_vars; do | |
1352 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1353 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1354 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1355 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1356 | done | |
1357 | ||
1358 | # | |
1359 | # Report the --help message. | |
1360 | # | |
1361 | if test "$ac_init_help" = "long"; then | |
1362 | # Omit some internal or obsolete options to make the list less imposing. | |
1363 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1364 | cat <<_ACEOF | |
1365 | \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems. | |
1366 | ||
1367 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1368 | ||
1369 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1370 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1371 | ||
1372 | Defaults for the options are specified in brackets. | |
1373 | ||
1374 | Configuration: | |
1375 | -h, --help display this help and exit | |
1376 | --help=short display options specific to this package | |
1377 | --help=recursive display the short help of all the included packages | |
1378 | -V, --version display version information and exit | |
22e05272 | 1379 | -q, --quiet, --silent do not print \`checking ...' messages |
0a35513e AH |
1380 | --cache-file=FILE cache test results in FILE [disabled] |
1381 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1382 | -n, --no-create do not create output files | |
1383 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1384 | ||
1385 | Installation directories: | |
1386 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1387 | [$ac_default_prefix] | |
1388 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1389 | [PREFIX] | |
1390 | ||
1391 | By default, \`make install' will install all the files in | |
1392 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1393 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1394 | for instance \`--prefix=\$HOME'. | |
1395 | ||
1396 | For better control, use the options below. | |
1397 | ||
1398 | Fine tuning of the installation directories: | |
1399 | --bindir=DIR user executables [EPREFIX/bin] | |
1400 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1401 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1402 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1403 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1404 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1405 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1406 | --includedir=DIR C header files [PREFIX/include] | |
1407 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1408 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1409 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1410 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1411 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1412 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1413 | --docdir=DIR documentation root [DATAROOTDIR/doc/libitm] | |
1414 | --htmldir=DIR html documentation [DOCDIR] | |
1415 | --dvidir=DIR dvi documentation [DOCDIR] | |
1416 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1417 | --psdir=DIR ps documentation [DOCDIR] | |
1418 | _ACEOF | |
1419 | ||
1420 | cat <<\_ACEOF | |
1421 | ||
1422 | Program names: | |
1423 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1424 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1425 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1426 | ||
1427 | System types: | |
1428 | --build=BUILD configure for building on BUILD [guessed] | |
1429 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1430 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1431 | _ACEOF | |
1432 | fi | |
1433 | ||
1434 | if test -n "$ac_init_help"; then | |
1435 | case $ac_init_help in | |
1436 | short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";; | |
1437 | esac | |
1438 | cat <<\_ACEOF | |
1439 | ||
1440 | Optional Features: | |
1441 | --disable-option-checking ignore unrecognized --enable/--with options | |
1442 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1443 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1444 | --enable-version-specific-runtime-libs | |
1445 | Specify that runtime libraries should be installed | |
1446 | in a compiler-specific directory [default=no] | |
1447 | --enable-generated-files-in-srcdir | |
1448 | put copies of generated files in source dir intended | |
1449 | for creating source tarballs for users without | |
1450 | texinfo bison or flex. [default=no] | |
22e05272 JM |
1451 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1452 | --disable-silent-rules verbose build output (undo: "make V=0") | |
0a35513e | 1453 | --enable-multilib build many library versions (default) |
22e05272 JM |
1454 | --enable-dependency-tracking |
1455 | do not reject slow dependency extractors | |
1456 | --disable-dependency-tracking | |
1457 | speeds up one-time build | |
0a35513e AH |
1458 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1459 | --enable-static[=PKGS] build static libraries [default=yes] | |
1460 | --enable-fast-install[=PKGS] | |
1461 | optimize for fast installation [default=yes] | |
1462 | --disable-libtool-lock avoid locking (might break parallel builds) | |
22e05272 JM |
1463 | --enable-maintainer-mode |
1464 | enable make rules and dependencies not useful (and | |
1465 | sometimes confusing) to the casual installer | |
0a35513e AH |
1466 | --enable-linux-futex use the Linux futex system call [default=default] |
1467 | --enable-tls Use thread-local storage [default=yes] | |
1468 | --enable-symvers=STYLE enables symbol versioning of the shared library | |
1469 | [default=yes] | |
a0e1df88 | 1470 | --enable-cet enable Intel CET in target libraries [default=no] |
0a35513e AH |
1471 | |
1472 | Optional Packages: | |
1473 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1474 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1475 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1476 | both] | |
1477 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
3c36aa6b JJ |
1478 | --with-gcc-major-version-only |
1479 | use only GCC major number in filesystem paths | |
0a35513e AH |
1480 | |
1481 | Some influential environment variables: | |
1482 | CC C compiler command | |
1483 | CFLAGS C compiler flags | |
1484 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1485 | nonstandard directory <lib dir> | |
1486 | LIBS libraries to pass to the linker, e.g. -l<library> | |
22e05272 | 1487 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
0a35513e AH |
1488 | you have headers in a nonstandard directory <include dir> |
1489 | CXX C++ compiler command | |
1490 | CXXFLAGS C++ compiler flags | |
1491 | CCAS assembler compiler command (defaults to CC) | |
1492 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) | |
1493 | CPP C preprocessor | |
1494 | CXXCPP C++ preprocessor | |
1495 | ||
1496 | Use these variables to override the choices made by `configure' or to help | |
1497 | it to find libraries and programs with nonstandard names/locations. | |
1498 | ||
1499 | Report bugs to the package provider. | |
1500 | GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>. | |
1501 | General help using GNU software: <http://www.gnu.org/gethelp/>. | |
1502 | _ACEOF | |
1503 | ac_status=$? | |
1504 | fi | |
1505 | ||
1506 | if test "$ac_init_help" = "recursive"; then | |
1507 | # If there are subdirs, report their specific --help. | |
1508 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1509 | test -d "$ac_dir" || | |
1510 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1511 | continue | |
1512 | ac_builddir=. | |
1513 | ||
1514 | case "$ac_dir" in | |
1515 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1516 | *) | |
1517 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1518 | # A ".." for each directory in $ac_dir_suffix. | |
1519 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1520 | case $ac_top_builddir_sub in | |
1521 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1522 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1523 | esac ;; | |
1524 | esac | |
1525 | ac_abs_top_builddir=$ac_pwd | |
1526 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1527 | # for backward compatibility: | |
1528 | ac_top_builddir=$ac_top_build_prefix | |
1529 | ||
1530 | case $srcdir in | |
1531 | .) # We are building in place. | |
1532 | ac_srcdir=. | |
1533 | ac_top_srcdir=$ac_top_builddir_sub | |
1534 | ac_abs_top_srcdir=$ac_pwd ;; | |
1535 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1536 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1537 | ac_top_srcdir=$srcdir | |
1538 | ac_abs_top_srcdir=$srcdir ;; | |
1539 | *) # Relative name. | |
1540 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1541 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1542 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1543 | esac | |
1544 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1545 | ||
1546 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1547 | # Check for guested configure. | |
1548 | if test -f "$ac_srcdir/configure.gnu"; then | |
1549 | echo && | |
1550 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1551 | elif test -f "$ac_srcdir/configure"; then | |
1552 | echo && | |
1553 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1554 | else | |
1555 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1556 | fi || ac_status=$? | |
1557 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1558 | done | |
1559 | fi | |
1560 | ||
1561 | test -n "$ac_init_help" && exit $ac_status | |
1562 | if $ac_init_version; then | |
1563 | cat <<\_ACEOF | |
1564 | GNU TM Runtime Library configure 1.0 | |
22e05272 | 1565 | generated by GNU Autoconf 2.69 |
0a35513e | 1566 | |
22e05272 | 1567 | Copyright (C) 2012 Free Software Foundation, Inc. |
0a35513e AH |
1568 | This configure script is free software; the Free Software Foundation |
1569 | gives unlimited permission to copy, distribute and modify it. | |
1570 | _ACEOF | |
1571 | exit | |
1572 | fi | |
1573 | ||
1574 | ## ------------------------ ## | |
1575 | ## Autoconf initialization. ## | |
1576 | ## ------------------------ ## | |
1577 | ||
1578 | # ac_fn_c_try_compile LINENO | |
1579 | # -------------------------- | |
1580 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1581 | ac_fn_c_try_compile () | |
1582 | { | |
1583 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1584 | rm -f conftest.$ac_objext | |
1585 | if { { ac_try="$ac_compile" | |
1586 | case "(($ac_try" in | |
1587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1588 | *) ac_try_echo=$ac_try;; | |
1589 | esac | |
1590 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1591 | $as_echo "$ac_try_echo"; } >&5 | |
1592 | (eval "$ac_compile") 2>conftest.err | |
1593 | ac_status=$? | |
1594 | if test -s conftest.err; then | |
1595 | grep -v '^ *+' conftest.err >conftest.er1 | |
1596 | cat conftest.er1 >&5 | |
1597 | mv -f conftest.er1 conftest.err | |
1598 | fi | |
1599 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1600 | test $ac_status = 0; } && { | |
1601 | test -z "$ac_c_werror_flag" || | |
1602 | test ! -s conftest.err | |
1603 | } && test -s conftest.$ac_objext; then : | |
1604 | ac_retval=0 | |
1605 | else | |
1606 | $as_echo "$as_me: failed program was:" >&5 | |
1607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1608 | ||
1609 | ac_retval=1 | |
1610 | fi | |
22e05272 JM |
1611 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1612 | as_fn_set_status $ac_retval | |
0a35513e AH |
1613 | |
1614 | } # ac_fn_c_try_compile | |
1615 | ||
1616 | # ac_fn_cxx_try_compile LINENO | |
1617 | # ---------------------------- | |
1618 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1619 | ac_fn_cxx_try_compile () | |
1620 | { | |
1621 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1622 | rm -f conftest.$ac_objext | |
1623 | if { { ac_try="$ac_compile" | |
1624 | case "(($ac_try" in | |
1625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1626 | *) ac_try_echo=$ac_try;; | |
1627 | esac | |
1628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1629 | $as_echo "$ac_try_echo"; } >&5 | |
1630 | (eval "$ac_compile") 2>conftest.err | |
1631 | ac_status=$? | |
1632 | if test -s conftest.err; then | |
1633 | grep -v '^ *+' conftest.err >conftest.er1 | |
1634 | cat conftest.er1 >&5 | |
1635 | mv -f conftest.er1 conftest.err | |
1636 | fi | |
1637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1638 | test $ac_status = 0; } && { | |
1639 | test -z "$ac_cxx_werror_flag" || | |
1640 | test ! -s conftest.err | |
1641 | } && test -s conftest.$ac_objext; then : | |
1642 | ac_retval=0 | |
1643 | else | |
1644 | $as_echo "$as_me: failed program was:" >&5 | |
1645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1646 | ||
1647 | ac_retval=1 | |
1648 | fi | |
22e05272 JM |
1649 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1650 | as_fn_set_status $ac_retval | |
0a35513e AH |
1651 | |
1652 | } # ac_fn_cxx_try_compile | |
1653 | ||
1654 | # ac_fn_c_try_link LINENO | |
1655 | # ----------------------- | |
1656 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1657 | ac_fn_c_try_link () | |
1658 | { | |
1659 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1660 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1661 | if { { ac_try="$ac_link" | |
1662 | case "(($ac_try" in | |
1663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1664 | *) ac_try_echo=$ac_try;; | |
1665 | esac | |
1666 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1667 | $as_echo "$ac_try_echo"; } >&5 | |
1668 | (eval "$ac_link") 2>conftest.err | |
1669 | ac_status=$? | |
1670 | if test -s conftest.err; then | |
1671 | grep -v '^ *+' conftest.err >conftest.er1 | |
1672 | cat conftest.er1 >&5 | |
1673 | mv -f conftest.er1 conftest.err | |
1674 | fi | |
1675 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1676 | test $ac_status = 0; } && { | |
1677 | test -z "$ac_c_werror_flag" || | |
1678 | test ! -s conftest.err | |
1679 | } && test -s conftest$ac_exeext && { | |
1680 | test "$cross_compiling" = yes || | |
22e05272 | 1681 | test -x conftest$ac_exeext |
0a35513e AH |
1682 | }; then : |
1683 | ac_retval=0 | |
1684 | else | |
1685 | $as_echo "$as_me: failed program was:" >&5 | |
1686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1687 | ||
1688 | ac_retval=1 | |
1689 | fi | |
1690 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1691 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1692 | # interfere with the next link command; also delete a directory that is | |
1693 | # left behind by Apple's compiler. We do this before executing the actions. | |
1694 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1695 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1696 | as_fn_set_status $ac_retval | |
0a35513e AH |
1697 | |
1698 | } # ac_fn_c_try_link | |
1699 | ||
1700 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1701 | # ------------------------------------------------------- | |
1702 | # Tests whether HEADER exists and can be compiled using the include files in | |
1703 | # INCLUDES, setting the cache variable VAR accordingly. | |
1704 | ac_fn_c_check_header_compile () | |
1705 | { | |
1706 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1708 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1709 | if eval \${$3+:} false; then : |
0a35513e AH |
1710 | $as_echo_n "(cached) " >&6 |
1711 | else | |
1712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1713 | /* end confdefs.h. */ | |
1714 | $4 | |
1715 | #include <$2> | |
1716 | _ACEOF | |
1717 | if ac_fn_c_try_compile "$LINENO"; then : | |
1718 | eval "$3=yes" | |
1719 | else | |
1720 | eval "$3=no" | |
1721 | fi | |
1722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1723 | fi | |
1724 | eval ac_res=\$$3 | |
1725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1726 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1727 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
0a35513e AH |
1728 | |
1729 | } # ac_fn_c_check_header_compile | |
1730 | ||
1731 | # ac_fn_c_try_cpp LINENO | |
1732 | # ---------------------- | |
1733 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1734 | ac_fn_c_try_cpp () | |
1735 | { | |
1736 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1737 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
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_cpp conftest.$ac_ext") 2>conftest.err | |
1745 | ac_status=$? | |
1746 | if test -s conftest.err; then | |
1747 | grep -v '^ *+' conftest.err >conftest.er1 | |
1748 | cat conftest.er1 >&5 | |
1749 | mv -f conftest.er1 conftest.err | |
1750 | fi | |
1751 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22e05272 | 1752 | test $ac_status = 0; } > conftest.i && { |
0a35513e AH |
1753 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1754 | test ! -s conftest.err | |
1755 | }; then : | |
1756 | ac_retval=0 | |
1757 | else | |
1758 | $as_echo "$as_me: failed program was:" >&5 | |
1759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1760 | ||
1761 | ac_retval=1 | |
1762 | fi | |
22e05272 JM |
1763 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1764 | as_fn_set_status $ac_retval | |
0a35513e AH |
1765 | |
1766 | } # ac_fn_c_try_cpp | |
1767 | ||
1768 | # ac_fn_c_try_run LINENO | |
1769 | # ---------------------- | |
1770 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1771 | # that executables *can* be run. | |
1772 | ac_fn_c_try_run () | |
1773 | { | |
1774 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1775 | if { { ac_try="$ac_link" | |
1776 | case "(($ac_try" in | |
1777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1778 | *) ac_try_echo=$ac_try;; | |
1779 | esac | |
1780 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1781 | $as_echo "$ac_try_echo"; } >&5 | |
1782 | (eval "$ac_link") 2>&5 | |
1783 | ac_status=$? | |
1784 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1785 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1786 | { { case "(($ac_try" in | |
1787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1788 | *) ac_try_echo=$ac_try;; | |
1789 | esac | |
1790 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1791 | $as_echo "$ac_try_echo"; } >&5 | |
1792 | (eval "$ac_try") 2>&5 | |
1793 | ac_status=$? | |
1794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1795 | test $ac_status = 0; }; }; then : | |
1796 | ac_retval=0 | |
1797 | else | |
1798 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1799 | $as_echo "$as_me: failed program was:" >&5 | |
1800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1801 | ||
1802 | ac_retval=$ac_status | |
1803 | fi | |
1804 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1805 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1806 | as_fn_set_status $ac_retval | |
0a35513e AH |
1807 | |
1808 | } # ac_fn_c_try_run | |
1809 | ||
1810 | # ac_fn_c_check_func LINENO FUNC VAR | |
1811 | # ---------------------------------- | |
1812 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1813 | ac_fn_c_check_func () | |
1814 | { | |
1815 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1817 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1818 | if eval \${$3+:} false; then : |
0a35513e AH |
1819 | $as_echo_n "(cached) " >&6 |
1820 | else | |
1821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1822 | /* end confdefs.h. */ | |
1823 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1824 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1825 | #define $2 innocuous_$2 | |
1826 | ||
1827 | /* System header to define __stub macros and hopefully few prototypes, | |
1828 | which can conflict with char $2 (); below. | |
1829 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1830 | <limits.h> exists even on freestanding compilers. */ | |
1831 | ||
1832 | #ifdef __STDC__ | |
1833 | # include <limits.h> | |
1834 | #else | |
1835 | # include <assert.h> | |
1836 | #endif | |
1837 | ||
1838 | #undef $2 | |
1839 | ||
1840 | /* Override any GCC internal prototype to avoid an error. | |
1841 | Use char because int might match the return type of a GCC | |
1842 | builtin and then its argument prototype would still apply. */ | |
1843 | #ifdef __cplusplus | |
1844 | extern "C" | |
1845 | #endif | |
1846 | char $2 (); | |
1847 | /* The GNU C library defines this for functions which it implements | |
1848 | to always fail with ENOSYS. Some functions are actually named | |
1849 | something starting with __ and the normal name is an alias. */ | |
1850 | #if defined __stub_$2 || defined __stub___$2 | |
1851 | choke me | |
1852 | #endif | |
1853 | ||
1854 | int | |
1855 | main () | |
1856 | { | |
1857 | return $2 (); | |
1858 | ; | |
1859 | return 0; | |
1860 | } | |
1861 | _ACEOF | |
1862 | if ac_fn_c_try_link "$LINENO"; then : | |
1863 | eval "$3=yes" | |
1864 | else | |
1865 | eval "$3=no" | |
1866 | fi | |
1867 | rm -f core conftest.err conftest.$ac_objext \ | |
1868 | conftest$ac_exeext conftest.$ac_ext | |
1869 | fi | |
1870 | eval ac_res=\$$3 | |
1871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1872 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1873 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
0a35513e AH |
1874 | |
1875 | } # ac_fn_c_check_func | |
1876 | ||
1877 | # ac_fn_cxx_try_cpp LINENO | |
1878 | # ------------------------ | |
1879 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1880 | ac_fn_cxx_try_cpp () | |
1881 | { | |
1882 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1883 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1884 | case "(($ac_try" in | |
1885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1886 | *) ac_try_echo=$ac_try;; | |
1887 | esac | |
1888 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1889 | $as_echo "$ac_try_echo"; } >&5 | |
1890 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1891 | ac_status=$? | |
1892 | if test -s conftest.err; then | |
1893 | grep -v '^ *+' conftest.err >conftest.er1 | |
1894 | cat conftest.er1 >&5 | |
1895 | mv -f conftest.er1 conftest.err | |
1896 | fi | |
1897 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22e05272 | 1898 | test $ac_status = 0; } > conftest.i && { |
0a35513e AH |
1899 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
1900 | test ! -s conftest.err | |
1901 | }; then : | |
1902 | ac_retval=0 | |
1903 | else | |
1904 | $as_echo "$as_me: failed program was:" >&5 | |
1905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1906 | ||
1907 | ac_retval=1 | |
1908 | fi | |
22e05272 JM |
1909 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1910 | as_fn_set_status $ac_retval | |
0a35513e AH |
1911 | |
1912 | } # ac_fn_cxx_try_cpp | |
1913 | ||
1914 | # ac_fn_cxx_try_link LINENO | |
1915 | # ------------------------- | |
1916 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1917 | ac_fn_cxx_try_link () | |
1918 | { | |
1919 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1920 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1921 | if { { ac_try="$ac_link" | |
1922 | case "(($ac_try" in | |
1923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1924 | *) ac_try_echo=$ac_try;; | |
1925 | esac | |
1926 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1927 | $as_echo "$ac_try_echo"; } >&5 | |
1928 | (eval "$ac_link") 2>conftest.err | |
1929 | ac_status=$? | |
1930 | if test -s conftest.err; then | |
1931 | grep -v '^ *+' conftest.err >conftest.er1 | |
1932 | cat conftest.er1 >&5 | |
1933 | mv -f conftest.er1 conftest.err | |
1934 | fi | |
1935 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1936 | test $ac_status = 0; } && { | |
1937 | test -z "$ac_cxx_werror_flag" || | |
1938 | test ! -s conftest.err | |
1939 | } && test -s conftest$ac_exeext && { | |
1940 | test "$cross_compiling" = yes || | |
22e05272 | 1941 | test -x conftest$ac_exeext |
0a35513e AH |
1942 | }; then : |
1943 | ac_retval=0 | |
1944 | else | |
1945 | $as_echo "$as_me: failed program was:" >&5 | |
1946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1947 | ||
1948 | ac_retval=1 | |
1949 | fi | |
1950 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1951 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1952 | # interfere with the next link command; also delete a directory that is | |
1953 | # left behind by Apple's compiler. We do this before executing the actions. | |
1954 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1955 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1956 | as_fn_set_status $ac_retval | |
0a35513e AH |
1957 | |
1958 | } # ac_fn_cxx_try_link | |
1959 | ||
1960 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1961 | # ------------------------------------------------------- | |
1962 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1963 | # the include files in INCLUDES and setting the cache variable VAR | |
1964 | # accordingly. | |
1965 | ac_fn_c_check_header_mongrel () | |
1966 | { | |
1967 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
22e05272 | 1968 | if eval \${$3+:} false; then : |
0a35513e AH |
1969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1970 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1971 | if eval \${$3+:} false; then : |
0a35513e AH |
1972 | $as_echo_n "(cached) " >&6 |
1973 | fi | |
1974 | eval ac_res=\$$3 | |
1975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1976 | $as_echo "$ac_res" >&6; } | |
1977 | else | |
1978 | # Is the header compilable? | |
1979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1980 | $as_echo_n "checking $2 usability... " >&6; } | |
1981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1982 | /* end confdefs.h. */ | |
1983 | $4 | |
1984 | #include <$2> | |
1985 | _ACEOF | |
1986 | if ac_fn_c_try_compile "$LINENO"; then : | |
1987 | ac_header_compiler=yes | |
1988 | else | |
1989 | ac_header_compiler=no | |
1990 | fi | |
1991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1993 | $as_echo "$ac_header_compiler" >&6; } | |
1994 | ||
1995 | # Is the header present? | |
1996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1997 | $as_echo_n "checking $2 presence... " >&6; } | |
1998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1999 | /* end confdefs.h. */ | |
2000 | #include <$2> | |
2001 | _ACEOF | |
2002 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2003 | ac_header_preproc=yes | |
2004 | else | |
2005 | ac_header_preproc=no | |
2006 | fi | |
22e05272 | 2007 | rm -f conftest.err conftest.i conftest.$ac_ext |
0a35513e AH |
2008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2009 | $as_echo "$ac_header_preproc" >&6; } | |
2010 | ||
2011 | # So? What about this header? | |
2012 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2013 | yes:no: ) | |
2014 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2015 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2016 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2017 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2018 | ;; | |
2019 | no:yes:* ) | |
2020 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2021 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2022 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2023 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2024 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2025 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2026 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2027 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2028 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2029 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2030 | ;; | |
2031 | esac | |
2032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2033 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 2034 | if eval \${$3+:} false; then : |
0a35513e AH |
2035 | $as_echo_n "(cached) " >&6 |
2036 | else | |
2037 | eval "$3=\$ac_header_compiler" | |
2038 | fi | |
2039 | eval ac_res=\$$3 | |
2040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2041 | $as_echo "$ac_res" >&6; } | |
2042 | fi | |
22e05272 | 2043 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
0a35513e AH |
2044 | |
2045 | } # ac_fn_c_check_header_mongrel | |
2046 | ||
2047 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
2048 | # ------------------------------------------- | |
2049 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2050 | # variable VAR accordingly. | |
2051 | ac_fn_c_check_type () | |
2052 | { | |
2053 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2055 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 2056 | if eval \${$3+:} false; then : |
0a35513e AH |
2057 | $as_echo_n "(cached) " >&6 |
2058 | else | |
2059 | eval "$3=no" | |
2060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2061 | /* end confdefs.h. */ | |
2062 | $4 | |
2063 | int | |
2064 | main () | |
2065 | { | |
2066 | if (sizeof ($2)) | |
2067 | return 0; | |
2068 | ; | |
2069 | return 0; | |
2070 | } | |
2071 | _ACEOF | |
2072 | if ac_fn_c_try_compile "$LINENO"; then : | |
2073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2074 | /* end confdefs.h. */ | |
2075 | $4 | |
2076 | int | |
2077 | main () | |
2078 | { | |
2079 | if (sizeof (($2))) | |
2080 | return 0; | |
2081 | ; | |
2082 | return 0; | |
2083 | } | |
2084 | _ACEOF | |
2085 | if ac_fn_c_try_compile "$LINENO"; then : | |
2086 | ||
2087 | else | |
2088 | eval "$3=yes" | |
2089 | fi | |
2090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2091 | fi | |
2092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2093 | fi | |
2094 | eval ac_res=\$$3 | |
2095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2096 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2097 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
0a35513e AH |
2098 | |
2099 | } # ac_fn_c_check_type | |
2100 | ||
2101 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2102 | # -------------------------------------------- | |
2103 | # Tries to find the compile-time value of EXPR in a program that includes | |
2104 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2105 | # computed | |
2106 | ac_fn_c_compute_int () | |
2107 | { | |
2108 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2109 | if test "$cross_compiling" = yes; then | |
2110 | # Depending upon the size, compute the lo and hi bounds. | |
2111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2112 | /* end confdefs.h. */ | |
2113 | $4 | |
2114 | int | |
2115 | main () | |
2116 | { | |
2117 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
22e05272 JM |
2118 | test_array [0] = 0; |
2119 | return test_array [0]; | |
0a35513e AH |
2120 | |
2121 | ; | |
2122 | return 0; | |
2123 | } | |
2124 | _ACEOF | |
2125 | if ac_fn_c_try_compile "$LINENO"; then : | |
2126 | ac_lo=0 ac_mid=0 | |
2127 | while :; do | |
2128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2129 | /* end confdefs.h. */ | |
2130 | $4 | |
2131 | int | |
2132 | main () | |
2133 | { | |
2134 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
2135 | test_array [0] = 0; |
2136 | return test_array [0]; | |
0a35513e AH |
2137 | |
2138 | ; | |
2139 | return 0; | |
2140 | } | |
2141 | _ACEOF | |
2142 | if ac_fn_c_try_compile "$LINENO"; then : | |
2143 | ac_hi=$ac_mid; break | |
2144 | else | |
2145 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2146 | if test $ac_lo -le $ac_mid; then | |
2147 | ac_lo= ac_hi= | |
2148 | break | |
2149 | fi | |
2150 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2151 | fi | |
2152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2153 | done | |
2154 | else | |
2155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2156 | /* end confdefs.h. */ | |
2157 | $4 | |
2158 | int | |
2159 | main () | |
2160 | { | |
2161 | static int test_array [1 - 2 * !(($2) < 0)]; | |
22e05272 JM |
2162 | test_array [0] = 0; |
2163 | return test_array [0]; | |
0a35513e AH |
2164 | |
2165 | ; | |
2166 | return 0; | |
2167 | } | |
2168 | _ACEOF | |
2169 | if ac_fn_c_try_compile "$LINENO"; then : | |
2170 | ac_hi=-1 ac_mid=-1 | |
2171 | while :; do | |
2172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2173 | /* end confdefs.h. */ | |
2174 | $4 | |
2175 | int | |
2176 | main () | |
2177 | { | |
2178 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
22e05272 JM |
2179 | test_array [0] = 0; |
2180 | return test_array [0]; | |
0a35513e AH |
2181 | |
2182 | ; | |
2183 | return 0; | |
2184 | } | |
2185 | _ACEOF | |
2186 | if ac_fn_c_try_compile "$LINENO"; then : | |
2187 | ac_lo=$ac_mid; break | |
2188 | else | |
2189 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2190 | if test $ac_mid -le $ac_hi; then | |
2191 | ac_lo= ac_hi= | |
2192 | break | |
2193 | fi | |
2194 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2195 | fi | |
2196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2197 | done | |
2198 | else | |
2199 | ac_lo= ac_hi= | |
2200 | fi | |
2201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2202 | fi | |
2203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2204 | # Binary search between lo and hi bounds. | |
2205 | while test "x$ac_lo" != "x$ac_hi"; do | |
2206 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2208 | /* end confdefs.h. */ | |
2209 | $4 | |
2210 | int | |
2211 | main () | |
2212 | { | |
2213 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
2214 | test_array [0] = 0; |
2215 | return test_array [0]; | |
0a35513e AH |
2216 | |
2217 | ; | |
2218 | return 0; | |
2219 | } | |
2220 | _ACEOF | |
2221 | if ac_fn_c_try_compile "$LINENO"; then : | |
2222 | ac_hi=$ac_mid | |
2223 | else | |
2224 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2225 | fi | |
2226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2227 | done | |
2228 | case $ac_lo in #(( | |
2229 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2230 | '') ac_retval=1 ;; | |
2231 | esac | |
2232 | else | |
2233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2234 | /* end confdefs.h. */ | |
2235 | $4 | |
2236 | static long int longval () { return $2; } | |
2237 | static unsigned long int ulongval () { return $2; } | |
2238 | #include <stdio.h> | |
2239 | #include <stdlib.h> | |
2240 | int | |
2241 | main () | |
2242 | { | |
2243 | ||
2244 | FILE *f = fopen ("conftest.val", "w"); | |
2245 | if (! f) | |
2246 | return 1; | |
2247 | if (($2) < 0) | |
2248 | { | |
2249 | long int i = longval (); | |
2250 | if (i != ($2)) | |
2251 | return 1; | |
2252 | fprintf (f, "%ld", i); | |
2253 | } | |
2254 | else | |
2255 | { | |
2256 | unsigned long int i = ulongval (); | |
2257 | if (i != ($2)) | |
2258 | return 1; | |
2259 | fprintf (f, "%lu", i); | |
2260 | } | |
2261 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2262 | on some platforms. */ | |
2263 | return ferror (f) || fclose (f) != 0; | |
2264 | ||
2265 | ; | |
2266 | return 0; | |
2267 | } | |
2268 | _ACEOF | |
2269 | if ac_fn_c_try_run "$LINENO"; then : | |
2270 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2271 | else | |
2272 | ac_retval=1 | |
2273 | fi | |
2274 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2275 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2276 | rm -f conftest.val | |
2277 | ||
2278 | fi | |
22e05272 JM |
2279 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2280 | as_fn_set_status $ac_retval | |
0a35513e AH |
2281 | |
2282 | } # ac_fn_c_compute_int | |
9ce91011 | 2283 | |
22e05272 JM |
2284 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2285 | # --------------------------------------------- | |
2286 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2287 | # accordingly. | |
9ce91011 RO |
2288 | ac_fn_c_check_decl () |
2289 | { | |
2290 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2291 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2292 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2294 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
22e05272 | 2295 | if eval \${$3+:} false; then : |
9ce91011 RO |
2296 | $as_echo_n "(cached) " >&6 |
2297 | else | |
2298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2299 | /* end confdefs.h. */ | |
2300 | $4 | |
2301 | int | |
2302 | main () | |
2303 | { | |
2304 | #ifndef $as_decl_name | |
2305 | #ifdef __cplusplus | |
2306 | (void) $as_decl_use; | |
2307 | #else | |
2308 | (void) $as_decl_name; | |
2309 | #endif | |
2310 | #endif | |
2311 | ||
2312 | ; | |
2313 | return 0; | |
2314 | } | |
2315 | _ACEOF | |
2316 | if ac_fn_c_try_compile "$LINENO"; then : | |
2317 | eval "$3=yes" | |
2318 | else | |
2319 | eval "$3=no" | |
2320 | fi | |
2321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2322 | fi | |
2323 | eval ac_res=\$$3 | |
2324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2325 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2326 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9ce91011 RO |
2327 | |
2328 | } # ac_fn_c_check_decl | |
0a35513e AH |
2329 | cat >config.log <<_ACEOF |
2330 | This file contains any messages produced by compilers while | |
2331 | running configure, to aid debugging if configure makes a mistake. | |
2332 | ||
2333 | It was created by GNU TM Runtime Library $as_me 1.0, which was | |
22e05272 | 2334 | generated by GNU Autoconf 2.69. Invocation command line was |
0a35513e AH |
2335 | |
2336 | $ $0 $@ | |
2337 | ||
2338 | _ACEOF | |
2339 | exec 5>>config.log | |
2340 | { | |
2341 | cat <<_ASUNAME | |
2342 | ## --------- ## | |
2343 | ## Platform. ## | |
2344 | ## --------- ## | |
2345 | ||
2346 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2347 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2348 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2349 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2350 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2351 | ||
2352 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2353 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2354 | ||
2355 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2356 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2357 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2358 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2359 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2360 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2361 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2362 | ||
2363 | _ASUNAME | |
2364 | ||
2365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2366 | for as_dir in $PATH | |
2367 | do | |
2368 | IFS=$as_save_IFS | |
2369 | test -z "$as_dir" && as_dir=. | |
2370 | $as_echo "PATH: $as_dir" | |
2371 | done | |
2372 | IFS=$as_save_IFS | |
2373 | ||
2374 | } >&5 | |
2375 | ||
2376 | cat >&5 <<_ACEOF | |
2377 | ||
2378 | ||
2379 | ## ----------- ## | |
2380 | ## Core tests. ## | |
2381 | ## ----------- ## | |
2382 | ||
2383 | _ACEOF | |
2384 | ||
2385 | ||
2386 | # Keep a trace of the command line. | |
2387 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2388 | # Strip out --silent because we don't want to record it for future runs. | |
2389 | # Also quote any args containing shell meta-characters. | |
2390 | # Make two passes to allow for proper duplicate-argument suppression. | |
2391 | ac_configure_args= | |
2392 | ac_configure_args0= | |
2393 | ac_configure_args1= | |
2394 | ac_must_keep_next=false | |
2395 | for ac_pass in 1 2 | |
2396 | do | |
2397 | for ac_arg | |
2398 | do | |
2399 | case $ac_arg in | |
2400 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2401 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2402 | | -silent | --silent | --silen | --sile | --sil) | |
2403 | continue ;; | |
2404 | *\'*) | |
2405 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2406 | esac | |
2407 | case $ac_pass in | |
2408 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2409 | 2) | |
2410 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2411 | if test $ac_must_keep_next = true; then | |
2412 | ac_must_keep_next=false # Got value, back to normal. | |
2413 | else | |
2414 | case $ac_arg in | |
2415 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2416 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2417 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2418 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2419 | case "$ac_configure_args0 " in | |
2420 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2421 | esac | |
2422 | ;; | |
2423 | -* ) ac_must_keep_next=true ;; | |
2424 | esac | |
2425 | fi | |
2426 | as_fn_append ac_configure_args " '$ac_arg'" | |
2427 | ;; | |
2428 | esac | |
2429 | done | |
2430 | done | |
2431 | { ac_configure_args0=; unset ac_configure_args0;} | |
2432 | { ac_configure_args1=; unset ac_configure_args1;} | |
2433 | ||
2434 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2435 | # config.log. We remove comments because anyway the quotes in there | |
2436 | # would cause problems or look ugly. | |
2437 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2438 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2439 | trap 'exit_status=$? | |
2440 | # Save into config.log some information that might help in debugging. | |
2441 | { | |
2442 | echo | |
2443 | ||
22e05272 | 2444 | $as_echo "## ---------------- ## |
0a35513e | 2445 | ## Cache variables. ## |
22e05272 | 2446 | ## ---------------- ##" |
0a35513e AH |
2447 | echo |
2448 | # The following way of writing the cache mishandles newlines in values, | |
2449 | ( | |
2450 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2451 | eval ac_val=\$$ac_var | |
2452 | case $ac_val in #( | |
2453 | *${as_nl}*) | |
2454 | case $ac_var in #( | |
2455 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2456 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2457 | esac | |
2458 | case $ac_var in #( | |
2459 | _ | IFS | as_nl) ;; #( | |
2460 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2461 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2462 | esac ;; | |
2463 | esac | |
2464 | done | |
2465 | (set) 2>&1 | | |
2466 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2467 | *${as_nl}ac_space=\ *) | |
2468 | sed -n \ | |
2469 | "s/'\''/'\''\\\\'\'''\''/g; | |
2470 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2471 | ;; #( | |
2472 | *) | |
2473 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2474 | ;; | |
2475 | esac | | |
2476 | sort | |
2477 | ) | |
2478 | echo | |
2479 | ||
22e05272 | 2480 | $as_echo "## ----------------- ## |
0a35513e | 2481 | ## Output variables. ## |
22e05272 | 2482 | ## ----------------- ##" |
0a35513e AH |
2483 | echo |
2484 | for ac_var in $ac_subst_vars | |
2485 | do | |
2486 | eval ac_val=\$$ac_var | |
2487 | case $ac_val in | |
2488 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2489 | esac | |
2490 | $as_echo "$ac_var='\''$ac_val'\''" | |
2491 | done | sort | |
2492 | echo | |
2493 | ||
2494 | if test -n "$ac_subst_files"; then | |
22e05272 | 2495 | $as_echo "## ------------------- ## |
0a35513e | 2496 | ## File substitutions. ## |
22e05272 | 2497 | ## ------------------- ##" |
0a35513e AH |
2498 | echo |
2499 | for ac_var in $ac_subst_files | |
2500 | do | |
2501 | eval ac_val=\$$ac_var | |
2502 | case $ac_val in | |
2503 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2504 | esac | |
2505 | $as_echo "$ac_var='\''$ac_val'\''" | |
2506 | done | sort | |
2507 | echo | |
2508 | fi | |
2509 | ||
2510 | if test -s confdefs.h; then | |
22e05272 | 2511 | $as_echo "## ----------- ## |
0a35513e | 2512 | ## confdefs.h. ## |
22e05272 | 2513 | ## ----------- ##" |
0a35513e AH |
2514 | echo |
2515 | cat confdefs.h | |
2516 | echo | |
2517 | fi | |
2518 | test "$ac_signal" != 0 && | |
2519 | $as_echo "$as_me: caught signal $ac_signal" | |
2520 | $as_echo "$as_me: exit $exit_status" | |
2521 | } >&5 | |
2522 | rm -f core *.core core.conftest.* && | |
2523 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2524 | exit $exit_status | |
2525 | ' 0 | |
2526 | for ac_signal in 1 2 13 15; do | |
2527 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2528 | done | |
2529 | ac_signal=0 | |
2530 | ||
2531 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2532 | rm -f -r conftest* confdefs.h | |
2533 | ||
2534 | $as_echo "/* confdefs.h */" > confdefs.h | |
2535 | ||
2536 | # Predefined preprocessor variables. | |
2537 | ||
2538 | cat >>confdefs.h <<_ACEOF | |
2539 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2540 | _ACEOF | |
2541 | ||
2542 | cat >>confdefs.h <<_ACEOF | |
2543 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2544 | _ACEOF | |
2545 | ||
2546 | cat >>confdefs.h <<_ACEOF | |
2547 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2548 | _ACEOF | |
2549 | ||
2550 | cat >>confdefs.h <<_ACEOF | |
2551 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2552 | _ACEOF | |
2553 | ||
2554 | cat >>confdefs.h <<_ACEOF | |
2555 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2556 | _ACEOF | |
2557 | ||
2558 | cat >>confdefs.h <<_ACEOF | |
2559 | #define PACKAGE_URL "$PACKAGE_URL" | |
2560 | _ACEOF | |
2561 | ||
2562 | ||
2563 | # Let the site file select an alternate cache file if it wants to. | |
2564 | # Prefer an explicitly selected file to automatically selected ones. | |
2565 | ac_site_file1=NONE | |
2566 | ac_site_file2=NONE | |
2567 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2568 | # We do not want a PATH search for config.site. |
2569 | case $CONFIG_SITE in #(( | |
2570 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2571 | */*) ac_site_file1=$CONFIG_SITE;; | |
2572 | *) ac_site_file1=./$CONFIG_SITE;; | |
2573 | esac | |
0a35513e AH |
2574 | elif test "x$prefix" != xNONE; then |
2575 | ac_site_file1=$prefix/share/config.site | |
2576 | ac_site_file2=$prefix/etc/config.site | |
2577 | else | |
2578 | ac_site_file1=$ac_default_prefix/share/config.site | |
2579 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2580 | fi | |
2581 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2582 | do | |
2583 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2584 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
0a35513e AH |
2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2586 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2587 | sed 's/^/| /' "$ac_site_file" >&5 | |
22e05272 JM |
2588 | . "$ac_site_file" \ |
2589 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2590 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2591 | as_fn_error $? "failed to load site script $ac_site_file | |
2592 | See \`config.log' for more details" "$LINENO" 5; } | |
0a35513e AH |
2593 | fi |
2594 | done | |
2595 | ||
2596 | if test -r "$cache_file"; then | |
22e05272 JM |
2597 | # Some versions of bash will fail to source /dev/null (special files |
2598 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2599 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
0a35513e AH |
2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2601 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2602 | case $cache_file in | |
2603 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2604 | *) . "./$cache_file";; | |
2605 | esac | |
2606 | fi | |
2607 | else | |
2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2609 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2610 | >$cache_file | |
2611 | fi | |
2612 | ||
2613 | # Check that the precious variables saved in the cache have kept the same | |
2614 | # value. | |
2615 | ac_cache_corrupted=false | |
2616 | for ac_var in $ac_precious_vars; do | |
2617 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2618 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2619 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2620 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2621 | case $ac_old_set,$ac_new_set in | |
2622 | set,) | |
2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2624 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2625 | ac_cache_corrupted=: ;; | |
2626 | ,set) | |
2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2628 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2629 | ac_cache_corrupted=: ;; | |
2630 | ,);; | |
2631 | *) | |
2632 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2633 | # differences in whitespace do not lead to failure. | |
2634 | ac_old_val_w=`echo x $ac_old_val` | |
2635 | ac_new_val_w=`echo x $ac_new_val` | |
2636 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2638 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2639 | ac_cache_corrupted=: | |
2640 | else | |
2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2642 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2643 | eval $ac_var=\$ac_old_val | |
2644 | fi | |
2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2646 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2648 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2649 | fi;; | |
2650 | esac | |
2651 | # Pass precious variables to config.status. | |
2652 | if test "$ac_new_set" = set; then | |
2653 | case $ac_new_val in | |
2654 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2655 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2656 | esac | |
2657 | case " $ac_configure_args " in | |
2658 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2659 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2660 | esac | |
2661 | fi | |
2662 | done | |
2663 | if $ac_cache_corrupted; then | |
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2665 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2667 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2668 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
0a35513e AH |
2669 | fi |
2670 | ## -------------------- ## | |
2671 | ## Main body of script. ## | |
2672 | ## -------------------- ## | |
2673 | ||
2674 | ac_ext=c | |
2675 | ac_cpp='$CPP $CPPFLAGS' | |
2676 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2677 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2678 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2679 | ||
2680 | ||
2681 | ||
2682 | ||
2683 | ||
2684 | ac_config_headers="$ac_config_headers config.h" | |
2685 | ||
2686 | ||
2687 | # ------- | |
2688 | # Options | |
2689 | # ------- | |
2690 | ||
2691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 | |
2692 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2693 | # Check whether --enable-version-specific-runtime-libs was given. | |
2694 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2695 | enableval=$enable_version_specific_runtime_libs; | |
2696 | case "$enableval" in | |
2697 | yes|no) ;; | |
22e05272 | 2698 | *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;; |
0a35513e AH |
2699 | esac |
2700 | ||
2701 | else | |
2702 | enable_version_specific_runtime_libs=no | |
2703 | fi | |
2704 | ||
2705 | ||
2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5 | |
2707 | $as_echo "$enable_version_specific_runtime_libs" >&6; } | |
2708 | ||
2709 | # We would like our source tree to be readonly. However when releases or | |
2710 | # pre-releases are generated, the flex/bison generated files as well as the | |
2711 | # various formats of manuals need to be included along with the rest of the | |
2712 | # sources. Therefore we have --enable-generated-files-in-srcdir to do | |
2713 | # just that. | |
2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5 | |
2715 | $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; } | |
2716 | # Check whether --enable-generated-files-in-srcdir was given. | |
2717 | if test "${enable_generated_files_in_srcdir+set}" = set; then : | |
2718 | enableval=$enable_generated_files_in_srcdir; | |
2719 | case "$enableval" in | |
2720 | yes|no) ;; | |
22e05272 | 2721 | *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;; |
0a35513e AH |
2722 | esac |
2723 | ||
2724 | else | |
2725 | enable_generated_files_in_srcdir=no | |
2726 | fi | |
2727 | ||
2728 | ||
2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5 | |
2730 | $as_echo "$enable_generated_files_in_srcdir" >&6; } | |
2731 | if test "$enable_generated_files_in_srcdir" = yes; then | |
2732 | GENINSRC_TRUE= | |
2733 | GENINSRC_FALSE='#' | |
2734 | else | |
2735 | GENINSRC_TRUE='#' | |
2736 | GENINSRC_FALSE= | |
2737 | fi | |
2738 | ||
2739 | ||
2740 | ||
2741 | # ------- | |
2742 | # ------- | |
2743 | ||
2744 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
2745 | # | |
2746 | # You will slowly go insane if you do not grok the following fact: when | |
2747 | # building this library, the top-level /target/ becomes the library's /host/. | |
2748 | # | |
2749 | # configure then causes --target to default to --host, exactly like any | |
2750 | # other package using autoconf. Therefore, 'target' and 'host' will | |
2751 | # always be the same. This makes sense both for native and cross compilers | |
2752 | # just think about it for a little while. :-) | |
2753 | # | |
2754 | # Also, if this library is being configured as part of a cross compiler, the | |
2755 | # top-level configure script will pass the "real" host as $with_cross_host. | |
2756 | # | |
2757 | # Do not delete or change the following two lines. For why, see | |
2758 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
2759 | ac_aux_dir= | |
2760 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
22e05272 JM |
2761 | if test -f "$ac_dir/install-sh"; then |
2762 | ac_aux_dir=$ac_dir | |
2763 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2764 | break | |
2765 | elif test -f "$ac_dir/install.sh"; then | |
2766 | ac_aux_dir=$ac_dir | |
2767 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2768 | break | |
2769 | elif test -f "$ac_dir/shtool"; then | |
2770 | ac_aux_dir=$ac_dir | |
2771 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2772 | break | |
2773 | fi | |
0a35513e AH |
2774 | done |
2775 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2776 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
0a35513e AH |
2777 | fi |
2778 | ||
2779 | # These three variables are undocumented and unsupported, | |
2780 | # and are intended to be withdrawn in a future Autoconf release. | |
2781 | # They can cause serious problems if a builder's source tree is in a directory | |
2782 | # whose full name contains unusual characters. | |
2783 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2784 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2785 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2786 | ||
2787 | ||
2788 | # Make sure we can run config.sub. | |
2789 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
22e05272 | 2790 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
0a35513e AH |
2791 | |
2792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2793 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2794 | if ${ac_cv_build+:} false; then : |
0a35513e AH |
2795 | $as_echo_n "(cached) " >&6 |
2796 | else | |
2797 | ac_build_alias=$build_alias | |
2798 | test "x$ac_build_alias" = x && | |
2799 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2800 | test "x$ac_build_alias" = x && | |
22e05272 | 2801 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
0a35513e | 2802 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2803 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
0a35513e AH |
2804 | |
2805 | fi | |
2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2807 | $as_echo "$ac_cv_build" >&6; } | |
2808 | case $ac_cv_build in | |
2809 | *-*-*) ;; | |
22e05272 | 2810 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
0a35513e AH |
2811 | esac |
2812 | build=$ac_cv_build | |
2813 | ac_save_IFS=$IFS; IFS='-' | |
2814 | set x $ac_cv_build | |
2815 | shift | |
2816 | build_cpu=$1 | |
2817 | build_vendor=$2 | |
2818 | shift; shift | |
2819 | # Remember, the first character of IFS is used to create $*, | |
2820 | # except with old shells: | |
2821 | build_os=$* | |
2822 | IFS=$ac_save_IFS | |
2823 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2824 | ||
2825 | ||
2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2827 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2828 | if ${ac_cv_host+:} false; then : |
0a35513e AH |
2829 | $as_echo_n "(cached) " >&6 |
2830 | else | |
2831 | if test "x$host_alias" = x; then | |
2832 | ac_cv_host=$ac_cv_build | |
2833 | else | |
2834 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2835 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
0a35513e AH |
2836 | fi |
2837 | ||
2838 | fi | |
2839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2840 | $as_echo "$ac_cv_host" >&6; } | |
2841 | case $ac_cv_host in | |
2842 | *-*-*) ;; | |
22e05272 | 2843 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
0a35513e AH |
2844 | esac |
2845 | host=$ac_cv_host | |
2846 | ac_save_IFS=$IFS; IFS='-' | |
2847 | set x $ac_cv_host | |
2848 | shift | |
2849 | host_cpu=$1 | |
2850 | host_vendor=$2 | |
2851 | shift; shift | |
2852 | # Remember, the first character of IFS is used to create $*, | |
2853 | # except with old shells: | |
2854 | host_os=$* | |
2855 | IFS=$ac_save_IFS | |
2856 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2857 | ||
2858 | ||
2859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2860 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2861 | if ${ac_cv_target+:} false; then : |
0a35513e AH |
2862 | $as_echo_n "(cached) " >&6 |
2863 | else | |
2864 | if test "x$target_alias" = x; then | |
2865 | ac_cv_target=$ac_cv_host | |
2866 | else | |
2867 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2868 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
0a35513e AH |
2869 | fi |
2870 | ||
2871 | fi | |
2872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2873 | $as_echo "$ac_cv_target" >&6; } | |
2874 | case $ac_cv_target in | |
2875 | *-*-*) ;; | |
22e05272 | 2876 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
0a35513e AH |
2877 | esac |
2878 | target=$ac_cv_target | |
2879 | ac_save_IFS=$IFS; IFS='-' | |
2880 | set x $ac_cv_target | |
2881 | shift | |
2882 | target_cpu=$1 | |
2883 | target_vendor=$2 | |
2884 | shift; shift | |
2885 | # Remember, the first character of IFS is used to create $*, | |
2886 | # except with old shells: | |
2887 | target_os=$* | |
2888 | IFS=$ac_save_IFS | |
2889 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2890 | ||
2891 | ||
2892 | # The aliases save the names the user supplied, while $host etc. | |
2893 | # will get canonicalized. | |
2894 | test -n "$target_alias" && | |
2895 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2896 | NONENONEs,x,x, && | |
2897 | program_prefix=${target_alias}- | |
2898 | ||
2899 | target_alias=${target_alias-$host_alias} | |
2900 | ||
2901 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the | |
2902 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
2903 | # 1.9.0: minimum required version | |
2904 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
2905 | # of other PACKAGE_* variables will, however, and there's nothing | |
2906 | # we can do about that; they come from AC_INIT). | |
c0758df9 | 2907 | # no-dist: we don't want 'dist' and related rules. |
0a35513e AH |
2908 | # foreign: we don't follow the normal rules for GNU packages (no COPYING |
2909 | # file in the top srcdir, etc, etc), so stop complaining. | |
2910 | # -Wall: turns on all automake warnings... | |
2911 | # -Wno-portability: ...except this one, since GNU make is required. | |
2912 | # -Wno-override: ... and this one, since we do want this in testsuite. | |
22e05272 | 2913 | am__api_version='1.15' |
0a35513e AH |
2914 | |
2915 | # Find a good install program. We prefer a C program (faster), | |
2916 | # so one script is as good as another. But avoid the broken or | |
2917 | # incompatible versions: | |
2918 | # SysV /etc/install, /usr/sbin/install | |
2919 | # SunOS /usr/etc/install | |
2920 | # IRIX /sbin/install | |
2921 | # AIX /bin/install | |
2922 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2923 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2924 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2925 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2926 | # OS/2's system install, which has a completely different semantic | |
2927 | # ./install, which can be erroneously created by make from ./install.sh. | |
2928 | # Reject install programs that cannot install multiple files. | |
2929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2930 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2931 | if test -z "$INSTALL"; then | |
22e05272 | 2932 | if ${ac_cv_path_install+:} false; then : |
0a35513e AH |
2933 | $as_echo_n "(cached) " >&6 |
2934 | else | |
2935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2936 | for as_dir in $PATH | |
2937 | do | |
2938 | IFS=$as_save_IFS | |
2939 | test -z "$as_dir" && as_dir=. | |
2940 | # Account for people who put trailing slashes in PATH elements. | |
2941 | case $as_dir/ in #(( | |
2942 | ./ | .// | /[cC]/* | \ | |
2943 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2944 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2945 | /usr/ucb/* ) ;; | |
2946 | *) | |
2947 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2948 | # Don't use installbsd from OSF since it installs stuff as root | |
2949 | # by default. | |
2950 | for ac_prog in ginstall scoinst install; do | |
2951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2952 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
0a35513e AH |
2953 | if test $ac_prog = install && |
2954 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2955 | # AIX install. It has an incompatible calling convention. | |
2956 | : | |
2957 | elif test $ac_prog = install && | |
2958 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2959 | # program-specific install script used by HP pwplus--don't use. | |
2960 | : | |
2961 | else | |
2962 | rm -rf conftest.one conftest.two conftest.dir | |
2963 | echo one > conftest.one | |
2964 | echo two > conftest.two | |
2965 | mkdir conftest.dir | |
2966 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2967 | test -s conftest.one && test -s conftest.two && | |
2968 | test -s conftest.dir/conftest.one && | |
2969 | test -s conftest.dir/conftest.two | |
2970 | then | |
2971 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2972 | break 3 | |
2973 | fi | |
2974 | fi | |
2975 | fi | |
2976 | done | |
2977 | done | |
2978 | ;; | |
2979 | esac | |
2980 | ||
2981 | done | |
2982 | IFS=$as_save_IFS | |
2983 | ||
2984 | rm -rf conftest.one conftest.two conftest.dir | |
2985 | ||
2986 | fi | |
2987 | if test "${ac_cv_path_install+set}" = set; then | |
2988 | INSTALL=$ac_cv_path_install | |
2989 | else | |
2990 | # As a last resort, use the slow shell script. Don't cache a | |
2991 | # value for INSTALL within a source directory, because that will | |
2992 | # break other packages using the cache if that directory is | |
2993 | # removed, or if the value is a relative name. | |
2994 | INSTALL=$ac_install_sh | |
2995 | fi | |
2996 | fi | |
2997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2998 | $as_echo "$INSTALL" >&6; } | |
2999 | ||
3000 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3001 | # It thinks the first close brace ends the variable substitution. | |
3002 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3003 | ||
3004 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3005 | ||
3006 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3007 | ||
3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
3009 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
0a35513e AH |
3010 | # Reject unsafe characters in $srcdir or the absolute working directory |
3011 | # name. Accept space and tab only in the latter. | |
3012 | am_lf=' | |
3013 | ' | |
3014 | case `pwd` in | |
3015 | *[\\\"\#\$\&\'\`$am_lf]*) | |
22e05272 | 3016 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
0a35513e AH |
3017 | esac |
3018 | case $srcdir in | |
3019 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
22e05272 | 3020 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
0a35513e AH |
3021 | esac |
3022 | ||
22e05272 | 3023 | # Do 'set' in a subshell so we don't clobber the current shell's |
0a35513e AH |
3024 | # arguments. Must try -L first in case configure is actually a |
3025 | # symlink; some systems play weird games with the mod time of symlinks | |
3026 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3027 | # directory). | |
3028 | if ( | |
22e05272 JM |
3029 | am_has_slept=no |
3030 | for am_try in 1 2; do | |
3031 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
3032 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3033 | if test "$*" = "X"; then | |
3034 | # -L didn't work. | |
3035 | set X `ls -t "$srcdir/configure" conftest.file` | |
3036 | fi | |
3037 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3038 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3039 | ||
3040 | # If neither matched, then we have a broken ls. This can happen | |
3041 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3042 | # broken ls alias from the environment. This has actually | |
3043 | # happened. Such a system could not be considered "sane". | |
3044 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3045 | alias in your environment" "$LINENO" 5 | |
3046 | fi | |
3047 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
3048 | break | |
3049 | fi | |
3050 | # Just in case. | |
3051 | sleep 1 | |
3052 | am_has_slept=yes | |
3053 | done | |
0a35513e AH |
3054 | test "$2" = conftest.file |
3055 | ) | |
3056 | then | |
3057 | # Ok. | |
3058 | : | |
3059 | else | |
22e05272 | 3060 | as_fn_error $? "newly created file is older than distributed files! |
0a35513e AH |
3061 | Check your system clock" "$LINENO" 5 |
3062 | fi | |
3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3064 | $as_echo "yes" >&6; } | |
22e05272 JM |
3065 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
3066 | # generated files are strictly newer. | |
3067 | am_sleep_pid= | |
3068 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
3069 | ( sleep 1 ) & | |
3070 | am_sleep_pid=$! | |
3071 | fi | |
3072 | ||
3073 | rm -f conftest.file | |
3074 | ||
0a35513e AH |
3075 | test "$program_prefix" != NONE && |
3076 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
3077 | # Use a double $ so make ignores it. | |
3078 | test "$program_suffix" != NONE && | |
3079 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
3080 | # Double any \ or $. | |
3081 | # By default was `s,x,x', remove it if useless. | |
3082 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
3083 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
3084 | ||
22e05272 JM |
3085 | # Expand $ac_aux_dir to an absolute path. |
3086 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
0a35513e AH |
3087 | |
3088 | if test x"${MISSING+set}" != xset; then | |
3089 | case $am_aux_dir in | |
3090 | *\ * | *\ *) | |
3091 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3092 | *) | |
3093 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3094 | esac | |
3095 | fi | |
3096 | # Use eval to expand $SHELL | |
22e05272 JM |
3097 | if eval "$MISSING --is-lightweight"; then |
3098 | am_missing_run="$MISSING " | |
0a35513e AH |
3099 | else |
3100 | am_missing_run= | |
22e05272 JM |
3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
3102 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
0a35513e AH |
3103 | fi |
3104 | ||
22e05272 | 3105 | if test x"${install_sh+set}" != xset; then |
0a35513e AH |
3106 | case $am_aux_dir in |
3107 | *\ * | *\ *) | |
3108 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3109 | *) | |
3110 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3111 | esac | |
3112 | fi | |
3113 | ||
22e05272 JM |
3114 | # Installed binaries are usually stripped using 'strip' when the user |
3115 | # run "make install-strip". However 'strip' might not be the right | |
0a35513e | 3116 | # tool to use in cross-compilation environments, therefore Automake |
22e05272 | 3117 | # will honor the 'STRIP' environment variable to overrule this program. |
0a35513e AH |
3118 | if test "$cross_compiling" != no; then |
3119 | if test -n "$ac_tool_prefix"; then | |
3120 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3121 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3123 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3124 | if ${ac_cv_prog_STRIP+:} false; then : |
0a35513e AH |
3125 | $as_echo_n "(cached) " >&6 |
3126 | else | |
3127 | if test -n "$STRIP"; then | |
3128 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3129 | else | |
3130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3131 | for as_dir in $PATH | |
3132 | do | |
3133 | IFS=$as_save_IFS | |
3134 | test -z "$as_dir" && as_dir=. | |
3135 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3136 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
3137 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3138 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3139 | break 2 | |
3140 | fi | |
3141 | done | |
3142 | done | |
3143 | IFS=$as_save_IFS | |
3144 | ||
3145 | fi | |
3146 | fi | |
3147 | STRIP=$ac_cv_prog_STRIP | |
3148 | if test -n "$STRIP"; then | |
3149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3150 | $as_echo "$STRIP" >&6; } | |
3151 | else | |
3152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3153 | $as_echo "no" >&6; } | |
3154 | fi | |
3155 | ||
3156 | ||
3157 | fi | |
3158 | if test -z "$ac_cv_prog_STRIP"; then | |
3159 | ac_ct_STRIP=$STRIP | |
3160 | # Extract the first word of "strip", so it can be a program name with args. | |
3161 | set dummy strip; ac_word=$2 | |
3162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3163 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3164 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
0a35513e AH |
3165 | $as_echo_n "(cached) " >&6 |
3166 | else | |
3167 | if test -n "$ac_ct_STRIP"; then | |
3168 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3169 | else | |
3170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3171 | for as_dir in $PATH | |
3172 | do | |
3173 | IFS=$as_save_IFS | |
3174 | test -z "$as_dir" && as_dir=. | |
3175 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3176 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
3177 | ac_cv_prog_ac_ct_STRIP="strip" |
3178 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3179 | break 2 | |
3180 | fi | |
3181 | done | |
3182 | done | |
3183 | IFS=$as_save_IFS | |
3184 | ||
3185 | fi | |
3186 | fi | |
3187 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3188 | if test -n "$ac_ct_STRIP"; then | |
3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3190 | $as_echo "$ac_ct_STRIP" >&6; } | |
3191 | else | |
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3193 | $as_echo "no" >&6; } | |
3194 | fi | |
3195 | ||
3196 | if test "x$ac_ct_STRIP" = x; then | |
3197 | STRIP=":" | |
3198 | else | |
3199 | case $cross_compiling:$ac_tool_warned in | |
3200 | yes:) | |
3201 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3202 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3203 | ac_tool_warned=yes ;; | |
3204 | esac | |
3205 | STRIP=$ac_ct_STRIP | |
3206 | fi | |
3207 | else | |
3208 | STRIP="$ac_cv_prog_STRIP" | |
3209 | fi | |
3210 | ||
3211 | fi | |
3212 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3213 | ||
3214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3215 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3216 | if test -z "$MKDIR_P"; then | |
22e05272 | 3217 | if ${ac_cv_path_mkdir+:} false; then : |
0a35513e AH |
3218 | $as_echo_n "(cached) " >&6 |
3219 | else | |
3220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3221 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3222 | do | |
3223 | IFS=$as_save_IFS | |
3224 | test -z "$as_dir" && as_dir=. | |
3225 | for ac_prog in mkdir gmkdir; do | |
3226 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3227 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
0a35513e AH |
3228 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3229 | 'mkdir (GNU coreutils) '* | \ | |
3230 | 'mkdir (coreutils) '* | \ | |
3231 | 'mkdir (fileutils) '4.1*) | |
3232 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3233 | break 3;; | |
3234 | esac | |
3235 | done | |
3236 | done | |
3237 | done | |
3238 | IFS=$as_save_IFS | |
3239 | ||
3240 | fi | |
3241 | ||
22e05272 | 3242 | test -d ./--version && rmdir ./--version |
0a35513e AH |
3243 | if test "${ac_cv_path_mkdir+set}" = set; then |
3244 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3245 | else | |
3246 | # As a last resort, use the slow shell script. Don't cache a | |
3247 | # value for MKDIR_P within a source directory, because that will | |
3248 | # break other packages using the cache if that directory is | |
3249 | # removed, or if the value is a relative name. | |
0a35513e AH |
3250 | MKDIR_P="$ac_install_sh -d" |
3251 | fi | |
3252 | fi | |
3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3254 | $as_echo "$MKDIR_P" >&6; } | |
3255 | ||
0a35513e AH |
3256 | for ac_prog in gawk mawk nawk awk |
3257 | do | |
3258 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3259 | set dummy $ac_prog; ac_word=$2 | |
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3261 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3262 | if ${ac_cv_prog_AWK+:} false; then : |
0a35513e AH |
3263 | $as_echo_n "(cached) " >&6 |
3264 | else | |
3265 | if test -n "$AWK"; then | |
3266 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3267 | else | |
3268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3269 | for as_dir in $PATH | |
3270 | do | |
3271 | IFS=$as_save_IFS | |
3272 | test -z "$as_dir" && as_dir=. | |
3273 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3274 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
3275 | ac_cv_prog_AWK="$ac_prog" |
3276 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3277 | break 2 | |
3278 | fi | |
3279 | done | |
3280 | done | |
3281 | IFS=$as_save_IFS | |
3282 | ||
3283 | fi | |
3284 | fi | |
3285 | AWK=$ac_cv_prog_AWK | |
3286 | if test -n "$AWK"; then | |
3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3288 | $as_echo "$AWK" >&6; } | |
3289 | else | |
3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3291 | $as_echo "no" >&6; } | |
3292 | fi | |
3293 | ||
3294 | ||
3295 | test -n "$AWK" && break | |
3296 | done | |
3297 | ||
3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3299 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3300 | set x ${MAKE-make} | |
3301 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 3302 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
0a35513e AH |
3303 | $as_echo_n "(cached) " >&6 |
3304 | else | |
3305 | cat >conftest.make <<\_ACEOF | |
3306 | SHELL = /bin/sh | |
3307 | all: | |
3308 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3309 | _ACEOF | |
22e05272 | 3310 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
0a35513e AH |
3311 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3312 | *@@@%%%=?*=@@@%%%*) | |
3313 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3314 | *) | |
3315 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3316 | esac | |
3317 | rm -f conftest.make | |
3318 | fi | |
3319 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3321 | $as_echo "yes" >&6; } | |
3322 | SET_MAKE= | |
3323 | else | |
3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3325 | $as_echo "no" >&6; } | |
3326 | SET_MAKE="MAKE=${MAKE-make}" | |
3327 | fi | |
3328 | ||
3329 | rm -rf .tst 2>/dev/null | |
3330 | mkdir .tst 2>/dev/null | |
3331 | if test -d .tst; then | |
3332 | am__leading_dot=. | |
3333 | else | |
3334 | am__leading_dot=_ | |
3335 | fi | |
3336 | rmdir .tst 2>/dev/null | |
3337 | ||
22e05272 JM |
3338 | # Check whether --enable-silent-rules was given. |
3339 | if test "${enable_silent_rules+set}" = set; then : | |
3340 | enableval=$enable_silent_rules; | |
3341 | fi | |
3342 | ||
3343 | case $enable_silent_rules in # ((( | |
3344 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3345 | no) AM_DEFAULT_VERBOSITY=1;; | |
3346 | *) AM_DEFAULT_VERBOSITY=1;; | |
3347 | esac | |
3348 | am_make=${MAKE-make} | |
3349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3350 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3351 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3352 | $as_echo_n "(cached) " >&6 | |
3353 | else | |
3354 | if $as_echo 'TRUE=$(BAR$(V)) | |
3355 | BAR0=false | |
3356 | BAR1=true | |
3357 | V=1 | |
3358 | am__doit: | |
3359 | @$(TRUE) | |
3360 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3361 | am_cv_make_support_nested_variables=yes | |
3362 | else | |
3363 | am_cv_make_support_nested_variables=no | |
3364 | fi | |
3365 | fi | |
3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3367 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3368 | if test $am_cv_make_support_nested_variables = yes; then | |
3369 | AM_V='$(V)' | |
3370 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3371 | else | |
3372 | AM_V=$AM_DEFAULT_VERBOSITY | |
3373 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3374 | fi | |
3375 | AM_BACKSLASH='\' | |
3376 | ||
0a35513e AH |
3377 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3378 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3379 | # is not polluted with repeated "-I." | |
3380 | am__isrc=' -I$(srcdir)' | |
3381 | # test to see if srcdir already configured | |
3382 | if test -f $srcdir/config.status; then | |
22e05272 | 3383 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
0a35513e AH |
3384 | fi |
3385 | fi | |
3386 | ||
3387 | # test whether we have cygpath | |
3388 | if test -z "$CYGPATH_W"; then | |
3389 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3390 | CYGPATH_W='cygpath -w' | |
3391 | else | |
3392 | CYGPATH_W=echo | |
3393 | fi | |
3394 | fi | |
3395 | ||
3396 | ||
3397 | # Define the identity of the package. | |
3398 | PACKAGE='libitm' | |
3399 | VERSION='1.0' | |
3400 | ||
3401 | ||
3402 | cat >>confdefs.h <<_ACEOF | |
3403 | #define PACKAGE "$PACKAGE" | |
3404 | _ACEOF | |
3405 | ||
3406 | ||
3407 | cat >>confdefs.h <<_ACEOF | |
3408 | #define VERSION "$VERSION" | |
3409 | _ACEOF | |
3410 | ||
3411 | # Some tools Automake needs. | |
3412 | ||
3413 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3414 | ||
3415 | ||
3416 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3417 | ||
3418 | ||
3419 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3420 | ||
3421 | ||
3422 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3423 | ||
3424 | ||
3425 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3426 | ||
22e05272 JM |
3427 | # For better backward compatibility. To be removed once Automake 1.9.x |
3428 | # dies out for good. For more background, see: | |
3429 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3430 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3431 | mkdir_p='$(MKDIR_P)' | |
3432 | ||
3433 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3434 | # system "awk" is bad on some platforms. | |
503902f9 MH |
3435 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3436 | # in the wild :-( We should find a proper way to deprecate it ... | |
3437 | AMTAR='$${TAR-tar}' | |
0a35513e | 3438 | |
22e05272 JM |
3439 | |
3440 | # We'll loop over all known methods to create a tar archive until one works. | |
3441 | _am_tools='gnutar pax cpio none' | |
3442 | ||
503902f9 | 3443 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
0a35513e AH |
3444 | |
3445 | ||
3446 | ||
3447 | ||
3448 | ||
22e05272 JM |
3449 | |
3450 | # POSIX will say in a future version that running "rm -f" with no argument | |
3451 | # is OK; and we want to be able to make that assumption in our Makefile | |
3452 | # recipes. So use an aggressive probe to check that the usage we want is | |
3453 | # actually supported "in the wild" to an acceptable degree. | |
3454 | # See automake bug#10828. | |
3455 | # To make any issue more visible, cause the running configure to be aborted | |
3456 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3457 | # user can still override this though. | |
3458 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3459 | cat >&2 <<'END' | |
3460 | Oops! | |
3461 | ||
3462 | Your 'rm' program seems unable to run without file operands specified | |
3463 | on the command line, even when the '-f' option is present. This is contrary | |
3464 | to the behaviour of most rm programs out there, and not conforming with | |
3465 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3466 | ||
3467 | Please tell bug-automake@gnu.org about your system, including the value | |
3468 | of your $PATH and any error possibly output before this message. This | |
3469 | can help us improve future automake versions. | |
3470 | ||
3471 | END | |
3472 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3473 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3474 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3475 | echo >&2 | |
3476 | else | |
3477 | cat >&2 <<'END' | |
3478 | Aborting the configuration process, to ensure you take notice of the issue. | |
3479 | ||
3480 | You can download and install GNU coreutils to get an 'rm' implementation | |
3481 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3482 | ||
3483 | If you want to complete the configuration process using your problematic | |
3484 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3485 | to "yes", and re-run configure. | |
3486 | ||
3487 | END | |
3488 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3489 | fi | |
3490 | fi | |
3491 | ||
0a35513e AH |
3492 | # Default to --enable-multilib |
3493 | # Check whether --enable-multilib was given. | |
3494 | if test "${enable_multilib+set}" = set; then : | |
3495 | enableval=$enable_multilib; case "$enableval" in | |
3496 | yes) multilib=yes ;; | |
3497 | no) multilib=no ;; | |
22e05272 | 3498 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
0a35513e AH |
3499 | esac |
3500 | else | |
3501 | multilib=yes | |
3502 | fi | |
3503 | ||
3504 | ||
3505 | # We may get other options which we leave undocumented: | |
3506 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
3507 | # See config-ml.in if you want the gory details. | |
3508 | ||
3509 | if test "$srcdir" = "."; then | |
3510 | if test "$with_target_subdir" != "."; then | |
3511 | multi_basedir="$srcdir/$with_multisrctop../.." | |
3512 | else | |
3513 | multi_basedir="$srcdir/$with_multisrctop.." | |
3514 | fi | |
3515 | else | |
3516 | multi_basedir="$srcdir/.." | |
3517 | fi | |
3518 | ||
3519 | ||
3520 | # Even if the default multilib is not a cross compilation, | |
3521 | # it may be that some of the other multilibs are. | |
3522 | if test $cross_compiling = no && test $multilib = yes \ | |
3523 | && test "x${with_multisubdir}" != x ; then | |
3524 | cross_compiling=maybe | |
3525 | fi | |
3526 | ||
3527 | ac_config_commands="$ac_config_commands default-1" | |
3528 | ||
3529 | ||
3530 | # Calculate toolexeclibdir | |
3531 | # Also toolexecdir, though it's only used in toolexeclibdir | |
3532 | case ${enable_version_specific_runtime_libs} in | |
3533 | yes) | |
3534 | # Need the gcc compiler version to know where to install libraries | |
3535 | # and header files if --enable-version-specific-runtime-libs option | |
3536 | # is selected. | |
3537 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
3538 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
3539 | ;; | |
3540 | no) | |
3541 | if test -n "$with_cross_host" && | |
3542 | test x"$with_cross_host" != x"no"; then | |
3543 | # Install a library built with a cross compiler in tooldir, not libdir. | |
3544 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
3545 | toolexeclibdir='$(toolexecdir)/lib' | |
3546 | else | |
3547 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
3548 | toolexeclibdir='$(libdir)' | |
3549 | fi | |
3550 | multi_os_directory=`$CC -print-multi-os-directory` | |
3551 | case $multi_os_directory in | |
3552 | .) ;; # Avoid trailing /. | |
3553 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
3554 | esac | |
3555 | ;; | |
3556 | esac | |
3557 | ||
3558 | ||
3559 | ||
3560 | # Check the compiler. | |
3561 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
3562 | # We must force CC to /not/ be precious variables; otherwise | |
3563 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
3564 | # As a side effect, we have to subst CFLAGS ourselves. | |
3565 | ||
3566 | ||
3567 | ||
3568 | ac_ext=c | |
3569 | ac_cpp='$CPP $CPPFLAGS' | |
3570 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3571 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3572 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3573 | if test -n "$ac_tool_prefix"; then | |
3574 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3575 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3577 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3578 | if ${ac_cv_prog_CC+:} false; then : |
0a35513e AH |
3579 | $as_echo_n "(cached) " >&6 |
3580 | else | |
3581 | if test -n "$CC"; then | |
3582 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3583 | else | |
3584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3585 | for as_dir in $PATH | |
3586 | do | |
3587 | IFS=$as_save_IFS | |
3588 | test -z "$as_dir" && as_dir=. | |
3589 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3590 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
3591 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3593 | break 2 | |
3594 | fi | |
3595 | done | |
3596 | done | |
3597 | IFS=$as_save_IFS | |
3598 | ||
3599 | fi | |
3600 | fi | |
3601 | CC=$ac_cv_prog_CC | |
3602 | if test -n "$CC"; then | |
3603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3604 | $as_echo "$CC" >&6; } | |
3605 | else | |
3606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3607 | $as_echo "no" >&6; } | |
3608 | fi | |
3609 | ||
3610 | ||
3611 | fi | |
3612 | if test -z "$ac_cv_prog_CC"; then | |
3613 | ac_ct_CC=$CC | |
3614 | # Extract the first word of "gcc", so it can be a program name with args. | |
3615 | set dummy gcc; ac_word=$2 | |
3616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3617 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3618 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0a35513e AH |
3619 | $as_echo_n "(cached) " >&6 |
3620 | else | |
3621 | if test -n "$ac_ct_CC"; then | |
3622 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3623 | else | |
3624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3625 | for as_dir in $PATH | |
3626 | do | |
3627 | IFS=$as_save_IFS | |
3628 | test -z "$as_dir" && as_dir=. | |
3629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3630 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
3631 | ac_cv_prog_ac_ct_CC="gcc" |
3632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3633 | break 2 | |
3634 | fi | |
3635 | done | |
3636 | done | |
3637 | IFS=$as_save_IFS | |
3638 | ||
3639 | fi | |
3640 | fi | |
3641 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3642 | if test -n "$ac_ct_CC"; then | |
3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3644 | $as_echo "$ac_ct_CC" >&6; } | |
3645 | else | |
3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3647 | $as_echo "no" >&6; } | |
3648 | fi | |
3649 | ||
3650 | if test "x$ac_ct_CC" = x; then | |
3651 | CC="" | |
3652 | else | |
3653 | case $cross_compiling:$ac_tool_warned in | |
3654 | yes:) | |
3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3656 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3657 | ac_tool_warned=yes ;; | |
3658 | esac | |
3659 | CC=$ac_ct_CC | |
3660 | fi | |
3661 | else | |
3662 | CC="$ac_cv_prog_CC" | |
3663 | fi | |
3664 | ||
3665 | if test -z "$CC"; then | |
3666 | if test -n "$ac_tool_prefix"; then | |
3667 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3668 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3670 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3671 | if ${ac_cv_prog_CC+:} false; then : |
0a35513e AH |
3672 | $as_echo_n "(cached) " >&6 |
3673 | else | |
3674 | if test -n "$CC"; then | |
3675 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3676 | else | |
3677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3678 | for as_dir in $PATH | |
3679 | do | |
3680 | IFS=$as_save_IFS | |
3681 | test -z "$as_dir" && as_dir=. | |
3682 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3683 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
3684 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3686 | break 2 | |
3687 | fi | |
3688 | done | |
3689 | done | |
3690 | IFS=$as_save_IFS | |
3691 | ||
3692 | fi | |
3693 | fi | |
3694 | CC=$ac_cv_prog_CC | |
3695 | if test -n "$CC"; then | |
3696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3697 | $as_echo "$CC" >&6; } | |
3698 | else | |
3699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3700 | $as_echo "no" >&6; } | |
3701 | fi | |
3702 | ||
3703 | ||
3704 | fi | |
3705 | fi | |
3706 | if test -z "$CC"; then | |
3707 | # Extract the first word of "cc", so it can be a program name with args. | |
3708 | set dummy cc; ac_word=$2 | |
3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3710 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3711 | if ${ac_cv_prog_CC+:} false; then : |
0a35513e AH |
3712 | $as_echo_n "(cached) " >&6 |
3713 | else | |
3714 | if test -n "$CC"; then | |
3715 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3716 | else | |
3717 | ac_prog_rejected=no | |
3718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3719 | for as_dir in $PATH | |
3720 | do | |
3721 | IFS=$as_save_IFS | |
3722 | test -z "$as_dir" && as_dir=. | |
3723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3724 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
3725 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3726 | ac_prog_rejected=yes | |
3727 | continue | |
3728 | fi | |
3729 | ac_cv_prog_CC="cc" | |
3730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3731 | break 2 | |
3732 | fi | |
3733 | done | |
3734 | done | |
3735 | IFS=$as_save_IFS | |
3736 | ||
3737 | if test $ac_prog_rejected = yes; then | |
3738 | # We found a bogon in the path, so make sure we never use it. | |
3739 | set dummy $ac_cv_prog_CC | |
3740 | shift | |
3741 | if test $# != 0; then | |
3742 | # We chose a different compiler from the bogus one. | |
3743 | # However, it has the same basename, so the bogon will be chosen | |
3744 | # first if we set CC to just the basename; use the full file name. | |
3745 | shift | |
3746 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3747 | fi | |
3748 | fi | |
3749 | fi | |
3750 | fi | |
3751 | CC=$ac_cv_prog_CC | |
3752 | if test -n "$CC"; then | |
3753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3754 | $as_echo "$CC" >&6; } | |
3755 | else | |
3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3757 | $as_echo "no" >&6; } | |
3758 | fi | |
3759 | ||
3760 | ||
3761 | fi | |
3762 | if test -z "$CC"; then | |
3763 | if test -n "$ac_tool_prefix"; then | |
3764 | for ac_prog in cl.exe | |
3765 | do | |
3766 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3767 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3769 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3770 | if ${ac_cv_prog_CC+:} false; then : |
0a35513e AH |
3771 | $as_echo_n "(cached) " >&6 |
3772 | else | |
3773 | if test -n "$CC"; then | |
3774 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3775 | else | |
3776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3777 | for as_dir in $PATH | |
3778 | do | |
3779 | IFS=$as_save_IFS | |
3780 | test -z "$as_dir" && as_dir=. | |
3781 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3782 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
3783 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3785 | break 2 | |
3786 | fi | |
3787 | done | |
3788 | done | |
3789 | IFS=$as_save_IFS | |
3790 | ||
3791 | fi | |
3792 | fi | |
3793 | CC=$ac_cv_prog_CC | |
3794 | if test -n "$CC"; then | |
3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3796 | $as_echo "$CC" >&6; } | |
3797 | else | |
3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3799 | $as_echo "no" >&6; } | |
3800 | fi | |
3801 | ||
3802 | ||
3803 | test -n "$CC" && break | |
3804 | done | |
3805 | fi | |
3806 | if test -z "$CC"; then | |
3807 | ac_ct_CC=$CC | |
3808 | for ac_prog in cl.exe | |
3809 | do | |
3810 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3811 | set dummy $ac_prog; ac_word=$2 | |
3812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3813 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3814 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0a35513e AH |
3815 | $as_echo_n "(cached) " >&6 |
3816 | else | |
3817 | if test -n "$ac_ct_CC"; then | |
3818 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3819 | else | |
3820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3821 | for as_dir in $PATH | |
3822 | do | |
3823 | IFS=$as_save_IFS | |
3824 | test -z "$as_dir" && as_dir=. | |
3825 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3826 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
3827 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3829 | break 2 | |
3830 | fi | |
3831 | done | |
3832 | done | |
3833 | IFS=$as_save_IFS | |
3834 | ||
3835 | fi | |
3836 | fi | |
3837 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3838 | if test -n "$ac_ct_CC"; then | |
3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3840 | $as_echo "$ac_ct_CC" >&6; } | |
3841 | else | |
3842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3843 | $as_echo "no" >&6; } | |
3844 | fi | |
3845 | ||
3846 | ||
3847 | test -n "$ac_ct_CC" && break | |
3848 | done | |
3849 | ||
3850 | if test "x$ac_ct_CC" = x; then | |
3851 | CC="" | |
3852 | else | |
3853 | case $cross_compiling:$ac_tool_warned in | |
3854 | yes:) | |
3855 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3856 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3857 | ac_tool_warned=yes ;; | |
3858 | esac | |
3859 | CC=$ac_ct_CC | |
3860 | fi | |
3861 | fi | |
3862 | ||
3863 | fi | |
3864 | ||
3865 | ||
3866 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3867 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3868 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3869 | See \`config.log' for more details" "$LINENO" 5; } | |
0a35513e AH |
3870 | |
3871 | # Provide some information about the compiler. | |
3872 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3873 | set X $ac_compile | |
3874 | ac_compiler=$2 | |
3875 | for ac_option in --version -v -V -qversion; do | |
3876 | { { ac_try="$ac_compiler $ac_option >&5" | |
3877 | case "(($ac_try" in | |
3878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3879 | *) ac_try_echo=$ac_try;; | |
3880 | esac | |
3881 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3882 | $as_echo "$ac_try_echo"; } >&5 | |
3883 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3884 | ac_status=$? | |
3885 | if test -s conftest.err; then | |
3886 | sed '10a\ | |
3887 | ... rest of stderr output deleted ... | |
3888 | 10q' conftest.err >conftest.er1 | |
3889 | cat conftest.er1 >&5 | |
0a35513e | 3890 | fi |
22e05272 | 3891 | rm -f conftest.er1 conftest.err |
0a35513e AH |
3892 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3893 | test $ac_status = 0; } | |
3894 | done | |
3895 | ||
3896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3897 | /* end confdefs.h. */ | |
3898 | ||
3899 | int | |
3900 | main () | |
3901 | { | |
3902 | ||
3903 | ; | |
3904 | return 0; | |
3905 | } | |
3906 | _ACEOF | |
3907 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 3908 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
0a35513e AH |
3909 | # Try to create an executable without -o first, disregard a.out. |
3910 | # It will help us diagnose broken compilers, and finding out an intuition | |
3911 | # of exeext. | |
22e05272 JM |
3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3913 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
0a35513e AH |
3914 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3915 | ||
3916 | # The possible output files: | |
3917 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3918 | ||
3919 | ac_rmfiles= | |
3920 | for ac_file in $ac_files | |
3921 | do | |
3922 | case $ac_file in | |
3923 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3924 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3925 | esac | |
3926 | done | |
3927 | rm -f $ac_rmfiles | |
3928 | ||
3929 | if { { ac_try="$ac_link_default" | |
3930 | case "(($ac_try" in | |
3931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3932 | *) ac_try_echo=$ac_try;; | |
3933 | esac | |
3934 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3935 | $as_echo "$ac_try_echo"; } >&5 | |
3936 | (eval "$ac_link_default") 2>&5 | |
3937 | ac_status=$? | |
3938 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3939 | test $ac_status = 0; }; then : | |
3940 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3941 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3942 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3943 | # so that the user can short-circuit this test for compilers unknown to | |
3944 | # Autoconf. | |
3945 | for ac_file in $ac_files '' | |
3946 | do | |
3947 | test -f "$ac_file" || continue | |
3948 | case $ac_file in | |
3949 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3950 | ;; | |
3951 | [ab].out ) | |
3952 | # We found the default executable, but exeext='' is most | |
3953 | # certainly right. | |
3954 | break;; | |
3955 | *.* ) | |
3956 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3957 | then :; else | |
3958 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3959 | fi | |
3960 | # We set ac_cv_exeext here because the later test for it is not | |
3961 | # safe: cross compilers may not add the suffix if given an `-o' | |
3962 | # argument, so we may need to know it at that point already. | |
3963 | # Even if this section looks crufty: it has the advantage of | |
3964 | # actually working. | |
3965 | break;; | |
3966 | * ) | |
3967 | break;; | |
3968 | esac | |
3969 | done | |
3970 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3971 | ||
3972 | else | |
3973 | ac_file='' | |
3974 | fi | |
0a35513e | 3975 | if test -z "$ac_file"; then : |
22e05272 JM |
3976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3977 | $as_echo "no" >&6; } | |
3978 | $as_echo "$as_me: failed program was:" >&5 | |
0a35513e AH |
3979 | sed 's/^/| /' conftest.$ac_ext >&5 |
3980 | ||
3981 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3982 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3983 | as_fn_error 77 "C compiler cannot create executables |
3984 | See \`config.log' for more details" "$LINENO" 5; } | |
3985 | else | |
3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3987 | $as_echo "yes" >&6; } | |
0a35513e | 3988 | fi |
22e05272 JM |
3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3990 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3992 | $as_echo "$ac_file" >&6; } | |
0a35513e AH |
3993 | ac_exeext=$ac_cv_exeext |
3994 | ||
22e05272 | 3995 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
0a35513e | 3996 | ac_clean_files=$ac_clean_files_save |
0a35513e AH |
3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3998 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3999 | if { { ac_try="$ac_link" | |
4000 | case "(($ac_try" in | |
4001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4002 | *) ac_try_echo=$ac_try;; | |
4003 | esac | |
4004 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4005 | $as_echo "$ac_try_echo"; } >&5 | |
4006 | (eval "$ac_link") 2>&5 | |
4007 | ac_status=$? | |
4008 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4009 | test $ac_status = 0; }; then : | |
4010 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
4011 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4012 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4013 | # `rm'. | |
4014 | for ac_file in conftest.exe conftest conftest.*; do | |
4015 | test -f "$ac_file" || continue | |
4016 | case $ac_file in | |
4017 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4018 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4019 | break;; | |
4020 | * ) break;; | |
4021 | esac | |
4022 | done | |
4023 | else | |
4024 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4025 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4026 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4027 | See \`config.log' for more details" "$LINENO" 5; } | |
0a35513e | 4028 | fi |
22e05272 | 4029 | rm -f conftest conftest$ac_cv_exeext |
0a35513e AH |
4030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4031 | $as_echo "$ac_cv_exeext" >&6; } | |
4032 | ||
4033 | rm -f conftest.$ac_ext | |
4034 | EXEEXT=$ac_cv_exeext | |
4035 | ac_exeext=$EXEEXT | |
22e05272 JM |
4036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4037 | /* end confdefs.h. */ | |
4038 | #include <stdio.h> | |
4039 | int | |
4040 | main () | |
4041 | { | |
4042 | FILE *f = fopen ("conftest.out", "w"); | |
4043 | return ferror (f) || fclose (f) != 0; | |
4044 | ||
4045 | ; | |
4046 | return 0; | |
4047 | } | |
4048 | _ACEOF | |
4049 | ac_clean_files="$ac_clean_files conftest.out" | |
4050 | # Check that the compiler produces executables we can run. If not, either | |
4051 | # the compiler is broken, or we cross compile. | |
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4053 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4054 | if test "$cross_compiling" != yes; then | |
4055 | { { ac_try="$ac_link" | |
4056 | case "(($ac_try" in | |
4057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4058 | *) ac_try_echo=$ac_try;; | |
4059 | esac | |
4060 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4061 | $as_echo "$ac_try_echo"; } >&5 | |
4062 | (eval "$ac_link") 2>&5 | |
4063 | ac_status=$? | |
4064 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4065 | test $ac_status = 0; } | |
4066 | if { ac_try='./conftest$ac_cv_exeext' | |
4067 | { { case "(($ac_try" in | |
4068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4069 | *) ac_try_echo=$ac_try;; | |
4070 | esac | |
4071 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4072 | $as_echo "$ac_try_echo"; } >&5 | |
4073 | (eval "$ac_try") 2>&5 | |
4074 | ac_status=$? | |
4075 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4076 | test $ac_status = 0; }; }; then | |
4077 | cross_compiling=no | |
4078 | else | |
4079 | if test "$cross_compiling" = maybe; then | |
4080 | cross_compiling=yes | |
4081 | else | |
4082 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4083 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4084 | as_fn_error $? "cannot run C compiled programs. | |
4085 | If you meant to cross compile, use \`--host'. | |
4086 | See \`config.log' for more details" "$LINENO" 5; } | |
4087 | fi | |
4088 | fi | |
4089 | fi | |
4090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4091 | $as_echo "$cross_compiling" >&6; } | |
4092 | ||
4093 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4094 | ac_clean_files=$ac_clean_files_save | |
0a35513e AH |
4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4096 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4097 | if ${ac_cv_objext+:} false; then : |
0a35513e AH |
4098 | $as_echo_n "(cached) " >&6 |
4099 | else | |
4100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4101 | /* end confdefs.h. */ | |
4102 | ||
4103 | int | |
4104 | main () | |
4105 | { | |
4106 | ||
4107 | ; | |
4108 | return 0; | |
4109 | } | |
4110 | _ACEOF | |
4111 | rm -f conftest.o conftest.obj | |
4112 | if { { ac_try="$ac_compile" | |
4113 | case "(($ac_try" in | |
4114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4115 | *) ac_try_echo=$ac_try;; | |
4116 | esac | |
4117 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4118 | $as_echo "$ac_try_echo"; } >&5 | |
4119 | (eval "$ac_compile") 2>&5 | |
4120 | ac_status=$? | |
4121 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4122 | test $ac_status = 0; }; then : | |
4123 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4124 | test -f "$ac_file" || continue; | |
4125 | case $ac_file in | |
4126 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4127 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4128 | break;; | |
4129 | esac | |
4130 | done | |
4131 | else | |
4132 | $as_echo "$as_me: failed program was:" >&5 | |
4133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4134 | ||
4135 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4136 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4137 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4138 | See \`config.log' for more details" "$LINENO" 5; } | |
0a35513e AH |
4139 | fi |
4140 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
4141 | fi | |
4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4143 | $as_echo "$ac_cv_objext" >&6; } | |
4144 | OBJEXT=$ac_cv_objext | |
4145 | ac_objext=$OBJEXT | |
4146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4147 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4148 | if ${ac_cv_c_compiler_gnu+:} false; then : |
0a35513e AH |
4149 | $as_echo_n "(cached) " >&6 |
4150 | else | |
4151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4152 | /* end confdefs.h. */ | |
4153 | ||
4154 | int | |
4155 | main () | |
4156 | { | |
4157 | #ifndef __GNUC__ | |
4158 | choke me | |
4159 | #endif | |
4160 | ||
4161 | ; | |
4162 | return 0; | |
4163 | } | |
4164 | _ACEOF | |
4165 | if ac_fn_c_try_compile "$LINENO"; then : | |
4166 | ac_compiler_gnu=yes | |
4167 | else | |
4168 | ac_compiler_gnu=no | |
4169 | fi | |
4170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4171 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4172 | ||
4173 | fi | |
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4175 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4176 | if test $ac_compiler_gnu = yes; then | |
4177 | GCC=yes | |
4178 | else | |
4179 | GCC= | |
4180 | fi | |
4181 | ac_test_CFLAGS=${CFLAGS+set} | |
4182 | ac_save_CFLAGS=$CFLAGS | |
4183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4184 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4185 | if ${ac_cv_prog_cc_g+:} false; then : |
0a35513e AH |
4186 | $as_echo_n "(cached) " >&6 |
4187 | else | |
4188 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4189 | ac_c_werror_flag=yes | |
4190 | ac_cv_prog_cc_g=no | |
4191 | CFLAGS="-g" | |
4192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4193 | /* end confdefs.h. */ | |
4194 | ||
4195 | int | |
4196 | main () | |
4197 | { | |
4198 | ||
4199 | ; | |
4200 | return 0; | |
4201 | } | |
4202 | _ACEOF | |
4203 | if ac_fn_c_try_compile "$LINENO"; then : | |
4204 | ac_cv_prog_cc_g=yes | |
4205 | else | |
4206 | CFLAGS="" | |
4207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4208 | /* end confdefs.h. */ | |
4209 | ||
4210 | int | |
4211 | main () | |
4212 | { | |
4213 | ||
4214 | ; | |
4215 | return 0; | |
4216 | } | |
4217 | _ACEOF | |
4218 | if ac_fn_c_try_compile "$LINENO"; then : | |
4219 | ||
4220 | else | |
4221 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4222 | CFLAGS="-g" | |
4223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4224 | /* end confdefs.h. */ | |
4225 | ||
4226 | int | |
4227 | main () | |
4228 | { | |
4229 | ||
4230 | ; | |
4231 | return 0; | |
4232 | } | |
4233 | _ACEOF | |
4234 | if ac_fn_c_try_compile "$LINENO"; then : | |
4235 | ac_cv_prog_cc_g=yes | |
4236 | fi | |
4237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4238 | fi | |
4239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4240 | fi | |
4241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4242 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4243 | fi | |
4244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4245 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4246 | if test "$ac_test_CFLAGS" = set; then | |
4247 | CFLAGS=$ac_save_CFLAGS | |
4248 | elif test $ac_cv_prog_cc_g = yes; then | |
4249 | if test "$GCC" = yes; then | |
4250 | CFLAGS="-g -O2" | |
4251 | else | |
4252 | CFLAGS="-g" | |
4253 | fi | |
4254 | else | |
4255 | if test "$GCC" = yes; then | |
4256 | CFLAGS="-O2" | |
4257 | else | |
4258 | CFLAGS= | |
4259 | fi | |
4260 | fi | |
4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4262 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4263 | if ${ac_cv_prog_cc_c89+:} false; then : |
0a35513e AH |
4264 | $as_echo_n "(cached) " >&6 |
4265 | else | |
4266 | ac_cv_prog_cc_c89=no | |
4267 | ac_save_CC=$CC | |
4268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4269 | /* end confdefs.h. */ | |
4270 | #include <stdarg.h> | |
4271 | #include <stdio.h> | |
22e05272 | 4272 | struct stat; |
0a35513e AH |
4273 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4274 | struct buf { int x; }; | |
4275 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4276 | static char *e (p, i) | |
4277 | char **p; | |
4278 | int i; | |
4279 | { | |
4280 | return p[i]; | |
4281 | } | |
4282 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4283 | { | |
4284 | char *s; | |
4285 | va_list v; | |
4286 | va_start (v,p); | |
4287 | s = g (p, va_arg (v,int)); | |
4288 | va_end (v); | |
4289 | return s; | |
4290 | } | |
4291 | ||
4292 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4293 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4294 | These don't provoke an error unfortunately, instead are silently treated | |
4295 | as 'x'. The following induces an error, until -std is added to get | |
4296 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4297 | array size at least. It's necessary to write '\x00'==0 to get something | |
4298 | that's true only with -std. */ | |
4299 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4300 | ||
4301 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4302 | inside strings and character constants. */ | |
4303 | #define FOO(x) 'x' | |
4304 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4305 | ||
4306 | int test (int i, double x); | |
4307 | struct s1 {int (*f) (int a);}; | |
4308 | struct s2 {int (*f) (double a);}; | |
4309 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4310 | int argc; | |
4311 | char **argv; | |
4312 | int | |
4313 | main () | |
4314 | { | |
4315 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4316 | ; | |
4317 | return 0; | |
4318 | } | |
4319 | _ACEOF | |
4320 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4321 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4322 | do | |
4323 | CC="$ac_save_CC $ac_arg" | |
4324 | if ac_fn_c_try_compile "$LINENO"; then : | |
4325 | ac_cv_prog_cc_c89=$ac_arg | |
4326 | fi | |
4327 | rm -f core conftest.err conftest.$ac_objext | |
4328 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4329 | done | |
4330 | rm -f conftest.$ac_ext | |
4331 | CC=$ac_save_CC | |
4332 | ||
4333 | fi | |
4334 | # AC_CACHE_VAL | |
4335 | case "x$ac_cv_prog_cc_c89" in | |
4336 | x) | |
4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4338 | $as_echo "none needed" >&6; } ;; | |
4339 | xno) | |
4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4341 | $as_echo "unsupported" >&6; } ;; | |
4342 | *) | |
4343 | CC="$CC $ac_cv_prog_cc_c89" | |
4344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4345 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4346 | esac | |
4347 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4348 | ||
4349 | fi | |
4350 | ||
4351 | ac_ext=c | |
4352 | ac_cpp='$CPP $CPPFLAGS' | |
4353 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4354 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4355 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22e05272 JM |
4356 | |
4357 | ac_ext=c | |
4358 | ac_cpp='$CPP $CPPFLAGS' | |
4359 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4360 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4361 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4363 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4364 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4365 | $as_echo_n "(cached) " >&6 | |
4366 | else | |
4367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4368 | /* end confdefs.h. */ | |
4369 | ||
4370 | int | |
4371 | main () | |
4372 | { | |
4373 | ||
4374 | ; | |
4375 | return 0; | |
4376 | } | |
4377 | _ACEOF | |
4378 | # Make sure it works both with $CC and with simple cc. | |
4379 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4380 | # compilers refuse to overwrite an existing .o file with -o, | |
4381 | # though they will create one. | |
4382 | am_cv_prog_cc_c_o=yes | |
4383 | for am_i in 1 2; do | |
4384 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4385 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4386 | ac_status=$? | |
4387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4388 | (exit $ac_status); } \ | |
4389 | && test -f conftest2.$ac_objext; then | |
4390 | : OK | |
4391 | else | |
4392 | am_cv_prog_cc_c_o=no | |
4393 | break | |
4394 | fi | |
4395 | done | |
4396 | rm -f core conftest* | |
4397 | unset am_i | |
4398 | fi | |
4399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4400 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4401 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4402 | # Losing compiler, so override with the script. | |
4403 | # FIXME: It is wrong to rewrite CC. | |
4404 | # But if we don't then we get into trouble of one sort or another. | |
4405 | # A longer-term fix would be to have automake use am__CC in this case, | |
4406 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4407 | CC="$am_aux_dir/compile $CC" | |
4408 | fi | |
4409 | ac_ext=c | |
4410 | ac_cpp='$CPP $CPPFLAGS' | |
4411 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4412 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4413 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4414 | ||
0a35513e AH |
4415 | DEPDIR="${am__leading_dot}deps" |
4416 | ||
4417 | ac_config_commands="$ac_config_commands depfiles" | |
4418 | ||
4419 | ||
4420 | am_make=${MAKE-make} | |
4421 | cat > confinc << 'END' | |
4422 | am__doit: | |
4423 | @echo this is the am__doit target | |
4424 | .PHONY: am__doit | |
4425 | END | |
4426 | # If we don't find an include directive, just comment out the code. | |
4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4428 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4429 | am__include="#" | |
4430 | am__quote= | |
4431 | _am_result=none | |
4432 | # First try GNU make style include. | |
4433 | echo "include confinc" > confmf | |
22e05272 | 4434 | # Ignore all kinds of additional output from 'make'. |
0a35513e AH |
4435 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4436 | *the\ am__doit\ target*) | |
4437 | am__include=include | |
4438 | am__quote= | |
4439 | _am_result=GNU | |
4440 | ;; | |
4441 | esac | |
4442 | # Now try BSD make style include. | |
4443 | if test "$am__include" = "#"; then | |
4444 | echo '.include "confinc"' > confmf | |
4445 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4446 | *the\ am__doit\ target*) | |
4447 | am__include=.include | |
4448 | am__quote="\"" | |
4449 | _am_result=BSD | |
4450 | ;; | |
4451 | esac | |
4452 | fi | |
4453 | ||
4454 | ||
4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4456 | $as_echo "$_am_result" >&6; } | |
4457 | rm -f confinc confmf | |
4458 | ||
4459 | # Check whether --enable-dependency-tracking was given. | |
4460 | if test "${enable_dependency_tracking+set}" = set; then : | |
4461 | enableval=$enable_dependency_tracking; | |
4462 | fi | |
4463 | ||
4464 | if test "x$enable_dependency_tracking" != xno; then | |
4465 | am_depcomp="$ac_aux_dir/depcomp" | |
4466 | AMDEPBACKSLASH='\' | |
503902f9 | 4467 | am__nodep='_no' |
0a35513e AH |
4468 | fi |
4469 | if test "x$enable_dependency_tracking" != xno; then | |
4470 | AMDEP_TRUE= | |
4471 | AMDEP_FALSE='#' | |
4472 | else | |
4473 | AMDEP_TRUE='#' | |
4474 | AMDEP_FALSE= | |
4475 | fi | |
4476 | ||
4477 | ||
4478 | ||
4479 | depcc="$CC" am_compiler_list= | |
4480 | ||
4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4482 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 4483 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
0a35513e AH |
4484 | $as_echo_n "(cached) " >&6 |
4485 | else | |
4486 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4487 | # We make a subdir and do the tests there. Otherwise we can end up | |
4488 | # making bogus files that we don't know about and never remove. For | |
4489 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
4490 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4491 | # in D". | |
503902f9 | 4492 | rm -rf conftest.dir |
0a35513e AH |
4493 | mkdir conftest.dir |
4494 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4495 | # using a relative directory. | |
4496 | cp "$am_depcomp" conftest.dir | |
4497 | cd conftest.dir | |
4498 | # We will build objects and dependencies in a subdirectory because | |
4499 | # it helps to detect inapplicable dependency modes. For instance | |
4500 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4501 | # side effect of compilation, but ICC will put the dependencies in | |
4502 | # the current directory while Tru64 will put them in the object | |
4503 | # directory. | |
4504 | mkdir sub | |
4505 | ||
4506 | am_cv_CC_dependencies_compiler_type=none | |
4507 | if test "$am_compiler_list" = ""; then | |
4508 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4509 | fi | |
4510 | am__universal=false | |
4511 | case " $depcc " in #( | |
4512 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4513 | esac | |
4514 | ||
4515 | for depmode in $am_compiler_list; do | |
4516 | # Setup a source with many dependencies, because some compilers | |
4517 | # like to wrap large dependency lists on column 80 (with \), and | |
4518 | # we should not choose a depcomp mode which is confused by this. | |
4519 | # | |
4520 | # We need to recreate these files for each test, as the compiler may | |
4521 | # overwrite some of them when testing with obscure command lines. | |
4522 | # This happens at least with the AIX C compiler. | |
4523 | : > sub/conftest.c | |
4524 | for i in 1 2 3 4 5 6; do | |
4525 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
4526 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4527 | # Solaris 10 /bin/sh. | |
4528 | echo '/* dummy */' > sub/conftst$i.h | |
0a35513e AH |
4529 | done |
4530 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4531 | ||
22e05272 | 4532 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
0a35513e | 4533 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
4534 | # handle '-M -o', and we need to detect this. Also, some Intel |
4535 | # versions had trouble with output in subdirs. | |
0a35513e AH |
4536 | am__obj=sub/conftest.${OBJEXT-o} |
4537 | am__minus_obj="-o $am__obj" | |
4538 | case $depmode in | |
4539 | gcc) | |
4540 | # This depmode causes a compiler race in universal mode. | |
4541 | test "$am__universal" = false || continue | |
4542 | ;; | |
4543 | nosideeffect) | |
22e05272 JM |
4544 | # After this tag, mechanisms are not by side-effect, so they'll |
4545 | # only be used when explicitly requested. | |
0a35513e AH |
4546 | if test "x$enable_dependency_tracking" = xyes; then |
4547 | continue | |
4548 | else | |
4549 | break | |
4550 | fi | |
4551 | ;; | |
503902f9 | 4552 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 4553 | # This compiler won't grok '-c -o', but also, the minuso test has |
0a35513e AH |
4554 | # not run yet. These depmodes are late enough in the game, and |
4555 | # so weak that their functioning should not be impacted. | |
4556 | am__obj=conftest.${OBJEXT-o} | |
4557 | am__minus_obj= | |
4558 | ;; | |
4559 | none) break ;; | |
4560 | esac | |
4561 | if depmode=$depmode \ | |
4562 | source=sub/conftest.c object=$am__obj \ | |
4563 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4564 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4565 | >/dev/null 2>conftest.err && | |
4566 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4567 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4568 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4569 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4570 | # icc doesn't choke on unknown options, it will just issue warnings | |
4571 | # or remarks (even with -Werror). So we grep stderr for any message | |
4572 | # that says an option was ignored or not supported. | |
4573 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4574 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4575 | # The diagnosis changed in icc 8.0: | |
4576 | # icc: Command line remark: option '-MP' not supported | |
4577 | if (grep 'ignoring option' conftest.err || | |
4578 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4579 | am_cv_CC_dependencies_compiler_type=$depmode | |
4580 | break | |
4581 | fi | |
4582 | fi | |
4583 | done | |
4584 | ||
4585 | cd .. | |
4586 | rm -rf conftest.dir | |
4587 | else | |
4588 | am_cv_CC_dependencies_compiler_type=none | |
4589 | fi | |
4590 | ||
4591 | fi | |
4592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4593 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4594 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4595 | ||
4596 | if | |
4597 | test "x$enable_dependency_tracking" != xno \ | |
4598 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4599 | am__fastdepCC_TRUE= | |
4600 | am__fastdepCC_FALSE='#' | |
4601 | else | |
4602 | am__fastdepCC_TRUE='#' | |
4603 | am__fastdepCC_FALSE= | |
4604 | fi | |
4605 | ||
4606 | ||
4607 | ac_ext=cpp | |
4608 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4609 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4610 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4611 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4612 | if test -z "$CXX"; then | |
4613 | if test -n "$CCC"; then | |
4614 | CXX=$CCC | |
4615 | else | |
4616 | if test -n "$ac_tool_prefix"; then | |
4617 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4618 | do | |
4619 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4620 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4622 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4623 | if ${ac_cv_prog_CXX+:} false; then : |
0a35513e AH |
4624 | $as_echo_n "(cached) " >&6 |
4625 | else | |
4626 | if test -n "$CXX"; then | |
4627 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4628 | else | |
4629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4630 | for as_dir in $PATH | |
4631 | do | |
4632 | IFS=$as_save_IFS | |
4633 | test -z "$as_dir" && as_dir=. | |
4634 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4635 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
4636 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
4637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4638 | break 2 | |
4639 | fi | |
4640 | done | |
4641 | done | |
4642 | IFS=$as_save_IFS | |
4643 | ||
4644 | fi | |
4645 | fi | |
4646 | CXX=$ac_cv_prog_CXX | |
4647 | if test -n "$CXX"; then | |
4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4649 | $as_echo "$CXX" >&6; } | |
4650 | else | |
4651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4652 | $as_echo "no" >&6; } | |
4653 | fi | |
4654 | ||
4655 | ||
4656 | test -n "$CXX" && break | |
4657 | done | |
4658 | fi | |
4659 | if test -z "$CXX"; then | |
4660 | ac_ct_CXX=$CXX | |
4661 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4662 | do | |
4663 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4664 | set dummy $ac_prog; ac_word=$2 | |
4665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4666 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4667 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
0a35513e AH |
4668 | $as_echo_n "(cached) " >&6 |
4669 | else | |
4670 | if test -n "$ac_ct_CXX"; then | |
4671 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4672 | else | |
4673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4674 | for as_dir in $PATH | |
4675 | do | |
4676 | IFS=$as_save_IFS | |
4677 | test -z "$as_dir" && as_dir=. | |
4678 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4679 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
4680 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
4681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4682 | break 2 | |
4683 | fi | |
4684 | done | |
4685 | done | |
4686 | IFS=$as_save_IFS | |
4687 | ||
4688 | fi | |
4689 | fi | |
4690 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4691 | if test -n "$ac_ct_CXX"; then | |
4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4693 | $as_echo "$ac_ct_CXX" >&6; } | |
4694 | else | |
4695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4696 | $as_echo "no" >&6; } | |
4697 | fi | |
4698 | ||
4699 | ||
4700 | test -n "$ac_ct_CXX" && break | |
4701 | done | |
4702 | ||
4703 | if test "x$ac_ct_CXX" = x; then | |
4704 | CXX="g++" | |
4705 | else | |
4706 | case $cross_compiling:$ac_tool_warned in | |
4707 | yes:) | |
4708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4709 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4710 | ac_tool_warned=yes ;; | |
4711 | esac | |
4712 | CXX=$ac_ct_CXX | |
4713 | fi | |
4714 | fi | |
4715 | ||
4716 | fi | |
4717 | fi | |
4718 | # Provide some information about the compiler. | |
4719 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
4720 | set X $ac_compile | |
4721 | ac_compiler=$2 | |
4722 | for ac_option in --version -v -V -qversion; do | |
4723 | { { ac_try="$ac_compiler $ac_option >&5" | |
4724 | case "(($ac_try" in | |
4725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4726 | *) ac_try_echo=$ac_try;; | |
4727 | esac | |
4728 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4729 | $as_echo "$ac_try_echo"; } >&5 | |
4730 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4731 | ac_status=$? | |
4732 | if test -s conftest.err; then | |
4733 | sed '10a\ | |
4734 | ... rest of stderr output deleted ... | |
4735 | 10q' conftest.err >conftest.er1 | |
4736 | cat conftest.er1 >&5 | |
0a35513e | 4737 | fi |
22e05272 | 4738 | rm -f conftest.er1 conftest.err |
0a35513e AH |
4739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4740 | test $ac_status = 0; } | |
4741 | done | |
4742 | ||
4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
4744 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 4745 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
0a35513e AH |
4746 | $as_echo_n "(cached) " >&6 |
4747 | else | |
4748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4749 | /* end confdefs.h. */ | |
4750 | ||
4751 | int | |
4752 | main () | |
4753 | { | |
4754 | #ifndef __GNUC__ | |
4755 | choke me | |
4756 | #endif | |
4757 | ||
4758 | ; | |
4759 | return 0; | |
4760 | } | |
4761 | _ACEOF | |
4762 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4763 | ac_compiler_gnu=yes | |
4764 | else | |
4765 | ac_compiler_gnu=no | |
4766 | fi | |
4767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4768 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
4769 | ||
4770 | fi | |
4771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
4772 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4773 | if test $ac_compiler_gnu = yes; then | |
4774 | GXX=yes | |
4775 | else | |
4776 | GXX= | |
4777 | fi | |
4778 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4779 | ac_save_CXXFLAGS=$CXXFLAGS | |
4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4781 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 4782 | if ${ac_cv_prog_cxx_g+:} false; then : |
0a35513e AH |
4783 | $as_echo_n "(cached) " >&6 |
4784 | else | |
4785 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4786 | ac_cxx_werror_flag=yes | |
4787 | ac_cv_prog_cxx_g=no | |
4788 | CXXFLAGS="-g" | |
4789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4790 | /* end confdefs.h. */ | |
4791 | ||
4792 | int | |
4793 | main () | |
4794 | { | |
4795 | ||
4796 | ; | |
4797 | return 0; | |
4798 | } | |
4799 | _ACEOF | |
4800 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4801 | ac_cv_prog_cxx_g=yes | |
4802 | else | |
4803 | CXXFLAGS="" | |
4804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4805 | /* end confdefs.h. */ | |
4806 | ||
4807 | int | |
4808 | main () | |
4809 | { | |
4810 | ||
4811 | ; | |
4812 | return 0; | |
4813 | } | |
4814 | _ACEOF | |
4815 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4816 | ||
4817 | else | |
4818 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4819 | CXXFLAGS="-g" | |
4820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4821 | /* end confdefs.h. */ | |
4822 | ||
4823 | int | |
4824 | main () | |
4825 | { | |
4826 | ||
4827 | ; | |
4828 | return 0; | |
4829 | } | |
4830 | _ACEOF | |
4831 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4832 | ac_cv_prog_cxx_g=yes | |
4833 | fi | |
4834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4835 | fi | |
4836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4837 | fi | |
4838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4839 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4840 | fi | |
4841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4842 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4843 | if test "$ac_test_CXXFLAGS" = set; then | |
4844 | CXXFLAGS=$ac_save_CXXFLAGS | |
4845 | elif test $ac_cv_prog_cxx_g = yes; then | |
4846 | if test "$GXX" = yes; then | |
4847 | CXXFLAGS="-g -O2" | |
4848 | else | |
4849 | CXXFLAGS="-g" | |
4850 | fi | |
4851 | else | |
4852 | if test "$GXX" = yes; then | |
4853 | CXXFLAGS="-O2" | |
4854 | else | |
4855 | CXXFLAGS= | |
4856 | fi | |
4857 | fi | |
4858 | ac_ext=c | |
4859 | ac_cpp='$CPP $CPPFLAGS' | |
4860 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4861 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4862 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4863 | ||
4864 | depcc="$CXX" am_compiler_list= | |
4865 | ||
4866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4867 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 4868 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
0a35513e AH |
4869 | $as_echo_n "(cached) " >&6 |
4870 | else | |
4871 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4872 | # We make a subdir and do the tests there. Otherwise we can end up | |
4873 | # making bogus files that we don't know about and never remove. For | |
4874 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
4875 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4876 | # in D". | |
503902f9 | 4877 | rm -rf conftest.dir |
0a35513e AH |
4878 | mkdir conftest.dir |
4879 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4880 | # using a relative directory. | |
4881 | cp "$am_depcomp" conftest.dir | |
4882 | cd conftest.dir | |
4883 | # We will build objects and dependencies in a subdirectory because | |
4884 | # it helps to detect inapplicable dependency modes. For instance | |
4885 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4886 | # side effect of compilation, but ICC will put the dependencies in | |
4887 | # the current directory while Tru64 will put them in the object | |
4888 | # directory. | |
4889 | mkdir sub | |
4890 | ||
4891 | am_cv_CXX_dependencies_compiler_type=none | |
4892 | if test "$am_compiler_list" = ""; then | |
4893 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4894 | fi | |
4895 | am__universal=false | |
4896 | case " $depcc " in #( | |
4897 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4898 | esac | |
4899 | ||
4900 | for depmode in $am_compiler_list; do | |
4901 | # Setup a source with many dependencies, because some compilers | |
4902 | # like to wrap large dependency lists on column 80 (with \), and | |
4903 | # we should not choose a depcomp mode which is confused by this. | |
4904 | # | |
4905 | # We need to recreate these files for each test, as the compiler may | |
4906 | # overwrite some of them when testing with obscure command lines. | |
4907 | # This happens at least with the AIX C compiler. | |
4908 | : > sub/conftest.c | |
4909 | for i in 1 2 3 4 5 6; do | |
4910 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
4911 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4912 | # Solaris 10 /bin/sh. | |
4913 | echo '/* dummy */' > sub/conftst$i.h | |
0a35513e AH |
4914 | done |
4915 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4916 | ||
22e05272 | 4917 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
0a35513e | 4918 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
4919 | # handle '-M -o', and we need to detect this. Also, some Intel |
4920 | # versions had trouble with output in subdirs. | |
0a35513e AH |
4921 | am__obj=sub/conftest.${OBJEXT-o} |
4922 | am__minus_obj="-o $am__obj" | |
4923 | case $depmode in | |
4924 | gcc) | |
4925 | # This depmode causes a compiler race in universal mode. | |
4926 | test "$am__universal" = false || continue | |
4927 | ;; | |
4928 | nosideeffect) | |
22e05272 JM |
4929 | # After this tag, mechanisms are not by side-effect, so they'll |
4930 | # only be used when explicitly requested. | |
0a35513e AH |
4931 | if test "x$enable_dependency_tracking" = xyes; then |
4932 | continue | |
4933 | else | |
4934 | break | |
4935 | fi | |
4936 | ;; | |
503902f9 | 4937 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 4938 | # This compiler won't grok '-c -o', but also, the minuso test has |
0a35513e AH |
4939 | # not run yet. These depmodes are late enough in the game, and |
4940 | # so weak that their functioning should not be impacted. | |
4941 | am__obj=conftest.${OBJEXT-o} | |
4942 | am__minus_obj= | |
4943 | ;; | |
4944 | none) break ;; | |
4945 | esac | |
4946 | if depmode=$depmode \ | |
4947 | source=sub/conftest.c object=$am__obj \ | |
4948 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4949 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4950 | >/dev/null 2>conftest.err && | |
4951 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4952 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4953 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4954 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4955 | # icc doesn't choke on unknown options, it will just issue warnings | |
4956 | # or remarks (even with -Werror). So we grep stderr for any message | |
4957 | # that says an option was ignored or not supported. | |
4958 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4959 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4960 | # The diagnosis changed in icc 8.0: | |
4961 | # icc: Command line remark: option '-MP' not supported | |
4962 | if (grep 'ignoring option' conftest.err || | |
4963 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4964 | am_cv_CXX_dependencies_compiler_type=$depmode | |
4965 | break | |
4966 | fi | |
4967 | fi | |
4968 | done | |
4969 | ||
4970 | cd .. | |
4971 | rm -rf conftest.dir | |
4972 | else | |
4973 | am_cv_CXX_dependencies_compiler_type=none | |
4974 | fi | |
4975 | ||
4976 | fi | |
4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
4978 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4979 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
4980 | ||
4981 | if | |
4982 | test "x$enable_dependency_tracking" != xno \ | |
4983 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4984 | am__fastdepCXX_TRUE= | |
4985 | am__fastdepCXX_FALSE='#' | |
4986 | else | |
4987 | am__fastdepCXX_TRUE='#' | |
4988 | am__fastdepCXX_FALSE= | |
4989 | fi | |
4990 | ||
4991 | ||
4992 | # By default we simply use the C compiler to build assembly code. | |
4993 | ||
4994 | test "${CCAS+set}" = set || CCAS=$CC | |
4995 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS | |
4996 | ||
4997 | ||
4998 | ||
4999 | depcc="$CCAS" am_compiler_list= | |
5000 | ||
5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5002 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 5003 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : |
0a35513e AH |
5004 | $as_echo_n "(cached) " >&6 |
5005 | else | |
5006 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5007 | # We make a subdir and do the tests there. Otherwise we can end up | |
5008 | # making bogus files that we don't know about and never remove. For | |
5009 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
5010 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5011 | # in D". | |
503902f9 | 5012 | rm -rf conftest.dir |
0a35513e AH |
5013 | mkdir conftest.dir |
5014 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5015 | # using a relative directory. | |
5016 | cp "$am_depcomp" conftest.dir | |
5017 | cd conftest.dir | |
5018 | # We will build objects and dependencies in a subdirectory because | |
5019 | # it helps to detect inapplicable dependency modes. For instance | |
5020 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5021 | # side effect of compilation, but ICC will put the dependencies in | |
5022 | # the current directory while Tru64 will put them in the object | |
5023 | # directory. | |
5024 | mkdir sub | |
5025 | ||
5026 | am_cv_CCAS_dependencies_compiler_type=none | |
5027 | if test "$am_compiler_list" = ""; then | |
5028 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5029 | fi | |
5030 | am__universal=false | |
5031 | ||
5032 | ||
5033 | for depmode in $am_compiler_list; do | |
5034 | # Setup a source with many dependencies, because some compilers | |
5035 | # like to wrap large dependency lists on column 80 (with \), and | |
5036 | # we should not choose a depcomp mode which is confused by this. | |
5037 | # | |
5038 | # We need to recreate these files for each test, as the compiler may | |
5039 | # overwrite some of them when testing with obscure command lines. | |
5040 | # This happens at least with the AIX C compiler. | |
5041 | : > sub/conftest.c | |
5042 | for i in 1 2 3 4 5 6; do | |
5043 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
5044 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5045 | # Solaris 10 /bin/sh. | |
5046 | echo '/* dummy */' > sub/conftst$i.h | |
0a35513e AH |
5047 | done |
5048 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5049 | ||
22e05272 | 5050 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
0a35513e | 5051 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
5052 | # handle '-M -o', and we need to detect this. Also, some Intel |
5053 | # versions had trouble with output in subdirs. | |
0a35513e AH |
5054 | am__obj=sub/conftest.${OBJEXT-o} |
5055 | am__minus_obj="-o $am__obj" | |
5056 | case $depmode in | |
5057 | gcc) | |
5058 | # This depmode causes a compiler race in universal mode. | |
5059 | test "$am__universal" = false || continue | |
5060 | ;; | |
5061 | nosideeffect) | |
22e05272 JM |
5062 | # After this tag, mechanisms are not by side-effect, so they'll |
5063 | # only be used when explicitly requested. | |
0a35513e AH |
5064 | if test "x$enable_dependency_tracking" = xyes; then |
5065 | continue | |
5066 | else | |
5067 | break | |
5068 | fi | |
5069 | ;; | |
503902f9 | 5070 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 5071 | # This compiler won't grok '-c -o', but also, the minuso test has |
0a35513e AH |
5072 | # not run yet. These depmodes are late enough in the game, and |
5073 | # so weak that their functioning should not be impacted. | |
5074 | am__obj=conftest.${OBJEXT-o} | |
5075 | am__minus_obj= | |
5076 | ;; | |
5077 | none) break ;; | |
5078 | esac | |
5079 | if depmode=$depmode \ | |
5080 | source=sub/conftest.c object=$am__obj \ | |
5081 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5082 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5083 | >/dev/null 2>conftest.err && | |
5084 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5085 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5086 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5087 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5088 | # icc doesn't choke on unknown options, it will just issue warnings | |
5089 | # or remarks (even with -Werror). So we grep stderr for any message | |
5090 | # that says an option was ignored or not supported. | |
5091 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5092 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5093 | # The diagnosis changed in icc 8.0: | |
5094 | # icc: Command line remark: option '-MP' not supported | |
5095 | if (grep 'ignoring option' conftest.err || | |
5096 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5097 | am_cv_CCAS_dependencies_compiler_type=$depmode | |
5098 | break | |
5099 | fi | |
5100 | fi | |
5101 | done | |
5102 | ||
5103 | cd .. | |
5104 | rm -rf conftest.dir | |
5105 | else | |
5106 | am_cv_CCAS_dependencies_compiler_type=none | |
5107 | fi | |
5108 | ||
5109 | fi | |
5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 | |
5111 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } | |
5112 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type | |
5113 | ||
5114 | if | |
5115 | test "x$enable_dependency_tracking" != xno \ | |
5116 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then | |
5117 | am__fastdepCCAS_TRUE= | |
5118 | am__fastdepCCAS_FALSE='#' | |
5119 | else | |
5120 | am__fastdepCCAS_TRUE='#' | |
5121 | am__fastdepCCAS_FALSE= | |
5122 | fi | |
5123 | ||
5124 | ||
5125 | ||
5126 | ||
5127 | ||
5128 | ||
5129 | # In order to override CFLAGS_FOR_TARGET, all of our special flags go | |
5130 | # in XCFLAGS. But we need them in CFLAGS during configury. So put them | |
5131 | # in both places for now and restore CFLAGS at the end of config. | |
5132 | save_CFLAGS="$CFLAGS" | |
5133 | ||
5134 | # Find other programs we need. | |
5135 | if test -n "$ac_tool_prefix"; then | |
5136 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5137 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5139 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5140 | if ${ac_cv_prog_AR+:} false; then : |
0a35513e AH |
5141 | $as_echo_n "(cached) " >&6 |
5142 | else | |
5143 | if test -n "$AR"; then | |
5144 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5145 | else | |
5146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5147 | for as_dir in $PATH | |
5148 | do | |
5149 | IFS=$as_save_IFS | |
5150 | test -z "$as_dir" && as_dir=. | |
5151 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5152 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
5153 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5155 | break 2 | |
5156 | fi | |
5157 | done | |
5158 | done | |
5159 | IFS=$as_save_IFS | |
5160 | ||
5161 | fi | |
5162 | fi | |
5163 | AR=$ac_cv_prog_AR | |
5164 | if test -n "$AR"; then | |
5165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5166 | $as_echo "$AR" >&6; } | |
5167 | else | |
5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5169 | $as_echo "no" >&6; } | |
5170 | fi | |
5171 | ||
5172 | ||
5173 | fi | |
5174 | if test -z "$ac_cv_prog_AR"; then | |
5175 | ac_ct_AR=$AR | |
5176 | # Extract the first word of "ar", so it can be a program name with args. | |
5177 | set dummy ar; ac_word=$2 | |
5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5179 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5180 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
0a35513e AH |
5181 | $as_echo_n "(cached) " >&6 |
5182 | else | |
5183 | if test -n "$ac_ct_AR"; then | |
5184 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5185 | else | |
5186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5187 | for as_dir in $PATH | |
5188 | do | |
5189 | IFS=$as_save_IFS | |
5190 | test -z "$as_dir" && as_dir=. | |
5191 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5192 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
5193 | ac_cv_prog_ac_ct_AR="ar" |
5194 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5195 | break 2 | |
5196 | fi | |
5197 | done | |
5198 | done | |
5199 | IFS=$as_save_IFS | |
5200 | ||
5201 | fi | |
5202 | fi | |
5203 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5204 | if test -n "$ac_ct_AR"; then | |
5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5206 | $as_echo "$ac_ct_AR" >&6; } | |
5207 | else | |
5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5209 | $as_echo "no" >&6; } | |
5210 | fi | |
5211 | ||
5212 | if test "x$ac_ct_AR" = x; then | |
5213 | AR="" | |
5214 | else | |
5215 | case $cross_compiling:$ac_tool_warned in | |
5216 | yes:) | |
5217 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5218 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5219 | ac_tool_warned=yes ;; | |
5220 | esac | |
5221 | AR=$ac_ct_AR | |
5222 | fi | |
5223 | else | |
5224 | AR="$ac_cv_prog_AR" | |
5225 | fi | |
5226 | ||
5227 | if test -n "$ac_tool_prefix"; then | |
5228 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
5229 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
5230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5231 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5232 | if ${ac_cv_prog_NM+:} false; then : |
0a35513e AH |
5233 | $as_echo_n "(cached) " >&6 |
5234 | else | |
5235 | if test -n "$NM"; then | |
5236 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
5237 | else | |
5238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5239 | for as_dir in $PATH | |
5240 | do | |
5241 | IFS=$as_save_IFS | |
5242 | test -z "$as_dir" && as_dir=. | |
5243 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5244 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
5245 | ac_cv_prog_NM="${ac_tool_prefix}nm" |
5246 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5247 | break 2 | |
5248 | fi | |
5249 | done | |
5250 | done | |
5251 | IFS=$as_save_IFS | |
5252 | ||
5253 | fi | |
5254 | fi | |
5255 | NM=$ac_cv_prog_NM | |
5256 | if test -n "$NM"; then | |
5257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 | |
5258 | $as_echo "$NM" >&6; } | |
5259 | else | |
5260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5261 | $as_echo "no" >&6; } | |
5262 | fi | |
5263 | ||
5264 | ||
5265 | fi | |
5266 | if test -z "$ac_cv_prog_NM"; then | |
5267 | ac_ct_NM=$NM | |
5268 | # Extract the first word of "nm", so it can be a program name with args. | |
5269 | set dummy nm; ac_word=$2 | |
5270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5271 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5272 | if ${ac_cv_prog_ac_ct_NM+:} false; then : |
0a35513e AH |
5273 | $as_echo_n "(cached) " >&6 |
5274 | else | |
5275 | if test -n "$ac_ct_NM"; then | |
5276 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
5277 | else | |
5278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5279 | for as_dir in $PATH | |
5280 | do | |
5281 | IFS=$as_save_IFS | |
5282 | test -z "$as_dir" && as_dir=. | |
5283 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5284 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
5285 | ac_cv_prog_ac_ct_NM="nm" |
5286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5287 | break 2 | |
5288 | fi | |
5289 | done | |
5290 | done | |
5291 | IFS=$as_save_IFS | |
5292 | ||
5293 | fi | |
5294 | fi | |
5295 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
5296 | if test -n "$ac_ct_NM"; then | |
5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 | |
5298 | $as_echo "$ac_ct_NM" >&6; } | |
5299 | else | |
5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5301 | $as_echo "no" >&6; } | |
5302 | fi | |
5303 | ||
5304 | if test "x$ac_ct_NM" = x; then | |
5305 | NM="" | |
5306 | else | |
5307 | case $cross_compiling:$ac_tool_warned in | |
5308 | yes:) | |
5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5310 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5311 | ac_tool_warned=yes ;; | |
5312 | esac | |
5313 | NM=$ac_ct_NM | |
5314 | fi | |
5315 | else | |
5316 | NM="$ac_cv_prog_NM" | |
5317 | fi | |
5318 | ||
5319 | if test -n "$ac_tool_prefix"; then | |
5320 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5321 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5323 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5324 | if ${ac_cv_prog_RANLIB+:} false; then : |
0a35513e AH |
5325 | $as_echo_n "(cached) " >&6 |
5326 | else | |
5327 | if test -n "$RANLIB"; then | |
5328 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5329 | else | |
5330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5331 | for as_dir in $PATH | |
5332 | do | |
5333 | IFS=$as_save_IFS | |
5334 | test -z "$as_dir" && as_dir=. | |
5335 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5336 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
5337 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5339 | break 2 | |
5340 | fi | |
5341 | done | |
5342 | done | |
5343 | IFS=$as_save_IFS | |
5344 | ||
5345 | fi | |
5346 | fi | |
5347 | RANLIB=$ac_cv_prog_RANLIB | |
5348 | if test -n "$RANLIB"; then | |
5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5350 | $as_echo "$RANLIB" >&6; } | |
5351 | else | |
5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5353 | $as_echo "no" >&6; } | |
5354 | fi | |
5355 | ||
5356 | ||
5357 | fi | |
5358 | if test -z "$ac_cv_prog_RANLIB"; then | |
5359 | ac_ct_RANLIB=$RANLIB | |
5360 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5361 | set dummy ranlib; ac_word=$2 | |
5362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5363 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5364 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
0a35513e AH |
5365 | $as_echo_n "(cached) " >&6 |
5366 | else | |
5367 | if test -n "$ac_ct_RANLIB"; then | |
5368 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5369 | else | |
5370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5371 | for as_dir in $PATH | |
5372 | do | |
5373 | IFS=$as_save_IFS | |
5374 | test -z "$as_dir" && as_dir=. | |
5375 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5376 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
5377 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5378 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5379 | break 2 | |
5380 | fi | |
5381 | done | |
5382 | done | |
5383 | IFS=$as_save_IFS | |
5384 | ||
5385 | fi | |
5386 | fi | |
5387 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5388 | if test -n "$ac_ct_RANLIB"; then | |
5389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5390 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5391 | else | |
5392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5393 | $as_echo "no" >&6; } | |
5394 | fi | |
5395 | ||
5396 | if test "x$ac_ct_RANLIB" = x; then | |
5397 | RANLIB="ranlib-not-found-in-path-error" | |
5398 | else | |
5399 | case $cross_compiling:$ac_tool_warned in | |
5400 | yes:) | |
5401 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5402 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5403 | ac_tool_warned=yes ;; | |
5404 | esac | |
5405 | RANLIB=$ac_ct_RANLIB | |
5406 | fi | |
5407 | else | |
5408 | RANLIB="$ac_cv_prog_RANLIB" | |
5409 | fi | |
5410 | ||
5411 | # Extract the first word of "perl", so it can be a program name with args. | |
5412 | set dummy perl; ac_word=$2 | |
5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5414 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5415 | if ${ac_cv_path_PERL+:} false; then : |
0a35513e AH |
5416 | $as_echo_n "(cached) " >&6 |
5417 | else | |
5418 | case $PERL in | |
5419 | [\\/]* | ?:[\\/]*) | |
5420 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
5421 | ;; | |
5422 | *) | |
5423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5424 | for as_dir in $PATH | |
5425 | do | |
5426 | IFS=$as_save_IFS | |
5427 | test -z "$as_dir" && as_dir=. | |
5428 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5429 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
5430 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
5431 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5432 | break 2 | |
5433 | fi | |
5434 | done | |
5435 | done | |
5436 | IFS=$as_save_IFS | |
5437 | ||
5438 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error" | |
5439 | ;; | |
5440 | esac | |
5441 | fi | |
5442 | PERL=$ac_cv_path_PERL | |
5443 | if test -n "$PERL"; then | |
5444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | |
5445 | $as_echo "$PERL" >&6; } | |
5446 | else | |
5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5448 | $as_echo "no" >&6; } | |
5449 | fi | |
5450 | ||
5451 | ||
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
5453 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
5454 | set x ${MAKE-make} | |
5455 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 5456 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
0a35513e AH |
5457 | $as_echo_n "(cached) " >&6 |
5458 | else | |
5459 | cat >conftest.make <<\_ACEOF | |
5460 | SHELL = /bin/sh | |
5461 | all: | |
5462 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5463 | _ACEOF | |
22e05272 | 5464 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
0a35513e AH |
5465 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
5466 | *@@@%%%=?*=@@@%%%*) | |
5467 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5468 | *) | |
5469 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5470 | esac | |
5471 | rm -f conftest.make | |
5472 | fi | |
5473 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
5474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5475 | $as_echo "yes" >&6; } | |
5476 | SET_MAKE= | |
5477 | else | |
5478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5479 | $as_echo "no" >&6; } | |
5480 | SET_MAKE="MAKE=${MAKE-make}" | |
5481 | fi | |
5482 | ||
5483 | ||
5484 | ||
5485 | # See if makeinfo has been installed and is modern enough | |
5486 | # that we can use it. | |
5487 | ||
5488 | # Extract the first word of "makeinfo", so it can be a program name with args. | |
5489 | set dummy makeinfo; ac_word=$2 | |
5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5491 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5492 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
0a35513e AH |
5493 | $as_echo_n "(cached) " >&6 |
5494 | else | |
5495 | if test -n "$MAKEINFO"; then | |
5496 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
5497 | else | |
5498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5499 | for as_dir in $PATH | |
5500 | do | |
5501 | IFS=$as_save_IFS | |
5502 | test -z "$as_dir" && as_dir=. | |
5503 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5504 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
5505 | ac_cv_prog_MAKEINFO="makeinfo" |
5506 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5507 | break 2 | |
5508 | fi | |
5509 | done | |
5510 | done | |
5511 | IFS=$as_save_IFS | |
5512 | ||
5513 | fi | |
5514 | fi | |
5515 | MAKEINFO=$ac_cv_prog_MAKEINFO | |
5516 | if test -n "$MAKEINFO"; then | |
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 | |
5518 | $as_echo "$MAKEINFO" >&6; } | |
5519 | else | |
5520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5521 | $as_echo "no" >&6; } | |
5522 | fi | |
5523 | ||
5524 | ||
5525 | if test -n "$MAKEINFO"; then | |
5526 | # Found it, now check the version. | |
5527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5 | |
5528 | $as_echo_n "checking for modern makeinfo... " >&6; } | |
22e05272 | 5529 | if ${gcc_cv_prog_makeinfo_modern+:} false; then : |
0a35513e AH |
5530 | $as_echo_n "(cached) " >&6 |
5531 | else | |
5532 | ac_prog_version=`eval $MAKEINFO --version 2>&1 | | |
5533 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` | |
5534 | ||
5535 | case $ac_prog_version in | |
5536 | '') gcc_cv_prog_makeinfo_modern=no;; | |
5537 | 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;; | |
5538 | *) gcc_cv_prog_makeinfo_modern=no;; | |
5539 | esac | |
5540 | ||
5541 | fi | |
5542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5 | |
5543 | $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; } | |
5544 | else | |
5545 | gcc_cv_prog_makeinfo_modern=no | |
5546 | fi | |
5547 | if test $gcc_cv_prog_makeinfo_modern = no; then | |
5548 | MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" | |
5549 | fi | |
5550 | ||
5551 | if test $gcc_cv_prog_makeinfo_modern = "yes"; then | |
5552 | BUILD_INFO_TRUE= | |
5553 | BUILD_INFO_FALSE='#' | |
5554 | else | |
5555 | BUILD_INFO_TRUE='#' | |
5556 | BUILD_INFO_FALSE= | |
5557 | fi | |
5558 | ||
5559 | ||
5560 | ||
5561 | # Configure libtool | |
5562 | case `pwd` in | |
5563 | *\ * | *\ *) | |
5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5565 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5566 | esac | |
5567 | ||
5568 | ||
5569 | ||
5570 | macro_version='2.2.7a' | |
5571 | macro_revision='1.3134' | |
5572 | ||
5573 | ||
5574 | ||
5575 | ||
5576 | ||
5577 | ||
5578 | ||
5579 | ||
5580 | ||
5581 | ||
5582 | ||
5583 | ||
5584 | ||
5585 | ltmain="$ac_aux_dir/ltmain.sh" | |
5586 | ||
5587 | # Backslashify metacharacters that are still active within | |
5588 | # double-quoted strings. | |
5589 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5590 | ||
5591 | # Same as above, but do not quote variable references. | |
5592 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5593 | ||
5594 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5595 | # double_quote_subst'ed string. | |
5596 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5597 | ||
5598 | # Sed substitution to delay expansion of an escaped single quote. | |
5599 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5600 | ||
5601 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5602 | no_glob_subst='s/\*/\\\*/g' | |
5603 | ||
5604 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5605 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5606 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5607 | ||
5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5609 | $as_echo_n "checking how to print strings... " >&6; } | |
5610 | # Test print first, because it will be a builtin if present. | |
5611 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5612 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5613 | ECHO='print -r --' | |
5614 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5615 | ECHO='printf %s\n' | |
5616 | else | |
5617 | # Use this function as a fallback that always works. | |
5618 | func_fallback_echo () | |
5619 | { | |
5620 | eval 'cat <<_LTECHO_EOF | |
5621 | $1 | |
5622 | _LTECHO_EOF' | |
5623 | } | |
5624 | ECHO='func_fallback_echo' | |
5625 | fi | |
5626 | ||
5627 | # func_echo_all arg... | |
5628 | # Invoke $ECHO with all args, space-separated. | |
5629 | func_echo_all () | |
5630 | { | |
5631 | $ECHO "" | |
5632 | } | |
5633 | ||
5634 | case "$ECHO" in | |
5635 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5636 | $as_echo "printf" >&6; } ;; | |
5637 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5638 | $as_echo "print -r" >&6; } ;; | |
5639 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5640 | $as_echo "cat" >&6; } ;; | |
5641 | esac | |
5642 | ||
5643 | ||
5644 | ||
5645 | ||
5646 | ||
5647 | ||
5648 | ||
5649 | ||
5650 | ||
5651 | ||
5652 | ||
5653 | ||
5654 | ||
5655 | ||
5656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
5657 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 5658 | if ${ac_cv_path_SED+:} false; then : |
0a35513e AH |
5659 | $as_echo_n "(cached) " >&6 |
5660 | else | |
5661 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5662 | for ac_i in 1 2 3 4 5 6 7; do | |
5663 | ac_script="$ac_script$as_nl$ac_script" | |
5664 | done | |
5665 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5666 | { ac_script=; unset ac_script;} | |
5667 | if test -z "$SED"; then | |
5668 | ac_path_SED_found=false | |
5669 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5671 | for as_dir in $PATH | |
5672 | do | |
5673 | IFS=$as_save_IFS | |
5674 | test -z "$as_dir" && as_dir=. | |
5675 | for ac_prog in sed gsed; do | |
5676 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5677 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 5678 | as_fn_executable_p "$ac_path_SED" || continue |
0a35513e AH |
5679 | # Check for GNU ac_path_SED and select it if it is found. |
5680 | # Check for GNU $ac_path_SED | |
5681 | case `"$ac_path_SED" --version 2>&1` in | |
5682 | *GNU*) | |
5683 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5684 | *) | |
5685 | ac_count=0 | |
5686 | $as_echo_n 0123456789 >"conftest.in" | |
5687 | while : | |
5688 | do | |
5689 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5690 | mv "conftest.tmp" "conftest.in" | |
5691 | cp "conftest.in" "conftest.nl" | |
5692 | $as_echo '' >> "conftest.nl" | |
5693 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5694 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5695 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5696 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5697 | # Best one so far, save it but keep looking for a better one | |
5698 | ac_cv_path_SED="$ac_path_SED" | |
5699 | ac_path_SED_max=$ac_count | |
5700 | fi | |
5701 | # 10*(2^10) chars as input seems more than enough | |
5702 | test $ac_count -gt 10 && break | |
5703 | done | |
5704 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5705 | esac | |
5706 | ||
5707 | $ac_path_SED_found && break 3 | |
5708 | done | |
5709 | done | |
5710 | done | |
5711 | IFS=$as_save_IFS | |
5712 | if test -z "$ac_cv_path_SED"; then | |
22e05272 | 5713 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
0a35513e AH |
5714 | fi |
5715 | else | |
5716 | ac_cv_path_SED=$SED | |
5717 | fi | |
5718 | ||
5719 | fi | |
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5721 | $as_echo "$ac_cv_path_SED" >&6; } | |
5722 | SED="$ac_cv_path_SED" | |
5723 | rm -f conftest.sed | |
5724 | ||
5725 | test -z "$SED" && SED=sed | |
5726 | Xsed="$SED -e 1s/^X//" | |
5727 | ||
5728 | ||
5729 | ||
5730 | ||
5731 | ||
5732 | ||
5733 | ||
5734 | ||
5735 | ||
5736 | ||
5737 | ||
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
5739 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
22e05272 | 5740 | if ${ac_cv_path_GREP+:} false; then : |
0a35513e AH |
5741 | $as_echo_n "(cached) " >&6 |
5742 | else | |
5743 | if test -z "$GREP"; then | |
5744 | ac_path_GREP_found=false | |
5745 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5747 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5748 | do | |
5749 | IFS=$as_save_IFS | |
5750 | test -z "$as_dir" && as_dir=. | |
5751 | for ac_prog in grep ggrep; do | |
5752 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5753 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 5754 | as_fn_executable_p "$ac_path_GREP" || continue |
0a35513e AH |
5755 | # Check for GNU ac_path_GREP and select it if it is found. |
5756 | # Check for GNU $ac_path_GREP | |
5757 | case `"$ac_path_GREP" --version 2>&1` in | |
5758 | *GNU*) | |
5759 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5760 | *) | |
5761 | ac_count=0 | |
5762 | $as_echo_n 0123456789 >"conftest.in" | |
5763 | while : | |
5764 | do | |
5765 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5766 | mv "conftest.tmp" "conftest.in" | |
5767 | cp "conftest.in" "conftest.nl" | |
5768 | $as_echo 'GREP' >> "conftest.nl" | |
5769 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5770 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5771 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5772 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5773 | # Best one so far, save it but keep looking for a better one | |
5774 | ac_cv_path_GREP="$ac_path_GREP" | |
5775 | ac_path_GREP_max=$ac_count | |
5776 | fi | |
5777 | # 10*(2^10) chars as input seems more than enough | |
5778 | test $ac_count -gt 10 && break | |
5779 | done | |
5780 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5781 | esac | |
5782 | ||
5783 | $ac_path_GREP_found && break 3 | |
5784 | done | |
5785 | done | |
5786 | done | |
5787 | IFS=$as_save_IFS | |
5788 | if test -z "$ac_cv_path_GREP"; then | |
22e05272 | 5789 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
0a35513e AH |
5790 | fi |
5791 | else | |
5792 | ac_cv_path_GREP=$GREP | |
5793 | fi | |
5794 | ||
5795 | fi | |
5796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5797 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5798 | GREP="$ac_cv_path_GREP" | |
5799 | ||
5800 | ||
5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5802 | $as_echo_n "checking for egrep... " >&6; } | |
22e05272 | 5803 | if ${ac_cv_path_EGREP+:} false; then : |
0a35513e AH |
5804 | $as_echo_n "(cached) " >&6 |
5805 | else | |
5806 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5807 | then ac_cv_path_EGREP="$GREP -E" | |
5808 | else | |
5809 | if test -z "$EGREP"; then | |
5810 | ac_path_EGREP_found=false | |
5811 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5813 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5814 | do | |
5815 | IFS=$as_save_IFS | |
5816 | test -z "$as_dir" && as_dir=. | |
5817 | for ac_prog in egrep; do | |
5818 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5819 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 5820 | as_fn_executable_p "$ac_path_EGREP" || continue |
0a35513e AH |
5821 | # Check for GNU ac_path_EGREP and select it if it is found. |
5822 | # Check for GNU $ac_path_EGREP | |
5823 | case `"$ac_path_EGREP" --version 2>&1` in | |
5824 | *GNU*) | |
5825 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5826 | *) | |
5827 | ac_count=0 | |
5828 | $as_echo_n 0123456789 >"conftest.in" | |
5829 | while : | |
5830 | do | |
5831 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5832 | mv "conftest.tmp" "conftest.in" | |
5833 | cp "conftest.in" "conftest.nl" | |
5834 | $as_echo 'EGREP' >> "conftest.nl" | |
5835 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5836 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5837 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5838 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5839 | # Best one so far, save it but keep looking for a better one | |
5840 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5841 | ac_path_EGREP_max=$ac_count | |
5842 | fi | |
5843 | # 10*(2^10) chars as input seems more than enough | |
5844 | test $ac_count -gt 10 && break | |
5845 | done | |
5846 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5847 | esac | |
5848 | ||
5849 | $ac_path_EGREP_found && break 3 | |
5850 | done | |
5851 | done | |
5852 | done | |
5853 | IFS=$as_save_IFS | |
5854 | if test -z "$ac_cv_path_EGREP"; then | |
22e05272 | 5855 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
0a35513e AH |
5856 | fi |
5857 | else | |
5858 | ac_cv_path_EGREP=$EGREP | |
5859 | fi | |
5860 | ||
5861 | fi | |
5862 | fi | |
5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5864 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5865 | EGREP="$ac_cv_path_EGREP" | |
5866 | ||
5867 | ||
5868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5869 | $as_echo_n "checking for fgrep... " >&6; } | |
22e05272 | 5870 | if ${ac_cv_path_FGREP+:} false; then : |
0a35513e AH |
5871 | $as_echo_n "(cached) " >&6 |
5872 | else | |
5873 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5874 | then ac_cv_path_FGREP="$GREP -F" | |
5875 | else | |
5876 | if test -z "$FGREP"; then | |
5877 | ac_path_FGREP_found=false | |
5878 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5880 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5881 | do | |
5882 | IFS=$as_save_IFS | |
5883 | test -z "$as_dir" && as_dir=. | |
5884 | for ac_prog in fgrep; do | |
5885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5886 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 5887 | as_fn_executable_p "$ac_path_FGREP" || continue |
0a35513e AH |
5888 | # Check for GNU ac_path_FGREP and select it if it is found. |
5889 | # Check for GNU $ac_path_FGREP | |
5890 | case `"$ac_path_FGREP" --version 2>&1` in | |
5891 | *GNU*) | |
5892 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5893 | *) | |
5894 | ac_count=0 | |
5895 | $as_echo_n 0123456789 >"conftest.in" | |
5896 | while : | |
5897 | do | |
5898 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5899 | mv "conftest.tmp" "conftest.in" | |
5900 | cp "conftest.in" "conftest.nl" | |
5901 | $as_echo 'FGREP' >> "conftest.nl" | |
5902 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5903 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5904 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5905 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5906 | # Best one so far, save it but keep looking for a better one | |
5907 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5908 | ac_path_FGREP_max=$ac_count | |
5909 | fi | |
5910 | # 10*(2^10) chars as input seems more than enough | |
5911 | test $ac_count -gt 10 && break | |
5912 | done | |
5913 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5914 | esac | |
5915 | ||
5916 | $ac_path_FGREP_found && break 3 | |
5917 | done | |
5918 | done | |
5919 | done | |
5920 | IFS=$as_save_IFS | |
5921 | if test -z "$ac_cv_path_FGREP"; then | |
22e05272 | 5922 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
0a35513e AH |
5923 | fi |
5924 | else | |
5925 | ac_cv_path_FGREP=$FGREP | |
5926 | fi | |
5927 | ||
5928 | fi | |
5929 | fi | |
5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5931 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5932 | FGREP="$ac_cv_path_FGREP" | |
5933 | ||
5934 | ||
5935 | test -z "$GREP" && GREP=grep | |
5936 | ||
5937 | ||
5938 | ||
5939 | ||
5940 | ||
5941 | ||
5942 | ||
5943 | ||
5944 | ||
5945 | ||
5946 | ||
5947 | ||
5948 | ||
5949 | ||
5950 | ||
5951 | ||
5952 | ||
5953 | ||
5954 | ||
5955 | # Check whether --with-gnu-ld was given. | |
5956 | if test "${with_gnu_ld+set}" = set; then : | |
5957 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5958 | else | |
5959 | with_gnu_ld=no | |
5960 | fi | |
5961 | ||
5962 | ac_prog=ld | |
5963 | if test "$GCC" = yes; then | |
5964 | # Check if gcc -print-prog-name=ld gives a path. | |
5965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5966 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5967 | case $host in | |
5968 | *-*-mingw*) | |
5969 | # gcc leaves a trailing carriage return which upsets mingw | |
5970 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5971 | *) | |
5972 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5973 | esac | |
5974 | case $ac_prog in | |
5975 | # Accept absolute paths. | |
5976 | [\\/]* | ?:[\\/]*) | |
5977 | re_direlt='/[^/][^/]*/\.\./' | |
5978 | # Canonicalize the pathname of ld | |
5979 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5980 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5981 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5982 | done | |
5983 | test -z "$LD" && LD="$ac_prog" | |
5984 | ;; | |
5985 | "") | |
5986 | # If it fails, then pretend we aren't using GCC. | |
5987 | ac_prog=ld | |
5988 | ;; | |
5989 | *) | |
5990 | # If it is relative, then search for the first ld in PATH. | |
5991 | with_gnu_ld=unknown | |
5992 | ;; | |
5993 | esac | |
5994 | elif test "$with_gnu_ld" = yes; then | |
5995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5996 | $as_echo_n "checking for GNU ld... " >&6; } | |
5997 | else | |
5998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5999 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
6000 | fi | |
22e05272 | 6001 | if ${lt_cv_path_LD+:} false; then : |
0a35513e AH |
6002 | $as_echo_n "(cached) " >&6 |
6003 | else | |
6004 | if test -z "$LD"; then | |
6005 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6006 | for ac_dir in $PATH; do | |
6007 | IFS="$lt_save_ifs" | |
6008 | test -z "$ac_dir" && ac_dir=. | |
6009 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6010 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6011 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6012 | # but apparently some variants of GNU ld only accept -v. | |
6013 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6014 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6015 | *GNU* | *'with BFD'*) | |
6016 | test "$with_gnu_ld" != no && break | |
6017 | ;; | |
6018 | *) | |
6019 | test "$with_gnu_ld" != yes && break | |
6020 | ;; | |
6021 | esac | |
6022 | fi | |
6023 | done | |
6024 | IFS="$lt_save_ifs" | |
6025 | else | |
6026 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6027 | fi | |
6028 | fi | |
6029 | ||
6030 | LD="$lt_cv_path_LD" | |
6031 | if test -n "$LD"; then | |
6032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
6033 | $as_echo "$LD" >&6; } | |
6034 | else | |
6035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6036 | $as_echo "no" >&6; } | |
6037 | fi | |
22e05272 | 6038 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
0a35513e AH |
6039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
6040 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 6041 | if ${lt_cv_prog_gnu_ld+:} false; then : |
0a35513e AH |
6042 | $as_echo_n "(cached) " >&6 |
6043 | else | |
6044 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6045 | case `$LD -v 2>&1 </dev/null` in | |
6046 | *GNU* | *'with BFD'*) | |
6047 | lt_cv_prog_gnu_ld=yes | |
6048 | ;; | |
6049 | *) | |
6050 | lt_cv_prog_gnu_ld=no | |
6051 | ;; | |
6052 | esac | |
6053 | fi | |
6054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
6055 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6056 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
6057 | ||
6058 | ||
6059 | ||
6060 | ||
6061 | ||
6062 | ||
6063 | ||
6064 | ||
6065 | ||
6066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
6067 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
22e05272 | 6068 | if ${lt_cv_path_NM+:} false; then : |
0a35513e AH |
6069 | $as_echo_n "(cached) " >&6 |
6070 | else | |
6071 | if test -n "$NM"; then | |
6072 | # Let the user override the test. | |
6073 | lt_cv_path_NM="$NM" | |
6074 | else | |
6075 | lt_nm_to_check="${ac_tool_prefix}nm" | |
6076 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6077 | lt_nm_to_check="$lt_nm_to_check nm" | |
6078 | fi | |
6079 | for lt_tmp_nm in $lt_nm_to_check; do | |
6080 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6081 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6082 | IFS="$lt_save_ifs" | |
6083 | test -z "$ac_dir" && ac_dir=. | |
6084 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6085 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6086 | # Check to see if the nm accepts a BSD-compat flag. | |
6087 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6088 | # nm: unknown option "B" ignored | |
6089 | # Tru64's nm complains that /dev/null is an invalid object file | |
6090 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6091 | */dev/null* | *'Invalid file or object type'*) | |
6092 | lt_cv_path_NM="$tmp_nm -B" | |
6093 | break | |
6094 | ;; | |
6095 | *) | |
6096 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6097 | */dev/null*) | |
6098 | lt_cv_path_NM="$tmp_nm -p" | |
6099 | break | |
6100 | ;; | |
6101 | *) | |
6102 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6103 | continue # so that we can try to find one that supports BSD flags | |
6104 | ;; | |
6105 | esac | |
6106 | ;; | |
6107 | esac | |
6108 | fi | |
6109 | done | |
6110 | IFS="$lt_save_ifs" | |
6111 | done | |
6112 | : ${lt_cv_path_NM=no} | |
6113 | fi | |
6114 | fi | |
6115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
6116 | $as_echo "$lt_cv_path_NM" >&6; } | |
6117 | if test "$lt_cv_path_NM" != "no"; then | |
6118 | NM="$lt_cv_path_NM" | |
6119 | else | |
6120 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
6121 | if test -n "$DUMPBIN"; then : | |
6122 | # Let the user override the test. | |
6123 | else | |
6124 | if test -n "$ac_tool_prefix"; then | |
6125 | for ac_prog in dumpbin "link -dump" | |
6126 | do | |
6127 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6128 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6130 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6131 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
0a35513e AH |
6132 | $as_echo_n "(cached) " >&6 |
6133 | else | |
6134 | if test -n "$DUMPBIN"; then | |
6135 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
6136 | else | |
6137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6138 | for as_dir in $PATH | |
6139 | do | |
6140 | IFS=$as_save_IFS | |
6141 | test -z "$as_dir" && as_dir=. | |
6142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6143 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
6144 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
6145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6146 | break 2 | |
6147 | fi | |
6148 | done | |
6149 | done | |
6150 | IFS=$as_save_IFS | |
6151 | ||
6152 | fi | |
6153 | fi | |
6154 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
6155 | if test -n "$DUMPBIN"; then | |
6156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
6157 | $as_echo "$DUMPBIN" >&6; } | |
6158 | else | |
6159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6160 | $as_echo "no" >&6; } | |
6161 | fi | |
6162 | ||
6163 | ||
6164 | test -n "$DUMPBIN" && break | |
6165 | done | |
6166 | fi | |
6167 | if test -z "$DUMPBIN"; then | |
6168 | ac_ct_DUMPBIN=$DUMPBIN | |
6169 | for ac_prog in dumpbin "link -dump" | |
6170 | do | |
6171 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6172 | set dummy $ac_prog; ac_word=$2 | |
6173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6174 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6175 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
0a35513e AH |
6176 | $as_echo_n "(cached) " >&6 |
6177 | else | |
6178 | if test -n "$ac_ct_DUMPBIN"; then | |
6179 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
6180 | else | |
6181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6182 | for as_dir in $PATH | |
6183 | do | |
6184 | IFS=$as_save_IFS | |
6185 | test -z "$as_dir" && as_dir=. | |
6186 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
6188 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
6189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6190 | break 2 | |
6191 | fi | |
6192 | done | |
6193 | done | |
6194 | IFS=$as_save_IFS | |
6195 | ||
6196 | fi | |
6197 | fi | |
6198 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
6199 | if test -n "$ac_ct_DUMPBIN"; then | |
6200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
6201 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
6202 | else | |
6203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6204 | $as_echo "no" >&6; } | |
6205 | fi | |
6206 | ||
6207 | ||
6208 | test -n "$ac_ct_DUMPBIN" && break | |
6209 | done | |
6210 | ||
6211 | if test "x$ac_ct_DUMPBIN" = x; then | |
6212 | DUMPBIN=":" | |
6213 | else | |
6214 | case $cross_compiling:$ac_tool_warned in | |
6215 | yes:) | |
6216 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6217 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6218 | ac_tool_warned=yes ;; | |
6219 | esac | |
6220 | DUMPBIN=$ac_ct_DUMPBIN | |
6221 | fi | |
6222 | fi | |
6223 | ||
6224 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
6225 | *COFF*) | |
6226 | DUMPBIN="$DUMPBIN -symbols" | |
6227 | ;; | |
6228 | *) | |
6229 | DUMPBIN=: | |
6230 | ;; | |
6231 | esac | |
6232 | fi | |
6233 | ||
6234 | if test "$DUMPBIN" != ":"; then | |
6235 | NM="$DUMPBIN" | |
6236 | fi | |
6237 | fi | |
6238 | test -z "$NM" && NM=nm | |
6239 | ||
6240 | ||
6241 | ||
6242 | ||
6243 | ||
6244 | ||
6245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
6246 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
22e05272 | 6247 | if ${lt_cv_nm_interface+:} false; then : |
0a35513e AH |
6248 | $as_echo_n "(cached) " >&6 |
6249 | else | |
6250 | lt_cv_nm_interface="BSD nm" | |
6251 | echo "int some_variable = 0;" > conftest.$ac_ext | |
6252 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
6253 | (eval "$ac_compile" 2>conftest.err) | |
6254 | cat conftest.err >&5 | |
6255 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6256 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
6257 | cat conftest.err >&5 | |
6258 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
6259 | cat conftest.out >&5 | |
6260 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6261 | lt_cv_nm_interface="MS dumpbin" | |
6262 | fi | |
6263 | rm -f conftest* | |
6264 | fi | |
6265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
6266 | $as_echo "$lt_cv_nm_interface" >&6; } | |
6267 | ||
6268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
6269 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6270 | LN_S=$as_ln_s | |
6271 | if test "$LN_S" = "ln -s"; then | |
6272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6273 | $as_echo "yes" >&6; } | |
6274 | else | |
6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
6276 | $as_echo "no, using $LN_S" >&6; } | |
6277 | fi | |
6278 | ||
6279 | # find the maximum length of command line arguments | |
6280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6281 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
22e05272 | 6282 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
0a35513e AH |
6283 | $as_echo_n "(cached) " >&6 |
6284 | else | |
6285 | i=0 | |
6286 | teststring="ABCD" | |
6287 | ||
6288 | case $build_os in | |
6289 | msdosdjgpp*) | |
6290 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6291 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6292 | # during glob expansion). Even if it were fixed, the result of this | |
6293 | # check would be larger than it should be. | |
6294 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6295 | ;; | |
6296 | ||
6297 | gnu*) | |
6298 | # Under GNU Hurd, this test is not required because there is | |
6299 | # no limit to the length of command line arguments. | |
6300 | # Libtool will interpret -1 as no limit whatsoever | |
6301 | lt_cv_sys_max_cmd_len=-1; | |
6302 | ;; | |
6303 | ||
6304 | cygwin* | mingw* | cegcc*) | |
6305 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6306 | # about 5 minutes as the teststring grows exponentially. | |
6307 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6308 | # you end up with a "frozen" computer, even though with patience | |
6309 | # the test eventually succeeds (with a max line length of 256k). | |
6310 | # Instead, let's just punt: use the minimum linelength reported by | |
6311 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6312 | lt_cv_sys_max_cmd_len=8192; | |
6313 | ;; | |
6314 | ||
6315 | mint*) | |
6316 | # On MiNT this can take a long time and run out of memory. | |
6317 | lt_cv_sys_max_cmd_len=8192; | |
6318 | ;; | |
6319 | ||
6320 | amigaos*) | |
6321 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6322 | # So we just punt and use a minimum line length of 8192. | |
6323 | lt_cv_sys_max_cmd_len=8192; | |
6324 | ;; | |
6325 | ||
6326 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
6327 | # This has been around since 386BSD, at least. Likely further. | |
6328 | if test -x /sbin/sysctl; then | |
6329 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6330 | elif test -x /usr/sbin/sysctl; then | |
6331 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6332 | else | |
6333 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6334 | fi | |
6335 | # And add a safety zone | |
6336 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6337 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6338 | ;; | |
6339 | ||
6340 | interix*) | |
6341 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6342 | lt_cv_sys_max_cmd_len=196608 | |
6343 | ;; | |
6344 | ||
6345 | osf*) | |
6346 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6347 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6348 | # nice to cause kernel panics so lets avoid the loop below. | |
6349 | # First set a reasonable default. | |
6350 | lt_cv_sys_max_cmd_len=16384 | |
6351 | # | |
6352 | if test -x /sbin/sysconfig; then | |
6353 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6354 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6355 | esac | |
6356 | fi | |
6357 | ;; | |
6358 | sco3.2v5*) | |
6359 | lt_cv_sys_max_cmd_len=102400 | |
6360 | ;; | |
6361 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6362 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6363 | if test -n "$kargmax"; then | |
6364 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6365 | else | |
6366 | lt_cv_sys_max_cmd_len=32768 | |
6367 | fi | |
6368 | ;; | |
6369 | *) | |
6370 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6371 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6372 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6373 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6374 | else | |
6375 | # Make teststring a little bigger before we do anything with it. | |
6376 | # a 1K string should be a reasonable start. | |
6377 | for i in 1 2 3 4 5 6 7 8 ; do | |
6378 | teststring=$teststring$teststring | |
6379 | done | |
6380 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6381 | # If test is not a shell built-in, we'll probably end up computing a | |
6382 | # maximum length that is only half of the actual maximum length, but | |
6383 | # we can't tell. | |
6384 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
6385 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
6386 | test $i != 17 # 1/2 MB should be enough | |
6387 | do | |
6388 | i=`expr $i + 1` | |
6389 | teststring=$teststring$teststring | |
6390 | done | |
6391 | # Only check the string length outside the loop. | |
6392 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6393 | teststring= | |
6394 | # Add a significant safety factor because C++ compilers can tack on | |
6395 | # massive amounts of additional arguments before passing them to the | |
6396 | # linker. It appears as though 1/2 is a usable value. | |
6397 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6398 | fi | |
6399 | ;; | |
6400 | esac | |
6401 | ||
6402 | fi | |
6403 | ||
6404 | if test -n $lt_cv_sys_max_cmd_len ; then | |
6405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6406 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6407 | else | |
6408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6409 | $as_echo "none" >&6; } | |
6410 | fi | |
6411 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
6412 | ||
6413 | ||
6414 | ||
6415 | ||
6416 | ||
6417 | ||
6418 | : ${CP="cp -f"} | |
6419 | : ${MV="mv -f"} | |
6420 | : ${RM="rm -f"} | |
6421 | ||
6422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
6423 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6424 | # Try some XSI features | |
6425 | xsi_shell=no | |
6426 | ( _lt_dummy="a/b/c" | |
6427 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6428 | = c,a/b,, \ | |
6429 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6430 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6431 | && xsi_shell=yes | |
6432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6433 | $as_echo "$xsi_shell" >&6; } | |
6434 | ||
6435 | ||
6436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6437 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6438 | lt_shell_append=no | |
6439 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6440 | >/dev/null 2>&1 \ | |
6441 | && lt_shell_append=yes | |
6442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6443 | $as_echo "$lt_shell_append" >&6; } | |
6444 | ||
6445 | ||
6446 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6447 | lt_unset=unset | |
6448 | else | |
6449 | lt_unset=false | |
6450 | fi | |
6451 | ||
6452 | ||
6453 | ||
6454 | ||
6455 | ||
6456 | # test EBCDIC or ASCII | |
6457 | case `echo X|tr X '\101'` in | |
6458 | A) # ASCII based system | |
6459 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6460 | lt_SP2NL='tr \040 \012' | |
6461 | lt_NL2SP='tr \015\012 \040\040' | |
6462 | ;; | |
6463 | *) # EBCDIC based system | |
6464 | lt_SP2NL='tr \100 \n' | |
6465 | lt_NL2SP='tr \r\n \100\100' | |
6466 | ;; | |
6467 | esac | |
6468 | ||
6469 | ||
6470 | ||
6471 | ||
6472 | ||
6473 | ||
6474 | ||
6475 | ||
6476 | ||
6477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6478 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
22e05272 | 6479 | if ${lt_cv_ld_reload_flag+:} false; then : |
0a35513e AH |
6480 | $as_echo_n "(cached) " >&6 |
6481 | else | |
6482 | lt_cv_ld_reload_flag='-r' | |
6483 | fi | |
6484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6485 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6486 | reload_flag=$lt_cv_ld_reload_flag | |
6487 | case $reload_flag in | |
6488 | "" | " "*) ;; | |
6489 | *) reload_flag=" $reload_flag" ;; | |
6490 | esac | |
6491 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6492 | case $host_os in | |
6493 | darwin*) | |
6494 | if test "$GCC" = yes; then | |
6495 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6496 | else | |
6497 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6498 | fi | |
6499 | ;; | |
6500 | esac | |
6501 | ||
6502 | ||
6503 | ||
6504 | ||
6505 | ||
6506 | ||
6507 | ||
6508 | ||
6509 | ||
6510 | if test -n "$ac_tool_prefix"; then | |
6511 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6512 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6514 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6515 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
0a35513e AH |
6516 | $as_echo_n "(cached) " >&6 |
6517 | else | |
6518 | if test -n "$OBJDUMP"; then | |
6519 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6520 | else | |
6521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6522 | for as_dir in $PATH | |
6523 | do | |
6524 | IFS=$as_save_IFS | |
6525 | test -z "$as_dir" && as_dir=. | |
6526 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6527 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
6528 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
6529 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6530 | break 2 | |
6531 | fi | |
6532 | done | |
6533 | done | |
6534 | IFS=$as_save_IFS | |
6535 | ||
6536 | fi | |
6537 | fi | |
6538 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6539 | if test -n "$OBJDUMP"; then | |
6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6541 | $as_echo "$OBJDUMP" >&6; } | |
6542 | else | |
6543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6544 | $as_echo "no" >&6; } | |
6545 | fi | |
6546 | ||
6547 | ||
6548 | fi | |
6549 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6550 | ac_ct_OBJDUMP=$OBJDUMP | |
6551 | # Extract the first word of "objdump", so it can be a program name with args. | |
6552 | set dummy objdump; ac_word=$2 | |
6553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6554 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6555 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
0a35513e AH |
6556 | $as_echo_n "(cached) " >&6 |
6557 | else | |
6558 | if test -n "$ac_ct_OBJDUMP"; then | |
6559 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6560 | else | |
6561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6562 | for as_dir in $PATH | |
6563 | do | |
6564 | IFS=$as_save_IFS | |
6565 | test -z "$as_dir" && as_dir=. | |
6566 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6567 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
6568 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
6569 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6570 | break 2 | |
6571 | fi | |
6572 | done | |
6573 | done | |
6574 | IFS=$as_save_IFS | |
6575 | ||
6576 | fi | |
6577 | fi | |
6578 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6579 | if test -n "$ac_ct_OBJDUMP"; then | |
6580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6581 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6582 | else | |
6583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6584 | $as_echo "no" >&6; } | |
6585 | fi | |
6586 | ||
6587 | if test "x$ac_ct_OBJDUMP" = x; then | |
6588 | OBJDUMP="false" | |
6589 | else | |
6590 | case $cross_compiling:$ac_tool_warned in | |
6591 | yes:) | |
6592 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6593 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6594 | ac_tool_warned=yes ;; | |
6595 | esac | |
6596 | OBJDUMP=$ac_ct_OBJDUMP | |
6597 | fi | |
6598 | else | |
6599 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6600 | fi | |
6601 | ||
6602 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6603 | ||
6604 | ||
6605 | ||
6606 | ||
6607 | ||
6608 | ||
6609 | ||
6610 | ||
6611 | ||
6612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
6613 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
22e05272 | 6614 | if ${lt_cv_deplibs_check_method+:} false; then : |
0a35513e AH |
6615 | $as_echo_n "(cached) " >&6 |
6616 | else | |
6617 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6618 | lt_cv_file_magic_test_file= | |
6619 | lt_cv_deplibs_check_method='unknown' | |
6620 | # Need to set the preceding variable on all platforms that support | |
6621 | # interlibrary dependencies. | |
6622 | # 'none' -- dependencies not supported. | |
6623 | # `unknown' -- same as none, but documents that we really don't know. | |
6624 | # 'pass_all' -- all dependencies passed with no checks. | |
6625 | # 'test_compile' -- check by making test program. | |
6626 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6627 | # which responds to the $file_magic_cmd with a given extended regex. | |
6628 | # If you have `file' or equivalent on your system and you're not sure | |
6629 | # whether `pass_all' will *always* work, you probably want this one. | |
6630 | ||
6631 | case $host_os in | |
6632 | aix[4-9]*) | |
6633 | lt_cv_deplibs_check_method=pass_all | |
6634 | ;; | |
6635 | ||
6636 | beos*) | |
6637 | lt_cv_deplibs_check_method=pass_all | |
6638 | ;; | |
6639 | ||
6640 | bsdi[45]*) | |
6641 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6642 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6643 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6644 | ;; | |
6645 | ||
6646 | cygwin*) | |
6647 | # func_win32_libid is a shell function defined in ltmain.sh | |
6648 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6649 | lt_cv_file_magic_cmd='func_win32_libid' | |
6650 | ;; | |
6651 | ||
6652 | mingw* | pw32*) | |
6653 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6654 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6655 | # unless we find 'file', for example because we are cross-compiling. | |
6656 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6657 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6658 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6659 | lt_cv_file_magic_cmd='func_win32_libid' | |
6660 | else | |
6661 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6662 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6663 | fi | |
6664 | ;; | |
6665 | ||
6666 | cegcc*) | |
6667 | # use the weaker test based on 'objdump'. See mingw*. | |
6668 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6669 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6670 | ;; | |
6671 | ||
6672 | darwin* | rhapsody*) | |
6673 | lt_cv_deplibs_check_method=pass_all | |
6674 | ;; | |
6675 | ||
6676 | freebsd* | dragonfly*) | |
6677 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6678 | case $host_cpu in | |
6679 | i*86 ) | |
6680 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6681 | # Let's accept both of them until this is cleared up. | |
6682 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6683 | lt_cv_file_magic_cmd=/usr/bin/file | |
6684 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6685 | ;; | |
6686 | esac | |
6687 | else | |
6688 | lt_cv_deplibs_check_method=pass_all | |
6689 | fi | |
6690 | ;; | |
6691 | ||
6692 | gnu*) | |
6693 | lt_cv_deplibs_check_method=pass_all | |
6694 | ;; | |
6695 | ||
6696 | haiku*) | |
6697 | lt_cv_deplibs_check_method=pass_all | |
6698 | ;; | |
6699 | ||
6700 | hpux10.20* | hpux11*) | |
6701 | lt_cv_file_magic_cmd=/usr/bin/file | |
6702 | case $host_cpu in | |
6703 | ia64*) | |
6704 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6705 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6706 | ;; | |
6707 | hppa*64*) | |
6708 | 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]' | |
6709 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6710 | ;; | |
6711 | *) | |
6712 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6713 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6714 | ;; | |
6715 | esac | |
6716 | ;; | |
6717 | ||
6718 | interix[3-9]*) | |
6719 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6720 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6721 | ;; | |
6722 | ||
6723 | irix5* | irix6* | nonstopux*) | |
6724 | case $LD in | |
6725 | *-32|*"-32 ") libmagic=32-bit;; | |
6726 | *-n32|*"-n32 ") libmagic=N32;; | |
6727 | *-64|*"-64 ") libmagic=64-bit;; | |
6728 | *) libmagic=never-match;; | |
6729 | esac | |
6730 | lt_cv_deplibs_check_method=pass_all | |
6731 | ;; | |
6732 | ||
6733 | # This must be Linux ELF. | |
6734 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6735 | lt_cv_deplibs_check_method=pass_all | |
6736 | ;; | |
6737 | ||
6738 | netbsd*) | |
6739 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6740 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6741 | else | |
6742 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6743 | fi | |
6744 | ;; | |
6745 | ||
6746 | newos6*) | |
6747 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6748 | lt_cv_file_magic_cmd=/usr/bin/file | |
6749 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6750 | ;; | |
6751 | ||
6752 | *nto* | *qnx*) | |
6753 | lt_cv_deplibs_check_method=pass_all | |
6754 | ;; | |
6755 | ||
6756 | openbsd*) | |
6757 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6758 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6759 | else | |
6760 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6761 | fi | |
6762 | ;; | |
6763 | ||
6764 | osf3* | osf4* | osf5*) | |
6765 | lt_cv_deplibs_check_method=pass_all | |
6766 | ;; | |
6767 | ||
6768 | rdos*) | |
6769 | lt_cv_deplibs_check_method=pass_all | |
6770 | ;; | |
6771 | ||
6772 | solaris*) | |
6773 | lt_cv_deplibs_check_method=pass_all | |
6774 | ;; | |
6775 | ||
6776 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6777 | lt_cv_deplibs_check_method=pass_all | |
6778 | ;; | |
6779 | ||
6780 | sysv4 | sysv4.3*) | |
6781 | case $host_vendor in | |
6782 | motorola) | |
6783 | 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]' | |
6784 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6785 | ;; | |
6786 | ncr) | |
6787 | lt_cv_deplibs_check_method=pass_all | |
6788 | ;; | |
6789 | sequent) | |
6790 | lt_cv_file_magic_cmd='/bin/file' | |
6791 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6792 | ;; | |
6793 | sni) | |
6794 | lt_cv_file_magic_cmd='/bin/file' | |
6795 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6796 | lt_cv_file_magic_test_file=/lib/libc.so | |
6797 | ;; | |
6798 | siemens) | |
6799 | lt_cv_deplibs_check_method=pass_all | |
6800 | ;; | |
6801 | pc) | |
6802 | lt_cv_deplibs_check_method=pass_all | |
6803 | ;; | |
6804 | esac | |
6805 | ;; | |
6806 | ||
6807 | tpf*) | |
6808 | lt_cv_deplibs_check_method=pass_all | |
6809 | ;; | |
6810 | esac | |
6811 | ||
6812 | fi | |
6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6814 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6815 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6816 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6817 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6818 | ||
6819 | ||
6820 | ||
6821 | ||
6822 | ||
6823 | ||
6824 | ||
6825 | ||
6826 | ||
6827 | ||
6828 | ||
6829 | ||
6830 | if test -n "$ac_tool_prefix"; then | |
6831 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6832 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6834 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6835 | if ${ac_cv_prog_AR+:} false; then : |
0a35513e AH |
6836 | $as_echo_n "(cached) " >&6 |
6837 | else | |
6838 | if test -n "$AR"; then | |
6839 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6840 | else | |
6841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6842 | for as_dir in $PATH | |
6843 | do | |
6844 | IFS=$as_save_IFS | |
6845 | test -z "$as_dir" && as_dir=. | |
6846 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6847 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
6848 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6850 | break 2 | |
6851 | fi | |
6852 | done | |
6853 | done | |
6854 | IFS=$as_save_IFS | |
6855 | ||
6856 | fi | |
6857 | fi | |
6858 | AR=$ac_cv_prog_AR | |
6859 | if test -n "$AR"; then | |
6860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6861 | $as_echo "$AR" >&6; } | |
6862 | else | |
6863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6864 | $as_echo "no" >&6; } | |
6865 | fi | |
6866 | ||
6867 | ||
6868 | fi | |
6869 | if test -z "$ac_cv_prog_AR"; then | |
6870 | ac_ct_AR=$AR | |
6871 | # Extract the first word of "ar", so it can be a program name with args. | |
6872 | set dummy ar; ac_word=$2 | |
6873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6874 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6875 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
0a35513e AH |
6876 | $as_echo_n "(cached) " >&6 |
6877 | else | |
6878 | if test -n "$ac_ct_AR"; then | |
6879 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6880 | else | |
6881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6882 | for as_dir in $PATH | |
6883 | do | |
6884 | IFS=$as_save_IFS | |
6885 | test -z "$as_dir" && as_dir=. | |
6886 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6887 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
6888 | ac_cv_prog_ac_ct_AR="ar" |
6889 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6890 | break 2 | |
6891 | fi | |
6892 | done | |
6893 | done | |
6894 | IFS=$as_save_IFS | |
6895 | ||
6896 | fi | |
6897 | fi | |
6898 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6899 | if test -n "$ac_ct_AR"; then | |
6900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6901 | $as_echo "$ac_ct_AR" >&6; } | |
6902 | else | |
6903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6904 | $as_echo "no" >&6; } | |
6905 | fi | |
6906 | ||
6907 | if test "x$ac_ct_AR" = x; then | |
6908 | AR="false" | |
6909 | else | |
6910 | case $cross_compiling:$ac_tool_warned in | |
6911 | yes:) | |
6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6913 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6914 | ac_tool_warned=yes ;; | |
6915 | esac | |
6916 | AR=$ac_ct_AR | |
6917 | fi | |
6918 | else | |
6919 | AR="$ac_cv_prog_AR" | |
6920 | fi | |
6921 | ||
6922 | test -z "$AR" && AR=ar | |
6923 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6924 | ||
6925 | ||
6926 | ||
6927 | ||
6928 | ||
6929 | ||
6930 | ||
6931 | ||
6932 | ||
6933 | ||
6934 | ||
6935 | if test -n "$ac_tool_prefix"; then | |
6936 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6937 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6939 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6940 | if ${ac_cv_prog_STRIP+:} false; then : |
0a35513e AH |
6941 | $as_echo_n "(cached) " >&6 |
6942 | else | |
6943 | if test -n "$STRIP"; then | |
6944 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6945 | else | |
6946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6947 | for as_dir in $PATH | |
6948 | do | |
6949 | IFS=$as_save_IFS | |
6950 | test -z "$as_dir" && as_dir=. | |
6951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6952 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
6953 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6955 | break 2 | |
6956 | fi | |
6957 | done | |
6958 | done | |
6959 | IFS=$as_save_IFS | |
6960 | ||
6961 | fi | |
6962 | fi | |
6963 | STRIP=$ac_cv_prog_STRIP | |
6964 | if test -n "$STRIP"; then | |
6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6966 | $as_echo "$STRIP" >&6; } | |
6967 | else | |
6968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6969 | $as_echo "no" >&6; } | |
6970 | fi | |
6971 | ||
6972 | ||
6973 | fi | |
6974 | if test -z "$ac_cv_prog_STRIP"; then | |
6975 | ac_ct_STRIP=$STRIP | |
6976 | # Extract the first word of "strip", so it can be a program name with args. | |
6977 | set dummy strip; ac_word=$2 | |
6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6979 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6980 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
0a35513e AH |
6981 | $as_echo_n "(cached) " >&6 |
6982 | else | |
6983 | if test -n "$ac_ct_STRIP"; then | |
6984 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6985 | else | |
6986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6987 | for as_dir in $PATH | |
6988 | do | |
6989 | IFS=$as_save_IFS | |
6990 | test -z "$as_dir" && as_dir=. | |
6991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6992 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
6993 | ac_cv_prog_ac_ct_STRIP="strip" |
6994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6995 | break 2 | |
6996 | fi | |
6997 | done | |
6998 | done | |
6999 | IFS=$as_save_IFS | |
7000 | ||
7001 | fi | |
7002 | fi | |
7003 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
7004 | if test -n "$ac_ct_STRIP"; then | |
7005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
7006 | $as_echo "$ac_ct_STRIP" >&6; } | |
7007 | else | |
7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7009 | $as_echo "no" >&6; } | |
7010 | fi | |
7011 | ||
7012 | if test "x$ac_ct_STRIP" = x; then | |
7013 | STRIP=":" | |
7014 | else | |
7015 | case $cross_compiling:$ac_tool_warned in | |
7016 | yes:) | |
7017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7018 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7019 | ac_tool_warned=yes ;; | |
7020 | esac | |
7021 | STRIP=$ac_ct_STRIP | |
7022 | fi | |
7023 | else | |
7024 | STRIP="$ac_cv_prog_STRIP" | |
7025 | fi | |
7026 | ||
7027 | test -z "$STRIP" && STRIP=: | |
7028 | ||
7029 | ||
7030 | ||
7031 | ||
7032 | ||
7033 | ||
7034 | if test -n "$ac_tool_prefix"; then | |
7035 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7036 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7038 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7039 | if ${ac_cv_prog_RANLIB+:} false; then : |
0a35513e AH |
7040 | $as_echo_n "(cached) " >&6 |
7041 | else | |
7042 | if test -n "$RANLIB"; then | |
7043 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7044 | else | |
7045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7046 | for as_dir in $PATH | |
7047 | do | |
7048 | IFS=$as_save_IFS | |
7049 | test -z "$as_dir" && as_dir=. | |
7050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7051 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
7052 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
7053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7054 | break 2 | |
7055 | fi | |
7056 | done | |
7057 | done | |
7058 | IFS=$as_save_IFS | |
7059 | ||
7060 | fi | |
7061 | fi | |
7062 | RANLIB=$ac_cv_prog_RANLIB | |
7063 | if test -n "$RANLIB"; then | |
7064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7065 | $as_echo "$RANLIB" >&6; } | |
7066 | else | |
7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7068 | $as_echo "no" >&6; } | |
7069 | fi | |
7070 | ||
7071 | ||
7072 | fi | |
7073 | if test -z "$ac_cv_prog_RANLIB"; then | |
7074 | ac_ct_RANLIB=$RANLIB | |
7075 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7076 | set dummy ranlib; ac_word=$2 | |
7077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7078 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7079 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
0a35513e AH |
7080 | $as_echo_n "(cached) " >&6 |
7081 | else | |
7082 | if test -n "$ac_ct_RANLIB"; then | |
7083 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7084 | else | |
7085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7086 | for as_dir in $PATH | |
7087 | do | |
7088 | IFS=$as_save_IFS | |
7089 | test -z "$as_dir" && as_dir=. | |
7090 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7091 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
7092 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
7093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7094 | break 2 | |
7095 | fi | |
7096 | done | |
7097 | done | |
7098 | IFS=$as_save_IFS | |
7099 | ||
7100 | fi | |
7101 | fi | |
7102 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7103 | if test -n "$ac_ct_RANLIB"; then | |
7104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7105 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7106 | else | |
7107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7108 | $as_echo "no" >&6; } | |
7109 | fi | |
7110 | ||
7111 | if test "x$ac_ct_RANLIB" = x; then | |
7112 | RANLIB=":" | |
7113 | else | |
7114 | case $cross_compiling:$ac_tool_warned in | |
7115 | yes:) | |
7116 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7117 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7118 | ac_tool_warned=yes ;; | |
7119 | esac | |
7120 | RANLIB=$ac_ct_RANLIB | |
7121 | fi | |
7122 | else | |
7123 | RANLIB="$ac_cv_prog_RANLIB" | |
7124 | fi | |
7125 | ||
7126 | test -z "$RANLIB" && RANLIB=: | |
7127 | ||
7128 | ||
7129 | ||
7130 | ||
7131 | ||
7132 | ||
7133 | # Determine commands to create old-style static archives. | |
7134 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7135 | old_postinstall_cmds='chmod 644 $oldlib' | |
7136 | old_postuninstall_cmds= | |
7137 | ||
7138 | if test -n "$RANLIB"; then | |
7139 | case $host_os in | |
7140 | openbsd*) | |
7141 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7142 | ;; | |
7143 | *) | |
7144 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7145 | ;; | |
7146 | esac | |
7147 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
7148 | fi | |
7149 | ||
7150 | case $host_os in | |
7151 | darwin*) | |
7152 | lock_old_archive_extraction=yes ;; | |
7153 | *) | |
7154 | lock_old_archive_extraction=no ;; | |
7155 | esac | |
7156 | ||
7157 | ||
7158 | ||
7159 | ||
7160 | ||
7161 | ||
7162 | ||
7163 | ||
7164 | ||
7165 | ||
7166 | ||
7167 | ||
7168 | ||
7169 | ||
7170 | ||
7171 | ||
7172 | ||
7173 | ||
7174 | ||
7175 | ||
7176 | ||
7177 | ||
7178 | ||
7179 | ||
7180 | ||
7181 | ||
7182 | ||
7183 | ||
7184 | ||
7185 | ||
7186 | ||
7187 | ||
7188 | ||
7189 | ||
7190 | ||
7191 | ||
7192 | ||
7193 | ||
7194 | ||
7195 | # If no C compiler was specified, use CC. | |
7196 | LTCC=${LTCC-"$CC"} | |
7197 | ||
7198 | # If no C compiler flags were specified, use CFLAGS. | |
7199 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7200 | ||
7201 | # Allow CC to be a program name with arguments. | |
7202 | compiler=$CC | |
7203 | ||
7204 | ||
7205 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7207 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
22e05272 | 7208 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
0a35513e AH |
7209 | $as_echo_n "(cached) " >&6 |
7210 | else | |
7211 | ||
7212 | # These are sane defaults that work on at least a few old systems. | |
7213 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7214 | ||
7215 | # Character class describing NM global symbol codes. | |
7216 | symcode='[BCDEGRST]' | |
7217 | ||
7218 | # Regexp to match symbols that can be accessed directly from C. | |
7219 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7220 | ||
7221 | # Define system-specific variables. | |
7222 | case $host_os in | |
7223 | aix*) | |
7224 | symcode='[BCDT]' | |
7225 | ;; | |
7226 | cygwin* | mingw* | pw32* | cegcc*) | |
7227 | symcode='[ABCDGISTW]' | |
7228 | ;; | |
7229 | hpux*) | |
7230 | if test "$host_cpu" = ia64; then | |
7231 | symcode='[ABCDEGRST]' | |
7232 | fi | |
7233 | ;; | |
7234 | irix* | nonstopux*) | |
7235 | symcode='[BCDEGRST]' | |
7236 | ;; | |
7237 | osf*) | |
7238 | symcode='[BCDEGQRST]' | |
7239 | ;; | |
7240 | solaris*) | |
7241 | symcode='[BDRT]' | |
7242 | ;; | |
7243 | sco3.2v5*) | |
7244 | symcode='[DT]' | |
7245 | ;; | |
7246 | sysv4.2uw2*) | |
7247 | symcode='[DT]' | |
7248 | ;; | |
7249 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7250 | symcode='[ABDT]' | |
7251 | ;; | |
7252 | sysv4) | |
7253 | symcode='[DFNSTU]' | |
7254 | ;; | |
7255 | esac | |
7256 | ||
7257 | # If we're using GNU nm, then use its standard symbol codes. | |
7258 | case `$NM -V 2>&1` in | |
7259 | *GNU* | *'with BFD'*) | |
7260 | symcode='[ABCDGIRSTW]' ;; | |
7261 | esac | |
7262 | ||
7263 | # Transform an extracted symbol line into a proper C declaration. | |
7264 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7265 | # so use this general approach. | |
7266 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7267 | ||
7268 | # Transform an extracted symbol line into symbol name and symbol address | |
7269 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7270 | 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'" | |
7271 | ||
7272 | # Handle CRLF in mingw tool chain | |
7273 | opt_cr= | |
7274 | case $build_os in | |
7275 | mingw*) | |
7276 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7277 | ;; | |
7278 | esac | |
7279 | ||
7280 | # Try without a prefix underscore, then with it. | |
7281 | for ac_symprfx in "" "_"; do | |
7282 | ||
7283 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7284 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7285 | ||
7286 | # Write the raw and C identifiers. | |
7287 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7288 | # Fake it for dumpbin and say T for any non-static function | |
7289 | # and D for any global variable. | |
7290 | # Also find C++ and __fastcall symbols from MSVC++, | |
7291 | # which start with @ or ?. | |
7292 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7293 | " {last_section=section; section=\$ 3};"\ | |
7294 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7295 | " \$ 0!~/External *\|/{next};"\ | |
7296 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7297 | " {if(hide[section]) next};"\ | |
7298 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7299 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7300 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7301 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7302 | " ' prfx=^$ac_symprfx" | |
7303 | else | |
7304 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7305 | fi | |
7306 | ||
7307 | # Check to see that the pipe works correctly. | |
7308 | pipe_works=no | |
7309 | ||
7310 | rm -f conftest* | |
7311 | cat > conftest.$ac_ext <<_LT_EOF | |
7312 | #ifdef __cplusplus | |
7313 | extern "C" { | |
7314 | #endif | |
7315 | char nm_test_var; | |
7316 | void nm_test_func(void); | |
7317 | void nm_test_func(void){} | |
7318 | #ifdef __cplusplus | |
7319 | } | |
7320 | #endif | |
7321 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7322 | _LT_EOF | |
7323 | ||
7324 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7325 | (eval $ac_compile) 2>&5 | |
7326 | ac_status=$? | |
7327 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7328 | test $ac_status = 0; }; then | |
7329 | # Now try to grab the symbols. | |
7330 | nlist=conftest.nm | |
7331 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7332 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7333 | ac_status=$? | |
7334 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7335 | test $ac_status = 0; } && test -s "$nlist"; then | |
7336 | # Try sorting and uniquifying the output. | |
7337 | if sort "$nlist" | uniq > "$nlist"T; then | |
7338 | mv -f "$nlist"T "$nlist" | |
7339 | else | |
7340 | rm -f "$nlist"T | |
7341 | fi | |
7342 | ||
7343 | # Make sure that we snagged all the symbols we need. | |
7344 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7345 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7346 | cat <<_LT_EOF > conftest.$ac_ext | |
7347 | #ifdef __cplusplus | |
7348 | extern "C" { | |
7349 | #endif | |
7350 | ||
7351 | _LT_EOF | |
7352 | # Now generate the symbol file. | |
7353 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7354 | ||
7355 | cat <<_LT_EOF >> conftest.$ac_ext | |
7356 | ||
7357 | /* The mapping between symbol names and symbols. */ | |
7358 | const struct { | |
7359 | const char *name; | |
7360 | void *address; | |
7361 | } | |
7362 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7363 | { | |
7364 | { "@PROGRAM@", (void *) 0 }, | |
7365 | _LT_EOF | |
7366 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7367 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7368 | {0, (void *) 0} | |
7369 | }; | |
7370 | ||
7371 | /* This works around a problem in FreeBSD linker */ | |
7372 | #ifdef FREEBSD_WORKAROUND | |
7373 | static const void *lt_preloaded_setup() { | |
7374 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7375 | } | |
7376 | #endif | |
7377 | ||
7378 | #ifdef __cplusplus | |
7379 | } | |
7380 | #endif | |
7381 | _LT_EOF | |
7382 | # Now try linking the two files. | |
7383 | mv conftest.$ac_objext conftstm.$ac_objext | |
7384 | lt_save_LIBS="$LIBS" | |
7385 | lt_save_CFLAGS="$CFLAGS" | |
7386 | LIBS="conftstm.$ac_objext" | |
7387 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7388 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7389 | (eval $ac_link) 2>&5 | |
7390 | ac_status=$? | |
7391 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7392 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7393 | pipe_works=yes | |
7394 | fi | |
7395 | LIBS="$lt_save_LIBS" | |
7396 | CFLAGS="$lt_save_CFLAGS" | |
7397 | else | |
7398 | echo "cannot find nm_test_func in $nlist" >&5 | |
7399 | fi | |
7400 | else | |
7401 | echo "cannot find nm_test_var in $nlist" >&5 | |
7402 | fi | |
7403 | else | |
7404 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7405 | fi | |
7406 | else | |
7407 | echo "$progname: failed program was:" >&5 | |
7408 | cat conftest.$ac_ext >&5 | |
7409 | fi | |
7410 | rm -rf conftest* conftst* | |
7411 | ||
7412 | # Do not use the global_symbol_pipe unless it works. | |
7413 | if test "$pipe_works" = yes; then | |
7414 | break | |
7415 | else | |
7416 | lt_cv_sys_global_symbol_pipe= | |
7417 | fi | |
7418 | done | |
7419 | ||
7420 | fi | |
7421 | ||
7422 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7423 | lt_cv_sys_global_symbol_to_cdecl= | |
7424 | fi | |
7425 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7427 | $as_echo "failed" >&6; } | |
7428 | else | |
7429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
7430 | $as_echo "ok" >&6; } | |
7431 | fi | |
7432 | ||
7433 | ||
7434 | ||
7435 | ||
7436 | ||
7437 | ||
7438 | ||
7439 | ||
7440 | ||
7441 | ||
7442 | ||
7443 | ||
7444 | ||
7445 | ||
7446 | ||
7447 | ||
7448 | ||
7449 | ||
7450 | ||
7451 | ||
7452 | ||
7453 | ||
7454 | ||
7455 | # Check whether --enable-libtool-lock was given. | |
7456 | if test "${enable_libtool_lock+set}" = set; then : | |
7457 | enableval=$enable_libtool_lock; | |
7458 | fi | |
7459 | ||
7460 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
7461 | ||
7462 | # Some flags need to be propagated to the compiler or linker for good | |
7463 | # libtool support. | |
7464 | case $host in | |
7465 | ia64-*-hpux*) | |
7466 | # Find out which ABI we are using. | |
7467 | echo 'int i;' > conftest.$ac_ext | |
7468 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7469 | (eval $ac_compile) 2>&5 | |
7470 | ac_status=$? | |
7471 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7472 | test $ac_status = 0; }; then | |
7473 | case `/usr/bin/file conftest.$ac_objext` in | |
7474 | *ELF-32*) | |
7475 | HPUX_IA64_MODE="32" | |
7476 | ;; | |
7477 | *ELF-64*) | |
7478 | HPUX_IA64_MODE="64" | |
7479 | ;; | |
7480 | esac | |
7481 | fi | |
7482 | rm -rf conftest* | |
7483 | ;; | |
7484 | *-*-irix6*) | |
7485 | # Find out which ABI we are using. | |
7486 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7487 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7488 | (eval $ac_compile) 2>&5 | |
7489 | ac_status=$? | |
7490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7491 | test $ac_status = 0; }; then | |
7492 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7493 | case `/usr/bin/file conftest.$ac_objext` in | |
7494 | *32-bit*) | |
7495 | LD="${LD-ld} -melf32bsmip" | |
7496 | ;; | |
7497 | *N32*) | |
7498 | LD="${LD-ld} -melf32bmipn32" | |
7499 | ;; | |
7500 | *64-bit*) | |
7501 | LD="${LD-ld} -melf64bmip" | |
7502 | ;; | |
7503 | esac | |
7504 | else | |
7505 | case `/usr/bin/file conftest.$ac_objext` in | |
7506 | *32-bit*) | |
7507 | LD="${LD-ld} -32" | |
7508 | ;; | |
7509 | *N32*) | |
7510 | LD="${LD-ld} -n32" | |
7511 | ;; | |
7512 | *64-bit*) | |
7513 | LD="${LD-ld} -64" | |
7514 | ;; | |
7515 | esac | |
7516 | fi | |
7517 | fi | |
7518 | rm -rf conftest* | |
7519 | ;; | |
7520 | ||
3cbe17f7 | 7521 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
0a35513e AH |
7522 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
7523 | # Find out which ABI we are using. | |
7524 | echo 'int i;' > conftest.$ac_ext | |
7525 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7526 | (eval $ac_compile) 2>&5 | |
7527 | ac_status=$? | |
7528 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7529 | test $ac_status = 0; }; then | |
7530 | case `/usr/bin/file conftest.o` in | |
7531 | *32-bit*) | |
7532 | case $host in | |
7533 | x86_64-*kfreebsd*-gnu) | |
7534 | LD="${LD-ld} -m elf_i386_fbsd" | |
7535 | ;; | |
7536 | x86_64-*linux*) | |
e6d5f8c9 L |
7537 | case `/usr/bin/file conftest.o` in |
7538 | *x86-64*) | |
7539 | LD="${LD-ld} -m elf32_x86_64" | |
7540 | ;; | |
7541 | *) | |
7542 | LD="${LD-ld} -m elf_i386" | |
7543 | ;; | |
7544 | esac | |
0a35513e | 7545 | ;; |
3cbe17f7 AM |
7546 | powerpc64le-*linux*) |
7547 | LD="${LD-ld} -m elf32lppclinux" | |
7548 | ;; | |
7549 | powerpc64-*linux*) | |
0a35513e AH |
7550 | LD="${LD-ld} -m elf32ppclinux" |
7551 | ;; | |
7552 | s390x-*linux*) | |
7553 | LD="${LD-ld} -m elf_s390" | |
7554 | ;; | |
7555 | sparc64-*linux*) | |
7556 | LD="${LD-ld} -m elf32_sparc" | |
7557 | ;; | |
7558 | esac | |
7559 | ;; | |
7560 | *64-bit*) | |
7561 | case $host in | |
7562 | x86_64-*kfreebsd*-gnu) | |
7563 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7564 | ;; | |
7565 | x86_64-*linux*) | |
7566 | LD="${LD-ld} -m elf_x86_64" | |
7567 | ;; | |
3cbe17f7 AM |
7568 | powerpcle-*linux*) |
7569 | LD="${LD-ld} -m elf64lppc" | |
7570 | ;; | |
7571 | powerpc-*linux*) | |
0a35513e AH |
7572 | LD="${LD-ld} -m elf64ppc" |
7573 | ;; | |
7574 | s390*-*linux*|s390*-*tpf*) | |
7575 | LD="${LD-ld} -m elf64_s390" | |
7576 | ;; | |
7577 | sparc*-*linux*) | |
7578 | LD="${LD-ld} -m elf64_sparc" | |
7579 | ;; | |
7580 | esac | |
7581 | ;; | |
7582 | esac | |
7583 | fi | |
7584 | rm -rf conftest* | |
7585 | ;; | |
7586 | ||
7587 | *-*-sco3.2v5*) | |
7588 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7589 | SAVE_CFLAGS="$CFLAGS" | |
7590 | CFLAGS="$CFLAGS -belf" | |
7591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7592 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
22e05272 | 7593 | if ${lt_cv_cc_needs_belf+:} false; then : |
0a35513e AH |
7594 | $as_echo_n "(cached) " >&6 |
7595 | else | |
7596 | ac_ext=c | |
7597 | ac_cpp='$CPP $CPPFLAGS' | |
7598 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7599 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7600 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7601 | ||
7602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7603 | /* end confdefs.h. */ | |
7604 | ||
7605 | int | |
7606 | main () | |
7607 | { | |
7608 | ||
7609 | ; | |
7610 | return 0; | |
7611 | } | |
7612 | _ACEOF | |
7613 | if ac_fn_c_try_link "$LINENO"; then : | |
7614 | lt_cv_cc_needs_belf=yes | |
7615 | else | |
7616 | lt_cv_cc_needs_belf=no | |
7617 | fi | |
7618 | rm -f core conftest.err conftest.$ac_objext \ | |
7619 | conftest$ac_exeext conftest.$ac_ext | |
7620 | ac_ext=c | |
7621 | ac_cpp='$CPP $CPPFLAGS' | |
7622 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7623 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7624 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7625 | ||
7626 | fi | |
7627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7628 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7629 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7630 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7631 | CFLAGS="$SAVE_CFLAGS" | |
7632 | fi | |
7633 | ;; | |
7634 | sparc*-*solaris*) | |
7635 | # Find out which ABI we are using. | |
7636 | echo 'int i;' > conftest.$ac_ext | |
7637 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7638 | (eval $ac_compile) 2>&5 | |
7639 | ac_status=$? | |
7640 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7641 | test $ac_status = 0; }; then | |
7642 | case `/usr/bin/file conftest.o` in | |
7643 | *64-bit*) | |
7644 | case $lt_cv_prog_gnu_ld in | |
7645 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7646 | *) | |
7647 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7648 | LD="${LD-ld} -64" | |
7649 | fi | |
7650 | ;; | |
7651 | esac | |
7652 | ;; | |
7653 | esac | |
7654 | fi | |
7655 | rm -rf conftest* | |
7656 | ;; | |
7657 | esac | |
7658 | ||
7659 | need_locks="$enable_libtool_lock" | |
7660 | ||
7661 | ||
7662 | case $host_os in | |
7663 | rhapsody* | darwin*) | |
7664 | if test -n "$ac_tool_prefix"; then | |
7665 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7666 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7668 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7669 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
0a35513e AH |
7670 | $as_echo_n "(cached) " >&6 |
7671 | else | |
7672 | if test -n "$DSYMUTIL"; then | |
7673 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7674 | else | |
7675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7676 | for as_dir in $PATH | |
7677 | do | |
7678 | IFS=$as_save_IFS | |
7679 | test -z "$as_dir" && as_dir=. | |
7680 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7681 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
7682 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
7683 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7684 | break 2 | |
7685 | fi | |
7686 | done | |
7687 | done | |
7688 | IFS=$as_save_IFS | |
7689 | ||
7690 | fi | |
7691 | fi | |
7692 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7693 | if test -n "$DSYMUTIL"; then | |
7694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7695 | $as_echo "$DSYMUTIL" >&6; } | |
7696 | else | |
7697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7698 | $as_echo "no" >&6; } | |
7699 | fi | |
7700 | ||
7701 | ||
7702 | fi | |
7703 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7704 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7705 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7706 | set dummy dsymutil; ac_word=$2 | |
7707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7708 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7709 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
0a35513e AH |
7710 | $as_echo_n "(cached) " >&6 |
7711 | else | |
7712 | if test -n "$ac_ct_DSYMUTIL"; then | |
7713 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7714 | else | |
7715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7716 | for as_dir in $PATH | |
7717 | do | |
7718 | IFS=$as_save_IFS | |
7719 | test -z "$as_dir" && as_dir=. | |
7720 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7721 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
7722 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
7723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7724 | break 2 | |
7725 | fi | |
7726 | done | |
7727 | done | |
7728 | IFS=$as_save_IFS | |
7729 | ||
7730 | fi | |
7731 | fi | |
7732 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7733 | if test -n "$ac_ct_DSYMUTIL"; then | |
7734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7735 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7736 | else | |
7737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7738 | $as_echo "no" >&6; } | |
7739 | fi | |
7740 | ||
7741 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7742 | DSYMUTIL=":" | |
7743 | else | |
7744 | case $cross_compiling:$ac_tool_warned in | |
7745 | yes:) | |
7746 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7747 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7748 | ac_tool_warned=yes ;; | |
7749 | esac | |
7750 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7751 | fi | |
7752 | else | |
7753 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7754 | fi | |
7755 | ||
7756 | if test -n "$ac_tool_prefix"; then | |
7757 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7758 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7760 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7761 | if ${ac_cv_prog_NMEDIT+:} false; then : |
0a35513e AH |
7762 | $as_echo_n "(cached) " >&6 |
7763 | else | |
7764 | if test -n "$NMEDIT"; then | |
7765 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7766 | else | |
7767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7768 | for as_dir in $PATH | |
7769 | do | |
7770 | IFS=$as_save_IFS | |
7771 | test -z "$as_dir" && as_dir=. | |
7772 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7773 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
7774 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
7775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7776 | break 2 | |
7777 | fi | |
7778 | done | |
7779 | done | |
7780 | IFS=$as_save_IFS | |
7781 | ||
7782 | fi | |
7783 | fi | |
7784 | NMEDIT=$ac_cv_prog_NMEDIT | |
7785 | if test -n "$NMEDIT"; then | |
7786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7787 | $as_echo "$NMEDIT" >&6; } | |
7788 | else | |
7789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7790 | $as_echo "no" >&6; } | |
7791 | fi | |
7792 | ||
7793 | ||
7794 | fi | |
7795 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7796 | ac_ct_NMEDIT=$NMEDIT | |
7797 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7798 | set dummy nmedit; ac_word=$2 | |
7799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7800 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7801 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
0a35513e AH |
7802 | $as_echo_n "(cached) " >&6 |
7803 | else | |
7804 | if test -n "$ac_ct_NMEDIT"; then | |
7805 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7806 | else | |
7807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7808 | for as_dir in $PATH | |
7809 | do | |
7810 | IFS=$as_save_IFS | |
7811 | test -z "$as_dir" && as_dir=. | |
7812 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7813 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
7814 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
7815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7816 | break 2 | |
7817 | fi | |
7818 | done | |
7819 | done | |
7820 | IFS=$as_save_IFS | |
7821 | ||
7822 | fi | |
7823 | fi | |
7824 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7825 | if test -n "$ac_ct_NMEDIT"; then | |
7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7827 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7828 | else | |
7829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7830 | $as_echo "no" >&6; } | |
7831 | fi | |
7832 | ||
7833 | if test "x$ac_ct_NMEDIT" = x; then | |
7834 | NMEDIT=":" | |
7835 | else | |
7836 | case $cross_compiling:$ac_tool_warned in | |
7837 | yes:) | |
7838 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7839 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7840 | ac_tool_warned=yes ;; | |
7841 | esac | |
7842 | NMEDIT=$ac_ct_NMEDIT | |
7843 | fi | |
7844 | else | |
7845 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7846 | fi | |
7847 | ||
7848 | if test -n "$ac_tool_prefix"; then | |
7849 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7850 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7852 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7853 | if ${ac_cv_prog_LIPO+:} false; then : |
0a35513e AH |
7854 | $as_echo_n "(cached) " >&6 |
7855 | else | |
7856 | if test -n "$LIPO"; then | |
7857 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7858 | else | |
7859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7860 | for as_dir in $PATH | |
7861 | do | |
7862 | IFS=$as_save_IFS | |
7863 | test -z "$as_dir" && as_dir=. | |
7864 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7865 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
7866 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
7867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7868 | break 2 | |
7869 | fi | |
7870 | done | |
7871 | done | |
7872 | IFS=$as_save_IFS | |
7873 | ||
7874 | fi | |
7875 | fi | |
7876 | LIPO=$ac_cv_prog_LIPO | |
7877 | if test -n "$LIPO"; then | |
7878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7879 | $as_echo "$LIPO" >&6; } | |
7880 | else | |
7881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7882 | $as_echo "no" >&6; } | |
7883 | fi | |
7884 | ||
7885 | ||
7886 | fi | |
7887 | if test -z "$ac_cv_prog_LIPO"; then | |
7888 | ac_ct_LIPO=$LIPO | |
7889 | # Extract the first word of "lipo", so it can be a program name with args. | |
7890 | set dummy lipo; ac_word=$2 | |
7891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7892 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7893 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
0a35513e AH |
7894 | $as_echo_n "(cached) " >&6 |
7895 | else | |
7896 | if test -n "$ac_ct_LIPO"; then | |
7897 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7898 | else | |
7899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7900 | for as_dir in $PATH | |
7901 | do | |
7902 | IFS=$as_save_IFS | |
7903 | test -z "$as_dir" && as_dir=. | |
7904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7905 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
7906 | ac_cv_prog_ac_ct_LIPO="lipo" |
7907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7908 | break 2 | |
7909 | fi | |
7910 | done | |
7911 | done | |
7912 | IFS=$as_save_IFS | |
7913 | ||
7914 | fi | |
7915 | fi | |
7916 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7917 | if test -n "$ac_ct_LIPO"; then | |
7918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7919 | $as_echo "$ac_ct_LIPO" >&6; } | |
7920 | else | |
7921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7922 | $as_echo "no" >&6; } | |
7923 | fi | |
7924 | ||
7925 | if test "x$ac_ct_LIPO" = x; then | |
7926 | LIPO=":" | |
7927 | else | |
7928 | case $cross_compiling:$ac_tool_warned in | |
7929 | yes:) | |
7930 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7931 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7932 | ac_tool_warned=yes ;; | |
7933 | esac | |
7934 | LIPO=$ac_ct_LIPO | |
7935 | fi | |
7936 | else | |
7937 | LIPO="$ac_cv_prog_LIPO" | |
7938 | fi | |
7939 | ||
7940 | if test -n "$ac_tool_prefix"; then | |
7941 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7942 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7944 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7945 | if ${ac_cv_prog_OTOOL+:} false; then : |
0a35513e AH |
7946 | $as_echo_n "(cached) " >&6 |
7947 | else | |
7948 | if test -n "$OTOOL"; then | |
7949 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7950 | else | |
7951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7952 | for as_dir in $PATH | |
7953 | do | |
7954 | IFS=$as_save_IFS | |
7955 | test -z "$as_dir" && as_dir=. | |
7956 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7957 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
7958 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
7959 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7960 | break 2 | |
7961 | fi | |
7962 | done | |
7963 | done | |
7964 | IFS=$as_save_IFS | |
7965 | ||
7966 | fi | |
7967 | fi | |
7968 | OTOOL=$ac_cv_prog_OTOOL | |
7969 | if test -n "$OTOOL"; then | |
7970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7971 | $as_echo "$OTOOL" >&6; } | |
7972 | else | |
7973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7974 | $as_echo "no" >&6; } | |
7975 | fi | |
7976 | ||
7977 | ||
7978 | fi | |
7979 | if test -z "$ac_cv_prog_OTOOL"; then | |
7980 | ac_ct_OTOOL=$OTOOL | |
7981 | # Extract the first word of "otool", so it can be a program name with args. | |
7982 | set dummy otool; ac_word=$2 | |
7983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7984 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7985 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
0a35513e AH |
7986 | $as_echo_n "(cached) " >&6 |
7987 | else | |
7988 | if test -n "$ac_ct_OTOOL"; then | |
7989 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7990 | else | |
7991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7992 | for as_dir in $PATH | |
7993 | do | |
7994 | IFS=$as_save_IFS | |
7995 | test -z "$as_dir" && as_dir=. | |
7996 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7997 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
7998 | ac_cv_prog_ac_ct_OTOOL="otool" |
7999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8000 | break 2 | |
8001 | fi | |
8002 | done | |
8003 | done | |
8004 | IFS=$as_save_IFS | |
8005 | ||
8006 | fi | |
8007 | fi | |
8008 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8009 | if test -n "$ac_ct_OTOOL"; then | |
8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8011 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8012 | else | |
8013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8014 | $as_echo "no" >&6; } | |
8015 | fi | |
8016 | ||
8017 | if test "x$ac_ct_OTOOL" = x; then | |
8018 | OTOOL=":" | |
8019 | else | |
8020 | case $cross_compiling:$ac_tool_warned in | |
8021 | yes:) | |
8022 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8023 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8024 | ac_tool_warned=yes ;; | |
8025 | esac | |
8026 | OTOOL=$ac_ct_OTOOL | |
8027 | fi | |
8028 | else | |
8029 | OTOOL="$ac_cv_prog_OTOOL" | |
8030 | fi | |
8031 | ||
8032 | if test -n "$ac_tool_prefix"; then | |
8033 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8034 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8036 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8037 | if ${ac_cv_prog_OTOOL64+:} false; then : |
0a35513e AH |
8038 | $as_echo_n "(cached) " >&6 |
8039 | else | |
8040 | if test -n "$OTOOL64"; then | |
8041 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8042 | else | |
8043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8044 | for as_dir in $PATH | |
8045 | do | |
8046 | IFS=$as_save_IFS | |
8047 | test -z "$as_dir" && as_dir=. | |
8048 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8049 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
8050 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
8051 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8052 | break 2 | |
8053 | fi | |
8054 | done | |
8055 | done | |
8056 | IFS=$as_save_IFS | |
8057 | ||
8058 | fi | |
8059 | fi | |
8060 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8061 | if test -n "$OTOOL64"; then | |
8062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8063 | $as_echo "$OTOOL64" >&6; } | |
8064 | else | |
8065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8066 | $as_echo "no" >&6; } | |
8067 | fi | |
8068 | ||
8069 | ||
8070 | fi | |
8071 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8072 | ac_ct_OTOOL64=$OTOOL64 | |
8073 | # Extract the first word of "otool64", so it can be a program name with args. | |
8074 | set dummy otool64; ac_word=$2 | |
8075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8076 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8077 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
0a35513e AH |
8078 | $as_echo_n "(cached) " >&6 |
8079 | else | |
8080 | if test -n "$ac_ct_OTOOL64"; then | |
8081 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8082 | else | |
8083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8084 | for as_dir in $PATH | |
8085 | do | |
8086 | IFS=$as_save_IFS | |
8087 | test -z "$as_dir" && as_dir=. | |
8088 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8089 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0a35513e AH |
8090 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
8091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8092 | break 2 | |
8093 | fi | |
8094 | done | |
8095 | done | |
8096 | IFS=$as_save_IFS | |
8097 | ||
8098 | fi | |
8099 | fi | |
8100 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8101 | if test -n "$ac_ct_OTOOL64"; then | |
8102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8103 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8104 | else | |
8105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8106 | $as_echo "no" >&6; } | |
8107 | fi | |
8108 | ||
8109 | if test "x$ac_ct_OTOOL64" = x; then | |
8110 | OTOOL64=":" | |
8111 | else | |
8112 | case $cross_compiling:$ac_tool_warned in | |
8113 | yes:) | |
8114 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8115 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8116 | ac_tool_warned=yes ;; | |
8117 | esac | |
8118 | OTOOL64=$ac_ct_OTOOL64 | |
8119 | fi | |
8120 | else | |
8121 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8122 | fi | |
8123 | ||
8124 | ||
8125 | ||
8126 | ||
8127 | ||
8128 | ||
8129 | ||
8130 | ||
8131 | ||
8132 | ||
8133 | ||
8134 | ||
8135 | ||
8136 | ||
8137 | ||
8138 | ||
8139 | ||
8140 | ||
8141 | ||
8142 | ||
8143 | ||
8144 | ||
8145 | ||
8146 | ||
8147 | ||
8148 | ||
8149 | ||
8150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8151 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
22e05272 | 8152 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
0a35513e AH |
8153 | $as_echo_n "(cached) " >&6 |
8154 | else | |
8155 | lt_cv_apple_cc_single_mod=no | |
8156 | if test -z "${LT_MULTI_MODULE}"; then | |
8157 | # By default we will add the -single_module flag. You can override | |
8158 | # by either setting the environment variable LT_MULTI_MODULE | |
8159 | # non-empty at configure time, or by adding -multi_module to the | |
8160 | # link flags. | |
8161 | rm -rf libconftest.dylib* | |
8162 | echo "int foo(void){return 1;}" > conftest.c | |
8163 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8164 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8165 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8166 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8167 | _lt_result=$? | |
8168 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8169 | lt_cv_apple_cc_single_mod=yes | |
8170 | else | |
8171 | cat conftest.err >&5 | |
8172 | fi | |
8173 | rm -rf libconftest.dylib* | |
8174 | rm -f conftest.* | |
8175 | fi | |
8176 | fi | |
8177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8178 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8180 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
22e05272 | 8181 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
0a35513e AH |
8182 | $as_echo_n "(cached) " >&6 |
8183 | else | |
8184 | lt_cv_ld_exported_symbols_list=no | |
8185 | save_LDFLAGS=$LDFLAGS | |
8186 | echo "_main" > conftest.sym | |
8187 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8189 | /* end confdefs.h. */ | |
8190 | ||
8191 | int | |
8192 | main () | |
8193 | { | |
8194 | ||
8195 | ; | |
8196 | return 0; | |
8197 | } | |
8198 | _ACEOF | |
8199 | if ac_fn_c_try_link "$LINENO"; then : | |
8200 | lt_cv_ld_exported_symbols_list=yes | |
8201 | else | |
8202 | lt_cv_ld_exported_symbols_list=no | |
8203 | fi | |
8204 | rm -f core conftest.err conftest.$ac_objext \ | |
8205 | conftest$ac_exeext conftest.$ac_ext | |
8206 | LDFLAGS="$save_LDFLAGS" | |
8207 | ||
8208 | fi | |
8209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
8210 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8212 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
22e05272 | 8213 | if ${lt_cv_ld_force_load+:} false; then : |
0a35513e AH |
8214 | $as_echo_n "(cached) " >&6 |
8215 | else | |
8216 | lt_cv_ld_force_load=no | |
8217 | cat > conftest.c << _LT_EOF | |
8218 | int forced_loaded() { return 2;} | |
8219 | _LT_EOF | |
8220 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8221 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8222 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8223 | $AR cru libconftest.a conftest.o 2>&5 | |
8224 | cat > conftest.c << _LT_EOF | |
8225 | int main() { return 0;} | |
8226 | _LT_EOF | |
8227 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8228 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8229 | _lt_result=$? | |
8230 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8231 | lt_cv_ld_force_load=yes | |
8232 | else | |
8233 | cat conftest.err >&5 | |
8234 | fi | |
8235 | rm -f conftest.err libconftest.a conftest conftest.c | |
8236 | rm -rf conftest.dSYM | |
8237 | ||
8238 | fi | |
8239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8240 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8241 | case $host_os in | |
8242 | rhapsody* | darwin1.[012]) | |
8243 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8244 | darwin1.*) | |
8245 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8246 | darwin*) # darwin 5.x on | |
8247 | # if running on 10.5 or later, the deployment target defaults | |
8248 | # to the OS version, if on x86, and 10.4, the deployment | |
8249 | # target defaults to 10.4. Don't you love it? | |
8250 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8251 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8252 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
ebf6d33b | 8253 | 10.[012][,.]*) |
0a35513e AH |
8254 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
8255 | 10.*) | |
8256 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8257 | esac | |
8258 | ;; | |
8259 | esac | |
8260 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8261 | _lt_dar_single_mod='$single_module' | |
8262 | fi | |
8263 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8264 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8265 | else | |
8266 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8267 | fi | |
8268 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8269 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8270 | else | |
8271 | _lt_dsymutil= | |
8272 | fi | |
8273 | ;; | |
8274 | esac | |
8275 | ||
8276 | ac_ext=c | |
8277 | ac_cpp='$CPP $CPPFLAGS' | |
8278 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8279 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8280 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
8282 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
8283 | # On Suns, sometimes $CPP names a directory. | |
8284 | if test -n "$CPP" && test -d "$CPP"; then | |
8285 | CPP= | |
8286 | fi | |
8287 | if test -z "$CPP"; then | |
22e05272 | 8288 | if ${ac_cv_prog_CPP+:} false; then : |
0a35513e AH |
8289 | $as_echo_n "(cached) " >&6 |
8290 | else | |
8291 | # Double quotes because CPP needs to be expanded | |
8292 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
8293 | do | |
8294 | ac_preproc_ok=false | |
8295 | for ac_c_preproc_warn_flag in '' yes | |
8296 | do | |
8297 | # Use a header file that comes with gcc, so configuring glibc | |
8298 | # with a fresh cross-compiler works. | |
8299 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8300 | # <limits.h> exists even on freestanding compilers. | |
8301 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8302 | # not just through cpp. "Syntax error" is here to catch this case. | |
8303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8304 | /* end confdefs.h. */ | |
8305 | #ifdef __STDC__ | |
8306 | # include <limits.h> | |
8307 | #else | |
8308 | # include <assert.h> | |
8309 | #endif | |
8310 | Syntax error | |
8311 | _ACEOF | |
8312 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8313 | ||
8314 | else | |
8315 | # Broken: fails on valid input. | |
8316 | continue | |
8317 | fi | |
22e05272 | 8318 | rm -f conftest.err conftest.i conftest.$ac_ext |
0a35513e AH |
8319 | |
8320 | # OK, works on sane cases. Now check whether nonexistent headers | |
8321 | # can be detected and how. | |
8322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8323 | /* end confdefs.h. */ | |
8324 | #include <ac_nonexistent.h> | |
8325 | _ACEOF | |
8326 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8327 | # Broken: success on invalid input. | |
8328 | continue | |
8329 | else | |
8330 | # Passes both tests. | |
8331 | ac_preproc_ok=: | |
8332 | break | |
8333 | fi | |
22e05272 | 8334 | rm -f conftest.err conftest.i conftest.$ac_ext |
0a35513e AH |
8335 | |
8336 | done | |
8337 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 8338 | rm -f conftest.i conftest.err conftest.$ac_ext |
0a35513e AH |
8339 | if $ac_preproc_ok; then : |
8340 | break | |
8341 | fi | |
8342 | ||
8343 | done | |
8344 | ac_cv_prog_CPP=$CPP | |
8345 | ||
8346 | fi | |
8347 | CPP=$ac_cv_prog_CPP | |
8348 | else | |
8349 | ac_cv_prog_CPP=$CPP | |
8350 | fi | |
8351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
8352 | $as_echo "$CPP" >&6; } | |
8353 | ac_preproc_ok=false | |
8354 | for ac_c_preproc_warn_flag in '' yes | |
8355 | do | |
8356 | # Use a header file that comes with gcc, so configuring glibc | |
8357 | # with a fresh cross-compiler works. | |
8358 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8359 | # <limits.h> exists even on freestanding compilers. | |
8360 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8361 | # not just through cpp. "Syntax error" is here to catch this case. | |
8362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8363 | /* end confdefs.h. */ | |
8364 | #ifdef __STDC__ | |
8365 | # include <limits.h> | |
8366 | #else | |
8367 | # include <assert.h> | |
8368 | #endif | |
8369 | Syntax error | |
8370 | _ACEOF | |
8371 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8372 | ||
8373 | else | |
8374 | # Broken: fails on valid input. | |
8375 | continue | |
8376 | fi | |
22e05272 | 8377 | rm -f conftest.err conftest.i conftest.$ac_ext |
0a35513e AH |
8378 | |
8379 | # OK, works on sane cases. Now check whether nonexistent headers | |
8380 | # can be detected and how. | |
8381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8382 | /* end confdefs.h. */ | |
8383 | #include <ac_nonexistent.h> | |
8384 | _ACEOF | |
8385 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8386 | # Broken: success on invalid input. | |
8387 | continue | |
8388 | else | |
8389 | # Passes both tests. | |
8390 | ac_preproc_ok=: | |
8391 | break | |
8392 | fi | |
22e05272 | 8393 | rm -f conftest.err conftest.i conftest.$ac_ext |
0a35513e AH |
8394 | |
8395 | done | |
8396 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 8397 | rm -f conftest.i conftest.err conftest.$ac_ext |
0a35513e AH |
8398 | if $ac_preproc_ok; then : |
8399 | ||
8400 | else | |
8401 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8402 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
8403 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
8404 | See \`config.log' for more details" "$LINENO" 5; } | |
0a35513e AH |
8405 | fi |
8406 | ||
8407 | ac_ext=c | |
8408 | ac_cpp='$CPP $CPPFLAGS' | |
8409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8412 | ||
8413 | ||
8414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
8415 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 8416 | if ${ac_cv_header_stdc+:} false; then : |
0a35513e AH |
8417 | $as_echo_n "(cached) " >&6 |
8418 | else | |
8419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8420 | /* end confdefs.h. */ | |
8421 | #include <stdlib.h> | |
8422 | #include <stdarg.h> | |
8423 | #include <string.h> | |
8424 | #include <float.h> | |
8425 | ||
8426 | int | |
8427 | main () | |
8428 | { | |
8429 | ||
8430 | ; | |
8431 | return 0; | |
8432 | } | |
8433 | _ACEOF | |
8434 | if ac_fn_c_try_compile "$LINENO"; then : | |
8435 | ac_cv_header_stdc=yes | |
8436 | else | |
8437 | ac_cv_header_stdc=no | |
8438 | fi | |
8439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8440 | ||
8441 | if test $ac_cv_header_stdc = yes; then | |
8442 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8444 | /* end confdefs.h. */ | |
8445 | #include <string.h> | |
8446 | ||
8447 | _ACEOF | |
8448 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8449 | $EGREP "memchr" >/dev/null 2>&1; then : | |
8450 | ||
8451 | else | |
8452 | ac_cv_header_stdc=no | |
8453 | fi | |
8454 | rm -f conftest* | |
8455 | ||
8456 | fi | |
8457 | ||
8458 | if test $ac_cv_header_stdc = yes; then | |
8459 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8461 | /* end confdefs.h. */ | |
8462 | #include <stdlib.h> | |
8463 | ||
8464 | _ACEOF | |
8465 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8466 | $EGREP "free" >/dev/null 2>&1; then : | |
8467 | ||
8468 | else | |
8469 | ac_cv_header_stdc=no | |
8470 | fi | |
8471 | rm -f conftest* | |
8472 | ||
8473 | fi | |
8474 | ||
8475 | if test $ac_cv_header_stdc = yes; then | |
8476 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8477 | if test "$cross_compiling" = yes; then : | |
8478 | : | |
8479 | else | |
8480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8481 | /* end confdefs.h. */ | |
8482 | #include <ctype.h> | |
8483 | #include <stdlib.h> | |
8484 | #if ((' ' & 0x0FF) == 0x020) | |
8485 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8486 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8487 | #else | |
8488 | # define ISLOWER(c) \ | |
8489 | (('a' <= (c) && (c) <= 'i') \ | |
8490 | || ('j' <= (c) && (c) <= 'r') \ | |
8491 | || ('s' <= (c) && (c) <= 'z')) | |
8492 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8493 | #endif | |
8494 | ||
8495 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8496 | int | |
8497 | main () | |
8498 | { | |
8499 | int i; | |
8500 | for (i = 0; i < 256; i++) | |
8501 | if (XOR (islower (i), ISLOWER (i)) | |
8502 | || toupper (i) != TOUPPER (i)) | |
8503 | return 2; | |
8504 | return 0; | |
8505 | } | |
8506 | _ACEOF | |
8507 | if ac_fn_c_try_run "$LINENO"; then : | |
8508 | ||
8509 | else | |
8510 | ac_cv_header_stdc=no | |
8511 | fi | |
8512 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8513 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8514 | fi | |
8515 | ||
8516 | fi | |
8517 | fi | |
8518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
8519 | $as_echo "$ac_cv_header_stdc" >&6; } | |
8520 | if test $ac_cv_header_stdc = yes; then | |
8521 | ||
8522 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
8523 | ||
8524 | fi | |
8525 | ||
8526 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
8527 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
8528 | inttypes.h stdint.h unistd.h | |
8529 | do : | |
8530 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8531 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
8532 | " | |
22e05272 | 8533 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
0a35513e AH |
8534 | cat >>confdefs.h <<_ACEOF |
8535 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8536 | _ACEOF | |
8537 | ||
8538 | fi | |
8539 | ||
8540 | done | |
8541 | ||
8542 | ||
8543 | for ac_header in dlfcn.h | |
8544 | do : | |
8545 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8546 | " | |
22e05272 | 8547 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
0a35513e AH |
8548 | cat >>confdefs.h <<_ACEOF |
8549 | #define HAVE_DLFCN_H 1 | |
8550 | _ACEOF | |
8551 | ||
8552 | fi | |
8553 | ||
8554 | done | |
8555 | ||
8556 | ||
8557 | ||
8558 | ||
8559 | ||
8560 | ||
8561 | # Set options | |
8562 | ||
8563 | ||
8564 | ||
8565 | enable_dlopen=no | |
8566 | ||
8567 | ||
8568 | enable_win32_dll=no | |
8569 | ||
8570 | ||
8571 | # Check whether --enable-shared was given. | |
8572 | if test "${enable_shared+set}" = set; then : | |
8573 | enableval=$enable_shared; p=${PACKAGE-default} | |
8574 | case $enableval in | |
8575 | yes) enable_shared=yes ;; | |
8576 | no) enable_shared=no ;; | |
8577 | *) | |
8578 | enable_shared=no | |
8579 | # Look at the argument we got. We use all the common list separators. | |
8580 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8581 | for pkg in $enableval; do | |
8582 | IFS="$lt_save_ifs" | |
8583 | if test "X$pkg" = "X$p"; then | |
8584 | enable_shared=yes | |
8585 | fi | |
8586 | done | |
8587 | IFS="$lt_save_ifs" | |
8588 | ;; | |
8589 | esac | |
8590 | else | |
8591 | enable_shared=yes | |
8592 | fi | |
8593 | ||
8594 | ||
8595 | ||
8596 | ||
8597 | ||
8598 | ||
8599 | ||
8600 | ||
8601 | ||
8602 | # Check whether --enable-static was given. | |
8603 | if test "${enable_static+set}" = set; then : | |
8604 | enableval=$enable_static; p=${PACKAGE-default} | |
8605 | case $enableval in | |
8606 | yes) enable_static=yes ;; | |
8607 | no) enable_static=no ;; | |
8608 | *) | |
8609 | enable_static=no | |
8610 | # Look at the argument we got. We use all the common list separators. | |
8611 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8612 | for pkg in $enableval; do | |
8613 | IFS="$lt_save_ifs" | |
8614 | if test "X$pkg" = "X$p"; then | |
8615 | enable_static=yes | |
8616 | fi | |
8617 | done | |
8618 | IFS="$lt_save_ifs" | |
8619 | ;; | |
8620 | esac | |
8621 | else | |
8622 | enable_static=yes | |
8623 | fi | |
8624 | ||
8625 | ||
8626 | ||
8627 | ||
8628 | ||
8629 | ||
8630 | ||
8631 | ||
8632 | ||
8633 | ||
8634 | # Check whether --with-pic was given. | |
8635 | if test "${with_pic+set}" = set; then : | |
8636 | withval=$with_pic; pic_mode="$withval" | |
8637 | else | |
8638 | pic_mode=default | |
8639 | fi | |
8640 | ||
8641 | ||
8642 | test -z "$pic_mode" && pic_mode=default | |
8643 | ||
8644 | ||
8645 | ||
8646 | ||
8647 | ||
8648 | ||
8649 | ||
8650 | # Check whether --enable-fast-install was given. | |
8651 | if test "${enable_fast_install+set}" = set; then : | |
8652 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8653 | case $enableval in | |
8654 | yes) enable_fast_install=yes ;; | |
8655 | no) enable_fast_install=no ;; | |
8656 | *) | |
8657 | enable_fast_install=no | |
8658 | # Look at the argument we got. We use all the common list separators. | |
8659 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8660 | for pkg in $enableval; do | |
8661 | IFS="$lt_save_ifs" | |
8662 | if test "X$pkg" = "X$p"; then | |
8663 | enable_fast_install=yes | |
8664 | fi | |
8665 | done | |
8666 | IFS="$lt_save_ifs" | |
8667 | ;; | |
8668 | esac | |
8669 | else | |
8670 | enable_fast_install=yes | |
8671 | fi | |
8672 | ||
8673 | ||
8674 | ||
8675 | ||
8676 | ||
8677 | ||
8678 | ||
8679 | ||
8680 | ||
8681 | ||
8682 | ||
8683 | # This can be used to rebuild libtool when needed | |
8684 | LIBTOOL_DEPS="$ltmain" | |
8685 | ||
8686 | # Always use our own libtool. | |
8687 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8688 | ||
8689 | ||
8690 | ||
8691 | ||
8692 | ||
8693 | ||
8694 | ||
8695 | ||
8696 | ||
8697 | ||
8698 | ||
8699 | ||
8700 | ||
8701 | ||
8702 | ||
8703 | ||
8704 | ||
8705 | ||
8706 | ||
8707 | ||
8708 | ||
8709 | ||
8710 | ||
8711 | ||
8712 | ||
8713 | ||
8714 | test -z "$LN_S" && LN_S="ln -s" | |
8715 | ||
8716 | ||
8717 | ||
8718 | ||
8719 | ||
8720 | ||
8721 | ||
8722 | ||
8723 | ||
8724 | ||
8725 | ||
8726 | ||
8727 | ||
8728 | ||
8729 | if test -n "${ZSH_VERSION+set}" ; then | |
8730 | setopt NO_GLOB_SUBST | |
8731 | fi | |
8732 | ||
8733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8734 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 8735 | if ${lt_cv_objdir+:} false; then : |
0a35513e AH |
8736 | $as_echo_n "(cached) " >&6 |
8737 | else | |
8738 | rm -f .libs 2>/dev/null | |
8739 | mkdir .libs 2>/dev/null | |
8740 | if test -d .libs; then | |
8741 | lt_cv_objdir=.libs | |
8742 | else | |
8743 | # MS-DOS does not allow filenames that begin with a dot. | |
8744 | lt_cv_objdir=_libs | |
8745 | fi | |
8746 | rmdir .libs 2>/dev/null | |
8747 | fi | |
8748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8749 | $as_echo "$lt_cv_objdir" >&6; } | |
8750 | objdir=$lt_cv_objdir | |
8751 | ||
8752 | ||
8753 | ||
8754 | ||
8755 | ||
8756 | cat >>confdefs.h <<_ACEOF | |
8757 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8758 | _ACEOF | |
8759 | ||
8760 | ||
8761 | ||
8762 | ||
8763 | case $host_os in | |
8764 | aix3*) | |
8765 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8766 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8767 | # vanish in a puff of smoke. | |
8768 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8769 | COLLECT_NAMES= | |
8770 | export COLLECT_NAMES | |
8771 | fi | |
8772 | ;; | |
8773 | esac | |
8774 | ||
8775 | # Global variables: | |
8776 | ofile=libtool | |
8777 | can_build_shared=yes | |
8778 | ||
8779 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
8780 | # which needs '.lib'). | |
8781 | libext=a | |
8782 | ||
8783 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8784 | ||
8785 | old_CC="$CC" | |
8786 | old_CFLAGS="$CFLAGS" | |
8787 | ||
8788 | # Set sane defaults for various variables | |
8789 | test -z "$CC" && CC=cc | |
8790 | test -z "$LTCC" && LTCC=$CC | |
8791 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8792 | test -z "$LD" && LD=ld | |
8793 | test -z "$ac_objext" && ac_objext=o | |
8794 | ||
8795 | for cc_temp in $compiler""; do | |
8796 | case $cc_temp in | |
8797 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8798 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8799 | \-*) ;; | |
8800 | *) break;; | |
8801 | esac | |
8802 | done | |
8803 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
8804 | ||
8805 | ||
8806 | # Only perform the check for file, if the check method requires it | |
8807 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8808 | case $deplibs_check_method in | |
8809 | file_magic*) | |
8810 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8812 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
22e05272 | 8813 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
0a35513e AH |
8814 | $as_echo_n "(cached) " >&6 |
8815 | else | |
8816 | case $MAGIC_CMD in | |
8817 | [\\/*] | ?:[\\/]*) | |
8818 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8819 | ;; | |
8820 | *) | |
8821 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8822 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8823 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8824 | for ac_dir in $ac_dummy; do | |
8825 | IFS="$lt_save_ifs" | |
8826 | test -z "$ac_dir" && ac_dir=. | |
8827 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8828 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8829 | if test -n "$file_magic_test_file"; then | |
8830 | case $deplibs_check_method in | |
8831 | "file_magic "*) | |
8832 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8833 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8834 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8835 | $EGREP "$file_magic_regex" > /dev/null; then | |
8836 | : | |
8837 | else | |
8838 | cat <<_LT_EOF 1>&2 | |
8839 | ||
8840 | *** Warning: the command libtool uses to detect shared libraries, | |
8841 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8842 | *** The result is that libtool may fail to recognize shared libraries | |
8843 | *** as such. This will affect the creation of libtool libraries that | |
8844 | *** depend on shared libraries, but programs linked with such libtool | |
8845 | *** libraries will work regardless of this problem. Nevertheless, you | |
8846 | *** may want to report the problem to your system manager and/or to | |
8847 | *** bug-libtool@gnu.org | |
8848 | ||
8849 | _LT_EOF | |
8850 | fi ;; | |
8851 | esac | |
8852 | fi | |
8853 | break | |
8854 | fi | |
8855 | done | |
8856 | IFS="$lt_save_ifs" | |
8857 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8858 | ;; | |
8859 | esac | |
8860 | fi | |
8861 | ||
8862 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8863 | if test -n "$MAGIC_CMD"; then | |
8864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8865 | $as_echo "$MAGIC_CMD" >&6; } | |
8866 | else | |
8867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8868 | $as_echo "no" >&6; } | |
8869 | fi | |
8870 | ||
8871 | ||
8872 | ||
8873 | ||
8874 | ||
8875 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8876 | if test -n "$ac_tool_prefix"; then | |
8877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8878 | $as_echo_n "checking for file... " >&6; } | |
22e05272 | 8879 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
0a35513e AH |
8880 | $as_echo_n "(cached) " >&6 |
8881 | else | |
8882 | case $MAGIC_CMD in | |
8883 | [\\/*] | ?:[\\/]*) | |
8884 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8885 | ;; | |
8886 | *) | |
8887 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8888 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8889 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8890 | for ac_dir in $ac_dummy; do | |
8891 | IFS="$lt_save_ifs" | |
8892 | test -z "$ac_dir" && ac_dir=. | |
8893 | if test -f $ac_dir/file; then | |
8894 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8895 | if test -n "$file_magic_test_file"; then | |
8896 | case $deplibs_check_method in | |
8897 | "file_magic "*) | |
8898 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8899 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8900 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8901 | $EGREP "$file_magic_regex" > /dev/null; then | |
8902 | : | |
8903 | else | |
8904 | cat <<_LT_EOF 1>&2 | |
8905 | ||
8906 | *** Warning: the command libtool uses to detect shared libraries, | |
8907 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8908 | *** The result is that libtool may fail to recognize shared libraries | |
8909 | *** as such. This will affect the creation of libtool libraries that | |
8910 | *** depend on shared libraries, but programs linked with such libtool | |
8911 | *** libraries will work regardless of this problem. Nevertheless, you | |
8912 | *** may want to report the problem to your system manager and/or to | |
8913 | *** bug-libtool@gnu.org | |
8914 | ||
8915 | _LT_EOF | |
8916 | fi ;; | |
8917 | esac | |
8918 | fi | |
8919 | break | |
8920 | fi | |
8921 | done | |
8922 | IFS="$lt_save_ifs" | |
8923 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8924 | ;; | |
8925 | esac | |
8926 | fi | |
8927 | ||
8928 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8929 | if test -n "$MAGIC_CMD"; then | |
8930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8931 | $as_echo "$MAGIC_CMD" >&6; } | |
8932 | else | |
8933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8934 | $as_echo "no" >&6; } | |
8935 | fi | |
8936 | ||
8937 | ||
8938 | else | |
8939 | MAGIC_CMD=: | |
8940 | fi | |
8941 | fi | |
8942 | ||
8943 | fi | |
8944 | ;; | |
8945 | esac | |
8946 | ||
8947 | # Use C for the default configuration in the libtool script | |
8948 | ||
8949 | lt_save_CC="$CC" | |
8950 | ac_ext=c | |
8951 | ac_cpp='$CPP $CPPFLAGS' | |
8952 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8953 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8954 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8955 | ||
8956 | ||
8957 | # Source file extension for C test sources. | |
8958 | ac_ext=c | |
8959 | ||
8960 | # Object file extension for compiled C test sources. | |
8961 | objext=o | |
8962 | objext=$objext | |
8963 | ||
8964 | # Code to be used in simple compile tests | |
8965 | lt_simple_compile_test_code="int some_variable = 0;" | |
8966 | ||
8967 | # Code to be used in simple link tests | |
8968 | lt_simple_link_test_code='int main(){return(0);}' | |
8969 | ||
8970 | ||
8971 | ||
8972 | ||
8973 | ||
8974 | ||
8975 | ||
8976 | # If no C compiler was specified, use CC. | |
8977 | LTCC=${LTCC-"$CC"} | |
8978 | ||
8979 | # If no C compiler flags were specified, use CFLAGS. | |
8980 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8981 | ||
8982 | # Allow CC to be a program name with arguments. | |
8983 | compiler=$CC | |
8984 | ||
8985 | # Save the default compiler, since it gets overwritten when the other | |
8986 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8987 | compiler_DEFAULT=$CC | |
8988 | ||
8989 | # save warnings/boilerplate of simple test code | |
8990 | ac_outfile=conftest.$ac_objext | |
8991 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8992 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8993 | _lt_compiler_boilerplate=`cat conftest.err` | |
8994 | $RM conftest* | |
8995 | ||
8996 | ac_outfile=conftest.$ac_objext | |
8997 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8998 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8999 | _lt_linker_boilerplate=`cat conftest.err` | |
9000 | $RM -r conftest* | |
9001 | ||
9002 | ||
9003 | ## CAVEAT EMPTOR: | |
9004 | ## There is no encapsulation within the following macros, do not change | |
9005 | ## the running order or otherwise move them around unless you know exactly | |
9006 | ## what you are doing... | |
9007 | if test -n "$compiler"; then | |
9008 | ||
9009 | lt_prog_compiler_no_builtin_flag= | |
9010 | ||
9011 | if test "$GCC" = yes; then | |
9012 | case $cc_basename in | |
9013 | nvcc*) | |
9014 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9015 | *) | |
9016 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9017 | esac | |
9018 | ||
9019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
9020 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
22e05272 | 9021 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
0a35513e AH |
9022 | $as_echo_n "(cached) " >&6 |
9023 | else | |
9024 | lt_cv_prog_compiler_rtti_exceptions=no | |
9025 | ac_outfile=conftest.$ac_objext | |
9026 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9027 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9028 | # Insert the option either (1) after the last *FLAGS variable, or | |
9029 | # (2) before a word containing "conftest.", or (3) at the end. | |
9030 | # Note that $ac_compile itself does not contain backslashes and begins | |
9031 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9032 | # The option is referenced via a variable to avoid confusing sed. | |
9033 | lt_compile=`echo "$ac_compile" | $SED \ | |
9034 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9035 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9036 | -e 's:$: $lt_compiler_flag:'` | |
9037 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9038 | (eval "$lt_compile" 2>conftest.err) | |
9039 | ac_status=$? | |
9040 | cat conftest.err >&5 | |
9041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9042 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9043 | # The compiler can only warn and ignore the option if not recognized | |
9044 | # So say no if there are warnings other than the usual output. | |
9045 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9046 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9047 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9048 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9049 | fi | |
9050 | fi | |
9051 | $RM conftest* | |
9052 | ||
9053 | fi | |
9054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9055 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9056 | ||
9057 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9058 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9059 | else | |
9060 | : | |
9061 | fi | |
9062 | ||
9063 | fi | |
9064 | ||
9065 | ||
9066 | ||
9067 | ||
9068 | ||
9069 | ||
9070 | lt_prog_compiler_wl= | |
9071 | lt_prog_compiler_pic= | |
9072 | lt_prog_compiler_static= | |
9073 | ||
9074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
9075 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9076 | ||
9077 | if test "$GCC" = yes; then | |
9078 | lt_prog_compiler_wl='-Wl,' | |
9079 | lt_prog_compiler_static='-static' | |
9080 | ||
9081 | case $host_os in | |
9082 | aix*) | |
9083 | # All AIX code is PIC. | |
9084 | if test "$host_cpu" = ia64; then | |
9085 | # AIX 5 now supports IA64 processor | |
9086 | lt_prog_compiler_static='-Bstatic' | |
9087 | fi | |
690c45b8 | 9088 | lt_prog_compiler_pic='-fPIC' |
0a35513e AH |
9089 | ;; |
9090 | ||
9091 | amigaos*) | |
9092 | case $host_cpu in | |
9093 | powerpc) | |
9094 | # see comment about AmigaOS4 .so support | |
9095 | lt_prog_compiler_pic='-fPIC' | |
9096 | ;; | |
9097 | m68k) | |
9098 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9099 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9100 | # like `-m68040'. | |
9101 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9102 | ;; | |
9103 | esac | |
9104 | ;; | |
9105 | ||
9106 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9107 | # PIC is the default for these OSes. | |
9108 | ;; | |
9109 | ||
9110 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9111 | # This hack is so that the source file can tell whether it is being | |
9112 | # built for inclusion in a dll (and should export symbols for example). | |
9113 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9114 | # (--disable-auto-import) libraries | |
9115 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9116 | ;; | |
9117 | ||
9118 | darwin* | rhapsody*) | |
9119 | # PIC is the default on this platform | |
9120 | # Common symbols not allowed in MH_DYLIB files | |
9121 | lt_prog_compiler_pic='-fno-common' | |
9122 | ;; | |
9123 | ||
9124 | haiku*) | |
9125 | # PIC is the default for Haiku. | |
9126 | # The "-static" flag exists, but is broken. | |
9127 | lt_prog_compiler_static= | |
9128 | ;; | |
9129 | ||
9130 | hpux*) | |
9131 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9132 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9133 | # sets the default TLS model and affects inlining. | |
9134 | case $host_cpu in | |
9135 | hppa*64*) | |
9136 | # +Z the default | |
9137 | ;; | |
9138 | *) | |
9139 | lt_prog_compiler_pic='-fPIC' | |
9140 | ;; | |
9141 | esac | |
9142 | ;; | |
9143 | ||
9144 | interix[3-9]*) | |
9145 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9146 | # Instead, we relocate shared libraries at runtime. | |
9147 | ;; | |
9148 | ||
9149 | msdosdjgpp*) | |
9150 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9151 | # on systems that don't support them. | |
9152 | lt_prog_compiler_can_build_shared=no | |
9153 | enable_shared=no | |
9154 | ;; | |
9155 | ||
9156 | *nto* | *qnx*) | |
9157 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9158 | # it will coredump. | |
9159 | lt_prog_compiler_pic='-fPIC -shared' | |
9160 | ;; | |
9161 | ||
9162 | sysv4*MP*) | |
9163 | if test -d /usr/nec; then | |
9164 | lt_prog_compiler_pic=-Kconform_pic | |
9165 | fi | |
9166 | ;; | |
9167 | ||
9168 | *) | |
9169 | lt_prog_compiler_pic='-fPIC' | |
9170 | ;; | |
9171 | esac | |
9172 | ||
9173 | case $cc_basename in | |
9174 | nvcc*) # Cuda Compiler Driver 2.2 | |
9175 | lt_prog_compiler_wl='-Xlinker ' | |
9176 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9177 | ;; | |
9178 | esac | |
9179 | else | |
9180 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9181 | case $host_os in | |
9182 | aix*) | |
9183 | lt_prog_compiler_wl='-Wl,' | |
9184 | if test "$host_cpu" = ia64; then | |
9185 | # AIX 5 now supports IA64 processor | |
9186 | lt_prog_compiler_static='-Bstatic' | |
9187 | else | |
9188 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9189 | fi | |
9190 | ;; | |
9191 | ||
9192 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9193 | # This hack is so that the source file can tell whether it is being | |
9194 | # built for inclusion in a dll (and should export symbols for example). | |
9195 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9196 | ;; | |
9197 | ||
9198 | hpux9* | hpux10* | hpux11*) | |
9199 | lt_prog_compiler_wl='-Wl,' | |
9200 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9201 | # not for PA HP-UX. | |
9202 | case $host_cpu in | |
9203 | hppa*64*|ia64*) | |
9204 | # +Z the default | |
9205 | ;; | |
9206 | *) | |
9207 | lt_prog_compiler_pic='+Z' | |
9208 | ;; | |
9209 | esac | |
9210 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9211 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9212 | ;; | |
9213 | ||
9214 | irix5* | irix6* | nonstopux*) | |
9215 | lt_prog_compiler_wl='-Wl,' | |
9216 | # PIC (with -KPIC) is the default. | |
9217 | lt_prog_compiler_static='-non_shared' | |
9218 | ;; | |
9219 | ||
9220 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
9221 | case $cc_basename in | |
9222 | # old Intel for x86_64 which still supported -KPIC. | |
9223 | ecc*) | |
9224 | lt_prog_compiler_wl='-Wl,' | |
9225 | lt_prog_compiler_pic='-KPIC' | |
9226 | lt_prog_compiler_static='-static' | |
9227 | ;; | |
9228 | # icc used to be incompatible with GCC. | |
9229 | # ICC 10 doesn't accept -KPIC any more. | |
9230 | icc* | ifort*) | |
9231 | lt_prog_compiler_wl='-Wl,' | |
9232 | lt_prog_compiler_pic='-fPIC' | |
9233 | lt_prog_compiler_static='-static' | |
9234 | ;; | |
9235 | # Lahey Fortran 8.1. | |
9236 | lf95*) | |
9237 | lt_prog_compiler_wl='-Wl,' | |
9238 | lt_prog_compiler_pic='--shared' | |
9239 | lt_prog_compiler_static='--static' | |
9240 | ;; | |
9241 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9242 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9243 | # which looks to be a dead project) | |
9244 | lt_prog_compiler_wl='-Wl,' | |
9245 | lt_prog_compiler_pic='-fpic' | |
9246 | lt_prog_compiler_static='-Bstatic' | |
9247 | ;; | |
9248 | ccc*) | |
9249 | lt_prog_compiler_wl='-Wl,' | |
9250 | # All Alpha code is PIC. | |
9251 | lt_prog_compiler_static='-non_shared' | |
9252 | ;; | |
9253 | xl* | bgxl* | bgf* | mpixl*) | |
9254 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9255 | lt_prog_compiler_wl='-Wl,' | |
9256 | lt_prog_compiler_pic='-qpic' | |
9257 | lt_prog_compiler_static='-qstaticlink' | |
9258 | ;; | |
9259 | *) | |
9260 | case `$CC -V 2>&1 | sed 5q` in | |
9261 | *Sun\ F* | *Sun*Fortran*) | |
9262 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9263 | lt_prog_compiler_pic='-KPIC' | |
9264 | lt_prog_compiler_static='-Bstatic' | |
9265 | lt_prog_compiler_wl='' | |
9266 | ;; | |
9267 | *Sun\ C*) | |
9268 | # Sun C 5.9 | |
9269 | lt_prog_compiler_pic='-KPIC' | |
9270 | lt_prog_compiler_static='-Bstatic' | |
9271 | lt_prog_compiler_wl='-Wl,' | |
9272 | ;; | |
9273 | esac | |
9274 | ;; | |
9275 | esac | |
9276 | ;; | |
9277 | ||
9278 | newsos6) | |
9279 | lt_prog_compiler_pic='-KPIC' | |
9280 | lt_prog_compiler_static='-Bstatic' | |
9281 | ;; | |
9282 | ||
9283 | *nto* | *qnx*) | |
9284 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9285 | # it will coredump. | |
9286 | lt_prog_compiler_pic='-fPIC -shared' | |
9287 | ;; | |
9288 | ||
9289 | osf3* | osf4* | osf5*) | |
9290 | lt_prog_compiler_wl='-Wl,' | |
9291 | # All OSF/1 code is PIC. | |
9292 | lt_prog_compiler_static='-non_shared' | |
9293 | ;; | |
9294 | ||
9295 | rdos*) | |
9296 | lt_prog_compiler_static='-non_shared' | |
9297 | ;; | |
9298 | ||
9299 | solaris*) | |
9300 | lt_prog_compiler_pic='-KPIC' | |
9301 | lt_prog_compiler_static='-Bstatic' | |
9302 | case $cc_basename in | |
9303 | f77* | f90* | f95*) | |
9304 | lt_prog_compiler_wl='-Qoption ld ';; | |
9305 | *) | |
9306 | lt_prog_compiler_wl='-Wl,';; | |
9307 | esac | |
9308 | ;; | |
9309 | ||
9310 | sunos4*) | |
9311 | lt_prog_compiler_wl='-Qoption ld ' | |
9312 | lt_prog_compiler_pic='-PIC' | |
9313 | lt_prog_compiler_static='-Bstatic' | |
9314 | ;; | |
9315 | ||
9316 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9317 | lt_prog_compiler_wl='-Wl,' | |
9318 | lt_prog_compiler_pic='-KPIC' | |
9319 | lt_prog_compiler_static='-Bstatic' | |
9320 | ;; | |
9321 | ||
9322 | sysv4*MP*) | |
9323 | if test -d /usr/nec ;then | |
9324 | lt_prog_compiler_pic='-Kconform_pic' | |
9325 | lt_prog_compiler_static='-Bstatic' | |
9326 | fi | |
9327 | ;; | |
9328 | ||
9329 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9330 | lt_prog_compiler_wl='-Wl,' | |
9331 | lt_prog_compiler_pic='-KPIC' | |
9332 | lt_prog_compiler_static='-Bstatic' | |
9333 | ;; | |
9334 | ||
9335 | unicos*) | |
9336 | lt_prog_compiler_wl='-Wl,' | |
9337 | lt_prog_compiler_can_build_shared=no | |
9338 | ;; | |
9339 | ||
9340 | uts4*) | |
9341 | lt_prog_compiler_pic='-pic' | |
9342 | lt_prog_compiler_static='-Bstatic' | |
9343 | ;; | |
9344 | ||
9345 | *) | |
9346 | lt_prog_compiler_can_build_shared=no | |
9347 | ;; | |
9348 | esac | |
9349 | fi | |
9350 | ||
9351 | case $host_os in | |
9352 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9353 | *djgpp*) | |
9354 | lt_prog_compiler_pic= | |
9355 | ;; | |
9356 | *) | |
9357 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9358 | ;; | |
9359 | esac | |
9360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
9361 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
9362 | ||
9363 | ||
9364 | ||
9365 | ||
9366 | ||
9367 | ||
9368 | # | |
9369 | # Check to make sure the PIC flag actually works. | |
9370 | # | |
9371 | if test -n "$lt_prog_compiler_pic"; then | |
9372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9373 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
22e05272 | 9374 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
0a35513e AH |
9375 | $as_echo_n "(cached) " >&6 |
9376 | else | |
9377 | lt_cv_prog_compiler_pic_works=no | |
9378 | ac_outfile=conftest.$ac_objext | |
9379 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9380 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9381 | # Insert the option either (1) after the last *FLAGS variable, or | |
9382 | # (2) before a word containing "conftest.", or (3) at the end. | |
9383 | # Note that $ac_compile itself does not contain backslashes and begins | |
9384 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9385 | # The option is referenced via a variable to avoid confusing sed. | |
9386 | lt_compile=`echo "$ac_compile" | $SED \ | |
9387 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9388 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9389 | -e 's:$: $lt_compiler_flag:'` | |
9390 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9391 | (eval "$lt_compile" 2>conftest.err) | |
9392 | ac_status=$? | |
9393 | cat conftest.err >&5 | |
9394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9395 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9396 | # The compiler can only warn and ignore the option if not recognized | |
9397 | # So say no if there are warnings other than the usual output. | |
9398 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9399 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9400 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9401 | lt_cv_prog_compiler_pic_works=yes | |
9402 | fi | |
9403 | fi | |
9404 | $RM conftest* | |
9405 | ||
9406 | fi | |
9407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9408 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9409 | ||
9410 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
9411 | case $lt_prog_compiler_pic in | |
9412 | "" | " "*) ;; | |
9413 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9414 | esac | |
9415 | else | |
9416 | lt_prog_compiler_pic= | |
9417 | lt_prog_compiler_can_build_shared=no | |
9418 | fi | |
9419 | ||
9420 | fi | |
9421 | ||
9422 | ||
9423 | ||
9424 | ||
9425 | ||
9426 | ||
9427 | # | |
9428 | # Check to make sure the static flag actually works. | |
9429 | # | |
9430 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9432 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 9433 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
0a35513e AH |
9434 | $as_echo_n "(cached) " >&6 |
9435 | else | |
9436 | lt_cv_prog_compiler_static_works=no | |
9437 | save_LDFLAGS="$LDFLAGS" | |
9438 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9439 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9440 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9441 | # The linker can only warn and ignore the option if not recognized | |
9442 | # So say no if there are warnings | |
9443 | if test -s conftest.err; then | |
9444 | # Append any errors to the config.log. | |
9445 | cat conftest.err 1>&5 | |
9446 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9447 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9448 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9449 | lt_cv_prog_compiler_static_works=yes | |
9450 | fi | |
9451 | else | |
9452 | lt_cv_prog_compiler_static_works=yes | |
9453 | fi | |
9454 | fi | |
9455 | $RM -r conftest* | |
9456 | LDFLAGS="$save_LDFLAGS" | |
9457 | ||
9458 | fi | |
9459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9460 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9461 | ||
9462 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
9463 | : | |
9464 | else | |
9465 | lt_prog_compiler_static= | |
9466 | fi | |
9467 | ||
9468 | ||
9469 | ||
9470 | ||
9471 | ||
9472 | ||
9473 | ||
9474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9475 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 9476 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
0a35513e AH |
9477 | $as_echo_n "(cached) " >&6 |
9478 | else | |
9479 | lt_cv_prog_compiler_c_o=no | |
9480 | $RM -r conftest 2>/dev/null | |
9481 | mkdir conftest | |
9482 | cd conftest | |
9483 | mkdir out | |
9484 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9485 | ||
9486 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9487 | # Insert the option either (1) after the last *FLAGS variable, or | |
9488 | # (2) before a word containing "conftest.", or (3) at the end. | |
9489 | # Note that $ac_compile itself does not contain backslashes and begins | |
9490 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9491 | lt_compile=`echo "$ac_compile" | $SED \ | |
9492 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9493 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9494 | -e 's:$: $lt_compiler_flag:'` | |
9495 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9496 | (eval "$lt_compile" 2>out/conftest.err) | |
9497 | ac_status=$? | |
9498 | cat out/conftest.err >&5 | |
9499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9500 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9501 | then | |
9502 | # The compiler can only warn and ignore the option if not recognized | |
9503 | # So say no if there are warnings | |
9504 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9505 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9506 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9507 | lt_cv_prog_compiler_c_o=yes | |
9508 | fi | |
9509 | fi | |
9510 | chmod u+w . 2>&5 | |
9511 | $RM conftest* | |
9512 | # SGI C++ compiler will create directory out/ii_files/ for | |
9513 | # template instantiation | |
9514 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9515 | $RM out/* && rmdir out | |
9516 | cd .. | |
9517 | $RM -r conftest | |
9518 | $RM conftest* | |
9519 | ||
9520 | fi | |
9521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9522 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9523 | ||
9524 | ||
9525 | ||
9526 | ||
9527 | ||
9528 | ||
9529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9530 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 9531 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
0a35513e AH |
9532 | $as_echo_n "(cached) " >&6 |
9533 | else | |
9534 | lt_cv_prog_compiler_c_o=no | |
9535 | $RM -r conftest 2>/dev/null | |
9536 | mkdir conftest | |
9537 | cd conftest | |
9538 | mkdir out | |
9539 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9540 | ||
9541 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9542 | # Insert the option either (1) after the last *FLAGS variable, or | |
9543 | # (2) before a word containing "conftest.", or (3) at the end. | |
9544 | # Note that $ac_compile itself does not contain backslashes and begins | |
9545 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9546 | lt_compile=`echo "$ac_compile" | $SED \ | |
9547 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9548 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9549 | -e 's:$: $lt_compiler_flag:'` | |
9550 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9551 | (eval "$lt_compile" 2>out/conftest.err) | |
9552 | ac_status=$? | |
9553 | cat out/conftest.err >&5 | |
9554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9555 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9556 | then | |
9557 | # The compiler can only warn and ignore the option if not recognized | |
9558 | # So say no if there are warnings | |
9559 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9560 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9561 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9562 | lt_cv_prog_compiler_c_o=yes | |
9563 | fi | |
9564 | fi | |
9565 | chmod u+w . 2>&5 | |
9566 | $RM conftest* | |
9567 | # SGI C++ compiler will create directory out/ii_files/ for | |
9568 | # template instantiation | |
9569 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9570 | $RM out/* && rmdir out | |
9571 | cd .. | |
9572 | $RM -r conftest | |
9573 | $RM conftest* | |
9574 | ||
9575 | fi | |
9576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9577 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9578 | ||
9579 | ||
9580 | ||
9581 | ||
9582 | hard_links="nottested" | |
9583 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9584 | # do not overwrite the value of need_locks provided by the user | |
9585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9586 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9587 | hard_links=yes | |
9588 | $RM conftest* | |
9589 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9590 | touch conftest.a | |
9591 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9592 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9594 | $as_echo "$hard_links" >&6; } | |
9595 | if test "$hard_links" = no; then | |
9596 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9597 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9598 | need_locks=warn | |
9599 | fi | |
9600 | else | |
9601 | need_locks=no | |
9602 | fi | |
9603 | ||
9604 | ||
9605 | ||
9606 | ||
9607 | ||
9608 | ||
9609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9610 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9611 | ||
9612 | runpath_var= | |
9613 | allow_undefined_flag= | |
9614 | always_export_symbols=no | |
9615 | archive_cmds= | |
9616 | archive_expsym_cmds= | |
9617 | compiler_needs_object=no | |
9618 | enable_shared_with_static_runtimes=no | |
9619 | export_dynamic_flag_spec= | |
9620 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9621 | hardcode_automatic=no | |
9622 | hardcode_direct=no | |
9623 | hardcode_direct_absolute=no | |
9624 | hardcode_libdir_flag_spec= | |
9625 | hardcode_libdir_flag_spec_ld= | |
9626 | hardcode_libdir_separator= | |
9627 | hardcode_minus_L=no | |
9628 | hardcode_shlibpath_var=unsupported | |
9629 | inherit_rpath=no | |
9630 | link_all_deplibs=unknown | |
9631 | module_cmds= | |
9632 | module_expsym_cmds= | |
9633 | old_archive_from_new_cmds= | |
9634 | old_archive_from_expsyms_cmds= | |
9635 | thread_safe_flag_spec= | |
9636 | whole_archive_flag_spec= | |
9637 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9638 | # included in the symbol list | |
9639 | include_expsyms= | |
9640 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9641 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9642 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9643 | # as well as any symbol that contains `d'. | |
9644 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9645 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9646 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9647 | # the symbol is explicitly referenced. Since portable code cannot | |
9648 | # rely on this symbol name, it's probably fine to never include it in | |
9649 | # preloaded symbol tables. | |
9650 | # Exclude shared library initialization/finalization symbols. | |
9651 | extract_expsyms_cmds= | |
9652 | ||
9653 | case $host_os in | |
9654 | cygwin* | mingw* | pw32* | cegcc*) | |
9655 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9656 | # When not using gcc, we currently assume that we are using | |
9657 | # Microsoft Visual C++. | |
9658 | if test "$GCC" != yes; then | |
9659 | with_gnu_ld=no | |
9660 | fi | |
9661 | ;; | |
9662 | interix*) | |
9663 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9664 | with_gnu_ld=yes | |
9665 | ;; | |
9666 | openbsd*) | |
9667 | with_gnu_ld=no | |
9668 | ;; | |
9669 | esac | |
9670 | ||
9671 | ld_shlibs=yes | |
9672 | ||
9673 | # On some targets, GNU ld is compatible enough with the native linker | |
9674 | # that we're better off using the native interface for both. | |
9675 | lt_use_gnu_ld_interface=no | |
9676 | if test "$with_gnu_ld" = yes; then | |
9677 | case $host_os in | |
9678 | aix*) | |
9679 | # The AIX port of GNU ld has always aspired to compatibility | |
9680 | # with the native linker. However, as the warning in the GNU ld | |
9681 | # block says, versions before 2.19.5* couldn't really create working | |
9682 | # shared libraries, regardless of the interface used. | |
9683 | case `$LD -v 2>&1` in | |
9684 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9685 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9686 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9687 | *) | |
9688 | lt_use_gnu_ld_interface=yes | |
9689 | ;; | |
9690 | esac | |
9691 | ;; | |
9692 | *) | |
9693 | lt_use_gnu_ld_interface=yes | |
9694 | ;; | |
9695 | esac | |
9696 | fi | |
9697 | ||
9698 | if test "$lt_use_gnu_ld_interface" = yes; then | |
9699 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9700 | wlarc='${wl}' | |
9701 | ||
9702 | # Set some defaults for GNU ld with shared library support. These | |
9703 | # are reset later if shared libraries are not supported. Putting them | |
9704 | # here allows them to be overridden if necessary. | |
9705 | runpath_var=LD_RUN_PATH | |
9706 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9707 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9708 | # ancient GNU ld didn't support --whole-archive et. al. | |
9709 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9710 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9711 | else | |
9712 | whole_archive_flag_spec= | |
9713 | fi | |
9714 | supports_anon_versioning=no | |
9715 | case `$LD -v 2>&1` in | |
9716 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9717 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9718 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9719 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9720 | *\ 2.11.*) ;; # other 2.11 versions | |
9721 | *) supports_anon_versioning=yes ;; | |
9722 | esac | |
9723 | ||
9724 | # See if GNU ld supports shared libraries. | |
9725 | case $host_os in | |
9726 | aix[3-9]*) | |
9727 | # On AIX/PPC, the GNU linker is very broken | |
9728 | if test "$host_cpu" != ia64; then | |
9729 | ld_shlibs=no | |
9730 | cat <<_LT_EOF 1>&2 | |
9731 | ||
9732 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9733 | *** to be unable to reliably create shared libraries on AIX. | |
9734 | *** Therefore, libtool is disabling shared libraries support. If you | |
9735 | *** really care for shared libraries, you may want to install binutils | |
9736 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9737 | *** You will then need to restart the configuration process. | |
9738 | ||
9739 | _LT_EOF | |
9740 | fi | |
9741 | ;; | |
9742 | ||
9743 | amigaos*) | |
9744 | case $host_cpu in | |
9745 | powerpc) | |
9746 | # see comment about AmigaOS4 .so support | |
9747 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9748 | archive_expsym_cmds='' | |
9749 | ;; | |
9750 | m68k) | |
9751 | 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)' | |
9752 | hardcode_libdir_flag_spec='-L$libdir' | |
9753 | hardcode_minus_L=yes | |
9754 | ;; | |
9755 | esac | |
9756 | ;; | |
9757 | ||
9758 | beos*) | |
9759 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9760 | allow_undefined_flag=unsupported | |
9761 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9762 | # support --undefined. This deserves some investigation. FIXME | |
9763 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9764 | else | |
9765 | ld_shlibs=no | |
9766 | fi | |
9767 | ;; | |
9768 | ||
9769 | cygwin* | mingw* | pw32* | cegcc*) | |
9770 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9771 | # as there is no search path for DLLs. | |
9772 | hardcode_libdir_flag_spec='-L$libdir' | |
9773 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9774 | allow_undefined_flag=unsupported | |
9775 | always_export_symbols=no | |
9776 | enable_shared_with_static_runtimes=yes | |
9777 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9778 | ||
9779 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9780 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9781 | # If the export-symbols file already is a .def file (1st line | |
9782 | # is EXPORTS), use it as is; otherwise, prepend... | |
9783 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9784 | cp $export_symbols $output_objdir/$soname.def; | |
9785 | else | |
9786 | echo EXPORTS > $output_objdir/$soname.def; | |
9787 | cat $export_symbols >> $output_objdir/$soname.def; | |
9788 | fi~ | |
9789 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9790 | else | |
9791 | ld_shlibs=no | |
9792 | fi | |
9793 | ;; | |
9794 | ||
9795 | haiku*) | |
9796 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9797 | link_all_deplibs=yes | |
9798 | ;; | |
9799 | ||
9800 | interix[3-9]*) | |
9801 | hardcode_direct=no | |
9802 | hardcode_shlibpath_var=no | |
9803 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9804 | export_dynamic_flag_spec='${wl}-E' | |
9805 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9806 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9807 | # default) and relocated if they conflict, which is a slow very memory | |
9808 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9809 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9810 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9811 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9812 | 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' | |
9813 | ;; | |
9814 | ||
9815 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9816 | tmp_diet=no | |
9817 | if test "$host_os" = linux-dietlibc; then | |
9818 | case $cc_basename in | |
9819 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9820 | esac | |
9821 | fi | |
9822 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9823 | && test "$tmp_diet" = no | |
9824 | then | |
a699d672 | 9825 | tmp_addflag=' $pic_flag' |
0a35513e AH |
9826 | tmp_sharedflag='-shared' |
9827 | case $cc_basename,$host_cpu in | |
9828 | pgcc*) # Portland Group C compiler | |
9829 | 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' | |
9830 | tmp_addflag=' $pic_flag' | |
9831 | ;; | |
9832 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9833 | # Portland Group f77 and f90 compilers | |
9834 | 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' | |
9835 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9836 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9837 | tmp_addflag=' -i_dynamic' ;; | |
9838 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9839 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9840 | ifc* | ifort*) # Intel Fortran compiler | |
9841 | tmp_addflag=' -nofor_main' ;; | |
9842 | lf95*) # Lahey Fortran 8.1 | |
9843 | whole_archive_flag_spec= | |
9844 | tmp_sharedflag='--shared' ;; | |
9845 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9846 | tmp_sharedflag='-qmkshrobj' | |
9847 | tmp_addflag= ;; | |
9848 | nvcc*) # Cuda Compiler Driver 2.2 | |
9849 | 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' | |
9850 | compiler_needs_object=yes | |
9851 | ;; | |
9852 | esac | |
9853 | case `$CC -V 2>&1 | sed 5q` in | |
9854 | *Sun\ C*) # Sun C 5.9 | |
9855 | 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' | |
9856 | compiler_needs_object=yes | |
9857 | tmp_sharedflag='-G' ;; | |
9858 | *Sun\ F*) # Sun Fortran 8.3 | |
9859 | tmp_sharedflag='-G' ;; | |
9860 | esac | |
9861 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9862 | ||
9863 | if test "x$supports_anon_versioning" = xyes; then | |
9864 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9865 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9866 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9867 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9868 | fi | |
9869 | ||
9870 | case $cc_basename in | |
9871 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9872 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9873 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9874 | hardcode_libdir_flag_spec= | |
9875 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9876 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9877 | if test "x$supports_anon_versioning" = xyes; then | |
9878 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9879 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9880 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9881 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9882 | fi | |
9883 | ;; | |
9884 | esac | |
9885 | else | |
9886 | ld_shlibs=no | |
9887 | fi | |
9888 | ;; | |
9889 | ||
9890 | netbsd*) | |
9891 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9892 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9893 | wlarc= | |
9894 | else | |
9895 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9896 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9897 | fi | |
9898 | ;; | |
9899 | ||
9900 | solaris*) | |
9901 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9902 | ld_shlibs=no | |
9903 | cat <<_LT_EOF 1>&2 | |
9904 | ||
9905 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9906 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9907 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9908 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9909 | *** your PATH or compiler configuration so that the native linker is | |
9910 | *** used, and then restart. | |
9911 | ||
9912 | _LT_EOF | |
9913 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9914 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9915 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9916 | else | |
9917 | ld_shlibs=no | |
9918 | fi | |
9919 | ;; | |
9920 | ||
9921 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9922 | case `$LD -v 2>&1` in | |
9923 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9924 | ld_shlibs=no | |
9925 | cat <<_LT_EOF 1>&2 | |
9926 | ||
9927 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9928 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9929 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9930 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9931 | *** your PATH or compiler configuration so that the native linker is | |
9932 | *** used, and then restart. | |
9933 | ||
9934 | _LT_EOF | |
9935 | ;; | |
9936 | *) | |
9937 | # For security reasons, it is highly recommended that you always | |
9938 | # use absolute paths for naming shared libraries, and exclude the | |
9939 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9940 | # requires that you compile everything twice, which is a pain. | |
9941 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9942 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9943 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9944 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9945 | else | |
9946 | ld_shlibs=no | |
9947 | fi | |
9948 | ;; | |
9949 | esac | |
9950 | ;; | |
9951 | ||
9952 | sunos4*) | |
9953 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9954 | wlarc= | |
9955 | hardcode_direct=yes | |
9956 | hardcode_shlibpath_var=no | |
9957 | ;; | |
9958 | ||
9959 | *) | |
9960 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9961 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9962 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9963 | else | |
9964 | ld_shlibs=no | |
9965 | fi | |
9966 | ;; | |
9967 | esac | |
9968 | ||
9969 | if test "$ld_shlibs" = no; then | |
9970 | runpath_var= | |
9971 | hardcode_libdir_flag_spec= | |
9972 | export_dynamic_flag_spec= | |
9973 | whole_archive_flag_spec= | |
9974 | fi | |
9975 | else | |
9976 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9977 | case $host_os in | |
9978 | aix3*) | |
9979 | allow_undefined_flag=unsupported | |
9980 | always_export_symbols=yes | |
9981 | 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' | |
9982 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9983 | # are no directories specified by -L. | |
9984 | hardcode_minus_L=yes | |
9985 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9986 | # Neither direct hardcoding nor static linking is supported with a | |
9987 | # broken collect2. | |
9988 | hardcode_direct=unsupported | |
9989 | fi | |
9990 | ;; | |
9991 | ||
9992 | aix[4-9]*) | |
9993 | if test "$host_cpu" = ia64; then | |
9994 | # On IA64, the linker does run time linking by default, so we don't | |
9995 | # have to do anything special. | |
9996 | aix_use_runtimelinking=no | |
9997 | exp_sym_flag='-Bexport' | |
9998 | no_entry_flag="" | |
9999 | else | |
10000 | # If we're using GNU nm, then we don't want the "-C" option. | |
10001 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10002 | # Also, AIX nm treats weak defined symbols like other global | |
10003 | # defined symbols, whereas GNU nm marks them as "W". | |
10004 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10005 | 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' | |
10006 | else | |
84c1b9d3 | 10007 | 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' |
0a35513e AH |
10008 | fi |
10009 | aix_use_runtimelinking=no | |
10010 | ||
10011 | # Test if we are trying to use run time linking or normal | |
10012 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10013 | # need to do runtime linking. | |
10014 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10015 | for ld_flag in $LDFLAGS; do | |
10016 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10017 | aix_use_runtimelinking=yes | |
10018 | break | |
10019 | fi | |
10020 | done | |
10021 | ;; | |
10022 | esac | |
10023 | ||
10024 | exp_sym_flag='-bexport' | |
10025 | no_entry_flag='-bnoentry' | |
10026 | fi | |
10027 | ||
10028 | # When large executables or shared objects are built, AIX ld can | |
10029 | # have problems creating the table of contents. If linking a library | |
10030 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10031 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10032 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10033 | ||
10034 | archive_cmds='' | |
10035 | hardcode_direct=yes | |
10036 | hardcode_direct_absolute=yes | |
10037 | hardcode_libdir_separator=':' | |
10038 | link_all_deplibs=yes | |
10039 | file_list_spec='${wl}-f,' | |
10040 | ||
10041 | if test "$GCC" = yes; then | |
10042 | case $host_os in aix4.[012]|aix4.[012].*) | |
10043 | # We only want to do this on AIX 4.2 and lower, the check | |
10044 | # below for broken collect2 doesn't work under 4.3+ | |
10045 | collect2name=`${CC} -print-prog-name=collect2` | |
10046 | if test -f "$collect2name" && | |
10047 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10048 | then | |
10049 | # We have reworked collect2 | |
10050 | : | |
10051 | else | |
10052 | # We have old collect2 | |
10053 | hardcode_direct=unsupported | |
10054 | # It fails to find uninstalled libraries when the uninstalled | |
10055 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10056 | # to unsupported forces relinking | |
10057 | hardcode_minus_L=yes | |
10058 | hardcode_libdir_flag_spec='-L$libdir' | |
10059 | hardcode_libdir_separator= | |
10060 | fi | |
10061 | ;; | |
10062 | esac | |
10063 | shared_flag='-shared' | |
10064 | if test "$aix_use_runtimelinking" = yes; then | |
10065 | shared_flag="$shared_flag "'${wl}-G' | |
10066 | fi | |
10067 | else | |
10068 | # not using gcc | |
10069 | if test "$host_cpu" = ia64; then | |
10070 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10071 | # chokes on -Wl,-G. The following line is correct: | |
10072 | shared_flag='-G' | |
10073 | else | |
10074 | if test "$aix_use_runtimelinking" = yes; then | |
10075 | shared_flag='${wl}-G' | |
10076 | else | |
10077 | shared_flag='${wl}-bM:SRE' | |
10078 | fi | |
10079 | fi | |
10080 | fi | |
10081 | ||
10082 | export_dynamic_flag_spec='${wl}-bexpall' | |
10083 | # It seems that -bexpall does not export symbols beginning with | |
10084 | # underscore (_), so it is better to generate a list of symbols to export. | |
10085 | always_export_symbols=yes | |
10086 | if test "$aix_use_runtimelinking" = yes; then | |
10087 | # Warning - without using the other runtime loading flags (-brtl), | |
10088 | # -berok will link without error, but may produce a broken library. | |
10089 | allow_undefined_flag='-berok' | |
10090 | # Determine the default libpath from the value encoded in an | |
10091 | # empty executable. | |
10092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10093 | /* end confdefs.h. */ | |
10094 | ||
10095 | int | |
10096 | main () | |
10097 | { | |
10098 | ||
10099 | ; | |
10100 | return 0; | |
10101 | } | |
10102 | _ACEOF | |
10103 | if ac_fn_c_try_link "$LINENO"; then : | |
10104 | ||
10105 | lt_aix_libpath_sed=' | |
10106 | /Import File Strings/,/^$/ { | |
10107 | /^0/ { | |
10108 | s/^0 *\(.*\)$/\1/ | |
10109 | p | |
10110 | } | |
10111 | }' | |
10112 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10113 | # Check for a 64-bit object if we didn't find anything. | |
10114 | if test -z "$aix_libpath"; then | |
10115 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10116 | fi | |
10117 | fi | |
10118 | rm -f core conftest.err conftest.$ac_objext \ | |
10119 | conftest$ac_exeext conftest.$ac_ext | |
10120 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10121 | ||
10122 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10123 | 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" | |
10124 | else | |
10125 | if test "$host_cpu" = ia64; then | |
10126 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10127 | allow_undefined_flag="-z nodefs" | |
10128 | 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" | |
10129 | else | |
10130 | # Determine the default libpath from the value encoded in an | |
10131 | # empty executable. | |
10132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10133 | /* end confdefs.h. */ | |
10134 | ||
10135 | int | |
10136 | main () | |
10137 | { | |
10138 | ||
10139 | ; | |
10140 | return 0; | |
10141 | } | |
10142 | _ACEOF | |
10143 | if ac_fn_c_try_link "$LINENO"; then : | |
10144 | ||
10145 | lt_aix_libpath_sed=' | |
10146 | /Import File Strings/,/^$/ { | |
10147 | /^0/ { | |
10148 | s/^0 *\(.*\)$/\1/ | |
10149 | p | |
10150 | } | |
10151 | }' | |
10152 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10153 | # Check for a 64-bit object if we didn't find anything. | |
10154 | if test -z "$aix_libpath"; then | |
10155 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10156 | fi | |
10157 | fi | |
10158 | rm -f core conftest.err conftest.$ac_objext \ | |
10159 | conftest$ac_exeext conftest.$ac_ext | |
10160 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10161 | ||
10162 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10163 | # Warning - without using the other run time loading flags, | |
10164 | # -berok will link without error, but may produce a broken library. | |
10165 | no_undefined_flag=' ${wl}-bernotok' | |
10166 | allow_undefined_flag=' ${wl}-berok' | |
10167 | if test "$with_gnu_ld" = yes; then | |
10168 | # We only use this code for GNU lds that support --whole-archive. | |
10169 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10170 | else | |
10171 | # Exported symbols can be pulled into shared objects from archives | |
10172 | whole_archive_flag_spec='$convenience' | |
10173 | fi | |
10174 | archive_cmds_need_lc=yes | |
10175 | # This is similar to how AIX traditionally builds its shared libraries. | |
10176 | 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' | |
10177 | fi | |
10178 | fi | |
10179 | ;; | |
10180 | ||
10181 | amigaos*) | |
10182 | case $host_cpu in | |
10183 | powerpc) | |
10184 | # see comment about AmigaOS4 .so support | |
10185 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10186 | archive_expsym_cmds='' | |
10187 | ;; | |
10188 | m68k) | |
10189 | 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)' | |
10190 | hardcode_libdir_flag_spec='-L$libdir' | |
10191 | hardcode_minus_L=yes | |
10192 | ;; | |
10193 | esac | |
10194 | ;; | |
10195 | ||
10196 | bsdi[45]*) | |
10197 | export_dynamic_flag_spec=-rdynamic | |
10198 | ;; | |
10199 | ||
10200 | cygwin* | mingw* | pw32* | cegcc*) | |
10201 | # When not using gcc, we currently assume that we are using | |
10202 | # Microsoft Visual C++. | |
10203 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10204 | # no search path for DLLs. | |
10205 | hardcode_libdir_flag_spec=' ' | |
10206 | allow_undefined_flag=unsupported | |
10207 | # Tell ltmain to make .lib files, not .a files. | |
10208 | libext=lib | |
10209 | # Tell ltmain to make .dll files, not .so files. | |
10210 | shrext_cmds=".dll" | |
10211 | # FIXME: Setting linknames here is a bad hack. | |
10212 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10213 | # The linker will automatically build a .lib file if we build a DLL. | |
10214 | old_archive_from_new_cmds='true' | |
10215 | # FIXME: Should let the user specify the lib program. | |
10216 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10217 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10218 | enable_shared_with_static_runtimes=yes | |
10219 | ;; | |
10220 | ||
10221 | darwin* | rhapsody*) | |
10222 | ||
10223 | ||
10224 | archive_cmds_need_lc=no | |
10225 | hardcode_direct=no | |
10226 | hardcode_automatic=yes | |
10227 | hardcode_shlibpath_var=unsupported | |
10228 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10229 | 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\"`' | |
10230 | else | |
10231 | whole_archive_flag_spec='' | |
10232 | fi | |
10233 | link_all_deplibs=yes | |
10234 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10235 | case $cc_basename in | |
10236 | ifort*) _lt_dar_can_shared=yes ;; | |
10237 | *) _lt_dar_can_shared=$GCC ;; | |
10238 | esac | |
10239 | if test "$_lt_dar_can_shared" = "yes"; then | |
10240 | output_verbose_link_cmd=func_echo_all | |
10241 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10242 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10243 | 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}" | |
10244 | 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}" | |
10245 | ||
10246 | else | |
10247 | ld_shlibs=no | |
10248 | fi | |
10249 | ||
10250 | ;; | |
10251 | ||
10252 | dgux*) | |
10253 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10254 | hardcode_libdir_flag_spec='-L$libdir' | |
10255 | hardcode_shlibpath_var=no | |
10256 | ;; | |
10257 | ||
10258 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10259 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10260 | # does not break anything, and helps significantly (at the cost of a little | |
10261 | # extra space). | |
10262 | freebsd2.2*) | |
10263 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10264 | hardcode_libdir_flag_spec='-R$libdir' | |
10265 | hardcode_direct=yes | |
10266 | hardcode_shlibpath_var=no | |
10267 | ;; | |
10268 | ||
10269 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
c6084f68 | 10270 | freebsd2.*) |
0a35513e AH |
10271 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10272 | hardcode_direct=yes | |
10273 | hardcode_minus_L=yes | |
10274 | hardcode_shlibpath_var=no | |
10275 | ;; | |
10276 | ||
10277 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10278 | freebsd* | dragonfly*) | |
10279 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10280 | hardcode_libdir_flag_spec='-R$libdir' | |
10281 | hardcode_direct=yes | |
10282 | hardcode_shlibpath_var=no | |
10283 | ;; | |
10284 | ||
10285 | hpux9*) | |
10286 | if test "$GCC" = yes; then | |
10287 | 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' | |
10288 | else | |
10289 | 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' | |
10290 | fi | |
10291 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10292 | hardcode_libdir_separator=: | |
10293 | hardcode_direct=yes | |
10294 | ||
10295 | # hardcode_minus_L: Not really in the search PATH, | |
10296 | # but as the default location of the library. | |
10297 | hardcode_minus_L=yes | |
10298 | export_dynamic_flag_spec='${wl}-E' | |
10299 | ;; | |
10300 | ||
10301 | hpux10*) | |
10302 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10303 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10304 | else | |
10305 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10306 | fi | |
10307 | if test "$with_gnu_ld" = no; then | |
10308 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10309 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10310 | hardcode_libdir_separator=: | |
10311 | hardcode_direct=yes | |
10312 | hardcode_direct_absolute=yes | |
10313 | export_dynamic_flag_spec='${wl}-E' | |
10314 | # hardcode_minus_L: Not really in the search PATH, | |
10315 | # but as the default location of the library. | |
10316 | hardcode_minus_L=yes | |
10317 | fi | |
10318 | ;; | |
10319 | ||
10320 | hpux11*) | |
10321 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10322 | case $host_cpu in | |
10323 | hppa*64*) | |
10324 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10325 | ;; | |
10326 | ia64*) | |
10327 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10328 | ;; | |
10329 | *) | |
10330 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10331 | ;; | |
10332 | esac | |
10333 | else | |
10334 | case $host_cpu in | |
10335 | hppa*64*) | |
10336 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10337 | ;; | |
10338 | ia64*) | |
10339 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10340 | ;; | |
10341 | *) | |
10342 | ||
10343 | # Older versions of the 11.00 compiler do not understand -b yet | |
10344 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10346 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
22e05272 | 10347 | if ${lt_cv_prog_compiler__b+:} false; then : |
0a35513e AH |
10348 | $as_echo_n "(cached) " >&6 |
10349 | else | |
10350 | lt_cv_prog_compiler__b=no | |
10351 | save_LDFLAGS="$LDFLAGS" | |
10352 | LDFLAGS="$LDFLAGS -b" | |
10353 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10354 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10355 | # The linker can only warn and ignore the option if not recognized | |
10356 | # So say no if there are warnings | |
10357 | if test -s conftest.err; then | |
10358 | # Append any errors to the config.log. | |
10359 | cat conftest.err 1>&5 | |
10360 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10361 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10362 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10363 | lt_cv_prog_compiler__b=yes | |
10364 | fi | |
10365 | else | |
10366 | lt_cv_prog_compiler__b=yes | |
10367 | fi | |
10368 | fi | |
10369 | $RM -r conftest* | |
10370 | LDFLAGS="$save_LDFLAGS" | |
10371 | ||
10372 | fi | |
10373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10374 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10375 | ||
10376 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10377 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10378 | else | |
10379 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10380 | fi | |
10381 | ||
10382 | ;; | |
10383 | esac | |
10384 | fi | |
10385 | if test "$with_gnu_ld" = no; then | |
10386 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10387 | hardcode_libdir_separator=: | |
10388 | ||
10389 | case $host_cpu in | |
10390 | hppa*64*|ia64*) | |
10391 | hardcode_direct=no | |
10392 | hardcode_shlibpath_var=no | |
10393 | ;; | |
10394 | *) | |
10395 | hardcode_direct=yes | |
10396 | hardcode_direct_absolute=yes | |
10397 | export_dynamic_flag_spec='${wl}-E' | |
10398 | ||
10399 | # hardcode_minus_L: Not really in the search PATH, | |
10400 | # but as the default location of the library. | |
10401 | hardcode_minus_L=yes | |
10402 | ;; | |
10403 | esac | |
10404 | fi | |
10405 | ;; | |
10406 | ||
10407 | irix5* | irix6* | nonstopux*) | |
10408 | if test "$GCC" = yes; then | |
10409 | 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' | |
10410 | # Try to use the -exported_symbol ld option, if it does not | |
10411 | # work, assume that -exports_file does not work either and | |
10412 | # implicitly export all symbols. | |
10413 | save_LDFLAGS="$LDFLAGS" | |
10414 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10416 | /* end confdefs.h. */ | |
10417 | int foo(void) {} | |
10418 | _ACEOF | |
10419 | if ac_fn_c_try_link "$LINENO"; then : | |
10420 | 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' | |
10421 | ||
10422 | fi | |
10423 | rm -f core conftest.err conftest.$ac_objext \ | |
10424 | conftest$ac_exeext conftest.$ac_ext | |
10425 | LDFLAGS="$save_LDFLAGS" | |
10426 | else | |
10427 | 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' | |
10428 | 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' | |
10429 | fi | |
10430 | archive_cmds_need_lc='no' | |
10431 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10432 | hardcode_libdir_separator=: | |
10433 | inherit_rpath=yes | |
10434 | link_all_deplibs=yes | |
10435 | ;; | |
10436 | ||
10437 | netbsd*) | |
10438 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10439 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10440 | else | |
10441 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10442 | fi | |
10443 | hardcode_libdir_flag_spec='-R$libdir' | |
10444 | hardcode_direct=yes | |
10445 | hardcode_shlibpath_var=no | |
10446 | ;; | |
10447 | ||
10448 | newsos6) | |
10449 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10450 | hardcode_direct=yes | |
10451 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10452 | hardcode_libdir_separator=: | |
10453 | hardcode_shlibpath_var=no | |
10454 | ;; | |
10455 | ||
10456 | *nto* | *qnx*) | |
10457 | ;; | |
10458 | ||
10459 | openbsd*) | |
10460 | if test -f /usr/libexec/ld.so; then | |
10461 | hardcode_direct=yes | |
10462 | hardcode_shlibpath_var=no | |
10463 | hardcode_direct_absolute=yes | |
10464 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10465 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10466 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10467 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10468 | export_dynamic_flag_spec='${wl}-E' | |
10469 | else | |
10470 | case $host_os in | |
10471 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10472 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10473 | hardcode_libdir_flag_spec='-R$libdir' | |
10474 | ;; | |
10475 | *) | |
10476 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10477 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10478 | ;; | |
10479 | esac | |
10480 | fi | |
10481 | else | |
10482 | ld_shlibs=no | |
10483 | fi | |
10484 | ;; | |
10485 | ||
10486 | os2*) | |
10487 | hardcode_libdir_flag_spec='-L$libdir' | |
10488 | hardcode_minus_L=yes | |
10489 | allow_undefined_flag=unsupported | |
10490 | 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' | |
10491 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10492 | ;; | |
10493 | ||
10494 | osf3*) | |
10495 | if test "$GCC" = yes; then | |
10496 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10497 | 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' | |
10498 | else | |
10499 | allow_undefined_flag=' -expect_unresolved \*' | |
10500 | 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' | |
10501 | fi | |
10502 | archive_cmds_need_lc='no' | |
10503 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10504 | hardcode_libdir_separator=: | |
10505 | ;; | |
10506 | ||
10507 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10508 | if test "$GCC" = yes; then | |
10509 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10510 | 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' | |
10511 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10512 | else | |
10513 | allow_undefined_flag=' -expect_unresolved \*' | |
10514 | 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' | |
10515 | 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~ | |
10516 | $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' | |
10517 | ||
10518 | # Both c and cxx compiler support -rpath directly | |
10519 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10520 | fi | |
10521 | archive_cmds_need_lc='no' | |
10522 | hardcode_libdir_separator=: | |
10523 | ;; | |
10524 | ||
10525 | solaris*) | |
10526 | no_undefined_flag=' -z defs' | |
10527 | if test "$GCC" = yes; then | |
10528 | wlarc='${wl}' | |
10529 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10530 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10531 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10532 | else | |
10533 | case `$CC -V 2>&1` in | |
10534 | *"Compilers 5.0"*) | |
10535 | wlarc='' | |
10536 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10537 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10538 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10539 | ;; | |
10540 | *) | |
10541 | wlarc='${wl}' | |
10542 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10543 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10544 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10545 | ;; | |
10546 | esac | |
10547 | fi | |
10548 | hardcode_libdir_flag_spec='-R$libdir' | |
10549 | hardcode_shlibpath_var=no | |
10550 | case $host_os in | |
10551 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10552 | *) | |
10553 | # The compiler driver will combine and reorder linker options, | |
10554 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10555 | # but is careful enough not to reorder. | |
10556 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10557 | if test "$GCC" = yes; then | |
10558 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10559 | else | |
10560 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10561 | fi | |
10562 | ;; | |
10563 | esac | |
10564 | link_all_deplibs=yes | |
10565 | ;; | |
10566 | ||
10567 | sunos4*) | |
10568 | if test "x$host_vendor" = xsequent; then | |
10569 | # Use $CC to link under sequent, because it throws in some extra .o | |
10570 | # files that make .init and .fini sections work. | |
10571 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10572 | else | |
10573 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10574 | fi | |
10575 | hardcode_libdir_flag_spec='-L$libdir' | |
10576 | hardcode_direct=yes | |
10577 | hardcode_minus_L=yes | |
10578 | hardcode_shlibpath_var=no | |
10579 | ;; | |
10580 | ||
10581 | sysv4) | |
10582 | case $host_vendor in | |
10583 | sni) | |
10584 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10585 | hardcode_direct=yes # is this really true??? | |
10586 | ;; | |
10587 | siemens) | |
10588 | ## LD is ld it makes a PLAMLIB | |
10589 | ## CC just makes a GrossModule. | |
10590 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10591 | reload_cmds='$CC -r -o $output$reload_objs' | |
10592 | hardcode_direct=no | |
10593 | ;; | |
10594 | motorola) | |
10595 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10596 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10597 | ;; | |
10598 | esac | |
10599 | runpath_var='LD_RUN_PATH' | |
10600 | hardcode_shlibpath_var=no | |
10601 | ;; | |
10602 | ||
10603 | sysv4.3*) | |
10604 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10605 | hardcode_shlibpath_var=no | |
10606 | export_dynamic_flag_spec='-Bexport' | |
10607 | ;; | |
10608 | ||
10609 | sysv4*MP*) | |
10610 | if test -d /usr/nec; then | |
10611 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10612 | hardcode_shlibpath_var=no | |
10613 | runpath_var=LD_RUN_PATH | |
10614 | hardcode_runpath_var=yes | |
10615 | ld_shlibs=yes | |
10616 | fi | |
10617 | ;; | |
10618 | ||
10619 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10620 | no_undefined_flag='${wl}-z,text' | |
10621 | archive_cmds_need_lc=no | |
10622 | hardcode_shlibpath_var=no | |
10623 | runpath_var='LD_RUN_PATH' | |
10624 | ||
10625 | if test "$GCC" = yes; then | |
10626 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10627 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10628 | else | |
10629 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10630 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10631 | fi | |
10632 | ;; | |
10633 | ||
10634 | sysv5* | sco3.2v5* | sco5v6*) | |
10635 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10636 | # link with -lc, and that would cause any symbols used from libc to | |
10637 | # always be unresolved, which means just about no library would | |
10638 | # ever link correctly. If we're not using GNU ld we use -z text | |
10639 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10640 | # as -z defs. | |
10641 | no_undefined_flag='${wl}-z,text' | |
10642 | allow_undefined_flag='${wl}-z,nodefs' | |
10643 | archive_cmds_need_lc=no | |
10644 | hardcode_shlibpath_var=no | |
10645 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10646 | hardcode_libdir_separator=':' | |
10647 | link_all_deplibs=yes | |
10648 | export_dynamic_flag_spec='${wl}-Bexport' | |
10649 | runpath_var='LD_RUN_PATH' | |
10650 | ||
10651 | if test "$GCC" = yes; then | |
10652 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10653 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10654 | else | |
10655 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10656 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10657 | fi | |
10658 | ;; | |
10659 | ||
10660 | uts4*) | |
10661 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10662 | hardcode_libdir_flag_spec='-L$libdir' | |
10663 | hardcode_shlibpath_var=no | |
10664 | ;; | |
10665 | ||
10666 | *) | |
10667 | ld_shlibs=no | |
10668 | ;; | |
10669 | esac | |
10670 | ||
10671 | if test x$host_vendor = xsni; then | |
10672 | case $host in | |
10673 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10674 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10675 | ;; | |
10676 | esac | |
10677 | fi | |
10678 | fi | |
10679 | ||
10680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10681 | $as_echo "$ld_shlibs" >&6; } | |
10682 | test "$ld_shlibs" = no && can_build_shared=no | |
10683 | ||
10684 | with_gnu_ld=$with_gnu_ld | |
10685 | ||
10686 | ||
10687 | ||
10688 | ||
10689 | ||
10690 | ||
10691 | ||
10692 | ||
10693 | ||
10694 | ||
10695 | ||
10696 | ||
10697 | ||
10698 | ||
10699 | ||
10700 | # | |
10701 | # Do we need to explicitly link libc? | |
10702 | # | |
10703 | case "x$archive_cmds_need_lc" in | |
10704 | x|xyes) | |
10705 | # Assume -lc should be added | |
10706 | archive_cmds_need_lc=yes | |
10707 | ||
10708 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10709 | case $archive_cmds in | |
10710 | *'~'*) | |
10711 | # FIXME: we may have to deal with multi-command sequences. | |
10712 | ;; | |
10713 | '$CC '*) | |
10714 | # Test whether the compiler implicitly links with -lc since on some | |
10715 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10716 | # to ld, don't add -lc before -lgcc. | |
10717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10718 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 10719 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
0a35513e AH |
10720 | $as_echo_n "(cached) " >&6 |
10721 | else | |
10722 | $RM conftest* | |
10723 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10724 | ||
10725 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10726 | (eval $ac_compile) 2>&5 | |
10727 | ac_status=$? | |
10728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10729 | test $ac_status = 0; } 2>conftest.err; then | |
10730 | soname=conftest | |
10731 | lib=conftest | |
10732 | libobjs=conftest.$ac_objext | |
10733 | deplibs= | |
10734 | wl=$lt_prog_compiler_wl | |
10735 | pic_flag=$lt_prog_compiler_pic | |
10736 | compiler_flags=-v | |
10737 | linker_flags=-v | |
10738 | verstring= | |
10739 | output_objdir=. | |
10740 | libname=conftest | |
10741 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10742 | allow_undefined_flag= | |
10743 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10744 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10745 | ac_status=$? | |
10746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10747 | test $ac_status = 0; } | |
10748 | then | |
10749 | lt_cv_archive_cmds_need_lc=no | |
10750 | else | |
10751 | lt_cv_archive_cmds_need_lc=yes | |
10752 | fi | |
10753 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10754 | else | |
10755 | cat conftest.err 1>&5 | |
10756 | fi | |
10757 | $RM conftest* | |
10758 | ||
10759 | fi | |
10760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10761 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10762 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10763 | ;; | |
10764 | esac | |
10765 | fi | |
10766 | ;; | |
10767 | esac | |
10768 | ||
10769 | ||
10770 | ||
10771 | ||
10772 | ||
10773 | ||
10774 | ||
10775 | ||
10776 | ||
10777 | ||
10778 | ||
10779 | ||
10780 | ||
10781 | ||
10782 | ||
10783 | ||
10784 | ||
10785 | ||
10786 | ||
10787 | ||
10788 | ||
10789 | ||
10790 | ||
10791 | ||
10792 | ||
10793 | ||
10794 | ||
10795 | ||
10796 | ||
10797 | ||
10798 | ||
10799 | ||
10800 | ||
10801 | ||
10802 | ||
10803 | ||
10804 | ||
10805 | ||
10806 | ||
10807 | ||
10808 | ||
10809 | ||
10810 | ||
10811 | ||
10812 | ||
10813 | ||
10814 | ||
10815 | ||
10816 | ||
10817 | ||
10818 | ||
10819 | ||
10820 | ||
10821 | ||
10822 | ||
10823 | ||
10824 | ||
10825 | ||
10826 | ||
10827 | ||
10828 | ||
10829 | ||
10830 | ||
10831 | ||
10832 | ||
10833 | ||
10834 | ||
10835 | ||
10836 | ||
10837 | ||
10838 | ||
10839 | ||
10840 | ||
10841 | ||
10842 | ||
10843 | ||
10844 | ||
10845 | ||
10846 | ||
10847 | ||
10848 | ||
10849 | ||
10850 | ||
10851 | ||
10852 | ||
10853 | ||
10854 | ||
10855 | ||
10856 | ||
10857 | ||
10858 | ||
10859 | ||
10860 | ||
10861 | ||
10862 | ||
10863 | ||
10864 | ||
10865 | ||
10866 | ||
10867 | ||
10868 | ||
10869 | ||
10870 | ||
10871 | ||
10872 | ||
10873 | ||
10874 | ||
10875 | ||
10876 | ||
10877 | ||
10878 | ||
10879 | ||
10880 | ||
10881 | ||
10882 | ||
10883 | ||
10884 | ||
10885 | ||
10886 | ||
10887 | ||
10888 | ||
10889 | ||
10890 | ||
10891 | ||
10892 | ||
10893 | ||
10894 | ||
10895 | ||
10896 | ||
10897 | ||
10898 | ||
10899 | ||
10900 | ||
10901 | ||
10902 | ||
10903 | ||
10904 | ||
10905 | ||
10906 | ||
10907 | ||
10908 | ||
10909 | ||
10910 | ||
10911 | ||
10912 | ||
10913 | ||
10914 | ||
10915 | ||
10916 | ||
10917 | ||
10918 | ||
10919 | ||
10920 | ||
10921 | ||
10922 | ||
10923 | ||
10924 | ||
10925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10926 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10927 | ||
10928 | if test "$GCC" = yes; then | |
10929 | case $host_os in | |
10930 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10931 | *) lt_awk_arg="/^libraries:/" ;; | |
10932 | esac | |
10933 | case $host_os in | |
10934 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10935 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10936 | esac | |
10937 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10938 | case $lt_search_path_spec in | |
10939 | *\;*) | |
10940 | # if the path contains ";" then we assume it to be the separator | |
10941 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10942 | # assumed that no part of a normal pathname contains ";" but that should | |
10943 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10944 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10945 | ;; | |
10946 | *) | |
10947 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10948 | ;; | |
10949 | esac | |
10950 | # Ok, now we have the path, separated by spaces, we can step through it | |
10951 | # and add multilib dir if necessary. | |
10952 | lt_tmp_lt_search_path_spec= | |
10953 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10954 | for lt_sys_path in $lt_search_path_spec; do | |
10955 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10956 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10957 | else | |
10958 | test -d "$lt_sys_path" && \ | |
10959 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10960 | fi | |
10961 | done | |
10962 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10963 | BEGIN {RS=" "; FS="/|\n";} { | |
10964 | lt_foo=""; | |
10965 | lt_count=0; | |
10966 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10967 | if ($lt_i != "" && $lt_i != ".") { | |
10968 | if ($lt_i == "..") { | |
10969 | lt_count++; | |
10970 | } else { | |
10971 | if (lt_count == 0) { | |
10972 | lt_foo="/" $lt_i lt_foo; | |
10973 | } else { | |
10974 | lt_count--; | |
10975 | } | |
10976 | } | |
10977 | } | |
10978 | } | |
10979 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10980 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10981 | }'` | |
10982 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10983 | # for these hosts. | |
10984 | case $host_os in | |
10985 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10986 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10987 | esac | |
10988 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10989 | else | |
10990 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10991 | fi | |
10992 | library_names_spec= | |
10993 | libname_spec='lib$name' | |
10994 | soname_spec= | |
10995 | shrext_cmds=".so" | |
10996 | postinstall_cmds= | |
10997 | postuninstall_cmds= | |
10998 | finish_cmds= | |
10999 | finish_eval= | |
11000 | shlibpath_var= | |
11001 | shlibpath_overrides_runpath=unknown | |
11002 | version_type=none | |
11003 | dynamic_linker="$host_os ld.so" | |
11004 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11005 | need_lib_prefix=unknown | |
11006 | hardcode_into_libs=no | |
11007 | ||
11008 | # when you set need_version to no, make sure it does not cause -set_version | |
11009 | # flags to be left without arguments | |
11010 | need_version=unknown | |
11011 | ||
11012 | case $host_os in | |
11013 | aix3*) | |
11014 | version_type=linux | |
11015 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11016 | shlibpath_var=LIBPATH | |
11017 | ||
11018 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11019 | soname_spec='${libname}${release}${shared_ext}$major' | |
11020 | ;; | |
11021 | ||
11022 | aix[4-9]*) | |
11023 | version_type=linux | |
11024 | need_lib_prefix=no | |
11025 | need_version=no | |
11026 | hardcode_into_libs=yes | |
11027 | if test "$host_cpu" = ia64; then | |
11028 | # AIX 5 supports IA64 | |
11029 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11030 | shlibpath_var=LD_LIBRARY_PATH | |
11031 | else | |
11032 | # With GCC up to 2.95.x, collect2 would create an import file | |
11033 | # for dependence libraries. The import file would start with | |
11034 | # the line `#! .'. This would cause the generated library to | |
11035 | # depend on `.', always an invalid library. This was fixed in | |
11036 | # development snapshots of GCC prior to 3.0. | |
11037 | case $host_os in | |
11038 | aix4 | aix4.[01] | aix4.[01].*) | |
11039 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11040 | echo ' yes ' | |
11041 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11042 | : | |
11043 | else | |
11044 | can_build_shared=no | |
11045 | fi | |
11046 | ;; | |
11047 | esac | |
11048 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11049 | # soname into executable. Probably we can add versioning support to | |
11050 | # collect2, so additional links can be useful in future. | |
11051 | if test "$aix_use_runtimelinking" = yes; then | |
11052 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11053 | # instead of lib<name>.a to let people know that these are not | |
11054 | # typical AIX shared libraries. | |
11055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11056 | else | |
11057 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11058 | # and later when we are not doing run time linking. | |
11059 | library_names_spec='${libname}${release}.a $libname.a' | |
11060 | soname_spec='${libname}${release}${shared_ext}$major' | |
11061 | fi | |
11062 | shlibpath_var=LIBPATH | |
11063 | fi | |
11064 | ;; | |
11065 | ||
11066 | amigaos*) | |
11067 | case $host_cpu in | |
11068 | powerpc) | |
11069 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11070 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11072 | ;; | |
11073 | m68k) | |
11074 | library_names_spec='$libname.ixlibrary $libname.a' | |
11075 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11076 | 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' | |
11077 | ;; | |
11078 | esac | |
11079 | ;; | |
11080 | ||
11081 | beos*) | |
11082 | library_names_spec='${libname}${shared_ext}' | |
11083 | dynamic_linker="$host_os ld.so" | |
11084 | shlibpath_var=LIBRARY_PATH | |
11085 | ;; | |
11086 | ||
11087 | bsdi[45]*) | |
11088 | version_type=linux | |
11089 | need_version=no | |
11090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11091 | soname_spec='${libname}${release}${shared_ext}$major' | |
11092 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11093 | shlibpath_var=LD_LIBRARY_PATH | |
11094 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11095 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11096 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11097 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11098 | # libtool to hard-code these into programs | |
11099 | ;; | |
11100 | ||
11101 | cygwin* | mingw* | pw32* | cegcc*) | |
11102 | version_type=windows | |
11103 | shrext_cmds=".dll" | |
11104 | need_version=no | |
11105 | need_lib_prefix=no | |
11106 | ||
11107 | case $GCC,$host_os in | |
11108 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
11109 | library_names_spec='$libname.dll.a' | |
11110 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11111 | postinstall_cmds='base_file=`basename \${file}`~ | |
11112 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11113 | dldir=$destdir/`dirname \$dlpath`~ | |
11114 | test -d \$dldir || mkdir -p \$dldir~ | |
11115 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11116 | chmod a+x \$dldir/$dlname~ | |
11117 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11118 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11119 | fi' | |
11120 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11121 | dlpath=$dir/\$dldll~ | |
11122 | $RM \$dlpath' | |
11123 | shlibpath_overrides_runpath=yes | |
11124 | ||
11125 | case $host_os in | |
11126 | cygwin*) | |
11127 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11128 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11129 | ||
11130 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
11131 | ;; | |
11132 | mingw* | cegcc*) | |
11133 | # MinGW DLLs use traditional 'lib' prefix | |
11134 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11135 | ;; | |
11136 | pw32*) | |
11137 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11138 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11139 | ;; | |
11140 | esac | |
11141 | ;; | |
11142 | ||
11143 | *) | |
11144 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11145 | ;; | |
11146 | esac | |
11147 | dynamic_linker='Win32 ld.exe' | |
11148 | # FIXME: first we should search . and the directory the executable is in | |
11149 | shlibpath_var=PATH | |
11150 | ;; | |
11151 | ||
11152 | darwin* | rhapsody*) | |
11153 | dynamic_linker="$host_os dyld" | |
11154 | version_type=darwin | |
11155 | need_lib_prefix=no | |
11156 | need_version=no | |
11157 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11158 | soname_spec='${libname}${release}${major}$shared_ext' | |
11159 | shlibpath_overrides_runpath=yes | |
11160 | shlibpath_var=DYLD_LIBRARY_PATH | |
11161 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11162 | ||
11163 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11164 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11165 | ;; | |
11166 | ||
11167 | dgux*) | |
11168 | version_type=linux | |
11169 | need_lib_prefix=no | |
11170 | need_version=no | |
11171 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11172 | soname_spec='${libname}${release}${shared_ext}$major' | |
11173 | shlibpath_var=LD_LIBRARY_PATH | |
11174 | ;; | |
11175 | ||
11176 | freebsd* | dragonfly*) | |
11177 | # DragonFly does not have aout. When/if they implement a new | |
11178 | # versioning mechanism, adjust this. | |
11179 | if test -x /usr/bin/objformat; then | |
11180 | objformat=`/usr/bin/objformat` | |
11181 | else | |
11182 | case $host_os in | |
c6084f68 | 11183 | freebsd[23].*) objformat=aout ;; |
0a35513e AH |
11184 | *) objformat=elf ;; |
11185 | esac | |
11186 | fi | |
11187 | version_type=freebsd-$objformat | |
11188 | case $version_type in | |
11189 | freebsd-elf*) | |
11190 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11191 | need_version=no | |
11192 | need_lib_prefix=no | |
11193 | ;; | |
11194 | freebsd-*) | |
11195 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11196 | need_version=yes | |
11197 | ;; | |
11198 | esac | |
11199 | shlibpath_var=LD_LIBRARY_PATH | |
11200 | case $host_os in | |
c6084f68 | 11201 | freebsd2.*) |
0a35513e AH |
11202 | shlibpath_overrides_runpath=yes |
11203 | ;; | |
11204 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11205 | shlibpath_overrides_runpath=yes | |
11206 | hardcode_into_libs=yes | |
11207 | ;; | |
11208 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11209 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11210 | shlibpath_overrides_runpath=no | |
11211 | hardcode_into_libs=yes | |
11212 | ;; | |
11213 | *) # from 4.6 on, and DragonFly | |
11214 | shlibpath_overrides_runpath=yes | |
11215 | hardcode_into_libs=yes | |
11216 | ;; | |
11217 | esac | |
11218 | ;; | |
11219 | ||
11220 | gnu*) | |
11221 | version_type=linux | |
11222 | need_lib_prefix=no | |
11223 | need_version=no | |
11224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11225 | soname_spec='${libname}${release}${shared_ext}$major' | |
11226 | shlibpath_var=LD_LIBRARY_PATH | |
11227 | hardcode_into_libs=yes | |
11228 | ;; | |
11229 | ||
11230 | haiku*) | |
11231 | version_type=linux | |
11232 | need_lib_prefix=no | |
11233 | need_version=no | |
11234 | dynamic_linker="$host_os runtime_loader" | |
11235 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11236 | soname_spec='${libname}${release}${shared_ext}$major' | |
11237 | shlibpath_var=LIBRARY_PATH | |
11238 | shlibpath_overrides_runpath=yes | |
11239 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
11240 | hardcode_into_libs=yes | |
11241 | ;; | |
11242 | ||
11243 | hpux9* | hpux10* | hpux11*) | |
11244 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11245 | # link against other versions. | |
11246 | version_type=sunos | |
11247 | need_lib_prefix=no | |
11248 | need_version=no | |
11249 | case $host_cpu in | |
11250 | ia64*) | |
11251 | shrext_cmds='.so' | |
11252 | hardcode_into_libs=yes | |
11253 | dynamic_linker="$host_os dld.so" | |
11254 | shlibpath_var=LD_LIBRARY_PATH | |
11255 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11257 | soname_spec='${libname}${release}${shared_ext}$major' | |
11258 | if test "X$HPUX_IA64_MODE" = X32; then | |
11259 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11260 | else | |
11261 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11262 | fi | |
11263 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11264 | ;; | |
11265 | hppa*64*) | |
11266 | shrext_cmds='.sl' | |
11267 | hardcode_into_libs=yes | |
11268 | dynamic_linker="$host_os dld.sl" | |
11269 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11270 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11271 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11272 | soname_spec='${libname}${release}${shared_ext}$major' | |
11273 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11274 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11275 | ;; | |
11276 | *) | |
11277 | shrext_cmds='.sl' | |
11278 | dynamic_linker="$host_os dld.sl" | |
11279 | shlibpath_var=SHLIB_PATH | |
11280 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11282 | soname_spec='${libname}${release}${shared_ext}$major' | |
11283 | ;; | |
11284 | esac | |
11285 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11286 | postinstall_cmds='chmod 555 $lib' | |
11287 | # or fails outright, so override atomically: | |
11288 | install_override_mode=555 | |
11289 | ;; | |
11290 | ||
11291 | interix[3-9]*) | |
11292 | version_type=linux | |
11293 | need_lib_prefix=no | |
11294 | need_version=no | |
11295 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11296 | soname_spec='${libname}${release}${shared_ext}$major' | |
11297 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11298 | shlibpath_var=LD_LIBRARY_PATH | |
11299 | shlibpath_overrides_runpath=no | |
11300 | hardcode_into_libs=yes | |
11301 | ;; | |
11302 | ||
11303 | irix5* | irix6* | nonstopux*) | |
11304 | case $host_os in | |
11305 | nonstopux*) version_type=nonstopux ;; | |
11306 | *) | |
11307 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11308 | version_type=linux | |
11309 | else | |
11310 | version_type=irix | |
11311 | fi ;; | |
11312 | esac | |
11313 | need_lib_prefix=no | |
11314 | need_version=no | |
11315 | soname_spec='${libname}${release}${shared_ext}$major' | |
11316 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11317 | case $host_os in | |
11318 | irix5* | nonstopux*) | |
11319 | libsuff= shlibsuff= | |
11320 | ;; | |
11321 | *) | |
11322 | case $LD in # libtool.m4 will add one of these switches to LD | |
11323 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11324 | libsuff= shlibsuff= libmagic=32-bit;; | |
11325 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11326 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11327 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11328 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11329 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11330 | esac | |
11331 | ;; | |
11332 | esac | |
11333 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11334 | shlibpath_overrides_runpath=no | |
11335 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11336 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11337 | hardcode_into_libs=yes | |
11338 | ;; | |
11339 | ||
11340 | # No shared lib support for Linux oldld, aout, or coff. | |
11341 | linux*oldld* | linux*aout* | linux*coff*) | |
11342 | dynamic_linker=no | |
11343 | ;; | |
11344 | ||
11345 | # This must be Linux ELF. | |
11346 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
11347 | version_type=linux | |
11348 | need_lib_prefix=no | |
11349 | need_version=no | |
11350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11351 | soname_spec='${libname}${release}${shared_ext}$major' | |
11352 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11353 | shlibpath_var=LD_LIBRARY_PATH | |
11354 | shlibpath_overrides_runpath=no | |
11355 | ||
11356 | # Some binutils ld are patched to set DT_RUNPATH | |
22e05272 | 11357 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
0a35513e AH |
11358 | $as_echo_n "(cached) " >&6 |
11359 | else | |
11360 | lt_cv_shlibpath_overrides_runpath=no | |
11361 | save_LDFLAGS=$LDFLAGS | |
11362 | save_libdir=$libdir | |
11363 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11364 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11366 | /* end confdefs.h. */ | |
11367 | ||
11368 | int | |
11369 | main () | |
11370 | { | |
11371 | ||
11372 | ; | |
11373 | return 0; | |
11374 | } | |
11375 | _ACEOF | |
11376 | if ac_fn_c_try_link "$LINENO"; then : | |
11377 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11378 | lt_cv_shlibpath_overrides_runpath=yes | |
11379 | fi | |
11380 | fi | |
11381 | rm -f core conftest.err conftest.$ac_objext \ | |
11382 | conftest$ac_exeext conftest.$ac_ext | |
11383 | LDFLAGS=$save_LDFLAGS | |
11384 | libdir=$save_libdir | |
11385 | ||
11386 | fi | |
11387 | ||
11388 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11389 | ||
11390 | # This implies no fast_install, which is unacceptable. | |
11391 | # Some rework will be needed to allow for fast_install | |
11392 | # before this can be enabled. | |
11393 | hardcode_into_libs=yes | |
11394 | ||
11395 | # Append ld.so.conf contents to the search path | |
11396 | if test -f /etc/ld.so.conf; then | |
11397 | 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' ' '` | |
11398 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11399 | fi | |
11400 | ||
11401 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11402 | # powerpc, because MkLinux only supported shared libraries with the | |
11403 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11404 | # most powerpc-linux boxes support dynamic linking these days and | |
11405 | # people can always --disable-shared, the test was removed, and we | |
11406 | # assume the GNU/Linux dynamic linker is in use. | |
11407 | dynamic_linker='GNU/Linux ld.so' | |
11408 | ;; | |
11409 | ||
11410 | netbsd*) | |
11411 | version_type=sunos | |
11412 | need_lib_prefix=no | |
11413 | need_version=no | |
11414 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11415 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11416 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11417 | dynamic_linker='NetBSD (a.out) ld.so' | |
11418 | else | |
11419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11420 | soname_spec='${libname}${release}${shared_ext}$major' | |
11421 | dynamic_linker='NetBSD ld.elf_so' | |
11422 | fi | |
11423 | shlibpath_var=LD_LIBRARY_PATH | |
11424 | shlibpath_overrides_runpath=yes | |
11425 | hardcode_into_libs=yes | |
11426 | ;; | |
11427 | ||
11428 | newsos6) | |
11429 | version_type=linux | |
11430 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11431 | shlibpath_var=LD_LIBRARY_PATH | |
11432 | shlibpath_overrides_runpath=yes | |
11433 | ;; | |
11434 | ||
11435 | *nto* | *qnx*) | |
11436 | version_type=qnx | |
11437 | need_lib_prefix=no | |
11438 | need_version=no | |
11439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11440 | soname_spec='${libname}${release}${shared_ext}$major' | |
11441 | shlibpath_var=LD_LIBRARY_PATH | |
11442 | shlibpath_overrides_runpath=no | |
11443 | hardcode_into_libs=yes | |
11444 | dynamic_linker='ldqnx.so' | |
11445 | ;; | |
11446 | ||
11447 | openbsd*) | |
11448 | version_type=sunos | |
11449 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11450 | need_lib_prefix=no | |
11451 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11452 | case $host_os in | |
11453 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11454 | *) need_version=no ;; | |
11455 | esac | |
11456 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11457 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11458 | shlibpath_var=LD_LIBRARY_PATH | |
11459 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11460 | case $host_os in | |
11461 | openbsd2.[89] | openbsd2.[89].*) | |
11462 | shlibpath_overrides_runpath=no | |
11463 | ;; | |
11464 | *) | |
11465 | shlibpath_overrides_runpath=yes | |
11466 | ;; | |
11467 | esac | |
11468 | else | |
11469 | shlibpath_overrides_runpath=yes | |
11470 | fi | |
11471 | ;; | |
11472 | ||
11473 | os2*) | |
11474 | libname_spec='$name' | |
11475 | shrext_cmds=".dll" | |
11476 | need_lib_prefix=no | |
11477 | library_names_spec='$libname${shared_ext} $libname.a' | |
11478 | dynamic_linker='OS/2 ld.exe' | |
11479 | shlibpath_var=LIBPATH | |
11480 | ;; | |
11481 | ||
11482 | osf3* | osf4* | osf5*) | |
11483 | version_type=osf | |
11484 | need_lib_prefix=no | |
11485 | need_version=no | |
11486 | soname_spec='${libname}${release}${shared_ext}$major' | |
11487 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11488 | shlibpath_var=LD_LIBRARY_PATH | |
11489 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11490 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11491 | ;; | |
11492 | ||
11493 | rdos*) | |
11494 | dynamic_linker=no | |
11495 | ;; | |
11496 | ||
11497 | solaris*) | |
11498 | version_type=linux | |
11499 | need_lib_prefix=no | |
11500 | need_version=no | |
11501 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11502 | soname_spec='${libname}${release}${shared_ext}$major' | |
11503 | shlibpath_var=LD_LIBRARY_PATH | |
11504 | shlibpath_overrides_runpath=yes | |
11505 | hardcode_into_libs=yes | |
11506 | # ldd complains unless libraries are executable | |
11507 | postinstall_cmds='chmod +x $lib' | |
11508 | ;; | |
11509 | ||
11510 | sunos4*) | |
11511 | version_type=sunos | |
11512 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11513 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11514 | shlibpath_var=LD_LIBRARY_PATH | |
11515 | shlibpath_overrides_runpath=yes | |
11516 | if test "$with_gnu_ld" = yes; then | |
11517 | need_lib_prefix=no | |
11518 | fi | |
11519 | need_version=yes | |
11520 | ;; | |
11521 | ||
11522 | sysv4 | sysv4.3*) | |
11523 | version_type=linux | |
11524 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11525 | soname_spec='${libname}${release}${shared_ext}$major' | |
11526 | shlibpath_var=LD_LIBRARY_PATH | |
11527 | case $host_vendor in | |
11528 | sni) | |
11529 | shlibpath_overrides_runpath=no | |
11530 | need_lib_prefix=no | |
11531 | runpath_var=LD_RUN_PATH | |
11532 | ;; | |
11533 | siemens) | |
11534 | need_lib_prefix=no | |
11535 | ;; | |
11536 | motorola) | |
11537 | need_lib_prefix=no | |
11538 | need_version=no | |
11539 | shlibpath_overrides_runpath=no | |
11540 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11541 | ;; | |
11542 | esac | |
11543 | ;; | |
11544 | ||
11545 | sysv4*MP*) | |
11546 | if test -d /usr/nec ;then | |
11547 | version_type=linux | |
11548 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11549 | soname_spec='$libname${shared_ext}.$major' | |
11550 | shlibpath_var=LD_LIBRARY_PATH | |
11551 | fi | |
11552 | ;; | |
11553 | ||
11554 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11555 | version_type=freebsd-elf | |
11556 | need_lib_prefix=no | |
11557 | need_version=no | |
11558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11559 | soname_spec='${libname}${release}${shared_ext}$major' | |
11560 | shlibpath_var=LD_LIBRARY_PATH | |
11561 | shlibpath_overrides_runpath=yes | |
11562 | hardcode_into_libs=yes | |
11563 | if test "$with_gnu_ld" = yes; then | |
11564 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11565 | else | |
11566 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11567 | case $host_os in | |
11568 | sco3.2v5*) | |
11569 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11570 | ;; | |
11571 | esac | |
11572 | fi | |
11573 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11574 | ;; | |
11575 | ||
11576 | tpf*) | |
11577 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11578 | version_type=linux | |
11579 | need_lib_prefix=no | |
11580 | need_version=no | |
11581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11582 | shlibpath_var=LD_LIBRARY_PATH | |
11583 | shlibpath_overrides_runpath=no | |
11584 | hardcode_into_libs=yes | |
11585 | ;; | |
11586 | ||
11587 | uts4*) | |
11588 | version_type=linux | |
11589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11590 | soname_spec='${libname}${release}${shared_ext}$major' | |
11591 | shlibpath_var=LD_LIBRARY_PATH | |
11592 | ;; | |
11593 | ||
11594 | *) | |
11595 | dynamic_linker=no | |
11596 | ;; | |
11597 | esac | |
11598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11599 | $as_echo "$dynamic_linker" >&6; } | |
11600 | test "$dynamic_linker" = no && can_build_shared=no | |
11601 | ||
11602 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11603 | if test "$GCC" = yes; then | |
11604 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11605 | fi | |
11606 | ||
11607 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
11608 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11609 | fi | |
11610 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11611 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11612 | fi | |
11613 | ||
11614 | ||
11615 | ||
11616 | ||
11617 | ||
11618 | ||
11619 | ||
11620 | ||
11621 | ||
11622 | ||
11623 | ||
11624 | ||
11625 | ||
11626 | ||
11627 | ||
11628 | ||
11629 | ||
11630 | ||
11631 | ||
11632 | ||
11633 | ||
11634 | ||
11635 | ||
11636 | ||
11637 | ||
11638 | ||
11639 | ||
11640 | ||
11641 | ||
11642 | ||
11643 | ||
11644 | ||
11645 | ||
11646 | ||
11647 | ||
11648 | ||
11649 | ||
11650 | ||
11651 | ||
11652 | ||
11653 | ||
11654 | ||
11655 | ||
11656 | ||
11657 | ||
11658 | ||
11659 | ||
11660 | ||
11661 | ||
11662 | ||
11663 | ||
11664 | ||
11665 | ||
11666 | ||
11667 | ||
11668 | ||
11669 | ||
11670 | ||
11671 | ||
11672 | ||
11673 | ||
11674 | ||
11675 | ||
11676 | ||
11677 | ||
11678 | ||
11679 | ||
11680 | ||
11681 | ||
11682 | ||
11683 | ||
11684 | ||
11685 | ||
11686 | ||
11687 | ||
11688 | ||
11689 | ||
11690 | ||
11691 | ||
11692 | ||
11693 | ||
11694 | ||
11695 | ||
11696 | ||
11697 | ||
11698 | ||
11699 | ||
11700 | ||
11701 | ||
11702 | ||
11703 | ||
11704 | ||
11705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11706 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11707 | hardcode_action= | |
11708 | if test -n "$hardcode_libdir_flag_spec" || | |
11709 | test -n "$runpath_var" || | |
11710 | test "X$hardcode_automatic" = "Xyes" ; then | |
11711 | ||
11712 | # We can hardcode non-existent directories. | |
11713 | if test "$hardcode_direct" != no && | |
11714 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11715 | # have to relink, otherwise we might link with an installed library | |
11716 | # when we should be linking with a yet-to-be-installed one | |
11717 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11718 | test "$hardcode_minus_L" != no; then | |
11719 | # Linking always hardcodes the temporary library directory. | |
11720 | hardcode_action=relink | |
11721 | else | |
11722 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11723 | hardcode_action=immediate | |
11724 | fi | |
11725 | else | |
11726 | # We cannot hardcode anything, or else we can only hardcode existing | |
11727 | # directories. | |
11728 | hardcode_action=unsupported | |
11729 | fi | |
11730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11731 | $as_echo "$hardcode_action" >&6; } | |
11732 | ||
11733 | if test "$hardcode_action" = relink || | |
11734 | test "$inherit_rpath" = yes; then | |
11735 | # Fast installation is not supported | |
11736 | enable_fast_install=no | |
11737 | elif test "$shlibpath_overrides_runpath" = yes || | |
11738 | test "$enable_shared" = no; then | |
11739 | # Fast installation is not necessary | |
11740 | enable_fast_install=needless | |
11741 | fi | |
11742 | ||
11743 | ||
11744 | ||
11745 | ||
11746 | ||
11747 | ||
11748 | if test "x$enable_dlopen" != xyes; then | |
11749 | enable_dlopen=unknown | |
11750 | enable_dlopen_self=unknown | |
11751 | enable_dlopen_self_static=unknown | |
11752 | else | |
11753 | lt_cv_dlopen=no | |
11754 | lt_cv_dlopen_libs= | |
11755 | ||
11756 | case $host_os in | |
11757 | beos*) | |
11758 | lt_cv_dlopen="load_add_on" | |
11759 | lt_cv_dlopen_libs= | |
11760 | lt_cv_dlopen_self=yes | |
11761 | ;; | |
11762 | ||
11763 | mingw* | pw32* | cegcc*) | |
11764 | lt_cv_dlopen="LoadLibrary" | |
11765 | lt_cv_dlopen_libs= | |
11766 | ;; | |
11767 | ||
11768 | cygwin*) | |
11769 | lt_cv_dlopen="dlopen" | |
11770 | lt_cv_dlopen_libs= | |
11771 | ;; | |
11772 | ||
11773 | darwin*) | |
11774 | # if libdl is installed we need to link against it | |
11775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11776 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 11777 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
0a35513e AH |
11778 | $as_echo_n "(cached) " >&6 |
11779 | else | |
11780 | ac_check_lib_save_LIBS=$LIBS | |
11781 | LIBS="-ldl $LIBS" | |
11782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11783 | /* end confdefs.h. */ | |
11784 | ||
11785 | /* Override any GCC internal prototype to avoid an error. | |
11786 | Use char because int might match the return type of a GCC | |
11787 | builtin and then its argument prototype would still apply. */ | |
11788 | #ifdef __cplusplus | |
11789 | extern "C" | |
11790 | #endif | |
11791 | char dlopen (); | |
11792 | int | |
11793 | main () | |
11794 | { | |
11795 | return dlopen (); | |
11796 | ; | |
11797 | return 0; | |
11798 | } | |
11799 | _ACEOF | |
11800 | if ac_fn_c_try_link "$LINENO"; then : | |
11801 | ac_cv_lib_dl_dlopen=yes | |
11802 | else | |
11803 | ac_cv_lib_dl_dlopen=no | |
11804 | fi | |
11805 | rm -f core conftest.err conftest.$ac_objext \ | |
11806 | conftest$ac_exeext conftest.$ac_ext | |
11807 | LIBS=$ac_check_lib_save_LIBS | |
11808 | fi | |
11809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11810 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 11811 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
0a35513e AH |
11812 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11813 | else | |
11814 | ||
11815 | lt_cv_dlopen="dyld" | |
11816 | lt_cv_dlopen_libs= | |
11817 | lt_cv_dlopen_self=yes | |
11818 | ||
11819 | fi | |
11820 | ||
11821 | ;; | |
11822 | ||
11823 | *) | |
11824 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
22e05272 | 11825 | if test "x$ac_cv_func_shl_load" = xyes; then : |
0a35513e AH |
11826 | lt_cv_dlopen="shl_load" |
11827 | else | |
11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11829 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
22e05272 | 11830 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
0a35513e AH |
11831 | $as_echo_n "(cached) " >&6 |
11832 | else | |
11833 | ac_check_lib_save_LIBS=$LIBS | |
11834 | LIBS="-ldld $LIBS" | |
11835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11836 | /* end confdefs.h. */ | |
11837 | ||
11838 | /* Override any GCC internal prototype to avoid an error. | |
11839 | Use char because int might match the return type of a GCC | |
11840 | builtin and then its argument prototype would still apply. */ | |
11841 | #ifdef __cplusplus | |
11842 | extern "C" | |
11843 | #endif | |
11844 | char shl_load (); | |
11845 | int | |
11846 | main () | |
11847 | { | |
11848 | return shl_load (); | |
11849 | ; | |
11850 | return 0; | |
11851 | } | |
11852 | _ACEOF | |
11853 | if ac_fn_c_try_link "$LINENO"; then : | |
11854 | ac_cv_lib_dld_shl_load=yes | |
11855 | else | |
11856 | ac_cv_lib_dld_shl_load=no | |
11857 | fi | |
11858 | rm -f core conftest.err conftest.$ac_objext \ | |
11859 | conftest$ac_exeext conftest.$ac_ext | |
11860 | LIBS=$ac_check_lib_save_LIBS | |
11861 | fi | |
11862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11863 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
22e05272 | 11864 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
0a35513e AH |
11865 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
11866 | else | |
11867 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
22e05272 | 11868 | if test "x$ac_cv_func_dlopen" = xyes; then : |
0a35513e AH |
11869 | lt_cv_dlopen="dlopen" |
11870 | else | |
11871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11872 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 11873 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
0a35513e AH |
11874 | $as_echo_n "(cached) " >&6 |
11875 | else | |
11876 | ac_check_lib_save_LIBS=$LIBS | |
11877 | LIBS="-ldl $LIBS" | |
11878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11879 | /* end confdefs.h. */ | |
11880 | ||
11881 | /* Override any GCC internal prototype to avoid an error. | |
11882 | Use char because int might match the return type of a GCC | |
11883 | builtin and then its argument prototype would still apply. */ | |
11884 | #ifdef __cplusplus | |
11885 | extern "C" | |
11886 | #endif | |
11887 | char dlopen (); | |
11888 | int | |
11889 | main () | |
11890 | { | |
11891 | return dlopen (); | |
11892 | ; | |
11893 | return 0; | |
11894 | } | |
11895 | _ACEOF | |
11896 | if ac_fn_c_try_link "$LINENO"; then : | |
11897 | ac_cv_lib_dl_dlopen=yes | |
11898 | else | |
11899 | ac_cv_lib_dl_dlopen=no | |
11900 | fi | |
11901 | rm -f core conftest.err conftest.$ac_objext \ | |
11902 | conftest$ac_exeext conftest.$ac_ext | |
11903 | LIBS=$ac_check_lib_save_LIBS | |
11904 | fi | |
11905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11906 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 11907 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
0a35513e AH |
11908 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11909 | else | |
11910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11911 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
22e05272 | 11912 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
0a35513e AH |
11913 | $as_echo_n "(cached) " >&6 |
11914 | else | |
11915 | ac_check_lib_save_LIBS=$LIBS | |
11916 | LIBS="-lsvld $LIBS" | |
11917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11918 | /* end confdefs.h. */ | |
11919 | ||
11920 | /* Override any GCC internal prototype to avoid an error. | |
11921 | Use char because int might match the return type of a GCC | |
11922 | builtin and then its argument prototype would still apply. */ | |
11923 | #ifdef __cplusplus | |
11924 | extern "C" | |
11925 | #endif | |
11926 | char dlopen (); | |
11927 | int | |
11928 | main () | |
11929 | { | |
11930 | return dlopen (); | |
11931 | ; | |
11932 | return 0; | |
11933 | } | |
11934 | _ACEOF | |
11935 | if ac_fn_c_try_link "$LINENO"; then : | |
11936 | ac_cv_lib_svld_dlopen=yes | |
11937 | else | |
11938 | ac_cv_lib_svld_dlopen=no | |
11939 | fi | |
11940 | rm -f core conftest.err conftest.$ac_objext \ | |
11941 | conftest$ac_exeext conftest.$ac_ext | |
11942 | LIBS=$ac_check_lib_save_LIBS | |
11943 | fi | |
11944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11945 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
22e05272 | 11946 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
0a35513e AH |
11947 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11948 | else | |
11949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11950 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
22e05272 | 11951 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
0a35513e AH |
11952 | $as_echo_n "(cached) " >&6 |
11953 | else | |
11954 | ac_check_lib_save_LIBS=$LIBS | |
11955 | LIBS="-ldld $LIBS" | |
11956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11957 | /* end confdefs.h. */ | |
11958 | ||
11959 | /* Override any GCC internal prototype to avoid an error. | |
11960 | Use char because int might match the return type of a GCC | |
11961 | builtin and then its argument prototype would still apply. */ | |
11962 | #ifdef __cplusplus | |
11963 | extern "C" | |
11964 | #endif | |
11965 | char dld_link (); | |
11966 | int | |
11967 | main () | |
11968 | { | |
11969 | return dld_link (); | |
11970 | ; | |
11971 | return 0; | |
11972 | } | |
11973 | _ACEOF | |
11974 | if ac_fn_c_try_link "$LINENO"; then : | |
11975 | ac_cv_lib_dld_dld_link=yes | |
11976 | else | |
11977 | ac_cv_lib_dld_dld_link=no | |
11978 | fi | |
11979 | rm -f core conftest.err conftest.$ac_objext \ | |
11980 | conftest$ac_exeext conftest.$ac_ext | |
11981 | LIBS=$ac_check_lib_save_LIBS | |
11982 | fi | |
11983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11984 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
22e05272 | 11985 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
0a35513e AH |
11986 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
11987 | fi | |
11988 | ||
11989 | ||
11990 | fi | |
11991 | ||
11992 | ||
11993 | fi | |
11994 | ||
11995 | ||
11996 | fi | |
11997 | ||
11998 | ||
11999 | fi | |
12000 | ||
12001 | ||
12002 | fi | |
12003 | ||
12004 | ;; | |
12005 | esac | |
12006 | ||
12007 | if test "x$lt_cv_dlopen" != xno; then | |
12008 | enable_dlopen=yes | |
12009 | else | |
12010 | enable_dlopen=no | |
12011 | fi | |
12012 | ||
12013 | case $lt_cv_dlopen in | |
12014 | dlopen) | |
12015 | save_CPPFLAGS="$CPPFLAGS" | |
12016 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12017 | ||
12018 | save_LDFLAGS="$LDFLAGS" | |
12019 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12020 | ||
12021 | save_LIBS="$LIBS" | |
12022 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12023 | ||
12024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
12025 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
22e05272 | 12026 | if ${lt_cv_dlopen_self+:} false; then : |
0a35513e AH |
12027 | $as_echo_n "(cached) " >&6 |
12028 | else | |
12029 | if test "$cross_compiling" = yes; then : | |
12030 | lt_cv_dlopen_self=cross | |
12031 | else | |
12032 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12033 | lt_status=$lt_dlunknown | |
12034 | cat > conftest.$ac_ext <<_LT_EOF | |
22e05272 | 12035 | #line 12035 "configure" |
0a35513e AH |
12036 | #include "confdefs.h" |
12037 | ||
12038 | #if HAVE_DLFCN_H | |
12039 | #include <dlfcn.h> | |
12040 | #endif | |
12041 | ||
12042 | #include <stdio.h> | |
12043 | ||
12044 | #ifdef RTLD_GLOBAL | |
12045 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12046 | #else | |
12047 | # ifdef DL_GLOBAL | |
12048 | # define LT_DLGLOBAL DL_GLOBAL | |
12049 | # else | |
12050 | # define LT_DLGLOBAL 0 | |
12051 | # endif | |
12052 | #endif | |
12053 | ||
12054 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12055 | find out it does not work in some platform. */ | |
12056 | #ifndef LT_DLLAZY_OR_NOW | |
12057 | # ifdef RTLD_LAZY | |
12058 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12059 | # else | |
12060 | # ifdef DL_LAZY | |
12061 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12062 | # else | |
12063 | # ifdef RTLD_NOW | |
12064 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12065 | # else | |
12066 | # ifdef DL_NOW | |
12067 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12068 | # else | |
12069 | # define LT_DLLAZY_OR_NOW 0 | |
12070 | # endif | |
12071 | # endif | |
12072 | # endif | |
12073 | # endif | |
12074 | #endif | |
12075 | ||
12076 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12077 | correspondingly for the symbols needed. */ | |
12078 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12079 | void fnord () __attribute__((visibility("default"))); | |
12080 | #endif | |
12081 | ||
12082 | void fnord () { int i=42; } | |
12083 | int main () | |
12084 | { | |
12085 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12086 | int status = $lt_dlunknown; | |
12087 | ||
12088 | if (self) | |
12089 | { | |
12090 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12091 | else | |
12092 | { | |
12093 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12094 | else puts (dlerror ()); | |
12095 | } | |
12096 | /* dlclose (self); */ | |
12097 | } | |
12098 | else | |
12099 | puts (dlerror ()); | |
12100 | ||
12101 | return status; | |
12102 | } | |
12103 | _LT_EOF | |
12104 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12105 | (eval $ac_link) 2>&5 | |
12106 | ac_status=$? | |
12107 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12108 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12109 | (./conftest; exit; ) >&5 2>/dev/null | |
12110 | lt_status=$? | |
12111 | case x$lt_status in | |
12112 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12113 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12114 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12115 | esac | |
12116 | else : | |
12117 | # compilation failed | |
12118 | lt_cv_dlopen_self=no | |
12119 | fi | |
12120 | fi | |
12121 | rm -fr conftest* | |
12122 | ||
12123 | ||
12124 | fi | |
12125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12126 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12127 | ||
12128 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12129 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12131 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
22e05272 | 12132 | if ${lt_cv_dlopen_self_static+:} false; then : |
0a35513e AH |
12133 | $as_echo_n "(cached) " >&6 |
12134 | else | |
12135 | if test "$cross_compiling" = yes; then : | |
12136 | lt_cv_dlopen_self_static=cross | |
12137 | else | |
12138 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12139 | lt_status=$lt_dlunknown | |
12140 | cat > conftest.$ac_ext <<_LT_EOF | |
22e05272 | 12141 | #line 12141 "configure" |
0a35513e AH |
12142 | #include "confdefs.h" |
12143 | ||
12144 | #if HAVE_DLFCN_H | |
12145 | #include <dlfcn.h> | |
12146 | #endif | |
12147 | ||
12148 | #include <stdio.h> | |
12149 | ||
12150 | #ifdef RTLD_GLOBAL | |
12151 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12152 | #else | |
12153 | # ifdef DL_GLOBAL | |
12154 | # define LT_DLGLOBAL DL_GLOBAL | |
12155 | # else | |
12156 | # define LT_DLGLOBAL 0 | |
12157 | # endif | |
12158 | #endif | |
12159 | ||
12160 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12161 | find out it does not work in some platform. */ | |
12162 | #ifndef LT_DLLAZY_OR_NOW | |
12163 | # ifdef RTLD_LAZY | |
12164 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12165 | # else | |
12166 | # ifdef DL_LAZY | |
12167 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12168 | # else | |
12169 | # ifdef RTLD_NOW | |
12170 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12171 | # else | |
12172 | # ifdef DL_NOW | |
12173 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12174 | # else | |
12175 | # define LT_DLLAZY_OR_NOW 0 | |
12176 | # endif | |
12177 | # endif | |
12178 | # endif | |
12179 | # endif | |
12180 | #endif | |
12181 | ||
12182 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12183 | correspondingly for the symbols needed. */ | |
12184 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12185 | void fnord () __attribute__((visibility("default"))); | |
12186 | #endif | |
12187 | ||
12188 | void fnord () { int i=42; } | |
12189 | int main () | |
12190 | { | |
12191 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12192 | int status = $lt_dlunknown; | |
12193 | ||
12194 | if (self) | |
12195 | { | |
12196 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12197 | else | |
12198 | { | |
12199 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12200 | else puts (dlerror ()); | |
12201 | } | |
12202 | /* dlclose (self); */ | |
12203 | } | |
12204 | else | |
12205 | puts (dlerror ()); | |
12206 | ||
12207 | return status; | |
12208 | } | |
12209 | _LT_EOF | |
12210 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12211 | (eval $ac_link) 2>&5 | |
12212 | ac_status=$? | |
12213 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12214 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12215 | (./conftest; exit; ) >&5 2>/dev/null | |
12216 | lt_status=$? | |
12217 | case x$lt_status in | |
12218 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12219 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12220 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12221 | esac | |
12222 | else : | |
12223 | # compilation failed | |
12224 | lt_cv_dlopen_self_static=no | |
12225 | fi | |
12226 | fi | |
12227 | rm -fr conftest* | |
12228 | ||
12229 | ||
12230 | fi | |
12231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12232 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12233 | fi | |
12234 | ||
12235 | CPPFLAGS="$save_CPPFLAGS" | |
12236 | LDFLAGS="$save_LDFLAGS" | |
12237 | LIBS="$save_LIBS" | |
12238 | ;; | |
12239 | esac | |
12240 | ||
12241 | case $lt_cv_dlopen_self in | |
12242 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12243 | *) enable_dlopen_self=unknown ;; | |
12244 | esac | |
12245 | ||
12246 | case $lt_cv_dlopen_self_static in | |
12247 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12248 | *) enable_dlopen_self_static=unknown ;; | |
12249 | esac | |
12250 | fi | |
12251 | ||
12252 | ||
12253 | ||
12254 | ||
12255 | ||
12256 | ||
12257 | ||
12258 | ||
12259 | ||
12260 | ||
12261 | ||
12262 | ||
12263 | ||
12264 | ||
12265 | ||
12266 | ||
12267 | ||
12268 | striplib= | |
12269 | old_striplib= | |
12270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12271 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12272 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12273 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12274 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12276 | $as_echo "yes" >&6; } | |
12277 | else | |
12278 | # FIXME - insert some real tests, host_os isn't really good enough | |
12279 | case $host_os in | |
12280 | darwin*) | |
12281 | if test -n "$STRIP" ; then | |
12282 | striplib="$STRIP -x" | |
12283 | old_striplib="$STRIP -S" | |
12284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12285 | $as_echo "yes" >&6; } | |
12286 | else | |
12287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12288 | $as_echo "no" >&6; } | |
12289 | fi | |
12290 | ;; | |
12291 | *) | |
12292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12293 | $as_echo "no" >&6; } | |
12294 | ;; | |
12295 | esac | |
12296 | fi | |
12297 | ||
12298 | ||
12299 | ||
12300 | ||
12301 | ||
12302 | ||
12303 | ||
12304 | ||
12305 | ||
12306 | ||
12307 | ||
12308 | ||
12309 | # Report which library types will actually be built | |
12310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12311 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12313 | $as_echo "$can_build_shared" >&6; } | |
12314 | ||
12315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12316 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12317 | test "$can_build_shared" = "no" && enable_shared=no | |
12318 | ||
12319 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12320 | # are all built from PIC. | |
12321 | case $host_os in | |
12322 | aix3*) | |
12323 | test "$enable_shared" = yes && enable_static=no | |
12324 | if test -n "$RANLIB"; then | |
12325 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12326 | postinstall_cmds='$RANLIB $lib' | |
12327 | fi | |
12328 | ;; | |
12329 | ||
12330 | aix[4-9]*) | |
12331 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12332 | test "$enable_shared" = yes && enable_static=no | |
12333 | fi | |
12334 | ;; | |
12335 | esac | |
12336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12337 | $as_echo "$enable_shared" >&6; } | |
12338 | ||
12339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12340 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12341 | # Make sure either enable_shared or enable_static is yes. | |
12342 | test "$enable_shared" = yes || enable_static=yes | |
12343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12344 | $as_echo "$enable_static" >&6; } | |
12345 | ||
12346 | ||
12347 | ||
12348 | ||
12349 | fi | |
12350 | ac_ext=c | |
12351 | ac_cpp='$CPP $CPPFLAGS' | |
12352 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12353 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12354 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12355 | ||
12356 | CC="$lt_save_CC" | |
12357 | ||
12358 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
12359 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
12360 | (test "X$CXX" != "Xg++"))) ; then | |
12361 | ac_ext=cpp | |
12362 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12363 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12364 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12365 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
12367 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
12368 | if test -z "$CXXCPP"; then | |
22e05272 | 12369 | if ${ac_cv_prog_CXXCPP+:} false; then : |
0a35513e AH |
12370 | $as_echo_n "(cached) " >&6 |
12371 | else | |
12372 | # Double quotes because CXXCPP needs to be expanded | |
12373 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
12374 | do | |
12375 | ac_preproc_ok=false | |
12376 | for ac_cxx_preproc_warn_flag in '' yes | |
12377 | do | |
12378 | # Use a header file that comes with gcc, so configuring glibc | |
12379 | # with a fresh cross-compiler works. | |
12380 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12381 | # <limits.h> exists even on freestanding compilers. | |
12382 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12383 | # not just through cpp. "Syntax error" is here to catch this case. | |
12384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12385 | /* end confdefs.h. */ | |
12386 | #ifdef __STDC__ | |
12387 | # include <limits.h> | |
12388 | #else | |
12389 | # include <assert.h> | |
12390 | #endif | |
12391 | Syntax error | |
12392 | _ACEOF | |
12393 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12394 | ||
12395 | else | |
12396 | # Broken: fails on valid input. | |
12397 | continue | |
12398 | fi | |
22e05272 | 12399 | rm -f conftest.err conftest.i conftest.$ac_ext |
0a35513e AH |
12400 | |
12401 | # OK, works on sane cases. Now check whether nonexistent headers | |
12402 | # can be detected and how. | |
12403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12404 | /* end confdefs.h. */ | |
12405 | #include <ac_nonexistent.h> | |
12406 | _ACEOF | |
12407 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12408 | # Broken: success on invalid input. | |
12409 | continue | |
12410 | else | |
12411 | # Passes both tests. | |
12412 | ac_preproc_ok=: | |
12413 | break | |
12414 | fi | |
22e05272 | 12415 | rm -f conftest.err conftest.i conftest.$ac_ext |
0a35513e AH |
12416 | |
12417 | done | |
12418 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 12419 | rm -f conftest.i conftest.err conftest.$ac_ext |
0a35513e AH |
12420 | if $ac_preproc_ok; then : |
12421 | break | |
12422 | fi | |
12423 | ||
12424 | done | |
12425 | ac_cv_prog_CXXCPP=$CXXCPP | |
12426 | ||
12427 | fi | |
12428 | CXXCPP=$ac_cv_prog_CXXCPP | |
12429 | else | |
12430 | ac_cv_prog_CXXCPP=$CXXCPP | |
12431 | fi | |
12432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
12433 | $as_echo "$CXXCPP" >&6; } | |
12434 | ac_preproc_ok=false | |
12435 | for ac_cxx_preproc_warn_flag in '' yes | |
12436 | do | |
12437 | # Use a header file that comes with gcc, so configuring glibc | |
12438 | # with a fresh cross-compiler works. | |
12439 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12440 | # <limits.h> exists even on freestanding compilers. | |
12441 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12442 | # not just through cpp. "Syntax error" is here to catch this case. | |
12443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12444 | /* end confdefs.h. */ | |
12445 | #ifdef __STDC__ | |
12446 | # include <limits.h> | |
12447 | #else | |
12448 | # include <assert.h> | |
12449 | #endif | |
12450 | Syntax error | |
12451 | _ACEOF | |
12452 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12453 | ||
12454 | else | |
12455 | # Broken: fails on valid input. | |
12456 | continue | |
12457 | fi | |
22e05272 | 12458 | rm -f conftest.err conftest.i conftest.$ac_ext |
0a35513e AH |
12459 | |
12460 | # OK, works on sane cases. Now check whether nonexistent headers | |
12461 | # can be detected and how. | |
12462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12463 | /* end confdefs.h. */ | |
12464 | #include <ac_nonexistent.h> | |
12465 | _ACEOF | |
12466 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12467 | # Broken: success on invalid input. | |
12468 | continue | |
12469 | else | |
12470 | # Passes both tests. | |
12471 | ac_preproc_ok=: | |
12472 | break | |
12473 | fi | |
22e05272 | 12474 | rm -f conftest.err conftest.i conftest.$ac_ext |
0a35513e AH |
12475 | |
12476 | done | |
12477 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 12478 | rm -f conftest.i conftest.err conftest.$ac_ext |
0a35513e AH |
12479 | if $ac_preproc_ok; then : |
12480 | ||
12481 | else | |
12482 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12483 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
12484 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
12485 | See \`config.log' for more details" "$LINENO" 5; } | |
0a35513e AH |
12486 | fi |
12487 | ||
12488 | ac_ext=c | |
12489 | ac_cpp='$CPP $CPPFLAGS' | |
12490 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12491 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12492 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12493 | ||
12494 | else | |
12495 | _lt_caught_CXX_error=yes | |
12496 | fi | |
12497 | ||
12498 | ac_ext=cpp | |
12499 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12500 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12501 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12502 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12503 | ||
12504 | archive_cmds_need_lc_CXX=no | |
12505 | allow_undefined_flag_CXX= | |
12506 | always_export_symbols_CXX=no | |
12507 | archive_expsym_cmds_CXX= | |
12508 | compiler_needs_object_CXX=no | |
12509 | export_dynamic_flag_spec_CXX= | |
12510 | hardcode_direct_CXX=no | |
12511 | hardcode_direct_absolute_CXX=no | |
12512 | hardcode_libdir_flag_spec_CXX= | |
12513 | hardcode_libdir_flag_spec_ld_CXX= | |
12514 | hardcode_libdir_separator_CXX= | |
12515 | hardcode_minus_L_CXX=no | |
12516 | hardcode_shlibpath_var_CXX=unsupported | |
12517 | hardcode_automatic_CXX=no | |
12518 | inherit_rpath_CXX=no | |
12519 | module_cmds_CXX= | |
12520 | module_expsym_cmds_CXX= | |
12521 | link_all_deplibs_CXX=unknown | |
12522 | old_archive_cmds_CXX=$old_archive_cmds | |
12523 | reload_flag_CXX=$reload_flag | |
12524 | reload_cmds_CXX=$reload_cmds | |
12525 | no_undefined_flag_CXX= | |
12526 | whole_archive_flag_spec_CXX= | |
12527 | enable_shared_with_static_runtimes_CXX=no | |
12528 | ||
12529 | # Source file extension for C++ test sources. | |
12530 | ac_ext=cpp | |
12531 | ||
12532 | # Object file extension for compiled C++ test sources. | |
12533 | objext=o | |
12534 | objext_CXX=$objext | |
12535 | ||
12536 | # No sense in running all these tests if we already determined that | |
12537 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
12538 | # are currently assumed to apply to all compilers on this platform, | |
12539 | # and will be corrupted by setting them based on a non-working compiler. | |
12540 | if test "$_lt_caught_CXX_error" != yes; then | |
12541 | # Code to be used in simple compile tests | |
12542 | lt_simple_compile_test_code="int some_variable = 0;" | |
12543 | ||
12544 | # Code to be used in simple link tests | |
12545 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
12546 | ||
12547 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12548 | ||
12549 | ||
12550 | ||
12551 | ||
12552 | ||
12553 | ||
12554 | # If no C compiler was specified, use CC. | |
12555 | LTCC=${LTCC-"$CC"} | |
12556 | ||
12557 | # If no C compiler flags were specified, use CFLAGS. | |
12558 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12559 | ||
12560 | # Allow CC to be a program name with arguments. | |
12561 | compiler=$CC | |
12562 | ||
12563 | ||
12564 | # save warnings/boilerplate of simple test code | |
12565 | ac_outfile=conftest.$ac_objext | |
12566 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12567 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12568 | _lt_compiler_boilerplate=`cat conftest.err` | |
12569 | $RM conftest* | |
12570 | ||
12571 | ac_outfile=conftest.$ac_objext | |
12572 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12573 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12574 | _lt_linker_boilerplate=`cat conftest.err` | |
12575 | $RM -r conftest* | |
12576 | ||
12577 | ||
12578 | # Allow CC to be a program name with arguments. | |
12579 | lt_save_CC=$CC | |
12580 | lt_save_LD=$LD | |
12581 | lt_save_GCC=$GCC | |
12582 | GCC=$GXX | |
12583 | lt_save_with_gnu_ld=$with_gnu_ld | |
12584 | lt_save_path_LD=$lt_cv_path_LD | |
12585 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12586 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
12587 | else | |
12588 | $as_unset lt_cv_prog_gnu_ld | |
12589 | fi | |
12590 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
12591 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
12592 | else | |
12593 | $as_unset lt_cv_path_LD | |
12594 | fi | |
12595 | test -z "${LDCXX+set}" || LD=$LDCXX | |
12596 | CC=${CXX-"c++"} | |
12597 | compiler=$CC | |
12598 | compiler_CXX=$CC | |
12599 | for cc_temp in $compiler""; do | |
12600 | case $cc_temp in | |
12601 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12602 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12603 | \-*) ;; | |
12604 | *) break;; | |
12605 | esac | |
12606 | done | |
12607 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
12608 | ||
12609 | ||
12610 | if test -n "$compiler"; then | |
12611 | # We don't want -fno-exception when compiling C++ code, so set the | |
12612 | # no_builtin_flag separately | |
12613 | if test "$GXX" = yes; then | |
12614 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12615 | else | |
12616 | lt_prog_compiler_no_builtin_flag_CXX= | |
12617 | fi | |
12618 | ||
12619 | if test "$GXX" = yes; then | |
12620 | # Set up default GNU C++ configuration | |
12621 | ||
12622 | ||
12623 | ||
12624 | # Check whether --with-gnu-ld was given. | |
12625 | if test "${with_gnu_ld+set}" = set; then : | |
12626 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
12627 | else | |
12628 | with_gnu_ld=no | |
12629 | fi | |
12630 | ||
12631 | ac_prog=ld | |
12632 | if test "$GCC" = yes; then | |
12633 | # Check if gcc -print-prog-name=ld gives a path. | |
12634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
12635 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
12636 | case $host in | |
12637 | *-*-mingw*) | |
12638 | # gcc leaves a trailing carriage return which upsets mingw | |
12639 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12640 | *) | |
12641 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12642 | esac | |
12643 | case $ac_prog in | |
12644 | # Accept absolute paths. | |
12645 | [\\/]* | ?:[\\/]*) | |
12646 | re_direlt='/[^/][^/]*/\.\./' | |
12647 | # Canonicalize the pathname of ld | |
12648 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
12649 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
12650 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
12651 | done | |
12652 | test -z "$LD" && LD="$ac_prog" | |
12653 | ;; | |
12654 | "") | |
12655 | # If it fails, then pretend we aren't using GCC. | |
12656 | ac_prog=ld | |
12657 | ;; | |
12658 | *) | |
12659 | # If it is relative, then search for the first ld in PATH. | |
12660 | with_gnu_ld=unknown | |
12661 | ;; | |
12662 | esac | |
12663 | elif test "$with_gnu_ld" = yes; then | |
12664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
12665 | $as_echo_n "checking for GNU ld... " >&6; } | |
12666 | else | |
12667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
12668 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
12669 | fi | |
22e05272 | 12670 | if ${lt_cv_path_LD+:} false; then : |
0a35513e AH |
12671 | $as_echo_n "(cached) " >&6 |
12672 | else | |
12673 | if test -z "$LD"; then | |
12674 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
12675 | for ac_dir in $PATH; do | |
12676 | IFS="$lt_save_ifs" | |
12677 | test -z "$ac_dir" && ac_dir=. | |
12678 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
12679 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
12680 | # Check to see if the program is GNU ld. I'd rather use --version, | |
12681 | # but apparently some variants of GNU ld only accept -v. | |
12682 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
12683 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
12684 | *GNU* | *'with BFD'*) | |
12685 | test "$with_gnu_ld" != no && break | |
12686 | ;; | |
12687 | *) | |
12688 | test "$with_gnu_ld" != yes && break | |
12689 | ;; | |
12690 | esac | |
12691 | fi | |
12692 | done | |
12693 | IFS="$lt_save_ifs" | |
12694 | else | |
12695 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
12696 | fi | |
12697 | fi | |
12698 | ||
12699 | LD="$lt_cv_path_LD" | |
12700 | if test -n "$LD"; then | |
12701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
12702 | $as_echo "$LD" >&6; } | |
12703 | else | |
12704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12705 | $as_echo "no" >&6; } | |
12706 | fi | |
22e05272 | 12707 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
0a35513e AH |
12708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
12709 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 12710 | if ${lt_cv_prog_gnu_ld+:} false; then : |
0a35513e AH |
12711 | $as_echo_n "(cached) " >&6 |
12712 | else | |
12713 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
12714 | case `$LD -v 2>&1 </dev/null` in | |
12715 | *GNU* | *'with BFD'*) | |
12716 | lt_cv_prog_gnu_ld=yes | |
12717 | ;; | |
12718 | *) | |
12719 | lt_cv_prog_gnu_ld=no | |
12720 | ;; | |
12721 | esac | |
12722 | fi | |
12723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
12724 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
12725 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
12726 | ||
12727 | ||
12728 | ||
12729 | ||
12730 | ||
12731 | ||
12732 | ||
12733 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
12734 | # archiving commands below assume that GNU ld is being used. | |
12735 | if test "$with_gnu_ld" = yes; then | |
a699d672 L |
12736 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
12737 | archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
0a35513e AH |
12738 | |
12739 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12740 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12741 | ||
12742 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12743 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
12744 | # investigate it a little bit more. (MM) | |
12745 | wlarc='${wl}' | |
12746 | ||
12747 | # ancient GNU ld didn't support --whole-archive et. al. | |
12748 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
12749 | $GREP 'no-whole-archive' > /dev/null; then | |
12750 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12751 | else | |
12752 | whole_archive_flag_spec_CXX= | |
12753 | fi | |
12754 | else | |
12755 | with_gnu_ld=no | |
12756 | wlarc= | |
12757 | ||
12758 | # A generic and very simple default shared library creation | |
12759 | # command for GNU C++ for the case where it uses the native | |
12760 | # linker, instead of GNU ld. If possible, this setting should | |
12761 | # overridden to take advantage of the native linker features on | |
12762 | # the platform it is being used on. | |
12763 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12764 | fi | |
12765 | ||
12766 | # Commands to make compiler produce verbose output that lists | |
12767 | # what "hidden" libraries, object files and flags are used when | |
12768 | # linking a shared library. | |
12769 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
12770 | ||
12771 | else | |
12772 | GXX=no | |
12773 | with_gnu_ld=no | |
12774 | wlarc= | |
12775 | fi | |
12776 | ||
12777 | # PORTME: fill in a description of your system's C++ link characteristics | |
12778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12779 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12780 | ld_shlibs_CXX=yes | |
12781 | case $host_os in | |
12782 | aix3*) | |
12783 | # FIXME: insert proper C++ library support | |
12784 | ld_shlibs_CXX=no | |
12785 | ;; | |
12786 | aix[4-9]*) | |
12787 | if test "$host_cpu" = ia64; then | |
12788 | # On IA64, the linker does run time linking by default, so we don't | |
12789 | # have to do anything special. | |
12790 | aix_use_runtimelinking=no | |
12791 | exp_sym_flag='-Bexport' | |
12792 | no_entry_flag="" | |
12793 | else | |
12794 | aix_use_runtimelinking=no | |
12795 | ||
12796 | # Test if we are trying to use run time linking or normal | |
12797 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12798 | # need to do runtime linking. | |
12799 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
12800 | for ld_flag in $LDFLAGS; do | |
12801 | case $ld_flag in | |
12802 | *-brtl*) | |
12803 | aix_use_runtimelinking=yes | |
12804 | break | |
12805 | ;; | |
12806 | esac | |
12807 | done | |
12808 | ;; | |
12809 | esac | |
12810 | ||
12811 | exp_sym_flag='-bexport' | |
12812 | no_entry_flag='-bnoentry' | |
12813 | fi | |
12814 | ||
12815 | # When large executables or shared objects are built, AIX ld can | |
12816 | # have problems creating the table of contents. If linking a library | |
12817 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12818 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12819 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12820 | ||
12821 | archive_cmds_CXX='' | |
12822 | hardcode_direct_CXX=yes | |
12823 | hardcode_direct_absolute_CXX=yes | |
12824 | hardcode_libdir_separator_CXX=':' | |
12825 | link_all_deplibs_CXX=yes | |
12826 | file_list_spec_CXX='${wl}-f,' | |
12827 | ||
12828 | if test "$GXX" = yes; then | |
12829 | case $host_os in aix4.[012]|aix4.[012].*) | |
12830 | # We only want to do this on AIX 4.2 and lower, the check | |
12831 | # below for broken collect2 doesn't work under 4.3+ | |
12832 | collect2name=`${CC} -print-prog-name=collect2` | |
12833 | if test -f "$collect2name" && | |
12834 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
12835 | then | |
12836 | # We have reworked collect2 | |
12837 | : | |
12838 | else | |
12839 | # We have old collect2 | |
12840 | hardcode_direct_CXX=unsupported | |
12841 | # It fails to find uninstalled libraries when the uninstalled | |
12842 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12843 | # to unsupported forces relinking | |
12844 | hardcode_minus_L_CXX=yes | |
12845 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12846 | hardcode_libdir_separator_CXX= | |
12847 | fi | |
12848 | esac | |
12849 | shared_flag='-shared' | |
12850 | if test "$aix_use_runtimelinking" = yes; then | |
12851 | shared_flag="$shared_flag "'${wl}-G' | |
12852 | fi | |
12853 | else | |
12854 | # not using gcc | |
12855 | if test "$host_cpu" = ia64; then | |
12856 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12857 | # chokes on -Wl,-G. The following line is correct: | |
12858 | shared_flag='-G' | |
12859 | else | |
12860 | if test "$aix_use_runtimelinking" = yes; then | |
12861 | shared_flag='${wl}-G' | |
12862 | else | |
12863 | shared_flag='${wl}-bM:SRE' | |
12864 | fi | |
12865 | fi | |
12866 | fi | |
12867 | ||
12868 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
12869 | # It seems that -bexpall does not export symbols beginning with | |
12870 | # underscore (_), so it is better to generate a list of symbols to | |
12871 | # export. | |
12872 | always_export_symbols_CXX=yes | |
12873 | if test "$aix_use_runtimelinking" = yes; then | |
12874 | # Warning - without using the other runtime loading flags (-brtl), | |
12875 | # -berok will link without error, but may produce a broken library. | |
12876 | allow_undefined_flag_CXX='-berok' | |
12877 | # Determine the default libpath from the value encoded in an empty | |
12878 | # executable. | |
12879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12880 | /* end confdefs.h. */ | |
12881 | ||
12882 | int | |
12883 | main () | |
12884 | { | |
12885 | ||
12886 | ; | |
12887 | return 0; | |
12888 | } | |
12889 | _ACEOF | |
12890 | if ac_fn_cxx_try_link "$LINENO"; then : | |
12891 | ||
12892 | lt_aix_libpath_sed=' | |
12893 | /Import File Strings/,/^$/ { | |
12894 | /^0/ { | |
12895 | s/^0 *\(.*\)$/\1/ | |
12896 | p | |
12897 | } | |
12898 | }' | |
12899 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12900 | # Check for a 64-bit object if we didn't find anything. | |
12901 | if test -z "$aix_libpath"; then | |
12902 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12903 | fi | |
12904 | fi | |
12905 | rm -f core conftest.err conftest.$ac_objext \ | |
12906 | conftest$ac_exeext conftest.$ac_ext | |
12907 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12908 | ||
12909 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12910 | ||
12911 | archive_expsym_cmds_CXX='$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" | |
12912 | else | |
12913 | if test "$host_cpu" = ia64; then | |
12914 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
12915 | allow_undefined_flag_CXX="-z nodefs" | |
12916 | archive_expsym_cmds_CXX="\$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" | |
12917 | else | |
12918 | # Determine the default libpath from the value encoded in an | |
12919 | # empty executable. | |
12920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12921 | /* end confdefs.h. */ | |
12922 | ||
12923 | int | |
12924 | main () | |
12925 | { | |
12926 | ||
12927 | ; | |
12928 | return 0; | |
12929 | } | |
12930 | _ACEOF | |
12931 | if ac_fn_cxx_try_link "$LINENO"; then : | |
12932 | ||
12933 | lt_aix_libpath_sed=' | |
12934 | /Import File Strings/,/^$/ { | |
12935 | /^0/ { | |
12936 | s/^0 *\(.*\)$/\1/ | |
12937 | p | |
12938 | } | |
12939 | }' | |
12940 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12941 | # Check for a 64-bit object if we didn't find anything. | |
12942 | if test -z "$aix_libpath"; then | |
12943 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12944 | fi | |
12945 | fi | |
12946 | rm -f core conftest.err conftest.$ac_objext \ | |
12947 | conftest$ac_exeext conftest.$ac_ext | |
12948 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12949 | ||
12950 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12951 | # Warning - without using the other run time loading flags, | |
12952 | # -berok will link without error, but may produce a broken library. | |
12953 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
12954 | allow_undefined_flag_CXX=' ${wl}-berok' | |
12955 | if test "$with_gnu_ld" = yes; then | |
12956 | # We only use this code for GNU lds that support --whole-archive. | |
12957 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12958 | else | |
12959 | # Exported symbols can be pulled into shared objects from archives | |
12960 | whole_archive_flag_spec_CXX='$convenience' | |
12961 | fi | |
12962 | archive_cmds_need_lc_CXX=yes | |
12963 | # This is similar to how AIX traditionally builds its shared | |
12964 | # libraries. | |
12965 | archive_expsym_cmds_CXX="\$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' | |
12966 | fi | |
12967 | fi | |
12968 | ;; | |
12969 | ||
12970 | beos*) | |
12971 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12972 | allow_undefined_flag_CXX=unsupported | |
12973 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12974 | # support --undefined. This deserves some investigation. FIXME | |
12975 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12976 | else | |
12977 | ld_shlibs_CXX=no | |
12978 | fi | |
12979 | ;; | |
12980 | ||
12981 | chorus*) | |
12982 | case $cc_basename in | |
12983 | *) | |
12984 | # FIXME: insert proper C++ library support | |
12985 | ld_shlibs_CXX=no | |
12986 | ;; | |
12987 | esac | |
12988 | ;; | |
12989 | ||
12990 | cygwin* | mingw* | pw32* | cegcc*) | |
12991 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
12992 | # as there is no search path for DLLs. | |
12993 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12994 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | |
12995 | allow_undefined_flag_CXX=unsupported | |
12996 | always_export_symbols_CXX=no | |
12997 | enable_shared_with_static_runtimes_CXX=yes | |
12998 | ||
12999 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
13000 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13001 | # If the export-symbols file already is a .def file (1st line | |
13002 | # is EXPORTS), use it as is; otherwise, prepend... | |
13003 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13004 | cp $export_symbols $output_objdir/$soname.def; | |
13005 | else | |
13006 | echo EXPORTS > $output_objdir/$soname.def; | |
13007 | cat $export_symbols >> $output_objdir/$soname.def; | |
13008 | fi~ | |
13009 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13010 | else | |
13011 | ld_shlibs_CXX=no | |
13012 | fi | |
13013 | ;; | |
13014 | darwin* | rhapsody*) | |
13015 | ||
13016 | ||
13017 | archive_cmds_need_lc_CXX=no | |
13018 | hardcode_direct_CXX=no | |
13019 | hardcode_automatic_CXX=yes | |
13020 | hardcode_shlibpath_var_CXX=unsupported | |
13021 | if test "$lt_cv_ld_force_load" = "yes"; then | |
13022 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
13023 | else | |
13024 | whole_archive_flag_spec_CXX='' | |
13025 | fi | |
13026 | link_all_deplibs_CXX=yes | |
13027 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
13028 | case $cc_basename in | |
13029 | ifort*) _lt_dar_can_shared=yes ;; | |
13030 | *) _lt_dar_can_shared=$GCC ;; | |
13031 | esac | |
13032 | if test "$_lt_dar_can_shared" = "yes"; then | |
13033 | output_verbose_link_cmd=func_echo_all | |
13034 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
13035 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
13036 | archive_expsym_cmds_CXX="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}" | |
13037 | module_expsym_cmds_CXX="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}" | |
13038 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
13039 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" | |
13040 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" | |
13041 | fi | |
13042 | ||
13043 | else | |
13044 | ld_shlibs_CXX=no | |
13045 | fi | |
13046 | ||
13047 | ;; | |
13048 | ||
13049 | dgux*) | |
13050 | case $cc_basename in | |
13051 | ec++*) | |
13052 | # FIXME: insert proper C++ library support | |
13053 | ld_shlibs_CXX=no | |
13054 | ;; | |
13055 | ghcx*) | |
13056 | # Green Hills C++ Compiler | |
13057 | # FIXME: insert proper C++ library support | |
13058 | ld_shlibs_CXX=no | |
13059 | ;; | |
13060 | *) | |
13061 | # FIXME: insert proper C++ library support | |
13062 | ld_shlibs_CXX=no | |
13063 | ;; | |
13064 | esac | |
13065 | ;; | |
13066 | ||
c6084f68 | 13067 | freebsd2.*) |
0a35513e AH |
13068 | # C++ shared libraries reported to be fairly broken before |
13069 | # switch to ELF | |
13070 | ld_shlibs_CXX=no | |
13071 | ;; | |
13072 | ||
13073 | freebsd-elf*) | |
13074 | archive_cmds_need_lc_CXX=no | |
13075 | ;; | |
13076 | ||
13077 | freebsd* | dragonfly*) | |
13078 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
13079 | # conventions | |
13080 | ld_shlibs_CXX=yes | |
13081 | ;; | |
13082 | ||
13083 | gnu*) | |
13084 | ;; | |
13085 | ||
13086 | haiku*) | |
13087 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13088 | link_all_deplibs_CXX=yes | |
13089 | ;; | |
13090 | ||
13091 | hpux9*) | |
13092 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13093 | hardcode_libdir_separator_CXX=: | |
13094 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13095 | hardcode_direct_CXX=yes | |
13096 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13097 | # but as the default | |
13098 | # location of the library. | |
13099 | ||
13100 | case $cc_basename in | |
13101 | CC*) | |
13102 | # FIXME: insert proper C++ library support | |
13103 | ld_shlibs_CXX=no | |
13104 | ;; | |
13105 | aCC*) | |
13106 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
13107 | # Commands to make compiler produce verbose output that lists | |
13108 | # what "hidden" libraries, object files and flags are used when | |
13109 | # linking a shared library. | |
13110 | # | |
13111 | # There doesn't appear to be a way to prevent this compiler from | |
13112 | # explicitly linking system object files so we need to strip them | |
13113 | # from the output so that they don't get included in the library | |
13114 | # dependencies. | |
13115 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13116 | ;; | |
13117 | *) | |
13118 | if test "$GXX" = yes; then | |
13119 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
13120 | else | |
13121 | # FIXME: insert proper C++ library support | |
13122 | ld_shlibs_CXX=no | |
13123 | fi | |
13124 | ;; | |
13125 | esac | |
13126 | ;; | |
13127 | ||
13128 | hpux10*|hpux11*) | |
13129 | if test $with_gnu_ld = no; then | |
13130 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13131 | hardcode_libdir_separator_CXX=: | |
13132 | ||
13133 | case $host_cpu in | |
13134 | hppa*64*|ia64*) | |
13135 | ;; | |
13136 | *) | |
13137 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13138 | ;; | |
13139 | esac | |
13140 | fi | |
13141 | case $host_cpu in | |
13142 | hppa*64*|ia64*) | |
13143 | hardcode_direct_CXX=no | |
13144 | hardcode_shlibpath_var_CXX=no | |
13145 | ;; | |
13146 | *) | |
13147 | hardcode_direct_CXX=yes | |
13148 | hardcode_direct_absolute_CXX=yes | |
13149 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13150 | # but as the default | |
13151 | # location of the library. | |
13152 | ;; | |
13153 | esac | |
13154 | ||
13155 | case $cc_basename in | |
13156 | CC*) | |
13157 | # FIXME: insert proper C++ library support | |
13158 | ld_shlibs_CXX=no | |
13159 | ;; | |
13160 | aCC*) | |
13161 | case $host_cpu in | |
13162 | hppa*64*) | |
13163 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13164 | ;; | |
13165 | ia64*) | |
13166 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13167 | ;; | |
13168 | *) | |
13169 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13170 | ;; | |
13171 | esac | |
13172 | # Commands to make compiler produce verbose output that lists | |
13173 | # what "hidden" libraries, object files and flags are used when | |
13174 | # linking a shared library. | |
13175 | # | |
13176 | # There doesn't appear to be a way to prevent this compiler from | |
13177 | # explicitly linking system object files so we need to strip them | |
13178 | # from the output so that they don't get included in the library | |
13179 | # dependencies. | |
13180 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13181 | ;; | |
13182 | *) | |
13183 | if test "$GXX" = yes; then | |
13184 | if test $with_gnu_ld = no; then | |
13185 | case $host_cpu in | |
13186 | hppa*64*) | |
13187 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13188 | ;; | |
13189 | ia64*) | |
13190 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13191 | ;; | |
13192 | *) | |
13193 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13194 | ;; | |
13195 | esac | |
13196 | fi | |
13197 | else | |
13198 | # FIXME: insert proper C++ library support | |
13199 | ld_shlibs_CXX=no | |
13200 | fi | |
13201 | ;; | |
13202 | esac | |
13203 | ;; | |
13204 | ||
13205 | interix[3-9]*) | |
13206 | hardcode_direct_CXX=no | |
13207 | hardcode_shlibpath_var_CXX=no | |
13208 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13209 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13210 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13211 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13212 | # default) and relocated if they conflict, which is a slow very memory | |
13213 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13214 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13215 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13216 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
13217 | archive_expsym_cmds_CXX='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' | |
13218 | ;; | |
13219 | irix5* | irix6*) | |
13220 | case $cc_basename in | |
13221 | CC*) | |
13222 | # SGI C++ | |
13223 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13224 | ||
13225 | # Archives containing C++ object files must be created using | |
13226 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
13227 | # necessary to make sure instantiated templates are included | |
13228 | # in the archive. | |
13229 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
13230 | ;; | |
13231 | *) | |
13232 | if test "$GXX" = yes; then | |
13233 | if test "$with_gnu_ld" = no; then | |
13234 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' | |
13235 | else | |
13236 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' | |
13237 | fi | |
13238 | fi | |
13239 | link_all_deplibs_CXX=yes | |
13240 | ;; | |
13241 | esac | |
13242 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13243 | hardcode_libdir_separator_CXX=: | |
13244 | inherit_rpath_CXX=yes | |
13245 | ;; | |
13246 | ||
13247 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
13248 | case $cc_basename in | |
13249 | KCC*) | |
13250 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13251 | ||
13252 | # KCC will only create a shared library if the output file | |
13253 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13254 | # to its proper name (with version) after linking. | |
13255 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
13256 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
13257 | # Commands to make compiler produce verbose output that lists | |
13258 | # what "hidden" libraries, object files and flags are used when | |
13259 | # linking a shared library. | |
13260 | # | |
13261 | # There doesn't appear to be a way to prevent this compiler from | |
13262 | # explicitly linking system object files so we need to strip them | |
13263 | # from the output so that they don't get included in the library | |
13264 | # dependencies. | |
13265 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13266 | ||
13267 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13268 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13269 | ||
13270 | # Archives containing C++ object files must be created using | |
13271 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13272 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13273 | ;; | |
13274 | icpc* | ecpc* ) | |
13275 | # Intel C++ | |
13276 | with_gnu_ld=yes | |
13277 | # version 8.0 and above of icpc choke on multiply defined symbols | |
13278 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
13279 | # earlier do not add the objects themselves. | |
13280 | case `$CC -V 2>&1` in | |
13281 | *"Version 7."*) | |
13282 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13283 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13284 | ;; | |
13285 | *) # Version 8.0 or newer | |
13286 | tmp_idyn= | |
13287 | case $host_cpu in | |
13288 | ia64*) tmp_idyn=' -i_dynamic';; | |
13289 | esac | |
13290 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13291 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13292 | ;; | |
13293 | esac | |
13294 | archive_cmds_need_lc_CXX=no | |
13295 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13296 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13297 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13298 | ;; | |
13299 | pgCC* | pgcpp*) | |
13300 | # Portland Group C++ compiler | |
13301 | case `$CC -V` in | |
13302 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | |
13303 | prelink_cmds_CXX='tpldir=Template.dir~ | |
13304 | rm -rf $tpldir~ | |
13305 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
22e05272 | 13306 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
0a35513e AH |
13307 | old_archive_cmds_CXX='tpldir=Template.dir~ |
13308 | rm -rf $tpldir~ | |
13309 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
22e05272 | 13310 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
0a35513e AH |
13311 | $RANLIB $oldlib' |
13312 | archive_cmds_CXX='tpldir=Template.dir~ | |
13313 | rm -rf $tpldir~ | |
13314 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
22e05272 | 13315 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
0a35513e AH |
13316 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
13317 | rm -rf $tpldir~ | |
13318 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
22e05272 | 13319 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
0a35513e AH |
13320 | ;; |
13321 | *) # Version 6 and above use weak symbols | |
13322 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13323 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
13324 | ;; | |
13325 | esac | |
13326 | ||
13327 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
13328 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13329 | whole_archive_flag_spec_CXX='${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' | |
13330 | ;; | |
13331 | cxx*) | |
13332 | # Compaq C++ | |
13333 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13334 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
13335 | ||
13336 | runpath_var=LD_RUN_PATH | |
13337 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13338 | hardcode_libdir_separator_CXX=: | |
13339 | ||
13340 | # Commands to make compiler produce verbose output that lists | |
13341 | # what "hidden" libraries, object files and flags are used when | |
13342 | # linking a shared library. | |
13343 | # | |
13344 | # There doesn't appear to be a way to prevent this compiler from | |
13345 | # explicitly linking system object files so we need to strip them | |
13346 | # from the output so that they don't get included in the library | |
13347 | # dependencies. | |
13348 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' | |
13349 | ;; | |
13350 | xl* | mpixl* | bgxl*) | |
13351 | # IBM XL 8.0 on PPC, with GNU ld | |
13352 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13353 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13354 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13355 | if test "x$supports_anon_versioning" = xyes; then | |
13356 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
13357 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13358 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13359 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13360 | fi | |
13361 | ;; | |
13362 | *) | |
13363 | case `$CC -V 2>&1 | sed 5q` in | |
13364 | *Sun\ C*) | |
13365 | # Sun C++ 5.9 | |
13366 | no_undefined_flag_CXX=' -zdefs' | |
13367 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13368 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' | |
13369 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13370 | whole_archive_flag_spec_CXX='${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' | |
13371 | compiler_needs_object_CXX=yes | |
13372 | ||
13373 | # Not sure whether something based on | |
13374 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
13375 | # would be better. | |
13376 | output_verbose_link_cmd='func_echo_all' | |
13377 | ||
13378 | # Archives containing C++ object files must be created using | |
13379 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13380 | # necessary to make sure instantiated templates are included | |
13381 | # in the archive. | |
13382 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13383 | ;; | |
13384 | esac | |
13385 | ;; | |
13386 | esac | |
13387 | ;; | |
13388 | ||
13389 | lynxos*) | |
13390 | # FIXME: insert proper C++ library support | |
13391 | ld_shlibs_CXX=no | |
13392 | ;; | |
13393 | ||
13394 | m88k*) | |
13395 | # FIXME: insert proper C++ library support | |
13396 | ld_shlibs_CXX=no | |
13397 | ;; | |
13398 | ||
13399 | mvs*) | |
13400 | case $cc_basename in | |
13401 | cxx*) | |
13402 | # FIXME: insert proper C++ library support | |
13403 | ld_shlibs_CXX=no | |
13404 | ;; | |
13405 | *) | |
13406 | # FIXME: insert proper C++ library support | |
13407 | ld_shlibs_CXX=no | |
13408 | ;; | |
13409 | esac | |
13410 | ;; | |
13411 | ||
13412 | netbsd*) | |
13413 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13414 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13415 | wlarc= | |
13416 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13417 | hardcode_direct_CXX=yes | |
13418 | hardcode_shlibpath_var_CXX=no | |
13419 | fi | |
13420 | # Workaround some broken pre-1.5 toolchains | |
13421 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
13422 | ;; | |
13423 | ||
13424 | *nto* | *qnx*) | |
13425 | ld_shlibs_CXX=yes | |
13426 | ;; | |
13427 | ||
13428 | openbsd2*) | |
13429 | # C++ shared libraries are fairly broken | |
13430 | ld_shlibs_CXX=no | |
13431 | ;; | |
13432 | ||
13433 | openbsd*) | |
13434 | if test -f /usr/libexec/ld.so; then | |
13435 | hardcode_direct_CXX=yes | |
13436 | hardcode_shlibpath_var_CXX=no | |
13437 | hardcode_direct_absolute_CXX=yes | |
13438 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13439 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13440 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13441 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13442 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13443 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13444 | fi | |
13445 | output_verbose_link_cmd=func_echo_all | |
13446 | else | |
13447 | ld_shlibs_CXX=no | |
13448 | fi | |
13449 | ;; | |
13450 | ||
13451 | osf3* | osf4* | osf5*) | |
13452 | case $cc_basename in | |
13453 | KCC*) | |
13454 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13455 | ||
13456 | # KCC will only create a shared library if the output file | |
13457 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13458 | # to its proper name (with version) after linking. | |
13459 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
13460 | ||
13461 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13462 | hardcode_libdir_separator_CXX=: | |
13463 | ||
13464 | # Archives containing C++ object files must be created using | |
13465 | # the KAI C++ compiler. | |
13466 | case $host in | |
13467 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
13468 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
13469 | esac | |
13470 | ;; | |
13471 | RCC*) | |
13472 | # Rational C++ 2.4.1 | |
13473 | # FIXME: insert proper C++ library support | |
13474 | ld_shlibs_CXX=no | |
13475 | ;; | |
13476 | cxx*) | |
13477 | case $host in | |
13478 | osf3*) | |
13479 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13480 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13481 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13482 | ;; | |
13483 | *) | |
13484 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
13485 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13486 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
13487 | echo "-hidden">> $lib.exp~ | |
13488 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ | |
13489 | $RM $lib.exp' | |
13490 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13491 | ;; | |
13492 | esac | |
13493 | ||
13494 | hardcode_libdir_separator_CXX=: | |
13495 | ||
13496 | # Commands to make compiler produce verbose output that lists | |
13497 | # what "hidden" libraries, object files and flags are used when | |
13498 | # linking a shared library. | |
13499 | # | |
13500 | # There doesn't appear to be a way to prevent this compiler from | |
13501 | # explicitly linking system object files so we need to strip them | |
13502 | # from the output so that they don't get included in the library | |
13503 | # dependencies. | |
13504 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13505 | ;; | |
13506 | *) | |
13507 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13508 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13509 | case $host in | |
13510 | osf3*) | |
13511 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' | |
13512 | ;; | |
13513 | *) | |
13514 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' | |
13515 | ;; | |
13516 | esac | |
13517 | ||
13518 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13519 | hardcode_libdir_separator_CXX=: | |
13520 | ||
13521 | # Commands to make compiler produce verbose output that lists | |
13522 | # what "hidden" libraries, object files and flags are used when | |
13523 | # linking a shared library. | |
13524 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13525 | ||
13526 | else | |
13527 | # FIXME: insert proper C++ library support | |
13528 | ld_shlibs_CXX=no | |
13529 | fi | |
13530 | ;; | |
13531 | esac | |
13532 | ;; | |
13533 | ||
13534 | psos*) | |
13535 | # FIXME: insert proper C++ library support | |
13536 | ld_shlibs_CXX=no | |
13537 | ;; | |
13538 | ||
13539 | sunos4*) | |
13540 | case $cc_basename in | |
13541 | CC*) | |
13542 | # Sun C++ 4.x | |
13543 | # FIXME: insert proper C++ library support | |
13544 | ld_shlibs_CXX=no | |
13545 | ;; | |
13546 | lcc*) | |
13547 | # Lucid | |
13548 | # FIXME: insert proper C++ library support | |
13549 | ld_shlibs_CXX=no | |
13550 | ;; | |
13551 | *) | |
13552 | # FIXME: insert proper C++ library support | |
13553 | ld_shlibs_CXX=no | |
13554 | ;; | |
13555 | esac | |
13556 | ;; | |
13557 | ||
13558 | solaris*) | |
13559 | case $cc_basename in | |
13560 | CC*) | |
13561 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13562 | archive_cmds_need_lc_CXX=yes | |
13563 | no_undefined_flag_CXX=' -zdefs' | |
13564 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13565 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13566 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13567 | ||
13568 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13569 | hardcode_shlibpath_var_CXX=no | |
13570 | case $host_os in | |
13571 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13572 | *) | |
13573 | # The compiler driver will combine and reorder linker options, | |
13574 | # but understands `-z linker_flag'. | |
13575 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13576 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
13577 | ;; | |
13578 | esac | |
13579 | link_all_deplibs_CXX=yes | |
13580 | ||
13581 | output_verbose_link_cmd='func_echo_all' | |
13582 | ||
13583 | # Archives containing C++ object files must be created using | |
13584 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13585 | # necessary to make sure instantiated templates are included | |
13586 | # in the archive. | |
13587 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13588 | ;; | |
13589 | gcx*) | |
13590 | # Green Hills C++ Compiler | |
13591 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13592 | ||
13593 | # The C++ compiler must be used to create the archive. | |
13594 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
13595 | ;; | |
13596 | *) | |
13597 | # GNU C++ compiler with Solaris linker | |
13598 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13599 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
13600 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
13601 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13602 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13603 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13604 | ||
13605 | # Commands to make compiler produce verbose output that lists | |
13606 | # what "hidden" libraries, object files and flags are used when | |
13607 | # linking a shared library. | |
13608 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13609 | else | |
13610 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
13611 | # platform. | |
13612 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13613 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13614 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13615 | ||
13616 | # Commands to make compiler produce verbose output that lists | |
13617 | # what "hidden" libraries, object files and flags are used when | |
13618 | # linking a shared library. | |
13619 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13620 | fi | |
13621 | ||
13622 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
13623 | case $host_os in | |
13624 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13625 | *) | |
13626 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13627 | ;; | |
13628 | esac | |
13629 | fi | |
13630 | ;; | |
13631 | esac | |
13632 | ;; | |
13633 | ||
13634 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13635 | no_undefined_flag_CXX='${wl}-z,text' | |
13636 | archive_cmds_need_lc_CXX=no | |
13637 | hardcode_shlibpath_var_CXX=no | |
13638 | runpath_var='LD_RUN_PATH' | |
13639 | ||
13640 | case $cc_basename in | |
13641 | CC*) | |
13642 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13643 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13644 | ;; | |
13645 | *) | |
13646 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13647 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13648 | ;; | |
13649 | esac | |
13650 | ;; | |
13651 | ||
13652 | sysv5* | sco3.2v5* | sco5v6*) | |
13653 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13654 | # link with -lc, and that would cause any symbols used from libc to | |
13655 | # always be unresolved, which means just about no library would | |
13656 | # ever link correctly. If we're not using GNU ld we use -z text | |
13657 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13658 | # as -z defs. | |
13659 | no_undefined_flag_CXX='${wl}-z,text' | |
13660 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
13661 | archive_cmds_need_lc_CXX=no | |
13662 | hardcode_shlibpath_var_CXX=no | |
13663 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
13664 | hardcode_libdir_separator_CXX=':' | |
13665 | link_all_deplibs_CXX=yes | |
13666 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
13667 | runpath_var='LD_RUN_PATH' | |
13668 | ||
13669 | case $cc_basename in | |
13670 | CC*) | |
13671 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13672 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13673 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | |
13674 | '"$old_archive_cmds_CXX" | |
13675 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
13676 | '"$reload_cmds_CXX" | |
13677 | ;; | |
13678 | *) | |
13679 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13680 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13681 | ;; | |
13682 | esac | |
13683 | ;; | |
13684 | ||
13685 | tandem*) | |
13686 | case $cc_basename in | |
13687 | NCC*) | |
13688 | # NonStop-UX NCC 3.20 | |
13689 | # FIXME: insert proper C++ library support | |
13690 | ld_shlibs_CXX=no | |
13691 | ;; | |
13692 | *) | |
13693 | # FIXME: insert proper C++ library support | |
13694 | ld_shlibs_CXX=no | |
13695 | ;; | |
13696 | esac | |
13697 | ;; | |
13698 | ||
13699 | vxworks*) | |
13700 | # FIXME: insert proper C++ library support | |
13701 | ld_shlibs_CXX=no | |
13702 | ;; | |
13703 | ||
13704 | *) | |
13705 | # FIXME: insert proper C++ library support | |
13706 | ld_shlibs_CXX=no | |
13707 | ;; | |
13708 | esac | |
13709 | ||
13710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
13711 | $as_echo "$ld_shlibs_CXX" >&6; } | |
13712 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13713 | ||
13714 | GCC_CXX="$GXX" | |
13715 | LD_CXX="$LD" | |
13716 | ||
13717 | ## CAVEAT EMPTOR: | |
13718 | ## There is no encapsulation within the following macros, do not change | |
13719 | ## the running order or otherwise move them around unless you know exactly | |
13720 | ## what you are doing... | |
13721 | # Dependencies to place before and after the object being linked: | |
13722 | predep_objects_CXX= | |
13723 | postdep_objects_CXX= | |
13724 | predeps_CXX= | |
13725 | postdeps_CXX= | |
13726 | compiler_lib_search_path_CXX= | |
13727 | ||
13728 | cat > conftest.$ac_ext <<_LT_EOF | |
13729 | class Foo | |
13730 | { | |
13731 | public: | |
13732 | Foo (void) { a = 0; } | |
13733 | private: | |
13734 | int a; | |
13735 | }; | |
13736 | _LT_EOF | |
13737 | ||
13738 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13739 | (eval $ac_compile) 2>&5 | |
13740 | ac_status=$? | |
13741 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13742 | test $ac_status = 0; }; then | |
13743 | # Parse the compiler output and extract the necessary | |
13744 | # objects, libraries and library flags. | |
13745 | ||
13746 | # Sentinel used to keep track of whether or not we are before | |
13747 | # the conftest object file. | |
13748 | pre_test_object_deps_done=no | |
13749 | ||
13750 | for p in `eval "$output_verbose_link_cmd"`; do | |
13751 | case $p in | |
13752 | ||
13753 | -L* | -R* | -l*) | |
13754 | # Some compilers place space between "-{L,R}" and the path. | |
13755 | # Remove the space. | |
13756 | if test $p = "-L" || | |
13757 | test $p = "-R"; then | |
13758 | prev=$p | |
13759 | continue | |
13760 | else | |
13761 | prev= | |
13762 | fi | |
13763 | ||
13764 | if test "$pre_test_object_deps_done" = no; then | |
13765 | case $p in | |
13766 | -L* | -R*) | |
13767 | # Internal compiler library paths should come after those | |
13768 | # provided the user. The postdeps already come after the | |
13769 | # user supplied libs so there is no need to process them. | |
13770 | if test -z "$compiler_lib_search_path_CXX"; then | |
13771 | compiler_lib_search_path_CXX="${prev}${p}" | |
13772 | else | |
13773 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
13774 | fi | |
13775 | ;; | |
13776 | # The "-l" case would never come before the object being | |
13777 | # linked, so don't bother handling this case. | |
13778 | esac | |
13779 | else | |
13780 | if test -z "$postdeps_CXX"; then | |
13781 | postdeps_CXX="${prev}${p}" | |
13782 | else | |
13783 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
13784 | fi | |
13785 | fi | |
13786 | ;; | |
13787 | ||
13788 | *.$objext) | |
13789 | # This assumes that the test object file only shows up | |
13790 | # once in the compiler output. | |
13791 | if test "$p" = "conftest.$objext"; then | |
13792 | pre_test_object_deps_done=yes | |
13793 | continue | |
13794 | fi | |
13795 | ||
13796 | if test "$pre_test_object_deps_done" = no; then | |
13797 | if test -z "$predep_objects_CXX"; then | |
13798 | predep_objects_CXX="$p" | |
13799 | else | |
13800 | predep_objects_CXX="$predep_objects_CXX $p" | |
13801 | fi | |
13802 | else | |
13803 | if test -z "$postdep_objects_CXX"; then | |
13804 | postdep_objects_CXX="$p" | |
13805 | else | |
13806 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
13807 | fi | |
13808 | fi | |
13809 | ;; | |
13810 | ||
13811 | *) ;; # Ignore the rest. | |
13812 | ||
13813 | esac | |
13814 | done | |
13815 | ||
13816 | # Clean up. | |
13817 | rm -f a.out a.exe | |
13818 | else | |
13819 | echo "libtool.m4: error: problem compiling CXX test program" | |
13820 | fi | |
13821 | ||
13822 | $RM -f confest.$objext | |
13823 | ||
13824 | # PORTME: override above test on systems where it is broken | |
13825 | case $host_os in | |
13826 | interix[3-9]*) | |
13827 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
13828 | # hack all around it, let's just trust "g++" to DTRT. | |
13829 | predep_objects_CXX= | |
13830 | postdep_objects_CXX= | |
13831 | postdeps_CXX= | |
13832 | ;; | |
13833 | ||
13834 | linux*) | |
13835 | case `$CC -V 2>&1 | sed 5q` in | |
13836 | *Sun\ C*) | |
13837 | # Sun C++ 5.9 | |
13838 | ||
13839 | # The more standards-conforming stlport4 library is | |
13840 | # incompatible with the Cstd library. Avoid specifying | |
13841 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13842 | # -library=stlport4 depends on it. | |
13843 | case " $CXX $CXXFLAGS " in | |
13844 | *" -library=stlport4 "*) | |
13845 | solaris_use_stlport4=yes | |
13846 | ;; | |
13847 | esac | |
13848 | ||
13849 | if test "$solaris_use_stlport4" != yes; then | |
13850 | postdeps_CXX='-library=Cstd -library=Crun' | |
13851 | fi | |
13852 | ;; | |
13853 | esac | |
13854 | ;; | |
13855 | ||
13856 | solaris*) | |
13857 | case $cc_basename in | |
13858 | CC*) | |
13859 | # The more standards-conforming stlport4 library is | |
13860 | # incompatible with the Cstd library. Avoid specifying | |
13861 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13862 | # -library=stlport4 depends on it. | |
13863 | case " $CXX $CXXFLAGS " in | |
13864 | *" -library=stlport4 "*) | |
13865 | solaris_use_stlport4=yes | |
13866 | ;; | |
13867 | esac | |
13868 | ||
13869 | # Adding this requires a known-good setup of shared libraries for | |
13870 | # Sun compiler versions before 5.6, else PIC objects from an old | |
13871 | # archive will be linked into the output, leading to subtle bugs. | |
13872 | if test "$solaris_use_stlport4" != yes; then | |
13873 | postdeps_CXX='-library=Cstd -library=Crun' | |
13874 | fi | |
13875 | ;; | |
13876 | esac | |
13877 | ;; | |
13878 | esac | |
13879 | ||
13880 | ||
13881 | case " $postdeps_CXX " in | |
13882 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
13883 | esac | |
13884 | compiler_lib_search_dirs_CXX= | |
13885 | if test -n "${compiler_lib_search_path_CXX}"; then | |
13886 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13887 | fi | |
13888 | ||
13889 | ||
13890 | ||
13891 | ||
13892 | ||
13893 | ||
13894 | ||
13895 | ||
13896 | ||
13897 | ||
13898 | ||
13899 | ||
13900 | ||
13901 | ||
13902 | ||
13903 | ||
13904 | ||
13905 | ||
13906 | ||
13907 | ||
13908 | ||
13909 | ||
13910 | ||
13911 | ||
13912 | ||
13913 | ||
13914 | ||
13915 | ||
13916 | ||
13917 | ||
13918 | ||
13919 | lt_prog_compiler_wl_CXX= | |
13920 | lt_prog_compiler_pic_CXX= | |
13921 | lt_prog_compiler_static_CXX= | |
13922 | ||
13923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
13924 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
13925 | ||
13926 | # C++ specific cases for pic, static, wl, etc. | |
13927 | if test "$GXX" = yes; then | |
13928 | lt_prog_compiler_wl_CXX='-Wl,' | |
13929 | lt_prog_compiler_static_CXX='-static' | |
13930 | ||
13931 | case $host_os in | |
13932 | aix*) | |
13933 | # All AIX code is PIC. | |
13934 | if test "$host_cpu" = ia64; then | |
13935 | # AIX 5 now supports IA64 processor | |
13936 | lt_prog_compiler_static_CXX='-Bstatic' | |
13937 | fi | |
690c45b8 | 13938 | lt_prog_compiler_pic_CXX='-fPIC' |
0a35513e AH |
13939 | ;; |
13940 | ||
13941 | amigaos*) | |
13942 | case $host_cpu in | |
13943 | powerpc) | |
13944 | # see comment about AmigaOS4 .so support | |
13945 | lt_prog_compiler_pic_CXX='-fPIC' | |
13946 | ;; | |
13947 | m68k) | |
13948 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13949 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13950 | # like `-m68040'. | |
13951 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
13952 | ;; | |
13953 | esac | |
13954 | ;; | |
13955 | ||
13956 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13957 | # PIC is the default for these OSes. | |
13958 | ;; | |
13959 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
13960 | # This hack is so that the source file can tell whether it is being | |
13961 | # built for inclusion in a dll (and should export symbols for example). | |
13962 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13963 | # (--disable-auto-import) libraries | |
13964 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
13965 | ;; | |
13966 | darwin* | rhapsody*) | |
13967 | # PIC is the default on this platform | |
13968 | # Common symbols not allowed in MH_DYLIB files | |
13969 | lt_prog_compiler_pic_CXX='-fno-common' | |
13970 | ;; | |
13971 | *djgpp*) | |
13972 | # DJGPP does not support shared libraries at all | |
13973 | lt_prog_compiler_pic_CXX= | |
13974 | ;; | |
13975 | haiku*) | |
13976 | # PIC is the default for Haiku. | |
13977 | # The "-static" flag exists, but is broken. | |
13978 | lt_prog_compiler_static_CXX= | |
13979 | ;; | |
13980 | interix[3-9]*) | |
13981 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13982 | # Instead, we relocate shared libraries at runtime. | |
13983 | ;; | |
13984 | sysv4*MP*) | |
13985 | if test -d /usr/nec; then | |
13986 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
13987 | fi | |
13988 | ;; | |
13989 | hpux*) | |
13990 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
13991 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13992 | # sets the default TLS model and affects inlining. | |
13993 | case $host_cpu in | |
13994 | hppa*64*) | |
13995 | ;; | |
13996 | *) | |
13997 | lt_prog_compiler_pic_CXX='-fPIC' | |
13998 | ;; | |
13999 | esac | |
14000 | ;; | |
14001 | *qnx* | *nto*) | |
14002 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14003 | # it will coredump. | |
14004 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14005 | ;; | |
14006 | *) | |
14007 | lt_prog_compiler_pic_CXX='-fPIC' | |
14008 | ;; | |
14009 | esac | |
14010 | else | |
14011 | case $host_os in | |
14012 | aix[4-9]*) | |
14013 | # All AIX code is PIC. | |
14014 | if test "$host_cpu" = ia64; then | |
14015 | # AIX 5 now supports IA64 processor | |
14016 | lt_prog_compiler_static_CXX='-Bstatic' | |
14017 | else | |
14018 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
14019 | fi | |
14020 | ;; | |
14021 | chorus*) | |
14022 | case $cc_basename in | |
14023 | cxch68*) | |
14024 | # Green Hills C++ Compiler | |
14025 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
14026 | ;; | |
14027 | esac | |
14028 | ;; | |
14029 | dgux*) | |
14030 | case $cc_basename in | |
14031 | ec++*) | |
14032 | lt_prog_compiler_pic_CXX='-KPIC' | |
14033 | ;; | |
14034 | ghcx*) | |
14035 | # Green Hills C++ Compiler | |
14036 | lt_prog_compiler_pic_CXX='-pic' | |
14037 | ;; | |
14038 | *) | |
14039 | ;; | |
14040 | esac | |
14041 | ;; | |
14042 | freebsd* | dragonfly*) | |
14043 | # FreeBSD uses GNU C++ | |
14044 | ;; | |
14045 | hpux9* | hpux10* | hpux11*) | |
14046 | case $cc_basename in | |
14047 | CC*) | |
14048 | lt_prog_compiler_wl_CXX='-Wl,' | |
14049 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14050 | if test "$host_cpu" != ia64; then | |
14051 | lt_prog_compiler_pic_CXX='+Z' | |
14052 | fi | |
14053 | ;; | |
14054 | aCC*) | |
14055 | lt_prog_compiler_wl_CXX='-Wl,' | |
14056 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14057 | case $host_cpu in | |
14058 | hppa*64*|ia64*) | |
14059 | # +Z the default | |
14060 | ;; | |
14061 | *) | |
14062 | lt_prog_compiler_pic_CXX='+Z' | |
14063 | ;; | |
14064 | esac | |
14065 | ;; | |
14066 | *) | |
14067 | ;; | |
14068 | esac | |
14069 | ;; | |
14070 | interix*) | |
14071 | # This is c89, which is MS Visual C++ (no shared libs) | |
14072 | # Anyone wants to do a port? | |
14073 | ;; | |
14074 | irix5* | irix6* | nonstopux*) | |
14075 | case $cc_basename in | |
14076 | CC*) | |
14077 | lt_prog_compiler_wl_CXX='-Wl,' | |
14078 | lt_prog_compiler_static_CXX='-non_shared' | |
14079 | # CC pic flag -KPIC is the default. | |
14080 | ;; | |
14081 | *) | |
14082 | ;; | |
14083 | esac | |
14084 | ;; | |
14085 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
14086 | case $cc_basename in | |
14087 | KCC*) | |
14088 | # KAI C++ Compiler | |
14089 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14090 | lt_prog_compiler_pic_CXX='-fPIC' | |
14091 | ;; | |
14092 | ecpc* ) | |
14093 | # old Intel C++ for x86_64 which still supported -KPIC. | |
14094 | lt_prog_compiler_wl_CXX='-Wl,' | |
14095 | lt_prog_compiler_pic_CXX='-KPIC' | |
14096 | lt_prog_compiler_static_CXX='-static' | |
14097 | ;; | |
14098 | icpc* ) | |
14099 | # Intel C++, used to be incompatible with GCC. | |
14100 | # ICC 10 doesn't accept -KPIC any more. | |
14101 | lt_prog_compiler_wl_CXX='-Wl,' | |
14102 | lt_prog_compiler_pic_CXX='-fPIC' | |
14103 | lt_prog_compiler_static_CXX='-static' | |
14104 | ;; | |
14105 | pgCC* | pgcpp*) | |
14106 | # Portland Group C++ compiler | |
14107 | lt_prog_compiler_wl_CXX='-Wl,' | |
14108 | lt_prog_compiler_pic_CXX='-fpic' | |
14109 | lt_prog_compiler_static_CXX='-Bstatic' | |
14110 | ;; | |
14111 | cxx*) | |
14112 | # Compaq C++ | |
14113 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14114 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14115 | lt_prog_compiler_pic_CXX= | |
14116 | lt_prog_compiler_static_CXX='-non_shared' | |
14117 | ;; | |
14118 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | |
14119 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
14120 | lt_prog_compiler_wl_CXX='-Wl,' | |
14121 | lt_prog_compiler_pic_CXX='-qpic' | |
14122 | lt_prog_compiler_static_CXX='-qstaticlink' | |
14123 | ;; | |
14124 | *) | |
14125 | case `$CC -V 2>&1 | sed 5q` in | |
14126 | *Sun\ C*) | |
14127 | # Sun C++ 5.9 | |
14128 | lt_prog_compiler_pic_CXX='-KPIC' | |
14129 | lt_prog_compiler_static_CXX='-Bstatic' | |
14130 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14131 | ;; | |
14132 | esac | |
14133 | ;; | |
14134 | esac | |
14135 | ;; | |
14136 | lynxos*) | |
14137 | ;; | |
14138 | m88k*) | |
14139 | ;; | |
14140 | mvs*) | |
14141 | case $cc_basename in | |
14142 | cxx*) | |
14143 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
14144 | ;; | |
14145 | *) | |
14146 | ;; | |
14147 | esac | |
14148 | ;; | |
14149 | netbsd*) | |
14150 | ;; | |
14151 | *qnx* | *nto*) | |
14152 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14153 | # it will coredump. | |
14154 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14155 | ;; | |
14156 | osf3* | osf4* | osf5*) | |
14157 | case $cc_basename in | |
14158 | KCC*) | |
14159 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14160 | ;; | |
14161 | RCC*) | |
14162 | # Rational C++ 2.4.1 | |
14163 | lt_prog_compiler_pic_CXX='-pic' | |
14164 | ;; | |
14165 | cxx*) | |
14166 | # Digital/Compaq C++ | |
14167 | lt_prog_compiler_wl_CXX='-Wl,' | |
14168 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14169 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14170 | lt_prog_compiler_pic_CXX= | |
14171 | lt_prog_compiler_static_CXX='-non_shared' | |
14172 | ;; | |
14173 | *) | |
14174 | ;; | |
14175 | esac | |
14176 | ;; | |
14177 | psos*) | |
14178 | ;; | |
14179 | solaris*) | |
14180 | case $cc_basename in | |
14181 | CC*) | |
14182 | # Sun C++ 4.2, 5.x and Centerline C++ | |
14183 | lt_prog_compiler_pic_CXX='-KPIC' | |
14184 | lt_prog_compiler_static_CXX='-Bstatic' | |
14185 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14186 | ;; | |
14187 | gcx*) | |
14188 | # Green Hills C++ Compiler | |
14189 | lt_prog_compiler_pic_CXX='-PIC' | |
14190 | ;; | |
14191 | *) | |
14192 | ;; | |
14193 | esac | |
14194 | ;; | |
14195 | sunos4*) | |
14196 | case $cc_basename in | |
14197 | CC*) | |
14198 | # Sun C++ 4.x | |
14199 | lt_prog_compiler_pic_CXX='-pic' | |
14200 | lt_prog_compiler_static_CXX='-Bstatic' | |
14201 | ;; | |
14202 | lcc*) | |
14203 | # Lucid | |
14204 | lt_prog_compiler_pic_CXX='-pic' | |
14205 | ;; | |
14206 | *) | |
14207 | ;; | |
14208 | esac | |
14209 | ;; | |
14210 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14211 | case $cc_basename in | |
14212 | CC*) | |
14213 | lt_prog_compiler_wl_CXX='-Wl,' | |
14214 | lt_prog_compiler_pic_CXX='-KPIC' | |
14215 | lt_prog_compiler_static_CXX='-Bstatic' | |
14216 | ;; | |
14217 | esac | |
14218 | ;; | |
14219 | tandem*) | |
14220 | case $cc_basename in | |
14221 | NCC*) | |
14222 | # NonStop-UX NCC 3.20 | |
14223 | lt_prog_compiler_pic_CXX='-KPIC' | |
14224 | ;; | |
14225 | *) | |
14226 | ;; | |
14227 | esac | |
14228 | ;; | |
14229 | vxworks*) | |
14230 | ;; | |
14231 | *) | |
14232 | lt_prog_compiler_can_build_shared_CXX=no | |
14233 | ;; | |
14234 | esac | |
14235 | fi | |
14236 | ||
14237 | case $host_os in | |
14238 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14239 | *djgpp*) | |
14240 | lt_prog_compiler_pic_CXX= | |
14241 | ;; | |
14242 | *) | |
14243 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
14244 | ;; | |
14245 | esac | |
14246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
14247 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
14248 | ||
14249 | ||
14250 | ||
14251 | # | |
14252 | # Check to make sure the PIC flag actually works. | |
14253 | # | |
14254 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
14255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
14256 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
22e05272 | 14257 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
0a35513e AH |
14258 | $as_echo_n "(cached) " >&6 |
14259 | else | |
14260 | lt_cv_prog_compiler_pic_works_CXX=no | |
14261 | ac_outfile=conftest.$ac_objext | |
14262 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14263 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
14264 | # Insert the option either (1) after the last *FLAGS variable, or | |
14265 | # (2) before a word containing "conftest.", or (3) at the end. | |
14266 | # Note that $ac_compile itself does not contain backslashes and begins | |
14267 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14268 | # The option is referenced via a variable to avoid confusing sed. | |
14269 | lt_compile=`echo "$ac_compile" | $SED \ | |
14270 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14271 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14272 | -e 's:$: $lt_compiler_flag:'` | |
14273 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14274 | (eval "$lt_compile" 2>conftest.err) | |
14275 | ac_status=$? | |
14276 | cat conftest.err >&5 | |
14277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14278 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
14279 | # The compiler can only warn and ignore the option if not recognized | |
14280 | # So say no if there are warnings other than the usual output. | |
14281 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
14282 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14283 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
14284 | lt_cv_prog_compiler_pic_works_CXX=yes | |
14285 | fi | |
14286 | fi | |
14287 | $RM conftest* | |
14288 | ||
14289 | fi | |
14290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
14291 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
14292 | ||
14293 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
14294 | case $lt_prog_compiler_pic_CXX in | |
14295 | "" | " "*) ;; | |
14296 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
14297 | esac | |
14298 | else | |
14299 | lt_prog_compiler_pic_CXX= | |
14300 | lt_prog_compiler_can_build_shared_CXX=no | |
14301 | fi | |
14302 | ||
14303 | fi | |
14304 | ||
14305 | ||
14306 | ||
14307 | # | |
14308 | # Check to make sure the static flag actually works. | |
14309 | # | |
14310 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
14311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
14312 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 14313 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
0a35513e AH |
14314 | $as_echo_n "(cached) " >&6 |
14315 | else | |
14316 | lt_cv_prog_compiler_static_works_CXX=no | |
14317 | save_LDFLAGS="$LDFLAGS" | |
14318 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14319 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14320 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14321 | # The linker can only warn and ignore the option if not recognized | |
14322 | # So say no if there are warnings | |
14323 | if test -s conftest.err; then | |
14324 | # Append any errors to the config.log. | |
14325 | cat conftest.err 1>&5 | |
14326 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
14327 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14328 | if diff conftest.exp conftest.er2 >/dev/null; then | |
14329 | lt_cv_prog_compiler_static_works_CXX=yes | |
14330 | fi | |
14331 | else | |
14332 | lt_cv_prog_compiler_static_works_CXX=yes | |
14333 | fi | |
14334 | fi | |
14335 | $RM -r conftest* | |
14336 | LDFLAGS="$save_LDFLAGS" | |
14337 | ||
14338 | fi | |
14339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
14340 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
14341 | ||
14342 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
14343 | : | |
14344 | else | |
14345 | lt_prog_compiler_static_CXX= | |
14346 | fi | |
14347 | ||
14348 | ||
14349 | ||
14350 | ||
14351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14352 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 14353 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
0a35513e AH |
14354 | $as_echo_n "(cached) " >&6 |
14355 | else | |
14356 | lt_cv_prog_compiler_c_o_CXX=no | |
14357 | $RM -r conftest 2>/dev/null | |
14358 | mkdir conftest | |
14359 | cd conftest | |
14360 | mkdir out | |
14361 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14362 | ||
14363 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14364 | # Insert the option either (1) after the last *FLAGS variable, or | |
14365 | # (2) before a word containing "conftest.", or (3) at the end. | |
14366 | # Note that $ac_compile itself does not contain backslashes and begins | |
14367 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14368 | lt_compile=`echo "$ac_compile" | $SED \ | |
14369 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14370 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14371 | -e 's:$: $lt_compiler_flag:'` | |
14372 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14373 | (eval "$lt_compile" 2>out/conftest.err) | |
14374 | ac_status=$? | |
14375 | cat out/conftest.err >&5 | |
14376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14377 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14378 | then | |
14379 | # The compiler can only warn and ignore the option if not recognized | |
14380 | # So say no if there are warnings | |
14381 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14382 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14383 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14384 | lt_cv_prog_compiler_c_o_CXX=yes | |
14385 | fi | |
14386 | fi | |
14387 | chmod u+w . 2>&5 | |
14388 | $RM conftest* | |
14389 | # SGI C++ compiler will create directory out/ii_files/ for | |
14390 | # template instantiation | |
14391 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14392 | $RM out/* && rmdir out | |
14393 | cd .. | |
14394 | $RM -r conftest | |
14395 | $RM conftest* | |
14396 | ||
14397 | fi | |
14398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14399 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14400 | ||
14401 | ||
14402 | ||
14403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14404 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 14405 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
0a35513e AH |
14406 | $as_echo_n "(cached) " >&6 |
14407 | else | |
14408 | lt_cv_prog_compiler_c_o_CXX=no | |
14409 | $RM -r conftest 2>/dev/null | |
14410 | mkdir conftest | |
14411 | cd conftest | |
14412 | mkdir out | |
14413 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14414 | ||
14415 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14416 | # Insert the option either (1) after the last *FLAGS variable, or | |
14417 | # (2) before a word containing "conftest.", or (3) at the end. | |
14418 | # Note that $ac_compile itself does not contain backslashes and begins | |
14419 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14420 | lt_compile=`echo "$ac_compile" | $SED \ | |
14421 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14422 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14423 | -e 's:$: $lt_compiler_flag:'` | |
14424 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14425 | (eval "$lt_compile" 2>out/conftest.err) | |
14426 | ac_status=$? | |
14427 | cat out/conftest.err >&5 | |
14428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14429 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14430 | then | |
14431 | # The compiler can only warn and ignore the option if not recognized | |
14432 | # So say no if there are warnings | |
14433 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14434 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14435 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14436 | lt_cv_prog_compiler_c_o_CXX=yes | |
14437 | fi | |
14438 | fi | |
14439 | chmod u+w . 2>&5 | |
14440 | $RM conftest* | |
14441 | # SGI C++ compiler will create directory out/ii_files/ for | |
14442 | # template instantiation | |
14443 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14444 | $RM out/* && rmdir out | |
14445 | cd .. | |
14446 | $RM -r conftest | |
14447 | $RM conftest* | |
14448 | ||
14449 | fi | |
14450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14451 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14452 | ||
14453 | ||
14454 | ||
14455 | ||
14456 | hard_links="nottested" | |
14457 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
14458 | # do not overwrite the value of need_locks provided by the user | |
14459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
14460 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
14461 | hard_links=yes | |
14462 | $RM conftest* | |
14463 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14464 | touch conftest.a | |
14465 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14466 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
14468 | $as_echo "$hard_links" >&6; } | |
14469 | if test "$hard_links" = no; then | |
14470 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14471 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14472 | need_locks=warn | |
14473 | fi | |
14474 | else | |
14475 | need_locks=no | |
14476 | fi | |
14477 | ||
14478 | ||
14479 | ||
14480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14481 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
14482 | ||
14483 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14484 | case $host_os in | |
14485 | aix[4-9]*) | |
14486 | # If we're using GNU nm, then we don't want the "-C" option. | |
14487 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14488 | # Also, AIX nm treats weak defined symbols like other global defined | |
14489 | # symbols, whereas GNU nm marks them as "W". | |
14490 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
14491 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
14492 | else | |
84c1b9d3 | 14493 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
0a35513e AH |
14494 | fi |
14495 | ;; | |
14496 | pw32*) | |
14497 | export_symbols_cmds_CXX="$ltdll_cmds" | |
14498 | ;; | |
14499 | cygwin* | mingw* | cegcc*) | |
14500 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
14501 | ;; | |
14502 | *) | |
14503 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14504 | ;; | |
14505 | esac | |
14506 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
14507 | ||
14508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
14509 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14510 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14511 | ||
14512 | with_gnu_ld_CXX=$with_gnu_ld | |
14513 | ||
14514 | ||
14515 | ||
14516 | ||
14517 | ||
14518 | ||
14519 | # | |
14520 | # Do we need to explicitly link libc? | |
14521 | # | |
14522 | case "x$archive_cmds_need_lc_CXX" in | |
14523 | x|xyes) | |
14524 | # Assume -lc should be added | |
14525 | archive_cmds_need_lc_CXX=yes | |
14526 | ||
14527 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14528 | case $archive_cmds_CXX in | |
14529 | *'~'*) | |
14530 | # FIXME: we may have to deal with multi-command sequences. | |
14531 | ;; | |
14532 | '$CC '*) | |
14533 | # Test whether the compiler implicitly links with -lc since on some | |
14534 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14535 | # to ld, don't add -lc before -lgcc. | |
14536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
14537 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 14538 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
0a35513e AH |
14539 | $as_echo_n "(cached) " >&6 |
14540 | else | |
14541 | $RM conftest* | |
14542 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14543 | ||
14544 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
14545 | (eval $ac_compile) 2>&5 | |
14546 | ac_status=$? | |
14547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14548 | test $ac_status = 0; } 2>conftest.err; then | |
14549 | soname=conftest | |
14550 | lib=conftest | |
14551 | libobjs=conftest.$ac_objext | |
14552 | deplibs= | |
14553 | wl=$lt_prog_compiler_wl_CXX | |
14554 | pic_flag=$lt_prog_compiler_pic_CXX | |
14555 | compiler_flags=-v | |
14556 | linker_flags=-v | |
14557 | verstring= | |
14558 | output_objdir=. | |
14559 | libname=conftest | |
14560 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14561 | allow_undefined_flag_CXX= | |
14562 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
14563 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14564 | ac_status=$? | |
14565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14566 | test $ac_status = 0; } | |
14567 | then | |
14568 | lt_cv_archive_cmds_need_lc_CXX=no | |
14569 | else | |
14570 | lt_cv_archive_cmds_need_lc_CXX=yes | |
14571 | fi | |
14572 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14573 | else | |
14574 | cat conftest.err 1>&5 | |
14575 | fi | |
14576 | $RM conftest* | |
14577 | ||
14578 | fi | |
14579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
14580 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
14581 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
14582 | ;; | |
14583 | esac | |
14584 | fi | |
14585 | ;; | |
14586 | esac | |
14587 | ||
14588 | ||
14589 | ||
14590 | ||
14591 | ||
14592 | ||
14593 | ||
14594 | ||
14595 | ||
14596 | ||
14597 | ||
14598 | ||
14599 | ||
14600 | ||
14601 | ||
14602 | ||
14603 | ||
14604 | ||
14605 | ||
14606 | ||
14607 | ||
14608 | ||
14609 | ||
14610 | ||
14611 | ||
14612 | ||
14613 | ||
14614 | ||
14615 | ||
14616 | ||
14617 | ||
14618 | ||
14619 | ||
14620 | ||
14621 | ||
14622 | ||
14623 | ||
14624 | ||
14625 | ||
14626 | ||
14627 | ||
14628 | ||
14629 | ||
14630 | ||
14631 | ||
14632 | ||
14633 | ||
14634 | ||
14635 | ||
14636 | ||
14637 | ||
14638 | ||
14639 | ||
14640 | ||
14641 | ||
14642 | ||
14643 | ||
14644 | ||
14645 | ||
14646 | ||
14647 | ||
14648 | ||
14649 | ||
14650 | ||
14651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
14652 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
14653 | ||
14654 | library_names_spec= | |
14655 | libname_spec='lib$name' | |
14656 | soname_spec= | |
14657 | shrext_cmds=".so" | |
14658 | postinstall_cmds= | |
14659 | postuninstall_cmds= | |
14660 | finish_cmds= | |
14661 | finish_eval= | |
14662 | shlibpath_var= | |
14663 | shlibpath_overrides_runpath=unknown | |
14664 | version_type=none | |
14665 | dynamic_linker="$host_os ld.so" | |
14666 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14667 | need_lib_prefix=unknown | |
14668 | hardcode_into_libs=no | |
14669 | ||
14670 | # when you set need_version to no, make sure it does not cause -set_version | |
14671 | # flags to be left without arguments | |
14672 | need_version=unknown | |
14673 | ||
14674 | case $host_os in | |
14675 | aix3*) | |
14676 | version_type=linux | |
14677 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14678 | shlibpath_var=LIBPATH | |
14679 | ||
14680 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14681 | soname_spec='${libname}${release}${shared_ext}$major' | |
14682 | ;; | |
14683 | ||
14684 | aix[4-9]*) | |
14685 | version_type=linux | |
14686 | need_lib_prefix=no | |
14687 | need_version=no | |
14688 | hardcode_into_libs=yes | |
14689 | if test "$host_cpu" = ia64; then | |
14690 | # AIX 5 supports IA64 | |
14691 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14692 | shlibpath_var=LD_LIBRARY_PATH | |
14693 | else | |
14694 | # With GCC up to 2.95.x, collect2 would create an import file | |
14695 | # for dependence libraries. The import file would start with | |
14696 | # the line `#! .'. This would cause the generated library to | |
14697 | # depend on `.', always an invalid library. This was fixed in | |
14698 | # development snapshots of GCC prior to 3.0. | |
14699 | case $host_os in | |
14700 | aix4 | aix4.[01] | aix4.[01].*) | |
14701 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14702 | echo ' yes ' | |
14703 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
14704 | : | |
14705 | else | |
14706 | can_build_shared=no | |
14707 | fi | |
14708 | ;; | |
14709 | esac | |
14710 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14711 | # soname into executable. Probably we can add versioning support to | |
14712 | # collect2, so additional links can be useful in future. | |
14713 | if test "$aix_use_runtimelinking" = yes; then | |
14714 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14715 | # instead of lib<name>.a to let people know that these are not | |
14716 | # typical AIX shared libraries. | |
14717 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14718 | else | |
14719 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14720 | # and later when we are not doing run time linking. | |
14721 | library_names_spec='${libname}${release}.a $libname.a' | |
14722 | soname_spec='${libname}${release}${shared_ext}$major' | |
14723 | fi | |
14724 | shlibpath_var=LIBPATH | |
14725 | fi | |
14726 | ;; | |
14727 | ||
14728 | amigaos*) | |
14729 | case $host_cpu in | |
14730 | powerpc) | |
14731 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
14732 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
14733 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14734 | ;; | |
14735 | m68k) | |
14736 | library_names_spec='$libname.ixlibrary $libname.a' | |
14737 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14738 | 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' | |
14739 | ;; | |
14740 | esac | |
14741 | ;; | |
14742 | ||
14743 | beos*) | |
14744 | library_names_spec='${libname}${shared_ext}' | |
14745 | dynamic_linker="$host_os ld.so" | |
14746 | shlibpath_var=LIBRARY_PATH | |
14747 | ;; | |
14748 | ||
14749 | bsdi[45]*) | |
14750 | version_type=linux | |
14751 | need_version=no | |
14752 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14753 | soname_spec='${libname}${release}${shared_ext}$major' | |
14754 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14755 | shlibpath_var=LD_LIBRARY_PATH | |
14756 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14757 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14758 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14759 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14760 | # libtool to hard-code these into programs | |
14761 | ;; | |
14762 | ||
14763 | cygwin* | mingw* | pw32* | cegcc*) | |
14764 | version_type=windows | |
14765 | shrext_cmds=".dll" | |
14766 | need_version=no | |
14767 | need_lib_prefix=no | |
14768 | ||
14769 | case $GCC,$host_os in | |
14770 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
14771 | library_names_spec='$libname.dll.a' | |
14772 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14773 | postinstall_cmds='base_file=`basename \${file}`~ | |
14774 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14775 | dldir=$destdir/`dirname \$dlpath`~ | |
14776 | test -d \$dldir || mkdir -p \$dldir~ | |
14777 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14778 | chmod a+x \$dldir/$dlname~ | |
14779 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
14780 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
14781 | fi' | |
14782 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14783 | dlpath=$dir/\$dldll~ | |
14784 | $RM \$dlpath' | |
14785 | shlibpath_overrides_runpath=yes | |
14786 | ||
14787 | case $host_os in | |
14788 | cygwin*) | |
14789 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14790 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14791 | ||
14792 | ;; | |
14793 | mingw* | cegcc*) | |
14794 | # MinGW DLLs use traditional 'lib' prefix | |
14795 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14796 | ;; | |
14797 | pw32*) | |
14798 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14799 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14800 | ;; | |
14801 | esac | |
14802 | ;; | |
14803 | ||
14804 | *) | |
14805 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14806 | ;; | |
14807 | esac | |
14808 | dynamic_linker='Win32 ld.exe' | |
14809 | # FIXME: first we should search . and the directory the executable is in | |
14810 | shlibpath_var=PATH | |
14811 | ;; | |
14812 | ||
14813 | darwin* | rhapsody*) | |
14814 | dynamic_linker="$host_os dyld" | |
14815 | version_type=darwin | |
14816 | need_lib_prefix=no | |
14817 | need_version=no | |
14818 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14819 | soname_spec='${libname}${release}${major}$shared_ext' | |
14820 | shlibpath_overrides_runpath=yes | |
14821 | shlibpath_var=DYLD_LIBRARY_PATH | |
14822 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14823 | ||
14824 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14825 | ;; | |
14826 | ||
14827 | dgux*) | |
14828 | version_type=linux | |
14829 | need_lib_prefix=no | |
14830 | need_version=no | |
14831 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14832 | soname_spec='${libname}${release}${shared_ext}$major' | |
14833 | shlibpath_var=LD_LIBRARY_PATH | |
14834 | ;; | |
14835 | ||
14836 | freebsd* | dragonfly*) | |
14837 | # DragonFly does not have aout. When/if they implement a new | |
14838 | # versioning mechanism, adjust this. | |
14839 | if test -x /usr/bin/objformat; then | |
14840 | objformat=`/usr/bin/objformat` | |
14841 | else | |
14842 | case $host_os in | |
c6084f68 | 14843 | freebsd[23].*) objformat=aout ;; |
0a35513e AH |
14844 | *) objformat=elf ;; |
14845 | esac | |
14846 | fi | |
14847 | version_type=freebsd-$objformat | |
14848 | case $version_type in | |
14849 | freebsd-elf*) | |
14850 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14851 | need_version=no | |
14852 | need_lib_prefix=no | |
14853 | ;; | |
14854 | freebsd-*) | |
14855 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14856 | need_version=yes | |
14857 | ;; | |
14858 | esac | |
14859 | shlibpath_var=LD_LIBRARY_PATH | |
14860 | case $host_os in | |
c6084f68 | 14861 | freebsd2.*) |
0a35513e AH |
14862 | shlibpath_overrides_runpath=yes |
14863 | ;; | |
14864 | freebsd3.[01]* | freebsdelf3.[01]*) | |
14865 | shlibpath_overrides_runpath=yes | |
14866 | hardcode_into_libs=yes | |
14867 | ;; | |
14868 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14869 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14870 | shlibpath_overrides_runpath=no | |
14871 | hardcode_into_libs=yes | |
14872 | ;; | |
14873 | *) # from 4.6 on, and DragonFly | |
14874 | shlibpath_overrides_runpath=yes | |
14875 | hardcode_into_libs=yes | |
14876 | ;; | |
14877 | esac | |
14878 | ;; | |
14879 | ||
14880 | gnu*) | |
14881 | version_type=linux | |
14882 | need_lib_prefix=no | |
14883 | need_version=no | |
14884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14885 | soname_spec='${libname}${release}${shared_ext}$major' | |
14886 | shlibpath_var=LD_LIBRARY_PATH | |
14887 | hardcode_into_libs=yes | |
14888 | ;; | |
14889 | ||
14890 | haiku*) | |
14891 | version_type=linux | |
14892 | need_lib_prefix=no | |
14893 | need_version=no | |
14894 | dynamic_linker="$host_os runtime_loader" | |
14895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14896 | soname_spec='${libname}${release}${shared_ext}$major' | |
14897 | shlibpath_var=LIBRARY_PATH | |
14898 | shlibpath_overrides_runpath=yes | |
14899 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
14900 | hardcode_into_libs=yes | |
14901 | ;; | |
14902 | ||
14903 | hpux9* | hpux10* | hpux11*) | |
14904 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
14905 | # link against other versions. | |
14906 | version_type=sunos | |
14907 | need_lib_prefix=no | |
14908 | need_version=no | |
14909 | case $host_cpu in | |
14910 | ia64*) | |
14911 | shrext_cmds='.so' | |
14912 | hardcode_into_libs=yes | |
14913 | dynamic_linker="$host_os dld.so" | |
14914 | shlibpath_var=LD_LIBRARY_PATH | |
14915 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14916 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14917 | soname_spec='${libname}${release}${shared_ext}$major' | |
14918 | if test "X$HPUX_IA64_MODE" = X32; then | |
14919 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14920 | else | |
14921 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14922 | fi | |
14923 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14924 | ;; | |
14925 | hppa*64*) | |
14926 | shrext_cmds='.sl' | |
14927 | hardcode_into_libs=yes | |
14928 | dynamic_linker="$host_os dld.sl" | |
14929 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14930 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14931 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14932 | soname_spec='${libname}${release}${shared_ext}$major' | |
14933 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14934 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14935 | ;; | |
14936 | *) | |
14937 | shrext_cmds='.sl' | |
14938 | dynamic_linker="$host_os dld.sl" | |
14939 | shlibpath_var=SHLIB_PATH | |
14940 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14941 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14942 | soname_spec='${libname}${release}${shared_ext}$major' | |
14943 | ;; | |
14944 | esac | |
14945 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
14946 | postinstall_cmds='chmod 555 $lib' | |
14947 | # or fails outright, so override atomically: | |
14948 | install_override_mode=555 | |
14949 | ;; | |
14950 | ||
14951 | interix[3-9]*) | |
14952 | version_type=linux | |
14953 | need_lib_prefix=no | |
14954 | need_version=no | |
14955 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14956 | soname_spec='${libname}${release}${shared_ext}$major' | |
14957 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14958 | shlibpath_var=LD_LIBRARY_PATH | |
14959 | shlibpath_overrides_runpath=no | |
14960 | hardcode_into_libs=yes | |
14961 | ;; | |
14962 | ||
14963 | irix5* | irix6* | nonstopux*) | |
14964 | case $host_os in | |
14965 | nonstopux*) version_type=nonstopux ;; | |
14966 | *) | |
14967 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
14968 | version_type=linux | |
14969 | else | |
14970 | version_type=irix | |
14971 | fi ;; | |
14972 | esac | |
14973 | need_lib_prefix=no | |
14974 | need_version=no | |
14975 | soname_spec='${libname}${release}${shared_ext}$major' | |
14976 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14977 | case $host_os in | |
14978 | irix5* | nonstopux*) | |
14979 | libsuff= shlibsuff= | |
14980 | ;; | |
14981 | *) | |
14982 | case $LD in # libtool.m4 will add one of these switches to LD | |
14983 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14984 | libsuff= shlibsuff= libmagic=32-bit;; | |
14985 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14986 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14987 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14988 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14989 | *) libsuff= shlibsuff= libmagic=never-match;; | |
14990 | esac | |
14991 | ;; | |
14992 | esac | |
14993 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14994 | shlibpath_overrides_runpath=no | |
14995 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
14996 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14997 | hardcode_into_libs=yes | |
14998 | ;; | |
14999 | ||
15000 | # No shared lib support for Linux oldld, aout, or coff. | |
15001 | linux*oldld* | linux*aout* | linux*coff*) | |
15002 | dynamic_linker=no | |
15003 | ;; | |
15004 | ||
15005 | # This must be Linux ELF. | |
15006 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
15007 | version_type=linux | |
15008 | need_lib_prefix=no | |
15009 | need_version=no | |
15010 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15011 | soname_spec='${libname}${release}${shared_ext}$major' | |
15012 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15013 | shlibpath_var=LD_LIBRARY_PATH | |
15014 | shlibpath_overrides_runpath=no | |
15015 | ||
15016 | # Some binutils ld are patched to set DT_RUNPATH | |
22e05272 | 15017 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
0a35513e AH |
15018 | $as_echo_n "(cached) " >&6 |
15019 | else | |
15020 | lt_cv_shlibpath_overrides_runpath=no | |
15021 | save_LDFLAGS=$LDFLAGS | |
15022 | save_libdir=$libdir | |
15023 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
15024 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
15025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15026 | /* end confdefs.h. */ | |
15027 | ||
15028 | int | |
15029 | main () | |
15030 | { | |
15031 | ||
15032 | ; | |
15033 | return 0; | |
15034 | } | |
15035 | _ACEOF | |
15036 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15037 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
15038 | lt_cv_shlibpath_overrides_runpath=yes | |
15039 | fi | |
15040 | fi | |
15041 | rm -f core conftest.err conftest.$ac_objext \ | |
15042 | conftest$ac_exeext conftest.$ac_ext | |
15043 | LDFLAGS=$save_LDFLAGS | |
15044 | libdir=$save_libdir | |
15045 | ||
15046 | fi | |
15047 | ||
15048 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
15049 | ||
15050 | # This implies no fast_install, which is unacceptable. | |
15051 | # Some rework will be needed to allow for fast_install | |
15052 | # before this can be enabled. | |
15053 | hardcode_into_libs=yes | |
15054 | ||
15055 | # Append ld.so.conf contents to the search path | |
15056 | if test -f /etc/ld.so.conf; then | |
15057 | 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' ' '` | |
15058 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
15059 | fi | |
15060 | ||
15061 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15062 | # powerpc, because MkLinux only supported shared libraries with the | |
15063 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15064 | # most powerpc-linux boxes support dynamic linking these days and | |
15065 | # people can always --disable-shared, the test was removed, and we | |
15066 | # assume the GNU/Linux dynamic linker is in use. | |
15067 | dynamic_linker='GNU/Linux ld.so' | |
15068 | ;; | |
15069 | ||
15070 | netbsd*) | |
15071 | version_type=sunos | |
15072 | need_lib_prefix=no | |
15073 | need_version=no | |
15074 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15076 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15077 | dynamic_linker='NetBSD (a.out) ld.so' | |
15078 | else | |
15079 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15080 | soname_spec='${libname}${release}${shared_ext}$major' | |
15081 | dynamic_linker='NetBSD ld.elf_so' | |
15082 | fi | |
15083 | shlibpath_var=LD_LIBRARY_PATH | |
15084 | shlibpath_overrides_runpath=yes | |
15085 | hardcode_into_libs=yes | |
15086 | ;; | |
15087 | ||
15088 | newsos6) | |
15089 | version_type=linux | |
15090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15091 | shlibpath_var=LD_LIBRARY_PATH | |
15092 | shlibpath_overrides_runpath=yes | |
15093 | ;; | |
15094 | ||
15095 | *nto* | *qnx*) | |
15096 | version_type=qnx | |
15097 | need_lib_prefix=no | |
15098 | need_version=no | |
15099 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15100 | soname_spec='${libname}${release}${shared_ext}$major' | |
15101 | shlibpath_var=LD_LIBRARY_PATH | |
15102 | shlibpath_overrides_runpath=no | |
15103 | hardcode_into_libs=yes | |
15104 | dynamic_linker='ldqnx.so' | |
15105 | ;; | |
15106 | ||
15107 | openbsd*) | |
15108 | version_type=sunos | |
15109 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15110 | need_lib_prefix=no | |
15111 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15112 | case $host_os in | |
15113 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15114 | *) need_version=no ;; | |
15115 | esac | |
15116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15117 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15118 | shlibpath_var=LD_LIBRARY_PATH | |
15119 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15120 | case $host_os in | |
15121 | openbsd2.[89] | openbsd2.[89].*) | |
15122 | shlibpath_overrides_runpath=no | |
15123 | ;; | |
15124 | *) | |
15125 | shlibpath_overrides_runpath=yes | |
15126 | ;; | |
15127 | esac | |
15128 | else | |
15129 | shlibpath_overrides_runpath=yes | |
15130 | fi | |
15131 | ;; | |
15132 | ||
15133 | os2*) | |
15134 | libname_spec='$name' | |
15135 | shrext_cmds=".dll" | |
15136 | need_lib_prefix=no | |
15137 | library_names_spec='$libname${shared_ext} $libname.a' | |
15138 | dynamic_linker='OS/2 ld.exe' | |
15139 | shlibpath_var=LIBPATH | |
15140 | ;; | |
15141 | ||
15142 | osf3* | osf4* | osf5*) | |
15143 | version_type=osf | |
15144 | need_lib_prefix=no | |
15145 | need_version=no | |
15146 | soname_spec='${libname}${release}${shared_ext}$major' | |
15147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15148 | shlibpath_var=LD_LIBRARY_PATH | |
15149 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15150 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15151 | ;; | |
15152 | ||
15153 | rdos*) | |
15154 | dynamic_linker=no | |
15155 | ;; | |
15156 | ||
15157 | solaris*) | |
15158 | version_type=linux | |
15159 | need_lib_prefix=no | |
15160 | need_version=no | |
15161 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15162 | soname_spec='${libname}${release}${shared_ext}$major' | |
15163 | shlibpath_var=LD_LIBRARY_PATH | |
15164 | shlibpath_overrides_runpath=yes | |
15165 | hardcode_into_libs=yes | |
15166 | # ldd complains unless libraries are executable | |
15167 | postinstall_cmds='chmod +x $lib' | |
15168 | ;; | |
15169 | ||
15170 | sunos4*) | |
15171 | version_type=sunos | |
15172 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15173 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15174 | shlibpath_var=LD_LIBRARY_PATH | |
15175 | shlibpath_overrides_runpath=yes | |
15176 | if test "$with_gnu_ld" = yes; then | |
15177 | need_lib_prefix=no | |
15178 | fi | |
15179 | need_version=yes | |
15180 | ;; | |
15181 | ||
15182 | sysv4 | sysv4.3*) | |
15183 | version_type=linux | |
15184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15185 | soname_spec='${libname}${release}${shared_ext}$major' | |
15186 | shlibpath_var=LD_LIBRARY_PATH | |
15187 | case $host_vendor in | |
15188 | sni) | |
15189 | shlibpath_overrides_runpath=no | |
15190 | need_lib_prefix=no | |
15191 | runpath_var=LD_RUN_PATH | |
15192 | ;; | |
15193 | siemens) | |
15194 | need_lib_prefix=no | |
15195 | ;; | |
15196 | motorola) | |
15197 | need_lib_prefix=no | |
15198 | need_version=no | |
15199 | shlibpath_overrides_runpath=no | |
15200 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15201 | ;; | |
15202 | esac | |
15203 | ;; | |
15204 | ||
15205 | sysv4*MP*) | |
15206 | if test -d /usr/nec ;then | |
15207 | version_type=linux | |
15208 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15209 | soname_spec='$libname${shared_ext}.$major' | |
15210 | shlibpath_var=LD_LIBRARY_PATH | |
15211 | fi | |
15212 | ;; | |
15213 | ||
15214 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
15215 | version_type=freebsd-elf | |
15216 | need_lib_prefix=no | |
15217 | need_version=no | |
15218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15219 | soname_spec='${libname}${release}${shared_ext}$major' | |
15220 | shlibpath_var=LD_LIBRARY_PATH | |
15221 | shlibpath_overrides_runpath=yes | |
15222 | hardcode_into_libs=yes | |
15223 | if test "$with_gnu_ld" = yes; then | |
15224 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15225 | else | |
15226 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15227 | case $host_os in | |
15228 | sco3.2v5*) | |
15229 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15230 | ;; | |
15231 | esac | |
15232 | fi | |
15233 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15234 | ;; | |
15235 | ||
15236 | tpf*) | |
15237 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
15238 | version_type=linux | |
15239 | need_lib_prefix=no | |
15240 | need_version=no | |
15241 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15242 | shlibpath_var=LD_LIBRARY_PATH | |
15243 | shlibpath_overrides_runpath=no | |
15244 | hardcode_into_libs=yes | |
15245 | ;; | |
15246 | ||
15247 | uts4*) | |
15248 | version_type=linux | |
15249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15250 | soname_spec='${libname}${release}${shared_ext}$major' | |
15251 | shlibpath_var=LD_LIBRARY_PATH | |
15252 | ;; | |
15253 | ||
15254 | *) | |
15255 | dynamic_linker=no | |
15256 | ;; | |
15257 | esac | |
15258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
15259 | $as_echo "$dynamic_linker" >&6; } | |
15260 | test "$dynamic_linker" = no && can_build_shared=no | |
15261 | ||
15262 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15263 | if test "$GCC" = yes; then | |
15264 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
15265 | fi | |
15266 | ||
15267 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
15268 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
15269 | fi | |
15270 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
15271 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
15272 | fi | |
15273 | ||
15274 | ||
15275 | ||
15276 | ||
15277 | ||
15278 | ||
15279 | ||
15280 | ||
15281 | ||
15282 | ||
15283 | ||
15284 | ||
15285 | ||
15286 | ||
15287 | ||
15288 | ||
15289 | ||
15290 | ||
15291 | ||
15292 | ||
15293 | ||
15294 | ||
15295 | ||
15296 | ||
15297 | ||
15298 | ||
15299 | ||
15300 | ||
15301 | ||
15302 | ||
15303 | ||
15304 | ||
15305 | ||
15306 | ||
15307 | ||
15308 | ||
15309 | ||
15310 | ||
15311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
15312 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
15313 | hardcode_action_CXX= | |
15314 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
15315 | test -n "$runpath_var_CXX" || | |
15316 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
15317 | ||
15318 | # We can hardcode non-existent directories. | |
15319 | if test "$hardcode_direct_CXX" != no && | |
15320 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15321 | # have to relink, otherwise we might link with an installed library | |
15322 | # when we should be linking with a yet-to-be-installed one | |
15323 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
15324 | test "$hardcode_minus_L_CXX" != no; then | |
15325 | # Linking always hardcodes the temporary library directory. | |
15326 | hardcode_action_CXX=relink | |
15327 | else | |
15328 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15329 | hardcode_action_CXX=immediate | |
15330 | fi | |
15331 | else | |
15332 | # We cannot hardcode anything, or else we can only hardcode existing | |
15333 | # directories. | |
15334 | hardcode_action_CXX=unsupported | |
15335 | fi | |
15336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
15337 | $as_echo "$hardcode_action_CXX" >&6; } | |
15338 | ||
15339 | if test "$hardcode_action_CXX" = relink || | |
15340 | test "$inherit_rpath_CXX" = yes; then | |
15341 | # Fast installation is not supported | |
15342 | enable_fast_install=no | |
15343 | elif test "$shlibpath_overrides_runpath" = yes || | |
15344 | test "$enable_shared" = no; then | |
15345 | # Fast installation is not necessary | |
15346 | enable_fast_install=needless | |
15347 | fi | |
15348 | ||
15349 | ||
15350 | ||
15351 | ||
15352 | ||
15353 | ||
15354 | ||
15355 | fi # test -n "$compiler" | |
15356 | ||
15357 | CC=$lt_save_CC | |
15358 | LDCXX=$LD | |
15359 | LD=$lt_save_LD | |
15360 | GCC=$lt_save_GCC | |
15361 | with_gnu_ld=$lt_save_with_gnu_ld | |
15362 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
15363 | lt_cv_path_LD=$lt_save_path_LD | |
15364 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15365 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15366 | fi # test "$_lt_caught_CXX_error" != yes | |
15367 | ||
15368 | ac_ext=c | |
15369 | ac_cpp='$CPP $CPPFLAGS' | |
15370 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15371 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15372 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15373 | ||
15374 | ||
15375 | ||
15376 | ||
15377 | ||
15378 | ||
15379 | ||
15380 | ||
15381 | ||
15382 | ||
15383 | ||
15384 | ||
15385 | ||
15386 | ac_config_commands="$ac_config_commands libtool" | |
15387 | ||
15388 | ||
15389 | ||
15390 | ||
15391 | # Only expand once: | |
15392 | ||
15393 | ||
15394 | ||
15395 | ||
15396 | ||
15397 | ||
15398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
15399 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
15400 | # Check whether --enable-maintainer-mode was given. | |
15401 | if test "${enable_maintainer_mode+set}" = set; then : | |
15402 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
15403 | else | |
15404 | USE_MAINTAINER_MODE=no | |
15405 | fi | |
15406 | ||
15407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
15408 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
15409 | if test $USE_MAINTAINER_MODE = yes; then | |
15410 | MAINTAINER_MODE_TRUE= | |
15411 | MAINTAINER_MODE_FALSE='#' | |
15412 | else | |
15413 | MAINTAINER_MODE_TRUE='#' | |
15414 | MAINTAINER_MODE_FALSE= | |
15415 | fi | |
15416 | ||
15417 | MAINT=$MAINTAINER_MODE_TRUE | |
15418 | ||
15419 | ||
15420 | ||
15421 | # For libtool versioning info, format is CURRENT:REVISION:AGE | |
15422 | libtool_VERSION=1:0:0 | |
15423 | ||
15424 | ||
15425 | # Check header files. | |
15426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
15427 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 15428 | if ${ac_cv_header_stdc+:} false; then : |
0a35513e AH |
15429 | $as_echo_n "(cached) " >&6 |
15430 | else | |
15431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15432 | /* end confdefs.h. */ | |
15433 | #include <stdlib.h> | |
15434 | #include <stdarg.h> | |
15435 | #include <string.h> | |
15436 | #include <float.h> | |
15437 | ||
15438 | int | |
15439 | main () | |
15440 | { | |
15441 | ||
15442 | ; | |
15443 | return 0; | |
15444 | } | |
15445 | _ACEOF | |
15446 | if ac_fn_c_try_compile "$LINENO"; then : | |
15447 | ac_cv_header_stdc=yes | |
15448 | else | |
15449 | ac_cv_header_stdc=no | |
15450 | fi | |
15451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15452 | ||
15453 | if test $ac_cv_header_stdc = yes; then | |
15454 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15456 | /* end confdefs.h. */ | |
15457 | #include <string.h> | |
15458 | ||
15459 | _ACEOF | |
15460 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15461 | $EGREP "memchr" >/dev/null 2>&1; then : | |
15462 | ||
15463 | else | |
15464 | ac_cv_header_stdc=no | |
15465 | fi | |
15466 | rm -f conftest* | |
15467 | ||
15468 | fi | |
15469 | ||
15470 | if test $ac_cv_header_stdc = yes; then | |
15471 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15473 | /* end confdefs.h. */ | |
15474 | #include <stdlib.h> | |
15475 | ||
15476 | _ACEOF | |
15477 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15478 | $EGREP "free" >/dev/null 2>&1; then : | |
15479 | ||
15480 | else | |
15481 | ac_cv_header_stdc=no | |
15482 | fi | |
15483 | rm -f conftest* | |
15484 | ||
15485 | fi | |
15486 | ||
15487 | if test $ac_cv_header_stdc = yes; then | |
15488 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15489 | if test "$cross_compiling" = yes; then : | |
15490 | : | |
15491 | else | |
15492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15493 | /* end confdefs.h. */ | |
15494 | #include <ctype.h> | |
15495 | #include <stdlib.h> | |
15496 | #if ((' ' & 0x0FF) == 0x020) | |
15497 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15498 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15499 | #else | |
15500 | # define ISLOWER(c) \ | |
15501 | (('a' <= (c) && (c) <= 'i') \ | |
15502 | || ('j' <= (c) && (c) <= 'r') \ | |
15503 | || ('s' <= (c) && (c) <= 'z')) | |
15504 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
15505 | #endif | |
15506 | ||
15507 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15508 | int | |
15509 | main () | |
15510 | { | |
15511 | int i; | |
15512 | for (i = 0; i < 256; i++) | |
15513 | if (XOR (islower (i), ISLOWER (i)) | |
15514 | || toupper (i) != TOUPPER (i)) | |
15515 | return 2; | |
15516 | return 0; | |
15517 | } | |
15518 | _ACEOF | |
15519 | if ac_fn_c_try_run "$LINENO"; then : | |
15520 | ||
15521 | else | |
15522 | ac_cv_header_stdc=no | |
15523 | fi | |
15524 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15525 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15526 | fi | |
15527 | ||
15528 | fi | |
15529 | fi | |
15530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
15531 | $as_echo "$ac_cv_header_stdc" >&6; } | |
15532 | if test $ac_cv_header_stdc = yes; then | |
15533 | ||
15534 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
15535 | ||
15536 | fi | |
15537 | ||
15538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
15539 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
22e05272 | 15540 | if ${ac_cv_header_time+:} false; then : |
0a35513e AH |
15541 | $as_echo_n "(cached) " >&6 |
15542 | else | |
15543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15544 | /* end confdefs.h. */ | |
15545 | #include <sys/types.h> | |
15546 | #include <sys/time.h> | |
15547 | #include <time.h> | |
15548 | ||
15549 | int | |
15550 | main () | |
15551 | { | |
15552 | if ((struct tm *) 0) | |
15553 | return 0; | |
15554 | ; | |
15555 | return 0; | |
15556 | } | |
15557 | _ACEOF | |
15558 | if ac_fn_c_try_compile "$LINENO"; then : | |
15559 | ac_cv_header_time=yes | |
15560 | else | |
15561 | ac_cv_header_time=no | |
15562 | fi | |
15563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15564 | fi | |
15565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
15566 | $as_echo "$ac_cv_header_time" >&6; } | |
15567 | if test $ac_cv_header_time = yes; then | |
15568 | ||
15569 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
15570 | ||
15571 | fi | |
15572 | ||
15573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 | |
15574 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
22e05272 | 15575 | if ${gcc_cv_header_string+:} false; then : |
0a35513e AH |
15576 | $as_echo_n "(cached) " >&6 |
15577 | else | |
15578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15579 | /* end confdefs.h. */ | |
15580 | #include <string.h> | |
15581 | #include <strings.h> | |
15582 | int | |
15583 | main () | |
15584 | { | |
15585 | ||
15586 | ; | |
15587 | return 0; | |
15588 | } | |
15589 | _ACEOF | |
15590 | if ac_fn_c_try_compile "$LINENO"; then : | |
15591 | gcc_cv_header_string=yes | |
15592 | else | |
15593 | gcc_cv_header_string=no | |
15594 | fi | |
15595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15596 | fi | |
15597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 | |
15598 | $as_echo "$gcc_cv_header_string" >&6; } | |
15599 | if test $gcc_cv_header_string = yes; then | |
15600 | ||
15601 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
15602 | ||
15603 | fi | |
15604 | ||
0258b6e4 | 15605 | for ac_header in unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h |
0a35513e AH |
15606 | do : |
15607 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15608 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
22e05272 | 15609 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
0a35513e AH |
15610 | cat >>confdefs.h <<_ACEOF |
15611 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15612 | _ACEOF | |
15613 | ||
15614 | fi | |
15615 | ||
15616 | done | |
15617 | ||
15618 | ||
15619 | ||
15620 | ||
15621 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
15622 | ||
15623 | acx_cv_header_stdint=stddef.h | |
15624 | acx_cv_header_stdint_kind="(already complete)" | |
15625 | for i in stdint.h $inttype_headers; do | |
15626 | unset ac_cv_type_uintptr_t | |
15627 | unset ac_cv_type_uintmax_t | |
15628 | unset ac_cv_type_int_least32_t | |
15629 | unset ac_cv_type_int_fast32_t | |
15630 | unset ac_cv_type_uint64_t | |
15631 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
15632 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
15633 | #include <$i> | |
15634 | " | |
22e05272 | 15635 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
0a35513e AH |
15636 | acx_cv_header_stdint=$i |
15637 | else | |
15638 | continue | |
15639 | fi | |
15640 | ||
15641 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> | |
15642 | #include <$i> | |
15643 | " | |
22e05272 | 15644 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
0a35513e AH |
15645 | |
15646 | else | |
15647 | acx_cv_header_stdint_kind="(mostly complete)" | |
15648 | fi | |
15649 | ||
15650 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> | |
15651 | #include <$i> | |
15652 | " | |
22e05272 | 15653 | if test "x$ac_cv_type_int_least32_t" = xyes; then : |
0a35513e AH |
15654 | |
15655 | else | |
15656 | acx_cv_header_stdint_kind="(mostly complete)" | |
15657 | fi | |
15658 | ||
15659 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> | |
15660 | #include <$i> | |
15661 | " | |
22e05272 | 15662 | if test "x$ac_cv_type_int_fast32_t" = xyes; then : |
0a35513e AH |
15663 | |
15664 | else | |
15665 | acx_cv_header_stdint_kind="(mostly complete)" | |
15666 | fi | |
15667 | ||
15668 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> | |
15669 | #include <$i> | |
15670 | " | |
22e05272 | 15671 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
0a35513e AH |
15672 | |
15673 | else | |
15674 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
15675 | fi | |
15676 | ||
15677 | break | |
15678 | done | |
15679 | if test "$acx_cv_header_stdint" = stddef.h; then | |
15680 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
15681 | for i in stdint.h $inttype_headers; do | |
15682 | unset ac_cv_type_uintptr_t | |
15683 | unset ac_cv_type_uint32_t | |
15684 | unset ac_cv_type_uint64_t | |
15685 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
15686 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
15687 | #include <$i> | |
15688 | " | |
22e05272 | 15689 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
0a35513e AH |
15690 | acx_cv_header_stdint=$i |
15691 | else | |
15692 | continue | |
15693 | fi | |
15694 | ||
15695 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> | |
15696 | #include <$i> | |
15697 | " | |
22e05272 | 15698 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
0a35513e AH |
15699 | |
15700 | fi | |
15701 | ||
15702 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> | |
15703 | #include <$i> | |
15704 | " | |
22e05272 | 15705 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
0a35513e AH |
15706 | |
15707 | fi | |
15708 | ||
15709 | break | |
15710 | done | |
15711 | fi | |
15712 | if test "$acx_cv_header_stdint" = stddef.h; then | |
15713 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
15714 | for i in sys/types.h $inttype_headers; do | |
15715 | unset ac_cv_type_u_int32_t | |
15716 | unset ac_cv_type_u_int64_t | |
15717 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
15718 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
15719 | #include <$i> | |
15720 | " | |
22e05272 | 15721 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
0a35513e AH |
15722 | acx_cv_header_stdint=$i |
15723 | else | |
15724 | continue | |
15725 | fi | |
15726 | ||
15727 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> | |
15728 | #include <$i> | |
15729 | " | |
22e05272 | 15730 | if test "x$ac_cv_type_u_int64_t" = xyes; then : |
0a35513e AH |
15731 | |
15732 | fi | |
15733 | ||
15734 | break | |
15735 | done | |
15736 | fi | |
15737 | if test "$acx_cv_header_stdint" = stddef.h; then | |
15738 | acx_cv_header_stdint_kind="(using manual detection)" | |
15739 | fi | |
15740 | ||
15741 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
15742 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
15743 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
15744 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
15745 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
15746 | ||
15747 | # ----------------- Summarize what we found so far | |
15748 | ||
15749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 | |
15750 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
15751 | ||
15752 | case `$as_basename -- gstdint.h || | |
15753 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
15754 | Xgstdint.h : 'X\(//\)$' \| \ | |
15755 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
15756 | $as_echo X/gstdint.h | | |
15757 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15758 | s//\1/ | |
15759 | q | |
15760 | } | |
15761 | /^X\/\(\/\/\)$/{ | |
15762 | s//\1/ | |
15763 | q | |
15764 | } | |
15765 | /^X\/\(\/\).*/{ | |
15766 | s//\1/ | |
15767 | q | |
15768 | } | |
15769 | s/.*/./; q'` in | |
15770 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
15771 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
15772 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
15773 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
15774 | *) ;; | |
15775 | esac | |
15776 | ||
15777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 | |
15778 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
15779 | ||
15780 | # ----------------- done included file, check C basic types -------- | |
15781 | ||
15782 | # Lacking an uintptr_t? Test size of void * | |
15783 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
15784 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
15785 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15786 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15787 | # This bug is HP SR number 8606223364. | |
15788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
15789 | $as_echo_n "checking size of void *... " >&6; } | |
22e05272 | 15790 | if ${ac_cv_sizeof_void_p+:} false; then : |
0a35513e AH |
15791 | $as_echo_n "(cached) " >&6 |
15792 | else | |
15793 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
15794 | ||
15795 | else | |
15796 | if test "$ac_cv_type_void_p" = yes; then | |
15797 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15798 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
15799 | as_fn_error 77 "cannot compute sizeof (void *) |
15800 | See \`config.log' for more details" "$LINENO" 5; } | |
0a35513e AH |
15801 | else |
15802 | ac_cv_sizeof_void_p=0 | |
15803 | fi | |
15804 | fi | |
15805 | ||
15806 | fi | |
15807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
15808 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
15809 | ||
15810 | ||
15811 | ||
15812 | cat >>confdefs.h <<_ACEOF | |
15813 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15814 | _ACEOF | |
15815 | ||
15816 | ;; | |
15817 | esac | |
15818 | ||
15819 | # Lacking an uint64_t? Test size of long | |
15820 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
15821 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
15822 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15823 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15824 | # This bug is HP SR number 8606223364. | |
15825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
15826 | $as_echo_n "checking size of long... " >&6; } | |
22e05272 | 15827 | if ${ac_cv_sizeof_long+:} false; then : |
0a35513e AH |
15828 | $as_echo_n "(cached) " >&6 |
15829 | else | |
15830 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
15831 | ||
15832 | else | |
15833 | if test "$ac_cv_type_long" = yes; then | |
15834 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15835 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
15836 | as_fn_error 77 "cannot compute sizeof (long) |
15837 | See \`config.log' for more details" "$LINENO" 5; } | |
0a35513e AH |
15838 | else |
15839 | ac_cv_sizeof_long=0 | |
15840 | fi | |
15841 | fi | |
15842 | ||
15843 | fi | |
15844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
15845 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
15846 | ||
15847 | ||
15848 | ||
15849 | cat >>confdefs.h <<_ACEOF | |
15850 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
15851 | _ACEOF | |
15852 | ||
15853 | ;; | |
15854 | esac | |
15855 | ||
15856 | if test $acx_cv_header_stdint = stddef.h; then | |
15857 | # Lacking a good header? Test size of everything and deduce all types. | |
15858 | # The cast to long int works around a bug in the HP C Compiler | |
15859 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15860 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15861 | # This bug is HP SR number 8606223364. | |
15862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
15863 | $as_echo_n "checking size of int... " >&6; } | |
22e05272 | 15864 | if ${ac_cv_sizeof_int+:} false; then : |
0a35513e AH |
15865 | $as_echo_n "(cached) " >&6 |
15866 | else | |
15867 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
15868 | ||
15869 | else | |
15870 | if test "$ac_cv_type_int" = yes; then | |
15871 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15872 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
15873 | as_fn_error 77 "cannot compute sizeof (int) |
15874 | See \`config.log' for more details" "$LINENO" 5; } | |
0a35513e AH |
15875 | else |
15876 | ac_cv_sizeof_int=0 | |
15877 | fi | |
15878 | fi | |
15879 | ||
15880 | fi | |
15881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
15882 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
15883 | ||
15884 | ||
15885 | ||
15886 | cat >>confdefs.h <<_ACEOF | |
15887 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15888 | _ACEOF | |
15889 | ||
15890 | ||
15891 | # The cast to long int works around a bug in the HP C Compiler | |
15892 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15893 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15894 | # This bug is HP SR number 8606223364. | |
15895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
15896 | $as_echo_n "checking size of short... " >&6; } | |
22e05272 | 15897 | if ${ac_cv_sizeof_short+:} false; then : |
0a35513e AH |
15898 | $as_echo_n "(cached) " >&6 |
15899 | else | |
15900 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
15901 | ||
15902 | else | |
15903 | if test "$ac_cv_type_short" = yes; then | |
15904 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15905 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
15906 | as_fn_error 77 "cannot compute sizeof (short) |
15907 | See \`config.log' for more details" "$LINENO" 5; } | |
0a35513e AH |
15908 | else |
15909 | ac_cv_sizeof_short=0 | |
15910 | fi | |
15911 | fi | |
15912 | ||
15913 | fi | |
15914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
15915 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
15916 | ||
15917 | ||
15918 | ||
15919 | cat >>confdefs.h <<_ACEOF | |
15920 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15921 | _ACEOF | |
15922 | ||
15923 | ||
15924 | # The cast to long int works around a bug in the HP C Compiler | |
15925 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15926 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15927 | # This bug is HP SR number 8606223364. | |
15928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
15929 | $as_echo_n "checking size of char... " >&6; } | |
22e05272 | 15930 | if ${ac_cv_sizeof_char+:} false; then : |
0a35513e AH |
15931 | $as_echo_n "(cached) " >&6 |
15932 | else | |
15933 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : | |
15934 | ||
15935 | else | |
15936 | if test "$ac_cv_type_char" = yes; then | |
15937 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15938 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
15939 | as_fn_error 77 "cannot compute sizeof (char) |
15940 | See \`config.log' for more details" "$LINENO" 5; } | |
0a35513e AH |
15941 | else |
15942 | ac_cv_sizeof_char=0 | |
15943 | fi | |
15944 | fi | |
15945 | ||
15946 | fi | |
15947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
15948 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
15949 | ||
15950 | ||
15951 | ||
15952 | cat >>confdefs.h <<_ACEOF | |
15953 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
15954 | _ACEOF | |
15955 | ||
15956 | ||
15957 | ||
15958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 | |
15959 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
15960 | case "$ac_cv_sizeof_char" in | |
15961 | 1) acx_cv_type_int8_t=char ;; | |
22e05272 | 15962 | *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 |
0a35513e AH |
15963 | esac |
15964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
15965 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
15966 | ||
15967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
15968 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
15969 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
15970 | 2:*) acx_cv_type_int16_t=int ;; | |
15971 | *:2) acx_cv_type_int16_t=short ;; | |
22e05272 | 15972 | *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 |
0a35513e AH |
15973 | esac |
15974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
15975 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
15976 | ||
15977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
15978 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
15979 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
15980 | 4:*) acx_cv_type_int32_t=int ;; | |
15981 | *:4) acx_cv_type_int32_t=long ;; | |
22e05272 | 15982 | *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 |
0a35513e AH |
15983 | esac |
15984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
15985 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
15986 | fi | |
15987 | ||
15988 | # These tests are here to make the output prettier | |
15989 | ||
15990 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
15991 | case "$ac_cv_sizeof_long" in | |
15992 | 8) acx_cv_type_int64_t=long ;; | |
15993 | esac | |
15994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
15995 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
15996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
15997 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
15998 | fi | |
15999 | ||
16000 | # Now we can use the above types | |
16001 | ||
16002 | if test "$ac_cv_type_uintptr_t" != yes; then | |
16003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
16004 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
16005 | case $ac_cv_sizeof_void_p in | |
16006 | 2) acx_cv_type_intptr_t=int16_t ;; | |
16007 | 4) acx_cv_type_intptr_t=int32_t ;; | |
16008 | 8) acx_cv_type_intptr_t=int64_t ;; | |
22e05272 | 16009 | *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 |
0a35513e AH |
16010 | esac |
16011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
16012 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
16013 | fi | |
16014 | ||
16015 | # ----------------- done all checks, emit header ------------- | |
16016 | ac_config_commands="$ac_config_commands gstdint.h" | |
16017 | ||
16018 | ||
16019 | ||
16020 | ||
16021 | ||
16022 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" | |
22e05272 | 16023 | if test "x$ac_cv_header_sys_mman_h" = xyes; then : |
0a35513e AH |
16024 | gcc_header_sys_mman_h=yes |
16025 | else | |
16026 | gcc_header_sys_mman_h=no | |
16027 | fi | |
16028 | ||
16029 | ||
16030 | ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" | |
22e05272 | 16031 | if test "x$ac_cv_func_mmap" = xyes; then : |
0a35513e AH |
16032 | gcc_func_mmap=yes |
16033 | else | |
16034 | gcc_func_mmap=no | |
16035 | fi | |
16036 | ||
16037 | if test "$gcc_header_sys_mman_h" != yes \ | |
16038 | || test "$gcc_func_mmap" != yes; then | |
16039 | gcc_cv_func_mmap_file=no | |
16040 | gcc_cv_func_mmap_dev_zero=no | |
16041 | gcc_cv_func_mmap_anon=no | |
16042 | else | |
16043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5 | |
16044 | $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; } | |
22e05272 | 16045 | if ${gcc_cv_func_mmap_file+:} false; then : |
0a35513e AH |
16046 | $as_echo_n "(cached) " >&6 |
16047 | else | |
16048 | # Add a system to this blacklist if | |
16049 | # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a | |
16050 | # memory area containing the same data that you'd get if you applied | |
16051 | # read() to the same fd. The only system known to have a problem here | |
16052 | # is VMS, where text files have record structure. | |
16053 | case "$host_os" in | |
2f6935f4 | 16054 | *vms* | ultrix*) |
0a35513e AH |
16055 | gcc_cv_func_mmap_file=no ;; |
16056 | *) | |
16057 | gcc_cv_func_mmap_file=yes;; | |
16058 | esac | |
16059 | fi | |
16060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5 | |
16061 | $as_echo "$gcc_cv_func_mmap_file" >&6; } | |
16062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5 | |
16063 | $as_echo_n "checking whether mmap from /dev/zero works... " >&6; } | |
22e05272 | 16064 | if ${gcc_cv_func_mmap_dev_zero+:} false; then : |
0a35513e AH |
16065 | $as_echo_n "(cached) " >&6 |
16066 | else | |
16067 | # Add a system to this blacklist if it has mmap() but /dev/zero | |
16068 | # does not exist, or if mmapping /dev/zero does not give anonymous | |
16069 | # zeroed pages with both the following properties: | |
16070 | # 1. If you map N consecutive pages in with one call, and then | |
16071 | # unmap any subset of those pages, the pages that were not | |
16072 | # explicitly unmapped remain accessible. | |
16073 | # 2. If you map two adjacent blocks of memory and then unmap them | |
16074 | # both at once, they must both go away. | |
16075 | # Systems known to be in this category are Windows (all variants), | |
16076 | # VMS, and Darwin. | |
16077 | case "$host_os" in | |
2f6935f4 | 16078 | *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) |
0a35513e AH |
16079 | gcc_cv_func_mmap_dev_zero=no ;; |
16080 | *) | |
16081 | gcc_cv_func_mmap_dev_zero=yes;; | |
16082 | esac | |
16083 | fi | |
16084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5 | |
16085 | $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; } | |
16086 | ||
16087 | # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for. | |
16088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5 | |
16089 | $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; } | |
22e05272 | 16090 | if ${gcc_cv_decl_map_anon+:} false; then : |
0a35513e AH |
16091 | $as_echo_n "(cached) " >&6 |
16092 | else | |
16093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16094 | /* end confdefs.h. */ | |
16095 | #include <sys/types.h> | |
16096 | #include <sys/mman.h> | |
16097 | #include <unistd.h> | |
16098 | ||
16099 | #ifndef MAP_ANONYMOUS | |
16100 | #define MAP_ANONYMOUS MAP_ANON | |
16101 | #endif | |
16102 | ||
16103 | int | |
16104 | main () | |
16105 | { | |
16106 | int n = MAP_ANONYMOUS; | |
16107 | ; | |
16108 | return 0; | |
16109 | } | |
16110 | _ACEOF | |
16111 | if ac_fn_c_try_compile "$LINENO"; then : | |
16112 | gcc_cv_decl_map_anon=yes | |
16113 | else | |
16114 | gcc_cv_decl_map_anon=no | |
16115 | fi | |
16116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16117 | fi | |
16118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5 | |
16119 | $as_echo "$gcc_cv_decl_map_anon" >&6; } | |
16120 | ||
16121 | if test $gcc_cv_decl_map_anon = no; then | |
16122 | gcc_cv_func_mmap_anon=no | |
16123 | else | |
16124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5 | |
16125 | $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; } | |
22e05272 | 16126 | if ${gcc_cv_func_mmap_anon+:} false; then : |
0a35513e AH |
16127 | $as_echo_n "(cached) " >&6 |
16128 | else | |
16129 | # Add a system to this blacklist if it has mmap() and MAP_ANON or | |
16130 | # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) | |
16131 | # doesn't give anonymous zeroed pages with the same properties listed | |
16132 | # above for use of /dev/zero. | |
16133 | # Systems known to be in this category are Windows, VMS, and SCO Unix. | |
16134 | case "$host_os" in | |
2f6935f4 | 16135 | *vms* | cygwin* | pe | mingw* | sco* | udk* ) |
0a35513e AH |
16136 | gcc_cv_func_mmap_anon=no ;; |
16137 | *) | |
16138 | gcc_cv_func_mmap_anon=yes;; | |
16139 | esac | |
16140 | fi | |
16141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5 | |
16142 | $as_echo "$gcc_cv_func_mmap_anon" >&6; } | |
16143 | fi | |
16144 | fi | |
16145 | ||
16146 | if test $gcc_cv_func_mmap_file = yes; then | |
16147 | ||
16148 | $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h | |
16149 | ||
16150 | fi | |
16151 | if test $gcc_cv_func_mmap_dev_zero = yes; then | |
16152 | ||
16153 | $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h | |
16154 | ||
16155 | fi | |
16156 | if test $gcc_cv_func_mmap_anon = yes; then | |
16157 | ||
16158 | $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h | |
16159 | ||
16160 | fi | |
16161 | ||
16162 | ||
16163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
16164 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
22e05272 | 16165 | if ${ac_cv_c_bigendian+:} false; then : |
0a35513e AH |
16166 | $as_echo_n "(cached) " >&6 |
16167 | else | |
16168 | ac_cv_c_bigendian=unknown | |
16169 | # See if we're dealing with a universal compiler. | |
16170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16171 | /* end confdefs.h. */ | |
16172 | #ifndef __APPLE_CC__ | |
16173 | not a universal capable compiler | |
16174 | #endif | |
16175 | typedef int dummy; | |
16176 | ||
16177 | _ACEOF | |
16178 | if ac_fn_c_try_compile "$LINENO"; then : | |
16179 | ||
16180 | # Check for potential -arch flags. It is not universal unless | |
16181 | # there are at least two -arch flags with different values. | |
16182 | ac_arch= | |
16183 | ac_prev= | |
16184 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
16185 | if test -n "$ac_prev"; then | |
16186 | case $ac_word in | |
16187 | i?86 | x86_64 | ppc | ppc64) | |
16188 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
16189 | ac_arch=$ac_word | |
16190 | else | |
16191 | ac_cv_c_bigendian=universal | |
16192 | break | |
16193 | fi | |
16194 | ;; | |
16195 | esac | |
16196 | ac_prev= | |
16197 | elif test "x$ac_word" = "x-arch"; then | |
16198 | ac_prev=arch | |
16199 | fi | |
16200 | done | |
16201 | fi | |
16202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16203 | if test $ac_cv_c_bigendian = unknown; then | |
16204 | # See if sys/param.h defines the BYTE_ORDER macro. | |
16205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16206 | /* end confdefs.h. */ | |
16207 | #include <sys/types.h> | |
16208 | #include <sys/param.h> | |
16209 | ||
16210 | int | |
16211 | main () | |
16212 | { | |
16213 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
16214 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
16215 | && LITTLE_ENDIAN) | |
16216 | bogus endian macros | |
16217 | #endif | |
16218 | ||
16219 | ; | |
16220 | return 0; | |
16221 | } | |
16222 | _ACEOF | |
16223 | if ac_fn_c_try_compile "$LINENO"; then : | |
16224 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
16225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16226 | /* end confdefs.h. */ | |
16227 | #include <sys/types.h> | |
16228 | #include <sys/param.h> | |
16229 | ||
16230 | int | |
16231 | main () | |
16232 | { | |
16233 | #if BYTE_ORDER != BIG_ENDIAN | |
16234 | not big endian | |
16235 | #endif | |
16236 | ||
16237 | ; | |
16238 | return 0; | |
16239 | } | |
16240 | _ACEOF | |
16241 | if ac_fn_c_try_compile "$LINENO"; then : | |
16242 | ac_cv_c_bigendian=yes | |
16243 | else | |
16244 | ac_cv_c_bigendian=no | |
16245 | fi | |
16246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16247 | fi | |
16248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16249 | fi | |
16250 | if test $ac_cv_c_bigendian = unknown; then | |
16251 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
16252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16253 | /* end confdefs.h. */ | |
16254 | #include <limits.h> | |
16255 | ||
16256 | int | |
16257 | main () | |
16258 | { | |
16259 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
16260 | bogus endian macros | |
16261 | #endif | |
16262 | ||
16263 | ; | |
16264 | return 0; | |
16265 | } | |
16266 | _ACEOF | |
16267 | if ac_fn_c_try_compile "$LINENO"; then : | |
16268 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
16269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16270 | /* end confdefs.h. */ | |
16271 | #include <limits.h> | |
16272 | ||
16273 | int | |
16274 | main () | |
16275 | { | |
16276 | #ifndef _BIG_ENDIAN | |
16277 | not big endian | |
16278 | #endif | |
16279 | ||
16280 | ; | |
16281 | return 0; | |
16282 | } | |
16283 | _ACEOF | |
16284 | if ac_fn_c_try_compile "$LINENO"; then : | |
16285 | ac_cv_c_bigendian=yes | |
16286 | else | |
16287 | ac_cv_c_bigendian=no | |
16288 | fi | |
16289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16290 | fi | |
16291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16292 | fi | |
16293 | if test $ac_cv_c_bigendian = unknown; then | |
16294 | # Compile a test program. | |
16295 | if test "$cross_compiling" = yes; then : | |
16296 | # Try to guess by grepping values from an object file. | |
16297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16298 | /* end confdefs.h. */ | |
16299 | short int ascii_mm[] = | |
16300 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
16301 | short int ascii_ii[] = | |
16302 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
16303 | int use_ascii (int i) { | |
16304 | return ascii_mm[i] + ascii_ii[i]; | |
16305 | } | |
16306 | short int ebcdic_ii[] = | |
16307 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
16308 | short int ebcdic_mm[] = | |
16309 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
16310 | int use_ebcdic (int i) { | |
16311 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
16312 | } | |
16313 | extern int foo; | |
16314 | ||
16315 | int | |
16316 | main () | |
16317 | { | |
16318 | return use_ascii (foo) == use_ebcdic (foo); | |
16319 | ; | |
16320 | return 0; | |
16321 | } | |
16322 | _ACEOF | |
16323 | if ac_fn_c_try_compile "$LINENO"; then : | |
16324 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
16325 | ac_cv_c_bigendian=yes | |
16326 | fi | |
16327 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
16328 | if test "$ac_cv_c_bigendian" = unknown; then | |
16329 | ac_cv_c_bigendian=no | |
16330 | else | |
16331 | # finding both strings is unlikely to happen, but who knows? | |
16332 | ac_cv_c_bigendian=unknown | |
16333 | fi | |
16334 | fi | |
16335 | fi | |
16336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16337 | else | |
16338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16339 | /* end confdefs.h. */ | |
16340 | $ac_includes_default | |
16341 | int | |
16342 | main () | |
16343 | { | |
16344 | ||
16345 | /* Are we little or big endian? From Harbison&Steele. */ | |
16346 | union | |
16347 | { | |
16348 | long int l; | |
16349 | char c[sizeof (long int)]; | |
16350 | } u; | |
16351 | u.l = 1; | |
16352 | return u.c[sizeof (long int) - 1] == 1; | |
16353 | ||
16354 | ; | |
16355 | return 0; | |
16356 | } | |
16357 | _ACEOF | |
16358 | if ac_fn_c_try_run "$LINENO"; then : | |
16359 | ac_cv_c_bigendian=no | |
16360 | else | |
16361 | ac_cv_c_bigendian=yes | |
16362 | fi | |
16363 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16364 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16365 | fi | |
16366 | ||
16367 | fi | |
16368 | fi | |
16369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
16370 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
16371 | case $ac_cv_c_bigendian in #( | |
16372 | yes) | |
16373 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
16374 | ;; #( | |
16375 | no) | |
16376 | ;; #( | |
16377 | universal) | |
16378 | ||
16379 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
16380 | ||
16381 | ;; #( | |
16382 | *) | |
22e05272 | 16383 | as_fn_error $? "unknown endianness |
0a35513e AH |
16384 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
16385 | esac | |
16386 | ||
16387 | # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE. | |
16388 | ||
16389 | ||
16390 | # Check to see if -pthread or -lpthread is needed. Prefer the former. | |
16391 | # In case the pthread.h system header is not found, this test will fail. | |
16392 | XPCFLAGS="" | |
16393 | CFLAGS="$CFLAGS -pthread" | |
16394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16395 | /* end confdefs.h. */ | |
16396 | #include <pthread.h> | |
16397 | void *g(void *d) { return NULL; } | |
16398 | int | |
16399 | main () | |
16400 | { | |
16401 | pthread_t t; pthread_create(&t,NULL,g,NULL); | |
16402 | ; | |
16403 | return 0; | |
16404 | } | |
16405 | _ACEOF | |
16406 | if ac_fn_c_try_link "$LINENO"; then : | |
16407 | XPCFLAGS=" -Wc,-pthread" | |
16408 | else | |
16409 | CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS" | |
16410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16411 | /* end confdefs.h. */ | |
16412 | #include <pthread.h> | |
16413 | void *g(void *d) { return NULL; } | |
16414 | int | |
16415 | main () | |
16416 | { | |
16417 | pthread_t t; pthread_create(&t,NULL,g,NULL); | |
16418 | ; | |
16419 | return 0; | |
16420 | } | |
16421 | _ACEOF | |
16422 | if ac_fn_c_try_link "$LINENO"; then : | |
16423 | ||
16424 | else | |
22e05272 | 16425 | as_fn_error $? "Pthreads are required to build libitm" "$LINENO" 5 |
0a35513e AH |
16426 | fi |
16427 | rm -f core conftest.err conftest.$ac_objext \ | |
16428 | conftest$ac_exeext conftest.$ac_ext | |
16429 | fi | |
16430 | rm -f core conftest.err conftest.$ac_objext \ | |
16431 | conftest$ac_exeext conftest.$ac_ext | |
16432 | ||
16433 | # Check for functions needed. | |
0258b6e4 | 16434 | for ac_func in strtoull memalign posix_memalign getauxval |
0a35513e AH |
16435 | do : |
16436 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16437 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 16438 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
0a35513e AH |
16439 | cat >>confdefs.h <<_ACEOF |
16440 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16441 | _ACEOF | |
16442 | ||
16443 | fi | |
16444 | done | |
16445 | ||
16446 | ||
16447 | # Check for broken semaphore implementation on darwin. | |
16448 | # sem_init returns: sem_init error: Function not implemented. | |
16449 | case "$host" in | |
16450 | *-darwin*) | |
16451 | ||
16452 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | |
16453 | ||
16454 | ;; | |
16455 | esac | |
16456 | ||
16457 | # Check whether --enable-linux-futex was given. | |
16458 | if test "${enable_linux_futex+set}" = set; then : | |
16459 | enableval=$enable_linux_futex; | |
16460 | case "$enableval" in | |
16461 | yes|no|default) ;; | |
22e05272 | 16462 | *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;; |
0a35513e AH |
16463 | esac |
16464 | ||
16465 | else | |
16466 | enable_linux_futex=default | |
16467 | fi | |
16468 | ||
16469 | ||
16470 | case "$target" in | |
16471 | *-linux*) | |
16472 | case "$enable_linux_futex" in | |
16473 | default) | |
16474 | # If headers don't have gettid/futex syscalls definition, then | |
16475 | # default to no, otherwise there will be compile time failures. | |
16476 | # Otherwise, default to yes. If we don't detect we are | |
16477 | # compiled/linked against NPTL and not cross-compiling, check | |
16478 | # if programs are run by default against NPTL and if not, issue | |
16479 | # a warning. | |
16480 | enable_linux_futex=no | |
16481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16482 | /* end confdefs.h. */ | |
16483 | #include <sys/syscall.h> | |
16484 | int lk; | |
16485 | int | |
16486 | main () | |
16487 | { | |
16488 | syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); | |
16489 | ; | |
16490 | return 0; | |
16491 | } | |
16492 | _ACEOF | |
16493 | if ac_fn_c_try_link "$LINENO"; then : | |
16494 | save_LIBS="$LIBS" | |
16495 | LIBS="-lpthread $LIBS" | |
16496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16497 | /* end confdefs.h. */ | |
16498 | #ifndef _GNU_SOURCE | |
16499 | #define _GNU_SOURCE 1 | |
16500 | #endif | |
16501 | #include <pthread.h> | |
16502 | pthread_t th; void *status; | |
16503 | int | |
16504 | main () | |
16505 | { | |
16506 | pthread_tryjoin_np (th, &status); | |
16507 | ; | |
16508 | return 0; | |
16509 | } | |
16510 | _ACEOF | |
16511 | if ac_fn_c_try_link "$LINENO"; then : | |
16512 | enable_linux_futex=yes | |
16513 | else | |
16514 | if test x$cross_compiling = xno; then | |
16515 | if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \ | |
16516 | | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else | |
16517 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls. | |
16518 | If so, please configure with --disable-linux-futex" >&5 | |
16519 | $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls. | |
16520 | If so, please configure with --disable-linux-futex" >&2;} | |
16521 | fi | |
16522 | fi | |
16523 | enable_linux_futex=yes | |
16524 | fi | |
16525 | rm -f core conftest.err conftest.$ac_objext \ | |
16526 | conftest$ac_exeext conftest.$ac_ext | |
16527 | LIBS="$save_LIBS" | |
16528 | fi | |
16529 | rm -f core conftest.err conftest.$ac_objext \ | |
16530 | conftest$ac_exeext conftest.$ac_ext | |
16531 | ;; | |
16532 | yes) | |
16533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16534 | /* end confdefs.h. */ | |
16535 | #include <sys/syscall.h> | |
16536 | int lk; | |
16537 | int | |
16538 | main () | |
16539 | { | |
16540 | syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); | |
16541 | ; | |
16542 | return 0; | |
16543 | } | |
16544 | _ACEOF | |
16545 | if ac_fn_c_try_link "$LINENO"; then : | |
16546 | ||
16547 | else | |
22e05272 | 16548 | as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5 |
0a35513e AH |
16549 | fi |
16550 | rm -f core conftest.err conftest.$ac_objext \ | |
16551 | conftest$ac_exeext conftest.$ac_ext | |
16552 | ;; | |
16553 | esac | |
16554 | ;; | |
16555 | *) | |
16556 | enable_linux_futex=no | |
16557 | ;; | |
16558 | esac | |
16559 | if test x$enable_linux_futex = xyes; then | |
16560 | : | |
16561 | fi | |
16562 | ||
16563 | ||
16564 | # See if we support thread-local storage. | |
16565 | ||
16566 | ||
16567 | # Check whether --enable-tls was given. | |
16568 | if test "${enable_tls+set}" = set; then : | |
16569 | enableval=$enable_tls; | |
16570 | case "$enableval" in | |
16571 | yes|no) ;; | |
22e05272 | 16572 | *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;; |
0a35513e AH |
16573 | esac |
16574 | ||
16575 | else | |
16576 | enable_tls=yes | |
16577 | fi | |
16578 | ||
16579 | ||
16580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5 | |
16581 | $as_echo_n "checking whether the target supports thread-local storage... " >&6; } | |
22e05272 | 16582 | if ${gcc_cv_have_tls+:} false; then : |
0a35513e AH |
16583 | $as_echo_n "(cached) " >&6 |
16584 | else | |
16585 | ||
16586 | if test "$cross_compiling" = yes; then : | |
16587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16588 | /* end confdefs.h. */ | |
16589 | __thread int a; int b; int main() { return a = b; } | |
16590 | _ACEOF | |
16591 | if ac_fn_c_try_link "$LINENO"; then : | |
16592 | chktls_save_LDFLAGS="$LDFLAGS" | |
16593 | case $host in | |
16594 | *-*-linux*) | |
16595 | LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS" | |
16596 | ;; | |
16597 | esac | |
16598 | chktls_save_CFLAGS="$CFLAGS" | |
16599 | CFLAGS="-fPIC $CFLAGS" | |
16600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16601 | /* end confdefs.h. */ | |
16602 | int f() { return 0; } | |
16603 | _ACEOF | |
16604 | if ac_fn_c_try_link "$LINENO"; then : | |
16605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16606 | /* end confdefs.h. */ | |
16607 | __thread int a; int b; int f() { return a = b; } | |
16608 | _ACEOF | |
16609 | if ac_fn_c_try_link "$LINENO"; then : | |
16610 | gcc_cv_have_tls=yes | |
16611 | else | |
16612 | gcc_cv_have_tls=no | |
16613 | fi | |
16614 | rm -f core conftest.err conftest.$ac_objext \ | |
16615 | conftest$ac_exeext conftest.$ac_ext | |
16616 | else | |
16617 | gcc_cv_have_tls=yes | |
16618 | fi | |
16619 | rm -f core conftest.err conftest.$ac_objext \ | |
16620 | conftest$ac_exeext conftest.$ac_ext | |
16621 | CFLAGS="$chktls_save_CFLAGS" | |
16622 | LDFLAGS="$chktls_save_LDFLAGS" | |
16623 | else | |
16624 | gcc_cv_have_tls=no | |
16625 | fi | |
16626 | rm -f core conftest.err conftest.$ac_objext \ | |
16627 | conftest$ac_exeext conftest.$ac_ext | |
16628 | ||
16629 | ||
16630 | else | |
16631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16632 | /* end confdefs.h. */ | |
16633 | __thread int a; int b; int main() { return a = b; } | |
16634 | _ACEOF | |
16635 | if ac_fn_c_try_run "$LINENO"; then : | |
16636 | chktls_save_LDFLAGS="$LDFLAGS" | |
16637 | LDFLAGS="-static $LDFLAGS" | |
16638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16639 | /* end confdefs.h. */ | |
16640 | int main() { return 0; } | |
16641 | _ACEOF | |
16642 | if ac_fn_c_try_link "$LINENO"; then : | |
16643 | if test "$cross_compiling" = yes; then : | |
16644 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16645 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16646 | as_fn_error $? "cannot run test program while cross compiling |
16647 | See \`config.log' for more details" "$LINENO" 5; } | |
0a35513e AH |
16648 | else |
16649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16650 | /* end confdefs.h. */ | |
16651 | __thread int a; int b; int main() { return a = b; } | |
16652 | _ACEOF | |
16653 | if ac_fn_c_try_run "$LINENO"; then : | |
16654 | gcc_cv_have_tls=yes | |
16655 | else | |
16656 | gcc_cv_have_tls=no | |
16657 | fi | |
16658 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16659 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16660 | fi | |
16661 | ||
16662 | else | |
16663 | gcc_cv_have_tls=yes | |
16664 | fi | |
16665 | rm -f core conftest.err conftest.$ac_objext \ | |
16666 | conftest$ac_exeext conftest.$ac_ext | |
16667 | LDFLAGS="$chktls_save_LDFLAGS" | |
16668 | if test $gcc_cv_have_tls = yes; then | |
16669 | chktls_save_CFLAGS="$CFLAGS" | |
16670 | thread_CFLAGS=failed | |
16671 | for flag in '' '-pthread' '-lpthread'; do | |
16672 | CFLAGS="$flag $chktls_save_CFLAGS" | |
16673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16674 | /* end confdefs.h. */ | |
16675 | #include <pthread.h> | |
16676 | void *g(void *d) { return NULL; } | |
16677 | int | |
16678 | main () | |
16679 | { | |
16680 | pthread_t t; pthread_create(&t,NULL,g,NULL); | |
16681 | ; | |
16682 | return 0; | |
16683 | } | |
16684 | _ACEOF | |
16685 | if ac_fn_c_try_link "$LINENO"; then : | |
16686 | thread_CFLAGS="$flag" | |
16687 | fi | |
16688 | rm -f core conftest.err conftest.$ac_objext \ | |
16689 | conftest$ac_exeext conftest.$ac_ext | |
16690 | if test "X$thread_CFLAGS" != Xfailed; then | |
16691 | break | |
16692 | fi | |
16693 | done | |
16694 | CFLAGS="$chktls_save_CFLAGS" | |
16695 | if test "X$thread_CFLAGS" != Xfailed; then | |
16696 | CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS" | |
16697 | if test "$cross_compiling" = yes; then : | |
16698 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16699 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16700 | as_fn_error $? "cannot run test program while cross compiling |
16701 | See \`config.log' for more details" "$LINENO" 5; } | |
0a35513e AH |
16702 | else |
16703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16704 | /* end confdefs.h. */ | |
16705 | #include <pthread.h> | |
16706 | __thread int a; | |
16707 | static int *volatile a_in_other_thread; | |
16708 | static void * | |
16709 | thread_func (void *arg) | |
16710 | { | |
16711 | a_in_other_thread = &a; | |
16712 | return (void *)0; | |
16713 | } | |
16714 | int | |
16715 | main () | |
16716 | { | |
16717 | pthread_t thread; | |
16718 | void *thread_retval; | |
16719 | int *volatile a_in_main_thread; | |
16720 | a_in_main_thread = &a; | |
16721 | if (pthread_create (&thread, (pthread_attr_t *)0, | |
16722 | thread_func, (void *)0)) | |
16723 | return 0; | |
16724 | if (pthread_join (thread, &thread_retval)) | |
16725 | return 0; | |
16726 | return (a_in_other_thread == a_in_main_thread); | |
16727 | ; | |
16728 | return 0; | |
16729 | } | |
16730 | _ACEOF | |
16731 | if ac_fn_c_try_run "$LINENO"; then : | |
16732 | gcc_cv_have_tls=yes | |
16733 | else | |
16734 | gcc_cv_have_tls=no | |
16735 | fi | |
16736 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16737 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16738 | fi | |
16739 | ||
16740 | CFLAGS="$chktls_save_CFLAGS" | |
16741 | fi | |
16742 | fi | |
16743 | else | |
16744 | gcc_cv_have_tls=no | |
16745 | fi | |
16746 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16747 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16748 | fi | |
16749 | ||
16750 | fi | |
16751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5 | |
16752 | $as_echo "$gcc_cv_have_tls" >&6; } | |
16753 | if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then | |
16754 | ||
16755 | $as_echo "#define HAVE_TLS 1" >>confdefs.h | |
16756 | ||
16757 | fi | |
16758 | ||
9ce91011 | 16759 | # See what sort of export controls are available. |
0a35513e AH |
16760 | |
16761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 | |
16762 | $as_echo_n "checking whether the target supports hidden visibility... " >&6; } | |
22e05272 | 16763 | if ${libitm_cv_have_attribute_visibility+:} false; then : |
0a35513e AH |
16764 | $as_echo_n "(cached) " >&6 |
16765 | else | |
16766 | ||
16767 | save_CFLAGS="$CFLAGS" | |
16768 | CFLAGS="$CFLAGS -Werror" | |
16769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16770 | /* end confdefs.h. */ | |
16771 | void __attribute__((visibility("hidden"))) foo(void) { } | |
16772 | int | |
16773 | main () | |
16774 | { | |
16775 | ||
16776 | ; | |
16777 | return 0; | |
16778 | } | |
16779 | _ACEOF | |
16780 | if ac_fn_c_try_compile "$LINENO"; then : | |
16781 | libitm_cv_have_attribute_visibility=yes | |
16782 | else | |
16783 | libitm_cv_have_attribute_visibility=no | |
16784 | fi | |
16785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16786 | CFLAGS="$save_CFLAGS" | |
16787 | fi | |
16788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5 | |
16789 | $as_echo "$libitm_cv_have_attribute_visibility" >&6; } | |
16790 | if test $libitm_cv_have_attribute_visibility = yes; then | |
16791 | ||
16792 | $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h | |
16793 | ||
16794 | fi | |
16795 | ||
16796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5 | |
16797 | $as_echo_n "checking whether the target supports dllexport... " >&6; } | |
22e05272 | 16798 | if ${libitm_cv_have_attribute_dllexport+:} false; then : |
0a35513e AH |
16799 | $as_echo_n "(cached) " >&6 |
16800 | else | |
16801 | ||
16802 | save_CFLAGS="$CFLAGS" | |
16803 | CFLAGS="$CFLAGS -Werror" | |
16804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16805 | /* end confdefs.h. */ | |
16806 | void __attribute__((dllexport)) foo(void) { } | |
16807 | int | |
16808 | main () | |
16809 | { | |
16810 | ||
16811 | ; | |
16812 | return 0; | |
16813 | } | |
16814 | _ACEOF | |
16815 | if ac_fn_c_try_compile "$LINENO"; then : | |
16816 | libitm_cv_have_attribute_dllexport=yes | |
16817 | else | |
16818 | libitm_cv_have_attribute_dllexport=no | |
16819 | fi | |
16820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16821 | CFLAGS="$save_CFLAGS" | |
16822 | fi | |
16823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5 | |
16824 | $as_echo "$libitm_cv_have_attribute_dllexport" >&6; } | |
16825 | if test $libitm_cv_have_attribute_dllexport = yes; then | |
16826 | ||
16827 | $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h | |
16828 | ||
16829 | fi | |
16830 | ||
16831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 | |
16832 | $as_echo_n "checking whether the target supports symbol aliases... " >&6; } | |
22e05272 | 16833 | if ${libitm_cv_have_attribute_alias+:} false; then : |
0a35513e AH |
16834 | $as_echo_n "(cached) " >&6 |
16835 | else | |
16836 | ||
16837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16838 | /* end confdefs.h. */ | |
16839 | ||
16840 | void foo(void) { } | |
16841 | extern void bar(void) __attribute__((alias("foo"))); | |
16842 | int | |
16843 | main () | |
16844 | { | |
16845 | bar(); | |
16846 | ; | |
16847 | return 0; | |
16848 | } | |
16849 | _ACEOF | |
16850 | if ac_fn_c_try_link "$LINENO"; then : | |
16851 | libitm_cv_have_attribute_alias=yes | |
16852 | else | |
16853 | libitm_cv_have_attribute_alias=no | |
16854 | fi | |
16855 | rm -f core conftest.err conftest.$ac_objext \ | |
16856 | conftest$ac_exeext conftest.$ac_ext | |
16857 | fi | |
16858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5 | |
16859 | $as_echo "$libitm_cv_have_attribute_alias" >&6; } | |
16860 | if test $libitm_cv_have_attribute_alias = yes; then | |
16861 | ||
16862 | $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h | |
16863 | ||
16864 | fi | |
16865 | ||
9ce91011 RO |
16866 | # Check linker hardware capability support. |
16867 | ||
0a35513e AH |
16868 | |
16869 | # Check whether --with-gnu-ld was given. | |
16870 | if test "${with_gnu_ld+set}" = set; then : | |
16871 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
16872 | else | |
16873 | with_gnu_ld=no | |
16874 | fi | |
16875 | ||
16876 | ac_prog=ld | |
16877 | if test "$GCC" = yes; then | |
16878 | # Check if gcc -print-prog-name=ld gives a path. | |
16879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
16880 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
16881 | case $host in | |
16882 | *-*-mingw*) | |
16883 | # gcc leaves a trailing carriage return which upsets mingw | |
16884 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
16885 | *) | |
16886 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
16887 | esac | |
16888 | case $ac_prog in | |
16889 | # Accept absolute paths. | |
16890 | [\\/]* | ?:[\\/]*) | |
16891 | re_direlt='/[^/][^/]*/\.\./' | |
16892 | # Canonicalize the pathname of ld | |
16893 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
16894 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
16895 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
16896 | done | |
16897 | test -z "$LD" && LD="$ac_prog" | |
16898 | ;; | |
16899 | "") | |
16900 | # If it fails, then pretend we aren't using GCC. | |
16901 | ac_prog=ld | |
16902 | ;; | |
16903 | *) | |
16904 | # If it is relative, then search for the first ld in PATH. | |
16905 | with_gnu_ld=unknown | |
16906 | ;; | |
16907 | esac | |
16908 | elif test "$with_gnu_ld" = yes; then | |
16909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
16910 | $as_echo_n "checking for GNU ld... " >&6; } | |
16911 | else | |
16912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
16913 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
16914 | fi | |
22e05272 | 16915 | if ${lt_cv_path_LD+:} false; then : |
0a35513e AH |
16916 | $as_echo_n "(cached) " >&6 |
16917 | else | |
16918 | if test -z "$LD"; then | |
16919 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
16920 | for ac_dir in $PATH; do | |
16921 | IFS="$lt_save_ifs" | |
16922 | test -z "$ac_dir" && ac_dir=. | |
16923 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
16924 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
16925 | # Check to see if the program is GNU ld. I'd rather use --version, | |
16926 | # but apparently some variants of GNU ld only accept -v. | |
16927 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
16928 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
16929 | *GNU* | *'with BFD'*) | |
16930 | test "$with_gnu_ld" != no && break | |
16931 | ;; | |
16932 | *) | |
16933 | test "$with_gnu_ld" != yes && break | |
16934 | ;; | |
16935 | esac | |
16936 | fi | |
16937 | done | |
16938 | IFS="$lt_save_ifs" | |
16939 | else | |
16940 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
16941 | fi | |
16942 | fi | |
16943 | ||
16944 | LD="$lt_cv_path_LD" | |
16945 | if test -n "$LD"; then | |
16946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
16947 | $as_echo "$LD" >&6; } | |
16948 | else | |
16949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16950 | $as_echo "no" >&6; } | |
16951 | fi | |
22e05272 | 16952 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
0a35513e AH |
16953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
16954 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 16955 | if ${lt_cv_prog_gnu_ld+:} false; then : |
0a35513e AH |
16956 | $as_echo_n "(cached) " >&6 |
16957 | else | |
16958 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
16959 | case `$LD -v 2>&1 </dev/null` in | |
16960 | *GNU* | *'with BFD'*) | |
16961 | lt_cv_prog_gnu_ld=yes | |
16962 | ;; | |
16963 | *) | |
16964 | lt_cv_prog_gnu_ld=no | |
16965 | ;; | |
16966 | esac | |
16967 | fi | |
16968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
16969 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
16970 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
16971 | ||
16972 | ||
16973 | ||
16974 | ||
16975 | ||
16976 | ||
16977 | ||
9ce91011 RO |
16978 | test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS='' |
16979 | ||
16980 | ||
16981 | ac_save_LDFLAGS="$LDFLAGS" | |
3c698bf0 | 16982 | LDFLAGS="$LFLAGS -mclear-hwcap" |
9ce91011 | 16983 | |
3c698bf0 RO |
16984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5 |
16985 | $as_echo_n "checking for -mclear-hwcap... " >&6; } | |
9ce91011 RO |
16986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16987 | /* end confdefs.h. */ | |
16988 | ||
16989 | int | |
16990 | main () | |
16991 | { | |
16992 | return 0; | |
16993 | ; | |
16994 | return 0; | |
16995 | } | |
16996 | _ACEOF | |
16997 | if ac_fn_c_try_link "$LINENO"; then : | |
16998 | ac_hwcap_ldflags=yes | |
16999 | else | |
17000 | ac_hwcap_ldflags=no | |
17001 | fi | |
17002 | rm -f core conftest.err conftest.$ac_objext \ | |
17003 | conftest$ac_exeext conftest.$ac_ext | |
17004 | if test "$ac_hwcap_ldflags" = "yes"; then | |
3c698bf0 | 17005 | HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS" |
9ce91011 RO |
17006 | fi |
17007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5 | |
17008 | $as_echo "$ac_hwcap_ldflags" >&6; } | |
17009 | ||
17010 | LDFLAGS="$ac_save_LDFLAGS" | |
17011 | ||
17012 | ||
17013 | ||
17014 | if test $ac_hwcap_ldflags != no; then | |
17015 | HAVE_HWCAP_TRUE= | |
17016 | HAVE_HWCAP_FALSE='#' | |
17017 | else | |
17018 | HAVE_HWCAP_TRUE='#' | |
17019 | HAVE_HWCAP_FALSE= | |
17020 | fi | |
17021 | ||
17022 | ||
17023 | # If defaulting to -mavx, don't clear hwcaps. | |
17024 | ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default" | |
22e05272 | 17025 | if test "x$ac_cv_have_decl___AVX__" = xyes; then : |
9ce91011 RO |
17026 | HWCAP_LDFLAGS='' |
17027 | fi | |
17028 | ||
17029 | ||
17030 | ||
0a35513e AH |
17031 | # If we're not using GNU ld, then there's no point in even trying these |
17032 | # tests. Check for that first. We should have already tested for gld | |
17033 | # by now (in libtool), but require it now just to be safe... | |
17034 | test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' | |
17035 | test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' | |
17036 | ||
17037 | ||
17038 | ||
17039 | # The name set by libtool depends on the version of libtool. Shame on us | |
17040 | # for depending on an impl detail, but c'est la vie. Older versions used | |
17041 | # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on | |
17042 | # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually | |
17043 | # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't | |
17044 | # set (hence we're using an older libtool), then set it. | |
17045 | if test x${with_gnu_ld+set} != xset; then | |
17046 | if test x${ac_cv_prog_gnu_ld+set} != xset; then | |
17047 | # We got through "ac_require(ac_prog_ld)" and still not set? Huh? | |
17048 | with_gnu_ld=no | |
17049 | else | |
17050 | with_gnu_ld=$ac_cv_prog_gnu_ld | |
17051 | fi | |
17052 | fi | |
17053 | ||
17054 | # Start by getting the version number. I think the libtool test already | |
17055 | # does some of this, but throws away the result. | |
adcd36bc RO |
17056 | libitm_ld_is_gold=no |
17057 | if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then | |
17058 | libitm_ld_is_gold=yes | |
17059 | fi | |
0a35513e | 17060 | |
adcd36bc RO |
17061 | ldver=`$LD --version 2>/dev/null | |
17062 | sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'` | |
0a35513e AH |
17063 | |
17064 | libitm_gnu_ld_version=`echo $ldver | \ | |
17065 | $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` | |
17066 | ||
17067 | # Set --gc-sections. | |
17068 | if test "$with_gnu_ld" = "notbroken"; then | |
17069 | # GNU ld it is! Joy and bunny rabbits! | |
17070 | ||
17071 | # All these tests are for C++; save the language and the compiler flags. | |
17072 | # Need to do this so that g++ won't try to link in libstdc++ | |
17073 | ac_test_CFLAGS="${CFLAGS+set}" | |
17074 | ac_save_CFLAGS="$CFLAGS" | |
17075 | CFLAGS='-x c++ -Wl,--gc-sections' | |
17076 | ||
17077 | # Check for -Wl,--gc-sections | |
17078 | # XXX This test is broken at the moment, as symbols required for linking | |
17079 | # are now in libsupc++ (not built yet). In addition, this test has | |
17080 | # cored on solaris in the past. In addition, --gc-sections doesn't | |
17081 | # really work at the moment (keeps on discarding used sections, first | |
17082 | # .eh_frame and now some of the glibc sections for iconv). | |
17083 | # Bzzzzt. Thanks for playing, maybe next time. | |
17084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5 | |
17085 | $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; } | |
17086 | if test "$cross_compiling" = yes; then : | |
17087 | ac_sectionLDflags=yes | |
17088 | else | |
17089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17090 | /* end confdefs.h. */ | |
17091 | ||
17092 | int main(void) | |
17093 | { | |
17094 | try { throw 1; } | |
17095 | catch (...) { }; | |
17096 | return 0; | |
17097 | } | |
17098 | ||
17099 | _ACEOF | |
17100 | if ac_fn_c_try_run "$LINENO"; then : | |
17101 | ac_sectionLDflags=yes | |
17102 | else | |
17103 | ac_sectionLDflags=no | |
17104 | fi | |
17105 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
17106 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
17107 | fi | |
17108 | ||
17109 | if test "$ac_test_CFLAGS" = set; then | |
17110 | CFLAGS="$ac_save_CFLAGS" | |
17111 | else | |
17112 | # this is the suspicious part | |
17113 | CFLAGS='' | |
17114 | fi | |
17115 | if test "$ac_sectionLDflags" = "yes"; then | |
17116 | SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" | |
17117 | fi | |
17118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5 | |
17119 | $as_echo "$ac_sectionLDflags" >&6; } | |
17120 | fi | |
17121 | ||
17122 | # Set linker optimization flags. | |
17123 | if test x"$with_gnu_ld" = x"yes"; then | |
17124 | OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" | |
17125 | fi | |
17126 | ||
17127 | ||
17128 | ||
17129 | ||
17130 | ||
17131 | ||
17132 | # Check whether --enable-symvers was given. | |
17133 | if test "${enable_symvers+set}" = set; then : | |
17134 | enableval=$enable_symvers; | |
17135 | case "$enableval" in | |
adcd36bc | 17136 | yes|no|gnu*|sun) ;; |
22e05272 | 17137 | *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;; |
0a35513e AH |
17138 | esac |
17139 | ||
17140 | else | |
17141 | enable_symvers=yes | |
17142 | fi | |
17143 | ||
17144 | ||
17145 | ||
17146 | # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we | |
17147 | # don't know enough about $LD to do tricks... | |
17148 | ||
adcd36bc RO |
17149 | |
17150 | # Turn a 'yes' into a suitable default. | |
17151 | if test x$enable_symvers = xyes ; then | |
17152 | # FIXME The following test is too strict, in theory. | |
17153 | if test $enable_shared = no || test "x$LD" = x; then | |
17154 | enable_symvers=no | |
17155 | else | |
17156 | if test $with_gnu_ld = yes ; then | |
17157 | enable_symvers=gnu | |
17158 | else | |
17159 | case ${target_os} in | |
17160 | # Sun symbol versioning exists since Solaris 2.5. | |
17161 | solaris2.[5-9]* | solaris2.1[0-9]*) | |
17162 | enable_symvers=sun ;; | |
17163 | *) | |
17164 | enable_symvers=no ;; | |
17165 | esac | |
17166 | fi | |
17167 | fi | |
17168 | fi | |
17169 | ||
17170 | # Check if 'sun' was requested on non-Solaris 2 platforms. | |
17171 | if test x$enable_symvers = xsun ; then | |
17172 | case ${target_os} in | |
17173 | solaris2*) | |
17174 | # All fine. | |
17175 | ;; | |
17176 | *) | |
17177 | # Unlikely to work. | |
17178 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5 | |
17179 | $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;} | |
17180 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5 | |
17181 | $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;} | |
17182 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
17183 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
17184 | enable_symvers=no | |
17185 | ;; | |
17186 | esac | |
0a35513e AH |
17187 | fi |
17188 | ||
17189 | # Check to see if libgcc_s exists, indicating that shared libgcc is possible. | |
17190 | if test $enable_symvers != no; then | |
17191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5 | |
17192 | $as_echo_n "checking for shared libgcc... " >&6; } | |
17193 | ac_save_CFLAGS="$CFLAGS" | |
17194 | CFLAGS=' -lgcc_s' | |
17195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17196 | /* end confdefs.h. */ | |
17197 | ||
17198 | int | |
17199 | main () | |
17200 | { | |
17201 | return 0; | |
17202 | ; | |
17203 | return 0; | |
17204 | } | |
17205 | _ACEOF | |
17206 | if ac_fn_c_try_link "$LINENO"; then : | |
17207 | libitm_shared_libgcc=yes | |
17208 | else | |
17209 | libitm_shared_libgcc=no | |
17210 | fi | |
17211 | rm -f core conftest.err conftest.$ac_objext \ | |
17212 | conftest$ac_exeext conftest.$ac_ext | |
17213 | CFLAGS="$ac_save_CFLAGS" | |
17214 | if test $libitm_shared_libgcc = no; then | |
17215 | cat > conftest.c <<EOF | |
17216 | int main (void) { return 0; } | |
17217 | EOF | |
17218 | libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
17219 | -shared -shared-libgcc -o conftest.so \ | |
17220 | conftest.c -v 2>&1 >/dev/null \ | |
17221 | | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` | |
17222 | rm -f conftest.c conftest.so | |
17223 | if test x${libitm_libgcc_s_suffix+set} = xset; then | |
17224 | CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix" | |
17225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17226 | /* end confdefs.h. */ | |
17227 | ||
17228 | int | |
17229 | main () | |
17230 | { | |
17231 | return 0; | |
17232 | ; | |
17233 | return 0; | |
17234 | } | |
17235 | _ACEOF | |
17236 | if ac_fn_c_try_link "$LINENO"; then : | |
17237 | libitm_shared_libgcc=yes | |
17238 | fi | |
17239 | rm -f core conftest.err conftest.$ac_objext \ | |
17240 | conftest$ac_exeext conftest.$ac_ext | |
17241 | CFLAGS="$ac_save_CFLAGS" | |
17242 | fi | |
17243 | fi | |
17244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5 | |
17245 | $as_echo "$libitm_shared_libgcc" >&6; } | |
17246 | fi | |
17247 | ||
17248 | # For GNU ld, we need at least this version. The format is described in | |
17249 | # LIBITM_CHECK_LINKER_FEATURES above. | |
17250 | libitm_min_gnu_ld_version=21400 | |
17251 | # XXXXXXXXXXX libitm_gnu_ld_version=21390 | |
17252 | ||
17253 | # Check to see if unspecified "yes" value can win, given results above. | |
17254 | # Change "yes" into either "no" or a style name. | |
adcd36bc RO |
17255 | if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then |
17256 | if test $with_gnu_ld = yes; then | |
0a35513e AH |
17257 | if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then |
17258 | enable_symvers=gnu | |
adcd36bc RO |
17259 | elif test $libitm_ld_is_gold = yes ; then |
17260 | enable_symvers=gnu | |
0a35513e AH |
17261 | else |
17262 | # The right tools, the right setup, but too old. Fallbacks? | |
17263 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5 | |
17264 | $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;} | |
17265 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5 | |
17266 | $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;} | |
17267 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5 | |
17268 | $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;} | |
17269 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5 | |
17270 | $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;} | |
17271 | if test $libitm_gnu_ld_version -ge 21200 ; then | |
17272 | # Globbing fix is present, proper block support is not. | |
17273 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
17274 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
17275 | enable_symvers=no | |
17276 | else | |
17277 | # 2.11 or older. | |
17278 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
17279 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
17280 | enable_symvers=no | |
17281 | fi | |
17282 | fi | |
adcd36bc RO |
17283 | elif test $enable_symvers = sun; then |
17284 | : All interesting versions of Sun ld support sun style symbol versioning. | |
0a35513e AH |
17285 | else |
17286 | # just fail for now | |
17287 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5 | |
17288 | $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;} | |
17289 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5 | |
17290 | $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;} | |
17291 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5 | |
17292 | $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;} | |
17293 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
17294 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
17295 | enable_symvers=no | |
17296 | fi | |
17297 | fi | |
17298 | ||
17299 | if test $enable_symvers != no; then | |
17300 | LIBITM_BUILD_VERSIONED_SHLIB_TRUE= | |
17301 | LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#' | |
17302 | else | |
17303 | LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#' | |
17304 | LIBITM_BUILD_VERSIONED_SHLIB_FALSE= | |
17305 | fi | |
17306 | ||
adcd36bc RO |
17307 | if test $enable_symvers = gnu; then |
17308 | LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE= | |
17309 | LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#' | |
17310 | else | |
17311 | LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#' | |
17312 | LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE= | |
17313 | fi | |
17314 | ||
17315 | if test $enable_symvers = sun; then | |
17316 | LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE= | |
17317 | LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#' | |
17318 | else | |
17319 | LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#' | |
17320 | LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE= | |
17321 | fi | |
17322 | ||
0a35513e AH |
17323 | { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5 |
17324 | $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;} | |
17325 | ||
0a35513e AH |
17326 | if test $enable_symvers = gnu; then |
17327 | ||
17328 | $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h | |
17329 | ||
17330 | fi | |
17331 | ||
4bdd090f RH |
17332 | # See if we can emit unwind info in the sjlj stub. |
17333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5 | |
17334 | $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; } | |
22e05272 | 17335 | if ${gcc_cv_as_cfi_pseudo_op+:} false; then : |
4bdd090f RH |
17336 | $as_echo_n "(cached) " >&6 |
17337 | else | |
17338 | ||
17339 | gcc_cv_as_cfi_pseudo_op=unknown | |
17340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17341 | /* end confdefs.h. */ | |
17342 | asm (".cfi_startproc\n\t.cfi_endproc"); | |
17343 | int | |
17344 | main () | |
17345 | { | |
17346 | ||
17347 | ; | |
17348 | return 0; | |
17349 | } | |
17350 | _ACEOF | |
17351 | if ac_fn_c_try_compile "$LINENO"; then : | |
17352 | gcc_cv_as_cfi_pseudo_op=yes | |
17353 | else | |
17354 | gcc_cv_as_cfi_pseudo_op=no | |
17355 | fi | |
17356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17357 | ||
17358 | fi | |
17359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5 | |
17360 | $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; } | |
17361 | if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then | |
17362 | ||
17363 | $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h | |
17364 | ||
17365 | fi | |
17366 | ||
17367 | ||
0a35513e AH |
17368 | # Determine the proper ABI type for size_t. |
17369 | ||
17370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5 | |
17371 | $as_echo_n "checking how size_t is mangled... " >&6; } | |
22e05272 | 17372 | if ${libitm_cv_size_t_mangling+:} false; then : |
0a35513e AH |
17373 | $as_echo_n "(cached) " >&6 |
17374 | else | |
17375 | ||
17376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17377 | /* end confdefs.h. */ | |
17378 | ||
17379 | int | |
17380 | main () | |
17381 | { | |
17382 | extern __SIZE_TYPE__ x; extern unsigned long x; | |
17383 | ; | |
17384 | return 0; | |
17385 | } | |
17386 | _ACEOF | |
17387 | if ac_fn_c_try_compile "$LINENO"; then : | |
17388 | libitm_cv_size_t_mangling=m | |
17389 | else | |
17390 | ||
17391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17392 | /* end confdefs.h. */ | |
17393 | ||
17394 | int | |
17395 | main () | |
17396 | { | |
17397 | extern __SIZE_TYPE__ x; extern unsigned int x; | |
17398 | ; | |
17399 | return 0; | |
17400 | } | |
17401 | _ACEOF | |
17402 | if ac_fn_c_try_compile "$LINENO"; then : | |
17403 | libitm_cv_size_t_mangling=j | |
17404 | else | |
17405 | ||
17406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17407 | /* end confdefs.h. */ | |
17408 | ||
17409 | int | |
17410 | main () | |
17411 | { | |
17412 | extern __SIZE_TYPE__ x; extern unsigned long long x; | |
17413 | ; | |
17414 | return 0; | |
17415 | } | |
17416 | _ACEOF | |
17417 | if ac_fn_c_try_compile "$LINENO"; then : | |
17418 | libitm_cv_size_t_mangling=y | |
17419 | else | |
17420 | ||
17421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17422 | /* end confdefs.h. */ | |
17423 | ||
17424 | int | |
17425 | main () | |
17426 | { | |
17427 | extern __SIZE_TYPE__ x; extern unsigned short x; | |
17428 | ; | |
17429 | return 0; | |
17430 | } | |
17431 | _ACEOF | |
17432 | if ac_fn_c_try_compile "$LINENO"; then : | |
17433 | libitm_cv_size_t_mangling=t | |
17434 | else | |
17435 | libitm_cv_size_t_mangling=x | |
17436 | fi | |
17437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17438 | ||
17439 | fi | |
17440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17441 | ||
17442 | fi | |
17443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17444 | ||
17445 | fi | |
17446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17447 | ||
17448 | fi | |
17449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5 | |
17450 | $as_echo "$libitm_cv_size_t_mangling" >&6; } | |
17451 | if test $libitm_cv_size_t_mangling = x; then | |
22e05272 | 17452 | as_fn_error $? "Unknown underlying type for size_t" "$LINENO" 5 |
0a35513e AH |
17453 | fi |
17454 | ||
17455 | cat >>confdefs.h <<_ACEOF | |
17456 | #define MANGLE_SIZE_T $libitm_cv_size_t_mangling | |
17457 | _ACEOF | |
17458 | ||
17459 | ||
17460 | ||
17461 | # Get target configury. | |
17462 | . ${srcdir}/configure.tgt | |
01f3428c | 17463 | if test -n "$UNSUPPORTED"; then |
22e05272 | 17464 | as_fn_error $? "Configuration ${target} is unsupported." "$LINENO" 5 |
01f3428c RH |
17465 | fi |
17466 | ||
0a35513e AH |
17467 | CFLAGS="$save_CFLAGS $XCFLAGS" |
17468 | ||
17469 | # Check for __sync_val_compare_and_swap, but only after the target has | |
17470 | # had a chance to set XCFLAGS. | |
17471 | ||
17472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5 | |
17473 | $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; } | |
22e05272 | 17474 | if ${libitm_cv_have_sync_builtins+:} false; then : |
0a35513e AH |
17475 | $as_echo_n "(cached) " >&6 |
17476 | else | |
17477 | ||
17478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17479 | /* end confdefs.h. */ | |
17480 | ||
17481 | int | |
17482 | main () | |
17483 | { | |
17484 | int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1); | |
17485 | ; | |
17486 | return 0; | |
17487 | } | |
17488 | _ACEOF | |
17489 | if ac_fn_c_try_link "$LINENO"; then : | |
17490 | libitm_cv_have_sync_builtins=yes | |
17491 | else | |
17492 | libitm_cv_have_sync_builtins=no | |
17493 | fi | |
17494 | rm -f core conftest.err conftest.$ac_objext \ | |
17495 | conftest$ac_exeext conftest.$ac_ext | |
17496 | fi | |
17497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5 | |
17498 | $as_echo "$libitm_cv_have_sync_builtins" >&6; } | |
17499 | if test $libitm_cv_have_sync_builtins = yes; then | |
17500 | ||
17501 | $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h | |
17502 | ||
17503 | fi | |
17504 | ||
17505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5 | |
17506 | $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; } | |
22e05272 | 17507 | if ${libitm_cv_have_64bit_sync_builtins+:} false; then : |
0a35513e AH |
17508 | $as_echo_n "(cached) " >&6 |
17509 | else | |
17510 | ||
17511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17512 | /* end confdefs.h. */ | |
17513 | #include <stdint.h> | |
17514 | int | |
17515 | main () | |
17516 | { | |
17517 | uint64_t foo, bar; | |
17518 | bar = __sync_val_compare_and_swap(&foo, 0, 1); | |
17519 | ; | |
17520 | return 0; | |
17521 | } | |
17522 | _ACEOF | |
17523 | if ac_fn_c_try_link "$LINENO"; then : | |
17524 | libitm_cv_have_64bit_sync_builtins=yes | |
17525 | else | |
17526 | libitm_cv_have_64bit_sync_builtins=no | |
17527 | fi | |
17528 | rm -f core conftest.err conftest.$ac_objext \ | |
17529 | conftest$ac_exeext conftest.$ac_ext | |
17530 | fi | |
17531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5 | |
17532 | $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; } | |
17533 | if test $libitm_cv_have_64bit_sync_builtins = yes; then | |
17534 | ||
17535 | $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h | |
17536 | ||
17537 | fi | |
17538 | ||
430616e7 | 17539 | case "${target_cpu}" in |
80713347 | 17540 | i[34567]86 | x86_64) |
430616e7 RH |
17541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5 |
17542 | $as_echo_n "checking if the assembler supports AVX... " >&6; } | |
22e05272 | 17543 | if ${libitm_cv_as_avx+:} false; then : |
430616e7 RH |
17544 | $as_echo_n "(cached) " >&6 |
17545 | else | |
17546 | ||
17547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17548 | /* end confdefs.h. */ | |
17549 | ||
17550 | int | |
17551 | main () | |
17552 | { | |
17553 | asm("vzeroupper"); | |
17554 | ; | |
17555 | return 0; | |
17556 | } | |
17557 | _ACEOF | |
17558 | if ac_fn_c_try_compile "$LINENO"; then : | |
17559 | libitm_cv_as_avx=yes | |
17560 | else | |
17561 | libitm_cv_as_avx=no | |
17562 | fi | |
17563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17564 | ||
17565 | fi | |
17566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5 | |
17567 | $as_echo "$libitm_cv_as_avx" >&6; } | |
17568 | if test x$libitm_cv_as_avx = xyes; then | |
17569 | ||
17570 | $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h | |
17571 | ||
17572 | fi | |
17573 | ;; | |
17574 | esac | |
17575 | ||
07d3b5c8 RH |
17576 | case "${target_cpu}" in |
17577 | i[34567]86 | x86_64) | |
17578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5 | |
17579 | $as_echo_n "checking if the assembler supports RTM... " >&6; } | |
22e05272 | 17580 | if ${libitm_cv_as_rtm+:} false; then : |
07d3b5c8 RH |
17581 | $as_echo_n "(cached) " >&6 |
17582 | else | |
17583 | ||
17584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17585 | /* end confdefs.h. */ | |
17586 | ||
17587 | int | |
17588 | main () | |
17589 | { | |
17590 | asm("1: xbegin 1b; xend"); | |
17591 | ; | |
17592 | return 0; | |
17593 | } | |
17594 | _ACEOF | |
17595 | if ac_fn_c_try_compile "$LINENO"; then : | |
17596 | libitm_cv_as_rtm=yes | |
17597 | else | |
17598 | libitm_cv_as_rtm=no | |
17599 | fi | |
17600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17601 | ||
17602 | fi | |
17603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5 | |
17604 | $as_echo "$libitm_cv_as_rtm" >&6; } | |
17605 | if test x$libitm_cv_as_rtm = xyes; then | |
17606 | ||
17607 | $as_echo "#define HAVE_AS_RTM 1" >>confdefs.h | |
17608 | ||
17609 | fi | |
17610 | ;; | |
17611 | esac | |
17612 | ||
0258b6e4 PB |
17613 | case "${target_cpu}" in |
17614 | powerpc*) | |
17615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5 | |
17616 | $as_echo_n "checking if the assembler supports HTM... " >&6; } | |
22e05272 | 17617 | if ${libitm_cv_as_htm+:} false; then : |
0258b6e4 PB |
17618 | $as_echo_n "(cached) " >&6 |
17619 | else | |
17620 | ||
17621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17622 | /* end confdefs.h. */ | |
17623 | ||
17624 | int | |
17625 | main () | |
17626 | { | |
17627 | asm("tbegin. 0; tend. 0"); | |
17628 | ; | |
17629 | return 0; | |
17630 | } | |
17631 | _ACEOF | |
17632 | if ac_fn_c_try_compile "$LINENO"; then : | |
17633 | libitm_cv_as_htm=yes | |
17634 | else | |
17635 | libitm_cv_as_htm=no | |
17636 | fi | |
17637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17638 | ||
17639 | fi | |
17640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5 | |
17641 | $as_echo "$libitm_cv_as_htm" >&6; } | |
17642 | if test x$libitm_cv_as_htm = xyes; then | |
17643 | ||
167f68ed AK |
17644 | $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h |
17645 | ||
17646 | fi | |
17647 | ;; | |
17648 | s390*) | |
17649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5 | |
17650 | $as_echo_n "checking if the assembler supports HTM... " >&6; } | |
22e05272 | 17651 | if ${libitm_cv_as_htm+:} false; then : |
167f68ed AK |
17652 | $as_echo_n "(cached) " >&6 |
17653 | else | |
17654 | ||
17655 | save_CFLAGS="$CFLAGS" | |
17656 | CFLAGS="$CFLAGS -march=zEC12" | |
17657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17658 | /* end confdefs.h. */ | |
17659 | ||
17660 | int | |
17661 | main () | |
17662 | { | |
17663 | asm("tbegin 0,0; tend"); | |
17664 | ; | |
17665 | return 0; | |
17666 | } | |
17667 | _ACEOF | |
17668 | if ac_fn_c_try_compile "$LINENO"; then : | |
17669 | libitm_cv_as_htm=yes | |
17670 | else | |
17671 | libitm_cv_as_htm=no | |
17672 | fi | |
17673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17674 | CFLAGS="$save_CFLAGS" | |
17675 | fi | |
17676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5 | |
17677 | $as_echo "$libitm_cv_as_htm" >&6; } | |
17678 | if test x$libitm_cv_as_htm = xyes; then | |
17679 | ||
0258b6e4 PB |
17680 | $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h |
17681 | ||
17682 | fi | |
17683 | ;; | |
17684 | esac | |
17685 | ||
8cf36bb3 IS |
17686 | |
17687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5 | |
17688 | $as_echo_n "checking whether weak refs work like ELF... " >&6; } | |
22e05272 | 17689 | if ${ac_cv_have_elf_style_weakref+:} false; then : |
8cf36bb3 IS |
17690 | $as_echo_n "(cached) " >&6 |
17691 | else | |
17692 | ||
17693 | weakref_m4_saved_CFLAGS="$CFLAGS" | |
17694 | case "${host}" in | |
17695 | *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;; | |
17696 | *) ;; | |
17697 | esac | |
17698 | if test "$cross_compiling" = yes; then : | |
17699 | ||
17700 | case "${host}" in | |
8cf36bb3 IS |
17701 | *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;; |
17702 | *) ac_cv_have_elf_style_weakref=yes;; | |
17703 | esac | |
17704 | else | |
17705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17706 | /* end confdefs.h. */ | |
17707 | ||
17708 | extern void fNotToBeFound(void) __attribute__((weak)); | |
17709 | int main () | |
17710 | { | |
17711 | if (fNotToBeFound) | |
17712 | return 1; | |
17713 | else | |
17714 | return 0; | |
17715 | } | |
17716 | ||
17717 | _ACEOF | |
17718 | if ac_fn_c_try_run "$LINENO"; then : | |
17719 | ac_cv_have_elf_style_weakref=yes | |
17720 | else | |
17721 | ac_cv_have_elf_style_weakref=no | |
17722 | fi | |
17723 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
17724 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
17725 | fi | |
17726 | CFLAGS="$weakref_m4_saved_CFLAGS" | |
17727 | fi | |
17728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5 | |
17729 | $as_echo "$ac_cv_have_elf_style_weakref" >&6; } | |
17730 | if test x"$ac_cv_have_elf_style_weakref" = xyes; then | |
17731 | ||
17732 | $as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h | |
17733 | ||
17734 | fi | |
17735 | ||
0a35513e AH |
17736 | # Cleanup and exit. |
17737 | CFLAGS="$save_CFLAGS" | |
17738 | cat >confcache <<\_ACEOF | |
17739 | # This file is a shell script that caches the results of configure | |
17740 | # tests run on this system so they can be shared between configure | |
17741 | # scripts and configure runs, see configure's option --config-cache. | |
17742 | # It is not useful on other systems. If it contains results you don't | |
17743 | # want to keep, you may remove or edit it. | |
17744 | # | |
17745 | # config.status only pays attention to the cache file if you give it | |
17746 | # the --recheck option to rerun configure. | |
17747 | # | |
17748 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17749 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17750 | # following values. | |
17751 | ||
17752 | _ACEOF | |
17753 | ||
17754 | # The following way of writing the cache mishandles newlines in values, | |
17755 | # but we know of no workaround that is simple, portable, and efficient. | |
17756 | # So, we kill variables containing newlines. | |
17757 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17758 | # and sets the high bit in the cache file unless we assign to the vars. | |
17759 | ( | |
17760 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17761 | eval ac_val=\$$ac_var | |
17762 | case $ac_val in #( | |
17763 | *${as_nl}*) | |
17764 | case $ac_var in #( | |
17765 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17766 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17767 | esac | |
17768 | case $ac_var in #( | |
17769 | _ | IFS | as_nl) ;; #( | |
17770 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17771 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17772 | esac ;; | |
17773 | esac | |
17774 | done | |
17775 | ||
17776 | (set) 2>&1 | | |
17777 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
17778 | *${as_nl}ac_space=\ *) | |
17779 | # `set' does not quote correctly, so add quotes: double-quote | |
17780 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
17781 | sed -n \ | |
17782 | "s/'/'\\\\''/g; | |
17783 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17784 | ;; #( | |
17785 | *) | |
17786 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17787 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
17788 | ;; | |
17789 | esac | | |
17790 | sort | |
17791 | ) | | |
17792 | sed ' | |
17793 | /^ac_cv_env_/b end | |
17794 | t clear | |
17795 | :clear | |
17796 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17797 | t end | |
17798 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17799 | :end' >>confcache | |
17800 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17801 | if test -w "$cache_file"; then | |
22e05272 | 17802 | if test "x$cache_file" != "x/dev/null"; then |
0a35513e AH |
17803 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17804 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
17805 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17806 | cat confcache >"$cache_file" | |
17807 | else | |
17808 | case $cache_file in #( | |
17809 | */* | ?:*) | |
17810 | mv -f confcache "$cache_file"$$ && | |
17811 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17812 | *) | |
17813 | mv -f confcache "$cache_file" ;; | |
17814 | esac | |
17815 | fi | |
17816 | fi | |
0a35513e AH |
17817 | else |
17818 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
17819 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
17820 | fi | |
17821 | fi | |
17822 | rm -f confcache | |
17823 | ||
17824 | # Add -Wall -Werror if we are using GCC. | |
17825 | if test "x$GCC" = "xyes"; then | |
17826 | XCFLAGS="$XCFLAGS -Wall -Werror" | |
17827 | fi | |
17828 | ||
17829 | XCFLAGS="$XCFLAGS $XPCFLAGS" | |
17830 | ||
c51081fc IT |
17831 | # Add CET specific flags if CET is enabled |
17832 | # Check whether --enable-cet was given. | |
17833 | if test "${enable_cet+set}" = set; then : | |
17834 | enableval=$enable_cet; | |
17835 | case "$enableval" in | |
a0e1df88 | 17836 | yes|no|auto) ;; |
22e05272 | 17837 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; |
c51081fc IT |
17838 | esac |
17839 | ||
17840 | else | |
a0e1df88 | 17841 | enable_cet=no |
c51081fc IT |
17842 | fi |
17843 | ||
17844 | ||
14e335ed IT |
17845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 |
17846 | $as_echo_n "checking for CET support... " >&6; } | |
17847 | ||
c51081fc IT |
17848 | case "$host" in |
17849 | i[34567]86-*-linux* | x86_64-*-linux*) | |
17850 | case "$enable_cet" in | |
a0e1df88 | 17851 | auto) |
14e335ed IT |
17852 | # Check if target supports multi-byte NOPs |
17853 | # and if assembler supports CET insn. | |
c51081fc IT |
17854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17855 | /* end confdefs.h. */ | |
17856 | ||
17857 | int | |
17858 | main () | |
17859 | { | |
14e335ed IT |
17860 | |
17861 | #if !defined(__SSE2__) | |
17862 | #error target does not support multi-byte NOPs | |
17863 | #else | |
c51081fc | 17864 | asm ("setssbsy"); |
14e335ed IT |
17865 | #endif |
17866 | ||
c51081fc IT |
17867 | ; |
17868 | return 0; | |
17869 | } | |
17870 | _ACEOF | |
17871 | if ac_fn_c_try_compile "$LINENO"; then : | |
17872 | enable_cet=yes | |
17873 | else | |
17874 | enable_cet=no | |
17875 | fi | |
17876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17877 | ;; | |
17878 | yes) | |
17879 | # Check if assembler supports CET. | |
17880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17881 | /* end confdefs.h. */ | |
17882 | ||
17883 | int | |
17884 | main () | |
17885 | { | |
17886 | asm ("setssbsy"); | |
17887 | ; | |
17888 | return 0; | |
17889 | } | |
17890 | _ACEOF | |
17891 | if ac_fn_c_try_compile "$LINENO"; then : | |
17892 | ||
17893 | else | |
22e05272 | 17894 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 |
c51081fc IT |
17895 | fi |
17896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17897 | ;; | |
17898 | esac | |
17899 | ;; | |
17900 | *) | |
17901 | enable_cet=no | |
17902 | ;; | |
17903 | esac | |
17904 | if test x$enable_cet = xyes; then | |
7b47ecf2 | 17905 | CET_FLAGS="-fcf-protection -mshstk" |
14e335ed IT |
17906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17907 | $as_echo "yes" >&6; } | |
17908 | else | |
17909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17910 | $as_echo "no" >&6; } | |
c51081fc IT |
17911 | fi |
17912 | ||
17913 | XCFLAGS="$XCFLAGS $CET_FLAGS" | |
17914 | ||
0a35513e AH |
17915 | |
17916 | ||
17917 | ||
17918 | ||
17919 | if test ${multilib} = yes; then | |
17920 | multilib_arg="--enable-multilib" | |
17921 | else | |
17922 | multilib_arg= | |
17923 | fi | |
17924 | ||
17925 | # Set up the set of libraries that we need to link against for libitm. | |
255a9a1b | 17926 | # Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm, |
0a35513e AH |
17927 | # which will force linkage against -lpthread (or equivalent for the system). |
17928 | # That's not 100% ideal, but about the best we can do easily. | |
17929 | if test $enable_shared = yes; then | |
17930 | link_itm="-litm %{static: $LIBS}" | |
17931 | else | |
17932 | link_itm="-litm $LIBS" | |
17933 | fi | |
17934 | ||
17935 | ||
aebac0ca RH |
17936 | if test "$ARCH" = arm; then |
17937 | ARCH_ARM_TRUE= | |
17938 | ARCH_ARM_FALSE='#' | |
17939 | else | |
17940 | ARCH_ARM_TRUE='#' | |
17941 | ARCH_ARM_FALSE= | |
17942 | fi | |
17943 | ||
0a35513e AH |
17944 | if test "$ARCH" = x86; then |
17945 | ARCH_X86_TRUE= | |
17946 | ARCH_X86_FALSE='#' | |
17947 | else | |
17948 | ARCH_X86_TRUE='#' | |
17949 | ARCH_X86_FALSE= | |
17950 | fi | |
17951 | ||
d4b17902 RH |
17952 | if test "$libitm_cv_as_avx" = yes; then |
17953 | ARCH_X86_AVX_TRUE= | |
17954 | ARCH_X86_AVX_FALSE='#' | |
17955 | else | |
17956 | ARCH_X86_AVX_TRUE='#' | |
17957 | ARCH_X86_AVX_FALSE= | |
17958 | fi | |
17959 | ||
0a35513e AH |
17960 | if test $enable_linux_futex = yes; then |
17961 | ARCH_FUTEX_TRUE= | |
17962 | ARCH_FUTEX_FALSE='#' | |
17963 | else | |
17964 | ARCH_FUTEX_TRUE='#' | |
17965 | ARCH_FUTEX_FALSE= | |
17966 | fi | |
17967 | ||
17968 | ||
3c36aa6b JJ |
17969 | # Determine what GCC version number to use in filesystem paths. |
17970 | ||
17971 | get_gcc_base_ver="cat" | |
17972 | ||
17973 | # Check whether --with-gcc-major-version-only was given. | |
17974 | if test "${with_gcc_major_version_only+set}" = set; then : | |
17975 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
001ddaa8 | 17976 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
17977 | fi |
17978 | ||
17979 | fi | |
17980 | ||
17981 | ||
17982 | ||
17983 | ||
0a35513e AH |
17984 | ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec" |
17985 | ||
17986 | cat >confcache <<\_ACEOF | |
17987 | # This file is a shell script that caches the results of configure | |
17988 | # tests run on this system so they can be shared between configure | |
17989 | # scripts and configure runs, see configure's option --config-cache. | |
17990 | # It is not useful on other systems. If it contains results you don't | |
17991 | # want to keep, you may remove or edit it. | |
17992 | # | |
17993 | # config.status only pays attention to the cache file if you give it | |
17994 | # the --recheck option to rerun configure. | |
17995 | # | |
17996 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17997 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17998 | # following values. | |
17999 | ||
18000 | _ACEOF | |
18001 | ||
18002 | # The following way of writing the cache mishandles newlines in values, | |
18003 | # but we know of no workaround that is simple, portable, and efficient. | |
18004 | # So, we kill variables containing newlines. | |
18005 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18006 | # and sets the high bit in the cache file unless we assign to the vars. | |
18007 | ( | |
18008 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18009 | eval ac_val=\$$ac_var | |
18010 | case $ac_val in #( | |
18011 | *${as_nl}*) | |
18012 | case $ac_var in #( | |
18013 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18014 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18015 | esac | |
18016 | case $ac_var in #( | |
18017 | _ | IFS | as_nl) ;; #( | |
18018 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18019 | *) { eval $ac_var=; unset $ac_var;} ;; | |
18020 | esac ;; | |
18021 | esac | |
18022 | done | |
18023 | ||
18024 | (set) 2>&1 | | |
18025 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
18026 | *${as_nl}ac_space=\ *) | |
18027 | # `set' does not quote correctly, so add quotes: double-quote | |
18028 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
18029 | sed -n \ | |
18030 | "s/'/'\\\\''/g; | |
18031 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
18032 | ;; #( | |
18033 | *) | |
18034 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18035 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
18036 | ;; | |
18037 | esac | | |
18038 | sort | |
18039 | ) | | |
18040 | sed ' | |
18041 | /^ac_cv_env_/b end | |
18042 | t clear | |
18043 | :clear | |
18044 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
18045 | t end | |
18046 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
18047 | :end' >>confcache | |
18048 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18049 | if test -w "$cache_file"; then | |
22e05272 | 18050 | if test "x$cache_file" != "x/dev/null"; then |
0a35513e AH |
18051 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
18052 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
18053 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
18054 | cat confcache >"$cache_file" | |
18055 | else | |
18056 | case $cache_file in #( | |
18057 | */* | ?:*) | |
18058 | mv -f confcache "$cache_file"$$ && | |
18059 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
18060 | *) | |
18061 | mv -f confcache "$cache_file" ;; | |
18062 | esac | |
18063 | fi | |
18064 | fi | |
0a35513e AH |
18065 | else |
18066 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
18067 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
18068 | fi | |
18069 | fi | |
18070 | rm -f confcache | |
18071 | ||
18072 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
18073 | # Let make expand exec_prefix. | |
18074 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18075 | ||
18076 | DEFS=-DHAVE_CONFIG_H | |
18077 | ||
18078 | ac_libobjs= | |
18079 | ac_ltlibobjs= | |
22e05272 | 18080 | U= |
0a35513e AH |
18081 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
18082 | # 1. Remove the extension, and $U if already installed. | |
18083 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
18084 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
18085 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
18086 | # will be set to the directory where LIBOBJS objects are built. | |
18087 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18088 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
18089 | done | |
18090 | LIBOBJS=$ac_libobjs | |
18091 | ||
18092 | LTLIBOBJS=$ac_ltlibobjs | |
18093 | ||
18094 | ||
18095 | if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then | |
22e05272 | 18096 | as_fn_error $? "conditional \"GENINSRC\" was never defined. |
0a35513e AH |
18097 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
18098 | fi | |
22e05272 JM |
18099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
18100 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
18101 | if test -n "$am_sleep_pid"; then | |
18102 | # Hide warnings about reused PIDs. | |
18103 | wait $am_sleep_pid 2>/dev/null | |
18104 | fi | |
18105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
18106 | $as_echo "done" >&6; } | |
0a35513e AH |
18107 | if test -n "$EXEEXT"; then |
18108 | am__EXEEXT_TRUE= | |
18109 | am__EXEEXT_FALSE='#' | |
18110 | else | |
18111 | am__EXEEXT_TRUE='#' | |
18112 | am__EXEEXT_FALSE= | |
18113 | fi | |
18114 | ||
18115 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
22e05272 | 18116 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
0a35513e AH |
18117 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
18118 | fi | |
18119 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
22e05272 | 18120 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
0a35513e AH |
18121 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
18122 | fi | |
18123 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
22e05272 | 18124 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
0a35513e AH |
18125 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
18126 | fi | |
18127 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then | |
22e05272 | 18128 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. |
0a35513e AH |
18129 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
18130 | fi | |
18131 | if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then | |
22e05272 | 18132 | as_fn_error $? "conditional \"BUILD_INFO\" was never defined. |
0a35513e AH |
18133 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
18134 | fi | |
18135 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
22e05272 | 18136 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
0a35513e AH |
18137 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
18138 | fi | |
18139 | ||
9ce91011 | 18140 | if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then |
22e05272 | 18141 | as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined. |
9ce91011 RO |
18142 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
18143 | fi | |
0a35513e | 18144 | if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then |
22e05272 | 18145 | as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined. |
0a35513e AH |
18146 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
18147 | fi | |
adcd36bc | 18148 | if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then |
22e05272 | 18149 | as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined. |
adcd36bc RO |
18150 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
18151 | fi | |
18152 | if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then | |
22e05272 | 18153 | as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined. |
adcd36bc RO |
18154 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
18155 | fi | |
aebac0ca | 18156 | if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then |
22e05272 | 18157 | as_fn_error $? "conditional \"ARCH_ARM\" was never defined. |
aebac0ca RH |
18158 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
18159 | fi | |
0a35513e | 18160 | if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then |
22e05272 | 18161 | as_fn_error $? "conditional \"ARCH_X86\" was never defined. |
0a35513e AH |
18162 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
18163 | fi | |
d4b17902 | 18164 | if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then |
22e05272 | 18165 | as_fn_error $? "conditional \"ARCH_X86_AVX\" was never defined. |
d4b17902 RH |
18166 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
18167 | fi | |
0a35513e | 18168 | if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then |
22e05272 | 18169 | as_fn_error $? "conditional \"ARCH_FUTEX\" was never defined. |
0a35513e AH |
18170 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
18171 | fi | |
18172 | ||
22e05272 | 18173 | : "${CONFIG_STATUS=./config.status}" |
0a35513e AH |
18174 | ac_write_fail=0 |
18175 | ac_clean_files_save=$ac_clean_files | |
18176 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
18177 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
18178 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18179 | as_write_fail=0 | |
18180 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
18181 | #! $SHELL | |
18182 | # Generated by $as_me. | |
18183 | # Run this file to recreate the current configuration. | |
18184 | # Compiler output produced by configure, useful for debugging | |
18185 | # configure, is in config.log if it exists. | |
18186 | ||
18187 | debug=false | |
18188 | ac_cs_recheck=false | |
18189 | ac_cs_silent=false | |
18190 | ||
18191 | SHELL=\${CONFIG_SHELL-$SHELL} | |
18192 | export SHELL | |
18193 | _ASEOF | |
18194 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18195 | ## -------------------- ## | |
18196 | ## M4sh Initialization. ## | |
18197 | ## -------------------- ## | |
18198 | ||
18199 | # Be more Bourne compatible | |
18200 | DUALCASE=1; export DUALCASE # for MKS sh | |
18201 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18202 | emulate sh | |
18203 | NULLCMD=: | |
18204 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
18205 | # is contrary to our usage. Disable this feature. | |
18206 | alias -g '${1+"$@"}'='"$@"' | |
18207 | setopt NO_GLOB_SUBST | |
18208 | else | |
18209 | case `(set -o) 2>/dev/null` in #( | |
18210 | *posix*) : | |
18211 | set -o posix ;; #( | |
18212 | *) : | |
18213 | ;; | |
18214 | esac | |
18215 | fi | |
18216 | ||
18217 | ||
18218 | as_nl=' | |
18219 | ' | |
18220 | export as_nl | |
18221 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18222 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18223 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18224 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18225 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18226 | # but without wasting forks for bash or zsh. | |
18227 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18228 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18229 | as_echo='print -r --' | |
18230 | as_echo_n='print -rn --' | |
18231 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18232 | as_echo='printf %s\n' | |
18233 | as_echo_n='printf %s' | |
18234 | else | |
18235 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18236 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18237 | as_echo_n='/usr/ucb/echo -n' | |
18238 | else | |
18239 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18240 | as_echo_n_body='eval | |
18241 | arg=$1; | |
18242 | case $arg in #( | |
18243 | *"$as_nl"*) | |
18244 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18245 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18246 | esac; | |
18247 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18248 | ' | |
18249 | export as_echo_n_body | |
18250 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18251 | fi | |
18252 | export as_echo_body | |
18253 | as_echo='sh -c $as_echo_body as_echo' | |
18254 | fi | |
18255 | ||
18256 | # The user is always right. | |
18257 | if test "${PATH_SEPARATOR+set}" != set; then | |
18258 | PATH_SEPARATOR=: | |
18259 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18260 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18261 | PATH_SEPARATOR=';' | |
18262 | } | |
18263 | fi | |
18264 | ||
18265 | ||
18266 | # IFS | |
18267 | # We need space, tab and new line, in precisely that order. Quoting is | |
18268 | # there to prevent editors from complaining about space-tab. | |
18269 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18270 | # splitting by setting IFS to empty value.) | |
18271 | IFS=" "" $as_nl" | |
18272 | ||
18273 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 18274 | as_myself= |
0a35513e AH |
18275 | case $0 in #(( |
18276 | *[\\/]* ) as_myself=$0 ;; | |
18277 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18278 | for as_dir in $PATH | |
18279 | do | |
18280 | IFS=$as_save_IFS | |
18281 | test -z "$as_dir" && as_dir=. | |
18282 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18283 | done | |
18284 | IFS=$as_save_IFS | |
18285 | ||
18286 | ;; | |
18287 | esac | |
18288 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18289 | # in which case we are not to be found in the path. | |
18290 | if test "x$as_myself" = x; then | |
18291 | as_myself=$0 | |
18292 | fi | |
18293 | if test ! -f "$as_myself"; then | |
18294 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18295 | exit 1 | |
18296 | fi | |
18297 | ||
18298 | # Unset variables that we do not need and which cause bugs (e.g. in | |
18299 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18300 | # suppresses any "Segmentation fault" message there. '((' could | |
18301 | # trigger a bug in pdksh 5.2.14. | |
18302 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18303 | do eval test x\${$as_var+set} = xset \ | |
18304 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18305 | done | |
18306 | PS1='$ ' | |
18307 | PS2='> ' | |
18308 | PS4='+ ' | |
18309 | ||
18310 | # NLS nuisances. | |
18311 | LC_ALL=C | |
18312 | export LC_ALL | |
18313 | LANGUAGE=C | |
18314 | export LANGUAGE | |
18315 | ||
18316 | # CDPATH. | |
18317 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18318 | ||
18319 | ||
22e05272 JM |
18320 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18321 | # ---------------------------------------- | |
0a35513e AH |
18322 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18323 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 18324 | # script with STATUS, using 1 if that was 0. |
0a35513e AH |
18325 | as_fn_error () |
18326 | { | |
22e05272 JM |
18327 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18328 | if test "$4"; then | |
18329 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18330 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
0a35513e | 18331 | fi |
22e05272 | 18332 | $as_echo "$as_me: error: $2" >&2 |
0a35513e AH |
18333 | as_fn_exit $as_status |
18334 | } # as_fn_error | |
18335 | ||
18336 | ||
18337 | # as_fn_set_status STATUS | |
18338 | # ----------------------- | |
18339 | # Set $? to STATUS, without forking. | |
18340 | as_fn_set_status () | |
18341 | { | |
18342 | return $1 | |
18343 | } # as_fn_set_status | |
18344 | ||
18345 | # as_fn_exit STATUS | |
18346 | # ----------------- | |
18347 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18348 | as_fn_exit () | |
18349 | { | |
18350 | set +e | |
18351 | as_fn_set_status $1 | |
18352 | exit $1 | |
18353 | } # as_fn_exit | |
18354 | ||
18355 | # as_fn_unset VAR | |
18356 | # --------------- | |
18357 | # Portably unset VAR. | |
18358 | as_fn_unset () | |
18359 | { | |
18360 | { eval $1=; unset $1;} | |
18361 | } | |
18362 | as_unset=as_fn_unset | |
18363 | # as_fn_append VAR VALUE | |
18364 | # ---------------------- | |
18365 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18366 | # advantage of any shell optimizations that allow amortized linear growth over | |
18367 | # repeated appends, instead of the typical quadratic growth present in naive | |
18368 | # implementations. | |
18369 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18370 | eval 'as_fn_append () | |
18371 | { | |
18372 | eval $1+=\$2 | |
18373 | }' | |
18374 | else | |
18375 | as_fn_append () | |
18376 | { | |
18377 | eval $1=\$$1\$2 | |
18378 | } | |
18379 | fi # as_fn_append | |
18380 | ||
18381 | # as_fn_arith ARG... | |
18382 | # ------------------ | |
18383 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18384 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18385 | # must be portable across $(()) and expr. | |
18386 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18387 | eval 'as_fn_arith () | |
18388 | { | |
18389 | as_val=$(( $* )) | |
18390 | }' | |
18391 | else | |
18392 | as_fn_arith () | |
18393 | { | |
18394 | as_val=`expr "$@" || test $? -eq 1` | |
18395 | } | |
18396 | fi # as_fn_arith | |
18397 | ||
18398 | ||
18399 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
18400 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
18401 | as_expr=expr | |
18402 | else | |
18403 | as_expr=false | |
18404 | fi | |
18405 | ||
18406 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
18407 | as_basename=basename | |
18408 | else | |
18409 | as_basename=false | |
18410 | fi | |
18411 | ||
18412 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
18413 | as_dirname=dirname | |
18414 | else | |
18415 | as_dirname=false | |
18416 | fi | |
18417 | ||
18418 | as_me=`$as_basename -- "$0" || | |
18419 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
18420 | X"$0" : 'X\(//\)$' \| \ | |
18421 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
18422 | $as_echo X/"$0" | | |
18423 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18424 | s//\1/ | |
18425 | q | |
18426 | } | |
18427 | /^X\/\(\/\/\)$/{ | |
18428 | s//\1/ | |
18429 | q | |
18430 | } | |
18431 | /^X\/\(\/\).*/{ | |
18432 | s//\1/ | |
18433 | q | |
18434 | } | |
18435 | s/.*/./; q'` | |
18436 | ||
18437 | # Avoid depending upon Character Ranges. | |
18438 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18439 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18440 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18441 | as_cr_digits='0123456789' | |
18442 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18443 | ||
18444 | ECHO_C= ECHO_N= ECHO_T= | |
18445 | case `echo -n x` in #((((( | |
18446 | -n*) | |
18447 | case `echo 'xy\c'` in | |
18448 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18449 | xy) ECHO_C='\c';; | |
18450 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18451 | ECHO_T=' ';; | |
18452 | esac;; | |
18453 | *) | |
18454 | ECHO_N='-n';; | |
18455 | esac | |
18456 | ||
18457 | rm -f conf$$ conf$$.exe conf$$.file | |
18458 | if test -d conf$$.dir; then | |
18459 | rm -f conf$$.dir/conf$$.file | |
18460 | else | |
18461 | rm -f conf$$.dir | |
18462 | mkdir conf$$.dir 2>/dev/null | |
18463 | fi | |
18464 | if (echo >conf$$.file) 2>/dev/null; then | |
18465 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18466 | as_ln_s='ln -s' | |
18467 | # ... but there are two gotchas: | |
18468 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18469 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 18470 | # In both cases, we have to default to `cp -pR'. |
0a35513e | 18471 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 18472 | as_ln_s='cp -pR' |
0a35513e AH |
18473 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18474 | as_ln_s=ln | |
18475 | else | |
22e05272 | 18476 | as_ln_s='cp -pR' |
0a35513e AH |
18477 | fi |
18478 | else | |
22e05272 | 18479 | as_ln_s='cp -pR' |
0a35513e AH |
18480 | fi |
18481 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
18482 | rmdir conf$$.dir 2>/dev/null | |
18483 | ||
18484 | ||
18485 | # as_fn_mkdir_p | |
18486 | # ------------- | |
18487 | # Create "$as_dir" as a directory, including parents if necessary. | |
18488 | as_fn_mkdir_p () | |
18489 | { | |
18490 | ||
18491 | case $as_dir in #( | |
18492 | -*) as_dir=./$as_dir;; | |
18493 | esac | |
18494 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18495 | as_dirs= | |
18496 | while :; do | |
18497 | case $as_dir in #( | |
18498 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18499 | *) as_qdir=$as_dir;; | |
18500 | esac | |
18501 | as_dirs="'$as_qdir' $as_dirs" | |
18502 | as_dir=`$as_dirname -- "$as_dir" || | |
18503 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18504 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18505 | X"$as_dir" : 'X\(//\)$' \| \ | |
18506 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18507 | $as_echo X"$as_dir" | | |
18508 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18509 | s//\1/ | |
18510 | q | |
18511 | } | |
18512 | /^X\(\/\/\)[^/].*/{ | |
18513 | s//\1/ | |
18514 | q | |
18515 | } | |
18516 | /^X\(\/\/\)$/{ | |
18517 | s//\1/ | |
18518 | q | |
18519 | } | |
18520 | /^X\(\/\).*/{ | |
18521 | s//\1/ | |
18522 | q | |
18523 | } | |
18524 | s/.*/./; q'` | |
18525 | test -d "$as_dir" && break | |
18526 | done | |
18527 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 18528 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
0a35513e AH |
18529 | |
18530 | ||
18531 | } # as_fn_mkdir_p | |
18532 | if mkdir -p . 2>/dev/null; then | |
18533 | as_mkdir_p='mkdir -p "$as_dir"' | |
18534 | else | |
18535 | test -d ./-p && rmdir ./-p | |
18536 | as_mkdir_p=false | |
18537 | fi | |
18538 | ||
22e05272 JM |
18539 | |
18540 | # as_fn_executable_p FILE | |
18541 | # ----------------------- | |
18542 | # Test if FILE is an executable regular file. | |
18543 | as_fn_executable_p () | |
18544 | { | |
18545 | test -f "$1" && test -x "$1" | |
18546 | } # as_fn_executable_p | |
18547 | as_test_x='test -x' | |
18548 | as_executable_p=as_fn_executable_p | |
0a35513e AH |
18549 | |
18550 | # Sed expression to map a string onto a valid CPP name. | |
18551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18552 | ||
18553 | # Sed expression to map a string onto a valid variable name. | |
18554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18555 | ||
18556 | ||
18557 | exec 6>&1 | |
18558 | ## ----------------------------------- ## | |
18559 | ## Main body of $CONFIG_STATUS script. ## | |
18560 | ## ----------------------------------- ## | |
18561 | _ASEOF | |
18562 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
18563 | ||
18564 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18565 | # Save the log message, to keep $0 and so on meaningful, and to | |
18566 | # report actual input values of CONFIG_FILES etc. instead of their | |
18567 | # values after options handling. | |
18568 | ac_log=" | |
18569 | This file was extended by GNU TM Runtime Library $as_me 1.0, which was | |
22e05272 | 18570 | generated by GNU Autoconf 2.69. Invocation command line was |
0a35513e AH |
18571 | |
18572 | CONFIG_FILES = $CONFIG_FILES | |
18573 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18574 | CONFIG_LINKS = $CONFIG_LINKS | |
18575 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18576 | $ $0 $@ | |
18577 | ||
18578 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
18579 | " | |
18580 | ||
18581 | _ACEOF | |
18582 | ||
18583 | case $ac_config_files in *" | |
18584 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18585 | esac | |
18586 | ||
18587 | case $ac_config_headers in *" | |
18588 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18589 | esac | |
18590 | ||
18591 | ||
18592 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18593 | # Files that config.status was made for. | |
18594 | config_files="$ac_config_files" | |
18595 | config_headers="$ac_config_headers" | |
18596 | config_commands="$ac_config_commands" | |
18597 | ||
18598 | _ACEOF | |
18599 | ||
18600 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18601 | ac_cs_usage="\ | |
18602 | \`$as_me' instantiates files and other configuration actions | |
18603 | from templates according to the current configuration. Unless the files | |
18604 | and actions are specified as TAGs, all are instantiated by default. | |
18605 | ||
18606 | Usage: $0 [OPTION]... [TAG]... | |
18607 | ||
18608 | -h, --help print this help, then exit | |
18609 | -V, --version print version number and configuration settings, then exit | |
22e05272 | 18610 | --config print configuration, then exit |
0a35513e AH |
18611 | -q, --quiet, --silent |
18612 | do not print progress messages | |
18613 | -d, --debug don't remove temporary files | |
18614 | --recheck update $as_me by reconfiguring in the same conditions | |
18615 | --file=FILE[:TEMPLATE] | |
18616 | instantiate the configuration file FILE | |
18617 | --header=FILE[:TEMPLATE] | |
18618 | instantiate the configuration header FILE | |
18619 | ||
18620 | Configuration files: | |
18621 | $config_files | |
18622 | ||
18623 | Configuration headers: | |
18624 | $config_headers | |
18625 | ||
18626 | Configuration commands: | |
18627 | $config_commands | |
18628 | ||
18629 | Report bugs to the package provider. | |
18630 | GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>. | |
18631 | General help using GNU software: <http://www.gnu.org/gethelp/>." | |
18632 | ||
18633 | _ACEOF | |
18634 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 18635 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
0a35513e AH |
18636 | ac_cs_version="\\ |
18637 | GNU TM Runtime Library config.status 1.0 | |
22e05272 JM |
18638 | configured by $0, generated by GNU Autoconf 2.69, |
18639 | with options \\"\$ac_cs_config\\" | |
0a35513e | 18640 | |
22e05272 | 18641 | Copyright (C) 2012 Free Software Foundation, Inc. |
0a35513e AH |
18642 | This config.status script is free software; the Free Software Foundation |
18643 | gives unlimited permission to copy, distribute and modify it." | |
18644 | ||
18645 | ac_pwd='$ac_pwd' | |
18646 | srcdir='$srcdir' | |
18647 | INSTALL='$INSTALL' | |
18648 | MKDIR_P='$MKDIR_P' | |
18649 | AWK='$AWK' | |
18650 | test -n "\$AWK" || AWK=awk | |
18651 | _ACEOF | |
18652 | ||
18653 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18654 | # The default lists apply if the user does not specify any file. | |
18655 | ac_need_defaults=: | |
18656 | while test $# != 0 | |
18657 | do | |
18658 | case $1 in | |
22e05272 | 18659 | --*=?*) |
0a35513e AH |
18660 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18661 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
18662 | ac_shift=: | |
18663 | ;; | |
22e05272 JM |
18664 | --*=) |
18665 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18666 | ac_optarg= | |
18667 | ac_shift=: | |
18668 | ;; | |
0a35513e AH |
18669 | *) |
18670 | ac_option=$1 | |
18671 | ac_optarg=$2 | |
18672 | ac_shift=shift | |
18673 | ;; | |
18674 | esac | |
18675 | ||
18676 | case $ac_option in | |
18677 | # Handling of the options. | |
18678 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
18679 | ac_cs_recheck=: ;; | |
18680 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
18681 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
18682 | --config | --confi | --conf | --con | --co | --c ) |
18683 | $as_echo "$ac_cs_config"; exit ;; | |
0a35513e AH |
18684 | --debug | --debu | --deb | --de | --d | -d ) |
18685 | debug=: ;; | |
18686 | --file | --fil | --fi | --f ) | |
18687 | $ac_shift | |
18688 | case $ac_optarg in | |
18689 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 18690 | '') as_fn_error $? "missing file argument" ;; |
0a35513e AH |
18691 | esac |
18692 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
18693 | ac_need_defaults=false;; | |
18694 | --header | --heade | --head | --hea ) | |
18695 | $ac_shift | |
18696 | case $ac_optarg in | |
18697 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18698 | esac | |
18699 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
18700 | ac_need_defaults=false;; | |
18701 | --he | --h) | |
18702 | # Conflict between --help and --header | |
22e05272 | 18703 | as_fn_error $? "ambiguous option: \`$1' |
0a35513e AH |
18704 | Try \`$0 --help' for more information.";; |
18705 | --help | --hel | -h ) | |
18706 | $as_echo "$ac_cs_usage"; exit ;; | |
18707 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
18708 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18709 | ac_cs_silent=: ;; | |
18710 | ||
18711 | # This is an error. | |
22e05272 | 18712 | -*) as_fn_error $? "unrecognized option: \`$1' |
0a35513e AH |
18713 | Try \`$0 --help' for more information." ;; |
18714 | ||
18715 | *) as_fn_append ac_config_targets " $1" | |
18716 | ac_need_defaults=false ;; | |
18717 | ||
18718 | esac | |
18719 | shift | |
18720 | done | |
18721 | ||
18722 | ac_configure_extra_args= | |
18723 | ||
18724 | if $ac_cs_silent; then | |
18725 | exec 6>/dev/null | |
18726 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18727 | fi | |
18728 | ||
18729 | _ACEOF | |
18730 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18731 | if \$ac_cs_recheck; then | |
22e05272 | 18732 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
0a35513e AH |
18733 | shift |
18734 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18735 | CONFIG_SHELL='$SHELL' | |
18736 | export CONFIG_SHELL | |
18737 | exec "\$@" | |
18738 | fi | |
18739 | ||
18740 | _ACEOF | |
18741 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18742 | exec 5>>config.log | |
18743 | { | |
18744 | echo | |
18745 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18746 | ## Running $as_me. ## | |
18747 | _ASBOX | |
18748 | $as_echo "$ac_log" | |
18749 | } >&5 | |
18750 | ||
18751 | _ACEOF | |
18752 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18753 | # | |
18754 | # INIT-COMMANDS | |
18755 | # | |
18756 | ||
18757 | srcdir="$srcdir" | |
18758 | host="$host" | |
18759 | target="$target" | |
18760 | with_multisubdir="$with_multisubdir" | |
18761 | with_multisrctop="$with_multisrctop" | |
18762 | with_target_subdir="$with_target_subdir" | |
18763 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
18764 | multi_basedir="$multi_basedir" | |
18765 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
18766 | CC="$CC" | |
18767 | CXX="$CXX" | |
18768 | GFORTRAN="$GFORTRAN" | |
22e05272 | 18769 | GDC="$GDC" |
0a35513e AH |
18770 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
18771 | ||
18772 | ||
18773 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18774 | # if CDPATH is set. | |
18775 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18776 | ||
18777 | sed_quote_subst='$sed_quote_subst' | |
18778 | double_quote_subst='$double_quote_subst' | |
18779 | delay_variable_subst='$delay_variable_subst' | |
18780 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
18781 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
18782 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
18783 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
18784 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
18785 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
18786 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
18787 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
18788 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
18789 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
18790 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
18791 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
18792 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
18793 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
18794 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
18795 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
18796 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
18797 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
18798 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
18799 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
18800 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
18801 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
18802 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
18803 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
18804 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
18805 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
18806 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
18807 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
18808 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
18809 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
18810 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
18811 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
18812 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
18813 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
18814 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
18815 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
18816 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
18817 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18818 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18819 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18820 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
18821 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
18822 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
18823 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
18824 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
18825 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
18826 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
18827 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
18828 | 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"`' | |
18829 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
18830 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
18831 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
18832 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
18833 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
18834 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
18835 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
18836 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
18837 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
18838 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
18839 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
18840 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
18841 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
18842 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
18843 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
18844 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18845 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
18846 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
18847 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18848 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18849 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
18850 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
18851 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18852 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18853 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18854 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
18855 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18856 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
18857 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18858 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18859 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18860 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
18861 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
18862 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
18863 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
18864 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
18865 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18866 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
18867 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
18868 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
18869 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
18870 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
18871 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
18872 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
18873 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
18874 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
18875 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18876 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
18877 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18878 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
18879 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
18880 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
18881 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18882 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
18883 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
18884 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
18885 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
18886 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
18887 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18888 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18889 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
18890 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
18891 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
18892 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
18893 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
18894 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
18895 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
18896 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
18897 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
18898 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
18899 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
18900 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
18901 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
18902 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
18903 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
18904 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
18905 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
18906 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
18907 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18908 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18909 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18910 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
18911 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
18912 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18913 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
18914 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
18915 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
18916 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
18917 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
18918 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
18919 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18920 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18921 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
18922 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18923 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18924 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18925 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18926 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18927 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18928 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
18929 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18930 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18931 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18932 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
18933 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' | |
18934 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
18935 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
18936 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
18937 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
18938 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
18939 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
18940 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
18941 | fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' | |
18942 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
18943 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18944 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
18945 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
18946 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18947 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18948 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
18949 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
18950 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
18951 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
18952 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
18953 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
18954 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
18955 | ||
18956 | LTCC='$LTCC' | |
18957 | LTCFLAGS='$LTCFLAGS' | |
18958 | compiler='$compiler_DEFAULT' | |
18959 | ||
18960 | # A function that is used when there is no print builtin or printf. | |
18961 | func_fallback_echo () | |
18962 | { | |
18963 | eval 'cat <<_LTECHO_EOF | |
18964 | \$1 | |
18965 | _LTECHO_EOF' | |
18966 | } | |
18967 | ||
18968 | # Quote evaled strings. | |
18969 | for var in SHELL \ | |
18970 | ECHO \ | |
18971 | SED \ | |
18972 | GREP \ | |
18973 | EGREP \ | |
18974 | FGREP \ | |
18975 | LD \ | |
18976 | NM \ | |
18977 | LN_S \ | |
18978 | lt_SP2NL \ | |
18979 | lt_NL2SP \ | |
18980 | reload_flag \ | |
18981 | OBJDUMP \ | |
18982 | deplibs_check_method \ | |
18983 | file_magic_cmd \ | |
18984 | AR \ | |
18985 | AR_FLAGS \ | |
18986 | STRIP \ | |
18987 | RANLIB \ | |
18988 | CC \ | |
18989 | CFLAGS \ | |
18990 | compiler \ | |
18991 | lt_cv_sys_global_symbol_pipe \ | |
18992 | lt_cv_sys_global_symbol_to_cdecl \ | |
18993 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18994 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
18995 | lt_prog_compiler_no_builtin_flag \ | |
18996 | lt_prog_compiler_wl \ | |
18997 | lt_prog_compiler_pic \ | |
18998 | lt_prog_compiler_static \ | |
18999 | lt_cv_prog_compiler_c_o \ | |
19000 | need_locks \ | |
19001 | DSYMUTIL \ | |
19002 | NMEDIT \ | |
19003 | LIPO \ | |
19004 | OTOOL \ | |
19005 | OTOOL64 \ | |
19006 | shrext_cmds \ | |
19007 | export_dynamic_flag_spec \ | |
19008 | whole_archive_flag_spec \ | |
19009 | compiler_needs_object \ | |
19010 | with_gnu_ld \ | |
19011 | allow_undefined_flag \ | |
19012 | no_undefined_flag \ | |
19013 | hardcode_libdir_flag_spec \ | |
19014 | hardcode_libdir_flag_spec_ld \ | |
19015 | hardcode_libdir_separator \ | |
19016 | fix_srcfile_path \ | |
19017 | exclude_expsyms \ | |
19018 | include_expsyms \ | |
19019 | file_list_spec \ | |
19020 | variables_saved_for_relink \ | |
19021 | libname_spec \ | |
19022 | library_names_spec \ | |
19023 | soname_spec \ | |
19024 | install_override_mode \ | |
19025 | finish_eval \ | |
19026 | old_striplib \ | |
19027 | striplib \ | |
19028 | compiler_lib_search_dirs \ | |
19029 | predep_objects \ | |
19030 | postdep_objects \ | |
19031 | predeps \ | |
19032 | postdeps \ | |
19033 | compiler_lib_search_path \ | |
19034 | LD_CXX \ | |
19035 | reload_flag_CXX \ | |
19036 | compiler_CXX \ | |
19037 | lt_prog_compiler_no_builtin_flag_CXX \ | |
19038 | lt_prog_compiler_wl_CXX \ | |
19039 | lt_prog_compiler_pic_CXX \ | |
19040 | lt_prog_compiler_static_CXX \ | |
19041 | lt_cv_prog_compiler_c_o_CXX \ | |
19042 | export_dynamic_flag_spec_CXX \ | |
19043 | whole_archive_flag_spec_CXX \ | |
19044 | compiler_needs_object_CXX \ | |
19045 | with_gnu_ld_CXX \ | |
19046 | allow_undefined_flag_CXX \ | |
19047 | no_undefined_flag_CXX \ | |
19048 | hardcode_libdir_flag_spec_CXX \ | |
19049 | hardcode_libdir_flag_spec_ld_CXX \ | |
19050 | hardcode_libdir_separator_CXX \ | |
19051 | fix_srcfile_path_CXX \ | |
19052 | exclude_expsyms_CXX \ | |
19053 | include_expsyms_CXX \ | |
19054 | file_list_spec_CXX \ | |
19055 | compiler_lib_search_dirs_CXX \ | |
19056 | predep_objects_CXX \ | |
19057 | postdep_objects_CXX \ | |
19058 | predeps_CXX \ | |
19059 | postdeps_CXX \ | |
19060 | compiler_lib_search_path_CXX; do | |
19061 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
19062 | *[\\\\\\\`\\"\\\$]*) | |
19063 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
19064 | ;; | |
19065 | *) | |
19066 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19067 | ;; | |
19068 | esac | |
19069 | done | |
19070 | ||
19071 | # Double-quote double-evaled strings. | |
19072 | for var in reload_cmds \ | |
19073 | old_postinstall_cmds \ | |
19074 | old_postuninstall_cmds \ | |
19075 | old_archive_cmds \ | |
19076 | extract_expsyms_cmds \ | |
19077 | old_archive_from_new_cmds \ | |
19078 | old_archive_from_expsyms_cmds \ | |
19079 | archive_cmds \ | |
19080 | archive_expsym_cmds \ | |
19081 | module_cmds \ | |
19082 | module_expsym_cmds \ | |
19083 | export_symbols_cmds \ | |
19084 | prelink_cmds \ | |
19085 | postinstall_cmds \ | |
19086 | postuninstall_cmds \ | |
19087 | finish_cmds \ | |
19088 | sys_lib_search_path_spec \ | |
19089 | sys_lib_dlsearch_path_spec \ | |
19090 | reload_cmds_CXX \ | |
19091 | old_archive_cmds_CXX \ | |
19092 | old_archive_from_new_cmds_CXX \ | |
19093 | old_archive_from_expsyms_cmds_CXX \ | |
19094 | archive_cmds_CXX \ | |
19095 | archive_expsym_cmds_CXX \ | |
19096 | module_cmds_CXX \ | |
19097 | module_expsym_cmds_CXX \ | |
19098 | export_symbols_cmds_CXX \ | |
19099 | prelink_cmds_CXX; do | |
19100 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
19101 | *[\\\\\\\`\\"\\\$]*) | |
19102 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
19103 | ;; | |
19104 | *) | |
19105 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19106 | ;; | |
19107 | esac | |
19108 | done | |
19109 | ||
19110 | ac_aux_dir='$ac_aux_dir' | |
19111 | xsi_shell='$xsi_shell' | |
19112 | lt_shell_append='$lt_shell_append' | |
19113 | ||
19114 | # See if we are running on zsh, and set the options which allow our | |
19115 | # commands through without removal of \ escapes INIT. | |
19116 | if test -n "\${ZSH_VERSION+set}" ; then | |
19117 | setopt NO_GLOB_SUBST | |
19118 | fi | |
19119 | ||
19120 | ||
19121 | PACKAGE='$PACKAGE' | |
19122 | VERSION='$VERSION' | |
19123 | TIMESTAMP='$TIMESTAMP' | |
19124 | RM='$RM' | |
19125 | ofile='$ofile' | |
19126 | ||
19127 | ||
19128 | ||
19129 | ||
19130 | ||
19131 | ||
19132 | GCC="$GCC" | |
19133 | CC="$CC" | |
19134 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
19135 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
19136 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
19137 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
19138 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
19139 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
19140 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
19141 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
19142 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
19143 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
19144 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
19145 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
19146 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
19147 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
19148 | ||
19149 | ||
19150 | _ACEOF | |
19151 | ||
19152 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19153 | ||
19154 | # Handling of arguments. | |
19155 | for ac_config_target in $ac_config_targets | |
19156 | do | |
19157 | case $ac_config_target in | |
19158 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
19159 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
19160 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
19161 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
19162 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; | |
19163 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
19164 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
19165 | "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;; | |
19166 | ||
22e05272 | 19167 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
0a35513e AH |
19168 | esac |
19169 | done | |
19170 | ||
19171 | ||
19172 | # If the user did not use the arguments to specify the items to instantiate, | |
19173 | # then the envvar interface is used. Set only those that are not. | |
19174 | # We use the long form for the default assignment because of an extremely | |
19175 | # bizarre bug on SunOS 4.1.3. | |
19176 | if $ac_need_defaults; then | |
19177 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19178 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
19179 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
19180 | fi | |
19181 | ||
19182 | # Have a temporary directory for convenience. Make it in the build tree | |
19183 | # simply because there is no reason against having it here, and in addition, | |
19184 | # creating and moving files from /tmp can sometimes cause problems. | |
19185 | # Hook for its removal unless debugging. | |
19186 | # Note that there is a small window in which the directory will not be cleaned: | |
19187 | # after its creation but before its name has been assigned to `$tmp'. | |
19188 | $debug || | |
19189 | { | |
22e05272 | 19190 | tmp= ac_tmp= |
0a35513e | 19191 | trap 'exit_status=$? |
22e05272 JM |
19192 | : "${ac_tmp:=$tmp}" |
19193 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
0a35513e AH |
19194 | ' 0 |
19195 | trap 'as_fn_exit 1' 1 2 13 15 | |
19196 | } | |
19197 | # Create a (secure) tmp directory for tmp files. | |
19198 | ||
19199 | { | |
19200 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
22e05272 | 19201 | test -d "$tmp" |
0a35513e AH |
19202 | } || |
19203 | { | |
19204 | tmp=./conf$$-$RANDOM | |
19205 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
19206 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
19207 | ac_tmp=$tmp | |
0a35513e AH |
19208 | |
19209 | # Set up the scripts for CONFIG_FILES section. | |
19210 | # No need to generate them if there are no CONFIG_FILES. | |
19211 | # This happens for instance with `./config.status config.h'. | |
19212 | if test -n "$CONFIG_FILES"; then | |
19213 | ||
19214 | ||
19215 | ac_cr=`echo X | tr X '\015'` | |
19216 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19217 | # But we know of no other shell where ac_cr would be empty at this | |
19218 | # point, so we can use a bashism as a fallback. | |
19219 | if test "x$ac_cr" = x; then | |
19220 | eval ac_cr=\$\'\\r\' | |
19221 | fi | |
19222 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19223 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 19224 | ac_cs_awk_cr='\\r' |
0a35513e AH |
19225 | else |
19226 | ac_cs_awk_cr=$ac_cr | |
19227 | fi | |
19228 | ||
22e05272 | 19229 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
0a35513e AH |
19230 | _ACEOF |
19231 | ||
19232 | ||
19233 | { | |
19234 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19235 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19236 | echo "_ACEOF" | |
19237 | } >conf$$subs.sh || | |
22e05272 JM |
19238 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
19239 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
0a35513e AH |
19240 | ac_delim='%!_!# ' |
19241 | for ac_last_try in false false false false false :; do | |
19242 | . ./conf$$subs.sh || | |
22e05272 | 19243 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
0a35513e AH |
19244 | |
19245 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19246 | if test $ac_delim_n = $ac_delim_num; then | |
19247 | break | |
19248 | elif $ac_last_try; then | |
22e05272 | 19249 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
0a35513e AH |
19250 | else |
19251 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19252 | fi | |
19253 | done | |
19254 | rm -f conf$$subs.sh | |
19255 | ||
19256 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 19257 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
0a35513e AH |
19258 | _ACEOF |
19259 | sed -n ' | |
19260 | h | |
19261 | s/^/S["/; s/!.*/"]=/ | |
19262 | p | |
19263 | g | |
19264 | s/^[^!]*!// | |
19265 | :repl | |
19266 | t repl | |
19267 | s/'"$ac_delim"'$// | |
19268 | t delim | |
19269 | :nl | |
19270 | h | |
22e05272 | 19271 | s/\(.\{148\}\)..*/\1/ |
0a35513e AH |
19272 | t more1 |
19273 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19274 | p | |
19275 | n | |
19276 | b repl | |
19277 | :more1 | |
19278 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19279 | p | |
19280 | g | |
19281 | s/.\{148\}// | |
19282 | t nl | |
19283 | :delim | |
19284 | h | |
22e05272 | 19285 | s/\(.\{148\}\)..*/\1/ |
0a35513e AH |
19286 | t more2 |
19287 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19288 | p | |
19289 | b | |
19290 | :more2 | |
19291 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19292 | p | |
19293 | g | |
19294 | s/.\{148\}// | |
19295 | t delim | |
19296 | ' <conf$$subs.awk | sed ' | |
19297 | /^[^""]/{ | |
19298 | N | |
19299 | s/\n// | |
19300 | } | |
19301 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19302 | rm -f conf$$subs.awk | |
19303 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19304 | _ACAWK | |
22e05272 | 19305 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
0a35513e AH |
19306 | for (key in S) S_is_set[key] = 1 |
19307 | FS = "\a" | |
19308 | ||
19309 | } | |
19310 | { | |
19311 | line = $ 0 | |
19312 | nfields = split(line, field, "@") | |
19313 | substed = 0 | |
19314 | len = length(field[1]) | |
19315 | for (i = 2; i < nfields; i++) { | |
19316 | key = field[i] | |
19317 | keylen = length(key) | |
19318 | if (S_is_set[key]) { | |
19319 | value = S[key] | |
19320 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19321 | len += length(value) + length(field[++i]) | |
19322 | substed = 1 | |
19323 | } else | |
19324 | len += 1 + keylen | |
19325 | } | |
19326 | ||
19327 | print line | |
19328 | } | |
19329 | ||
19330 | _ACAWK | |
19331 | _ACEOF | |
19332 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19333 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19334 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19335 | else | |
19336 | cat | |
22e05272 JM |
19337 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19338 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
0a35513e AH |
19339 | _ACEOF |
19340 | ||
22e05272 JM |
19341 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19342 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
0a35513e AH |
19343 | # trailing colons and then remove the whole line if VPATH becomes empty |
19344 | # (actually we leave an empty line to preserve line numbers). | |
19345 | if test "x$srcdir" = x.; then | |
22e05272 JM |
19346 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19347 | h | |
19348 | s/// | |
19349 | s/^/:/ | |
19350 | s/[ ]*$/:/ | |
19351 | s/:\$(srcdir):/:/g | |
19352 | s/:\${srcdir}:/:/g | |
19353 | s/:@srcdir@:/:/g | |
19354 | s/^:*// | |
0a35513e | 19355 | s/:*$// |
22e05272 JM |
19356 | x |
19357 | s/\(=[ ]*\).*/\1/ | |
19358 | G | |
19359 | s/\n// | |
0a35513e AH |
19360 | s/^[^=]*=[ ]*$// |
19361 | }' | |
19362 | fi | |
19363 | ||
19364 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19365 | fi # test -n "$CONFIG_FILES" | |
19366 | ||
19367 | # Set up the scripts for CONFIG_HEADERS section. | |
19368 | # No need to generate them if there are no CONFIG_HEADERS. | |
19369 | # This happens for instance with `./config.status Makefile'. | |
19370 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 19371 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
0a35513e AH |
19372 | BEGIN { |
19373 | _ACEOF | |
19374 | ||
19375 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
19376 | # here-document in config.status, that substitutes the proper values into | |
19377 | # config.h.in to produce config.h. | |
19378 | ||
19379 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
19380 | # handling of long lines. | |
19381 | ac_delim='%!_!# ' | |
19382 | for ac_last_try in false false :; do | |
22e05272 JM |
19383 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
19384 | if test -z "$ac_tt"; then | |
0a35513e AH |
19385 | break |
19386 | elif $ac_last_try; then | |
22e05272 | 19387 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
0a35513e AH |
19388 | else |
19389 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19390 | fi | |
19391 | done | |
19392 | ||
19393 | # For the awk script, D is an array of macro values keyed by name, | |
19394 | # likewise P contains macro parameters if any. Preserve backslash | |
19395 | # newline sequences. | |
19396 | ||
19397 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
19398 | sed -n ' | |
19399 | s/.\{148\}/&'"$ac_delim"'/g | |
19400 | t rset | |
19401 | :rset | |
19402 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
19403 | t def | |
19404 | d | |
19405 | :def | |
19406 | s/\\$// | |
19407 | t bsnl | |
19408 | s/["\\]/\\&/g | |
19409 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19410 | D["\1"]=" \3"/p | |
19411 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
19412 | d | |
19413 | :bsnl | |
19414 | s/["\\]/\\&/g | |
19415 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19416 | D["\1"]=" \3\\\\\\n"\\/p | |
19417 | t cont | |
19418 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
19419 | t cont | |
19420 | d | |
19421 | :cont | |
19422 | n | |
19423 | s/.\{148\}/&'"$ac_delim"'/g | |
19424 | t clear | |
19425 | :clear | |
19426 | s/\\$// | |
19427 | t bsnlc | |
19428 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
19429 | d | |
19430 | :bsnlc | |
19431 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
19432 | b cont | |
19433 | ' <confdefs.h | sed ' | |
19434 | s/'"$ac_delim"'/"\\\ | |
19435 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
19436 | ||
19437 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19438 | for (key in D) D_is_set[key] = 1 | |
19439 | FS = "\a" | |
19440 | } | |
19441 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
19442 | line = \$ 0 | |
19443 | split(line, arg, " ") | |
19444 | if (arg[1] == "#") { | |
19445 | defundef = arg[2] | |
19446 | mac1 = arg[3] | |
19447 | } else { | |
19448 | defundef = substr(arg[1], 2) | |
19449 | mac1 = arg[2] | |
19450 | } | |
19451 | split(mac1, mac2, "(") #) | |
19452 | macro = mac2[1] | |
19453 | prefix = substr(line, 1, index(line, defundef) - 1) | |
19454 | if (D_is_set[macro]) { | |
19455 | # Preserve the white space surrounding the "#". | |
19456 | print prefix "define", macro P[macro] D[macro] | |
19457 | next | |
19458 | } else { | |
19459 | # Replace #undef with comments. This is necessary, for example, | |
19460 | # in the case of _POSIX_SOURCE, which is predefined and required | |
19461 | # on some systems where configure will not decide to define it. | |
19462 | if (defundef == "undef") { | |
19463 | print "/*", prefix defundef, macro, "*/" | |
19464 | next | |
19465 | } | |
19466 | } | |
19467 | } | |
19468 | { print } | |
19469 | _ACAWK | |
19470 | _ACEOF | |
19471 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22e05272 | 19472 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
0a35513e AH |
19473 | fi # test -n "$CONFIG_HEADERS" |
19474 | ||
19475 | ||
19476 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
19477 | shift | |
19478 | for ac_tag | |
19479 | do | |
19480 | case $ac_tag in | |
19481 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19482 | esac | |
19483 | case $ac_mode$ac_tag in | |
19484 | :[FHL]*:*);; | |
22e05272 | 19485 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
0a35513e AH |
19486 | :[FH]-) ac_tag=-:-;; |
19487 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19488 | esac | |
19489 | ac_save_IFS=$IFS | |
19490 | IFS=: | |
19491 | set x $ac_tag | |
19492 | IFS=$ac_save_IFS | |
19493 | shift | |
19494 | ac_file=$1 | |
19495 | shift | |
19496 | ||
19497 | case $ac_mode in | |
19498 | :L) ac_source=$1;; | |
19499 | :[FH]) | |
19500 | ac_file_inputs= | |
19501 | for ac_f | |
19502 | do | |
19503 | case $ac_f in | |
22e05272 | 19504 | -) ac_f="$ac_tmp/stdin";; |
0a35513e AH |
19505 | *) # Look for the file first in the build tree, then in the source tree |
19506 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19507 | # because $ac_f cannot contain `:'. | |
19508 | test -f "$ac_f" || | |
19509 | case $ac_f in | |
19510 | [\\/$]*) false;; | |
19511 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19512 | esac || | |
22e05272 | 19513 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
0a35513e AH |
19514 | esac |
19515 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19516 | as_fn_append ac_file_inputs " '$ac_f'" | |
19517 | done | |
19518 | ||
19519 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19520 | # use $as_me), people would be surprised to read: | |
19521 | # /* config.h. Generated by config.status. */ | |
19522 | configure_input='Generated from '` | |
19523 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19524 | `' by configure.' | |
19525 | if test x"$ac_file" != x-; then | |
19526 | configure_input="$ac_file. $configure_input" | |
19527 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19528 | $as_echo "$as_me: creating $ac_file" >&6;} | |
19529 | fi | |
19530 | # Neutralize special characters interpreted by sed in replacement strings. | |
19531 | case $configure_input in #( | |
19532 | *\&* | *\|* | *\\* ) | |
19533 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19534 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19535 | *) ac_sed_conf_input=$configure_input;; | |
19536 | esac | |
19537 | ||
19538 | case $ac_tag in | |
22e05272 JM |
19539 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19540 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
0a35513e AH |
19541 | esac |
19542 | ;; | |
19543 | esac | |
19544 | ||
19545 | ac_dir=`$as_dirname -- "$ac_file" || | |
19546 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19547 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19548 | X"$ac_file" : 'X\(//\)$' \| \ | |
19549 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
19550 | $as_echo X"$ac_file" | | |
19551 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19552 | s//\1/ | |
19553 | q | |
19554 | } | |
19555 | /^X\(\/\/\)[^/].*/{ | |
19556 | s//\1/ | |
19557 | q | |
19558 | } | |
19559 | /^X\(\/\/\)$/{ | |
19560 | s//\1/ | |
19561 | q | |
19562 | } | |
19563 | /^X\(\/\).*/{ | |
19564 | s//\1/ | |
19565 | q | |
19566 | } | |
19567 | s/.*/./; q'` | |
19568 | as_dir="$ac_dir"; as_fn_mkdir_p | |
19569 | ac_builddir=. | |
19570 | ||
19571 | case "$ac_dir" in | |
19572 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19573 | *) | |
19574 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19575 | # A ".." for each directory in $ac_dir_suffix. | |
19576 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19577 | case $ac_top_builddir_sub in | |
19578 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19579 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19580 | esac ;; | |
19581 | esac | |
19582 | ac_abs_top_builddir=$ac_pwd | |
19583 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19584 | # for backward compatibility: | |
19585 | ac_top_builddir=$ac_top_build_prefix | |
19586 | ||
19587 | case $srcdir in | |
19588 | .) # We are building in place. | |
19589 | ac_srcdir=. | |
19590 | ac_top_srcdir=$ac_top_builddir_sub | |
19591 | ac_abs_top_srcdir=$ac_pwd ;; | |
19592 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
19593 | ac_srcdir=$srcdir$ac_dir_suffix; | |
19594 | ac_top_srcdir=$srcdir | |
19595 | ac_abs_top_srcdir=$srcdir ;; | |
19596 | *) # Relative name. | |
19597 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19598 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19599 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
19600 | esac | |
19601 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
19602 | ||
19603 | ||
19604 | case $ac_mode in | |
19605 | :F) | |
19606 | # | |
19607 | # CONFIG_FILE | |
19608 | # | |
19609 | ||
19610 | case $INSTALL in | |
19611 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
19612 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
19613 | esac | |
19614 | ac_MKDIR_P=$MKDIR_P | |
19615 | case $MKDIR_P in | |
19616 | [\\/$]* | ?:[\\/]* ) ;; | |
19617 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19618 | esac | |
19619 | _ACEOF | |
19620 | ||
19621 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19622 | # If the template does not know about datarootdir, expand it. | |
19623 | # FIXME: This hack should be removed a few years after 2.60. | |
19624 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19625 | ac_sed_dataroot=' | |
19626 | /datarootdir/ { | |
19627 | p | |
19628 | q | |
19629 | } | |
19630 | /@datadir@/p | |
19631 | /@docdir@/p | |
19632 | /@infodir@/p | |
19633 | /@localedir@/p | |
19634 | /@mandir@/p' | |
19635 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19636 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19637 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19638 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19639 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
19640 | _ACEOF | |
19641 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19642 | ac_datarootdir_hack=' | |
19643 | s&@datadir@&$datadir&g | |
19644 | s&@docdir@&$docdir&g | |
19645 | s&@infodir@&$infodir&g | |
19646 | s&@localedir@&$localedir&g | |
19647 | s&@mandir@&$mandir&g | |
19648 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19649 | esac | |
19650 | _ACEOF | |
19651 | ||
19652 | # Neutralize VPATH when `$srcdir' = `.'. | |
19653 | # Shell code in configure.ac might set extrasub. | |
19654 | # FIXME: do we really want to maintain this feature? | |
19655 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19656 | ac_sed_extra="$ac_vpsub | |
19657 | $extrasub | |
19658 | _ACEOF | |
19659 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19660 | :t | |
19661 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
19662 | s|@configure_input@|$ac_sed_conf_input|;t t | |
19663 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19664 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19665 | s&@srcdir@&$ac_srcdir&;t t | |
19666 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19667 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19668 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19669 | s&@builddir@&$ac_builddir&;t t | |
19670 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19671 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19672 | s&@INSTALL@&$ac_INSTALL&;t t | |
19673 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
19674 | $ac_datarootdir_hack | |
19675 | " | |
22e05272 JM |
19676 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
19677 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
0a35513e AH |
19678 | |
19679 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
19680 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19681 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19682 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
0a35513e | 19683 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 19684 | which seems to be undefined. Please make sure it is defined" >&5 |
0a35513e | 19685 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 19686 | which seems to be undefined. Please make sure it is defined" >&2;} |
0a35513e | 19687 | |
22e05272 | 19688 | rm -f "$ac_tmp/stdin" |
0a35513e | 19689 | case $ac_file in |
22e05272 JM |
19690 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19691 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
0a35513e | 19692 | esac \ |
22e05272 | 19693 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
0a35513e AH |
19694 | ;; |
19695 | :H) | |
19696 | # | |
19697 | # CONFIG_HEADER | |
19698 | # | |
19699 | if test x"$ac_file" != x-; then | |
19700 | { | |
19701 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
19702 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
19703 | } >"$ac_tmp/config.h" \ | |
19704 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19705 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
0a35513e AH |
19706 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
19707 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
19708 | else | |
19709 | rm -f "$ac_file" | |
22e05272 JM |
19710 | mv "$ac_tmp/config.h" "$ac_file" \ |
19711 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
0a35513e AH |
19712 | fi |
19713 | else | |
19714 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
19715 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
19716 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
0a35513e AH |
19717 | fi |
19718 | # Compute "$ac_file"'s index in $config_headers. | |
19719 | _am_arg="$ac_file" | |
19720 | _am_stamp_count=1 | |
19721 | for _am_header in $config_headers :; do | |
19722 | case $_am_header in | |
19723 | $_am_arg | $_am_arg:* ) | |
19724 | break ;; | |
19725 | * ) | |
19726 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
19727 | esac | |
19728 | done | |
19729 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
19730 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19731 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
19732 | X"$_am_arg" : 'X\(//\)$' \| \ | |
19733 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
19734 | $as_echo X"$_am_arg" | | |
19735 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19736 | s//\1/ | |
19737 | q | |
19738 | } | |
19739 | /^X\(\/\/\)[^/].*/{ | |
19740 | s//\1/ | |
19741 | q | |
19742 | } | |
19743 | /^X\(\/\/\)$/{ | |
19744 | s//\1/ | |
19745 | q | |
19746 | } | |
19747 | /^X\(\/\).*/{ | |
19748 | s//\1/ | |
19749 | q | |
19750 | } | |
19751 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
19752 | ;; | |
19753 | ||
19754 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
19755 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19756 | ;; | |
19757 | esac | |
19758 | ||
19759 | ||
19760 | case $ac_file$ac_mode in | |
19761 | "default-1":C) | |
19762 | # Only add multilib support code if we just rebuilt the top-level | |
19763 | # Makefile. | |
19764 | case " $CONFIG_FILES " in | |
19765 | *" Makefile "*) | |
19766 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
19767 | ;; | |
19768 | esac ;; | |
19769 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
22e05272 | 19770 | # Older Autoconf quotes --file arguments for eval, but not when files |
0a35513e AH |
19771 | # are listed without --file. Let's play safe and only enable the eval |
19772 | # if we detect the quoting. | |
19773 | case $CONFIG_FILES in | |
19774 | *\'*) eval set x "$CONFIG_FILES" ;; | |
19775 | *) set x $CONFIG_FILES ;; | |
19776 | esac | |
19777 | shift | |
19778 | for mf | |
19779 | do | |
19780 | # Strip MF so we end up with the name of the file. | |
19781 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
19782 | # Check whether this is an Automake generated Makefile or not. | |
22e05272 | 19783 | # We used to match only the files named 'Makefile.in', but |
0a35513e AH |
19784 | # some people rename them; so instead we look at the file content. |
19785 | # Grep'ing the first line is not enough: some people post-process | |
19786 | # each Makefile.in and add a new line on top of each file to say so. | |
19787 | # Grep'ing the whole file is not good either: AIX grep has a line | |
19788 | # limit of 2048, but all sed's we know have understand at least 4000. | |
19789 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
19790 | dirpart=`$as_dirname -- "$mf" || | |
19791 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19792 | X"$mf" : 'X\(//\)[^/]' \| \ | |
19793 | X"$mf" : 'X\(//\)$' \| \ | |
19794 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
19795 | $as_echo X"$mf" | | |
19796 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19797 | s//\1/ | |
19798 | q | |
19799 | } | |
19800 | /^X\(\/\/\)[^/].*/{ | |
19801 | s//\1/ | |
19802 | q | |
19803 | } | |
19804 | /^X\(\/\/\)$/{ | |
19805 | s//\1/ | |
19806 | q | |
19807 | } | |
19808 | /^X\(\/\).*/{ | |
19809 | s//\1/ | |
19810 | q | |
19811 | } | |
19812 | s/.*/./; q'` | |
19813 | else | |
19814 | continue | |
19815 | fi | |
19816 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22e05272 | 19817 | # from the Makefile without running 'make'. |
0a35513e AH |
19818 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
19819 | test -z "$DEPDIR" && continue | |
19820 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22e05272 | 19821 | test -z "$am__include" && continue |
0a35513e | 19822 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
0a35513e AH |
19823 | # Find all dependency output files, they are included files with |
19824 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
19825 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
19826 | # expansion. | |
19827 | for file in `sed -n " | |
19828 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22e05272 | 19829 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
0a35513e AH |
19830 | # Make sure the directory exists. |
19831 | test -f "$dirpart/$file" && continue | |
19832 | fdir=`$as_dirname -- "$file" || | |
19833 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19834 | X"$file" : 'X\(//\)[^/]' \| \ | |
19835 | X"$file" : 'X\(//\)$' \| \ | |
19836 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
19837 | $as_echo X"$file" | | |
19838 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19839 | s//\1/ | |
19840 | q | |
19841 | } | |
19842 | /^X\(\/\/\)[^/].*/{ | |
19843 | s//\1/ | |
19844 | q | |
19845 | } | |
19846 | /^X\(\/\/\)$/{ | |
19847 | s//\1/ | |
19848 | q | |
19849 | } | |
19850 | /^X\(\/\).*/{ | |
19851 | s//\1/ | |
19852 | q | |
19853 | } | |
19854 | s/.*/./; q'` | |
19855 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
19856 | # echo "creating $dirpart/$file" | |
19857 | echo '# dummy' > "$dirpart/$file" | |
19858 | done | |
19859 | done | |
19860 | } | |
19861 | ;; | |
19862 | "libtool":C) | |
19863 | ||
19864 | # See if we are running on zsh, and set the options which allow our | |
19865 | # commands through without removal of \ escapes. | |
19866 | if test -n "${ZSH_VERSION+set}" ; then | |
19867 | setopt NO_GLOB_SUBST | |
19868 | fi | |
19869 | ||
19870 | cfgfile="${ofile}T" | |
19871 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19872 | $RM "$cfgfile" | |
19873 | ||
19874 | cat <<_LT_EOF >> "$cfgfile" | |
19875 | #! $SHELL | |
19876 | ||
19877 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
19878 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
19879 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19880 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19881 | # | |
19882 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
19883 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
19884 | # Written by Gordon Matzigkeit, 1996 | |
19885 | # | |
19886 | # This file is part of GNU Libtool. | |
19887 | # | |
19888 | # GNU Libtool is free software; you can redistribute it and/or | |
19889 | # modify it under the terms of the GNU General Public License as | |
19890 | # published by the Free Software Foundation; either version 2 of | |
19891 | # the License, or (at your option) any later version. | |
19892 | # | |
19893 | # As a special exception to the GNU General Public License, | |
19894 | # if you distribute this file as part of a program or library that | |
19895 | # is built using GNU Libtool, you may include this file under the | |
19896 | # same distribution terms that you use for the rest of that program. | |
19897 | # | |
19898 | # GNU Libtool is distributed in the hope that it will be useful, | |
19899 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19900 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19901 | # GNU General Public License for more details. | |
19902 | # | |
19903 | # You should have received a copy of the GNU General Public License | |
19904 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19905 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19906 | # obtained by writing to the Free Software Foundation, Inc., | |
19907 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
19908 | ||
19909 | ||
19910 | # The names of the tagged configurations supported by this script. | |
19911 | available_tags="CXX " | |
19912 | ||
19913 | # ### BEGIN LIBTOOL CONFIG | |
19914 | ||
19915 | # Which release of libtool.m4 was used? | |
19916 | macro_version=$macro_version | |
19917 | macro_revision=$macro_revision | |
19918 | ||
19919 | # Whether or not to build shared libraries. | |
19920 | build_libtool_libs=$enable_shared | |
19921 | ||
19922 | # Whether or not to build static libraries. | |
19923 | build_old_libs=$enable_static | |
19924 | ||
19925 | # What type of objects to build. | |
19926 | pic_mode=$pic_mode | |
19927 | ||
19928 | # Whether or not to optimize for fast installation. | |
19929 | fast_install=$enable_fast_install | |
19930 | ||
19931 | # Shell to use when invoking shell scripts. | |
19932 | SHELL=$lt_SHELL | |
19933 | ||
19934 | # An echo program that protects backslashes. | |
19935 | ECHO=$lt_ECHO | |
19936 | ||
19937 | # The host system. | |
19938 | host_alias=$host_alias | |
19939 | host=$host | |
19940 | host_os=$host_os | |
19941 | ||
19942 | # The build system. | |
19943 | build_alias=$build_alias | |
19944 | build=$build | |
19945 | build_os=$build_os | |
19946 | ||
19947 | # A sed program that does not truncate output. | |
19948 | SED=$lt_SED | |
19949 | ||
19950 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19951 | Xsed="\$SED -e 1s/^X//" | |
19952 | ||
19953 | # A grep program that handles long lines. | |
19954 | GREP=$lt_GREP | |
19955 | ||
19956 | # An ERE matcher. | |
19957 | EGREP=$lt_EGREP | |
19958 | ||
19959 | # A literal string matcher. | |
19960 | FGREP=$lt_FGREP | |
19961 | ||
19962 | # A BSD- or MS-compatible name lister. | |
19963 | NM=$lt_NM | |
19964 | ||
19965 | # Whether we need soft or hard links. | |
19966 | LN_S=$lt_LN_S | |
19967 | ||
19968 | # What is the maximum length of a command? | |
19969 | max_cmd_len=$max_cmd_len | |
19970 | ||
19971 | # Object file suffix (normally "o"). | |
19972 | objext=$ac_objext | |
19973 | ||
19974 | # Executable file suffix (normally ""). | |
19975 | exeext=$exeext | |
19976 | ||
19977 | # whether the shell understands "unset". | |
19978 | lt_unset=$lt_unset | |
19979 | ||
19980 | # turn spaces into newlines. | |
19981 | SP2NL=$lt_lt_SP2NL | |
19982 | ||
19983 | # turn newlines into spaces. | |
19984 | NL2SP=$lt_lt_NL2SP | |
19985 | ||
19986 | # An object symbol dumper. | |
19987 | OBJDUMP=$lt_OBJDUMP | |
19988 | ||
19989 | # Method to check whether dependent libraries are shared objects. | |
19990 | deplibs_check_method=$lt_deplibs_check_method | |
19991 | ||
19992 | # Command to use when deplibs_check_method == "file_magic". | |
19993 | file_magic_cmd=$lt_file_magic_cmd | |
19994 | ||
19995 | # The archiver. | |
19996 | AR=$lt_AR | |
19997 | AR_FLAGS=$lt_AR_FLAGS | |
19998 | ||
19999 | # A symbol stripping program. | |
20000 | STRIP=$lt_STRIP | |
20001 | ||
20002 | # Commands used to install an old-style archive. | |
20003 | RANLIB=$lt_RANLIB | |
20004 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
20005 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
20006 | ||
20007 | # Whether to use a lock for old archive extraction. | |
20008 | lock_old_archive_extraction=$lock_old_archive_extraction | |
20009 | ||
20010 | # A C compiler. | |
20011 | LTCC=$lt_CC | |
20012 | ||
20013 | # LTCC compiler flags. | |
20014 | LTCFLAGS=$lt_CFLAGS | |
20015 | ||
20016 | # Take the output of nm and produce a listing of raw symbols and C names. | |
20017 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
20018 | ||
20019 | # Transform the output of nm in a proper C declaration. | |
20020 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
20021 | ||
20022 | # Transform the output of nm in a C name address pair. | |
20023 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
20024 | ||
20025 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
20026 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
20027 | ||
20028 | # The name of the directory that contains temporary libtool files. | |
20029 | objdir=$objdir | |
20030 | ||
20031 | # Used to examine libraries when file_magic_cmd begins with "file". | |
20032 | MAGIC_CMD=$MAGIC_CMD | |
20033 | ||
20034 | # Must we lock files when doing compilation? | |
20035 | need_locks=$lt_need_locks | |
20036 | ||
20037 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
20038 | DSYMUTIL=$lt_DSYMUTIL | |
20039 | ||
20040 | # Tool to change global to local symbols on Mac OS X. | |
20041 | NMEDIT=$lt_NMEDIT | |
20042 | ||
20043 | # Tool to manipulate fat objects and archives on Mac OS X. | |
20044 | LIPO=$lt_LIPO | |
20045 | ||
20046 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
20047 | OTOOL=$lt_OTOOL | |
20048 | ||
20049 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
20050 | OTOOL64=$lt_OTOOL64 | |
20051 | ||
20052 | # Old archive suffix (normally "a"). | |
20053 | libext=$libext | |
20054 | ||
20055 | # Shared library suffix (normally ".so"). | |
20056 | shrext_cmds=$lt_shrext_cmds | |
20057 | ||
20058 | # The commands to extract the exported symbol list from a shared archive. | |
20059 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
20060 | ||
20061 | # Variables whose values should be saved in libtool wrapper scripts and | |
20062 | # restored at link time. | |
20063 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
20064 | ||
20065 | # Do we need the "lib" prefix for modules? | |
20066 | need_lib_prefix=$need_lib_prefix | |
20067 | ||
20068 | # Do we need a version for libraries? | |
20069 | need_version=$need_version | |
20070 | ||
20071 | # Library versioning type. | |
20072 | version_type=$version_type | |
20073 | ||
20074 | # Shared library runtime path variable. | |
20075 | runpath_var=$runpath_var | |
20076 | ||
20077 | # Shared library path variable. | |
20078 | shlibpath_var=$shlibpath_var | |
20079 | ||
20080 | # Is shlibpath searched before the hard-coded library search path? | |
20081 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
20082 | ||
20083 | # Format of library name prefix. | |
20084 | libname_spec=$lt_libname_spec | |
20085 | ||
20086 | # List of archive names. First name is the real one, the rest are links. | |
20087 | # The last name is the one that the linker finds with -lNAME | |
20088 | library_names_spec=$lt_library_names_spec | |
20089 | ||
20090 | # The coded name of the library, if different from the real name. | |
20091 | soname_spec=$lt_soname_spec | |
20092 | ||
20093 | # Permission mode override for installation of shared libraries. | |
20094 | install_override_mode=$lt_install_override_mode | |
20095 | ||
20096 | # Command to use after installation of a shared archive. | |
20097 | postinstall_cmds=$lt_postinstall_cmds | |
20098 | ||
20099 | # Command to use after uninstallation of a shared archive. | |
20100 | postuninstall_cmds=$lt_postuninstall_cmds | |
20101 | ||
20102 | # Commands used to finish a libtool library installation in a directory. | |
20103 | finish_cmds=$lt_finish_cmds | |
20104 | ||
20105 | # As "finish_cmds", except a single script fragment to be evaled but | |
20106 | # not shown. | |
20107 | finish_eval=$lt_finish_eval | |
20108 | ||
20109 | # Whether we should hardcode library paths into libraries. | |
20110 | hardcode_into_libs=$hardcode_into_libs | |
20111 | ||
20112 | # Compile-time system search path for libraries. | |
20113 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
20114 | ||
20115 | # Run-time system search path for libraries. | |
20116 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
20117 | ||
20118 | # Whether dlopen is supported. | |
20119 | dlopen_support=$enable_dlopen | |
20120 | ||
20121 | # Whether dlopen of programs is supported. | |
20122 | dlopen_self=$enable_dlopen_self | |
20123 | ||
20124 | # Whether dlopen of statically linked programs is supported. | |
20125 | dlopen_self_static=$enable_dlopen_self_static | |
20126 | ||
20127 | # Commands to strip libraries. | |
20128 | old_striplib=$lt_old_striplib | |
20129 | striplib=$lt_striplib | |
20130 | ||
20131 | ||
20132 | # The linker used to build libraries. | |
20133 | LD=$lt_LD | |
20134 | ||
20135 | # How to create reloadable object files. | |
20136 | reload_flag=$lt_reload_flag | |
20137 | reload_cmds=$lt_reload_cmds | |
20138 | ||
20139 | # Commands used to build an old-style archive. | |
20140 | old_archive_cmds=$lt_old_archive_cmds | |
20141 | ||
20142 | # A language specific compiler. | |
20143 | CC=$lt_compiler | |
20144 | ||
20145 | # Is the compiler the GNU compiler? | |
20146 | with_gcc=$GCC | |
20147 | ||
20148 | # Compiler flag to turn off builtin functions. | |
20149 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
20150 | ||
20151 | # How to pass a linker flag through the compiler. | |
20152 | wl=$lt_lt_prog_compiler_wl | |
20153 | ||
20154 | # Additional compiler flags for building library objects. | |
20155 | pic_flag=$lt_lt_prog_compiler_pic | |
20156 | ||
20157 | # Compiler flag to prevent dynamic linking. | |
20158 | link_static_flag=$lt_lt_prog_compiler_static | |
20159 | ||
20160 | # Does compiler simultaneously support -c and -o options? | |
20161 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
20162 | ||
20163 | # Whether or not to add -lc for building shared libraries. | |
20164 | build_libtool_need_lc=$archive_cmds_need_lc | |
20165 | ||
20166 | # Whether or not to disallow shared libs when runtime libs are static. | |
20167 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
20168 | ||
20169 | # Compiler flag to allow reflexive dlopens. | |
20170 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
20171 | ||
20172 | # Compiler flag to generate shared objects directly from archives. | |
20173 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
20174 | ||
20175 | # Whether the compiler copes with passing no objects directly. | |
20176 | compiler_needs_object=$lt_compiler_needs_object | |
20177 | ||
20178 | # Create an old-style archive from a shared archive. | |
20179 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
20180 | ||
20181 | # Create a temporary old-style archive to link instead of a shared archive. | |
20182 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
20183 | ||
20184 | # Commands used to build a shared archive. | |
20185 | archive_cmds=$lt_archive_cmds | |
20186 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
20187 | ||
20188 | # Commands used to build a loadable module if different from building | |
20189 | # a shared archive. | |
20190 | module_cmds=$lt_module_cmds | |
20191 | module_expsym_cmds=$lt_module_expsym_cmds | |
20192 | ||
20193 | # Whether we are building with GNU ld or not. | |
20194 | with_gnu_ld=$lt_with_gnu_ld | |
20195 | ||
20196 | # Flag that allows shared libraries with undefined symbols to be built. | |
20197 | allow_undefined_flag=$lt_allow_undefined_flag | |
20198 | ||
20199 | # Flag that enforces no undefined symbols. | |
20200 | no_undefined_flag=$lt_no_undefined_flag | |
20201 | ||
20202 | # Flag to hardcode \$libdir into a binary during linking. | |
20203 | # This must work even if \$libdir does not exist | |
20204 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
20205 | ||
20206 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
20207 | # during linking. This must work even if \$libdir does not exist. | |
20208 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
20209 | ||
20210 | # Whether we need a single "-rpath" flag with a separated argument. | |
20211 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
20212 | ||
20213 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
20214 | # DIR into the resulting binary. | |
20215 | hardcode_direct=$hardcode_direct | |
20216 | ||
20217 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
20218 | # DIR into the resulting binary and the resulting library dependency is | |
20219 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
20220 | # library is relocated. | |
20221 | hardcode_direct_absolute=$hardcode_direct_absolute | |
20222 | ||
20223 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
20224 | # into the resulting binary. | |
20225 | hardcode_minus_L=$hardcode_minus_L | |
20226 | ||
20227 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
20228 | # into the resulting binary. | |
20229 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
20230 | ||
20231 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
20232 | # into the library and all subsequent libraries and executables linked | |
20233 | # against it. | |
20234 | hardcode_automatic=$hardcode_automatic | |
20235 | ||
20236 | # Set to yes if linker adds runtime paths of dependent libraries | |
20237 | # to runtime path list. | |
20238 | inherit_rpath=$inherit_rpath | |
20239 | ||
20240 | # Whether libtool must link a program against all its dependency libraries. | |
20241 | link_all_deplibs=$link_all_deplibs | |
20242 | ||
20243 | # Fix the shell variable \$srcfile for the compiler. | |
20244 | fix_srcfile_path=$lt_fix_srcfile_path | |
20245 | ||
20246 | # Set to "yes" if exported symbols are required. | |
20247 | always_export_symbols=$always_export_symbols | |
20248 | ||
20249 | # The commands to list exported symbols. | |
20250 | export_symbols_cmds=$lt_export_symbols_cmds | |
20251 | ||
20252 | # Symbols that should not be listed in the preloaded symbols. | |
20253 | exclude_expsyms=$lt_exclude_expsyms | |
20254 | ||
20255 | # Symbols that must always be exported. | |
20256 | include_expsyms=$lt_include_expsyms | |
20257 | ||
20258 | # Commands necessary for linking programs (against libraries) with templates. | |
20259 | prelink_cmds=$lt_prelink_cmds | |
20260 | ||
20261 | # Specify filename containing input files. | |
20262 | file_list_spec=$lt_file_list_spec | |
20263 | ||
20264 | # How to hardcode a shared library path into an executable. | |
20265 | hardcode_action=$hardcode_action | |
20266 | ||
20267 | # The directories searched by this compiler when creating a shared library. | |
20268 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
20269 | ||
20270 | # Dependencies to place before and after the objects being linked to | |
20271 | # create a shared library. | |
20272 | predep_objects=$lt_predep_objects | |
20273 | postdep_objects=$lt_postdep_objects | |
20274 | predeps=$lt_predeps | |
20275 | postdeps=$lt_postdeps | |
20276 | ||
20277 | # The library search path used internally by the compiler when linking | |
20278 | # a shared library. | |
20279 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
20280 | ||
20281 | # ### END LIBTOOL CONFIG | |
20282 | ||
20283 | _LT_EOF | |
20284 | ||
20285 | case $host_os in | |
20286 | aix3*) | |
20287 | cat <<\_LT_EOF >> "$cfgfile" | |
20288 | # AIX sometimes has problems with the GCC collect2 program. For some | |
20289 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
20290 | # vanish in a puff of smoke. | |
20291 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
20292 | COLLECT_NAMES= | |
20293 | export COLLECT_NAMES | |
20294 | fi | |
20295 | _LT_EOF | |
20296 | ;; | |
20297 | esac | |
20298 | ||
20299 | ||
20300 | ltmain="$ac_aux_dir/ltmain.sh" | |
20301 | ||
20302 | ||
20303 | # We use sed instead of cat because bash on DJGPP gets confused if | |
20304 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
20305 | # text mode, it properly converts lines to CR/LF. This bash problem | |
20306 | # is reportedly fixed, but why not run on old versions too? | |
20307 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
20308 | || (rm -f "$cfgfile"; exit 1) | |
20309 | ||
20310 | case $xsi_shell in | |
20311 | yes) | |
20312 | cat << \_LT_EOF >> "$cfgfile" | |
20313 | ||
20314 | # func_dirname file append nondir_replacement | |
20315 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
20316 | # otherwise set result to NONDIR_REPLACEMENT. | |
20317 | func_dirname () | |
20318 | { | |
20319 | case ${1} in | |
20320 | */*) func_dirname_result="${1%/*}${2}" ;; | |
20321 | * ) func_dirname_result="${3}" ;; | |
20322 | esac | |
20323 | } | |
20324 | ||
20325 | # func_basename file | |
20326 | func_basename () | |
20327 | { | |
20328 | func_basename_result="${1##*/}" | |
20329 | } | |
20330 | ||
20331 | # func_dirname_and_basename file append nondir_replacement | |
20332 | # perform func_basename and func_dirname in a single function | |
20333 | # call: | |
20334 | # dirname: Compute the dirname of FILE. If nonempty, | |
20335 | # add APPEND to the result, otherwise set result | |
20336 | # to NONDIR_REPLACEMENT. | |
20337 | # value returned in "$func_dirname_result" | |
20338 | # basename: Compute filename of FILE. | |
20339 | # value retuned in "$func_basename_result" | |
20340 | # Implementation must be kept synchronized with func_dirname | |
20341 | # and func_basename. For efficiency, we do not delegate to | |
20342 | # those functions but instead duplicate the functionality here. | |
20343 | func_dirname_and_basename () | |
20344 | { | |
20345 | case ${1} in | |
20346 | */*) func_dirname_result="${1%/*}${2}" ;; | |
20347 | * ) func_dirname_result="${3}" ;; | |
20348 | esac | |
20349 | func_basename_result="${1##*/}" | |
20350 | } | |
20351 | ||
20352 | # func_stripname prefix suffix name | |
20353 | # strip PREFIX and SUFFIX off of NAME. | |
20354 | # PREFIX and SUFFIX must not contain globbing or regex special | |
20355 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
20356 | # dot (in which case that matches only a dot). | |
20357 | func_stripname () | |
20358 | { | |
20359 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
20360 | # positional parameters, so assign one to ordinary parameter first. | |
20361 | func_stripname_result=${3} | |
20362 | func_stripname_result=${func_stripname_result#"${1}"} | |
20363 | func_stripname_result=${func_stripname_result%"${2}"} | |
20364 | } | |
20365 | ||
20366 | # func_opt_split | |
20367 | func_opt_split () | |
20368 | { | |
20369 | func_opt_split_opt=${1%%=*} | |
20370 | func_opt_split_arg=${1#*=} | |
20371 | } | |
20372 | ||
20373 | # func_lo2o object | |
20374 | func_lo2o () | |
20375 | { | |
20376 | case ${1} in | |
20377 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
20378 | *) func_lo2o_result=${1} ;; | |
20379 | esac | |
20380 | } | |
20381 | ||
20382 | # func_xform libobj-or-source | |
20383 | func_xform () | |
20384 | { | |
20385 | func_xform_result=${1%.*}.lo | |
20386 | } | |
20387 | ||
20388 | # func_arith arithmetic-term... | |
20389 | func_arith () | |
20390 | { | |
20391 | func_arith_result=$(( $* )) | |
20392 | } | |
20393 | ||
20394 | # func_len string | |
20395 | # STRING may not start with a hyphen. | |
20396 | func_len () | |
20397 | { | |
20398 | func_len_result=${#1} | |
20399 | } | |
20400 | ||
20401 | _LT_EOF | |
20402 | ;; | |
20403 | *) # Bourne compatible functions. | |
20404 | cat << \_LT_EOF >> "$cfgfile" | |
20405 | ||
20406 | # func_dirname file append nondir_replacement | |
20407 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
20408 | # otherwise set result to NONDIR_REPLACEMENT. | |
20409 | func_dirname () | |
20410 | { | |
20411 | # Extract subdirectory from the argument. | |
20412 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
20413 | if test "X$func_dirname_result" = "X${1}"; then | |
20414 | func_dirname_result="${3}" | |
20415 | else | |
20416 | func_dirname_result="$func_dirname_result${2}" | |
20417 | fi | |
20418 | } | |
20419 | ||
20420 | # func_basename file | |
20421 | func_basename () | |
20422 | { | |
20423 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
20424 | } | |
20425 | ||
20426 | ||
20427 | # func_stripname prefix suffix name | |
20428 | # strip PREFIX and SUFFIX off of NAME. | |
20429 | # PREFIX and SUFFIX must not contain globbing or regex special | |
20430 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
20431 | # dot (in which case that matches only a dot). | |
20432 | # func_strip_suffix prefix name | |
20433 | func_stripname () | |
20434 | { | |
20435 | case ${2} in | |
20436 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
20437 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
20438 | esac | |
20439 | } | |
20440 | ||
20441 | # sed scripts: | |
20442 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
20443 | my_sed_long_arg='1s/^-[^=]*=//' | |
20444 | ||
20445 | # func_opt_split | |
20446 | func_opt_split () | |
20447 | { | |
20448 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
20449 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
20450 | } | |
20451 | ||
20452 | # func_lo2o object | |
20453 | func_lo2o () | |
20454 | { | |
20455 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
20456 | } | |
20457 | ||
20458 | # func_xform libobj-or-source | |
20459 | func_xform () | |
20460 | { | |
20461 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
20462 | } | |
20463 | ||
20464 | # func_arith arithmetic-term... | |
20465 | func_arith () | |
20466 | { | |
20467 | func_arith_result=`expr "$@"` | |
20468 | } | |
20469 | ||
20470 | # func_len string | |
20471 | # STRING may not start with a hyphen. | |
20472 | func_len () | |
20473 | { | |
20474 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
20475 | } | |
20476 | ||
20477 | _LT_EOF | |
20478 | esac | |
20479 | ||
20480 | case $lt_shell_append in | |
20481 | yes) | |
20482 | cat << \_LT_EOF >> "$cfgfile" | |
20483 | ||
20484 | # func_append var value | |
20485 | # Append VALUE to the end of shell variable VAR. | |
20486 | func_append () | |
20487 | { | |
20488 | eval "$1+=\$2" | |
20489 | } | |
20490 | _LT_EOF | |
20491 | ;; | |
20492 | *) | |
20493 | cat << \_LT_EOF >> "$cfgfile" | |
20494 | ||
20495 | # func_append var value | |
20496 | # Append VALUE to the end of shell variable VAR. | |
20497 | func_append () | |
20498 | { | |
20499 | eval "$1=\$$1\$2" | |
20500 | } | |
20501 | ||
20502 | _LT_EOF | |
20503 | ;; | |
20504 | esac | |
20505 | ||
20506 | ||
20507 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
20508 | || (rm -f "$cfgfile"; exit 1) | |
20509 | ||
20510 | mv -f "$cfgfile" "$ofile" || | |
20511 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
20512 | chmod +x "$ofile" | |
20513 | ||
20514 | ||
20515 | cat <<_LT_EOF >> "$ofile" | |
20516 | ||
20517 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
20518 | ||
20519 | # The linker used to build libraries. | |
20520 | LD=$lt_LD_CXX | |
20521 | ||
20522 | # How to create reloadable object files. | |
20523 | reload_flag=$lt_reload_flag_CXX | |
20524 | reload_cmds=$lt_reload_cmds_CXX | |
20525 | ||
20526 | # Commands used to build an old-style archive. | |
20527 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
20528 | ||
20529 | # A language specific compiler. | |
20530 | CC=$lt_compiler_CXX | |
20531 | ||
20532 | # Is the compiler the GNU compiler? | |
20533 | with_gcc=$GCC_CXX | |
20534 | ||
20535 | # Compiler flag to turn off builtin functions. | |
20536 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
20537 | ||
20538 | # How to pass a linker flag through the compiler. | |
20539 | wl=$lt_lt_prog_compiler_wl_CXX | |
20540 | ||
20541 | # Additional compiler flags for building library objects. | |
20542 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
20543 | ||
20544 | # Compiler flag to prevent dynamic linking. | |
20545 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
20546 | ||
20547 | # Does compiler simultaneously support -c and -o options? | |
20548 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
20549 | ||
20550 | # Whether or not to add -lc for building shared libraries. | |
20551 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
20552 | ||
20553 | # Whether or not to disallow shared libs when runtime libs are static. | |
20554 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
20555 | ||
20556 | # Compiler flag to allow reflexive dlopens. | |
20557 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
20558 | ||
20559 | # Compiler flag to generate shared objects directly from archives. | |
20560 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
20561 | ||
20562 | # Whether the compiler copes with passing no objects directly. | |
20563 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
20564 | ||
20565 | # Create an old-style archive from a shared archive. | |
20566 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
20567 | ||
20568 | # Create a temporary old-style archive to link instead of a shared archive. | |
20569 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
20570 | ||
20571 | # Commands used to build a shared archive. | |
20572 | archive_cmds=$lt_archive_cmds_CXX | |
20573 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
20574 | ||
20575 | # Commands used to build a loadable module if different from building | |
20576 | # a shared archive. | |
20577 | module_cmds=$lt_module_cmds_CXX | |
20578 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
20579 | ||
20580 | # Whether we are building with GNU ld or not. | |
20581 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
20582 | ||
20583 | # Flag that allows shared libraries with undefined symbols to be built. | |
20584 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
20585 | ||
20586 | # Flag that enforces no undefined symbols. | |
20587 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
20588 | ||
20589 | # Flag to hardcode \$libdir into a binary during linking. | |
20590 | # This must work even if \$libdir does not exist | |
20591 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
20592 | ||
20593 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
20594 | # during linking. This must work even if \$libdir does not exist. | |
20595 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
20596 | ||
20597 | # Whether we need a single "-rpath" flag with a separated argument. | |
20598 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
20599 | ||
20600 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
20601 | # DIR into the resulting binary. | |
20602 | hardcode_direct=$hardcode_direct_CXX | |
20603 | ||
20604 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
20605 | # DIR into the resulting binary and the resulting library dependency is | |
20606 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
20607 | # library is relocated. | |
20608 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
20609 | ||
20610 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
20611 | # into the resulting binary. | |
20612 | hardcode_minus_L=$hardcode_minus_L_CXX | |
20613 | ||
20614 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
20615 | # into the resulting binary. | |
20616 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
20617 | ||
20618 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
20619 | # into the library and all subsequent libraries and executables linked | |
20620 | # against it. | |
20621 | hardcode_automatic=$hardcode_automatic_CXX | |
20622 | ||
20623 | # Set to yes if linker adds runtime paths of dependent libraries | |
20624 | # to runtime path list. | |
20625 | inherit_rpath=$inherit_rpath_CXX | |
20626 | ||
20627 | # Whether libtool must link a program against all its dependency libraries. | |
20628 | link_all_deplibs=$link_all_deplibs_CXX | |
20629 | ||
20630 | # Fix the shell variable \$srcfile for the compiler. | |
20631 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
20632 | ||
20633 | # Set to "yes" if exported symbols are required. | |
20634 | always_export_symbols=$always_export_symbols_CXX | |
20635 | ||
20636 | # The commands to list exported symbols. | |
20637 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
20638 | ||
20639 | # Symbols that should not be listed in the preloaded symbols. | |
20640 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
20641 | ||
20642 | # Symbols that must always be exported. | |
20643 | include_expsyms=$lt_include_expsyms_CXX | |
20644 | ||
20645 | # Commands necessary for linking programs (against libraries) with templates. | |
20646 | prelink_cmds=$lt_prelink_cmds_CXX | |
20647 | ||
20648 | # Specify filename containing input files. | |
20649 | file_list_spec=$lt_file_list_spec_CXX | |
20650 | ||
20651 | # How to hardcode a shared library path into an executable. | |
20652 | hardcode_action=$hardcode_action_CXX | |
20653 | ||
20654 | # The directories searched by this compiler when creating a shared library. | |
20655 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
20656 | ||
20657 | # Dependencies to place before and after the objects being linked to | |
20658 | # create a shared library. | |
20659 | predep_objects=$lt_predep_objects_CXX | |
20660 | postdep_objects=$lt_postdep_objects_CXX | |
20661 | predeps=$lt_predeps_CXX | |
20662 | postdeps=$lt_postdeps_CXX | |
20663 | ||
20664 | # The library search path used internally by the compiler when linking | |
20665 | # a shared library. | |
20666 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
20667 | ||
20668 | # ### END LIBTOOL TAG CONFIG: CXX | |
20669 | _LT_EOF | |
20670 | ||
20671 | ;; | |
20672 | "gstdint.h":C) | |
20673 | if test "$GCC" = yes; then | |
20674 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
20675 | else | |
20676 | echo "/* generated for $CC */" > tmp-stdint.h | |
20677 | fi | |
20678 | ||
20679 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20680 | ||
20681 | #ifndef GCC_GENERATED_STDINT_H | |
20682 | #define GCC_GENERATED_STDINT_H 1 | |
20683 | ||
20684 | #include <sys/types.h> | |
20685 | EOF | |
20686 | ||
20687 | if test "$acx_cv_header_stdint" != stdint.h; then | |
20688 | echo "#include <stddef.h>" >> tmp-stdint.h | |
20689 | fi | |
20690 | if test "$acx_cv_header_stdint" != stddef.h; then | |
20691 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
20692 | fi | |
20693 | ||
20694 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20695 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
20696 | #ifdef __int8_t_defined | |
20697 | #define _INT8_T | |
20698 | #define _INT16_T | |
20699 | #define _INT32_T | |
20700 | #endif | |
20701 | #ifdef __uint32_t_defined | |
20702 | #define _UINT32_T | |
20703 | #endif | |
20704 | ||
20705 | EOF | |
20706 | ||
20707 | # ----------------- done header, emit basic int types ------------- | |
20708 | if test "$acx_cv_header_stdint" = stddef.h; then | |
20709 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20710 | ||
20711 | #ifndef _UINT8_T | |
20712 | #define _UINT8_T | |
20713 | #ifndef __uint8_t_defined | |
20714 | #define __uint8_t_defined | |
20715 | #ifndef uint8_t | |
20716 | typedef unsigned $acx_cv_type_int8_t uint8_t; | |
20717 | #endif | |
20718 | #endif | |
20719 | #endif | |
20720 | ||
20721 | #ifndef _UINT16_T | |
20722 | #define _UINT16_T | |
20723 | #ifndef __uint16_t_defined | |
20724 | #define __uint16_t_defined | |
20725 | #ifndef uint16_t | |
20726 | typedef unsigned $acx_cv_type_int16_t uint16_t; | |
20727 | #endif | |
20728 | #endif | |
20729 | #endif | |
20730 | ||
20731 | #ifndef _UINT32_T | |
20732 | #define _UINT32_T | |
20733 | #ifndef __uint32_t_defined | |
20734 | #define __uint32_t_defined | |
20735 | #ifndef uint32_t | |
20736 | typedef unsigned $acx_cv_type_int32_t uint32_t; | |
20737 | #endif | |
20738 | #endif | |
20739 | #endif | |
20740 | ||
20741 | #ifndef _INT8_T | |
20742 | #define _INT8_T | |
20743 | #ifndef __int8_t_defined | |
20744 | #define __int8_t_defined | |
20745 | #ifndef int8_t | |
20746 | typedef $acx_cv_type_int8_t int8_t; | |
20747 | #endif | |
20748 | #endif | |
20749 | #endif | |
20750 | ||
20751 | #ifndef _INT16_T | |
20752 | #define _INT16_T | |
20753 | #ifndef __int16_t_defined | |
20754 | #define __int16_t_defined | |
20755 | #ifndef int16_t | |
20756 | typedef $acx_cv_type_int16_t int16_t; | |
20757 | #endif | |
20758 | #endif | |
20759 | #endif | |
20760 | ||
20761 | #ifndef _INT32_T | |
20762 | #define _INT32_T | |
20763 | #ifndef __int32_t_defined | |
20764 | #define __int32_t_defined | |
20765 | #ifndef int32_t | |
20766 | typedef $acx_cv_type_int32_t int32_t; | |
20767 | #endif | |
20768 | #endif | |
20769 | #endif | |
20770 | EOF | |
20771 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
20772 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20773 | ||
20774 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
20775 | #ifndef _INT8_T | |
20776 | #define _INT8_T | |
20777 | #endif | |
20778 | #ifndef _INT16_T | |
20779 | #define _INT16_T | |
20780 | #endif | |
20781 | #ifndef _INT32_T | |
20782 | #define _INT32_T | |
20783 | #endif | |
20784 | ||
20785 | #ifndef _UINT8_T | |
20786 | #define _UINT8_T | |
20787 | #ifndef __uint8_t_defined | |
20788 | #define __uint8_t_defined | |
20789 | #ifndef uint8_t | |
20790 | typedef u_int8_t uint8_t; | |
20791 | #endif | |
20792 | #endif | |
20793 | #endif | |
20794 | ||
20795 | #ifndef _UINT16_T | |
20796 | #define _UINT16_T | |
20797 | #ifndef __uint16_t_defined | |
20798 | #define __uint16_t_defined | |
20799 | #ifndef uint16_t | |
20800 | typedef u_int16_t uint16_t; | |
20801 | #endif | |
20802 | #endif | |
20803 | #endif | |
20804 | ||
20805 | #ifndef _UINT32_T | |
20806 | #define _UINT32_T | |
20807 | #ifndef __uint32_t_defined | |
20808 | #define __uint32_t_defined | |
20809 | #ifndef uint32_t | |
20810 | typedef u_int32_t uint32_t; | |
20811 | #endif | |
20812 | #endif | |
20813 | #endif | |
20814 | EOF | |
20815 | else | |
20816 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20817 | ||
20818 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
20819 | #ifndef _INT8_T | |
20820 | #define _INT8_T | |
20821 | #endif | |
20822 | #ifndef _INT16_T | |
20823 | #define _INT16_T | |
20824 | #endif | |
20825 | #ifndef _INT32_T | |
20826 | #define _INT32_T | |
20827 | #endif | |
20828 | #ifndef _UINT8_T | |
20829 | #define _UINT8_T | |
20830 | #endif | |
20831 | #ifndef _UINT16_T | |
20832 | #define _UINT16_T | |
20833 | #endif | |
20834 | #ifndef _UINT32_T | |
20835 | #define _UINT32_T | |
20836 | #endif | |
20837 | EOF | |
20838 | fi | |
20839 | ||
20840 | # ------------- done basic int types, emit int64_t types ------------ | |
20841 | if test "$ac_cv_type_uint64_t" = yes; then | |
20842 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20843 | ||
20844 | /* system headers have good uint64_t and int64_t */ | |
20845 | #ifndef _INT64_T | |
20846 | #define _INT64_T | |
20847 | #endif | |
20848 | #ifndef _UINT64_T | |
20849 | #define _UINT64_T | |
20850 | #endif | |
20851 | EOF | |
20852 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
20853 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20854 | ||
20855 | /* system headers have an u_int64_t (and int64_t) */ | |
20856 | #ifndef _INT64_T | |
20857 | #define _INT64_T | |
20858 | #endif | |
20859 | #ifndef _UINT64_T | |
20860 | #define _UINT64_T | |
20861 | #ifndef __uint64_t_defined | |
20862 | #define __uint64_t_defined | |
20863 | #ifndef uint64_t | |
20864 | typedef u_int64_t uint64_t; | |
20865 | #endif | |
20866 | #endif | |
20867 | #endif | |
20868 | EOF | |
20869 | elif test -n "$acx_cv_type_int64_t"; then | |
20870 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20871 | ||
20872 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
20873 | #ifndef _INT64_T | |
20874 | #define _INT64_T | |
20875 | #ifndef int64_t | |
20876 | typedef $acx_cv_type_int64_t int64_t; | |
20877 | #endif | |
20878 | #endif | |
20879 | #ifndef _UINT64_T | |
20880 | #define _UINT64_T | |
20881 | #ifndef __uint64_t_defined | |
20882 | #define __uint64_t_defined | |
20883 | #ifndef uint64_t | |
20884 | typedef unsigned $acx_cv_type_int64_t uint64_t; | |
20885 | #endif | |
20886 | #endif | |
20887 | #endif | |
20888 | EOF | |
20889 | else | |
20890 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20891 | ||
20892 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
20893 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
20894 | #ifndef _INT64_T | |
20895 | #define _INT64_T | |
20896 | #ifndef __int64_t_defined | |
20897 | #ifndef int64_t | |
20898 | typedef long long int64_t; | |
20899 | #endif | |
20900 | #endif | |
20901 | #endif | |
20902 | #ifndef _UINT64_T | |
20903 | #define _UINT64_T | |
20904 | #ifndef uint64_t | |
20905 | typedef unsigned long long uint64_t; | |
20906 | #endif | |
20907 | #endif | |
20908 | ||
20909 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
20910 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
20911 | does not implement __extension__. But that compiler doesn't define | |
20912 | __GNUC_MINOR__. */ | |
20913 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
20914 | # define __extension__ | |
20915 | # endif | |
20916 | ||
20917 | # ifndef _INT64_T | |
20918 | # define _INT64_T | |
20919 | # ifndef int64_t | |
20920 | __extension__ typedef long long int64_t; | |
20921 | # endif | |
20922 | # endif | |
20923 | # ifndef _UINT64_T | |
20924 | # define _UINT64_T | |
20925 | # ifndef uint64_t | |
20926 | __extension__ typedef unsigned long long uint64_t; | |
20927 | # endif | |
20928 | # endif | |
20929 | ||
20930 | #elif !defined __STRICT_ANSI__ | |
20931 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
20932 | ||
20933 | # ifndef _INT64_T | |
20934 | # define _INT64_T | |
20935 | # ifndef int64_t | |
20936 | typedef __int64 int64_t; | |
20937 | # endif | |
20938 | # endif | |
20939 | # ifndef _UINT64_T | |
20940 | # define _UINT64_T | |
20941 | # ifndef uint64_t | |
20942 | typedef unsigned __int64 uint64_t; | |
20943 | # endif | |
20944 | # endif | |
20945 | # endif /* compiler */ | |
20946 | ||
20947 | #endif /* ANSI version */ | |
20948 | EOF | |
20949 | fi | |
20950 | ||
20951 | # ------------- done int64_t types, emit intptr types ------------ | |
20952 | if test "$ac_cv_type_uintptr_t" != yes; then | |
20953 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20954 | ||
20955 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
20956 | #ifndef __uintptr_t_defined | |
20957 | #ifndef uintptr_t | |
20958 | typedef u$acx_cv_type_intptr_t uintptr_t; | |
20959 | #endif | |
20960 | #endif | |
20961 | #ifndef __intptr_t_defined | |
20962 | #ifndef intptr_t | |
20963 | typedef $acx_cv_type_intptr_t intptr_t; | |
20964 | #endif | |
20965 | #endif | |
20966 | EOF | |
20967 | fi | |
20968 | ||
20969 | # ------------- done intptr types, emit int_least types ------------ | |
20970 | if test "$ac_cv_type_int_least32_t" != yes; then | |
20971 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20972 | ||
20973 | /* Define int_least types */ | |
20974 | typedef int8_t int_least8_t; | |
20975 | typedef int16_t int_least16_t; | |
20976 | typedef int32_t int_least32_t; | |
20977 | #ifdef _INT64_T | |
20978 | typedef int64_t int_least64_t; | |
20979 | #endif | |
20980 | ||
20981 | typedef uint8_t uint_least8_t; | |
20982 | typedef uint16_t uint_least16_t; | |
20983 | typedef uint32_t uint_least32_t; | |
20984 | #ifdef _UINT64_T | |
20985 | typedef uint64_t uint_least64_t; | |
20986 | #endif | |
20987 | EOF | |
20988 | fi | |
20989 | ||
20990 | # ------------- done intptr types, emit int_fast types ------------ | |
20991 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
20992 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20993 | ||
20994 | /* Define int_fast types. short is often slow */ | |
20995 | typedef int8_t int_fast8_t; | |
20996 | typedef int int_fast16_t; | |
20997 | typedef int32_t int_fast32_t; | |
20998 | #ifdef _INT64_T | |
20999 | typedef int64_t int_fast64_t; | |
21000 | #endif | |
21001 | ||
21002 | typedef uint8_t uint_fast8_t; | |
21003 | typedef unsigned int uint_fast16_t; | |
21004 | typedef uint32_t uint_fast32_t; | |
21005 | #ifdef _UINT64_T | |
21006 | typedef uint64_t uint_fast64_t; | |
21007 | #endif | |
21008 | EOF | |
21009 | fi | |
21010 | ||
21011 | if test "$ac_cv_type_uintmax_t" != yes; then | |
21012 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
21013 | ||
21014 | /* Define intmax based on what we found */ | |
21015 | #ifndef intmax_t | |
21016 | #ifdef _INT64_T | |
21017 | typedef int64_t intmax_t; | |
21018 | #else | |
21019 | typedef long intmax_t; | |
21020 | #endif | |
21021 | #endif | |
21022 | #ifndef uintmax_t | |
21023 | #ifdef _UINT64_T | |
21024 | typedef uint64_t uintmax_t; | |
21025 | #else | |
21026 | typedef unsigned long uintmax_t; | |
21027 | #endif | |
21028 | #endif | |
21029 | EOF | |
21030 | fi | |
21031 | ||
21032 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
21033 | ||
21034 | #endif /* GCC_GENERATED_STDINT_H */ | |
21035 | EOF | |
21036 | ||
21037 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then | |
21038 | rm -f tmp-stdint.h | |
21039 | else | |
21040 | mv -f tmp-stdint.h gstdint.h | |
21041 | fi | |
21042 | ||
21043 | ;; | |
21044 | ||
21045 | esac | |
21046 | done # for ac_tag | |
21047 | ||
21048 | ||
21049 | as_fn_exit 0 | |
21050 | _ACEOF | |
21051 | ac_clean_files=$ac_clean_files_save | |
21052 | ||
21053 | test $ac_write_fail = 0 || | |
22e05272 | 21054 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
0a35513e AH |
21055 | |
21056 | ||
21057 | # configure is writing to config.log, and then calls config.status. | |
21058 | # config.status does its own redirection, appending to config.log. | |
21059 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
21060 | # by configure, so config.status won't be able to write to it; its | |
21061 | # output is simply discarded. So we exec the FD to /dev/null, | |
21062 | # effectively closing config.log, so it can be properly (re)opened and | |
21063 | # appended to by config.status. When coming back to configure, we | |
21064 | # need to make the FD available again. | |
21065 | if test "$no_create" != yes; then | |
21066 | ac_cs_success=: | |
21067 | ac_config_status_args= | |
21068 | test "$silent" = yes && | |
21069 | ac_config_status_args="$ac_config_status_args --quiet" | |
21070 | exec 5>/dev/null | |
21071 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
21072 | exec 5>>config.log | |
21073 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
21074 | # would make configure fail if this is the last instruction. | |
22e05272 | 21075 | $ac_cs_success || as_fn_exit 1 |
0a35513e AH |
21076 | fi |
21077 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
21078 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
21079 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
21080 | fi | |
21081 |