1 | #! /bin/sh |
---|
2 | # From configure.ac Revision. |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated by GNU Autoconf 2.69 for adolc 2.3.0-trunk. |
---|
5 | # |
---|
6 | # Report bugs to <adol-c@list.coin-or.org>. |
---|
7 | # |
---|
8 | # |
---|
9 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
---|
10 | # |
---|
11 | # |
---|
12 | # This configure script is free software; the Free Software Foundation |
---|
13 | # gives unlimited permission to copy, distribute and modify it. |
---|
14 | ## -------------------- ## |
---|
15 | ## M4sh Initialization. ## |
---|
16 | ## -------------------- ## |
---|
17 | |
---|
18 | # Be more Bourne compatible |
---|
19 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
20 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
21 | emulate sh |
---|
22 | NULLCMD=: |
---|
23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
24 | # is contrary to our usage. Disable this feature. |
---|
25 | alias -g '${1+"$@"}'='"$@"' |
---|
26 | setopt NO_GLOB_SUBST |
---|
27 | else |
---|
28 | case `(set -o) 2>/dev/null` in #( |
---|
29 | *posix*) : |
---|
30 | set -o posix ;; #( |
---|
31 | *) : |
---|
32 | ;; |
---|
33 | esac |
---|
34 | fi |
---|
35 | |
---|
36 | |
---|
37 | as_nl=' |
---|
38 | ' |
---|
39 | export as_nl |
---|
40 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
41 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
44 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
45 | # but without wasting forks for bash or zsh. |
---|
46 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
47 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
48 | as_echo='print -r --' |
---|
49 | as_echo_n='print -rn --' |
---|
50 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
51 | as_echo='printf %s\n' |
---|
52 | as_echo_n='printf %s' |
---|
53 | else |
---|
54 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
55 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
56 | as_echo_n='/usr/ucb/echo -n' |
---|
57 | else |
---|
58 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
59 | as_echo_n_body='eval |
---|
60 | arg=$1; |
---|
61 | case $arg in #( |
---|
62 | *"$as_nl"*) |
---|
63 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
64 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
65 | esac; |
---|
66 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
67 | ' |
---|
68 | export as_echo_n_body |
---|
69 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
70 | fi |
---|
71 | export as_echo_body |
---|
72 | as_echo='sh -c $as_echo_body as_echo' |
---|
73 | fi |
---|
74 | |
---|
75 | # The user is always right. |
---|
76 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
77 | PATH_SEPARATOR=: |
---|
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
80 | PATH_SEPARATOR=';' |
---|
81 | } |
---|
82 | fi |
---|
83 | |
---|
84 | |
---|
85 | # IFS |
---|
86 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
87 | # there to prevent editors from complaining about space-tab. |
---|
88 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
89 | # splitting by setting IFS to empty value.) |
---|
90 | IFS=" "" $as_nl" |
---|
91 | |
---|
92 | # Find who we are. Look in the path if we contain no directory separator. |
---|
93 | as_myself= |
---|
94 | case $0 in #(( |
---|
95 | *[\\/]* ) as_myself=$0 ;; |
---|
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
97 | for as_dir in $PATH |
---|
98 | do |
---|
99 | IFS=$as_save_IFS |
---|
100 | test -z "$as_dir" && as_dir=. |
---|
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
102 | done |
---|
103 | IFS=$as_save_IFS |
---|
104 | |
---|
105 | ;; |
---|
106 | esac |
---|
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
108 | # in which case we are not to be found in the path. |
---|
109 | if test "x$as_myself" = x; then |
---|
110 | as_myself=$0 |
---|
111 | fi |
---|
112 | if test ! -f "$as_myself"; then |
---|
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
114 | exit 1 |
---|
115 | fi |
---|
116 | |
---|
117 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
119 | # suppresses any "Segmentation fault" message there. '((' could |
---|
120 | # trigger a bug in pdksh 5.2.14. |
---|
121 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
122 | do eval test x\${$as_var+set} = xset \ |
---|
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
124 | done |
---|
125 | PS1='$ ' |
---|
126 | PS2='> ' |
---|
127 | PS4='+ ' |
---|
128 | |
---|
129 | # NLS nuisances. |
---|
130 | LC_ALL=C |
---|
131 | export LC_ALL |
---|
132 | LANGUAGE=C |
---|
133 | export LANGUAGE |
---|
134 | |
---|
135 | # CDPATH. |
---|
136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
137 | |
---|
138 | # Use a proper internal environment variable to ensure we don't fall |
---|
139 | # into an infinite loop, continuously re-executing ourselves. |
---|
140 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
---|
141 | _as_can_reexec=no; export _as_can_reexec; |
---|
142 | # We cannot yet assume a decent shell, so we have to provide a |
---|
143 | # neutralization value for shells without unset; and this also |
---|
144 | # works around shells that cannot unset nonexistent variables. |
---|
145 | # Preserve -v and -x to the replacement shell. |
---|
146 | BASH_ENV=/dev/null |
---|
147 | ENV=/dev/null |
---|
148 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
149 | case $- in # (((( |
---|
150 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
151 | *v* ) as_opts=-v ;; |
---|
152 | *x* ) as_opts=-x ;; |
---|
153 | * ) as_opts= ;; |
---|
154 | esac |
---|
155 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
156 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
157 | # out after a failed `exec'. |
---|
158 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
159 | as_fn_exit 255 |
---|
160 | fi |
---|
161 | # We don't want this to propagate to other subprocesses. |
---|
162 | { _as_can_reexec=; unset _as_can_reexec;} |
---|
163 | if test "x$CONFIG_SHELL" = x; then |
---|
164 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
165 | emulate sh |
---|
166 | NULLCMD=: |
---|
167 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
168 | # is contrary to our usage. Disable this feature. |
---|
169 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
170 | setopt NO_GLOB_SUBST |
---|
171 | else |
---|
172 | case \`(set -o) 2>/dev/null\` in #( |
---|
173 | *posix*) : |
---|
174 | set -o posix ;; #( |
---|
175 | *) : |
---|
176 | ;; |
---|
177 | esac |
---|
178 | fi |
---|
179 | " |
---|
180 | as_required="as_fn_return () { (exit \$1); } |
---|
181 | as_fn_success () { as_fn_return 0; } |
---|
182 | as_fn_failure () { as_fn_return 1; } |
---|
183 | as_fn_ret_success () { return 0; } |
---|
184 | as_fn_ret_failure () { return 1; } |
---|
185 | |
---|
186 | exitcode=0 |
---|
187 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
188 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
189 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
190 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
191 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
192 | |
---|
193 | else |
---|
194 | exitcode=1; echo positional parameters were not saved. |
---|
195 | fi |
---|
196 | test x\$exitcode = x0 || exit 1 |
---|
197 | test -x / || exit 1" |
---|
198 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
199 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
200 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
201 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
202 | |
---|
203 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
---|
204 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
---|
206 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
---|
207 | PATH=/empty FPATH=/empty; export PATH FPATH |
---|
208 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
---|
209 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
---|
210 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
211 | if (eval "$as_required") 2>/dev/null; then : |
---|
212 | as_have_required=yes |
---|
213 | else |
---|
214 | as_have_required=no |
---|
215 | fi |
---|
216 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
217 | |
---|
218 | else |
---|
219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
220 | as_found=false |
---|
221 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
222 | do |
---|
223 | IFS=$as_save_IFS |
---|
224 | test -z "$as_dir" && as_dir=. |
---|
225 | as_found=: |
---|
226 | case $as_dir in #( |
---|
227 | /*) |
---|
228 | for as_base in sh bash ksh sh5; do |
---|
229 | # Try only shells that exist, to save several forks. |
---|
230 | as_shell=$as_dir/$as_base |
---|
231 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
233 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
234 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
235 | break 2 |
---|
236 | fi |
---|
237 | fi |
---|
238 | done;; |
---|
239 | esac |
---|
240 | as_found=false |
---|
241 | done |
---|
242 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
243 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
244 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
245 | fi; } |
---|
246 | IFS=$as_save_IFS |
---|
247 | |
---|
248 | |
---|
249 | if test "x$CONFIG_SHELL" != x; then : |
---|
250 | export CONFIG_SHELL |
---|
251 | # We cannot yet assume a decent shell, so we have to provide a |
---|
252 | # neutralization value for shells without unset; and this also |
---|
253 | # works around shells that cannot unset nonexistent variables. |
---|
254 | # Preserve -v and -x to the replacement shell. |
---|
255 | BASH_ENV=/dev/null |
---|
256 | ENV=/dev/null |
---|
257 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
258 | case $- in # (((( |
---|
259 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
260 | *v* ) as_opts=-v ;; |
---|
261 | *x* ) as_opts=-x ;; |
---|
262 | * ) as_opts= ;; |
---|
263 | esac |
---|
264 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
265 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
266 | # out after a failed `exec'. |
---|
267 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
268 | exit 255 |
---|
269 | fi |
---|
270 | |
---|
271 | if test x$as_have_required = xno; then : |
---|
272 | $as_echo "$0: This script requires a shell more modern than all" |
---|
273 | $as_echo "$0: the shells that I found on your system." |
---|
274 | if test x${ZSH_VERSION+set} = xset ; then |
---|
275 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
276 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
277 | else |
---|
278 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
---|
279 | $0: adol-c@list.coin-or.org about your system, including |
---|
280 | $0: any error possibly output before this message. Then |
---|
281 | $0: install a modern shell, or manually run the script |
---|
282 | $0: under such a shell if you do have one." |
---|
283 | fi |
---|
284 | exit 1 |
---|
285 | fi |
---|
286 | fi |
---|
287 | fi |
---|
288 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
289 | export SHELL |
---|
290 | # Unset more variables known to interfere with behavior of common tools. |
---|
291 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
292 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
293 | |
---|
294 | ## --------------------- ## |
---|
295 | ## M4sh Shell Functions. ## |
---|
296 | ## --------------------- ## |
---|
297 | # as_fn_unset VAR |
---|
298 | # --------------- |
---|
299 | # Portably unset VAR. |
---|
300 | as_fn_unset () |
---|
301 | { |
---|
302 | { eval $1=; unset $1;} |
---|
303 | } |
---|
304 | as_unset=as_fn_unset |
---|
305 | |
---|
306 | # as_fn_set_status STATUS |
---|
307 | # ----------------------- |
---|
308 | # Set $? to STATUS, without forking. |
---|
309 | as_fn_set_status () |
---|
310 | { |
---|
311 | return $1 |
---|
312 | } # as_fn_set_status |
---|
313 | |
---|
314 | # as_fn_exit STATUS |
---|
315 | # ----------------- |
---|
316 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
317 | as_fn_exit () |
---|
318 | { |
---|
319 | set +e |
---|
320 | as_fn_set_status $1 |
---|
321 | exit $1 |
---|
322 | } # as_fn_exit |
---|
323 | |
---|
324 | # as_fn_mkdir_p |
---|
325 | # ------------- |
---|
326 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
327 | as_fn_mkdir_p () |
---|
328 | { |
---|
329 | |
---|
330 | case $as_dir in #( |
---|
331 | -*) as_dir=./$as_dir;; |
---|
332 | esac |
---|
333 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
334 | as_dirs= |
---|
335 | while :; do |
---|
336 | case $as_dir in #( |
---|
337 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
338 | *) as_qdir=$as_dir;; |
---|
339 | esac |
---|
340 | as_dirs="'$as_qdir' $as_dirs" |
---|
341 | as_dir=`$as_dirname -- "$as_dir" || |
---|
342 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
343 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
344 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
345 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
346 | $as_echo X"$as_dir" | |
---|
347 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
348 | s//\1/ |
---|
349 | q |
---|
350 | } |
---|
351 | /^X\(\/\/\)[^/].*/{ |
---|
352 | s//\1/ |
---|
353 | q |
---|
354 | } |
---|
355 | /^X\(\/\/\)$/{ |
---|
356 | s//\1/ |
---|
357 | q |
---|
358 | } |
---|
359 | /^X\(\/\).*/{ |
---|
360 | s//\1/ |
---|
361 | q |
---|
362 | } |
---|
363 | s/.*/./; q'` |
---|
364 | test -d "$as_dir" && break |
---|
365 | done |
---|
366 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
367 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
368 | |
---|
369 | |
---|
370 | } # as_fn_mkdir_p |
---|
371 | |
---|
372 | # as_fn_executable_p FILE |
---|
373 | # ----------------------- |
---|
374 | # Test if FILE is an executable regular file. |
---|
375 | as_fn_executable_p () |
---|
376 | { |
---|
377 | test -f "$1" && test -x "$1" |
---|
378 | } # as_fn_executable_p |
---|
379 | # as_fn_append VAR VALUE |
---|
380 | # ---------------------- |
---|
381 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
382 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
383 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
384 | # implementations. |
---|
385 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
386 | eval 'as_fn_append () |
---|
387 | { |
---|
388 | eval $1+=\$2 |
---|
389 | }' |
---|
390 | else |
---|
391 | as_fn_append () |
---|
392 | { |
---|
393 | eval $1=\$$1\$2 |
---|
394 | } |
---|
395 | fi # as_fn_append |
---|
396 | |
---|
397 | # as_fn_arith ARG... |
---|
398 | # ------------------ |
---|
399 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
400 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
401 | # must be portable across $(()) and expr. |
---|
402 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
403 | eval 'as_fn_arith () |
---|
404 | { |
---|
405 | as_val=$(( $* )) |
---|
406 | }' |
---|
407 | else |
---|
408 | as_fn_arith () |
---|
409 | { |
---|
410 | as_val=`expr "$@" || test $? -eq 1` |
---|
411 | } |
---|
412 | fi # as_fn_arith |
---|
413 | |
---|
414 | |
---|
415 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
416 | # ---------------------------------------- |
---|
417 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
418 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
419 | # script with STATUS, using 1 if that was 0. |
---|
420 | as_fn_error () |
---|
421 | { |
---|
422 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
423 | if test "$4"; then |
---|
424 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
425 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
426 | fi |
---|
427 | $as_echo "$as_me: error: $2" >&2 |
---|
428 | as_fn_exit $as_status |
---|
429 | } # as_fn_error |
---|
430 | |
---|
431 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
432 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
433 | as_expr=expr |
---|
434 | else |
---|
435 | as_expr=false |
---|
436 | fi |
---|
437 | |
---|
438 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
439 | as_basename=basename |
---|
440 | else |
---|
441 | as_basename=false |
---|
442 | fi |
---|
443 | |
---|
444 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
445 | as_dirname=dirname |
---|
446 | else |
---|
447 | as_dirname=false |
---|
448 | fi |
---|
449 | |
---|
450 | as_me=`$as_basename -- "$0" || |
---|
451 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
452 | X"$0" : 'X\(//\)$' \| \ |
---|
453 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
454 | $as_echo X/"$0" | |
---|
455 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
456 | s//\1/ |
---|
457 | q |
---|
458 | } |
---|
459 | /^X\/\(\/\/\)$/{ |
---|
460 | s//\1/ |
---|
461 | q |
---|
462 | } |
---|
463 | /^X\/\(\/\).*/{ |
---|
464 | s//\1/ |
---|
465 | q |
---|
466 | } |
---|
467 | s/.*/./; q'` |
---|
468 | |
---|
469 | # Avoid depending upon Character Ranges. |
---|
470 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
471 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
472 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
473 | as_cr_digits='0123456789' |
---|
474 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
475 | |
---|
476 | |
---|
477 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
478 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
479 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
480 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
481 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
482 | sed -n ' |
---|
483 | p |
---|
484 | /[$]LINENO/= |
---|
485 | ' <$as_myself | |
---|
486 | sed ' |
---|
487 | s/[$]LINENO.*/&-/ |
---|
488 | t lineno |
---|
489 | b |
---|
490 | :lineno |
---|
491 | N |
---|
492 | :loop |
---|
493 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
494 | t loop |
---|
495 | s/-\n.*// |
---|
496 | ' >$as_me.lineno && |
---|
497 | chmod +x "$as_me.lineno" || |
---|
498 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
499 | |
---|
500 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
---|
501 | # already done that, so ensure we don't try to do so again and fall |
---|
502 | # in an infinite loop. This has already happened in practice. |
---|
503 | _as_can_reexec=no; export _as_can_reexec |
---|
504 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
505 | # (the dirname of $[0] is not the place where we might find the |
---|
506 | # original and so on. Autoconf is especially sensitive to this). |
---|
507 | . "./$as_me.lineno" |
---|
508 | # Exit status is that of the last command. |
---|
509 | exit |
---|
510 | } |
---|
511 | |
---|
512 | ECHO_C= ECHO_N= ECHO_T= |
---|
513 | case `echo -n x` in #((((( |
---|
514 | -n*) |
---|
515 | case `echo 'xy\c'` in |
---|
516 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
517 | xy) ECHO_C='\c';; |
---|
518 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
519 | ECHO_T=' ';; |
---|
520 | esac;; |
---|
521 | *) |
---|
522 | ECHO_N='-n';; |
---|
523 | esac |
---|
524 | |
---|
525 | rm -f conf$$ conf$$.exe conf$$.file |
---|
526 | if test -d conf$$.dir; then |
---|
527 | rm -f conf$$.dir/conf$$.file |
---|
528 | else |
---|
529 | rm -f conf$$.dir |
---|
530 | mkdir conf$$.dir 2>/dev/null |
---|
531 | fi |
---|
532 | if (echo >conf$$.file) 2>/dev/null; then |
---|
533 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
534 | as_ln_s='ln -s' |
---|
535 | # ... but there are two gotchas: |
---|
536 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
537 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
538 | # In both cases, we have to default to `cp -pR'. |
---|
539 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
540 | as_ln_s='cp -pR' |
---|
541 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
542 | as_ln_s=ln |
---|
543 | else |
---|
544 | as_ln_s='cp -pR' |
---|
545 | fi |
---|
546 | else |
---|
547 | as_ln_s='cp -pR' |
---|
548 | fi |
---|
549 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
550 | rmdir conf$$.dir 2>/dev/null |
---|
551 | |
---|
552 | if mkdir -p . 2>/dev/null; then |
---|
553 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
554 | else |
---|
555 | test -d ./-p && rmdir ./-p |
---|
556 | as_mkdir_p=false |
---|
557 | fi |
---|
558 | |
---|
559 | as_test_x='test -x' |
---|
560 | as_executable_p=as_fn_executable_p |
---|
561 | |
---|
562 | # Sed expression to map a string onto a valid CPP name. |
---|
563 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
564 | |
---|
565 | # Sed expression to map a string onto a valid variable name. |
---|
566 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
567 | |
---|
568 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
569 | |
---|
570 | |
---|
571 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
572 | exec 6>&1 |
---|
573 | |
---|
574 | # Name of the host. |
---|
575 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
576 | # so uname gets run too. |
---|
577 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
578 | |
---|
579 | # |
---|
580 | # Initializations. |
---|
581 | # |
---|
582 | ac_default_prefix=/usr/local |
---|
583 | ac_clean_files= |
---|
584 | ac_config_libobj_dir=. |
---|
585 | LIBOBJS= |
---|
586 | cross_compiling=no |
---|
587 | subdirs= |
---|
588 | MFLAGS= |
---|
589 | MAKEFLAGS= |
---|
590 | |
---|
591 | # Identity of this package. |
---|
592 | PACKAGE_NAME='adolc' |
---|
593 | PACKAGE_TARNAME='adolc' |
---|
594 | PACKAGE_VERSION='2.3.0-trunk' |
---|
595 | PACKAGE_STRING='adolc 2.3.0-trunk' |
---|
596 | PACKAGE_BUGREPORT='adol-c@list.coin-or.org' |
---|
597 | PACKAGE_URL='' |
---|
598 | |
---|
599 | ac_unique_file="ADOL-C/src/adouble.cpp" |
---|
600 | ac_default_prefix=${HOME}/adolc_base |
---|
601 | # Factoring default headers for most tests. |
---|
602 | ac_includes_default="\ |
---|
603 | #include <stdio.h> |
---|
604 | #ifdef HAVE_SYS_TYPES_H |
---|
605 | # include <sys/types.h> |
---|
606 | #endif |
---|
607 | #ifdef HAVE_SYS_STAT_H |
---|
608 | # include <sys/stat.h> |
---|
609 | #endif |
---|
610 | #ifdef STDC_HEADERS |
---|
611 | # include <stdlib.h> |
---|
612 | # include <stddef.h> |
---|
613 | #else |
---|
614 | # ifdef HAVE_STDLIB_H |
---|
615 | # include <stdlib.h> |
---|
616 | # endif |
---|
617 | #endif |
---|
618 | #ifdef HAVE_STRING_H |
---|
619 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
620 | # include <memory.h> |
---|
621 | # endif |
---|
622 | # include <string.h> |
---|
623 | #endif |
---|
624 | #ifdef HAVE_STRINGS_H |
---|
625 | # include <strings.h> |
---|
626 | #endif |
---|
627 | #ifdef HAVE_INTTYPES_H |
---|
628 | # include <inttypes.h> |
---|
629 | #endif |
---|
630 | #ifdef HAVE_STDINT_H |
---|
631 | # include <stdint.h> |
---|
632 | #endif |
---|
633 | #ifdef HAVE_UNISTD_H |
---|
634 | # include <unistd.h> |
---|
635 | #endif" |
---|
636 | |
---|
637 | ac_subst_vars='am__EXEEXT_FALSE |
---|
638 | am__EXEEXT_TRUE |
---|
639 | LTLIBOBJS |
---|
640 | ac_adolc_cxxflags |
---|
641 | ac_adolc_cflags |
---|
642 | PAREXA_FALSE |
---|
643 | PAREXA_TRUE |
---|
644 | ADDEXA_FALSE |
---|
645 | ADDEXA_TRUE |
---|
646 | DOCEXA_FALSE |
---|
647 | DOCEXA_TRUE |
---|
648 | COLPACK_LIBS |
---|
649 | COLPACK_CFLAGS |
---|
650 | SPARSE_FALSE |
---|
651 | SPARSE_TRUE |
---|
652 | HAVE_LIBCOLPACK_FALSE |
---|
653 | HAVE_LIBCOLPACK_TRUE |
---|
654 | ADOLC_PATCHLEVEL |
---|
655 | ADOLC_SUBVERSION |
---|
656 | ADOLC_VERSION |
---|
657 | ac_aux_dir |
---|
658 | LIBOBJS |
---|
659 | _lib |
---|
660 | CXXCPP |
---|
661 | OTOOL64 |
---|
662 | OTOOL |
---|
663 | LIPO |
---|
664 | NMEDIT |
---|
665 | DSYMUTIL |
---|
666 | MANIFEST_TOOL |
---|
667 | RANLIB |
---|
668 | ac_ct_AR |
---|
669 | AR |
---|
670 | NM |
---|
671 | ac_ct_DUMPBIN |
---|
672 | DUMPBIN |
---|
673 | LD |
---|
674 | FGREP |
---|
675 | EGREP |
---|
676 | GREP |
---|
677 | SED |
---|
678 | LIBTOOL |
---|
679 | OBJDUMP |
---|
680 | DLLTOOL |
---|
681 | AS |
---|
682 | host_os |
---|
683 | host_vendor |
---|
684 | host_cpu |
---|
685 | host |
---|
686 | build_os |
---|
687 | build_vendor |
---|
688 | build_cpu |
---|
689 | build |
---|
690 | LN_S |
---|
691 | CPP |
---|
692 | am__fastdepCC_FALSE |
---|
693 | am__fastdepCC_TRUE |
---|
694 | CCDEPMODE |
---|
695 | ac_ct_CC |
---|
696 | CFLAGS |
---|
697 | CC |
---|
698 | am__fastdepCXX_FALSE |
---|
699 | am__fastdepCXX_TRUE |
---|
700 | CXXDEPMODE |
---|
701 | am__nodep |
---|
702 | AMDEPBACKSLASH |
---|
703 | AMDEP_FALSE |
---|
704 | AMDEP_TRUE |
---|
705 | am__quote |
---|
706 | am__include |
---|
707 | DEPDIR |
---|
708 | OBJEXT |
---|
709 | EXEEXT |
---|
710 | ac_ct_CXX |
---|
711 | CPPFLAGS |
---|
712 | LDFLAGS |
---|
713 | CXXFLAGS |
---|
714 | CXX |
---|
715 | AM_BACKSLASH |
---|
716 | AM_DEFAULT_VERBOSITY |
---|
717 | AM_DEFAULT_V |
---|
718 | AM_V |
---|
719 | am__untar |
---|
720 | am__tar |
---|
721 | AMTAR |
---|
722 | am__leading_dot |
---|
723 | SET_MAKE |
---|
724 | AWK |
---|
725 | mkdir_p |
---|
726 | MKDIR_P |
---|
727 | INSTALL_STRIP_PROGRAM |
---|
728 | STRIP |
---|
729 | install_sh |
---|
730 | MAKEINFO |
---|
731 | AUTOHEADER |
---|
732 | AUTOMAKE |
---|
733 | AUTOCONF |
---|
734 | ACLOCAL |
---|
735 | VERSION |
---|
736 | PACKAGE |
---|
737 | CYGPATH_W |
---|
738 | am__isrc |
---|
739 | INSTALL_DATA |
---|
740 | INSTALL_SCRIPT |
---|
741 | INSTALL_PROGRAM |
---|
742 | target_alias |
---|
743 | host_alias |
---|
744 | build_alias |
---|
745 | LIBS |
---|
746 | ECHO_T |
---|
747 | ECHO_N |
---|
748 | ECHO_C |
---|
749 | DEFS |
---|
750 | mandir |
---|
751 | localedir |
---|
752 | libdir |
---|
753 | psdir |
---|
754 | pdfdir |
---|
755 | dvidir |
---|
756 | htmldir |
---|
757 | infodir |
---|
758 | docdir |
---|
759 | oldincludedir |
---|
760 | includedir |
---|
761 | localstatedir |
---|
762 | sharedstatedir |
---|
763 | sysconfdir |
---|
764 | datadir |
---|
765 | datarootdir |
---|
766 | libexecdir |
---|
767 | sbindir |
---|
768 | bindir |
---|
769 | program_transform_name |
---|
770 | prefix |
---|
771 | exec_prefix |
---|
772 | PACKAGE_URL |
---|
773 | PACKAGE_BUGREPORT |
---|
774 | PACKAGE_STRING |
---|
775 | PACKAGE_VERSION |
---|
776 | PACKAGE_TARNAME |
---|
777 | PACKAGE_NAME |
---|
778 | PATH_SEPARATOR |
---|
779 | SHELL' |
---|
780 | ac_subst_files='' |
---|
781 | ac_user_opts=' |
---|
782 | enable_option_checking |
---|
783 | enable_silent_rules |
---|
784 | enable_dependency_tracking |
---|
785 | enable_shared |
---|
786 | enable_static |
---|
787 | with_pic |
---|
788 | enable_fast_install |
---|
789 | with_gnu_ld |
---|
790 | with_sysroot |
---|
791 | enable_libtool_lock |
---|
792 | enable_debug |
---|
793 | enable_harddebug |
---|
794 | enable_stdczero |
---|
795 | enable_tserrno |
---|
796 | with_openmp_flag |
---|
797 | enable_sparse |
---|
798 | with_colpack |
---|
799 | enable_docexa |
---|
800 | enable_addexa |
---|
801 | enable_parexa |
---|
802 | with_cflags |
---|
803 | with_cxxflags |
---|
804 | ' |
---|
805 | ac_precious_vars='build_alias |
---|
806 | host_alias |
---|
807 | target_alias |
---|
808 | CXX |
---|
809 | CXXFLAGS |
---|
810 | LDFLAGS |
---|
811 | LIBS |
---|
812 | CPPFLAGS |
---|
813 | CCC |
---|
814 | CC |
---|
815 | CFLAGS |
---|
816 | CPP |
---|
817 | CXXCPP' |
---|
818 | |
---|
819 | |
---|
820 | # Initialize some variables set by options. |
---|
821 | ac_init_help= |
---|
822 | ac_init_version=false |
---|
823 | ac_unrecognized_opts= |
---|
824 | ac_unrecognized_sep= |
---|
825 | # The variables have the same names as the options, with |
---|
826 | # dashes changed to underlines. |
---|
827 | cache_file=/dev/null |
---|
828 | exec_prefix=NONE |
---|
829 | no_create= |
---|
830 | no_recursion= |
---|
831 | prefix=NONE |
---|
832 | program_prefix=NONE |
---|
833 | program_suffix=NONE |
---|
834 | program_transform_name=s,x,x, |
---|
835 | silent= |
---|
836 | site= |
---|
837 | srcdir= |
---|
838 | verbose= |
---|
839 | x_includes=NONE |
---|
840 | x_libraries=NONE |
---|
841 | |
---|
842 | # Installation directory options. |
---|
843 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
844 | # and all the variables that are supposed to be based on exec_prefix |
---|
845 | # by default will actually change. |
---|
846 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
847 | # (The list follows the same order as the GNU Coding Standards.) |
---|
848 | bindir='${exec_prefix}/bin' |
---|
849 | sbindir='${exec_prefix}/sbin' |
---|
850 | libexecdir='${exec_prefix}/libexec' |
---|
851 | datarootdir='${prefix}/share' |
---|
852 | datadir='${datarootdir}' |
---|
853 | sysconfdir='${prefix}/etc' |
---|
854 | sharedstatedir='${prefix}/com' |
---|
855 | localstatedir='${prefix}/var' |
---|
856 | includedir='${prefix}/include' |
---|
857 | oldincludedir='/usr/include' |
---|
858 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
859 | infodir='${datarootdir}/info' |
---|
860 | htmldir='${docdir}' |
---|
861 | dvidir='${docdir}' |
---|
862 | pdfdir='${docdir}' |
---|
863 | psdir='${docdir}' |
---|
864 | libdir='${exec_prefix}/lib' |
---|
865 | localedir='${datarootdir}/locale' |
---|
866 | mandir='${datarootdir}/man' |
---|
867 | |
---|
868 | ac_prev= |
---|
869 | ac_dashdash= |
---|
870 | for ac_option |
---|
871 | do |
---|
872 | # If the previous option needs an argument, assign it. |
---|
873 | if test -n "$ac_prev"; then |
---|
874 | eval $ac_prev=\$ac_option |
---|
875 | ac_prev= |
---|
876 | continue |
---|
877 | fi |
---|
878 | |
---|
879 | case $ac_option in |
---|
880 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
881 | *=) ac_optarg= ;; |
---|
882 | *) ac_optarg=yes ;; |
---|
883 | esac |
---|
884 | |
---|
885 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
886 | |
---|
887 | case $ac_dashdash$ac_option in |
---|
888 | --) |
---|
889 | ac_dashdash=yes ;; |
---|
890 | |
---|
891 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
892 | ac_prev=bindir ;; |
---|
893 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
894 | bindir=$ac_optarg ;; |
---|
895 | |
---|
896 | -build | --build | --buil | --bui | --bu) |
---|
897 | ac_prev=build_alias ;; |
---|
898 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
899 | build_alias=$ac_optarg ;; |
---|
900 | |
---|
901 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
902 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
903 | ac_prev=cache_file ;; |
---|
904 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
905 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
906 | cache_file=$ac_optarg ;; |
---|
907 | |
---|
908 | --config-cache | -C) |
---|
909 | cache_file=config.cache ;; |
---|
910 | |
---|
911 | -datadir | --datadir | --datadi | --datad) |
---|
912 | ac_prev=datadir ;; |
---|
913 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
914 | datadir=$ac_optarg ;; |
---|
915 | |
---|
916 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
917 | | --dataroo | --dataro | --datar) |
---|
918 | ac_prev=datarootdir ;; |
---|
919 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
920 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
921 | datarootdir=$ac_optarg ;; |
---|
922 | |
---|
923 | -disable-* | --disable-*) |
---|
924 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
925 | # Reject names that are not valid shell variable names. |
---|
926 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
927 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
928 | ac_useropt_orig=$ac_useropt |
---|
929 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
930 | case $ac_user_opts in |
---|
931 | *" |
---|
932 | "enable_$ac_useropt" |
---|
933 | "*) ;; |
---|
934 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
935 | ac_unrecognized_sep=', ';; |
---|
936 | esac |
---|
937 | eval enable_$ac_useropt=no ;; |
---|
938 | |
---|
939 | -docdir | --docdir | --docdi | --doc | --do) |
---|
940 | ac_prev=docdir ;; |
---|
941 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
942 | docdir=$ac_optarg ;; |
---|
943 | |
---|
944 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
945 | ac_prev=dvidir ;; |
---|
946 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
947 | dvidir=$ac_optarg ;; |
---|
948 | |
---|
949 | -enable-* | --enable-*) |
---|
950 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
951 | # Reject names that are not valid shell variable names. |
---|
952 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
953 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
954 | ac_useropt_orig=$ac_useropt |
---|
955 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
956 | case $ac_user_opts in |
---|
957 | *" |
---|
958 | "enable_$ac_useropt" |
---|
959 | "*) ;; |
---|
960 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
961 | ac_unrecognized_sep=', ';; |
---|
962 | esac |
---|
963 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
964 | |
---|
965 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
966 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
967 | | --exec | --exe | --ex) |
---|
968 | ac_prev=exec_prefix ;; |
---|
969 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
970 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
971 | | --exec=* | --exe=* | --ex=*) |
---|
972 | exec_prefix=$ac_optarg ;; |
---|
973 | |
---|
974 | -gas | --gas | --ga | --g) |
---|
975 | # Obsolete; use --with-gas. |
---|
976 | with_gas=yes ;; |
---|
977 | |
---|
978 | -help | --help | --hel | --he | -h) |
---|
979 | ac_init_help=long ;; |
---|
980 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
981 | ac_init_help=recursive ;; |
---|
982 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
983 | ac_init_help=short ;; |
---|
984 | |
---|
985 | -host | --host | --hos | --ho) |
---|
986 | ac_prev=host_alias ;; |
---|
987 | -host=* | --host=* | --hos=* | --ho=*) |
---|
988 | host_alias=$ac_optarg ;; |
---|
989 | |
---|
990 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
991 | ac_prev=htmldir ;; |
---|
992 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
993 | | --ht=*) |
---|
994 | htmldir=$ac_optarg ;; |
---|
995 | |
---|
996 | -includedir | --includedir | --includedi | --included | --include \ |
---|
997 | | --includ | --inclu | --incl | --inc) |
---|
998 | ac_prev=includedir ;; |
---|
999 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
1000 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
1001 | includedir=$ac_optarg ;; |
---|
1002 | |
---|
1003 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
1004 | ac_prev=infodir ;; |
---|
1005 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
1006 | infodir=$ac_optarg ;; |
---|
1007 | |
---|
1008 | -libdir | --libdir | --libdi | --libd) |
---|
1009 | ac_prev=libdir ;; |
---|
1010 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
1011 | libdir=$ac_optarg ;; |
---|
1012 | |
---|
1013 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
1014 | | --libexe | --libex | --libe) |
---|
1015 | ac_prev=libexecdir ;; |
---|
1016 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
1017 | | --libexe=* | --libex=* | --libe=*) |
---|
1018 | libexecdir=$ac_optarg ;; |
---|
1019 | |
---|
1020 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
1021 | ac_prev=localedir ;; |
---|
1022 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
1023 | localedir=$ac_optarg ;; |
---|
1024 | |
---|
1025 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
1026 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
1027 | ac_prev=localstatedir ;; |
---|
1028 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
1029 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
1030 | localstatedir=$ac_optarg ;; |
---|
1031 | |
---|
1032 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
1033 | ac_prev=mandir ;; |
---|
1034 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
1035 | mandir=$ac_optarg ;; |
---|
1036 | |
---|
1037 | -nfp | --nfp | --nf) |
---|
1038 | # Obsolete; use --without-fp. |
---|
1039 | with_fp=no ;; |
---|
1040 | |
---|
1041 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
1042 | | --no-cr | --no-c | -n) |
---|
1043 | no_create=yes ;; |
---|
1044 | |
---|
1045 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
1046 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
1047 | no_recursion=yes ;; |
---|
1048 | |
---|
1049 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
1050 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
1051 | | --oldin | --oldi | --old | --ol | --o) |
---|
1052 | ac_prev=oldincludedir ;; |
---|
1053 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
1054 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
1055 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
1056 | oldincludedir=$ac_optarg ;; |
---|
1057 | |
---|
1058 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
1059 | ac_prev=prefix ;; |
---|
1060 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
1061 | prefix=$ac_optarg ;; |
---|
1062 | |
---|
1063 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
1064 | | --program-pre | --program-pr | --program-p) |
---|
1065 | ac_prev=program_prefix ;; |
---|
1066 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
1067 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
1068 | program_prefix=$ac_optarg ;; |
---|
1069 | |
---|
1070 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
1071 | | --program-suf | --program-su | --program-s) |
---|
1072 | ac_prev=program_suffix ;; |
---|
1073 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
1074 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
1075 | program_suffix=$ac_optarg ;; |
---|
1076 | |
---|
1077 | -program-transform-name | --program-transform-name \ |
---|
1078 | | --program-transform-nam | --program-transform-na \ |
---|
1079 | | --program-transform-n | --program-transform- \ |
---|
1080 | | --program-transform | --program-transfor \ |
---|
1081 | | --program-transfo | --program-transf \ |
---|
1082 | | --program-trans | --program-tran \ |
---|
1083 | | --progr-tra | --program-tr | --program-t) |
---|
1084 | ac_prev=program_transform_name ;; |
---|
1085 | -program-transform-name=* | --program-transform-name=* \ |
---|
1086 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1087 | | --program-transform-n=* | --program-transform-=* \ |
---|
1088 | | --program-transform=* | --program-transfor=* \ |
---|
1089 | | --program-transfo=* | --program-transf=* \ |
---|
1090 | | --program-trans=* | --program-tran=* \ |
---|
1091 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1092 | program_transform_name=$ac_optarg ;; |
---|
1093 | |
---|
1094 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1095 | ac_prev=pdfdir ;; |
---|
1096 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1097 | pdfdir=$ac_optarg ;; |
---|
1098 | |
---|
1099 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1100 | ac_prev=psdir ;; |
---|
1101 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1102 | psdir=$ac_optarg ;; |
---|
1103 | |
---|
1104 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1105 | | -silent | --silent | --silen | --sile | --sil) |
---|
1106 | silent=yes ;; |
---|
1107 | |
---|
1108 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1109 | ac_prev=sbindir ;; |
---|
1110 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1111 | | --sbi=* | --sb=*) |
---|
1112 | sbindir=$ac_optarg ;; |
---|
1113 | |
---|
1114 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1115 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1116 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1117 | | --sha | --sh) |
---|
1118 | ac_prev=sharedstatedir ;; |
---|
1119 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1120 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1121 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1122 | | --sha=* | --sh=*) |
---|
1123 | sharedstatedir=$ac_optarg ;; |
---|
1124 | |
---|
1125 | -site | --site | --sit) |
---|
1126 | ac_prev=site ;; |
---|
1127 | -site=* | --site=* | --sit=*) |
---|
1128 | site=$ac_optarg ;; |
---|
1129 | |
---|
1130 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1131 | ac_prev=srcdir ;; |
---|
1132 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1133 | srcdir=$ac_optarg ;; |
---|
1134 | |
---|
1135 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1136 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1137 | ac_prev=sysconfdir ;; |
---|
1138 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1139 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1140 | sysconfdir=$ac_optarg ;; |
---|
1141 | |
---|
1142 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1143 | ac_prev=target_alias ;; |
---|
1144 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1145 | target_alias=$ac_optarg ;; |
---|
1146 | |
---|
1147 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1148 | verbose=yes ;; |
---|
1149 | |
---|
1150 | -version | --version | --versio | --versi | --vers | -V) |
---|
1151 | ac_init_version=: ;; |
---|
1152 | |
---|
1153 | -with-* | --with-*) |
---|
1154 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1155 | # Reject names that are not valid shell variable names. |
---|
1156 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1157 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1158 | ac_useropt_orig=$ac_useropt |
---|
1159 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1160 | case $ac_user_opts in |
---|
1161 | *" |
---|
1162 | "with_$ac_useropt" |
---|
1163 | "*) ;; |
---|
1164 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1165 | ac_unrecognized_sep=', ';; |
---|
1166 | esac |
---|
1167 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1168 | |
---|
1169 | -without-* | --without-*) |
---|
1170 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1171 | # Reject names that are not valid shell variable names. |
---|
1172 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1173 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1174 | ac_useropt_orig=$ac_useropt |
---|
1175 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1176 | case $ac_user_opts in |
---|
1177 | *" |
---|
1178 | "with_$ac_useropt" |
---|
1179 | "*) ;; |
---|
1180 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1181 | ac_unrecognized_sep=', ';; |
---|
1182 | esac |
---|
1183 | eval with_$ac_useropt=no ;; |
---|
1184 | |
---|
1185 | --x) |
---|
1186 | # Obsolete; use --with-x. |
---|
1187 | with_x=yes ;; |
---|
1188 | |
---|
1189 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1190 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1191 | ac_prev=x_includes ;; |
---|
1192 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1193 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1194 | x_includes=$ac_optarg ;; |
---|
1195 | |
---|
1196 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1197 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1198 | ac_prev=x_libraries ;; |
---|
1199 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1200 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1201 | x_libraries=$ac_optarg ;; |
---|
1202 | |
---|
1203 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1204 | Try \`$0 --help' for more information" |
---|
1205 | ;; |
---|
1206 | |
---|
1207 | *=*) |
---|
1208 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1209 | # Reject names that are not valid shell variable names. |
---|
1210 | case $ac_envvar in #( |
---|
1211 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1212 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1213 | esac |
---|
1214 | eval $ac_envvar=\$ac_optarg |
---|
1215 | export $ac_envvar ;; |
---|
1216 | |
---|
1217 | *) |
---|
1218 | # FIXME: should be removed in autoconf 3.0. |
---|
1219 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1220 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1221 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1222 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1223 | ;; |
---|
1224 | |
---|
1225 | esac |
---|
1226 | done |
---|
1227 | |
---|
1228 | if test -n "$ac_prev"; then |
---|
1229 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1230 | as_fn_error $? "missing argument to $ac_option" |
---|
1231 | fi |
---|
1232 | |
---|
1233 | if test -n "$ac_unrecognized_opts"; then |
---|
1234 | case $enable_option_checking in |
---|
1235 | no) ;; |
---|
1236 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1237 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1238 | esac |
---|
1239 | fi |
---|
1240 | |
---|
1241 | # Check all directory arguments for consistency. |
---|
1242 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1243 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1244 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1245 | libdir localedir mandir |
---|
1246 | do |
---|
1247 | eval ac_val=\$$ac_var |
---|
1248 | # Remove trailing slashes. |
---|
1249 | case $ac_val in |
---|
1250 | */ ) |
---|
1251 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1252 | eval $ac_var=\$ac_val;; |
---|
1253 | esac |
---|
1254 | # Be sure to have absolute directory names. |
---|
1255 | case $ac_val in |
---|
1256 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1257 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1258 | esac |
---|
1259 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1260 | done |
---|
1261 | |
---|
1262 | # There might be people who depend on the old broken behavior: `$host' |
---|
1263 | # used to hold the argument of --host etc. |
---|
1264 | # FIXME: To remove some day. |
---|
1265 | build=$build_alias |
---|
1266 | host=$host_alias |
---|
1267 | target=$target_alias |
---|
1268 | |
---|
1269 | # FIXME: To remove some day. |
---|
1270 | if test "x$host_alias" != x; then |
---|
1271 | if test "x$build_alias" = x; then |
---|
1272 | cross_compiling=maybe |
---|
1273 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1274 | cross_compiling=yes |
---|
1275 | fi |
---|
1276 | fi |
---|
1277 | |
---|
1278 | ac_tool_prefix= |
---|
1279 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1280 | |
---|
1281 | test "$silent" = yes && exec 6>/dev/null |
---|
1282 | |
---|
1283 | |
---|
1284 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1285 | ac_ls_di=`ls -di .` && |
---|
1286 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1287 | as_fn_error $? "working directory cannot be determined" |
---|
1288 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1289 | as_fn_error $? "pwd does not report name of working directory" |
---|
1290 | |
---|
1291 | |
---|
1292 | # Find the source files, if location was not specified. |
---|
1293 | if test -z "$srcdir"; then |
---|
1294 | ac_srcdir_defaulted=yes |
---|
1295 | # Try the directory containing this script, then the parent directory. |
---|
1296 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1297 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1298 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1299 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1300 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1301 | $as_echo X"$as_myself" | |
---|
1302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1303 | s//\1/ |
---|
1304 | q |
---|
1305 | } |
---|
1306 | /^X\(\/\/\)[^/].*/{ |
---|
1307 | s//\1/ |
---|
1308 | q |
---|
1309 | } |
---|
1310 | /^X\(\/\/\)$/{ |
---|
1311 | s//\1/ |
---|
1312 | q |
---|
1313 | } |
---|
1314 | /^X\(\/\).*/{ |
---|
1315 | s//\1/ |
---|
1316 | q |
---|
1317 | } |
---|
1318 | s/.*/./; q'` |
---|
1319 | srcdir=$ac_confdir |
---|
1320 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1321 | srcdir=.. |
---|
1322 | fi |
---|
1323 | else |
---|
1324 | ac_srcdir_defaulted=no |
---|
1325 | fi |
---|
1326 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1327 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1328 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1329 | fi |
---|
1330 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1331 | ac_abs_confdir=`( |
---|
1332 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1333 | pwd)` |
---|
1334 | # When building in place, set srcdir=. |
---|
1335 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1336 | srcdir=. |
---|
1337 | fi |
---|
1338 | # Remove unnecessary trailing slashes from srcdir. |
---|
1339 | # Double slashes in file names in object file debugging info |
---|
1340 | # mess up M-x gdb in Emacs. |
---|
1341 | case $srcdir in |
---|
1342 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1343 | esac |
---|
1344 | for ac_var in $ac_precious_vars; do |
---|
1345 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1346 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1347 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1348 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1349 | done |
---|
1350 | |
---|
1351 | # |
---|
1352 | # Report the --help message. |
---|
1353 | # |
---|
1354 | if test "$ac_init_help" = "long"; then |
---|
1355 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1356 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1357 | cat <<_ACEOF |
---|
1358 | \`configure' configures adolc 2.3.0-trunk to adapt to many kinds of systems. |
---|
1359 | |
---|
1360 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1361 | |
---|
1362 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1363 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1364 | |
---|
1365 | Defaults for the options are specified in brackets. |
---|
1366 | |
---|
1367 | Configuration: |
---|
1368 | -h, --help display this help and exit |
---|
1369 | --help=short display options specific to this package |
---|
1370 | --help=recursive display the short help of all the included packages |
---|
1371 | -V, --version display version information and exit |
---|
1372 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1373 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1374 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1375 | -n, --no-create do not create output files |
---|
1376 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1377 | |
---|
1378 | Installation directories: |
---|
1379 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1380 | [$ac_default_prefix] |
---|
1381 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1382 | [PREFIX] |
---|
1383 | |
---|
1384 | By default, \`make install' will install all the files in |
---|
1385 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1386 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1387 | for instance \`--prefix=\$HOME'. |
---|
1388 | |
---|
1389 | For better control, use the options below. |
---|
1390 | |
---|
1391 | Fine tuning of the installation directories: |
---|
1392 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1393 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1394 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1395 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1396 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1397 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1398 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1399 | --includedir=DIR C header files [PREFIX/include] |
---|
1400 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1401 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1402 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1403 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1404 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1405 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1406 | --docdir=DIR documentation root [DATAROOTDIR/doc/adolc] |
---|
1407 | --htmldir=DIR html documentation [DOCDIR] |
---|
1408 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1409 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1410 | --psdir=DIR ps documentation [DOCDIR] |
---|
1411 | _ACEOF |
---|
1412 | |
---|
1413 | cat <<\_ACEOF |
---|
1414 | |
---|
1415 | Program names: |
---|
1416 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1417 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1418 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1419 | |
---|
1420 | System types: |
---|
1421 | --build=BUILD configure for building on BUILD [guessed] |
---|
1422 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1423 | _ACEOF |
---|
1424 | fi |
---|
1425 | |
---|
1426 | if test -n "$ac_init_help"; then |
---|
1427 | case $ac_init_help in |
---|
1428 | short | recursive ) echo "Configuration of adolc 2.3.0-trunk:";; |
---|
1429 | esac |
---|
1430 | cat <<\_ACEOF |
---|
1431 | |
---|
1432 | Optional Features: |
---|
1433 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1434 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1435 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1436 | --enable-silent-rules less verbose build output (undo: "make V=1") |
---|
1437 | --disable-silent-rules verbose build output (undo: "make V=0") |
---|
1438 | --enable-dependency-tracking |
---|
1439 | do not reject slow dependency extractors |
---|
1440 | --disable-dependency-tracking |
---|
1441 | speeds up one-time build |
---|
1442 | --enable-shared[=PKGS] build shared libraries [default=yes] |
---|
1443 | --enable-static[=PKGS] build static libraries [default=yes] |
---|
1444 | --enable-fast-install[=PKGS] |
---|
1445 | optimize for fast installation [default=yes] |
---|
1446 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
1447 | |
---|
1448 | --enable-debug enable ADOL-C debug mode [default=no] |
---|
1449 | |
---|
1450 | --enable-harddebug enable ADOL-C hard debug mode [default=no] |
---|
1451 | |
---|
1452 | --enable-stdczero adouble standard constructor zeros value (at the |
---|
1453 | cost of performance) [default=no] |
---|
1454 | |
---|
1455 | --enable-tserrno use errno as thread number cache [default=no] |
---|
1456 | |
---|
1457 | --enable-sparse build sparse drivers [default=disabled] |
---|
1458 | |
---|
1459 | --enable-docexa build documented examples [default=disabled] |
---|
1460 | --enable-addexa build additional examples [default=disabled] |
---|
1461 | --enable-parexa build parallel example [default=disabled], if |
---|
1462 | enabled -with-openmp-flag=FLAG required |
---|
1463 | |
---|
1464 | Optional Packages: |
---|
1465 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1466 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1467 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
---|
1468 | both] |
---|
1469 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
---|
1470 | --with-sysroot=DIR Search for dependent libraries within DIR |
---|
1471 | (or the compiler's sysroot if not specified). |
---|
1472 | --with-openmp-flag=FLAG use FLAG to enable OpenMP at compile time |
---|
1473 | [default=none] |
---|
1474 | |
---|
1475 | --with-colpack=DIR path to the colpack library and headers |
---|
1476 | [default=system libraries] |
---|
1477 | --with-cflags=FLAGS use CFLAGS=FLAGS (default: -O2) |
---|
1478 | --with-cxxflags=FLAGS use CXXFLAGS=FLAGS (default: -O2) |
---|
1479 | |
---|
1480 | Some influential environment variables: |
---|
1481 | CXX C++ compiler command |
---|
1482 | CXXFLAGS C++ compiler flags |
---|
1483 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1484 | nonstandard directory <lib dir> |
---|
1485 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1486 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1487 | you have headers in a nonstandard directory <include dir> |
---|
1488 | CC C compiler command |
---|
1489 | CFLAGS C compiler flags |
---|
1490 | CPP C preprocessor |
---|
1491 | CXXCPP C++ preprocessor |
---|
1492 | |
---|
1493 | Use these variables to override the choices made by `configure' or to help |
---|
1494 | it to find libraries and programs with nonstandard names/locations. |
---|
1495 | |
---|
1496 | Report bugs to <adol-c@list.coin-or.org>. |
---|
1497 | _ACEOF |
---|
1498 | ac_status=$? |
---|
1499 | fi |
---|
1500 | |
---|
1501 | if test "$ac_init_help" = "recursive"; then |
---|
1502 | # If there are subdirs, report their specific --help. |
---|
1503 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1504 | test -d "$ac_dir" || |
---|
1505 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1506 | continue |
---|
1507 | ac_builddir=. |
---|
1508 | |
---|
1509 | case "$ac_dir" in |
---|
1510 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1511 | *) |
---|
1512 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1513 | # A ".." for each directory in $ac_dir_suffix. |
---|
1514 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1515 | case $ac_top_builddir_sub in |
---|
1516 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1517 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1518 | esac ;; |
---|
1519 | esac |
---|
1520 | ac_abs_top_builddir=$ac_pwd |
---|
1521 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1522 | # for backward compatibility: |
---|
1523 | ac_top_builddir=$ac_top_build_prefix |
---|
1524 | |
---|
1525 | case $srcdir in |
---|
1526 | .) # We are building in place. |
---|
1527 | ac_srcdir=. |
---|
1528 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1529 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1530 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1531 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1532 | ac_top_srcdir=$srcdir |
---|
1533 | ac_abs_top_srcdir=$srcdir ;; |
---|
1534 | *) # Relative name. |
---|
1535 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1536 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1537 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1538 | esac |
---|
1539 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1540 | |
---|
1541 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1542 | # Check for guested configure. |
---|
1543 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1544 | echo && |
---|
1545 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1546 | elif test -f "$ac_srcdir/configure"; then |
---|
1547 | echo && |
---|
1548 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1549 | else |
---|
1550 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1551 | fi || ac_status=$? |
---|
1552 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1553 | done |
---|
1554 | fi |
---|
1555 | |
---|
1556 | test -n "$ac_init_help" && exit $ac_status |
---|
1557 | if $ac_init_version; then |
---|
1558 | cat <<\_ACEOF |
---|
1559 | adolc configure 2.3.0-trunk |
---|
1560 | generated by GNU Autoconf 2.69 |
---|
1561 | |
---|
1562 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
1563 | This configure script is free software; the Free Software Foundation |
---|
1564 | gives unlimited permission to copy, distribute and modify it. |
---|
1565 | _ACEOF |
---|
1566 | exit |
---|
1567 | fi |
---|
1568 | |
---|
1569 | ## ------------------------ ## |
---|
1570 | ## Autoconf initialization. ## |
---|
1571 | ## ------------------------ ## |
---|
1572 | |
---|
1573 | # ac_fn_cxx_try_compile LINENO |
---|
1574 | # ---------------------------- |
---|
1575 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1576 | ac_fn_cxx_try_compile () |
---|
1577 | { |
---|
1578 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1579 | rm -f conftest.$ac_objext |
---|
1580 | if { { ac_try="$ac_compile" |
---|
1581 | case "(($ac_try" in |
---|
1582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1583 | *) ac_try_echo=$ac_try;; |
---|
1584 | esac |
---|
1585 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1586 | $as_echo "$ac_try_echo"; } >&5 |
---|
1587 | (eval "$ac_compile") 2>conftest.err |
---|
1588 | ac_status=$? |
---|
1589 | if test -s conftest.err; then |
---|
1590 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1591 | cat conftest.er1 >&5 |
---|
1592 | mv -f conftest.er1 conftest.err |
---|
1593 | fi |
---|
1594 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1595 | test $ac_status = 0; } && { |
---|
1596 | test -z "$ac_cxx_werror_flag" || |
---|
1597 | test ! -s conftest.err |
---|
1598 | } && test -s conftest.$ac_objext; then : |
---|
1599 | ac_retval=0 |
---|
1600 | else |
---|
1601 | $as_echo "$as_me: failed program was:" >&5 |
---|
1602 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1603 | |
---|
1604 | ac_retval=1 |
---|
1605 | fi |
---|
1606 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1607 | as_fn_set_status $ac_retval |
---|
1608 | |
---|
1609 | } # ac_fn_cxx_try_compile |
---|
1610 | |
---|
1611 | # ac_fn_c_try_compile LINENO |
---|
1612 | # -------------------------- |
---|
1613 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1614 | ac_fn_c_try_compile () |
---|
1615 | { |
---|
1616 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1617 | rm -f conftest.$ac_objext |
---|
1618 | if { { ac_try="$ac_compile" |
---|
1619 | case "(($ac_try" in |
---|
1620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1621 | *) ac_try_echo=$ac_try;; |
---|
1622 | esac |
---|
1623 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1624 | $as_echo "$ac_try_echo"; } >&5 |
---|
1625 | (eval "$ac_compile") 2>conftest.err |
---|
1626 | ac_status=$? |
---|
1627 | if test -s conftest.err; then |
---|
1628 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1629 | cat conftest.er1 >&5 |
---|
1630 | mv -f conftest.er1 conftest.err |
---|
1631 | fi |
---|
1632 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1633 | test $ac_status = 0; } && { |
---|
1634 | test -z "$ac_c_werror_flag" || |
---|
1635 | test ! -s conftest.err |
---|
1636 | } && test -s conftest.$ac_objext; then : |
---|
1637 | ac_retval=0 |
---|
1638 | else |
---|
1639 | $as_echo "$as_me: failed program was:" >&5 |
---|
1640 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1641 | |
---|
1642 | ac_retval=1 |
---|
1643 | fi |
---|
1644 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1645 | as_fn_set_status $ac_retval |
---|
1646 | |
---|
1647 | } # ac_fn_c_try_compile |
---|
1648 | |
---|
1649 | # ac_fn_c_try_cpp LINENO |
---|
1650 | # ---------------------- |
---|
1651 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1652 | ac_fn_c_try_cpp () |
---|
1653 | { |
---|
1654 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1655 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1656 | case "(($ac_try" in |
---|
1657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1658 | *) ac_try_echo=$ac_try;; |
---|
1659 | esac |
---|
1660 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1661 | $as_echo "$ac_try_echo"; } >&5 |
---|
1662 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1663 | ac_status=$? |
---|
1664 | if test -s conftest.err; then |
---|
1665 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1666 | cat conftest.er1 >&5 |
---|
1667 | mv -f conftest.er1 conftest.err |
---|
1668 | fi |
---|
1669 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1670 | test $ac_status = 0; } > conftest.i && { |
---|
1671 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1672 | test ! -s conftest.err |
---|
1673 | }; then : |
---|
1674 | ac_retval=0 |
---|
1675 | else |
---|
1676 | $as_echo "$as_me: failed program was:" >&5 |
---|
1677 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1678 | |
---|
1679 | ac_retval=1 |
---|
1680 | fi |
---|
1681 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1682 | as_fn_set_status $ac_retval |
---|
1683 | |
---|
1684 | } # ac_fn_c_try_cpp |
---|
1685 | |
---|
1686 | # ac_fn_c_try_link LINENO |
---|
1687 | # ----------------------- |
---|
1688 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1689 | ac_fn_c_try_link () |
---|
1690 | { |
---|
1691 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1692 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1693 | if { { ac_try="$ac_link" |
---|
1694 | case "(($ac_try" in |
---|
1695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1696 | *) ac_try_echo=$ac_try;; |
---|
1697 | esac |
---|
1698 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1699 | $as_echo "$ac_try_echo"; } >&5 |
---|
1700 | (eval "$ac_link") 2>conftest.err |
---|
1701 | ac_status=$? |
---|
1702 | if test -s conftest.err; then |
---|
1703 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1704 | cat conftest.er1 >&5 |
---|
1705 | mv -f conftest.er1 conftest.err |
---|
1706 | fi |
---|
1707 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1708 | test $ac_status = 0; } && { |
---|
1709 | test -z "$ac_c_werror_flag" || |
---|
1710 | test ! -s conftest.err |
---|
1711 | } && test -s conftest$ac_exeext && { |
---|
1712 | test "$cross_compiling" = yes || |
---|
1713 | test -x conftest$ac_exeext |
---|
1714 | }; then : |
---|
1715 | ac_retval=0 |
---|
1716 | else |
---|
1717 | $as_echo "$as_me: failed program was:" >&5 |
---|
1718 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1719 | |
---|
1720 | ac_retval=1 |
---|
1721 | fi |
---|
1722 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1723 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1724 | # interfere with the next link command; also delete a directory that is |
---|
1725 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1726 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1727 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1728 | as_fn_set_status $ac_retval |
---|
1729 | |
---|
1730 | } # ac_fn_c_try_link |
---|
1731 | |
---|
1732 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1733 | # ------------------------------------------------------- |
---|
1734 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1735 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1736 | ac_fn_c_check_header_compile () |
---|
1737 | { |
---|
1738 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1740 | $as_echo_n "checking for $2... " >&6; } |
---|
1741 | if eval \${$3+:} false; then : |
---|
1742 | $as_echo_n "(cached) " >&6 |
---|
1743 | else |
---|
1744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1745 | /* end confdefs.h. */ |
---|
1746 | $4 |
---|
1747 | #include <$2> |
---|
1748 | _ACEOF |
---|
1749 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1750 | eval "$3=yes" |
---|
1751 | else |
---|
1752 | eval "$3=no" |
---|
1753 | fi |
---|
1754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1755 | fi |
---|
1756 | eval ac_res=\$$3 |
---|
1757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1758 | $as_echo "$ac_res" >&6; } |
---|
1759 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1760 | |
---|
1761 | } # ac_fn_c_check_header_compile |
---|
1762 | |
---|
1763 | # ac_fn_c_try_run LINENO |
---|
1764 | # ---------------------- |
---|
1765 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1766 | # that executables *can* be run. |
---|
1767 | ac_fn_c_try_run () |
---|
1768 | { |
---|
1769 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1770 | if { { ac_try="$ac_link" |
---|
1771 | case "(($ac_try" in |
---|
1772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1773 | *) ac_try_echo=$ac_try;; |
---|
1774 | esac |
---|
1775 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1776 | $as_echo "$ac_try_echo"; } >&5 |
---|
1777 | (eval "$ac_link") 2>&5 |
---|
1778 | ac_status=$? |
---|
1779 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1780 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1781 | { { case "(($ac_try" in |
---|
1782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1783 | *) ac_try_echo=$ac_try;; |
---|
1784 | esac |
---|
1785 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1786 | $as_echo "$ac_try_echo"; } >&5 |
---|
1787 | (eval "$ac_try") 2>&5 |
---|
1788 | ac_status=$? |
---|
1789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1790 | test $ac_status = 0; }; }; then : |
---|
1791 | ac_retval=0 |
---|
1792 | else |
---|
1793 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1794 | $as_echo "$as_me: failed program was:" >&5 |
---|
1795 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1796 | |
---|
1797 | ac_retval=$ac_status |
---|
1798 | fi |
---|
1799 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1800 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1801 | as_fn_set_status $ac_retval |
---|
1802 | |
---|
1803 | } # ac_fn_c_try_run |
---|
1804 | |
---|
1805 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
1806 | # ---------------------------------- |
---|
1807 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1808 | ac_fn_c_check_func () |
---|
1809 | { |
---|
1810 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1812 | $as_echo_n "checking for $2... " >&6; } |
---|
1813 | if eval \${$3+:} false; then : |
---|
1814 | $as_echo_n "(cached) " >&6 |
---|
1815 | else |
---|
1816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1817 | /* end confdefs.h. */ |
---|
1818 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1819 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1820 | #define $2 innocuous_$2 |
---|
1821 | |
---|
1822 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1823 | which can conflict with char $2 (); below. |
---|
1824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1825 | <limits.h> exists even on freestanding compilers. */ |
---|
1826 | |
---|
1827 | #ifdef __STDC__ |
---|
1828 | # include <limits.h> |
---|
1829 | #else |
---|
1830 | # include <assert.h> |
---|
1831 | #endif |
---|
1832 | |
---|
1833 | #undef $2 |
---|
1834 | |
---|
1835 | /* Override any GCC internal prototype to avoid an error. |
---|
1836 | Use char because int might match the return type of a GCC |
---|
1837 | builtin and then its argument prototype would still apply. */ |
---|
1838 | #ifdef __cplusplus |
---|
1839 | extern "C" |
---|
1840 | #endif |
---|
1841 | char $2 (); |
---|
1842 | /* The GNU C library defines this for functions which it implements |
---|
1843 | to always fail with ENOSYS. Some functions are actually named |
---|
1844 | something starting with __ and the normal name is an alias. */ |
---|
1845 | #if defined __stub_$2 || defined __stub___$2 |
---|
1846 | choke me |
---|
1847 | #endif |
---|
1848 | |
---|
1849 | int |
---|
1850 | main () |
---|
1851 | { |
---|
1852 | return $2 (); |
---|
1853 | ; |
---|
1854 | return 0; |
---|
1855 | } |
---|
1856 | _ACEOF |
---|
1857 | if ac_fn_c_try_link "$LINENO"; then : |
---|
1858 | eval "$3=yes" |
---|
1859 | else |
---|
1860 | eval "$3=no" |
---|
1861 | fi |
---|
1862 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1863 | conftest$ac_exeext conftest.$ac_ext |
---|
1864 | fi |
---|
1865 | eval ac_res=\$$3 |
---|
1866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1867 | $as_echo "$ac_res" >&6; } |
---|
1868 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1869 | |
---|
1870 | } # ac_fn_c_check_func |
---|
1871 | |
---|
1872 | # ac_fn_cxx_try_cpp LINENO |
---|
1873 | # ------------------------ |
---|
1874 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1875 | ac_fn_cxx_try_cpp () |
---|
1876 | { |
---|
1877 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1878 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1879 | case "(($ac_try" in |
---|
1880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1881 | *) ac_try_echo=$ac_try;; |
---|
1882 | esac |
---|
1883 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1884 | $as_echo "$ac_try_echo"; } >&5 |
---|
1885 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1886 | ac_status=$? |
---|
1887 | if test -s conftest.err; then |
---|
1888 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1889 | cat conftest.er1 >&5 |
---|
1890 | mv -f conftest.er1 conftest.err |
---|
1891 | fi |
---|
1892 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1893 | test $ac_status = 0; } > conftest.i && { |
---|
1894 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
1895 | test ! -s conftest.err |
---|
1896 | }; then : |
---|
1897 | ac_retval=0 |
---|
1898 | else |
---|
1899 | $as_echo "$as_me: failed program was:" >&5 |
---|
1900 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1901 | |
---|
1902 | ac_retval=1 |
---|
1903 | fi |
---|
1904 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1905 | as_fn_set_status $ac_retval |
---|
1906 | |
---|
1907 | } # ac_fn_cxx_try_cpp |
---|
1908 | |
---|
1909 | # ac_fn_cxx_try_link LINENO |
---|
1910 | # ------------------------- |
---|
1911 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1912 | ac_fn_cxx_try_link () |
---|
1913 | { |
---|
1914 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1915 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1916 | if { { ac_try="$ac_link" |
---|
1917 | case "(($ac_try" in |
---|
1918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1919 | *) ac_try_echo=$ac_try;; |
---|
1920 | esac |
---|
1921 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1922 | $as_echo "$ac_try_echo"; } >&5 |
---|
1923 | (eval "$ac_link") 2>conftest.err |
---|
1924 | ac_status=$? |
---|
1925 | if test -s conftest.err; then |
---|
1926 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1927 | cat conftest.er1 >&5 |
---|
1928 | mv -f conftest.er1 conftest.err |
---|
1929 | fi |
---|
1930 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1931 | test $ac_status = 0; } && { |
---|
1932 | test -z "$ac_cxx_werror_flag" || |
---|
1933 | test ! -s conftest.err |
---|
1934 | } && test -s conftest$ac_exeext && { |
---|
1935 | test "$cross_compiling" = yes || |
---|
1936 | test -x conftest$ac_exeext |
---|
1937 | }; then : |
---|
1938 | ac_retval=0 |
---|
1939 | else |
---|
1940 | $as_echo "$as_me: failed program was:" >&5 |
---|
1941 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1942 | |
---|
1943 | ac_retval=1 |
---|
1944 | fi |
---|
1945 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1946 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1947 | # interfere with the next link command; also delete a directory that is |
---|
1948 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1949 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1950 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1951 | as_fn_set_status $ac_retval |
---|
1952 | |
---|
1953 | } # ac_fn_cxx_try_link |
---|
1954 | |
---|
1955 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
---|
1956 | # -------------------------------------------- |
---|
1957 | # Tries to find the compile-time value of EXPR in a program that includes |
---|
1958 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
---|
1959 | # computed |
---|
1960 | ac_fn_c_compute_int () |
---|
1961 | { |
---|
1962 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1963 | if test "$cross_compiling" = yes; then |
---|
1964 | # Depending upon the size, compute the lo and hi bounds. |
---|
1965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1966 | /* end confdefs.h. */ |
---|
1967 | $4 |
---|
1968 | int |
---|
1969 | main () |
---|
1970 | { |
---|
1971 | static int test_array [1 - 2 * !(($2) >= 0)]; |
---|
1972 | test_array [0] = 0; |
---|
1973 | return test_array [0]; |
---|
1974 | |
---|
1975 | ; |
---|
1976 | return 0; |
---|
1977 | } |
---|
1978 | _ACEOF |
---|
1979 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1980 | ac_lo=0 ac_mid=0 |
---|
1981 | while :; do |
---|
1982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1983 | /* end confdefs.h. */ |
---|
1984 | $4 |
---|
1985 | int |
---|
1986 | main () |
---|
1987 | { |
---|
1988 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
---|
1989 | test_array [0] = 0; |
---|
1990 | return test_array [0]; |
---|
1991 | |
---|
1992 | ; |
---|
1993 | return 0; |
---|
1994 | } |
---|
1995 | _ACEOF |
---|
1996 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1997 | ac_hi=$ac_mid; break |
---|
1998 | else |
---|
1999 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
---|
2000 | if test $ac_lo -le $ac_mid; then |
---|
2001 | ac_lo= ac_hi= |
---|
2002 | break |
---|
2003 | fi |
---|
2004 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
---|
2005 | fi |
---|
2006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2007 | done |
---|
2008 | else |
---|
2009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2010 | /* end confdefs.h. */ |
---|
2011 | $4 |
---|
2012 | int |
---|
2013 | main () |
---|
2014 | { |
---|
2015 | static int test_array [1 - 2 * !(($2) < 0)]; |
---|
2016 | test_array [0] = 0; |
---|
2017 | return test_array [0]; |
---|
2018 | |
---|
2019 | ; |
---|
2020 | return 0; |
---|
2021 | } |
---|
2022 | _ACEOF |
---|
2023 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2024 | ac_hi=-1 ac_mid=-1 |
---|
2025 | while :; do |
---|
2026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2027 | /* end confdefs.h. */ |
---|
2028 | $4 |
---|
2029 | int |
---|
2030 | main () |
---|
2031 | { |
---|
2032 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
---|
2033 | test_array [0] = 0; |
---|
2034 | return test_array [0]; |
---|
2035 | |
---|
2036 | ; |
---|
2037 | return 0; |
---|
2038 | } |
---|
2039 | _ACEOF |
---|
2040 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2041 | ac_lo=$ac_mid; break |
---|
2042 | else |
---|
2043 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
---|
2044 | if test $ac_mid -le $ac_hi; then |
---|
2045 | ac_lo= ac_hi= |
---|
2046 | break |
---|
2047 | fi |
---|
2048 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
---|
2049 | fi |
---|
2050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2051 | done |
---|
2052 | else |
---|
2053 | ac_lo= ac_hi= |
---|
2054 | fi |
---|
2055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2056 | fi |
---|
2057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2058 | # Binary search between lo and hi bounds. |
---|
2059 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
2060 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
---|
2061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2062 | /* end confdefs.h. */ |
---|
2063 | $4 |
---|
2064 | int |
---|
2065 | main () |
---|
2066 | { |
---|
2067 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
---|
2068 | test_array [0] = 0; |
---|
2069 | return test_array [0]; |
---|
2070 | |
---|
2071 | ; |
---|
2072 | return 0; |
---|
2073 | } |
---|
2074 | _ACEOF |
---|
2075 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2076 | ac_hi=$ac_mid |
---|
2077 | else |
---|
2078 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
---|
2079 | fi |
---|
2080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2081 | done |
---|
2082 | case $ac_lo in #(( |
---|
2083 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
---|
2084 | '') ac_retval=1 ;; |
---|
2085 | esac |
---|
2086 | else |
---|
2087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2088 | /* end confdefs.h. */ |
---|
2089 | $4 |
---|
2090 | static long int longval () { return $2; } |
---|
2091 | static unsigned long int ulongval () { return $2; } |
---|
2092 | #include <stdio.h> |
---|
2093 | #include <stdlib.h> |
---|
2094 | int |
---|
2095 | main () |
---|
2096 | { |
---|
2097 | |
---|
2098 | FILE *f = fopen ("conftest.val", "w"); |
---|
2099 | if (! f) |
---|
2100 | return 1; |
---|
2101 | if (($2) < 0) |
---|
2102 | { |
---|
2103 | long int i = longval (); |
---|
2104 | if (i != ($2)) |
---|
2105 | return 1; |
---|
2106 | fprintf (f, "%ld", i); |
---|
2107 | } |
---|
2108 | else |
---|
2109 | { |
---|
2110 | unsigned long int i = ulongval (); |
---|
2111 | if (i != ($2)) |
---|
2112 | return 1; |
---|
2113 | fprintf (f, "%lu", i); |
---|
2114 | } |
---|
2115 | /* Do not output a trailing newline, as this causes \r\n confusion |
---|
2116 | on some platforms. */ |
---|
2117 | return ferror (f) || fclose (f) != 0; |
---|
2118 | |
---|
2119 | ; |
---|
2120 | return 0; |
---|
2121 | } |
---|
2122 | _ACEOF |
---|
2123 | if ac_fn_c_try_run "$LINENO"; then : |
---|
2124 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
---|
2125 | else |
---|
2126 | ac_retval=1 |
---|
2127 | fi |
---|
2128 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
2129 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
2130 | rm -f conftest.val |
---|
2131 | |
---|
2132 | fi |
---|
2133 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2134 | as_fn_set_status $ac_retval |
---|
2135 | |
---|
2136 | } # ac_fn_c_compute_int |
---|
2137 | |
---|
2138 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
---|
2139 | # ------------------------------------------- |
---|
2140 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
---|
2141 | # variable VAR accordingly. |
---|
2142 | ac_fn_c_check_type () |
---|
2143 | { |
---|
2144 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2146 | $as_echo_n "checking for $2... " >&6; } |
---|
2147 | if eval \${$3+:} false; then : |
---|
2148 | $as_echo_n "(cached) " >&6 |
---|
2149 | else |
---|
2150 | eval "$3=no" |
---|
2151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2152 | /* end confdefs.h. */ |
---|
2153 | $4 |
---|
2154 | int |
---|
2155 | main () |
---|
2156 | { |
---|
2157 | if (sizeof ($2)) |
---|
2158 | return 0; |
---|
2159 | ; |
---|
2160 | return 0; |
---|
2161 | } |
---|
2162 | _ACEOF |
---|
2163 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2165 | /* end confdefs.h. */ |
---|
2166 | $4 |
---|
2167 | int |
---|
2168 | main () |
---|
2169 | { |
---|
2170 | if (sizeof (($2))) |
---|
2171 | return 0; |
---|
2172 | ; |
---|
2173 | return 0; |
---|
2174 | } |
---|
2175 | _ACEOF |
---|
2176 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2177 | |
---|
2178 | else |
---|
2179 | eval "$3=yes" |
---|
2180 | fi |
---|
2181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2182 | fi |
---|
2183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2184 | fi |
---|
2185 | eval ac_res=\$$3 |
---|
2186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2187 | $as_echo "$ac_res" >&6; } |
---|
2188 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2189 | |
---|
2190 | } # ac_fn_c_check_type |
---|
2191 | |
---|
2192 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
2193 | # ------------------------------------------------------- |
---|
2194 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
2195 | # the include files in INCLUDES and setting the cache variable VAR |
---|
2196 | # accordingly. |
---|
2197 | ac_fn_c_check_header_mongrel () |
---|
2198 | { |
---|
2199 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2200 | if eval \${$3+:} false; then : |
---|
2201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2202 | $as_echo_n "checking for $2... " >&6; } |
---|
2203 | if eval \${$3+:} false; then : |
---|
2204 | $as_echo_n "(cached) " >&6 |
---|
2205 | fi |
---|
2206 | eval ac_res=\$$3 |
---|
2207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2208 | $as_echo "$ac_res" >&6; } |
---|
2209 | else |
---|
2210 | # Is the header compilable? |
---|
2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
2212 | $as_echo_n "checking $2 usability... " >&6; } |
---|
2213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2214 | /* end confdefs.h. */ |
---|
2215 | $4 |
---|
2216 | #include <$2> |
---|
2217 | _ACEOF |
---|
2218 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2219 | ac_header_compiler=yes |
---|
2220 | else |
---|
2221 | ac_header_compiler=no |
---|
2222 | fi |
---|
2223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
2225 | $as_echo "$ac_header_compiler" >&6; } |
---|
2226 | |
---|
2227 | # Is the header present? |
---|
2228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
2229 | $as_echo_n "checking $2 presence... " >&6; } |
---|
2230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2231 | /* end confdefs.h. */ |
---|
2232 | #include <$2> |
---|
2233 | _ACEOF |
---|
2234 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
2235 | ac_header_preproc=yes |
---|
2236 | else |
---|
2237 | ac_header_preproc=no |
---|
2238 | fi |
---|
2239 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
2241 | $as_echo "$ac_header_preproc" >&6; } |
---|
2242 | |
---|
2243 | # So? What about this header? |
---|
2244 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
2245 | yes:no: ) |
---|
2246 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
2247 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
2248 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
2249 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
2250 | ;; |
---|
2251 | no:yes:* ) |
---|
2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
2253 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
2255 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
2256 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
2257 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
2258 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
2259 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
2260 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
2261 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
2262 | ( $as_echo "## -------------------------------------- ## |
---|
2263 | ## Report this to adol-c@list.coin-or.org ## |
---|
2264 | ## -------------------------------------- ##" |
---|
2265 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
2266 | ;; |
---|
2267 | esac |
---|
2268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2269 | $as_echo_n "checking for $2... " >&6; } |
---|
2270 | if eval \${$3+:} false; then : |
---|
2271 | $as_echo_n "(cached) " >&6 |
---|
2272 | else |
---|
2273 | eval "$3=\$ac_header_compiler" |
---|
2274 | fi |
---|
2275 | eval ac_res=\$$3 |
---|
2276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2277 | $as_echo "$ac_res" >&6; } |
---|
2278 | fi |
---|
2279 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2280 | |
---|
2281 | } # ac_fn_c_check_header_mongrel |
---|
2282 | |
---|
2283 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
2284 | # --------------------------------------------------------- |
---|
2285 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
2286 | # the include files in INCLUDES and setting the cache variable VAR |
---|
2287 | # accordingly. |
---|
2288 | ac_fn_cxx_check_header_mongrel () |
---|
2289 | { |
---|
2290 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2291 | if eval \${$3+:} false; then : |
---|
2292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2293 | $as_echo_n "checking for $2... " >&6; } |
---|
2294 | if eval \${$3+:} false; then : |
---|
2295 | $as_echo_n "(cached) " >&6 |
---|
2296 | fi |
---|
2297 | eval ac_res=\$$3 |
---|
2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2299 | $as_echo "$ac_res" >&6; } |
---|
2300 | else |
---|
2301 | # Is the header compilable? |
---|
2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
2303 | $as_echo_n "checking $2 usability... " >&6; } |
---|
2304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2305 | /* end confdefs.h. */ |
---|
2306 | $4 |
---|
2307 | #include <$2> |
---|
2308 | _ACEOF |
---|
2309 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2310 | ac_header_compiler=yes |
---|
2311 | else |
---|
2312 | ac_header_compiler=no |
---|
2313 | fi |
---|
2314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
2316 | $as_echo "$ac_header_compiler" >&6; } |
---|
2317 | |
---|
2318 | # Is the header present? |
---|
2319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
2320 | $as_echo_n "checking $2 presence... " >&6; } |
---|
2321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2322 | /* end confdefs.h. */ |
---|
2323 | #include <$2> |
---|
2324 | _ACEOF |
---|
2325 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
2326 | ac_header_preproc=yes |
---|
2327 | else |
---|
2328 | ac_header_preproc=no |
---|
2329 | fi |
---|
2330 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
2331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
2332 | $as_echo "$ac_header_preproc" >&6; } |
---|
2333 | |
---|
2334 | # So? What about this header? |
---|
2335 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
---|
2336 | yes:no: ) |
---|
2337 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
2338 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
2340 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
2341 | ;; |
---|
2342 | no:yes:* ) |
---|
2343 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
2344 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
2345 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
2346 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
2347 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
2348 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
2349 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
2350 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
2351 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
2352 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
2353 | ( $as_echo "## -------------------------------------- ## |
---|
2354 | ## Report this to adol-c@list.coin-or.org ## |
---|
2355 | ## -------------------------------------- ##" |
---|
2356 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
2357 | ;; |
---|
2358 | esac |
---|
2359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2360 | $as_echo_n "checking for $2... " >&6; } |
---|
2361 | if eval \${$3+:} false; then : |
---|
2362 | $as_echo_n "(cached) " >&6 |
---|
2363 | else |
---|
2364 | eval "$3=\$ac_header_compiler" |
---|
2365 | fi |
---|
2366 | eval ac_res=\$$3 |
---|
2367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2368 | $as_echo "$ac_res" >&6; } |
---|
2369 | fi |
---|
2370 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2371 | |
---|
2372 | } # ac_fn_cxx_check_header_mongrel |
---|
2373 | cat >config.log <<_ACEOF |
---|
2374 | This file contains any messages produced by compilers while |
---|
2375 | running configure, to aid debugging if configure makes a mistake. |
---|
2376 | |
---|
2377 | It was created by adolc $as_me 2.3.0-trunk, which was |
---|
2378 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
2379 | |
---|
2380 | $ $0 $@ |
---|
2381 | |
---|
2382 | _ACEOF |
---|
2383 | exec 5>>config.log |
---|
2384 | { |
---|
2385 | cat <<_ASUNAME |
---|
2386 | ## --------- ## |
---|
2387 | ## Platform. ## |
---|
2388 | ## --------- ## |
---|
2389 | |
---|
2390 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
2391 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
2392 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
2393 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
2394 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
2395 | |
---|
2396 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
2397 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
2398 | |
---|
2399 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
2400 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
2401 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
2402 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
2403 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
2404 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
2405 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
2406 | |
---|
2407 | _ASUNAME |
---|
2408 | |
---|
2409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2410 | for as_dir in $PATH |
---|
2411 | do |
---|
2412 | IFS=$as_save_IFS |
---|
2413 | test -z "$as_dir" && as_dir=. |
---|
2414 | $as_echo "PATH: $as_dir" |
---|
2415 | done |
---|
2416 | IFS=$as_save_IFS |
---|
2417 | |
---|
2418 | } >&5 |
---|
2419 | |
---|
2420 | cat >&5 <<_ACEOF |
---|
2421 | |
---|
2422 | |
---|
2423 | ## ----------- ## |
---|
2424 | ## Core tests. ## |
---|
2425 | ## ----------- ## |
---|
2426 | |
---|
2427 | _ACEOF |
---|
2428 | |
---|
2429 | |
---|
2430 | # Keep a trace of the command line. |
---|
2431 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2432 | # Strip out --silent because we don't want to record it for future runs. |
---|
2433 | # Also quote any args containing shell meta-characters. |
---|
2434 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2435 | ac_configure_args= |
---|
2436 | ac_configure_args0= |
---|
2437 | ac_configure_args1= |
---|
2438 | ac_must_keep_next=false |
---|
2439 | for ac_pass in 1 2 |
---|
2440 | do |
---|
2441 | for ac_arg |
---|
2442 | do |
---|
2443 | case $ac_arg in |
---|
2444 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2445 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2446 | | -silent | --silent | --silen | --sile | --sil) |
---|
2447 | continue ;; |
---|
2448 | *\'*) |
---|
2449 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2450 | esac |
---|
2451 | case $ac_pass in |
---|
2452 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2453 | 2) |
---|
2454 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2455 | if test $ac_must_keep_next = true; then |
---|
2456 | ac_must_keep_next=false # Got value, back to normal. |
---|
2457 | else |
---|
2458 | case $ac_arg in |
---|
2459 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2460 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2461 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2462 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2463 | case "$ac_configure_args0 " in |
---|
2464 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2465 | esac |
---|
2466 | ;; |
---|
2467 | -* ) ac_must_keep_next=true ;; |
---|
2468 | esac |
---|
2469 | fi |
---|
2470 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2471 | ;; |
---|
2472 | esac |
---|
2473 | done |
---|
2474 | done |
---|
2475 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2476 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2477 | |
---|
2478 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2479 | # config.log. We remove comments because anyway the quotes in there |
---|
2480 | # would cause problems or look ugly. |
---|
2481 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2482 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2483 | trap 'exit_status=$? |
---|
2484 | # Save into config.log some information that might help in debugging. |
---|
2485 | { |
---|
2486 | echo |
---|
2487 | |
---|
2488 | $as_echo "## ---------------- ## |
---|
2489 | ## Cache variables. ## |
---|
2490 | ## ---------------- ##" |
---|
2491 | echo |
---|
2492 | # The following way of writing the cache mishandles newlines in values, |
---|
2493 | ( |
---|
2494 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2495 | eval ac_val=\$$ac_var |
---|
2496 | case $ac_val in #( |
---|
2497 | *${as_nl}*) |
---|
2498 | case $ac_var in #( |
---|
2499 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2500 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2501 | esac |
---|
2502 | case $ac_var in #( |
---|
2503 | _ | IFS | as_nl) ;; #( |
---|
2504 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2505 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2506 | esac ;; |
---|
2507 | esac |
---|
2508 | done |
---|
2509 | (set) 2>&1 | |
---|
2510 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2511 | *${as_nl}ac_space=\ *) |
---|
2512 | sed -n \ |
---|
2513 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2514 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2515 | ;; #( |
---|
2516 | *) |
---|
2517 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2518 | ;; |
---|
2519 | esac | |
---|
2520 | sort |
---|
2521 | ) |
---|
2522 | echo |
---|
2523 | |
---|
2524 | $as_echo "## ----------------- ## |
---|
2525 | ## Output variables. ## |
---|
2526 | ## ----------------- ##" |
---|
2527 | echo |
---|
2528 | for ac_var in $ac_subst_vars |
---|
2529 | do |
---|
2530 | eval ac_val=\$$ac_var |
---|
2531 | case $ac_val in |
---|
2532 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2533 | esac |
---|
2534 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2535 | done | sort |
---|
2536 | echo |
---|
2537 | |
---|
2538 | if test -n "$ac_subst_files"; then |
---|
2539 | $as_echo "## ------------------- ## |
---|
2540 | ## File substitutions. ## |
---|
2541 | ## ------------------- ##" |
---|
2542 | echo |
---|
2543 | for ac_var in $ac_subst_files |
---|
2544 | do |
---|
2545 | eval ac_val=\$$ac_var |
---|
2546 | case $ac_val in |
---|
2547 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2548 | esac |
---|
2549 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2550 | done | sort |
---|
2551 | echo |
---|
2552 | fi |
---|
2553 | |
---|
2554 | if test -s confdefs.h; then |
---|
2555 | $as_echo "## ----------- ## |
---|
2556 | ## confdefs.h. ## |
---|
2557 | ## ----------- ##" |
---|
2558 | echo |
---|
2559 | cat confdefs.h |
---|
2560 | echo |
---|
2561 | fi |
---|
2562 | test "$ac_signal" != 0 && |
---|
2563 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2564 | $as_echo "$as_me: exit $exit_status" |
---|
2565 | } >&5 |
---|
2566 | rm -f core *.core core.conftest.* && |
---|
2567 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2568 | exit $exit_status |
---|
2569 | ' 0 |
---|
2570 | for ac_signal in 1 2 13 15; do |
---|
2571 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2572 | done |
---|
2573 | ac_signal=0 |
---|
2574 | |
---|
2575 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2576 | rm -f -r conftest* confdefs.h |
---|
2577 | |
---|
2578 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2579 | |
---|
2580 | # Predefined preprocessor variables. |
---|
2581 | |
---|
2582 | cat >>confdefs.h <<_ACEOF |
---|
2583 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2584 | _ACEOF |
---|
2585 | |
---|
2586 | cat >>confdefs.h <<_ACEOF |
---|
2587 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2588 | _ACEOF |
---|
2589 | |
---|
2590 | cat >>confdefs.h <<_ACEOF |
---|
2591 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2592 | _ACEOF |
---|
2593 | |
---|
2594 | cat >>confdefs.h <<_ACEOF |
---|
2595 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2596 | _ACEOF |
---|
2597 | |
---|
2598 | cat >>confdefs.h <<_ACEOF |
---|
2599 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2600 | _ACEOF |
---|
2601 | |
---|
2602 | cat >>confdefs.h <<_ACEOF |
---|
2603 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2604 | _ACEOF |
---|
2605 | |
---|
2606 | |
---|
2607 | # Let the site file select an alternate cache file if it wants to. |
---|
2608 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2609 | ac_site_file1=NONE |
---|
2610 | ac_site_file2=NONE |
---|
2611 | if test -n "$CONFIG_SITE"; then |
---|
2612 | # We do not want a PATH search for config.site. |
---|
2613 | case $CONFIG_SITE in #(( |
---|
2614 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2615 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2616 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2617 | esac |
---|
2618 | elif test "x$prefix" != xNONE; then |
---|
2619 | ac_site_file1=$prefix/share/config.site |
---|
2620 | ac_site_file2=$prefix/etc/config.site |
---|
2621 | else |
---|
2622 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2623 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2624 | fi |
---|
2625 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2626 | do |
---|
2627 | test "x$ac_site_file" = xNONE && continue |
---|
2628 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2630 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2631 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2632 | . "$ac_site_file" \ |
---|
2633 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2634 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2635 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2636 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2637 | fi |
---|
2638 | done |
---|
2639 | |
---|
2640 | if test -r "$cache_file"; then |
---|
2641 | # Some versions of bash will fail to source /dev/null (special files |
---|
2642 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2643 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2645 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2646 | case $cache_file in |
---|
2647 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2648 | *) . "./$cache_file";; |
---|
2649 | esac |
---|
2650 | fi |
---|
2651 | else |
---|
2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2653 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2654 | >$cache_file |
---|
2655 | fi |
---|
2656 | |
---|
2657 | # Check that the precious variables saved in the cache have kept the same |
---|
2658 | # value. |
---|
2659 | ac_cache_corrupted=false |
---|
2660 | for ac_var in $ac_precious_vars; do |
---|
2661 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2662 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2663 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2664 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2665 | case $ac_old_set,$ac_new_set in |
---|
2666 | set,) |
---|
2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2668 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2669 | ac_cache_corrupted=: ;; |
---|
2670 | ,set) |
---|
2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2672 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2673 | ac_cache_corrupted=: ;; |
---|
2674 | ,);; |
---|
2675 | *) |
---|
2676 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2677 | # differences in whitespace do not lead to failure. |
---|
2678 | ac_old_val_w=`echo x $ac_old_val` |
---|
2679 | ac_new_val_w=`echo x $ac_new_val` |
---|
2680 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2682 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2683 | ac_cache_corrupted=: |
---|
2684 | else |
---|
2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2686 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2687 | eval $ac_var=\$ac_old_val |
---|
2688 | fi |
---|
2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2690 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2691 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2692 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2693 | fi;; |
---|
2694 | esac |
---|
2695 | # Pass precious variables to config.status. |
---|
2696 | if test "$ac_new_set" = set; then |
---|
2697 | case $ac_new_val in |
---|
2698 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2699 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2700 | esac |
---|
2701 | case " $ac_configure_args " in |
---|
2702 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2703 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2704 | esac |
---|
2705 | fi |
---|
2706 | done |
---|
2707 | if $ac_cache_corrupted; then |
---|
2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2709 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2711 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2712 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2713 | fi |
---|
2714 | ## -------------------- ## |
---|
2715 | ## Main body of script. ## |
---|
2716 | ## -------------------- ## |
---|
2717 | |
---|
2718 | ac_ext=c |
---|
2719 | ac_cpp='$CPP $CPPFLAGS' |
---|
2720 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2721 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2722 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2723 | |
---|
2724 | |
---|
2725 | |
---|
2726 | |
---|
2727 | ac_aux_dir= |
---|
2728 | for ac_dir in autoconf "$srcdir"/autoconf; do |
---|
2729 | if test -f "$ac_dir/install-sh"; then |
---|
2730 | ac_aux_dir=$ac_dir |
---|
2731 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2732 | break |
---|
2733 | elif test -f "$ac_dir/install.sh"; then |
---|
2734 | ac_aux_dir=$ac_dir |
---|
2735 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2736 | break |
---|
2737 | elif test -f "$ac_dir/shtool"; then |
---|
2738 | ac_aux_dir=$ac_dir |
---|
2739 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2740 | break |
---|
2741 | fi |
---|
2742 | done |
---|
2743 | if test -z "$ac_aux_dir"; then |
---|
2744 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 |
---|
2745 | fi |
---|
2746 | |
---|
2747 | # These three variables are undocumented and unsupported, |
---|
2748 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2749 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2750 | # whose full name contains unusual characters. |
---|
2751 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2752 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2753 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2754 | |
---|
2755 | |
---|
2756 | ac_config_headers="$ac_config_headers ADOL-C/src/config.h" |
---|
2757 | |
---|
2758 | |
---|
2759 | am__api_version='1.12' |
---|
2760 | |
---|
2761 | # Find a good install program. We prefer a C program (faster), |
---|
2762 | # so one script is as good as another. But avoid the broken or |
---|
2763 | # incompatible versions: |
---|
2764 | # SysV /etc/install, /usr/sbin/install |
---|
2765 | # SunOS /usr/etc/install |
---|
2766 | # IRIX /sbin/install |
---|
2767 | # AIX /bin/install |
---|
2768 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2769 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2770 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2771 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2772 | # OS/2's system install, which has a completely different semantic |
---|
2773 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2774 | # Reject install programs that cannot install multiple files. |
---|
2775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2776 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2777 | if test -z "$INSTALL"; then |
---|
2778 | if ${ac_cv_path_install+:} false; then : |
---|
2779 | $as_echo_n "(cached) " >&6 |
---|
2780 | else |
---|
2781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2782 | for as_dir in $PATH |
---|
2783 | do |
---|
2784 | IFS=$as_save_IFS |
---|
2785 | test -z "$as_dir" && as_dir=. |
---|
2786 | # Account for people who put trailing slashes in PATH elements. |
---|
2787 | case $as_dir/ in #(( |
---|
2788 | ./ | .// | /[cC]/* | \ |
---|
2789 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2790 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2791 | /usr/ucb/* ) ;; |
---|
2792 | *) |
---|
2793 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2794 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2795 | # by default. |
---|
2796 | for ac_prog in ginstall scoinst install; do |
---|
2797 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2798 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
2799 | if test $ac_prog = install && |
---|
2800 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2801 | # AIX install. It has an incompatible calling convention. |
---|
2802 | : |
---|
2803 | elif test $ac_prog = install && |
---|
2804 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2805 | # program-specific install script used by HP pwplus--don't use. |
---|
2806 | : |
---|
2807 | else |
---|
2808 | rm -rf conftest.one conftest.two conftest.dir |
---|
2809 | echo one > conftest.one |
---|
2810 | echo two > conftest.two |
---|
2811 | mkdir conftest.dir |
---|
2812 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2813 | test -s conftest.one && test -s conftest.two && |
---|
2814 | test -s conftest.dir/conftest.one && |
---|
2815 | test -s conftest.dir/conftest.two |
---|
2816 | then |
---|
2817 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2818 | break 3 |
---|
2819 | fi |
---|
2820 | fi |
---|
2821 | fi |
---|
2822 | done |
---|
2823 | done |
---|
2824 | ;; |
---|
2825 | esac |
---|
2826 | |
---|
2827 | done |
---|
2828 | IFS=$as_save_IFS |
---|
2829 | |
---|
2830 | rm -rf conftest.one conftest.two conftest.dir |
---|
2831 | |
---|
2832 | fi |
---|
2833 | if test "${ac_cv_path_install+set}" = set; then |
---|
2834 | INSTALL=$ac_cv_path_install |
---|
2835 | else |
---|
2836 | # As a last resort, use the slow shell script. Don't cache a |
---|
2837 | # value for INSTALL within a source directory, because that will |
---|
2838 | # break other packages using the cache if that directory is |
---|
2839 | # removed, or if the value is a relative name. |
---|
2840 | INSTALL=$ac_install_sh |
---|
2841 | fi |
---|
2842 | fi |
---|
2843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2844 | $as_echo "$INSTALL" >&6; } |
---|
2845 | |
---|
2846 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2847 | # It thinks the first close brace ends the variable substitution. |
---|
2848 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2849 | |
---|
2850 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2851 | |
---|
2852 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2853 | |
---|
2854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
---|
2855 | $as_echo_n "checking whether build environment is sane... " >&6; } |
---|
2856 | # Reject unsafe characters in $srcdir or the absolute working directory |
---|
2857 | # name. Accept space and tab only in the latter. |
---|
2858 | am_lf=' |
---|
2859 | ' |
---|
2860 | case `pwd` in |
---|
2861 | *[\\\"\#\$\&\'\`$am_lf]*) |
---|
2862 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
---|
2863 | esac |
---|
2864 | case $srcdir in |
---|
2865 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
---|
2866 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
---|
2867 | esac |
---|
2868 | |
---|
2869 | # Do 'set' in a subshell so we don't clobber the current shell's |
---|
2870 | # arguments. Must try -L first in case configure is actually a |
---|
2871 | # symlink; some systems play weird games with the mod time of symlinks |
---|
2872 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
2873 | # directory). |
---|
2874 | if ( |
---|
2875 | am_has_slept=no |
---|
2876 | for am_try in 1 2; do |
---|
2877 | echo "timestamp, slept: $am_has_slept" > conftest.file |
---|
2878 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
---|
2879 | if test "$*" = "X"; then |
---|
2880 | # -L didn't work. |
---|
2881 | set X `ls -t "$srcdir/configure" conftest.file` |
---|
2882 | fi |
---|
2883 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
2884 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
2885 | |
---|
2886 | # If neither matched, then we have a broken ls. This can happen |
---|
2887 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
2888 | # broken ls alias from the environment. This has actually |
---|
2889 | # happened. Such a system could not be considered "sane". |
---|
2890 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
---|
2891 | alias in your environment" "$LINENO" 5 |
---|
2892 | fi |
---|
2893 | if test "$2" = conftest.file || test $am_try -eq 2; then |
---|
2894 | break |
---|
2895 | fi |
---|
2896 | # Just in case. |
---|
2897 | sleep 1 |
---|
2898 | am_has_slept=yes |
---|
2899 | done |
---|
2900 | test "$2" = conftest.file |
---|
2901 | ) |
---|
2902 | then |
---|
2903 | # Ok. |
---|
2904 | : |
---|
2905 | else |
---|
2906 | as_fn_error $? "newly created file is older than distributed files! |
---|
2907 | Check your system clock" "$LINENO" 5 |
---|
2908 | fi |
---|
2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2910 | $as_echo "yes" >&6; } |
---|
2911 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
---|
2912 | # generated files are strictly newer. |
---|
2913 | am_sleep_pid= |
---|
2914 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
---|
2915 | ( sleep 1 ) & |
---|
2916 | am_sleep_pid=$! |
---|
2917 | fi |
---|
2918 | |
---|
2919 | rm -f conftest.file |
---|
2920 | |
---|
2921 | test "$program_prefix" != NONE && |
---|
2922 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
---|
2923 | # Use a double $ so make ignores it. |
---|
2924 | test "$program_suffix" != NONE && |
---|
2925 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
---|
2926 | # Double any \ or $. |
---|
2927 | # By default was `s,x,x', remove it if useless. |
---|
2928 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
---|
2929 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
---|
2930 | |
---|
2931 | # expand $ac_aux_dir to an absolute path |
---|
2932 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
2933 | |
---|
2934 | if test x"${MISSING+set}" != xset; then |
---|
2935 | case $am_aux_dir in |
---|
2936 | *\ * | *\ *) |
---|
2937 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
---|
2938 | *) |
---|
2939 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
---|
2940 | esac |
---|
2941 | fi |
---|
2942 | # Use eval to expand $SHELL |
---|
2943 | if eval "$MISSING --run true"; then |
---|
2944 | am_missing_run="$MISSING --run " |
---|
2945 | else |
---|
2946 | am_missing_run= |
---|
2947 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
---|
2948 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
---|
2949 | fi |
---|
2950 | |
---|
2951 | if test x"${install_sh}" != xset; then |
---|
2952 | case $am_aux_dir in |
---|
2953 | *\ * | *\ *) |
---|
2954 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
---|
2955 | *) |
---|
2956 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
---|
2957 | esac |
---|
2958 | fi |
---|
2959 | |
---|
2960 | # Installed binaries are usually stripped using 'strip' when the user |
---|
2961 | # run "make install-strip". However 'strip' might not be the right |
---|
2962 | # tool to use in cross-compilation environments, therefore Automake |
---|
2963 | # will honor the 'STRIP' environment variable to overrule this program. |
---|
2964 | if test "$cross_compiling" != no; then |
---|
2965 | if test -n "$ac_tool_prefix"; then |
---|
2966 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
2967 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
2968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2969 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2970 | if ${ac_cv_prog_STRIP+:} false; then : |
---|
2971 | $as_echo_n "(cached) " >&6 |
---|
2972 | else |
---|
2973 | if test -n "$STRIP"; then |
---|
2974 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
2975 | else |
---|
2976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2977 | for as_dir in $PATH |
---|
2978 | do |
---|
2979 | IFS=$as_save_IFS |
---|
2980 | test -z "$as_dir" && as_dir=. |
---|
2981 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2982 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2983 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
2984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2985 | break 2 |
---|
2986 | fi |
---|
2987 | done |
---|
2988 | done |
---|
2989 | IFS=$as_save_IFS |
---|
2990 | |
---|
2991 | fi |
---|
2992 | fi |
---|
2993 | STRIP=$ac_cv_prog_STRIP |
---|
2994 | if test -n "$STRIP"; then |
---|
2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
---|
2996 | $as_echo "$STRIP" >&6; } |
---|
2997 | else |
---|
2998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2999 | $as_echo "no" >&6; } |
---|
3000 | fi |
---|
3001 | |
---|
3002 | |
---|
3003 | fi |
---|
3004 | if test -z "$ac_cv_prog_STRIP"; then |
---|
3005 | ac_ct_STRIP=$STRIP |
---|
3006 | # Extract the first word of "strip", so it can be a program name with args. |
---|
3007 | set dummy strip; ac_word=$2 |
---|
3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3009 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3010 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
---|
3011 | $as_echo_n "(cached) " >&6 |
---|
3012 | else |
---|
3013 | if test -n "$ac_ct_STRIP"; then |
---|
3014 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
3015 | else |
---|
3016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3017 | for as_dir in $PATH |
---|
3018 | do |
---|
3019 | IFS=$as_save_IFS |
---|
3020 | test -z "$as_dir" && as_dir=. |
---|
3021 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3022 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3023 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
3024 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3025 | break 2 |
---|
3026 | fi |
---|
3027 | done |
---|
3028 | done |
---|
3029 | IFS=$as_save_IFS |
---|
3030 | |
---|
3031 | fi |
---|
3032 | fi |
---|
3033 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
3034 | if test -n "$ac_ct_STRIP"; then |
---|
3035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
---|
3036 | $as_echo "$ac_ct_STRIP" >&6; } |
---|
3037 | else |
---|
3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3039 | $as_echo "no" >&6; } |
---|
3040 | fi |
---|
3041 | |
---|
3042 | if test "x$ac_ct_STRIP" = x; then |
---|
3043 | STRIP=":" |
---|
3044 | else |
---|
3045 | case $cross_compiling:$ac_tool_warned in |
---|
3046 | yes:) |
---|
3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3048 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3049 | ac_tool_warned=yes ;; |
---|
3050 | esac |
---|
3051 | STRIP=$ac_ct_STRIP |
---|
3052 | fi |
---|
3053 | else |
---|
3054 | STRIP="$ac_cv_prog_STRIP" |
---|
3055 | fi |
---|
3056 | |
---|
3057 | fi |
---|
3058 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
---|
3059 | |
---|
3060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
3061 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
3062 | if test -z "$MKDIR_P"; then |
---|
3063 | if ${ac_cv_path_mkdir+:} false; then : |
---|
3064 | $as_echo_n "(cached) " >&6 |
---|
3065 | else |
---|
3066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3067 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
3068 | do |
---|
3069 | IFS=$as_save_IFS |
---|
3070 | test -z "$as_dir" && as_dir=. |
---|
3071 | for ac_prog in mkdir gmkdir; do |
---|
3072 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3073 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
---|
3074 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
3075 | 'mkdir (GNU coreutils) '* | \ |
---|
3076 | 'mkdir (coreutils) '* | \ |
---|
3077 | 'mkdir (fileutils) '4.1*) |
---|
3078 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
3079 | break 3;; |
---|
3080 | esac |
---|
3081 | done |
---|
3082 | done |
---|
3083 | done |
---|
3084 | IFS=$as_save_IFS |
---|
3085 | |
---|
3086 | fi |
---|
3087 | |
---|
3088 | test -d ./--version && rmdir ./--version |
---|
3089 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
3090 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
3091 | else |
---|
3092 | # As a last resort, use the slow shell script. Don't cache a |
---|
3093 | # value for MKDIR_P within a source directory, because that will |
---|
3094 | # break other packages using the cache if that directory is |
---|
3095 | # removed, or if the value is a relative name. |
---|
3096 | MKDIR_P="$ac_install_sh -d" |
---|
3097 | fi |
---|
3098 | fi |
---|
3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
3100 | $as_echo "$MKDIR_P" >&6; } |
---|
3101 | |
---|
3102 | for ac_prog in gawk mawk nawk awk |
---|
3103 | do |
---|
3104 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3105 | set dummy $ac_prog; ac_word=$2 |
---|
3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3107 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3108 | if ${ac_cv_prog_AWK+:} false; then : |
---|
3109 | $as_echo_n "(cached) " >&6 |
---|
3110 | else |
---|
3111 | if test -n "$AWK"; then |
---|
3112 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
3113 | else |
---|
3114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3115 | for as_dir in $PATH |
---|
3116 | do |
---|
3117 | IFS=$as_save_IFS |
---|
3118 | test -z "$as_dir" && as_dir=. |
---|
3119 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3120 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3121 | ac_cv_prog_AWK="$ac_prog" |
---|
3122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3123 | break 2 |
---|
3124 | fi |
---|
3125 | done |
---|
3126 | done |
---|
3127 | IFS=$as_save_IFS |
---|
3128 | |
---|
3129 | fi |
---|
3130 | fi |
---|
3131 | AWK=$ac_cv_prog_AWK |
---|
3132 | if test -n "$AWK"; then |
---|
3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
---|
3134 | $as_echo "$AWK" >&6; } |
---|
3135 | else |
---|
3136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3137 | $as_echo "no" >&6; } |
---|
3138 | fi |
---|
3139 | |
---|
3140 | |
---|
3141 | test -n "$AWK" && break |
---|
3142 | done |
---|
3143 | |
---|
3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
3145 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
3146 | set x ${MAKE-make} |
---|
3147 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
3148 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
3149 | $as_echo_n "(cached) " >&6 |
---|
3150 | else |
---|
3151 | cat >conftest.make <<\_ACEOF |
---|
3152 | SHELL = /bin/sh |
---|
3153 | all: |
---|
3154 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
3155 | _ACEOF |
---|
3156 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
3157 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
3158 | *@@@%%%=?*=@@@%%%*) |
---|
3159 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
3160 | *) |
---|
3161 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
3162 | esac |
---|
3163 | rm -f conftest.make |
---|
3164 | fi |
---|
3165 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3167 | $as_echo "yes" >&6; } |
---|
3168 | SET_MAKE= |
---|
3169 | else |
---|
3170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3171 | $as_echo "no" >&6; } |
---|
3172 | SET_MAKE="MAKE=${MAKE-make}" |
---|
3173 | fi |
---|
3174 | |
---|
3175 | rm -rf .tst 2>/dev/null |
---|
3176 | mkdir .tst 2>/dev/null |
---|
3177 | if test -d .tst; then |
---|
3178 | am__leading_dot=. |
---|
3179 | else |
---|
3180 | am__leading_dot=_ |
---|
3181 | fi |
---|
3182 | rmdir .tst 2>/dev/null |
---|
3183 | |
---|
3184 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
---|
3185 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
---|
3186 | # is not polluted with repeated "-I." |
---|
3187 | am__isrc=' -I$(srcdir)' |
---|
3188 | # test to see if srcdir already configured |
---|
3189 | if test -f $srcdir/config.status; then |
---|
3190 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
---|
3191 | fi |
---|
3192 | fi |
---|
3193 | |
---|
3194 | # test whether we have cygpath |
---|
3195 | if test -z "$CYGPATH_W"; then |
---|
3196 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
3197 | CYGPATH_W='cygpath -w' |
---|
3198 | else |
---|
3199 | CYGPATH_W=echo |
---|
3200 | fi |
---|
3201 | fi |
---|
3202 | |
---|
3203 | |
---|
3204 | # Define the identity of the package. |
---|
3205 | PACKAGE='adolc' |
---|
3206 | VERSION='2.3.0-trunk' |
---|
3207 | |
---|
3208 | |
---|
3209 | cat >>confdefs.h <<_ACEOF |
---|
3210 | #define PACKAGE "$PACKAGE" |
---|
3211 | _ACEOF |
---|
3212 | |
---|
3213 | |
---|
3214 | cat >>confdefs.h <<_ACEOF |
---|
3215 | #define VERSION "$VERSION" |
---|
3216 | _ACEOF |
---|
3217 | |
---|
3218 | # Some tools Automake needs. |
---|
3219 | |
---|
3220 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
3221 | |
---|
3222 | |
---|
3223 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
3224 | |
---|
3225 | |
---|
3226 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
3227 | |
---|
3228 | |
---|
3229 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
3230 | |
---|
3231 | |
---|
3232 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
3233 | |
---|
3234 | mkdir_p="$MKDIR_P" |
---|
3235 | # We need awk for the "check" target. The system "awk" is bad on |
---|
3236 | # some platforms. |
---|
3237 | # Always define AMTAR for backward compatibility. Yes, it's still used |
---|
3238 | # in the wild :-( We should find a proper way to deprecate it ... |
---|
3239 | AMTAR='$${TAR-tar}' |
---|
3240 | |
---|
3241 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
---|
3242 | |
---|
3243 | |
---|
3244 | |
---|
3245 | |
---|
3246 | |
---|
3247 | # Check whether --enable-silent-rules was given. |
---|
3248 | if test "${enable_silent_rules+set}" = set; then : |
---|
3249 | enableval=$enable_silent_rules; |
---|
3250 | fi |
---|
3251 | |
---|
3252 | case $enable_silent_rules in # ((( |
---|
3253 | yes) AM_DEFAULT_VERBOSITY=0;; |
---|
3254 | no) AM_DEFAULT_VERBOSITY=1;; |
---|
3255 | *) AM_DEFAULT_VERBOSITY=0;; |
---|
3256 | esac |
---|
3257 | am_make=${MAKE-make} |
---|
3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
---|
3259 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
---|
3260 | if ${am_cv_make_support_nested_variables+:} false; then : |
---|
3261 | $as_echo_n "(cached) " >&6 |
---|
3262 | else |
---|
3263 | if $as_echo 'TRUE=$(BAR$(V)) |
---|
3264 | BAR0=false |
---|
3265 | BAR1=true |
---|
3266 | V=1 |
---|
3267 | am__doit: |
---|
3268 | @$(TRUE) |
---|
3269 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
---|
3270 | am_cv_make_support_nested_variables=yes |
---|
3271 | else |
---|
3272 | am_cv_make_support_nested_variables=no |
---|
3273 | fi |
---|
3274 | fi |
---|
3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
---|
3276 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
---|
3277 | if test $am_cv_make_support_nested_variables = yes; then |
---|
3278 | AM_V='$(V)' |
---|
3279 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
---|
3280 | else |
---|
3281 | AM_V=$AM_DEFAULT_VERBOSITY |
---|
3282 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
---|
3283 | fi |
---|
3284 | AM_BACKSLASH='\' |
---|
3285 | |
---|
3286 | |
---|
3287 | if test "x$CFLAGS" == x ; then |
---|
3288 | ac_shell_cflags="not_set" |
---|
3289 | else |
---|
3290 | ac_shell_cflags="$CFLAGS" |
---|
3291 | fi |
---|
3292 | if test "x$CXXFLAGS" == x ; then |
---|
3293 | ac_shell_cxxflags="not_set" |
---|
3294 | else |
---|
3295 | ac_shell_cxxflags="$CXXFLAGS" |
---|
3296 | fi |
---|
3297 | |
---|
3298 | # checks for programs |
---|
3299 | ac_ext=cpp |
---|
3300 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3301 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3302 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3303 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3304 | if test -z "$CXX"; then |
---|
3305 | if test -n "$CCC"; then |
---|
3306 | CXX=$CCC |
---|
3307 | else |
---|
3308 | if test -n "$ac_tool_prefix"; then |
---|
3309 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3310 | do |
---|
3311 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3312 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3314 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3315 | if ${ac_cv_prog_CXX+:} false; then : |
---|
3316 | $as_echo_n "(cached) " >&6 |
---|
3317 | else |
---|
3318 | if test -n "$CXX"; then |
---|
3319 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3320 | else |
---|
3321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3322 | for as_dir in $PATH |
---|
3323 | do |
---|
3324 | IFS=$as_save_IFS |
---|
3325 | test -z "$as_dir" && as_dir=. |
---|
3326 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3327 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3328 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3330 | break 2 |
---|
3331 | fi |
---|
3332 | done |
---|
3333 | done |
---|
3334 | IFS=$as_save_IFS |
---|
3335 | |
---|
3336 | fi |
---|
3337 | fi |
---|
3338 | CXX=$ac_cv_prog_CXX |
---|
3339 | if test -n "$CXX"; then |
---|
3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
3341 | $as_echo "$CXX" >&6; } |
---|
3342 | else |
---|
3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3344 | $as_echo "no" >&6; } |
---|
3345 | fi |
---|
3346 | |
---|
3347 | |
---|
3348 | test -n "$CXX" && break |
---|
3349 | done |
---|
3350 | fi |
---|
3351 | if test -z "$CXX"; then |
---|
3352 | ac_ct_CXX=$CXX |
---|
3353 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3354 | do |
---|
3355 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3356 | set dummy $ac_prog; ac_word=$2 |
---|
3357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3358 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3359 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
3360 | $as_echo_n "(cached) " >&6 |
---|
3361 | else |
---|
3362 | if test -n "$ac_ct_CXX"; then |
---|
3363 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3364 | else |
---|
3365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3366 | for as_dir in $PATH |
---|
3367 | do |
---|
3368 | IFS=$as_save_IFS |
---|
3369 | test -z "$as_dir" && as_dir=. |
---|
3370 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3371 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3372 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3374 | break 2 |
---|
3375 | fi |
---|
3376 | done |
---|
3377 | done |
---|
3378 | IFS=$as_save_IFS |
---|
3379 | |
---|
3380 | fi |
---|
3381 | fi |
---|
3382 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3383 | if test -n "$ac_ct_CXX"; then |
---|
3384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
3385 | $as_echo "$ac_ct_CXX" >&6; } |
---|
3386 | else |
---|
3387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3388 | $as_echo "no" >&6; } |
---|
3389 | fi |
---|
3390 | |
---|
3391 | |
---|
3392 | test -n "$ac_ct_CXX" && break |
---|
3393 | done |
---|
3394 | |
---|
3395 | if test "x$ac_ct_CXX" = x; then |
---|
3396 | CXX="g++" |
---|
3397 | else |
---|
3398 | case $cross_compiling:$ac_tool_warned in |
---|
3399 | yes:) |
---|
3400 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3401 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3402 | ac_tool_warned=yes ;; |
---|
3403 | esac |
---|
3404 | CXX=$ac_ct_CXX |
---|
3405 | fi |
---|
3406 | fi |
---|
3407 | |
---|
3408 | fi |
---|
3409 | fi |
---|
3410 | # Provide some information about the compiler. |
---|
3411 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
3412 | set X $ac_compile |
---|
3413 | ac_compiler=$2 |
---|
3414 | for ac_option in --version -v -V -qversion; do |
---|
3415 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3416 | case "(($ac_try" in |
---|
3417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3418 | *) ac_try_echo=$ac_try;; |
---|
3419 | esac |
---|
3420 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3421 | $as_echo "$ac_try_echo"; } >&5 |
---|
3422 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3423 | ac_status=$? |
---|
3424 | if test -s conftest.err; then |
---|
3425 | sed '10a\ |
---|
3426 | ... rest of stderr output deleted ... |
---|
3427 | 10q' conftest.err >conftest.er1 |
---|
3428 | cat conftest.er1 >&5 |
---|
3429 | fi |
---|
3430 | rm -f conftest.er1 conftest.err |
---|
3431 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3432 | test $ac_status = 0; } |
---|
3433 | done |
---|
3434 | |
---|
3435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3436 | /* end confdefs.h. */ |
---|
3437 | |
---|
3438 | int |
---|
3439 | main () |
---|
3440 | { |
---|
3441 | |
---|
3442 | ; |
---|
3443 | return 0; |
---|
3444 | } |
---|
3445 | _ACEOF |
---|
3446 | ac_clean_files_save=$ac_clean_files |
---|
3447 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
3448 | # Try to create an executable without -o first, disregard a.out. |
---|
3449 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3450 | # of exeext. |
---|
3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
---|
3452 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
---|
3453 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3454 | |
---|
3455 | # The possible output files: |
---|
3456 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
3457 | |
---|
3458 | ac_rmfiles= |
---|
3459 | for ac_file in $ac_files |
---|
3460 | do |
---|
3461 | case $ac_file in |
---|
3462 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3463 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3464 | esac |
---|
3465 | done |
---|
3466 | rm -f $ac_rmfiles |
---|
3467 | |
---|
3468 | if { { ac_try="$ac_link_default" |
---|
3469 | case "(($ac_try" in |
---|
3470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3471 | *) ac_try_echo=$ac_try;; |
---|
3472 | esac |
---|
3473 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3474 | $as_echo "$ac_try_echo"; } >&5 |
---|
3475 | (eval "$ac_link_default") 2>&5 |
---|
3476 | ac_status=$? |
---|
3477 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3478 | test $ac_status = 0; }; then : |
---|
3479 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3480 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3481 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3482 | # so that the user can short-circuit this test for compilers unknown to |
---|
3483 | # Autoconf. |
---|
3484 | for ac_file in $ac_files '' |
---|
3485 | do |
---|
3486 | test -f "$ac_file" || continue |
---|
3487 | case $ac_file in |
---|
3488 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
3489 | ;; |
---|
3490 | [ab].out ) |
---|
3491 | # We found the default executable, but exeext='' is most |
---|
3492 | # certainly right. |
---|
3493 | break;; |
---|
3494 | *.* ) |
---|
3495 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3496 | then :; else |
---|
3497 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3498 | fi |
---|
3499 | # We set ac_cv_exeext here because the later test for it is not |
---|
3500 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3501 | # argument, so we may need to know it at that point already. |
---|
3502 | # Even if this section looks crufty: it has the advantage of |
---|
3503 | # actually working. |
---|
3504 | break;; |
---|
3505 | * ) |
---|
3506 | break;; |
---|
3507 | esac |
---|
3508 | done |
---|
3509 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3510 | |
---|
3511 | else |
---|
3512 | ac_file='' |
---|
3513 | fi |
---|
3514 | if test -z "$ac_file"; then : |
---|
3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3516 | $as_echo "no" >&6; } |
---|
3517 | $as_echo "$as_me: failed program was:" >&5 |
---|
3518 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3519 | |
---|
3520 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3521 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3522 | as_fn_error 77 "C++ compiler cannot create executables |
---|
3523 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3524 | else |
---|
3525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3526 | $as_echo "yes" >&6; } |
---|
3527 | fi |
---|
3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
---|
3529 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
---|
3530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
3531 | $as_echo "$ac_file" >&6; } |
---|
3532 | ac_exeext=$ac_cv_exeext |
---|
3533 | |
---|
3534 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
3535 | ac_clean_files=$ac_clean_files_save |
---|
3536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
3537 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
3538 | if { { ac_try="$ac_link" |
---|
3539 | case "(($ac_try" in |
---|
3540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3541 | *) ac_try_echo=$ac_try;; |
---|
3542 | esac |
---|
3543 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3544 | $as_echo "$ac_try_echo"; } >&5 |
---|
3545 | (eval "$ac_link") 2>&5 |
---|
3546 | ac_status=$? |
---|
3547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3548 | test $ac_status = 0; }; then : |
---|
3549 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3550 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3551 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3552 | # `rm'. |
---|
3553 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3554 | test -f "$ac_file" || continue |
---|
3555 | case $ac_file in |
---|
3556 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3557 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3558 | break;; |
---|
3559 | * ) break;; |
---|
3560 | esac |
---|
3561 | done |
---|
3562 | else |
---|
3563 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3564 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3565 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
3566 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3567 | fi |
---|
3568 | rm -f conftest conftest$ac_cv_exeext |
---|
3569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
3570 | $as_echo "$ac_cv_exeext" >&6; } |
---|
3571 | |
---|
3572 | rm -f conftest.$ac_ext |
---|
3573 | EXEEXT=$ac_cv_exeext |
---|
3574 | ac_exeext=$EXEEXT |
---|
3575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3576 | /* end confdefs.h. */ |
---|
3577 | #include <stdio.h> |
---|
3578 | int |
---|
3579 | main () |
---|
3580 | { |
---|
3581 | FILE *f = fopen ("conftest.out", "w"); |
---|
3582 | return ferror (f) || fclose (f) != 0; |
---|
3583 | |
---|
3584 | ; |
---|
3585 | return 0; |
---|
3586 | } |
---|
3587 | _ACEOF |
---|
3588 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3589 | # Check that the compiler produces executables we can run. If not, either |
---|
3590 | # the compiler is broken, or we cross compile. |
---|
3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3592 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
3593 | if test "$cross_compiling" != yes; then |
---|
3594 | { { ac_try="$ac_link" |
---|
3595 | case "(($ac_try" in |
---|
3596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3597 | *) ac_try_echo=$ac_try;; |
---|
3598 | esac |
---|
3599 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3600 | $as_echo "$ac_try_echo"; } >&5 |
---|
3601 | (eval "$ac_link") 2>&5 |
---|
3602 | ac_status=$? |
---|
3603 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3604 | test $ac_status = 0; } |
---|
3605 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3606 | { { case "(($ac_try" in |
---|
3607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3608 | *) ac_try_echo=$ac_try;; |
---|
3609 | esac |
---|
3610 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3611 | $as_echo "$ac_try_echo"; } >&5 |
---|
3612 | (eval "$ac_try") 2>&5 |
---|
3613 | ac_status=$? |
---|
3614 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3615 | test $ac_status = 0; }; }; then |
---|
3616 | cross_compiling=no |
---|
3617 | else |
---|
3618 | if test "$cross_compiling" = maybe; then |
---|
3619 | cross_compiling=yes |
---|
3620 | else |
---|
3621 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3622 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3623 | as_fn_error $? "cannot run C++ compiled programs. |
---|
3624 | If you meant to cross compile, use \`--host'. |
---|
3625 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3626 | fi |
---|
3627 | fi |
---|
3628 | fi |
---|
3629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3630 | $as_echo "$cross_compiling" >&6; } |
---|
3631 | |
---|
3632 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3633 | ac_clean_files=$ac_clean_files_save |
---|
3634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3635 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3636 | if ${ac_cv_objext+:} false; then : |
---|
3637 | $as_echo_n "(cached) " >&6 |
---|
3638 | else |
---|
3639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3640 | /* end confdefs.h. */ |
---|
3641 | |
---|
3642 | int |
---|
3643 | main () |
---|
3644 | { |
---|
3645 | |
---|
3646 | ; |
---|
3647 | return 0; |
---|
3648 | } |
---|
3649 | _ACEOF |
---|
3650 | rm -f conftest.o conftest.obj |
---|
3651 | if { { ac_try="$ac_compile" |
---|
3652 | case "(($ac_try" in |
---|
3653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3654 | *) ac_try_echo=$ac_try;; |
---|
3655 | esac |
---|
3656 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3657 | $as_echo "$ac_try_echo"; } >&5 |
---|
3658 | (eval "$ac_compile") 2>&5 |
---|
3659 | ac_status=$? |
---|
3660 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3661 | test $ac_status = 0; }; then : |
---|
3662 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3663 | test -f "$ac_file" || continue; |
---|
3664 | case $ac_file in |
---|
3665 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3666 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3667 | break;; |
---|
3668 | esac |
---|
3669 | done |
---|
3670 | else |
---|
3671 | $as_echo "$as_me: failed program was:" >&5 |
---|
3672 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3673 | |
---|
3674 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3675 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3676 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3677 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3678 | fi |
---|
3679 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3680 | fi |
---|
3681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3682 | $as_echo "$ac_cv_objext" >&6; } |
---|
3683 | OBJEXT=$ac_cv_objext |
---|
3684 | ac_objext=$OBJEXT |
---|
3685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
3686 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
3687 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
3688 | $as_echo_n "(cached) " >&6 |
---|
3689 | else |
---|
3690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3691 | /* end confdefs.h. */ |
---|
3692 | |
---|
3693 | int |
---|
3694 | main () |
---|
3695 | { |
---|
3696 | #ifndef __GNUC__ |
---|
3697 | choke me |
---|
3698 | #endif |
---|
3699 | |
---|
3700 | ; |
---|
3701 | return 0; |
---|
3702 | } |
---|
3703 | _ACEOF |
---|
3704 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3705 | ac_compiler_gnu=yes |
---|
3706 | else |
---|
3707 | ac_compiler_gnu=no |
---|
3708 | fi |
---|
3709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3710 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3711 | |
---|
3712 | fi |
---|
3713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3714 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3715 | if test $ac_compiler_gnu = yes; then |
---|
3716 | GXX=yes |
---|
3717 | else |
---|
3718 | GXX= |
---|
3719 | fi |
---|
3720 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3721 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
3723 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
3724 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
3725 | $as_echo_n "(cached) " >&6 |
---|
3726 | else |
---|
3727 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3728 | ac_cxx_werror_flag=yes |
---|
3729 | ac_cv_prog_cxx_g=no |
---|
3730 | CXXFLAGS="-g" |
---|
3731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3732 | /* end confdefs.h. */ |
---|
3733 | |
---|
3734 | int |
---|
3735 | main () |
---|
3736 | { |
---|
3737 | |
---|
3738 | ; |
---|
3739 | return 0; |
---|
3740 | } |
---|
3741 | _ACEOF |
---|
3742 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3743 | ac_cv_prog_cxx_g=yes |
---|
3744 | else |
---|
3745 | CXXFLAGS="" |
---|
3746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3747 | /* end confdefs.h. */ |
---|
3748 | |
---|
3749 | int |
---|
3750 | main () |
---|
3751 | { |
---|
3752 | |
---|
3753 | ; |
---|
3754 | return 0; |
---|
3755 | } |
---|
3756 | _ACEOF |
---|
3757 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3758 | |
---|
3759 | else |
---|
3760 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3761 | CXXFLAGS="-g" |
---|
3762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3763 | /* end confdefs.h. */ |
---|
3764 | |
---|
3765 | int |
---|
3766 | main () |
---|
3767 | { |
---|
3768 | |
---|
3769 | ; |
---|
3770 | return 0; |
---|
3771 | } |
---|
3772 | _ACEOF |
---|
3773 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3774 | ac_cv_prog_cxx_g=yes |
---|
3775 | fi |
---|
3776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3777 | fi |
---|
3778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3779 | fi |
---|
3780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3781 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3782 | fi |
---|
3783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
3784 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
3785 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3786 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3787 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3788 | if test "$GXX" = yes; then |
---|
3789 | CXXFLAGS="-g -O2" |
---|
3790 | else |
---|
3791 | CXXFLAGS="-g" |
---|
3792 | fi |
---|
3793 | else |
---|
3794 | if test "$GXX" = yes; then |
---|
3795 | CXXFLAGS="-O2" |
---|
3796 | else |
---|
3797 | CXXFLAGS= |
---|
3798 | fi |
---|
3799 | fi |
---|
3800 | ac_ext=c |
---|
3801 | ac_cpp='$CPP $CPPFLAGS' |
---|
3802 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3803 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3804 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3805 | DEPDIR="${am__leading_dot}deps" |
---|
3806 | |
---|
3807 | ac_config_commands="$ac_config_commands depfiles" |
---|
3808 | |
---|
3809 | |
---|
3810 | am_make=${MAKE-make} |
---|
3811 | cat > confinc << 'END' |
---|
3812 | am__doit: |
---|
3813 | @echo this is the am__doit target |
---|
3814 | .PHONY: am__doit |
---|
3815 | END |
---|
3816 | # If we don't find an include directive, just comment out the code. |
---|
3817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
---|
3818 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
---|
3819 | am__include="#" |
---|
3820 | am__quote= |
---|
3821 | _am_result=none |
---|
3822 | # First try GNU make style include. |
---|
3823 | echo "include confinc" > confmf |
---|
3824 | # Ignore all kinds of additional output from 'make'. |
---|
3825 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3826 | *the\ am__doit\ target*) |
---|
3827 | am__include=include |
---|
3828 | am__quote= |
---|
3829 | _am_result=GNU |
---|
3830 | ;; |
---|
3831 | esac |
---|
3832 | # Now try BSD make style include. |
---|
3833 | if test "$am__include" = "#"; then |
---|
3834 | echo '.include "confinc"' > confmf |
---|
3835 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3836 | *the\ am__doit\ target*) |
---|
3837 | am__include=.include |
---|
3838 | am__quote="\"" |
---|
3839 | _am_result=BSD |
---|
3840 | ;; |
---|
3841 | esac |
---|
3842 | fi |
---|
3843 | |
---|
3844 | |
---|
3845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
---|
3846 | $as_echo "$_am_result" >&6; } |
---|
3847 | rm -f confinc confmf |
---|
3848 | |
---|
3849 | # Check whether --enable-dependency-tracking was given. |
---|
3850 | if test "${enable_dependency_tracking+set}" = set; then : |
---|
3851 | enableval=$enable_dependency_tracking; |
---|
3852 | fi |
---|
3853 | |
---|
3854 | if test "x$enable_dependency_tracking" != xno; then |
---|
3855 | am_depcomp="$ac_aux_dir/depcomp" |
---|
3856 | AMDEPBACKSLASH='\' |
---|
3857 | am__nodep='_no' |
---|
3858 | fi |
---|
3859 | if test "x$enable_dependency_tracking" != xno; then |
---|
3860 | AMDEP_TRUE= |
---|
3861 | AMDEP_FALSE='#' |
---|
3862 | else |
---|
3863 | AMDEP_TRUE='#' |
---|
3864 | AMDEP_FALSE= |
---|
3865 | fi |
---|
3866 | |
---|
3867 | |
---|
3868 | |
---|
3869 | depcc="$CXX" am_compiler_list= |
---|
3870 | |
---|
3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
3872 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
3873 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
---|
3874 | $as_echo_n "(cached) " >&6 |
---|
3875 | else |
---|
3876 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3877 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3878 | # making bogus files that we don't know about and never remove. For |
---|
3879 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3880 | # making a dummy file named 'D' -- because '-MD' means "put the output |
---|
3881 | # in D". |
---|
3882 | rm -rf conftest.dir |
---|
3883 | mkdir conftest.dir |
---|
3884 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3885 | # using a relative directory. |
---|
3886 | cp "$am_depcomp" conftest.dir |
---|
3887 | cd conftest.dir |
---|
3888 | # We will build objects and dependencies in a subdirectory because |
---|
3889 | # it helps to detect inapplicable dependency modes. For instance |
---|
3890 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3891 | # side effect of compilation, but ICC will put the dependencies in |
---|
3892 | # the current directory while Tru64 will put them in the object |
---|
3893 | # directory. |
---|
3894 | mkdir sub |
---|
3895 | |
---|
3896 | am_cv_CXX_dependencies_compiler_type=none |
---|
3897 | if test "$am_compiler_list" = ""; then |
---|
3898 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3899 | fi |
---|
3900 | am__universal=false |
---|
3901 | case " $depcc " in #( |
---|
3902 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
3903 | esac |
---|
3904 | |
---|
3905 | for depmode in $am_compiler_list; do |
---|
3906 | # Setup a source with many dependencies, because some compilers |
---|
3907 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3908 | # we should not choose a depcomp mode which is confused by this. |
---|
3909 | # |
---|
3910 | # We need to recreate these files for each test, as the compiler may |
---|
3911 | # overwrite some of them when testing with obscure command lines. |
---|
3912 | # This happens at least with the AIX C compiler. |
---|
3913 | : > sub/conftest.c |
---|
3914 | for i in 1 2 3 4 5 6; do |
---|
3915 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3916 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
---|
3917 | # Solaris 10 /bin/sh. |
---|
3918 | echo '/* dummy */' > sub/conftst$i.h |
---|
3919 | done |
---|
3920 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3921 | |
---|
3922 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
---|
3923 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3924 | # handle '-M -o', and we need to detect this. Also, some Intel |
---|
3925 | # versions had trouble with output in subdirs. |
---|
3926 | am__obj=sub/conftest.${OBJEXT-o} |
---|
3927 | am__minus_obj="-o $am__obj" |
---|
3928 | case $depmode in |
---|
3929 | gcc) |
---|
3930 | # This depmode causes a compiler race in universal mode. |
---|
3931 | test "$am__universal" = false || continue |
---|
3932 | ;; |
---|
3933 | nosideeffect) |
---|
3934 | # After this tag, mechanisms are not by side-effect, so they'll |
---|
3935 | # only be used when explicitly requested. |
---|
3936 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3937 | continue |
---|
3938 | else |
---|
3939 | break |
---|
3940 | fi |
---|
3941 | ;; |
---|
3942 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
3943 | # This compiler won't grok '-c -o', but also, the minuso test has |
---|
3944 | # not run yet. These depmodes are late enough in the game, and |
---|
3945 | # so weak that their functioning should not be impacted. |
---|
3946 | am__obj=conftest.${OBJEXT-o} |
---|
3947 | am__minus_obj= |
---|
3948 | ;; |
---|
3949 | none) break ;; |
---|
3950 | esac |
---|
3951 | if depmode=$depmode \ |
---|
3952 | source=sub/conftest.c object=$am__obj \ |
---|
3953 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3954 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
3955 | >/dev/null 2>conftest.err && |
---|
3956 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3957 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3958 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
3959 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3960 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3961 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3962 | # that says an option was ignored or not supported. |
---|
3963 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3964 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3965 | # The diagnosis changed in icc 8.0: |
---|
3966 | # icc: Command line remark: option '-MP' not supported |
---|
3967 | if (grep 'ignoring option' conftest.err || |
---|
3968 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3969 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
3970 | break |
---|
3971 | fi |
---|
3972 | fi |
---|
3973 | done |
---|
3974 | |
---|
3975 | cd .. |
---|
3976 | rm -rf conftest.dir |
---|
3977 | else |
---|
3978 | am_cv_CXX_dependencies_compiler_type=none |
---|
3979 | fi |
---|
3980 | |
---|
3981 | fi |
---|
3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
3983 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
---|
3984 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
3985 | |
---|
3986 | if |
---|
3987 | test "x$enable_dependency_tracking" != xno \ |
---|
3988 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
3989 | am__fastdepCXX_TRUE= |
---|
3990 | am__fastdepCXX_FALSE='#' |
---|
3991 | else |
---|
3992 | am__fastdepCXX_TRUE='#' |
---|
3993 | am__fastdepCXX_FALSE= |
---|
3994 | fi |
---|
3995 | |
---|
3996 | |
---|
3997 | ac_ext=c |
---|
3998 | ac_cpp='$CPP $CPPFLAGS' |
---|
3999 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4000 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4001 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4002 | if test -n "$ac_tool_prefix"; then |
---|
4003 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
4004 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
4005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4006 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4007 | if ${ac_cv_prog_CC+:} false; then : |
---|
4008 | $as_echo_n "(cached) " >&6 |
---|
4009 | else |
---|
4010 | if test -n "$CC"; then |
---|
4011 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4012 | else |
---|
4013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4014 | for as_dir in $PATH |
---|
4015 | do |
---|
4016 | IFS=$as_save_IFS |
---|
4017 | test -z "$as_dir" && as_dir=. |
---|
4018 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4019 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4020 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
4021 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4022 | break 2 |
---|
4023 | fi |
---|
4024 | done |
---|
4025 | done |
---|
4026 | IFS=$as_save_IFS |
---|
4027 | |
---|
4028 | fi |
---|
4029 | fi |
---|
4030 | CC=$ac_cv_prog_CC |
---|
4031 | if test -n "$CC"; then |
---|
4032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4033 | $as_echo "$CC" >&6; } |
---|
4034 | else |
---|
4035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4036 | $as_echo "no" >&6; } |
---|
4037 | fi |
---|
4038 | |
---|
4039 | |
---|
4040 | fi |
---|
4041 | if test -z "$ac_cv_prog_CC"; then |
---|
4042 | ac_ct_CC=$CC |
---|
4043 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
4044 | set dummy gcc; ac_word=$2 |
---|
4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4046 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4047 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
4048 | $as_echo_n "(cached) " >&6 |
---|
4049 | else |
---|
4050 | if test -n "$ac_ct_CC"; then |
---|
4051 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
4052 | else |
---|
4053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4054 | for as_dir in $PATH |
---|
4055 | do |
---|
4056 | IFS=$as_save_IFS |
---|
4057 | test -z "$as_dir" && as_dir=. |
---|
4058 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4059 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4060 | ac_cv_prog_ac_ct_CC="gcc" |
---|
4061 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4062 | break 2 |
---|
4063 | fi |
---|
4064 | done |
---|
4065 | done |
---|
4066 | IFS=$as_save_IFS |
---|
4067 | |
---|
4068 | fi |
---|
4069 | fi |
---|
4070 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
4071 | if test -n "$ac_ct_CC"; then |
---|
4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
4073 | $as_echo "$ac_ct_CC" >&6; } |
---|
4074 | else |
---|
4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4076 | $as_echo "no" >&6; } |
---|
4077 | fi |
---|
4078 | |
---|
4079 | if test "x$ac_ct_CC" = x; then |
---|
4080 | CC="" |
---|
4081 | else |
---|
4082 | case $cross_compiling:$ac_tool_warned in |
---|
4083 | yes:) |
---|
4084 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4085 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4086 | ac_tool_warned=yes ;; |
---|
4087 | esac |
---|
4088 | CC=$ac_ct_CC |
---|
4089 | fi |
---|
4090 | else |
---|
4091 | CC="$ac_cv_prog_CC" |
---|
4092 | fi |
---|
4093 | |
---|
4094 | if test -z "$CC"; then |
---|
4095 | if test -n "$ac_tool_prefix"; then |
---|
4096 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
4097 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4099 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4100 | if ${ac_cv_prog_CC+:} false; then : |
---|
4101 | $as_echo_n "(cached) " >&6 |
---|
4102 | else |
---|
4103 | if test -n "$CC"; then |
---|
4104 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4105 | else |
---|
4106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4107 | for as_dir in $PATH |
---|
4108 | do |
---|
4109 | IFS=$as_save_IFS |
---|
4110 | test -z "$as_dir" && as_dir=. |
---|
4111 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4112 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4113 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
4114 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4115 | break 2 |
---|
4116 | fi |
---|
4117 | done |
---|
4118 | done |
---|
4119 | IFS=$as_save_IFS |
---|
4120 | |
---|
4121 | fi |
---|
4122 | fi |
---|
4123 | CC=$ac_cv_prog_CC |
---|
4124 | if test -n "$CC"; then |
---|
4125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4126 | $as_echo "$CC" >&6; } |
---|
4127 | else |
---|
4128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4129 | $as_echo "no" >&6; } |
---|
4130 | fi |
---|
4131 | |
---|
4132 | |
---|
4133 | fi |
---|
4134 | fi |
---|
4135 | if test -z "$CC"; then |
---|
4136 | # Extract the first word of "cc", so it can be a program name with args. |
---|
4137 | set dummy cc; ac_word=$2 |
---|
4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4139 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4140 | if ${ac_cv_prog_CC+:} false; then : |
---|
4141 | $as_echo_n "(cached) " >&6 |
---|
4142 | else |
---|
4143 | if test -n "$CC"; then |
---|
4144 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4145 | else |
---|
4146 | ac_prog_rejected=no |
---|
4147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4148 | for as_dir in $PATH |
---|
4149 | do |
---|
4150 | IFS=$as_save_IFS |
---|
4151 | test -z "$as_dir" && as_dir=. |
---|
4152 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4153 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4154 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
4155 | ac_prog_rejected=yes |
---|
4156 | continue |
---|
4157 | fi |
---|
4158 | ac_cv_prog_CC="cc" |
---|
4159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4160 | break 2 |
---|
4161 | fi |
---|
4162 | done |
---|
4163 | done |
---|
4164 | IFS=$as_save_IFS |
---|
4165 | |
---|
4166 | if test $ac_prog_rejected = yes; then |
---|
4167 | # We found a bogon in the path, so make sure we never use it. |
---|
4168 | set dummy $ac_cv_prog_CC |
---|
4169 | shift |
---|
4170 | if test $# != 0; then |
---|
4171 | # We chose a different compiler from the bogus one. |
---|
4172 | # However, it has the same basename, so the bogon will be chosen |
---|
4173 | # first if we set CC to just the basename; use the full file name. |
---|
4174 | shift |
---|
4175 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
4176 | fi |
---|
4177 | fi |
---|
4178 | fi |
---|
4179 | fi |
---|
4180 | CC=$ac_cv_prog_CC |
---|
4181 | if test -n "$CC"; then |
---|
4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4183 | $as_echo "$CC" >&6; } |
---|
4184 | else |
---|
4185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4186 | $as_echo "no" >&6; } |
---|
4187 | fi |
---|
4188 | |
---|
4189 | |
---|
4190 | fi |
---|
4191 | if test -z "$CC"; then |
---|
4192 | if test -n "$ac_tool_prefix"; then |
---|
4193 | for ac_prog in cl.exe |
---|
4194 | do |
---|
4195 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
4196 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4198 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4199 | if ${ac_cv_prog_CC+:} false; then : |
---|
4200 | $as_echo_n "(cached) " >&6 |
---|
4201 | else |
---|
4202 | if test -n "$CC"; then |
---|
4203 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4204 | else |
---|
4205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4206 | for as_dir in $PATH |
---|
4207 | do |
---|
4208 | IFS=$as_save_IFS |
---|
4209 | test -z "$as_dir" && as_dir=. |
---|
4210 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4211 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4212 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
4213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4214 | break 2 |
---|
4215 | fi |
---|
4216 | done |
---|
4217 | done |
---|
4218 | IFS=$as_save_IFS |
---|
4219 | |
---|
4220 | fi |
---|
4221 | fi |
---|
4222 | CC=$ac_cv_prog_CC |
---|
4223 | if test -n "$CC"; then |
---|
4224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4225 | $as_echo "$CC" >&6; } |
---|
4226 | else |
---|
4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4228 | $as_echo "no" >&6; } |
---|
4229 | fi |
---|
4230 | |
---|
4231 | |
---|
4232 | test -n "$CC" && break |
---|
4233 | done |
---|
4234 | fi |
---|
4235 | if test -z "$CC"; then |
---|
4236 | ac_ct_CC=$CC |
---|
4237 | for ac_prog in cl.exe |
---|
4238 | do |
---|
4239 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4240 | set dummy $ac_prog; ac_word=$2 |
---|
4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4242 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4243 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
4244 | $as_echo_n "(cached) " >&6 |
---|
4245 | else |
---|
4246 | if test -n "$ac_ct_CC"; then |
---|
4247 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
4248 | else |
---|
4249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4250 | for as_dir in $PATH |
---|
4251 | do |
---|
4252 | IFS=$as_save_IFS |
---|
4253 | test -z "$as_dir" && as_dir=. |
---|
4254 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4255 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4256 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
4257 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4258 | break 2 |
---|
4259 | fi |
---|
4260 | done |
---|
4261 | done |
---|
4262 | IFS=$as_save_IFS |
---|
4263 | |
---|
4264 | fi |
---|
4265 | fi |
---|
4266 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
4267 | if test -n "$ac_ct_CC"; then |
---|
4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
4269 | $as_echo "$ac_ct_CC" >&6; } |
---|
4270 | else |
---|
4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4272 | $as_echo "no" >&6; } |
---|
4273 | fi |
---|
4274 | |
---|
4275 | |
---|
4276 | test -n "$ac_ct_CC" && break |
---|
4277 | done |
---|
4278 | |
---|
4279 | if test "x$ac_ct_CC" = x; then |
---|
4280 | CC="" |
---|
4281 | else |
---|
4282 | case $cross_compiling:$ac_tool_warned in |
---|
4283 | yes:) |
---|
4284 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4285 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4286 | ac_tool_warned=yes ;; |
---|
4287 | esac |
---|
4288 | CC=$ac_ct_CC |
---|
4289 | fi |
---|
4290 | fi |
---|
4291 | |
---|
4292 | fi |
---|
4293 | |
---|
4294 | |
---|
4295 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4296 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4297 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
4298 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4299 | |
---|
4300 | # Provide some information about the compiler. |
---|
4301 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
4302 | set X $ac_compile |
---|
4303 | ac_compiler=$2 |
---|
4304 | for ac_option in --version -v -V -qversion; do |
---|
4305 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
4306 | case "(($ac_try" in |
---|
4307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4308 | *) ac_try_echo=$ac_try;; |
---|
4309 | esac |
---|
4310 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4311 | $as_echo "$ac_try_echo"; } >&5 |
---|
4312 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
4313 | ac_status=$? |
---|
4314 | if test -s conftest.err; then |
---|
4315 | sed '10a\ |
---|
4316 | ... rest of stderr output deleted ... |
---|
4317 | 10q' conftest.err >conftest.er1 |
---|
4318 | cat conftest.er1 >&5 |
---|
4319 | fi |
---|
4320 | rm -f conftest.er1 conftest.err |
---|
4321 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4322 | test $ac_status = 0; } |
---|
4323 | done |
---|
4324 | |
---|
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
4326 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
4327 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
4328 | $as_echo_n "(cached) " >&6 |
---|
4329 | else |
---|
4330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4331 | /* end confdefs.h. */ |
---|
4332 | |
---|
4333 | int |
---|
4334 | main () |
---|
4335 | { |
---|
4336 | #ifndef __GNUC__ |
---|
4337 | choke me |
---|
4338 | #endif |
---|
4339 | |
---|
4340 | ; |
---|
4341 | return 0; |
---|
4342 | } |
---|
4343 | _ACEOF |
---|
4344 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4345 | ac_compiler_gnu=yes |
---|
4346 | else |
---|
4347 | ac_compiler_gnu=no |
---|
4348 | fi |
---|
4349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4350 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
4351 | |
---|
4352 | fi |
---|
4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
4354 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
4355 | if test $ac_compiler_gnu = yes; then |
---|
4356 | GCC=yes |
---|
4357 | else |
---|
4358 | GCC= |
---|
4359 | fi |
---|
4360 | ac_test_CFLAGS=${CFLAGS+set} |
---|
4361 | ac_save_CFLAGS=$CFLAGS |
---|
4362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
4363 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
4364 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
4365 | $as_echo_n "(cached) " >&6 |
---|
4366 | else |
---|
4367 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
4368 | ac_c_werror_flag=yes |
---|
4369 | ac_cv_prog_cc_g=no |
---|
4370 | CFLAGS="-g" |
---|
4371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4372 | /* end confdefs.h. */ |
---|
4373 | |
---|
4374 | int |
---|
4375 | main () |
---|
4376 | { |
---|
4377 | |
---|
4378 | ; |
---|
4379 | return 0; |
---|
4380 | } |
---|
4381 | _ACEOF |
---|
4382 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4383 | ac_cv_prog_cc_g=yes |
---|
4384 | else |
---|
4385 | CFLAGS="" |
---|
4386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4387 | /* end confdefs.h. */ |
---|
4388 | |
---|
4389 | int |
---|
4390 | main () |
---|
4391 | { |
---|
4392 | |
---|
4393 | ; |
---|
4394 | return 0; |
---|
4395 | } |
---|
4396 | _ACEOF |
---|
4397 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4398 | |
---|
4399 | else |
---|
4400 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4401 | CFLAGS="-g" |
---|
4402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4403 | /* end confdefs.h. */ |
---|
4404 | |
---|
4405 | int |
---|
4406 | main () |
---|
4407 | { |
---|
4408 | |
---|
4409 | ; |
---|
4410 | return 0; |
---|
4411 | } |
---|
4412 | _ACEOF |
---|
4413 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4414 | ac_cv_prog_cc_g=yes |
---|
4415 | fi |
---|
4416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4417 | fi |
---|
4418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4419 | fi |
---|
4420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4421 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4422 | fi |
---|
4423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
4424 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
4425 | if test "$ac_test_CFLAGS" = set; then |
---|
4426 | CFLAGS=$ac_save_CFLAGS |
---|
4427 | elif test $ac_cv_prog_cc_g = yes; then |
---|
4428 | if test "$GCC" = yes; then |
---|
4429 | CFLAGS="-g -O2" |
---|
4430 | else |
---|
4431 | CFLAGS="-g" |
---|
4432 | fi |
---|
4433 | else |
---|
4434 | if test "$GCC" = yes; then |
---|
4435 | CFLAGS="-O2" |
---|
4436 | else |
---|
4437 | CFLAGS= |
---|
4438 | fi |
---|
4439 | fi |
---|
4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
4441 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
4442 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
4443 | $as_echo_n "(cached) " >&6 |
---|
4444 | else |
---|
4445 | ac_cv_prog_cc_c89=no |
---|
4446 | ac_save_CC=$CC |
---|
4447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4448 | /* end confdefs.h. */ |
---|
4449 | #include <stdarg.h> |
---|
4450 | #include <stdio.h> |
---|
4451 | struct stat; |
---|
4452 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
4453 | struct buf { int x; }; |
---|
4454 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
4455 | static char *e (p, i) |
---|
4456 | char **p; |
---|
4457 | int i; |
---|
4458 | { |
---|
4459 | return p[i]; |
---|
4460 | } |
---|
4461 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
4462 | { |
---|
4463 | char *s; |
---|
4464 | va_list v; |
---|
4465 | va_start (v,p); |
---|
4466 | s = g (p, va_arg (v,int)); |
---|
4467 | va_end (v); |
---|
4468 | return s; |
---|
4469 | } |
---|
4470 | |
---|
4471 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
4472 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
4473 | These don't provoke an error unfortunately, instead are silently treated |
---|
4474 | as 'x'. The following induces an error, until -std is added to get |
---|
4475 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
4476 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
4477 | that's true only with -std. */ |
---|
4478 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
4479 | |
---|
4480 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
4481 | inside strings and character constants. */ |
---|
4482 | #define FOO(x) 'x' |
---|
4483 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
4484 | |
---|
4485 | int test (int i, double x); |
---|
4486 | struct s1 {int (*f) (int a);}; |
---|
4487 | struct s2 {int (*f) (double a);}; |
---|
4488 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
4489 | int argc; |
---|
4490 | char **argv; |
---|
4491 | int |
---|
4492 | main () |
---|
4493 | { |
---|
4494 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
4495 | ; |
---|
4496 | return 0; |
---|
4497 | } |
---|
4498 | _ACEOF |
---|
4499 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
4500 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
4501 | do |
---|
4502 | CC="$ac_save_CC $ac_arg" |
---|
4503 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4504 | ac_cv_prog_cc_c89=$ac_arg |
---|
4505 | fi |
---|
4506 | rm -f core conftest.err conftest.$ac_objext |
---|
4507 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
4508 | done |
---|
4509 | rm -f conftest.$ac_ext |
---|
4510 | CC=$ac_save_CC |
---|
4511 | |
---|
4512 | fi |
---|
4513 | # AC_CACHE_VAL |
---|
4514 | case "x$ac_cv_prog_cc_c89" in |
---|
4515 | x) |
---|
4516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
4517 | $as_echo "none needed" >&6; } ;; |
---|
4518 | xno) |
---|
4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
4520 | $as_echo "unsupported" >&6; } ;; |
---|
4521 | *) |
---|
4522 | CC="$CC $ac_cv_prog_cc_c89" |
---|
4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
4524 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
4525 | esac |
---|
4526 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
4527 | |
---|
4528 | fi |
---|
4529 | |
---|
4530 | ac_ext=c |
---|
4531 | ac_cpp='$CPP $CPPFLAGS' |
---|
4532 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4533 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4534 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4535 | |
---|
4536 | depcc="$CC" am_compiler_list= |
---|
4537 | |
---|
4538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4539 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4540 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
---|
4541 | $as_echo_n "(cached) " >&6 |
---|
4542 | else |
---|
4543 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4544 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4545 | # making bogus files that we don't know about and never remove. For |
---|
4546 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4547 | # making a dummy file named 'D' -- because '-MD' means "put the output |
---|
4548 | # in D". |
---|
4549 | rm -rf conftest.dir |
---|
4550 | mkdir conftest.dir |
---|
4551 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4552 | # using a relative directory. |
---|
4553 | cp "$am_depcomp" conftest.dir |
---|
4554 | cd conftest.dir |
---|
4555 | # We will build objects and dependencies in a subdirectory because |
---|
4556 | # it helps to detect inapplicable dependency modes. For instance |
---|
4557 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4558 | # side effect of compilation, but ICC will put the dependencies in |
---|
4559 | # the current directory while Tru64 will put them in the object |
---|
4560 | # directory. |
---|
4561 | mkdir sub |
---|
4562 | |
---|
4563 | am_cv_CC_dependencies_compiler_type=none |
---|
4564 | if test "$am_compiler_list" = ""; then |
---|
4565 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4566 | fi |
---|
4567 | am__universal=false |
---|
4568 | case " $depcc " in #( |
---|
4569 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
4570 | esac |
---|
4571 | |
---|
4572 | for depmode in $am_compiler_list; do |
---|
4573 | # Setup a source with many dependencies, because some compilers |
---|
4574 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4575 | # we should not choose a depcomp mode which is confused by this. |
---|
4576 | # |
---|
4577 | # We need to recreate these files for each test, as the compiler may |
---|
4578 | # overwrite some of them when testing with obscure command lines. |
---|
4579 | # This happens at least with the AIX C compiler. |
---|
4580 | : > sub/conftest.c |
---|
4581 | for i in 1 2 3 4 5 6; do |
---|
4582 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4583 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
---|
4584 | # Solaris 10 /bin/sh. |
---|
4585 | echo '/* dummy */' > sub/conftst$i.h |
---|
4586 | done |
---|
4587 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4588 | |
---|
4589 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
---|
4590 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4591 | # handle '-M -o', and we need to detect this. Also, some Intel |
---|
4592 | # versions had trouble with output in subdirs. |
---|
4593 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4594 | am__minus_obj="-o $am__obj" |
---|
4595 | case $depmode in |
---|
4596 | gcc) |
---|
4597 | # This depmode causes a compiler race in universal mode. |
---|
4598 | test "$am__universal" = false || continue |
---|
4599 | ;; |
---|
4600 | nosideeffect) |
---|
4601 | # After this tag, mechanisms are not by side-effect, so they'll |
---|
4602 | # only be used when explicitly requested. |
---|
4603 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4604 | continue |
---|
4605 | else |
---|
4606 | break |
---|
4607 | fi |
---|
4608 | ;; |
---|
4609 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4610 | # This compiler won't grok '-c -o', but also, the minuso test has |
---|
4611 | # not run yet. These depmodes are late enough in the game, and |
---|
4612 | # so weak that their functioning should not be impacted. |
---|
4613 | am__obj=conftest.${OBJEXT-o} |
---|
4614 | am__minus_obj= |
---|
4615 | ;; |
---|
4616 | none) break ;; |
---|
4617 | esac |
---|
4618 | if depmode=$depmode \ |
---|
4619 | source=sub/conftest.c object=$am__obj \ |
---|
4620 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4621 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4622 | >/dev/null 2>conftest.err && |
---|
4623 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4624 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4625 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4626 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4627 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4628 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4629 | # that says an option was ignored or not supported. |
---|
4630 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4631 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4632 | # The diagnosis changed in icc 8.0: |
---|
4633 | # icc: Command line remark: option '-MP' not supported |
---|
4634 | if (grep 'ignoring option' conftest.err || |
---|
4635 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4636 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
4637 | break |
---|
4638 | fi |
---|
4639 | fi |
---|
4640 | done |
---|
4641 | |
---|
4642 | cd .. |
---|
4643 | rm -rf conftest.dir |
---|
4644 | else |
---|
4645 | am_cv_CC_dependencies_compiler_type=none |
---|
4646 | fi |
---|
4647 | |
---|
4648 | fi |
---|
4649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
4650 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
---|
4651 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
4652 | |
---|
4653 | if |
---|
4654 | test "x$enable_dependency_tracking" != xno \ |
---|
4655 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
4656 | am__fastdepCC_TRUE= |
---|
4657 | am__fastdepCC_FALSE='#' |
---|
4658 | else |
---|
4659 | am__fastdepCC_TRUE='#' |
---|
4660 | am__fastdepCC_FALSE= |
---|
4661 | fi |
---|
4662 | |
---|
4663 | |
---|
4664 | ac_ext=c |
---|
4665 | ac_cpp='$CPP $CPPFLAGS' |
---|
4666 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4667 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4668 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
4670 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
4671 | # On Suns, sometimes $CPP names a directory. |
---|
4672 | if test -n "$CPP" && test -d "$CPP"; then |
---|
4673 | CPP= |
---|
4674 | fi |
---|
4675 | if test -z "$CPP"; then |
---|
4676 | if ${ac_cv_prog_CPP+:} false; then : |
---|
4677 | $as_echo_n "(cached) " >&6 |
---|
4678 | else |
---|
4679 | # Double quotes because CPP needs to be expanded |
---|
4680 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
4681 | do |
---|
4682 | ac_preproc_ok=false |
---|
4683 | for ac_c_preproc_warn_flag in '' yes |
---|
4684 | do |
---|
4685 | # Use a header file that comes with gcc, so configuring glibc |
---|
4686 | # with a fresh cross-compiler works. |
---|
4687 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4688 | # <limits.h> exists even on freestanding compilers. |
---|
4689 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4690 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4692 | /* end confdefs.h. */ |
---|
4693 | #ifdef __STDC__ |
---|
4694 | # include <limits.h> |
---|
4695 | #else |
---|
4696 | # include <assert.h> |
---|
4697 | #endif |
---|
4698 | Syntax error |
---|
4699 | _ACEOF |
---|
4700 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4701 | |
---|
4702 | else |
---|
4703 | # Broken: fails on valid input. |
---|
4704 | continue |
---|
4705 | fi |
---|
4706 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4707 | |
---|
4708 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4709 | # can be detected and how. |
---|
4710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4711 | /* end confdefs.h. */ |
---|
4712 | #include <ac_nonexistent.h> |
---|
4713 | _ACEOF |
---|
4714 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4715 | # Broken: success on invalid input. |
---|
4716 | continue |
---|
4717 | else |
---|
4718 | # Passes both tests. |
---|
4719 | ac_preproc_ok=: |
---|
4720 | break |
---|
4721 | fi |
---|
4722 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4723 | |
---|
4724 | done |
---|
4725 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4726 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4727 | if $ac_preproc_ok; then : |
---|
4728 | break |
---|
4729 | fi |
---|
4730 | |
---|
4731 | done |
---|
4732 | ac_cv_prog_CPP=$CPP |
---|
4733 | |
---|
4734 | fi |
---|
4735 | CPP=$ac_cv_prog_CPP |
---|
4736 | else |
---|
4737 | ac_cv_prog_CPP=$CPP |
---|
4738 | fi |
---|
4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
4740 | $as_echo "$CPP" >&6; } |
---|
4741 | ac_preproc_ok=false |
---|
4742 | for ac_c_preproc_warn_flag in '' yes |
---|
4743 | do |
---|
4744 | # Use a header file that comes with gcc, so configuring glibc |
---|
4745 | # with a fresh cross-compiler works. |
---|
4746 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4747 | # <limits.h> exists even on freestanding compilers. |
---|
4748 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4749 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4751 | /* end confdefs.h. */ |
---|
4752 | #ifdef __STDC__ |
---|
4753 | # include <limits.h> |
---|
4754 | #else |
---|
4755 | # include <assert.h> |
---|
4756 | #endif |
---|
4757 | Syntax error |
---|
4758 | _ACEOF |
---|
4759 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4760 | |
---|
4761 | else |
---|
4762 | # Broken: fails on valid input. |
---|
4763 | continue |
---|
4764 | fi |
---|
4765 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4766 | |
---|
4767 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4768 | # can be detected and how. |
---|
4769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4770 | /* end confdefs.h. */ |
---|
4771 | #include <ac_nonexistent.h> |
---|
4772 | _ACEOF |
---|
4773 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4774 | # Broken: success on invalid input. |
---|
4775 | continue |
---|
4776 | else |
---|
4777 | # Passes both tests. |
---|
4778 | ac_preproc_ok=: |
---|
4779 | break |
---|
4780 | fi |
---|
4781 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4782 | |
---|
4783 | done |
---|
4784 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4785 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4786 | if $ac_preproc_ok; then : |
---|
4787 | |
---|
4788 | else |
---|
4789 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4790 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4791 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
4792 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4793 | fi |
---|
4794 | |
---|
4795 | ac_ext=c |
---|
4796 | ac_cpp='$CPP $CPPFLAGS' |
---|
4797 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4798 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4799 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4800 | |
---|
4801 | |
---|
4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
---|
4803 | $as_echo_n "checking whether ln -s works... " >&6; } |
---|
4804 | LN_S=$as_ln_s |
---|
4805 | if test "$LN_S" = "ln -s"; then |
---|
4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
4807 | $as_echo "yes" >&6; } |
---|
4808 | else |
---|
4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
---|
4810 | $as_echo "no, using $LN_S" >&6; } |
---|
4811 | fi |
---|
4812 | |
---|
4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
4814 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
4815 | set x ${MAKE-make} |
---|
4816 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
4817 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
4818 | $as_echo_n "(cached) " >&6 |
---|
4819 | else |
---|
4820 | cat >conftest.make <<\_ACEOF |
---|
4821 | SHELL = /bin/sh |
---|
4822 | all: |
---|
4823 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
4824 | _ACEOF |
---|
4825 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
4826 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
4827 | *@@@%%%=?*=@@@%%%*) |
---|
4828 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
4829 | *) |
---|
4830 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
4831 | esac |
---|
4832 | rm -f conftest.make |
---|
4833 | fi |
---|
4834 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
4836 | $as_echo "yes" >&6; } |
---|
4837 | SET_MAKE= |
---|
4838 | else |
---|
4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4840 | $as_echo "no" >&6; } |
---|
4841 | SET_MAKE="MAKE=${MAKE-make}" |
---|
4842 | fi |
---|
4843 | |
---|
4844 | # Make sure we can run config.sub. |
---|
4845 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
4846 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
---|
4847 | |
---|
4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
---|
4849 | $as_echo_n "checking build system type... " >&6; } |
---|
4850 | if ${ac_cv_build+:} false; then : |
---|
4851 | $as_echo_n "(cached) " >&6 |
---|
4852 | else |
---|
4853 | ac_build_alias=$build_alias |
---|
4854 | test "x$ac_build_alias" = x && |
---|
4855 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
4856 | test "x$ac_build_alias" = x && |
---|
4857 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
---|
4858 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
4859 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
---|
4860 | |
---|
4861 | fi |
---|
4862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
---|
4863 | $as_echo "$ac_cv_build" >&6; } |
---|
4864 | case $ac_cv_build in |
---|
4865 | *-*-*) ;; |
---|
4866 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
---|
4867 | esac |
---|
4868 | build=$ac_cv_build |
---|
4869 | ac_save_IFS=$IFS; IFS='-' |
---|
4870 | set x $ac_cv_build |
---|
4871 | shift |
---|
4872 | build_cpu=$1 |
---|
4873 | build_vendor=$2 |
---|
4874 | shift; shift |
---|
4875 | # Remember, the first character of IFS is used to create $*, |
---|
4876 | # except with old shells: |
---|
4877 | build_os=$* |
---|
4878 | IFS=$ac_save_IFS |
---|
4879 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
4880 | |
---|
4881 | |
---|
4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
---|
4883 | $as_echo_n "checking host system type... " >&6; } |
---|
4884 | if ${ac_cv_host+:} false; then : |
---|
4885 | $as_echo_n "(cached) " >&6 |
---|
4886 | else |
---|
4887 | if test "x$host_alias" = x; then |
---|
4888 | ac_cv_host=$ac_cv_build |
---|
4889 | else |
---|
4890 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
---|
4891 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
---|
4892 | fi |
---|
4893 | |
---|
4894 | fi |
---|
4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
---|
4896 | $as_echo "$ac_cv_host" >&6; } |
---|
4897 | case $ac_cv_host in |
---|
4898 | *-*-*) ;; |
---|
4899 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
---|
4900 | esac |
---|
4901 | host=$ac_cv_host |
---|
4902 | ac_save_IFS=$IFS; IFS='-' |
---|
4903 | set x $ac_cv_host |
---|
4904 | shift |
---|
4905 | host_cpu=$1 |
---|
4906 | host_vendor=$2 |
---|
4907 | shift; shift |
---|
4908 | # Remember, the first character of IFS is used to create $*, |
---|
4909 | # except with old shells: |
---|
4910 | host_os=$* |
---|
4911 | IFS=$ac_save_IFS |
---|
4912 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
4913 | |
---|
4914 | |
---|
4915 | enable_win32_dll=yes |
---|
4916 | |
---|
4917 | case $host in |
---|
4918 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) |
---|
4919 | if test -n "$ac_tool_prefix"; then |
---|
4920 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
---|
4921 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
---|
4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4923 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4924 | if ${ac_cv_prog_AS+:} false; then : |
---|
4925 | $as_echo_n "(cached) " >&6 |
---|
4926 | else |
---|
4927 | if test -n "$AS"; then |
---|
4928 | ac_cv_prog_AS="$AS" # Let the user override the test. |
---|
4929 | else |
---|
4930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4931 | for as_dir in $PATH |
---|
4932 | do |
---|
4933 | IFS=$as_save_IFS |
---|
4934 | test -z "$as_dir" && as_dir=. |
---|
4935 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4936 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4937 | ac_cv_prog_AS="${ac_tool_prefix}as" |
---|
4938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4939 | break 2 |
---|
4940 | fi |
---|
4941 | done |
---|
4942 | done |
---|
4943 | IFS=$as_save_IFS |
---|
4944 | |
---|
4945 | fi |
---|
4946 | fi |
---|
4947 | AS=$ac_cv_prog_AS |
---|
4948 | if test -n "$AS"; then |
---|
4949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
---|
4950 | $as_echo "$AS" >&6; } |
---|
4951 | else |
---|
4952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4953 | $as_echo "no" >&6; } |
---|
4954 | fi |
---|
4955 | |
---|
4956 | |
---|
4957 | fi |
---|
4958 | if test -z "$ac_cv_prog_AS"; then |
---|
4959 | ac_ct_AS=$AS |
---|
4960 | # Extract the first word of "as", so it can be a program name with args. |
---|
4961 | set dummy as; ac_word=$2 |
---|
4962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4963 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4964 | if ${ac_cv_prog_ac_ct_AS+:} false; then : |
---|
4965 | $as_echo_n "(cached) " >&6 |
---|
4966 | else |
---|
4967 | if test -n "$ac_ct_AS"; then |
---|
4968 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
---|
4969 | else |
---|
4970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4971 | for as_dir in $PATH |
---|
4972 | do |
---|
4973 | IFS=$as_save_IFS |
---|
4974 | test -z "$as_dir" && as_dir=. |
---|
4975 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4976 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4977 | ac_cv_prog_ac_ct_AS="as" |
---|
4978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4979 | break 2 |
---|
4980 | fi |
---|
4981 | done |
---|
4982 | done |
---|
4983 | IFS=$as_save_IFS |
---|
4984 | |
---|
4985 | fi |
---|
4986 | fi |
---|
4987 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
---|
4988 | if test -n "$ac_ct_AS"; then |
---|
4989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
---|
4990 | $as_echo "$ac_ct_AS" >&6; } |
---|
4991 | else |
---|
4992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4993 | $as_echo "no" >&6; } |
---|
4994 | fi |
---|
4995 | |
---|
4996 | if test "x$ac_ct_AS" = x; then |
---|
4997 | AS="false" |
---|
4998 | else |
---|
4999 | case $cross_compiling:$ac_tool_warned in |
---|
5000 | yes:) |
---|
5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
5002 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
5003 | ac_tool_warned=yes ;; |
---|
5004 | esac |
---|
5005 | AS=$ac_ct_AS |
---|
5006 | fi |
---|
5007 | else |
---|
5008 | AS="$ac_cv_prog_AS" |
---|
5009 | fi |
---|
5010 | |
---|
5011 | if test -n "$ac_tool_prefix"; then |
---|
5012 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
---|
5013 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
---|
5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5015 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5016 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
---|
5017 | $as_echo_n "(cached) " >&6 |
---|
5018 | else |
---|
5019 | if test -n "$DLLTOOL"; then |
---|
5020 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
---|
5021 | else |
---|
5022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5023 | for as_dir in $PATH |
---|
5024 | do |
---|
5025 | IFS=$as_save_IFS |
---|
5026 | test -z "$as_dir" && as_dir=. |
---|
5027 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5028 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5029 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
---|
5030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5031 | break 2 |
---|
5032 | fi |
---|
5033 | done |
---|
5034 | done |
---|
5035 | IFS=$as_save_IFS |
---|
5036 | |
---|
5037 | fi |
---|
5038 | fi |
---|
5039 | DLLTOOL=$ac_cv_prog_DLLTOOL |
---|
5040 | if test -n "$DLLTOOL"; then |
---|
5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
---|
5042 | $as_echo "$DLLTOOL" >&6; } |
---|
5043 | else |
---|
5044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5045 | $as_echo "no" >&6; } |
---|
5046 | fi |
---|
5047 | |
---|
5048 | |
---|
5049 | fi |
---|
5050 | if test -z "$ac_cv_prog_DLLTOOL"; then |
---|
5051 | ac_ct_DLLTOOL=$DLLTOOL |
---|
5052 | # Extract the first word of "dlltool", so it can be a program name with args. |
---|
5053 | set dummy dlltool; ac_word=$2 |
---|
5054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5055 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5056 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
---|
5057 | $as_echo_n "(cached) " >&6 |
---|
5058 | else |
---|
5059 | if test -n "$ac_ct_DLLTOOL"; then |
---|
5060 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
---|
5061 | else |
---|
5062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5063 | for as_dir in $PATH |
---|
5064 | do |
---|
5065 | IFS=$as_save_IFS |
---|
5066 | test -z "$as_dir" && as_dir=. |
---|
5067 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5068 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5069 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
---|
5070 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5071 | break 2 |
---|
5072 | fi |
---|
5073 | done |
---|
5074 | done |
---|
5075 | IFS=$as_save_IFS |
---|
5076 | |
---|
5077 | fi |
---|
5078 | fi |
---|
5079 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
---|
5080 | if test -n "$ac_ct_DLLTOOL"; then |
---|
5081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
---|
5082 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
---|
5083 | else |
---|
5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5085 | $as_echo "no" >&6; } |
---|
5086 | fi |
---|
5087 | |
---|
5088 | if test "x$ac_ct_DLLTOOL" = x; then |
---|
5089 | DLLTOOL="false" |
---|
5090 | else |
---|
5091 | case $cross_compiling:$ac_tool_warned in |
---|
5092 | yes:) |
---|
5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
5094 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
5095 | ac_tool_warned=yes ;; |
---|
5096 | esac |
---|
5097 | DLLTOOL=$ac_ct_DLLTOOL |
---|
5098 | fi |
---|
5099 | else |
---|
5100 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
---|
5101 | fi |
---|
5102 | |
---|
5103 | if test -n "$ac_tool_prefix"; then |
---|
5104 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
---|
5105 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
---|
5106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5107 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5108 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
---|
5109 | $as_echo_n "(cached) " >&6 |
---|
5110 | else |
---|
5111 | if test -n "$OBJDUMP"; then |
---|
5112 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
---|
5113 | else |
---|
5114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5115 | for as_dir in $PATH |
---|
5116 | do |
---|
5117 | IFS=$as_save_IFS |
---|
5118 | test -z "$as_dir" && as_dir=. |
---|
5119 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5120 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5121 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
---|
5122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5123 | break 2 |
---|
5124 | fi |
---|
5125 | done |
---|
5126 | done |
---|
5127 | IFS=$as_save_IFS |
---|
5128 | |
---|
5129 | fi |
---|
5130 | fi |
---|
5131 | OBJDUMP=$ac_cv_prog_OBJDUMP |
---|
5132 | if test -n "$OBJDUMP"; then |
---|
5133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
---|
5134 | $as_echo "$OBJDUMP" >&6; } |
---|
5135 | else |
---|
5136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5137 | $as_echo "no" >&6; } |
---|
5138 | fi |
---|
5139 | |
---|
5140 | |
---|
5141 | fi |
---|
5142 | if test -z "$ac_cv_prog_OBJDUMP"; then |
---|
5143 | ac_ct_OBJDUMP=$OBJDUMP |
---|
5144 | # Extract the first word of "objdump", so it can be a program name with args. |
---|
5145 | set dummy objdump; ac_word=$2 |
---|
5146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5147 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5148 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
---|
5149 | $as_echo_n "(cached) " >&6 |
---|
5150 | else |
---|
5151 | if test -n "$ac_ct_OBJDUMP"; then |
---|
5152 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
---|
5153 | else |
---|
5154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5155 | for as_dir in $PATH |
---|
5156 | do |
---|
5157 | IFS=$as_save_IFS |
---|
5158 | test -z "$as_dir" && as_dir=. |
---|
5159 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5160 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5161 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
---|
5162 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5163 | break 2 |
---|
5164 | fi |
---|
5165 | done |
---|
5166 | done |
---|
5167 | IFS=$as_save_IFS |
---|
5168 | |
---|
5169 | fi |
---|
5170 | fi |
---|
5171 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
---|
5172 | if test -n "$ac_ct_OBJDUMP"; then |
---|
5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
---|
5174 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
---|
5175 | else |
---|
5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5177 | $as_echo "no" >&6; } |
---|
5178 | fi |
---|
5179 | |
---|
5180 | if test "x$ac_ct_OBJDUMP" = x; then |
---|
5181 | OBJDUMP="false" |
---|
5182 | else |
---|
5183 | case $cross_compiling:$ac_tool_warned in |
---|
5184 | yes:) |
---|
5185 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
5186 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
5187 | ac_tool_warned=yes ;; |
---|
5188 | esac |
---|
5189 | OBJDUMP=$ac_ct_OBJDUMP |
---|
5190 | fi |
---|
5191 | else |
---|
5192 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
---|
5193 | fi |
---|
5194 | |
---|
5195 | ;; |
---|
5196 | esac |
---|
5197 | |
---|
5198 | test -z "$AS" && AS=as |
---|
5199 | |
---|
5200 | |
---|
5201 | |
---|
5202 | |
---|
5203 | |
---|
5204 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
5205 | |
---|
5206 | |
---|
5207 | |
---|
5208 | |
---|
5209 | |
---|
5210 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
5211 | |
---|
5212 | |
---|
5213 | |
---|
5214 | |
---|
5215 | |
---|
5216 | |
---|
5217 | |
---|
5218 | case `pwd` in |
---|
5219 | *\ * | *\ *) |
---|
5220 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
---|
5221 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
---|
5222 | esac |
---|
5223 | |
---|
5224 | |
---|
5225 | |
---|
5226 | macro_version='2.4.2' |
---|
5227 | macro_revision='1.3337' |
---|
5228 | |
---|
5229 | |
---|
5230 | |
---|
5231 | |
---|
5232 | |
---|
5233 | |
---|
5234 | |
---|
5235 | |
---|
5236 | |
---|
5237 | |
---|
5238 | |
---|
5239 | |
---|
5240 | |
---|
5241 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
5242 | |
---|
5243 | # Backslashify metacharacters that are still active within |
---|
5244 | # double-quoted strings. |
---|
5245 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
---|
5246 | |
---|
5247 | # Same as above, but do not quote variable references. |
---|
5248 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
---|
5249 | |
---|
5250 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
5251 | # double_quote_subst'ed string. |
---|
5252 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
5253 | |
---|
5254 | # Sed substitution to delay expansion of an escaped single quote. |
---|
5255 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
---|
5256 | |
---|
5257 | # Sed substitution to avoid accidental globbing in evaled expressions |
---|
5258 | no_glob_subst='s/\*/\\\*/g' |
---|
5259 | |
---|
5260 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
5261 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
---|
5262 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
---|
5263 | |
---|
5264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
---|
5265 | $as_echo_n "checking how to print strings... " >&6; } |
---|
5266 | # Test print first, because it will be a builtin if present. |
---|
5267 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
---|
5268 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
---|
5269 | ECHO='print -r --' |
---|
5270 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
---|
5271 | ECHO='printf %s\n' |
---|
5272 | else |
---|
5273 | # Use this function as a fallback that always works. |
---|
5274 | func_fallback_echo () |
---|
5275 | { |
---|
5276 | eval 'cat <<_LTECHO_EOF |
---|
5277 | $1 |
---|
5278 | _LTECHO_EOF' |
---|
5279 | } |
---|
5280 | ECHO='func_fallback_echo' |
---|
5281 | fi |
---|
5282 | |
---|
5283 | # func_echo_all arg... |
---|
5284 | # Invoke $ECHO with all args, space-separated. |
---|
5285 | func_echo_all () |
---|
5286 | { |
---|
5287 | $ECHO "" |
---|
5288 | } |
---|
5289 | |
---|
5290 | case "$ECHO" in |
---|
5291 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
---|
5292 | $as_echo "printf" >&6; } ;; |
---|
5293 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
---|
5294 | $as_echo "print -r" >&6; } ;; |
---|
5295 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
---|
5296 | $as_echo "cat" >&6; } ;; |
---|
5297 | esac |
---|
5298 | |
---|
5299 | |
---|
5300 | |
---|
5301 | |
---|
5302 | |
---|
5303 | |
---|
5304 | |
---|
5305 | |
---|
5306 | |
---|
5307 | |
---|
5308 | |
---|
5309 | |
---|
5310 | |
---|
5311 | |
---|
5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
---|
5313 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
---|
5314 | if ${ac_cv_path_SED+:} false; then : |
---|
5315 | $as_echo_n "(cached) " >&6 |
---|
5316 | else |
---|
5317 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
---|
5318 | for ac_i in 1 2 3 4 5 6 7; do |
---|
5319 | ac_script="$ac_script$as_nl$ac_script" |
---|
5320 | done |
---|
5321 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
---|
5322 | { ac_script=; unset ac_script;} |
---|
5323 | if test -z "$SED"; then |
---|
5324 | ac_path_SED_found=false |
---|
5325 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5327 | for as_dir in $PATH |
---|
5328 | do |
---|
5329 | IFS=$as_save_IFS |
---|
5330 | test -z "$as_dir" && as_dir=. |
---|
5331 | for ac_prog in sed gsed; do |
---|
5332 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5333 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
---|
5334 | as_fn_executable_p "$ac_path_SED" || continue |
---|
5335 | # Check for GNU ac_path_SED and select it if it is found. |
---|
5336 | # Check for GNU $ac_path_SED |
---|
5337 | case `"$ac_path_SED" --version 2>&1` in |
---|
5338 | *GNU*) |
---|
5339 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
---|
5340 | *) |
---|
5341 | ac_count=0 |
---|
5342 | $as_echo_n 0123456789 >"conftest.in" |
---|
5343 | while : |
---|
5344 | do |
---|
5345 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5346 | mv "conftest.tmp" "conftest.in" |
---|
5347 | cp "conftest.in" "conftest.nl" |
---|
5348 | $as_echo '' >> "conftest.nl" |
---|
5349 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5350 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5351 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5352 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
---|
5353 | # Best one so far, save it but keep looking for a better one |
---|
5354 | ac_cv_path_SED="$ac_path_SED" |
---|
5355 | ac_path_SED_max=$ac_count |
---|
5356 | fi |
---|
5357 | # 10*(2^10) chars as input seems more than enough |
---|
5358 | test $ac_count -gt 10 && break |
---|
5359 | done |
---|
5360 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5361 | esac |
---|
5362 | |
---|
5363 | $ac_path_SED_found && break 3 |
---|
5364 | done |
---|
5365 | done |
---|
5366 | done |
---|
5367 | IFS=$as_save_IFS |
---|
5368 | if test -z "$ac_cv_path_SED"; then |
---|
5369 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
---|
5370 | fi |
---|
5371 | else |
---|
5372 | ac_cv_path_SED=$SED |
---|
5373 | fi |
---|
5374 | |
---|
5375 | fi |
---|
5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
---|
5377 | $as_echo "$ac_cv_path_SED" >&6; } |
---|
5378 | SED="$ac_cv_path_SED" |
---|
5379 | rm -f conftest.sed |
---|
5380 | |
---|
5381 | test -z "$SED" && SED=sed |
---|
5382 | Xsed="$SED -e 1s/^X//" |
---|
5383 | |
---|
5384 | |
---|
5385 | |
---|
5386 | |
---|
5387 | |
---|
5388 | |
---|
5389 | |
---|
5390 | |
---|
5391 | |
---|
5392 | |
---|
5393 | |
---|
5394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
5395 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
5396 | if ${ac_cv_path_GREP+:} false; then : |
---|
5397 | $as_echo_n "(cached) " >&6 |
---|
5398 | else |
---|
5399 | if test -z "$GREP"; then |
---|
5400 | ac_path_GREP_found=false |
---|
5401 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5403 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5404 | do |
---|
5405 | IFS=$as_save_IFS |
---|
5406 | test -z "$as_dir" && as_dir=. |
---|
5407 | for ac_prog in grep ggrep; do |
---|
5408 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5409 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5410 | as_fn_executable_p "$ac_path_GREP" || continue |
---|
5411 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
5412 | # Check for GNU $ac_path_GREP |
---|
5413 | case `"$ac_path_GREP" --version 2>&1` in |
---|
5414 | *GNU*) |
---|
5415 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
5416 | *) |
---|
5417 | ac_count=0 |
---|
5418 | $as_echo_n 0123456789 >"conftest.in" |
---|
5419 | while : |
---|
5420 | do |
---|
5421 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5422 | mv "conftest.tmp" "conftest.in" |
---|
5423 | cp "conftest.in" "conftest.nl" |
---|
5424 | $as_echo 'GREP' >> "conftest.nl" |
---|
5425 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5426 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5427 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5428 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
5429 | # Best one so far, save it but keep looking for a better one |
---|
5430 | ac_cv_path_GREP="$ac_path_GREP" |
---|
5431 | ac_path_GREP_max=$ac_count |
---|
5432 | fi |
---|
5433 | # 10*(2^10) chars as input seems more than enough |
---|
5434 | test $ac_count -gt 10 && break |
---|
5435 | done |
---|
5436 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5437 | esac |
---|
5438 | |
---|
5439 | $ac_path_GREP_found && break 3 |
---|
5440 | done |
---|
5441 | done |
---|
5442 | done |
---|
5443 | IFS=$as_save_IFS |
---|
5444 | if test -z "$ac_cv_path_GREP"; then |
---|
5445 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5446 | fi |
---|
5447 | else |
---|
5448 | ac_cv_path_GREP=$GREP |
---|
5449 | fi |
---|
5450 | |
---|
5451 | fi |
---|
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
5453 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
5454 | GREP="$ac_cv_path_GREP" |
---|
5455 | |
---|
5456 | |
---|
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
5458 | $as_echo_n "checking for egrep... " >&6; } |
---|
5459 | if ${ac_cv_path_EGREP+:} false; then : |
---|
5460 | $as_echo_n "(cached) " >&6 |
---|
5461 | else |
---|
5462 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
5463 | then ac_cv_path_EGREP="$GREP -E" |
---|
5464 | else |
---|
5465 | if test -z "$EGREP"; then |
---|
5466 | ac_path_EGREP_found=false |
---|
5467 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5469 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5470 | do |
---|
5471 | IFS=$as_save_IFS |
---|
5472 | test -z "$as_dir" && as_dir=. |
---|
5473 | for ac_prog in egrep; do |
---|
5474 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5475 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5476 | as_fn_executable_p "$ac_path_EGREP" || continue |
---|
5477 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
5478 | # Check for GNU $ac_path_EGREP |
---|
5479 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
5480 | *GNU*) |
---|
5481 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
5482 | *) |
---|
5483 | ac_count=0 |
---|
5484 | $as_echo_n 0123456789 >"conftest.in" |
---|
5485 | while : |
---|
5486 | do |
---|
5487 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5488 | mv "conftest.tmp" "conftest.in" |
---|
5489 | cp "conftest.in" "conftest.nl" |
---|
5490 | $as_echo 'EGREP' >> "conftest.nl" |
---|
5491 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5492 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5493 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5494 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
5495 | # Best one so far, save it but keep looking for a better one |
---|
5496 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
5497 | ac_path_EGREP_max=$ac_count |
---|
5498 | fi |
---|
5499 | # 10*(2^10) chars as input seems more than enough |
---|
5500 | test $ac_count -gt 10 && break |
---|
5501 | done |
---|
5502 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5503 | esac |
---|
5504 | |
---|
5505 | $ac_path_EGREP_found && break 3 |
---|
5506 | done |
---|
5507 | done |
---|
5508 | done |
---|
5509 | IFS=$as_save_IFS |
---|
5510 | if test -z "$ac_cv_path_EGREP"; then |
---|
5511 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5512 | fi |
---|
5513 | else |
---|
5514 | ac_cv_path_EGREP=$EGREP |
---|
5515 | fi |
---|
5516 | |
---|
5517 | fi |
---|
5518 | fi |
---|
5519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
5520 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
5521 | EGREP="$ac_cv_path_EGREP" |
---|
5522 | |
---|
5523 | |
---|
5524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
---|
5525 | $as_echo_n "checking for fgrep... " >&6; } |
---|
5526 | if ${ac_cv_path_FGREP+:} false; then : |
---|
5527 | $as_echo_n "(cached) " >&6 |
---|
5528 | else |
---|
5529 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
---|
5530 | then ac_cv_path_FGREP="$GREP -F" |
---|
5531 | else |
---|
5532 | if test -z "$FGREP"; then |
---|
5533 | ac_path_FGREP_found=false |
---|
5534 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5536 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5537 | do |
---|
5538 | IFS=$as_save_IFS |
---|
5539 | test -z "$as_dir" && as_dir=. |
---|
5540 | for ac_prog in fgrep; do |
---|
5541 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5542 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5543 | as_fn_executable_p "$ac_path_FGREP" || continue |
---|
5544 | # Check for GNU ac_path_FGREP and select it if it is found. |
---|
5545 | # Check for GNU $ac_path_FGREP |
---|
5546 | case `"$ac_path_FGREP" --version 2>&1` in |
---|
5547 | *GNU*) |
---|
5548 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
---|
5549 | *) |
---|
5550 | ac_count=0 |
---|
5551 | $as_echo_n 0123456789 >"conftest.in" |
---|
5552 | while : |
---|
5553 | do |
---|
5554 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5555 | mv "conftest.tmp" "conftest.in" |
---|
5556 | cp "conftest.in" "conftest.nl" |
---|
5557 | $as_echo 'FGREP' >> "conftest.nl" |
---|
5558 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5559 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5560 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5561 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
---|
5562 | # Best one so far, save it but keep looking for a better one |
---|
5563 | ac_cv_path_FGREP="$ac_path_FGREP" |
---|
5564 | ac_path_FGREP_max=$ac_count |
---|
5565 | fi |
---|
5566 | # 10*(2^10) chars as input seems more than enough |
---|
5567 | test $ac_count -gt 10 && break |
---|
5568 | done |
---|
5569 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5570 | esac |
---|
5571 | |
---|
5572 | $ac_path_FGREP_found && break 3 |
---|
5573 | done |
---|
5574 | done |
---|
5575 | done |
---|
5576 | IFS=$as_save_IFS |
---|
5577 | if test -z "$ac_cv_path_FGREP"; then |
---|
5578 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5579 | fi |
---|
5580 | else |
---|
5581 | ac_cv_path_FGREP=$FGREP |
---|
5582 | fi |
---|
5583 | |
---|
5584 | fi |
---|
5585 | fi |
---|
5586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
---|
5587 | $as_echo "$ac_cv_path_FGREP" >&6; } |
---|
5588 | FGREP="$ac_cv_path_FGREP" |
---|
5589 | |
---|
5590 | |
---|
5591 | test -z "$GREP" && GREP=grep |
---|
5592 | |
---|
5593 | |
---|
5594 | |
---|
5595 | |
---|
5596 | |
---|
5597 | |
---|
5598 | |
---|
5599 | |
---|
5600 | |
---|
5601 | |
---|
5602 | |
---|
5603 | |
---|
5604 | |
---|
5605 | |
---|
5606 | |
---|
5607 | |
---|
5608 | |
---|
5609 | |
---|
5610 | |
---|
5611 | # Check whether --with-gnu-ld was given. |
---|
5612 | if test "${with_gnu_ld+set}" = set; then : |
---|
5613 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
---|
5614 | else |
---|
5615 | with_gnu_ld=no |
---|
5616 | fi |
---|
5617 | |
---|
5618 | ac_prog=ld |
---|
5619 | if test "$GCC" = yes; then |
---|
5620 | # Check if gcc -print-prog-name=ld gives a path. |
---|
5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
---|
5622 | $as_echo_n "checking for ld used by $CC... " >&6; } |
---|
5623 | case $host in |
---|
5624 | *-*-mingw*) |
---|
5625 | # gcc leaves a trailing carriage return which upsets mingw |
---|
5626 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
5627 | *) |
---|
5628 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
5629 | esac |
---|
5630 | case $ac_prog in |
---|
5631 | # Accept absolute paths. |
---|
5632 | [\\/]* | ?:[\\/]*) |
---|
5633 | re_direlt='/[^/][^/]*/\.\./' |
---|
5634 | # Canonicalize the pathname of ld |
---|
5635 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
---|
5636 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
---|
5637 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
---|
5638 | done |
---|
5639 | test -z "$LD" && LD="$ac_prog" |
---|
5640 | ;; |
---|
5641 | "") |
---|
5642 | # If it fails, then pretend we aren't using GCC. |
---|
5643 | ac_prog=ld |
---|
5644 | ;; |
---|
5645 | *) |
---|
5646 | # If it is relative, then search for the first ld in PATH. |
---|
5647 | with_gnu_ld=unknown |
---|
5648 | ;; |
---|
5649 | esac |
---|
5650 | elif test "$with_gnu_ld" = yes; then |
---|
5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
---|
5652 | $as_echo_n "checking for GNU ld... " >&6; } |
---|
5653 | else |
---|
5654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
---|
5655 | $as_echo_n "checking for non-GNU ld... " >&6; } |
---|
5656 | fi |
---|
5657 | if ${lt_cv_path_LD+:} false; then : |
---|
5658 | $as_echo_n "(cached) " >&6 |
---|
5659 | else |
---|
5660 | if test -z "$LD"; then |
---|
5661 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
5662 | for ac_dir in $PATH; do |
---|
5663 | IFS="$lt_save_ifs" |
---|
5664 | test -z "$ac_dir" && ac_dir=. |
---|
5665 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
5666 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
5667 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
5668 | # but apparently some variants of GNU ld only accept -v. |
---|
5669 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
5670 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
5671 | *GNU* | *'with BFD'*) |
---|
5672 | test "$with_gnu_ld" != no && break |
---|
5673 | ;; |
---|
5674 | *) |
---|
5675 | test "$with_gnu_ld" != yes && break |
---|
5676 | ;; |
---|
5677 | esac |
---|
5678 | fi |
---|
5679 | done |
---|
5680 | IFS="$lt_save_ifs" |
---|
5681 | else |
---|
5682 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
5683 | fi |
---|
5684 | fi |
---|
5685 | |
---|
5686 | LD="$lt_cv_path_LD" |
---|
5687 | if test -n "$LD"; then |
---|
5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
---|
5689 | $as_echo "$LD" >&6; } |
---|
5690 | else |
---|
5691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5692 | $as_echo "no" >&6; } |
---|
5693 | fi |
---|
5694 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
---|
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
---|
5696 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
---|
5697 | if ${lt_cv_prog_gnu_ld+:} false; then : |
---|
5698 | $as_echo_n "(cached) " >&6 |
---|
5699 | else |
---|
5700 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
5701 | case `$LD -v 2>&1 </dev/null` in |
---|
5702 | *GNU* | *'with BFD'*) |
---|
5703 | lt_cv_prog_gnu_ld=yes |
---|
5704 | ;; |
---|
5705 | *) |
---|
5706 | lt_cv_prog_gnu_ld=no |
---|
5707 | ;; |
---|
5708 | esac |
---|
5709 | fi |
---|
5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
---|
5711 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
---|
5712 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
5713 | |
---|
5714 | |
---|
5715 | |
---|
5716 | |
---|
5717 | |
---|
5718 | |
---|
5719 | |
---|
5720 | |
---|
5721 | |
---|
5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
---|
5723 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
---|
5724 | if ${lt_cv_path_NM+:} false; then : |
---|
5725 | $as_echo_n "(cached) " >&6 |
---|
5726 | else |
---|
5727 | if test -n "$NM"; then |
---|
5728 | # Let the user override the test. |
---|
5729 | lt_cv_path_NM="$NM" |
---|
5730 | else |
---|
5731 | lt_nm_to_check="${ac_tool_prefix}nm" |
---|
5732 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
---|
5733 | lt_nm_to_check="$lt_nm_to_check nm" |
---|
5734 | fi |
---|
5735 | for lt_tmp_nm in $lt_nm_to_check; do |
---|
5736 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
5737 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
---|
5738 | IFS="$lt_save_ifs" |
---|
5739 | test -z "$ac_dir" && ac_dir=. |
---|
5740 | tmp_nm="$ac_dir/$lt_tmp_nm" |
---|
5741 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
---|
5742 | # Check to see if the nm accepts a BSD-compat flag. |
---|
5743 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
5744 | # nm: unknown option "B" ignored |
---|
5745 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
5746 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
---|
5747 | */dev/null* | *'Invalid file or object type'*) |
---|
5748 | lt_cv_path_NM="$tmp_nm -B" |
---|
5749 | break |
---|
5750 | ;; |
---|
5751 | *) |
---|
5752 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
5753 | */dev/null*) |
---|
5754 | lt_cv_path_NM="$tmp_nm -p" |
---|
5755 | break |
---|
5756 | ;; |
---|
5757 | *) |
---|
5758 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
5759 | continue # so that we can try to find one that supports BSD flags |
---|
5760 | ;; |
---|
5761 | esac |
---|
5762 | ;; |
---|
5763 | esac |
---|
5764 | fi |
---|
5765 | done |
---|
5766 | IFS="$lt_save_ifs" |
---|
5767 | done |
---|
5768 | : ${lt_cv_path_NM=no} |
---|
5769 | fi |
---|
5770 | fi |
---|
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
---|
5772 | $as_echo "$lt_cv_path_NM" >&6; } |
---|
5773 | if test "$lt_cv_path_NM" != "no"; then |
---|
5774 | NM="$lt_cv_path_NM" |
---|
5775 | else |
---|
5776 | # Didn't find any BSD compatible name lister, look for dumpbin. |
---|
5777 | if test -n "$DUMPBIN"; then : |
---|
5778 | # Let the user override the test. |
---|
5779 | else |
---|
5780 | if test -n "$ac_tool_prefix"; then |
---|
5781 | for ac_prog in dumpbin "link -dump" |
---|
5782 | do |
---|
5783 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
5784 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5786 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5787 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
---|
5788 | $as_echo_n "(cached) " >&6 |
---|
5789 | else |
---|
5790 | if test -n "$DUMPBIN"; then |
---|
5791 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
---|
5792 | else |
---|
5793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5794 | for as_dir in $PATH |
---|
5795 | do |
---|
5796 | IFS=$as_save_IFS |
---|
5797 | test -z "$as_dir" && as_dir=. |
---|
5798 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5799 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5800 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
---|
5801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5802 | break 2 |
---|
5803 | fi |
---|
5804 | done |
---|
5805 | done |
---|
5806 | IFS=$as_save_IFS |
---|
5807 | |
---|
5808 | fi |
---|
5809 | fi |
---|
5810 | DUMPBIN=$ac_cv_prog_DUMPBIN |
---|
5811 | if test -n "$DUMPBIN"; then |
---|
5812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
---|
5813 | $as_echo "$DUMPBIN" >&6; } |
---|
5814 | else |
---|
5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5816 | $as_echo "no" >&6; } |
---|
5817 | fi |
---|
5818 | |
---|
5819 | |
---|
5820 | test -n "$DUMPBIN" && break |
---|
5821 | done |
---|
5822 | fi |
---|
5823 | if test -z "$DUMPBIN"; then |
---|
5824 | ac_ct_DUMPBIN=$DUMPBIN |
---|
5825 | for ac_prog in dumpbin "link -dump" |
---|
5826 | do |
---|
5827 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5828 | set dummy $ac_prog; ac_word=$2 |
---|
5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5830 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5831 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
---|
5832 | $as_echo_n "(cached) " >&6 |
---|
5833 | else |
---|
5834 | if test -n "$ac_ct_DUMPBIN"; then |
---|
5835 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
---|
5836 | else |
---|
5837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5838 | for as_dir in $PATH |
---|
5839 | do |
---|
5840 | IFS=$as_save_IFS |
---|
5841 | test -z "$as_dir" && as_dir=. |
---|
5842 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5843 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5844 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
---|
5845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5846 | break 2 |
---|
5847 | fi |
---|
5848 | done |
---|
5849 | done |
---|
5850 | IFS=$as_save_IFS |
---|
5851 | |
---|
5852 | fi |
---|
5853 | fi |
---|
5854 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
---|
5855 | if test -n "$ac_ct_DUMPBIN"; then |
---|
5856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
---|
5857 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
---|
5858 | else |
---|
5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5860 | $as_echo "no" >&6; } |
---|
5861 | fi |
---|
5862 | |
---|
5863 | |
---|
5864 | test -n "$ac_ct_DUMPBIN" && break |
---|
5865 | done |
---|
5866 | |
---|
5867 | if test "x$ac_ct_DUMPBIN" = x; then |
---|
5868 | DUMPBIN=":" |
---|
5869 | else |
---|
5870 | case $cross_compiling:$ac_tool_warned in |
---|
5871 | yes:) |
---|
5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
5873 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
5874 | ac_tool_warned=yes ;; |
---|
5875 | esac |
---|
5876 | DUMPBIN=$ac_ct_DUMPBIN |
---|
5877 | fi |
---|
5878 | fi |
---|
5879 | |
---|
5880 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
---|
5881 | *COFF*) |
---|
5882 | DUMPBIN="$DUMPBIN -symbols" |
---|
5883 | ;; |
---|
5884 | *) |
---|
5885 | DUMPBIN=: |
---|
5886 | ;; |
---|
5887 | esac |
---|
5888 | fi |
---|
5889 | |
---|
5890 | if test "$DUMPBIN" != ":"; then |
---|
5891 | NM="$DUMPBIN" |
---|
5892 | fi |
---|
5893 | fi |
---|
5894 | test -z "$NM" && NM=nm |
---|
5895 | |
---|
5896 | |
---|
5897 | |
---|
5898 | |
---|
5899 | |
---|
5900 | |
---|
5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
---|
5902 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
---|
5903 | if ${lt_cv_nm_interface+:} false; then : |
---|
5904 | $as_echo_n "(cached) " >&6 |
---|
5905 | else |
---|
5906 | lt_cv_nm_interface="BSD nm" |
---|
5907 | echo "int some_variable = 0;" > conftest.$ac_ext |
---|
5908 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
---|
5909 | (eval "$ac_compile" 2>conftest.err) |
---|
5910 | cat conftest.err >&5 |
---|
5911 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
---|
5912 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
---|
5913 | cat conftest.err >&5 |
---|
5914 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
---|
5915 | cat conftest.out >&5 |
---|
5916 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
---|
5917 | lt_cv_nm_interface="MS dumpbin" |
---|
5918 | fi |
---|
5919 | rm -f conftest* |
---|
5920 | fi |
---|
5921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
---|
5922 | $as_echo "$lt_cv_nm_interface" >&6; } |
---|
5923 | |
---|
5924 | # find the maximum length of command line arguments |
---|
5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
---|
5926 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
---|
5927 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
---|
5928 | $as_echo_n "(cached) " >&6 |
---|
5929 | else |
---|
5930 | i=0 |
---|
5931 | teststring="ABCD" |
---|
5932 | |
---|
5933 | case $build_os in |
---|
5934 | msdosdjgpp*) |
---|
5935 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
---|
5936 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
---|
5937 | # during glob expansion). Even if it were fixed, the result of this |
---|
5938 | # check would be larger than it should be. |
---|
5939 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
---|
5940 | ;; |
---|
5941 | |
---|
5942 | gnu*) |
---|
5943 | # Under GNU Hurd, this test is not required because there is |
---|
5944 | # no limit to the length of command line arguments. |
---|
5945 | # Libtool will interpret -1 as no limit whatsoever |
---|
5946 | lt_cv_sys_max_cmd_len=-1; |
---|
5947 | ;; |
---|
5948 | |
---|
5949 | cygwin* | mingw* | cegcc*) |
---|
5950 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
---|
5951 | # about 5 minutes as the teststring grows exponentially. |
---|
5952 | # Worse, since 9x/ME are not pre-emptively multitasking, |
---|
5953 | # you end up with a "frozen" computer, even though with patience |
---|
5954 | # the test eventually succeeds (with a max line length of 256k). |
---|
5955 | # Instead, let's just punt: use the minimum linelength reported by |
---|
5956 | # all of the supported platforms: 8192 (on NT/2K/XP). |
---|
5957 | lt_cv_sys_max_cmd_len=8192; |
---|
5958 | ;; |
---|
5959 | |
---|
5960 | mint*) |
---|
5961 | # On MiNT this can take a long time and run out of memory. |
---|
5962 | lt_cv_sys_max_cmd_len=8192; |
---|
5963 | ;; |
---|
5964 | |
---|
5965 | amigaos*) |
---|
5966 | # On AmigaOS with pdksh, this test takes hours, literally. |
---|
5967 | # So we just punt and use a minimum line length of 8192. |
---|
5968 | lt_cv_sys_max_cmd_len=8192; |
---|
5969 | ;; |
---|
5970 | |
---|
5971 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
---|
5972 | # This has been around since 386BSD, at least. Likely further. |
---|
5973 | if test -x /sbin/sysctl; then |
---|
5974 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
---|
5975 | elif test -x /usr/sbin/sysctl; then |
---|
5976 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
---|
5977 | else |
---|
5978 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
---|
5979 | fi |
---|
5980 | # And add a safety zone |
---|
5981 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
5982 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
5983 | ;; |
---|
5984 | |
---|
5985 | interix*) |
---|
5986 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
---|
5987 | lt_cv_sys_max_cmd_len=196608 |
---|
5988 | ;; |
---|
5989 | |
---|
5990 | os2*) |
---|
5991 | # The test takes a long time on OS/2. |
---|
5992 | lt_cv_sys_max_cmd_len=8192 |
---|
5993 | ;; |
---|
5994 | |
---|
5995 | osf*) |
---|
5996 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
---|
5997 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
---|
5998 | # nice to cause kernel panics so lets avoid the loop below. |
---|
5999 | # First set a reasonable default. |
---|
6000 | lt_cv_sys_max_cmd_len=16384 |
---|
6001 | # |
---|
6002 | if test -x /sbin/sysconfig; then |
---|
6003 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
---|
6004 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
---|
6005 | esac |
---|
6006 | fi |
---|
6007 | ;; |
---|
6008 | sco3.2v5*) |
---|
6009 | lt_cv_sys_max_cmd_len=102400 |
---|
6010 | ;; |
---|
6011 | sysv5* | sco5v6* | sysv4.2uw2*) |
---|
6012 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
---|
6013 | if test -n "$kargmax"; then |
---|
6014 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
---|
6015 | else |
---|
6016 | lt_cv_sys_max_cmd_len=32768 |
---|
6017 | fi |
---|
6018 | ;; |
---|
6019 | *) |
---|
6020 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
---|
6021 | if test -n "$lt_cv_sys_max_cmd_len"; then |
---|
6022 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
6023 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
6024 | else |
---|
6025 | # Make teststring a little bigger before we do anything with it. |
---|
6026 | # a 1K string should be a reasonable start. |
---|
6027 | for i in 1 2 3 4 5 6 7 8 ; do |
---|
6028 | teststring=$teststring$teststring |
---|
6029 | done |
---|
6030 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
---|
6031 | # If test is not a shell built-in, we'll probably end up computing a |
---|
6032 | # maximum length that is only half of the actual maximum length, but |
---|
6033 | # we can't tell. |
---|
6034 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
---|
6035 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
---|
6036 | test $i != 17 # 1/2 MB should be enough |
---|
6037 | do |
---|
6038 | i=`expr $i + 1` |
---|
6039 | teststring=$teststring$teststring |
---|
6040 | done |
---|
6041 | # Only check the string length outside the loop. |
---|
6042 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
---|
6043 | teststring= |
---|
6044 | # Add a significant safety factor because C++ compilers can tack on |
---|
6045 | # massive amounts of additional arguments before passing them to the |
---|
6046 | # linker. It appears as though 1/2 is a usable value. |
---|
6047 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
---|
6048 | fi |
---|
6049 | ;; |
---|
6050 | esac |
---|
6051 | |
---|
6052 | fi |
---|
6053 | |
---|
6054 | if test -n $lt_cv_sys_max_cmd_len ; then |
---|
6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
---|
6056 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
---|
6057 | else |
---|
6058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
---|
6059 | $as_echo "none" >&6; } |
---|
6060 | fi |
---|
6061 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
6062 | |
---|
6063 | |
---|
6064 | |
---|
6065 | |
---|
6066 | |
---|
6067 | |
---|
6068 | : ${CP="cp -f"} |
---|
6069 | : ${MV="mv -f"} |
---|
6070 | : ${RM="rm -f"} |
---|
6071 | |
---|
6072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
---|
6073 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
---|
6074 | # Try some XSI features |
---|
6075 | xsi_shell=no |
---|
6076 | ( _lt_dummy="a/b/c" |
---|
6077 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
---|
6078 | = c,a/b,b/c, \ |
---|
6079 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
---|
6080 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
---|
6081 | && xsi_shell=yes |
---|
6082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
---|
6083 | $as_echo "$xsi_shell" >&6; } |
---|
6084 | |
---|
6085 | |
---|
6086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
---|
6087 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
---|
6088 | lt_shell_append=no |
---|
6089 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
---|
6090 | >/dev/null 2>&1 \ |
---|
6091 | && lt_shell_append=yes |
---|
6092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
---|
6093 | $as_echo "$lt_shell_append" >&6; } |
---|
6094 | |
---|
6095 | |
---|
6096 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
6097 | lt_unset=unset |
---|
6098 | else |
---|
6099 | lt_unset=false |
---|
6100 | fi |
---|
6101 | |
---|
6102 | |
---|
6103 | |
---|
6104 | |
---|
6105 | |
---|
6106 | # test EBCDIC or ASCII |
---|
6107 | case `echo X|tr X '\101'` in |
---|
6108 | A) # ASCII based system |
---|
6109 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
---|
6110 | lt_SP2NL='tr \040 \012' |
---|
6111 | lt_NL2SP='tr \015\012 \040\040' |
---|
6112 | ;; |
---|
6113 | *) # EBCDIC based system |
---|
6114 | lt_SP2NL='tr \100 \n' |
---|
6115 | lt_NL2SP='tr \r\n \100\100' |
---|
6116 | ;; |
---|
6117 | esac |
---|
6118 | |
---|
6119 | |
---|
6120 | |
---|
6121 | |
---|
6122 | |
---|
6123 | |
---|
6124 | |
---|
6125 | |
---|
6126 | |
---|
6127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
---|
6128 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
---|
6129 | if ${lt_cv_to_host_file_cmd+:} false; then : |
---|
6130 | $as_echo_n "(cached) " >&6 |
---|
6131 | else |
---|
6132 | case $host in |
---|
6133 | *-*-mingw* ) |
---|
6134 | case $build in |
---|
6135 | *-*-mingw* ) # actually msys |
---|
6136 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
---|
6137 | ;; |
---|
6138 | *-*-cygwin* ) |
---|
6139 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
---|
6140 | ;; |
---|
6141 | * ) # otherwise, assume *nix |
---|
6142 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
---|
6143 | ;; |
---|
6144 | esac |
---|
6145 | ;; |
---|
6146 | *-*-cygwin* ) |
---|
6147 | case $build in |
---|
6148 | *-*-mingw* ) # actually msys |
---|
6149 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
---|
6150 | ;; |
---|
6151 | *-*-cygwin* ) |
---|
6152 | lt_cv_to_host_file_cmd=func_convert_file_noop |
---|
6153 | ;; |
---|
6154 | * ) # otherwise, assume *nix |
---|
6155 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
---|
6156 | ;; |
---|
6157 | esac |
---|
6158 | ;; |
---|
6159 | * ) # unhandled hosts (and "normal" native builds) |
---|
6160 | lt_cv_to_host_file_cmd=func_convert_file_noop |
---|
6161 | ;; |
---|
6162 | esac |
---|
6163 | |
---|
6164 | fi |
---|
6165 | |
---|
6166 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
---|
6167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
---|
6168 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
---|
6169 | |
---|
6170 | |
---|
6171 | |
---|
6172 | |
---|
6173 | |
---|
6174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
---|
6175 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
---|
6176 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
---|
6177 | $as_echo_n "(cached) " >&6 |
---|
6178 | else |
---|
6179 | #assume ordinary cross tools, or native build. |
---|
6180 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
---|
6181 | case $host in |
---|
6182 | *-*-mingw* ) |
---|
6183 | case $build in |
---|
6184 | *-*-mingw* ) # actually msys |
---|
6185 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
---|
6186 | ;; |
---|
6187 | esac |
---|
6188 | ;; |
---|
6189 | esac |
---|
6190 | |
---|
6191 | fi |
---|
6192 | |
---|
6193 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
---|
6194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
---|
6195 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
---|
6196 | |
---|
6197 | |
---|
6198 | |
---|
6199 | |
---|
6200 | |
---|
6201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
---|
6202 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
---|
6203 | if ${lt_cv_ld_reload_flag+:} false; then : |
---|
6204 | $as_echo_n "(cached) " >&6 |
---|
6205 | else |
---|
6206 | lt_cv_ld_reload_flag='-r' |
---|
6207 | fi |
---|
6208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
---|
6209 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
---|
6210 | reload_flag=$lt_cv_ld_reload_flag |
---|
6211 | case $reload_flag in |
---|
6212 | "" | " "*) ;; |
---|
6213 | *) reload_flag=" $reload_flag" ;; |
---|
6214 | esac |
---|
6215 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
6216 | case $host_os in |
---|
6217 | cygwin* | mingw* | pw32* | cegcc*) |
---|
6218 | if test "$GCC" != yes; then |
---|
6219 | reload_cmds=false |
---|
6220 | fi |
---|
6221 | ;; |
---|
6222 | darwin*) |
---|
6223 | if test "$GCC" = yes; then |
---|
6224 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
---|
6225 | else |
---|
6226 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
6227 | fi |
---|
6228 | ;; |
---|
6229 | esac |
---|
6230 | |
---|
6231 | |
---|
6232 | |
---|
6233 | |
---|
6234 | |
---|
6235 | |
---|
6236 | |
---|
6237 | |
---|
6238 | |
---|
6239 | if test -n "$ac_tool_prefix"; then |
---|
6240 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
---|
6241 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
---|
6242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6243 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6244 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
---|
6245 | $as_echo_n "(cached) " >&6 |
---|
6246 | else |
---|
6247 | if test -n "$OBJDUMP"; then |
---|
6248 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
---|
6249 | else |
---|
6250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6251 | for as_dir in $PATH |
---|
6252 | do |
---|
6253 | IFS=$as_save_IFS |
---|
6254 | test -z "$as_dir" && as_dir=. |
---|
6255 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6256 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6257 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
---|
6258 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6259 | break 2 |
---|
6260 | fi |
---|
6261 | done |
---|
6262 | done |
---|
6263 | IFS=$as_save_IFS |
---|
6264 | |
---|
6265 | fi |
---|
6266 | fi |
---|
6267 | OBJDUMP=$ac_cv_prog_OBJDUMP |
---|
6268 | if test -n "$OBJDUMP"; then |
---|
6269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
---|
6270 | $as_echo "$OBJDUMP" >&6; } |
---|
6271 | else |
---|
6272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6273 | $as_echo "no" >&6; } |
---|
6274 | fi |
---|
6275 | |
---|
6276 | |
---|
6277 | fi |
---|
6278 | if test -z "$ac_cv_prog_OBJDUMP"; then |
---|
6279 | ac_ct_OBJDUMP=$OBJDUMP |
---|
6280 | # Extract the first word of "objdump", so it can be a program name with args. |
---|
6281 | set dummy objdump; ac_word=$2 |
---|
6282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6283 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6284 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
---|
6285 | $as_echo_n "(cached) " >&6 |
---|
6286 | else |
---|
6287 | if test -n "$ac_ct_OBJDUMP"; then |
---|
6288 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
---|
6289 | else |
---|
6290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6291 | for as_dir in $PATH |
---|
6292 | do |
---|
6293 | IFS=$as_save_IFS |
---|
6294 | test -z "$as_dir" && as_dir=. |
---|
6295 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6296 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6297 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
---|
6298 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6299 | break 2 |
---|
6300 | fi |
---|
6301 | done |
---|
6302 | done |
---|
6303 | IFS=$as_save_IFS |
---|
6304 | |
---|
6305 | fi |
---|
6306 | fi |
---|
6307 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
---|
6308 | if test -n "$ac_ct_OBJDUMP"; then |
---|
6309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
---|
6310 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
---|
6311 | else |
---|
6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6313 | $as_echo "no" >&6; } |
---|
6314 | fi |
---|
6315 | |
---|
6316 | if test "x$ac_ct_OBJDUMP" = x; then |
---|
6317 | OBJDUMP="false" |
---|
6318 | else |
---|
6319 | case $cross_compiling:$ac_tool_warned in |
---|
6320 | yes:) |
---|
6321 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6322 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6323 | ac_tool_warned=yes ;; |
---|
6324 | esac |
---|
6325 | OBJDUMP=$ac_ct_OBJDUMP |
---|
6326 | fi |
---|
6327 | else |
---|
6328 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
---|
6329 | fi |
---|
6330 | |
---|
6331 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
6332 | |
---|
6333 | |
---|
6334 | |
---|
6335 | |
---|
6336 | |
---|
6337 | |
---|
6338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
---|
6339 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
---|
6340 | if ${lt_cv_deplibs_check_method+:} false; then : |
---|
6341 | $as_echo_n "(cached) " >&6 |
---|
6342 | else |
---|
6343 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
6344 | lt_cv_file_magic_test_file= |
---|
6345 | lt_cv_deplibs_check_method='unknown' |
---|
6346 | # Need to set the preceding variable on all platforms that support |
---|
6347 | # interlibrary dependencies. |
---|
6348 | # 'none' -- dependencies not supported. |
---|
6349 | # `unknown' -- same as none, but documents that we really don't know. |
---|
6350 | # 'pass_all' -- all dependencies passed with no checks. |
---|
6351 | # 'test_compile' -- check by making test program. |
---|
6352 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
6353 | # which responds to the $file_magic_cmd with a given extended regex. |
---|
6354 | # If you have `file' or equivalent on your system and you're not sure |
---|
6355 | # whether `pass_all' will *always* work, you probably want this one. |
---|
6356 | |
---|
6357 | case $host_os in |
---|
6358 | aix[4-9]*) |
---|
6359 | lt_cv_deplibs_check_method=pass_all |
---|
6360 | ;; |
---|
6361 | |
---|
6362 | beos*) |
---|
6363 | lt_cv_deplibs_check_method=pass_all |
---|
6364 | ;; |
---|
6365 | |
---|
6366 | bsdi[45]*) |
---|
6367 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
6368 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
6369 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
6370 | ;; |
---|
6371 | |
---|
6372 | cygwin*) |
---|
6373 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
6374 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
6375 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
6376 | ;; |
---|
6377 | |
---|
6378 | mingw* | pw32*) |
---|
6379 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
6380 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
---|
6381 | # unless we find 'file', for example because we are cross-compiling. |
---|
6382 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
---|
6383 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
---|
6384 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
6385 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
6386 | else |
---|
6387 | # Keep this pattern in sync with the one in func_win32_libid. |
---|
6388 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
---|
6389 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
6390 | fi |
---|
6391 | ;; |
---|
6392 | |
---|
6393 | cegcc*) |
---|
6394 | # use the weaker test based on 'objdump'. See mingw*. |
---|
6395 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
---|
6396 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
6397 | ;; |
---|
6398 | |
---|
6399 | darwin* | rhapsody*) |
---|
6400 | lt_cv_deplibs_check_method=pass_all |
---|
6401 | ;; |
---|
6402 | |
---|
6403 | freebsd* | dragonfly*) |
---|
6404 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
---|
6405 | case $host_cpu in |
---|
6406 | i*86 ) |
---|
6407 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
6408 | # Let's accept both of them until this is cleared up. |
---|
6409 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
---|
6410 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
6411 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
6412 | ;; |
---|
6413 | esac |
---|
6414 | else |
---|
6415 | lt_cv_deplibs_check_method=pass_all |
---|
6416 | fi |
---|
6417 | ;; |
---|
6418 | |
---|
6419 | gnu*) |
---|
6420 | lt_cv_deplibs_check_method=pass_all |
---|
6421 | ;; |
---|
6422 | |
---|
6423 | haiku*) |
---|
6424 | lt_cv_deplibs_check_method=pass_all |
---|
6425 | ;; |
---|
6426 | |
---|
6427 | hpux10.20* | hpux11*) |
---|
6428 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
6429 | case $host_cpu in |
---|
6430 | ia64*) |
---|
6431 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
---|
6432 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
6433 | ;; |
---|
6434 | hppa*64*) |
---|
6435 | 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]' |
---|
6436 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
6437 | ;; |
---|
6438 | *) |
---|
6439 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
---|
6440 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
6441 | ;; |
---|
6442 | esac |
---|
6443 | ;; |
---|
6444 | |
---|
6445 | interix[3-9]*) |
---|
6446 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
---|
6447 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
---|
6448 | ;; |
---|
6449 | |
---|
6450 | irix5* | irix6* | nonstopux*) |
---|
6451 | case $LD in |
---|
6452 | *-32|*"-32 ") libmagic=32-bit;; |
---|
6453 | *-n32|*"-n32 ") libmagic=N32;; |
---|
6454 | *-64|*"-64 ") libmagic=64-bit;; |
---|
6455 | *) libmagic=never-match;; |
---|
6456 | esac |
---|
6457 | lt_cv_deplibs_check_method=pass_all |
---|
6458 | ;; |
---|
6459 | |
---|
6460 | # This must be glibc/ELF. |
---|
6461 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
---|
6462 | lt_cv_deplibs_check_method=pass_all |
---|
6463 | ;; |
---|
6464 | |
---|
6465 | netbsd*) |
---|
6466 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
---|
6467 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
6468 | else |
---|
6469 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
---|
6470 | fi |
---|
6471 | ;; |
---|
6472 | |
---|
6473 | newos6*) |
---|
6474 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
6475 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
6476 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
6477 | ;; |
---|
6478 | |
---|
6479 | *nto* | *qnx*) |
---|
6480 | lt_cv_deplibs_check_method=pass_all |
---|
6481 | ;; |
---|
6482 | |
---|
6483 | openbsd*) |
---|
6484 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
6485 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
---|
6486 | else |
---|
6487 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
6488 | fi |
---|
6489 | ;; |
---|
6490 | |
---|
6491 | osf3* | osf4* | osf5*) |
---|
6492 | lt_cv_deplibs_check_method=pass_all |
---|
6493 | ;; |
---|
6494 | |
---|
6495 | rdos*) |
---|
6496 | lt_cv_deplibs_check_method=pass_all |
---|
6497 | ;; |
---|
6498 | |
---|
6499 | solaris*) |
---|
6500 | lt_cv_deplibs_check_method=pass_all |
---|
6501 | ;; |
---|
6502 | |
---|
6503 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
6504 | lt_cv_deplibs_check_method=pass_all |
---|
6505 | ;; |
---|
6506 | |
---|
6507 | sysv4 | sysv4.3*) |
---|
6508 | case $host_vendor in |
---|
6509 | motorola) |
---|
6510 | 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]' |
---|
6511 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
6512 | ;; |
---|
6513 | ncr) |
---|
6514 | lt_cv_deplibs_check_method=pass_all |
---|
6515 | ;; |
---|
6516 | sequent) |
---|
6517 | lt_cv_file_magic_cmd='/bin/file' |
---|
6518 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
6519 | ;; |
---|
6520 | sni) |
---|
6521 | lt_cv_file_magic_cmd='/bin/file' |
---|
6522 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
6523 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
6524 | ;; |
---|
6525 | siemens) |
---|
6526 | lt_cv_deplibs_check_method=pass_all |
---|
6527 | ;; |
---|
6528 | pc) |
---|
6529 | lt_cv_deplibs_check_method=pass_all |
---|
6530 | ;; |
---|
6531 | esac |
---|
6532 | ;; |
---|
6533 | |
---|
6534 | tpf*) |
---|
6535 | lt_cv_deplibs_check_method=pass_all |
---|
6536 | ;; |
---|
6537 | esac |
---|
6538 | |
---|
6539 | fi |
---|
6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
---|
6541 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
---|
6542 | |
---|
6543 | file_magic_glob= |
---|
6544 | want_nocaseglob=no |
---|
6545 | if test "$build" = "$host"; then |
---|
6546 | case $host_os in |
---|
6547 | mingw* | pw32*) |
---|
6548 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
---|
6549 | want_nocaseglob=yes |
---|
6550 | else |
---|
6551 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
---|
6552 | fi |
---|
6553 | ;; |
---|
6554 | esac |
---|
6555 | fi |
---|
6556 | |
---|
6557 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
6558 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
6559 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
6560 | |
---|
6561 | |
---|
6562 | |
---|
6563 | |
---|
6564 | |
---|
6565 | |
---|
6566 | |
---|
6567 | |
---|
6568 | |
---|
6569 | |
---|
6570 | |
---|
6571 | |
---|
6572 | |
---|
6573 | |
---|
6574 | |
---|
6575 | |
---|
6576 | |
---|
6577 | |
---|
6578 | |
---|
6579 | |
---|
6580 | |
---|
6581 | |
---|
6582 | if test -n "$ac_tool_prefix"; then |
---|
6583 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
---|
6584 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
---|
6585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6586 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6587 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
---|
6588 | $as_echo_n "(cached) " >&6 |
---|
6589 | else |
---|
6590 | if test -n "$DLLTOOL"; then |
---|
6591 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
---|
6592 | else |
---|
6593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6594 | for as_dir in $PATH |
---|
6595 | do |
---|
6596 | IFS=$as_save_IFS |
---|
6597 | test -z "$as_dir" && as_dir=. |
---|
6598 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6599 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6600 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
---|
6601 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6602 | break 2 |
---|
6603 | fi |
---|
6604 | done |
---|
6605 | done |
---|
6606 | IFS=$as_save_IFS |
---|
6607 | |
---|
6608 | fi |
---|
6609 | fi |
---|
6610 | DLLTOOL=$ac_cv_prog_DLLTOOL |
---|
6611 | if test -n "$DLLTOOL"; then |
---|
6612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
---|
6613 | $as_echo "$DLLTOOL" >&6; } |
---|
6614 | else |
---|
6615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6616 | $as_echo "no" >&6; } |
---|
6617 | fi |
---|
6618 | |
---|
6619 | |
---|
6620 | fi |
---|
6621 | if test -z "$ac_cv_prog_DLLTOOL"; then |
---|
6622 | ac_ct_DLLTOOL=$DLLTOOL |
---|
6623 | # Extract the first word of "dlltool", so it can be a program name with args. |
---|
6624 | set dummy dlltool; ac_word=$2 |
---|
6625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6626 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6627 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
---|
6628 | $as_echo_n "(cached) " >&6 |
---|
6629 | else |
---|
6630 | if test -n "$ac_ct_DLLTOOL"; then |
---|
6631 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
---|
6632 | else |
---|
6633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6634 | for as_dir in $PATH |
---|
6635 | do |
---|
6636 | IFS=$as_save_IFS |
---|
6637 | test -z "$as_dir" && as_dir=. |
---|
6638 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6639 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6640 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
---|
6641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6642 | break 2 |
---|
6643 | fi |
---|
6644 | done |
---|
6645 | done |
---|
6646 | IFS=$as_save_IFS |
---|
6647 | |
---|
6648 | fi |
---|
6649 | fi |
---|
6650 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
---|
6651 | if test -n "$ac_ct_DLLTOOL"; then |
---|
6652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
---|
6653 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
---|
6654 | else |
---|
6655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6656 | $as_echo "no" >&6; } |
---|
6657 | fi |
---|
6658 | |
---|
6659 | if test "x$ac_ct_DLLTOOL" = x; then |
---|
6660 | DLLTOOL="false" |
---|
6661 | else |
---|
6662 | case $cross_compiling:$ac_tool_warned in |
---|
6663 | yes:) |
---|
6664 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6665 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6666 | ac_tool_warned=yes ;; |
---|
6667 | esac |
---|
6668 | DLLTOOL=$ac_ct_DLLTOOL |
---|
6669 | fi |
---|
6670 | else |
---|
6671 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
---|
6672 | fi |
---|
6673 | |
---|
6674 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
6675 | |
---|
6676 | |
---|
6677 | |
---|
6678 | |
---|
6679 | |
---|
6680 | |
---|
6681 | |
---|
6682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
---|
6683 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
---|
6684 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
---|
6685 | $as_echo_n "(cached) " >&6 |
---|
6686 | else |
---|
6687 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
---|
6688 | |
---|
6689 | case $host_os in |
---|
6690 | cygwin* | mingw* | pw32* | cegcc*) |
---|
6691 | # two different shell functions defined in ltmain.sh |
---|
6692 | # decide which to use based on capabilities of $DLLTOOL |
---|
6693 | case `$DLLTOOL --help 2>&1` in |
---|
6694 | *--identify-strict*) |
---|
6695 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
---|
6696 | ;; |
---|
6697 | *) |
---|
6698 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
---|
6699 | ;; |
---|
6700 | esac |
---|
6701 | ;; |
---|
6702 | *) |
---|
6703 | # fallback: assume linklib IS sharedlib |
---|
6704 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
---|
6705 | ;; |
---|
6706 | esac |
---|
6707 | |
---|
6708 | fi |
---|
6709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
---|
6710 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
---|
6711 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
---|
6712 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
---|
6713 | |
---|
6714 | |
---|
6715 | |
---|
6716 | |
---|
6717 | |
---|
6718 | |
---|
6719 | |
---|
6720 | |
---|
6721 | if test -n "$ac_tool_prefix"; then |
---|
6722 | for ac_prog in ar |
---|
6723 | do |
---|
6724 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
6725 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
6726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6727 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6728 | if ${ac_cv_prog_AR+:} false; then : |
---|
6729 | $as_echo_n "(cached) " >&6 |
---|
6730 | else |
---|
6731 | if test -n "$AR"; then |
---|
6732 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
6733 | else |
---|
6734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6735 | for as_dir in $PATH |
---|
6736 | do |
---|
6737 | IFS=$as_save_IFS |
---|
6738 | test -z "$as_dir" && as_dir=. |
---|
6739 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6740 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6741 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
---|
6742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6743 | break 2 |
---|
6744 | fi |
---|
6745 | done |
---|
6746 | done |
---|
6747 | IFS=$as_save_IFS |
---|
6748 | |
---|
6749 | fi |
---|
6750 | fi |
---|
6751 | AR=$ac_cv_prog_AR |
---|
6752 | if test -n "$AR"; then |
---|
6753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
---|
6754 | $as_echo "$AR" >&6; } |
---|
6755 | else |
---|
6756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6757 | $as_echo "no" >&6; } |
---|
6758 | fi |
---|
6759 | |
---|
6760 | |
---|
6761 | test -n "$AR" && break |
---|
6762 | done |
---|
6763 | fi |
---|
6764 | if test -z "$AR"; then |
---|
6765 | ac_ct_AR=$AR |
---|
6766 | for ac_prog in ar |
---|
6767 | do |
---|
6768 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
6769 | set dummy $ac_prog; ac_word=$2 |
---|
6770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6771 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6772 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
---|
6773 | $as_echo_n "(cached) " >&6 |
---|
6774 | else |
---|
6775 | if test -n "$ac_ct_AR"; then |
---|
6776 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
---|
6777 | else |
---|
6778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6779 | for as_dir in $PATH |
---|
6780 | do |
---|
6781 | IFS=$as_save_IFS |
---|
6782 | test -z "$as_dir" && as_dir=. |
---|
6783 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6784 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6785 | ac_cv_prog_ac_ct_AR="$ac_prog" |
---|
6786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6787 | break 2 |
---|
6788 | fi |
---|
6789 | done |
---|
6790 | done |
---|
6791 | IFS=$as_save_IFS |
---|
6792 | |
---|
6793 | fi |
---|
6794 | fi |
---|
6795 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
---|
6796 | if test -n "$ac_ct_AR"; then |
---|
6797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
---|
6798 | $as_echo "$ac_ct_AR" >&6; } |
---|
6799 | else |
---|
6800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6801 | $as_echo "no" >&6; } |
---|
6802 | fi |
---|
6803 | |
---|
6804 | |
---|
6805 | test -n "$ac_ct_AR" && break |
---|
6806 | done |
---|
6807 | |
---|
6808 | if test "x$ac_ct_AR" = x; then |
---|
6809 | AR="false" |
---|
6810 | else |
---|
6811 | case $cross_compiling:$ac_tool_warned in |
---|
6812 | yes:) |
---|
6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6814 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6815 | ac_tool_warned=yes ;; |
---|
6816 | esac |
---|
6817 | AR=$ac_ct_AR |
---|
6818 | fi |
---|
6819 | fi |
---|
6820 | |
---|
6821 | : ${AR=ar} |
---|
6822 | : ${AR_FLAGS=cru} |
---|
6823 | |
---|
6824 | |
---|
6825 | |
---|
6826 | |
---|
6827 | |
---|
6828 | |
---|
6829 | |
---|
6830 | |
---|
6831 | |
---|
6832 | |
---|
6833 | |
---|
6834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
---|
6835 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
---|
6836 | if ${lt_cv_ar_at_file+:} false; then : |
---|
6837 | $as_echo_n "(cached) " >&6 |
---|
6838 | else |
---|
6839 | lt_cv_ar_at_file=no |
---|
6840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6841 | /* end confdefs.h. */ |
---|
6842 | |
---|
6843 | int |
---|
6844 | main () |
---|
6845 | { |
---|
6846 | |
---|
6847 | ; |
---|
6848 | return 0; |
---|
6849 | } |
---|
6850 | _ACEOF |
---|
6851 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6852 | echo conftest.$ac_objext > conftest.lst |
---|
6853 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
---|
6854 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
---|
6855 | (eval $lt_ar_try) 2>&5 |
---|
6856 | ac_status=$? |
---|
6857 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
6858 | test $ac_status = 0; } |
---|
6859 | if test "$ac_status" -eq 0; then |
---|
6860 | # Ensure the archiver fails upon bogus file names. |
---|
6861 | rm -f conftest.$ac_objext libconftest.a |
---|
6862 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
---|
6863 | (eval $lt_ar_try) 2>&5 |
---|
6864 | ac_status=$? |
---|
6865 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
6866 | test $ac_status = 0; } |
---|
6867 | if test "$ac_status" -ne 0; then |
---|
6868 | lt_cv_ar_at_file=@ |
---|
6869 | fi |
---|
6870 | fi |
---|
6871 | rm -f conftest.* libconftest.a |
---|
6872 | |
---|
6873 | fi |
---|
6874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6875 | |
---|
6876 | fi |
---|
6877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
---|
6878 | $as_echo "$lt_cv_ar_at_file" >&6; } |
---|
6879 | |
---|
6880 | if test "x$lt_cv_ar_at_file" = xno; then |
---|
6881 | archiver_list_spec= |
---|
6882 | else |
---|
6883 | archiver_list_spec=$lt_cv_ar_at_file |
---|
6884 | fi |
---|
6885 | |
---|
6886 | |
---|
6887 | |
---|
6888 | |
---|
6889 | |
---|
6890 | |
---|
6891 | |
---|
6892 | if test -n "$ac_tool_prefix"; then |
---|
6893 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
6894 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
6895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6896 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6897 | if ${ac_cv_prog_STRIP+:} false; then : |
---|
6898 | $as_echo_n "(cached) " >&6 |
---|
6899 | else |
---|
6900 | if test -n "$STRIP"; then |
---|
6901 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
6902 | else |
---|
6903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6904 | for as_dir in $PATH |
---|
6905 | do |
---|
6906 | IFS=$as_save_IFS |
---|
6907 | test -z "$as_dir" && as_dir=. |
---|
6908 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6909 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6910 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
6911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6912 | break 2 |
---|
6913 | fi |
---|
6914 | done |
---|
6915 | done |
---|
6916 | IFS=$as_save_IFS |
---|
6917 | |
---|
6918 | fi |
---|
6919 | fi |
---|
6920 | STRIP=$ac_cv_prog_STRIP |
---|
6921 | if test -n "$STRIP"; then |
---|
6922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
---|
6923 | $as_echo "$STRIP" >&6; } |
---|
6924 | else |
---|
6925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6926 | $as_echo "no" >&6; } |
---|
6927 | fi |
---|
6928 | |
---|
6929 | |
---|
6930 | fi |
---|
6931 | if test -z "$ac_cv_prog_STRIP"; then |
---|
6932 | ac_ct_STRIP=$STRIP |
---|
6933 | # Extract the first word of "strip", so it can be a program name with args. |
---|
6934 | set dummy strip; ac_word=$2 |
---|
6935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6936 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6937 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
---|
6938 | $as_echo_n "(cached) " >&6 |
---|
6939 | else |
---|
6940 | if test -n "$ac_ct_STRIP"; then |
---|
6941 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
6942 | else |
---|
6943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6944 | for as_dir in $PATH |
---|
6945 | do |
---|
6946 | IFS=$as_save_IFS |
---|
6947 | test -z "$as_dir" && as_dir=. |
---|
6948 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6949 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6950 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
6951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6952 | break 2 |
---|
6953 | fi |
---|
6954 | done |
---|
6955 | done |
---|
6956 | IFS=$as_save_IFS |
---|
6957 | |
---|
6958 | fi |
---|
6959 | fi |
---|
6960 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
6961 | if test -n "$ac_ct_STRIP"; then |
---|
6962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
---|
6963 | $as_echo "$ac_ct_STRIP" >&6; } |
---|
6964 | else |
---|
6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6966 | $as_echo "no" >&6; } |
---|
6967 | fi |
---|
6968 | |
---|
6969 | if test "x$ac_ct_STRIP" = x; then |
---|
6970 | STRIP=":" |
---|
6971 | else |
---|
6972 | case $cross_compiling:$ac_tool_warned in |
---|
6973 | yes:) |
---|
6974 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6975 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6976 | ac_tool_warned=yes ;; |
---|
6977 | esac |
---|
6978 | STRIP=$ac_ct_STRIP |
---|
6979 | fi |
---|
6980 | else |
---|
6981 | STRIP="$ac_cv_prog_STRIP" |
---|
6982 | fi |
---|
6983 | |
---|
6984 | test -z "$STRIP" && STRIP=: |
---|
6985 | |
---|
6986 | |
---|
6987 | |
---|
6988 | |
---|
6989 | |
---|
6990 | |
---|
6991 | if test -n "$ac_tool_prefix"; then |
---|
6992 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
6993 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
6994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6995 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6996 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
6997 | $as_echo_n "(cached) " >&6 |
---|
6998 | else |
---|
6999 | if test -n "$RANLIB"; then |
---|
7000 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
7001 | else |
---|
7002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7003 | for as_dir in $PATH |
---|
7004 | do |
---|
7005 | IFS=$as_save_IFS |
---|
7006 | test -z "$as_dir" && as_dir=. |
---|
7007 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7008 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7009 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
7010 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7011 | break 2 |
---|
7012 | fi |
---|
7013 | done |
---|
7014 | done |
---|
7015 | IFS=$as_save_IFS |
---|
7016 | |
---|
7017 | fi |
---|
7018 | fi |
---|
7019 | RANLIB=$ac_cv_prog_RANLIB |
---|
7020 | if test -n "$RANLIB"; then |
---|
7021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
7022 | $as_echo "$RANLIB" >&6; } |
---|
7023 | else |
---|
7024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7025 | $as_echo "no" >&6; } |
---|
7026 | fi |
---|
7027 | |
---|
7028 | |
---|
7029 | fi |
---|
7030 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
7031 | ac_ct_RANLIB=$RANLIB |
---|
7032 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
7033 | set dummy ranlib; ac_word=$2 |
---|
7034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7035 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7036 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
7037 | $as_echo_n "(cached) " >&6 |
---|
7038 | else |
---|
7039 | if test -n "$ac_ct_RANLIB"; then |
---|
7040 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
7041 | else |
---|
7042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7043 | for as_dir in $PATH |
---|
7044 | do |
---|
7045 | IFS=$as_save_IFS |
---|
7046 | test -z "$as_dir" && as_dir=. |
---|
7047 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7048 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7049 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
7050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7051 | break 2 |
---|
7052 | fi |
---|
7053 | done |
---|
7054 | done |
---|
7055 | IFS=$as_save_IFS |
---|
7056 | |
---|
7057 | fi |
---|
7058 | fi |
---|
7059 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
7060 | if test -n "$ac_ct_RANLIB"; then |
---|
7061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
7062 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
7063 | else |
---|
7064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7065 | $as_echo "no" >&6; } |
---|
7066 | fi |
---|
7067 | |
---|
7068 | if test "x$ac_ct_RANLIB" = x; then |
---|
7069 | RANLIB=":" |
---|
7070 | else |
---|
7071 | case $cross_compiling:$ac_tool_warned in |
---|
7072 | yes:) |
---|
7073 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
7074 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
7075 | ac_tool_warned=yes ;; |
---|
7076 | esac |
---|
7077 | RANLIB=$ac_ct_RANLIB |
---|
7078 | fi |
---|
7079 | else |
---|
7080 | RANLIB="$ac_cv_prog_RANLIB" |
---|
7081 | fi |
---|
7082 | |
---|
7083 | test -z "$RANLIB" && RANLIB=: |
---|
7084 | |
---|
7085 | |
---|
7086 | |
---|
7087 | |
---|
7088 | |
---|
7089 | |
---|
7090 | # Determine commands to create old-style static archives. |
---|
7091 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
---|
7092 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
7093 | old_postuninstall_cmds= |
---|
7094 | |
---|
7095 | if test -n "$RANLIB"; then |
---|
7096 | case $host_os in |
---|
7097 | openbsd*) |
---|
7098 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
---|
7099 | ;; |
---|
7100 | *) |
---|
7101 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
---|
7102 | ;; |
---|
7103 | esac |
---|
7104 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
---|
7105 | fi |
---|
7106 | |
---|
7107 | case $host_os in |
---|
7108 | darwin*) |
---|
7109 | lock_old_archive_extraction=yes ;; |
---|
7110 | *) |
---|
7111 | lock_old_archive_extraction=no ;; |
---|
7112 | esac |
---|
7113 | |
---|
7114 | |
---|
7115 | |
---|
7116 | |
---|
7117 | |
---|
7118 | |
---|
7119 | |
---|
7120 | |
---|
7121 | |
---|
7122 | |
---|
7123 | |
---|
7124 | |
---|
7125 | |
---|
7126 | |
---|
7127 | |
---|
7128 | |
---|
7129 | |
---|
7130 | |
---|
7131 | |
---|
7132 | |
---|
7133 | |
---|
7134 | |
---|
7135 | |
---|
7136 | |
---|
7137 | |
---|
7138 | |
---|
7139 | |
---|
7140 | |
---|
7141 | |
---|
7142 | |
---|
7143 | |
---|
7144 | |
---|
7145 | |
---|
7146 | |
---|
7147 | |
---|
7148 | |
---|
7149 | |
---|
7150 | |
---|
7151 | |
---|
7152 | # If no C compiler was specified, use CC. |
---|
7153 | LTCC=${LTCC-"$CC"} |
---|
7154 | |
---|
7155 | # If no C compiler flags were specified, use CFLAGS. |
---|
7156 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
7157 | |
---|
7158 | # Allow CC to be a program name with arguments. |
---|
7159 | compiler=$CC |
---|
7160 | |
---|
7161 | |
---|
7162 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
7163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
---|
7164 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
---|
7165 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
---|
7166 | $as_echo_n "(cached) " >&6 |
---|
7167 | else |
---|
7168 | |
---|
7169 | # These are sane defaults that work on at least a few old systems. |
---|
7170 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
7171 | |
---|
7172 | # Character class describing NM global symbol codes. |
---|
7173 | symcode='[BCDEGRST]' |
---|
7174 | |
---|
7175 | # Regexp to match symbols that can be accessed directly from C. |
---|
7176 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
---|
7177 | |
---|
7178 | # Define system-specific variables. |
---|
7179 | case $host_os in |
---|
7180 | aix*) |
---|
7181 | symcode='[BCDT]' |
---|
7182 | ;; |
---|
7183 | cygwin* | mingw* | pw32* | cegcc*) |
---|
7184 | symcode='[ABCDGISTW]' |
---|
7185 | ;; |
---|
7186 | hpux*) |
---|
7187 | if test "$host_cpu" = ia64; then |
---|
7188 | symcode='[ABCDEGRST]' |
---|
7189 | fi |
---|
7190 | ;; |
---|
7191 | irix* | nonstopux*) |
---|
7192 | symcode='[BCDEGRST]' |
---|
7193 | ;; |
---|
7194 | osf*) |
---|
7195 | symcode='[BCDEGQRST]' |
---|
7196 | ;; |
---|
7197 | solaris*) |
---|
7198 | symcode='[BDRT]' |
---|
7199 | ;; |
---|
7200 | sco3.2v5*) |
---|
7201 | symcode='[DT]' |
---|
7202 | ;; |
---|
7203 | sysv4.2uw2*) |
---|
7204 | symcode='[DT]' |
---|
7205 | ;; |
---|
7206 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
---|
7207 | symcode='[ABDT]' |
---|
7208 | ;; |
---|
7209 | sysv4) |
---|
7210 | symcode='[DFNSTU]' |
---|
7211 | ;; |
---|
7212 | esac |
---|
7213 | |
---|
7214 | # If we're using GNU nm, then use its standard symbol codes. |
---|
7215 | case `$NM -V 2>&1` in |
---|
7216 | *GNU* | *'with BFD'*) |
---|
7217 | symcode='[ABCDGIRSTW]' ;; |
---|
7218 | esac |
---|
7219 | |
---|
7220 | # Transform an extracted symbol line into a proper C declaration. |
---|
7221 | # Some systems (esp. on ia64) link data and code symbols differently, |
---|
7222 | # so use this general approach. |
---|
7223 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
7224 | |
---|
7225 | # Transform an extracted symbol line into symbol name and symbol address |
---|
7226 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
---|
7227 | 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'" |
---|
7228 | |
---|
7229 | # Handle CRLF in mingw tool chain |
---|
7230 | opt_cr= |
---|
7231 | case $build_os in |
---|
7232 | mingw*) |
---|
7233 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
7234 | ;; |
---|
7235 | esac |
---|
7236 | |
---|
7237 | # Try without a prefix underscore, then with it. |
---|
7238 | for ac_symprfx in "" "_"; do |
---|
7239 | |
---|
7240 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
---|
7241 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
---|
7242 | |
---|
7243 | # Write the raw and C identifiers. |
---|
7244 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
---|
7245 | # Fake it for dumpbin and say T for any non-static function |
---|
7246 | # and D for any global variable. |
---|
7247 | # Also find C++ and __fastcall symbols from MSVC++, |
---|
7248 | # which start with @ or ?. |
---|
7249 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
---|
7250 | " {last_section=section; section=\$ 3};"\ |
---|
7251 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
---|
7252 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
---|
7253 | " \$ 0!~/External *\|/{next};"\ |
---|
7254 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
---|
7255 | " {if(hide[section]) next};"\ |
---|
7256 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
---|
7257 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
---|
7258 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
---|
7259 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
---|
7260 | " ' prfx=^$ac_symprfx" |
---|
7261 | else |
---|
7262 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
---|
7263 | fi |
---|
7264 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
---|
7265 | |
---|
7266 | # Check to see that the pipe works correctly. |
---|
7267 | pipe_works=no |
---|
7268 | |
---|
7269 | rm -f conftest* |
---|
7270 | cat > conftest.$ac_ext <<_LT_EOF |
---|
7271 | #ifdef __cplusplus |
---|
7272 | extern "C" { |
---|
7273 | #endif |
---|
7274 | char nm_test_var; |
---|
7275 | void nm_test_func(void); |
---|
7276 | void nm_test_func(void){} |
---|
7277 | #ifdef __cplusplus |
---|
7278 | } |
---|
7279 | #endif |
---|
7280 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
7281 | _LT_EOF |
---|
7282 | |
---|
7283 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
7284 | (eval $ac_compile) 2>&5 |
---|
7285 | ac_status=$? |
---|
7286 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7287 | test $ac_status = 0; }; then |
---|
7288 | # Now try to grab the symbols. |
---|
7289 | nlist=conftest.nm |
---|
7290 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
---|
7291 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
---|
7292 | ac_status=$? |
---|
7293 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7294 | test $ac_status = 0; } && test -s "$nlist"; then |
---|
7295 | # Try sorting and uniquifying the output. |
---|
7296 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
7297 | mv -f "$nlist"T "$nlist" |
---|
7298 | else |
---|
7299 | rm -f "$nlist"T |
---|
7300 | fi |
---|
7301 | |
---|
7302 | # Make sure that we snagged all the symbols we need. |
---|
7303 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
---|
7304 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
---|
7305 | cat <<_LT_EOF > conftest.$ac_ext |
---|
7306 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
---|
7307 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
---|
7308 | /* DATA imports from DLLs on WIN32 con't be const, because runtime |
---|
7309 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
---|
7310 | # define LT_DLSYM_CONST |
---|
7311 | #elif defined(__osf__) |
---|
7312 | /* This system does not cope well with relocations in const data. */ |
---|
7313 | # define LT_DLSYM_CONST |
---|
7314 | #else |
---|
7315 | # define LT_DLSYM_CONST const |
---|
7316 | #endif |
---|
7317 | |
---|
7318 | #ifdef __cplusplus |
---|
7319 | extern "C" { |
---|
7320 | #endif |
---|
7321 | |
---|
7322 | _LT_EOF |
---|
7323 | # Now generate the symbol file. |
---|
7324 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
---|
7325 | |
---|
7326 | cat <<_LT_EOF >> conftest.$ac_ext |
---|
7327 | |
---|
7328 | /* The mapping between symbol names and symbols. */ |
---|
7329 | LT_DLSYM_CONST struct { |
---|
7330 | const char *name; |
---|
7331 | void *address; |
---|
7332 | } |
---|
7333 | lt__PROGRAM__LTX_preloaded_symbols[] = |
---|
7334 | { |
---|
7335 | { "@PROGRAM@", (void *) 0 }, |
---|
7336 | _LT_EOF |
---|
7337 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
---|
7338 | cat <<\_LT_EOF >> conftest.$ac_ext |
---|
7339 | {0, (void *) 0} |
---|
7340 | }; |
---|
7341 | |
---|
7342 | /* This works around a problem in FreeBSD linker */ |
---|
7343 | #ifdef FREEBSD_WORKAROUND |
---|
7344 | static const void *lt_preloaded_setup() { |
---|
7345 | return lt__PROGRAM__LTX_preloaded_symbols; |
---|
7346 | } |
---|
7347 | #endif |
---|
7348 | |
---|
7349 | #ifdef __cplusplus |
---|
7350 | } |
---|
7351 | #endif |
---|
7352 | _LT_EOF |
---|
7353 | # Now try linking the two files. |
---|
7354 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
7355 | lt_globsym_save_LIBS=$LIBS |
---|
7356 | lt_globsym_save_CFLAGS=$CFLAGS |
---|
7357 | LIBS="conftstm.$ac_objext" |
---|
7358 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
---|
7359 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
---|
7360 | (eval $ac_link) 2>&5 |
---|
7361 | ac_status=$? |
---|
7362 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7363 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
---|
7364 | pipe_works=yes |
---|
7365 | fi |
---|
7366 | LIBS=$lt_globsym_save_LIBS |
---|
7367 | CFLAGS=$lt_globsym_save_CFLAGS |
---|
7368 | else |
---|
7369 | echo "cannot find nm_test_func in $nlist" >&5 |
---|
7370 | fi |
---|
7371 | else |
---|
7372 | echo "cannot find nm_test_var in $nlist" >&5 |
---|
7373 | fi |
---|
7374 | else |
---|
7375 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
---|
7376 | fi |
---|
7377 | else |
---|
7378 | echo "$progname: failed program was:" >&5 |
---|
7379 | cat conftest.$ac_ext >&5 |
---|
7380 | fi |
---|
7381 | rm -rf conftest* conftst* |
---|
7382 | |
---|
7383 | # Do not use the global_symbol_pipe unless it works. |
---|
7384 | if test "$pipe_works" = yes; then |
---|
7385 | break |
---|
7386 | else |
---|
7387 | lt_cv_sys_global_symbol_pipe= |
---|
7388 | fi |
---|
7389 | done |
---|
7390 | |
---|
7391 | fi |
---|
7392 | |
---|
7393 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
7394 | lt_cv_sys_global_symbol_to_cdecl= |
---|
7395 | fi |
---|
7396 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
---|
7397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
---|
7398 | $as_echo "failed" >&6; } |
---|
7399 | else |
---|
7400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
---|
7401 | $as_echo "ok" >&6; } |
---|
7402 | fi |
---|
7403 | |
---|
7404 | # Response file support. |
---|
7405 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
---|
7406 | nm_file_list_spec='@' |
---|
7407 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
---|
7408 | nm_file_list_spec='@' |
---|
7409 | fi |
---|
7410 | |
---|
7411 | |
---|
7412 | |
---|
7413 | |
---|
7414 | |
---|
7415 | |
---|
7416 | |
---|
7417 | |
---|
7418 | |
---|
7419 | |
---|
7420 | |
---|
7421 | |
---|
7422 | |
---|
7423 | |
---|
7424 | |
---|
7425 | |
---|
7426 | |
---|
7427 | |
---|
7428 | |
---|
7429 | |
---|
7430 | |
---|
7431 | |
---|
7432 | |
---|
7433 | |
---|
7434 | |
---|
7435 | |
---|
7436 | |
---|
7437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
---|
7438 | $as_echo_n "checking for sysroot... " >&6; } |
---|
7439 | |
---|
7440 | # Check whether --with-sysroot was given. |
---|
7441 | if test "${with_sysroot+set}" = set; then : |
---|
7442 | withval=$with_sysroot; |
---|
7443 | else |
---|
7444 | with_sysroot=no |
---|
7445 | fi |
---|
7446 | |
---|
7447 | |
---|
7448 | lt_sysroot= |
---|
7449 | case ${with_sysroot} in #( |
---|
7450 | yes) |
---|
7451 | if test "$GCC" = yes; then |
---|
7452 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
---|
7453 | fi |
---|
7454 | ;; #( |
---|
7455 | /*) |
---|
7456 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
---|
7457 | ;; #( |
---|
7458 | no|'') |
---|
7459 | ;; #( |
---|
7460 | *) |
---|
7461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
---|
7462 | $as_echo "${with_sysroot}" >&6; } |
---|
7463 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
---|
7464 | ;; |
---|
7465 | esac |
---|
7466 | |
---|
7467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
---|
7468 | $as_echo "${lt_sysroot:-no}" >&6; } |
---|
7469 | |
---|
7470 | |
---|
7471 | |
---|
7472 | |
---|
7473 | |
---|
7474 | # Check whether --enable-libtool-lock was given. |
---|
7475 | if test "${enable_libtool_lock+set}" = set; then : |
---|
7476 | enableval=$enable_libtool_lock; |
---|
7477 | fi |
---|
7478 | |
---|
7479 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
7480 | |
---|
7481 | # Some flags need to be propagated to the compiler or linker for good |
---|
7482 | # libtool support. |
---|
7483 | case $host in |
---|
7484 | ia64-*-hpux*) |
---|
7485 | # Find out which ABI we are using. |
---|
7486 | echo 'int i;' > 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 | case `/usr/bin/file conftest.$ac_objext` in |
---|
7493 | *ELF-32*) |
---|
7494 | HPUX_IA64_MODE="32" |
---|
7495 | ;; |
---|
7496 | *ELF-64*) |
---|
7497 | HPUX_IA64_MODE="64" |
---|
7498 | ;; |
---|
7499 | esac |
---|
7500 | fi |
---|
7501 | rm -rf conftest* |
---|
7502 | ;; |
---|
7503 | *-*-irix6*) |
---|
7504 | # Find out which ABI we are using. |
---|
7505 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
---|
7506 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
7507 | (eval $ac_compile) 2>&5 |
---|
7508 | ac_status=$? |
---|
7509 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7510 | test $ac_status = 0; }; then |
---|
7511 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
7512 | case `/usr/bin/file conftest.$ac_objext` in |
---|
7513 | *32-bit*) |
---|
7514 | LD="${LD-ld} -melf32bsmip" |
---|
7515 | ;; |
---|
7516 | *N32*) |
---|
7517 | LD="${LD-ld} -melf32bmipn32" |
---|
7518 | ;; |
---|
7519 | *64-bit*) |
---|
7520 | LD="${LD-ld} -melf64bmip" |
---|
7521 | ;; |
---|
7522 | esac |
---|
7523 | else |
---|
7524 | case `/usr/bin/file conftest.$ac_objext` in |
---|
7525 | *32-bit*) |
---|
7526 | LD="${LD-ld} -32" |
---|
7527 | ;; |
---|
7528 | *N32*) |
---|
7529 | LD="${LD-ld} -n32" |
---|
7530 | ;; |
---|
7531 | *64-bit*) |
---|
7532 | LD="${LD-ld} -64" |
---|
7533 | ;; |
---|
7534 | esac |
---|
7535 | fi |
---|
7536 | fi |
---|
7537 | rm -rf conftest* |
---|
7538 | ;; |
---|
7539 | |
---|
7540 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
---|
7541 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
---|
7542 | # Find out which ABI we are using. |
---|
7543 | echo 'int i;' > conftest.$ac_ext |
---|
7544 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
7545 | (eval $ac_compile) 2>&5 |
---|
7546 | ac_status=$? |
---|
7547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7548 | test $ac_status = 0; }; then |
---|
7549 | case `/usr/bin/file conftest.o` in |
---|
7550 | *32-bit*) |
---|
7551 | case $host in |
---|
7552 | x86_64-*kfreebsd*-gnu) |
---|
7553 | LD="${LD-ld} -m elf_i386_fbsd" |
---|
7554 | ;; |
---|
7555 | x86_64-*linux*) |
---|
7556 | LD="${LD-ld} -m elf_i386" |
---|
7557 | ;; |
---|
7558 | ppc64-*linux*|powerpc64-*linux*) |
---|
7559 | LD="${LD-ld} -m elf32ppclinux" |
---|
7560 | ;; |
---|
7561 | s390x-*linux*) |
---|
7562 | LD="${LD-ld} -m elf_s390" |
---|
7563 | ;; |
---|
7564 | sparc64-*linux*) |
---|
7565 | LD="${LD-ld} -m elf32_sparc" |
---|
7566 | ;; |
---|
7567 | esac |
---|
7568 | ;; |
---|
7569 | *64-bit*) |
---|
7570 | case $host in |
---|
7571 | x86_64-*kfreebsd*-gnu) |
---|
7572 | LD="${LD-ld} -m elf_x86_64_fbsd" |
---|
7573 | ;; |
---|
7574 | x86_64-*linux*) |
---|
7575 | LD="${LD-ld} -m elf_x86_64" |
---|
7576 | ;; |
---|
7577 | ppc*-*linux*|powerpc*-*linux*) |
---|
7578 | LD="${LD-ld} -m elf64ppc" |
---|
7579 | ;; |
---|
7580 | s390*-*linux*|s390*-*tpf*) |
---|
7581 | LD="${LD-ld} -m elf64_s390" |
---|
7582 | ;; |
---|
7583 | sparc*-*linux*) |
---|
7584 | LD="${LD-ld} -m elf64_sparc" |
---|
7585 | ;; |
---|
7586 | esac |
---|
7587 | ;; |
---|
7588 | esac |
---|
7589 | fi |
---|
7590 | rm -rf conftest* |
---|
7591 | ;; |
---|
7592 | |
---|
7593 | *-*-sco3.2v5*) |
---|
7594 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
7595 | SAVE_CFLAGS="$CFLAGS" |
---|
7596 | CFLAGS="$CFLAGS -belf" |
---|
7597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
---|
7598 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
---|
7599 | if ${lt_cv_cc_needs_belf+:} false; then : |
---|
7600 | $as_echo_n "(cached) " >&6 |
---|
7601 | else |
---|
7602 | ac_ext=c |
---|
7603 | ac_cpp='$CPP $CPPFLAGS' |
---|
7604 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7605 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7606 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7607 | |
---|
7608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7609 | /* end confdefs.h. */ |
---|
7610 | |
---|
7611 | int |
---|
7612 | main () |
---|
7613 | { |
---|
7614 | |
---|
7615 | ; |
---|
7616 | return 0; |
---|
7617 | } |
---|
7618 | _ACEOF |
---|
7619 | if ac_fn_c_try_link "$LINENO"; then : |
---|
7620 | lt_cv_cc_needs_belf=yes |
---|
7621 | else |
---|
7622 | lt_cv_cc_needs_belf=no |
---|
7623 | fi |
---|
7624 | rm -f core conftest.err conftest.$ac_objext \ |
---|
7625 | conftest$ac_exeext conftest.$ac_ext |
---|
7626 | ac_ext=c |
---|
7627 | ac_cpp='$CPP $CPPFLAGS' |
---|
7628 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7629 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7630 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7631 | |
---|
7632 | fi |
---|
7633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
---|
7634 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
---|
7635 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
7636 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
7637 | CFLAGS="$SAVE_CFLAGS" |
---|
7638 | fi |
---|
7639 | ;; |
---|
7640 | *-*solaris*) |
---|
7641 | # Find out which ABI we are using. |
---|
7642 | echo 'int i;' > conftest.$ac_ext |
---|
7643 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
7644 | (eval $ac_compile) 2>&5 |
---|
7645 | ac_status=$? |
---|
7646 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7647 | test $ac_status = 0; }; then |
---|
7648 | case `/usr/bin/file conftest.o` in |
---|
7649 | *64-bit*) |
---|
7650 | case $lt_cv_prog_gnu_ld in |
---|
7651 | yes*) |
---|
7652 | case $host in |
---|
7653 | i?86-*-solaris*) |
---|
7654 | LD="${LD-ld} -m elf_x86_64" |
---|
7655 | ;; |
---|
7656 | sparc*-*-solaris*) |
---|
7657 | LD="${LD-ld} -m elf64_sparc" |
---|
7658 | ;; |
---|
7659 | esac |
---|
7660 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
---|
7661 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
---|
7662 | LD="${LD-ld}_sol2" |
---|
7663 | fi |
---|
7664 | ;; |
---|
7665 | *) |
---|
7666 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
---|
7667 | LD="${LD-ld} -64" |
---|
7668 | fi |
---|
7669 | ;; |
---|
7670 | esac |
---|
7671 | ;; |
---|
7672 | esac |
---|
7673 | fi |
---|
7674 | rm -rf conftest* |
---|
7675 | ;; |
---|
7676 | esac |
---|
7677 | |
---|
7678 | need_locks="$enable_libtool_lock" |
---|
7679 | |
---|
7680 | if test -n "$ac_tool_prefix"; then |
---|
7681 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
---|
7682 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
---|
7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7684 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7685 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
---|
7686 | $as_echo_n "(cached) " >&6 |
---|
7687 | else |
---|
7688 | if test -n "$MANIFEST_TOOL"; then |
---|
7689 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
---|
7690 | else |
---|
7691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7692 | for as_dir in $PATH |
---|
7693 | do |
---|
7694 | IFS=$as_save_IFS |
---|
7695 | test -z "$as_dir" && as_dir=. |
---|
7696 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7697 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7698 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
---|
7699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7700 | break 2 |
---|
7701 | fi |
---|
7702 | done |
---|
7703 | done |
---|
7704 | IFS=$as_save_IFS |
---|
7705 | |
---|
7706 | fi |
---|
7707 | fi |
---|
7708 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
---|
7709 | if test -n "$MANIFEST_TOOL"; then |
---|
7710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
---|
7711 | $as_echo "$MANIFEST_TOOL" >&6; } |
---|
7712 | else |
---|
7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7714 | $as_echo "no" >&6; } |
---|
7715 | fi |
---|
7716 | |
---|
7717 | |
---|
7718 | fi |
---|
7719 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
---|
7720 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
---|
7721 | # Extract the first word of "mt", so it can be a program name with args. |
---|
7722 | set dummy mt; ac_word=$2 |
---|
7723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7724 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7725 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
---|
7726 | $as_echo_n "(cached) " >&6 |
---|
7727 | else |
---|
7728 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
---|
7729 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
---|
7730 | else |
---|
7731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7732 | for as_dir in $PATH |
---|
7733 | do |
---|
7734 | IFS=$as_save_IFS |
---|
7735 | test -z "$as_dir" && as_dir=. |
---|
7736 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7738 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
---|
7739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7740 | break 2 |
---|
7741 | fi |
---|
7742 | done |
---|
7743 | done |
---|
7744 | IFS=$as_save_IFS |
---|
7745 | |
---|
7746 | fi |
---|
7747 | fi |
---|
7748 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
---|
7749 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
---|
7750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
---|
7751 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
---|
7752 | else |
---|
7753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7754 | $as_echo "no" >&6; } |
---|
7755 | fi |
---|
7756 | |
---|
7757 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
---|
7758 | MANIFEST_TOOL=":" |
---|
7759 | else |
---|
7760 | case $cross_compiling:$ac_tool_warned in |
---|
7761 | yes:) |
---|
7762 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
7763 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
7764 | ac_tool_warned=yes ;; |
---|
7765 | esac |
---|
7766 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
---|
7767 | fi |
---|
7768 | else |
---|
7769 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
---|
7770 | fi |
---|
7771 | |
---|
7772 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
---|
7773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
---|
7774 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
---|
7775 | if ${lt_cv_path_mainfest_tool+:} false; then : |
---|
7776 | $as_echo_n "(cached) " >&6 |
---|
7777 | else |
---|
7778 | lt_cv_path_mainfest_tool=no |
---|
7779 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
---|
7780 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
---|
7781 | cat conftest.err >&5 |
---|
7782 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
---|
7783 | lt_cv_path_mainfest_tool=yes |
---|
7784 | fi |
---|
7785 | rm -f conftest* |
---|
7786 | fi |
---|
7787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
---|
7788 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
---|
7789 | if test "x$lt_cv_path_mainfest_tool" != xyes; then |
---|
7790 | MANIFEST_TOOL=: |
---|
7791 | fi |
---|
7792 | |
---|
7793 | |
---|
7794 | |
---|
7795 | |
---|
7796 | |
---|
7797 | |
---|
7798 | case $host_os in |
---|
7799 | rhapsody* | darwin*) |
---|
7800 | if test -n "$ac_tool_prefix"; then |
---|
7801 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
---|
7802 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
---|
7803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7804 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7805 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
---|
7806 | $as_echo_n "(cached) " >&6 |
---|
7807 | else |
---|
7808 | if test -n "$DSYMUTIL"; then |
---|
7809 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
---|
7810 | else |
---|
7811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7812 | for as_dir in $PATH |
---|
7813 | do |
---|
7814 | IFS=$as_save_IFS |
---|
7815 | test -z "$as_dir" && as_dir=. |
---|
7816 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7817 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7818 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
---|
7819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7820 | break 2 |
---|
7821 | fi |
---|
7822 | done |
---|
7823 | done |
---|
7824 | IFS=$as_save_IFS |
---|
7825 | |
---|
7826 | fi |
---|
7827 | fi |
---|
7828 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
---|
7829 | if test -n "$DSYMUTIL"; then |
---|
7830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
---|
7831 | $as_echo "$DSYMUTIL" >&6; } |
---|
7832 | else |
---|
7833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7834 | $as_echo "no" >&6; } |
---|
7835 | fi |
---|
7836 | |
---|
7837 | |
---|
7838 | fi |
---|
7839 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
---|
7840 | ac_ct_DSYMUTIL=$DSYMUTIL |
---|
7841 | # Extract the first word of "dsymutil", so it can be a program name with args. |
---|
7842 | set dummy dsymutil; ac_word=$2 |
---|
7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7844 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7845 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
---|
7846 | $as_echo_n "(cached) " >&6 |
---|
7847 | else |
---|
7848 | if test -n "$ac_ct_DSYMUTIL"; then |
---|
7849 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
---|
7850 | else |
---|
7851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7852 | for as_dir in $PATH |
---|
7853 | do |
---|
7854 | IFS=$as_save_IFS |
---|
7855 | test -z "$as_dir" && as_dir=. |
---|
7856 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7857 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7858 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
---|
7859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7860 | break 2 |
---|
7861 | fi |
---|
7862 | done |
---|
7863 | done |
---|
7864 | IFS=$as_save_IFS |
---|
7865 | |
---|
7866 | fi |
---|
7867 | fi |
---|
7868 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
---|
7869 | if test -n "$ac_ct_DSYMUTIL"; then |
---|
7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
---|
7871 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
---|
7872 | else |
---|
7873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7874 | $as_echo "no" >&6; } |
---|
7875 | fi |
---|
7876 | |
---|
7877 | if test "x$ac_ct_DSYMUTIL" = x; then |
---|
7878 | DSYMUTIL=":" |
---|
7879 | else |
---|
7880 | case $cross_compiling:$ac_tool_warned in |
---|
7881 | yes:) |
---|
7882 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
7883 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
7884 | ac_tool_warned=yes ;; |
---|
7885 | esac |
---|
7886 | DSYMUTIL=$ac_ct_DSYMUTIL |
---|
7887 | fi |
---|
7888 | else |
---|
7889 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
---|
7890 | fi |
---|
7891 | |
---|
7892 | if test -n "$ac_tool_prefix"; then |
---|
7893 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
---|
7894 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
---|
7895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7896 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7897 | if ${ac_cv_prog_NMEDIT+:} false; then : |
---|
7898 | $as_echo_n "(cached) " >&6 |
---|
7899 | else |
---|
7900 | if test -n "$NMEDIT"; then |
---|
7901 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
---|
7902 | else |
---|
7903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7904 | for as_dir in $PATH |
---|
7905 | do |
---|
7906 | IFS=$as_save_IFS |
---|
7907 | test -z "$as_dir" && as_dir=. |
---|
7908 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7909 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7910 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
---|
7911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7912 | break 2 |
---|
7913 | fi |
---|
7914 | done |
---|
7915 | done |
---|
7916 | IFS=$as_save_IFS |
---|
7917 | |
---|
7918 | fi |
---|
7919 | fi |
---|
7920 | NMEDIT=$ac_cv_prog_NMEDIT |
---|
7921 | if test -n "$NMEDIT"; then |
---|
7922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
---|
7923 | $as_echo "$NMEDIT" >&6; } |
---|
7924 | else |
---|
7925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7926 | $as_echo "no" >&6; } |
---|
7927 | fi |
---|
7928 | |
---|
7929 | |
---|
7930 | fi |
---|
7931 | if test -z "$ac_cv_prog_NMEDIT"; then |
---|
7932 | ac_ct_NMEDIT=$NMEDIT |
---|
7933 | # Extract the first word of "nmedit", so it can be a program name with args. |
---|
7934 | set dummy nmedit; ac_word=$2 |
---|
7935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7936 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7937 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
---|
7938 | $as_echo_n "(cached) " >&6 |
---|
7939 | else |
---|
7940 | if test -n "$ac_ct_NMEDIT"; then |
---|
7941 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
---|
7942 | else |
---|
7943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7944 | for as_dir in $PATH |
---|
7945 | do |
---|
7946 | IFS=$as_save_IFS |
---|
7947 | test -z "$as_dir" && as_dir=. |
---|
7948 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7949 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7950 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
---|
7951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7952 | break 2 |
---|
7953 | fi |
---|
7954 | done |
---|
7955 | done |
---|
7956 | IFS=$as_save_IFS |
---|
7957 | |
---|
7958 | fi |
---|
7959 | fi |
---|
7960 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
---|
7961 | if test -n "$ac_ct_NMEDIT"; then |
---|
7962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
---|
7963 | $as_echo "$ac_ct_NMEDIT" >&6; } |
---|
7964 | else |
---|
7965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7966 | $as_echo "no" >&6; } |
---|
7967 | fi |
---|
7968 | |
---|
7969 | if test "x$ac_ct_NMEDIT" = x; then |
---|
7970 | NMEDIT=":" |
---|
7971 | else |
---|
7972 | case $cross_compiling:$ac_tool_warned in |
---|
7973 | yes:) |
---|
7974 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
7975 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
7976 | ac_tool_warned=yes ;; |
---|
7977 | esac |
---|
7978 | NMEDIT=$ac_ct_NMEDIT |
---|
7979 | fi |
---|
7980 | else |
---|
7981 | NMEDIT="$ac_cv_prog_NMEDIT" |
---|
7982 | fi |
---|
7983 | |
---|
7984 | if test -n "$ac_tool_prefix"; then |
---|
7985 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
---|
7986 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
---|
7987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7988 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7989 | if ${ac_cv_prog_LIPO+:} false; then : |
---|
7990 | $as_echo_n "(cached) " >&6 |
---|
7991 | else |
---|
7992 | if test -n "$LIPO"; then |
---|
7993 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
---|
7994 | else |
---|
7995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7996 | for as_dir in $PATH |
---|
7997 | do |
---|
7998 | IFS=$as_save_IFS |
---|
7999 | test -z "$as_dir" && as_dir=. |
---|
8000 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8001 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8002 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
---|
8003 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8004 | break 2 |
---|
8005 | fi |
---|
8006 | done |
---|
8007 | done |
---|
8008 | IFS=$as_save_IFS |
---|
8009 | |
---|
8010 | fi |
---|
8011 | fi |
---|
8012 | LIPO=$ac_cv_prog_LIPO |
---|
8013 | if test -n "$LIPO"; then |
---|
8014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
---|
8015 | $as_echo "$LIPO" >&6; } |
---|
8016 | else |
---|
8017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8018 | $as_echo "no" >&6; } |
---|
8019 | fi |
---|
8020 | |
---|
8021 | |
---|
8022 | fi |
---|
8023 | if test -z "$ac_cv_prog_LIPO"; then |
---|
8024 | ac_ct_LIPO=$LIPO |
---|
8025 | # Extract the first word of "lipo", so it can be a program name with args. |
---|
8026 | set dummy lipo; ac_word=$2 |
---|
8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8028 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8029 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
---|
8030 | $as_echo_n "(cached) " >&6 |
---|
8031 | else |
---|
8032 | if test -n "$ac_ct_LIPO"; then |
---|
8033 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
---|
8034 | else |
---|
8035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8036 | for as_dir in $PATH |
---|
8037 | do |
---|
8038 | IFS=$as_save_IFS |
---|
8039 | test -z "$as_dir" && as_dir=. |
---|
8040 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8041 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8042 | ac_cv_prog_ac_ct_LIPO="lipo" |
---|
8043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8044 | break 2 |
---|
8045 | fi |
---|
8046 | done |
---|
8047 | done |
---|
8048 | IFS=$as_save_IFS |
---|
8049 | |
---|
8050 | fi |
---|
8051 | fi |
---|
8052 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
---|
8053 | if test -n "$ac_ct_LIPO"; then |
---|
8054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
---|
8055 | $as_echo "$ac_ct_LIPO" >&6; } |
---|
8056 | else |
---|
8057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8058 | $as_echo "no" >&6; } |
---|
8059 | fi |
---|
8060 | |
---|
8061 | if test "x$ac_ct_LIPO" = x; then |
---|
8062 | LIPO=":" |
---|
8063 | else |
---|
8064 | case $cross_compiling:$ac_tool_warned in |
---|
8065 | yes:) |
---|
8066 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
8067 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
8068 | ac_tool_warned=yes ;; |
---|
8069 | esac |
---|
8070 | LIPO=$ac_ct_LIPO |
---|
8071 | fi |
---|
8072 | else |
---|
8073 | LIPO="$ac_cv_prog_LIPO" |
---|
8074 | fi |
---|
8075 | |
---|
8076 | if test -n "$ac_tool_prefix"; then |
---|
8077 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
---|
8078 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
---|
8079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8080 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8081 | if ${ac_cv_prog_OTOOL+:} false; then : |
---|
8082 | $as_echo_n "(cached) " >&6 |
---|
8083 | else |
---|
8084 | if test -n "$OTOOL"; then |
---|
8085 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
---|
8086 | else |
---|
8087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8088 | for as_dir in $PATH |
---|
8089 | do |
---|
8090 | IFS=$as_save_IFS |
---|
8091 | test -z "$as_dir" && as_dir=. |
---|
8092 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8093 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8094 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
---|
8095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8096 | break 2 |
---|
8097 | fi |
---|
8098 | done |
---|
8099 | done |
---|
8100 | IFS=$as_save_IFS |
---|
8101 | |
---|
8102 | fi |
---|
8103 | fi |
---|
8104 | OTOOL=$ac_cv_prog_OTOOL |
---|
8105 | if test -n "$OTOOL"; then |
---|
8106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
---|
8107 | $as_echo "$OTOOL" >&6; } |
---|
8108 | else |
---|
8109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8110 | $as_echo "no" >&6; } |
---|
8111 | fi |
---|
8112 | |
---|
8113 | |
---|
8114 | fi |
---|
8115 | if test -z "$ac_cv_prog_OTOOL"; then |
---|
8116 | ac_ct_OTOOL=$OTOOL |
---|
8117 | # Extract the first word of "otool", so it can be a program name with args. |
---|
8118 | set dummy otool; ac_word=$2 |
---|
8119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8120 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8121 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
---|
8122 | $as_echo_n "(cached) " >&6 |
---|
8123 | else |
---|
8124 | if test -n "$ac_ct_OTOOL"; then |
---|
8125 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
---|
8126 | else |
---|
8127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8128 | for as_dir in $PATH |
---|
8129 | do |
---|
8130 | IFS=$as_save_IFS |
---|
8131 | test -z "$as_dir" && as_dir=. |
---|
8132 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8133 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8134 | ac_cv_prog_ac_ct_OTOOL="otool" |
---|
8135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8136 | break 2 |
---|
8137 | fi |
---|
8138 | done |
---|
8139 | done |
---|
8140 | IFS=$as_save_IFS |
---|
8141 | |
---|
8142 | fi |
---|
8143 | fi |
---|
8144 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
---|
8145 | if test -n "$ac_ct_OTOOL"; then |
---|
8146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
---|
8147 | $as_echo "$ac_ct_OTOOL" >&6; } |
---|
8148 | else |
---|
8149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8150 | $as_echo "no" >&6; } |
---|
8151 | fi |
---|
8152 | |
---|
8153 | if test "x$ac_ct_OTOOL" = x; then |
---|
8154 | OTOOL=":" |
---|
8155 | else |
---|
8156 | case $cross_compiling:$ac_tool_warned in |
---|
8157 | yes:) |
---|
8158 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
8159 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
8160 | ac_tool_warned=yes ;; |
---|
8161 | esac |
---|
8162 | OTOOL=$ac_ct_OTOOL |
---|
8163 | fi |
---|
8164 | else |
---|
8165 | OTOOL="$ac_cv_prog_OTOOL" |
---|
8166 | fi |
---|
8167 | |
---|
8168 | if test -n "$ac_tool_prefix"; then |
---|
8169 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
---|
8170 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
---|
8171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8172 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8173 | if ${ac_cv_prog_OTOOL64+:} false; then : |
---|
8174 | $as_echo_n "(cached) " >&6 |
---|
8175 | else |
---|
8176 | if test -n "$OTOOL64"; then |
---|
8177 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
---|
8178 | else |
---|
8179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8180 | for as_dir in $PATH |
---|
8181 | do |
---|
8182 | IFS=$as_save_IFS |
---|
8183 | test -z "$as_dir" && as_dir=. |
---|
8184 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8185 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8186 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
---|
8187 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8188 | break 2 |
---|
8189 | fi |
---|
8190 | done |
---|
8191 | done |
---|
8192 | IFS=$as_save_IFS |
---|
8193 | |
---|
8194 | fi |
---|
8195 | fi |
---|
8196 | OTOOL64=$ac_cv_prog_OTOOL64 |
---|
8197 | if test -n "$OTOOL64"; then |
---|
8198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
---|
8199 | $as_echo "$OTOOL64" >&6; } |
---|
8200 | else |
---|
8201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8202 | $as_echo "no" >&6; } |
---|
8203 | fi |
---|
8204 | |
---|
8205 | |
---|
8206 | fi |
---|
8207 | if test -z "$ac_cv_prog_OTOOL64"; then |
---|
8208 | ac_ct_OTOOL64=$OTOOL64 |
---|
8209 | # Extract the first word of "otool64", so it can be a program name with args. |
---|
8210 | set dummy otool64; ac_word=$2 |
---|
8211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8212 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8213 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
---|
8214 | $as_echo_n "(cached) " >&6 |
---|
8215 | else |
---|
8216 | if test -n "$ac_ct_OTOOL64"; then |
---|
8217 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
---|
8218 | else |
---|
8219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8220 | for as_dir in $PATH |
---|
8221 | do |
---|
8222 | IFS=$as_save_IFS |
---|
8223 | test -z "$as_dir" && as_dir=. |
---|
8224 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8225 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8226 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
---|
8227 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8228 | break 2 |
---|
8229 | fi |
---|
8230 | done |
---|
8231 | done |
---|
8232 | IFS=$as_save_IFS |
---|
8233 | |
---|
8234 | fi |
---|
8235 | fi |
---|
8236 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
---|
8237 | if test -n "$ac_ct_OTOOL64"; then |
---|
8238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
---|
8239 | $as_echo "$ac_ct_OTOOL64" >&6; } |
---|
8240 | else |
---|
8241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8242 | $as_echo "no" >&6; } |
---|
8243 | fi |
---|
8244 | |
---|
8245 | if test "x$ac_ct_OTOOL64" = x; then |
---|
8246 | OTOOL64=":" |
---|
8247 | else |
---|
8248 | case $cross_compiling:$ac_tool_warned in |
---|
8249 | yes:) |
---|
8250 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
8251 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
8252 | ac_tool_warned=yes ;; |
---|
8253 | esac |
---|
8254 | OTOOL64=$ac_ct_OTOOL64 |
---|
8255 | fi |
---|
8256 | else |
---|
8257 | OTOOL64="$ac_cv_prog_OTOOL64" |
---|
8258 | fi |
---|
8259 | |
---|
8260 | |
---|
8261 | |
---|
8262 | |
---|
8263 | |
---|
8264 | |
---|
8265 | |
---|
8266 | |
---|
8267 | |
---|
8268 | |
---|
8269 | |
---|
8270 | |
---|
8271 | |
---|
8272 | |
---|
8273 | |
---|
8274 | |
---|
8275 | |
---|
8276 | |
---|
8277 | |
---|
8278 | |
---|
8279 | |
---|
8280 | |
---|
8281 | |
---|
8282 | |
---|
8283 | |
---|
8284 | |
---|
8285 | |
---|
8286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
---|
8287 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
---|
8288 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
---|
8289 | $as_echo_n "(cached) " >&6 |
---|
8290 | else |
---|
8291 | lt_cv_apple_cc_single_mod=no |
---|
8292 | if test -z "${LT_MULTI_MODULE}"; then |
---|
8293 | # By default we will add the -single_module flag. You can override |
---|
8294 | # by either setting the environment variable LT_MULTI_MODULE |
---|
8295 | # non-empty at configure time, or by adding -multi_module to the |
---|
8296 | # link flags. |
---|
8297 | rm -rf libconftest.dylib* |
---|
8298 | echo "int foo(void){return 1;}" > conftest.c |
---|
8299 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
---|
8300 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
---|
8301 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
---|
8302 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
---|
8303 | _lt_result=$? |
---|
8304 | # If there is a non-empty error log, and "single_module" |
---|
8305 | # appears in it, assume the flag caused a linker warning |
---|
8306 | if test -s conftest.err && $GREP single_module conftest.err; then |
---|
8307 | cat conftest.err >&5 |
---|
8308 | # Otherwise, if the output was created with a 0 exit code from |
---|
8309 | # the compiler, it worked. |
---|
8310 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
---|
8311 | lt_cv_apple_cc_single_mod=yes |
---|
8312 | else |
---|
8313 | cat conftest.err >&5 |
---|
8314 | fi |
---|
8315 | rm -rf libconftest.dylib* |
---|
8316 | rm -f conftest.* |
---|
8317 | fi |
---|
8318 | fi |
---|
8319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
---|
8320 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
---|
8321 | |
---|
8322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
---|
8323 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
---|
8324 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
---|
8325 | $as_echo_n "(cached) " >&6 |
---|
8326 | else |
---|
8327 | lt_cv_ld_exported_symbols_list=no |
---|
8328 | save_LDFLAGS=$LDFLAGS |
---|
8329 | echo "_main" > conftest.sym |
---|
8330 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
---|
8331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8332 | /* end confdefs.h. */ |
---|
8333 | |
---|
8334 | int |
---|
8335 | main () |
---|
8336 | { |
---|
8337 | |
---|
8338 | ; |
---|
8339 | return 0; |
---|
8340 | } |
---|
8341 | _ACEOF |
---|
8342 | if ac_fn_c_try_link "$LINENO"; then : |
---|
8343 | lt_cv_ld_exported_symbols_list=yes |
---|
8344 | else |
---|
8345 | lt_cv_ld_exported_symbols_list=no |
---|
8346 | fi |
---|
8347 | rm -f core conftest.err conftest.$ac_objext \ |
---|
8348 | conftest$ac_exeext conftest.$ac_ext |
---|
8349 | LDFLAGS="$save_LDFLAGS" |
---|
8350 | |
---|
8351 | fi |
---|
8352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
---|
8353 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
---|
8354 | |
---|
8355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
---|
8356 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
---|
8357 | if ${lt_cv_ld_force_load+:} false; then : |
---|
8358 | $as_echo_n "(cached) " >&6 |
---|
8359 | else |
---|
8360 | lt_cv_ld_force_load=no |
---|
8361 | cat > conftest.c << _LT_EOF |
---|
8362 | int forced_loaded() { return 2;} |
---|
8363 | _LT_EOF |
---|
8364 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
---|
8365 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
---|
8366 | echo "$AR cru libconftest.a conftest.o" >&5 |
---|
8367 | $AR cru libconftest.a conftest.o 2>&5 |
---|
8368 | echo "$RANLIB libconftest.a" >&5 |
---|
8369 | $RANLIB libconftest.a 2>&5 |
---|
8370 | cat > conftest.c << _LT_EOF |
---|
8371 | int main() { return 0;} |
---|
8372 | _LT_EOF |
---|
8373 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
---|
8374 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
---|
8375 | _lt_result=$? |
---|
8376 | if test -s conftest.err && $GREP force_load conftest.err; then |
---|
8377 | cat conftest.err >&5 |
---|
8378 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
---|
8379 | lt_cv_ld_force_load=yes |
---|
8380 | else |
---|
8381 | cat conftest.err >&5 |
---|
8382 | fi |
---|
8383 | rm -f conftest.err libconftest.a conftest conftest.c |
---|
8384 | rm -rf conftest.dSYM |
---|
8385 | |
---|
8386 | fi |
---|
8387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
---|
8388 | $as_echo "$lt_cv_ld_force_load" >&6; } |
---|
8389 | case $host_os in |
---|
8390 | rhapsody* | darwin1.[012]) |
---|
8391 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
---|
8392 | darwin1.*) |
---|
8393 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
---|
8394 | darwin*) # darwin 5.x on |
---|
8395 | # if running on 10.5 or later, the deployment target defaults |
---|
8396 | # to the OS version, if on x86, and 10.4, the deployment |
---|
8397 | # target defaults to 10.4. Don't you love it? |
---|
8398 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
---|
8399 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
---|
8400 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
---|
8401 | 10.[012]*) |
---|
8402 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
---|
8403 | 10.*) |
---|
8404 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
---|
8405 | esac |
---|
8406 | ;; |
---|
8407 | esac |
---|
8408 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
---|
8409 | _lt_dar_single_mod='$single_module' |
---|
8410 | fi |
---|
8411 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
---|
8412 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
---|
8413 | else |
---|
8414 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8415 | fi |
---|
8416 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
---|
8417 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
---|
8418 | else |
---|
8419 | _lt_dsymutil= |
---|
8420 | fi |
---|
8421 | ;; |
---|
8422 | esac |
---|
8423 | |
---|
8424 | |
---|
8425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
8426 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
8427 | if ${ac_cv_header_stdc+:} false; then : |
---|
8428 | $as_echo_n "(cached) " >&6 |
---|
8429 | else |
---|
8430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8431 | /* end confdefs.h. */ |
---|
8432 | #include <stdlib.h> |
---|
8433 | #include <stdarg.h> |
---|
8434 | #include <string.h> |
---|
8435 | #include <float.h> |
---|
8436 | |
---|
8437 | int |
---|
8438 | main () |
---|
8439 | { |
---|
8440 | |
---|
8441 | ; |
---|
8442 | return 0; |
---|
8443 | } |
---|
8444 | _ACEOF |
---|
8445 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
8446 | ac_cv_header_stdc=yes |
---|
8447 | else |
---|
8448 | ac_cv_header_stdc=no |
---|
8449 | fi |
---|
8450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8451 | |
---|
8452 | if test $ac_cv_header_stdc = yes; then |
---|
8453 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
8454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8455 | /* end confdefs.h. */ |
---|
8456 | #include <string.h> |
---|
8457 | |
---|
8458 | _ACEOF |
---|
8459 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
8460 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
8461 | |
---|
8462 | else |
---|
8463 | ac_cv_header_stdc=no |
---|
8464 | fi |
---|
8465 | rm -f conftest* |
---|
8466 | |
---|
8467 | fi |
---|
8468 | |
---|
8469 | if test $ac_cv_header_stdc = yes; then |
---|
8470 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
8471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8472 | /* end confdefs.h. */ |
---|
8473 | #include <stdlib.h> |
---|
8474 | |
---|
8475 | _ACEOF |
---|
8476 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
8477 | $EGREP "free" >/dev/null 2>&1; then : |
---|
8478 | |
---|
8479 | else |
---|
8480 | ac_cv_header_stdc=no |
---|
8481 | fi |
---|
8482 | rm -f conftest* |
---|
8483 | |
---|
8484 | fi |
---|
8485 | |
---|
8486 | if test $ac_cv_header_stdc = yes; then |
---|
8487 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
8488 | if test "$cross_compiling" = yes; then : |
---|
8489 | : |
---|
8490 | else |
---|
8491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8492 | /* end confdefs.h. */ |
---|
8493 | #include <ctype.h> |
---|
8494 | #include <stdlib.h> |
---|
8495 | #if ((' ' & 0x0FF) == 0x020) |
---|
8496 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
8497 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
8498 | #else |
---|
8499 | # define ISLOWER(c) \ |
---|
8500 | (('a' <= (c) && (c) <= 'i') \ |
---|
8501 | || ('j' <= (c) && (c) <= 'r') \ |
---|
8502 | || ('s' <= (c) && (c) <= 'z')) |
---|
8503 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
8504 | #endif |
---|
8505 | |
---|
8506 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
8507 | int |
---|
8508 | main () |
---|
8509 | { |
---|
8510 | int i; |
---|
8511 | for (i = 0; i < 256; i++) |
---|
8512 | if (XOR (islower (i), ISLOWER (i)) |
---|
8513 | || toupper (i) != TOUPPER (i)) |
---|
8514 | return 2; |
---|
8515 | return 0; |
---|
8516 | } |
---|
8517 | _ACEOF |
---|
8518 | if ac_fn_c_try_run "$LINENO"; then : |
---|
8519 | |
---|
8520 | else |
---|
8521 | ac_cv_header_stdc=no |
---|
8522 | fi |
---|
8523 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
8524 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
8525 | fi |
---|
8526 | |
---|
8527 | fi |
---|
8528 | fi |
---|
8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
8530 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
8531 | if test $ac_cv_header_stdc = yes; then |
---|
8532 | |
---|
8533 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
8534 | |
---|
8535 | fi |
---|
8536 | |
---|
8537 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
8538 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
8539 | inttypes.h stdint.h unistd.h |
---|
8540 | do : |
---|
8541 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8542 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
8543 | " |
---|
8544 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
8545 | cat >>confdefs.h <<_ACEOF |
---|
8546 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8547 | _ACEOF |
---|
8548 | |
---|
8549 | fi |
---|
8550 | |
---|
8551 | done |
---|
8552 | |
---|
8553 | |
---|
8554 | for ac_header in dlfcn.h |
---|
8555 | do : |
---|
8556 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
---|
8557 | " |
---|
8558 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
---|
8559 | cat >>confdefs.h <<_ACEOF |
---|
8560 | #define HAVE_DLFCN_H 1 |
---|
8561 | _ACEOF |
---|
8562 | |
---|
8563 | fi |
---|
8564 | |
---|
8565 | done |
---|
8566 | |
---|
8567 | |
---|
8568 | |
---|
8569 | |
---|
8570 | func_stripname_cnf () |
---|
8571 | { |
---|
8572 | case ${2} in |
---|
8573 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
---|
8574 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
---|
8575 | esac |
---|
8576 | } # func_stripname_cnf |
---|
8577 | |
---|
8578 | |
---|
8579 | |
---|
8580 | |
---|
8581 | |
---|
8582 | # Set options |
---|
8583 | |
---|
8584 | |
---|
8585 | |
---|
8586 | enable_dlopen=no |
---|
8587 | |
---|
8588 | |
---|
8589 | |
---|
8590 | # Check whether --enable-shared was given. |
---|
8591 | if test "${enable_shared+set}" = set; then : |
---|
8592 | enableval=$enable_shared; p=${PACKAGE-default} |
---|
8593 | case $enableval in |
---|
8594 | yes) enable_shared=yes ;; |
---|
8595 | no) enable_shared=no ;; |
---|
8596 | *) |
---|
8597 | enable_shared=no |
---|
8598 | # Look at the argument we got. We use all the common list separators. |
---|
8599 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
8600 | for pkg in $enableval; do |
---|
8601 | IFS="$lt_save_ifs" |
---|
8602 | if test "X$pkg" = "X$p"; then |
---|
8603 | enable_shared=yes |
---|
8604 | fi |
---|
8605 | done |
---|
8606 | IFS="$lt_save_ifs" |
---|
8607 | ;; |
---|
8608 | esac |
---|
8609 | else |
---|
8610 | enable_shared=yes |
---|
8611 | fi |
---|
8612 | |
---|
8613 | |
---|
8614 | |
---|
8615 | |
---|
8616 | |
---|
8617 | |
---|
8618 | |
---|
8619 | |
---|
8620 | |
---|
8621 | # Check whether --enable-static was given. |
---|
8622 | if test "${enable_static+set}" = set; then : |
---|
8623 | enableval=$enable_static; p=${PACKAGE-default} |
---|
8624 | case $enableval in |
---|
8625 | yes) enable_static=yes ;; |
---|
8626 | no) enable_static=no ;; |
---|
8627 | *) |
---|
8628 | enable_static=no |
---|
8629 | # Look at the argument we got. We use all the common list separators. |
---|
8630 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
8631 | for pkg in $enableval; do |
---|
8632 | IFS="$lt_save_ifs" |
---|
8633 | if test "X$pkg" = "X$p"; then |
---|
8634 | enable_static=yes |
---|
8635 | fi |
---|
8636 | done |
---|
8637 | IFS="$lt_save_ifs" |
---|
8638 | ;; |
---|
8639 | esac |
---|
8640 | else |
---|
8641 | enable_static=yes |
---|
8642 | fi |
---|
8643 | |
---|
8644 | |
---|
8645 | |
---|
8646 | |
---|
8647 | |
---|
8648 | |
---|
8649 | |
---|
8650 | |
---|
8651 | |
---|
8652 | |
---|
8653 | # Check whether --with-pic was given. |
---|
8654 | if test "${with_pic+set}" = set; then : |
---|
8655 | withval=$with_pic; lt_p=${PACKAGE-default} |
---|
8656 | case $withval in |
---|
8657 | yes|no) pic_mode=$withval ;; |
---|
8658 | *) |
---|
8659 | pic_mode=default |
---|
8660 | # Look at the argument we got. We use all the common list separators. |
---|
8661 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
8662 | for lt_pkg in $withval; do |
---|
8663 | IFS="$lt_save_ifs" |
---|
8664 | if test "X$lt_pkg" = "X$lt_p"; then |
---|
8665 | pic_mode=yes |
---|
8666 | fi |
---|
8667 | done |
---|
8668 | IFS="$lt_save_ifs" |
---|
8669 | ;; |
---|
8670 | esac |
---|
8671 | else |
---|
8672 | pic_mode=default |
---|
8673 | fi |
---|
8674 | |
---|
8675 | |
---|
8676 | test -z "$pic_mode" && pic_mode=default |
---|
8677 | |
---|
8678 | |
---|
8679 | |
---|
8680 | |
---|
8681 | |
---|
8682 | |
---|
8683 | |
---|
8684 | # Check whether --enable-fast-install was given. |
---|
8685 | if test "${enable_fast_install+set}" = set; then : |
---|
8686 | enableval=$enable_fast_install; p=${PACKAGE-default} |
---|
8687 | case $enableval in |
---|
8688 | yes) enable_fast_install=yes ;; |
---|
8689 | no) enable_fast_install=no ;; |
---|
8690 | *) |
---|
8691 | enable_fast_install=no |
---|
8692 | # Look at the argument we got. We use all the common list separators. |
---|
8693 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
8694 | for pkg in $enableval; do |
---|
8695 | IFS="$lt_save_ifs" |
---|
8696 | if test "X$pkg" = "X$p"; then |
---|
8697 | enable_fast_install=yes |
---|
8698 | fi |
---|
8699 | done |
---|
8700 | IFS="$lt_save_ifs" |
---|
8701 | ;; |
---|
8702 | esac |
---|
8703 | else |
---|
8704 | enable_fast_install=yes |
---|
8705 | fi |
---|
8706 | |
---|
8707 | |
---|
8708 | |
---|
8709 | |
---|
8710 | |
---|
8711 | |
---|
8712 | |
---|
8713 | |
---|
8714 | |
---|
8715 | |
---|
8716 | |
---|
8717 | # This can be used to rebuild libtool when needed |
---|
8718 | LIBTOOL_DEPS="$ltmain" |
---|
8719 | |
---|
8720 | # Always use our own libtool. |
---|
8721 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
8722 | |
---|
8723 | |
---|
8724 | |
---|
8725 | |
---|
8726 | |
---|
8727 | |
---|
8728 | |
---|
8729 | |
---|
8730 | |
---|
8731 | |
---|
8732 | |
---|
8733 | |
---|
8734 | |
---|
8735 | |
---|
8736 | |
---|
8737 | |
---|
8738 | |
---|
8739 | |
---|
8740 | |
---|
8741 | |
---|
8742 | |
---|
8743 | |
---|
8744 | |
---|
8745 | |
---|
8746 | |
---|
8747 | |
---|
8748 | |
---|
8749 | |
---|
8750 | |
---|
8751 | |
---|
8752 | test -z "$LN_S" && LN_S="ln -s" |
---|
8753 | |
---|
8754 | |
---|
8755 | |
---|
8756 | |
---|
8757 | |
---|
8758 | |
---|
8759 | |
---|
8760 | |
---|
8761 | |
---|
8762 | |
---|
8763 | |
---|
8764 | |
---|
8765 | |
---|
8766 | |
---|
8767 | if test -n "${ZSH_VERSION+set}" ; then |
---|
8768 | setopt NO_GLOB_SUBST |
---|
8769 | fi |
---|
8770 | |
---|
8771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
---|
8772 | $as_echo_n "checking for objdir... " >&6; } |
---|
8773 | if ${lt_cv_objdir+:} false; then : |
---|
8774 | $as_echo_n "(cached) " >&6 |
---|
8775 | else |
---|
8776 | rm -f .libs 2>/dev/null |
---|
8777 | mkdir .libs 2>/dev/null |
---|
8778 | if test -d .libs; then |
---|
8779 | lt_cv_objdir=.libs |
---|
8780 | else |
---|
8781 | # MS-DOS does not allow filenames that begin with a dot. |
---|
8782 | lt_cv_objdir=_libs |
---|
8783 | fi |
---|
8784 | rmdir .libs 2>/dev/null |
---|
8785 | fi |
---|
8786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
---|
8787 | $as_echo "$lt_cv_objdir" >&6; } |
---|
8788 | objdir=$lt_cv_objdir |
---|
8789 | |
---|
8790 | |
---|
8791 | |
---|
8792 | |
---|
8793 | |
---|
8794 | cat >>confdefs.h <<_ACEOF |
---|
8795 | #define LT_OBJDIR "$lt_cv_objdir/" |
---|
8796 | _ACEOF |
---|
8797 | |
---|
8798 | |
---|
8799 | |
---|
8800 | |
---|
8801 | case $host_os in |
---|
8802 | aix3*) |
---|
8803 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
8804 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
8805 | # vanish in a puff of smoke. |
---|
8806 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
8807 | COLLECT_NAMES= |
---|
8808 | export COLLECT_NAMES |
---|
8809 | fi |
---|
8810 | ;; |
---|
8811 | esac |
---|
8812 | |
---|
8813 | # Global variables: |
---|
8814 | ofile=libtool |
---|
8815 | can_build_shared=yes |
---|
8816 | |
---|
8817 | # All known linkers require a `.a' archive for static linking (except MSVC, |
---|
8818 | # which needs '.lib'). |
---|
8819 | libext=a |
---|
8820 | |
---|
8821 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
---|
8822 | |
---|
8823 | old_CC="$CC" |
---|
8824 | old_CFLAGS="$CFLAGS" |
---|
8825 | |
---|
8826 | # Set sane defaults for various variables |
---|
8827 | test -z "$CC" && CC=cc |
---|
8828 | test -z "$LTCC" && LTCC=$CC |
---|
8829 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
---|
8830 | test -z "$LD" && LD=ld |
---|
8831 | test -z "$ac_objext" && ac_objext=o |
---|
8832 | |
---|
8833 | for cc_temp in $compiler""; do |
---|
8834 | case $cc_temp in |
---|
8835 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
8836 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
8837 | \-*) ;; |
---|
8838 | *) break;; |
---|
8839 | esac |
---|
8840 | done |
---|
8841 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
---|
8842 | |
---|
8843 | |
---|
8844 | # Only perform the check for file, if the check method requires it |
---|
8845 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
8846 | case $deplibs_check_method in |
---|
8847 | file_magic*) |
---|
8848 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
8849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
---|
8850 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
---|
8851 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
---|
8852 | $as_echo_n "(cached) " >&6 |
---|
8853 | else |
---|
8854 | case $MAGIC_CMD in |
---|
8855 | [\\/*] | ?:[\\/]*) |
---|
8856 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
8857 | ;; |
---|
8858 | *) |
---|
8859 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
8860 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
8861 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
8862 | for ac_dir in $ac_dummy; do |
---|
8863 | IFS="$lt_save_ifs" |
---|
8864 | test -z "$ac_dir" && ac_dir=. |
---|
8865 | if test -f $ac_dir/${ac_tool_prefix}file; then |
---|
8866 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
---|
8867 | if test -n "$file_magic_test_file"; then |
---|
8868 | case $deplibs_check_method in |
---|
8869 | "file_magic "*) |
---|
8870 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
8871 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
8872 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
8873 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
8874 | : |
---|
8875 | else |
---|
8876 | cat <<_LT_EOF 1>&2 |
---|
8877 | |
---|
8878 | *** Warning: the command libtool uses to detect shared libraries, |
---|
8879 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
8880 | *** The result is that libtool may fail to recognize shared libraries |
---|
8881 | *** as such. This will affect the creation of libtool libraries that |
---|
8882 | *** depend on shared libraries, but programs linked with such libtool |
---|
8883 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
8884 | *** may want to report the problem to your system manager and/or to |
---|
8885 | *** bug-libtool@gnu.org |
---|
8886 | |
---|
8887 | _LT_EOF |
---|
8888 | fi ;; |
---|
8889 | esac |
---|
8890 | fi |
---|
8891 | break |
---|
8892 | fi |
---|
8893 | done |
---|
8894 | IFS="$lt_save_ifs" |
---|
8895 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
8896 | ;; |
---|
8897 | esac |
---|
8898 | fi |
---|
8899 | |
---|
8900 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
8901 | if test -n "$MAGIC_CMD"; then |
---|
8902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
---|
8903 | $as_echo "$MAGIC_CMD" >&6; } |
---|
8904 | else |
---|
8905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8906 | $as_echo "no" >&6; } |
---|
8907 | fi |
---|
8908 | |
---|
8909 | |
---|
8910 | |
---|
8911 | |
---|
8912 | |
---|
8913 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
8914 | if test -n "$ac_tool_prefix"; then |
---|
8915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
---|
8916 | $as_echo_n "checking for file... " >&6; } |
---|
8917 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
---|
8918 | $as_echo_n "(cached) " >&6 |
---|
8919 | else |
---|
8920 | case $MAGIC_CMD in |
---|
8921 | [\\/*] | ?:[\\/]*) |
---|
8922 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
8923 | ;; |
---|
8924 | *) |
---|
8925 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
8926 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
8927 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
8928 | for ac_dir in $ac_dummy; do |
---|
8929 | IFS="$lt_save_ifs" |
---|
8930 | test -z "$ac_dir" && ac_dir=. |
---|
8931 | if test -f $ac_dir/file; then |
---|
8932 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
---|
8933 | if test -n "$file_magic_test_file"; then |
---|
8934 | case $deplibs_check_method in |
---|
8935 | "file_magic "*) |
---|
8936 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
8937 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
8938 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
8939 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
8940 | : |
---|
8941 | else |
---|
8942 | cat <<_LT_EOF 1>&2 |
---|
8943 | |
---|
8944 | *** Warning: the command libtool uses to detect shared libraries, |
---|
8945 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
8946 | *** The result is that libtool may fail to recognize shared libraries |
---|
8947 | *** as such. This will affect the creation of libtool libraries that |
---|
8948 | *** depend on shared libraries, but programs linked with such libtool |
---|
8949 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
8950 | *** may want to report the problem to your system manager and/or to |
---|
8951 | *** bug-libtool@gnu.org |
---|
8952 | |
---|
8953 | _LT_EOF |
---|
8954 | fi ;; |
---|
8955 | esac |
---|
8956 | fi |
---|
8957 | break |
---|
8958 | fi |
---|
8959 | done |
---|
8960 | IFS="$lt_save_ifs" |
---|
8961 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
8962 | ;; |
---|
8963 | esac |
---|
8964 | fi |
---|
8965 | |
---|
8966 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
8967 | if test -n "$MAGIC_CMD"; then |
---|
8968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
---|
8969 | $as_echo "$MAGIC_CMD" >&6; } |
---|
8970 | else |
---|
8971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8972 | $as_echo "no" >&6; } |
---|
8973 | fi |
---|
8974 | |
---|
8975 | |
---|
8976 | else |
---|
8977 | MAGIC_CMD=: |
---|
8978 | fi |
---|
8979 | fi |
---|
8980 | |
---|
8981 | fi |
---|
8982 | ;; |
---|
8983 | esac |
---|
8984 | |
---|
8985 | # Use C for the default configuration in the libtool script |
---|
8986 | |
---|
8987 | lt_save_CC="$CC" |
---|
8988 | ac_ext=c |
---|
8989 | ac_cpp='$CPP $CPPFLAGS' |
---|
8990 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
8991 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
8992 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
8993 | |
---|
8994 | |
---|
8995 | # Source file extension for C test sources. |
---|
8996 | ac_ext=c |
---|
8997 | |
---|
8998 | # Object file extension for compiled C test sources. |
---|
8999 | objext=o |
---|
9000 | objext=$objext |
---|
9001 | |
---|
9002 | # Code to be used in simple compile tests |
---|
9003 | lt_simple_compile_test_code="int some_variable = 0;" |
---|
9004 | |
---|
9005 | # Code to be used in simple link tests |
---|
9006 | lt_simple_link_test_code='int main(){return(0);}' |
---|
9007 | |
---|
9008 | |
---|
9009 | |
---|
9010 | |
---|
9011 | |
---|
9012 | |
---|
9013 | |
---|
9014 | # If no C compiler was specified, use CC. |
---|
9015 | LTCC=${LTCC-"$CC"} |
---|
9016 | |
---|
9017 | # If no C compiler flags were specified, use CFLAGS. |
---|
9018 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
9019 | |
---|
9020 | # Allow CC to be a program name with arguments. |
---|
9021 | compiler=$CC |
---|
9022 | |
---|
9023 | # Save the default compiler, since it gets overwritten when the other |
---|
9024 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
---|
9025 | compiler_DEFAULT=$CC |
---|
9026 | |
---|
9027 | # save warnings/boilerplate of simple test code |
---|
9028 | ac_outfile=conftest.$ac_objext |
---|
9029 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
9030 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
9031 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
9032 | $RM conftest* |
---|
9033 | |
---|
9034 | ac_outfile=conftest.$ac_objext |
---|
9035 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
9036 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
9037 | _lt_linker_boilerplate=`cat conftest.err` |
---|
9038 | $RM -r conftest* |
---|
9039 | |
---|
9040 | |
---|
9041 | if test -n "$compiler"; then |
---|
9042 | |
---|
9043 | lt_prog_compiler_no_builtin_flag= |
---|
9044 | |
---|
9045 | if test "$GCC" = yes; then |
---|
9046 | case $cc_basename in |
---|
9047 | nvcc*) |
---|
9048 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
---|
9049 | *) |
---|
9050 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
---|
9051 | esac |
---|
9052 | |
---|
9053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
9054 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
---|
9055 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
---|
9056 | $as_echo_n "(cached) " >&6 |
---|
9057 | else |
---|
9058 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
9059 | ac_outfile=conftest.$ac_objext |
---|
9060 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9061 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
9062 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
9063 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
9064 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
9065 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
9066 | # The option is referenced via a variable to avoid confusing sed. |
---|
9067 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
9068 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
9069 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
9070 | -e 's:$: $lt_compiler_flag:'` |
---|
9071 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
---|
9072 | (eval "$lt_compile" 2>conftest.err) |
---|
9073 | ac_status=$? |
---|
9074 | cat conftest.err >&5 |
---|
9075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9076 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
9077 | # The compiler can only warn and ignore the option if not recognized |
---|
9078 | # So say no if there are warnings other than the usual output. |
---|
9079 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
---|
9080 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
9081 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
9082 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
9083 | fi |
---|
9084 | fi |
---|
9085 | $RM conftest* |
---|
9086 | |
---|
9087 | fi |
---|
9088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
9089 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
---|
9090 | |
---|
9091 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
9092 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
---|
9093 | else |
---|
9094 | : |
---|
9095 | fi |
---|
9096 | |
---|
9097 | fi |
---|
9098 | |
---|
9099 | |
---|
9100 | |
---|
9101 | |
---|
9102 | |
---|
9103 | |
---|
9104 | lt_prog_compiler_wl= |
---|
9105 | lt_prog_compiler_pic= |
---|
9106 | lt_prog_compiler_static= |
---|
9107 | |
---|
9108 | |
---|
9109 | if test "$GCC" = yes; then |
---|
9110 | lt_prog_compiler_wl='-Wl,' |
---|
9111 | lt_prog_compiler_static='-static' |
---|
9112 | |
---|
9113 | case $host_os in |
---|
9114 | aix*) |
---|
9115 | # All AIX code is PIC. |
---|
9116 | if test "$host_cpu" = ia64; then |
---|
9117 | # AIX 5 now supports IA64 processor |
---|
9118 | lt_prog_compiler_static='-Bstatic' |
---|
9119 | fi |
---|
9120 | ;; |
---|
9121 | |
---|
9122 | amigaos*) |
---|
9123 | case $host_cpu in |
---|
9124 | powerpc) |
---|
9125 | # see comment about AmigaOS4 .so support |
---|
9126 | lt_prog_compiler_pic='-fPIC' |
---|
9127 | ;; |
---|
9128 | m68k) |
---|
9129 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
9130 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
9131 | # like `-m68040'. |
---|
9132 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
---|
9133 | ;; |
---|
9134 | esac |
---|
9135 | ;; |
---|
9136 | |
---|
9137 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
9138 | # PIC is the default for these OSes. |
---|
9139 | ;; |
---|
9140 | |
---|
9141 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
---|
9142 | # This hack is so that the source file can tell whether it is being |
---|
9143 | # built for inclusion in a dll (and should export symbols for example). |
---|
9144 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
---|
9145 | # (--disable-auto-import) libraries |
---|
9146 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
9147 | ;; |
---|
9148 | |
---|
9149 | darwin* | rhapsody*) |
---|
9150 | # PIC is the default on this platform |
---|
9151 | # Common symbols not allowed in MH_DYLIB files |
---|
9152 | lt_prog_compiler_pic='-fno-common' |
---|
9153 | ;; |
---|
9154 | |
---|
9155 | haiku*) |
---|
9156 | # PIC is the default for Haiku. |
---|
9157 | # The "-static" flag exists, but is broken. |
---|
9158 | lt_prog_compiler_static= |
---|
9159 | ;; |
---|
9160 | |
---|
9161 | hpux*) |
---|
9162 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
---|
9163 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
---|
9164 | # sets the default TLS model and affects inlining. |
---|
9165 | case $host_cpu in |
---|
9166 | hppa*64*) |
---|
9167 | # +Z the default |
---|
9168 | ;; |
---|
9169 | *) |
---|
9170 | lt_prog_compiler_pic='-fPIC' |
---|
9171 | ;; |
---|
9172 | esac |
---|
9173 | ;; |
---|
9174 | |
---|
9175 | interix[3-9]*) |
---|
9176 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
---|
9177 | # Instead, we relocate shared libraries at runtime. |
---|
9178 | ;; |
---|
9179 | |
---|
9180 | msdosdjgpp*) |
---|
9181 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
9182 | # on systems that don't support them. |
---|
9183 | lt_prog_compiler_can_build_shared=no |
---|
9184 | enable_shared=no |
---|
9185 | ;; |
---|
9186 | |
---|
9187 | *nto* | *qnx*) |
---|
9188 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
---|
9189 | # it will coredump. |
---|
9190 | lt_prog_compiler_pic='-fPIC -shared' |
---|
9191 | ;; |
---|
9192 | |
---|
9193 | sysv4*MP*) |
---|
9194 | if test -d /usr/nec; then |
---|
9195 | lt_prog_compiler_pic=-Kconform_pic |
---|
9196 | fi |
---|
9197 | ;; |
---|
9198 | |
---|
9199 | *) |
---|
9200 | lt_prog_compiler_pic='-fPIC' |
---|
9201 | ;; |
---|
9202 | esac |
---|
9203 | |
---|
9204 | case $cc_basename in |
---|
9205 | nvcc*) # Cuda Compiler Driver 2.2 |
---|
9206 | lt_prog_compiler_wl='-Xlinker ' |
---|
9207 | if test -n "$lt_prog_compiler_pic"; then |
---|
9208 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
---|
9209 | fi |
---|
9210 | ;; |
---|
9211 | esac |
---|
9212 | else |
---|
9213 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
9214 | case $host_os in |
---|
9215 | aix*) |
---|
9216 | lt_prog_compiler_wl='-Wl,' |
---|
9217 | if test "$host_cpu" = ia64; then |
---|
9218 | # AIX 5 now supports IA64 processor |
---|
9219 | lt_prog_compiler_static='-Bstatic' |
---|
9220 | else |
---|
9221 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
---|
9222 | fi |
---|
9223 | ;; |
---|
9224 | |
---|
9225 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
---|
9226 | # This hack is so that the source file can tell whether it is being |
---|
9227 | # built for inclusion in a dll (and should export symbols for example). |
---|
9228 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
9229 | ;; |
---|
9230 | |
---|
9231 | hpux9* | hpux10* | hpux11*) |
---|
9232 | lt_prog_compiler_wl='-Wl,' |
---|
9233 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
9234 | # not for PA HP-UX. |
---|
9235 | case $host_cpu in |
---|
9236 | hppa*64*|ia64*) |
---|
9237 | # +Z the default |
---|
9238 | ;; |
---|
9239 | *) |
---|
9240 | lt_prog_compiler_pic='+Z' |
---|
9241 | ;; |
---|
9242 | esac |
---|
9243 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
9244 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
---|
9245 | ;; |
---|
9246 | |
---|
9247 | irix5* | irix6* | nonstopux*) |
---|
9248 | lt_prog_compiler_wl='-Wl,' |
---|
9249 | # PIC (with -KPIC) is the default. |
---|
9250 | lt_prog_compiler_static='-non_shared' |
---|
9251 | ;; |
---|
9252 | |
---|
9253 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
---|
9254 | case $cc_basename in |
---|
9255 | # old Intel for x86_64 which still supported -KPIC. |
---|
9256 | ecc*) |
---|
9257 | lt_prog_compiler_wl='-Wl,' |
---|
9258 | lt_prog_compiler_pic='-KPIC' |
---|
9259 | lt_prog_compiler_static='-static' |
---|
9260 | ;; |
---|
9261 | # icc used to be incompatible with GCC. |
---|
9262 | # ICC 10 doesn't accept -KPIC any more. |
---|
9263 | icc* | ifort*) |
---|
9264 | lt_prog_compiler_wl='-Wl,' |
---|
9265 | lt_prog_compiler_pic='-fPIC' |
---|
9266 | lt_prog_compiler_static='-static' |
---|
9267 | ;; |
---|
9268 | # Lahey Fortran 8.1. |
---|
9269 | lf95*) |
---|
9270 | lt_prog_compiler_wl='-Wl,' |
---|
9271 | lt_prog_compiler_pic='--shared' |
---|
9272 | lt_prog_compiler_static='--static' |
---|
9273 | ;; |
---|
9274 | nagfor*) |
---|
9275 | # NAG Fortran compiler |
---|
9276 | lt_prog_compiler_wl='-Wl,-Wl,,' |
---|
9277 | lt_prog_compiler_pic='-PIC' |
---|
9278 | lt_prog_compiler_static='-Bstatic' |
---|
9279 | ;; |
---|
9280 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
---|
9281 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
9282 | # which looks to be a dead project) |
---|
9283 | lt_prog_compiler_wl='-Wl,' |
---|
9284 | lt_prog_compiler_pic='-fpic' |
---|
9285 | lt_prog_compiler_static='-Bstatic' |
---|
9286 | ;; |
---|
9287 | ccc*) |
---|
9288 | lt_prog_compiler_wl='-Wl,' |
---|
9289 | # All Alpha code is PIC. |
---|
9290 | lt_prog_compiler_static='-non_shared' |
---|
9291 | ;; |
---|
9292 | xl* | bgxl* | bgf* | mpixl*) |
---|
9293 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
---|
9294 | lt_prog_compiler_wl='-Wl,' |
---|
9295 | lt_prog_compiler_pic='-qpic' |
---|
9296 | lt_prog_compiler_static='-qstaticlink' |
---|
9297 | ;; |
---|
9298 | *) |
---|
9299 | case `$CC -V 2>&1 | sed 5q` in |
---|
9300 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
---|
9301 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
---|
9302 | lt_prog_compiler_pic='-KPIC' |
---|
9303 | lt_prog_compiler_static='-Bstatic' |
---|
9304 | lt_prog_compiler_wl='' |
---|
9305 | ;; |
---|
9306 | *Sun\ F* | *Sun*Fortran*) |
---|
9307 | lt_prog_compiler_pic='-KPIC' |
---|
9308 | lt_prog_compiler_static='-Bstatic' |
---|
9309 | lt_prog_compiler_wl='-Qoption ld ' |
---|
9310 | ;; |
---|
9311 | *Sun\ C*) |
---|
9312 | # Sun C 5.9 |
---|
9313 | lt_prog_compiler_pic='-KPIC' |
---|
9314 | lt_prog_compiler_static='-Bstatic' |
---|
9315 | lt_prog_compiler_wl='-Wl,' |
---|
9316 | ;; |
---|
9317 | *Intel*\ [CF]*Compiler*) |
---|
9318 | lt_prog_compiler_wl='-Wl,' |
---|
9319 | lt_prog_compiler_pic='-fPIC' |
---|
9320 | lt_prog_compiler_static='-static' |
---|
9321 | ;; |
---|
9322 | *Portland\ Group*) |
---|
9323 | lt_prog_compiler_wl='-Wl,' |
---|
9324 | lt_prog_compiler_pic='-fpic' |
---|
9325 | lt_prog_compiler_static='-Bstatic' |
---|
9326 | ;; |
---|
9327 | esac |
---|
9328 | ;; |
---|
9329 | esac |
---|
9330 | ;; |
---|
9331 | |
---|
9332 | newsos6) |
---|
9333 | lt_prog_compiler_pic='-KPIC' |
---|
9334 | lt_prog_compiler_static='-Bstatic' |
---|
9335 | ;; |
---|
9336 | |
---|
9337 | *nto* | *qnx*) |
---|
9338 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
---|
9339 | # it will coredump. |
---|
9340 | lt_prog_compiler_pic='-fPIC -shared' |
---|
9341 | ;; |
---|
9342 | |
---|
9343 | osf3* | osf4* | osf5*) |
---|
9344 | lt_prog_compiler_wl='-Wl,' |
---|
9345 | # All OSF/1 code is PIC. |
---|
9346 | lt_prog_compiler_static='-non_shared' |
---|
9347 | ;; |
---|
9348 | |
---|
9349 | rdos*) |
---|
9350 | lt_prog_compiler_static='-non_shared' |
---|
9351 | ;; |
---|
9352 | |
---|
9353 | solaris*) |
---|
9354 | lt_prog_compiler_pic='-KPIC' |
---|
9355 | lt_prog_compiler_static='-Bstatic' |
---|
9356 | case $cc_basename in |
---|
9357 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
---|
9358 | lt_prog_compiler_wl='-Qoption ld ';; |
---|
9359 | *) |
---|
9360 | lt_prog_compiler_wl='-Wl,';; |
---|
9361 | esac |
---|
9362 | ;; |
---|
9363 | |
---|
9364 | sunos4*) |
---|
9365 | lt_prog_compiler_wl='-Qoption ld ' |
---|
9366 | lt_prog_compiler_pic='-PIC' |
---|
9367 | lt_prog_compiler_static='-Bstatic' |
---|
9368 | ;; |
---|
9369 | |
---|
9370 | sysv4 | sysv4.2uw2* | sysv4.3*) |
---|
9371 | lt_prog_compiler_wl='-Wl,' |
---|
9372 | lt_prog_compiler_pic='-KPIC' |
---|
9373 | lt_prog_compiler_static='-Bstatic' |
---|
9374 | ;; |
---|
9375 | |
---|
9376 | sysv4*MP*) |
---|
9377 | if test -d /usr/nec ;then |
---|
9378 | lt_prog_compiler_pic='-Kconform_pic' |
---|
9379 | lt_prog_compiler_static='-Bstatic' |
---|
9380 | fi |
---|
9381 | ;; |
---|
9382 | |
---|
9383 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
---|
9384 | lt_prog_compiler_wl='-Wl,' |
---|
9385 | lt_prog_compiler_pic='-KPIC' |
---|
9386 | lt_prog_compiler_static='-Bstatic' |
---|
9387 | ;; |
---|
9388 | |
---|
9389 | unicos*) |
---|
9390 | lt_prog_compiler_wl='-Wl,' |
---|
9391 | lt_prog_compiler_can_build_shared=no |
---|
9392 | ;; |
---|
9393 | |
---|
9394 | uts4*) |
---|
9395 | lt_prog_compiler_pic='-pic' |
---|
9396 | lt_prog_compiler_static='-Bstatic' |
---|
9397 | ;; |
---|
9398 | |
---|
9399 | *) |
---|
9400 | lt_prog_compiler_can_build_shared=no |
---|
9401 | ;; |
---|
9402 | esac |
---|
9403 | fi |
---|
9404 | |
---|
9405 | case $host_os in |
---|
9406 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
9407 | *djgpp*) |
---|
9408 | lt_prog_compiler_pic= |
---|
9409 | ;; |
---|
9410 | *) |
---|
9411 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
---|
9412 | ;; |
---|
9413 | esac |
---|
9414 | |
---|
9415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
---|
9416 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
---|
9417 | if ${lt_cv_prog_compiler_pic+:} false; then : |
---|
9418 | $as_echo_n "(cached) " >&6 |
---|
9419 | else |
---|
9420 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
---|
9421 | fi |
---|
9422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
---|
9423 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
---|
9424 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
---|
9425 | |
---|
9426 | # |
---|
9427 | # Check to make sure the PIC flag actually works. |
---|
9428 | # |
---|
9429 | if test -n "$lt_prog_compiler_pic"; then |
---|
9430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
---|
9431 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
---|
9432 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
---|
9433 | $as_echo_n "(cached) " >&6 |
---|
9434 | else |
---|
9435 | lt_cv_prog_compiler_pic_works=no |
---|
9436 | ac_outfile=conftest.$ac_objext |
---|
9437 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9438 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
---|
9439 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
9440 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
9441 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
9442 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
9443 | # The option is referenced via a variable to avoid confusing sed. |
---|
9444 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
9445 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
9446 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
9447 | -e 's:$: $lt_compiler_flag:'` |
---|
9448 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
---|
9449 | (eval "$lt_compile" 2>conftest.err) |
---|
9450 | ac_status=$? |
---|
9451 | cat conftest.err >&5 |
---|
9452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9453 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
9454 | # The compiler can only warn and ignore the option if not recognized |
---|
9455 | # So say no if there are warnings other than the usual output. |
---|
9456 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
---|
9457 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
9458 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
9459 | lt_cv_prog_compiler_pic_works=yes |
---|
9460 | fi |
---|
9461 | fi |
---|
9462 | $RM conftest* |
---|
9463 | |
---|
9464 | fi |
---|
9465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
---|
9466 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
---|
9467 | |
---|
9468 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
---|
9469 | case $lt_prog_compiler_pic in |
---|
9470 | "" | " "*) ;; |
---|
9471 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
---|
9472 | esac |
---|
9473 | else |
---|
9474 | lt_prog_compiler_pic= |
---|
9475 | lt_prog_compiler_can_build_shared=no |
---|
9476 | fi |
---|
9477 | |
---|
9478 | fi |
---|
9479 | |
---|
9480 | |
---|
9481 | |
---|
9482 | |
---|
9483 | |
---|
9484 | |
---|
9485 | |
---|
9486 | |
---|
9487 | |
---|
9488 | |
---|
9489 | |
---|
9490 | # |
---|
9491 | # Check to make sure the static flag actually works. |
---|
9492 | # |
---|
9493 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
---|
9494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
---|
9495 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
---|
9496 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
---|
9497 | $as_echo_n "(cached) " >&6 |
---|
9498 | else |
---|
9499 | lt_cv_prog_compiler_static_works=no |
---|
9500 | save_LDFLAGS="$LDFLAGS" |
---|
9501 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
---|
9502 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
9503 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
9504 | # The linker can only warn and ignore the option if not recognized |
---|
9505 | # So say no if there are warnings |
---|
9506 | if test -s conftest.err; then |
---|
9507 | # Append any errors to the config.log. |
---|
9508 | cat conftest.err 1>&5 |
---|
9509 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
---|
9510 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
9511 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
9512 | lt_cv_prog_compiler_static_works=yes |
---|
9513 | fi |
---|
9514 | else |
---|
9515 | lt_cv_prog_compiler_static_works=yes |
---|
9516 | fi |
---|
9517 | fi |
---|
9518 | $RM -r conftest* |
---|
9519 | LDFLAGS="$save_LDFLAGS" |
---|
9520 | |
---|
9521 | fi |
---|
9522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
---|
9523 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
---|
9524 | |
---|
9525 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
---|
9526 | : |
---|
9527 | else |
---|
9528 | lt_prog_compiler_static= |
---|
9529 | fi |
---|
9530 | |
---|
9531 | |
---|
9532 | |
---|
9533 | |
---|
9534 | |
---|
9535 | |
---|
9536 | |
---|
9537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
9538 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
---|
9539 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
---|
9540 | $as_echo_n "(cached) " >&6 |
---|
9541 | else |
---|
9542 | lt_cv_prog_compiler_c_o=no |
---|
9543 | $RM -r conftest 2>/dev/null |
---|
9544 | mkdir conftest |
---|
9545 | cd conftest |
---|
9546 | mkdir out |
---|
9547 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9548 | |
---|
9549 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
9550 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
9551 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
9552 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
9553 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
9554 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
9555 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
9556 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
9557 | -e 's:$: $lt_compiler_flag:'` |
---|
9558 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
---|
9559 | (eval "$lt_compile" 2>out/conftest.err) |
---|
9560 | ac_status=$? |
---|
9561 | cat out/conftest.err >&5 |
---|
9562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9563 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
9564 | then |
---|
9565 | # The compiler can only warn and ignore the option if not recognized |
---|
9566 | # So say no if there are warnings |
---|
9567 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
---|
9568 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
9569 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
9570 | lt_cv_prog_compiler_c_o=yes |
---|
9571 | fi |
---|
9572 | fi |
---|
9573 | chmod u+w . 2>&5 |
---|
9574 | $RM conftest* |
---|
9575 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
9576 | # template instantiation |
---|
9577 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
---|
9578 | $RM out/* && rmdir out |
---|
9579 | cd .. |
---|
9580 | $RM -r conftest |
---|
9581 | $RM conftest* |
---|
9582 | |
---|
9583 | fi |
---|
9584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
9585 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
---|
9586 | |
---|
9587 | |
---|
9588 | |
---|
9589 | |
---|
9590 | |
---|
9591 | |
---|
9592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
9593 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
---|
9594 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
---|
9595 | $as_echo_n "(cached) " >&6 |
---|
9596 | else |
---|
9597 | lt_cv_prog_compiler_c_o=no |
---|
9598 | $RM -r conftest 2>/dev/null |
---|
9599 | mkdir conftest |
---|
9600 | cd conftest |
---|
9601 | mkdir out |
---|
9602 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9603 | |
---|
9604 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
9605 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
9606 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
9607 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
9608 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
9609 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
9610 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
9611 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
9612 | -e 's:$: $lt_compiler_flag:'` |
---|
9613 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
---|
9614 | (eval "$lt_compile" 2>out/conftest.err) |
---|
9615 | ac_status=$? |
---|
9616 | cat out/conftest.err >&5 |
---|
9617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9618 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
9619 | then |
---|
9620 | # The compiler can only warn and ignore the option if not recognized |
---|
9621 | # So say no if there are warnings |
---|
9622 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
---|
9623 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
9624 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
9625 | lt_cv_prog_compiler_c_o=yes |
---|
9626 | fi |
---|
9627 | fi |
---|
9628 | chmod u+w . 2>&5 |
---|
9629 | $RM conftest* |
---|
9630 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
9631 | # template instantiation |
---|
9632 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
---|
9633 | $RM out/* && rmdir out |
---|
9634 | cd .. |
---|
9635 | $RM -r conftest |
---|
9636 | $RM conftest* |
---|
9637 | |
---|
9638 | fi |
---|
9639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
9640 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
---|
9641 | |
---|
9642 | |
---|
9643 | |
---|
9644 | |
---|
9645 | hard_links="nottested" |
---|
9646 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
---|
9647 | # do not overwrite the value of need_locks provided by the user |
---|
9648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
---|
9649 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
---|
9650 | hard_links=yes |
---|
9651 | $RM conftest* |
---|
9652 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
9653 | touch conftest.a |
---|
9654 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
9655 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
9656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
---|
9657 | $as_echo "$hard_links" >&6; } |
---|
9658 | if test "$hard_links" = no; then |
---|
9659 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
9660 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
9661 | need_locks=warn |
---|
9662 | fi |
---|
9663 | else |
---|
9664 | need_locks=no |
---|
9665 | fi |
---|
9666 | |
---|
9667 | |
---|
9668 | |
---|
9669 | |
---|
9670 | |
---|
9671 | |
---|
9672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
9673 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
---|
9674 | |
---|
9675 | runpath_var= |
---|
9676 | allow_undefined_flag= |
---|
9677 | always_export_symbols=no |
---|
9678 | archive_cmds= |
---|
9679 | archive_expsym_cmds= |
---|
9680 | compiler_needs_object=no |
---|
9681 | enable_shared_with_static_runtimes=no |
---|
9682 | export_dynamic_flag_spec= |
---|
9683 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
9684 | hardcode_automatic=no |
---|
9685 | hardcode_direct=no |
---|
9686 | hardcode_direct_absolute=no |
---|
9687 | hardcode_libdir_flag_spec= |
---|
9688 | hardcode_libdir_separator= |
---|
9689 | hardcode_minus_L=no |
---|
9690 | hardcode_shlibpath_var=unsupported |
---|
9691 | inherit_rpath=no |
---|
9692 | link_all_deplibs=unknown |
---|
9693 | module_cmds= |
---|
9694 | module_expsym_cmds= |
---|
9695 | old_archive_from_new_cmds= |
---|
9696 | old_archive_from_expsyms_cmds= |
---|
9697 | thread_safe_flag_spec= |
---|
9698 | whole_archive_flag_spec= |
---|
9699 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
9700 | # included in the symbol list |
---|
9701 | include_expsyms= |
---|
9702 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
9703 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
9704 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
9705 | # as well as any symbol that contains `d'. |
---|
9706 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
---|
9707 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
9708 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
9709 | # the symbol is explicitly referenced. Since portable code cannot |
---|
9710 | # rely on this symbol name, it's probably fine to never include it in |
---|
9711 | # preloaded symbol tables. |
---|
9712 | # Exclude shared library initialization/finalization symbols. |
---|
9713 | extract_expsyms_cmds= |
---|
9714 | |
---|
9715 | case $host_os in |
---|
9716 | cygwin* | mingw* | pw32* | cegcc*) |
---|
9717 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
9718 | # When not using gcc, we currently assume that we are using |
---|
9719 | # Microsoft Visual C++. |
---|
9720 | if test "$GCC" != yes; then |
---|
9721 | with_gnu_ld=no |
---|
9722 | fi |
---|
9723 | ;; |
---|
9724 | interix*) |
---|
9725 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
---|
9726 | with_gnu_ld=yes |
---|
9727 | ;; |
---|
9728 | openbsd*) |
---|
9729 | with_gnu_ld=no |
---|
9730 | ;; |
---|
9731 | esac |
---|
9732 | |
---|
9733 | ld_shlibs=yes |
---|
9734 | |
---|
9735 | # On some targets, GNU ld is compatible enough with the native linker |
---|
9736 | # that we're better off using the native interface for both. |
---|
9737 | lt_use_gnu_ld_interface=no |
---|
9738 | if test "$with_gnu_ld" = yes; then |
---|
9739 | case $host_os in |
---|
9740 | aix*) |
---|
9741 | # The AIX port of GNU ld has always aspired to compatibility |
---|
9742 | # with the native linker. However, as the warning in the GNU ld |
---|
9743 | # block says, versions before 2.19.5* couldn't really create working |
---|
9744 | # shared libraries, regardless of the interface used. |
---|
9745 | case `$LD -v 2>&1` in |
---|
9746 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
---|
9747 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
---|
9748 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
---|
9749 | *) |
---|
9750 | lt_use_gnu_ld_interface=yes |
---|
9751 | ;; |
---|
9752 | esac |
---|
9753 | ;; |
---|
9754 | *) |
---|
9755 | lt_use_gnu_ld_interface=yes |
---|
9756 | ;; |
---|
9757 | esac |
---|
9758 | fi |
---|
9759 | |
---|
9760 | if test "$lt_use_gnu_ld_interface" = yes; then |
---|
9761 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
9762 | wlarc='${wl}' |
---|
9763 | |
---|
9764 | # Set some defaults for GNU ld with shared library support. These |
---|
9765 | # are reset later if shared libraries are not supported. Putting them |
---|
9766 | # here allows them to be overridden if necessary. |
---|
9767 | runpath_var=LD_RUN_PATH |
---|
9768 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9769 | export_dynamic_flag_spec='${wl}--export-dynamic' |
---|
9770 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
9771 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
---|
9772 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
9773 | else |
---|
9774 | whole_archive_flag_spec= |
---|
9775 | fi |
---|
9776 | supports_anon_versioning=no |
---|
9777 | case `$LD -v 2>&1` in |
---|
9778 | *GNU\ gold*) supports_anon_versioning=yes ;; |
---|
9779 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
9780 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
9781 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
9782 | *\ 2.11.*) ;; # other 2.11 versions |
---|
9783 | *) supports_anon_versioning=yes ;; |
---|
9784 | esac |
---|
9785 | |
---|
9786 | # See if GNU ld supports shared libraries. |
---|
9787 | case $host_os in |
---|
9788 | aix[3-9]*) |
---|
9789 | # On AIX/PPC, the GNU linker is very broken |
---|
9790 | if test "$host_cpu" != ia64; then |
---|
9791 | ld_shlibs=no |
---|
9792 | cat <<_LT_EOF 1>&2 |
---|
9793 | |
---|
9794 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
---|
9795 | *** to be unable to reliably create shared libraries on AIX. |
---|
9796 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
9797 | *** really care for shared libraries, you may want to install binutils |
---|
9798 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
---|
9799 | *** You will then need to restart the configuration process. |
---|
9800 | |
---|
9801 | _LT_EOF |
---|
9802 | fi |
---|
9803 | ;; |
---|
9804 | |
---|
9805 | amigaos*) |
---|
9806 | case $host_cpu in |
---|
9807 | powerpc) |
---|
9808 | # see comment about AmigaOS4 .so support |
---|
9809 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
9810 | archive_expsym_cmds='' |
---|
9811 | ;; |
---|
9812 | m68k) |
---|
9813 | 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)' |
---|
9814 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9815 | hardcode_minus_L=yes |
---|
9816 | ;; |
---|
9817 | esac |
---|
9818 | ;; |
---|
9819 | |
---|
9820 | beos*) |
---|
9821 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
---|
9822 | allow_undefined_flag=unsupported |
---|
9823 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
9824 | # support --undefined. This deserves some investigation. FIXME |
---|
9825 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
9826 | else |
---|
9827 | ld_shlibs=no |
---|
9828 | fi |
---|
9829 | ;; |
---|
9830 | |
---|
9831 | cygwin* | mingw* | pw32* | cegcc*) |
---|
9832 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
---|
9833 | # as there is no search path for DLLs. |
---|
9834 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9835 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
---|
9836 | allow_undefined_flag=unsupported |
---|
9837 | always_export_symbols=no |
---|
9838 | enable_shared_with_static_runtimes=yes |
---|
9839 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
---|
9840 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
---|
9841 | |
---|
9842 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
---|
9843 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
9844 | # If the export-symbols file already is a .def file (1st line |
---|
9845 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
9846 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
9847 | cp $export_symbols $output_objdir/$soname.def; |
---|
9848 | else |
---|
9849 | echo EXPORTS > $output_objdir/$soname.def; |
---|
9850 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
9851 | fi~ |
---|
9852 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
9853 | else |
---|
9854 | ld_shlibs=no |
---|
9855 | fi |
---|
9856 | ;; |
---|
9857 | |
---|
9858 | haiku*) |
---|
9859 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
9860 | link_all_deplibs=yes |
---|
9861 | ;; |
---|
9862 | |
---|
9863 | interix[3-9]*) |
---|
9864 | hardcode_direct=no |
---|
9865 | hardcode_shlibpath_var=no |
---|
9866 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
9867 | export_dynamic_flag_spec='${wl}-E' |
---|
9868 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
---|
9869 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
---|
9870 | # default) and relocated if they conflict, which is a slow very memory |
---|
9871 | # consuming and fragmenting process. To avoid this, we pick a random, |
---|
9872 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
---|
9873 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
---|
9874 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
---|
9875 | 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' |
---|
9876 | ;; |
---|
9877 | |
---|
9878 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
---|
9879 | tmp_diet=no |
---|
9880 | if test "$host_os" = linux-dietlibc; then |
---|
9881 | case $cc_basename in |
---|
9882 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
---|
9883 | esac |
---|
9884 | fi |
---|
9885 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
---|
9886 | && test "$tmp_diet" = no |
---|
9887 | then |
---|
9888 | tmp_addflag=' $pic_flag' |
---|
9889 | tmp_sharedflag='-shared' |
---|
9890 | case $cc_basename,$host_cpu in |
---|
9891 | pgcc*) # Portland Group C compiler |
---|
9892 | 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' |
---|
9893 | tmp_addflag=' $pic_flag' |
---|
9894 | ;; |
---|
9895 | pgf77* | pgf90* | pgf95* | pgfortran*) |
---|
9896 | # Portland Group f77 and f90 compilers |
---|
9897 | 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' |
---|
9898 | tmp_addflag=' $pic_flag -Mnomain' ;; |
---|
9899 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
9900 | tmp_addflag=' -i_dynamic' ;; |
---|
9901 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
9902 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
9903 | ifc* | ifort*) # Intel Fortran compiler |
---|
9904 | tmp_addflag=' -nofor_main' ;; |
---|
9905 | lf95*) # Lahey Fortran 8.1 |
---|
9906 | whole_archive_flag_spec= |
---|
9907 | tmp_sharedflag='--shared' ;; |
---|
9908 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
---|
9909 | tmp_sharedflag='-qmkshrobj' |
---|
9910 | tmp_addflag= ;; |
---|
9911 | nvcc*) # Cuda Compiler Driver 2.2 |
---|
9912 | 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' |
---|
9913 | compiler_needs_object=yes |
---|
9914 | ;; |
---|
9915 | esac |
---|
9916 | case `$CC -V 2>&1 | sed 5q` in |
---|
9917 | *Sun\ C*) # Sun C 5.9 |
---|
9918 | 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' |
---|
9919 | compiler_needs_object=yes |
---|
9920 | tmp_sharedflag='-G' ;; |
---|
9921 | *Sun\ F*) # Sun Fortran 8.3 |
---|
9922 | tmp_sharedflag='-G' ;; |
---|
9923 | esac |
---|
9924 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
9925 | |
---|
9926 | if test "x$supports_anon_versioning" = xyes; then |
---|
9927 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
---|
9928 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
9929 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
9930 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
9931 | fi |
---|
9932 | |
---|
9933 | case $cc_basename in |
---|
9934 | xlf* | bgf* | bgxlf* | mpixlf*) |
---|
9935 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
---|
9936 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
---|
9937 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9938 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
---|
9939 | if test "x$supports_anon_versioning" = xyes; then |
---|
9940 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
---|
9941 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
9942 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
9943 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
---|
9944 | fi |
---|
9945 | ;; |
---|
9946 | esac |
---|
9947 | else |
---|
9948 | ld_shlibs=no |
---|
9949 | fi |
---|
9950 | ;; |
---|
9951 | |
---|
9952 | netbsd*) |
---|
9953 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
---|
9954 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
9955 | wlarc= |
---|
9956 | else |
---|
9957 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
9958 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
9959 | fi |
---|
9960 | ;; |
---|
9961 | |
---|
9962 | solaris*) |
---|
9963 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
---|
9964 | ld_shlibs=no |
---|
9965 | cat <<_LT_EOF 1>&2 |
---|
9966 | |
---|
9967 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
9968 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
9969 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
9970 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
9971 | *** your PATH or compiler configuration so that the native linker is |
---|
9972 | *** used, and then restart. |
---|
9973 | |
---|
9974 | _LT_EOF |
---|
9975 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
---|
9976 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
9977 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
9978 | else |
---|
9979 | ld_shlibs=no |
---|
9980 | fi |
---|
9981 | ;; |
---|
9982 | |
---|
9983 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
---|
9984 | case `$LD -v 2>&1` in |
---|
9985 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
---|
9986 | ld_shlibs=no |
---|
9987 | cat <<_LT_EOF 1>&2 |
---|
9988 | |
---|
9989 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
---|
9990 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
---|
9991 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
9992 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
---|
9993 | *** your PATH or compiler configuration so that the native linker is |
---|
9994 | *** used, and then restart. |
---|
9995 | |
---|
9996 | _LT_EOF |
---|
9997 | ;; |
---|
9998 | *) |
---|
9999 | # For security reasons, it is highly recommended that you always |
---|
10000 | # use absolute paths for naming shared libraries, and exclude the |
---|
10001 | # DT_RUNPATH tag from executables and libraries. But doing so |
---|
10002 | # requires that you compile everything twice, which is a pain. |
---|
10003 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
---|
10004 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
10005 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10006 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
10007 | else |
---|
10008 | ld_shlibs=no |
---|
10009 | fi |
---|
10010 | ;; |
---|
10011 | esac |
---|
10012 | ;; |
---|
10013 | |
---|
10014 | sunos4*) |
---|
10015 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
10016 | wlarc= |
---|
10017 | hardcode_direct=yes |
---|
10018 | hardcode_shlibpath_var=no |
---|
10019 | ;; |
---|
10020 | |
---|
10021 | *) |
---|
10022 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
---|
10023 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10024 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
10025 | else |
---|
10026 | ld_shlibs=no |
---|
10027 | fi |
---|
10028 | ;; |
---|
10029 | esac |
---|
10030 | |
---|
10031 | if test "$ld_shlibs" = no; then |
---|
10032 | runpath_var= |
---|
10033 | hardcode_libdir_flag_spec= |
---|
10034 | export_dynamic_flag_spec= |
---|
10035 | whole_archive_flag_spec= |
---|
10036 | fi |
---|
10037 | else |
---|
10038 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
10039 | case $host_os in |
---|
10040 | aix3*) |
---|
10041 | allow_undefined_flag=unsupported |
---|
10042 | always_export_symbols=yes |
---|
10043 | 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' |
---|
10044 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
10045 | # are no directories specified by -L. |
---|
10046 | hardcode_minus_L=yes |
---|
10047 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
---|
10048 | # Neither direct hardcoding nor static linking is supported with a |
---|
10049 | # broken collect2. |
---|
10050 | hardcode_direct=unsupported |
---|
10051 | fi |
---|
10052 | ;; |
---|
10053 | |
---|
10054 | aix[4-9]*) |
---|
10055 | if test "$host_cpu" = ia64; then |
---|
10056 | # On IA64, the linker does run time linking by default, so we don't |
---|
10057 | # have to do anything special. |
---|
10058 | aix_use_runtimelinking=no |
---|
10059 | exp_sym_flag='-Bexport' |
---|
10060 | no_entry_flag="" |
---|
10061 | else |
---|
10062 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
10063 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
10064 | # Also, AIX nm treats weak defined symbols like other global |
---|
10065 | # defined symbols, whereas GNU nm marks them as "W". |
---|
10066 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
---|
10067 | 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' |
---|
10068 | else |
---|
10069 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
---|
10070 | fi |
---|
10071 | aix_use_runtimelinking=no |
---|
10072 | |
---|
10073 | # Test if we are trying to use run time linking or normal |
---|
10074 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
10075 | # need to do runtime linking. |
---|
10076 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
---|
10077 | for ld_flag in $LDFLAGS; do |
---|
10078 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
10079 | aix_use_runtimelinking=yes |
---|
10080 | break |
---|
10081 | fi |
---|
10082 | done |
---|
10083 | ;; |
---|
10084 | esac |
---|
10085 | |
---|
10086 | exp_sym_flag='-bexport' |
---|
10087 | no_entry_flag='-bnoentry' |
---|
10088 | fi |
---|
10089 | |
---|
10090 | # When large executables or shared objects are built, AIX ld can |
---|
10091 | # have problems creating the table of contents. If linking a library |
---|
10092 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
10093 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
10094 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
10095 | |
---|
10096 | archive_cmds='' |
---|
10097 | hardcode_direct=yes |
---|
10098 | hardcode_direct_absolute=yes |
---|
10099 | hardcode_libdir_separator=':' |
---|
10100 | link_all_deplibs=yes |
---|
10101 | file_list_spec='${wl}-f,' |
---|
10102 | |
---|
10103 | if test "$GCC" = yes; then |
---|
10104 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
10105 | # We only want to do this on AIX 4.2 and lower, the check |
---|
10106 | # below for broken collect2 doesn't work under 4.3+ |
---|
10107 | collect2name=`${CC} -print-prog-name=collect2` |
---|
10108 | if test -f "$collect2name" && |
---|
10109 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
---|
10110 | then |
---|
10111 | # We have reworked collect2 |
---|
10112 | : |
---|
10113 | else |
---|
10114 | # We have old collect2 |
---|
10115 | hardcode_direct=unsupported |
---|
10116 | # It fails to find uninstalled libraries when the uninstalled |
---|
10117 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
10118 | # to unsupported forces relinking |
---|
10119 | hardcode_minus_L=yes |
---|
10120 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10121 | hardcode_libdir_separator= |
---|
10122 | fi |
---|
10123 | ;; |
---|
10124 | esac |
---|
10125 | shared_flag='-shared' |
---|
10126 | if test "$aix_use_runtimelinking" = yes; then |
---|
10127 | shared_flag="$shared_flag "'${wl}-G' |
---|
10128 | fi |
---|
10129 | else |
---|
10130 | # not using gcc |
---|
10131 | if test "$host_cpu" = ia64; then |
---|
10132 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
10133 | # chokes on -Wl,-G. The following line is correct: |
---|
10134 | shared_flag='-G' |
---|
10135 | else |
---|
10136 | if test "$aix_use_runtimelinking" = yes; then |
---|
10137 | shared_flag='${wl}-G' |
---|
10138 | else |
---|
10139 | shared_flag='${wl}-bM:SRE' |
---|
10140 | fi |
---|
10141 | fi |
---|
10142 | fi |
---|
10143 | |
---|
10144 | export_dynamic_flag_spec='${wl}-bexpall' |
---|
10145 | # It seems that -bexpall does not export symbols beginning with |
---|
10146 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
10147 | always_export_symbols=yes |
---|
10148 | if test "$aix_use_runtimelinking" = yes; then |
---|
10149 | # Warning - without using the other runtime loading flags (-brtl), |
---|
10150 | # -berok will link without error, but may produce a broken library. |
---|
10151 | allow_undefined_flag='-berok' |
---|
10152 | # Determine the default libpath from the value encoded in an |
---|
10153 | # empty executable. |
---|
10154 | if test "${lt_cv_aix_libpath+set}" = set; then |
---|
10155 | aix_libpath=$lt_cv_aix_libpath |
---|
10156 | else |
---|
10157 | if ${lt_cv_aix_libpath_+:} false; then : |
---|
10158 | $as_echo_n "(cached) " >&6 |
---|
10159 | else |
---|
10160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
10161 | /* end confdefs.h. */ |
---|
10162 | |
---|
10163 | int |
---|
10164 | main () |
---|
10165 | { |
---|
10166 | |
---|
10167 | ; |
---|
10168 | return 0; |
---|
10169 | } |
---|
10170 | _ACEOF |
---|
10171 | if ac_fn_c_try_link "$LINENO"; then : |
---|
10172 | |
---|
10173 | lt_aix_libpath_sed=' |
---|
10174 | /Import File Strings/,/^$/ { |
---|
10175 | /^0/ { |
---|
10176 | s/^0 *\([^ ]*\) *$/\1/ |
---|
10177 | p |
---|
10178 | } |
---|
10179 | }' |
---|
10180 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
10181 | # Check for a 64-bit object if we didn't find anything. |
---|
10182 | if test -z "$lt_cv_aix_libpath_"; then |
---|
10183 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
10184 | fi |
---|
10185 | fi |
---|
10186 | rm -f core conftest.err conftest.$ac_objext \ |
---|
10187 | conftest$ac_exeext conftest.$ac_ext |
---|
10188 | if test -z "$lt_cv_aix_libpath_"; then |
---|
10189 | lt_cv_aix_libpath_="/usr/lib:/lib" |
---|
10190 | fi |
---|
10191 | |
---|
10192 | fi |
---|
10193 | |
---|
10194 | aix_libpath=$lt_cv_aix_libpath_ |
---|
10195 | fi |
---|
10196 | |
---|
10197 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
10198 | 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" |
---|
10199 | else |
---|
10200 | if test "$host_cpu" = ia64; then |
---|
10201 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
---|
10202 | allow_undefined_flag="-z nodefs" |
---|
10203 | 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" |
---|
10204 | else |
---|
10205 | # Determine the default libpath from the value encoded in an |
---|
10206 | # empty executable. |
---|
10207 | if test "${lt_cv_aix_libpath+set}" = set; then |
---|
10208 | aix_libpath=$lt_cv_aix_libpath |
---|
10209 | else |
---|
10210 | if ${lt_cv_aix_libpath_+:} false; then : |
---|
10211 | $as_echo_n "(cached) " >&6 |
---|
10212 | else |
---|
10213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
10214 | /* end confdefs.h. */ |
---|
10215 | |
---|
10216 | int |
---|
10217 | main () |
---|
10218 | { |
---|
10219 | |
---|
10220 | ; |
---|
10221 | return 0; |
---|
10222 | } |
---|
10223 | _ACEOF |
---|
10224 | if ac_fn_c_try_link "$LINENO"; then : |
---|
10225 | |
---|
10226 | lt_aix_libpath_sed=' |
---|
10227 | /Import File Strings/,/^$/ { |
---|
10228 | /^0/ { |
---|
10229 | s/^0 *\([^ ]*\) *$/\1/ |
---|
10230 | p |
---|
10231 | } |
---|
10232 | }' |
---|
10233 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
10234 | # Check for a 64-bit object if we didn't find anything. |
---|
10235 | if test -z "$lt_cv_aix_libpath_"; then |
---|
10236 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
10237 | fi |
---|
10238 | fi |
---|
10239 | rm -f core conftest.err conftest.$ac_objext \ |
---|
10240 | conftest$ac_exeext conftest.$ac_ext |
---|
10241 | if test -z "$lt_cv_aix_libpath_"; then |
---|
10242 | lt_cv_aix_libpath_="/usr/lib:/lib" |
---|
10243 | fi |
---|
10244 | |
---|
10245 | fi |
---|
10246 | |
---|
10247 | aix_libpath=$lt_cv_aix_libpath_ |
---|
10248 | fi |
---|
10249 | |
---|
10250 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
10251 | # Warning - without using the other run time loading flags, |
---|
10252 | # -berok will link without error, but may produce a broken library. |
---|
10253 | no_undefined_flag=' ${wl}-bernotok' |
---|
10254 | allow_undefined_flag=' ${wl}-berok' |
---|
10255 | if test "$with_gnu_ld" = yes; then |
---|
10256 | # We only use this code for GNU lds that support --whole-archive. |
---|
10257 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
---|
10258 | else |
---|
10259 | # Exported symbols can be pulled into shared objects from archives |
---|
10260 | whole_archive_flag_spec='$convenience' |
---|
10261 | fi |
---|
10262 | archive_cmds_need_lc=yes |
---|
10263 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
10264 | 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' |
---|
10265 | fi |
---|
10266 | fi |
---|
10267 | ;; |
---|
10268 | |
---|
10269 | amigaos*) |
---|
10270 | case $host_cpu in |
---|
10271 | powerpc) |
---|
10272 | # see comment about AmigaOS4 .so support |
---|
10273 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10274 | archive_expsym_cmds='' |
---|
10275 | ;; |
---|
10276 | m68k) |
---|
10277 | 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)' |
---|
10278 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10279 | hardcode_minus_L=yes |
---|
10280 | ;; |
---|
10281 | esac |
---|
10282 | ;; |
---|
10283 | |
---|
10284 | bsdi[45]*) |
---|
10285 | export_dynamic_flag_spec=-rdynamic |
---|
10286 | ;; |
---|
10287 | |
---|
10288 | cygwin* | mingw* | pw32* | cegcc*) |
---|
10289 | # When not using gcc, we currently assume that we are using |
---|
10290 | # Microsoft Visual C++. |
---|
10291 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
10292 | # no search path for DLLs. |
---|
10293 | case $cc_basename in |
---|
10294 | cl*) |
---|
10295 | # Native MSVC |
---|
10296 | hardcode_libdir_flag_spec=' ' |
---|
10297 | allow_undefined_flag=unsupported |
---|
10298 | always_export_symbols=yes |
---|
10299 | file_list_spec='@' |
---|
10300 | # Tell ltmain to make .lib files, not .a files. |
---|
10301 | libext=lib |
---|
10302 | # Tell ltmain to make .dll files, not .so files. |
---|
10303 | shrext_cmds=".dll" |
---|
10304 | # FIXME: Setting linknames here is a bad hack. |
---|
10305 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
---|
10306 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
10307 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
---|
10308 | else |
---|
10309 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
---|
10310 | fi~ |
---|
10311 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
---|
10312 | linknames=' |
---|
10313 | # The linker will not automatically build a static lib if we build a DLL. |
---|
10314 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
---|
10315 | enable_shared_with_static_runtimes=yes |
---|
10316 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
---|
10317 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
---|
10318 | # Don't use ranlib |
---|
10319 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
10320 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
---|
10321 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
---|
10322 | case $lt_outputfile in |
---|
10323 | *.exe|*.EXE) ;; |
---|
10324 | *) |
---|
10325 | lt_outputfile="$lt_outputfile.exe" |
---|
10326 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
---|
10327 | ;; |
---|
10328 | esac~ |
---|
10329 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
---|
10330 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
---|
10331 | $RM "$lt_outputfile.manifest"; |
---|
10332 | fi' |
---|
10333 | ;; |
---|
10334 | *) |
---|
10335 | # Assume MSVC wrapper |
---|
10336 | hardcode_libdir_flag_spec=' ' |
---|
10337 | allow_undefined_flag=unsupported |
---|
10338 | # Tell ltmain to make .lib files, not .a files. |
---|
10339 | libext=lib |
---|
10340 | # Tell ltmain to make .dll files, not .so files. |
---|
10341 | shrext_cmds=".dll" |
---|
10342 | # FIXME: Setting linknames here is a bad hack. |
---|
10343 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
10344 | # The linker will automatically build a .lib file if we build a DLL. |
---|
10345 | old_archive_from_new_cmds='true' |
---|
10346 | # FIXME: Should let the user specify the lib program. |
---|
10347 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
---|
10348 | enable_shared_with_static_runtimes=yes |
---|
10349 | ;; |
---|
10350 | esac |
---|
10351 | ;; |
---|
10352 | |
---|
10353 | darwin* | rhapsody*) |
---|
10354 | |
---|
10355 | |
---|
10356 | archive_cmds_need_lc=no |
---|
10357 | hardcode_direct=no |
---|
10358 | hardcode_automatic=yes |
---|
10359 | hardcode_shlibpath_var=unsupported |
---|
10360 | if test "$lt_cv_ld_force_load" = "yes"; then |
---|
10361 | 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\"`' |
---|
10362 | |
---|
10363 | else |
---|
10364 | whole_archive_flag_spec='' |
---|
10365 | fi |
---|
10366 | link_all_deplibs=yes |
---|
10367 | allow_undefined_flag="$_lt_dar_allow_undefined" |
---|
10368 | case $cc_basename in |
---|
10369 | ifort*) _lt_dar_can_shared=yes ;; |
---|
10370 | *) _lt_dar_can_shared=$GCC ;; |
---|
10371 | esac |
---|
10372 | if test "$_lt_dar_can_shared" = "yes"; then |
---|
10373 | output_verbose_link_cmd=func_echo_all |
---|
10374 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
---|
10375 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
---|
10376 | 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}" |
---|
10377 | 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}" |
---|
10378 | |
---|
10379 | else |
---|
10380 | ld_shlibs=no |
---|
10381 | fi |
---|
10382 | |
---|
10383 | ;; |
---|
10384 | |
---|
10385 | dgux*) |
---|
10386 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
10387 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10388 | hardcode_shlibpath_var=no |
---|
10389 | ;; |
---|
10390 | |
---|
10391 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
10392 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
10393 | # does not break anything, and helps significantly (at the cost of a little |
---|
10394 | # extra space). |
---|
10395 | freebsd2.2*) |
---|
10396 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
10397 | hardcode_libdir_flag_spec='-R$libdir' |
---|
10398 | hardcode_direct=yes |
---|
10399 | hardcode_shlibpath_var=no |
---|
10400 | ;; |
---|
10401 | |
---|
10402 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
10403 | freebsd2.*) |
---|
10404 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
10405 | hardcode_direct=yes |
---|
10406 | hardcode_minus_L=yes |
---|
10407 | hardcode_shlibpath_var=no |
---|
10408 | ;; |
---|
10409 | |
---|
10410 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
10411 | freebsd* | dragonfly*) |
---|
10412 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
10413 | hardcode_libdir_flag_spec='-R$libdir' |
---|
10414 | hardcode_direct=yes |
---|
10415 | hardcode_shlibpath_var=no |
---|
10416 | ;; |
---|
10417 | |
---|
10418 | hpux9*) |
---|
10419 | if test "$GCC" = yes; then |
---|
10420 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
---|
10421 | else |
---|
10422 | 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' |
---|
10423 | fi |
---|
10424 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
10425 | hardcode_libdir_separator=: |
---|
10426 | hardcode_direct=yes |
---|
10427 | |
---|
10428 | # hardcode_minus_L: Not really in the search PATH, |
---|
10429 | # but as the default location of the library. |
---|
10430 | hardcode_minus_L=yes |
---|
10431 | export_dynamic_flag_spec='${wl}-E' |
---|
10432 | ;; |
---|
10433 | |
---|
10434 | hpux10*) |
---|
10435 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
---|
10436 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
10437 | else |
---|
10438 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
10439 | fi |
---|
10440 | if test "$with_gnu_ld" = no; then |
---|
10441 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
10442 | hardcode_libdir_separator=: |
---|
10443 | hardcode_direct=yes |
---|
10444 | hardcode_direct_absolute=yes |
---|
10445 | export_dynamic_flag_spec='${wl}-E' |
---|
10446 | # hardcode_minus_L: Not really in the search PATH, |
---|
10447 | # but as the default location of the library. |
---|
10448 | hardcode_minus_L=yes |
---|
10449 | fi |
---|
10450 | ;; |
---|
10451 | |
---|
10452 | hpux11*) |
---|
10453 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
---|
10454 | case $host_cpu in |
---|
10455 | hppa*64*) |
---|
10456 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10457 | ;; |
---|
10458 | ia64*) |
---|
10459 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
10460 | ;; |
---|
10461 | *) |
---|
10462 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
10463 | ;; |
---|
10464 | esac |
---|
10465 | else |
---|
10466 | case $host_cpu in |
---|
10467 | hppa*64*) |
---|
10468 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10469 | ;; |
---|
10470 | ia64*) |
---|
10471 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
10472 | ;; |
---|
10473 | *) |
---|
10474 | |
---|
10475 | # Older versions of the 11.00 compiler do not understand -b yet |
---|
10476 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
---|
10477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
---|
10478 | $as_echo_n "checking if $CC understands -b... " >&6; } |
---|
10479 | if ${lt_cv_prog_compiler__b+:} false; then : |
---|
10480 | $as_echo_n "(cached) " >&6 |
---|
10481 | else |
---|
10482 | lt_cv_prog_compiler__b=no |
---|
10483 | save_LDFLAGS="$LDFLAGS" |
---|
10484 | LDFLAGS="$LDFLAGS -b" |
---|
10485 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
10486 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
10487 | # The linker can only warn and ignore the option if not recognized |
---|
10488 | # So say no if there are warnings |
---|
10489 | if test -s conftest.err; then |
---|
10490 | # Append any errors to the config.log. |
---|
10491 | cat conftest.err 1>&5 |
---|
10492 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
---|
10493 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
10494 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
10495 | lt_cv_prog_compiler__b=yes |
---|
10496 | fi |
---|
10497 | else |
---|
10498 | lt_cv_prog_compiler__b=yes |
---|
10499 | fi |
---|
10500 | fi |
---|
10501 | $RM -r conftest* |
---|
10502 | LDFLAGS="$save_LDFLAGS" |
---|
10503 | |
---|
10504 | fi |
---|
10505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
---|
10506 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
---|
10507 | |
---|
10508 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
---|
10509 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
10510 | else |
---|
10511 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
10512 | fi |
---|
10513 | |
---|
10514 | ;; |
---|
10515 | esac |
---|
10516 | fi |
---|
10517 | if test "$with_gnu_ld" = no; then |
---|
10518 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
10519 | hardcode_libdir_separator=: |
---|
10520 | |
---|
10521 | case $host_cpu in |
---|
10522 | hppa*64*|ia64*) |
---|
10523 | hardcode_direct=no |
---|
10524 | hardcode_shlibpath_var=no |
---|
10525 | ;; |
---|
10526 | *) |
---|
10527 | hardcode_direct=yes |
---|
10528 | hardcode_direct_absolute=yes |
---|
10529 | export_dynamic_flag_spec='${wl}-E' |
---|
10530 | |
---|
10531 | # hardcode_minus_L: Not really in the search PATH, |
---|
10532 | # but as the default location of the library. |
---|
10533 | hardcode_minus_L=yes |
---|
10534 | ;; |
---|
10535 | esac |
---|
10536 | fi |
---|
10537 | ;; |
---|
10538 | |
---|
10539 | irix5* | irix6* | nonstopux*) |
---|
10540 | if test "$GCC" = yes; then |
---|
10541 | archive_cmds='$CC -shared $pic_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' |
---|
10542 | # Try to use the -exported_symbol ld option, if it does not |
---|
10543 | # work, assume that -exports_file does not work either and |
---|
10544 | # implicitly export all symbols. |
---|
10545 | # This should be the same for all languages, so no per-tag cache variable. |
---|
10546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
---|
10547 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
---|
10548 | if ${lt_cv_irix_exported_symbol+:} false; then : |
---|
10549 | $as_echo_n "(cached) " >&6 |
---|
10550 | else |
---|
10551 | save_LDFLAGS="$LDFLAGS" |
---|
10552 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
---|
10553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
10554 | /* end confdefs.h. */ |
---|
10555 | int foo (void) { return 0; } |
---|
10556 | _ACEOF |
---|
10557 | if ac_fn_c_try_link "$LINENO"; then : |
---|
10558 | lt_cv_irix_exported_symbol=yes |
---|
10559 | else |
---|
10560 | lt_cv_irix_exported_symbol=no |
---|
10561 | fi |
---|
10562 | rm -f core conftest.err conftest.$ac_objext \ |
---|
10563 | conftest$ac_exeext conftest.$ac_ext |
---|
10564 | LDFLAGS="$save_LDFLAGS" |
---|
10565 | fi |
---|
10566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
---|
10567 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
---|
10568 | if test "$lt_cv_irix_exported_symbol" = yes; then |
---|
10569 | archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib' |
---|
10570 | fi |
---|
10571 | else |
---|
10572 | 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' |
---|
10573 | 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' |
---|
10574 | fi |
---|
10575 | archive_cmds_need_lc='no' |
---|
10576 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
10577 | hardcode_libdir_separator=: |
---|
10578 | inherit_rpath=yes |
---|
10579 | link_all_deplibs=yes |
---|
10580 | ;; |
---|
10581 | |
---|
10582 | netbsd*) |
---|
10583 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
---|
10584 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
10585 | else |
---|
10586 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
10587 | fi |
---|
10588 | hardcode_libdir_flag_spec='-R$libdir' |
---|
10589 | hardcode_direct=yes |
---|
10590 | hardcode_shlibpath_var=no |
---|
10591 | ;; |
---|
10592 | |
---|
10593 | newsos6) |
---|
10594 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
10595 | hardcode_direct=yes |
---|
10596 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
10597 | hardcode_libdir_separator=: |
---|
10598 | hardcode_shlibpath_var=no |
---|
10599 | ;; |
---|
10600 | |
---|
10601 | *nto* | *qnx*) |
---|
10602 | ;; |
---|
10603 | |
---|
10604 | openbsd*) |
---|
10605 | if test -f /usr/libexec/ld.so; then |
---|
10606 | hardcode_direct=yes |
---|
10607 | hardcode_shlibpath_var=no |
---|
10608 | hardcode_direct_absolute=yes |
---|
10609 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
10610 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
10611 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
10612 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
10613 | export_dynamic_flag_spec='${wl}-E' |
---|
10614 | else |
---|
10615 | case $host_os in |
---|
10616 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
10617 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
10618 | hardcode_libdir_flag_spec='-R$libdir' |
---|
10619 | ;; |
---|
10620 | *) |
---|
10621 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
10622 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
10623 | ;; |
---|
10624 | esac |
---|
10625 | fi |
---|
10626 | else |
---|
10627 | ld_shlibs=no |
---|
10628 | fi |
---|
10629 | ;; |
---|
10630 | |
---|
10631 | os2*) |
---|
10632 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10633 | hardcode_minus_L=yes |
---|
10634 | allow_undefined_flag=unsupported |
---|
10635 | 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' |
---|
10636 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
10637 | ;; |
---|
10638 | |
---|
10639 | osf3*) |
---|
10640 | if test "$GCC" = yes; then |
---|
10641 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
10642 | 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' |
---|
10643 | else |
---|
10644 | allow_undefined_flag=' -expect_unresolved \*' |
---|
10645 | 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' |
---|
10646 | fi |
---|
10647 | archive_cmds_need_lc='no' |
---|
10648 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
10649 | hardcode_libdir_separator=: |
---|
10650 | ;; |
---|
10651 | |
---|
10652 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
10653 | if test "$GCC" = yes; then |
---|
10654 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
10655 | archive_cmds='$CC -shared${allow_undefined_flag} $pic_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' |
---|
10656 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
10657 | else |
---|
10658 | allow_undefined_flag=' -expect_unresolved \*' |
---|
10659 | 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' |
---|
10660 | 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~ |
---|
10661 | $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' |
---|
10662 | |
---|
10663 | # Both c and cxx compiler support -rpath directly |
---|
10664 | hardcode_libdir_flag_spec='-rpath $libdir' |
---|
10665 | fi |
---|
10666 | archive_cmds_need_lc='no' |
---|
10667 | hardcode_libdir_separator=: |
---|
10668 | ;; |
---|
10669 | |
---|
10670 | solaris*) |
---|
10671 | no_undefined_flag=' -z defs' |
---|
10672 | if test "$GCC" = yes; then |
---|
10673 | wlarc='${wl}' |
---|
10674 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10675 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
---|
10676 | $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
---|
10677 | else |
---|
10678 | case `$CC -V 2>&1` in |
---|
10679 | *"Compilers 5.0"*) |
---|
10680 | wlarc='' |
---|
10681 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
10682 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
---|
10683 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
---|
10684 | ;; |
---|
10685 | *) |
---|
10686 | wlarc='${wl}' |
---|
10687 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10688 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
---|
10689 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
---|
10690 | ;; |
---|
10691 | esac |
---|
10692 | fi |
---|
10693 | hardcode_libdir_flag_spec='-R$libdir' |
---|
10694 | hardcode_shlibpath_var=no |
---|
10695 | case $host_os in |
---|
10696 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
10697 | *) |
---|
10698 | # The compiler driver will combine and reorder linker options, |
---|
10699 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
---|
10700 | # but is careful enough not to reorder. |
---|
10701 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
10702 | if test "$GCC" = yes; then |
---|
10703 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
---|
10704 | else |
---|
10705 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
---|
10706 | fi |
---|
10707 | ;; |
---|
10708 | esac |
---|
10709 | link_all_deplibs=yes |
---|
10710 | ;; |
---|
10711 | |
---|
10712 | sunos4*) |
---|
10713 | if test "x$host_vendor" = xsequent; then |
---|
10714 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
10715 | # files that make .init and .fini sections work. |
---|
10716 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10717 | else |
---|
10718 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
10719 | fi |
---|
10720 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10721 | hardcode_direct=yes |
---|
10722 | hardcode_minus_L=yes |
---|
10723 | hardcode_shlibpath_var=no |
---|
10724 | ;; |
---|
10725 | |
---|
10726 | sysv4) |
---|
10727 | case $host_vendor in |
---|
10728 | sni) |
---|
10729 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
10730 | hardcode_direct=yes # is this really true??? |
---|
10731 | ;; |
---|
10732 | siemens) |
---|
10733 | ## LD is ld it makes a PLAMLIB |
---|
10734 | ## CC just makes a GrossModule. |
---|
10735 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
10736 | reload_cmds='$CC -r -o $output$reload_objs' |
---|
10737 | hardcode_direct=no |
---|
10738 | ;; |
---|
10739 | motorola) |
---|
10740 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
10741 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
---|
10742 | ;; |
---|
10743 | esac |
---|
10744 | runpath_var='LD_RUN_PATH' |
---|
10745 | hardcode_shlibpath_var=no |
---|
10746 | ;; |
---|
10747 | |
---|
10748 | sysv4.3*) |
---|
10749 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
10750 | hardcode_shlibpath_var=no |
---|
10751 | export_dynamic_flag_spec='-Bexport' |
---|
10752 | ;; |
---|
10753 | |
---|
10754 | sysv4*MP*) |
---|
10755 | if test -d /usr/nec; then |
---|
10756 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
10757 | hardcode_shlibpath_var=no |
---|
10758 | runpath_var=LD_RUN_PATH |
---|
10759 | hardcode_runpath_var=yes |
---|
10760 | ld_shlibs=yes |
---|
10761 | fi |
---|
10762 | ;; |
---|
10763 | |
---|
10764 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
---|
10765 | no_undefined_flag='${wl}-z,text' |
---|
10766 | archive_cmds_need_lc=no |
---|
10767 | hardcode_shlibpath_var=no |
---|
10768 | runpath_var='LD_RUN_PATH' |
---|
10769 | |
---|
10770 | if test "$GCC" = yes; then |
---|
10771 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10772 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10773 | else |
---|
10774 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10775 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10776 | fi |
---|
10777 | ;; |
---|
10778 | |
---|
10779 | sysv5* | sco3.2v5* | sco5v6*) |
---|
10780 | # Note: We can NOT use -z defs as we might desire, because we do not |
---|
10781 | # link with -lc, and that would cause any symbols used from libc to |
---|
10782 | # always be unresolved, which means just about no library would |
---|
10783 | # ever link correctly. If we're not using GNU ld we use -z text |
---|
10784 | # though, which does catch some bad symbols but isn't as heavy-handed |
---|
10785 | # as -z defs. |
---|
10786 | no_undefined_flag='${wl}-z,text' |
---|
10787 | allow_undefined_flag='${wl}-z,nodefs' |
---|
10788 | archive_cmds_need_lc=no |
---|
10789 | hardcode_shlibpath_var=no |
---|
10790 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
---|
10791 | hardcode_libdir_separator=':' |
---|
10792 | link_all_deplibs=yes |
---|
10793 | export_dynamic_flag_spec='${wl}-Bexport' |
---|
10794 | runpath_var='LD_RUN_PATH' |
---|
10795 | |
---|
10796 | if test "$GCC" = yes; then |
---|
10797 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10798 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10799 | else |
---|
10800 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10801 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
10802 | fi |
---|
10803 | ;; |
---|
10804 | |
---|
10805 | uts4*) |
---|
10806 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
10807 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10808 | hardcode_shlibpath_var=no |
---|
10809 | ;; |
---|
10810 | |
---|
10811 | *) |
---|
10812 | ld_shlibs=no |
---|
10813 | ;; |
---|
10814 | esac |
---|
10815 | |
---|
10816 | if test x$host_vendor = xsni; then |
---|
10817 | case $host in |
---|
10818 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
10819 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
10820 | ;; |
---|
10821 | esac |
---|
10822 | fi |
---|
10823 | fi |
---|
10824 | |
---|
10825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
---|
10826 | $as_echo "$ld_shlibs" >&6; } |
---|
10827 | test "$ld_shlibs" = no && can_build_shared=no |
---|
10828 | |
---|
10829 | with_gnu_ld=$with_gnu_ld |
---|
10830 | |
---|
10831 | |
---|
10832 | |
---|
10833 | |
---|
10834 | |
---|
10835 | |
---|
10836 | |
---|
10837 | |
---|
10838 | |
---|
10839 | |
---|
10840 | |
---|
10841 | |
---|
10842 | |
---|
10843 | |
---|
10844 | |
---|
10845 | # |
---|
10846 | # Do we need to explicitly link libc? |
---|
10847 | # |
---|
10848 | case "x$archive_cmds_need_lc" in |
---|
10849 | x|xyes) |
---|
10850 | # Assume -lc should be added |
---|
10851 | archive_cmds_need_lc=yes |
---|
10852 | |
---|
10853 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
10854 | case $archive_cmds in |
---|
10855 | *'~'*) |
---|
10856 | # FIXME: we may have to deal with multi-command sequences. |
---|
10857 | ;; |
---|
10858 | '$CC '*) |
---|
10859 | # Test whether the compiler implicitly links with -lc since on some |
---|
10860 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
10861 | # to ld, don't add -lc before -lgcc. |
---|
10862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
---|
10863 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
---|
10864 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
---|
10865 | $as_echo_n "(cached) " >&6 |
---|
10866 | else |
---|
10867 | $RM conftest* |
---|
10868 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
10869 | |
---|
10870 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
10871 | (eval $ac_compile) 2>&5 |
---|
10872 | ac_status=$? |
---|
10873 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
10874 | test $ac_status = 0; } 2>conftest.err; then |
---|
10875 | soname=conftest |
---|
10876 | lib=conftest |
---|
10877 | libobjs=conftest.$ac_objext |
---|
10878 | deplibs= |
---|
10879 | wl=$lt_prog_compiler_wl |
---|
10880 | pic_flag=$lt_prog_compiler_pic |
---|
10881 | compiler_flags=-v |
---|
10882 | linker_flags=-v |
---|
10883 | verstring= |
---|
10884 | output_objdir=. |
---|
10885 | libname=conftest |
---|
10886 | lt_save_allow_undefined_flag=$allow_undefined_flag |
---|
10887 | allow_undefined_flag= |
---|
10888 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
---|
10889 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
10890 | ac_status=$? |
---|
10891 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
10892 | test $ac_status = 0; } |
---|
10893 | then |
---|
10894 | lt_cv_archive_cmds_need_lc=no |
---|
10895 | else |
---|
10896 | lt_cv_archive_cmds_need_lc=yes |
---|
10897 | fi |
---|
10898 | allow_undefined_flag=$lt_save_allow_undefined_flag |
---|
10899 | else |
---|
10900 | cat conftest.err 1>&5 |
---|
10901 | fi |
---|
10902 | $RM conftest* |
---|
10903 | |
---|
10904 | fi |
---|
10905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
---|
10906 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
---|
10907 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
---|
10908 | ;; |
---|
10909 | esac |
---|
10910 | fi |
---|
10911 | ;; |
---|
10912 | esac |
---|
10913 | |
---|
10914 | |
---|
10915 | |
---|
10916 | |
---|
10917 | |
---|
10918 | |
---|
10919 | |
---|
10920 | |
---|
10921 | |
---|
10922 | |
---|
10923 | |
---|
10924 | |
---|
10925 | |
---|
10926 | |
---|
10927 | |
---|
10928 | |
---|
10929 | |
---|
10930 | |
---|
10931 | |
---|
10932 | |
---|
10933 | |
---|
10934 | |
---|
10935 | |
---|
10936 | |
---|
10937 | |
---|
10938 | |
---|
10939 | |
---|
10940 | |
---|
10941 | |
---|
10942 | |
---|
10943 | |
---|
10944 | |
---|
10945 | |
---|
10946 | |
---|
10947 | |
---|
10948 | |
---|
10949 | |
---|
10950 | |
---|
10951 | |
---|
10952 | |
---|
10953 | |
---|
10954 | |
---|
10955 | |
---|
10956 | |
---|
10957 | |
---|
10958 | |
---|
10959 | |
---|
10960 | |
---|
10961 | |
---|
10962 | |
---|
10963 | |
---|
10964 | |
---|
10965 | |
---|
10966 | |
---|
10967 | |
---|
10968 | |
---|
10969 | |
---|
10970 | |
---|
10971 | |
---|
10972 | |
---|
10973 | |
---|
10974 | |
---|
10975 | |
---|
10976 | |
---|
10977 | |
---|
10978 | |
---|
10979 | |
---|
10980 | |
---|
10981 | |
---|
10982 | |
---|
10983 | |
---|
10984 | |
---|
|
---|