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.5.3-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.5.3-trunk' |
---|
595 | PACKAGE_STRING='adolc 2.5.3-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 | adolclib |
---|
641 | ac_adolc_cxxflags |
---|
642 | ac_adolc_cflags |
---|
643 | PAREXA_FALSE |
---|
644 | PAREXA_TRUE |
---|
645 | ADDEXA_FALSE |
---|
646 | ADDEXA_TRUE |
---|
647 | DOCEXA_FALSE |
---|
648 | DOCEXA_TRUE |
---|
649 | SPARSE_FALSE |
---|
650 | SPARSE_TRUE |
---|
651 | HAVE_LIBCOLPACK_FALSE |
---|
652 | HAVE_LIBCOLPACK_TRUE |
---|
653 | ADVBRANCH |
---|
654 | REAL_TYPE |
---|
655 | UINT_TYPE |
---|
656 | ATRIG_ERF |
---|
657 | LIBOBJS |
---|
658 | ADOLC_PATCHLEVEL |
---|
659 | ADOLC_SUBVERSION |
---|
660 | ADOLC_VERSION |
---|
661 | ac_aux_dir |
---|
662 | BOOST_SYSTEM_LIB |
---|
663 | BOOST_LDFLAGS |
---|
664 | BOOST_CPPFLAGS |
---|
665 | _lib |
---|
666 | saveCXX |
---|
667 | saveCC |
---|
668 | CXXCPP |
---|
669 | OTOOL64 |
---|
670 | OTOOL |
---|
671 | LIPO |
---|
672 | NMEDIT |
---|
673 | DSYMUTIL |
---|
674 | MANIFEST_TOOL |
---|
675 | RANLIB |
---|
676 | ac_ct_AR |
---|
677 | AR |
---|
678 | NM |
---|
679 | ac_ct_DUMPBIN |
---|
680 | DUMPBIN |
---|
681 | LD |
---|
682 | FGREP |
---|
683 | EGREP |
---|
684 | GREP |
---|
685 | SED |
---|
686 | host_os |
---|
687 | host_vendor |
---|
688 | host_cpu |
---|
689 | host |
---|
690 | build_os |
---|
691 | build_vendor |
---|
692 | build_cpu |
---|
693 | build |
---|
694 | LIBTOOL |
---|
695 | OBJDUMP |
---|
696 | DLLTOOL |
---|
697 | AS |
---|
698 | LN_S |
---|
699 | CPP |
---|
700 | am__fastdepCC_FALSE |
---|
701 | am__fastdepCC_TRUE |
---|
702 | CCDEPMODE |
---|
703 | ac_ct_CC |
---|
704 | CFLAGS |
---|
705 | CC |
---|
706 | HAVE_CXX11 |
---|
707 | am__fastdepCXX_FALSE |
---|
708 | am__fastdepCXX_TRUE |
---|
709 | CXXDEPMODE |
---|
710 | am__nodep |
---|
711 | AMDEPBACKSLASH |
---|
712 | AMDEP_FALSE |
---|
713 | AMDEP_TRUE |
---|
714 | am__quote |
---|
715 | am__include |
---|
716 | DEPDIR |
---|
717 | OBJEXT |
---|
718 | EXEEXT |
---|
719 | ac_ct_CXX |
---|
720 | CPPFLAGS |
---|
721 | LDFLAGS |
---|
722 | CXXFLAGS |
---|
723 | CXX |
---|
724 | BUILD_ADOLC_AMPI_SUPPORT_FALSE |
---|
725 | BUILD_ADOLC_AMPI_SUPPORT_TRUE |
---|
726 | DARWIN_FALSE |
---|
727 | DARWIN_TRUE |
---|
728 | MAINT |
---|
729 | MAINTAINER_MODE_FALSE |
---|
730 | MAINTAINER_MODE_TRUE |
---|
731 | AM_BACKSLASH |
---|
732 | AM_DEFAULT_VERBOSITY |
---|
733 | AM_DEFAULT_V |
---|
734 | AM_V |
---|
735 | am__untar |
---|
736 | am__tar |
---|
737 | AMTAR |
---|
738 | am__leading_dot |
---|
739 | SET_MAKE |
---|
740 | AWK |
---|
741 | mkdir_p |
---|
742 | MKDIR_P |
---|
743 | INSTALL_STRIP_PROGRAM |
---|
744 | STRIP |
---|
745 | install_sh |
---|
746 | MAKEINFO |
---|
747 | AUTOHEADER |
---|
748 | AUTOMAKE |
---|
749 | AUTOCONF |
---|
750 | ACLOCAL |
---|
751 | VERSION |
---|
752 | PACKAGE |
---|
753 | CYGPATH_W |
---|
754 | am__isrc |
---|
755 | INSTALL_DATA |
---|
756 | INSTALL_SCRIPT |
---|
757 | INSTALL_PROGRAM |
---|
758 | target_alias |
---|
759 | host_alias |
---|
760 | build_alias |
---|
761 | LIBS |
---|
762 | ECHO_T |
---|
763 | ECHO_N |
---|
764 | ECHO_C |
---|
765 | DEFS |
---|
766 | mandir |
---|
767 | localedir |
---|
768 | libdir |
---|
769 | psdir |
---|
770 | pdfdir |
---|
771 | dvidir |
---|
772 | htmldir |
---|
773 | infodir |
---|
774 | docdir |
---|
775 | oldincludedir |
---|
776 | includedir |
---|
777 | localstatedir |
---|
778 | sharedstatedir |
---|
779 | sysconfdir |
---|
780 | datadir |
---|
781 | datarootdir |
---|
782 | libexecdir |
---|
783 | sbindir |
---|
784 | bindir |
---|
785 | program_transform_name |
---|
786 | prefix |
---|
787 | exec_prefix |
---|
788 | PACKAGE_URL |
---|
789 | PACKAGE_BUGREPORT |
---|
790 | PACKAGE_STRING |
---|
791 | PACKAGE_VERSION |
---|
792 | PACKAGE_TARNAME |
---|
793 | PACKAGE_NAME |
---|
794 | PATH_SEPARATOR |
---|
795 | SHELL' |
---|
796 | ac_subst_files='' |
---|
797 | ac_user_opts=' |
---|
798 | enable_option_checking |
---|
799 | enable_silent_rules |
---|
800 | enable_maintainer_mode |
---|
801 | enable_ampi |
---|
802 | enable_dependency_tracking |
---|
803 | enable_static |
---|
804 | enable_shared |
---|
805 | with_pic |
---|
806 | enable_fast_install |
---|
807 | with_gnu_ld |
---|
808 | with_sysroot |
---|
809 | enable_libtool_lock |
---|
810 | with_mpi_root |
---|
811 | with_mpicc |
---|
812 | with_mpicxx |
---|
813 | with_boost |
---|
814 | with_boost_libdir |
---|
815 | with_boost_system |
---|
816 | enable_use_calloc |
---|
817 | enable_atrig_erf |
---|
818 | enable_ulong |
---|
819 | enable_double |
---|
820 | enable_advanced_branching |
---|
821 | enable_debug |
---|
822 | enable_harddebug |
---|
823 | enable_stdczero |
---|
824 | enable_lateinit |
---|
825 | enable_tserrno |
---|
826 | with_openmp_flag |
---|
827 | enable_sparse |
---|
828 | with_colpack |
---|
829 | enable_docexa |
---|
830 | enable_addexa |
---|
831 | enable_parexa |
---|
832 | with_cflags |
---|
833 | with_cxxflags |
---|
834 | with_ampi |
---|
835 | with_soname |
---|
836 | enable_tapedoc_values |
---|
837 | ' |
---|
838 | ac_precious_vars='build_alias |
---|
839 | host_alias |
---|
840 | target_alias |
---|
841 | CXX |
---|
842 | CXXFLAGS |
---|
843 | LDFLAGS |
---|
844 | LIBS |
---|
845 | CPPFLAGS |
---|
846 | CCC |
---|
847 | CC |
---|
848 | CFLAGS |
---|
849 | CPP |
---|
850 | CXXCPP' |
---|
851 | |
---|
852 | |
---|
853 | # Initialize some variables set by options. |
---|
854 | ac_init_help= |
---|
855 | ac_init_version=false |
---|
856 | ac_unrecognized_opts= |
---|
857 | ac_unrecognized_sep= |
---|
858 | # The variables have the same names as the options, with |
---|
859 | # dashes changed to underlines. |
---|
860 | cache_file=/dev/null |
---|
861 | exec_prefix=NONE |
---|
862 | no_create= |
---|
863 | no_recursion= |
---|
864 | prefix=NONE |
---|
865 | program_prefix=NONE |
---|
866 | program_suffix=NONE |
---|
867 | program_transform_name=s,x,x, |
---|
868 | silent= |
---|
869 | site= |
---|
870 | srcdir= |
---|
871 | verbose= |
---|
872 | x_includes=NONE |
---|
873 | x_libraries=NONE |
---|
874 | |
---|
875 | # Installation directory options. |
---|
876 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
877 | # and all the variables that are supposed to be based on exec_prefix |
---|
878 | # by default will actually change. |
---|
879 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
880 | # (The list follows the same order as the GNU Coding Standards.) |
---|
881 | bindir='${exec_prefix}/bin' |
---|
882 | sbindir='${exec_prefix}/sbin' |
---|
883 | libexecdir='${exec_prefix}/libexec' |
---|
884 | datarootdir='${prefix}/share' |
---|
885 | datadir='${datarootdir}' |
---|
886 | sysconfdir='${prefix}/etc' |
---|
887 | sharedstatedir='${prefix}/com' |
---|
888 | localstatedir='${prefix}/var' |
---|
889 | includedir='${prefix}/include' |
---|
890 | oldincludedir='/usr/include' |
---|
891 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
892 | infodir='${datarootdir}/info' |
---|
893 | htmldir='${docdir}' |
---|
894 | dvidir='${docdir}' |
---|
895 | pdfdir='${docdir}' |
---|
896 | psdir='${docdir}' |
---|
897 | libdir='${exec_prefix}/lib' |
---|
898 | localedir='${datarootdir}/locale' |
---|
899 | mandir='${datarootdir}/man' |
---|
900 | |
---|
901 | ac_prev= |
---|
902 | ac_dashdash= |
---|
903 | for ac_option |
---|
904 | do |
---|
905 | # If the previous option needs an argument, assign it. |
---|
906 | if test -n "$ac_prev"; then |
---|
907 | eval $ac_prev=\$ac_option |
---|
908 | ac_prev= |
---|
909 | continue |
---|
910 | fi |
---|
911 | |
---|
912 | case $ac_option in |
---|
913 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
914 | *=) ac_optarg= ;; |
---|
915 | *) ac_optarg=yes ;; |
---|
916 | esac |
---|
917 | |
---|
918 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
919 | |
---|
920 | case $ac_dashdash$ac_option in |
---|
921 | --) |
---|
922 | ac_dashdash=yes ;; |
---|
923 | |
---|
924 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
925 | ac_prev=bindir ;; |
---|
926 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
927 | bindir=$ac_optarg ;; |
---|
928 | |
---|
929 | -build | --build | --buil | --bui | --bu) |
---|
930 | ac_prev=build_alias ;; |
---|
931 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
932 | build_alias=$ac_optarg ;; |
---|
933 | |
---|
934 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
935 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
936 | ac_prev=cache_file ;; |
---|
937 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
938 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
939 | cache_file=$ac_optarg ;; |
---|
940 | |
---|
941 | --config-cache | -C) |
---|
942 | cache_file=config.cache ;; |
---|
943 | |
---|
944 | -datadir | --datadir | --datadi | --datad) |
---|
945 | ac_prev=datadir ;; |
---|
946 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
947 | datadir=$ac_optarg ;; |
---|
948 | |
---|
949 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
950 | | --dataroo | --dataro | --datar) |
---|
951 | ac_prev=datarootdir ;; |
---|
952 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
953 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
954 | datarootdir=$ac_optarg ;; |
---|
955 | |
---|
956 | -disable-* | --disable-*) |
---|
957 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
958 | # Reject names that are not valid shell variable names. |
---|
959 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
960 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
961 | ac_useropt_orig=$ac_useropt |
---|
962 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
963 | case $ac_user_opts in |
---|
964 | *" |
---|
965 | "enable_$ac_useropt" |
---|
966 | "*) ;; |
---|
967 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
968 | ac_unrecognized_sep=', ';; |
---|
969 | esac |
---|
970 | eval enable_$ac_useropt=no ;; |
---|
971 | |
---|
972 | -docdir | --docdir | --docdi | --doc | --do) |
---|
973 | ac_prev=docdir ;; |
---|
974 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
975 | docdir=$ac_optarg ;; |
---|
976 | |
---|
977 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
978 | ac_prev=dvidir ;; |
---|
979 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
980 | dvidir=$ac_optarg ;; |
---|
981 | |
---|
982 | -enable-* | --enable-*) |
---|
983 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
984 | # Reject names that are not valid shell variable names. |
---|
985 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
986 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
987 | ac_useropt_orig=$ac_useropt |
---|
988 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
989 | case $ac_user_opts in |
---|
990 | *" |
---|
991 | "enable_$ac_useropt" |
---|
992 | "*) ;; |
---|
993 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
994 | ac_unrecognized_sep=', ';; |
---|
995 | esac |
---|
996 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
997 | |
---|
998 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
999 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
1000 | | --exec | --exe | --ex) |
---|
1001 | ac_prev=exec_prefix ;; |
---|
1002 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
1003 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
1004 | | --exec=* | --exe=* | --ex=*) |
---|
1005 | exec_prefix=$ac_optarg ;; |
---|
1006 | |
---|
1007 | -gas | --gas | --ga | --g) |
---|
1008 | # Obsolete; use --with-gas. |
---|
1009 | with_gas=yes ;; |
---|
1010 | |
---|
1011 | -help | --help | --hel | --he | -h) |
---|
1012 | ac_init_help=long ;; |
---|
1013 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
1014 | ac_init_help=recursive ;; |
---|
1015 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
1016 | ac_init_help=short ;; |
---|
1017 | |
---|
1018 | -host | --host | --hos | --ho) |
---|
1019 | ac_prev=host_alias ;; |
---|
1020 | -host=* | --host=* | --hos=* | --ho=*) |
---|
1021 | host_alias=$ac_optarg ;; |
---|
1022 | |
---|
1023 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
1024 | ac_prev=htmldir ;; |
---|
1025 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
1026 | | --ht=*) |
---|
1027 | htmldir=$ac_optarg ;; |
---|
1028 | |
---|
1029 | -includedir | --includedir | --includedi | --included | --include \ |
---|
1030 | | --includ | --inclu | --incl | --inc) |
---|
1031 | ac_prev=includedir ;; |
---|
1032 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
1033 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
1034 | includedir=$ac_optarg ;; |
---|
1035 | |
---|
1036 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
1037 | ac_prev=infodir ;; |
---|
1038 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
1039 | infodir=$ac_optarg ;; |
---|
1040 | |
---|
1041 | -libdir | --libdir | --libdi | --libd) |
---|
1042 | ac_prev=libdir ;; |
---|
1043 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
1044 | libdir=$ac_optarg ;; |
---|
1045 | |
---|
1046 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
1047 | | --libexe | --libex | --libe) |
---|
1048 | ac_prev=libexecdir ;; |
---|
1049 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
1050 | | --libexe=* | --libex=* | --libe=*) |
---|
1051 | libexecdir=$ac_optarg ;; |
---|
1052 | |
---|
1053 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
1054 | ac_prev=localedir ;; |
---|
1055 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
1056 | localedir=$ac_optarg ;; |
---|
1057 | |
---|
1058 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
1059 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
1060 | ac_prev=localstatedir ;; |
---|
1061 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
1062 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
1063 | localstatedir=$ac_optarg ;; |
---|
1064 | |
---|
1065 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
1066 | ac_prev=mandir ;; |
---|
1067 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
1068 | mandir=$ac_optarg ;; |
---|
1069 | |
---|
1070 | -nfp | --nfp | --nf) |
---|
1071 | # Obsolete; use --without-fp. |
---|
1072 | with_fp=no ;; |
---|
1073 | |
---|
1074 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
1075 | | --no-cr | --no-c | -n) |
---|
1076 | no_create=yes ;; |
---|
1077 | |
---|
1078 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
1079 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
1080 | no_recursion=yes ;; |
---|
1081 | |
---|
1082 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
1083 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
1084 | | --oldin | --oldi | --old | --ol | --o) |
---|
1085 | ac_prev=oldincludedir ;; |
---|
1086 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
1087 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
1088 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
1089 | oldincludedir=$ac_optarg ;; |
---|
1090 | |
---|
1091 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
1092 | ac_prev=prefix ;; |
---|
1093 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
1094 | prefix=$ac_optarg ;; |
---|
1095 | |
---|
1096 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
1097 | | --program-pre | --program-pr | --program-p) |
---|
1098 | ac_prev=program_prefix ;; |
---|
1099 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
1100 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
1101 | program_prefix=$ac_optarg ;; |
---|
1102 | |
---|
1103 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
1104 | | --program-suf | --program-su | --program-s) |
---|
1105 | ac_prev=program_suffix ;; |
---|
1106 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
1107 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
1108 | program_suffix=$ac_optarg ;; |
---|
1109 | |
---|
1110 | -program-transform-name | --program-transform-name \ |
---|
1111 | | --program-transform-nam | --program-transform-na \ |
---|
1112 | | --program-transform-n | --program-transform- \ |
---|
1113 | | --program-transform | --program-transfor \ |
---|
1114 | | --program-transfo | --program-transf \ |
---|
1115 | | --program-trans | --program-tran \ |
---|
1116 | | --progr-tra | --program-tr | --program-t) |
---|
1117 | ac_prev=program_transform_name ;; |
---|
1118 | -program-transform-name=* | --program-transform-name=* \ |
---|
1119 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1120 | | --program-transform-n=* | --program-transform-=* \ |
---|
1121 | | --program-transform=* | --program-transfor=* \ |
---|
1122 | | --program-transfo=* | --program-transf=* \ |
---|
1123 | | --program-trans=* | --program-tran=* \ |
---|
1124 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1125 | program_transform_name=$ac_optarg ;; |
---|
1126 | |
---|
1127 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1128 | ac_prev=pdfdir ;; |
---|
1129 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1130 | pdfdir=$ac_optarg ;; |
---|
1131 | |
---|
1132 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1133 | ac_prev=psdir ;; |
---|
1134 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1135 | psdir=$ac_optarg ;; |
---|
1136 | |
---|
1137 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1138 | | -silent | --silent | --silen | --sile | --sil) |
---|
1139 | silent=yes ;; |
---|
1140 | |
---|
1141 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1142 | ac_prev=sbindir ;; |
---|
1143 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1144 | | --sbi=* | --sb=*) |
---|
1145 | sbindir=$ac_optarg ;; |
---|
1146 | |
---|
1147 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1148 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1149 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1150 | | --sha | --sh) |
---|
1151 | ac_prev=sharedstatedir ;; |
---|
1152 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1153 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1154 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1155 | | --sha=* | --sh=*) |
---|
1156 | sharedstatedir=$ac_optarg ;; |
---|
1157 | |
---|
1158 | -site | --site | --sit) |
---|
1159 | ac_prev=site ;; |
---|
1160 | -site=* | --site=* | --sit=*) |
---|
1161 | site=$ac_optarg ;; |
---|
1162 | |
---|
1163 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1164 | ac_prev=srcdir ;; |
---|
1165 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1166 | srcdir=$ac_optarg ;; |
---|
1167 | |
---|
1168 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1169 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1170 | ac_prev=sysconfdir ;; |
---|
1171 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1172 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1173 | sysconfdir=$ac_optarg ;; |
---|
1174 | |
---|
1175 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1176 | ac_prev=target_alias ;; |
---|
1177 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1178 | target_alias=$ac_optarg ;; |
---|
1179 | |
---|
1180 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1181 | verbose=yes ;; |
---|
1182 | |
---|
1183 | -version | --version | --versio | --versi | --vers | -V) |
---|
1184 | ac_init_version=: ;; |
---|
1185 | |
---|
1186 | -with-* | --with-*) |
---|
1187 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1188 | # Reject names that are not valid shell variable names. |
---|
1189 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1190 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1191 | ac_useropt_orig=$ac_useropt |
---|
1192 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1193 | case $ac_user_opts in |
---|
1194 | *" |
---|
1195 | "with_$ac_useropt" |
---|
1196 | "*) ;; |
---|
1197 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1198 | ac_unrecognized_sep=', ';; |
---|
1199 | esac |
---|
1200 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1201 | |
---|
1202 | -without-* | --without-*) |
---|
1203 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1204 | # Reject names that are not valid shell variable names. |
---|
1205 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1206 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1207 | ac_useropt_orig=$ac_useropt |
---|
1208 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1209 | case $ac_user_opts in |
---|
1210 | *" |
---|
1211 | "with_$ac_useropt" |
---|
1212 | "*) ;; |
---|
1213 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1214 | ac_unrecognized_sep=', ';; |
---|
1215 | esac |
---|
1216 | eval with_$ac_useropt=no ;; |
---|
1217 | |
---|
1218 | --x) |
---|
1219 | # Obsolete; use --with-x. |
---|
1220 | with_x=yes ;; |
---|
1221 | |
---|
1222 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1223 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1224 | ac_prev=x_includes ;; |
---|
1225 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1226 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1227 | x_includes=$ac_optarg ;; |
---|
1228 | |
---|
1229 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1230 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1231 | ac_prev=x_libraries ;; |
---|
1232 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1233 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1234 | x_libraries=$ac_optarg ;; |
---|
1235 | |
---|
1236 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1237 | Try \`$0 --help' for more information" |
---|
1238 | ;; |
---|
1239 | |
---|
1240 | *=*) |
---|
1241 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1242 | # Reject names that are not valid shell variable names. |
---|
1243 | case $ac_envvar in #( |
---|
1244 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1245 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1246 | esac |
---|
1247 | eval $ac_envvar=\$ac_optarg |
---|
1248 | export $ac_envvar ;; |
---|
1249 | |
---|
1250 | *) |
---|
1251 | # FIXME: should be removed in autoconf 3.0. |
---|
1252 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1253 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1254 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1255 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1256 | ;; |
---|
1257 | |
---|
1258 | esac |
---|
1259 | done |
---|
1260 | |
---|
1261 | if test -n "$ac_prev"; then |
---|
1262 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1263 | as_fn_error $? "missing argument to $ac_option" |
---|
1264 | fi |
---|
1265 | |
---|
1266 | if test -n "$ac_unrecognized_opts"; then |
---|
1267 | case $enable_option_checking in |
---|
1268 | no) ;; |
---|
1269 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1270 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1271 | esac |
---|
1272 | fi |
---|
1273 | |
---|
1274 | # Check all directory arguments for consistency. |
---|
1275 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1276 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1277 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1278 | libdir localedir mandir |
---|
1279 | do |
---|
1280 | eval ac_val=\$$ac_var |
---|
1281 | # Remove trailing slashes. |
---|
1282 | case $ac_val in |
---|
1283 | */ ) |
---|
1284 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1285 | eval $ac_var=\$ac_val;; |
---|
1286 | esac |
---|
1287 | # Be sure to have absolute directory names. |
---|
1288 | case $ac_val in |
---|
1289 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1290 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1291 | esac |
---|
1292 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1293 | done |
---|
1294 | |
---|
1295 | # There might be people who depend on the old broken behavior: `$host' |
---|
1296 | # used to hold the argument of --host etc. |
---|
1297 | # FIXME: To remove some day. |
---|
1298 | build=$build_alias |
---|
1299 | host=$host_alias |
---|
1300 | target=$target_alias |
---|
1301 | |
---|
1302 | # FIXME: To remove some day. |
---|
1303 | if test "x$host_alias" != x; then |
---|
1304 | if test "x$build_alias" = x; then |
---|
1305 | cross_compiling=maybe |
---|
1306 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1307 | cross_compiling=yes |
---|
1308 | fi |
---|
1309 | fi |
---|
1310 | |
---|
1311 | ac_tool_prefix= |
---|
1312 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1313 | |
---|
1314 | test "$silent" = yes && exec 6>/dev/null |
---|
1315 | |
---|
1316 | |
---|
1317 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1318 | ac_ls_di=`ls -di .` && |
---|
1319 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1320 | as_fn_error $? "working directory cannot be determined" |
---|
1321 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1322 | as_fn_error $? "pwd does not report name of working directory" |
---|
1323 | |
---|
1324 | |
---|
1325 | # Find the source files, if location was not specified. |
---|
1326 | if test -z "$srcdir"; then |
---|
1327 | ac_srcdir_defaulted=yes |
---|
1328 | # Try the directory containing this script, then the parent directory. |
---|
1329 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1330 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1331 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1332 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1333 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1334 | $as_echo X"$as_myself" | |
---|
1335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1336 | s//\1/ |
---|
1337 | q |
---|
1338 | } |
---|
1339 | /^X\(\/\/\)[^/].*/{ |
---|
1340 | s//\1/ |
---|
1341 | q |
---|
1342 | } |
---|
1343 | /^X\(\/\/\)$/{ |
---|
1344 | s//\1/ |
---|
1345 | q |
---|
1346 | } |
---|
1347 | /^X\(\/\).*/{ |
---|
1348 | s//\1/ |
---|
1349 | q |
---|
1350 | } |
---|
1351 | s/.*/./; q'` |
---|
1352 | srcdir=$ac_confdir |
---|
1353 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1354 | srcdir=.. |
---|
1355 | fi |
---|
1356 | else |
---|
1357 | ac_srcdir_defaulted=no |
---|
1358 | fi |
---|
1359 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1360 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1361 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1362 | fi |
---|
1363 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1364 | ac_abs_confdir=`( |
---|
1365 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1366 | pwd)` |
---|
1367 | # When building in place, set srcdir=. |
---|
1368 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1369 | srcdir=. |
---|
1370 | fi |
---|
1371 | # Remove unnecessary trailing slashes from srcdir. |
---|
1372 | # Double slashes in file names in object file debugging info |
---|
1373 | # mess up M-x gdb in Emacs. |
---|
1374 | case $srcdir in |
---|
1375 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1376 | esac |
---|
1377 | for ac_var in $ac_precious_vars; do |
---|
1378 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1379 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1380 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1381 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1382 | done |
---|
1383 | |
---|
1384 | # |
---|
1385 | # Report the --help message. |
---|
1386 | # |
---|
1387 | if test "$ac_init_help" = "long"; then |
---|
1388 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1389 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1390 | cat <<_ACEOF |
---|
1391 | \`configure' configures adolc 2.5.3-trunk to adapt to many kinds of systems. |
---|
1392 | |
---|
1393 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1394 | |
---|
1395 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1396 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1397 | |
---|
1398 | Defaults for the options are specified in brackets. |
---|
1399 | |
---|
1400 | Configuration: |
---|
1401 | -h, --help display this help and exit |
---|
1402 | --help=short display options specific to this package |
---|
1403 | --help=recursive display the short help of all the included packages |
---|
1404 | -V, --version display version information and exit |
---|
1405 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1406 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1407 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1408 | -n, --no-create do not create output files |
---|
1409 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1410 | |
---|
1411 | Installation directories: |
---|
1412 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1413 | [$ac_default_prefix] |
---|
1414 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1415 | [PREFIX] |
---|
1416 | |
---|
1417 | By default, \`make install' will install all the files in |
---|
1418 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1419 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1420 | for instance \`--prefix=\$HOME'. |
---|
1421 | |
---|
1422 | For better control, use the options below. |
---|
1423 | |
---|
1424 | Fine tuning of the installation directories: |
---|
1425 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1426 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1427 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1428 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1429 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1430 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1431 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1432 | --includedir=DIR C header files [PREFIX/include] |
---|
1433 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1434 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1435 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1436 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1437 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1438 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1439 | --docdir=DIR documentation root [DATAROOTDIR/doc/adolc] |
---|
1440 | --htmldir=DIR html documentation [DOCDIR] |
---|
1441 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1442 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1443 | --psdir=DIR ps documentation [DOCDIR] |
---|
1444 | _ACEOF |
---|
1445 | |
---|
1446 | cat <<\_ACEOF |
---|
1447 | |
---|
1448 | Program names: |
---|
1449 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1450 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1451 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1452 | |
---|
1453 | System types: |
---|
1454 | --build=BUILD configure for building on BUILD [guessed] |
---|
1455 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1456 | _ACEOF |
---|
1457 | fi |
---|
1458 | |
---|
1459 | if test -n "$ac_init_help"; then |
---|
1460 | case $ac_init_help in |
---|
1461 | short | recursive ) echo "Configuration of adolc 2.5.3-trunk:";; |
---|
1462 | esac |
---|
1463 | cat <<\_ACEOF |
---|
1464 | |
---|
1465 | Optional Features: |
---|
1466 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1467 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1468 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1469 | --enable-silent-rules less verbose build output (undo: "make V=1") |
---|
1470 | --disable-silent-rules verbose build output (undo: "make V=0") |
---|
1471 | --enable-maintainer-mode |
---|
1472 | enable make rules and dependencies not useful (and |
---|
1473 | sometimes confusing) to the casual installer |
---|
1474 | --enable-ampi build ADOL-C with adjoinable MPI (AMPI) support |
---|
1475 | [default=disabled] |
---|
1476 | --enable-dependency-tracking |
---|
1477 | do not reject slow dependency extractors |
---|
1478 | --disable-dependency-tracking |
---|
1479 | speeds up one-time build |
---|
1480 | --enable-static[=PKGS] build static libraries [default=no] |
---|
1481 | --enable-shared[=PKGS] build shared libraries [default=yes] |
---|
1482 | --enable-fast-install[=PKGS] |
---|
1483 | optimize for fast installation [default=yes] |
---|
1484 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
1485 | --disable-use-calloc disable use of calloc and use malloc instead for |
---|
1486 | memory allocation [default=calloc is used] |
---|
1487 | --enable-atrig-erf enable atrig and erf functions in ADOL-C |
---|
1488 | [default=no] |
---|
1489 | --enable-ulong enable 64-bit locations (only available on 64-bit |
---|
1490 | systems) [default=32-bit] |
---|
1491 | --disable-double disable double precision arithmetic [untested, |
---|
1492 | default=double is enabled] |
---|
1493 | --enable-advanced-branching |
---|
1494 | enable advanced branching operations to reduce |
---|
1495 | retaping [default=no]. The boolean valued comparison |
---|
1496 | operators with two adouble arguments will not return |
---|
1497 | boolean results but the active results may be used |
---|
1498 | to automatically switch branches in conjunction with |
---|
1499 | condassign or advector (see manual). |
---|
1500 | |
---|
1501 | --enable-debug enable ADOL-C debug mode [default=no] |
---|
1502 | |
---|
1503 | --enable-harddebug enable ADOL-C hard debug mode [default=no] |
---|
1504 | |
---|
1505 | --disable-stdczero adouble default constructor does not initialize the |
---|
1506 | value to zero (improves performance but yields |
---|
1507 | incorrect results for implicit array |
---|
1508 | initializations, see manual) [default=enabled] |
---|
1509 | |
---|
1510 | --enable-lateinit adouble constructors need to be called. With malloc |
---|
1511 | or realloc that is not the case. With this option |
---|
1512 | the adouble can do a late initialization.) |
---|
1513 | [default=disabled] |
---|
1514 | |
---|
1515 | --enable-tserrno use errno as thread number cache [default=no] |
---|
1516 | |
---|
1517 | --enable-sparse build sparse drivers [default=disabled] |
---|
1518 | |
---|
1519 | --enable-docexa build documented examples [default=disabled] |
---|
1520 | --enable-addexa build additional examples [default=disabled] |
---|
1521 | --enable-parexa build parallel example [default=disabled], if |
---|
1522 | enabled -with-openmp-flag=FLAG required |
---|
1523 | |
---|
1524 | --disable-tapedoc-values |
---|
1525 | should the tape_doc routine compute the values as it |
---|
1526 | interprets and prints the tape contents |
---|
1527 | [default=enabled] |
---|
1528 | |
---|
1529 | Optional Packages: |
---|
1530 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1531 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1532 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
---|
1533 | both] |
---|
1534 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
---|
1535 | --with-sysroot=DIR Search for dependent libraries within DIR |
---|
1536 | (or the compiler's sysroot if not specified). |
---|
1537 | --with-mpi-root=MPIROOT absolute path to the MPI root directory |
---|
1538 | --with-mpicc=MPICC name of the MPI C++ compiler to use (default mpicc) |
---|
1539 | --with-mpicxx=MPICXX name of the MPI C++ compiler to use (default mpicxx) |
---|
1540 | --with-boost[=ARG] use Boost library from a standard location |
---|
1541 | (ARG=yes), from the specified location (ARG=<path>), |
---|
1542 | or disable it (ARG=no) [ARG=yes] |
---|
1543 | --with-boost-libdir=LIB_DIR |
---|
1544 | Force given directory for boost libraries. Note that |
---|
1545 | this will override library path detection, so use |
---|
1546 | this parameter only if default library detection |
---|
1547 | fails and you know exactly where your boost |
---|
1548 | libraries are located. |
---|
1549 | --with-boost-system[=special-lib] |
---|
1550 | use the System library from boost - it is possible |
---|
1551 | to specify a certain library for the linker e.g. |
---|
1552 | --with-boost-system=boost_system-gcc-mt |
---|
1553 | --with-openmp-flag=FLAG use FLAG to enable OpenMP at compile time |
---|
1554 | [default=none] |
---|
1555 | |
---|
1556 | --with-colpack=DIR path to the colpack library and headers |
---|
1557 | [default=system libraries] |
---|
1558 | --with-cflags=FLAGS use CFLAGS=FLAGS (default: -O2) |
---|
1559 | --with-cxxflags=FLAGS use CXXFLAGS=FLAGS (default: -O2) |
---|
1560 | --with-ampi=AMPI_DIR full path to the installation of adjoinable MPI |
---|
1561 | (AMPI) |
---|
1562 | --with-soname=NAME user can choose what to call his library here |
---|
1563 | [default: if ampi enabled then adolc_ampi otherwise |
---|
1564 | adolc] |
---|
1565 | |
---|
1566 | Some influential environment variables: |
---|
1567 | CXX C++ compiler command |
---|
1568 | CXXFLAGS C++ compiler flags |
---|
1569 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1570 | nonstandard directory <lib dir> |
---|
1571 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1572 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1573 | you have headers in a nonstandard directory <include dir> |
---|
1574 | CC C compiler command |
---|
1575 | CFLAGS C compiler flags |
---|
1576 | CPP C preprocessor |
---|
1577 | CXXCPP C++ preprocessor |
---|
1578 | |
---|
1579 | Use these variables to override the choices made by `configure' or to help |
---|
1580 | it to find libraries and programs with nonstandard names/locations. |
---|
1581 | |
---|
1582 | Report bugs to <adol-c@list.coin-or.org>. |
---|
1583 | _ACEOF |
---|
1584 | ac_status=$? |
---|
1585 | fi |
---|
1586 | |
---|
1587 | if test "$ac_init_help" = "recursive"; then |
---|
1588 | # If there are subdirs, report their specific --help. |
---|
1589 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1590 | test -d "$ac_dir" || |
---|
1591 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1592 | continue |
---|
1593 | ac_builddir=. |
---|
1594 | |
---|
1595 | case "$ac_dir" in |
---|
1596 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1597 | *) |
---|
1598 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1599 | # A ".." for each directory in $ac_dir_suffix. |
---|
1600 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1601 | case $ac_top_builddir_sub in |
---|
1602 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1603 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1604 | esac ;; |
---|
1605 | esac |
---|
1606 | ac_abs_top_builddir=$ac_pwd |
---|
1607 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1608 | # for backward compatibility: |
---|
1609 | ac_top_builddir=$ac_top_build_prefix |
---|
1610 | |
---|
1611 | case $srcdir in |
---|
1612 | .) # We are building in place. |
---|
1613 | ac_srcdir=. |
---|
1614 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1615 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1616 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1617 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1618 | ac_top_srcdir=$srcdir |
---|
1619 | ac_abs_top_srcdir=$srcdir ;; |
---|
1620 | *) # Relative name. |
---|
1621 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1622 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1623 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1624 | esac |
---|
1625 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1626 | |
---|
1627 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1628 | # Check for guested configure. |
---|
1629 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1630 | echo && |
---|
1631 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1632 | elif test -f "$ac_srcdir/configure"; then |
---|
1633 | echo && |
---|
1634 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1635 | else |
---|
1636 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1637 | fi || ac_status=$? |
---|
1638 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1639 | done |
---|
1640 | fi |
---|
1641 | |
---|
1642 | test -n "$ac_init_help" && exit $ac_status |
---|
1643 | if $ac_init_version; then |
---|
1644 | cat <<\_ACEOF |
---|
1645 | adolc configure 2.5.3-trunk |
---|
1646 | generated by GNU Autoconf 2.69 |
---|
1647 | |
---|
1648 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
1649 | This configure script is free software; the Free Software Foundation |
---|
1650 | gives unlimited permission to copy, distribute and modify it. |
---|
1651 | _ACEOF |
---|
1652 | exit |
---|
1653 | fi |
---|
1654 | |
---|
1655 | ## ------------------------ ## |
---|
1656 | ## Autoconf initialization. ## |
---|
1657 | ## ------------------------ ## |
---|
1658 | |
---|
1659 | # ac_fn_cxx_try_compile LINENO |
---|
1660 | # ---------------------------- |
---|
1661 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1662 | ac_fn_cxx_try_compile () |
---|
1663 | { |
---|
1664 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1665 | rm -f conftest.$ac_objext |
---|
1666 | if { { ac_try="$ac_compile" |
---|
1667 | case "(($ac_try" in |
---|
1668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1669 | *) ac_try_echo=$ac_try;; |
---|
1670 | esac |
---|
1671 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1672 | $as_echo "$ac_try_echo"; } >&5 |
---|
1673 | (eval "$ac_compile") 2>conftest.err |
---|
1674 | ac_status=$? |
---|
1675 | if test -s conftest.err; then |
---|
1676 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1677 | cat conftest.er1 >&5 |
---|
1678 | mv -f conftest.er1 conftest.err |
---|
1679 | fi |
---|
1680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1681 | test $ac_status = 0; } && { |
---|
1682 | test -z "$ac_cxx_werror_flag" || |
---|
1683 | test ! -s conftest.err |
---|
1684 | } && test -s conftest.$ac_objext; then : |
---|
1685 | ac_retval=0 |
---|
1686 | else |
---|
1687 | $as_echo "$as_me: failed program was:" >&5 |
---|
1688 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1689 | |
---|
1690 | ac_retval=1 |
---|
1691 | fi |
---|
1692 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1693 | as_fn_set_status $ac_retval |
---|
1694 | |
---|
1695 | } # ac_fn_cxx_try_compile |
---|
1696 | |
---|
1697 | # ac_fn_c_try_compile LINENO |
---|
1698 | # -------------------------- |
---|
1699 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1700 | ac_fn_c_try_compile () |
---|
1701 | { |
---|
1702 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1703 | rm -f conftest.$ac_objext |
---|
1704 | if { { ac_try="$ac_compile" |
---|
1705 | case "(($ac_try" in |
---|
1706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1707 | *) ac_try_echo=$ac_try;; |
---|
1708 | esac |
---|
1709 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1710 | $as_echo "$ac_try_echo"; } >&5 |
---|
1711 | (eval "$ac_compile") 2>conftest.err |
---|
1712 | ac_status=$? |
---|
1713 | if test -s conftest.err; then |
---|
1714 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1715 | cat conftest.er1 >&5 |
---|
1716 | mv -f conftest.er1 conftest.err |
---|
1717 | fi |
---|
1718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1719 | test $ac_status = 0; } && { |
---|
1720 | test -z "$ac_c_werror_flag" || |
---|
1721 | test ! -s conftest.err |
---|
1722 | } && test -s conftest.$ac_objext; then : |
---|
1723 | ac_retval=0 |
---|
1724 | else |
---|
1725 | $as_echo "$as_me: failed program was:" >&5 |
---|
1726 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1727 | |
---|
1728 | ac_retval=1 |
---|
1729 | fi |
---|
1730 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1731 | as_fn_set_status $ac_retval |
---|
1732 | |
---|
1733 | } # ac_fn_c_try_compile |
---|
1734 | |
---|
1735 | # ac_fn_c_try_cpp LINENO |
---|
1736 | # ---------------------- |
---|
1737 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1738 | ac_fn_c_try_cpp () |
---|
1739 | { |
---|
1740 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1741 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1742 | case "(($ac_try" in |
---|
1743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1744 | *) ac_try_echo=$ac_try;; |
---|
1745 | esac |
---|
1746 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1747 | $as_echo "$ac_try_echo"; } >&5 |
---|
1748 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1749 | ac_status=$? |
---|
1750 | if test -s conftest.err; then |
---|
1751 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1752 | cat conftest.er1 >&5 |
---|
1753 | mv -f conftest.er1 conftest.err |
---|
1754 | fi |
---|
1755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1756 | test $ac_status = 0; } > conftest.i && { |
---|
1757 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1758 | test ! -s conftest.err |
---|
1759 | }; then : |
---|
1760 | ac_retval=0 |
---|
1761 | else |
---|
1762 | $as_echo "$as_me: failed program was:" >&5 |
---|
1763 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1764 | |
---|
1765 | ac_retval=1 |
---|
1766 | fi |
---|
1767 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1768 | as_fn_set_status $ac_retval |
---|
1769 | |
---|
1770 | } # ac_fn_c_try_cpp |
---|
1771 | |
---|
1772 | # ac_fn_c_try_link LINENO |
---|
1773 | # ----------------------- |
---|
1774 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1775 | ac_fn_c_try_link () |
---|
1776 | { |
---|
1777 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1778 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1779 | if { { ac_try="$ac_link" |
---|
1780 | case "(($ac_try" in |
---|
1781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1782 | *) ac_try_echo=$ac_try;; |
---|
1783 | esac |
---|
1784 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1785 | $as_echo "$ac_try_echo"; } >&5 |
---|
1786 | (eval "$ac_link") 2>conftest.err |
---|
1787 | ac_status=$? |
---|
1788 | if test -s conftest.err; then |
---|
1789 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1790 | cat conftest.er1 >&5 |
---|
1791 | mv -f conftest.er1 conftest.err |
---|
1792 | fi |
---|
1793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1794 | test $ac_status = 0; } && { |
---|
1795 | test -z "$ac_c_werror_flag" || |
---|
1796 | test ! -s conftest.err |
---|
1797 | } && test -s conftest$ac_exeext && { |
---|
1798 | test "$cross_compiling" = yes || |
---|
1799 | test -x conftest$ac_exeext |
---|
1800 | }; then : |
---|
1801 | ac_retval=0 |
---|
1802 | else |
---|
1803 | $as_echo "$as_me: failed program was:" >&5 |
---|
1804 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1805 | |
---|
1806 | ac_retval=1 |
---|
1807 | fi |
---|
1808 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1809 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1810 | # interfere with the next link command; also delete a directory that is |
---|
1811 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1812 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1813 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1814 | as_fn_set_status $ac_retval |
---|
1815 | |
---|
1816 | } # ac_fn_c_try_link |
---|
1817 | |
---|
1818 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1819 | # ------------------------------------------------------- |
---|
1820 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1821 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1822 | ac_fn_c_check_header_compile () |
---|
1823 | { |
---|
1824 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1826 | $as_echo_n "checking for $2... " >&6; } |
---|
1827 | if eval \${$3+:} false; then : |
---|
1828 | $as_echo_n "(cached) " >&6 |
---|
1829 | else |
---|
1830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1831 | /* end confdefs.h. */ |
---|
1832 | $4 |
---|
1833 | #include <$2> |
---|
1834 | _ACEOF |
---|
1835 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1836 | eval "$3=yes" |
---|
1837 | else |
---|
1838 | eval "$3=no" |
---|
1839 | fi |
---|
1840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1841 | fi |
---|
1842 | eval ac_res=\$$3 |
---|
1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1844 | $as_echo "$ac_res" >&6; } |
---|
1845 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1846 | |
---|
1847 | } # ac_fn_c_check_header_compile |
---|
1848 | |
---|
1849 | # ac_fn_c_try_run LINENO |
---|
1850 | # ---------------------- |
---|
1851 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1852 | # that executables *can* be run. |
---|
1853 | ac_fn_c_try_run () |
---|
1854 | { |
---|
1855 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1856 | if { { ac_try="$ac_link" |
---|
1857 | case "(($ac_try" in |
---|
1858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1859 | *) ac_try_echo=$ac_try;; |
---|
1860 | esac |
---|
1861 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1862 | $as_echo "$ac_try_echo"; } >&5 |
---|
1863 | (eval "$ac_link") 2>&5 |
---|
1864 | ac_status=$? |
---|
1865 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1866 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1867 | { { case "(($ac_try" in |
---|
1868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1869 | *) ac_try_echo=$ac_try;; |
---|
1870 | esac |
---|
1871 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1872 | $as_echo "$ac_try_echo"; } >&5 |
---|
1873 | (eval "$ac_try") 2>&5 |
---|
1874 | ac_status=$? |
---|
1875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1876 | test $ac_status = 0; }; }; then : |
---|
1877 | ac_retval=0 |
---|
1878 | else |
---|
1879 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1880 | $as_echo "$as_me: failed program was:" >&5 |
---|
1881 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1882 | |
---|
1883 | ac_retval=$ac_status |
---|
1884 | fi |
---|
1885 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1886 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1887 | as_fn_set_status $ac_retval |
---|
1888 | |
---|
1889 | } # ac_fn_c_try_run |
---|
1890 | |
---|
1891 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
1892 | # ---------------------------------- |
---|
1893 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1894 | ac_fn_c_check_func () |
---|
1895 | { |
---|
1896 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1898 | $as_echo_n "checking for $2... " >&6; } |
---|
1899 | if eval \${$3+:} false; then : |
---|
1900 | $as_echo_n "(cached) " >&6 |
---|
1901 | else |
---|
1902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1903 | /* end confdefs.h. */ |
---|
1904 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1905 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1906 | #define $2 innocuous_$2 |
---|
1907 | |
---|
1908 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1909 | which can conflict with char $2 (); below. |
---|
1910 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1911 | <limits.h> exists even on freestanding compilers. */ |
---|
1912 | |
---|
1913 | #ifdef __STDC__ |
---|
1914 | # include <limits.h> |
---|
1915 | #else |
---|
1916 | # include <assert.h> |
---|
1917 | #endif |
---|
1918 | |
---|
1919 | #undef $2 |
---|
1920 | |
---|
1921 | /* Override any GCC internal prototype to avoid an error. |
---|
1922 | Use char because int might match the return type of a GCC |
---|
1923 | builtin and then its argument prototype would still apply. */ |
---|
1924 | #ifdef __cplusplus |
---|
1925 | extern "C" |
---|
1926 | #endif |
---|
1927 | char $2 (); |
---|
1928 | /* The GNU C library defines this for functions which it implements |
---|
1929 | to always fail with ENOSYS. Some functions are actually named |
---|
1930 | something starting with __ and the normal name is an alias. */ |
---|
1931 | #if defined __stub_$2 || defined __stub___$2 |
---|
1932 | choke me |
---|
1933 | #endif |
---|
1934 | |
---|
1935 | int |
---|
1936 | main () |
---|
1937 | { |
---|
1938 | return $2 (); |
---|
1939 | ; |
---|
1940 | return 0; |
---|
1941 | } |
---|
1942 | _ACEOF |
---|
1943 | if ac_fn_c_try_link "$LINENO"; then : |
---|
1944 | eval "$3=yes" |
---|
1945 | else |
---|
1946 | eval "$3=no" |
---|
1947 | fi |
---|
1948 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1949 | conftest$ac_exeext conftest.$ac_ext |
---|
1950 | fi |
---|
1951 | eval ac_res=\$$3 |
---|
1952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1953 | $as_echo "$ac_res" >&6; } |
---|
1954 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1955 | |
---|
1956 | } # ac_fn_c_check_func |
---|
1957 | |
---|
1958 | # ac_fn_cxx_try_cpp LINENO |
---|
1959 | # ------------------------ |
---|
1960 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1961 | ac_fn_cxx_try_cpp () |
---|
1962 | { |
---|
1963 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1964 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1965 | case "(($ac_try" in |
---|
1966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1967 | *) ac_try_echo=$ac_try;; |
---|
1968 | esac |
---|
1969 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1970 | $as_echo "$ac_try_echo"; } >&5 |
---|
1971 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1972 | ac_status=$? |
---|
1973 | if test -s conftest.err; then |
---|
1974 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1975 | cat conftest.er1 >&5 |
---|
1976 | mv -f conftest.er1 conftest.err |
---|
1977 | fi |
---|
1978 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1979 | test $ac_status = 0; } > conftest.i && { |
---|
1980 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
1981 | test ! -s conftest.err |
---|
1982 | }; then : |
---|
1983 | ac_retval=0 |
---|
1984 | else |
---|
1985 | $as_echo "$as_me: failed program was:" >&5 |
---|
1986 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1987 | |
---|
1988 | ac_retval=1 |
---|
1989 | fi |
---|
1990 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1991 | as_fn_set_status $ac_retval |
---|
1992 | |
---|
1993 | } # ac_fn_cxx_try_cpp |
---|
1994 | |
---|
1995 | # ac_fn_cxx_try_link LINENO |
---|
1996 | # ------------------------- |
---|
1997 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1998 | ac_fn_cxx_try_link () |
---|
1999 | { |
---|
2000 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2001 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2002 | if { { ac_try="$ac_link" |
---|
2003 | case "(($ac_try" in |
---|
2004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2005 | *) ac_try_echo=$ac_try;; |
---|
2006 | esac |
---|
2007 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2008 | $as_echo "$ac_try_echo"; } >&5 |
---|
2009 | (eval "$ac_link") 2>conftest.err |
---|
2010 | ac_status=$? |
---|
2011 | if test -s conftest.err; then |
---|
2012 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
2013 | cat conftest.er1 >&5 |
---|
2014 | mv -f conftest.er1 conftest.err |
---|
2015 | fi |
---|
2016 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2017 | test $ac_status = 0; } && { |
---|
2018 | test -z "$ac_cxx_werror_flag" || |
---|
2019 | test ! -s conftest.err |
---|
2020 | } && test -s conftest$ac_exeext && { |
---|
2021 | test "$cross_compiling" = yes || |
---|
2022 | test -x conftest$ac_exeext |
---|
2023 | }; then : |
---|
2024 | ac_retval=0 |
---|
2025 | else |
---|
2026 | $as_echo "$as_me: failed program was:" >&5 |
---|
2027 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2028 | |
---|
2029 | ac_retval=1 |
---|
2030 | fi |
---|
2031 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
2032 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
2033 | # interfere with the next link command; also delete a directory that is |
---|
2034 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
2035 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
2036 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2037 | as_fn_set_status $ac_retval |
---|
2038 | |
---|
2039 | } # ac_fn_cxx_try_link |
---|
2040 | |
---|
2041 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
---|
2042 | # -------------------------------------------- |
---|
2043 | # Tries to find the compile-time value of EXPR in a program that includes |
---|
2044 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
---|
2045 | # computed |
---|
2046 | ac_fn_c_compute_int () |
---|
2047 | { |
---|
2048 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2049 | if test "$cross_compiling" = yes; then |
---|
2050 | # Depending upon the size, compute the lo and hi bounds. |
---|
2051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2052 | /* end confdefs.h. */ |
---|
2053 | $4 |
---|
2054 | int |
---|
2055 | main () |
---|
2056 | { |
---|
2057 | static int test_array [1 - 2 * !(($2) >= 0)]; |
---|
2058 | test_array [0] = 0; |
---|
2059 | return test_array [0]; |
---|
2060 | |
---|
2061 | ; |
---|
2062 | return 0; |
---|
2063 | } |
---|
2064 | _ACEOF |
---|
2065 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2066 | ac_lo=0 ac_mid=0 |
---|
2067 | while :; do |
---|
2068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2069 | /* end confdefs.h. */ |
---|
2070 | $4 |
---|
2071 | int |
---|
2072 | main () |
---|
2073 | { |
---|
2074 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
---|
2075 | test_array [0] = 0; |
---|
2076 | return test_array [0]; |
---|
2077 | |
---|
2078 | ; |
---|
2079 | return 0; |
---|
2080 | } |
---|
2081 | _ACEOF |
---|
2082 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2083 | ac_hi=$ac_mid; break |
---|
2084 | else |
---|
2085 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
---|
2086 | if test $ac_lo -le $ac_mid; then |
---|
2087 | ac_lo= ac_hi= |
---|
2088 | break |
---|
2089 | fi |
---|
2090 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
---|
2091 | fi |
---|
2092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2093 | done |
---|
2094 | else |
---|
2095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2096 | /* end confdefs.h. */ |
---|
2097 | $4 |
---|
2098 | int |
---|
2099 | main () |
---|
2100 | { |
---|
2101 | static int test_array [1 - 2 * !(($2) < 0)]; |
---|
2102 | test_array [0] = 0; |
---|
2103 | return test_array [0]; |
---|
2104 | |
---|
2105 | ; |
---|
2106 | return 0; |
---|
2107 | } |
---|
2108 | _ACEOF |
---|
2109 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2110 | ac_hi=-1 ac_mid=-1 |
---|
2111 | while :; do |
---|
2112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2113 | /* end confdefs.h. */ |
---|
2114 | $4 |
---|
2115 | int |
---|
2116 | main () |
---|
2117 | { |
---|
2118 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
---|
2119 | test_array [0] = 0; |
---|
2120 | return test_array [0]; |
---|
2121 | |
---|
2122 | ; |
---|
2123 | return 0; |
---|
2124 | } |
---|
2125 | _ACEOF |
---|
2126 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2127 | ac_lo=$ac_mid; break |
---|
2128 | else |
---|
2129 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
---|
2130 | if test $ac_mid -le $ac_hi; then |
---|
2131 | ac_lo= ac_hi= |
---|
2132 | break |
---|
2133 | fi |
---|
2134 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
---|
2135 | fi |
---|
2136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2137 | done |
---|
2138 | else |
---|
2139 | ac_lo= ac_hi= |
---|
2140 | fi |
---|
2141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2142 | fi |
---|
2143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2144 | # Binary search between lo and hi bounds. |
---|
2145 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
2146 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
---|
2147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2148 | /* end confdefs.h. */ |
---|
2149 | $4 |
---|
2150 | int |
---|
2151 | main () |
---|
2152 | { |
---|
2153 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
---|
2154 | test_array [0] = 0; |
---|
2155 | return test_array [0]; |
---|
2156 | |
---|
2157 | ; |
---|
2158 | return 0; |
---|
2159 | } |
---|
2160 | _ACEOF |
---|
2161 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2162 | ac_hi=$ac_mid |
---|
2163 | else |
---|
2164 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
---|
2165 | fi |
---|
2166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2167 | done |
---|
2168 | case $ac_lo in #(( |
---|
2169 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
---|
2170 | '') ac_retval=1 ;; |
---|
2171 | esac |
---|
2172 | else |
---|
2173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2174 | /* end confdefs.h. */ |
---|
2175 | $4 |
---|
2176 | static long int longval () { return $2; } |
---|
2177 | static unsigned long int ulongval () { return $2; } |
---|
2178 | #include <stdio.h> |
---|
2179 | #include <stdlib.h> |
---|
2180 | int |
---|
2181 | main () |
---|
2182 | { |
---|
2183 | |
---|
2184 | FILE *f = fopen ("conftest.val", "w"); |
---|
2185 | if (! f) |
---|
2186 | return 1; |
---|
2187 | if (($2) < 0) |
---|
2188 | { |
---|
2189 | long int i = longval (); |
---|
2190 | if (i != ($2)) |
---|
2191 | return 1; |
---|
2192 | fprintf (f, "%ld", i); |
---|
2193 | } |
---|
2194 | else |
---|
2195 | { |
---|
2196 | unsigned long int i = ulongval (); |
---|
2197 | if (i != ($2)) |
---|
2198 | return 1; |
---|
2199 | fprintf (f, "%lu", i); |
---|
2200 | } |
---|
2201 | /* Do not output a trailing newline, as this causes \r\n confusion |
---|
2202 | on some platforms. */ |
---|
2203 | return ferror (f) || fclose (f) != 0; |
---|
2204 | |
---|
2205 | ; |
---|
2206 | return 0; |
---|
2207 | } |
---|
2208 | _ACEOF |
---|
2209 | if ac_fn_c_try_run "$LINENO"; then : |
---|
2210 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
---|
2211 | else |
---|
2212 | ac_retval=1 |
---|
2213 | fi |
---|
2214 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
2215 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
2216 | rm -f conftest.val |
---|
2217 | |
---|
2218 | fi |
---|
2219 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2220 | as_fn_set_status $ac_retval |
---|
2221 | |
---|
2222 | } # ac_fn_c_compute_int |
---|
2223 | |
---|
2224 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
---|
2225 | # ------------------------------------------- |
---|
2226 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
---|
2227 | # variable VAR accordingly. |
---|
2228 | ac_fn_c_check_type () |
---|
2229 | { |
---|
2230 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2232 | $as_echo_n "checking for $2... " >&6; } |
---|
2233 | if eval \${$3+:} false; then : |
---|
2234 | $as_echo_n "(cached) " >&6 |
---|
2235 | else |
---|
2236 | eval "$3=no" |
---|
2237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2238 | /* end confdefs.h. */ |
---|
2239 | $4 |
---|
2240 | int |
---|
2241 | main () |
---|
2242 | { |
---|
2243 | if (sizeof ($2)) |
---|
2244 | return 0; |
---|
2245 | ; |
---|
2246 | return 0; |
---|
2247 | } |
---|
2248 | _ACEOF |
---|
2249 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2251 | /* end confdefs.h. */ |
---|
2252 | $4 |
---|
2253 | int |
---|
2254 | main () |
---|
2255 | { |
---|
2256 | if (sizeof (($2))) |
---|
2257 | return 0; |
---|
2258 | ; |
---|
2259 | return 0; |
---|
2260 | } |
---|
2261 | _ACEOF |
---|
2262 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2263 | |
---|
2264 | else |
---|
2265 | eval "$3=yes" |
---|
2266 | fi |
---|
2267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2268 | fi |
---|
2269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2270 | fi |
---|
2271 | eval ac_res=\$$3 |
---|
2272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2273 | $as_echo "$ac_res" >&6; } |
---|
2274 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2275 | |
---|
2276 | } # ac_fn_c_check_type |
---|
2277 | |
---|
2278 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
2279 | # ------------------------------------------------------- |
---|
2280 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
2281 | # the include files in INCLUDES and setting the cache variable VAR |
---|
2282 | # accordingly. |
---|
2283 | ac_fn_c_check_header_mongrel () |
---|
2284 | { |
---|
2285 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2286 | if eval \${$3+:} false; then : |
---|
2287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2288 | $as_echo_n "checking for $2... " >&6; } |
---|
2289 | if eval \${$3+:} false; then : |
---|
2290 | $as_echo_n "(cached) " >&6 |
---|
2291 | fi |
---|
2292 | eval ac_res=\$$3 |
---|
2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2294 | $as_echo "$ac_res" >&6; } |
---|
2295 | else |
---|
2296 | # Is the header compilable? |
---|
2297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
2298 | $as_echo_n "checking $2 usability... " >&6; } |
---|
2299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2300 | /* end confdefs.h. */ |
---|
2301 | $4 |
---|
2302 | #include <$2> |
---|
2303 | _ACEOF |
---|
2304 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2305 | ac_header_compiler=yes |
---|
2306 | else |
---|
2307 | ac_header_compiler=no |
---|
2308 | fi |
---|
2309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
2311 | $as_echo "$ac_header_compiler" >&6; } |
---|
2312 | |
---|
2313 | # Is the header present? |
---|
2314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
2315 | $as_echo_n "checking $2 presence... " >&6; } |
---|
2316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2317 | /* end confdefs.h. */ |
---|
2318 | #include <$2> |
---|
2319 | _ACEOF |
---|
2320 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
2321 | ac_header_preproc=yes |
---|
2322 | else |
---|
2323 | ac_header_preproc=no |
---|
2324 | fi |
---|
2325 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
2326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
2327 | $as_echo "$ac_header_preproc" >&6; } |
---|
2328 | |
---|
2329 | # So? What about this header? |
---|
2330 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
2331 | yes:no: ) |
---|
2332 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
2333 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
2334 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
2335 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
2336 | ;; |
---|
2337 | no:yes:* ) |
---|
2338 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
2339 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
2340 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
2341 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
2342 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
2343 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
2345 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
2346 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
2347 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
2348 | ( $as_echo "## -------------------------------------- ## |
---|
2349 | ## Report this to adol-c@list.coin-or.org ## |
---|
2350 | ## -------------------------------------- ##" |
---|
2351 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
2352 | ;; |
---|
2353 | esac |
---|
2354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2355 | $as_echo_n "checking for $2... " >&6; } |
---|
2356 | if eval \${$3+:} false; then : |
---|
2357 | $as_echo_n "(cached) " >&6 |
---|
2358 | else |
---|
2359 | eval "$3=\$ac_header_compiler" |
---|
2360 | fi |
---|
2361 | eval ac_res=\$$3 |
---|
2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2363 | $as_echo "$ac_res" >&6; } |
---|
2364 | fi |
---|
2365 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2366 | |
---|
2367 | } # ac_fn_c_check_header_mongrel |
---|
2368 | |
---|
2369 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
2370 | # --------------------------------------------------------- |
---|
2371 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
2372 | # the include files in INCLUDES and setting the cache variable VAR |
---|
2373 | # accordingly. |
---|
2374 | ac_fn_cxx_check_header_mongrel () |
---|
2375 | { |
---|
2376 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2377 | if eval \${$3+:} false; then : |
---|
2378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2379 | $as_echo_n "checking for $2... " >&6; } |
---|
2380 | if eval \${$3+:} false; then : |
---|
2381 | $as_echo_n "(cached) " >&6 |
---|
2382 | fi |
---|
2383 | eval ac_res=\$$3 |
---|
2384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2385 | $as_echo "$ac_res" >&6; } |
---|
2386 | else |
---|
2387 | # Is the header compilable? |
---|
2388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
2389 | $as_echo_n "checking $2 usability... " >&6; } |
---|
2390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2391 | /* end confdefs.h. */ |
---|
2392 | $4 |
---|
2393 | #include <$2> |
---|
2394 | _ACEOF |
---|
2395 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2396 | ac_header_compiler=yes |
---|
2397 | else |
---|
2398 | ac_header_compiler=no |
---|
2399 | fi |
---|
2400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
2402 | $as_echo "$ac_header_compiler" >&6; } |
---|
2403 | |
---|
2404 | # Is the header present? |
---|
2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
2406 | $as_echo_n "checking $2 presence... " >&6; } |
---|
2407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2408 | /* end confdefs.h. */ |
---|
2409 | #include <$2> |
---|
2410 | _ACEOF |
---|
2411 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
2412 | ac_header_preproc=yes |
---|
2413 | else |
---|
2414 | ac_header_preproc=no |
---|
2415 | fi |
---|
2416 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
2417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
2418 | $as_echo "$ac_header_preproc" >&6; } |
---|
2419 | |
---|
2420 | # So? What about this header? |
---|
2421 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
---|
2422 | yes:no: ) |
---|
2423 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
2424 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
2425 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
2426 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
2427 | ;; |
---|
2428 | no:yes:* ) |
---|
2429 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
2430 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
2432 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
2433 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
2434 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
2435 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
2436 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
2437 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
2438 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
2439 | ( $as_echo "## -------------------------------------- ## |
---|
2440 | ## Report this to adol-c@list.coin-or.org ## |
---|
2441 | ## -------------------------------------- ##" |
---|
2442 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
2443 | ;; |
---|
2444 | esac |
---|
2445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2446 | $as_echo_n "checking for $2... " >&6; } |
---|
2447 | if eval \${$3+:} false; then : |
---|
2448 | $as_echo_n "(cached) " >&6 |
---|
2449 | else |
---|
2450 | eval "$3=\$ac_header_compiler" |
---|
2451 | fi |
---|
2452 | eval ac_res=\$$3 |
---|
2453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2454 | $as_echo "$ac_res" >&6; } |
---|
2455 | fi |
---|
2456 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2457 | |
---|
2458 | } # ac_fn_cxx_check_header_mongrel |
---|
2459 | cat >config.log <<_ACEOF |
---|
2460 | This file contains any messages produced by compilers while |
---|
2461 | running configure, to aid debugging if configure makes a mistake. |
---|
2462 | |
---|
2463 | It was created by adolc $as_me 2.5.3-trunk, which was |
---|
2464 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
2465 | |
---|
2466 | $ $0 $@ |
---|
2467 | |
---|
2468 | _ACEOF |
---|
2469 | exec 5>>config.log |
---|
2470 | { |
---|
2471 | cat <<_ASUNAME |
---|
2472 | ## --------- ## |
---|
2473 | ## Platform. ## |
---|
2474 | ## --------- ## |
---|
2475 | |
---|
2476 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
2477 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
2478 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
2479 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
2480 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
2481 | |
---|
2482 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
2483 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
2484 | |
---|
2485 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
2486 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
2487 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
2488 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
2489 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
2490 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
2491 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
2492 | |
---|
2493 | _ASUNAME |
---|
2494 | |
---|
2495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2496 | for as_dir in $PATH |
---|
2497 | do |
---|
2498 | IFS=$as_save_IFS |
---|
2499 | test -z "$as_dir" && as_dir=. |
---|
2500 | $as_echo "PATH: $as_dir" |
---|
2501 | done |
---|
2502 | IFS=$as_save_IFS |
---|
2503 | |
---|
2504 | } >&5 |
---|
2505 | |
---|
2506 | cat >&5 <<_ACEOF |
---|
2507 | |
---|
2508 | |
---|
2509 | ## ----------- ## |
---|
2510 | ## Core tests. ## |
---|
2511 | ## ----------- ## |
---|
2512 | |
---|
2513 | _ACEOF |
---|
2514 | |
---|
2515 | |
---|
2516 | # Keep a trace of the command line. |
---|
2517 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2518 | # Strip out --silent because we don't want to record it for future runs. |
---|
2519 | # Also quote any args containing shell meta-characters. |
---|
2520 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2521 | ac_configure_args= |
---|
2522 | ac_configure_args0= |
---|
2523 | ac_configure_args1= |
---|
2524 | ac_must_keep_next=false |
---|
2525 | for ac_pass in 1 2 |
---|
2526 | do |
---|
2527 | for ac_arg |
---|
2528 | do |
---|
2529 | case $ac_arg in |
---|
2530 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2531 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2532 | | -silent | --silent | --silen | --sile | --sil) |
---|
2533 | continue ;; |
---|
2534 | *\'*) |
---|
2535 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2536 | esac |
---|
2537 | case $ac_pass in |
---|
2538 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2539 | 2) |
---|
2540 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2541 | if test $ac_must_keep_next = true; then |
---|
2542 | ac_must_keep_next=false # Got value, back to normal. |
---|
2543 | else |
---|
2544 | case $ac_arg in |
---|
2545 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2546 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2547 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2548 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2549 | case "$ac_configure_args0 " in |
---|
2550 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2551 | esac |
---|
2552 | ;; |
---|
2553 | -* ) ac_must_keep_next=true ;; |
---|
2554 | esac |
---|
2555 | fi |
---|
2556 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2557 | ;; |
---|
2558 | esac |
---|
2559 | done |
---|
2560 | done |
---|
2561 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2562 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2563 | |
---|
2564 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2565 | # config.log. We remove comments because anyway the quotes in there |
---|
2566 | # would cause problems or look ugly. |
---|
2567 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2568 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2569 | trap 'exit_status=$? |
---|
2570 | # Save into config.log some information that might help in debugging. |
---|
2571 | { |
---|
2572 | echo |
---|
2573 | |
---|
2574 | $as_echo "## ---------------- ## |
---|
2575 | ## Cache variables. ## |
---|
2576 | ## ---------------- ##" |
---|
2577 | echo |
---|
2578 | # The following way of writing the cache mishandles newlines in values, |
---|
2579 | ( |
---|
2580 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2581 | eval ac_val=\$$ac_var |
---|
2582 | case $ac_val in #( |
---|
2583 | *${as_nl}*) |
---|
2584 | case $ac_var in #( |
---|
2585 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2586 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2587 | esac |
---|
2588 | case $ac_var in #( |
---|
2589 | _ | IFS | as_nl) ;; #( |
---|
2590 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2591 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2592 | esac ;; |
---|
2593 | esac |
---|
2594 | done |
---|
2595 | (set) 2>&1 | |
---|
2596 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2597 | *${as_nl}ac_space=\ *) |
---|
2598 | sed -n \ |
---|
2599 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2600 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2601 | ;; #( |
---|
2602 | *) |
---|
2603 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2604 | ;; |
---|
2605 | esac | |
---|
2606 | sort |
---|
2607 | ) |
---|
2608 | echo |
---|
2609 | |
---|
2610 | $as_echo "## ----------------- ## |
---|
2611 | ## Output variables. ## |
---|
2612 | ## ----------------- ##" |
---|
2613 | echo |
---|
2614 | for ac_var in $ac_subst_vars |
---|
2615 | do |
---|
2616 | eval ac_val=\$$ac_var |
---|
2617 | case $ac_val in |
---|
2618 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2619 | esac |
---|
2620 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2621 | done | sort |
---|
2622 | echo |
---|
2623 | |
---|
2624 | if test -n "$ac_subst_files"; then |
---|
2625 | $as_echo "## ------------------- ## |
---|
2626 | ## File substitutions. ## |
---|
2627 | ## ------------------- ##" |
---|
2628 | echo |
---|
2629 | for ac_var in $ac_subst_files |
---|
2630 | do |
---|
2631 | eval ac_val=\$$ac_var |
---|
2632 | case $ac_val in |
---|
2633 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2634 | esac |
---|
2635 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2636 | done | sort |
---|
2637 | echo |
---|
2638 | fi |
---|
2639 | |
---|
2640 | if test -s confdefs.h; then |
---|
2641 | $as_echo "## ----------- ## |
---|
2642 | ## confdefs.h. ## |
---|
2643 | ## ----------- ##" |
---|
2644 | echo |
---|
2645 | cat confdefs.h |
---|
2646 | echo |
---|
2647 | fi |
---|
2648 | test "$ac_signal" != 0 && |
---|
2649 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2650 | $as_echo "$as_me: exit $exit_status" |
---|
2651 | } >&5 |
---|
2652 | rm -f core *.core core.conftest.* && |
---|
2653 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2654 | exit $exit_status |
---|
2655 | ' 0 |
---|
2656 | for ac_signal in 1 2 13 15; do |
---|
2657 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2658 | done |
---|
2659 | ac_signal=0 |
---|
2660 | |
---|
2661 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2662 | rm -f -r conftest* confdefs.h |
---|
2663 | |
---|
2664 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2665 | |
---|
2666 | # Predefined preprocessor variables. |
---|
2667 | |
---|
2668 | cat >>confdefs.h <<_ACEOF |
---|
2669 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2670 | _ACEOF |
---|
2671 | |
---|
2672 | cat >>confdefs.h <<_ACEOF |
---|
2673 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2674 | _ACEOF |
---|
2675 | |
---|
2676 | cat >>confdefs.h <<_ACEOF |
---|
2677 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2678 | _ACEOF |
---|
2679 | |
---|
2680 | cat >>confdefs.h <<_ACEOF |
---|
2681 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2682 | _ACEOF |
---|
2683 | |
---|
2684 | cat >>confdefs.h <<_ACEOF |
---|
2685 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2686 | _ACEOF |
---|
2687 | |
---|
2688 | cat >>confdefs.h <<_ACEOF |
---|
2689 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2690 | _ACEOF |
---|
2691 | |
---|
2692 | |
---|
2693 | # Let the site file select an alternate cache file if it wants to. |
---|
2694 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2695 | ac_site_file1=NONE |
---|
2696 | ac_site_file2=NONE |
---|
2697 | if test -n "$CONFIG_SITE"; then |
---|
2698 | # We do not want a PATH search for config.site. |
---|
2699 | case $CONFIG_SITE in #(( |
---|
2700 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2701 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2702 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2703 | esac |
---|
2704 | elif test "x$prefix" != xNONE; then |
---|
2705 | ac_site_file1=$prefix/share/config.site |
---|
2706 | ac_site_file2=$prefix/etc/config.site |
---|
2707 | else |
---|
2708 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2709 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2710 | fi |
---|
2711 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2712 | do |
---|
2713 | test "x$ac_site_file" = xNONE && continue |
---|
2714 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2715 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2716 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2717 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2718 | . "$ac_site_file" \ |
---|
2719 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2720 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2721 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2722 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2723 | fi |
---|
2724 | done |
---|
2725 | |
---|
2726 | if test -r "$cache_file"; then |
---|
2727 | # Some versions of bash will fail to source /dev/null (special files |
---|
2728 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2729 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2730 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2731 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2732 | case $cache_file in |
---|
2733 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2734 | *) . "./$cache_file";; |
---|
2735 | esac |
---|
2736 | fi |
---|
2737 | else |
---|
2738 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2739 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2740 | >$cache_file |
---|
2741 | fi |
---|
2742 | |
---|
2743 | # Check that the precious variables saved in the cache have kept the same |
---|
2744 | # value. |
---|
2745 | ac_cache_corrupted=false |
---|
2746 | for ac_var in $ac_precious_vars; do |
---|
2747 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2748 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2749 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2750 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2751 | case $ac_old_set,$ac_new_set in |
---|
2752 | set,) |
---|
2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2754 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2755 | ac_cache_corrupted=: ;; |
---|
2756 | ,set) |
---|
2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2758 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2759 | ac_cache_corrupted=: ;; |
---|
2760 | ,);; |
---|
2761 | *) |
---|
2762 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2763 | # differences in whitespace do not lead to failure. |
---|
2764 | ac_old_val_w=`echo x $ac_old_val` |
---|
2765 | ac_new_val_w=`echo x $ac_new_val` |
---|
2766 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2768 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2769 | ac_cache_corrupted=: |
---|
2770 | else |
---|
2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2772 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2773 | eval $ac_var=\$ac_old_val |
---|
2774 | fi |
---|
2775 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2776 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2778 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2779 | fi;; |
---|
2780 | esac |
---|
2781 | # Pass precious variables to config.status. |
---|
2782 | if test "$ac_new_set" = set; then |
---|
2783 | case $ac_new_val in |
---|
2784 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2785 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2786 | esac |
---|
2787 | case " $ac_configure_args " in |
---|
2788 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2789 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2790 | esac |
---|
2791 | fi |
---|
2792 | done |
---|
2793 | if $ac_cache_corrupted; then |
---|
2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2795 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2797 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2798 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2799 | fi |
---|
2800 | ## -------------------- ## |
---|
2801 | ## Main body of script. ## |
---|
2802 | ## -------------------- ## |
---|
2803 | |
---|
2804 | ac_ext=c |
---|
2805 | ac_cpp='$CPP $CPPFLAGS' |
---|
2806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2809 | |
---|
2810 | |
---|
2811 | config_flags="$*" |
---|
2812 | |
---|
2813 | |
---|
2814 | ac_aux_dir= |
---|
2815 | for ac_dir in autoconf "$srcdir"/autoconf; do |
---|
2816 | if test -f "$ac_dir/install-sh"; then |
---|
2817 | ac_aux_dir=$ac_dir |
---|
2818 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2819 | break |
---|
2820 | elif test -f "$ac_dir/install.sh"; then |
---|
2821 | ac_aux_dir=$ac_dir |
---|
2822 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2823 | break |
---|
2824 | elif test -f "$ac_dir/shtool"; then |
---|
2825 | ac_aux_dir=$ac_dir |
---|
2826 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2827 | break |
---|
2828 | fi |
---|
2829 | done |
---|
2830 | if test -z "$ac_aux_dir"; then |
---|
2831 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 |
---|
2832 | fi |
---|
2833 | |
---|
2834 | # These three variables are undocumented and unsupported, |
---|
2835 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2836 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2837 | # whose full name contains unusual characters. |
---|
2838 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2839 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2840 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2841 | |
---|
2842 | |
---|
2843 | |
---|
2844 | ac_config_headers="$ac_config_headers ADOL-C/src/config.h" |
---|
2845 | |
---|
2846 | |
---|
2847 | am__api_version='1.13' |
---|
2848 | |
---|
2849 | # Find a good install program. We prefer a C program (faster), |
---|
2850 | # so one script is as good as another. But avoid the broken or |
---|
2851 | # incompatible versions: |
---|
2852 | # SysV /etc/install, /usr/sbin/install |
---|
2853 | # SunOS /usr/etc/install |
---|
2854 | # IRIX /sbin/install |
---|
2855 | # AIX /bin/install |
---|
2856 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2857 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2858 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2859 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2860 | # OS/2's system install, which has a completely different semantic |
---|
2861 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2862 | # Reject install programs that cannot install multiple files. |
---|
2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2864 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2865 | if test -z "$INSTALL"; then |
---|
2866 | if ${ac_cv_path_install+:} false; then : |
---|
2867 | $as_echo_n "(cached) " >&6 |
---|
2868 | else |
---|
2869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2870 | for as_dir in $PATH |
---|
2871 | do |
---|
2872 | IFS=$as_save_IFS |
---|
2873 | test -z "$as_dir" && as_dir=. |
---|
2874 | # Account for people who put trailing slashes in PATH elements. |
---|
2875 | case $as_dir/ in #(( |
---|
2876 | ./ | .// | /[cC]/* | \ |
---|
2877 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2878 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2879 | /usr/ucb/* ) ;; |
---|
2880 | *) |
---|
2881 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2882 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2883 | # by default. |
---|
2884 | for ac_prog in ginstall scoinst install; do |
---|
2885 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2886 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
2887 | if test $ac_prog = install && |
---|
2888 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2889 | # AIX install. It has an incompatible calling convention. |
---|
2890 | : |
---|
2891 | elif test $ac_prog = install && |
---|
2892 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2893 | # program-specific install script used by HP pwplus--don't use. |
---|
2894 | : |
---|
2895 | else |
---|
2896 | rm -rf conftest.one conftest.two conftest.dir |
---|
2897 | echo one > conftest.one |
---|
2898 | echo two > conftest.two |
---|
2899 | mkdir conftest.dir |
---|
2900 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2901 | test -s conftest.one && test -s conftest.two && |
---|
2902 | test -s conftest.dir/conftest.one && |
---|
2903 | test -s conftest.dir/conftest.two |
---|
2904 | then |
---|
2905 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2906 | break 3 |
---|
2907 | fi |
---|
2908 | fi |
---|
2909 | fi |
---|
2910 | done |
---|
2911 | done |
---|
2912 | ;; |
---|
2913 | esac |
---|
2914 | |
---|
2915 | done |
---|
2916 | IFS=$as_save_IFS |
---|
2917 | |
---|
2918 | rm -rf conftest.one conftest.two conftest.dir |
---|
2919 | |
---|
2920 | fi |
---|
2921 | if test "${ac_cv_path_install+set}" = set; then |
---|
2922 | INSTALL=$ac_cv_path_install |
---|
2923 | else |
---|
2924 | # As a last resort, use the slow shell script. Don't cache a |
---|
2925 | # value for INSTALL within a source directory, because that will |
---|
2926 | # break other packages using the cache if that directory is |
---|
2927 | # removed, or if the value is a relative name. |
---|
2928 | INSTALL=$ac_install_sh |
---|
2929 | fi |
---|
2930 | fi |
---|
2931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2932 | $as_echo "$INSTALL" >&6; } |
---|
2933 | |
---|
2934 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2935 | # It thinks the first close brace ends the variable substitution. |
---|
2936 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2937 | |
---|
2938 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2939 | |
---|
2940 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2941 | |
---|
2942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
---|
2943 | $as_echo_n "checking whether build environment is sane... " >&6; } |
---|
2944 | # Reject unsafe characters in $srcdir or the absolute working directory |
---|
2945 | # name. Accept space and tab only in the latter. |
---|
2946 | am_lf=' |
---|
2947 | ' |
---|
2948 | case `pwd` in |
---|
2949 | *[\\\"\#\$\&\'\`$am_lf]*) |
---|
2950 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
---|
2951 | esac |
---|
2952 | case $srcdir in |
---|
2953 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
---|
2954 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
---|
2955 | esac |
---|
2956 | |
---|
2957 | # Do 'set' in a subshell so we don't clobber the current shell's |
---|
2958 | # arguments. Must try -L first in case configure is actually a |
---|
2959 | # symlink; some systems play weird games with the mod time of symlinks |
---|
2960 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
2961 | # directory). |
---|
2962 | if ( |
---|
2963 | am_has_slept=no |
---|
2964 | for am_try in 1 2; do |
---|
2965 | echo "timestamp, slept: $am_has_slept" > conftest.file |
---|
2966 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
---|
2967 | if test "$*" = "X"; then |
---|
2968 | # -L didn't work. |
---|
2969 | set X `ls -t "$srcdir/configure" conftest.file` |
---|
2970 | fi |
---|
2971 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
2972 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
2973 | |
---|
2974 | # If neither matched, then we have a broken ls. This can happen |
---|
2975 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
2976 | # broken ls alias from the environment. This has actually |
---|
2977 | # happened. Such a system could not be considered "sane". |
---|
2978 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
---|
2979 | alias in your environment" "$LINENO" 5 |
---|
2980 | fi |
---|
2981 | if test "$2" = conftest.file || test $am_try -eq 2; then |
---|
2982 | break |
---|
2983 | fi |
---|
2984 | # Just in case. |
---|
2985 | sleep 1 |
---|
2986 | am_has_slept=yes |
---|
2987 | done |
---|
2988 | test "$2" = conftest.file |
---|
2989 | ) |
---|
2990 | then |
---|
2991 | # Ok. |
---|
2992 | : |
---|
2993 | else |
---|
2994 | as_fn_error $? "newly created file is older than distributed files! |
---|
2995 | Check your system clock" "$LINENO" 5 |
---|
2996 | fi |
---|
2997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2998 | $as_echo "yes" >&6; } |
---|
2999 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
---|
3000 | # generated files are strictly newer. |
---|
3001 | am_sleep_pid= |
---|
3002 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
---|
3003 | ( sleep 1 ) & |
---|
3004 | am_sleep_pid=$! |
---|
3005 | fi |
---|
3006 | |
---|
3007 | rm -f conftest.file |
---|
3008 | |
---|
3009 | test "$program_prefix" != NONE && |
---|
3010 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
---|
3011 | # Use a double $ so make ignores it. |
---|
3012 | test "$program_suffix" != NONE && |
---|
3013 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
---|
3014 | # Double any \ or $. |
---|
3015 | # By default was `s,x,x', remove it if useless. |
---|
3016 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
---|
3017 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
---|
3018 | |
---|
3019 | # expand $ac_aux_dir to an absolute path |
---|
3020 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
3021 | |
---|
3022 | if test x"${MISSING+set}" != xset; then |
---|
3023 | case $am_aux_dir in |
---|
3024 | *\ * | *\ *) |
---|
3025 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
---|
3026 | *) |
---|
3027 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
---|
3028 | esac |
---|
3029 | fi |
---|
3030 | # Use eval to expand $SHELL |
---|
3031 | if eval "$MISSING --is-lightweight"; then |
---|
3032 | am_missing_run="$MISSING " |
---|
3033 | else |
---|
3034 | am_missing_run= |
---|
3035 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
---|
3036 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
---|
3037 | fi |
---|
3038 | |
---|
3039 | if test x"${install_sh}" != xset; then |
---|
3040 | case $am_aux_dir in |
---|
3041 | *\ * | *\ *) |
---|
3042 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
---|
3043 | *) |
---|
3044 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
---|
3045 | esac |
---|
3046 | fi |
---|
3047 | |
---|
3048 | # Installed binaries are usually stripped using 'strip' when the user |
---|
3049 | # run "make install-strip". However 'strip' might not be the right |
---|
3050 | # tool to use in cross-compilation environments, therefore Automake |
---|
3051 | # will honor the 'STRIP' environment variable to overrule this program. |
---|
3052 | if test "$cross_compiling" != no; then |
---|
3053 | if test -n "$ac_tool_prefix"; then |
---|
3054 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
3055 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
3056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3057 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3058 | if ${ac_cv_prog_STRIP+:} false; then : |
---|
3059 | $as_echo_n "(cached) " >&6 |
---|
3060 | else |
---|
3061 | if test -n "$STRIP"; then |
---|
3062 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
3063 | else |
---|
3064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3065 | for as_dir in $PATH |
---|
3066 | do |
---|
3067 | IFS=$as_save_IFS |
---|
3068 | test -z "$as_dir" && as_dir=. |
---|
3069 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3070 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3071 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
3072 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3073 | break 2 |
---|
3074 | fi |
---|
3075 | done |
---|
3076 | done |
---|
3077 | IFS=$as_save_IFS |
---|
3078 | |
---|
3079 | fi |
---|
3080 | fi |
---|
3081 | STRIP=$ac_cv_prog_STRIP |
---|
3082 | if test -n "$STRIP"; then |
---|
3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
---|
3084 | $as_echo "$STRIP" >&6; } |
---|
3085 | else |
---|
3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3087 | $as_echo "no" >&6; } |
---|
3088 | fi |
---|
3089 | |
---|
3090 | |
---|
3091 | fi |
---|
3092 | if test -z "$ac_cv_prog_STRIP"; then |
---|
3093 | ac_ct_STRIP=$STRIP |
---|
3094 | # Extract the first word of "strip", so it can be a program name with args. |
---|
3095 | set dummy strip; ac_word=$2 |
---|
3096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3097 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3098 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
---|
3099 | $as_echo_n "(cached) " >&6 |
---|
3100 | else |
---|
3101 | if test -n "$ac_ct_STRIP"; then |
---|
3102 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
3103 | else |
---|
3104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3105 | for as_dir in $PATH |
---|
3106 | do |
---|
3107 | IFS=$as_save_IFS |
---|
3108 | test -z "$as_dir" && as_dir=. |
---|
3109 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3110 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3111 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
3112 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3113 | break 2 |
---|
3114 | fi |
---|
3115 | done |
---|
3116 | done |
---|
3117 | IFS=$as_save_IFS |
---|
3118 | |
---|
3119 | fi |
---|
3120 | fi |
---|
3121 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
3122 | if test -n "$ac_ct_STRIP"; then |
---|
3123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
---|
3124 | $as_echo "$ac_ct_STRIP" >&6; } |
---|
3125 | else |
---|
3126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3127 | $as_echo "no" >&6; } |
---|
3128 | fi |
---|
3129 | |
---|
3130 | if test "x$ac_ct_STRIP" = x; then |
---|
3131 | STRIP=":" |
---|
3132 | else |
---|
3133 | case $cross_compiling:$ac_tool_warned in |
---|
3134 | yes:) |
---|
3135 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3136 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3137 | ac_tool_warned=yes ;; |
---|
3138 | esac |
---|
3139 | STRIP=$ac_ct_STRIP |
---|
3140 | fi |
---|
3141 | else |
---|
3142 | STRIP="$ac_cv_prog_STRIP" |
---|
3143 | fi |
---|
3144 | |
---|
3145 | fi |
---|
3146 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
---|
3147 | |
---|
3148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
3149 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
3150 | if test -z "$MKDIR_P"; then |
---|
3151 | if ${ac_cv_path_mkdir+:} false; then : |
---|
3152 | $as_echo_n "(cached) " >&6 |
---|
3153 | else |
---|
3154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3155 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
3156 | do |
---|
3157 | IFS=$as_save_IFS |
---|
3158 | test -z "$as_dir" && as_dir=. |
---|
3159 | for ac_prog in mkdir gmkdir; do |
---|
3160 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3161 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
---|
3162 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
3163 | 'mkdir (GNU coreutils) '* | \ |
---|
3164 | 'mkdir (coreutils) '* | \ |
---|
3165 | 'mkdir (fileutils) '4.1*) |
---|
3166 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
3167 | break 3;; |
---|
3168 | esac |
---|
3169 | done |
---|
3170 | done |
---|
3171 | done |
---|
3172 | IFS=$as_save_IFS |
---|
3173 | |
---|
3174 | fi |
---|
3175 | |
---|
3176 | test -d ./--version && rmdir ./--version |
---|
3177 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
3178 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
3179 | else |
---|
3180 | # As a last resort, use the slow shell script. Don't cache a |
---|
3181 | # value for MKDIR_P within a source directory, because that will |
---|
3182 | # break other packages using the cache if that directory is |
---|
3183 | # removed, or if the value is a relative name. |
---|
3184 | MKDIR_P="$ac_install_sh -d" |
---|
3185 | fi |
---|
3186 | fi |
---|
3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
3188 | $as_echo "$MKDIR_P" >&6; } |
---|
3189 | |
---|
3190 | for ac_prog in gawk mawk nawk awk |
---|
3191 | do |
---|
3192 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3193 | set dummy $ac_prog; ac_word=$2 |
---|
3194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3195 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3196 | if ${ac_cv_prog_AWK+:} false; then : |
---|
3197 | $as_echo_n "(cached) " >&6 |
---|
3198 | else |
---|
3199 | if test -n "$AWK"; then |
---|
3200 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
3201 | else |
---|
3202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3203 | for as_dir in $PATH |
---|
3204 | do |
---|
3205 | IFS=$as_save_IFS |
---|
3206 | test -z "$as_dir" && as_dir=. |
---|
3207 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3208 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3209 | ac_cv_prog_AWK="$ac_prog" |
---|
3210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3211 | break 2 |
---|
3212 | fi |
---|
3213 | done |
---|
3214 | done |
---|
3215 | IFS=$as_save_IFS |
---|
3216 | |
---|
3217 | fi |
---|
3218 | fi |
---|
3219 | AWK=$ac_cv_prog_AWK |
---|
3220 | if test -n "$AWK"; then |
---|
3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
---|
3222 | $as_echo "$AWK" >&6; } |
---|
3223 | else |
---|
3224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3225 | $as_echo "no" >&6; } |
---|
3226 | fi |
---|
3227 | |
---|
3228 | |
---|
3229 | test -n "$AWK" && break |
---|
3230 | done |
---|
3231 | |
---|
3232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
3233 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
3234 | set x ${MAKE-make} |
---|
3235 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
3236 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
3237 | $as_echo_n "(cached) " >&6 |
---|
3238 | else |
---|
3239 | cat >conftest.make <<\_ACEOF |
---|
3240 | SHELL = /bin/sh |
---|
3241 | all: |
---|
3242 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
3243 | _ACEOF |
---|
3244 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
3245 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
3246 | *@@@%%%=?*=@@@%%%*) |
---|
3247 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
3248 | *) |
---|
3249 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
3250 | esac |
---|
3251 | rm -f conftest.make |
---|
3252 | fi |
---|
3253 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3255 | $as_echo "yes" >&6; } |
---|
3256 | SET_MAKE= |
---|
3257 | else |
---|
3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3259 | $as_echo "no" >&6; } |
---|
3260 | SET_MAKE="MAKE=${MAKE-make}" |
---|
3261 | fi |
---|
3262 | |
---|
3263 | rm -rf .tst 2>/dev/null |
---|
3264 | mkdir .tst 2>/dev/null |
---|
3265 | if test -d .tst; then |
---|
3266 | am__leading_dot=. |
---|
3267 | else |
---|
3268 | am__leading_dot=_ |
---|
3269 | fi |
---|
3270 | rmdir .tst 2>/dev/null |
---|
3271 | |
---|
3272 | # Check whether --enable-silent-rules was given. |
---|
3273 | if test "${enable_silent_rules+set}" = set; then : |
---|
3274 | enableval=$enable_silent_rules; |
---|
3275 | fi |
---|
3276 | |
---|
3277 | case $enable_silent_rules in # ((( |
---|
3278 | yes) AM_DEFAULT_VERBOSITY=0;; |
---|
3279 | no) AM_DEFAULT_VERBOSITY=1;; |
---|
3280 | *) AM_DEFAULT_VERBOSITY=1;; |
---|
3281 | esac |
---|
3282 | am_make=${MAKE-make} |
---|
3283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
---|
3284 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
---|
3285 | if ${am_cv_make_support_nested_variables+:} false; then : |
---|
3286 | $as_echo_n "(cached) " >&6 |
---|
3287 | else |
---|
3288 | if $as_echo 'TRUE=$(BAR$(V)) |
---|
3289 | BAR0=false |
---|
3290 | BAR1=true |
---|
3291 | V=1 |
---|
3292 | am__doit: |
---|
3293 | @$(TRUE) |
---|
3294 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
---|
3295 | am_cv_make_support_nested_variables=yes |
---|
3296 | else |
---|
3297 | am_cv_make_support_nested_variables=no |
---|
3298 | fi |
---|
3299 | fi |
---|
3300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
---|
3301 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
---|
3302 | if test $am_cv_make_support_nested_variables = yes; then |
---|
3303 | AM_V='$(V)' |
---|
3304 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
---|
3305 | else |
---|
3306 | AM_V=$AM_DEFAULT_VERBOSITY |
---|
3307 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
---|
3308 | fi |
---|
3309 | AM_BACKSLASH='\' |
---|
3310 | |
---|
3311 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
---|
3312 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
---|
3313 | # is not polluted with repeated "-I." |
---|
3314 | am__isrc=' -I$(srcdir)' |
---|
3315 | # test to see if srcdir already configured |
---|
3316 | if test -f $srcdir/config.status; then |
---|
3317 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
---|
3318 | fi |
---|
3319 | fi |
---|
3320 | |
---|
3321 | # test whether we have cygpath |
---|
3322 | if test -z "$CYGPATH_W"; then |
---|
3323 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
3324 | CYGPATH_W='cygpath -w' |
---|
3325 | else |
---|
3326 | CYGPATH_W=echo |
---|
3327 | fi |
---|
3328 | fi |
---|
3329 | |
---|
3330 | |
---|
3331 | # Define the identity of the package. |
---|
3332 | PACKAGE='adolc' |
---|
3333 | VERSION='2.5.3-trunk' |
---|
3334 | |
---|
3335 | |
---|
3336 | cat >>confdefs.h <<_ACEOF |
---|
3337 | #define PACKAGE "$PACKAGE" |
---|
3338 | _ACEOF |
---|
3339 | |
---|
3340 | |
---|
3341 | cat >>confdefs.h <<_ACEOF |
---|
3342 | #define VERSION "$VERSION" |
---|
3343 | _ACEOF |
---|
3344 | |
---|
3345 | # Some tools Automake needs. |
---|
3346 | |
---|
3347 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
3348 | |
---|
3349 | |
---|
3350 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
3351 | |
---|
3352 | |
---|
3353 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
3354 | |
---|
3355 | |
---|
3356 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
3357 | |
---|
3358 | |
---|
3359 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
3360 | |
---|
3361 | # For better backward compatibility. To be removed once Automake 1.9.x |
---|
3362 | # dies out for good. For more background, see: |
---|
3363 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
---|
3364 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
---|
3365 | mkdir_p='$(MKDIR_P)' |
---|
3366 | |
---|
3367 | # We need awk for the "check" target. The system "awk" is bad on |
---|
3368 | # some platforms. |
---|
3369 | # Always define AMTAR for backward compatibility. Yes, it's still used |
---|
3370 | # in the wild :-( We should find a proper way to deprecate it ... |
---|
3371 | AMTAR='$${TAR-tar}' |
---|
3372 | |
---|
3373 | |
---|
3374 | # We'll loop over all known methods to create a tar archive until one works. |
---|
3375 | _am_tools='gnutar pax cpio none' |
---|
3376 | |
---|
3377 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
---|
3378 | |
---|
3379 | |
---|
3380 | |
---|
3381 | |
---|
3382 | |
---|
3383 | |
---|
3384 | |
---|
3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
3386 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
---|
3387 | # Check whether --enable-maintainer-mode was given. |
---|
3388 | if test "${enable_maintainer_mode+set}" = set; then : |
---|
3389 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
---|
3390 | else |
---|
3391 | USE_MAINTAINER_MODE=no |
---|
3392 | fi |
---|
3393 | |
---|
3394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
---|
3395 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
---|
3396 | if test $USE_MAINTAINER_MODE = yes; then |
---|
3397 | MAINTAINER_MODE_TRUE= |
---|
3398 | MAINTAINER_MODE_FALSE='#' |
---|
3399 | else |
---|
3400 | MAINTAINER_MODE_TRUE='#' |
---|
3401 | MAINTAINER_MODE_FALSE= |
---|
3402 | fi |
---|
3403 | |
---|
3404 | MAINT=$MAINTAINER_MODE_TRUE |
---|
3405 | |
---|
3406 | |
---|
3407 | # Check whether --enable-silent-rules was given. |
---|
3408 | if test "${enable_silent_rules+set}" = set; then : |
---|
3409 | enableval=$enable_silent_rules; |
---|
3410 | fi |
---|
3411 | |
---|
3412 | case $enable_silent_rules in # ((( |
---|
3413 | yes) AM_DEFAULT_VERBOSITY=0;; |
---|
3414 | no) AM_DEFAULT_VERBOSITY=1;; |
---|
3415 | *) AM_DEFAULT_VERBOSITY=0;; |
---|
3416 | esac |
---|
3417 | am_make=${MAKE-make} |
---|
3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
---|
3419 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
---|
3420 | if ${am_cv_make_support_nested_variables+:} false; then : |
---|
3421 | $as_echo_n "(cached) " >&6 |
---|
3422 | else |
---|
3423 | if $as_echo 'TRUE=$(BAR$(V)) |
---|
3424 | BAR0=false |
---|
3425 | BAR1=true |
---|
3426 | V=1 |
---|
3427 | am__doit: |
---|
3428 | @$(TRUE) |
---|
3429 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
---|
3430 | am_cv_make_support_nested_variables=yes |
---|
3431 | else |
---|
3432 | am_cv_make_support_nested_variables=no |
---|
3433 | fi |
---|
3434 | fi |
---|
3435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
---|
3436 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
---|
3437 | if test $am_cv_make_support_nested_variables = yes; then |
---|
3438 | AM_V='$(V)' |
---|
3439 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
---|
3440 | else |
---|
3441 | AM_V=$AM_DEFAULT_VERBOSITY |
---|
3442 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
---|
3443 | fi |
---|
3444 | AM_BACKSLASH='\' |
---|
3445 | |
---|
3446 | |
---|
3447 | |
---|
3448 | adolclib=adolc |
---|
3449 | |
---|
3450 | if test "x$CFLAGS" == x ; then |
---|
3451 | ac_shell_cflags="not_set" |
---|
3452 | else |
---|
3453 | ac_shell_cflags="$CFLAGS" |
---|
3454 | fi |
---|
3455 | if test "x$CXXFLAGS" == x ; then |
---|
3456 | ac_shell_cxxflags="not_set" |
---|
3457 | else |
---|
3458 | ac_shell_cxxflags="$CXXFLAGS" |
---|
3459 | fi |
---|
3460 | libdir_set_on_cmd="no" |
---|
3461 | for i in $config_flags ; do |
---|
3462 | case $i in |
---|
3463 | -libdir | --libdir | --libdi | --libd | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
3464 | libdir_set_on_cmd="yes" |
---|
3465 | break |
---|
3466 | ;; |
---|
3467 | esac |
---|
3468 | done |
---|
3469 | |
---|
3470 | if test "x${host_os#darwin}" != "x${host_os}"; then |
---|
3471 | DARWIN_TRUE= |
---|
3472 | DARWIN_FALSE='#' |
---|
3473 | else |
---|
3474 | DARWIN_TRUE='#' |
---|
3475 | DARWIN_FALSE= |
---|
3476 | fi |
---|
3477 | |
---|
3478 | |
---|
3479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build ADOL-C with adjoinable MPI (AMPI) support" >&5 |
---|
3480 | $as_echo_n "checking whether to build ADOL-C with adjoinable MPI (AMPI) support... " >&6; } |
---|
3481 | # Check whether --enable-ampi was given. |
---|
3482 | if test "${enable_ampi+set}" = set; then : |
---|
3483 | enableval=$enable_ampi; adolc_ampi_support=$enableval |
---|
3484 | else |
---|
3485 | adolc_ampi_support=no |
---|
3486 | fi |
---|
3487 | |
---|
3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $adolc_ampi_support" >&5 |
---|
3489 | $as_echo "$adolc_ampi_support" >&6; } |
---|
3490 | if test x${adolc_ampi_support} = xyes; then |
---|
3491 | BUILD_ADOLC_AMPI_SUPPORT_TRUE= |
---|
3492 | BUILD_ADOLC_AMPI_SUPPORT_FALSE='#' |
---|
3493 | else |
---|
3494 | BUILD_ADOLC_AMPI_SUPPORT_TRUE='#' |
---|
3495 | BUILD_ADOLC_AMPI_SUPPORT_FALSE= |
---|
3496 | fi |
---|
3497 | |
---|
3498 | if test x"${adolc_ampi_support}" = xyes ; then |
---|
3499 | |
---|
3500 | $as_echo "#define ADOLC_AMPI_SUPPORT 1" >>confdefs.h |
---|
3501 | |
---|
3502 | fi |
---|
3503 | |
---|
3504 | |
---|
3505 | # checks for programs |
---|
3506 | ac_ext=cpp |
---|
3507 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3508 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3509 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3510 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3511 | if test -z "$CXX"; then |
---|
3512 | if test -n "$CCC"; then |
---|
3513 | CXX=$CCC |
---|
3514 | else |
---|
3515 | if test -n "$ac_tool_prefix"; then |
---|
3516 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3517 | do |
---|
3518 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3519 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3521 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3522 | if ${ac_cv_prog_CXX+:} false; then : |
---|
3523 | $as_echo_n "(cached) " >&6 |
---|
3524 | else |
---|
3525 | if test -n "$CXX"; then |
---|
3526 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3527 | else |
---|
3528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3529 | for as_dir in $PATH |
---|
3530 | do |
---|
3531 | IFS=$as_save_IFS |
---|
3532 | test -z "$as_dir" && as_dir=. |
---|
3533 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3534 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3535 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3536 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3537 | break 2 |
---|
3538 | fi |
---|
3539 | done |
---|
3540 | done |
---|
3541 | IFS=$as_save_IFS |
---|
3542 | |
---|
3543 | fi |
---|
3544 | fi |
---|
3545 | CXX=$ac_cv_prog_CXX |
---|
3546 | if test -n "$CXX"; then |
---|
3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
3548 | $as_echo "$CXX" >&6; } |
---|
3549 | else |
---|
3550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3551 | $as_echo "no" >&6; } |
---|
3552 | fi |
---|
3553 | |
---|
3554 | |
---|
3555 | test -n "$CXX" && break |
---|
3556 | done |
---|
3557 | fi |
---|
3558 | if test -z "$CXX"; then |
---|
3559 | ac_ct_CXX=$CXX |
---|
3560 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3561 | do |
---|
3562 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3563 | set dummy $ac_prog; ac_word=$2 |
---|
3564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3565 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3566 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
3567 | $as_echo_n "(cached) " >&6 |
---|
3568 | else |
---|
3569 | if test -n "$ac_ct_CXX"; then |
---|
3570 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3571 | else |
---|
3572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3573 | for as_dir in $PATH |
---|
3574 | do |
---|
3575 | IFS=$as_save_IFS |
---|
3576 | test -z "$as_dir" && as_dir=. |
---|
3577 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3578 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3579 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3580 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3581 | break 2 |
---|
3582 | fi |
---|
3583 | done |
---|
3584 | done |
---|
3585 | IFS=$as_save_IFS |
---|
3586 | |
---|
3587 | fi |
---|
3588 | fi |
---|
3589 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3590 | if test -n "$ac_ct_CXX"; then |
---|
3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
3592 | $as_echo "$ac_ct_CXX" >&6; } |
---|
3593 | else |
---|
3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3595 | $as_echo "no" >&6; } |
---|
3596 | fi |
---|
3597 | |
---|
3598 | |
---|
3599 | test -n "$ac_ct_CXX" && break |
---|
3600 | done |
---|
3601 | |
---|
3602 | if test "x$ac_ct_CXX" = x; then |
---|
3603 | CXX="g++" |
---|
3604 | else |
---|
3605 | case $cross_compiling:$ac_tool_warned in |
---|
3606 | yes:) |
---|
3607 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3608 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3609 | ac_tool_warned=yes ;; |
---|
3610 | esac |
---|
3611 | CXX=$ac_ct_CXX |
---|
3612 | fi |
---|
3613 | fi |
---|
3614 | |
---|
3615 | fi |
---|
3616 | fi |
---|
3617 | # Provide some information about the compiler. |
---|
3618 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
3619 | set X $ac_compile |
---|
3620 | ac_compiler=$2 |
---|
3621 | for ac_option in --version -v -V -qversion; do |
---|
3622 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3623 | case "(($ac_try" in |
---|
3624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3625 | *) ac_try_echo=$ac_try;; |
---|
3626 | esac |
---|
3627 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3628 | $as_echo "$ac_try_echo"; } >&5 |
---|
3629 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3630 | ac_status=$? |
---|
3631 | if test -s conftest.err; then |
---|
3632 | sed '10a\ |
---|
3633 | ... rest of stderr output deleted ... |
---|
3634 | 10q' conftest.err >conftest.er1 |
---|
3635 | cat conftest.er1 >&5 |
---|
3636 | fi |
---|
3637 | rm -f conftest.er1 conftest.err |
---|
3638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3639 | test $ac_status = 0; } |
---|
3640 | done |
---|
3641 | |
---|
3642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3643 | /* end confdefs.h. */ |
---|
3644 | |
---|
3645 | int |
---|
3646 | main () |
---|
3647 | { |
---|
3648 | |
---|
3649 | ; |
---|
3650 | return 0; |
---|
3651 | } |
---|
3652 | _ACEOF |
---|
3653 | ac_clean_files_save=$ac_clean_files |
---|
3654 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
3655 | # Try to create an executable without -o first, disregard a.out. |
---|
3656 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3657 | # of exeext. |
---|
3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
---|
3659 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
---|
3660 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3661 | |
---|
3662 | # The possible output files: |
---|
3663 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
3664 | |
---|
3665 | ac_rmfiles= |
---|
3666 | for ac_file in $ac_files |
---|
3667 | do |
---|
3668 | case $ac_file in |
---|
3669 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3670 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3671 | esac |
---|
3672 | done |
---|
3673 | rm -f $ac_rmfiles |
---|
3674 | |
---|
3675 | if { { ac_try="$ac_link_default" |
---|
3676 | case "(($ac_try" in |
---|
3677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3678 | *) ac_try_echo=$ac_try;; |
---|
3679 | esac |
---|
3680 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3681 | $as_echo "$ac_try_echo"; } >&5 |
---|
3682 | (eval "$ac_link_default") 2>&5 |
---|
3683 | ac_status=$? |
---|
3684 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3685 | test $ac_status = 0; }; then : |
---|
3686 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3687 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3688 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3689 | # so that the user can short-circuit this test for compilers unknown to |
---|
3690 | # Autoconf. |
---|
3691 | for ac_file in $ac_files '' |
---|
3692 | do |
---|
3693 | test -f "$ac_file" || continue |
---|
3694 | case $ac_file in |
---|
3695 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
3696 | ;; |
---|
3697 | [ab].out ) |
---|
3698 | # We found the default executable, but exeext='' is most |
---|
3699 | # certainly right. |
---|
3700 | break;; |
---|
3701 | *.* ) |
---|
3702 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3703 | then :; else |
---|
3704 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3705 | fi |
---|
3706 | # We set ac_cv_exeext here because the later test for it is not |
---|
3707 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3708 | # argument, so we may need to know it at that point already. |
---|
3709 | # Even if this section looks crufty: it has the advantage of |
---|
3710 | # actually working. |
---|
3711 | break;; |
---|
3712 | * ) |
---|
3713 | break;; |
---|
3714 | esac |
---|
3715 | done |
---|
3716 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3717 | |
---|
3718 | else |
---|
3719 | ac_file='' |
---|
3720 | fi |
---|
3721 | if test -z "$ac_file"; then : |
---|
3722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3723 | $as_echo "no" >&6; } |
---|
3724 | $as_echo "$as_me: failed program was:" >&5 |
---|
3725 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3726 | |
---|
3727 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3728 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3729 | as_fn_error 77 "C++ compiler cannot create executables |
---|
3730 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3731 | else |
---|
3732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3733 | $as_echo "yes" >&6; } |
---|
3734 | fi |
---|
3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
---|
3736 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
---|
3737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
3738 | $as_echo "$ac_file" >&6; } |
---|
3739 | ac_exeext=$ac_cv_exeext |
---|
3740 | |
---|
3741 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
3742 | ac_clean_files=$ac_clean_files_save |
---|
3743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
3744 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
3745 | if { { ac_try="$ac_link" |
---|
3746 | case "(($ac_try" in |
---|
3747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3748 | *) ac_try_echo=$ac_try;; |
---|
3749 | esac |
---|
3750 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3751 | $as_echo "$ac_try_echo"; } >&5 |
---|
3752 | (eval "$ac_link") 2>&5 |
---|
3753 | ac_status=$? |
---|
3754 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3755 | test $ac_status = 0; }; then : |
---|
3756 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3757 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3758 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3759 | # `rm'. |
---|
3760 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3761 | test -f "$ac_file" || continue |
---|
3762 | case $ac_file in |
---|
3763 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3764 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3765 | break;; |
---|
3766 | * ) break;; |
---|
3767 | esac |
---|
3768 | done |
---|
3769 | else |
---|
3770 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3771 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3772 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
3773 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3774 | fi |
---|
3775 | rm -f conftest conftest$ac_cv_exeext |
---|
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
3777 | $as_echo "$ac_cv_exeext" >&6; } |
---|
3778 | |
---|
3779 | rm -f conftest.$ac_ext |
---|
3780 | EXEEXT=$ac_cv_exeext |
---|
3781 | ac_exeext=$EXEEXT |
---|
3782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3783 | /* end confdefs.h. */ |
---|
3784 | #include <stdio.h> |
---|
3785 | int |
---|
3786 | main () |
---|
3787 | { |
---|
3788 | FILE *f = fopen ("conftest.out", "w"); |
---|
3789 | return ferror (f) || fclose (f) != 0; |
---|
3790 | |
---|
3791 | ; |
---|
3792 | return 0; |
---|
3793 | } |
---|
3794 | _ACEOF |
---|
3795 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3796 | # Check that the compiler produces executables we can run. If not, either |
---|
3797 | # the compiler is broken, or we cross compile. |
---|
3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3799 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
3800 | if test "$cross_compiling" != yes; then |
---|
3801 | { { ac_try="$ac_link" |
---|
3802 | case "(($ac_try" in |
---|
3803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3804 | *) ac_try_echo=$ac_try;; |
---|
3805 | esac |
---|
3806 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3807 | $as_echo "$ac_try_echo"; } >&5 |
---|
3808 | (eval "$ac_link") 2>&5 |
---|
3809 | ac_status=$? |
---|
3810 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3811 | test $ac_status = 0; } |
---|
3812 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3813 | { { case "(($ac_try" in |
---|
3814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3815 | *) ac_try_echo=$ac_try;; |
---|
3816 | esac |
---|
3817 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3818 | $as_echo "$ac_try_echo"; } >&5 |
---|
3819 | (eval "$ac_try") 2>&5 |
---|
3820 | ac_status=$? |
---|
3821 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3822 | test $ac_status = 0; }; }; then |
---|
3823 | cross_compiling=no |
---|
3824 | else |
---|
3825 | if test "$cross_compiling" = maybe; then |
---|
3826 | cross_compiling=yes |
---|
3827 | else |
---|
3828 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3829 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3830 | as_fn_error $? "cannot run C++ compiled programs. |
---|
3831 | If you meant to cross compile, use \`--host'. |
---|
3832 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3833 | fi |
---|
3834 | fi |
---|
3835 | fi |
---|
3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3837 | $as_echo "$cross_compiling" >&6; } |
---|
3838 | |
---|
3839 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3840 | ac_clean_files=$ac_clean_files_save |
---|
3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3842 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3843 | if ${ac_cv_objext+:} false; then : |
---|
3844 | $as_echo_n "(cached) " >&6 |
---|
3845 | else |
---|
3846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3847 | /* end confdefs.h. */ |
---|
3848 | |
---|
3849 | int |
---|
3850 | main () |
---|
3851 | { |
---|
3852 | |
---|
3853 | ; |
---|
3854 | return 0; |
---|
3855 | } |
---|
3856 | _ACEOF |
---|
3857 | rm -f conftest.o conftest.obj |
---|
3858 | if { { ac_try="$ac_compile" |
---|
3859 | case "(($ac_try" in |
---|
3860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3861 | *) ac_try_echo=$ac_try;; |
---|
3862 | esac |
---|
3863 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3864 | $as_echo "$ac_try_echo"; } >&5 |
---|
3865 | (eval "$ac_compile") 2>&5 |
---|
3866 | ac_status=$? |
---|
3867 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3868 | test $ac_status = 0; }; then : |
---|
3869 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3870 | test -f "$ac_file" || continue; |
---|
3871 | case $ac_file in |
---|
3872 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3873 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3874 | break;; |
---|
3875 | esac |
---|
3876 | done |
---|
3877 | else |
---|
3878 | $as_echo "$as_me: failed program was:" >&5 |
---|
3879 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3880 | |
---|
3881 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3882 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3883 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3884 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3885 | fi |
---|
3886 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3887 | fi |
---|
3888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3889 | $as_echo "$ac_cv_objext" >&6; } |
---|
3890 | OBJEXT=$ac_cv_objext |
---|
3891 | ac_objext=$OBJEXT |
---|
3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
3893 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
3894 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
3895 | $as_echo_n "(cached) " >&6 |
---|
3896 | else |
---|
3897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3898 | /* end confdefs.h. */ |
---|
3899 | |
---|
3900 | int |
---|
3901 | main () |
---|
3902 | { |
---|
3903 | #ifndef __GNUC__ |
---|
3904 | choke me |
---|
3905 | #endif |
---|
3906 | |
---|
3907 | ; |
---|
3908 | return 0; |
---|
3909 | } |
---|
3910 | _ACEOF |
---|
3911 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3912 | ac_compiler_gnu=yes |
---|
3913 | else |
---|
3914 | ac_compiler_gnu=no |
---|
3915 | fi |
---|
3916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3917 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3918 | |
---|
3919 | fi |
---|
3920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3921 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3922 | if test $ac_compiler_gnu = yes; then |
---|
3923 | GXX=yes |
---|
3924 | else |
---|
3925 | GXX= |
---|
3926 | fi |
---|
3927 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3928 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
3930 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
3931 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
3932 | $as_echo_n "(cached) " >&6 |
---|
3933 | else |
---|
3934 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3935 | ac_cxx_werror_flag=yes |
---|
3936 | ac_cv_prog_cxx_g=no |
---|
3937 | CXXFLAGS="-g" |
---|
3938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3939 | /* end confdefs.h. */ |
---|
3940 | |
---|
3941 | int |
---|
3942 | main () |
---|
3943 | { |
---|
3944 | |
---|
3945 | ; |
---|
3946 | return 0; |
---|
3947 | } |
---|
3948 | _ACEOF |
---|
3949 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3950 | ac_cv_prog_cxx_g=yes |
---|
3951 | else |
---|
3952 | CXXFLAGS="" |
---|
3953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3954 | /* end confdefs.h. */ |
---|
3955 | |
---|
3956 | int |
---|
3957 | main () |
---|
3958 | { |
---|
3959 | |
---|
3960 | ; |
---|
3961 | return 0; |
---|
3962 | } |
---|
3963 | _ACEOF |
---|
3964 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3965 | |
---|
3966 | else |
---|
3967 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3968 | CXXFLAGS="-g" |
---|
3969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3970 | /* end confdefs.h. */ |
---|
3971 | |
---|
3972 | int |
---|
3973 | main () |
---|
3974 | { |
---|
3975 | |
---|
3976 | ; |
---|
3977 | return 0; |
---|
3978 | } |
---|
3979 | _ACEOF |
---|
3980 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3981 | ac_cv_prog_cxx_g=yes |
---|
3982 | fi |
---|
3983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3984 | fi |
---|
3985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3986 | fi |
---|
3987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3988 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3989 | fi |
---|
3990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
3991 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
3992 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3993 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3994 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3995 | if test "$GXX" = yes; then |
---|
3996 | CXXFLAGS="-g -O2" |
---|
3997 | else |
---|
3998 | CXXFLAGS="-g" |
---|
3999 | fi |
---|
4000 | else |
---|
4001 | if test "$GXX" = yes; then |
---|
4002 | CXXFLAGS="-O2" |
---|
4003 | else |
---|
4004 | CXXFLAGS= |
---|
4005 | fi |
---|
4006 | fi |
---|
4007 | ac_ext=c |
---|
4008 | ac_cpp='$CPP $CPPFLAGS' |
---|
4009 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4010 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4011 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4012 | DEPDIR="${am__leading_dot}deps" |
---|
4013 | |
---|
4014 | ac_config_commands="$ac_config_commands depfiles" |
---|
4015 | |
---|
4016 | |
---|
4017 | am_make=${MAKE-make} |
---|
4018 | cat > confinc << 'END' |
---|
4019 | am__doit: |
---|
4020 | @echo this is the am__doit target |
---|
4021 | .PHONY: am__doit |
---|
4022 | END |
---|
4023 | # If we don't find an include directive, just comment out the code. |
---|
4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
---|
4025 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
---|
4026 | am__include="#" |
---|
4027 | am__quote= |
---|
4028 | _am_result=none |
---|
4029 | # First try GNU make style include. |
---|
4030 | echo "include confinc" > confmf |
---|
4031 | # Ignore all kinds of additional output from 'make'. |
---|
4032 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
4033 | *the\ am__doit\ target*) |
---|
4034 | am__include=include |
---|
4035 | am__quote= |
---|
4036 | _am_result=GNU |
---|
4037 | ;; |
---|
4038 | esac |
---|
4039 | # Now try BSD make style include. |
---|
4040 | if test "$am__include" = "#"; then |
---|
4041 | echo '.include "confinc"' > confmf |
---|
4042 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
4043 | *the\ am__doit\ target*) |
---|
4044 | am__include=.include |
---|
4045 | am__quote="\"" |
---|
4046 | _am_result=BSD |
---|
4047 | ;; |
---|
4048 | esac |
---|
4049 | fi |
---|
4050 | |
---|
4051 | |
---|
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
---|
4053 | $as_echo "$_am_result" >&6; } |
---|
4054 | rm -f confinc confmf |
---|
4055 | |
---|
4056 | # Check whether --enable-dependency-tracking was given. |
---|
4057 | if test "${enable_dependency_tracking+set}" = set; then : |
---|
4058 | enableval=$enable_dependency_tracking; |
---|
4059 | fi |
---|
4060 | |
---|
4061 | if test "x$enable_dependency_tracking" != xno; then |
---|
4062 | am_depcomp="$ac_aux_dir/depcomp" |
---|
4063 | AMDEPBACKSLASH='\' |
---|
4064 | am__nodep='_no' |
---|
4065 | fi |
---|
4066 | if test "x$enable_dependency_tracking" != xno; then |
---|
4067 | AMDEP_TRUE= |
---|
4068 | AMDEP_FALSE='#' |
---|
4069 | else |
---|
4070 | AMDEP_TRUE='#' |
---|
4071 | AMDEP_FALSE= |
---|
4072 | fi |
---|
4073 | |
---|
4074 | |
---|
4075 | |
---|
4076 | depcc="$CXX" am_compiler_list= |
---|
4077 | |
---|
4078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4079 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4080 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
---|
4081 | $as_echo_n "(cached) " >&6 |
---|
4082 | else |
---|
4083 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4084 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4085 | # making bogus files that we don't know about and never remove. For |
---|
4086 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4087 | # making a dummy file named 'D' -- because '-MD' means "put the output |
---|
4088 | # in D". |
---|
4089 | rm -rf conftest.dir |
---|
4090 | mkdir conftest.dir |
---|
4091 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4092 | # using a relative directory. |
---|
4093 | cp "$am_depcomp" conftest.dir |
---|
4094 | cd conftest.dir |
---|
4095 | # We will build objects and dependencies in a subdirectory because |
---|
4096 | # it helps to detect inapplicable dependency modes. For instance |
---|
4097 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4098 | # side effect of compilation, but ICC will put the dependencies in |
---|
4099 | # the current directory while Tru64 will put them in the object |
---|
4100 | # directory. |
---|
4101 | mkdir sub |
---|
4102 | |
---|
4103 | am_cv_CXX_dependencies_compiler_type=none |
---|
4104 | if test "$am_compiler_list" = ""; then |
---|
4105 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4106 | fi |
---|
4107 | am__universal=false |
---|
4108 | case " $depcc " in #( |
---|
4109 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
4110 | esac |
---|
4111 | |
---|
4112 | for depmode in $am_compiler_list; do |
---|
4113 | # Setup a source with many dependencies, because some compilers |
---|
4114 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4115 | # we should not choose a depcomp mode which is confused by this. |
---|
4116 | # |
---|
4117 | # We need to recreate these files for each test, as the compiler may |
---|
4118 | # overwrite some of them when testing with obscure command lines. |
---|
4119 | # This happens at least with the AIX C compiler. |
---|
4120 | : > sub/conftest.c |
---|
4121 | for i in 1 2 3 4 5 6; do |
---|
4122 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4123 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
---|
4124 | # Solaris 10 /bin/sh. |
---|
4125 | echo '/* dummy */' > sub/conftst$i.h |
---|
4126 | done |
---|
4127 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4128 | |
---|
4129 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
---|
4130 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4131 | # handle '-M -o', and we need to detect this. Also, some Intel |
---|
4132 | # versions had trouble with output in subdirs. |
---|
4133 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4134 | am__minus_obj="-o $am__obj" |
---|
4135 | case $depmode in |
---|
4136 | gcc) |
---|
4137 | # This depmode causes a compiler race in universal mode. |
---|
4138 | test "$am__universal" = false || continue |
---|
4139 | ;; |
---|
4140 | nosideeffect) |
---|
4141 | # After this tag, mechanisms are not by side-effect, so they'll |
---|
4142 | # only be used when explicitly requested. |
---|
4143 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4144 | continue |
---|
4145 | else |
---|
4146 | break |
---|
4147 | fi |
---|
4148 | ;; |
---|
4149 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4150 | # This compiler won't grok '-c -o', but also, the minuso test has |
---|
4151 | # not run yet. These depmodes are late enough in the game, and |
---|
4152 | # so weak that their functioning should not be impacted. |
---|
4153 | am__obj=conftest.${OBJEXT-o} |
---|
4154 | am__minus_obj= |
---|
4155 | ;; |
---|
4156 | none) break ;; |
---|
4157 | esac |
---|
4158 | if depmode=$depmode \ |
---|
4159 | source=sub/conftest.c object=$am__obj \ |
---|
4160 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4161 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4162 | >/dev/null 2>conftest.err && |
---|
4163 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4164 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4165 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4166 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4167 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4168 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4169 | # that says an option was ignored or not supported. |
---|
4170 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4171 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4172 | # The diagnosis changed in icc 8.0: |
---|
4173 | # icc: Command line remark: option '-MP' not supported |
---|
4174 | if (grep 'ignoring option' conftest.err || |
---|
4175 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4176 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
4177 | break |
---|
4178 | fi |
---|
4179 | fi |
---|
4180 | done |
---|
4181 | |
---|
4182 | cd .. |
---|
4183 | rm -rf conftest.dir |
---|
4184 | else |
---|
4185 | am_cv_CXX_dependencies_compiler_type=none |
---|
4186 | fi |
---|
4187 | |
---|
4188 | fi |
---|
4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
4190 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
---|
4191 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
4192 | |
---|
4193 | if |
---|
4194 | test "x$enable_dependency_tracking" != xno \ |
---|
4195 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
4196 | am__fastdepCXX_TRUE= |
---|
4197 | am__fastdepCXX_FALSE='#' |
---|
4198 | else |
---|
4199 | am__fastdepCXX_TRUE='#' |
---|
4200 | am__fastdepCXX_FALSE= |
---|
4201 | fi |
---|
4202 | |
---|
4203 | |
---|
4204 | |
---|
4205 | ax_cxx_compile_cxx11_required=truednl |
---|
4206 | ac_ext=cpp |
---|
4207 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4208 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4209 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4210 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
4211 | ac_success=no |
---|
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 |
---|
4213 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } |
---|
4214 | if ${ax_cv_cxx_compile_cxx11+:} false; then : |
---|
4215 | $as_echo_n "(cached) " >&6 |
---|
4216 | else |
---|
4217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4218 | /* end confdefs.h. */ |
---|
4219 | |
---|
4220 | template <typename T> |
---|
4221 | struct check |
---|
4222 | { |
---|
4223 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
---|
4224 | }; |
---|
4225 | |
---|
4226 | typedef check<check<bool>> right_angle_brackets; |
---|
4227 | |
---|
4228 | int a; |
---|
4229 | decltype(a) b; |
---|
4230 | |
---|
4231 | typedef check<int> check_type; |
---|
4232 | check_type c; |
---|
4233 | check_type&& cr = static_cast<check_type&&>(c); |
---|
4234 | |
---|
4235 | auto d = a; |
---|
4236 | |
---|
4237 | _ACEOF |
---|
4238 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
4239 | ax_cv_cxx_compile_cxx11=yes |
---|
4240 | else |
---|
4241 | ax_cv_cxx_compile_cxx11=no |
---|
4242 | fi |
---|
4243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4244 | fi |
---|
4245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 |
---|
4246 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } |
---|
4247 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then |
---|
4248 | ac_success=yes |
---|
4249 | fi |
---|
4250 | |
---|
4251 | |
---|
4252 | |
---|
4253 | if test x$ac_success = xno; then |
---|
4254 | for switch in -std=c++11 -std=c++0x; do |
---|
4255 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` |
---|
4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 |
---|
4257 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } |
---|
4258 | if eval \${$cachevar+:} false; then : |
---|
4259 | $as_echo_n "(cached) " >&6 |
---|
4260 | else |
---|
4261 | ac_save_CXXFLAGS="$CXXFLAGS" |
---|
4262 | CXXFLAGS="$CXXFLAGS $switch" |
---|
4263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4264 | /* end confdefs.h. */ |
---|
4265 | |
---|
4266 | template <typename T> |
---|
4267 | struct check |
---|
4268 | { |
---|
4269 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
---|
4270 | }; |
---|
4271 | |
---|
4272 | typedef check<check<bool>> right_angle_brackets; |
---|
4273 | |
---|
4274 | int a; |
---|
4275 | decltype(a) b; |
---|
4276 | |
---|
4277 | typedef check<int> check_type; |
---|
4278 | check_type c; |
---|
4279 | check_type&& cr = static_cast<check_type&&>(c); |
---|
4280 | |
---|
4281 | auto d = a; |
---|
4282 | |
---|
4283 | _ACEOF |
---|
4284 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
4285 | eval $cachevar=yes |
---|
4286 | else |
---|
4287 | eval $cachevar=no |
---|
4288 | fi |
---|
4289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4290 | CXXFLAGS="$ac_save_CXXFLAGS" |
---|
4291 | fi |
---|
4292 | eval ac_res=\$$cachevar |
---|
4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
4294 | $as_echo "$ac_res" >&6; } |
---|
4295 | if eval test x\$$cachevar = xyes; then |
---|
4296 | CXXFLAGS="$CXXFLAGS $switch" |
---|
4297 | ac_success=yes |
---|
4298 | break |
---|
4299 | fi |
---|
4300 | done |
---|
4301 | fi |
---|
4302 | ac_ext=c |
---|
4303 | ac_cpp='$CPP $CPPFLAGS' |
---|
4304 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4305 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4306 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4307 | |
---|
4308 | if test x$ax_cxx_compile_cxx11_required = xtrue; then |
---|
4309 | if test x$ac_success = xno; then |
---|
4310 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 |
---|
4311 | fi |
---|
4312 | else |
---|
4313 | if test x$ac_success = xno; then |
---|
4314 | HAVE_CXX11=0 |
---|
4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 |
---|
4316 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} |
---|
4317 | else |
---|
4318 | HAVE_CXX11=1 |
---|
4319 | |
---|
4320 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h |
---|
4321 | |
---|
4322 | fi |
---|
4323 | |
---|
4324 | |
---|
4325 | fi |
---|
4326 | |
---|
4327 | ac_ext=c |
---|
4328 | ac_cpp='$CPP $CPPFLAGS' |
---|
4329 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4330 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4331 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4332 | if test -n "$ac_tool_prefix"; then |
---|
4333 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
4334 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
4335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4336 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4337 | if ${ac_cv_prog_CC+:} false; then : |
---|
4338 | $as_echo_n "(cached) " >&6 |
---|
4339 | else |
---|
4340 | if test -n "$CC"; then |
---|
4341 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4342 | else |
---|
4343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4344 | for as_dir in $PATH |
---|
4345 | do |
---|
4346 | IFS=$as_save_IFS |
---|
4347 | test -z "$as_dir" && as_dir=. |
---|
4348 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4349 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4350 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
4351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4352 | break 2 |
---|
4353 | fi |
---|
4354 | done |
---|
4355 | done |
---|
4356 | IFS=$as_save_IFS |
---|
4357 | |
---|
4358 | fi |
---|
4359 | fi |
---|
4360 | CC=$ac_cv_prog_CC |
---|
4361 | if test -n "$CC"; then |
---|
4362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4363 | $as_echo "$CC" >&6; } |
---|
4364 | else |
---|
4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4366 | $as_echo "no" >&6; } |
---|
4367 | fi |
---|
4368 | |
---|
4369 | |
---|
4370 | fi |
---|
4371 | if test -z "$ac_cv_prog_CC"; then |
---|
4372 | ac_ct_CC=$CC |
---|
4373 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
4374 | set dummy gcc; ac_word=$2 |
---|
4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4376 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4377 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
4378 | $as_echo_n "(cached) " >&6 |
---|
4379 | else |
---|
4380 | if test -n "$ac_ct_CC"; then |
---|
4381 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
4382 | else |
---|
4383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4384 | for as_dir in $PATH |
---|
4385 | do |
---|
4386 | IFS=$as_save_IFS |
---|
4387 | test -z "$as_dir" && as_dir=. |
---|
4388 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4389 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4390 | ac_cv_prog_ac_ct_CC="gcc" |
---|
4391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4392 | break 2 |
---|
4393 | fi |
---|
4394 | done |
---|
4395 | done |
---|
4396 | IFS=$as_save_IFS |
---|
4397 | |
---|
4398 | fi |
---|
4399 | fi |
---|
4400 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
4401 | if test -n "$ac_ct_CC"; then |
---|
4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
4403 | $as_echo "$ac_ct_CC" >&6; } |
---|
4404 | else |
---|
4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4406 | $as_echo "no" >&6; } |
---|
4407 | fi |
---|
4408 | |
---|
4409 | if test "x$ac_ct_CC" = x; then |
---|
4410 | CC="" |
---|
4411 | else |
---|
4412 | case $cross_compiling:$ac_tool_warned in |
---|
4413 | yes:) |
---|
4414 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4415 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4416 | ac_tool_warned=yes ;; |
---|
4417 | esac |
---|
4418 | CC=$ac_ct_CC |
---|
4419 | fi |
---|
4420 | else |
---|
4421 | CC="$ac_cv_prog_CC" |
---|
4422 | fi |
---|
4423 | |
---|
4424 | if test -z "$CC"; then |
---|
4425 | if test -n "$ac_tool_prefix"; then |
---|
4426 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
4427 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4429 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4430 | if ${ac_cv_prog_CC+:} false; then : |
---|
4431 | $as_echo_n "(cached) " >&6 |
---|
4432 | else |
---|
4433 | if test -n "$CC"; then |
---|
4434 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4435 | else |
---|
4436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4437 | for as_dir in $PATH |
---|
4438 | do |
---|
4439 | IFS=$as_save_IFS |
---|
4440 | test -z "$as_dir" && as_dir=. |
---|
4441 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4442 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4443 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
4444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4445 | break 2 |
---|
4446 | fi |
---|
4447 | done |
---|
4448 | done |
---|
4449 | IFS=$as_save_IFS |
---|
4450 | |
---|
4451 | fi |
---|
4452 | fi |
---|
4453 | CC=$ac_cv_prog_CC |
---|
4454 | if test -n "$CC"; then |
---|
4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4456 | $as_echo "$CC" >&6; } |
---|
4457 | else |
---|
4458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4459 | $as_echo "no" >&6; } |
---|
4460 | fi |
---|
4461 | |
---|
4462 | |
---|
4463 | fi |
---|
4464 | fi |
---|
4465 | if test -z "$CC"; then |
---|
4466 | # Extract the first word of "cc", so it can be a program name with args. |
---|
4467 | set dummy cc; ac_word=$2 |
---|
4468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4469 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4470 | if ${ac_cv_prog_CC+:} false; then : |
---|
4471 | $as_echo_n "(cached) " >&6 |
---|
4472 | else |
---|
4473 | if test -n "$CC"; then |
---|
4474 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4475 | else |
---|
4476 | ac_prog_rejected=no |
---|
4477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4478 | for as_dir in $PATH |
---|
4479 | do |
---|
4480 | IFS=$as_save_IFS |
---|
4481 | test -z "$as_dir" && as_dir=. |
---|
4482 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4483 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4484 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
4485 | ac_prog_rejected=yes |
---|
4486 | continue |
---|
4487 | fi |
---|
4488 | ac_cv_prog_CC="cc" |
---|
4489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4490 | break 2 |
---|
4491 | fi |
---|
4492 | done |
---|
4493 | done |
---|
4494 | IFS=$as_save_IFS |
---|
4495 | |
---|
4496 | if test $ac_prog_rejected = yes; then |
---|
4497 | # We found a bogon in the path, so make sure we never use it. |
---|
4498 | set dummy $ac_cv_prog_CC |
---|
4499 | shift |
---|
4500 | if test $# != 0; then |
---|
4501 | # We chose a different compiler from the bogus one. |
---|
4502 | # However, it has the same basename, so the bogon will be chosen |
---|
4503 | # first if we set CC to just the basename; use the full file name. |
---|
4504 | shift |
---|
4505 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
4506 | fi |
---|
4507 | fi |
---|
4508 | fi |
---|
4509 | fi |
---|
4510 | CC=$ac_cv_prog_CC |
---|
4511 | if test -n "$CC"; then |
---|
4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4513 | $as_echo "$CC" >&6; } |
---|
4514 | else |
---|
4515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4516 | $as_echo "no" >&6; } |
---|
4517 | fi |
---|
4518 | |
---|
4519 | |
---|
4520 | fi |
---|
4521 | if test -z "$CC"; then |
---|
4522 | if test -n "$ac_tool_prefix"; then |
---|
4523 | for ac_prog in cl.exe |
---|
4524 | do |
---|
4525 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
4526 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
4527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4528 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4529 | if ${ac_cv_prog_CC+:} false; then : |
---|
4530 | $as_echo_n "(cached) " >&6 |
---|
4531 | else |
---|
4532 | if test -n "$CC"; then |
---|
4533 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4534 | else |
---|
4535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4536 | for as_dir in $PATH |
---|
4537 | do |
---|
4538 | IFS=$as_save_IFS |
---|
4539 | test -z "$as_dir" && as_dir=. |
---|
4540 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4541 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4542 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
4543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4544 | break 2 |
---|
4545 | fi |
---|
4546 | done |
---|
4547 | done |
---|
4548 | IFS=$as_save_IFS |
---|
4549 | |
---|
4550 | fi |
---|
4551 | fi |
---|
4552 | CC=$ac_cv_prog_CC |
---|
4553 | if test -n "$CC"; then |
---|
4554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4555 | $as_echo "$CC" >&6; } |
---|
4556 | else |
---|
4557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4558 | $as_echo "no" >&6; } |
---|
4559 | fi |
---|
4560 | |
---|
4561 | |
---|
4562 | test -n "$CC" && break |
---|
4563 | done |
---|
4564 | fi |
---|
4565 | if test -z "$CC"; then |
---|
4566 | ac_ct_CC=$CC |
---|
4567 | for ac_prog in cl.exe |
---|
4568 | do |
---|
4569 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4570 | set dummy $ac_prog; ac_word=$2 |
---|
4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4572 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4573 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
4574 | $as_echo_n "(cached) " >&6 |
---|
4575 | else |
---|
4576 | if test -n "$ac_ct_CC"; then |
---|
4577 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
4578 | else |
---|
4579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4580 | for as_dir in $PATH |
---|
4581 | do |
---|
4582 | IFS=$as_save_IFS |
---|
4583 | test -z "$as_dir" && as_dir=. |
---|
4584 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4585 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4586 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
4587 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4588 | break 2 |
---|
4589 | fi |
---|
4590 | done |
---|
4591 | done |
---|
4592 | IFS=$as_save_IFS |
---|
4593 | |
---|
4594 | fi |
---|
4595 | fi |
---|
4596 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
4597 | if test -n "$ac_ct_CC"; then |
---|
4598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
4599 | $as_echo "$ac_ct_CC" >&6; } |
---|
4600 | else |
---|
4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4602 | $as_echo "no" >&6; } |
---|
4603 | fi |
---|
4604 | |
---|
4605 | |
---|
4606 | test -n "$ac_ct_CC" && break |
---|
4607 | done |
---|
4608 | |
---|
4609 | if test "x$ac_ct_CC" = x; then |
---|
4610 | CC="" |
---|
4611 | else |
---|
4612 | case $cross_compiling:$ac_tool_warned in |
---|
4613 | yes:) |
---|
4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4615 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4616 | ac_tool_warned=yes ;; |
---|
4617 | esac |
---|
4618 | CC=$ac_ct_CC |
---|
4619 | fi |
---|
4620 | fi |
---|
4621 | |
---|
4622 | fi |
---|
4623 | |
---|
4624 | |
---|
4625 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4626 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4627 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
4628 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4629 | |
---|
4630 | # Provide some information about the compiler. |
---|
4631 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
4632 | set X $ac_compile |
---|
4633 | ac_compiler=$2 |
---|
4634 | for ac_option in --version -v -V -qversion; do |
---|
4635 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
4636 | case "(($ac_try" in |
---|
4637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4638 | *) ac_try_echo=$ac_try;; |
---|
4639 | esac |
---|
4640 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4641 | $as_echo "$ac_try_echo"; } >&5 |
---|
4642 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
4643 | ac_status=$? |
---|
4644 | if test -s conftest.err; then |
---|
4645 | sed '10a\ |
---|
4646 | ... rest of stderr output deleted ... |
---|
4647 | 10q' conftest.err >conftest.er1 |
---|
4648 | cat conftest.er1 >&5 |
---|
4649 | fi |
---|
4650 | rm -f conftest.er1 conftest.err |
---|
4651 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4652 | test $ac_status = 0; } |
---|
4653 | done |
---|
4654 | |
---|
4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
4656 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
4657 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
4658 | $as_echo_n "(cached) " >&6 |
---|
4659 | else |
---|
4660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4661 | /* end confdefs.h. */ |
---|
4662 | |
---|
4663 | int |
---|
4664 | main () |
---|
4665 | { |
---|
4666 | #ifndef __GNUC__ |
---|
4667 | choke me |
---|
4668 | #endif |
---|
4669 | |
---|
4670 | ; |
---|
4671 | return 0; |
---|
4672 | } |
---|
4673 | _ACEOF |
---|
4674 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4675 | ac_compiler_gnu=yes |
---|
4676 | else |
---|
4677 | ac_compiler_gnu=no |
---|
4678 | fi |
---|
4679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4680 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
4681 | |
---|
4682 | fi |
---|
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
4684 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
4685 | if test $ac_compiler_gnu = yes; then |
---|
4686 | GCC=yes |
---|
4687 | else |
---|
4688 | GCC= |
---|
4689 | fi |
---|
4690 | ac_test_CFLAGS=${CFLAGS+set} |
---|
4691 | ac_save_CFLAGS=$CFLAGS |
---|
4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
4693 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
4694 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
4695 | $as_echo_n "(cached) " >&6 |
---|
4696 | else |
---|
4697 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
4698 | ac_c_werror_flag=yes |
---|
4699 | ac_cv_prog_cc_g=no |
---|
4700 | CFLAGS="-g" |
---|
4701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4702 | /* end confdefs.h. */ |
---|
4703 | |
---|
4704 | int |
---|
4705 | main () |
---|
4706 | { |
---|
4707 | |
---|
4708 | ; |
---|
4709 | return 0; |
---|
4710 | } |
---|
4711 | _ACEOF |
---|
4712 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4713 | ac_cv_prog_cc_g=yes |
---|
4714 | else |
---|
4715 | CFLAGS="" |
---|
4716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4717 | /* end confdefs.h. */ |
---|
4718 | |
---|
4719 | int |
---|
4720 | main () |
---|
4721 | { |
---|
4722 | |
---|
4723 | ; |
---|
4724 | return 0; |
---|
4725 | } |
---|
4726 | _ACEOF |
---|
4727 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4728 | |
---|
4729 | else |
---|
4730 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4731 | CFLAGS="-g" |
---|
4732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4733 | /* end confdefs.h. */ |
---|
4734 | |
---|
4735 | int |
---|
4736 | main () |
---|
4737 | { |
---|
4738 | |
---|
4739 | ; |
---|
4740 | return 0; |
---|
4741 | } |
---|
4742 | _ACEOF |
---|
4743 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4744 | ac_cv_prog_cc_g=yes |
---|
4745 | fi |
---|
4746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4747 | fi |
---|
4748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4749 | fi |
---|
4750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4751 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4752 | fi |
---|
4753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
4754 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
4755 | if test "$ac_test_CFLAGS" = set; then |
---|
4756 | CFLAGS=$ac_save_CFLAGS |
---|
4757 | elif test $ac_cv_prog_cc_g = yes; then |
---|
4758 | if test "$GCC" = yes; then |
---|
4759 | CFLAGS="-g -O2" |
---|
4760 | else |
---|
4761 | CFLAGS="-g" |
---|
4762 | fi |
---|
4763 | else |
---|
4764 | if test "$GCC" = yes; then |
---|
4765 | CFLAGS="-O2" |
---|
4766 | else |
---|
4767 | CFLAGS= |
---|
4768 | fi |
---|
4769 | fi |
---|
4770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
4771 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
4772 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
4773 | $as_echo_n "(cached) " >&6 |
---|
4774 | else |
---|
4775 | ac_cv_prog_cc_c89=no |
---|
4776 | ac_save_CC=$CC |
---|
4777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4778 | /* end confdefs.h. */ |
---|
4779 | #include <stdarg.h> |
---|
4780 | #include <stdio.h> |
---|
4781 | struct stat; |
---|
4782 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
4783 | struct buf { int x; }; |
---|
4784 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
4785 | static char *e (p, i) |
---|
4786 | char **p; |
---|
4787 | int i; |
---|
4788 | { |
---|
4789 | return p[i]; |
---|
4790 | } |
---|
4791 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
4792 | { |
---|
4793 | char *s; |
---|
4794 | va_list v; |
---|
4795 | va_start (v,p); |
---|
4796 | s = g (p, va_arg (v,int)); |
---|
4797 | va_end (v); |
---|
4798 | return s; |
---|
4799 | } |
---|
4800 | |
---|
4801 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
4802 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
4803 | These don't provoke an error unfortunately, instead are silently treated |
---|
4804 | as 'x'. The following induces an error, until -std is added to get |
---|
4805 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
4806 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
4807 | that's true only with -std. */ |
---|
4808 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
4809 | |
---|
4810 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
4811 | inside strings and character constants. */ |
---|
4812 | #define FOO(x) 'x' |
---|
4813 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
4814 | |
---|
4815 | int test (int i, double x); |
---|
4816 | struct s1 {int (*f) (int a);}; |
---|
4817 | struct s2 {int (*f) (double a);}; |
---|
4818 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
4819 | int argc; |
---|
4820 | char **argv; |
---|
4821 | int |
---|
4822 | main () |
---|
4823 | { |
---|
4824 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
4825 | ; |
---|
4826 | return 0; |
---|
4827 | } |
---|
4828 | _ACEOF |
---|
4829 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
4830 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
4831 | do |
---|
4832 | CC="$ac_save_CC $ac_arg" |
---|
4833 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4834 | ac_cv_prog_cc_c89=$ac_arg |
---|
4835 | fi |
---|
4836 | rm -f core conftest.err conftest.$ac_objext |
---|
4837 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
4838 | done |
---|
4839 | rm -f conftest.$ac_ext |
---|
4840 | CC=$ac_save_CC |
---|
4841 | |
---|
4842 | fi |
---|
4843 | # AC_CACHE_VAL |
---|
4844 | case "x$ac_cv_prog_cc_c89" in |
---|
4845 | x) |
---|
4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
4847 | $as_echo "none needed" >&6; } ;; |
---|
4848 | xno) |
---|
4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
4850 | $as_echo "unsupported" >&6; } ;; |
---|
4851 | *) |
---|
4852 | CC="$CC $ac_cv_prog_cc_c89" |
---|
4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
4854 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
4855 | esac |
---|
4856 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
4857 | |
---|
4858 | fi |
---|
4859 | |
---|
4860 | ac_ext=c |
---|
4861 | ac_cpp='$CPP $CPPFLAGS' |
---|
4862 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4863 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4864 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4865 | |
---|
4866 | depcc="$CC" am_compiler_list= |
---|
4867 | |
---|
4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4869 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4870 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
---|
4871 | $as_echo_n "(cached) " >&6 |
---|
4872 | else |
---|
4873 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4874 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4875 | # making bogus files that we don't know about and never remove. For |
---|
4876 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4877 | # making a dummy file named 'D' -- because '-MD' means "put the output |
---|
4878 | # in D". |
---|
4879 | rm -rf conftest.dir |
---|
4880 | mkdir conftest.dir |
---|
4881 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4882 | # using a relative directory. |
---|
4883 | cp "$am_depcomp" conftest.dir |
---|
4884 | cd conftest.dir |
---|
4885 | # We will build objects and dependencies in a subdirectory because |
---|
4886 | # it helps to detect inapplicable dependency modes. For instance |
---|
4887 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4888 | # side effect of compilation, but ICC will put the dependencies in |
---|
4889 | # the current directory while Tru64 will put them in the object |
---|
4890 | # directory. |
---|
4891 | mkdir sub |
---|
4892 | |
---|
4893 | am_cv_CC_dependencies_compiler_type=none |
---|
4894 | if test "$am_compiler_list" = ""; then |
---|
4895 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4896 | fi |
---|
4897 | am__universal=false |
---|
4898 | case " $depcc " in #( |
---|
4899 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
4900 | esac |
---|
4901 | |
---|
4902 | for depmode in $am_compiler_list; do |
---|
4903 | # Setup a source with many dependencies, because some compilers |
---|
4904 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4905 | # we should not choose a depcomp mode which is confused by this. |
---|
4906 | # |
---|
4907 | # We need to recreate these files for each test, as the compiler may |
---|
4908 | # overwrite some of them when testing with obscure command lines. |
---|
4909 | # This happens at least with the AIX C compiler. |
---|
4910 | : > sub/conftest.c |
---|
4911 | for i in 1 2 3 4 5 6; do |
---|
4912 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4913 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
---|
4914 | # Solaris 10 /bin/sh. |
---|
4915 | echo '/* dummy */' > sub/conftst$i.h |
---|
4916 | done |
---|
4917 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4918 | |
---|
4919 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
---|
4920 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4921 | # handle '-M -o', and we need to detect this. Also, some Intel |
---|
4922 | # versions had trouble with output in subdirs. |
---|
4923 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4924 | am__minus_obj="-o $am__obj" |
---|
4925 | case $depmode in |
---|
4926 | gcc) |
---|
4927 | # This depmode causes a compiler race in universal mode. |
---|
4928 | test "$am__universal" = false || continue |
---|
4929 | ;; |
---|
4930 | nosideeffect) |
---|
4931 | # After this tag, mechanisms are not by side-effect, so they'll |
---|
4932 | # only be used when explicitly requested. |
---|
4933 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4934 | continue |
---|
4935 | else |
---|
4936 | break |
---|
4937 | fi |
---|
4938 | ;; |
---|
4939 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4940 | # This compiler won't grok '-c -o', but also, the minuso test has |
---|
4941 | # not run yet. These depmodes are late enough in the game, and |
---|
4942 | # so weak that their functioning should not be impacted. |
---|
4943 | am__obj=conftest.${OBJEXT-o} |
---|
4944 | am__minus_obj= |
---|
4945 | ;; |
---|
4946 | none) break ;; |
---|
4947 | esac |
---|
4948 | if depmode=$depmode \ |
---|
4949 | source=sub/conftest.c object=$am__obj \ |
---|
4950 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4951 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4952 | >/dev/null 2>conftest.err && |
---|
4953 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4954 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4955 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4956 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4957 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4958 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4959 | # that says an option was ignored or not supported. |
---|
4960 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4961 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4962 | # The diagnosis changed in icc 8.0: |
---|
4963 | # icc: Command line remark: option '-MP' not supported |
---|
4964 | if (grep 'ignoring option' conftest.err || |
---|
4965 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4966 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
4967 | break |
---|
4968 | fi |
---|
4969 | fi |
---|
4970 | done |
---|
4971 | |
---|
4972 | cd .. |
---|
4973 | rm -rf conftest.dir |
---|
4974 | else |
---|
4975 | am_cv_CC_dependencies_compiler_type=none |
---|
4976 | fi |
---|
4977 | |
---|
4978 | fi |
---|
4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
4980 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
---|
4981 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
4982 | |
---|
4983 | if |
---|
4984 | test "x$enable_dependency_tracking" != xno \ |
---|
4985 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
4986 | am__fastdepCC_TRUE= |
---|
4987 | am__fastdepCC_FALSE='#' |
---|
4988 | else |
---|
4989 | am__fastdepCC_TRUE='#' |
---|
4990 | am__fastdepCC_FALSE= |
---|
4991 | fi |
---|
4992 | |
---|
4993 | |
---|
4994 | if test "x$CC" != xcc; then |
---|
4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 |
---|
4996 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
---|
4997 | else |
---|
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 |
---|
4999 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
---|
5000 | fi |
---|
5001 | set dummy $CC; ac_cc=`$as_echo "$2" | |
---|
5002 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
---|
5003 | if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : |
---|
5004 | $as_echo_n "(cached) " >&6 |
---|
5005 | else |
---|
5006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5007 | /* end confdefs.h. */ |
---|
5008 | |
---|
5009 | int |
---|
5010 | main () |
---|
5011 | { |
---|
5012 | |
---|
5013 | ; |
---|
5014 | return 0; |
---|
5015 | } |
---|
5016 | _ACEOF |
---|
5017 | # Make sure it works both with $CC and with simple cc. |
---|
5018 | # We do the test twice because some compilers refuse to overwrite an |
---|
5019 | # existing .o file with -o, though they will create one. |
---|
5020 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
---|
5021 | rm -f conftest2.* |
---|
5022 | if { { case "(($ac_try" in |
---|
5023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5024 | *) ac_try_echo=$ac_try;; |
---|
5025 | esac |
---|
5026 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
5027 | $as_echo "$ac_try_echo"; } >&5 |
---|
5028 | (eval "$ac_try") 2>&5 |
---|
5029 | ac_status=$? |
---|
5030 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
5031 | test $ac_status = 0; } && |
---|
5032 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
---|
5033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5034 | *) ac_try_echo=$ac_try;; |
---|
5035 | esac |
---|
5036 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
5037 | $as_echo "$ac_try_echo"; } >&5 |
---|
5038 | (eval "$ac_try") 2>&5 |
---|
5039 | ac_status=$? |
---|
5040 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
5041 | test $ac_status = 0; }; |
---|
5042 | then |
---|
5043 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
---|
5044 | if test "x$CC" != xcc; then |
---|
5045 | # Test first that cc exists at all. |
---|
5046 | if { ac_try='cc -c conftest.$ac_ext >&5' |
---|
5047 | { { case "(($ac_try" in |
---|
5048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5049 | *) ac_try_echo=$ac_try;; |
---|
5050 | esac |
---|
5051 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
5052 | $as_echo "$ac_try_echo"; } >&5 |
---|
5053 | (eval "$ac_try") 2>&5 |
---|
5054 | ac_status=$? |
---|
5055 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
5056 | test $ac_status = 0; }; }; then |
---|
5057 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
---|
5058 | rm -f conftest2.* |
---|
5059 | if { { case "(($ac_try" in |
---|
5060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5061 | *) ac_try_echo=$ac_try;; |
---|
5062 | esac |
---|
5063 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
5064 | $as_echo "$ac_try_echo"; } >&5 |
---|
5065 | (eval "$ac_try") 2>&5 |
---|
5066 | ac_status=$? |
---|
5067 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
5068 | test $ac_status = 0; } && |
---|
5069 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
---|
5070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5071 | *) ac_try_echo=$ac_try;; |
---|
5072 | esac |
---|
5073 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
5074 | $as_echo "$ac_try_echo"; } >&5 |
---|
5075 | (eval "$ac_try") 2>&5 |
---|
5076 | ac_status=$? |
---|
5077 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
5078 | test $ac_status = 0; }; |
---|
5079 | then |
---|
5080 | # cc works too. |
---|
5081 | : |
---|
5082 | else |
---|
5083 | # cc exists but doesn't like -o. |
---|
5084 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
---|
5085 | fi |
---|
5086 | fi |
---|
5087 | fi |
---|
5088 | else |
---|
5089 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
---|
5090 | fi |
---|
5091 | rm -f core conftest* |
---|
5092 | |
---|
5093 | fi |
---|
5094 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
---|
5095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
5096 | $as_echo "yes" >&6; } |
---|
5097 | else |
---|
5098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5099 | $as_echo "no" >&6; } |
---|
5100 | |
---|
5101 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h |
---|
5102 | |
---|
5103 | fi |
---|
5104 | |
---|
5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
---|
5106 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
---|
5107 | if ${ac_cv_prog_cc_c99+:} false; then : |
---|
5108 | $as_echo_n "(cached) " >&6 |
---|
5109 | else |
---|
5110 | ac_cv_prog_cc_c99=no |
---|
5111 | ac_save_CC=$CC |
---|
5112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5113 | /* end confdefs.h. */ |
---|
5114 | #include <stdarg.h> |
---|
5115 | #include <stdbool.h> |
---|
5116 | #include <stdlib.h> |
---|
5117 | #include <wchar.h> |
---|
5118 | #include <stdio.h> |
---|
5119 | |
---|
5120 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
---|
5121 | #define debug(...) fprintf (stderr, __VA_ARGS__) |
---|
5122 | #define showlist(...) puts (#__VA_ARGS__) |
---|
5123 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
---|
5124 | static void |
---|
5125 | test_varargs_macros (void) |
---|
5126 | { |
---|
5127 | int x = 1234; |
---|
5128 | int y = 5678; |
---|
5129 | debug ("Flag"); |
---|
5130 | debug ("X = %d\n", x); |
---|
5131 | showlist (The first, second, and third items.); |
---|
5132 | report (x>y, "x is %d but y is %d", x, y); |
---|
5133 | } |
---|
5134 | |
---|
5135 | // Check long long types. |
---|
5136 | #define BIG64 18446744073709551615ull |
---|
5137 | #define BIG32 4294967295ul |
---|
5138 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
---|
5139 | #if !BIG_OK |
---|
5140 | your preprocessor is broken; |
---|
5141 | #endif |
---|
5142 | #if BIG_OK |
---|
5143 | #else |
---|
5144 | your preprocessor is broken; |
---|
5145 | #endif |
---|
5146 | static long long int bignum = -9223372036854775807LL; |
---|
5147 | static unsigned long long int ubignum = BIG64; |
---|
5148 | |
---|
5149 | struct incomplete_array |
---|
5150 | { |
---|
5151 | int datasize; |
---|
5152 | double data[]; |
---|
5153 | }; |
---|
5154 | |
---|
5155 | struct named_init { |
---|
5156 | int number; |
---|
5157 | const wchar_t *name; |
---|
5158 | double average; |
---|
5159 | }; |
---|
5160 | |
---|
5161 | typedef const char *ccp; |
---|
5162 | |
---|
5163 | static inline int |
---|
5164 | test_restrict (ccp restrict text) |
---|
5165 | { |
---|
5166 | // See if C++-style comments work. |
---|
5167 | // Iterate through items via the restricted pointer. |
---|
5168 | // Also check for declarations in for loops. |
---|
5169 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
---|
5170 | continue; |
---|
5171 | return 0; |
---|
5172 | } |
---|
5173 | |
---|
5174 | // Check varargs and va_copy. |
---|
5175 | static void |
---|
5176 | test_varargs (const char *format, ...) |
---|
5177 | { |
---|
5178 | va_list args; |
---|
5179 | va_start (args, format); |
---|
5180 | va_list args_copy; |
---|
5181 | va_copy (args_copy, args); |
---|
5182 | |
---|
5183 | const char *str; |
---|
5184 | int number; |
---|
5185 | float fnumber; |
---|
5186 | |
---|
5187 | while (*format) |
---|
5188 | { |
---|
5189 | switch (*format++) |
---|
5190 | { |
---|
5191 | case 's': // string |
---|
5192 | str = va_arg (args_copy, const char *); |
---|
5193 | break; |
---|
5194 | case 'd': // int |
---|
5195 | number = va_arg (args_copy, int); |
---|
5196 | break; |
---|
5197 | case 'f': // float |
---|
5198 | fnumber = va_arg (args_copy, double); |
---|
5199 | break; |
---|
5200 | default: |
---|
5201 | break; |
---|
5202 | } |
---|
5203 | } |
---|
5204 | va_end (args_copy); |
---|
5205 | va_end (args); |
---|
5206 | } |
---|
5207 | |
---|
5208 | int |
---|
5209 | main () |
---|
5210 | { |
---|
5211 | |
---|
5212 | // Check bool. |
---|
5213 | _Bool success = false; |
---|
5214 | |
---|
5215 | // Check restrict. |
---|
5216 | if (test_restrict ("String literal") == 0) |
---|
5217 | success = true; |
---|
5218 | char *restrict newvar = "Another string"; |
---|
5219 | |
---|
5220 | // Check varargs. |
---|
5221 | test_varargs ("s, d' f .", "string", 65, 34.234); |
---|
5222 | test_varargs_macros (); |
---|
5223 | |
---|
5224 | // Check flexible array members. |
---|
5225 | struct incomplete_array *ia = |
---|
5226 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
---|
5227 | ia->datasize = 10; |
---|
5228 | for (int i = 0; i < ia->datasize; ++i) |
---|
5229 | ia->data[i] = i * 1.234; |
---|
5230 | |
---|
5231 | // Check named initializers. |
---|
5232 | struct named_init ni = { |
---|
5233 | .number = 34, |
---|
5234 | .name = L"Test wide string", |
---|
5235 | .average = 543.34343, |
---|
5236 | }; |
---|
5237 | |
---|
5238 | ni.number = 58; |
---|
5239 | |
---|
5240 | int dynamic_array[ni.number]; |
---|
5241 | dynamic_array[ni.number - 1] = 543; |
---|
5242 | |
---|
5243 | // work around unused variable warnings |
---|
5244 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
---|
5245 | || dynamic_array[ni.number - 1] != 543); |
---|
5246 | |
---|
5247 | ; |
---|
5248 | return 0; |
---|
5249 | } |
---|
5250 | _ACEOF |
---|
5251 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
---|
5252 | do |
---|
5253 | CC="$ac_save_CC $ac_arg" |
---|
5254 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5255 | ac_cv_prog_cc_c99=$ac_arg |
---|
5256 | fi |
---|
5257 | rm -f core conftest.err conftest.$ac_objext |
---|
5258 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
---|
5259 | done |
---|
5260 | rm -f conftest.$ac_ext |
---|
5261 | CC=$ac_save_CC |
---|
5262 | |
---|
5263 | fi |
---|
5264 | # AC_CACHE_VAL |
---|
5265 | case "x$ac_cv_prog_cc_c99" in |
---|
5266 | x) |
---|
5267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
5268 | $as_echo "none needed" >&6; } ;; |
---|
5269 | xno) |
---|
5270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
5271 | $as_echo "unsupported" >&6; } ;; |
---|
5272 | *) |
---|
5273 | CC="$CC $ac_cv_prog_cc_c99" |
---|
5274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
---|
5275 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
---|
5276 | esac |
---|
5277 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
---|
5278 | |
---|
5279 | fi |
---|
5280 | |
---|
5281 | |
---|
5282 | ac_ext=c |
---|
5283 | ac_cpp='$CPP $CPPFLAGS' |
---|
5284 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5285 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5286 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
5288 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
5289 | # On Suns, sometimes $CPP names a directory. |
---|
5290 | if test -n "$CPP" && test -d "$CPP"; then |
---|
5291 | CPP= |
---|
5292 | fi |
---|
5293 | if test -z "$CPP"; then |
---|
5294 | if ${ac_cv_prog_CPP+:} false; then : |
---|
5295 | $as_echo_n "(cached) " >&6 |
---|
5296 | else |
---|
5297 | # Double quotes because CPP needs to be expanded |
---|
5298 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
5299 | do |
---|
5300 | ac_preproc_ok=false |
---|
5301 | for ac_c_preproc_warn_flag in '' yes |
---|
5302 | do |
---|
5303 | # Use a header file that comes with gcc, so configuring glibc |
---|
5304 | # with a fresh cross-compiler works. |
---|
5305 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5306 | # <limits.h> exists even on freestanding compilers. |
---|
5307 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5308 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5310 | /* end confdefs.h. */ |
---|
5311 | #ifdef __STDC__ |
---|
5312 | # include <limits.h> |
---|
5313 | #else |
---|
5314 | # include <assert.h> |
---|
5315 | #endif |
---|
5316 | Syntax error |
---|
5317 | _ACEOF |
---|
5318 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5319 | |
---|
5320 | else |
---|
5321 | # Broken: fails on valid input. |
---|
5322 | continue |
---|
5323 | fi |
---|
5324 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5325 | |
---|
5326 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
5327 | # can be detected and how. |
---|
5328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5329 | /* end confdefs.h. */ |
---|
5330 | #include <ac_nonexistent.h> |
---|
5331 | _ACEOF |
---|
5332 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5333 | # Broken: success on invalid input. |
---|
5334 | continue |
---|
5335 | else |
---|
5336 | # Passes both tests. |
---|
5337 | ac_preproc_ok=: |
---|
5338 | break |
---|
5339 | fi |
---|
5340 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5341 | |
---|
5342 | done |
---|
5343 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5344 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
5345 | if $ac_preproc_ok; then : |
---|
5346 | break |
---|
5347 | fi |
---|
5348 | |
---|
5349 | done |
---|
5350 | ac_cv_prog_CPP=$CPP |
---|
5351 | |
---|
5352 | fi |
---|
5353 | CPP=$ac_cv_prog_CPP |
---|
5354 | else |
---|
5355 | ac_cv_prog_CPP=$CPP |
---|
5356 | fi |
---|
5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
5358 | $as_echo "$CPP" >&6; } |
---|
5359 | ac_preproc_ok=false |
---|
5360 | for ac_c_preproc_warn_flag in '' yes |
---|
5361 | do |
---|
5362 | # Use a header file that comes with gcc, so configuring glibc |
---|
5363 | # with a fresh cross-compiler works. |
---|
5364 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5365 | # <limits.h> exists even on freestanding compilers. |
---|
5366 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5367 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5369 | /* end confdefs.h. */ |
---|
5370 | #ifdef __STDC__ |
---|
5371 | # include <limits.h> |
---|
5372 | #else |
---|
5373 | # include <assert.h> |
---|
5374 | #endif |
---|
5375 | Syntax error |
---|
5376 | _ACEOF |
---|
5377 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5378 | |
---|
5379 | else |
---|
5380 | # Broken: fails on valid input. |
---|
5381 | continue |
---|
5382 | fi |
---|
5383 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5384 | |
---|
5385 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
5386 | # can be detected and how. |
---|
5387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5388 | /* end confdefs.h. */ |
---|
5389 | #include <ac_nonexistent.h> |
---|
5390 | _ACEOF |
---|
5391 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5392 | # Broken: success on invalid input. |
---|
5393 | continue |
---|
5394 | else |
---|
5395 | # Passes both tests. |
---|
5396 | ac_preproc_ok=: |
---|
5397 | break |
---|
5398 | fi |
---|
5399 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5400 | |
---|
5401 | done |
---|
5402 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5403 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
5404 | if $ac_preproc_ok; then : |
---|
5405 | |
---|
5406 | else |
---|
5407 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
5408 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
5409 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
5410 | See \`config.log' for more details" "$LINENO" 5; } |
---|
5411 | fi |
---|
5412 | |
---|
5413 | ac_ext=c |
---|
5414 | ac_cpp='$CPP $CPPFLAGS' |
---|
5415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5418 | |
---|
5419 | |
---|
5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
---|
5421 | $as_echo_n "checking whether ln -s works... " >&6; } |
---|
5422 | LN_S=$as_ln_s |
---|
5423 | if test "$LN_S" = "ln -s"; then |
---|
5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
5425 | $as_echo "yes" >&6; } |
---|
5426 | else |
---|
5427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
---|
5428 | $as_echo "no, using $LN_S" >&6; } |
---|
5429 | fi |
---|
5430 | |
---|
5431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
5432 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
5433 | set x ${MAKE-make} |
---|
5434 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
5435 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
5436 | $as_echo_n "(cached) " >&6 |
---|
5437 | else |
---|
5438 | cat >conftest.make <<\_ACEOF |
---|
5439 | SHELL = /bin/sh |
---|
5440 | all: |
---|
5441 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
5442 | _ACEOF |
---|
5443 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
5444 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
5445 | *@@@%%%=?*=@@@%%%*) |
---|
5446 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
5447 | *) |
---|
5448 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
5449 | esac |
---|
5450 | rm -f conftest.make |
---|
5451 | fi |
---|
5452 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
5453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
5454 | $as_echo "yes" >&6; } |
---|
5455 | SET_MAKE= |
---|
5456 | else |
---|
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5458 | $as_echo "no" >&6; } |
---|
5459 | SET_MAKE="MAKE=${MAKE-make}" |
---|
5460 | fi |
---|
5461 | |
---|
5462 | case `pwd` in |
---|
5463 | *\ * | *\ *) |
---|
5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
---|
5465 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
---|
5466 | esac |
---|
5467 | |
---|
5468 | |
---|
5469 | |
---|
5470 | macro_version='2.4.2' |
---|
5471 | macro_revision='1.3337' |
---|
5472 | |
---|
5473 | |
---|
5474 | |
---|
5475 | |
---|
5476 | |
---|
5477 | |
---|
5478 | |
---|
5479 | |
---|
5480 | |
---|
5481 | |
---|
5482 | |
---|
5483 | |
---|
5484 | |
---|
5485 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
5486 | |
---|
5487 | # Make sure we can run config.sub. |
---|
5488 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
5489 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
---|
5490 | |
---|
5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
---|
5492 | $as_echo_n "checking build system type... " >&6; } |
---|
5493 | if ${ac_cv_build+:} false; then : |
---|
5494 | $as_echo_n "(cached) " >&6 |
---|
5495 | else |
---|
5496 | ac_build_alias=$build_alias |
---|
5497 | test "x$ac_build_alias" = x && |
---|
5498 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
5499 | test "x$ac_build_alias" = x && |
---|
5500 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
---|
5501 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
5502 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
---|
5503 | |
---|
5504 | fi |
---|
5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
---|
5506 | $as_echo "$ac_cv_build" >&6; } |
---|
5507 | case $ac_cv_build in |
---|
5508 | *-*-*) ;; |
---|
5509 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
---|
5510 | esac |
---|
5511 | build=$ac_cv_build |
---|
5512 | ac_save_IFS=$IFS; IFS='-' |
---|
5513 | set x $ac_cv_build |
---|
5514 | shift |
---|
5515 | build_cpu=$1 |
---|
5516 | build_vendor=$2 |
---|
5517 | shift; shift |
---|
5518 | # Remember, the first character of IFS is used to create $*, |
---|
5519 | # except with old shells: |
---|
5520 | build_os=$* |
---|
5521 | IFS=$ac_save_IFS |
---|
5522 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
5523 | |
---|
5524 | |
---|
5525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
---|
5526 | $as_echo_n "checking host system type... " >&6; } |
---|
5527 | if ${ac_cv_host+:} false; then : |
---|
5528 | $as_echo_n "(cached) " >&6 |
---|
5529 | else |
---|
5530 | if test "x$host_alias" = x; then |
---|
5531 | ac_cv_host=$ac_cv_build |
---|
5532 | else |
---|
5533 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
---|
5534 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
---|
5535 | fi |
---|
5536 | |
---|
5537 | fi |
---|
5538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
---|
5539 | $as_echo "$ac_cv_host" >&6; } |
---|
5540 | case $ac_cv_host in |
---|
5541 | *-*-*) ;; |
---|
5542 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
---|
5543 | esac |
---|
5544 | host=$ac_cv_host |
---|
5545 | ac_save_IFS=$IFS; IFS='-' |
---|
5546 | set x $ac_cv_host |
---|
5547 | shift |
---|
5548 | host_cpu=$1 |
---|
5549 | host_vendor=$2 |
---|
5550 | shift; shift |
---|
5551 | # Remember, the first character of IFS is used to create $*, |
---|
5552 | # except with old shells: |
---|
5553 | host_os=$* |
---|
5554 | IFS=$ac_save_IFS |
---|
5555 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
5556 | |
---|
5557 | |
---|
5558 | # Backslashify metacharacters that are still active within |
---|
5559 | # double-quoted strings. |
---|
5560 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
---|
5561 | |
---|
5562 | # Same as above, but do not quote variable references. |
---|
5563 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
---|
5564 | |
---|
5565 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
5566 | # double_quote_subst'ed string. |
---|
5567 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
5568 | |
---|
5569 | # Sed substitution to delay expansion of an escaped single quote. |
---|
5570 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
---|
5571 | |
---|
5572 | # Sed substitution to avoid accidental globbing in evaled expressions |
---|
5573 | no_glob_subst='s/\*/\\\*/g' |
---|
5574 | |
---|
5575 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
5576 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
---|
5577 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
---|
5578 | |
---|
5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
---|
5580 | $as_echo_n "checking how to print strings... " >&6; } |
---|
5581 | # Test print first, because it will be a builtin if present. |
---|
5582 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
---|
5583 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
---|
5584 | ECHO='print -r --' |
---|
5585 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
---|
5586 | ECHO='printf %s\n' |
---|
5587 | else |
---|
5588 | # Use this function as a fallback that always works. |
---|
5589 | func_fallback_echo () |
---|
5590 | { |
---|
5591 | eval 'cat <<_LTECHO_EOF |
---|
5592 | $1 |
---|
5593 | _LTECHO_EOF' |
---|
5594 | } |
---|
5595 | ECHO='func_fallback_echo' |
---|
5596 | fi |
---|
5597 | |
---|
5598 | # func_echo_all arg... |
---|
5599 | # Invoke $ECHO with all args, space-separated. |
---|
5600 | func_echo_all () |
---|
5601 | { |
---|
5602 | $ECHO "" |
---|
5603 | } |
---|
5604 | |
---|
5605 | case "$ECHO" in |
---|
5606 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
---|
5607 | $as_echo "printf" >&6; } ;; |
---|
5608 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
---|
5609 | $as_echo "print -r" >&6; } ;; |
---|
5610 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
---|
5611 | $as_echo "cat" >&6; } ;; |
---|
5612 | esac |
---|
5613 | |
---|
5614 | |
---|
5615 | |
---|
5616 | |
---|
5617 | |
---|
5618 | |
---|
5619 | |
---|
5620 | |
---|
5621 | |
---|
5622 | |
---|
5623 | |
---|
5624 | |
---|
5625 | |
---|
5626 | |
---|
5627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
---|
5628 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
---|
5629 | if ${ac_cv_path_SED+:} false; then : |
---|
5630 | $as_echo_n "(cached) " >&6 |
---|
5631 | else |
---|
5632 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
---|
5633 | for ac_i in 1 2 3 4 5 6 7; do |
---|
5634 | ac_script="$ac_script$as_nl$ac_script" |
---|
5635 | done |
---|
5636 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
---|
5637 | { ac_script=; unset ac_script;} |
---|
5638 | if test -z "$SED"; then |
---|
5639 | ac_path_SED_found=false |
---|
5640 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5642 | for as_dir in $PATH |
---|
5643 | do |
---|
5644 | IFS=$as_save_IFS |
---|
5645 | test -z "$as_dir" && as_dir=. |
---|
5646 | for ac_prog in sed gsed; do |
---|
5647 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5648 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
---|
5649 | as_fn_executable_p "$ac_path_SED" || continue |
---|
5650 | # Check for GNU ac_path_SED and select it if it is found. |
---|
5651 | # Check for GNU $ac_path_SED |
---|
5652 | case `"$ac_path_SED" --version 2>&1` in |
---|
5653 | *GNU*) |
---|
5654 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
---|
5655 | *) |
---|
5656 | ac_count=0 |
---|
5657 | $as_echo_n 0123456789 >"conftest.in" |
---|
5658 | while : |
---|
5659 | do |
---|
5660 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5661 | mv "conftest.tmp" "conftest.in" |
---|
5662 | cp "conftest.in" "conftest.nl" |
---|
5663 | $as_echo '' >> "conftest.nl" |
---|
5664 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5665 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5666 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5667 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
---|
5668 | # Best one so far, save it but keep looking for a better one |
---|
5669 | ac_cv_path_SED="$ac_path_SED" |
---|
5670 | ac_path_SED_max=$ac_count |
---|
5671 | fi |
---|
5672 | # 10*(2^10) chars as input seems more than enough |
---|
5673 | test $ac_count -gt 10 && break |
---|
5674 | done |
---|
5675 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5676 | esac |
---|
5677 | |
---|
5678 | $ac_path_SED_found && break 3 |
---|
5679 | done |
---|
5680 | done |
---|
5681 | done |
---|
5682 | IFS=$as_save_IFS |
---|
5683 | if test -z "$ac_cv_path_SED"; then |
---|
5684 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
---|
5685 | fi |
---|
5686 | else |
---|
5687 | ac_cv_path_SED=$SED |
---|
5688 | fi |
---|
5689 | |
---|
5690 | fi |
---|
5691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
---|
5692 | $as_echo "$ac_cv_path_SED" >&6; } |
---|
5693 | SED="$ac_cv_path_SED" |
---|
5694 | rm -f conftest.sed |
---|
5695 | |
---|
5696 | test -z "$SED" && SED=sed |
---|
5697 | Xsed="$SED -e 1s/^X//" |
---|
5698 | |
---|
5699 | |
---|
5700 | |
---|
5701 | |
---|
5702 | |
---|
5703 | |
---|
5704 | |
---|
5705 | |
---|
5706 | |
---|
5707 | |
---|
5708 | |
---|
5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
5710 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
5711 | if ${ac_cv_path_GREP+:} false; then : |
---|
5712 | $as_echo_n "(cached) " >&6 |
---|
5713 | else |
---|
5714 | if test -z "$GREP"; then |
---|
5715 | ac_path_GREP_found=false |
---|
5716 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5718 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5719 | do |
---|
5720 | IFS=$as_save_IFS |
---|
5721 | test -z "$as_dir" && as_dir=. |
---|
5722 | for ac_prog in grep ggrep; do |
---|
5723 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5724 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5725 | as_fn_executable_p "$ac_path_GREP" || continue |
---|
5726 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
5727 | # Check for GNU $ac_path_GREP |
---|
5728 | case `"$ac_path_GREP" --version 2>&1` in |
---|
5729 | *GNU*) |
---|
5730 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
5731 | *) |
---|
5732 | ac_count=0 |
---|
5733 | $as_echo_n 0123456789 >"conftest.in" |
---|
5734 | while : |
---|
5735 | do |
---|
5736 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5737 | mv "conftest.tmp" "conftest.in" |
---|
5738 | cp "conftest.in" "conftest.nl" |
---|
5739 | $as_echo 'GREP' >> "conftest.nl" |
---|
5740 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5741 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5742 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5743 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
5744 | # Best one so far, save it but keep looking for a better one |
---|
5745 | ac_cv_path_GREP="$ac_path_GREP" |
---|
5746 | ac_path_GREP_max=$ac_count |
---|
5747 | fi |
---|
5748 | # 10*(2^10) chars as input seems more than enough |
---|
5749 | test $ac_count -gt 10 && break |
---|
5750 | done |
---|
5751 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5752 | esac |
---|
5753 | |
---|
5754 | $ac_path_GREP_found && break 3 |
---|
5755 | done |
---|
5756 | done |
---|
5757 | done |
---|
5758 | IFS=$as_save_IFS |
---|
5759 | if test -z "$ac_cv_path_GREP"; then |
---|
5760 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5761 | fi |
---|
5762 | else |
---|
5763 | ac_cv_path_GREP=$GREP |
---|
5764 | fi |
---|
5765 | |
---|
5766 | fi |
---|
5767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
5768 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
5769 | GREP="$ac_cv_path_GREP" |
---|
5770 | |
---|
5771 | |
---|
5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
5773 | $as_echo_n "checking for egrep... " >&6; } |
---|
5774 | if ${ac_cv_path_EGREP+:} false; then : |
---|
5775 | $as_echo_n "(cached) " >&6 |
---|
5776 | else |
---|
5777 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
5778 | then ac_cv_path_EGREP="$GREP -E" |
---|
5779 | else |
---|
5780 | if test -z "$EGREP"; then |
---|
5781 | ac_path_EGREP_found=false |
---|
5782 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5784 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5785 | do |
---|
5786 | IFS=$as_save_IFS |
---|
5787 | test -z "$as_dir" && as_dir=. |
---|
5788 | for ac_prog in egrep; do |
---|
5789 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5790 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5791 | as_fn_executable_p "$ac_path_EGREP" || continue |
---|
5792 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
5793 | # Check for GNU $ac_path_EGREP |
---|
5794 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
5795 | *GNU*) |
---|
5796 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
5797 | *) |
---|
5798 | ac_count=0 |
---|
5799 | $as_echo_n 0123456789 >"conftest.in" |
---|
5800 | while : |
---|
5801 | do |
---|
5802 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5803 | mv "conftest.tmp" "conftest.in" |
---|
5804 | cp "conftest.in" "conftest.nl" |
---|
5805 | $as_echo 'EGREP' >> "conftest.nl" |
---|
5806 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5807 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5808 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5809 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
5810 | # Best one so far, save it but keep looking for a better one |
---|
5811 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
5812 | ac_path_EGREP_max=$ac_count |
---|
5813 | fi |
---|
5814 | # 10*(2^10) chars as input seems more than enough |
---|
5815 | test $ac_count -gt 10 && break |
---|
5816 | done |
---|
5817 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5818 | esac |
---|
5819 | |
---|
5820 | $ac_path_EGREP_found && break 3 |
---|
5821 | done |
---|
5822 | done |
---|
5823 | done |
---|
5824 | IFS=$as_save_IFS |
---|
5825 | if test -z "$ac_cv_path_EGREP"; then |
---|
5826 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5827 | fi |
---|
5828 | else |
---|
5829 | ac_cv_path_EGREP=$EGREP |
---|
5830 | fi |
---|
5831 | |
---|
5832 | fi |
---|
5833 | fi |
---|
5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
5835 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
5836 | EGREP="$ac_cv_path_EGREP" |
---|
5837 | |
---|
5838 | |
---|
5839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
---|
5840 | $as_echo_n "checking for fgrep... " >&6; } |
---|
5841 | if ${ac_cv_path_FGREP+:} false; then : |
---|
5842 | $as_echo_n "(cached) " >&6 |
---|
5843 | else |
---|
5844 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
---|
5845 | then ac_cv_path_FGREP="$GREP -F" |
---|
5846 | else |
---|
5847 | if test -z "$FGREP"; then |
---|
5848 | ac_path_FGREP_found=false |
---|
5849 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5851 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5852 | do |
---|
5853 | IFS=$as_save_IFS |
---|
5854 | test -z "$as_dir" && as_dir=. |
---|
5855 | for ac_prog in fgrep; do |
---|
5856 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5857 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5858 | as_fn_executable_p "$ac_path_FGREP" || continue |
---|
5859 | # Check for GNU ac_path_FGREP and select it if it is found. |
---|
5860 | # Check for GNU $ac_path_FGREP |
---|
5861 | case `"$ac_path_FGREP" --version 2>&1` in |
---|
5862 | *GNU*) |
---|
5863 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
---|
5864 | *) |
---|
5865 | ac_count=0 |
---|
5866 | $as_echo_n 0123456789 >"conftest.in" |
---|
5867 | while : |
---|
5868 | do |
---|
5869 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5870 | mv "conftest.tmp" "conftest.in" |
---|
5871 | cp "conftest.in" "conftest.nl" |
---|
5872 | $as_echo 'FGREP' >> "conftest.nl" |
---|
5873 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5874 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5875 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5876 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
---|
5877 | # Best one so far, save it but keep looking for a better one |
---|
5878 | ac_cv_path_FGREP="$ac_path_FGREP" |
---|
5879 | ac_path_FGREP_max=$ac_count |
---|
5880 | fi |
---|
5881 | # 10*(2^10) chars as input seems more than enough |
---|
5882 | test $ac_count -gt 10 && break |
---|
5883 | done |
---|
5884 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5885 | esac |
---|
5886 | |
---|
5887 | $ac_path_FGREP_found && break 3 |
---|
5888 | done |
---|
5889 | done |
---|
5890 | done |
---|
5891 | IFS=$as_save_IFS |
---|
5892 | if test -z "$ac_cv_path_FGREP"; then |
---|
5893 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5894 | fi |
---|
5895 | else |
---|
5896 | ac_cv_path_FGREP=$FGREP |
---|
5897 | fi |
---|
5898 | |
---|
5899 | fi |
---|
5900 | fi |
---|
5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
---|
5902 | $as_echo "$ac_cv_path_FGREP" >&6; } |
---|
5903 | FGREP="$ac_cv_path_FGREP" |
---|
5904 | |
---|
5905 | |
---|
5906 | test -z "$GREP" && GREP=grep |
---|
5907 | |
---|
5908 | |
---|
5909 | |
---|
5910 | |
---|
5911 | |
---|
5912 | |
---|
5913 | |
---|
5914 | |
---|
5915 | |
---|
5916 | |
---|
5917 | |
---|
5918 | |
---|
5919 | |
---|
5920 | |
---|
5921 | |
---|
5922 | |
---|
5923 | |
---|
5924 | |
---|
5925 | |
---|
5926 | # Check whether --with-gnu-ld was given. |
---|
5927 | if test "${with_gnu_ld+set}" = set; then : |
---|
5928 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
---|
5929 | else |
---|
5930 | with_gnu_ld=no |
---|
5931 | fi |
---|
5932 | |
---|
5933 | ac_prog=ld |
---|
5934 | if test "$GCC" = yes; then |
---|
5935 | # Check if gcc -print-prog-name=ld gives a path. |
---|
5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
---|
5937 | $as_echo_n "checking for ld used by $CC... " >&6; } |
---|
5938 | case $host in |
---|
5939 | *-*-mingw*) |
---|
5940 | # gcc leaves a trailing carriage return which upsets mingw |
---|
5941 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
5942 | *) |
---|
5943 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
5944 | esac |
---|
5945 | case $ac_prog in |
---|
5946 | # Accept absolute paths. |
---|
5947 | [\\/]* | ?:[\\/]*) |
---|
5948 | re_direlt='/[^/][^/]*/\.\./' |
---|
5949 | # Canonicalize the pathname of ld |
---|
5950 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
---|
5951 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
---|
5952 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
---|
5953 | done |
---|
5954 | test -z "$LD" && LD="$ac_prog" |
---|
5955 | ;; |
---|
5956 | "") |
---|
5957 | # If it fails, then pretend we aren't using GCC. |
---|
5958 | ac_prog=ld |
---|
5959 | ;; |
---|
5960 | *) |
---|
5961 | # If it is relative, then search for the first ld in PATH. |
---|
5962 | with_gnu_ld=unknown |
---|
5963 | ;; |
---|
5964 | esac |
---|
5965 | elif test "$with_gnu_ld" = yes; then |
---|
5966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
---|
5967 | $as_echo_n "checking for GNU ld... " >&6; } |
---|
5968 | else |
---|
5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
---|
5970 | $as_echo_n "checking for non-GNU ld... " >&6; } |
---|
5971 | fi |
---|
5972 | if ${lt_cv_path_LD+:} false; then : |
---|
5973 | $as_echo_n "(cached) " >&6 |
---|
5974 | else |
---|
5975 | if test -z "$LD"; then |
---|
5976 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
5977 | for ac_dir in $PATH; do |
---|
5978 | IFS="$lt_save_ifs" |
---|
5979 | test -z "$ac_dir" && ac_dir=. |
---|
5980 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
5981 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
5982 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
5983 | # but apparently some variants of GNU ld only accept -v. |
---|
5984 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
5985 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
5986 | *GNU* | *'with BFD'*) |
---|
5987 | test "$with_gnu_ld" != no && break |
---|
5988 | ;; |
---|
5989 | *) |
---|
5990 | test "$with_gnu_ld" != yes && break |
---|
5991 | ;; |
---|
5992 | esac |
---|
5993 | fi |
---|
5994 | done |
---|
5995 | IFS="$lt_save_ifs" |
---|
5996 | else |
---|
5997 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
5998 | fi |
---|
5999 | fi |
---|
6000 | |
---|
6001 | LD="$lt_cv_path_LD" |
---|
6002 | if test -n "$LD"; then |
---|
6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
---|
6004 | $as_echo "$LD" >&6; } |
---|
6005 | else |
---|
6006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6007 | $as_echo "no" >&6; } |
---|
6008 | fi |
---|
6009 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
---|
6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
---|
6011 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
---|
6012 | if ${lt_cv_prog_gnu_ld+:} false; then : |
---|
6013 | $as_echo_n "(cached) " >&6 |
---|
6014 | else |
---|
6015 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
6016 | case `$LD -v 2>&1 </dev/null` in |
---|
6017 | *GNU* | *'with BFD'*) |
---|
6018 | lt_cv_prog_gnu_ld=yes |
---|
6019 | ;; |
---|
6020 | *) |
---|
6021 | lt_cv_prog_gnu_ld=no |
---|
6022 | ;; |
---|
6023 | esac |
---|
6024 | fi |
---|
6025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
---|
6026 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
---|
6027 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
6028 | |
---|
6029 | |
---|
6030 | |
---|
6031 | |
---|
6032 | |
---|
6033 | |
---|
6034 | |
---|
6035 | |
---|
6036 | |
---|
6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
---|
6038 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
---|
6039 | if ${lt_cv_path_NM+:} false; then : |
---|
6040 | $as_echo_n "(cached) " >&6 |
---|
6041 | else |
---|
6042 | if test -n "$NM"; then |
---|
6043 | # Let the user override the test. |
---|
6044 | lt_cv_path_NM="$NM" |
---|
6045 | else |
---|
6046 | lt_nm_to_check="${ac_tool_prefix}nm" |
---|
6047 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
---|
6048 | lt_nm_to_check="$lt_nm_to_check nm" |
---|
6049 | fi |
---|
6050 | for lt_tmp_nm in $lt_nm_to_check; do |
---|
6051 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
6052 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
---|
6053 | IFS="$lt_save_ifs" |
---|
6054 | test -z "$ac_dir" && ac_dir=. |
---|
6055 | tmp_nm="$ac_dir/$lt_tmp_nm" |
---|
6056 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
---|
6057 | # Check to see if the nm accepts a BSD-compat flag. |
---|
6058 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
6059 | # nm: unknown option "B" ignored |
---|
6060 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
6061 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
---|
6062 | */dev/null* | *'Invalid file or object type'*) |
---|
6063 | lt_cv_path_NM="$tmp_nm -B" |
---|
6064 | break |
---|
6065 | ;; |
---|
6066 | *) |
---|
6067 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
6068 | */dev/null*) |
---|
6069 | lt_cv_path_NM="$tmp_nm -p" |
---|
6070 | break |
---|
6071 | ;; |
---|
6072 | *) |
---|
6073 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
6074 | continue # so that we can try to find one that supports BSD flags |
---|
6075 | ;; |
---|
6076 | esac |
---|
6077 | ;; |
---|
6078 | esac |
---|
6079 | fi |
---|
6080 | done |
---|
6081 | IFS="$lt_save_ifs" |
---|
6082 | done |
---|
6083 | : ${lt_cv_path_NM=no} |
---|
6084 | fi |
---|
6085 | fi |
---|
6086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
---|
6087 | $as_echo "$lt_cv_path_NM" >&6; } |
---|
6088 | if test "$lt_cv_path_NM" != "no"; then |
---|
6089 | NM="$lt_cv_path_NM" |
---|
6090 | else |
---|
6091 | # Didn't find any BSD compatible name lister, look for dumpbin. |
---|
6092 | if test -n "$DUMPBIN"; then : |
---|
6093 | # Let the user override the test. |
---|
6094 | else |
---|
6095 | if test -n "$ac_tool_prefix"; then |
---|
6096 | for ac_prog in dumpbin "link -dump" |
---|
6097 | do |
---|
6098 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
6099 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
6100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6101 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6102 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
---|
6103 | $as_echo_n "(cached) " >&6 |
---|
6104 | else |
---|
6105 | if test -n "$DUMPBIN"; then |
---|
6106 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
---|
6107 | else |
---|
6108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6109 | for as_dir in $PATH |
---|
6110 | do |
---|
6111 | IFS=$as_save_IFS |
---|
6112 | test -z "$as_dir" && as_dir=. |
---|
6113 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6114 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6115 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
---|
6116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6117 | break 2 |
---|
6118 | fi |
---|
6119 | done |
---|
6120 | done |
---|
6121 | IFS=$as_save_IFS |
---|
6122 | |
---|
6123 | fi |
---|
6124 | fi |
---|
6125 | DUMPBIN=$ac_cv_prog_DUMPBIN |
---|
6126 | if test -n "$DUMPBIN"; then |
---|
6127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
---|
6128 | $as_echo "$DUMPBIN" >&6; } |
---|
6129 | else |
---|
6130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6131 | $as_echo "no" >&6; } |
---|
6132 | fi |
---|
6133 | |
---|
6134 | |
---|
6135 | test -n "$DUMPBIN" && break |
---|
6136 | done |
---|
6137 | fi |
---|
6138 | if test -z "$DUMPBIN"; then |
---|
6139 | ac_ct_DUMPBIN=$DUMPBIN |
---|
6140 | for ac_prog in dumpbin "link -dump" |
---|
6141 | do |
---|
6142 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
6143 | set dummy $ac_prog; ac_word=$2 |
---|
6144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6145 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6146 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
---|
6147 | $as_echo_n "(cached) " >&6 |
---|
6148 | else |
---|
6149 | if test -n "$ac_ct_DUMPBIN"; then |
---|
6150 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
---|
6151 | else |
---|
6152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6153 | for as_dir in $PATH |
---|
6154 | do |
---|
6155 | IFS=$as_save_IFS |
---|
6156 | test -z "$as_dir" && as_dir=. |
---|
6157 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6158 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6159 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
---|
6160 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6161 | break 2 |
---|
6162 | fi |
---|
6163 | done |
---|
6164 | done |
---|
6165 | IFS=$as_save_IFS |
---|
6166 | |
---|
6167 | fi |
---|
6168 | fi |
---|
6169 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
---|
6170 | if test -n "$ac_ct_DUMPBIN"; then |
---|
6171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
---|
6172 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
---|
6173 | else |
---|
6174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6175 | $as_echo "no" >&6; } |
---|
6176 | fi |
---|
6177 | |
---|
6178 | |
---|
6179 | test -n "$ac_ct_DUMPBIN" && break |
---|
6180 | done |
---|
6181 | |
---|
6182 | if test "x$ac_ct_DUMPBIN" = x; then |
---|
6183 | DUMPBIN=":" |
---|
6184 | else |
---|
6185 | case $cross_compiling:$ac_tool_warned in |
---|
6186 | yes:) |
---|
6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6188 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6189 | ac_tool_warned=yes ;; |
---|
6190 | esac |
---|
6191 | DUMPBIN=$ac_ct_DUMPBIN |
---|
6192 | fi |
---|
6193 | fi |
---|
6194 | |
---|
6195 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
---|
6196 | *COFF*) |
---|
6197 | DUMPBIN="$DUMPBIN -symbols" |
---|
6198 | ;; |
---|
6199 | *) |
---|
6200 | DUMPBIN=: |
---|
6201 | ;; |
---|
6202 | esac |
---|
6203 | fi |
---|
6204 | |
---|
6205 | if test "$DUMPBIN" != ":"; then |
---|
6206 | NM="$DUMPBIN" |
---|
6207 | fi |
---|
6208 | fi |
---|
6209 | test -z "$NM" && NM=nm |
---|
6210 | |
---|
6211 | |
---|
6212 | |
---|
6213 | |
---|
6214 | |
---|
6215 | |
---|
6216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
---|
6217 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
---|
6218 | if ${lt_cv_nm_interface+:} false; then : |
---|
6219 | $as_echo_n "(cached) " >&6 |
---|
6220 | else |
---|
6221 | lt_cv_nm_interface="BSD nm" |
---|
6222 | echo "int some_variable = 0;" > conftest.$ac_ext |
---|
6223 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
---|
6224 | (eval "$ac_compile" 2>conftest.err) |
---|
6225 | cat conftest.err >&5 |
---|
6226 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
---|
6227 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
---|
6228 | cat conftest.err >&5 |
---|
6229 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
---|
6230 | cat conftest.out >&5 |
---|
6231 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
---|
6232 | lt_cv_nm_interface="MS dumpbin" |
---|
6233 | fi |
---|
6234 | rm -f conftest* |
---|
6235 | fi |
---|
6236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
---|
6237 | $as_echo "$lt_cv_nm_interface" >&6; } |
---|
6238 | |
---|
6239 | # find the maximum length of command line arguments |
---|
6240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
---|
6241 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
---|
6242 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
---|
6243 | $as_echo_n "(cached) " >&6 |
---|
6244 | else |
---|
6245 | i=0 |
---|
6246 | teststring="ABCD" |
---|
6247 | |
---|
6248 | case $build_os in |
---|
6249 | msdosdjgpp*) |
---|
6250 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
---|
6251 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
---|
6252 | # during glob expansion). Even if it were fixed, the result of this |
---|
6253 | # check would be larger than it should be. |
---|
6254 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
---|
6255 | ;; |
---|
6256 | |
---|
6257 | gnu*) |
---|
6258 | # Under GNU Hurd, this test is not required because there is |
---|
6259 | # no limit to the length of command line arguments. |
---|
6260 | # Libtool will interpret -1 as no limit whatsoever |
---|
6261 | lt_cv_sys_max_cmd_len=-1; |
---|
6262 | ;; |
---|
6263 | |
---|
6264 | cygwin* | mingw* | cegcc*) |
---|
6265 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
---|
6266 | # about 5 minutes as the teststring grows exponentially. |
---|
6267 | # Worse, since 9x/ME are not pre-emptively multitasking, |
---|
6268 | # you end up with a "frozen" computer, even though with patience |
---|
6269 | # the test eventually succeeds (with a max line length of 256k). |
---|
6270 | # Instead, let's just punt: use the minimum linelength reported by |
---|
6271 | # all of the supported platforms: 8192 (on NT/2K/XP). |
---|
6272 | lt_cv_sys_max_cmd_len=8192; |
---|
6273 | ;; |
---|
6274 | |
---|
6275 | mint*) |
---|
6276 | # On MiNT this can take a long time and run out of memory. |
---|
6277 | lt_cv_sys_max_cmd_len=8192; |
---|
6278 | ;; |
---|
6279 | |
---|
6280 | amigaos*) |
---|
6281 | # On AmigaOS with pdksh, this test takes hours, literally. |
---|
6282 | # So we just punt and use a minimum line length of 8192. |
---|
6283 | lt_cv_sys_max_cmd_len=8192; |
---|
6284 | ;; |
---|
6285 | |
---|
6286 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
---|
6287 | # This has been around since 386BSD, at least. Likely further. |
---|
6288 | if test -x /sbin/sysctl; then |
---|
6289 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
---|
6290 | elif test -x /usr/sbin/sysctl; then |
---|
6291 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
---|
6292 | else |
---|
6293 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
---|
6294 | fi |
---|
6295 | # And add a safety zone |
---|
6296 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
6297 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
6298 | ;; |
---|
6299 | |
---|
6300 | interix*) |
---|
6301 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
---|
6302 | lt_cv_sys_max_cmd_len=196608 |
---|
6303 | ;; |
---|
6304 | |
---|
6305 | os2*) |
---|
6306 | # The test takes a long time on OS/2. |
---|
6307 | lt_cv_sys_max_cmd_len=8192 |
---|
6308 | ;; |
---|
6309 | |
---|
6310 | osf*) |
---|
6311 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
---|
6312 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
---|
6313 | # nice to cause kernel panics so lets avoid the loop below. |
---|
6314 | # First set a reasonable default. |
---|
6315 | lt_cv_sys_max_cmd_len=16384 |
---|
6316 | # |
---|
6317 | if test -x /sbin/sysconfig; then |
---|
6318 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
---|
6319 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
---|
6320 | esac |
---|
6321 | fi |
---|
6322 | ;; |
---|
6323 | sco3.2v5*) |
---|
6324 | lt_cv_sys_max_cmd_len=102400 |
---|
6325 | ;; |
---|
6326 | sysv5* | sco5v6* | sysv4.2uw2*) |
---|
6327 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
---|
6328 | if test -n "$kargmax"; then |
---|
6329 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
---|
6330 | else |
---|
6331 | lt_cv_sys_max_cmd_len=32768 |
---|
6332 | fi |
---|
6333 | ;; |
---|
6334 | *) |
---|
6335 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
---|
6336 | if test -n "$lt_cv_sys_max_cmd_len"; then |
---|
6337 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
6338 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
6339 | else |
---|
6340 | # Make teststring a little bigger before we do anything with it. |
---|
6341 | # a 1K string should be a reasonable start. |
---|
6342 | for i in 1 2 3 4 5 6 7 8 ; do |
---|
6343 | teststring=$teststring$teststring |
---|
6344 | done |
---|
6345 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
---|
6346 | # If test is not a shell built-in, we'll probably end up computing a |
---|
6347 | # maximum length that is only half of the actual maximum length, but |
---|
6348 | # we can't tell. |
---|
6349 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
---|
6350 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
---|
6351 | test $i != 17 # 1/2 MB should be enough |
---|
6352 | do |
---|
6353 | i=`expr $i + 1` |
---|
6354 | teststring=$teststring$teststring |
---|
6355 | done |
---|
6356 | # Only check the string length outside the loop. |
---|
6357 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
---|
6358 | teststring= |
---|
6359 | # Add a significant safety factor because C++ compilers can tack on |
---|
6360 | # massive amounts of additional arguments before passing them to the |
---|
6361 | # linker. It appears as though 1/2 is a usable value. |
---|
6362 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
---|
6363 | fi |
---|
6364 | ;; |
---|
6365 | esac |
---|
6366 | |
---|
6367 | fi |
---|
6368 | |
---|
6369 | if test -n $lt_cv_sys_max_cmd_len ; then |
---|
6370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
---|
6371 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
---|
6372 | else |
---|
6373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
---|
6374 | $as_echo "none" >&6; } |
---|
6375 | fi |
---|
6376 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
6377 | |
---|
6378 | |
---|
6379 | |
---|
6380 | |
---|
6381 | |
---|
6382 | |
---|
6383 | : ${CP="cp -f"} |
---|
6384 | : ${MV="mv -f"} |
---|
6385 | : ${RM="rm -f"} |
---|
6386 | |
---|
6387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
---|
6388 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
---|
6389 | # Try some XSI features |
---|
6390 | xsi_shell=no |
---|
6391 | ( _lt_dummy="a/b/c" |
---|
6392 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
---|
6393 | = c,a/b,b/c, \ |
---|
6394 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
---|
6395 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
---|
6396 | && xsi_shell=yes |
---|
6397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
---|
6398 | $as_echo "$xsi_shell" >&6; } |
---|
6399 | |
---|
6400 | |
---|
6401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
---|
6402 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
---|
6403 | lt_shell_append=no |
---|
6404 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
---|
6405 | >/dev/null 2>&1 \ |
---|
6406 | && lt_shell_append=yes |
---|
6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
---|
6408 | $as_echo "$lt_shell_append" >&6; } |
---|
6409 | |
---|
6410 | |
---|
6411 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
6412 | lt_unset=unset |
---|
6413 | else |
---|
6414 | lt_unset=false |
---|
6415 | fi |
---|
6416 | |
---|
6417 | |
---|
6418 | |
---|
6419 | |
---|
6420 | |
---|
6421 | # test EBCDIC or ASCII |
---|
6422 | case `echo X|tr X '\101'` in |
---|
6423 | A) # ASCII based system |
---|
6424 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
---|
6425 | lt_SP2NL='tr \040 \012' |
---|
6426 | lt_NL2SP='tr \015\012 \040\040' |
---|
6427 | ;; |
---|
6428 | *) # EBCDIC based system |
---|
6429 | lt_SP2NL='tr \100 \n' |
---|
6430 | lt_NL2SP='tr \r\n \100\100' |
---|
6431 | ;; |
---|
6432 | esac |
---|
6433 | |
---|
6434 | |
---|
6435 | |
---|
6436 | |
---|
6437 | |
---|
6438 | |
---|
6439 | |
---|
6440 | |
---|
6441 | |
---|
6442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
---|
6443 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
---|
6444 | if ${lt_cv_to_host_file_cmd+:} false; then : |
---|
6445 | $as_echo_n "(cached) " >&6 |
---|
6446 | else |
---|
6447 | case $host in |
---|
6448 | *-*-mingw* ) |
---|
6449 | case $build in |
---|
6450 | *-*-mingw* ) # actually msys |
---|
6451 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
---|
6452 | ;; |
---|
6453 | *-*-cygwin* ) |
---|
6454 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
---|
6455 | ;; |
---|
6456 | * ) # otherwise, assume *nix |
---|
6457 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
---|
6458 | ;; |
---|
6459 | esac |
---|
6460 | ;; |
---|
6461 | *-*-cygwin* ) |
---|
6462 | case $build in |
---|
6463 | *-*-mingw* ) # actually msys |
---|
6464 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
---|
6465 | ;; |
---|
6466 | *-*-cygwin* ) |
---|
6467 | lt_cv_to_host_file_cmd=func_convert_file_noop |
---|
6468 | ;; |
---|
6469 | * ) # otherwise, assume *nix |
---|
6470 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
---|
6471 | ;; |
---|
6472 | esac |
---|
6473 | ;; |
---|
6474 | * ) # unhandled hosts (and "normal" native builds) |
---|
6475 | lt_cv_to_host_file_cmd=func_convert_file_noop |
---|
6476 | ;; |
---|
6477 | esac |
---|
6478 | |
---|
6479 | fi |
---|
6480 | |
---|
6481 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
---|
6482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
---|
6483 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
---|
6484 | |
---|
6485 | |
---|
6486 | |
---|
6487 | |
---|
6488 | |
---|
6489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
---|
6490 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
---|
6491 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
---|
6492 | $as_echo_n "(cached) " >&6 |
---|
6493 | else |
---|
6494 | #assume ordinary cross tools, or native build. |
---|
6495 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
---|
6496 | case $host in |
---|
6497 | *-*-mingw* ) |
---|
6498 | case $build in |
---|
6499 | *-*-mingw* ) # actually msys |
---|
6500 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
---|
6501 | ;; |
---|
6502 | esac |
---|
6503 | ;; |
---|
6504 | esac |
---|
6505 | |
---|
6506 | fi |
---|
6507 | |
---|
6508 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
---|
6509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
---|
6510 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
---|
6511 | |
---|
6512 | |
---|
6513 | |
---|
6514 | |
---|
6515 | |
---|
6516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
---|
6517 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
---|
6518 | if ${lt_cv_ld_reload_flag+:} false; then : |
---|
6519 | $as_echo_n "(cached) " >&6 |
---|
6520 | else |
---|
6521 | lt_cv_ld_reload_flag='-r' |
---|
6522 | fi |
---|
6523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
---|
6524 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
---|
6525 | reload_flag=$lt_cv_ld_reload_flag |
---|
6526 | case $reload_flag in |
---|
6527 | "" | " "*) ;; |
---|
6528 | *) reload_flag=" $reload_flag" ;; |
---|
6529 | esac |
---|
6530 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
6531 | case $host_os in |
---|
6532 | cygwin* | mingw* | pw32* | cegcc*) |
---|
6533 | if test "$GCC" != yes; then |
---|
6534 | reload_cmds=false |
---|
6535 | fi |
---|
6536 | ;; |
---|
6537 | darwin*) |
---|
6538 | if test "$GCC" = yes; then |
---|
6539 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
---|
6540 | else |
---|
6541 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
6542 | fi |
---|
6543 | ;; |
---|
6544 | esac |
---|
6545 | |
---|
6546 | |
---|
6547 | |
---|
6548 | |
---|
6549 | |
---|
6550 | |
---|
6551 | |
---|
6552 | |
---|
6553 | |
---|
6554 | if test -n "$ac_tool_prefix"; then |
---|
6555 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
---|
6556 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
---|
6557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6558 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6559 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
---|
6560 | $as_echo_n "(cached) " >&6 |
---|
6561 | else |
---|
6562 | if test -n "$OBJDUMP"; then |
---|
6563 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
---|
6564 | else |
---|
6565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6566 | for as_dir in $PATH |
---|
6567 | do |
---|
6568 | IFS=$as_save_IFS |
---|
6569 | test -z "$as_dir" && as_dir=. |
---|
6570 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6571 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6572 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
---|
6573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6574 | break 2 |
---|
6575 | fi |
---|
6576 | done |
---|
6577 | done |
---|
6578 | IFS=$as_save_IFS |
---|
6579 | |
---|
6580 | fi |
---|
6581 | fi |
---|
6582 | OBJDUMP=$ac_cv_prog_OBJDUMP |
---|
6583 | if test -n "$OBJDUMP"; then |
---|
6584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
---|
6585 | $as_echo "$OBJDUMP" >&6; } |
---|
6586 | else |
---|
6587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6588 | $as_echo "no" >&6; } |
---|
6589 | fi |
---|
6590 | |
---|
6591 | |
---|
6592 | fi |
---|
6593 | if test -z "$ac_cv_prog_OBJDUMP"; then |
---|
6594 | ac_ct_OBJDUMP=$OBJDUMP |
---|
6595 | # Extract the first word of "objdump", so it can be a program name with args. |
---|
6596 | set dummy objdump; ac_word=$2 |
---|
6597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6598 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6599 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
---|
6600 | $as_echo_n "(cached) " >&6 |
---|
6601 | else |
---|
6602 | if test -n "$ac_ct_OBJDUMP"; then |
---|
6603 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
---|
6604 | else |
---|
6605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6606 | for as_dir in $PATH |
---|
6607 | do |
---|
6608 | IFS=$as_save_IFS |
---|
6609 | test -z "$as_dir" && as_dir=. |
---|
6610 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6611 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6612 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
---|
6613 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6614 | break 2 |
---|
6615 | fi |
---|
6616 | done |
---|
6617 | done |
---|
6618 | IFS=$as_save_IFS |
---|
6619 | |
---|
6620 | fi |
---|
6621 | fi |
---|
6622 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
---|
6623 | if test -n "$ac_ct_OBJDUMP"; then |
---|
6624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
---|
6625 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
---|
6626 | else |
---|
6627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6628 | $as_echo "no" >&6; } |
---|
6629 | fi |
---|
6630 | |
---|
6631 | if test "x$ac_ct_OBJDUMP" = x; then |
---|
6632 | OBJDUMP="false" |
---|
6633 | else |
---|
6634 | case $cross_compiling:$ac_tool_warned in |
---|
6635 | yes:) |
---|
6636 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6637 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6638 | ac_tool_warned=yes ;; |
---|
6639 | esac |
---|
6640 | OBJDUMP=$ac_ct_OBJDUMP |
---|
6641 | fi |
---|
6642 | else |
---|
6643 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
---|
6644 | fi |
---|
6645 | |
---|
6646 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
6647 | |
---|
6648 | |
---|
6649 | |
---|
6650 | |
---|
6651 | |
---|
6652 | |
---|
6653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
---|
6654 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
---|
6655 | if ${lt_cv_deplibs_check_method+:} false; then : |
---|
6656 | $as_echo_n "(cached) " >&6 |
---|
6657 | else |
---|
6658 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
6659 | lt_cv_file_magic_test_file= |
---|
6660 | lt_cv_deplibs_check_method='unknown' |
---|
6661 | # Need to set the preceding variable on all platforms that support |
---|
6662 | # interlibrary dependencies. |
---|
6663 | # 'none' -- dependencies not supported. |
---|
6664 | # `unknown' -- same as none, but documents that we really don't know. |
---|
6665 | # 'pass_all' -- all dependencies passed with no checks. |
---|
6666 | # 'test_compile' -- check by making test program. |
---|
6667 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
6668 | # which responds to the $file_magic_cmd with a given extended regex. |
---|
6669 | # If you have `file' or equivalent on your system and you're not sure |
---|
6670 | # whether `pass_all' will *always* work, you probably want this one. |
---|
6671 | |
---|
6672 | case $host_os in |
---|
6673 | aix[4-9]*) |
---|
6674 | lt_cv_deplibs_check_method=pass_all |
---|
6675 | ;; |
---|
6676 | |
---|
6677 | beos*) |
---|
6678 | lt_cv_deplibs_check_method=pass_all |
---|
6679 | ;; |
---|
6680 | |
---|
6681 | bsdi[45]*) |
---|
6682 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
6683 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
6684 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
6685 | ;; |
---|
6686 | |
---|
6687 | cygwin*) |
---|
6688 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
6689 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
6690 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
6691 | ;; |
---|
6692 | |
---|
6693 | mingw* | pw32*) |
---|
6694 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
6695 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
---|
6696 | # unless we find 'file', for example because we are cross-compiling. |
---|
6697 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
---|
6698 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
---|
6699 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
6700 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
6701 | else |
---|
6702 | # Keep this pattern in sync with the one in func_win32_libid. |
---|
6703 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
---|
6704 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
6705 | fi |
---|
6706 | ;; |
---|
6707 | |
---|
6708 | cegcc*) |
---|
6709 | # use the weaker test based on 'objdump'. See mingw*. |
---|
6710 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
---|
6711 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
6712 | ;; |
---|
6713 | |
---|
6714 | darwin* | rhapsody*) |
---|
6715 | lt_cv_deplibs_check_method=pass_all |
---|
6716 | ;; |
---|
6717 | |
---|
6718 | freebsd* | dragonfly*) |
---|
6719 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
---|
6720 | case $host_cpu in |
---|
6721 | i*86 ) |
---|
6722 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
6723 | # Let's accept both of them until this is cleared up. |
---|
6724 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
---|
6725 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
6726 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
6727 | ;; |
---|
6728 | esac |
---|
6729 | else |
---|
6730 | lt_cv_deplibs_check_method=pass_all |
---|
6731 | fi |
---|
6732 | ;; |
---|
6733 | |
---|
6734 | gnu*) |
---|
6735 | lt_cv_deplibs_check_method=pass_all |
---|
6736 | ;; |
---|
6737 | |
---|
6738 | haiku*) |
---|
6739 | lt_cv_deplibs_check_method=pass_all |
---|
6740 | ;; |
---|
6741 | |
---|
6742 | hpux10.20* | hpux11*) |
---|
6743 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
6744 | case $host_cpu in |
---|
6745 | ia64*) |
---|
6746 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
---|
6747 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
6748 | ;; |
---|
6749 | hppa*64*) |
---|
6750 | 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]' |
---|
6751 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
6752 | ;; |
---|
6753 | *) |
---|
6754 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
---|
6755 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
6756 | ;; |
---|
6757 | esac |
---|
6758 | ;; |
---|
6759 | |
---|
6760 | interix[3-9]*) |
---|
6761 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
---|
6762 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
---|
6763 | ;; |
---|
6764 | |
---|
6765 | irix5* | irix6* | nonstopux*) |
---|
6766 | case $LD in |
---|
6767 | *-32|*"-32 ") libmagic=32-bit;; |
---|
6768 | *-n32|*"-n32 ") libmagic=N32;; |
---|
6769 | *-64|*"-64 ") libmagic=64-bit;; |
---|
6770 | *) libmagic=never-match;; |
---|
6771 | esac |
---|
6772 | lt_cv_deplibs_check_method=pass_all |
---|
6773 | ;; |
---|
6774 | |
---|
6775 | # This must be glibc/ELF. |
---|
6776 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
---|
6777 | lt_cv_deplibs_check_method=pass_all |
---|
6778 | ;; |
---|
6779 | |
---|
6780 | netbsd*) |
---|
6781 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
---|
6782 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
6783 | else |
---|
6784 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
---|
6785 | fi |
---|
6786 | ;; |
---|
6787 | |
---|
6788 | newos6*) |
---|
6789 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
6790 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
6791 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
6792 | ;; |
---|
6793 | |
---|
6794 | *nto* | *qnx*) |
---|
6795 | lt_cv_deplibs_check_method=pass_all |
---|
6796 | ;; |
---|
6797 | |
---|
6798 | openbsd*) |
---|
6799 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
6800 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
---|
6801 | else |
---|
6802 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
6803 | fi |
---|
6804 | ;; |
---|
6805 | |
---|
6806 | osf3* | osf4* | osf5*) |
---|
6807 | lt_cv_deplibs_check_method=pass_all |
---|
6808 | ;; |
---|
6809 | |
---|
6810 | rdos*) |
---|
6811 | lt_cv_deplibs_check_method=pass_all |
---|
6812 | ;; |
---|
6813 | |
---|
6814 | solaris*) |
---|
6815 | lt_cv_deplibs_check_method=pass_all |
---|
6816 | ;; |
---|
6817 | |
---|
6818 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
6819 | lt_cv_deplibs_check_method=pass_all |
---|
6820 | ;; |
---|
6821 | |
---|
6822 | sysv4 | sysv4.3*) |
---|
6823 | case $host_vendor in |
---|
6824 | motorola) |
---|
6825 | 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]' |
---|
6826 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
6827 | ;; |
---|
6828 | ncr) |
---|
6829 | lt_cv_deplibs_check_method=pass_all |
---|
6830 | ;; |
---|
6831 | sequent) |
---|
6832 | lt_cv_file_magic_cmd='/bin/file' |
---|
6833 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
6834 | ;; |
---|
6835 | sni) |
---|
6836 | lt_cv_file_magic_cmd='/bin/file' |
---|
6837 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
6838 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
6839 | ;; |
---|
6840 | siemens) |
---|
6841 | lt_cv_deplibs_check_method=pass_all |
---|
6842 | ;; |
---|
6843 | pc) |
---|
6844 | lt_cv_deplibs_check_method=pass_all |
---|
6845 | ;; |
---|
6846 | esac |
---|
6847 | ;; |
---|
6848 | |
---|
6849 | tpf*) |
---|
6850 | lt_cv_deplibs_check_method=pass_all |
---|
6851 | ;; |
---|
6852 | esac |
---|
6853 | |
---|
6854 | fi |
---|
6855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
---|
6856 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
---|
6857 | |
---|
6858 | file_magic_glob= |
---|
6859 | want_nocaseglob=no |
---|
6860 | if test "$build" = "$host"; then |
---|
6861 | case $host_os in |
---|
6862 | mingw* | pw32*) |
---|
6863 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
---|
6864 | want_nocaseglob=yes |
---|
6865 | else |
---|
6866 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
---|
6867 | fi |
---|
6868 | ;; |
---|
6869 | esac |
---|
6870 | fi |
---|
6871 | |
---|
6872 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
6873 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
6874 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
6875 | |
---|
6876 | |
---|
6877 | |
---|
6878 | |
---|
6879 | |
---|
6880 | |
---|
6881 | |
---|
6882 | |
---|
6883 | |
---|
6884 | |
---|
6885 | |
---|
6886 | |
---|
6887 | |
---|
6888 | |
---|
6889 | |
---|
6890 | |
---|
6891 | |
---|
6892 | |
---|
6893 | |
---|
6894 | |
---|
6895 | |
---|
6896 | |
---|
6897 | if test -n "$ac_tool_prefix"; then |
---|
6898 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
---|
6899 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
---|
6900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6901 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6902 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
---|
6903 | $as_echo_n "(cached) " >&6 |
---|
6904 | else |
---|
6905 | if test -n "$DLLTOOL"; then |
---|
6906 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
---|
6907 | else |
---|
6908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6909 | for as_dir in $PATH |
---|
6910 | do |
---|
6911 | IFS=$as_save_IFS |
---|
6912 | test -z "$as_dir" && as_dir=. |
---|
6913 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6914 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6915 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
---|
6916 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6917 | break 2 |
---|
6918 | fi |
---|
6919 | done |
---|
6920 | done |
---|
6921 | IFS=$as_save_IFS |
---|
6922 | |
---|
6923 | fi |
---|
6924 | fi |
---|
6925 | DLLTOOL=$ac_cv_prog_DLLTOOL |
---|
6926 | if test -n "$DLLTOOL"; then |
---|
6927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
---|
6928 | $as_echo "$DLLTOOL" >&6; } |
---|
6929 | else |
---|
6930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6931 | $as_echo "no" >&6; } |
---|
6932 | fi |
---|
6933 | |
---|
6934 | |
---|
6935 | fi |
---|
6936 | if test -z "$ac_cv_prog_DLLTOOL"; then |
---|
6937 | ac_ct_DLLTOOL=$DLLTOOL |
---|
6938 | # Extract the first word of "dlltool", so it can be a program name with args. |
---|
6939 | set dummy dlltool; ac_word=$2 |
---|
6940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6941 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6942 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
---|
6943 | $as_echo_n "(cached) " >&6 |
---|
6944 | else |
---|
6945 | if test -n "$ac_ct_DLLTOOL"; then |
---|
6946 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
---|
6947 | else |
---|
6948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6949 | for as_dir in $PATH |
---|
6950 | do |
---|
6951 | IFS=$as_save_IFS |
---|
6952 | test -z "$as_dir" && as_dir=. |
---|
6953 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6954 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6955 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
---|
6956 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6957 | break 2 |
---|
6958 | fi |
---|
6959 | done |
---|
6960 | done |
---|
6961 | IFS=$as_save_IFS |
---|
6962 | |
---|
6963 | fi |
---|
6964 | fi |
---|
6965 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
---|
6966 | if test -n "$ac_ct_DLLTOOL"; then |
---|
6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
---|
6968 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
---|
6969 | else |
---|
6970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6971 | $as_echo "no" >&6; } |
---|
6972 | fi |
---|
6973 | |
---|
6974 | if test "x$ac_ct_DLLTOOL" = x; then |
---|
6975 | DLLTOOL="false" |
---|
6976 | else |
---|
6977 | case $cross_compiling:$ac_tool_warned in |
---|
6978 | yes:) |
---|
6979 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6980 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6981 | ac_tool_warned=yes ;; |
---|
6982 | esac |
---|
6983 | DLLTOOL=$ac_ct_DLLTOOL |
---|
6984 | fi |
---|
6985 | else |
---|
6986 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
---|
6987 | fi |
---|
6988 | |
---|
6989 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
6990 | |
---|
6991 | |
---|
6992 | |
---|
6993 | |
---|
6994 | |
---|
6995 | |
---|
6996 | |
---|
6997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
---|
6998 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
---|
6999 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
---|
7000 | $as_echo_n "(cached) " >&6 |
---|
7001 | else |
---|
7002 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
---|
7003 | |
---|
7004 | case $host_os in |
---|
7005 | cygwin* | mingw* | pw32* | cegcc*) |
---|
7006 | # two different shell functions defined in ltmain.sh |
---|
7007 | # decide which to use based on capabilities of $DLLTOOL |
---|
7008 | case `$DLLTOOL --help 2>&1` in |
---|
7009 | *--identify-strict*) |
---|
7010 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
---|
7011 | ;; |
---|
7012 | *) |
---|
7013 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
---|
7014 | ;; |
---|
7015 | esac |
---|
7016 | ;; |
---|
7017 | *) |
---|
7018 | # fallback: assume linklib IS sharedlib |
---|
7019 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
---|
7020 | ;; |
---|
7021 | esac |
---|
7022 | |
---|
7023 | fi |
---|
7024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
---|
7025 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
---|
7026 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
---|
7027 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
---|
7028 | |
---|
7029 | |
---|
7030 | |
---|
7031 | |
---|
7032 | |
---|
7033 | |
---|
7034 | |
---|
7035 | |
---|
7036 | if test -n "$ac_tool_prefix"; then |
---|
7037 | for ac_prog in ar |
---|
7038 | do |
---|
7039 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
7040 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7042 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7043 | if ${ac_cv_prog_AR+:} false; then : |
---|
7044 | $as_echo_n "(cached) " >&6 |
---|
7045 | else |
---|
7046 | if test -n "$AR"; then |
---|
7047 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
7048 | else |
---|
7049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7050 | for as_dir in $PATH |
---|
7051 | do |
---|
7052 | IFS=$as_save_IFS |
---|
7053 | test -z "$as_dir" && as_dir=. |
---|
7054 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7055 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7056 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
---|
7057 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7058 | break 2 |
---|
7059 | fi |
---|
7060 | done |
---|
7061 | done |
---|
7062 | IFS=$as_save_IFS |
---|
7063 | |
---|
7064 | fi |
---|
7065 | fi |
---|
7066 | AR=$ac_cv_prog_AR |
---|
7067 | if test -n "$AR"; then |
---|
7068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
---|
7069 | $as_echo "$AR" >&6; } |
---|
7070 | else |
---|
7071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7072 | $as_echo "no" >&6; } |
---|
7073 | fi |
---|
7074 | |
---|
7075 | |
---|
7076 | test -n "$AR" && break |
---|
7077 | done |
---|
7078 | fi |
---|
7079 | if test -z "$AR"; then |
---|
7080 | ac_ct_AR=$AR |
---|
7081 | for ac_prog in ar |
---|
7082 | do |
---|
7083 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
7084 | set dummy $ac_prog; ac_word=$2 |
---|
7085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7086 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7087 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
---|
7088 | $as_echo_n "(cached) " >&6 |
---|
7089 | else |
---|
7090 | if test -n "$ac_ct_AR"; then |
---|
7091 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
---|
7092 | else |
---|
7093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7094 | for as_dir in $PATH |
---|
7095 | do |
---|
7096 | IFS=$as_save_IFS |
---|
7097 | test -z "$as_dir" && as_dir=. |
---|
7098 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7099 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7100 | ac_cv_prog_ac_ct_AR="$ac_prog" |
---|
7101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7102 | break 2 |
---|
7103 | fi |
---|
7104 | done |
---|
7105 | done |
---|
7106 | IFS=$as_save_IFS |
---|
7107 | |
---|
7108 | fi |
---|
7109 | fi |
---|
7110 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
---|
7111 | if test -n "$ac_ct_AR"; then |
---|
7112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
---|
7113 | $as_echo "$ac_ct_AR" >&6; } |
---|
7114 | else |
---|
7115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7116 | $as_echo "no" >&6; } |
---|
7117 | fi |
---|
7118 | |
---|
7119 | |
---|
7120 | test -n "$ac_ct_AR" && break |
---|
7121 | done |
---|
7122 | |
---|
7123 | if test "x$ac_ct_AR" = x; then |
---|
7124 | AR="false" |
---|
7125 | else |
---|
7126 | case $cross_compiling:$ac_tool_warned in |
---|
7127 | yes:) |
---|
7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
7129 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
7130 | ac_tool_warned=yes ;; |
---|
7131 | esac |
---|
7132 | AR=$ac_ct_AR |
---|
7133 | fi |
---|
7134 | fi |
---|
7135 | |
---|
7136 | : ${AR=ar} |
---|
7137 | : ${AR_FLAGS=cru} |
---|
7138 | |
---|
7139 | |
---|
7140 | |
---|
7141 | |
---|
7142 | |
---|
7143 | |
---|
7144 | |
---|
7145 | |
---|
7146 | |
---|
7147 | |
---|
7148 | |
---|
7149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
---|
7150 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
---|
7151 | if ${lt_cv_ar_at_file+:} false; then : |
---|
7152 | $as_echo_n "(cached) " >&6 |
---|
7153 | else |
---|
7154 | lt_cv_ar_at_file=no |
---|
7155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7156 | /* end confdefs.h. */ |
---|
7157 | |
---|
7158 | int |
---|
7159 | main () |
---|
7160 | { |
---|
7161 | |
---|
7162 | ; |
---|
7163 | return 0; |
---|
7164 | } |
---|
7165 | _ACEOF |
---|
7166 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
7167 | echo conftest.$ac_objext > conftest.lst |
---|
7168 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
---|
7169 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
---|
7170 | (eval $lt_ar_try) 2>&5 |
---|
7171 | ac_status=$? |
---|
7172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7173 | test $ac_status = 0; } |
---|
7174 | if test "$ac_status" -eq 0; then |
---|
7175 | # Ensure the archiver fails upon bogus file names. |
---|
7176 | rm -f conftest.$ac_objext libconftest.a |
---|
7177 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
---|
7178 | (eval $lt_ar_try) 2>&5 |
---|
7179 | ac_status=$? |
---|
7180 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7181 | test $ac_status = 0; } |
---|
7182 | if test "$ac_status" -ne 0; then |
---|
7183 | lt_cv_ar_at_file=@ |
---|
7184 | fi |
---|
7185 | fi |
---|
7186 | rm -f conftest.* libconftest.a |
---|
7187 | |
---|
7188 | fi |
---|
7189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7190 | |
---|
7191 | fi |
---|
7192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
---|
7193 | $as_echo "$lt_cv_ar_at_file" >&6; } |
---|
7194 | |
---|
7195 | if test "x$lt_cv_ar_at_file" = xno; then |
---|
7196 | archiver_list_spec= |
---|
7197 | else |
---|
7198 | archiver_list_spec=$lt_cv_ar_at_file |
---|
7199 | fi |
---|
7200 | |
---|
7201 | |
---|
7202 | |
---|
7203 | |
---|
7204 | |
---|
7205 | |
---|
7206 | |
---|
7207 | if test -n "$ac_tool_prefix"; then |
---|
7208 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
7209 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
7210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7211 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7212 | if ${ac_cv_prog_STRIP+:} false; then : |
---|
7213 | $as_echo_n "(cached) " >&6 |
---|
7214 | else |
---|
7215 | if test -n "$STRIP"; then |
---|
7216 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
7217 | else |
---|
7218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7219 | for as_dir in $PATH |
---|
7220 | do |
---|
7221 | IFS=$as_save_IFS |
---|
7222 | test -z "$as_dir" && as_dir=. |
---|
7223 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7224 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7225 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
7226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7227 | break 2 |
---|
7228 | fi |
---|
7229 | done |
---|
7230 | done |
---|
7231 | IFS=$as_save_IFS |
---|
7232 | |
---|
7233 | fi |
---|
7234 | fi |
---|
7235 | STRIP=$ac_cv_prog_STRIP |
---|
7236 | if test -n "$STRIP"; then |
---|
7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
---|
7238 | $as_echo "$STRIP" >&6; } |
---|
7239 | else |
---|
7240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7241 | $as_echo "no" >&6; } |
---|
7242 | fi |
---|
7243 | |
---|
7244 | |
---|
7245 | fi |
---|
7246 | if test -z "$ac_cv_prog_STRIP"; then |
---|
7247 | ac_ct_STRIP=$STRIP |
---|
7248 | # Extract the first word of "strip", so it can be a program name with args. |
---|
7249 | set dummy strip; ac_word=$2 |
---|
7250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7251 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7252 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
---|
7253 | $as_echo_n "(cached) " >&6 |
---|
7254 | else |
---|
7255 | if test -n "$ac_ct_STRIP"; then |
---|
7256 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
7257 | else |
---|
7258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7259 | for as_dir in $PATH |
---|
7260 | do |
---|
7261 | IFS=$as_save_IFS |
---|
7262 | test -z "$as_dir" && as_dir=. |
---|
7263 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7264 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7265 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
7266 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7267 | break 2 |
---|
7268 | fi |
---|
7269 | done |
---|
7270 | done |
---|
7271 | IFS=$as_save_IFS |
---|
7272 | |
---|
7273 | fi |
---|
7274 | fi |
---|
7275 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
7276 | if test -n "$ac_ct_STRIP"; then |
---|
7277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
---|
7278 | $as_echo "$ac_ct_STRIP" >&6; } |
---|
7279 | else |
---|
7280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7281 | $as_echo "no" >&6; } |
---|
7282 | fi |
---|
7283 | |
---|
7284 | if test "x$ac_ct_STRIP" = x; then |
---|
7285 | STRIP=":" |
---|
7286 | else |
---|
7287 | case $cross_compiling:$ac_tool_warned in |
---|
7288 | yes:) |
---|
7289 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
7290 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
7291 | ac_tool_warned=yes ;; |
---|
7292 | esac |
---|
7293 | STRIP=$ac_ct_STRIP |
---|
7294 | fi |
---|
7295 | else |
---|
7296 | STRIP="$ac_cv_prog_STRIP" |
---|
7297 | fi |
---|
7298 | |
---|
7299 | test -z "$STRIP" && STRIP=: |
---|
7300 | |
---|
7301 | |
---|
7302 | |
---|
7303 | |
---|
7304 | |
---|
7305 | |
---|
7306 | if test -n "$ac_tool_prefix"; then |
---|
7307 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
7308 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
7309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7310 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7311 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
7312 | $as_echo_n "(cached) " >&6 |
---|
7313 | else |
---|
7314 | if test -n "$RANLIB"; then |
---|
7315 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
7316 | else |
---|
7317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7318 | for as_dir in $PATH |
---|
7319 | do |
---|
7320 | IFS=$as_save_IFS |
---|
7321 | test -z "$as_dir" && as_dir=. |
---|
7322 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7323 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7324 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
7325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7326 | break 2 |
---|
7327 | fi |
---|
7328 | done |
---|
7329 | done |
---|
7330 | IFS=$as_save_IFS |
---|
7331 | |
---|
7332 | fi |
---|
7333 | fi |
---|
7334 | RANLIB=$ac_cv_prog_RANLIB |
---|
7335 | if test -n "$RANLIB"; then |
---|
7336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
7337 | $as_echo "$RANLIB" >&6; } |
---|
7338 | else |
---|
7339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7340 | $as_echo "no" >&6; } |
---|
7341 | fi |
---|
7342 | |
---|
7343 | |
---|
7344 | fi |
---|
7345 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
7346 | ac_ct_RANLIB=$RANLIB |
---|
7347 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
7348 | set dummy ranlib; ac_word=$2 |
---|
7349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7350 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7351 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
7352 | $as_echo_n "(cached) " >&6 |
---|
7353 | else |
---|
7354 | if test -n "$ac_ct_RANLIB"; then |
---|
7355 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
7356 | else |
---|
7357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7358 | for as_dir in $PATH |
---|
7359 | do |
---|
7360 | IFS=$as_save_IFS |
---|
7361 | test -z "$as_dir" && as_dir=. |
---|
7362 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7363 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7364 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
7365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7366 | break 2 |
---|
7367 | fi |
---|
7368 | done |
---|
7369 | done |
---|
7370 | IFS=$as_save_IFS |
---|
7371 | |
---|
7372 | fi |
---|
7373 | fi |
---|
7374 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
7375 | if test -n "$ac_ct_RANLIB"; then |
---|
7376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
7377 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
7378 | else |
---|
7379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7380 | $as_echo "no" >&6; } |
---|
7381 | fi |
---|
7382 | |
---|
7383 | if test "x$ac_ct_RANLIB" = x; then |
---|
7384 | RANLIB=":" |
---|
7385 | else |
---|
7386 | case $cross_compiling:$ac_tool_warned in |
---|
7387 | yes:) |
---|
7388 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
7389 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
7390 | ac_tool_warned=yes ;; |
---|
7391 | esac |
---|
7392 | RANLIB=$ac_ct_RANLIB |
---|
7393 | fi |
---|
7394 | else |
---|
7395 | RANLIB="$ac_cv_prog_RANLIB" |
---|
7396 | fi |
---|
7397 | |
---|
7398 | test -z "$RANLIB" && RANLIB=: |
---|
7399 | |
---|
7400 | |
---|
7401 | |
---|
7402 | |
---|
7403 | |
---|
7404 | |
---|
7405 | # Determine commands to create old-style static archives. |
---|
7406 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
---|
7407 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
7408 | old_postuninstall_cmds= |
---|
7409 | |
---|
7410 | if test -n "$RANLIB"; then |
---|
7411 | case $host_os in |
---|
7412 | openbsd*) |
---|
7413 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
---|
7414 | ;; |
---|
7415 | *) |
---|
7416 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
---|
7417 | ;; |
---|
7418 | esac |
---|
7419 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
---|
7420 | fi |
---|
7421 | |
---|
7422 | case $host_os in |
---|
7423 | darwin*) |
---|
7424 | lock_old_archive_extraction=yes ;; |
---|
7425 | *) |
---|
7426 | lock_old_archive_extraction=no ;; |
---|
7427 | esac |
---|
7428 | |
---|
7429 | |
---|
7430 | |
---|
7431 | |
---|
7432 | |
---|
7433 | |
---|
7434 | |
---|
7435 | |
---|
7436 | |
---|
7437 | |
---|
7438 | |
---|
7439 | |
---|
7440 | |
---|
7441 | |
---|
7442 | |
---|
7443 | |
---|
7444 | |
---|
7445 | |
---|
7446 | |
---|
7447 | |
---|
7448 | |
---|
7449 | |
---|
7450 | |
---|
7451 | |
---|
7452 | |
---|
7453 | |
---|
7454 | |
---|
7455 | |
---|
7456 | |
---|
7457 | |
---|
7458 | |
---|
7459 | |
---|
7460 | |
---|
7461 | |
---|
7462 | |
---|
7463 | |
---|
7464 | |
---|
7465 | |
---|
7466 | |
---|
7467 | # If no C compiler was specified, use CC. |
---|
7468 | LTCC=${LTCC-"$CC"} |
---|
7469 | |
---|
7470 | # If no C compiler flags were specified, use CFLAGS. |
---|
7471 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
7472 | |
---|
7473 | # Allow CC to be a program name with arguments. |
---|
7474 | compiler=$CC |
---|
7475 | |
---|
7476 | |
---|
7477 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
7478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
---|
7479 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
---|
7480 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
---|
7481 | $as_echo_n "(cached) " >&6 |
---|
7482 | else |
---|
7483 | |
---|
7484 | # These are sane defaults that work on at least a few old systems. |
---|
7485 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
7486 | |
---|
7487 | # Character class describing NM global symbol codes. |
---|
7488 | symcode='[BCDEGRST]' |
---|
7489 | |
---|
7490 | # Regexp to match symbols that can be accessed directly from C. |
---|
7491 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
---|
7492 | |
---|
7493 | # Define system-specific variables. |
---|
7494 | case $host_os in |
---|
7495 | aix*) |
---|
7496 | symcode='[BCDT]' |
---|
7497 | ;; |
---|
7498 | cygwin* | mingw* | pw32* | cegcc*) |
---|
7499 | symcode='[ABCDGISTW]' |
---|
7500 | ;; |
---|
7501 | hpux*) |
---|
7502 | if test "$host_cpu" = ia64; then |
---|
7503 | symcode='[ABCDEGRST]' |
---|
7504 | fi |
---|
7505 | ;; |
---|
7506 | irix* | nonstopux*) |
---|
7507 | symcode='[BCDEGRST]' |
---|
7508 | ;; |
---|
7509 | osf*) |
---|
7510 | symcode='[BCDEGQRST]' |
---|
7511 | ;; |
---|
7512 | solaris*) |
---|
7513 | symcode='[BDRT]' |
---|
7514 | ;; |
---|
7515 | sco3.2v5*) |
---|
7516 | symcode='[DT]' |
---|
7517 | ;; |
---|
7518 | sysv4.2uw2*) |
---|
7519 | symcode='[DT]' |
---|
7520 | ;; |
---|
7521 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
---|
7522 | symcode='[ABDT]' |
---|
7523 | ;; |
---|
7524 | sysv4) |
---|
7525 | symcode='[DFNSTU]' |
---|
7526 | ;; |
---|
7527 | esac |
---|
7528 | |
---|
7529 | # If we're using GNU nm, then use its standard symbol codes. |
---|
7530 | case `$NM -V 2>&1` in |
---|
7531 | *GNU* | *'with BFD'*) |
---|
7532 | symcode='[ABCDGIRSTW]' ;; |
---|
7533 | esac |
---|
7534 | |
---|
7535 | # Transform an extracted symbol line into a proper C declaration. |
---|
7536 | # Some systems (esp. on ia64) link data and code symbols differently, |
---|
7537 | # so use this general approach. |
---|
7538 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
7539 | |
---|
7540 | # Transform an extracted symbol line into symbol name and symbol address |
---|
7541 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
---|
7542 | 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'" |
---|
7543 | |
---|
7544 | # Handle CRLF in mingw tool chain |
---|
7545 | opt_cr= |
---|
7546 | case $build_os in |
---|
7547 | mingw*) |
---|
7548 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
7549 | ;; |
---|
7550 | esac |
---|
7551 | |
---|
7552 | # Try without a prefix underscore, then with it. |
---|
7553 | for ac_symprfx in "" "_"; do |
---|
7554 | |
---|
7555 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
---|
7556 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
---|
7557 | |
---|
7558 | # Write the raw and C identifiers. |
---|
7559 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
---|
7560 | # Fake it for dumpbin and say T for any non-static function |
---|
7561 | # and D for any global variable. |
---|
7562 | # Also find C++ and __fastcall symbols from MSVC++, |
---|
7563 | # which start with @ or ?. |
---|
7564 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
---|
7565 | " {last_section=section; section=\$ 3};"\ |
---|
7566 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
---|
7567 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
---|
7568 | " \$ 0!~/External *\|/{next};"\ |
---|
7569 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
---|
7570 | " {if(hide[section]) next};"\ |
---|
7571 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
---|
7572 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
---|
7573 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
---|
7574 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
---|
7575 | " ' prfx=^$ac_symprfx" |
---|
7576 | else |
---|
7577 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
---|
7578 | fi |
---|
7579 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
---|
7580 | |
---|
7581 | # Check to see that the pipe works correctly. |
---|
7582 | pipe_works=no |
---|
7583 | |
---|
7584 | rm -f conftest* |
---|
7585 | cat > conftest.$ac_ext <<_LT_EOF |
---|
7586 | #ifdef __cplusplus |
---|
7587 | extern "C" { |
---|
7588 | #endif |
---|
7589 | char nm_test_var; |
---|
7590 | void nm_test_func(void); |
---|
7591 | void nm_test_func(void){} |
---|
7592 | #ifdef __cplusplus |
---|
7593 | } |
---|
7594 | #endif |
---|
7595 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
7596 | _LT_EOF |
---|
7597 | |
---|
7598 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
7599 | (eval $ac_compile) 2>&5 |
---|
7600 | ac_status=$? |
---|
7601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7602 | test $ac_status = 0; }; then |
---|
7603 | # Now try to grab the symbols. |
---|
7604 | nlist=conftest.nm |
---|
7605 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
---|
7606 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
---|
7607 | ac_status=$? |
---|
7608 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7609 | test $ac_status = 0; } && test -s "$nlist"; then |
---|
7610 | # Try sorting and uniquifying the output. |
---|
7611 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
7612 | mv -f "$nlist"T "$nlist" |
---|
7613 | else |
---|
7614 | rm -f "$nlist"T |
---|
7615 | fi |
---|
7616 | |
---|
7617 | # Make sure that we snagged all the symbols we need. |
---|
7618 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
---|
7619 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
---|
7620 | cat <<_LT_EOF > conftest.$ac_ext |
---|
7621 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
---|
7622 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
---|
7623 | /* DATA imports from DLLs on WIN32 con't be const, because runtime |
---|
7624 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
---|
7625 | # define LT_DLSYM_CONST |
---|
7626 | #elif defined(__osf__) |
---|
7627 | /* This system does not cope well with relocations in const data. */ |
---|
7628 | # define LT_DLSYM_CONST |
---|
7629 | #else |
---|
7630 | # define LT_DLSYM_CONST const |
---|
7631 | #endif |
---|
7632 | |
---|
7633 | #ifdef __cplusplus |
---|
7634 | extern "C" { |
---|
7635 | #endif |
---|
7636 | |
---|
7637 | _LT_EOF |
---|
7638 | # Now generate the symbol file. |
---|
7639 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
---|
7640 | |
---|
7641 | cat <<_LT_EOF >> conftest.$ac_ext |
---|
7642 | |
---|
7643 | /* The mapping between symbol names and symbols. */ |
---|
7644 | LT_DLSYM_CONST struct { |
---|
7645 | const char *name; |
---|
7646 | void *address; |
---|
7647 | } |
---|
7648 | lt__PROGRAM__LTX_preloaded_symbols[] = |
---|
7649 | { |
---|
7650 | { "@PROGRAM@", (void *) 0 }, |
---|
7651 | _LT_EOF |
---|
7652 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
---|
7653 | cat <<\_LT_EOF >> conftest.$ac_ext |
---|
7654 | {0, (void *) 0} |
---|
7655 | }; |
---|
7656 | |
---|
7657 | /* This works around a problem in FreeBSD linker */ |
---|
7658 | #ifdef FREEBSD_WORKAROUND |
---|
7659 | static const void *lt_preloaded_setup() { |
---|
7660 | return lt__PROGRAM__LTX_preloaded_symbols; |
---|
7661 | } |
---|
7662 | #endif |
---|
7663 | |
---|
7664 | #ifdef __cplusplus |
---|
7665 | } |
---|
7666 | #endif |
---|
7667 | _LT_EOF |
---|
7668 | # Now try linking the two files. |
---|
7669 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
7670 | lt_globsym_save_LIBS=$LIBS |
---|
7671 | lt_globsym_save_CFLAGS=$CFLAGS |
---|
7672 | LIBS="conftstm.$ac_objext" |
---|
7673 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
---|
7674 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
---|
7675 | (eval $ac_link) 2>&5 |
---|
7676 | ac_status=$? |
---|
7677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7678 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
---|
7679 | pipe_works=yes |
---|
7680 | fi |
---|
7681 | LIBS=$lt_globsym_save_LIBS |
---|
7682 | CFLAGS=$lt_globsym_save_CFLAGS |
---|
7683 | else |
---|
7684 | echo "cannot find nm_test_func in $nlist" >&5 |
---|
7685 | fi |
---|
7686 | else |
---|
7687 | echo "cannot find nm_test_var in $nlist" >&5 |
---|
7688 | fi |
---|
7689 | else |
---|
7690 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
---|
7691 | fi |
---|
7692 | else |
---|
7693 | echo "$progname: failed program was:" >&5 |
---|
7694 | cat conftest.$ac_ext >&5 |
---|
7695 | fi |
---|
7696 | rm -rf conftest* conftst* |
---|
7697 | |
---|
7698 | # Do not use the global_symbol_pipe unless it works. |
---|
7699 | if test "$pipe_works" = yes; then |
---|
7700 | break |
---|
7701 | else |
---|
7702 | lt_cv_sys_global_symbol_pipe= |
---|
7703 | fi |
---|
7704 | done |
---|
7705 | |
---|
7706 | fi |
---|
7707 | |
---|
7708 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
7709 | lt_cv_sys_global_symbol_to_cdecl= |
---|
7710 | fi |
---|
7711 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
---|
7712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
---|
7713 | $as_echo "failed" >&6; } |
---|
7714 | else |
---|
7715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
---|
7716 | $as_echo "ok" >&6; } |
---|
7717 | fi |
---|
7718 | |
---|
7719 | # Response file support. |
---|
7720 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
---|
7721 | nm_file_list_spec='@' |
---|
7722 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
---|
7723 | nm_file_list_spec='@' |
---|
7724 | fi |
---|
7725 | |
---|
7726 | |
---|
7727 | |
---|
7728 | |
---|
7729 | |
---|
7730 | |
---|
7731 | |
---|
7732 | |
---|
7733 | |
---|
7734 | |
---|
7735 | |
---|
7736 | |
---|
7737 | |
---|
7738 | |
---|
7739 | |
---|
7740 | |
---|
7741 | |
---|
7742 | |
---|
7743 | |
---|
7744 | |
---|
7745 | |
---|
7746 | |
---|
7747 | |
---|
7748 | |
---|
7749 | |
---|
7750 | |
---|
7751 | |
---|
7752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
---|
7753 | $as_echo_n "checking for sysroot... " >&6; } |
---|
7754 | |
---|
7755 | # Check whether --with-sysroot was given. |
---|
7756 | if test "${with_sysroot+set}" = set; then : |
---|
7757 | withval=$with_sysroot; |
---|
7758 | else |
---|
7759 | with_sysroot=no |
---|
7760 | fi |
---|
7761 | |
---|
7762 | |
---|
7763 | lt_sysroot= |
---|
7764 | case ${with_sysroot} in #( |
---|
7765 | yes) |
---|
7766 | if test "$GCC" = yes; then |
---|
7767 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
---|
7768 | fi |
---|
7769 | ;; #( |
---|
7770 | /*) |
---|
7771 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
---|
7772 | ;; #( |
---|
7773 | no|'') |
---|
7774 | ;; #( |
---|
7775 | *) |
---|
7776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
---|
7777 | $as_echo "${with_sysroot}" >&6; } |
---|
7778 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
---|
7779 | ;; |
---|
7780 | esac |
---|
7781 | |
---|
7782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
---|
7783 | $as_echo "${lt_sysroot:-no}" >&6; } |
---|
7784 | |
---|
7785 | |
---|
7786 | |
---|
7787 | |
---|
7788 | |
---|
7789 | # Check whether --enable-libtool-lock was given. |
---|
7790 | if test "${enable_libtool_lock+set}" = set; then : |
---|
7791 | enableval=$enable_libtool_lock; |
---|
7792 | fi |
---|
7793 | |
---|
7794 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
7795 | |
---|
7796 | # Some flags need to be propagated to the compiler or linker for good |
---|
7797 | # libtool support. |
---|
7798 | case $host in |
---|
7799 | ia64-*-hpux*) |
---|
7800 | # Find out which ABI we are using. |
---|
7801 | echo 'int i;' > conftest.$ac_ext |
---|
7802 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
7803 | (eval $ac_compile) 2>&5 |
---|
7804 | ac_status=$? |
---|
7805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7806 | test $ac_status = 0; }; then |
---|
7807 | case `/usr/bin/file conftest.$ac_objext` in |
---|
7808 | *ELF-32*) |
---|
7809 | HPUX_IA64_MODE="32" |
---|
7810 | ;; |
---|
7811 | *ELF-64*) |
---|
7812 | HPUX_IA64_MODE="64" |
---|
7813 | ;; |
---|
7814 | esac |
---|
7815 | fi |
---|
7816 | rm -rf conftest* |
---|
7817 | ;; |
---|
7818 | *-*-irix6*) |
---|
7819 | # Find out which ABI we are using. |
---|
7820 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
---|
7821 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
7822 | (eval $ac_compile) 2>&5 |
---|
7823 | ac_status=$? |
---|
7824 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7825 | test $ac_status = 0; }; then |
---|
7826 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
7827 | case `/usr/bin/file conftest.$ac_objext` in |
---|
7828 | *32-bit*) |
---|
7829 | LD="${LD-ld} -melf32bsmip" |
---|
7830 | ;; |
---|
7831 | *N32*) |
---|
7832 | LD="${LD-ld} -melf32bmipn32" |
---|
7833 | ;; |
---|
7834 | *64-bit*) |
---|
7835 | LD="${LD-ld} -melf64bmip" |
---|
7836 | ;; |
---|
7837 | esac |
---|
7838 | else |
---|
7839 | case `/usr/bin/file conftest.$ac_objext` in |
---|
7840 | *32-bit*) |
---|
7841 | LD="${LD-ld} -32" |
---|
7842 | ;; |
---|
7843 | *N32*) |
---|
7844 | LD="${LD-ld} -n32" |
---|
7845 | ;; |
---|
7846 | *64-bit*) |
---|
7847 | LD="${LD-ld} -64" |
---|
7848 | ;; |
---|
7849 | esac |
---|
7850 | fi |
---|
7851 | fi |
---|
7852 | rm -rf conftest* |
---|
7853 | ;; |
---|
7854 | |
---|
7855 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
---|
7856 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
---|
7857 | # Find out which ABI we are using. |
---|
7858 | echo 'int i;' > conftest.$ac_ext |
---|
7859 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
7860 | (eval $ac_compile) 2>&5 |
---|
7861 | ac_status=$? |
---|
7862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7863 | test $ac_status = 0; }; then |
---|
7864 | case `/usr/bin/file conftest.o` in |
---|
7865 | *32-bit*) |
---|
7866 | case $host in |
---|
7867 | x86_64-*kfreebsd*-gnu) |
---|
7868 | LD="${LD-ld} -m elf_i386_fbsd" |
---|
7869 | ;; |
---|
7870 | x86_64-*linux*) |
---|
7871 | LD="${LD-ld} -m elf_i386" |
---|
7872 | ;; |
---|
7873 | powerpc64le-*linux*) |
---|
7874 | LD="${LD-ld} -m elf32lppclinux" |
---|
7875 | ;; |
---|
7876 | powerpc64-*linux*) |
---|
7877 | LD="${LD-ld} -m elf32ppclinux" |
---|
7878 | ;; |
---|
7879 | s390x-*linux*) |
---|
7880 | LD="${LD-ld} -m elf_s390" |
---|
7881 | ;; |
---|
7882 | sparc64-*linux*) |
---|
7883 | LD="${LD-ld} -m elf32_sparc" |
---|
7884 | ;; |
---|
7885 | esac |
---|
7886 | ;; |
---|
7887 | *64-bit*) |
---|
7888 | case $host in |
---|
7889 | x86_64-*kfreebsd*-gnu) |
---|
7890 | LD="${LD-ld} -m elf_x86_64_fbsd" |
---|
7891 | ;; |
---|
7892 | x86_64-*linux*) |
---|
7893 | LD="${LD-ld} -m elf_x86_64" |
---|
7894 | ;; |
---|
7895 | powerpcle-*linux*) |
---|
7896 | LD="${LD-ld} -m elf64lppc" |
---|
7897 | ;; |
---|
7898 | powerpc-*linux*) |
---|
7899 | LD="${LD-ld} -m elf64ppc" |
---|
7900 | ;; |
---|
7901 | s390*-*linux*|s390*-*tpf*) |
---|
7902 | LD="${LD-ld} -m elf64_s390" |
---|
7903 | ;; |
---|
7904 | sparc*-*linux*) |
---|
7905 | LD="${LD-ld} -m elf64_sparc" |
---|
7906 | ;; |
---|
7907 | esac |
---|
7908 | ;; |
---|
7909 | esac |
---|
7910 | fi |
---|
7911 | rm -rf conftest* |
---|
7912 | ;; |
---|
7913 | |
---|
7914 | *-*-sco3.2v5*) |
---|
7915 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
7916 | SAVE_CFLAGS="$CFLAGS" |
---|
7917 | CFLAGS="$CFLAGS -belf" |
---|
7918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
---|
7919 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
---|
7920 | if ${lt_cv_cc_needs_belf+:} false; then : |
---|
7921 | $as_echo_n "(cached) " >&6 |
---|
7922 | else |
---|
7923 | ac_ext=c |
---|
7924 | ac_cpp='$CPP $CPPFLAGS' |
---|
7925 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7926 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7927 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7928 | |
---|
7929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7930 | /* end confdefs.h. */ |
---|
7931 | |
---|
7932 | int |
---|
7933 | main () |
---|
7934 | { |
---|
7935 | |
---|
7936 | ; |
---|
7937 | return 0; |
---|
7938 | } |
---|
7939 | _ACEOF |
---|
7940 | if ac_fn_c_try_link "$LINENO"; then : |
---|
7941 | lt_cv_cc_needs_belf=yes |
---|
7942 | else |
---|
7943 | lt_cv_cc_needs_belf=no |
---|
7944 | fi |
---|
7945 | rm -f core conftest.err conftest.$ac_objext \ |
---|
7946 | conftest$ac_exeext conftest.$ac_ext |
---|
7947 | ac_ext=c |
---|
7948 | ac_cpp='$CPP $CPPFLAGS' |
---|
7949 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7950 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7951 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7952 | |
---|
7953 | fi |
---|
7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
---|
7955 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
---|
7956 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
7957 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
7958 | CFLAGS="$SAVE_CFLAGS" |
---|
7959 | fi |
---|
7960 | ;; |
---|
7961 | *-*solaris*) |
---|
7962 | # Find out which ABI we are using. |
---|
7963 | echo 'int i;' > conftest.$ac_ext |
---|
7964 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
7965 | (eval $ac_compile) 2>&5 |
---|
7966 | ac_status=$? |
---|
7967 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7968 | test $ac_status = 0; }; then |
---|
7969 | case `/usr/bin/file conftest.o` in |
---|
7970 | *64-bit*) |
---|
7971 | case $lt_cv_prog_gnu_ld in |
---|
7972 | yes*) |
---|
7973 | case $host in |
---|
7974 | i?86-*-solaris*) |
---|
7975 | LD="${LD-ld} -m elf_x86_64" |
---|
7976 | ;; |
---|
7977 | sparc*-*-solaris*) |
---|
7978 | LD="${LD-ld} -m elf64_sparc" |
---|
7979 | ;; |
---|
7980 | esac |
---|
7981 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
---|
7982 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
---|
7983 | LD="${LD-ld}_sol2" |
---|
7984 | fi |
---|
7985 | ;; |
---|
7986 | *) |
---|
7987 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
---|
7988 | LD="${LD-ld} -64" |
---|
7989 | fi |
---|
7990 | ;; |
---|
7991 | esac |
---|
7992 | ;; |
---|
7993 | esac |
---|
7994 | fi |
---|
7995 | rm -rf conftest* |
---|
7996 | ;; |
---|
7997 | esac |
---|
7998 | |
---|
7999 | need_locks="$enable_libtool_lock" |
---|
8000 | |
---|
8001 | if test -n "$ac_tool_prefix"; then |
---|
8002 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
---|
8003 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
---|
8004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8005 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8006 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
---|
8007 | $as_echo_n "(cached) " >&6 |
---|
8008 | else |
---|
8009 | if test -n "$MANIFEST_TOOL"; then |
---|
8010 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
---|
8011 | else |
---|
8012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8013 | for as_dir in $PATH |
---|
8014 | do |
---|
8015 | IFS=$as_save_IFS |
---|
8016 | test -z "$as_dir" && as_dir=. |
---|
8017 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8018 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8019 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
---|
8020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8021 | break 2 |
---|
8022 | fi |
---|
8023 | done |
---|
8024 | done |
---|
8025 | IFS=$as_save_IFS |
---|
8026 | |
---|
8027 | fi |
---|
8028 | fi |
---|
8029 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
---|
8030 | if test -n "$MANIFEST_TOOL"; then |
---|
8031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
---|
8032 | $as_echo "$MANIFEST_TOOL" >&6; } |
---|
8033 | else |
---|
8034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8035 | $as_echo "no" >&6; } |
---|
8036 | fi |
---|
8037 | |
---|
8038 | |
---|
8039 | fi |
---|
8040 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
---|
8041 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
---|
8042 | # Extract the first word of "mt", so it can be a program name with args. |
---|
8043 | set dummy mt; ac_word=$2 |
---|
8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8045 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8046 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
---|
8047 | $as_echo_n "(cached) " >&6 |
---|
8048 | else |
---|
8049 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
---|
8050 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
---|
8051 | else |
---|
8052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8053 | for as_dir in $PATH |
---|
8054 | do |
---|
8055 | IFS=$as_save_IFS |
---|
8056 | test -z "$as_dir" && as_dir=. |
---|
8057 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8058 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8059 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
---|
8060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8061 | break 2 |
---|
8062 | fi |
---|
8063 | done |
---|
8064 | done |
---|
8065 | IFS=$as_save_IFS |
---|
8066 | |
---|
8067 | fi |
---|
8068 | fi |
---|
8069 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
---|
8070 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
---|
8071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
---|
8072 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
---|
8073 | else |
---|
8074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8075 | $as_echo "no" >&6; } |
---|
8076 | fi |
---|
8077 | |
---|
8078 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
---|
8079 | MANIFEST_TOOL=":" |
---|
8080 | else |
---|
8081 | case $cross_compiling:$ac_tool_warned in |
---|
8082 | yes:) |
---|
8083 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
8084 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
8085 | ac_tool_warned=yes ;; |
---|
8086 | esac |
---|
8087 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
---|
8088 | fi |
---|
8089 | else |
---|
8090 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
---|
8091 | fi |
---|
8092 | |
---|
8093 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
---|
8094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
---|
8095 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
---|
8096 | if ${lt_cv_path_mainfest_tool+:} false; then : |
---|
8097 | $as_echo_n "(cached) " >&6 |
---|
8098 | else |
---|
8099 | lt_cv_path_mainfest_tool=no |
---|
8100 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
---|
8101 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
---|
8102 | cat conftest.err >&5 |
---|
8103 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
---|
8104 | lt_cv_path_mainfest_tool=yes |
---|
8105 | fi |
---|
8106 | rm -f conftest* |
---|
8107 | fi |
---|
8108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
---|
8109 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
---|
8110 | if test "x$lt_cv_path_mainfest_tool" != xyes; then |
---|
8111 | MANIFEST_TOOL=: |
---|
8112 | fi |
---|
8113 | |
---|
8114 | |
---|
8115 | |
---|
8116 | |
---|
8117 | |
---|
8118 | |
---|
8119 | case $host_os in |
---|
8120 | rhapsody* | darwin*) |
---|
8121 | if test -n "$ac_tool_prefix"; then |
---|
8122 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
---|
8123 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
---|
8124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8125 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8126 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
---|
8127 | $as_echo_n "(cached) " >&6 |
---|
8128 | else |
---|
8129 | if test -n "$DSYMUTIL"; then |
---|
8130 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
---|
8131 | else |
---|
8132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8133 | for as_dir in $PATH |
---|
8134 | do |
---|
8135 | IFS=$as_save_IFS |
---|
8136 | test -z "$as_dir" && as_dir=. |
---|
8137 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8138 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8139 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
---|
8140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8141 | break 2 |
---|
8142 | fi |
---|
8143 | done |
---|
8144 | done |
---|
8145 | IFS=$as_save_IFS |
---|
8146 | |
---|
8147 | fi |
---|
8148 | fi |
---|
8149 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
---|
8150 | if test -n "$DSYMUTIL"; then |
---|
8151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
---|
8152 | $as_echo "$DSYMUTIL" >&6; } |
---|
8153 | else |
---|
8154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8155 | $as_echo "no" >&6; } |
---|
8156 | fi |
---|
8157 | |
---|
8158 | |
---|
8159 | fi |
---|
8160 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
---|
8161 | ac_ct_DSYMUTIL=$DSYMUTIL |
---|
8162 | # Extract the first word of "dsymutil", so it can be a program name with args. |
---|
8163 | set dummy dsymutil; ac_word=$2 |
---|
8164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8165 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8166 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
---|
8167 | $as_echo_n "(cached) " >&6 |
---|
8168 | else |
---|
8169 | if test -n "$ac_ct_DSYMUTIL"; then |
---|
8170 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
---|
8171 | else |
---|
8172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8173 | for as_dir in $PATH |
---|
8174 | do |
---|
8175 | IFS=$as_save_IFS |
---|
8176 | test -z "$as_dir" && as_dir=. |
---|
8177 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8178 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8179 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
---|
8180 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8181 | break 2 |
---|
8182 | fi |
---|
8183 | done |
---|
8184 | done |
---|
8185 | IFS=$as_save_IFS |
---|
8186 | |
---|
8187 | fi |
---|
8188 | fi |
---|
8189 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
---|
8190 | if test -n "$ac_ct_DSYMUTIL"; then |
---|
8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
---|
8192 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
---|
8193 | else |
---|
8194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8195 | $as_echo "no" >&6; } |
---|
8196 | fi |
---|
8197 | |
---|
8198 | if test "x$ac_ct_DSYMUTIL" = x; then |
---|
8199 | DSYMUTIL=":" |
---|
8200 | else |
---|
8201 | case $cross_compiling:$ac_tool_warned in |
---|
8202 | yes:) |
---|
8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
8204 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
8205 | ac_tool_warned=yes ;; |
---|
8206 | esac |
---|
8207 | DSYMUTIL=$ac_ct_DSYMUTIL |
---|
8208 | fi |
---|
8209 | else |
---|
8210 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
---|
8211 | fi |
---|
8212 | |
---|
8213 | if test -n "$ac_tool_prefix"; then |
---|
8214 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
---|
8215 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
---|
8216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8217 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8218 | if ${ac_cv_prog_NMEDIT+:} false; then : |
---|
8219 | $as_echo_n "(cached) " >&6 |
---|
8220 | else |
---|
8221 | if test -n "$NMEDIT"; then |
---|
8222 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
---|
8223 | else |
---|
8224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8225 | for as_dir in $PATH |
---|
8226 | do |
---|
8227 | IFS=$as_save_IFS |
---|
8228 | test -z "$as_dir" && as_dir=. |
---|
8229 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8230 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8231 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
---|
8232 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8233 | break 2 |
---|
8234 | fi |
---|
8235 | done |
---|
8236 | done |
---|
8237 | IFS=$as_save_IFS |
---|
8238 | |
---|
8239 | fi |
---|
8240 | fi |
---|
8241 | NMEDIT=$ac_cv_prog_NMEDIT |
---|
8242 | if test -n "$NMEDIT"; then |
---|
8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
---|
8244 | $as_echo "$NMEDIT" >&6; } |
---|
8245 | else |
---|
8246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8247 | $as_echo "no" >&6; } |
---|
8248 | fi |
---|
8249 | |
---|
8250 | |
---|
8251 | fi |
---|
8252 | if test -z "$ac_cv_prog_NMEDIT"; then |
---|
8253 | ac_ct_NMEDIT=$NMEDIT |
---|
8254 | # Extract the first word of "nmedit", so it can be a program name with args. |
---|
8255 | set dummy nmedit; ac_word=$2 |
---|
8256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8257 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8258 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
---|
8259 | $as_echo_n "(cached) " >&6 |
---|
8260 | else |
---|
8261 | if test -n "$ac_ct_NMEDIT"; then |
---|
8262 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
---|
8263 | else |
---|
8264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8265 | for as_dir in $PATH |
---|
8266 | do |
---|
8267 | IFS=$as_save_IFS |
---|
8268 | test -z "$as_dir" && as_dir=. |
---|
8269 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8270 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8271 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
---|
8272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8273 | break 2 |
---|
8274 | fi |
---|
8275 | done |
---|
8276 | done |
---|
8277 | IFS=$as_save_IFS |
---|
8278 | |
---|
8279 | fi |
---|
8280 | fi |
---|
8281 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
---|
8282 | if test -n "$ac_ct_NMEDIT"; then |
---|
8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
---|
8284 | $as_echo "$ac_ct_NMEDIT" >&6; } |
---|
8285 | else |
---|
8286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8287 | $as_echo "no" >&6; } |
---|
8288 | fi |
---|
8289 | |
---|
8290 | if test "x$ac_ct_NMEDIT" = x; then |
---|
8291 | NMEDIT=":" |
---|
8292 | else |
---|
8293 | case $cross_compiling:$ac_tool_warned in |
---|
8294 | yes:) |
---|
8295 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
8296 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
8297 | ac_tool_warned=yes ;; |
---|
8298 | esac |
---|
8299 | NMEDIT=$ac_ct_NMEDIT |
---|
8300 | fi |
---|
8301 | else |
---|
8302 | NMEDIT="$ac_cv_prog_NMEDIT" |
---|
8303 | fi |
---|
8304 | |
---|
8305 | if test -n "$ac_tool_prefix"; then |
---|
8306 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
---|
8307 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
---|
8308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8309 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8310 | if ${ac_cv_prog_LIPO+:} false; then : |
---|
8311 | $as_echo_n "(cached) " >&6 |
---|
8312 | else |
---|
8313 | if test -n "$LIPO"; then |
---|
8314 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
---|
8315 | else |
---|
8316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8317 | for as_dir in $PATH |
---|
8318 | do |
---|
8319 | IFS=$as_save_IFS |
---|
8320 | test -z "$as_dir" && as_dir=. |
---|
8321 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8322 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8323 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
---|
8324 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8325 | break 2 |
---|
8326 | fi |
---|
8327 | done |
---|
8328 | done |
---|
8329 | IFS=$as_save_IFS |
---|
8330 | |
---|
8331 | fi |
---|
8332 | fi |
---|
8333 | LIPO=$ac_cv_prog_LIPO |
---|
8334 | if test -n "$LIPO"; then |
---|
8335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
---|
8336 | $as_echo "$LIPO" >&6; } |
---|
8337 | else |
---|
8338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8339 | $as_echo "no" >&6; } |
---|
8340 | fi |
---|
8341 | |
---|
8342 | |
---|
8343 | fi |
---|
8344 | if test -z "$ac_cv_prog_LIPO"; then |
---|
8345 | ac_ct_LIPO=$LIPO |
---|
8346 | # Extract the first word of "lipo", so it can be a program name with args. |
---|
8347 | set dummy lipo; ac_word=$2 |
---|
8348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8349 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8350 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
---|
8351 | $as_echo_n "(cached) " >&6 |
---|
8352 | else |
---|
8353 | if test -n "$ac_ct_LIPO"; then |
---|
8354 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
---|
8355 | else |
---|
8356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8357 | for as_dir in $PATH |
---|
8358 | do |
---|
8359 | IFS=$as_save_IFS |
---|
8360 | test -z "$as_dir" && as_dir=. |
---|
8361 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8362 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8363 | ac_cv_prog_ac_ct_LIPO="lipo" |
---|
8364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8365 | break 2 |
---|
8366 | fi |
---|
8367 | done |
---|
8368 | done |
---|
8369 | IFS=$as_save_IFS |
---|
8370 | |
---|
8371 | fi |
---|
8372 | fi |
---|
8373 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
---|
8374 | if test -n "$ac_ct_LIPO"; then |
---|
8375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
---|
8376 | $as_echo "$ac_ct_LIPO" >&6; } |
---|
8377 | else |
---|
8378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8379 | $as_echo "no" >&6; } |
---|
8380 | fi |
---|
8381 | |
---|
8382 | if test "x$ac_ct_LIPO" = x; then |
---|
8383 | LIPO=":" |
---|
8384 | else |
---|
8385 | case $cross_compiling:$ac_tool_warned in |
---|
8386 | yes:) |
---|
8387 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
8388 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
8389 | ac_tool_warned=yes ;; |
---|
8390 | esac |
---|
8391 | LIPO=$ac_ct_LIPO |
---|
8392 | fi |
---|
8393 | else |
---|
8394 | LIPO="$ac_cv_prog_LIPO" |
---|
8395 | fi |
---|
8396 | |
---|
8397 | if test -n "$ac_tool_prefix"; then |
---|
8398 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
---|
8399 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
---|
8400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8401 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8402 | if ${ac_cv_prog_OTOOL+:} false; then : |
---|
8403 | $as_echo_n "(cached) " >&6 |
---|
8404 | else |
---|
8405 | if test -n "$OTOOL"; then |
---|
8406 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
---|
8407 | else |
---|
8408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8409 | for as_dir in $PATH |
---|
8410 | do |
---|
8411 | IFS=$as_save_IFS |
---|
8412 | test -z "$as_dir" && as_dir=. |
---|
8413 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8414 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8415 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
---|
8416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8417 | break 2 |
---|
8418 | fi |
---|
8419 | done |
---|
8420 | done |
---|
8421 | IFS=$as_save_IFS |
---|
8422 | |
---|
8423 | fi |
---|
8424 | fi |
---|
8425 | OTOOL=$ac_cv_prog_OTOOL |
---|
8426 | if test -n "$OTOOL"; then |
---|
8427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
---|
8428 | $as_echo "$OTOOL" >&6; } |
---|
8429 | else |
---|
8430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8431 | $as_echo "no" >&6; } |
---|
8432 | fi |
---|
8433 | |
---|
8434 | |
---|
8435 | fi |
---|
8436 | if test -z "$ac_cv_prog_OTOOL"; then |
---|
8437 | ac_ct_OTOOL=$OTOOL |
---|
8438 | # Extract the first word of "otool", so it can be a program name with args. |
---|
8439 | set dummy otool; ac_word=$2 |
---|
8440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8441 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8442 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
---|
8443 | $as_echo_n "(cached) " >&6 |
---|
8444 | else |
---|
8445 | if test -n "$ac_ct_OTOOL"; then |
---|
8446 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
---|
8447 | else |
---|
8448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8449 | for as_dir in $PATH |
---|
8450 | do |
---|
8451 | IFS=$as_save_IFS |
---|
8452 | test -z "$as_dir" && as_dir=. |
---|
8453 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8454 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8455 | ac_cv_prog_ac_ct_OTOOL="otool" |
---|
8456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8457 | break 2 |
---|
8458 | fi |
---|
8459 | done |
---|
8460 | done |
---|
8461 | IFS=$as_save_IFS |
---|
8462 | |
---|
8463 | fi |
---|
8464 | fi |
---|
8465 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
---|
8466 | if test -n "$ac_ct_OTOOL"; then |
---|
8467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
---|
8468 | $as_echo "$ac_ct_OTOOL" >&6; } |
---|
8469 | else |
---|
8470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8471 | $as_echo "no" >&6; } |
---|
8472 | fi |
---|
8473 | |
---|
8474 | if test "x$ac_ct_OTOOL" = x; then |
---|
8475 | OTOOL=":" |
---|
8476 | else |
---|
8477 | case $cross_compiling:$ac_tool_warned in |
---|
8478 | yes:) |
---|
8479 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
8480 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
8481 | ac_tool_warned=yes ;; |
---|
8482 | esac |
---|
8483 | OTOOL=$ac_ct_OTOOL |
---|
8484 | fi |
---|
8485 | else |
---|
8486 | OTOOL="$ac_cv_prog_OTOOL" |
---|
8487 | fi |
---|
8488 | |
---|
8489 | if test -n "$ac_tool_prefix"; then |
---|
8490 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
---|
8491 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
---|
8492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8493 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8494 | if ${ac_cv_prog_OTOOL64+:} false; then : |
---|
8495 | $as_echo_n "(cached) " >&6 |
---|
8496 | else |
---|
8497 | if test -n "$OTOOL64"; then |
---|
8498 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
---|
8499 | else |
---|
8500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8501 | for as_dir in $PATH |
---|
8502 | do |
---|
8503 | IFS=$as_save_IFS |
---|
8504 | test -z "$as_dir" && as_dir=. |
---|
8505 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8506 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8507 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
---|
8508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8509 | break 2 |
---|
8510 | fi |
---|
8511 | done |
---|
8512 | done |
---|
8513 | IFS=$as_save_IFS |
---|
8514 | |
---|
8515 | fi |
---|
8516 | fi |
---|
8517 | OTOOL64=$ac_cv_prog_OTOOL64 |
---|
8518 | if test -n "$OTOOL64"; then |
---|
8519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
---|
8520 | $as_echo "$OTOOL64" >&6; } |
---|
8521 | else |
---|
8522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8523 | $as_echo "no" >&6; } |
---|
8524 | fi |
---|
8525 | |
---|
8526 | |
---|
8527 | fi |
---|
8528 | if test -z "$ac_cv_prog_OTOOL64"; then |
---|
8529 | ac_ct_OTOOL64=$OTOOL64 |
---|
8530 | # Extract the first word of "otool64", so it can be a program name with args. |
---|
8531 | set dummy otool64; ac_word=$2 |
---|
8532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8533 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8534 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
---|
8535 | $as_echo_n "(cached) " >&6 |
---|
8536 | else |
---|
8537 | if test -n "$ac_ct_OTOOL64"; then |
---|
8538 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
---|
8539 | else |
---|
8540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8541 | for as_dir in $PATH |
---|
8542 | do |
---|
8543 | IFS=$as_save_IFS |
---|
8544 | test -z "$as_dir" && as_dir=. |
---|
8545 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8546 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8547 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
---|
8548 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8549 | break 2 |
---|
8550 | fi |
---|
8551 | done |
---|
8552 | done |
---|
8553 | IFS=$as_save_IFS |
---|
8554 | |
---|
8555 | fi |
---|
8556 | fi |
---|
8557 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
---|
8558 | if test -n "$ac_ct_OTOOL64"; then |
---|
8559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
---|
8560 | $as_echo "$ac_ct_OTOOL64" >&6; } |
---|
8561 | else |
---|
8562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8563 | $as_echo "no" >&6; } |
---|
8564 | fi |
---|
8565 | |
---|
8566 | if test "x$ac_ct_OTOOL64" = x; then |
---|
8567 | OTOOL64=":" |
---|
8568 | else |
---|
8569 | case $cross_compiling:$ac_tool_warned in |
---|
8570 | yes:) |
---|
8571 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
8572 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
8573 | ac_tool_warned=yes ;; |
---|
8574 | esac |
---|
8575 | OTOOL64=$ac_ct_OTOOL64 |
---|
8576 | fi |
---|
8577 | else |
---|
8578 | OTOOL64="$ac_cv_prog_OTOOL64" |
---|
8579 | fi |
---|
8580 | |
---|
8581 | |
---|
8582 | |
---|
8583 | |
---|
8584 | |
---|
8585 | |
---|
8586 | |
---|
8587 | |
---|
8588 | |
---|
8589 | |
---|
8590 | |
---|
8591 | |
---|
8592 | |
---|
8593 | |
---|
8594 | |
---|
8595 | |
---|
8596 | |
---|
8597 | |
---|
8598 | |
---|
8599 | |
---|
8600 | |
---|
8601 | |
---|
8602 | |
---|
8603 | |
---|
8604 | |
---|
8605 | |
---|
8606 | |
---|
8607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
---|
8608 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
---|
8609 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
---|
8610 | $as_echo_n "(cached) " >&6 |
---|
8611 | else |
---|
8612 | lt_cv_apple_cc_single_mod=no |
---|
8613 | if test -z "${LT_MULTI_MODULE}"; then |
---|
8614 | # By default we will add the -single_module flag. You can override |
---|
8615 | # by either setting the environment variable LT_MULTI_MODULE |
---|
8616 | # non-empty at configure time, or by adding -multi_module to the |
---|
8617 | # link flags. |
---|
8618 | rm -rf libconftest.dylib* |
---|
8619 | echo "int foo(void){return 1;}" > conftest.c |
---|
8620 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
---|
8621 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
---|
8622 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
---|
8623 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
---|
8624 | _lt_result=$? |
---|
8625 | # If there is a non-empty error log, and "single_module" |
---|
8626 | # appears in it, assume the flag caused a linker warning |
---|
8627 | if test -s conftest.err && $GREP single_module conftest.err; then |
---|
8628 | cat conftest.err >&5 |
---|
8629 | # Otherwise, if the output was created with a 0 exit code from |
---|
8630 | # the compiler, it worked. |
---|
8631 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
---|
8632 | lt_cv_apple_cc_single_mod=yes |
---|
8633 | else |
---|
8634 | cat conftest.err >&5 |
---|
8635 | fi |
---|
8636 | rm -rf libconftest.dylib* |
---|
8637 | rm -f conftest.* |
---|
8638 | fi |
---|
8639 | fi |
---|
8640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
---|
8641 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
---|
8642 | |
---|
8643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
---|
8644 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
---|
8645 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
---|
8646 | $as_echo_n "(cached) " >&6 |
---|
8647 | else |
---|
8648 | lt_cv_ld_exported_symbols_list=no |
---|
8649 | save_LDFLAGS=$LDFLAGS |
---|
8650 | echo "_main" > conftest.sym |
---|
8651 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
---|
8652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8653 | /* end confdefs.h. */ |
---|
8654 | |
---|
8655 | int |
---|
8656 | main () |
---|
8657 | { |
---|
8658 | |
---|
8659 | ; |
---|
8660 | return 0; |
---|
8661 | } |
---|
8662 | _ACEOF |
---|
8663 | if ac_fn_c_try_link "$LINENO"; then : |
---|
8664 | lt_cv_ld_exported_symbols_list=yes |
---|
8665 | else |
---|
8666 | lt_cv_ld_exported_symbols_list=no |
---|
8667 | fi |
---|
8668 | rm -f core conftest.err conftest.$ac_objext \ |
---|
8669 | conftest$ac_exeext conftest.$ac_ext |
---|
8670 | LDFLAGS="$save_LDFLAGS" |
---|
8671 | |
---|
8672 | fi |
---|
8673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
---|
8674 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
---|
8675 | |
---|
8676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
---|
8677 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
---|
8678 | if ${lt_cv_ld_force_load+:} false; then : |
---|
8679 | $as_echo_n "(cached) " >&6 |
---|
8680 | else |
---|
8681 | lt_cv_ld_force_load=no |
---|
8682 | cat > conftest.c << _LT_EOF |
---|
8683 | int forced_loaded() { return 2;} |
---|
8684 | _LT_EOF |
---|
8685 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
---|
8686 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
---|
8687 | echo "$AR cru libconftest.a conftest.o" >&5 |
---|
8688 | $AR cru libconftest.a conftest.o 2>&5 |
---|
8689 | echo "$RANLIB libconftest.a" >&5 |
---|
8690 | $RANLIB libconftest.a 2>&5 |
---|
8691 | cat > conftest.c << _LT_EOF |
---|
8692 | int main() { return 0;} |
---|
8693 | _LT_EOF |
---|
8694 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
---|
8695 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
---|
8696 | _lt_result=$? |
---|
8697 | if test -s conftest.err && $GREP force_load conftest.err; then |
---|
8698 | cat conftest.err >&5 |
---|
8699 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
---|
8700 | lt_cv_ld_force_load=yes |
---|
8701 | else |
---|
8702 | cat conftest.err >&5 |
---|
8703 | fi |
---|
8704 | rm -f conftest.err libconftest.a conftest conftest.c |
---|
8705 | rm -rf conftest.dSYM |
---|
8706 | |
---|
8707 | fi |
---|
8708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
---|
8709 | $as_echo "$lt_cv_ld_force_load" >&6; } |
---|
8710 | case $host_os in |
---|
8711 | rhapsody* | darwin1.[012]) |
---|
8712 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
---|
8713 | darwin1.*) |
---|
8714 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
---|
8715 | darwin*) # darwin 5.x on |
---|
8716 | # if running on 10.5 or later, the deployment target defaults |
---|
8717 | # to the OS version, if on x86, and 10.4, the deployment |
---|
8718 | # target defaults to 10.4. Don't you love it? |
---|
8719 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
---|
8720 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
---|
8721 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
---|
8722 | 10.[012]*) |
---|
8723 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
---|
8724 | 10.*) |
---|
8725 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
---|
8726 | esac |
---|
8727 | ;; |
---|
8728 | esac |
---|
8729 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
---|
8730 | _lt_dar_single_mod='$single_module' |
---|
8731 | fi |
---|
8732 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
---|
8733 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
---|
8734 | else |
---|
8735 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8736 | fi |
---|
8737 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
---|
8738 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
---|
8739 | else |
---|
8740 | _lt_dsymutil= |
---|
8741 | fi |
---|
8742 | ;; |
---|
8743 | esac |
---|
8744 | |
---|
8745 | |
---|
8746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
8747 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
8748 | if ${ac_cv_header_stdc+:} false; then : |
---|
8749 | $as_echo_n "(cached) " >&6 |
---|
8750 | else |
---|
8751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8752 | /* end confdefs.h. */ |
---|
8753 | #include <stdlib.h> |
---|
8754 | #include <stdarg.h> |
---|
8755 | #include <string.h> |
---|
8756 | #include <float.h> |
---|
8757 | |
---|
8758 | int |
---|
8759 | main () |
---|
8760 | { |
---|
8761 | |
---|
8762 | ; |
---|
8763 | return 0; |
---|
8764 | } |
---|
8765 | _ACEOF |
---|
8766 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
8767 | ac_cv_header_stdc=yes |
---|
8768 | else |
---|
8769 | ac_cv_header_stdc=no |
---|
8770 | fi |
---|
8771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8772 | |
---|
8773 | if test $ac_cv_header_stdc = yes; then |
---|
8774 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
8775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8776 | /* end confdefs.h. */ |
---|
8777 | #include <string.h> |
---|
8778 | |
---|
8779 | _ACEOF |
---|
8780 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
8781 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
8782 | |
---|
8783 | else |
---|
8784 | ac_cv_header_stdc=no |
---|
8785 | fi |
---|
8786 | rm -f conftest* |
---|
8787 | |
---|
8788 | fi |
---|
8789 | |
---|
8790 | if test $ac_cv_header_stdc = yes; then |
---|
8791 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
8792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8793 | /* end confdefs.h. */ |
---|
8794 | #include <stdlib.h> |
---|
8795 | |
---|
8796 | _ACEOF |
---|
8797 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
8798 | $EGREP "free" >/dev/null 2>&1; then : |
---|
8799 | |
---|
8800 | else |
---|
8801 | ac_cv_header_stdc=no |
---|
8802 | fi |
---|
8803 | rm -f conftest* |
---|
8804 | |
---|
8805 | fi |
---|
8806 | |
---|
8807 | if test $ac_cv_header_stdc = yes; then |
---|
8808 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
8809 | if test "$cross_compiling" = yes; then : |
---|
8810 | : |
---|
8811 | else |
---|
8812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8813 | /* end confdefs.h. */ |
---|
8814 | #include <ctype.h> |
---|
8815 | #include <stdlib.h> |
---|
8816 | #if ((' ' & 0x0FF) == 0x020) |
---|
8817 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
8818 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
8819 | #else |
---|
8820 | # define ISLOWER(c) \ |
---|
8821 | (('a' <= (c) && (c) <= 'i') \ |
---|
8822 | || ('j' <= (c) && (c) <= 'r') \ |
---|
8823 | || ('s' <= (c) && (c) <= 'z')) |
---|
8824 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
8825 | #endif |
---|
8826 | |
---|
8827 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
8828 | int |
---|
8829 | main () |
---|
8830 | { |
---|
8831 | int i; |
---|
8832 | for (i = 0; i < 256; i++) |
---|
8833 | if (XOR (islower (i), ISLOWER (i)) |
---|
8834 | || toupper (i) != TOUPPER (i)) |
---|
8835 | return 2; |
---|
8836 | return 0; |
---|
8837 | } |
---|
8838 | _ACEOF |
---|
8839 | if ac_fn_c_try_run "$LINENO"; then : |
---|
8840 | |
---|
8841 | else |
---|
8842 | ac_cv_header_stdc=no |
---|
8843 | fi |
---|
8844 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
8845 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
8846 | fi |
---|
8847 | |
---|
8848 | fi |
---|
8849 | fi |
---|
8850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
8851 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
8852 | if test $ac_cv_header_stdc = yes; then |
---|
8853 | |
---|
8854 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
8855 | |
---|
8856 | fi |
---|
8857 | |
---|
8858 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
8859 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
8860 | inttypes.h stdint.h unistd.h |
---|
8861 | do : |
---|
8862 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8863 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
8864 | " |
---|
8865 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
8866 | cat >>confdefs.h <<_ACEOF |
---|
8867 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8868 | _ACEOF |
---|
8869 | |
---|
8870 | fi |
---|
8871 | |
---|
8872 | done |
---|
8873 | |
---|
8874 | |
---|
8875 | for ac_header in dlfcn.h |
---|
8876 | do : |
---|
8877 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
---|
8878 | " |
---|
8879 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
---|
8880 | cat >>confdefs.h <<_ACEOF |
---|
8881 | #define HAVE_DLFCN_H 1 |
---|
8882 | _ACEOF |
---|
8883 | |
---|
8884 | fi |
---|
8885 | |
---|
8886 | done |
---|
8887 | |
---|
8888 | |
---|
8889 | |
---|
8890 | func_stripname_cnf () |
---|
8891 | { |
---|
8892 | case ${2} in |
---|
8893 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
---|
8894 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
---|
8895 | esac |
---|
8896 | } # func_stripname_cnf |
---|
8897 | |
---|
8898 | |
---|
8899 | |
---|
8900 | |
---|
8901 | |
---|
8902 | # Set options |
---|
8903 | # Check whether --enable-static was given. |
---|
8904 | if test "${enable_static+set}" = set; then : |
---|
8905 | enableval=$enable_static; p=${PACKAGE-default} |
---|
8906 | case $enableval in |
---|
8907 | yes) enable_static=yes ;; |
---|
8908 | no) enable_static=no ;; |
---|
8909 | *) |
---|
8910 | enable_static=no |
---|
8911 | # Look at the argument we got. We use all the common list separators. |
---|
8912 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
8913 | for pkg in $enableval; do |
---|
8914 | IFS="$lt_save_ifs" |
---|
8915 | if test "X$pkg" = "X$p"; then |
---|
8916 | enable_static=yes |
---|
8917 | fi |
---|
8918 | done |
---|
8919 | IFS="$lt_save_ifs" |
---|
8920 | ;; |
---|
8921 | esac |
---|
8922 | else |
---|
8923 | enable_static=no |
---|
8924 | fi |
---|
8925 | |
---|
8926 | |
---|
8927 | |
---|
8928 | |
---|
8929 | |
---|
8930 | |
---|
8931 | |
---|
8932 | enable_win32_dll=yes |
---|
8933 | |
---|
8934 | case $host in |
---|
8935 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) |
---|
8936 | if test -n "$ac_tool_prefix"; then |
---|
8937 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
---|
8938 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
---|
8939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8940 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8941 | if ${ac_cv_prog_AS+:} false; then : |
---|
8942 | $as_echo_n "(cached) " >&6 |
---|
8943 | else |
---|
8944 | if test -n "$AS"; then |
---|
8945 | ac_cv_prog_AS="$AS" # Let the user override the test. |
---|
8946 | else |
---|
8947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8948 | for as_dir in $PATH |
---|
8949 | do |
---|
8950 | IFS=$as_save_IFS |
---|
8951 | test -z "$as_dir" && as_dir=. |
---|
8952 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8953 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8954 | ac_cv_prog_AS="${ac_tool_prefix}as" |
---|
8955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8956 | break 2 |
---|
8957 | fi |
---|
8958 | done |
---|
8959 | done |
---|
8960 | IFS=$as_save_IFS |
---|
8961 | |
---|
8962 | fi |
---|
8963 | fi |
---|
8964 | AS=$ac_cv_prog_AS |
---|
8965 | if test -n "$AS"; then |
---|
8966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
---|
8967 | $as_echo "$AS" >&6; } |
---|
8968 | else |
---|
8969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8970 | $as_echo "no" >&6; } |
---|
8971 | fi |
---|
8972 | |
---|
8973 | |
---|
8974 | fi |
---|
8975 | if test -z "$ac_cv_prog_AS"; then |
---|
8976 | ac_ct_AS=$AS |
---|
8977 | # Extract the first word of "as", so it can be a program name with args. |
---|
8978 | set dummy as; ac_word=$2 |
---|
8979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8980 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8981 | if ${ac_cv_prog_ac_ct_AS+:} false; then : |
---|
8982 | $as_echo_n "(cached) " >&6 |
---|
8983 | else |
---|
8984 | if test -n "$ac_ct_AS"; then |
---|
8985 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
---|
8986 | else |
---|
8987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8988 | for as_dir in $PATH |
---|
8989 | do |
---|
8990 | IFS=$as_save_IFS |
---|
8991 | test -z "$as_dir" && as_dir=. |
---|
8992 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8993 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8994 | ac_cv_prog_ac_ct_AS="as" |
---|
8995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8996 | break 2 |
---|
8997 | fi |
---|
8998 | done |
---|
8999 | done |
---|
9000 | IFS=$as_save_IFS |
---|
9001 | |
---|
9002 | fi |
---|
9003 | fi |
---|
9004 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
---|
9005 | if test -n "$ac_ct_AS"; then |
---|
9006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
---|
9007 | $as_echo "$ac_ct_AS" >&6; } |
---|
9008 | else |
---|
9009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
9010 | $as_echo "no" >&6; } |
---|
9011 | fi |
---|
9012 | |
---|
9013 | if test "x$ac_ct_AS" = x; then |
---|
9014 | AS="false" |
---|
9015 | else |
---|
9016 | case $cross_compiling:$ac_tool_warned in |
---|
9017 | yes:) |
---|
9018 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
9019 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
9020 | ac_tool_warned=yes ;; |
---|
9021 | esac |
---|
9022 | AS=$ac_ct_AS |
---|
9023 | fi |
---|
9024 | else |
---|
9025 | AS="$ac_cv_prog_AS" |
---|
9026 | fi |
---|
9027 | |
---|
9028 | if test -n "$ac_tool_prefix"; then |
---|
9029 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
---|
9030 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
---|
9031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
9032 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
9033 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
---|
9034 | $as_echo_n "(cached) " >&6 |
---|
9035 | else |
---|
9036 | if test -n "$DLLTOOL"; then |
---|
9037 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
---|
9038 | else |
---|
9039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9040 | for as_dir in $PATH |
---|
9041 | do |
---|
9042 | IFS=$as_save_IFS |
---|
9043 | test -z "$as_dir" && as_dir=. |
---|
9044 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
9045 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
9046 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
---|
9047 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
9048 | break 2 |
---|
9049 | fi |
---|
9050 | done |
---|
9051 | done |
---|
9052 | IFS=$as_save_IFS |
---|
9053 | |
---|
9054 | fi |
---|
9055 | fi |
---|
9056 | DLLTOOL=$ac_cv_prog_DLLTOOL |
---|
9057 | if test -n "$DLLTOOL"; then |
---|
9058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
---|
9059 | $as_echo "$DLLTOOL" >&6; } |
---|
9060 | else |
---|
9061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
9062 | $as_echo "no" >&6; } |
---|
9063 | fi |
---|
9064 | |
---|
9065 | |
---|
9066 | fi |
---|
9067 | if test -z "$ac_cv_prog_DLLTOOL"; then |
---|
9068 | ac_ct_DLLTOOL=$DLLTOOL |
---|
9069 | # Extract the first word of "dlltool", so it can be a program name with args. |
---|
9070 | set dummy dlltool; ac_word=$2 |
---|
9071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
9072 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
9073 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
---|
9074 | $as_echo_n "(cached) " >&6 |
---|
9075 | else |
---|
9076 | if test -n "$ac_ct_DLLTOOL"; then |
---|
9077 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
---|
9078 | else |
---|
9079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9080 | for as_dir in $PATH |
---|
9081 | do |
---|
9082 | IFS=$as_save_IFS |
---|
9083 | test -z "$as_dir" && as_dir=. |
---|
9084 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
9085 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
9086 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
---|
9087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
9088 | break 2 |
---|
9089 | fi |
---|
9090 | done |
---|
9091 | done |
---|
9092 | IFS=$as_save_IFS |
---|
9093 | |
---|
9094 | fi |
---|
9095 | fi |
---|
9096 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
---|
9097 | if test -n "$ac_ct_DLLTOOL"; then |
---|
9098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
---|
9099 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
---|
9100 | else |
---|
9101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
9102 | $as_echo "no" >&6; } |
---|
9103 | fi |
---|
9104 | |
---|
9105 | if test "x$ac_ct_DLLTOOL" = x; then |
---|
9106 | DLLTOOL="false" |
---|
9107 | else |
---|
9108 | case $cross_compiling:$ac_tool_warned in |
---|
9109 | yes:) |
---|
9110 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
9111 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
9112 | ac_tool_warned=yes ;; |
---|
9113 | esac |
---|
9114 | DLLTOOL=$ac_ct_DLLTOOL |
---|
9115 | fi |
---|
9116 | else |
---|
9117 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
---|
9118 | fi |
---|
9119 | |
---|
9120 | if test -n "$ac_tool_prefix"; then |
---|
9121 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
---|
9122 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
---|
9123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
9124 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
9125 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
---|
9126 | $as_echo_n "(cached) " >&6 |
---|
9127 | else |
---|
9128 | if test -n "$OBJDUMP"; then |
---|
9129 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
---|
9130 | else |
---|
9131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9132 | for as_dir in $PATH |
---|
9133 | do |
---|
9134 | IFS=$as_save_IFS |
---|
9135 | test -z "$as_dir" && as_dir=. |
---|
9136 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
9137 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
9138 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
---|
9139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
9140 | break 2 |
---|
9141 | fi |
---|
9142 | done |
---|
9143 | done |
---|
9144 | IFS=$as_save_IFS |
---|
9145 | |
---|
9146 | fi |
---|
9147 | fi |
---|
9148 | OBJDUMP=$ac_cv_prog_OBJDUMP |
---|
9149 | if test -n "$OBJDUMP"; then |
---|
9150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
---|
9151 | $as_echo "$OBJDUMP" >&6; } |
---|
9152 | else |
---|
9153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
9154 | $as_echo "no" >&6; } |
---|
9155 | fi |
---|
9156 | |
---|
9157 | |
---|
9158 | fi |
---|
9159 | if test -z "$ac_cv_prog_OBJDUMP"; then |
---|
9160 | ac_ct_OBJDUMP=$OBJDUMP |
---|
9161 | # Extract the first word of "objdump", so it can be a program name with args. |
---|
9162 | set dummy objdump; ac_word=$2 |
---|
9163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
9164 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
9165 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
---|
9166 | $as_echo_n "(cached) " >&6 |
---|
9167 | else |
---|
9168 | if test -n "$ac_ct_OBJDUMP"; then |
---|
9169 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
---|
9170 | else |
---|
9171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9172 | for as_dir in $PATH |
---|
9173 | do |
---|
9174 | IFS=$as_save_IFS |
---|
9175 | test -z "$as_dir" && as_dir=. |
---|
9176 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
9177 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
9178 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
---|
9179 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
9180 | break 2 |
---|
9181 | fi |
---|
9182 | done |
---|
9183 | done |
---|
9184 | IFS=$as_save_IFS |
---|
9185 | |
---|
9186 | fi |
---|
9187 | fi |
---|
9188 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
---|
9189 | if test -n "$ac_ct_OBJDUMP"; then |
---|
9190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
---|
9191 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
---|
9192 | else |
---|
9193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
9194 | $as_echo "no" >&6; } |
---|
9195 | fi |
---|
9196 | |
---|
9197 | if test "x$ac_ct_OBJDUMP" = x; then |
---|
9198 | OBJDUMP="false" |
---|
9199 | else |
---|
9200 | case $cross_compiling:$ac_tool_warned in |
---|
9201 | yes:) |
---|
9202 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
9203 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
9204 | ac_tool_warned=yes ;; |
---|
9205 | esac |
---|
9206 | OBJDUMP=$ac_ct_OBJDUMP |
---|
9207 | fi |
---|
9208 | else |
---|
9209 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
---|
9210 | fi |
---|
9211 | |
---|
9212 | ;; |
---|
9213 | esac |
---|
9214 | |
---|
9215 | test -z "$AS" && AS=as |
---|
9216 | |
---|
9217 | |
---|
9218 | |
---|
9219 | |
---|
9220 | |
---|
9221 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
9222 | |
---|
9223 | |
---|
9224 | |
---|
9225 | |
---|
9226 | |
---|
9227 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
9228 | |
---|
9229 | |
---|
9230 | |
---|
9231 | |
---|
9232 | enable_dlopen=yes |
---|
9233 | |
---|
9234 | |
---|
9235 | |
---|
9236 | |
---|
9237 | |
---|
9238 | # Check whether --enable-shared was given. |
---|
9239 | if test "${enable_shared+set}" = set; then : |
---|
9240 | enableval=$enable_shared; p=${PACKAGE-default} |
---|
9241 | case $enableval in |
---|
9242 | yes) enable_shared=yes ;; |
---|
9243 | no) enable_shared=no ;; |
---|
9244 | *) |
---|
9245 | enable_shared=no |
---|
9246 | # Look at the argument we got. We use all the common list separators. |
---|
9247 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
9248 | for pkg in $enableval; do |
---|
9249 | IFS="$lt_save_ifs" |
---|
9250 | if test "X$pkg" = "X$p"; then |
---|
9251 | enable_shared=yes |
---|
9252 | fi |
---|
9253 | done |
---|
9254 | IFS="$lt_save_ifs" |
---|
9255 | ;; |
---|
9256 | esac |
---|
9257 | else |
---|
9258 | enable_shared=yes |
---|
9259 | fi |
---|
9260 | |
---|
9261 | |
---|
9262 | |
---|
9263 | |
---|
9264 | |
---|
9265 | |
---|
9266 | |
---|
9267 | |
---|
9268 | |
---|
9269 | |
---|
9270 | |
---|
9271 | # Check whether --with-pic was given. |
---|
9272 | if test "${with_pic+set}" = set; then : |
---|
9273 | withval=$with_pic; lt_p=${PACKAGE-default} |
---|
9274 | case $withval in |
---|
9275 | yes|no) pic_mode=$withval ;; |
---|
9276 | *) |
---|
9277 | pic_mode=default |
---|
9278 | # Look at the argument we got. We use all the common list separators. |
---|
9279 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
9280 | for lt_pkg in $withval; do |
---|
9281 | IFS="$lt_save_ifs" |
---|
9282 | if test "X$lt_pkg" = "X$lt_p"; then |
---|
9283 | pic_mode=yes |
---|
9284 | fi |
---|
9285 | done |
---|
9286 | IFS="$lt_save_ifs" |
---|
9287 | ;; |
---|
9288 | esac |
---|
9289 | else |
---|
9290 | pic_mode=default |
---|
9291 | fi |
---|
9292 | |
---|
9293 | |
---|
9294 | test -z "$pic_mode" && pic_mode=default |
---|
9295 | |
---|
9296 | |
---|
9297 | |
---|
9298 | |
---|
9299 | |
---|
9300 | |
---|
9301 | |
---|
9302 | # Check whether --enable-fast-install was given. |
---|
9303 | if test "${enable_fast_install+set}" = set; then : |
---|
9304 | enableval=$enable_fast_install; p=${PACKAGE-default} |
---|
9305 | case $enableval in |
---|
9306 | yes) enable_fast_install=yes ;; |
---|
9307 | no) enable_fast_install=no ;; |
---|
9308 | *) |
---|
9309 | enable_fast_install=no |
---|
9310 | # Look at the argument we got. We use all the common list separators. |
---|
9311 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
9312 | for pkg in $enableval; do |
---|
9313 | IFS="$lt_save_ifs" |
---|
9314 | if test "X$pkg" = "X$p"; then |
---|
9315 | enable_fast_install=yes |
---|
9316 | fi |
---|
9317 | done |
---|
9318 | IFS="$lt_save_ifs" |
---|
9319 | ;; |
---|
9320 | esac |
---|
9321 | else |
---|
9322 | enable_fast_install=yes |
---|
9323 | fi |
---|
9324 | |
---|
9325 | |
---|
9326 | |
---|
9327 | |
---|
9328 | |
---|
9329 | |
---|
9330 | |
---|
9331 | |
---|
9332 | |
---|
9333 | |
---|
9334 | |
---|
9335 | # This can be used to rebuild libtool when needed |
---|
9336 | LIBTOOL_DEPS="$ltmain" |
---|
9337 | |
---|
9338 | # Always use our own libtool. |
---|
9339 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
9340 | |
---|
9341 | |
---|
9342 | |
---|
9343 | |
---|
9344 | |
---|
9345 | |
---|
9346 | |
---|
9347 | |
---|
9348 | |
---|
9349 | |
---|
9350 | |
---|
9351 | |
---|
9352 | |
---|
9353 | |
---|
9354 | |
---|
9355 | |
---|
9356 | |
---|
9357 | |
---|
9358 | |
---|
9359 | |
---|
9360 | |
---|
9361 | |
---|
9362 | |
---|
9363 | |
---|
9364 | |
---|
9365 | |
---|
9366 | |
---|
9367 | |
---|
9368 | |
---|
9369 | |
---|
9370 | test -z "$LN_S" && LN_S="ln -s" |
---|
9371 | |
---|
9372 | |
---|
9373 | |
---|
9374 | |
---|
9375 | |
---|
9376 | |
---|
9377 | |
---|
9378 | |
---|
9379 | |
---|
9380 | |
---|
9381 | |
---|
9382 | |
---|
9383 | |
---|
9384 | |
---|
9385 | if test -n "${ZSH_VERSION+set}" ; then |
---|
9386 | setopt NO_GLOB_SUBST |
---|
9387 | fi |
---|
9388 | |
---|
9389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
---|
9390 | $as_echo_n "checking for objdir... " >&6; } |
---|
9391 | if ${lt_cv_objdir+:} false; then : |
---|
9392 | $as_echo_n "(cached) " >&6 |
---|
9393 | else |
---|
9394 | rm -f .libs 2>/dev/null |
---|
9395 | mkdir .libs 2>/dev/null |
---|
9396 | if test -d .libs; then |
---|
9397 | lt_cv_objdir=.libs |
---|
9398 | else |
---|
9399 | # MS-DOS does not allow filenames that begin with a dot. |
---|
9400 | lt_cv_objdir=_libs |
---|
9401 | fi |
---|
9402 | rmdir .libs 2>/dev/null |
---|
9403 | fi |
---|
9404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
---|
9405 | $as_echo "$lt_cv_objdir" >&6; } |
---|
9406 | objdir=$lt_cv_objdir |
---|
9407 | |
---|
9408 | |
---|
9409 | |
---|
9410 | |
---|
9411 | |
---|
9412 | cat >>confdefs.h <<_ACEOF |
---|
9413 | #define LT_OBJDIR "$lt_cv_objdir/" |
---|
9414 | _ACEOF |
---|
9415 | |
---|
9416 | |
---|
9417 | |
---|
9418 | |
---|
9419 | case $host_os in |
---|
9420 | aix3*) |
---|
9421 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
9422 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
9423 | # vanish in a puff of smoke. |
---|
9424 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
9425 | COLLECT_NAMES= |
---|
9426 | export COLLECT_NAMES |
---|
9427 | fi |
---|
9428 | ;; |
---|
9429 | esac |
---|
9430 | |
---|
9431 | # Global variables: |
---|
9432 | ofile=libtool |
---|
9433 | can_build_shared=yes |
---|
9434 | |
---|
9435 | # All known linkers require a `.a' archive for static linking (except MSVC, |
---|
9436 | # which needs '.lib'). |
---|
9437 | libext=a |
---|
9438 | |
---|
9439 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
---|
9440 | |
---|
9441 | old_CC="$CC" |
---|
9442 | old_CFLAGS="$CFLAGS" |
---|
9443 | |
---|
9444 | # Set sane defaults for various variables |
---|
9445 | test -z "$CC" && CC=cc |
---|
9446 | test -z "$LTCC" && LTCC=$CC |
---|
9447 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
---|
9448 | test -z "$LD" && LD=ld |
---|
9449 | test -z "$ac_objext" && ac_objext=o |
---|
9450 | |
---|
9451 | for cc_temp in $compiler""; do |
---|
9452 | case $cc_temp in |
---|
9453 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
9454 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
9455 | \-*) ;; |
---|
9456 | *) break;; |
---|
9457 | esac |
---|
9458 | done |
---|
9459 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
---|
9460 | |
---|
9461 | |
---|
9462 | # Only perform the check for file, if the check method requires it |
---|
9463 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
9464 | case $deplibs_check_method in |
---|
9465 | file_magic*) |
---|
9466 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
9467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
---|
9468 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
---|
9469 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
---|
9470 | $as_echo_n "(cached) " >&6 |
---|
9471 | else |
---|
9472 | case $MAGIC_CMD in |
---|
9473 | [\\/*] | ?:[\\/]*) |
---|
9474 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
9475 | ;; |
---|
9476 | *) |
---|
9477 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
9478 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
9479 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
9480 | for ac_dir in $ac_dummy; do |
---|
9481 | IFS="$lt_save_ifs" |
---|
9482 | test -z "$ac_dir" && ac_dir=. |
---|
9483 | if test -f $ac_dir/${ac_tool_prefix}file; then |
---|
9484 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
---|
9485 | if test -n "$file_magic_test_file"; then |
---|
9486 | case $deplibs_check_method in |
---|
9487 | "file_magic "*) |
---|
9488 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
9489 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
9490 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
9491 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
9492 | : |
---|
9493 | else |
---|
9494 | cat <<_LT_EOF 1>&2 |
---|
9495 | |
---|
9496 | *** Warning: the command libtool uses to detect shared libraries, |
---|
9497 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
9498 | *** The result is that libtool may fail to recognize shared libraries |
---|
9499 | *** as such. This will affect the creation of libtool libraries that |
---|
9500 | *** depend on shared libraries, but programs linked with such libtool |
---|
9501 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
9502 | *** may want to report the problem to your system manager and/or to |
---|
9503 | *** bug-libtool@gnu.org |
---|
9504 | |
---|
9505 | _LT_EOF |
---|
9506 | fi ;; |
---|
9507 | esac |
---|
9508 | fi |
---|
9509 | break |
---|
9510 | fi |
---|
9511 | done |
---|
9512 | IFS="$lt_save_ifs" |
---|
9513 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
9514 | ;; |
---|
9515 | esac |
---|
9516 | fi |
---|
9517 | |
---|
9518 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
9519 | if test -n "$MAGIC_CMD"; then |
---|
9520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
---|
9521 | $as_echo "$MAGIC_CMD" >&6; } |
---|
9522 | else |
---|
9523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
9524 | $as_echo "no" >&6; } |
---|
9525 | fi |
---|
9526 | |
---|
9527 | |
---|
9528 | |
---|
9529 | |
---|
9530 | |
---|
9531 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
9532 | if test -n "$ac_tool_prefix"; then |
---|
9533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
---|
9534 | $as_echo_n "checking for file... " >&6; } |
---|
9535 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
---|
9536 | $as_echo_n "(cached) " >&6 |
---|
9537 | else |
---|
9538 | case $MAGIC_CMD in |
---|
9539 | [\\/*] | ?:[\\/]*) |
---|
9540 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
9541 | ;; |
---|
9542 | *) |
---|
9543 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
9544 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
9545 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
9546 | for ac_dir in $ac_dummy; do |
---|
9547 | IFS="$lt_save_ifs" |
---|
9548 | test -z "$ac_dir" && ac_dir=. |
---|
9549 | if test -f $ac_dir/file; then |
---|
9550 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
---|
9551 | if test -n "$file_magic_test_file"; then |
---|
9552 | case $deplibs_check_method in |
---|
9553 | "file_magic "*) |
---|
9554 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
9555 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
9556 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
9557 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
9558 | : |
---|
9559 | else |
---|
9560 | cat <<_LT_EOF 1>&2 |
---|
9561 | |
---|
9562 | *** Warning: the command libtool uses to detect shared libraries, |
---|
9563 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
9564 | *** The result is that libtool may fail to recognize shared libraries |
---|
9565 | *** as such. This will affect the creation of libtool libraries that |
---|
9566 | *** depend on shared libraries, but programs linked with such libtool |
---|
9567 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
9568 | *** may want to report the problem to your system manager and/or to |
---|
9569 | *** bug-libtool@gnu.org |
---|
9570 | |
---|
9571 | _LT_EOF |
---|
9572 | fi ;; |
---|
9573 | esac |
---|
9574 | fi |
---|
9575 | break |
---|
9576 | fi |
---|
9577 | done |
---|
9578 | IFS="$lt_save_ifs" |
---|
9579 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
9580 | ;; |
---|
9581 | esac |
---|
9582 | fi |
---|
9583 | |
---|
9584 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
9585 | if test -n "$MAGIC_CMD"; then |
---|
9586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
---|
9587 | $as_echo "$MAGIC_CMD" >&6; } |
---|
9588 | else |
---|
9589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
9590 | $as_echo "no" >&6; } |
---|
9591 | fi |
---|
9592 | |
---|
9593 | |
---|
9594 | else |
---|
9595 | MAGIC_CMD=: |
---|
9596 | fi |
---|
9597 | fi |
---|
9598 | |
---|
9599 | fi |
---|
9600 | ;; |
---|
9601 | esac |
---|
9602 | |
---|
9603 | # Use C for the default configuration in the libtool script |
---|
9604 | |
---|
9605 | lt_save_CC="$CC" |
---|
9606 | ac_ext=c |
---|
9607 | ac_cpp='$CPP $CPPFLAGS' |
---|
9608 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
9609 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
9610 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
9611 | |
---|
9612 | |
---|
9613 | # Source file extension for C test sources. |
---|
9614 | ac_ext=c |
---|
9615 | |
---|
9616 | # Object file extension for compiled C test sources. |
---|
9617 | objext=o |
---|
9618 | objext=$objext |
---|
9619 | |
---|
9620 | # Code to be used in simple compile tests |
---|
9621 | lt_simple_compile_test_code="int some_variable = 0;" |
---|
9622 | |
---|
9623 | # Code to be used in simple link tests |
---|
9624 | lt_simple_link_test_code='int main(){return(0);}' |
---|
9625 | |
---|
9626 | |
---|
9627 | |
---|
9628 | |
---|
9629 | |
---|
9630 | |
---|
9631 | |
---|
9632 | # If no C compiler was specified, use CC. |
---|
9633 | LTCC=${LTCC-"$CC"} |
---|
9634 | |
---|
9635 | # If no C compiler flags were specified, use CFLAGS. |
---|
9636 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
9637 | |
---|
9638 | # Allow CC to be a program name with arguments. |
---|
9639 | compiler=$CC |
---|
9640 | |
---|
9641 | # Save the default compiler, since it gets overwritten when the other |
---|
9642 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
---|
9643 | compiler_DEFAULT=$CC |
---|
9644 | |
---|
9645 | # save warnings/boilerplate of simple test code |
---|
9646 | ac_outfile=conftest.$ac_objext |
---|
9647 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
9648 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
9649 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
9650 | $RM conftest* |
---|
9651 | |
---|
9652 | ac_outfile=conftest.$ac_objext |
---|
9653 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
9654 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
9655 | _lt_linker_boilerplate=`cat conftest.err` |
---|
9656 | $RM -r conftest* |
---|
9657 | |
---|
9658 | |
---|
9659 | ## CAVEAT EMPTOR: |
---|
9660 | ## There is no encapsulation within the following macros, do not change |
---|
9661 | ## the running order or otherwise move them around unless you know exactly |
---|
9662 | ## what you are doing... |
---|
9663 | if test -n "$compiler"; then |
---|
9664 | |
---|
9665 | lt_prog_compiler_no_builtin_flag= |
---|
9666 | |
---|
9667 | if test "$GCC" = yes; then |
---|
9668 | case $cc_basename in |
---|
9669 | nvcc*) |
---|
9670 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
---|
9671 | *) |
---|
9672 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
---|
9673 | esac |
---|
9674 | |
---|
9675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
9676 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
---|
9677 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
---|
9678 | $as_echo_n "(cached) " >&6 |
---|
9679 | else |
---|
9680 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
9681 | ac_outfile=conftest.$ac_objext |
---|
9682 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9683 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
9684 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
9685 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
9686 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
9687 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
9688 | # The option is referenced via a variable to avoid confusing sed. |
---|
9689 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
9690 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
9691 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
9692 | -e 's:$: $lt_compiler_flag:'` |
---|
9693 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
---|
9694 | (eval "$lt_compile" 2>conftest.err) |
---|
9695 | ac_status=$? |
---|
9696 | cat conftest.err >&5 |
---|
9697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9698 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
9699 | # The compiler can only warn and ignore the option if not recognized |
---|
9700 | # So say no if there are warnings other than the usual output. |
---|
9701 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
---|
9702 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
9703 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
9704 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
9705 | fi |
---|
9706 | fi |
---|
9707 | $RM conftest* |
---|
9708 | |
---|
9709 | fi |
---|
9710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
9711 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
---|
9712 | |
---|
9713 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
9714 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
---|
9715 | else |
---|
9716 | : |
---|
9717 | fi |
---|
9718 | |
---|
9719 | fi |
---|
9720 | |
---|
9721 | |
---|
9722 | |
---|
9723 | |
---|
9724 | |
---|
9725 | |
---|
9726 | lt_prog_compiler_wl= |
---|
9727 | lt_prog_compiler_pic= |
---|
9728 | lt_prog_compiler_static= |
---|
9729 | |
---|
9730 | |
---|
9731 | if test "$GCC" = yes; then |
---|
9732 | lt_prog_compiler_wl='-Wl,' |
---|
9733 | lt_prog_compiler_static='-static' |
---|
9734 | |
---|
9735 | case $host_os in |
---|
9736 | aix*) |
---|
9737 | # All AIX code is PIC. |
---|
9738 | if test "$host_cpu" = ia64; then |
---|
9739 | # AIX 5 now supports IA64 processor |
---|
9740 | lt_prog_compiler_static='-Bstatic' |
---|
9741 | fi |
---|
9742 | ;; |
---|
9743 | |
---|
9744 | amigaos*) |
---|
9745 | case $host_cpu in |
---|
9746 | powerpc) |
---|
9747 | # see comment about AmigaOS4 .so support |
---|
9748 | lt_prog_compiler_pic='-fPIC' |
---|
9749 | ;; |
---|
9750 | m68k) |
---|
9751 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
9752 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
9753 | # like `-m68040'. |
---|
9754 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
---|
9755 | ;; |
---|
9756 | esac |
---|
9757 | ;; |
---|
9758 | |
---|
9759 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
9760 | # PIC is the default for these OSes. |
---|
9761 | ;; |
---|
9762 | |
---|
9763 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
---|
9764 | # This hack is so that the source file can tell whether it is being |
---|
9765 | # built for inclusion in a dll (and should export symbols for example). |
---|
9766 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
---|
9767 | # (--disable-auto-import) libraries |
---|
9768 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
9769 | ;; |
---|
9770 | |
---|
9771 | darwin* | rhapsody*) |
---|
9772 | # PIC is the default on this platform |
---|
9773 | # Common symbols not allowed in MH_DYLIB files |
---|
9774 | lt_prog_compiler_pic='-fno-common' |
---|
9775 | ;; |
---|
9776 | |
---|
9777 | haiku*) |
---|
9778 | # PIC is the default for Haiku. |
---|
9779 | # The "-static" flag exists, but is broken. |
---|
9780 | lt_prog_compiler_static= |
---|
9781 | ;; |
---|
9782 | |
---|
9783 | hpux*) |
---|
9784 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
---|
9785 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
---|
9786 | # sets the default TLS model and affects inlining. |
---|
9787 | case $host_cpu in |
---|
9788 | hppa*64*) |
---|
9789 | # +Z the default |
---|
9790 | ;; |
---|
9791 | *) |
---|
9792 | lt_prog_compiler_pic='-fPIC' |
---|
9793 | ;; |
---|
9794 | esac |
---|
9795 | ;; |
---|
9796 | |
---|
9797 | interix[3-9]*) |
---|
9798 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
---|
9799 | # Instead, we relocate shared libraries at runtime. |
---|
9800 | ;; |
---|
9801 | |
---|
9802 | msdosdjgpp*) |
---|
9803 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
9804 | # on systems that don't support them. |
---|
9805 | lt_prog_compiler_can_build_shared=no |
---|
9806 | enable_shared=no |
---|
9807 | ;; |
---|
9808 | |
---|
9809 | *nto* | *qnx*) |
---|
9810 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
---|
9811 | # it will coredump. |
---|
9812 | lt_prog_compiler_pic='-fPIC -shared' |
---|
9813 | ;; |
---|
9814 | |
---|
9815 | sysv4*MP*) |
---|
9816 | if test -d /usr/nec; then |
---|
9817 | lt_prog_compiler_pic=-Kconform_pic |
---|
9818 | fi |
---|
9819 | ;; |
---|
9820 | |
---|
9821 | *) |
---|
9822 | lt_prog_compiler_pic='-fPIC' |
---|
9823 | ;; |
---|
9824 | esac |
---|
9825 | |
---|
9826 | case $cc_basename in |
---|
9827 | nvcc*) # Cuda Compiler Driver 2.2 |
---|
9828 | lt_prog_compiler_wl='-Xlinker ' |
---|
9829 | if test -n "$lt_prog_compiler_pic"; then |
---|
9830 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
---|
9831 | fi |
---|
9832 | ;; |
---|
9833 | esac |
---|
9834 | else |
---|
9835 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
9836 | case $host_os in |
---|
9837 | aix*) |
---|
9838 | lt_prog_compiler_wl='-Wl,' |
---|
9839 | if test "$host_cpu" = ia64; then |
---|
9840 | # AIX 5 now supports IA64 processor |
---|
9841 | lt_prog_compiler_static='-Bstatic' |
---|
9842 | else |
---|
9843 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
---|
9844 | fi |
---|
9845 | ;; |
---|
9846 | |
---|
9847 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
---|
9848 | # This hack is so that the source file can tell whether it is being |
---|
9849 | # built for inclusion in a dll (and should export symbols for example). |
---|
9850 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
9851 | ;; |
---|
9852 | |
---|
9853 | hpux9* | hpux10* | hpux11*) |
---|
9854 | lt_prog_compiler_wl='-Wl,' |
---|
9855 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
9856 | # not for PA HP-UX. |
---|
9857 | case $host_cpu in |
---|
9858 | hppa*64*|ia64*) |
---|
9859 | # +Z the default |
---|
9860 | ;; |
---|
9861 | *) |
---|
9862 | lt_prog_compiler_pic='+Z' |
---|
9863 | ;; |
---|
9864 | esac |
---|
9865 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
9866 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
---|
9867 | ;; |
---|
9868 | |
---|
9869 | irix5* | irix6* | nonstopux*) |
---|
9870 | lt_prog_compiler_wl='-Wl,' |
---|
9871 | # PIC (with -KPIC) is the default. |
---|
9872 | lt_prog_compiler_static='-non_shared' |
---|
9873 | ;; |
---|
9874 | |
---|
9875 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
---|
9876 | case $cc_basename in |
---|
9877 | # old Intel for x86_64 which still supported -KPIC. |
---|
9878 | ecc*) |
---|
9879 | lt_prog_compiler_wl='-Wl,' |
---|
9880 | lt_prog_compiler_pic='-KPIC' |
---|
9881 | lt_prog_compiler_static='-static' |
---|
9882 | ;; |
---|
9883 | # icc used to be incompatible with GCC. |
---|
9884 | # ICC 10 doesn't accept -KPIC any more. |
---|
9885 | icc* | ifort*) |
---|
9886 | lt_prog_compiler_wl='-Wl,' |
---|
9887 | lt_prog_compiler_pic='-fPIC' |
---|
9888 | lt_prog_compiler_static='-static' |
---|
9889 | ;; |
---|
9890 | # Lahey Fortran 8.1. |
---|
9891 | lf95*) |
---|
9892 | lt_prog_compiler_wl='-Wl,' |
---|
9893 | lt_prog_compiler_pic='--shared' |
---|
9894 | lt_prog_compiler_static='--static' |
---|
9895 | ;; |
---|
9896 | nagfor*) |
---|
9897 | # NAG Fortran compiler |
---|
9898 | lt_prog_compiler_wl='-Wl,-Wl,,' |
---|
9899 | lt_prog_compiler_pic='-PIC' |
---|
9900 | lt_prog_compiler_static='-Bstatic' |
---|
9901 | ;; |
---|
9902 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
---|
9903 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
9904 | # which looks to be a dead project) |
---|
9905 | lt_prog_compiler_wl='-Wl,' |
---|
9906 | lt_prog_compiler_pic='-fpic' |
---|
9907 | lt_prog_compiler_static='-Bstatic' |
---|
9908 | ;; |
---|
9909 | ccc*) |
---|
9910 | lt_prog_compiler_wl='-Wl,' |
---|
9911 | # All Alpha code is PIC. |
---|
9912 | lt_prog_compiler_static='-non_shared' |
---|
9913 | ;; |
---|
9914 | xl* | bgxl* | bgf* | mpixl*) |
---|
9915 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
---|
9916 | lt_prog_compiler_wl='-Wl,' |
---|
9917 | lt_prog_compiler_pic='-qpic' |
---|
9918 | lt_prog_compiler_static='-qstaticlink' |
---|
9919 | ;; |
---|
9920 | *) |
---|
9921 | case `$CC -V 2>&1 | sed 5q` in |
---|
9922 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
---|
9923 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
---|
9924 | lt_prog_compiler_pic='-KPIC' |
---|
9925 | lt_prog_compiler_static='-Bstatic' |
---|
9926 | lt_prog_compiler_wl='' |
---|
9927 | ;; |
---|
9928 | *Sun\ F* | *Sun*Fortran*) |
---|
9929 | lt_prog_compiler_pic='-KPIC' |
---|
9930 | lt_prog_compiler_static='-Bstatic' |
---|
9931 | lt_prog_compiler_wl='-Qoption ld ' |
---|
9932 | ;; |
---|
9933 | *Sun\ C*) |
---|
9934 | # Sun C 5.9 |
---|
9935 | lt_prog_compiler_pic='-KPIC' |
---|
9936 | lt_prog_compiler_static='-Bstatic' |
---|
9937 | lt_prog_compiler_wl='-Wl,' |
---|
9938 | ;; |
---|
9939 | *Intel*\ [CF]*Compiler*) |
---|
9940 | lt_prog_compiler_wl='-Wl,' |
---|
9941 | lt_prog_compiler_pic='-fPIC' |
---|
9942 | lt_prog_compiler_static='-static' |
---|
9943 | ;; |
---|
9944 | *Portland\ Group*) |
---|
9945 | lt_prog_compiler_wl='-Wl,' |
---|
9946 | lt_prog_compiler_pic='-fpic' |
---|
9947 | lt_prog_compiler_static='-Bstatic' |
---|
9948 | ;; |
---|
9949 | esac |
---|
9950 | ;; |
---|
9951 | esac |
---|
9952 | ;; |
---|
9953 | |
---|
9954 | newsos6) |
---|
9955 | lt_prog_compiler_pic='-KPIC' |
---|
9956 | lt_prog_compiler_static='-Bstatic' |
---|
9957 | ;; |
---|
9958 | |
---|
9959 | *nto* | *qnx*) |
---|
9960 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
---|
9961 | # it will coredump. |
---|
9962 | lt_prog_compiler_pic='-fPIC -shared' |
---|
9963 | ;; |
---|
9964 | |
---|
9965 | osf3* | osf4* | osf5*) |
---|
9966 | lt_prog_compiler_wl='-Wl,' |
---|
9967 | # All OSF/1 code is PIC. |
---|
9968 | lt_prog_compiler_static='-non_shared' |
---|
9969 | ;; |
---|
9970 | |
---|
9971 | rdos*) |
---|
9972 | lt_prog_compiler_static='-non_shared' |
---|
9973 | ;; |
---|
9974 | |
---|
9975 | solaris*) |
---|
9976 | lt_prog_compiler_pic='-KPIC' |
---|
9977 | lt_prog_compiler_static='-Bstatic' |
---|
9978 | case $cc_basename in |
---|
9979 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
---|
9980 | lt_prog_compiler_wl='-Qoption ld ';; |
---|
9981 | *) |
---|
9982 | lt_prog_compiler_wl='-Wl,';; |
---|
9983 | esac |
---|
9984 | ;; |
---|
9985 | |
---|
9986 | sunos4*) |
---|
9987 | lt_prog_compiler_wl='-Qoption ld ' |
---|
9988 | lt_prog_compiler_pic='-PIC' |
---|
9989 | lt_prog_compiler_static='-Bstatic' |
---|
9990 | ;; |
---|
9991 | |
---|
9992 | sysv4 | sysv4.2uw2* | sysv4.3*) |
---|
9993 | lt_prog_compiler_wl='-Wl,' |
---|
9994 | lt_prog_compiler_pic='-KPIC' |
---|
9995 | lt_prog_compiler_static='-Bstatic' |
---|
9996 | ;; |
---|
9997 | |
---|
9998 | sysv4*MP*) |
---|
9999 | if test -d /usr/nec ;then |
---|
10000 | lt_prog_compiler_pic='-Kconform_pic' |
---|
10001 | lt_prog_compiler_static='-Bstatic' |
---|
10002 | fi |
---|
10003 | ;; |
---|
10004 | |
---|
10005 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
---|
10006 | lt_prog_compiler_wl='-Wl,' |
---|
10007 | lt_prog_compiler_pic='-KPIC' |
---|
10008 | lt_prog_compiler_static='-Bstatic' |
---|
10009 | ;; |
---|
10010 | |
---|
10011 | unicos*) |
---|
10012 | lt_prog_compiler_wl='-Wl,' |
---|
10013 | lt_prog_compiler_can_build_shared=no |
---|
10014 | ;; |
---|
10015 | |
---|
10016 | uts4*) |
---|
10017 | lt_prog_compiler_pic='-pic' |
---|
10018 | lt_prog_compiler_static='-Bstatic' |
---|
10019 | ;; |
---|
10020 | |
---|
10021 | *) |
---|
10022 | lt_prog_compiler_can_build_shared=no |
---|
10023 | ;; |
---|
10024 | esac |
---|
10025 | fi |
---|
10026 | |
---|
10027 | case $host_os in |
---|
10028 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
10029 | *djgpp*) |
---|
10030 | lt_prog_compiler_pic= |
---|
10031 | ;; |
---|
10032 | *) |
---|
10033 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
---|
10034 | ;; |
---|
10035 | esac |
---|
10036 | |
---|
10037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
---|
10038 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
---|
10039 | if ${lt_cv_prog_compiler_pic+:} false; then : |
---|
10040 | $as_echo_n "(cached) " >&6 |
---|
10041 | else |
---|
10042 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
---|
10043 | fi |
---|
10044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
---|
10045 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
---|
10046 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
---|
10047 | |
---|
10048 | # |
---|
10049 | # Check to make sure the PIC flag actually works. |
---|
10050 | # |
---|
10051 | if test -n "$lt_prog_compiler_pic"; then |
---|
10052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
---|
10053 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
---|
10054 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
---|
10055 | $as_echo_n "(cached) " >&6 |
---|
10056 | else |
---|
10057 | lt_cv_prog_compiler_pic_works=no |
---|
10058 | ac_outfile=conftest.$ac_objext |
---|
10059 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
10060 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
---|
10061 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
10062 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
10063 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
10064 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
10065 | # The option is referenced via a variable to avoid confusing sed. |
---|
10066 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
10067 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
10068 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
10069 | -e 's:$: $lt_compiler_flag:'` |
---|
10070 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
---|
10071 | (eval "$lt_compile" 2>conftest.err) |
---|
10072 | ac_status=$? |
---|
10073 | cat conftest.err >&5 |
---|
10074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10075 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
10076 | # The compiler can only warn and ignore the option if not recognized |
---|
10077 | # So say no if there are warnings other than the usual output. |
---|
10078 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
---|
10079 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
10080 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
10081 | lt_cv_prog_compiler_pic_works=yes |
---|
10082 | fi |
---|
10083 | fi |
---|
10084 | $RM conftest* |
---|
10085 | |
---|
10086 | fi |
---|
10087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
---|
10088 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
---|
10089 | |
---|
10090 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
---|
10091 | case $lt_prog_compiler_pic in |
---|
10092 | "" | " "*) ;; |
---|
10093 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
---|
10094 | esac |
---|
10095 | else |
---|
10096 | lt_prog_compiler_pic= |
---|
10097 | lt_prog_compiler_can_build_shared=no |
---|
10098 | fi |
---|
10099 | |
---|
10100 | fi |
---|
10101 | |
---|
10102 | |
---|
10103 | |
---|
10104 | |
---|
10105 | |
---|
10106 | |
---|
10107 | |
---|
10108 | |
---|
10109 | |
---|
10110 | |
---|
10111 | |
---|
10112 | # |
---|
10113 | # Check to make sure the static flag actually works. |
---|
10114 | # |
---|
10115 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
---|
10116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
---|
10117 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
---|
10118 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
---|
10119 | $as_echo_n "(cached) " >&6 |
---|
10120 | else |
---|
10121 | lt_cv_prog_compiler_static_works=no |
---|
10122 | save_LDFLAGS="$LDFLAGS" |
---|
10123 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
---|
10124 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
10125 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
10126 | # The linker can only warn and ignore the option if not recognized |
---|
10127 | # So say no if there are warnings |
---|
10128 | if test -s conftest.err; then |
---|
10129 | # Append any errors to the config.log. |
---|
10130 | cat conftest.err 1>&5 |
---|
10131 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
---|
10132 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
10133 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
10134 | lt_cv_prog_compiler_static_works=yes |
---|
10135 | fi |
---|
10136 | else |
---|
10137 | lt_cv_prog_compiler_static_works=yes |
---|
10138 | fi |
---|
10139 | fi |
---|
10140 | $RM -r conftest* |
---|
10141 | LDFLAGS="$save_LDFLAGS" |
---|
10142 | |
---|
10143 | fi |
---|
10144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
---|
10145 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
---|
10146 | |
---|
10147 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
---|
10148 | : |
---|
10149 | else |
---|
10150 | lt_prog_compiler_static= |
---|
10151 | fi |
---|
10152 | |
---|
10153 | |
---|
10154 | |
---|
10155 | |
---|
10156 | |
---|
10157 | |
---|
10158 | |
---|
10159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
10160 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
---|
10161 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
---|
10162 | $as_echo_n "(cached) " >&6 |
---|
10163 | else |
---|
10164 | lt_cv_prog_compiler_c_o=no |
---|
10165 | $RM -r conftest 2>/dev/null |
---|
10166 | mkdir conftest |
---|
10167 | cd conftest |
---|
10168 | mkdir out |
---|
10169 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
10170 | |
---|
10171 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
10172 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
10173 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
10174 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
10175 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
10176 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
10177 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
10178 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
10179 | -e 's:$: $lt_compiler_flag:'` |
---|
10180 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
---|
10181 | (eval "$lt_compile" 2>out/conftest.err) |
---|
10182 | ac_status=$? |
---|
10183 | cat out/conftest.err >&5 |
---|
10184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10185 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
10186 | then |
---|
10187 | # The compiler can only warn and ignore the option if not recognized |
---|
10188 | # So say no if there are warnings |
---|
10189 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
---|
10190 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
10191 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
10192 | lt_cv_prog_compiler_c_o=yes |
---|
10193 | fi |
---|
10194 | fi |
---|
10195 | chmod u+w . 2>&5 |
---|
10196 | $RM conftest* |
---|
10197 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
10198 | # template instantiation |
---|
10199 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
---|
10200 | $RM out/* && rmdir out |
---|
10201 | cd .. |
---|
10202 | $RM -r conftest |
---|
10203 | $RM conftest* |
---|
10204 | |
---|
10205 | fi |
---|
10206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
10207 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
---|
10208 | |
---|
10209 | |
---|
10210 | |
---|
10211 | |
---|
10212 | |
---|
10213 | |
---|
10214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
10215 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
---|
10216 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
---|
10217 | $as_echo_n "(cached) " >&6 |
---|
10218 | else |
---|
10219 | lt_cv_prog_compiler_c_o=no |
---|
10220 | $RM -r conftest 2>/dev/null |
---|
10221 | mkdir conftest |
---|
10222 | cd conftest |
---|
10223 | mkdir out |
---|
10224 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
10225 | |
---|
10226 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
10227 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
10228 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
10229 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
10230 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
10231 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
10232 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
10233 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
10234 | -e 's:$: $lt_compiler_flag:'` |
---|
10235 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
---|
10236 | (eval "$lt_compile" 2>out/conftest.err) |
---|
10237 | ac_status=$? |
---|
10238 | cat out/conftest.err >&5 |
---|
10239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10240 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
10241 | then |
---|
10242 | # The compiler can only warn and ignore the option if not recognized |
---|
10243 | # So say no if there are warnings |
---|
10244 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
---|
10245 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
10246 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
10247 | lt_cv_prog_compiler_c_o=yes |
---|
10248 | fi |
---|
10249 | fi |
---|
10250 | chmod u+w . 2>&5 |
---|
10251 | $RM conftest* |
---|
10252 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
10253 | # template instantiation |
---|
10254 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
---|
10255 | $RM out/* && rmdir out |
---|
10256 | cd .. |
---|
10257 | $RM -r conftest |
---|
10258 | $RM conftest* |
---|
10259 | |
---|
10260 | fi |
---|
10261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
10262 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
---|
10263 | |
---|
10264 | |
---|
10265 | |
---|
10266 | |
---|
10267 | hard_links="nottested" |
---|
10268 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
---|
10269 | # do not overwrite the value of need_locks provided by the user |
---|
10270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
---|
10271 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
---|
10272 | hard_links=yes |
---|
10273 | $RM conftest* |
---|
10274 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
10275 | touch conftest.a |
---|
10276 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
10277 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
10278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
---|
10279 | $as_echo "$hard_links" >&6; } |
---|
10280 | if test "$hard_links" = no; then |
---|
10281 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
10282 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
10283 | need_locks=warn |
---|
10284 | fi |
---|
10285 | else |
---|
10286 | need_locks=no |
---|
10287 | fi |
---|
10288 | |
---|
10289 | |
---|
10290 | |
---|
10291 | |
---|
10292 | |
---|
10293 | |
---|
10294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
10295 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
---|
10296 | |
---|
10297 | runpath_var= |
---|
10298 | allow_undefined_flag= |
---|
10299 | always_export_symbols=no |
---|
10300 | archive_cmds= |
---|
10301 | archive_expsym_cmds= |
---|
10302 | compiler_needs_object=no |
---|
10303 | enable_shared_with_static_runtimes=no |
---|
10304 | export_dynamic_flag_spec= |
---|
10305 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
10306 | hardcode_automatic=no |
---|
10307 | hardcode_direct=no |
---|
10308 | hardcode_direct_absolute=no |
---|
10309 | hardcode_libdir_flag_spec= |
---|
10310 | hardcode_libdir_separator= |
---|
10311 | hardcode_minus_L=no |
---|
10312 | hardcode_shlibpath_var=unsupported |
---|
10313 | inherit_rpath=no |
---|
10314 | link_all_deplibs=unknown |
---|
10315 | module_cmds= |
---|
10316 | module_expsym_cmds= |
---|
10317 | old_archive_from_new_cmds= |
---|
10318 | old_archive_from_expsyms_cmds= |
---|
10319 | thread_safe_flag_spec= |
---|
10320 | whole_archive_flag_spec= |
---|
10321 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
10322 | # included in the symbol list |
---|
10323 | include_expsyms= |
---|
10324 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
10325 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
10326 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
10327 | # as well as any symbol that contains `d'. |
---|
10328 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
---|
10329 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
10330 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
10331 | # the symbol is explicitly referenced. Since portable code cannot |
---|
10332 | # rely on this symbol name, it's probably fine to never include it in |
---|
10333 | # preloaded symbol tables. |
---|
10334 | # Exclude shared library initialization/finalization symbols. |
---|
10335 | extract_expsyms_cmds= |
---|
10336 | |
---|
10337 | case $host_os in |
---|
10338 | cygwin* | mingw* | pw32* | cegcc*) |
---|
10339 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
10340 | # When not using gcc, we currently assume that we are using |
---|
10341 | # Microsoft Visual C++. |
---|
10342 | if test "$GCC" != yes; then |
---|
10343 | with_gnu_ld=no |
---|
10344 | fi |
---|
10345 | ;; |
---|
10346 | interix*) |
---|
10347 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
---|
10348 | with_gnu_ld=yes |
---|
10349 | ;; |
---|
10350 | openbsd*) |
---|
10351 | with_gnu_ld=no |
---|
10352 | ;; |
---|
10353 | esac |
---|
10354 | |
---|
10355 | ld_shlibs=yes |
---|
10356 | |
---|
10357 | # On some targets, GNU ld is compatible enough with the native linker |
---|
10358 | # that we're better off using the native interface for both. |
---|
10359 | lt_use_gnu_ld_interface=no |
---|
10360 | if test "$with_gnu_ld" = yes; then |
---|
10361 | case $host_os in |
---|
10362 | aix*) |
---|
10363 | # The AIX port of GNU ld has always aspired to compatibility |
---|
10364 | # with the native linker. However, as the warning in the GNU ld |
---|
10365 | # block says, versions before 2.19.5* couldn't really create working |
---|
10366 | # shared libraries, regardless of the interface used. |
---|
10367 | case `$LD -v 2>&1` in |
---|
10368 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
---|
10369 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
---|
10370 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
---|
10371 | *) |
---|
10372 | lt_use_gnu_ld_interface=yes |
---|
10373 | ;; |
---|
10374 | esac |
---|
10375 | ;; |
---|
10376 | *) |
---|
10377 | lt_use_gnu_ld_interface=yes |
---|
10378 | ;; |
---|
10379 | esac |
---|
10380 | fi |
---|
10381 | |
---|
10382 | if test "$lt_use_gnu_ld_interface" = yes; then |
---|
10383 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
10384 | wlarc='${wl}' |
---|
10385 | |
---|
10386 | # Set some defaults for GNU ld with shared library support. These |
---|
10387 | # are reset later if shared libraries are not supported. Putting them |
---|
10388 | # here allows them to be overridden if necessary. |
---|
10389 | runpath_var=LD_RUN_PATH |
---|
10390 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
10391 | export_dynamic_flag_spec='${wl}--export-dynamic' |
---|
10392 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
10393 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
---|
10394 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
10395 | else |
---|
10396 | whole_archive_flag_spec= |
---|
10397 | fi |
---|
10398 | supports_anon_versioning=no |
---|
10399 | case `$LD -v 2>&1` in |
---|
10400 | *GNU\ gold*) supports_anon_versioning=yes ;; |
---|
10401 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
10402 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
10403 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
10404 | *\ 2.11.*) ;; # other 2.11 versions |
---|
10405 | *) supports_anon_versioning=yes ;; |
---|
10406 | esac |
---|
10407 | |
---|
10408 | # See if GNU ld supports shared libraries. |
---|
10409 | case $host_os in |
---|
10410 | aix[3-9]*) |
---|
10411 | # On AIX/PPC, the GNU linker is very broken |
---|
10412 | if test "$host_cpu" != ia64; then |
---|
10413 | ld_shlibs=no |
---|
10414 | cat <<_LT_EOF 1>&2 |
---|
10415 | |
---|
10416 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
---|
10417 | *** to be unable to reliably create shared libraries on AIX. |
---|
10418 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
10419 | *** really care for shared libraries, you may want to install binutils |
---|
10420 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
---|
10421 | *** You will then need to restart the configuration process. |
---|
10422 | |
---|
10423 | _LT_EOF |
---|
10424 | fi |
---|
10425 | ;; |
---|
10426 | |
---|
10427 | amigaos*) |
---|
10428 | case $host_cpu in |
---|
10429 | powerpc) |
---|
10430 | # see comment about AmigaOS4 .so support |
---|
10431 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10432 | archive_expsym_cmds='' |
---|
10433 | ;; |
---|
10434 | m68k) |
---|
10435 | 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)' |
---|
10436 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10437 | hardcode_minus_L=yes |
---|
10438 | ;; |
---|
10439 | esac |
---|
10440 | ;; |
---|
10441 | |
---|
10442 | beos*) |
---|
10443 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
---|
10444 | allow_undefined_flag=unsupported |
---|
10445 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
10446 | # support --undefined. This deserves some investigation. FIXME |
---|
10447 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10448 | else |
---|
10449 | ld_shlibs=no |
---|
10450 | fi |
---|
10451 | ;; |
---|
10452 | |
---|
10453 | cygwin* | mingw* | pw32* | cegcc*) |
---|
10454 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
---|
10455 | # as there is no search path for DLLs. |
---|
10456 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10457 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
---|
10458 | allow_undefined_flag=unsupported |
---|
10459 | always_export_symbols=no |
---|
10460 | enable_shared_with_static_runtimes=yes |
---|
10461 | 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' |
---|
10462 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
---|
10463 | |
---|
10464 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
---|
10465 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
10466 | # If the export-symbols file already is a .def file (1st line |
---|
10467 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
10468 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
10469 | cp $export_symbols $output_objdir/$soname.def; |
---|
10470 | else |
---|
10471 | echo EXPORTS > $output_objdir/$soname.def; |
---|
10472 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
10473 | fi~ |
---|
10474 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
10475 | else |
---|
10476 | ld_shlibs=no |
---|
10477 | fi |
---|
10478 | ;; |
---|
10479 | |
---|
10480 | haiku*) |
---|
10481 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10482 | link_all_deplibs=yes |
---|
10483 | ;; |
---|
10484 | |
---|
10485 | interix[3-9]*) |
---|
10486 | hardcode_direct=no |
---|
10487 | hardcode_shlibpath_var=no |
---|
10488 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
10489 | export_dynamic_flag_spec='${wl}-E' |
---|
10490 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
---|
10491 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
---|
10492 | # default) and relocated if they conflict, which is a slow very memory |
---|
10493 | # consuming and fragmenting process. To avoid this, we pick a random, |
---|
10494 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
---|
10495 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
---|
10496 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
---|
10497 | 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' |
---|
10498 | ;; |
---|
10499 | |
---|
10500 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
---|
10501 | tmp_diet=no |
---|
10502 | if test "$host_os" = linux-dietlibc; then |
---|
10503 | case $cc_basename in |
---|
10504 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
---|
10505 | esac |
---|
10506 | fi |
---|
10507 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
---|
10508 | && test "$tmp_diet" = no |
---|
10509 | then |
---|
10510 | tmp_addflag=' $pic_flag' |
---|
10511 | tmp_sharedflag='-shared' |
---|
10512 | case $cc_basename,$host_cpu in |
---|
10513 | pgcc*) # Portland Group C compiler |
---|
10514 | 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' |
---|
10515 | tmp_addflag=' $pic_flag' |
---|
10516 | ;; |
---|
10517 | pgf77* | pgf90* | pgf95* | pgfortran*) |
---|
10518 | # Portland Group f77 and f90 compilers |
---|
10519 | 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' |
---|
10520 | tmp_addflag=' $pic_flag -Mnomain' ;; |
---|
10521 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
10522 | tmp_addflag=' -i_dynamic' ;; |
---|
10523 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
10524 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
10525 | ifc* | ifort*) # Intel Fortran compiler |
---|
10526 | tmp_addflag=' -nofor_main' ;; |
---|
10527 | lf95*) # Lahey Fortran 8.1 |
---|
10528 | whole_archive_flag_spec= |
---|
10529 | tmp_sharedflag='--shared' ;; |
---|
10530 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
---|
10531 | tmp_sharedflag='-qmkshrobj' |
---|
10532 | tmp_addflag= ;; |
---|
10533 | nvcc*) # Cuda Compiler Driver 2.2 |
---|
10534 | 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' |
---|
10535 | compiler_needs_object=yes |
---|
10536 | ;; |
---|
10537 | esac |
---|
10538 | case `$CC -V 2>&1 | sed 5q` in |
---|
10539 | *Sun\ C*) # Sun C 5.9 |
---|
10540 | 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' |
---|
10541 | compiler_needs_object=yes |
---|
10542 | tmp_sharedflag='-G' ;; |
---|
10543 | *Sun\ F*) # Sun Fortran 8.3 |
---|
10544 | tmp_sharedflag='-G' ;; |
---|
10545 | esac |
---|
10546 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10547 | |
---|
10548 | if test "x$supports_anon_versioning" = xyes; then |
---|
10549 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
---|
10550 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
10551 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
10552 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
10553 | fi |
---|
10554 | |
---|
10555 | case $cc_basename in |
---|
10556 | xlf* | bgf* | bgxlf* | mpixlf*) |
---|
10557 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
---|
10558 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
---|
10559 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
10560 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
---|
10561 | if test "x$supports_anon_versioning" = xyes; then |
---|
10562 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
---|
10563 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
10564 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
10565 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
---|
10566 | fi |
---|
10567 | ;; |
---|
10568 | esac |
---|
10569 | else |
---|
10570 | ld_shlibs=no |
---|
10571 | fi |
---|
10572 | ;; |
---|
10573 | |
---|
10574 | netbsd*) |
---|
10575 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
---|
10576 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
10577 | wlarc= |
---|
10578 | else |
---|
10579 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10580 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
10581 | fi |
---|
10582 | ;; |
---|
10583 | |
---|
10584 | solaris*) |
---|
10585 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
---|
10586 | ld_shlibs=no |
---|
10587 | cat <<_LT_EOF 1>&2 |
---|
10588 | |
---|
10589 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
10590 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
10591 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
10592 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
10593 | *** your PATH or compiler configuration so that the native linker is |
---|
10594 | *** used, and then restart. |
---|
10595 | |
---|
10596 | _LT_EOF |
---|
10597 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
---|
10598 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10599 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
10600 | else |
---|
10601 | ld_shlibs=no |
---|
10602 | fi |
---|
10603 | ;; |
---|
10604 | |
---|
10605 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
---|
10606 | case `$LD -v 2>&1` in |
---|
10607 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
---|
10608 | ld_shlibs=no |
---|
10609 | cat <<_LT_EOF 1>&2 |
---|
10610 | |
---|
10611 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
---|
10612 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
---|
10613 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
10614 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
---|
10615 | *** your PATH or compiler configuration so that the native linker is |
---|
10616 | *** used, and then restart. |
---|
10617 | |
---|
10618 | _LT_EOF |
---|
10619 | ;; |
---|
10620 | *) |
---|
10621 | # For security reasons, it is highly recommended that you always |
---|
10622 | # use absolute paths for naming shared libraries, and exclude the |
---|
10623 | # DT_RUNPATH tag from executables and libraries. But doing so |
---|
10624 | # requires that you compile everything twice, which is a pain. |
---|
10625 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
---|
10626 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
10627 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10628 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
10629 | else |
---|
10630 | ld_shlibs=no |
---|
10631 | fi |
---|
10632 | ;; |
---|
10633 | esac |
---|
10634 | ;; |
---|
10635 | |
---|
10636 | sunos4*) |
---|
10637 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
10638 | wlarc= |
---|
10639 | hardcode_direct=yes |
---|
10640 | hardcode_shlibpath_var=no |
---|
10641 | ;; |
---|
10642 | |
---|
10643 | *) |
---|
10644 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
---|
10645 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10646 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
10647 | else |
---|
10648 | ld_shlibs=no |
---|
10649 | fi |
---|
10650 | ;; |
---|
10651 | esac |
---|
10652 | |
---|
10653 | if test "$ld_shlibs" = no; then |
---|
10654 | runpath_var= |
---|
10655 | hardcode_libdir_flag_spec= |
---|
10656 | export_dynamic_flag_spec= |
---|
10657 | whole_archive_flag_spec= |
---|
10658 | fi |
---|
10659 | else |
---|
10660 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
10661 | case $host_os in |
---|
10662 | aix3*) |
---|
10663 | allow_undefined_flag=unsupported |
---|
10664 | always_export_symbols=yes |
---|
10665 | 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' |
---|
10666 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
10667 | # are no directories specified by -L. |
---|
10668 | hardcode_minus_L=yes |
---|
10669 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
---|
10670 | # Neither direct hardcoding nor static linking is supported with a |
---|
10671 | # broken collect2. |
---|
10672 | hardcode_direct=unsupported |
---|
10673 | fi |
---|
10674 | ;; |
---|
10675 | |
---|
10676 | aix[4-9]*) |
---|
10677 | if test "$host_cpu" = ia64; then |
---|
10678 | # On IA64, the linker does run time linking by default, so we don't |
---|
10679 | # have to do anything special. |
---|
10680 | aix_use_runtimelinking=no |
---|
10681 | exp_sym_flag='-Bexport' |
---|
10682 | no_entry_flag="" |
---|
10683 | else |
---|
10684 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
10685 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
10686 | # Also, AIX nm treats weak defined symbols like other global |
---|
10687 | # defined symbols, whereas GNU nm marks them as "W". |
---|
10688 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
---|
10689 | 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' |
---|
10690 | else |
---|
10691 | 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' |
---|
10692 | fi |
---|
10693 | aix_use_runtimelinking=no |
---|
10694 | |
---|
10695 | # Test if we are trying to use run time linking or normal |
---|
10696 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
10697 | # need to do runtime linking. |
---|
10698 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
---|
10699 | for ld_flag in $LDFLAGS; do |
---|
10700 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
10701 | aix_use_runtimelinking=yes |
---|
10702 | break |
---|
10703 | fi |
---|
10704 | done |
---|
10705 | ;; |
---|
10706 | esac |
---|
10707 | |
---|
10708 | exp_sym_flag='-bexport' |
---|
10709 | no_entry_flag='-bnoentry' |
---|
10710 | fi |
---|
10711 | |
---|
10712 | # When large executables or shared objects are built, AIX ld can |
---|
10713 | # have problems creating the table of contents. If linking a library |
---|
10714 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
10715 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
10716 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
10717 | |
---|
10718 | archive_cmds='' |
---|
10719 | hardcode_direct=yes |
---|
10720 | hardcode_direct_absolute=yes |
---|
10721 | hardcode_libdir_separator=':' |
---|
10722 | link_all_deplibs=yes |
---|
10723 | file_list_spec='${wl}-f,' |
---|
10724 | |
---|
10725 | if test "$GCC" = yes; then |
---|
10726 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
10727 | # We only want to do this on AIX 4.2 and lower, the check |
---|
10728 | # below for broken collect2 doesn't work under 4.3+ |
---|
10729 | collect2name=`${CC} -print-prog-name=collect2` |
---|
10730 | if test -f "$collect2name" && |
---|
10731 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
---|
10732 | then |
---|
10733 | # We have reworked collect2 |
---|
10734 | : |
---|
10735 | else |
---|
10736 | # We have old collect2 |
---|
10737 | hardcode_direct=unsupported |
---|
10738 | # It fails to find uninstalled libraries when the uninstalled |
---|
10739 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
10740 | # to unsupported forces relinking |
---|
10741 | hardcode_minus_L=yes |
---|
10742 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10743 | hardcode_libdir_separator= |
---|
10744 | fi |
---|
10745 | ;; |
---|
10746 | esac |
---|
10747 | shared_flag='-shared' |
---|
10748 | if test "$aix_use_runtimelinking" = yes; then |
---|
10749 | shared_flag="$shared_flag "'${wl}-G' |
---|
10750 | fi |
---|
10751 | else |
---|
10752 | # not using gcc |
---|
10753 | if test "$host_cpu" = ia64; then |
---|
10754 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
10755 | # chokes on -Wl,-G. The following line is correct: |
---|
10756 | shared_flag='-G' |
---|
10757 | else |
---|
10758 | if test "$aix_use_runtimelinking" = yes; then |
---|
10759 | shared_flag='${wl}-G' |
---|
10760 | else |
---|
10761 | shared_flag='${wl}-bM:SRE' |
---|
10762 | fi |
---|
10763 | fi |
---|
10764 | fi |
---|
10765 | |
---|
10766 | export_dynamic_flag_spec='${wl}-bexpall' |
---|
10767 | # It seems that -bexpall does not export symbols beginning with |
---|
10768 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
10769 | always_export_symbols=yes |
---|
10770 | if test "$aix_use_runtimelinking" = yes; then |
---|
10771 | # Warning - without using the other runtime loading flags (-brtl), |
---|
10772 | # -berok will link without error, but may produce a broken library. |
---|
10773 | allow_undefined_flag='-berok' |
---|
10774 | # Determine the default libpath from the value encoded in an |
---|
10775 | # empty executable. |
---|
10776 | if test "${lt_cv_aix_libpath+set}" = set; then |
---|
10777 | aix_libpath=$lt_cv_aix_libpath |
---|
10778 | else |
---|
10779 | if ${lt_cv_aix_libpath_+:} false; then : |
---|
10780 | $as_echo_n "(cached) " >&6 |
---|
10781 | else |
---|
10782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
10783 | /* end confdefs.h. */ |
---|
10784 | |
---|
10785 | int |
---|
10786 | main () |
---|
10787 | { |
---|
10788 | |
---|
10789 | ; |
---|
10790 | return 0; |
---|
10791 | } |
---|
10792 | _ACEOF |
---|
10793 | if ac_fn_c_try_link "$LINENO"; then : |
---|
10794 | |
---|
10795 | lt_aix_libpath_sed=' |
---|
10796 | /Import File Strings/,/^$/ { |
---|
10797 | /^0/ { |
---|
10798 | s/^0 *\([^ ]*\) *$/\1/ |
---|
10799 | p |
---|
10800 | } |
---|
10801 | }' |
---|
10802 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
10803 | # Check for a 64-bit object if we didn't find anything. |
---|
10804 | if test -z "$lt_cv_aix_libpath_"; then |
---|
10805 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
10806 | fi |
---|
10807 | fi |
---|
10808 | rm -f core conftest.err conftest.$ac_objext \ |
---|
10809 | conftest$ac_exeext conftest.$ac_ext |
---|
10810 | if test -z "$lt_cv_aix_libpath_"; then |
---|
10811 | lt_cv_aix_libpath_="/usr/lib:/lib" |
---|
10812 | fi |
---|
10813 | |
---|
10814 | fi |
---|
10815 | |
---|
10816 | aix_libpath=$lt_cv_aix_libpath_ |
---|
10817 | fi |
---|
10818 | |
---|
10819 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
10820 | 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" |
---|
10821 | else |
---|
10822 | if test "$host_cpu" = ia64; then |
---|
10823 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
---|
10824 | allow_undefined_flag="-z nodefs" |
---|
10825 | 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" |
---|
10826 | else |
---|
10827 | # Determine the default libpath from the value encoded in an |
---|
10828 | # empty executable. |
---|
10829 | if test "${lt_cv_aix_libpath+set}" = set; then |
---|
10830 | aix_libpath=$lt_cv_aix_libpath |
---|
10831 | else |
---|
10832 | if ${lt_cv_aix_libpath_+:} false; then : |
---|
10833 | $as_echo_n "(cached) " >&6 |
---|
10834 | else |
---|
10835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
10836 | /* end confdefs.h. */ |
---|
10837 | |
---|
10838 | int |
---|
10839 | main () |
---|
10840 | { |
---|
10841 | |
---|
10842 | ; |
---|
10843 | return 0; |
---|
10844 | } |
---|
10845 | _ACEOF |
---|
10846 | if ac_fn_c_try_link "$LINENO"; then : |
---|
10847 | |
---|
10848 | lt_aix_libpath_sed=' |
---|
10849 | /Import File Strings/,/^$/ { |
---|
10850 | /^0/ { |
---|
10851 | s/^0 *\([^ ]*\) *$/\1/ |
---|
10852 | p |
---|
10853 | } |
---|
10854 | }' |
---|
10855 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
10856 | # Check for a 64-bit object if we didn't find anything. |
---|
10857 | if test -z "$lt_cv_aix_libpath_"; then |
---|
10858 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
10859 | fi |
---|
10860 | fi |
---|
10861 | rm -f core conftest.err conftest.$ac_objext \ |
---|
10862 | conftest$ac_exeext conftest.$ac_ext |
---|
10863 | if test -z "$lt_cv_aix_libpath_"; then |
---|
10864 | lt_cv_aix_libpath_="/usr/lib:/lib" |
---|
10865 | fi |
---|
10866 | |
---|
10867 | fi |
---|
10868 | |
---|
10869 | aix_libpath=$lt_cv_aix_libpath_ |
---|
10870 | fi |
---|
10871 | |
---|
10872 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
10873 | # Warning - without using the other run time loading flags, |
---|
10874 | # -berok will link without error, but may produce a broken library. |
---|
10875 | no_undefined_flag=' ${wl}-bernotok' |
---|
10876 | allow_undefined_flag=' ${wl}-berok' |
---|
10877 | if test "$with_gnu_ld" = yes; then |
---|
10878 | # We only use this code for GNU lds that support --whole-archive. |
---|
10879 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
---|
10880 | else |
---|
10881 | # Exported symbols can be pulled into shared objects from archives |
---|
10882 | whole_archive_flag_spec='$convenience' |
---|
10883 | fi |
---|
10884 | archive_cmds_need_lc=yes |
---|
10885 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
10886 | 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' |
---|
10887 | fi |
---|
10888 | fi |
---|
10889 | ;; |
---|
10890 | |
---|
10891 | amigaos*) |
---|
10892 | case $host_cpu in |
---|
10893 | powerpc) |
---|
10894 | # see comment about AmigaOS4 .so support |
---|
10895 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
10896 | archive_expsym_cmds='' |
---|
10897 | ;; |
---|
10898 | m68k) |
---|
10899 | 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)' |
---|
10900 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10901 | hardcode_minus_L=yes |
---|
10902 | ;; |
---|
10903 | esac |
---|
10904 | ;; |
---|
10905 | |
---|
10906 | bsdi[45]*) |
---|
10907 | export_dynamic_flag_spec=-rdynamic |
---|
10908 | ;; |
---|
10909 | |
---|
10910 | cygwin* | mingw* | pw32* | cegcc*) |
---|
10911 | # When not using gcc, we currently assume that we are using |
---|
10912 | # Microsoft Visual C++. |
---|
10913 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
10914 | # no search path for DLLs. |
---|
10915 | case $cc_basename in |
---|
10916 | cl*) |
---|
10917 | # Native MSVC |
---|
10918 | hardcode_libdir_flag_spec=' ' |
---|
10919 | allow_undefined_flag=unsupported |
---|
10920 | always_export_symbols=yes |
---|
10921 | file_list_spec='@' |
---|
10922 | # Tell ltmain to make .lib files, not .a files. |
---|
10923 | libext=lib |
---|
10924 | # Tell ltmain to make .dll files, not .so files. |
---|
10925 | shrext_cmds=".dll" |
---|
10926 | # FIXME: Setting linknames here is a bad hack. |
---|
10927 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
---|
10928 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
10929 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
---|
10930 | else |
---|
10931 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
---|
10932 | fi~ |
---|
10933 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
---|
10934 | linknames=' |
---|
10935 | # The linker will not automatically build a static lib if we build a DLL. |
---|
10936 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
---|
10937 | enable_shared_with_static_runtimes=yes |
---|
10938 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
---|
10939 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
---|
10940 | # Don't use ranlib |
---|
10941 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
10942 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
---|
10943 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
---|
10944 | case $lt_outputfile in |
---|
10945 | *.exe|*.EXE) ;; |
---|
10946 | *) |
---|
10947 | lt_outputfile="$lt_outputfile.exe" |
---|
10948 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
---|
10949 | ;; |
---|
10950 | esac~ |
---|
10951 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
---|
10952 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
---|
10953 | $RM "$lt_outputfile.manifest"; |
---|
10954 | fi' |
---|
10955 | ;; |
---|
10956 | *) |
---|
10957 | # Assume MSVC wrapper |
---|
10958 | hardcode_libdir_flag_spec=' ' |
---|
10959 | allow_undefined_flag=unsupported |
---|
10960 | # Tell ltmain to make .lib files, not .a files. |
---|
10961 | libext=lib |
---|
10962 | # Tell ltmain to make .dll files, not .so files. |
---|
10963 | shrext_cmds=".dll" |
---|
10964 | # FIXME: Setting linknames here is a bad hack. |
---|
10965 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
10966 | # The linker will automatically build a .lib file if we build a DLL. |
---|
10967 | old_archive_from_new_cmds='true' |
---|
10968 | # FIXME: Should let the user specify the lib program. |
---|
10969 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
---|
10970 | enable_shared_with_static_runtimes=yes |
---|
10971 | ;; |
---|
10972 | esac |
---|
10973 | ;; |
---|
10974 | |
---|
10975 | darwin* | rhapsody*) |
---|
10976 | |
---|
10977 | |
---|
10978 | archive_cmds_need_lc=no |
---|
10979 | hardcode_direct=no |
---|
10980 | hardcode_automatic=yes |
---|
10981 | hardcode_shlibpath_var=unsupported |
---|
10982 | if test "$lt_cv_ld_force_load" = "yes"; then |
---|
10983 | 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\"`' |
---|
10984 | |
---|
10985 | else |
---|
10986 | whole_archive_flag_spec='' |
---|
10987 | fi |
---|
10988 | link_all_deplibs=yes |
---|
10989 | allow_undefined_flag="$_lt_dar_allow_undefined" |
---|
10990 | case $cc_basename in |
---|
10991 | ifort*) _lt_dar_can_shared=yes ;; |
---|
10992 | *) _lt_dar_can_shared=$GCC ;; |
---|
10993 | esac |
---|
10994 | if test "$_lt_dar_can_shared" = "yes"; then |
---|
10995 | output_verbose_link_cmd=func_echo_all |
---|
10996 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
---|
10997 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
---|
10998 | 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}" |
---|
10999 | 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}" |
---|
11000 | |
---|
11001 | else |
---|
11002 | ld_shlibs=no |
---|
11003 | fi |
---|
11004 | |
---|
11005 | ;; |
---|
11006 | |
---|
11007 | dgux*) |
---|
11008 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
11009 | hardcode_libdir_flag_spec='-L$libdir' |
---|
11010 | hardcode_shlibpath_var=no |
---|
11011 | ;; |
---|
11012 | |
---|
11013 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
11014 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
11015 | # does not break anything, and helps significantly (at the cost of a little |
---|
11016 | # extra space). |
---|
11017 | freebsd2.2*) |
---|
11018 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
11019 | hardcode_libdir_flag_spec='-R$libdir' |
---|
11020 | hardcode_direct=yes |
---|
11021 | hardcode_shlibpath_var=no |
---|
11022 | ;; |
---|
11023 | |
---|
11024 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
11025 | freebsd2.*) |
---|
11026 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linke |
---|