1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.69 for Clp trunk. |
---|
4 | # |
---|
5 | # Report bugs to <clp@list.coin-or.org>. |
---|
6 | # |
---|
7 | # |
---|
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
---|
9 | # |
---|
10 | # |
---|
11 | # This configure script is free software; the Free Software Foundation |
---|
12 | # gives unlimited permission to copy, distribute and modify it. |
---|
13 | # |
---|
14 | # |
---|
15 | # Copyright 2006 International Business Machines and others. |
---|
16 | # All Rights Reserved. |
---|
17 | # This file is part of the open source package Clp which is distributed |
---|
18 | # under the Eclipse Public License. |
---|
19 | ## -------------------- ## |
---|
20 | ## M4sh Initialization. ## |
---|
21 | ## -------------------- ## |
---|
22 | |
---|
23 | # Be more Bourne compatible |
---|
24 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
25 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
26 | emulate sh |
---|
27 | NULLCMD=: |
---|
28 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
29 | # is contrary to our usage. Disable this feature. |
---|
30 | alias -g '${1+"$@"}'='"$@"' |
---|
31 | setopt NO_GLOB_SUBST |
---|
32 | else |
---|
33 | case `(set -o) 2>/dev/null` in #( |
---|
34 | *posix*) : |
---|
35 | set -o posix ;; #( |
---|
36 | *) : |
---|
37 | ;; |
---|
38 | esac |
---|
39 | fi |
---|
40 | |
---|
41 | |
---|
42 | as_nl=' |
---|
43 | ' |
---|
44 | export as_nl |
---|
45 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
46 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
47 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
49 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
50 | # but without wasting forks for bash or zsh. |
---|
51 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
52 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
53 | as_echo='print -r --' |
---|
54 | as_echo_n='print -rn --' |
---|
55 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
56 | as_echo='printf %s\n' |
---|
57 | as_echo_n='printf %s' |
---|
58 | else |
---|
59 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
60 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
61 | as_echo_n='/usr/ucb/echo -n' |
---|
62 | else |
---|
63 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
64 | as_echo_n_body='eval |
---|
65 | arg=$1; |
---|
66 | case $arg in #( |
---|
67 | *"$as_nl"*) |
---|
68 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
69 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
70 | esac; |
---|
71 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
72 | ' |
---|
73 | export as_echo_n_body |
---|
74 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
75 | fi |
---|
76 | export as_echo_body |
---|
77 | as_echo='sh -c $as_echo_body as_echo' |
---|
78 | fi |
---|
79 | |
---|
80 | # The user is always right. |
---|
81 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
82 | PATH_SEPARATOR=: |
---|
83 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
84 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
85 | PATH_SEPARATOR=';' |
---|
86 | } |
---|
87 | fi |
---|
88 | |
---|
89 | |
---|
90 | # IFS |
---|
91 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
92 | # there to prevent editors from complaining about space-tab. |
---|
93 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
94 | # splitting by setting IFS to empty value.) |
---|
95 | IFS=" "" $as_nl" |
---|
96 | |
---|
97 | # Find who we are. Look in the path if we contain no directory separator. |
---|
98 | as_myself= |
---|
99 | case $0 in #(( |
---|
100 | *[\\/]* ) as_myself=$0 ;; |
---|
101 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
102 | for as_dir in $PATH |
---|
103 | do |
---|
104 | IFS=$as_save_IFS |
---|
105 | test -z "$as_dir" && as_dir=. |
---|
106 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
107 | done |
---|
108 | IFS=$as_save_IFS |
---|
109 | |
---|
110 | ;; |
---|
111 | esac |
---|
112 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
113 | # in which case we are not to be found in the path. |
---|
114 | if test "x$as_myself" = x; then |
---|
115 | as_myself=$0 |
---|
116 | fi |
---|
117 | if test ! -f "$as_myself"; then |
---|
118 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
119 | exit 1 |
---|
120 | fi |
---|
121 | |
---|
122 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
123 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
124 | # suppresses any "Segmentation fault" message there. '((' could |
---|
125 | # trigger a bug in pdksh 5.2.14. |
---|
126 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
127 | do eval test x\${$as_var+set} = xset \ |
---|
128 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
129 | done |
---|
130 | PS1='$ ' |
---|
131 | PS2='> ' |
---|
132 | PS4='+ ' |
---|
133 | |
---|
134 | # NLS nuisances. |
---|
135 | LC_ALL=C |
---|
136 | export LC_ALL |
---|
137 | LANGUAGE=C |
---|
138 | export LANGUAGE |
---|
139 | |
---|
140 | # CDPATH. |
---|
141 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
142 | |
---|
143 | # Use a proper internal environment variable to ensure we don't fall |
---|
144 | # into an infinite loop, continuously re-executing ourselves. |
---|
145 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
---|
146 | _as_can_reexec=no; export _as_can_reexec; |
---|
147 | # We cannot yet assume a decent shell, so we have to provide a |
---|
148 | # neutralization value for shells without unset; and this also |
---|
149 | # works around shells that cannot unset nonexistent variables. |
---|
150 | # Preserve -v and -x to the replacement shell. |
---|
151 | BASH_ENV=/dev/null |
---|
152 | ENV=/dev/null |
---|
153 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
154 | case $- in # (((( |
---|
155 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
156 | *v* ) as_opts=-v ;; |
---|
157 | *x* ) as_opts=-x ;; |
---|
158 | * ) as_opts= ;; |
---|
159 | esac |
---|
160 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
161 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
162 | # out after a failed `exec'. |
---|
163 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
164 | as_fn_exit 255 |
---|
165 | fi |
---|
166 | # We don't want this to propagate to other subprocesses. |
---|
167 | { _as_can_reexec=; unset _as_can_reexec;} |
---|
168 | if test "x$CONFIG_SHELL" = x; then |
---|
169 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
170 | emulate sh |
---|
171 | NULLCMD=: |
---|
172 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
173 | # is contrary to our usage. Disable this feature. |
---|
174 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
175 | setopt NO_GLOB_SUBST |
---|
176 | else |
---|
177 | case \`(set -o) 2>/dev/null\` in #( |
---|
178 | *posix*) : |
---|
179 | set -o posix ;; #( |
---|
180 | *) : |
---|
181 | ;; |
---|
182 | esac |
---|
183 | fi |
---|
184 | " |
---|
185 | as_required="as_fn_return () { (exit \$1); } |
---|
186 | as_fn_success () { as_fn_return 0; } |
---|
187 | as_fn_failure () { as_fn_return 1; } |
---|
188 | as_fn_ret_success () { return 0; } |
---|
189 | as_fn_ret_failure () { return 1; } |
---|
190 | |
---|
191 | exitcode=0 |
---|
192 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
193 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
194 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
195 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
196 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
197 | |
---|
198 | else |
---|
199 | exitcode=1; echo positional parameters were not saved. |
---|
200 | fi |
---|
201 | test x\$exitcode = x0 || exit 1 |
---|
202 | test -x / || exit 1" |
---|
203 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
204 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
205 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
206 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
207 | |
---|
208 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
---|
209 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
210 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
---|
211 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
---|
212 | PATH=/empty FPATH=/empty; export PATH FPATH |
---|
213 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
---|
214 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
---|
215 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
216 | if (eval "$as_required") 2>/dev/null; then : |
---|
217 | as_have_required=yes |
---|
218 | else |
---|
219 | as_have_required=no |
---|
220 | fi |
---|
221 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
222 | |
---|
223 | else |
---|
224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
225 | as_found=false |
---|
226 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
227 | do |
---|
228 | IFS=$as_save_IFS |
---|
229 | test -z "$as_dir" && as_dir=. |
---|
230 | as_found=: |
---|
231 | case $as_dir in #( |
---|
232 | /*) |
---|
233 | for as_base in sh bash ksh sh5; do |
---|
234 | # Try only shells that exist, to save several forks. |
---|
235 | as_shell=$as_dir/$as_base |
---|
236 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
237 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
238 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
239 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
240 | break 2 |
---|
241 | fi |
---|
242 | fi |
---|
243 | done;; |
---|
244 | esac |
---|
245 | as_found=false |
---|
246 | done |
---|
247 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
248 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
249 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
250 | fi; } |
---|
251 | IFS=$as_save_IFS |
---|
252 | |
---|
253 | |
---|
254 | if test "x$CONFIG_SHELL" != x; then : |
---|
255 | export CONFIG_SHELL |
---|
256 | # We cannot yet assume a decent shell, so we have to provide a |
---|
257 | # neutralization value for shells without unset; and this also |
---|
258 | # works around shells that cannot unset nonexistent variables. |
---|
259 | # Preserve -v and -x to the replacement shell. |
---|
260 | BASH_ENV=/dev/null |
---|
261 | ENV=/dev/null |
---|
262 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
263 | case $- in # (((( |
---|
264 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
265 | *v* ) as_opts=-v ;; |
---|
266 | *x* ) as_opts=-x ;; |
---|
267 | * ) as_opts= ;; |
---|
268 | esac |
---|
269 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
270 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
271 | # out after a failed `exec'. |
---|
272 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
273 | exit 255 |
---|
274 | fi |
---|
275 | |
---|
276 | if test x$as_have_required = xno; then : |
---|
277 | $as_echo "$0: This script requires a shell more modern than all" |
---|
278 | $as_echo "$0: the shells that I found on your system." |
---|
279 | if test x${ZSH_VERSION+set} = xset ; then |
---|
280 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
281 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
282 | else |
---|
283 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
---|
284 | $0: clp@list.coin-or.org about your system, including any |
---|
285 | $0: error possibly output before this message. Then install |
---|
286 | $0: a modern shell, or manually run the script under such a |
---|
287 | $0: shell if you do have one." |
---|
288 | fi |
---|
289 | exit 1 |
---|
290 | fi |
---|
291 | fi |
---|
292 | fi |
---|
293 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
294 | export SHELL |
---|
295 | # Unset more variables known to interfere with behavior of common tools. |
---|
296 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
297 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
298 | |
---|
299 | ## --------------------- ## |
---|
300 | ## M4sh Shell Functions. ## |
---|
301 | ## --------------------- ## |
---|
302 | # as_fn_unset VAR |
---|
303 | # --------------- |
---|
304 | # Portably unset VAR. |
---|
305 | as_fn_unset () |
---|
306 | { |
---|
307 | { eval $1=; unset $1;} |
---|
308 | } |
---|
309 | as_unset=as_fn_unset |
---|
310 | |
---|
311 | # as_fn_set_status STATUS |
---|
312 | # ----------------------- |
---|
313 | # Set $? to STATUS, without forking. |
---|
314 | as_fn_set_status () |
---|
315 | { |
---|
316 | return $1 |
---|
317 | } # as_fn_set_status |
---|
318 | |
---|
319 | # as_fn_exit STATUS |
---|
320 | # ----------------- |
---|
321 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
322 | as_fn_exit () |
---|
323 | { |
---|
324 | set +e |
---|
325 | as_fn_set_status $1 |
---|
326 | exit $1 |
---|
327 | } # as_fn_exit |
---|
328 | |
---|
329 | # as_fn_mkdir_p |
---|
330 | # ------------- |
---|
331 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
332 | as_fn_mkdir_p () |
---|
333 | { |
---|
334 | |
---|
335 | case $as_dir in #( |
---|
336 | -*) as_dir=./$as_dir;; |
---|
337 | esac |
---|
338 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
339 | as_dirs= |
---|
340 | while :; do |
---|
341 | case $as_dir in #( |
---|
342 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
343 | *) as_qdir=$as_dir;; |
---|
344 | esac |
---|
345 | as_dirs="'$as_qdir' $as_dirs" |
---|
346 | as_dir=`$as_dirname -- "$as_dir" || |
---|
347 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
348 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
349 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
350 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
351 | $as_echo X"$as_dir" | |
---|
352 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
353 | s//\1/ |
---|
354 | q |
---|
355 | } |
---|
356 | /^X\(\/\/\)[^/].*/{ |
---|
357 | s//\1/ |
---|
358 | q |
---|
359 | } |
---|
360 | /^X\(\/\/\)$/{ |
---|
361 | s//\1/ |
---|
362 | q |
---|
363 | } |
---|
364 | /^X\(\/\).*/{ |
---|
365 | s//\1/ |
---|
366 | q |
---|
367 | } |
---|
368 | s/.*/./; q'` |
---|
369 | test -d "$as_dir" && break |
---|
370 | done |
---|
371 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
372 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
373 | |
---|
374 | |
---|
375 | } # as_fn_mkdir_p |
---|
376 | |
---|
377 | # as_fn_executable_p FILE |
---|
378 | # ----------------------- |
---|
379 | # Test if FILE is an executable regular file. |
---|
380 | as_fn_executable_p () |
---|
381 | { |
---|
382 | test -f "$1" && test -x "$1" |
---|
383 | } # as_fn_executable_p |
---|
384 | # as_fn_append VAR VALUE |
---|
385 | # ---------------------- |
---|
386 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
387 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
388 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
389 | # implementations. |
---|
390 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
391 | eval 'as_fn_append () |
---|
392 | { |
---|
393 | eval $1+=\$2 |
---|
394 | }' |
---|
395 | else |
---|
396 | as_fn_append () |
---|
397 | { |
---|
398 | eval $1=\$$1\$2 |
---|
399 | } |
---|
400 | fi # as_fn_append |
---|
401 | |
---|
402 | # as_fn_arith ARG... |
---|
403 | # ------------------ |
---|
404 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
405 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
406 | # must be portable across $(()) and expr. |
---|
407 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
408 | eval 'as_fn_arith () |
---|
409 | { |
---|
410 | as_val=$(( $* )) |
---|
411 | }' |
---|
412 | else |
---|
413 | as_fn_arith () |
---|
414 | { |
---|
415 | as_val=`expr "$@" || test $? -eq 1` |
---|
416 | } |
---|
417 | fi # as_fn_arith |
---|
418 | |
---|
419 | |
---|
420 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
421 | # ---------------------------------------- |
---|
422 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
423 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
424 | # script with STATUS, using 1 if that was 0. |
---|
425 | as_fn_error () |
---|
426 | { |
---|
427 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
428 | if test "$4"; then |
---|
429 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
430 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
431 | fi |
---|
432 | $as_echo "$as_me: error: $2" >&2 |
---|
433 | as_fn_exit $as_status |
---|
434 | } # as_fn_error |
---|
435 | |
---|
436 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
437 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
438 | as_expr=expr |
---|
439 | else |
---|
440 | as_expr=false |
---|
441 | fi |
---|
442 | |
---|
443 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
444 | as_basename=basename |
---|
445 | else |
---|
446 | as_basename=false |
---|
447 | fi |
---|
448 | |
---|
449 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
450 | as_dirname=dirname |
---|
451 | else |
---|
452 | as_dirname=false |
---|
453 | fi |
---|
454 | |
---|
455 | as_me=`$as_basename -- "$0" || |
---|
456 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
457 | X"$0" : 'X\(//\)$' \| \ |
---|
458 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
459 | $as_echo X/"$0" | |
---|
460 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
461 | s//\1/ |
---|
462 | q |
---|
463 | } |
---|
464 | /^X\/\(\/\/\)$/{ |
---|
465 | s//\1/ |
---|
466 | q |
---|
467 | } |
---|
468 | /^X\/\(\/\).*/{ |
---|
469 | s//\1/ |
---|
470 | q |
---|
471 | } |
---|
472 | s/.*/./; q'` |
---|
473 | |
---|
474 | # Avoid depending upon Character Ranges. |
---|
475 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
476 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
477 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
478 | as_cr_digits='0123456789' |
---|
479 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
480 | |
---|
481 | |
---|
482 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
483 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
484 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
485 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
486 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
487 | sed -n ' |
---|
488 | p |
---|
489 | /[$]LINENO/= |
---|
490 | ' <$as_myself | |
---|
491 | sed ' |
---|
492 | s/[$]LINENO.*/&-/ |
---|
493 | t lineno |
---|
494 | b |
---|
495 | :lineno |
---|
496 | N |
---|
497 | :loop |
---|
498 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
499 | t loop |
---|
500 | s/-\n.*// |
---|
501 | ' >$as_me.lineno && |
---|
502 | chmod +x "$as_me.lineno" || |
---|
503 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
504 | |
---|
505 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
---|
506 | # already done that, so ensure we don't try to do so again and fall |
---|
507 | # in an infinite loop. This has already happened in practice. |
---|
508 | _as_can_reexec=no; export _as_can_reexec |
---|
509 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
510 | # (the dirname of $[0] is not the place where we might find the |
---|
511 | # original and so on. Autoconf is especially sensitive to this). |
---|
512 | . "./$as_me.lineno" |
---|
513 | # Exit status is that of the last command. |
---|
514 | exit |
---|
515 | } |
---|
516 | |
---|
517 | ECHO_C= ECHO_N= ECHO_T= |
---|
518 | case `echo -n x` in #((((( |
---|
519 | -n*) |
---|
520 | case `echo 'xy\c'` in |
---|
521 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
522 | xy) ECHO_C='\c';; |
---|
523 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
524 | ECHO_T=' ';; |
---|
525 | esac;; |
---|
526 | *) |
---|
527 | ECHO_N='-n';; |
---|
528 | esac |
---|
529 | |
---|
530 | rm -f conf$$ conf$$.exe conf$$.file |
---|
531 | if test -d conf$$.dir; then |
---|
532 | rm -f conf$$.dir/conf$$.file |
---|
533 | else |
---|
534 | rm -f conf$$.dir |
---|
535 | mkdir conf$$.dir 2>/dev/null |
---|
536 | fi |
---|
537 | if (echo >conf$$.file) 2>/dev/null; then |
---|
538 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
539 | as_ln_s='ln -s' |
---|
540 | # ... but there are two gotchas: |
---|
541 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
542 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
543 | # In both cases, we have to default to `cp -pR'. |
---|
544 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
545 | as_ln_s='cp -pR' |
---|
546 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
547 | as_ln_s=ln |
---|
548 | else |
---|
549 | as_ln_s='cp -pR' |
---|
550 | fi |
---|
551 | else |
---|
552 | as_ln_s='cp -pR' |
---|
553 | fi |
---|
554 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
555 | rmdir conf$$.dir 2>/dev/null |
---|
556 | |
---|
557 | if mkdir -p . 2>/dev/null; then |
---|
558 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
559 | else |
---|
560 | test -d ./-p && rmdir ./-p |
---|
561 | as_mkdir_p=false |
---|
562 | fi |
---|
563 | |
---|
564 | as_test_x='test -x' |
---|
565 | as_executable_p=as_fn_executable_p |
---|
566 | |
---|
567 | # Sed expression to map a string onto a valid CPP name. |
---|
568 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
569 | |
---|
570 | # Sed expression to map a string onto a valid variable name. |
---|
571 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
572 | |
---|
573 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
574 | |
---|
575 | |
---|
576 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
577 | exec 6>&1 |
---|
578 | |
---|
579 | # Name of the host. |
---|
580 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
581 | # so uname gets run too. |
---|
582 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
583 | |
---|
584 | # |
---|
585 | # Initializations. |
---|
586 | # |
---|
587 | ac_default_prefix=/usr/local |
---|
588 | ac_clean_files= |
---|
589 | ac_config_libobj_dir=. |
---|
590 | LIBOBJS= |
---|
591 | cross_compiling=no |
---|
592 | subdirs= |
---|
593 | MFLAGS= |
---|
594 | MAKEFLAGS= |
---|
595 | |
---|
596 | # Identity of this package. |
---|
597 | PACKAGE_NAME='Clp' |
---|
598 | PACKAGE_TARNAME='coin-or-clp' |
---|
599 | PACKAGE_VERSION='trunk' |
---|
600 | PACKAGE_STRING='Clp trunk' |
---|
601 | PACKAGE_BUGREPORT='clp@list.coin-or.org' |
---|
602 | PACKAGE_URL='https://projects.coin-or.org/Clp' |
---|
603 | |
---|
604 | ac_unique_file="src/ClpSimplex.cpp" |
---|
605 | # Factoring default headers for most tests. |
---|
606 | ac_includes_default="\ |
---|
607 | #include <stdio.h> |
---|
608 | #ifdef HAVE_SYS_TYPES_H |
---|
609 | # include <sys/types.h> |
---|
610 | #endif |
---|
611 | #ifdef HAVE_SYS_STAT_H |
---|
612 | # include <sys/stat.h> |
---|
613 | #endif |
---|
614 | #ifdef STDC_HEADERS |
---|
615 | # include <stdlib.h> |
---|
616 | # include <stddef.h> |
---|
617 | #else |
---|
618 | # ifdef HAVE_STDLIB_H |
---|
619 | # include <stdlib.h> |
---|
620 | # endif |
---|
621 | #endif |
---|
622 | #ifdef HAVE_STRING_H |
---|
623 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
624 | # include <memory.h> |
---|
625 | # endif |
---|
626 | # include <string.h> |
---|
627 | #endif |
---|
628 | #ifdef HAVE_STRINGS_H |
---|
629 | # include <strings.h> |
---|
630 | #endif |
---|
631 | #ifdef HAVE_INTTYPES_H |
---|
632 | # include <inttypes.h> |
---|
633 | #endif |
---|
634 | #ifdef HAVE_STDINT_H |
---|
635 | # include <stdint.h> |
---|
636 | #endif |
---|
637 | #ifdef HAVE_UNISTD_H |
---|
638 | # include <unistd.h> |
---|
639 | #endif" |
---|
640 | |
---|
641 | ac_subst_vars='am__EXEEXT_FALSE |
---|
642 | am__EXEEXT_TRUE |
---|
643 | LTLIBOBJS |
---|
644 | LIBOBJS |
---|
645 | OSICLPUNITTEST_CFLAGS_NOPC |
---|
646 | OSICLPUNITTEST_LFLAGS_NOPC |
---|
647 | OSICLPLIB_CFLAGS_NOPC |
---|
648 | OSICLPLIB_LFLAGS_NOPC |
---|
649 | CLPLIB_CFLAGS_NOPC |
---|
650 | CLPLIB_LFLAGS_NOPC |
---|
651 | coin_doxy_tagfiles |
---|
652 | COIN_HAS_LATEX_FALSE |
---|
653 | COIN_HAS_LATEX_TRUE |
---|
654 | COIN_HAS_DOXYGEN_FALSE |
---|
655 | COIN_HAS_DOXYGEN_TRUE |
---|
656 | coin_doxy_logname |
---|
657 | coin_doxy_tagname |
---|
658 | coin_doxy_usedot |
---|
659 | coin_have_latex |
---|
660 | coin_have_doxygen |
---|
661 | EXAMPLE_CLEAN_FILES |
---|
662 | EXAMPLE_UNCOMP_FILES |
---|
663 | EXAMPLE_DIST_FILES |
---|
664 | COIN_VPATH_BUILD_FALSE |
---|
665 | COIN_VPATH_BUILD_TRUE |
---|
666 | COIN_HAS_READLINE_FALSE |
---|
667 | COIN_HAS_READLINE_TRUE |
---|
668 | COIN_HAS_WSMP_FALSE |
---|
669 | COIN_HAS_WSMP_TRUE |
---|
670 | COIN_HAS_MUMPS_FALSE |
---|
671 | COIN_HAS_MUMPS_TRUE |
---|
672 | COIN_HAS_CHOLMOD_FALSE |
---|
673 | COIN_HAS_CHOLMOD_TRUE |
---|
674 | COIN_HAS_AMD_FALSE |
---|
675 | COIN_HAS_AMD_TRUE |
---|
676 | COIN_HAS_ABC_FALSE |
---|
677 | COIN_HAS_ABC_TRUE |
---|
678 | NETLIB_DATA |
---|
679 | COIN_HAS_NETLIB_FALSE |
---|
680 | COIN_HAS_NETLIB_TRUE |
---|
681 | SAMPLE_DATA |
---|
682 | COIN_HAS_SAMPLE_FALSE |
---|
683 | COIN_HAS_SAMPLE_TRUE |
---|
684 | COIN_HAS_OSITESTS_FALSE |
---|
685 | COIN_HAS_OSITESTS_TRUE |
---|
686 | OSICLPUNITTEST_PCFILES |
---|
687 | OSICLPUNITTEST_CFLAGS |
---|
688 | OSICLPUNITTEST_LFLAGS |
---|
689 | COIN_HAS_OSI_FALSE |
---|
690 | COIN_HAS_OSI_TRUE |
---|
691 | OSICLPLIB_PCFILES |
---|
692 | OSICLPLIB_CFLAGS |
---|
693 | OSICLPLIB_LFLAGS |
---|
694 | COIN_HAS_COINUTILS_FALSE |
---|
695 | COIN_HAS_COINUTILS_TRUE |
---|
696 | CLPLIB_PCFILES |
---|
697 | CLPLIB_CFLAGS |
---|
698 | CLPLIB_LFLAGS |
---|
699 | COIN_PKG_CONFIG_PATH |
---|
700 | COIN_HAS_PKGCONFIG_FALSE |
---|
701 | COIN_HAS_PKGCONFIG_TRUE |
---|
702 | ac_ct_PKG_CONFIG |
---|
703 | PKG_CONFIG |
---|
704 | RPATH_FLAGS |
---|
705 | LT_LDFLAGS |
---|
706 | CXXCPP |
---|
707 | CPP |
---|
708 | LT_SYS_LIBRARY_PATH |
---|
709 | OTOOL64 |
---|
710 | OTOOL |
---|
711 | LIPO |
---|
712 | NMEDIT |
---|
713 | DSYMUTIL |
---|
714 | MANIFEST_TOOL |
---|
715 | RANLIB |
---|
716 | ac_ct_AR |
---|
717 | AR |
---|
718 | LN_S |
---|
719 | NM |
---|
720 | ac_ct_DUMPBIN |
---|
721 | DUMPBIN |
---|
722 | LD |
---|
723 | FGREP |
---|
724 | EGREP |
---|
725 | GREP |
---|
726 | SED |
---|
727 | LIBTOOL |
---|
728 | OBJDUMP |
---|
729 | DLLTOOL |
---|
730 | AS |
---|
731 | ADD_CXXFLAGS |
---|
732 | am__fastdepCXX_FALSE |
---|
733 | am__fastdepCXX_TRUE |
---|
734 | CXXDEPMODE |
---|
735 | ac_ct_CXX |
---|
736 | CXXFLAGS |
---|
737 | CXX |
---|
738 | ADD_CFLAGS |
---|
739 | am__fastdepCC_FALSE |
---|
740 | am__fastdepCC_TRUE |
---|
741 | CCDEPMODE |
---|
742 | am__nodep |
---|
743 | AMDEPBACKSLASH |
---|
744 | AMDEP_FALSE |
---|
745 | AMDEP_TRUE |
---|
746 | am__include |
---|
747 | DEPDIR |
---|
748 | OBJEXT |
---|
749 | EXEEXT |
---|
750 | ac_ct_CC |
---|
751 | CPPFLAGS |
---|
752 | LDFLAGS |
---|
753 | CFLAGS |
---|
754 | COIN_RELOCATABLE_FALSE |
---|
755 | COIN_RELOCATABLE_TRUE |
---|
756 | MAINT |
---|
757 | MAINTAINER_MODE_FALSE |
---|
758 | MAINTAINER_MODE_TRUE |
---|
759 | am__untar |
---|
760 | am__tar |
---|
761 | AMTAR |
---|
762 | am__leading_dot |
---|
763 | SET_MAKE |
---|
764 | AWK |
---|
765 | mkdir_p |
---|
766 | MKDIR_P |
---|
767 | INSTALL_STRIP_PROGRAM |
---|
768 | STRIP |
---|
769 | install_sh |
---|
770 | MAKEINFO |
---|
771 | AUTOHEADER |
---|
772 | AUTOMAKE |
---|
773 | AUTOCONF |
---|
774 | ACLOCAL |
---|
775 | VERSION |
---|
776 | PACKAGE |
---|
777 | CYGPATH_W |
---|
778 | am__isrc |
---|
779 | INSTALL_DATA |
---|
780 | INSTALL_SCRIPT |
---|
781 | INSTALL_PROGRAM |
---|
782 | AM_BACKSLASH |
---|
783 | AM_DEFAULT_VERBOSITY |
---|
784 | AM_DEFAULT_V |
---|
785 | AM_V |
---|
786 | host_os |
---|
787 | host_vendor |
---|
788 | host_cpu |
---|
789 | host |
---|
790 | CC |
---|
791 | build_os |
---|
792 | build_vendor |
---|
793 | build_cpu |
---|
794 | build |
---|
795 | ALWAYS_FALSE_FALSE |
---|
796 | ALWAYS_FALSE_TRUE |
---|
797 | target_alias |
---|
798 | host_alias |
---|
799 | build_alias |
---|
800 | LIBS |
---|
801 | ECHO_T |
---|
802 | ECHO_N |
---|
803 | ECHO_C |
---|
804 | DEFS |
---|
805 | mandir |
---|
806 | localedir |
---|
807 | libdir |
---|
808 | psdir |
---|
809 | pdfdir |
---|
810 | dvidir |
---|
811 | htmldir |
---|
812 | infodir |
---|
813 | docdir |
---|
814 | oldincludedir |
---|
815 | includedir |
---|
816 | localstatedir |
---|
817 | sharedstatedir |
---|
818 | sysconfdir |
---|
819 | datadir |
---|
820 | datarootdir |
---|
821 | libexecdir |
---|
822 | sbindir |
---|
823 | bindir |
---|
824 | program_transform_name |
---|
825 | prefix |
---|
826 | exec_prefix |
---|
827 | PACKAGE_URL |
---|
828 | PACKAGE_BUGREPORT |
---|
829 | PACKAGE_STRING |
---|
830 | PACKAGE_VERSION |
---|
831 | PACKAGE_TARNAME |
---|
832 | PACKAGE_NAME |
---|
833 | PATH_SEPARATOR |
---|
834 | SHELL |
---|
835 | am__quote' |
---|
836 | ac_subst_files='' |
---|
837 | ac_user_opts=' |
---|
838 | enable_option_checking |
---|
839 | enable_msvc |
---|
840 | enable_debug |
---|
841 | enable_silent_rules |
---|
842 | enable_maintainer_mode |
---|
843 | enable_relocatable |
---|
844 | enable_dependency_tracking |
---|
845 | enable_static |
---|
846 | with_pic |
---|
847 | enable_shared |
---|
848 | enable_fast_install |
---|
849 | with_aix_soname |
---|
850 | with_gnu_ld |
---|
851 | with_sysroot |
---|
852 | enable_libtool_lock |
---|
853 | with_coinutils |
---|
854 | with_coinutils_lflags |
---|
855 | with_coinutils_cflags |
---|
856 | with_osi |
---|
857 | with_osi_lflags |
---|
858 | with_osi_cflags |
---|
859 | with_ositests |
---|
860 | with_ositests_lflags |
---|
861 | with_ositests_cflags |
---|
862 | with_sample |
---|
863 | with_sample_data |
---|
864 | with_netlib |
---|
865 | with_netlib_data |
---|
866 | enable_aboca |
---|
867 | with_amd |
---|
868 | with_amd_lflags |
---|
869 | with_amd_cflags |
---|
870 | with_cholmod |
---|
871 | with_cholmod_lflags |
---|
872 | with_cholmod_cflags |
---|
873 | with_mumps |
---|
874 | with_mumps_lflags |
---|
875 | with_mumps_cflags |
---|
876 | with_wsmp |
---|
877 | enable_readline |
---|
878 | with_dot |
---|
879 | ' |
---|
880 | ac_precious_vars='build_alias |
---|
881 | host_alias |
---|
882 | target_alias |
---|
883 | CC |
---|
884 | CFLAGS |
---|
885 | LDFLAGS |
---|
886 | LIBS |
---|
887 | CPPFLAGS |
---|
888 | ADD_CFLAGS |
---|
889 | CXX |
---|
890 | CXXFLAGS |
---|
891 | CCC |
---|
892 | ADD_CXXFLAGS |
---|
893 | LT_SYS_LIBRARY_PATH |
---|
894 | CPP |
---|
895 | CXXCPP |
---|
896 | LT_LDFLAGS |
---|
897 | PKG_CONFIG' |
---|
898 | |
---|
899 | |
---|
900 | # Initialize some variables set by options. |
---|
901 | ac_init_help= |
---|
902 | ac_init_version=false |
---|
903 | ac_unrecognized_opts= |
---|
904 | ac_unrecognized_sep= |
---|
905 | # The variables have the same names as the options, with |
---|
906 | # dashes changed to underlines. |
---|
907 | cache_file=/dev/null |
---|
908 | exec_prefix=NONE |
---|
909 | no_create= |
---|
910 | no_recursion= |
---|
911 | prefix=NONE |
---|
912 | program_prefix=NONE |
---|
913 | program_suffix=NONE |
---|
914 | program_transform_name=s,x,x, |
---|
915 | silent= |
---|
916 | site= |
---|
917 | srcdir= |
---|
918 | verbose= |
---|
919 | x_includes=NONE |
---|
920 | x_libraries=NONE |
---|
921 | |
---|
922 | # Installation directory options. |
---|
923 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
924 | # and all the variables that are supposed to be based on exec_prefix |
---|
925 | # by default will actually change. |
---|
926 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
927 | # (The list follows the same order as the GNU Coding Standards.) |
---|
928 | bindir='${exec_prefix}/bin' |
---|
929 | sbindir='${exec_prefix}/sbin' |
---|
930 | libexecdir='${exec_prefix}/libexec' |
---|
931 | datarootdir='${prefix}/share' |
---|
932 | datadir='${datarootdir}' |
---|
933 | sysconfdir='${prefix}/etc' |
---|
934 | sharedstatedir='${prefix}/com' |
---|
935 | localstatedir='${prefix}/var' |
---|
936 | includedir='${prefix}/include' |
---|
937 | oldincludedir='/usr/include' |
---|
938 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
939 | infodir='${datarootdir}/info' |
---|
940 | htmldir='${docdir}' |
---|
941 | dvidir='${docdir}' |
---|
942 | pdfdir='${docdir}' |
---|
943 | psdir='${docdir}' |
---|
944 | libdir='${exec_prefix}/lib' |
---|
945 | localedir='${datarootdir}/locale' |
---|
946 | mandir='${datarootdir}/man' |
---|
947 | |
---|
948 | ac_prev= |
---|
949 | ac_dashdash= |
---|
950 | for ac_option |
---|
951 | do |
---|
952 | # If the previous option needs an argument, assign it. |
---|
953 | if test -n "$ac_prev"; then |
---|
954 | eval $ac_prev=\$ac_option |
---|
955 | ac_prev= |
---|
956 | continue |
---|
957 | fi |
---|
958 | |
---|
959 | case $ac_option in |
---|
960 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
961 | *=) ac_optarg= ;; |
---|
962 | *) ac_optarg=yes ;; |
---|
963 | esac |
---|
964 | |
---|
965 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
966 | |
---|
967 | case $ac_dashdash$ac_option in |
---|
968 | --) |
---|
969 | ac_dashdash=yes ;; |
---|
970 | |
---|
971 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
972 | ac_prev=bindir ;; |
---|
973 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
974 | bindir=$ac_optarg ;; |
---|
975 | |
---|
976 | -build | --build | --buil | --bui | --bu) |
---|
977 | ac_prev=build_alias ;; |
---|
978 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
979 | build_alias=$ac_optarg ;; |
---|
980 | |
---|
981 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
982 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
983 | ac_prev=cache_file ;; |
---|
984 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
985 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
986 | cache_file=$ac_optarg ;; |
---|
987 | |
---|
988 | --config-cache | -C) |
---|
989 | cache_file=config.cache ;; |
---|
990 | |
---|
991 | -datadir | --datadir | --datadi | --datad) |
---|
992 | ac_prev=datadir ;; |
---|
993 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
994 | datadir=$ac_optarg ;; |
---|
995 | |
---|
996 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
997 | | --dataroo | --dataro | --datar) |
---|
998 | ac_prev=datarootdir ;; |
---|
999 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
1000 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
1001 | datarootdir=$ac_optarg ;; |
---|
1002 | |
---|
1003 | -disable-* | --disable-*) |
---|
1004 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
1005 | # Reject names that are not valid shell variable names. |
---|
1006 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1007 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
1008 | ac_useropt_orig=$ac_useropt |
---|
1009 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1010 | case $ac_user_opts in |
---|
1011 | *" |
---|
1012 | "enable_$ac_useropt" |
---|
1013 | "*) ;; |
---|
1014 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
1015 | ac_unrecognized_sep=', ';; |
---|
1016 | esac |
---|
1017 | eval enable_$ac_useropt=no ;; |
---|
1018 | |
---|
1019 | -docdir | --docdir | --docdi | --doc | --do) |
---|
1020 | ac_prev=docdir ;; |
---|
1021 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
1022 | docdir=$ac_optarg ;; |
---|
1023 | |
---|
1024 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
1025 | ac_prev=dvidir ;; |
---|
1026 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
1027 | dvidir=$ac_optarg ;; |
---|
1028 | |
---|
1029 | -enable-* | --enable-*) |
---|
1030 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
1031 | # Reject names that are not valid shell variable names. |
---|
1032 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1033 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
1034 | ac_useropt_orig=$ac_useropt |
---|
1035 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1036 | case $ac_user_opts in |
---|
1037 | *" |
---|
1038 | "enable_$ac_useropt" |
---|
1039 | "*) ;; |
---|
1040 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
1041 | ac_unrecognized_sep=', ';; |
---|
1042 | esac |
---|
1043 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
1044 | |
---|
1045 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
1046 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
1047 | | --exec | --exe | --ex) |
---|
1048 | ac_prev=exec_prefix ;; |
---|
1049 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
1050 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
1051 | | --exec=* | --exe=* | --ex=*) |
---|
1052 | exec_prefix=$ac_optarg ;; |
---|
1053 | |
---|
1054 | -gas | --gas | --ga | --g) |
---|
1055 | # Obsolete; use --with-gas. |
---|
1056 | with_gas=yes ;; |
---|
1057 | |
---|
1058 | -help | --help | --hel | --he | -h) |
---|
1059 | ac_init_help=long ;; |
---|
1060 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
1061 | ac_init_help=recursive ;; |
---|
1062 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
1063 | ac_init_help=short ;; |
---|
1064 | |
---|
1065 | -host | --host | --hos | --ho) |
---|
1066 | ac_prev=host_alias ;; |
---|
1067 | -host=* | --host=* | --hos=* | --ho=*) |
---|
1068 | host_alias=$ac_optarg ;; |
---|
1069 | |
---|
1070 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
1071 | ac_prev=htmldir ;; |
---|
1072 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
1073 | | --ht=*) |
---|
1074 | htmldir=$ac_optarg ;; |
---|
1075 | |
---|
1076 | -includedir | --includedir | --includedi | --included | --include \ |
---|
1077 | | --includ | --inclu | --incl | --inc) |
---|
1078 | ac_prev=includedir ;; |
---|
1079 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
1080 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
1081 | includedir=$ac_optarg ;; |
---|
1082 | |
---|
1083 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
1084 | ac_prev=infodir ;; |
---|
1085 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
1086 | infodir=$ac_optarg ;; |
---|
1087 | |
---|
1088 | -libdir | --libdir | --libdi | --libd) |
---|
1089 | ac_prev=libdir ;; |
---|
1090 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
1091 | libdir=$ac_optarg ;; |
---|
1092 | |
---|
1093 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
1094 | | --libexe | --libex | --libe) |
---|
1095 | ac_prev=libexecdir ;; |
---|
1096 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
1097 | | --libexe=* | --libex=* | --libe=*) |
---|
1098 | libexecdir=$ac_optarg ;; |
---|
1099 | |
---|
1100 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
1101 | ac_prev=localedir ;; |
---|
1102 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
1103 | localedir=$ac_optarg ;; |
---|
1104 | |
---|
1105 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
1106 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
1107 | ac_prev=localstatedir ;; |
---|
1108 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
1109 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
1110 | localstatedir=$ac_optarg ;; |
---|
1111 | |
---|
1112 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
1113 | ac_prev=mandir ;; |
---|
1114 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
1115 | mandir=$ac_optarg ;; |
---|
1116 | |
---|
1117 | -nfp | --nfp | --nf) |
---|
1118 | # Obsolete; use --without-fp. |
---|
1119 | with_fp=no ;; |
---|
1120 | |
---|
1121 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
1122 | | --no-cr | --no-c | -n) |
---|
1123 | no_create=yes ;; |
---|
1124 | |
---|
1125 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
1126 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
1127 | no_recursion=yes ;; |
---|
1128 | |
---|
1129 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
1130 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
1131 | | --oldin | --oldi | --old | --ol | --o) |
---|
1132 | ac_prev=oldincludedir ;; |
---|
1133 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
1134 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
1135 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
1136 | oldincludedir=$ac_optarg ;; |
---|
1137 | |
---|
1138 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
1139 | ac_prev=prefix ;; |
---|
1140 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
1141 | prefix=$ac_optarg ;; |
---|
1142 | |
---|
1143 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
1144 | | --program-pre | --program-pr | --program-p) |
---|
1145 | ac_prev=program_prefix ;; |
---|
1146 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
1147 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
1148 | program_prefix=$ac_optarg ;; |
---|
1149 | |
---|
1150 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
1151 | | --program-suf | --program-su | --program-s) |
---|
1152 | ac_prev=program_suffix ;; |
---|
1153 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
1154 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
1155 | program_suffix=$ac_optarg ;; |
---|
1156 | |
---|
1157 | -program-transform-name | --program-transform-name \ |
---|
1158 | | --program-transform-nam | --program-transform-na \ |
---|
1159 | | --program-transform-n | --program-transform- \ |
---|
1160 | | --program-transform | --program-transfor \ |
---|
1161 | | --program-transfo | --program-transf \ |
---|
1162 | | --program-trans | --program-tran \ |
---|
1163 | | --progr-tra | --program-tr | --program-t) |
---|
1164 | ac_prev=program_transform_name ;; |
---|
1165 | -program-transform-name=* | --program-transform-name=* \ |
---|
1166 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1167 | | --program-transform-n=* | --program-transform-=* \ |
---|
1168 | | --program-transform=* | --program-transfor=* \ |
---|
1169 | | --program-transfo=* | --program-transf=* \ |
---|
1170 | | --program-trans=* | --program-tran=* \ |
---|
1171 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1172 | program_transform_name=$ac_optarg ;; |
---|
1173 | |
---|
1174 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1175 | ac_prev=pdfdir ;; |
---|
1176 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1177 | pdfdir=$ac_optarg ;; |
---|
1178 | |
---|
1179 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1180 | ac_prev=psdir ;; |
---|
1181 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1182 | psdir=$ac_optarg ;; |
---|
1183 | |
---|
1184 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1185 | | -silent | --silent | --silen | --sile | --sil) |
---|
1186 | silent=yes ;; |
---|
1187 | |
---|
1188 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1189 | ac_prev=sbindir ;; |
---|
1190 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1191 | | --sbi=* | --sb=*) |
---|
1192 | sbindir=$ac_optarg ;; |
---|
1193 | |
---|
1194 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1195 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1196 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1197 | | --sha | --sh) |
---|
1198 | ac_prev=sharedstatedir ;; |
---|
1199 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1200 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1201 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1202 | | --sha=* | --sh=*) |
---|
1203 | sharedstatedir=$ac_optarg ;; |
---|
1204 | |
---|
1205 | -site | --site | --sit) |
---|
1206 | ac_prev=site ;; |
---|
1207 | -site=* | --site=* | --sit=*) |
---|
1208 | site=$ac_optarg ;; |
---|
1209 | |
---|
1210 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1211 | ac_prev=srcdir ;; |
---|
1212 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1213 | srcdir=$ac_optarg ;; |
---|
1214 | |
---|
1215 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1216 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1217 | ac_prev=sysconfdir ;; |
---|
1218 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1219 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1220 | sysconfdir=$ac_optarg ;; |
---|
1221 | |
---|
1222 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1223 | ac_prev=target_alias ;; |
---|
1224 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1225 | target_alias=$ac_optarg ;; |
---|
1226 | |
---|
1227 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1228 | verbose=yes ;; |
---|
1229 | |
---|
1230 | -version | --version | --versio | --versi | --vers | -V) |
---|
1231 | ac_init_version=: ;; |
---|
1232 | |
---|
1233 | -with-* | --with-*) |
---|
1234 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1235 | # Reject names that are not valid shell variable names. |
---|
1236 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1237 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1238 | ac_useropt_orig=$ac_useropt |
---|
1239 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1240 | case $ac_user_opts in |
---|
1241 | *" |
---|
1242 | "with_$ac_useropt" |
---|
1243 | "*) ;; |
---|
1244 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1245 | ac_unrecognized_sep=', ';; |
---|
1246 | esac |
---|
1247 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1248 | |
---|
1249 | -without-* | --without-*) |
---|
1250 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1251 | # Reject names that are not valid shell variable names. |
---|
1252 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1253 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1254 | ac_useropt_orig=$ac_useropt |
---|
1255 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1256 | case $ac_user_opts in |
---|
1257 | *" |
---|
1258 | "with_$ac_useropt" |
---|
1259 | "*) ;; |
---|
1260 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1261 | ac_unrecognized_sep=', ';; |
---|
1262 | esac |
---|
1263 | eval with_$ac_useropt=no ;; |
---|
1264 | |
---|
1265 | --x) |
---|
1266 | # Obsolete; use --with-x. |
---|
1267 | with_x=yes ;; |
---|
1268 | |
---|
1269 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1270 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1271 | ac_prev=x_includes ;; |
---|
1272 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1273 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1274 | x_includes=$ac_optarg ;; |
---|
1275 | |
---|
1276 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1277 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1278 | ac_prev=x_libraries ;; |
---|
1279 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1280 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1281 | x_libraries=$ac_optarg ;; |
---|
1282 | |
---|
1283 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1284 | Try \`$0 --help' for more information" |
---|
1285 | ;; |
---|
1286 | |
---|
1287 | *=*) |
---|
1288 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1289 | # Reject names that are not valid shell variable names. |
---|
1290 | case $ac_envvar in #( |
---|
1291 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1292 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1293 | esac |
---|
1294 | eval $ac_envvar=\$ac_optarg |
---|
1295 | export $ac_envvar ;; |
---|
1296 | |
---|
1297 | *) |
---|
1298 | # FIXME: should be removed in autoconf 3.0. |
---|
1299 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1300 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1301 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1302 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1303 | ;; |
---|
1304 | |
---|
1305 | esac |
---|
1306 | done |
---|
1307 | |
---|
1308 | if test -n "$ac_prev"; then |
---|
1309 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1310 | as_fn_error $? "missing argument to $ac_option" |
---|
1311 | fi |
---|
1312 | |
---|
1313 | if test -n "$ac_unrecognized_opts"; then |
---|
1314 | case $enable_option_checking in |
---|
1315 | no) ;; |
---|
1316 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1317 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1318 | esac |
---|
1319 | fi |
---|
1320 | |
---|
1321 | # Check all directory arguments for consistency. |
---|
1322 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1323 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1324 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1325 | libdir localedir mandir |
---|
1326 | do |
---|
1327 | eval ac_val=\$$ac_var |
---|
1328 | # Remove trailing slashes. |
---|
1329 | case $ac_val in |
---|
1330 | */ ) |
---|
1331 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1332 | eval $ac_var=\$ac_val;; |
---|
1333 | esac |
---|
1334 | # Be sure to have absolute directory names. |
---|
1335 | case $ac_val in |
---|
1336 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1337 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1338 | esac |
---|
1339 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1340 | done |
---|
1341 | |
---|
1342 | # There might be people who depend on the old broken behavior: `$host' |
---|
1343 | # used to hold the argument of --host etc. |
---|
1344 | # FIXME: To remove some day. |
---|
1345 | build=$build_alias |
---|
1346 | host=$host_alias |
---|
1347 | target=$target_alias |
---|
1348 | |
---|
1349 | # FIXME: To remove some day. |
---|
1350 | if test "x$host_alias" != x; then |
---|
1351 | if test "x$build_alias" = x; then |
---|
1352 | cross_compiling=maybe |
---|
1353 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1354 | cross_compiling=yes |
---|
1355 | fi |
---|
1356 | fi |
---|
1357 | |
---|
1358 | ac_tool_prefix= |
---|
1359 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1360 | |
---|
1361 | test "$silent" = yes && exec 6>/dev/null |
---|
1362 | |
---|
1363 | |
---|
1364 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1365 | ac_ls_di=`ls -di .` && |
---|
1366 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1367 | as_fn_error $? "working directory cannot be determined" |
---|
1368 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1369 | as_fn_error $? "pwd does not report name of working directory" |
---|
1370 | |
---|
1371 | |
---|
1372 | # Find the source files, if location was not specified. |
---|
1373 | if test -z "$srcdir"; then |
---|
1374 | ac_srcdir_defaulted=yes |
---|
1375 | # Try the directory containing this script, then the parent directory. |
---|
1376 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1377 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1378 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1379 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1380 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1381 | $as_echo X"$as_myself" | |
---|
1382 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1383 | s//\1/ |
---|
1384 | q |
---|
1385 | } |
---|
1386 | /^X\(\/\/\)[^/].*/{ |
---|
1387 | s//\1/ |
---|
1388 | q |
---|
1389 | } |
---|
1390 | /^X\(\/\/\)$/{ |
---|
1391 | s//\1/ |
---|
1392 | q |
---|
1393 | } |
---|
1394 | /^X\(\/\).*/{ |
---|
1395 | s//\1/ |
---|
1396 | q |
---|
1397 | } |
---|
1398 | s/.*/./; q'` |
---|
1399 | srcdir=$ac_confdir |
---|
1400 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1401 | srcdir=.. |
---|
1402 | fi |
---|
1403 | else |
---|
1404 | ac_srcdir_defaulted=no |
---|
1405 | fi |
---|
1406 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1407 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1408 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1409 | fi |
---|
1410 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1411 | ac_abs_confdir=`( |
---|
1412 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1413 | pwd)` |
---|
1414 | # When building in place, set srcdir=. |
---|
1415 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1416 | srcdir=. |
---|
1417 | fi |
---|
1418 | # Remove unnecessary trailing slashes from srcdir. |
---|
1419 | # Double slashes in file names in object file debugging info |
---|
1420 | # mess up M-x gdb in Emacs. |
---|
1421 | case $srcdir in |
---|
1422 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1423 | esac |
---|
1424 | for ac_var in $ac_precious_vars; do |
---|
1425 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1426 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1427 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1428 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1429 | done |
---|
1430 | |
---|
1431 | # |
---|
1432 | # Report the --help message. |
---|
1433 | # |
---|
1434 | if test "$ac_init_help" = "long"; then |
---|
1435 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1436 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1437 | cat <<_ACEOF |
---|
1438 | \`configure' configures Clp trunk to adapt to many kinds of systems. |
---|
1439 | |
---|
1440 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1441 | |
---|
1442 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1443 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1444 | |
---|
1445 | Defaults for the options are specified in brackets. |
---|
1446 | |
---|
1447 | Configuration: |
---|
1448 | -h, --help display this help and exit |
---|
1449 | --help=short display options specific to this package |
---|
1450 | --help=recursive display the short help of all the included packages |
---|
1451 | -V, --version display version information and exit |
---|
1452 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1453 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1454 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1455 | -n, --no-create do not create output files |
---|
1456 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1457 | |
---|
1458 | Installation directories: |
---|
1459 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1460 | [$ac_default_prefix] |
---|
1461 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1462 | [PREFIX] |
---|
1463 | |
---|
1464 | By default, \`make install' will install all the files in |
---|
1465 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1466 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1467 | for instance \`--prefix=\$HOME'. |
---|
1468 | |
---|
1469 | For better control, use the options below. |
---|
1470 | |
---|
1471 | Fine tuning of the installation directories: |
---|
1472 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1473 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1474 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1475 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1476 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1477 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1478 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1479 | --includedir=DIR C header files [PREFIX/include] |
---|
1480 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1481 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1482 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1483 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1484 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1485 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1486 | --docdir=DIR documentation root [DATAROOTDIR/doc/coin-or-clp] |
---|
1487 | --htmldir=DIR html documentation [DOCDIR] |
---|
1488 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1489 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1490 | --psdir=DIR ps documentation [DOCDIR] |
---|
1491 | _ACEOF |
---|
1492 | |
---|
1493 | cat <<\_ACEOF |
---|
1494 | |
---|
1495 | Program names: |
---|
1496 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1497 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1498 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1499 | |
---|
1500 | System types: |
---|
1501 | --build=BUILD configure for building on BUILD [guessed] |
---|
1502 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1503 | _ACEOF |
---|
1504 | fi |
---|
1505 | |
---|
1506 | if test -n "$ac_init_help"; then |
---|
1507 | case $ac_init_help in |
---|
1508 | short | recursive ) echo "Configuration of Clp trunk:";; |
---|
1509 | esac |
---|
1510 | cat <<\_ACEOF |
---|
1511 | |
---|
1512 | Optional Features: |
---|
1513 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1514 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1515 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1516 | --enable-msvc look for and allow only Intel/Microsoft compilers on |
---|
1517 | MinGW/MSys/Cygwin |
---|
1518 | --enable-debug build debugging symbols and turn off compiler |
---|
1519 | optimization |
---|
1520 | --enable-silent-rules less verbose build output (undo: "make V=1") |
---|
1521 | --disable-silent-rules verbose build output (undo: "make V=0") |
---|
1522 | --enable-maintainer-mode |
---|
1523 | enable make rules and dependencies not useful (and |
---|
1524 | sometimes confusing) to the casual installer |
---|
1525 | --enable-relocatable whether prefix in installed .pc files should be |
---|
1526 | setup relative to pcfiledir |
---|
1527 | --enable-dependency-tracking |
---|
1528 | do not reject slow dependency extractors |
---|
1529 | --disable-dependency-tracking |
---|
1530 | speeds up one-time build |
---|
1531 | --enable-static[=PKGS] build static libraries [default=no] |
---|
1532 | --enable-shared[=PKGS] build shared libraries [default=yes] |
---|
1533 | --enable-fast-install[=PKGS] |
---|
1534 | optimize for fast installation [default=yes] |
---|
1535 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
1536 | --enable-aboca Enables build of the Aboca solver; 1 - build Abc |
---|
1537 | serial but no inherit code (default when built); 2 - |
---|
1538 | build Abc serial and inherit code; 3 - build Abc |
---|
1539 | cilk parallel but no inherit code; 4 - build Abc |
---|
1540 | cilk parallel and inherit code |
---|
1541 | --disable-readline do not compile with readline library |
---|
1542 | |
---|
1543 | Optional Packages: |
---|
1544 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1545 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1546 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
---|
1547 | both] |
---|
1548 | --with-aix-soname=aix|svr4|both |
---|
1549 | shared library versioning (aka "SONAME") variant to |
---|
1550 | provide on AIX, [default=aix]. |
---|
1551 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
---|
1552 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
---|
1553 | compiler's sysroot if not specified). |
---|
1554 | --with-coinutils Use CoinUtils. If an argument is given, 'yes' is |
---|
1555 | equivalent to --with-coinutils, 'no' is |
---|
1556 | equivalent to --without-coinutils. Any other |
---|
1557 | argument is applied as for --with-coinutils-lflags |
---|
1558 | --with-coinutils-lflags Linker flags for CoinUtils appropriate for your |
---|
1559 | environment. (Most often, -l specs for libraries.) |
---|
1560 | --with-coinutils-cflags Compiler flags for CoinUtils appropriate for your |
---|
1561 | environment. (Most often, -I specs for header file |
---|
1562 | directories.) |
---|
1563 | --with-osi Use Osi. If an argument is given, 'yes' is |
---|
1564 | equivalent to --with-osi, 'no' is |
---|
1565 | equivalent to --without-osi. Any other argument is |
---|
1566 | applied as for --with-osi-lflags |
---|
1567 | --with-osi-lflags Linker flags for Osi appropriate for your |
---|
1568 | environment. (Most often, -l specs for libraries.) |
---|
1569 | --with-osi-cflags Compiler flags for Osi appropriate for your |
---|
1570 | environment. (Most often, -I specs for header file |
---|
1571 | directories.) |
---|
1572 | --with-ositests Use OsiTests. If an argument is given, 'yes' is |
---|
1573 | equivalent to --with-ositests, 'no' is |
---|
1574 | equivalent to --without-ositests. Any other argument |
---|
1575 | is applied as for --with-ositests-lflags |
---|
1576 | --with-ositests-lflags Linker flags for OsiTests appropriate for your |
---|
1577 | environment. (Most often, -l specs for libraries.) |
---|
1578 | --with-ositests-cflags Compiler flags for OsiTests appropriate for your |
---|
1579 | environment. (Most often, -I specs for header file |
---|
1580 | directories.) |
---|
1581 | --with-sample Use Sample. If an argument is given, 'yes' is |
---|
1582 | equivalent to --with-sample, 'no' is |
---|
1583 | equivalent to --without-sample. Any other argument |
---|
1584 | is applied as for --with-sample-data |
---|
1585 | --with-sample-data A data directory specification for Sample |
---|
1586 | appropriate for your environment. |
---|
1587 | --with-netlib Use Netlib. If an argument is given, 'yes' is |
---|
1588 | equivalent to --with-netlib, 'no' is |
---|
1589 | equivalent to --without-netlib. Any other argument |
---|
1590 | is applied as for --with-netlib-data |
---|
1591 | --with-netlib-data A data directory specification for Netlib |
---|
1592 | appropriate for your environment. |
---|
1593 | --with-amd Use AMD. If an argument is given, 'yes' is |
---|
1594 | equivalent to --with-amd, 'no' is |
---|
1595 | equivalent to --without-amd. Any other argument is |
---|
1596 | applied as for --with-amd-lflags |
---|
1597 | --with-amd-lflags Linker flags for AMD appropriate for your |
---|
1598 | environment. (Most often, -l specs for libraries.) |
---|
1599 | --with-amd-cflags Compiler flags for AMD appropriate for your |
---|
1600 | environment. (Most often, -I specs for header file |
---|
1601 | directories.) |
---|
1602 | --with-cholmod Use CHOLMOD. If an argument is given, 'yes' is |
---|
1603 | equivalent to --with-cholmod, 'no' is |
---|
1604 | equivalent to --without-cholmod. Any other argument |
---|
1605 | is applied as for --with-cholmod-lflags |
---|
1606 | --with-cholmod-lflags Linker flags for CHOLMOD appropriate for your |
---|
1607 | environment. (Most often, -l specs for libraries.) |
---|
1608 | --with-cholmod-cflags Compiler flags for CHOLMOD appropriate for your |
---|
1609 | environment. (Most often, -I specs for header file |
---|
1610 | directories.) |
---|
1611 | --with-mumps Use MUMPS. If an argument is given, 'yes' is |
---|
1612 | equivalent to --with-mumps, 'no' is |
---|
1613 | equivalent to --without-mumps. Any other argument is |
---|
1614 | applied as for --with-mumps-lflags |
---|
1615 | --with-mumps-lflags Linker flags for MUMPS appropriate for your |
---|
1616 | environment. (Most often, -l specs for libraries.) |
---|
1617 | --with-mumps-cflags Compiler flags for MUMPS appropriate for your |
---|
1618 | environment. (Most often, -I specs for header file |
---|
1619 | directories.) |
---|
1620 | --with-wsmp specify WSMP library |
---|
1621 | --with-dot use dot (from graphviz) when creating documentation |
---|
1622 | with doxygen if available; --without-dot to disable |
---|
1623 | |
---|
1624 | Some influential environment variables: |
---|
1625 | CC C compiler command |
---|
1626 | CFLAGS C compiler flags |
---|
1627 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1628 | nonstandard directory <lib dir> |
---|
1629 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1630 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1631 | you have headers in a nonstandard directory <include dir> |
---|
1632 | ADD_CFLAGS Additional C compiler options (if not overwriting CFLAGS) |
---|
1633 | CXX C++ compiler command |
---|
1634 | CXXFLAGS C++ compiler flags |
---|
1635 | ADD_CXXFLAGS |
---|
1636 | Additional C++ compiler options (if not overwriting CXXFLAGS) |
---|
1637 | LT_SYS_LIBRARY_PATH |
---|
1638 | User-defined run-time library search path. |
---|
1639 | CPP C preprocessor |
---|
1640 | CXXCPP C++ preprocessor |
---|
1641 | LT_LDFLAGS Flags passed to libtool when building libraries or executables |
---|
1642 | that are installed |
---|
1643 | PKG_CONFIG path to pkg-config utility |
---|
1644 | |
---|
1645 | Use these variables to override the choices made by `configure' or to help |
---|
1646 | it to find libraries and programs with nonstandard names/locations. |
---|
1647 | |
---|
1648 | Report bugs to <clp@list.coin-or.org>. |
---|
1649 | Clp home page: <https://projects.coin-or.org/Clp>. |
---|
1650 | _ACEOF |
---|
1651 | ac_status=$? |
---|
1652 | fi |
---|
1653 | |
---|
1654 | if test "$ac_init_help" = "recursive"; then |
---|
1655 | # If there are subdirs, report their specific --help. |
---|
1656 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1657 | test -d "$ac_dir" || |
---|
1658 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1659 | continue |
---|
1660 | ac_builddir=. |
---|
1661 | |
---|
1662 | case "$ac_dir" in |
---|
1663 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1664 | *) |
---|
1665 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1666 | # A ".." for each directory in $ac_dir_suffix. |
---|
1667 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1668 | case $ac_top_builddir_sub in |
---|
1669 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1670 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1671 | esac ;; |
---|
1672 | esac |
---|
1673 | ac_abs_top_builddir=$ac_pwd |
---|
1674 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1675 | # for backward compatibility: |
---|
1676 | ac_top_builddir=$ac_top_build_prefix |
---|
1677 | |
---|
1678 | case $srcdir in |
---|
1679 | .) # We are building in place. |
---|
1680 | ac_srcdir=. |
---|
1681 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1682 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1683 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1684 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1685 | ac_top_srcdir=$srcdir |
---|
1686 | ac_abs_top_srcdir=$srcdir ;; |
---|
1687 | *) # Relative name. |
---|
1688 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1689 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1690 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1691 | esac |
---|
1692 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1693 | |
---|
1694 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1695 | # Check for guested configure. |
---|
1696 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1697 | echo && |
---|
1698 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1699 | elif test -f "$ac_srcdir/configure"; then |
---|
1700 | echo && |
---|
1701 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1702 | else |
---|
1703 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1704 | fi || ac_status=$? |
---|
1705 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1706 | done |
---|
1707 | fi |
---|
1708 | |
---|
1709 | test -n "$ac_init_help" && exit $ac_status |
---|
1710 | if $ac_init_version; then |
---|
1711 | cat <<\_ACEOF |
---|
1712 | Clp configure trunk |
---|
1713 | generated by GNU Autoconf 2.69 |
---|
1714 | |
---|
1715 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
1716 | This configure script is free software; the Free Software Foundation |
---|
1717 | gives unlimited permission to copy, distribute and modify it. |
---|
1718 | |
---|
1719 | |
---|
1720 | Copyright 2006 International Business Machines and others. |
---|
1721 | All Rights Reserved. |
---|
1722 | This file is part of the open source package Clp which is distributed |
---|
1723 | under the Eclipse Public License. |
---|
1724 | _ACEOF |
---|
1725 | exit |
---|
1726 | fi |
---|
1727 | |
---|
1728 | ## ------------------------ ## |
---|
1729 | ## Autoconf initialization. ## |
---|
1730 | ## ------------------------ ## |
---|
1731 | |
---|
1732 | # ac_fn_c_try_compile LINENO |
---|
1733 | # -------------------------- |
---|
1734 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1735 | ac_fn_c_try_compile () |
---|
1736 | { |
---|
1737 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1738 | rm -f conftest.$ac_objext |
---|
1739 | if { { ac_try="$ac_compile" |
---|
1740 | case "(($ac_try" in |
---|
1741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1742 | *) ac_try_echo=$ac_try;; |
---|
1743 | esac |
---|
1744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1745 | $as_echo "$ac_try_echo"; } >&5 |
---|
1746 | (eval "$ac_compile") 2>conftest.err |
---|
1747 | ac_status=$? |
---|
1748 | if test -s conftest.err; then |
---|
1749 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1750 | cat conftest.er1 >&5 |
---|
1751 | mv -f conftest.er1 conftest.err |
---|
1752 | fi |
---|
1753 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1754 | test $ac_status = 0; } && { |
---|
1755 | test -z "$ac_c_werror_flag" || |
---|
1756 | test ! -s conftest.err |
---|
1757 | } && test -s conftest.$ac_objext; then : |
---|
1758 | ac_retval=0 |
---|
1759 | else |
---|
1760 | $as_echo "$as_me: failed program was:" >&5 |
---|
1761 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1762 | |
---|
1763 | ac_retval=1 |
---|
1764 | fi |
---|
1765 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1766 | as_fn_set_status $ac_retval |
---|
1767 | |
---|
1768 | } # ac_fn_c_try_compile |
---|
1769 | |
---|
1770 | # ac_fn_cxx_try_compile LINENO |
---|
1771 | # ---------------------------- |
---|
1772 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1773 | ac_fn_cxx_try_compile () |
---|
1774 | { |
---|
1775 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1776 | rm -f conftest.$ac_objext |
---|
1777 | if { { ac_try="$ac_compile" |
---|
1778 | case "(($ac_try" in |
---|
1779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1780 | *) ac_try_echo=$ac_try;; |
---|
1781 | esac |
---|
1782 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1783 | $as_echo "$ac_try_echo"; } >&5 |
---|
1784 | (eval "$ac_compile") 2>conftest.err |
---|
1785 | ac_status=$? |
---|
1786 | if test -s conftest.err; then |
---|
1787 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1788 | cat conftest.er1 >&5 |
---|
1789 | mv -f conftest.er1 conftest.err |
---|
1790 | fi |
---|
1791 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1792 | test $ac_status = 0; } && { |
---|
1793 | test -z "$ac_cxx_werror_flag" || |
---|
1794 | test ! -s conftest.err |
---|
1795 | } && test -s conftest.$ac_objext; then : |
---|
1796 | ac_retval=0 |
---|
1797 | else |
---|
1798 | $as_echo "$as_me: failed program was:" >&5 |
---|
1799 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1800 | |
---|
1801 | ac_retval=1 |
---|
1802 | fi |
---|
1803 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1804 | as_fn_set_status $ac_retval |
---|
1805 | |
---|
1806 | } # ac_fn_cxx_try_compile |
---|
1807 | |
---|
1808 | # ac_fn_c_try_link LINENO |
---|
1809 | # ----------------------- |
---|
1810 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1811 | ac_fn_c_try_link () |
---|
1812 | { |
---|
1813 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1814 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1815 | if { { ac_try="$ac_link" |
---|
1816 | case "(($ac_try" in |
---|
1817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1818 | *) ac_try_echo=$ac_try;; |
---|
1819 | esac |
---|
1820 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1821 | $as_echo "$ac_try_echo"; } >&5 |
---|
1822 | (eval "$ac_link") 2>conftest.err |
---|
1823 | ac_status=$? |
---|
1824 | if test -s conftest.err; then |
---|
1825 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1826 | cat conftest.er1 >&5 |
---|
1827 | mv -f conftest.er1 conftest.err |
---|
1828 | fi |
---|
1829 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1830 | test $ac_status = 0; } && { |
---|
1831 | test -z "$ac_c_werror_flag" || |
---|
1832 | test ! -s conftest.err |
---|
1833 | } && test -s conftest$ac_exeext && { |
---|
1834 | test "$cross_compiling" = yes || |
---|
1835 | test -x conftest$ac_exeext |
---|
1836 | }; then : |
---|
1837 | ac_retval=0 |
---|
1838 | else |
---|
1839 | $as_echo "$as_me: failed program was:" >&5 |
---|
1840 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1841 | |
---|
1842 | ac_retval=1 |
---|
1843 | fi |
---|
1844 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1845 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1846 | # interfere with the next link command; also delete a directory that is |
---|
1847 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1848 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1849 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1850 | as_fn_set_status $ac_retval |
---|
1851 | |
---|
1852 | } # ac_fn_c_try_link |
---|
1853 | |
---|
1854 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1855 | # ------------------------------------------------------- |
---|
1856 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1857 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1858 | ac_fn_c_check_header_compile () |
---|
1859 | { |
---|
1860 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1862 | $as_echo_n "checking for $2... " >&6; } |
---|
1863 | if eval \${$3+:} false; then : |
---|
1864 | $as_echo_n "(cached) " >&6 |
---|
1865 | else |
---|
1866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1867 | /* end confdefs.h. */ |
---|
1868 | $4 |
---|
1869 | #include <$2> |
---|
1870 | _ACEOF |
---|
1871 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1872 | eval "$3=yes" |
---|
1873 | else |
---|
1874 | eval "$3=no" |
---|
1875 | fi |
---|
1876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1877 | fi |
---|
1878 | eval ac_res=\$$3 |
---|
1879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1880 | $as_echo "$ac_res" >&6; } |
---|
1881 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1882 | |
---|
1883 | } # ac_fn_c_check_header_compile |
---|
1884 | |
---|
1885 | # ac_fn_c_try_cpp LINENO |
---|
1886 | # ---------------------- |
---|
1887 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1888 | ac_fn_c_try_cpp () |
---|
1889 | { |
---|
1890 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1891 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1892 | case "(($ac_try" in |
---|
1893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1894 | *) ac_try_echo=$ac_try;; |
---|
1895 | esac |
---|
1896 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1897 | $as_echo "$ac_try_echo"; } >&5 |
---|
1898 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1899 | ac_status=$? |
---|
1900 | if test -s conftest.err; then |
---|
1901 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1902 | cat conftest.er1 >&5 |
---|
1903 | mv -f conftest.er1 conftest.err |
---|
1904 | fi |
---|
1905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1906 | test $ac_status = 0; } > conftest.i && { |
---|
1907 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1908 | test ! -s conftest.err |
---|
1909 | }; then : |
---|
1910 | ac_retval=0 |
---|
1911 | else |
---|
1912 | $as_echo "$as_me: failed program was:" >&5 |
---|
1913 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1914 | |
---|
1915 | ac_retval=1 |
---|
1916 | fi |
---|
1917 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1918 | as_fn_set_status $ac_retval |
---|
1919 | |
---|
1920 | } # ac_fn_c_try_cpp |
---|
1921 | |
---|
1922 | # ac_fn_c_try_run LINENO |
---|
1923 | # ---------------------- |
---|
1924 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1925 | # that executables *can* be run. |
---|
1926 | ac_fn_c_try_run () |
---|
1927 | { |
---|
1928 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1929 | if { { ac_try="$ac_link" |
---|
1930 | case "(($ac_try" in |
---|
1931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1932 | *) ac_try_echo=$ac_try;; |
---|
1933 | esac |
---|
1934 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1935 | $as_echo "$ac_try_echo"; } >&5 |
---|
1936 | (eval "$ac_link") 2>&5 |
---|
1937 | ac_status=$? |
---|
1938 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1939 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1940 | { { case "(($ac_try" in |
---|
1941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1942 | *) ac_try_echo=$ac_try;; |
---|
1943 | esac |
---|
1944 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1945 | $as_echo "$ac_try_echo"; } >&5 |
---|
1946 | (eval "$ac_try") 2>&5 |
---|
1947 | ac_status=$? |
---|
1948 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1949 | test $ac_status = 0; }; }; then : |
---|
1950 | ac_retval=0 |
---|
1951 | else |
---|
1952 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1953 | $as_echo "$as_me: failed program was:" >&5 |
---|
1954 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1955 | |
---|
1956 | ac_retval=$ac_status |
---|
1957 | fi |
---|
1958 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1959 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1960 | as_fn_set_status $ac_retval |
---|
1961 | |
---|
1962 | } # ac_fn_c_try_run |
---|
1963 | |
---|
1964 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
1965 | # ---------------------------------- |
---|
1966 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1967 | ac_fn_c_check_func () |
---|
1968 | { |
---|
1969 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1971 | $as_echo_n "checking for $2... " >&6; } |
---|
1972 | if eval \${$3+:} false; then : |
---|
1973 | $as_echo_n "(cached) " >&6 |
---|
1974 | else |
---|
1975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1976 | /* end confdefs.h. */ |
---|
1977 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1978 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1979 | #define $2 innocuous_$2 |
---|
1980 | |
---|
1981 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1982 | which can conflict with char $2 (); below. |
---|
1983 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1984 | <limits.h> exists even on freestanding compilers. */ |
---|
1985 | |
---|
1986 | #ifdef __STDC__ |
---|
1987 | # include <limits.h> |
---|
1988 | #else |
---|
1989 | # include <assert.h> |
---|
1990 | #endif |
---|
1991 | |
---|
1992 | #undef $2 |
---|
1993 | |
---|
1994 | /* Override any GCC internal prototype to avoid an error. |
---|
1995 | Use char because int might match the return type of a GCC |
---|
1996 | builtin and then its argument prototype would still apply. */ |
---|
1997 | #ifdef __cplusplus |
---|
1998 | extern "C" |
---|
1999 | #endif |
---|
2000 | char $2 (); |
---|
2001 | /* The GNU C library defines this for functions which it implements |
---|
2002 | to always fail with ENOSYS. Some functions are actually named |
---|
2003 | something starting with __ and the normal name is an alias. */ |
---|
2004 | #if defined __stub_$2 || defined __stub___$2 |
---|
2005 | choke me |
---|
2006 | #endif |
---|
2007 | |
---|
2008 | int |
---|
2009 | main () |
---|
2010 | { |
---|
2011 | return $2 (); |
---|
2012 | ; |
---|
2013 | return 0; |
---|
2014 | } |
---|
2015 | _ACEOF |
---|
2016 | if ac_fn_c_try_link "$LINENO"; then : |
---|
2017 | eval "$3=yes" |
---|
2018 | else |
---|
2019 | eval "$3=no" |
---|
2020 | fi |
---|
2021 | rm -f core conftest.err conftest.$ac_objext \ |
---|
2022 | conftest$ac_exeext conftest.$ac_ext |
---|
2023 | fi |
---|
2024 | eval ac_res=\$$3 |
---|
2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2026 | $as_echo "$ac_res" >&6; } |
---|
2027 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2028 | |
---|
2029 | } # ac_fn_c_check_func |
---|
2030 | |
---|
2031 | # ac_fn_cxx_try_cpp LINENO |
---|
2032 | # ------------------------ |
---|
2033 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
2034 | ac_fn_cxx_try_cpp () |
---|
2035 | { |
---|
2036 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2037 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
2038 | case "(($ac_try" in |
---|
2039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2040 | *) ac_try_echo=$ac_try;; |
---|
2041 | esac |
---|
2042 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2043 | $as_echo "$ac_try_echo"; } >&5 |
---|
2044 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
2045 | ac_status=$? |
---|
2046 | if test -s conftest.err; then |
---|
2047 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
2048 | cat conftest.er1 >&5 |
---|
2049 | mv -f conftest.er1 conftest.err |
---|
2050 | fi |
---|
2051 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2052 | test $ac_status = 0; } > conftest.i && { |
---|
2053 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
2054 | test ! -s conftest.err |
---|
2055 | }; then : |
---|
2056 | ac_retval=0 |
---|
2057 | else |
---|
2058 | $as_echo "$as_me: failed program was:" >&5 |
---|
2059 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2060 | |
---|
2061 | ac_retval=1 |
---|
2062 | fi |
---|
2063 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2064 | as_fn_set_status $ac_retval |
---|
2065 | |
---|
2066 | } # ac_fn_cxx_try_cpp |
---|
2067 | |
---|
2068 | # ac_fn_cxx_try_link LINENO |
---|
2069 | # ------------------------- |
---|
2070 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
2071 | ac_fn_cxx_try_link () |
---|
2072 | { |
---|
2073 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2074 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2075 | if { { ac_try="$ac_link" |
---|
2076 | case "(($ac_try" in |
---|
2077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2078 | *) ac_try_echo=$ac_try;; |
---|
2079 | esac |
---|
2080 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2081 | $as_echo "$ac_try_echo"; } >&5 |
---|
2082 | (eval "$ac_link") 2>conftest.err |
---|
2083 | ac_status=$? |
---|
2084 | if test -s conftest.err; then |
---|
2085 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
2086 | cat conftest.er1 >&5 |
---|
2087 | mv -f conftest.er1 conftest.err |
---|
2088 | fi |
---|
2089 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2090 | test $ac_status = 0; } && { |
---|
2091 | test -z "$ac_cxx_werror_flag" || |
---|
2092 | test ! -s conftest.err |
---|
2093 | } && test -s conftest$ac_exeext && { |
---|
2094 | test "$cross_compiling" = yes || |
---|
2095 | test -x conftest$ac_exeext |
---|
2096 | }; then : |
---|
2097 | ac_retval=0 |
---|
2098 | else |
---|
2099 | $as_echo "$as_me: failed program was:" >&5 |
---|
2100 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2101 | |
---|
2102 | ac_retval=1 |
---|
2103 | fi |
---|
2104 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
2105 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
2106 | # interfere with the next link command; also delete a directory that is |
---|
2107 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
2108 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
2109 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2110 | as_fn_set_status $ac_retval |
---|
2111 | |
---|
2112 | } # ac_fn_cxx_try_link |
---|
2113 | |
---|
2114 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
2115 | # --------------------------------------------------------- |
---|
2116 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
2117 | # the include files in INCLUDES and setting the cache variable VAR |
---|
2118 | # accordingly. |
---|
2119 | ac_fn_cxx_check_header_mongrel () |
---|
2120 | { |
---|
2121 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2122 | if eval \${$3+:} false; then : |
---|
2123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2124 | $as_echo_n "checking for $2... " >&6; } |
---|
2125 | if eval \${$3+:} false; then : |
---|
2126 | $as_echo_n "(cached) " >&6 |
---|
2127 | fi |
---|
2128 | eval ac_res=\$$3 |
---|
2129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2130 | $as_echo "$ac_res" >&6; } |
---|
2131 | else |
---|
2132 | # Is the header compilable? |
---|
2133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
2134 | $as_echo_n "checking $2 usability... " >&6; } |
---|
2135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2136 | /* end confdefs.h. */ |
---|
2137 | $4 |
---|
2138 | #include <$2> |
---|
2139 | _ACEOF |
---|
2140 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2141 | ac_header_compiler=yes |
---|
2142 | else |
---|
2143 | ac_header_compiler=no |
---|
2144 | fi |
---|
2145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
2147 | $as_echo "$ac_header_compiler" >&6; } |
---|
2148 | |
---|
2149 | # Is the header present? |
---|
2150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
2151 | $as_echo_n "checking $2 presence... " >&6; } |
---|
2152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2153 | /* end confdefs.h. */ |
---|
2154 | #include <$2> |
---|
2155 | _ACEOF |
---|
2156 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
2157 | ac_header_preproc=yes |
---|
2158 | else |
---|
2159 | ac_header_preproc=no |
---|
2160 | fi |
---|
2161 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
2162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
2163 | $as_echo "$ac_header_preproc" >&6; } |
---|
2164 | |
---|
2165 | # So? What about this header? |
---|
2166 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
---|
2167 | yes:no: ) |
---|
2168 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
2169 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
2170 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
2171 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
2172 | ;; |
---|
2173 | no:yes:* ) |
---|
2174 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
2175 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
2177 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
2179 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
2180 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
2181 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
2182 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
2183 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
2184 | ( $as_echo "## ----------------------------------- ## |
---|
2185 | ## Report this to clp@list.coin-or.org ## |
---|
2186 | ## ----------------------------------- ##" |
---|
2187 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
2188 | ;; |
---|
2189 | esac |
---|
2190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2191 | $as_echo_n "checking for $2... " >&6; } |
---|
2192 | if eval \${$3+:} false; then : |
---|
2193 | $as_echo_n "(cached) " >&6 |
---|
2194 | else |
---|
2195 | eval "$3=\$ac_header_compiler" |
---|
2196 | fi |
---|
2197 | eval ac_res=\$$3 |
---|
2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2199 | $as_echo "$ac_res" >&6; } |
---|
2200 | fi |
---|
2201 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2202 | |
---|
2203 | } # ac_fn_cxx_check_header_mongrel |
---|
2204 | |
---|
2205 | # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES |
---|
2206 | # --------------------------------------------------------- |
---|
2207 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
2208 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
2209 | ac_fn_cxx_check_header_compile () |
---|
2210 | { |
---|
2211 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2213 | $as_echo_n "checking for $2... " >&6; } |
---|
2214 | if eval \${$3+:} false; then : |
---|
2215 | $as_echo_n "(cached) " >&6 |
---|
2216 | else |
---|
2217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2218 | /* end confdefs.h. */ |
---|
2219 | $4 |
---|
2220 | #include <$2> |
---|
2221 | _ACEOF |
---|
2222 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2223 | eval "$3=yes" |
---|
2224 | else |
---|
2225 | eval "$3=no" |
---|
2226 | fi |
---|
2227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2228 | fi |
---|
2229 | eval ac_res=\$$3 |
---|
2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2231 | $as_echo "$ac_res" >&6; } |
---|
2232 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2233 | |
---|
2234 | } # ac_fn_cxx_check_header_compile |
---|
2235 | cat >config.log <<_ACEOF |
---|
2236 | This file contains any messages produced by compilers while |
---|
2237 | running configure, to aid debugging if configure makes a mistake. |
---|
2238 | |
---|
2239 | It was created by Clp $as_me trunk, which was |
---|
2240 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
2241 | |
---|
2242 | $ $0 $@ |
---|
2243 | |
---|
2244 | _ACEOF |
---|
2245 | exec 5>>config.log |
---|
2246 | { |
---|
2247 | cat <<_ASUNAME |
---|
2248 | ## --------- ## |
---|
2249 | ## Platform. ## |
---|
2250 | ## --------- ## |
---|
2251 | |
---|
2252 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
2253 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
2254 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
2255 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
2256 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
2257 | |
---|
2258 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
2259 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
2260 | |
---|
2261 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
2262 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
2263 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
2264 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
2265 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
2266 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
2267 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
2268 | |
---|
2269 | _ASUNAME |
---|
2270 | |
---|
2271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2272 | for as_dir in $PATH |
---|
2273 | do |
---|
2274 | IFS=$as_save_IFS |
---|
2275 | test -z "$as_dir" && as_dir=. |
---|
2276 | $as_echo "PATH: $as_dir" |
---|
2277 | done |
---|
2278 | IFS=$as_save_IFS |
---|
2279 | |
---|
2280 | } >&5 |
---|
2281 | |
---|
2282 | cat >&5 <<_ACEOF |
---|
2283 | |
---|
2284 | |
---|
2285 | ## ----------- ## |
---|
2286 | ## Core tests. ## |
---|
2287 | ## ----------- ## |
---|
2288 | |
---|
2289 | _ACEOF |
---|
2290 | |
---|
2291 | |
---|
2292 | # Keep a trace of the command line. |
---|
2293 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2294 | # Strip out --silent because we don't want to record it for future runs. |
---|
2295 | # Also quote any args containing shell meta-characters. |
---|
2296 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2297 | ac_configure_args= |
---|
2298 | ac_configure_args0= |
---|
2299 | ac_configure_args1= |
---|
2300 | ac_must_keep_next=false |
---|
2301 | for ac_pass in 1 2 |
---|
2302 | do |
---|
2303 | for ac_arg |
---|
2304 | do |
---|
2305 | case $ac_arg in |
---|
2306 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2307 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2308 | | -silent | --silent | --silen | --sile | --sil) |
---|
2309 | continue ;; |
---|
2310 | *\'*) |
---|
2311 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2312 | esac |
---|
2313 | case $ac_pass in |
---|
2314 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2315 | 2) |
---|
2316 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2317 | if test $ac_must_keep_next = true; then |
---|
2318 | ac_must_keep_next=false # Got value, back to normal. |
---|
2319 | else |
---|
2320 | case $ac_arg in |
---|
2321 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2322 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2323 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2324 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2325 | case "$ac_configure_args0 " in |
---|
2326 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2327 | esac |
---|
2328 | ;; |
---|
2329 | -* ) ac_must_keep_next=true ;; |
---|
2330 | esac |
---|
2331 | fi |
---|
2332 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2333 | ;; |
---|
2334 | esac |
---|
2335 | done |
---|
2336 | done |
---|
2337 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2338 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2339 | |
---|
2340 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2341 | # config.log. We remove comments because anyway the quotes in there |
---|
2342 | # would cause problems or look ugly. |
---|
2343 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2344 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2345 | trap 'exit_status=$? |
---|
2346 | # Save into config.log some information that might help in debugging. |
---|
2347 | { |
---|
2348 | echo |
---|
2349 | |
---|
2350 | $as_echo "## ---------------- ## |
---|
2351 | ## Cache variables. ## |
---|
2352 | ## ---------------- ##" |
---|
2353 | echo |
---|
2354 | # The following way of writing the cache mishandles newlines in values, |
---|
2355 | ( |
---|
2356 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2357 | eval ac_val=\$$ac_var |
---|
2358 | case $ac_val in #( |
---|
2359 | *${as_nl}*) |
---|
2360 | case $ac_var in #( |
---|
2361 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2362 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2363 | esac |
---|
2364 | case $ac_var in #( |
---|
2365 | _ | IFS | as_nl) ;; #( |
---|
2366 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2367 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2368 | esac ;; |
---|
2369 | esac |
---|
2370 | done |
---|
2371 | (set) 2>&1 | |
---|
2372 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2373 | *${as_nl}ac_space=\ *) |
---|
2374 | sed -n \ |
---|
2375 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2376 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2377 | ;; #( |
---|
2378 | *) |
---|
2379 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2380 | ;; |
---|
2381 | esac | |
---|
2382 | sort |
---|
2383 | ) |
---|
2384 | echo |
---|
2385 | |
---|
2386 | $as_echo "## ----------------- ## |
---|
2387 | ## Output variables. ## |
---|
2388 | ## ----------------- ##" |
---|
2389 | echo |
---|
2390 | for ac_var in $ac_subst_vars |
---|
2391 | do |
---|
2392 | eval ac_val=\$$ac_var |
---|
2393 | case $ac_val in |
---|
2394 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2395 | esac |
---|
2396 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2397 | done | sort |
---|
2398 | echo |
---|
2399 | |
---|
2400 | if test -n "$ac_subst_files"; then |
---|
2401 | $as_echo "## ------------------- ## |
---|
2402 | ## File substitutions. ## |
---|
2403 | ## ------------------- ##" |
---|
2404 | echo |
---|
2405 | for ac_var in $ac_subst_files |
---|
2406 | do |
---|
2407 | eval ac_val=\$$ac_var |
---|
2408 | case $ac_val in |
---|
2409 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2410 | esac |
---|
2411 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2412 | done | sort |
---|
2413 | echo |
---|
2414 | fi |
---|
2415 | |
---|
2416 | if test -s confdefs.h; then |
---|
2417 | $as_echo "## ----------- ## |
---|
2418 | ## confdefs.h. ## |
---|
2419 | ## ----------- ##" |
---|
2420 | echo |
---|
2421 | cat confdefs.h |
---|
2422 | echo |
---|
2423 | fi |
---|
2424 | test "$ac_signal" != 0 && |
---|
2425 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2426 | $as_echo "$as_me: exit $exit_status" |
---|
2427 | } >&5 |
---|
2428 | rm -f core *.core core.conftest.* && |
---|
2429 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2430 | exit $exit_status |
---|
2431 | ' 0 |
---|
2432 | for ac_signal in 1 2 13 15; do |
---|
2433 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2434 | done |
---|
2435 | ac_signal=0 |
---|
2436 | |
---|
2437 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2438 | rm -f -r conftest* confdefs.h |
---|
2439 | |
---|
2440 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2441 | |
---|
2442 | # Predefined preprocessor variables. |
---|
2443 | |
---|
2444 | cat >>confdefs.h <<_ACEOF |
---|
2445 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2446 | _ACEOF |
---|
2447 | |
---|
2448 | cat >>confdefs.h <<_ACEOF |
---|
2449 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2450 | _ACEOF |
---|
2451 | |
---|
2452 | cat >>confdefs.h <<_ACEOF |
---|
2453 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2454 | _ACEOF |
---|
2455 | |
---|
2456 | cat >>confdefs.h <<_ACEOF |
---|
2457 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2458 | _ACEOF |
---|
2459 | |
---|
2460 | cat >>confdefs.h <<_ACEOF |
---|
2461 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2462 | _ACEOF |
---|
2463 | |
---|
2464 | cat >>confdefs.h <<_ACEOF |
---|
2465 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2466 | _ACEOF |
---|
2467 | |
---|
2468 | |
---|
2469 | # Let the site file select an alternate cache file if it wants to. |
---|
2470 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2471 | ac_site_file1=NONE |
---|
2472 | ac_site_file2=NONE |
---|
2473 | if test -n "$CONFIG_SITE"; then |
---|
2474 | # We do not want a PATH search for config.site. |
---|
2475 | case $CONFIG_SITE in #(( |
---|
2476 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2477 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2478 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2479 | esac |
---|
2480 | elif test "x$prefix" != xNONE; then |
---|
2481 | ac_site_file1=$prefix/share/config.site |
---|
2482 | ac_site_file2=$prefix/etc/config.site |
---|
2483 | else |
---|
2484 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2485 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2486 | fi |
---|
2487 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2488 | do |
---|
2489 | test "x$ac_site_file" = xNONE && continue |
---|
2490 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2491 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2492 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2493 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2494 | . "$ac_site_file" \ |
---|
2495 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2496 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2497 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2498 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2499 | fi |
---|
2500 | done |
---|
2501 | |
---|
2502 | if test -r "$cache_file"; then |
---|
2503 | # Some versions of bash will fail to source /dev/null (special files |
---|
2504 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2505 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2506 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2507 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2508 | case $cache_file in |
---|
2509 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2510 | *) . "./$cache_file";; |
---|
2511 | esac |
---|
2512 | fi |
---|
2513 | else |
---|
2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2515 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2516 | >$cache_file |
---|
2517 | fi |
---|
2518 | |
---|
2519 | # Check that the precious variables saved in the cache have kept the same |
---|
2520 | # value. |
---|
2521 | ac_cache_corrupted=false |
---|
2522 | for ac_var in $ac_precious_vars; do |
---|
2523 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2524 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2525 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2526 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2527 | case $ac_old_set,$ac_new_set in |
---|
2528 | set,) |
---|
2529 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2530 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2531 | ac_cache_corrupted=: ;; |
---|
2532 | ,set) |
---|
2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2534 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2535 | ac_cache_corrupted=: ;; |
---|
2536 | ,);; |
---|
2537 | *) |
---|
2538 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2539 | # differences in whitespace do not lead to failure. |
---|
2540 | ac_old_val_w=`echo x $ac_old_val` |
---|
2541 | ac_new_val_w=`echo x $ac_new_val` |
---|
2542 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2544 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2545 | ac_cache_corrupted=: |
---|
2546 | else |
---|
2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2548 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2549 | eval $ac_var=\$ac_old_val |
---|
2550 | fi |
---|
2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2552 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2554 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2555 | fi;; |
---|
2556 | esac |
---|
2557 | # Pass precious variables to config.status. |
---|
2558 | if test "$ac_new_set" = set; then |
---|
2559 | case $ac_new_val in |
---|
2560 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2561 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2562 | esac |
---|
2563 | case " $ac_configure_args " in |
---|
2564 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2565 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2566 | esac |
---|
2567 | fi |
---|
2568 | done |
---|
2569 | if $ac_cache_corrupted; then |
---|
2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2571 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2572 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2573 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2574 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2575 | fi |
---|
2576 | ## -------------------- ## |
---|
2577 | ## Main body of script. ## |
---|
2578 | ## -------------------- ## |
---|
2579 | |
---|
2580 | ac_ext=c |
---|
2581 | ac_cpp='$CPP $CPPFLAGS' |
---|
2582 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2583 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2584 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2585 | |
---|
2586 | |
---|
2587 | |
---|
2588 | |
---|
2589 | |
---|
2590 | # List one file in the package so that the configure script can test |
---|
2591 | # whether the package is actually there. |
---|
2592 | |
---|
2593 | |
---|
2594 | |
---|
2595 | # Do some initialization work (version numbers, change prefix default, ...) |
---|
2596 | |
---|
2597 | ac_aux_dir= |
---|
2598 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
---|
2599 | if test -f "$ac_dir/install-sh"; then |
---|
2600 | ac_aux_dir=$ac_dir |
---|
2601 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2602 | break |
---|
2603 | elif test -f "$ac_dir/install.sh"; then |
---|
2604 | ac_aux_dir=$ac_dir |
---|
2605 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2606 | break |
---|
2607 | elif test -f "$ac_dir/shtool"; then |
---|
2608 | ac_aux_dir=$ac_dir |
---|
2609 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2610 | break |
---|
2611 | fi |
---|
2612 | done |
---|
2613 | if test -z "$ac_aux_dir"; then |
---|
2614 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
---|
2615 | fi |
---|
2616 | |
---|
2617 | # These three variables are undocumented and unsupported, |
---|
2618 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2619 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2620 | # whose full name contains unusual characters. |
---|
2621 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2622 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2623 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2624 | |
---|
2625 | |
---|
2626 | # Make sure we can run config.sub. |
---|
2627 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
2628 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
---|
2629 | |
---|
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
---|
2631 | $as_echo_n "checking build system type... " >&6; } |
---|
2632 | if ${ac_cv_build+:} false; then : |
---|
2633 | $as_echo_n "(cached) " >&6 |
---|
2634 | else |
---|
2635 | ac_build_alias=$build_alias |
---|
2636 | test "x$ac_build_alias" = x && |
---|
2637 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
2638 | test "x$ac_build_alias" = x && |
---|
2639 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
---|
2640 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
2641 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
---|
2642 | |
---|
2643 | fi |
---|
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
---|
2645 | $as_echo "$ac_cv_build" >&6; } |
---|
2646 | case $ac_cv_build in |
---|
2647 | *-*-*) ;; |
---|
2648 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
---|
2649 | esac |
---|
2650 | build=$ac_cv_build |
---|
2651 | ac_save_IFS=$IFS; IFS='-' |
---|
2652 | set x $ac_cv_build |
---|
2653 | shift |
---|
2654 | build_cpu=$1 |
---|
2655 | build_vendor=$2 |
---|
2656 | shift; shift |
---|
2657 | # Remember, the first character of IFS is used to create $*, |
---|
2658 | # except with old shells: |
---|
2659 | build_os=$* |
---|
2660 | IFS=$ac_save_IFS |
---|
2661 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
2662 | |
---|
2663 | |
---|
2664 | |
---|
2665 | |
---|
2666 | |
---|
2667 | # Check whether --enable-msvc was given. |
---|
2668 | if test "${enable_msvc+set}" = set; then : |
---|
2669 | enableval=$enable_msvc; enable_msvc=$enableval |
---|
2670 | else |
---|
2671 | enable_msvc=no |
---|
2672 | case $build in |
---|
2673 | *-mingw* | *-cygwin* | *-msys* ) |
---|
2674 | for ac_prog in gcc clang icl cl |
---|
2675 | do |
---|
2676 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2677 | set dummy $ac_prog; ac_word=$2 |
---|
2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2679 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2680 | if ${ac_cv_prog_CC+:} false; then : |
---|
2681 | $as_echo_n "(cached) " >&6 |
---|
2682 | else |
---|
2683 | if test -n "$CC"; then |
---|
2684 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2685 | else |
---|
2686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2687 | for as_dir in $PATH |
---|
2688 | do |
---|
2689 | IFS=$as_save_IFS |
---|
2690 | test -z "$as_dir" && as_dir=. |
---|
2691 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2692 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2693 | ac_cv_prog_CC="$ac_prog" |
---|
2694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2695 | break 2 |
---|
2696 | fi |
---|
2697 | done |
---|
2698 | done |
---|
2699 | IFS=$as_save_IFS |
---|
2700 | |
---|
2701 | fi |
---|
2702 | fi |
---|
2703 | CC=$ac_cv_prog_CC |
---|
2704 | if test -n "$CC"; then |
---|
2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2706 | $as_echo "$CC" >&6; } |
---|
2707 | else |
---|
2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2709 | $as_echo "no" >&6; } |
---|
2710 | fi |
---|
2711 | |
---|
2712 | |
---|
2713 | test -n "$CC" && break |
---|
2714 | done |
---|
2715 | |
---|
2716 | case "$CC" in *cl ) enable_msvc=yes ;; esac |
---|
2717 | ;; |
---|
2718 | esac |
---|
2719 | fi |
---|
2720 | |
---|
2721 | |
---|
2722 | |
---|
2723 | # We want --enable-msvc setup and checked |
---|
2724 | |
---|
2725 | |
---|
2726 | # Check whether --enable-debug was given. |
---|
2727 | if test "${enable_debug+set}" = set; then : |
---|
2728 | enableval=$enable_debug; enable_debug=$enableval |
---|
2729 | else |
---|
2730 | enable_debug=no |
---|
2731 | fi |
---|
2732 | |
---|
2733 | |
---|
2734 | # This macro should run before the compiler checks (doesn't seem to be |
---|
2735 | # sufficient for CFLAGS) |
---|
2736 | |
---|
2737 | |
---|
2738 | |
---|
2739 | |
---|
2740 | |
---|
2741 | |
---|
2742 | # change default compiler flags |
---|
2743 | # - debugging enabled: enable debug symbols (-g/-Z7) |
---|
2744 | # - debugging disabled: disable debug code (-DNDEBUG); enable (more) optimization (-O2) |
---|
2745 | # - enable exceptions for (i)cl |
---|
2746 | |
---|
2747 | if test "$enable_debug" = yes ; then |
---|
2748 | if test "$enable_msvc" = yes ; then |
---|
2749 | : ${FFLAGS:="-nologo -fpp -Z7 -MDd $ADD_FFLAGS"} |
---|
2750 | : ${FCFLAGS:="-nologo -fpp -Z7 -MDd $ADD_FCFLAGS"} |
---|
2751 | : ${CFLAGS:="-nologo -Z7 -MDd $ADD_CFLAGS"} |
---|
2752 | : ${CXXFLAGS:="-nologo -EHs -Z7 -MDd $ADD_CXXFLAGS"} |
---|
2753 | : ${AR:="lib"} |
---|
2754 | : ${AR_FLAGS:="-nologo -out:"} |
---|
2755 | else |
---|
2756 | : ${FFLAGS:="-g $ADD_FFLAGS"} |
---|
2757 | : ${FCFLAGS:="-g $ADD_FCFLAGS"} |
---|
2758 | : ${CFLAGS:="-g $ADD_CFLAGS"} |
---|
2759 | : ${CXXFLAGS:="-g $ADD_CXXFLAGS"} |
---|
2760 | fi |
---|
2761 | else |
---|
2762 | if test "$enable_msvc" = yes ; then |
---|
2763 | : ${FFLAGS:="-nologo -fpp -O2 -MD $ADD_FFLAGS"} |
---|
2764 | : ${FCFLAGS:="-nologo -fpp -O2 -MD $ADD_FCFLAGS"} |
---|
2765 | : ${CFLAGS:="-nologo -DNDEBUG -O2 -MD $ADD_CFLAGS"} |
---|
2766 | : ${CXXFLAGS:="-nologo -EHs -DNDEBUG -O2 -MD $ADD_CXXFLAGS"} |
---|
2767 | : ${AR:="lib"} |
---|
2768 | : ${AR_FLAGS:="-nologo -out:"} |
---|
2769 | else |
---|
2770 | : ${FFLAGS:="-O2 $ADD_FFLAGS"} |
---|
2771 | : ${FCFLAGS:="-O2 $ADD_FCFLAGS"} |
---|
2772 | : ${CFLAGS:="-O2 -DNDEBUG $ADD_CFLAGS"} |
---|
2773 | : ${CXXFLAGS:="-O2 -DNDEBUG $ADD_CXXFLAGS"} |
---|
2774 | fi |
---|
2775 | fi |
---|
2776 | |
---|
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
---|
2778 | $as_echo_n "checking host system type... " >&6; } |
---|
2779 | if ${ac_cv_host+:} false; then : |
---|
2780 | $as_echo_n "(cached) " >&6 |
---|
2781 | else |
---|
2782 | if test "x$host_alias" = x; then |
---|
2783 | ac_cv_host=$ac_cv_build |
---|
2784 | else |
---|
2785 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
---|
2786 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
---|
2787 | fi |
---|
2788 | |
---|
2789 | fi |
---|
2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
---|
2791 | $as_echo "$ac_cv_host" >&6; } |
---|
2792 | case $ac_cv_host in |
---|
2793 | *-*-*) ;; |
---|
2794 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
---|
2795 | esac |
---|
2796 | host=$ac_cv_host |
---|
2797 | ac_save_IFS=$IFS; IFS='-' |
---|
2798 | set x $ac_cv_host |
---|
2799 | shift |
---|
2800 | host_cpu=$1 |
---|
2801 | host_vendor=$2 |
---|
2802 | shift; shift |
---|
2803 | # Remember, the first character of IFS is used to create $*, |
---|
2804 | # except with old shells: |
---|
2805 | host_os=$* |
---|
2806 | IFS=$ac_save_IFS |
---|
2807 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
2808 | |
---|
2809 | |
---|
2810 | am__api_version='1.16' |
---|
2811 | |
---|
2812 | # Find a good install program. We prefer a C program (faster), |
---|
2813 | # so one script is as good as another. But avoid the broken or |
---|
2814 | # incompatible versions: |
---|
2815 | # SysV /etc/install, /usr/sbin/install |
---|
2816 | # SunOS /usr/etc/install |
---|
2817 | # IRIX /sbin/install |
---|
2818 | # AIX /bin/install |
---|
2819 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2820 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2821 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2822 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2823 | # OS/2's system install, which has a completely different semantic |
---|
2824 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2825 | # Reject install programs that cannot install multiple files. |
---|
2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2827 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2828 | if test -z "$INSTALL"; then |
---|
2829 | if ${ac_cv_path_install+:} false; then : |
---|
2830 | $as_echo_n "(cached) " >&6 |
---|
2831 | else |
---|
2832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2833 | for as_dir in $PATH |
---|
2834 | do |
---|
2835 | IFS=$as_save_IFS |
---|
2836 | test -z "$as_dir" && as_dir=. |
---|
2837 | # Account for people who put trailing slashes in PATH elements. |
---|
2838 | case $as_dir/ in #(( |
---|
2839 | ./ | .// | /[cC]/* | \ |
---|
2840 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2841 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2842 | /usr/ucb/* ) ;; |
---|
2843 | *) |
---|
2844 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2845 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2846 | # by default. |
---|
2847 | for ac_prog in ginstall scoinst install; do |
---|
2848 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2849 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
2850 | if test $ac_prog = install && |
---|
2851 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2852 | # AIX install. It has an incompatible calling convention. |
---|
2853 | : |
---|
2854 | elif test $ac_prog = install && |
---|
2855 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2856 | # program-specific install script used by HP pwplus--don't use. |
---|
2857 | : |
---|
2858 | else |
---|
2859 | rm -rf conftest.one conftest.two conftest.dir |
---|
2860 | echo one > conftest.one |
---|
2861 | echo two > conftest.two |
---|
2862 | mkdir conftest.dir |
---|
2863 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2864 | test -s conftest.one && test -s conftest.two && |
---|
2865 | test -s conftest.dir/conftest.one && |
---|
2866 | test -s conftest.dir/conftest.two |
---|
2867 | then |
---|
2868 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2869 | break 3 |
---|
2870 | fi |
---|
2871 | fi |
---|
2872 | fi |
---|
2873 | done |
---|
2874 | done |
---|
2875 | ;; |
---|
2876 | esac |
---|
2877 | |
---|
2878 | done |
---|
2879 | IFS=$as_save_IFS |
---|
2880 | |
---|
2881 | rm -rf conftest.one conftest.two conftest.dir |
---|
2882 | |
---|
2883 | fi |
---|
2884 | if test "${ac_cv_path_install+set}" = set; then |
---|
2885 | INSTALL=$ac_cv_path_install |
---|
2886 | else |
---|
2887 | # As a last resort, use the slow shell script. Don't cache a |
---|
2888 | # value for INSTALL within a source directory, because that will |
---|
2889 | # break other packages using the cache if that directory is |
---|
2890 | # removed, or if the value is a relative name. |
---|
2891 | INSTALL=$ac_install_sh |
---|
2892 | fi |
---|
2893 | fi |
---|
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2895 | $as_echo "$INSTALL" >&6; } |
---|
2896 | |
---|
2897 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2898 | # It thinks the first close brace ends the variable substitution. |
---|
2899 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2900 | |
---|
2901 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2902 | |
---|
2903 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2904 | |
---|
2905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
---|
2906 | $as_echo_n "checking whether build environment is sane... " >&6; } |
---|
2907 | # Reject unsafe characters in $srcdir or the absolute working directory |
---|
2908 | # name. Accept space and tab only in the latter. |
---|
2909 | am_lf=' |
---|
2910 | ' |
---|
2911 | case `pwd` in |
---|
2912 | *[\\\"\#\$\&\'\`$am_lf]*) |
---|
2913 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
---|
2914 | esac |
---|
2915 | case $srcdir in |
---|
2916 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
---|
2917 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
---|
2918 | esac |
---|
2919 | |
---|
2920 | # Do 'set' in a subshell so we don't clobber the current shell's |
---|
2921 | # arguments. Must try -L first in case configure is actually a |
---|
2922 | # symlink; some systems play weird games with the mod time of symlinks |
---|
2923 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
2924 | # directory). |
---|
2925 | if ( |
---|
2926 | am_has_slept=no |
---|
2927 | for am_try in 1 2; do |
---|
2928 | echo "timestamp, slept: $am_has_slept" > conftest.file |
---|
2929 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
---|
2930 | if test "$*" = "X"; then |
---|
2931 | # -L didn't work. |
---|
2932 | set X `ls -t "$srcdir/configure" conftest.file` |
---|
2933 | fi |
---|
2934 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
2935 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
2936 | |
---|
2937 | # If neither matched, then we have a broken ls. This can happen |
---|
2938 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
2939 | # broken ls alias from the environment. This has actually |
---|
2940 | # happened. Such a system could not be considered "sane". |
---|
2941 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
---|
2942 | alias in your environment" "$LINENO" 5 |
---|
2943 | fi |
---|
2944 | if test "$2" = conftest.file || test $am_try -eq 2; then |
---|
2945 | break |
---|
2946 | fi |
---|
2947 | # Just in case. |
---|
2948 | sleep 1 |
---|
2949 | am_has_slept=yes |
---|
2950 | done |
---|
2951 | test "$2" = conftest.file |
---|
2952 | ) |
---|
2953 | then |
---|
2954 | # Ok. |
---|
2955 | : |
---|
2956 | else |
---|
2957 | as_fn_error $? "newly created file is older than distributed files! |
---|
2958 | Check your system clock" "$LINENO" 5 |
---|
2959 | fi |
---|
2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2961 | $as_echo "yes" >&6; } |
---|
2962 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
---|
2963 | # generated files are strictly newer. |
---|
2964 | am_sleep_pid= |
---|
2965 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
---|
2966 | ( sleep 1 ) & |
---|
2967 | am_sleep_pid=$! |
---|
2968 | fi |
---|
2969 | |
---|
2970 | rm -f conftest.file |
---|
2971 | |
---|
2972 | test "$program_prefix" != NONE && |
---|
2973 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
---|
2974 | # Use a double $ so make ignores it. |
---|
2975 | test "$program_suffix" != NONE && |
---|
2976 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
---|
2977 | # Double any \ or $. |
---|
2978 | # By default was `s,x,x', remove it if useless. |
---|
2979 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
---|
2980 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
---|
2981 | |
---|
2982 | # Expand $ac_aux_dir to an absolute path. |
---|
2983 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
---|
2984 | |
---|
2985 | if test x"${MISSING+set}" != xset; then |
---|
2986 | case $am_aux_dir in |
---|
2987 | *\ * | *\ *) |
---|
2988 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
---|
2989 | *) |
---|
2990 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
---|
2991 | esac |
---|
2992 | fi |
---|
2993 | # Use eval to expand $SHELL |
---|
2994 | if eval "$MISSING --is-lightweight"; then |
---|
2995 | am_missing_run="$MISSING " |
---|
2996 | else |
---|
2997 | am_missing_run= |
---|
2998 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
---|
2999 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
---|
3000 | fi |
---|
3001 | |
---|
3002 | if test x"${install_sh+set}" != xset; then |
---|
3003 | case $am_aux_dir in |
---|
3004 | *\ * | *\ *) |
---|
3005 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
---|
3006 | *) |
---|
3007 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
---|
3008 | esac |
---|
3009 | fi |
---|
3010 | |
---|
3011 | # Installed binaries are usually stripped using 'strip' when the user |
---|
3012 | # run "make install-strip". However 'strip' might not be the right |
---|
3013 | # tool to use in cross-compilation environments, therefore Automake |
---|
3014 | # will honor the 'STRIP' environment variable to overrule this program. |
---|
3015 | if test "$cross_compiling" != no; then |
---|
3016 | if test -n "$ac_tool_prefix"; then |
---|
3017 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
3018 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
3019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3020 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3021 | if ${ac_cv_prog_STRIP+:} false; then : |
---|
3022 | $as_echo_n "(cached) " >&6 |
---|
3023 | else |
---|
3024 | if test -n "$STRIP"; then |
---|
3025 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
3026 | else |
---|
3027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3028 | for as_dir in $PATH |
---|
3029 | do |
---|
3030 | IFS=$as_save_IFS |
---|
3031 | test -z "$as_dir" && as_dir=. |
---|
3032 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3033 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3034 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
3035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3036 | break 2 |
---|
3037 | fi |
---|
3038 | done |
---|
3039 | done |
---|
3040 | IFS=$as_save_IFS |
---|
3041 | |
---|
3042 | fi |
---|
3043 | fi |
---|
3044 | STRIP=$ac_cv_prog_STRIP |
---|
3045 | if test -n "$STRIP"; then |
---|
3046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
---|
3047 | $as_echo "$STRIP" >&6; } |
---|
3048 | else |
---|
3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3050 | $as_echo "no" >&6; } |
---|
3051 | fi |
---|
3052 | |
---|
3053 | |
---|
3054 | fi |
---|
3055 | if test -z "$ac_cv_prog_STRIP"; then |
---|
3056 | ac_ct_STRIP=$STRIP |
---|
3057 | # Extract the first word of "strip", so it can be a program name with args. |
---|
3058 | set dummy strip; ac_word=$2 |
---|
3059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3060 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3061 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
---|
3062 | $as_echo_n "(cached) " >&6 |
---|
3063 | else |
---|
3064 | if test -n "$ac_ct_STRIP"; then |
---|
3065 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
3066 | else |
---|
3067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3068 | for as_dir in $PATH |
---|
3069 | do |
---|
3070 | IFS=$as_save_IFS |
---|
3071 | test -z "$as_dir" && as_dir=. |
---|
3072 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3073 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3074 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
3075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3076 | break 2 |
---|
3077 | fi |
---|
3078 | done |
---|
3079 | done |
---|
3080 | IFS=$as_save_IFS |
---|
3081 | |
---|
3082 | fi |
---|
3083 | fi |
---|
3084 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
3085 | if test -n "$ac_ct_STRIP"; then |
---|
3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
---|
3087 | $as_echo "$ac_ct_STRIP" >&6; } |
---|
3088 | else |
---|
3089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3090 | $as_echo "no" >&6; } |
---|
3091 | fi |
---|
3092 | |
---|
3093 | if test "x$ac_ct_STRIP" = x; then |
---|
3094 | STRIP=":" |
---|
3095 | else |
---|
3096 | case $cross_compiling:$ac_tool_warned in |
---|
3097 | yes:) |
---|
3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3099 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3100 | ac_tool_warned=yes ;; |
---|
3101 | esac |
---|
3102 | STRIP=$ac_ct_STRIP |
---|
3103 | fi |
---|
3104 | else |
---|
3105 | STRIP="$ac_cv_prog_STRIP" |
---|
3106 | fi |
---|
3107 | |
---|
3108 | fi |
---|
3109 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
---|
3110 | |
---|
3111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
3112 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
3113 | if test -z "$MKDIR_P"; then |
---|
3114 | if ${ac_cv_path_mkdir+:} false; then : |
---|
3115 | $as_echo_n "(cached) " >&6 |
---|
3116 | else |
---|
3117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3118 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
3119 | do |
---|
3120 | IFS=$as_save_IFS |
---|
3121 | test -z "$as_dir" && as_dir=. |
---|
3122 | for ac_prog in mkdir gmkdir; do |
---|
3123 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3124 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
---|
3125 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
3126 | 'mkdir (GNU coreutils) '* | \ |
---|
3127 | 'mkdir (coreutils) '* | \ |
---|
3128 | 'mkdir (fileutils) '4.1*) |
---|
3129 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
3130 | break 3;; |
---|
3131 | esac |
---|
3132 | done |
---|
3133 | done |
---|
3134 | done |
---|
3135 | IFS=$as_save_IFS |
---|
3136 | |
---|
3137 | fi |
---|
3138 | |
---|
3139 | test -d ./--version && rmdir ./--version |
---|
3140 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
3141 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
3142 | else |
---|
3143 | # As a last resort, use the slow shell script. Don't cache a |
---|
3144 | # value for MKDIR_P within a source directory, because that will |
---|
3145 | # break other packages using the cache if that directory is |
---|
3146 | # removed, or if the value is a relative name. |
---|
3147 | MKDIR_P="$ac_install_sh -d" |
---|
3148 | fi |
---|
3149 | fi |
---|
3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
3151 | $as_echo "$MKDIR_P" >&6; } |
---|
3152 | |
---|
3153 | for ac_prog in gawk mawk nawk awk |
---|
3154 | do |
---|
3155 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3156 | set dummy $ac_prog; ac_word=$2 |
---|
3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3158 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3159 | if ${ac_cv_prog_AWK+:} false; then : |
---|
3160 | $as_echo_n "(cached) " >&6 |
---|
3161 | else |
---|
3162 | if test -n "$AWK"; then |
---|
3163 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
3164 | else |
---|
3165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3166 | for as_dir in $PATH |
---|
3167 | do |
---|
3168 | IFS=$as_save_IFS |
---|
3169 | test -z "$as_dir" && as_dir=. |
---|
3170 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3171 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3172 | ac_cv_prog_AWK="$ac_prog" |
---|
3173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3174 | break 2 |
---|
3175 | fi |
---|
3176 | done |
---|
3177 | done |
---|
3178 | IFS=$as_save_IFS |
---|
3179 | |
---|
3180 | fi |
---|
3181 | fi |
---|
3182 | AWK=$ac_cv_prog_AWK |
---|
3183 | if test -n "$AWK"; then |
---|
3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
---|
3185 | $as_echo "$AWK" >&6; } |
---|
3186 | else |
---|
3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3188 | $as_echo "no" >&6; } |
---|
3189 | fi |
---|
3190 | |
---|
3191 | |
---|
3192 | test -n "$AWK" && break |
---|
3193 | done |
---|
3194 | |
---|
3195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
3196 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
3197 | set x ${MAKE-make} |
---|
3198 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
3199 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
3200 | $as_echo_n "(cached) " >&6 |
---|
3201 | else |
---|
3202 | cat >conftest.make <<\_ACEOF |
---|
3203 | SHELL = /bin/sh |
---|
3204 | all: |
---|
3205 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
3206 | _ACEOF |
---|
3207 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
3208 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
3209 | *@@@%%%=?*=@@@%%%*) |
---|
3210 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
3211 | *) |
---|
3212 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
3213 | esac |
---|
3214 | rm -f conftest.make |
---|
3215 | fi |
---|
3216 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
3217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3218 | $as_echo "yes" >&6; } |
---|
3219 | SET_MAKE= |
---|
3220 | else |
---|
3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3222 | $as_echo "no" >&6; } |
---|
3223 | SET_MAKE="MAKE=${MAKE-make}" |
---|
3224 | fi |
---|
3225 | |
---|
3226 | rm -rf .tst 2>/dev/null |
---|
3227 | mkdir .tst 2>/dev/null |
---|
3228 | if test -d .tst; then |
---|
3229 | am__leading_dot=. |
---|
3230 | else |
---|
3231 | am__leading_dot=_ |
---|
3232 | fi |
---|
3233 | rmdir .tst 2>/dev/null |
---|
3234 | |
---|
3235 | |
---|
3236 | # Enforce the required autoconf version |
---|
3237 | |
---|
3238 | |
---|
3239 | |
---|
3240 | # Set the project's version numbers |
---|
3241 | |
---|
3242 | |
---|
3243 | # break up package version number in major.minor.release |
---|
3244 | # AC_PACKAGE_VERSION is defined by AC_INIT |
---|
3245 | |
---|
3246 | |
---|
3247 | |
---|
3248 | |
---|
3249 | # ac-define AC_PACKAGE_VERSION macros, use 9999 for missing values |
---|
3250 | |
---|
3251 | cat >>confdefs.h <<_ACEOF |
---|
3252 | #define CLP_VERSION "trunk" |
---|
3253 | _ACEOF |
---|
3254 | |
---|
3255 | |
---|
3256 | cat >>confdefs.h <<_ACEOF |
---|
3257 | #define CLP_VERSION_MAJOR 9999 |
---|
3258 | _ACEOF |
---|
3259 | |
---|
3260 | |
---|
3261 | cat >>confdefs.h <<_ACEOF |
---|
3262 | #define CLP_VERSION_MINOR 9999 |
---|
3263 | _ACEOF |
---|
3264 | |
---|
3265 | |
---|
3266 | cat >>confdefs.h <<_ACEOF |
---|
3267 | #define CLP_VERSION_RELEASE 9999 |
---|
3268 | _ACEOF |
---|
3269 | |
---|
3270 | |
---|
3271 | |
---|
3272 | |
---|
3273 | |
---|
3274 | |
---|
3275 | |
---|
3276 | # A useful makefile conditional that is always false |
---|
3277 | |
---|
3278 | if false; then |
---|
3279 | ALWAYS_FALSE_TRUE= |
---|
3280 | ALWAYS_FALSE_FALSE='#' |
---|
3281 | else |
---|
3282 | ALWAYS_FALSE_TRUE='#' |
---|
3283 | ALWAYS_FALSE_FALSE= |
---|
3284 | fi |
---|
3285 | |
---|
3286 | |
---|
3287 | # Change the default compiler flags. This needs to run before |
---|
3288 | # AC_CANONICAL_BUILD. |
---|
3289 | |
---|
3290 | |
---|
3291 | |
---|
3292 | # Get the build and host types |
---|
3293 | |
---|
3294 | |
---|
3295 | |
---|
3296 | |
---|
3297 | # libtool has some magic for host_os and build_os being mingw, but doesn't know about msys |
---|
3298 | |
---|
3299 | if test $host_os = msys ; then |
---|
3300 | host_os=mingw |
---|
3301 | host=`echo $host | sed -e 's/msys/mingw/'` |
---|
3302 | fi |
---|
3303 | |
---|
3304 | if test $build_os = msys ; then |
---|
3305 | build_os=mingw |
---|
3306 | build=`echo $build | sed -e 's/msys/mingw/'` |
---|
3307 | fi |
---|
3308 | |
---|
3309 | # Make silent build rules the default (https://www.gnu.org/software/automake/ |
---|
3310 | # manual/html_node/Automake-Silent-Rules.html). Run before AM_INIT_AUTOMAKE, |
---|
3311 | # which will AC_REQUIRE it anyway. |
---|
3312 | |
---|
3313 | # Check whether --enable-silent-rules was given. |
---|
3314 | if test "${enable_silent_rules+set}" = set; then : |
---|
3315 | enableval=$enable_silent_rules; |
---|
3316 | fi |
---|
3317 | |
---|
3318 | case $enable_silent_rules in # ((( |
---|
3319 | yes) AM_DEFAULT_VERBOSITY=0;; |
---|
3320 | no) AM_DEFAULT_VERBOSITY=1;; |
---|
3321 | *) AM_DEFAULT_VERBOSITY=0;; |
---|
3322 | esac |
---|
3323 | am_make=${MAKE-make} |
---|
3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
---|
3325 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
---|
3326 | if ${am_cv_make_support_nested_variables+:} false; then : |
---|
3327 | $as_echo_n "(cached) " >&6 |
---|
3328 | else |
---|
3329 | if $as_echo 'TRUE=$(BAR$(V)) |
---|
3330 | BAR0=false |
---|
3331 | BAR1=true |
---|
3332 | V=1 |
---|
3333 | am__doit: |
---|
3334 | @$(TRUE) |
---|
3335 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
---|
3336 | am_cv_make_support_nested_variables=yes |
---|
3337 | else |
---|
3338 | am_cv_make_support_nested_variables=no |
---|
3339 | fi |
---|
3340 | fi |
---|
3341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
---|
3342 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
---|
3343 | if test $am_cv_make_support_nested_variables = yes; then |
---|
3344 | AM_V='$(V)' |
---|
3345 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
---|
3346 | else |
---|
3347 | AM_V=$AM_DEFAULT_VERBOSITY |
---|
3348 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
---|
3349 | fi |
---|
3350 | AM_BACKSLASH='\' |
---|
3351 | |
---|
3352 | |
---|
3353 | # Initialize automake |
---|
3354 | # - don't AC_DEFINE PACKAGE or VERSION (but there're still defined as shell |
---|
3355 | # variables in configure, and as make variables). |
---|
3356 | # - disable dist target |
---|
3357 | # - enable all automake warnings |
---|
3358 | |
---|
3359 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
---|
3360 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
---|
3361 | # is not polluted with repeated "-I." |
---|
3362 | am__isrc=' -I$(srcdir)' |
---|
3363 | # test to see if srcdir already configured |
---|
3364 | if test -f $srcdir/config.status; then |
---|
3365 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
---|
3366 | fi |
---|
3367 | fi |
---|
3368 | |
---|
3369 | # test whether we have cygpath |
---|
3370 | if test -z "$CYGPATH_W"; then |
---|
3371 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
3372 | CYGPATH_W='cygpath -w' |
---|
3373 | else |
---|
3374 | CYGPATH_W=echo |
---|
3375 | fi |
---|
3376 | fi |
---|
3377 | |
---|
3378 | |
---|
3379 | # Define the identity of the package. |
---|
3380 | PACKAGE='coin-or-clp' |
---|
3381 | VERSION='trunk' |
---|
3382 | |
---|
3383 | |
---|
3384 | # Some tools Automake needs. |
---|
3385 | |
---|
3386 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
3387 | |
---|
3388 | |
---|
3389 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
3390 | |
---|
3391 | |
---|
3392 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
3393 | |
---|
3394 | |
---|
3395 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
3396 | |
---|
3397 | |
---|
3398 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
3399 | |
---|
3400 | # For better backward compatibility. To be removed once Automake 1.9.x |
---|
3401 | # dies out for good. For more background, see: |
---|
3402 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
---|
3403 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
---|
3404 | mkdir_p='$(MKDIR_P)' |
---|
3405 | |
---|
3406 | # We need awk for the "check" target (and possibly the TAP driver). The |
---|
3407 | # system "awk" is bad on some platforms. |
---|
3408 | # Always define AMTAR for backward compatibility. Yes, it's still used |
---|
3409 | # in the wild :-( We should find a proper way to deprecate it ... |
---|
3410 | AMTAR='$${TAR-tar}' |
---|
3411 | |
---|
3412 | |
---|
3413 | # We'll loop over all known methods to create a tar archive until one works. |
---|
3414 | _am_tools='gnutar pax cpio none' |
---|
3415 | |
---|
3416 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
---|
3417 | |
---|
3418 | |
---|
3419 | |
---|
3420 | |
---|
3421 | |
---|
3422 | |
---|
3423 | # POSIX will say in a future version that running "rm -f" with no argument |
---|
3424 | # is OK; and we want to be able to make that assumption in our Makefile |
---|
3425 | # recipes. So use an aggressive probe to check that the usage we want is |
---|
3426 | # actually supported "in the wild" to an acceptable degree. |
---|
3427 | # See automake bug#10828. |
---|
3428 | # To make any issue more visible, cause the running configure to be aborted |
---|
3429 | # by default if the 'rm' program in use doesn't match our expectations; the |
---|
3430 | # user can still override this though. |
---|
3431 | if rm -f && rm -fr && rm -rf; then : OK; else |
---|
3432 | cat >&2 <<'END' |
---|
3433 | Oops! |
---|
3434 | |
---|
3435 | Your 'rm' program seems unable to run without file operands specified |
---|
3436 | on the command line, even when the '-f' option is present. This is contrary |
---|
3437 | to the behaviour of most rm programs out there, and not conforming with |
---|
3438 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
---|
3439 | |
---|
3440 | Please tell bug-automake@gnu.org about your system, including the value |
---|
3441 | of your $PATH and any error possibly output before this message. This |
---|
3442 | can help us improve future automake versions. |
---|
3443 | |
---|
3444 | END |
---|
3445 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
---|
3446 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
---|
3447 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
---|
3448 | echo >&2 |
---|
3449 | else |
---|
3450 | cat >&2 <<'END' |
---|
3451 | Aborting the configuration process, to ensure you take notice of the issue. |
---|
3452 | |
---|
3453 | You can download and install GNU coreutils to get an 'rm' implementation |
---|
3454 | that behaves properly: <https://www.gnu.org/software/coreutils/>. |
---|
3455 | |
---|
3456 | If you want to complete the configuration process using your problematic |
---|
3457 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
---|
3458 | to "yes", and re-run configure. |
---|
3459 | |
---|
3460 | END |
---|
3461 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
---|
3462 | fi |
---|
3463 | fi |
---|
3464 | |
---|
3465 | |
---|
3466 | # Disable automatic rebuild of configure/Makefile. Use run_autotools. |
---|
3467 | |
---|
3468 | |
---|
3469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
3470 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
---|
3471 | # Check whether --enable-maintainer-mode was given. |
---|
3472 | if test "${enable_maintainer_mode+set}" = set; then : |
---|
3473 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
---|
3474 | else |
---|
3475 | USE_MAINTAINER_MODE=no |
---|
3476 | fi |
---|
3477 | |
---|
3478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
---|
3479 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
---|
3480 | if test $USE_MAINTAINER_MODE = yes; then |
---|
3481 | MAINTAINER_MODE_TRUE= |
---|
3482 | MAINTAINER_MODE_FALSE='#' |
---|
3483 | else |
---|
3484 | MAINTAINER_MODE_TRUE='#' |
---|
3485 | MAINTAINER_MODE_FALSE= |
---|
3486 | fi |
---|
3487 | |
---|
3488 | MAINT=$MAINTAINER_MODE_TRUE |
---|
3489 | |
---|
3490 | |
---|
3491 | |
---|
3492 | # Figure out the path where libraries are installed. |
---|
3493 | # Unless the user specifies --prefix, prefix is set to NONE until the |
---|
3494 | # end of configuration, at which point it will be set to $ac_default_prefix. |
---|
3495 | # Unless the user specifies --exec-prefix, exec-prefix is set to NONE until |
---|
3496 | # the end of configuration, at which point it's set to '${prefix}'. |
---|
3497 | # Sheesh. So do the expansion, then back it out. |
---|
3498 | save_prefix=$prefix |
---|
3499 | save_exec_prefix=$exec_prefix |
---|
3500 | if test "x$prefix" = xNONE ; then |
---|
3501 | prefix=$ac_default_prefix |
---|
3502 | fi |
---|
3503 | if test "x$exec_prefix" = xNONE ; then |
---|
3504 | exec_prefix=$prefix |
---|
3505 | fi |
---|
3506 | expanded_libdir=$libdir |
---|
3507 | while expr "$expanded_libdir" : '.*$.*' >/dev/null 2>&1 ; do |
---|
3508 | eval expanded_libdir=$expanded_libdir |
---|
3509 | done |
---|
3510 | prefix=$save_prefix |
---|
3511 | exec_prefix=$save_exec_prefix |
---|
3512 | |
---|
3513 | # add a configure flag to indicate whether .pc files should be made relocatable |
---|
3514 | # off by default, as it creates libtool warnings |
---|
3515 | # Check whether --enable-relocatable was given. |
---|
3516 | if test "${enable_relocatable+set}" = set; then : |
---|
3517 | enableval=$enable_relocatable; coin_enable_relocatable=$enableval |
---|
3518 | else |
---|
3519 | coin_enable_relocatable=no |
---|
3520 | fi |
---|
3521 | |
---|
3522 | if test $coin_enable_relocatable = yes; then |
---|
3523 | COIN_RELOCATABLE_TRUE= |
---|
3524 | COIN_RELOCATABLE_FALSE='#' |
---|
3525 | else |
---|
3526 | COIN_RELOCATABLE_TRUE='#' |
---|
3527 | COIN_RELOCATABLE_FALSE= |
---|
3528 | fi |
---|
3529 | |
---|
3530 | |
---|
3531 | |
---|
3532 | ############################################################################# |
---|
3533 | # Standard build tool stuff # |
---|
3534 | ############################################################################# |
---|
3535 | |
---|
3536 | # Get the name of the C++ compiler and appropriate compiler options. |
---|
3537 | |
---|
3538 | DEPDIR="${am__leading_dot}deps" |
---|
3539 | |
---|
3540 | ac_config_commands="$ac_config_commands depfiles" |
---|
3541 | |
---|
3542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 |
---|
3543 | $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } |
---|
3544 | cat > confinc.mk << 'END' |
---|
3545 | am__doit: |
---|
3546 | @echo this is the am__doit target >confinc.out |
---|
3547 | .PHONY: am__doit |
---|
3548 | END |
---|
3549 | am__include="#" |
---|
3550 | am__quote= |
---|
3551 | # BSD make does it like this. |
---|
3552 | echo '.include "confinc.mk" # ignored' > confmf.BSD |
---|
3553 | # Other make implementations (GNU, Solaris 10, AIX) do it like this. |
---|
3554 | echo 'include confinc.mk # ignored' > confmf.GNU |
---|
3555 | _am_result=no |
---|
3556 | for s in GNU BSD; do |
---|
3557 | { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 |
---|
3558 | (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 |
---|
3559 | ac_status=$? |
---|
3560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3561 | (exit $ac_status); } |
---|
3562 | case $?:`cat confinc.out 2>/dev/null` in #( |
---|
3563 | '0:this is the am__doit target') : |
---|
3564 | case $s in #( |
---|
3565 | BSD) : |
---|
3566 | am__include='.include' am__quote='"' ;; #( |
---|
3567 | *) : |
---|
3568 | am__include='include' am__quote='' ;; |
---|
3569 | esac ;; #( |
---|
3570 | *) : |
---|
3571 | ;; |
---|
3572 | esac |
---|
3573 | if test "$am__include" != "#"; then |
---|
3574 | _am_result="yes ($s style)" |
---|
3575 | break |
---|
3576 | fi |
---|
3577 | done |
---|
3578 | rm -f confinc.* confmf.* |
---|
3579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 |
---|
3580 | $as_echo "${_am_result}" >&6; } |
---|
3581 | |
---|
3582 | # Check whether --enable-dependency-tracking was given. |
---|
3583 | if test "${enable_dependency_tracking+set}" = set; then : |
---|
3584 | enableval=$enable_dependency_tracking; |
---|
3585 | fi |
---|
3586 | |
---|
3587 | if test "x$enable_dependency_tracking" != xno; then |
---|
3588 | am_depcomp="$ac_aux_dir/depcomp" |
---|
3589 | AMDEPBACKSLASH='\' |
---|
3590 | am__nodep='_no' |
---|
3591 | fi |
---|
3592 | if test "x$enable_dependency_tracking" != xno; then |
---|
3593 | AMDEP_TRUE= |
---|
3594 | AMDEP_FALSE='#' |
---|
3595 | else |
---|
3596 | AMDEP_TRUE='#' |
---|
3597 | AMDEP_FALSE= |
---|
3598 | fi |
---|
3599 | |
---|
3600 | |
---|
3601 | |
---|
3602 | |
---|
3603 | |
---|
3604 | # Setting up libtool with LT_INIT will AC_REQUIRE AC_PROG_CC, but we want |
---|
3605 | # to invoke it from this macro first so that we can supply a parameter. |
---|
3606 | |
---|
3607 | |
---|
3608 | # If enable-msvc, then test for Intel (on Windows) and MS C compiler |
---|
3609 | # explicitly and add the compile wrapper before AC_PROG_CC. The compile |
---|
3610 | # wrapper works around issues related to finding MS link.exe. (Unix link.exe |
---|
3611 | # occurs first in PATH, which causes compile and link checks to fail.) For |
---|
3612 | # the same reason, set LD to use the compile wrapper. If CC remains unset |
---|
3613 | # (neither icl or cl was found, and CC was not set by the user), stop with |
---|
3614 | # an error. |
---|
3615 | |
---|
3616 | if test $enable_msvc = yes ; then |
---|
3617 | for ac_prog in icl cl |
---|
3618 | do |
---|
3619 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3620 | set dummy $ac_prog; ac_word=$2 |
---|
3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3622 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3623 | if ${ac_cv_prog_CC+:} false; then : |
---|
3624 | $as_echo_n "(cached) " >&6 |
---|
3625 | else |
---|
3626 | if test -n "$CC"; then |
---|
3627 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3628 | else |
---|
3629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3630 | for as_dir in $PATH |
---|
3631 | do |
---|
3632 | IFS=$as_save_IFS |
---|
3633 | test -z "$as_dir" && as_dir=. |
---|
3634 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3635 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3636 | ac_cv_prog_CC="$ac_prog" |
---|
3637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3638 | break 2 |
---|
3639 | fi |
---|
3640 | done |
---|
3641 | done |
---|
3642 | IFS=$as_save_IFS |
---|
3643 | |
---|
3644 | fi |
---|
3645 | fi |
---|
3646 | CC=$ac_cv_prog_CC |
---|
3647 | if test -n "$CC"; then |
---|
3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3649 | $as_echo "$CC" >&6; } |
---|
3650 | else |
---|
3651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3652 | $as_echo "no" >&6; } |
---|
3653 | fi |
---|
3654 | |
---|
3655 | |
---|
3656 | test -n "$CC" && break |
---|
3657 | done |
---|
3658 | |
---|
3659 | if test -n "$CC" ; then |
---|
3660 | CC="$am_aux_dir/compile $CC" |
---|
3661 | ac_cv_prog_CC="$CC" |
---|
3662 | LD="$CC" |
---|
3663 | else |
---|
3664 | as_fn_error $? "Neither MS nor Intel C compiler found in PATH and CC is unset." "$LINENO" 5 |
---|
3665 | fi |
---|
3666 | fi |
---|
3667 | |
---|
3668 | # Look for some C compiler and check that it works. If the user has set CC |
---|
3669 | # or we found icl/cl above, this shouldn't overwrite CC. Unlike the macros |
---|
3670 | # that establish C++ or Fortran compilers, PROG_CC also takes care of adding |
---|
3671 | # the compile wrapper if needed. |
---|
3672 | |
---|
3673 | ac_ext=c |
---|
3674 | ac_cpp='$CPP $CPPFLAGS' |
---|
3675 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3676 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3677 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3678 | if test -n "$ac_tool_prefix"; then |
---|
3679 | for ac_prog in gcc clang cc icc icl cl cc xlc xlc_r pgcc |
---|
3680 | do |
---|
3681 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3682 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3684 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3685 | if ${ac_cv_prog_CC+:} false; then : |
---|
3686 | $as_echo_n "(cached) " >&6 |
---|
3687 | else |
---|
3688 | if test -n "$CC"; then |
---|
3689 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3690 | else |
---|
3691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3692 | for as_dir in $PATH |
---|
3693 | do |
---|
3694 | IFS=$as_save_IFS |
---|
3695 | test -z "$as_dir" && as_dir=. |
---|
3696 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3697 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3698 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
3699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3700 | break 2 |
---|
3701 | fi |
---|
3702 | done |
---|
3703 | done |
---|
3704 | IFS=$as_save_IFS |
---|
3705 | |
---|
3706 | fi |
---|
3707 | fi |
---|
3708 | CC=$ac_cv_prog_CC |
---|
3709 | if test -n "$CC"; then |
---|
3710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3711 | $as_echo "$CC" >&6; } |
---|
3712 | else |
---|
3713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3714 | $as_echo "no" >&6; } |
---|
3715 | fi |
---|
3716 | |
---|
3717 | |
---|
3718 | test -n "$CC" && break |
---|
3719 | done |
---|
3720 | fi |
---|
3721 | if test -z "$CC"; then |
---|
3722 | ac_ct_CC=$CC |
---|
3723 | for ac_prog in gcc clang cc icc icl cl cc xlc xlc_r pgcc |
---|
3724 | do |
---|
3725 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3726 | set dummy $ac_prog; ac_word=$2 |
---|
3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3728 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3729 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
3730 | $as_echo_n "(cached) " >&6 |
---|
3731 | else |
---|
3732 | if test -n "$ac_ct_CC"; then |
---|
3733 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3734 | else |
---|
3735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3736 | for as_dir in $PATH |
---|
3737 | do |
---|
3738 | IFS=$as_save_IFS |
---|
3739 | test -z "$as_dir" && as_dir=. |
---|
3740 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3741 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3742 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
3743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3744 | break 2 |
---|
3745 | fi |
---|
3746 | done |
---|
3747 | done |
---|
3748 | IFS=$as_save_IFS |
---|
3749 | |
---|
3750 | fi |
---|
3751 | fi |
---|
3752 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
3753 | if test -n "$ac_ct_CC"; then |
---|
3754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
3755 | $as_echo "$ac_ct_CC" >&6; } |
---|
3756 | else |
---|
3757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3758 | $as_echo "no" >&6; } |
---|
3759 | fi |
---|
3760 | |
---|
3761 | |
---|
3762 | test -n "$ac_ct_CC" && break |
---|
3763 | done |
---|
3764 | |
---|
3765 | if test "x$ac_ct_CC" = x; then |
---|
3766 | CC="" |
---|
3767 | else |
---|
3768 | case $cross_compiling:$ac_tool_warned in |
---|
3769 | yes:) |
---|
3770 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3771 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3772 | ac_tool_warned=yes ;; |
---|
3773 | esac |
---|
3774 | CC=$ac_ct_CC |
---|
3775 | fi |
---|
3776 | fi |
---|
3777 | |
---|
3778 | |
---|
3779 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3780 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3781 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
3782 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3783 | |
---|
3784 | # Provide some information about the compiler. |
---|
3785 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
3786 | set X $ac_compile |
---|
3787 | ac_compiler=$2 |
---|
3788 | for ac_option in --version -v -V -qversion; do |
---|
3789 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3790 | case "(($ac_try" in |
---|
3791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3792 | *) ac_try_echo=$ac_try;; |
---|
3793 | esac |
---|
3794 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3795 | $as_echo "$ac_try_echo"; } >&5 |
---|
3796 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3797 | ac_status=$? |
---|
3798 | if test -s conftest.err; then |
---|
3799 | sed '10a\ |
---|
3800 | ... rest of stderr output deleted ... |
---|
3801 | 10q' conftest.err >conftest.er1 |
---|
3802 | cat conftest.er1 >&5 |
---|
3803 | fi |
---|
3804 | rm -f conftest.er1 conftest.err |
---|
3805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3806 | test $ac_status = 0; } |
---|
3807 | done |
---|
3808 | |
---|
3809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3810 | /* end confdefs.h. */ |
---|
3811 | |
---|
3812 | int |
---|
3813 | main () |
---|
3814 | { |
---|
3815 | |
---|
3816 | ; |
---|
3817 | return 0; |
---|
3818 | } |
---|
3819 | _ACEOF |
---|
3820 | ac_clean_files_save=$ac_clean_files |
---|
3821 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
3822 | # Try to create an executable without -o first, disregard a.out. |
---|
3823 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3824 | # of exeext. |
---|
3825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
---|
3826 | $as_echo_n "checking whether the C compiler works... " >&6; } |
---|
3827 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3828 | |
---|
3829 | # The possible output files: |
---|
3830 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
3831 | |
---|
3832 | ac_rmfiles= |
---|
3833 | for ac_file in $ac_files |
---|
3834 | do |
---|
3835 | case $ac_file in |
---|
3836 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3837 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3838 | esac |
---|
3839 | done |
---|
3840 | rm -f $ac_rmfiles |
---|
3841 | |
---|
3842 | if { { ac_try="$ac_link_default" |
---|
3843 | case "(($ac_try" in |
---|
3844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3845 | *) ac_try_echo=$ac_try;; |
---|
3846 | esac |
---|
3847 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3848 | $as_echo "$ac_try_echo"; } >&5 |
---|
3849 | (eval "$ac_link_default") 2>&5 |
---|
3850 | ac_status=$? |
---|
3851 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3852 | test $ac_status = 0; }; then : |
---|
3853 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3854 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3855 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3856 | # so that the user can short-circuit this test for compilers unknown to |
---|
3857 | # Autoconf. |
---|
3858 | for ac_file in $ac_files '' |
---|
3859 | do |
---|
3860 | test -f "$ac_file" || continue |
---|
3861 | case $ac_file in |
---|
3862 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
3863 | ;; |
---|
3864 | [ab].out ) |
---|
3865 | # We found the default executable, but exeext='' is most |
---|
3866 | # certainly right. |
---|
3867 | break;; |
---|
3868 | *.* ) |
---|
3869 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3870 | then :; else |
---|
3871 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3872 | fi |
---|
3873 | # We set ac_cv_exeext here because the later test for it is not |
---|
3874 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3875 | # argument, so we may need to know it at that point already. |
---|
3876 | # Even if this section looks crufty: it has the advantage of |
---|
3877 | # actually working. |
---|
3878 | break;; |
---|
3879 | * ) |
---|
3880 | break;; |
---|
3881 | esac |
---|
3882 | done |
---|
3883 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3884 | |
---|
3885 | else |
---|
3886 | ac_file='' |
---|
3887 | fi |
---|
3888 | if test -z "$ac_file"; then : |
---|
3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3890 | $as_echo "no" >&6; } |
---|
3891 | $as_echo "$as_me: failed program was:" >&5 |
---|
3892 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3893 | |
---|
3894 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3895 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3896 | as_fn_error 77 "C compiler cannot create executables |
---|
3897 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3898 | else |
---|
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3900 | $as_echo "yes" >&6; } |
---|
3901 | fi |
---|
3902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
---|
3903 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
---|
3904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
3905 | $as_echo "$ac_file" >&6; } |
---|
3906 | ac_exeext=$ac_cv_exeext |
---|
3907 | |
---|
3908 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
3909 | ac_clean_files=$ac_clean_files_save |
---|
3910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
3911 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
3912 | if { { ac_try="$ac_link" |
---|
3913 | case "(($ac_try" in |
---|
3914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3915 | *) ac_try_echo=$ac_try;; |
---|
3916 | esac |
---|
3917 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3918 | $as_echo "$ac_try_echo"; } >&5 |
---|
3919 | (eval "$ac_link") 2>&5 |
---|
3920 | ac_status=$? |
---|
3921 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3922 | test $ac_status = 0; }; then : |
---|
3923 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3924 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3925 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3926 | # `rm'. |
---|
3927 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3928 | test -f "$ac_file" || continue |
---|
3929 | case $ac_file in |
---|
3930 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3931 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3932 | break;; |
---|
3933 | * ) break;; |
---|
3934 | esac |
---|
3935 | done |
---|
3936 | else |
---|
3937 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3938 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3939 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
3940 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3941 | fi |
---|
3942 | rm -f conftest conftest$ac_cv_exeext |
---|
3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
3944 | $as_echo "$ac_cv_exeext" >&6; } |
---|
3945 | |
---|
3946 | rm -f conftest.$ac_ext |
---|
3947 | EXEEXT=$ac_cv_exeext |
---|
3948 | ac_exeext=$EXEEXT |
---|
3949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3950 | /* end confdefs.h. */ |
---|
3951 | #include <stdio.h> |
---|
3952 | int |
---|
3953 | main () |
---|
3954 | { |
---|
3955 | FILE *f = fopen ("conftest.out", "w"); |
---|
3956 | return ferror (f) || fclose (f) != 0; |
---|
3957 | |
---|
3958 | ; |
---|
3959 | return 0; |
---|
3960 | } |
---|
3961 | _ACEOF |
---|
3962 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3963 | # Check that the compiler produces executables we can run. If not, either |
---|
3964 | # the compiler is broken, or we cross compile. |
---|
3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3966 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
3967 | if test "$cross_compiling" != yes; then |
---|
3968 | { { ac_try="$ac_link" |
---|
3969 | case "(($ac_try" in |
---|
3970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3971 | *) ac_try_echo=$ac_try;; |
---|
3972 | esac |
---|
3973 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3974 | $as_echo "$ac_try_echo"; } >&5 |
---|
3975 | (eval "$ac_link") 2>&5 |
---|
3976 | ac_status=$? |
---|
3977 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3978 | test $ac_status = 0; } |
---|
3979 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3980 | { { case "(($ac_try" in |
---|
3981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3982 | *) ac_try_echo=$ac_try;; |
---|
3983 | esac |
---|
3984 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3985 | $as_echo "$ac_try_echo"; } >&5 |
---|
3986 | (eval "$ac_try") 2>&5 |
---|
3987 | ac_status=$? |
---|
3988 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3989 | test $ac_status = 0; }; }; then |
---|
3990 | cross_compiling=no |
---|
3991 | else |
---|
3992 | if test "$cross_compiling" = maybe; then |
---|
3993 | cross_compiling=yes |
---|
3994 | else |
---|
3995 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3996 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3997 | as_fn_error $? "cannot run C compiled programs. |
---|
3998 | If you meant to cross compile, use \`--host'. |
---|
3999 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4000 | fi |
---|
4001 | fi |
---|
4002 | fi |
---|
4003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
4004 | $as_echo "$cross_compiling" >&6; } |
---|
4005 | |
---|
4006 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
4007 | ac_clean_files=$ac_clean_files_save |
---|
4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
4009 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
4010 | if ${ac_cv_objext+:} false; then : |
---|
4011 | $as_echo_n "(cached) " >&6 |
---|
4012 | else |
---|
4013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4014 | /* end confdefs.h. */ |
---|
4015 | |
---|
4016 | int |
---|
4017 | main () |
---|
4018 | { |
---|
4019 | |
---|
4020 | ; |
---|
4021 | return 0; |
---|
4022 | } |
---|
4023 | _ACEOF |
---|
4024 | rm -f conftest.o conftest.obj |
---|
4025 | if { { ac_try="$ac_compile" |
---|
4026 | case "(($ac_try" in |
---|
4027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4028 | *) ac_try_echo=$ac_try;; |
---|
4029 | esac |
---|
4030 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4031 | $as_echo "$ac_try_echo"; } >&5 |
---|
4032 | (eval "$ac_compile") 2>&5 |
---|
4033 | ac_status=$? |
---|
4034 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4035 | test $ac_status = 0; }; then : |
---|
4036 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
4037 | test -f "$ac_file" || continue; |
---|
4038 | case $ac_file in |
---|
4039 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
4040 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
4041 | break;; |
---|
4042 | esac |
---|
4043 | done |
---|
4044 | else |
---|
4045 | $as_echo "$as_me: failed program was:" >&5 |
---|
4046 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4047 | |
---|
4048 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4049 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4050 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
4051 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4052 | fi |
---|
4053 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
4054 | fi |
---|
4055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
4056 | $as_echo "$ac_cv_objext" >&6; } |
---|
4057 | OBJEXT=$ac_cv_objext |
---|
4058 | ac_objext=$OBJEXT |
---|
4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
4060 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
4061 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
4062 | $as_echo_n "(cached) " >&6 |
---|
4063 | else |
---|
4064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4065 | /* end confdefs.h. */ |
---|
4066 | |
---|
4067 | int |
---|
4068 | main () |
---|
4069 | { |
---|
4070 | #ifndef __GNUC__ |
---|
4071 | choke me |
---|
4072 | #endif |
---|
4073 | |
---|
4074 | ; |
---|
4075 | return 0; |
---|
4076 | } |
---|
4077 | _ACEOF |
---|
4078 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4079 | ac_compiler_gnu=yes |
---|
4080 | else |
---|
4081 | ac_compiler_gnu=no |
---|
4082 | fi |
---|
4083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4084 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
4085 | |
---|
4086 | fi |
---|
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
4088 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
4089 | if test $ac_compiler_gnu = yes; then |
---|
4090 | GCC=yes |
---|
4091 | else |
---|
4092 | GCC= |
---|
4093 | fi |
---|
4094 | ac_test_CFLAGS=${CFLAGS+set} |
---|
4095 | ac_save_CFLAGS=$CFLAGS |
---|
4096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
4097 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
4098 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
4099 | $as_echo_n "(cached) " >&6 |
---|
4100 | else |
---|
4101 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
4102 | ac_c_werror_flag=yes |
---|
4103 | ac_cv_prog_cc_g=no |
---|
4104 | CFLAGS="-g" |
---|
4105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4106 | /* end confdefs.h. */ |
---|
4107 | |
---|
4108 | int |
---|
4109 | main () |
---|
4110 | { |
---|
4111 | |
---|
4112 | ; |
---|
4113 | return 0; |
---|
4114 | } |
---|
4115 | _ACEOF |
---|
4116 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4117 | ac_cv_prog_cc_g=yes |
---|
4118 | else |
---|
4119 | CFLAGS="" |
---|
4120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4121 | /* end confdefs.h. */ |
---|
4122 | |
---|
4123 | int |
---|
4124 | main () |
---|
4125 | { |
---|
4126 | |
---|
4127 | ; |
---|
4128 | return 0; |
---|
4129 | } |
---|
4130 | _ACEOF |
---|
4131 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4132 | |
---|
4133 | else |
---|
4134 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4135 | CFLAGS="-g" |
---|
4136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4137 | /* end confdefs.h. */ |
---|
4138 | |
---|
4139 | int |
---|
4140 | main () |
---|
4141 | { |
---|
4142 | |
---|
4143 | ; |
---|
4144 | return 0; |
---|
4145 | } |
---|
4146 | _ACEOF |
---|
4147 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4148 | ac_cv_prog_cc_g=yes |
---|
4149 | fi |
---|
4150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4151 | fi |
---|
4152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4153 | fi |
---|
4154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4155 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4156 | fi |
---|
4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
4158 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
4159 | if test "$ac_test_CFLAGS" = set; then |
---|
4160 | CFLAGS=$ac_save_CFLAGS |
---|
4161 | elif test $ac_cv_prog_cc_g = yes; then |
---|
4162 | if test "$GCC" = yes; then |
---|
4163 | CFLAGS="-g -O2" |
---|
4164 | else |
---|
4165 | CFLAGS="-g" |
---|
4166 | fi |
---|
4167 | else |
---|
4168 | if test "$GCC" = yes; then |
---|
4169 | CFLAGS="-O2" |
---|
4170 | else |
---|
4171 | CFLAGS= |
---|
4172 | fi |
---|
4173 | fi |
---|
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
4175 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
4176 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
4177 | $as_echo_n "(cached) " >&6 |
---|
4178 | else |
---|
4179 | ac_cv_prog_cc_c89=no |
---|
4180 | ac_save_CC=$CC |
---|
4181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4182 | /* end confdefs.h. */ |
---|
4183 | #include <stdarg.h> |
---|
4184 | #include <stdio.h> |
---|
4185 | struct stat; |
---|
4186 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
4187 | struct buf { int x; }; |
---|
4188 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
4189 | static char *e (p, i) |
---|
4190 | char **p; |
---|
4191 | int i; |
---|
4192 | { |
---|
4193 | return p[i]; |
---|
4194 | } |
---|
4195 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
4196 | { |
---|
4197 | char *s; |
---|
4198 | va_list v; |
---|
4199 | va_start (v,p); |
---|
4200 | s = g (p, va_arg (v,int)); |
---|
4201 | va_end (v); |
---|
4202 | return s; |
---|
4203 | } |
---|
4204 | |
---|
4205 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
4206 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
4207 | These don't provoke an error unfortunately, instead are silently treated |
---|
4208 | as 'x'. The following induces an error, until -std is added to get |
---|
4209 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
4210 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
4211 | that's true only with -std. */ |
---|
4212 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
4213 | |
---|
4214 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
4215 | inside strings and character constants. */ |
---|
4216 | #define FOO(x) 'x' |
---|
4217 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
4218 | |
---|
4219 | int test (int i, double x); |
---|
4220 | struct s1 {int (*f) (int a);}; |
---|
4221 | struct s2 {int (*f) (double a);}; |
---|
4222 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
4223 | int argc; |
---|
4224 | char **argv; |
---|
4225 | int |
---|
4226 | main () |
---|
4227 | { |
---|
4228 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
4229 | ; |
---|
4230 | return 0; |
---|
4231 | } |
---|
4232 | _ACEOF |
---|
4233 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
4234 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
4235 | do |
---|
4236 | CC="$ac_save_CC $ac_arg" |
---|
4237 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4238 | ac_cv_prog_cc_c89=$ac_arg |
---|
4239 | fi |
---|
4240 | rm -f core conftest.err conftest.$ac_objext |
---|
4241 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
4242 | done |
---|
4243 | rm -f conftest.$ac_ext |
---|
4244 | CC=$ac_save_CC |
---|
4245 | |
---|
4246 | fi |
---|
4247 | # AC_CACHE_VAL |
---|
4248 | case "x$ac_cv_prog_cc_c89" in |
---|
4249 | x) |
---|
4250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
4251 | $as_echo "none needed" >&6; } ;; |
---|
4252 | xno) |
---|
4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
4254 | $as_echo "unsupported" >&6; } ;; |
---|
4255 | *) |
---|
4256 | CC="$CC $ac_cv_prog_cc_c89" |
---|
4257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
4258 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
4259 | esac |
---|
4260 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
4261 | |
---|
4262 | fi |
---|
4263 | |
---|
4264 | ac_ext=c |
---|
4265 | ac_cpp='$CPP $CPPFLAGS' |
---|
4266 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4267 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4268 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4269 | |
---|
4270 | ac_ext=c |
---|
4271 | ac_cpp='$CPP $CPPFLAGS' |
---|
4272 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4273 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4274 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
---|
4276 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
---|
4277 | if ${am_cv_prog_cc_c_o+:} false; then : |
---|
4278 | $as_echo_n "(cached) " >&6 |
---|
4279 | else |
---|
4280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4281 | /* end confdefs.h. */ |
---|
4282 | |
---|
4283 | int |
---|
4284 | main () |
---|
4285 | { |
---|
4286 | |
---|
4287 | ; |
---|
4288 | return 0; |
---|
4289 | } |
---|
4290 | _ACEOF |
---|
4291 | # Make sure it works both with $CC and with simple cc. |
---|
4292 | # Following AC_PROG_CC_C_O, we do the test twice because some |
---|
4293 | # compilers refuse to overwrite an existing .o file with -o, |
---|
4294 | # though they will create one. |
---|
4295 | am_cv_prog_cc_c_o=yes |
---|
4296 | for am_i in 1 2; do |
---|
4297 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
---|
4298 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
---|
4299 | ac_status=$? |
---|
4300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4301 | (exit $ac_status); } \ |
---|
4302 | && test -f conftest2.$ac_objext; then |
---|
4303 | : OK |
---|
4304 | else |
---|
4305 | am_cv_prog_cc_c_o=no |
---|
4306 | break |
---|
4307 | fi |
---|
4308 | done |
---|
4309 | rm -f core conftest* |
---|
4310 | unset am_i |
---|
4311 | fi |
---|
4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
---|
4313 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
---|
4314 | if test "$am_cv_prog_cc_c_o" != yes; then |
---|
4315 | # Losing compiler, so override with the script. |
---|
4316 | # FIXME: It is wrong to rewrite CC. |
---|
4317 | # But if we don't then we get into trouble of one sort or another. |
---|
4318 | # A longer-term fix would be to have automake use am__CC in this case, |
---|
4319 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
---|
4320 | CC="$am_aux_dir/compile $CC" |
---|
4321 | fi |
---|
4322 | ac_ext=c |
---|
4323 | ac_cpp='$CPP $CPPFLAGS' |
---|
4324 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4325 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4326 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4327 | |
---|
4328 | |
---|
4329 | depcc="$CC" am_compiler_list= |
---|
4330 | |
---|
4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4332 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4333 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
---|
4334 | $as_echo_n "(cached) " >&6 |
---|
4335 | else |
---|
4336 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4337 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4338 | # making bogus files that we don't know about and never remove. For |
---|
4339 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4340 | # making a dummy file named 'D' -- because '-MD' means "put the output |
---|
4341 | # in D". |
---|
4342 | rm -rf conftest.dir |
---|
4343 | mkdir conftest.dir |
---|
4344 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4345 | # using a relative directory. |
---|
4346 | cp "$am_depcomp" conftest.dir |
---|
4347 | cd conftest.dir |
---|
4348 | # We will build objects and dependencies in a subdirectory because |
---|
4349 | # it helps to detect inapplicable dependency modes. For instance |
---|
4350 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4351 | # side effect of compilation, but ICC will put the dependencies in |
---|
4352 | # the current directory while Tru64 will put them in the object |
---|
4353 | # directory. |
---|
4354 | mkdir sub |
---|
4355 | |
---|
4356 | am_cv_CC_dependencies_compiler_type=none |
---|
4357 | if test "$am_compiler_list" = ""; then |
---|
4358 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4359 | fi |
---|
4360 | am__universal=false |
---|
4361 | case " $depcc " in #( |
---|
4362 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
4363 | esac |
---|
4364 | |
---|
4365 | for depmode in $am_compiler_list; do |
---|
4366 | # Setup a source with many dependencies, because some compilers |
---|
4367 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4368 | # we should not choose a depcomp mode which is confused by this. |
---|
4369 | # |
---|
4370 | # We need to recreate these files for each test, as the compiler may |
---|
4371 | # overwrite some of them when testing with obscure command lines. |
---|
4372 | # This happens at least with the AIX C compiler. |
---|
4373 | : > sub/conftest.c |
---|
4374 | for i in 1 2 3 4 5 6; do |
---|
4375 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4376 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
---|
4377 | # Solaris 10 /bin/sh. |
---|
4378 | echo '/* dummy */' > sub/conftst$i.h |
---|
4379 | done |
---|
4380 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4381 | |
---|
4382 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
---|
4383 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4384 | # handle '-M -o', and we need to detect this. Also, some Intel |
---|
4385 | # versions had trouble with output in subdirs. |
---|
4386 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4387 | am__minus_obj="-o $am__obj" |
---|
4388 | case $depmode in |
---|
4389 | gcc) |
---|
4390 | # This depmode causes a compiler race in universal mode. |
---|
4391 | test "$am__universal" = false || continue |
---|
4392 | ;; |
---|
4393 | nosideeffect) |
---|
4394 | # After this tag, mechanisms are not by side-effect, so they'll |
---|
4395 | # only be used when explicitly requested. |
---|
4396 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4397 | continue |
---|
4398 | else |
---|
4399 | break |
---|
4400 | fi |
---|
4401 | ;; |
---|
4402 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4403 | # This compiler won't grok '-c -o', but also, the minuso test has |
---|
4404 | # not run yet. These depmodes are late enough in the game, and |
---|
4405 | # so weak that their functioning should not be impacted. |
---|
4406 | am__obj=conftest.${OBJEXT-o} |
---|
4407 | am__minus_obj= |
---|
4408 | ;; |
---|
4409 | none) break ;; |
---|
4410 | esac |
---|
4411 | if depmode=$depmode \ |
---|
4412 | source=sub/conftest.c object=$am__obj \ |
---|
4413 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4414 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4415 | >/dev/null 2>conftest.err && |
---|
4416 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4417 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4418 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4419 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4420 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4421 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4422 | # that says an option was ignored or not supported. |
---|
4423 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4424 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4425 | # The diagnosis changed in icc 8.0: |
---|
4426 | # icc: Command line remark: option '-MP' not supported |
---|
4427 | if (grep 'ignoring option' conftest.err || |
---|
4428 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4429 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
4430 | break |
---|
4431 | fi |
---|
4432 | fi |
---|
4433 | done |
---|
4434 | |
---|
4435 | cd .. |
---|
4436 | rm -rf conftest.dir |
---|
4437 | else |
---|
4438 | am_cv_CC_dependencies_compiler_type=none |
---|
4439 | fi |
---|
4440 | |
---|
4441 | fi |
---|
4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
4443 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
---|
4444 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
4445 | |
---|
4446 | if |
---|
4447 | test "x$enable_dependency_tracking" != xno \ |
---|
4448 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
4449 | am__fastdepCC_TRUE= |
---|
4450 | am__fastdepCC_FALSE='#' |
---|
4451 | else |
---|
4452 | am__fastdepCC_TRUE='#' |
---|
4453 | am__fastdepCC_FALSE= |
---|
4454 | fi |
---|
4455 | |
---|
4456 | |
---|
4457 | |
---|
4458 | # Declare precious variable for additional compiler flags |
---|
4459 | |
---|
4460 | |
---|
4461 | |
---|
4462 | |
---|
4463 | |
---|
4464 | |
---|
4465 | # If enable-msvc, then test for Intel (on Windows) and MS C compiler |
---|
4466 | # explicitly and add the compile wrapper before AC_PROG_CXX. The compile |
---|
4467 | # wrapper works around issues related to finding MS link.exe. (Unix link.exe |
---|
4468 | # occurs first in PATH, which causes compile and link checks to fail.) For |
---|
4469 | # the same reason, set LD to use the compile wrapper. If CC remains unset |
---|
4470 | # (neither icl or cl was found, and CC was not set by the user), stop with |
---|
4471 | # an error. |
---|
4472 | |
---|
4473 | if test $enable_msvc = yes ; then |
---|
4474 | for ac_prog in icl cl |
---|
4475 | do |
---|
4476 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4477 | set dummy $ac_prog; ac_word=$2 |
---|
4478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4479 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4480 | if ${ac_cv_prog_CXX+:} false; then : |
---|
4481 | $as_echo_n "(cached) " >&6 |
---|
4482 | else |
---|
4483 | if test -n "$CXX"; then |
---|
4484 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
4485 | else |
---|
4486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4487 | for as_dir in $PATH |
---|
4488 | do |
---|
4489 | IFS=$as_save_IFS |
---|
4490 | test -z "$as_dir" && as_dir=. |
---|
4491 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4492 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4493 | ac_cv_prog_CXX="$ac_prog" |
---|
4494 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4495 | break 2 |
---|
4496 | fi |
---|
4497 | done |
---|
4498 | done |
---|
4499 | IFS=$as_save_IFS |
---|
4500 | |
---|
4501 | fi |
---|
4502 | fi |
---|
4503 | CXX=$ac_cv_prog_CXX |
---|
4504 | if test -n "$CXX"; then |
---|
4505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
4506 | $as_echo "$CXX" >&6; } |
---|
4507 | else |
---|
4508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4509 | $as_echo "no" >&6; } |
---|
4510 | fi |
---|
4511 | |
---|
4512 | |
---|
4513 | test -n "$CXX" && break |
---|
4514 | done |
---|
4515 | |
---|
4516 | if test -n "$CXX" ; then |
---|
4517 | CXX="$am_aux_dir/compile $CXX" |
---|
4518 | ac_cv_prog_CXX="$CXX" |
---|
4519 | LD="$CXX" |
---|
4520 | else |
---|
4521 | as_fn_error $? "Neither MS nor Intel C++ compiler found in PATH and CXX is unset." "$LINENO" 5 |
---|
4522 | fi |
---|
4523 | fi |
---|
4524 | |
---|
4525 | # Look for some C++ compiler and check that it works. If the user has set |
---|
4526 | # CXX or we found icl/cl above, this shouldn't overwrite CXX. |
---|
4527 | |
---|
4528 | ac_ext=cpp |
---|
4529 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4530 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4531 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4532 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
4533 | if test -z "$CXX"; then |
---|
4534 | if test -n "$CCC"; then |
---|
4535 | CXX=$CCC |
---|
4536 | else |
---|
4537 | if test -n "$ac_tool_prefix"; then |
---|
4538 | for ac_prog in g++ clang++ c++ pgCC icpc gpp cxx cc++ icl cl FCC KCC RCC xlC_r aCC CC |
---|
4539 | do |
---|
4540 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
4541 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4543 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4544 | if ${ac_cv_prog_CXX+:} false; then : |
---|
4545 | $as_echo_n "(cached) " >&6 |
---|
4546 | else |
---|
4547 | if test -n "$CXX"; then |
---|
4548 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
4549 | else |
---|
4550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4551 | for as_dir in $PATH |
---|
4552 | do |
---|
4553 | IFS=$as_save_IFS |
---|
4554 | test -z "$as_dir" && as_dir=. |
---|
4555 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4556 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4557 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
4558 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4559 | break 2 |
---|
4560 | fi |
---|
4561 | done |
---|
4562 | done |
---|
4563 | IFS=$as_save_IFS |
---|
4564 | |
---|
4565 | fi |
---|
4566 | fi |
---|
4567 | CXX=$ac_cv_prog_CXX |
---|
4568 | if test -n "$CXX"; then |
---|
4569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
4570 | $as_echo "$CXX" >&6; } |
---|
4571 | else |
---|
4572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4573 | $as_echo "no" >&6; } |
---|
4574 | fi |
---|
4575 | |
---|
4576 | |
---|
4577 | test -n "$CXX" && break |
---|
4578 | done |
---|
4579 | fi |
---|
4580 | if test -z "$CXX"; then |
---|
4581 | ac_ct_CXX=$CXX |
---|
4582 | for ac_prog in g++ clang++ c++ pgCC icpc gpp cxx cc++ icl cl FCC KCC RCC xlC_r aCC CC |
---|
4583 | do |
---|
4584 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4585 | set dummy $ac_prog; ac_word=$2 |
---|
4586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4587 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4588 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
4589 | $as_echo_n "(cached) " >&6 |
---|
4590 | else |
---|
4591 | if test -n "$ac_ct_CXX"; then |
---|
4592 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
4593 | else |
---|
4594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4595 | for as_dir in $PATH |
---|
4596 | do |
---|
4597 | IFS=$as_save_IFS |
---|
4598 | test -z "$as_dir" && as_dir=. |
---|
4599 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4600 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4601 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
4602 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4603 | break 2 |
---|
4604 | fi |
---|
4605 | done |
---|
4606 | done |
---|
4607 | IFS=$as_save_IFS |
---|
4608 | |
---|
4609 | fi |
---|
4610 | fi |
---|
4611 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
4612 | if test -n "$ac_ct_CXX"; then |
---|
4613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
4614 | $as_echo "$ac_ct_CXX" >&6; } |
---|
4615 | else |
---|
4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4617 | $as_echo "no" >&6; } |
---|
4618 | fi |
---|
4619 | |
---|
4620 | |
---|
4621 | test -n "$ac_ct_CXX" && break |
---|
4622 | done |
---|
4623 | |
---|
4624 | if test "x$ac_ct_CXX" = x; then |
---|
4625 | CXX="g++" |
---|
4626 | else |
---|
4627 | case $cross_compiling:$ac_tool_warned in |
---|
4628 | yes:) |
---|
4629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4630 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4631 | ac_tool_warned=yes ;; |
---|
4632 | esac |
---|
4633 | CXX=$ac_ct_CXX |
---|
4634 | fi |
---|
4635 | fi |
---|
4636 | |
---|
4637 | fi |
---|
4638 | fi |
---|
4639 | # Provide some information about the compiler. |
---|
4640 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
4641 | set X $ac_compile |
---|
4642 | ac_compiler=$2 |
---|
4643 | for ac_option in --version -v -V -qversion; do |
---|
4644 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
4645 | case "(($ac_try" in |
---|
4646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4647 | *) ac_try_echo=$ac_try;; |
---|
4648 | esac |
---|
4649 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4650 | $as_echo "$ac_try_echo"; } >&5 |
---|
4651 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
4652 | ac_status=$? |
---|
4653 | if test -s conftest.err; then |
---|
4654 | sed '10a\ |
---|
4655 | ... rest of stderr output deleted ... |
---|
4656 | 10q' conftest.err >conftest.er1 |
---|
4657 | cat conftest.er1 >&5 |
---|
4658 | fi |
---|
4659 | rm -f conftest.er1 conftest.err |
---|
4660 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4661 | test $ac_status = 0; } |
---|
4662 | done |
---|
4663 | |
---|
4664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
4665 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
4666 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
4667 | $as_echo_n "(cached) " >&6 |
---|
4668 | else |
---|
4669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4670 | /* end confdefs.h. */ |
---|
4671 | |
---|
4672 | int |
---|
4673 | main () |
---|
4674 | { |
---|
4675 | #ifndef __GNUC__ |
---|
4676 | choke me |
---|
4677 | #endif |
---|
4678 | |
---|
4679 | ; |
---|
4680 | return 0; |
---|
4681 | } |
---|
4682 | _ACEOF |
---|
4683 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
4684 | ac_compiler_gnu=yes |
---|
4685 | else |
---|
4686 | ac_compiler_gnu=no |
---|
4687 | fi |
---|
4688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4689 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
4690 | |
---|
4691 | fi |
---|
4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
4693 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
4694 | if test $ac_compiler_gnu = yes; then |
---|
4695 | GXX=yes |
---|
4696 | else |
---|
4697 | GXX= |
---|
4698 | fi |
---|
4699 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
4700 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
4702 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
4703 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
4704 | $as_echo_n "(cached) " >&6 |
---|
4705 | else |
---|
4706 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
4707 | ac_cxx_werror_flag=yes |
---|
4708 | ac_cv_prog_cxx_g=no |
---|
4709 | CXXFLAGS="-g" |
---|
4710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4711 | /* end confdefs.h. */ |
---|
4712 | |
---|
4713 | int |
---|
4714 | main () |
---|
4715 | { |
---|
4716 | |
---|
4717 | ; |
---|
4718 | return 0; |
---|
4719 | } |
---|
4720 | _ACEOF |
---|
4721 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
4722 | ac_cv_prog_cxx_g=yes |
---|
4723 | else |
---|
4724 | CXXFLAGS="" |
---|
4725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4726 | /* end confdefs.h. */ |
---|
4727 | |
---|
4728 | int |
---|
4729 | main () |
---|
4730 | { |
---|
4731 | |
---|
4732 | ; |
---|
4733 | return 0; |
---|
4734 | } |
---|
4735 | _ACEOF |
---|
4736 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
4737 | |
---|
4738 | else |
---|
4739 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
4740 | CXXFLAGS="-g" |
---|
4741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4742 | /* end confdefs.h. */ |
---|
4743 | |
---|
4744 | int |
---|
4745 | main () |
---|
4746 | { |
---|
4747 | |
---|
4748 | ; |
---|
4749 | return 0; |
---|
4750 | } |
---|
4751 | _ACEOF |
---|
4752 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
4753 | ac_cv_prog_cxx_g=yes |
---|
4754 | fi |
---|
4755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4756 | fi |
---|
4757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4758 | fi |
---|
4759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4760 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
4761 | fi |
---|
4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
4763 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
4764 | if test "$ac_test_CXXFLAGS" = set; then |
---|
4765 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
4766 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
4767 | if test "$GXX" = yes; then |
---|
4768 | CXXFLAGS="-g -O2" |
---|
4769 | else |
---|
4770 | CXXFLAGS="-g" |
---|
4771 | fi |
---|
4772 | else |
---|
4773 | if test "$GXX" = yes; then |
---|
4774 | CXXFLAGS="-O2" |
---|
4775 | else |
---|
4776 | CXXFLAGS= |
---|
4777 | fi |
---|
4778 | fi |
---|
4779 | ac_ext=c |
---|
4780 | ac_cpp='$CPP $CPPFLAGS' |
---|
4781 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4782 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4783 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4784 | |
---|
4785 | depcc="$CXX" am_compiler_list= |
---|
4786 | |
---|
4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4788 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4789 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
---|
4790 | $as_echo_n "(cached) " >&6 |
---|
4791 | else |
---|
4792 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4793 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4794 | # making bogus files that we don't know about and never remove. For |
---|
4795 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4796 | # making a dummy file named 'D' -- because '-MD' means "put the output |
---|
4797 | # in D". |
---|
4798 | rm -rf conftest.dir |
---|
4799 | mkdir conftest.dir |
---|
4800 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4801 | # using a relative directory. |
---|
4802 | cp "$am_depcomp" conftest.dir |
---|
4803 | cd conftest.dir |
---|
4804 | # We will build objects and dependencies in a subdirectory because |
---|
4805 | # it helps to detect inapplicable dependency modes. For instance |
---|
4806 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4807 | # side effect of compilation, but ICC will put the dependencies in |
---|
4808 | # the current directory while Tru64 will put them in the object |
---|
4809 | # directory. |
---|
4810 | mkdir sub |
---|
4811 | |
---|
4812 | am_cv_CXX_dependencies_compiler_type=none |
---|
4813 | if test "$am_compiler_list" = ""; then |
---|
4814 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4815 | fi |
---|
4816 | am__universal=false |
---|
4817 | case " $depcc " in #( |
---|
4818 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
4819 | esac |
---|
4820 | |
---|
4821 | for depmode in $am_compiler_list; do |
---|
4822 | # Setup a source with many dependencies, because some compilers |
---|
4823 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4824 | # we should not choose a depcomp mode which is confused by this. |
---|
4825 | # |
---|
4826 | # We need to recreate these files for each test, as the compiler may |
---|
4827 | # overwrite some of them when testing with obscure command lines. |
---|
4828 | # This happens at least with the AIX C compiler. |
---|
4829 | : > sub/conftest.c |
---|
4830 | for i in 1 2 3 4 5 6; do |
---|
4831 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4832 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
---|
4833 | # Solaris 10 /bin/sh. |
---|
4834 | echo '/* dummy */' > sub/conftst$i.h |
---|
4835 | done |
---|
4836 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4837 | |
---|
4838 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
---|
4839 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4840 | # handle '-M -o', and we need to detect this. Also, some Intel |
---|
4841 | # versions had trouble with output in subdirs. |
---|
4842 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4843 | am__minus_obj="-o $am__obj" |
---|
4844 | case $depmode in |
---|
4845 | gcc) |
---|
4846 | # This depmode causes a compiler race in universal mode. |
---|
4847 | test "$am__universal" = false || continue |
---|
4848 | ;; |
---|
4849 | nosideeffect) |
---|
4850 | # After this tag, mechanisms are not by side-effect, so they'll |
---|
4851 | # only be used when explicitly requested. |
---|
4852 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4853 | continue |
---|
4854 | else |
---|
4855 | break |
---|
4856 | fi |
---|
4857 | ;; |
---|
4858 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4859 | # This compiler won't grok '-c -o', but also, the minuso test has |
---|
4860 | # not run yet. These depmodes are late enough in the game, and |
---|
4861 | # so weak that their functioning should not be impacted. |
---|
4862 | am__obj=conftest.${OBJEXT-o} |
---|
4863 | am__minus_obj= |
---|
4864 | ;; |
---|
4865 | none) break ;; |
---|
4866 | esac |
---|
4867 | if depmode=$depmode \ |
---|
4868 | source=sub/conftest.c object=$am__obj \ |
---|
4869 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4870 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4871 | >/dev/null 2>conftest.err && |
---|
4872 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4873 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4874 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4875 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4876 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4877 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4878 | # that says an option was ignored or not supported. |
---|
4879 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4880 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4881 | # The diagnosis changed in icc 8.0: |
---|
4882 | # icc: Command line remark: option '-MP' not supported |
---|
4883 | if (grep 'ignoring option' conftest.err || |
---|
4884 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4885 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
4886 | break |
---|
4887 | fi |
---|
4888 | fi |
---|
4889 | done |
---|
4890 | |
---|
4891 | cd .. |
---|
4892 | rm -rf conftest.dir |
---|
4893 | else |
---|
4894 | am_cv_CXX_dependencies_compiler_type=none |
---|
4895 | fi |
---|
4896 | |
---|
4897 | fi |
---|
4898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
4899 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
---|
4900 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
4901 | |
---|
4902 | if |
---|
4903 | test "x$enable_dependency_tracking" != xno \ |
---|
4904 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
4905 | am__fastdepCXX_TRUE= |
---|
4906 | am__fastdepCXX_FALSE='#' |
---|
4907 | else |
---|
4908 | am__fastdepCXX_TRUE='#' |
---|
4909 | am__fastdepCXX_FALSE= |
---|
4910 | fi |
---|
4911 | |
---|
4912 | |
---|
4913 | |
---|
4914 | # If the compiler does not support -c -o, wrap it with the compile script. |
---|
4915 | |
---|
4916 | ac_ext=cpp |
---|
4917 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4918 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4919 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4920 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
4921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX understands -c and -o together" >&5 |
---|
4922 | $as_echo_n "checking whether $CXX understands -c and -o together... " >&6; } |
---|
4923 | if ${ac_cv_prog_cxx_c_o+:} false; then : |
---|
4924 | $as_echo_n "(cached) " >&6 |
---|
4925 | else |
---|
4926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4927 | /* end confdefs.h. */ |
---|
4928 | |
---|
4929 | int |
---|
4930 | main () |
---|
4931 | { |
---|
4932 | |
---|
4933 | ; |
---|
4934 | return 0; |
---|
4935 | } |
---|
4936 | _ACEOF |
---|
4937 | # We test twice because some compilers refuse to overwrite an existing |
---|
4938 | # `.o' file with `-o', although they will create one. |
---|
4939 | ac_try='$CXX $CXXFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
---|
4940 | rm -f conftest2.* |
---|
4941 | if { { case "(($ac_try" in |
---|
4942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4943 | *) ac_try_echo=$ac_try;; |
---|
4944 | esac |
---|
4945 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4946 | $as_echo "$ac_try_echo"; } >&5 |
---|
4947 | (eval "$ac_try") 2>&5 |
---|
4948 | ac_status=$? |
---|
4949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4950 | test $ac_status = 0; } && |
---|
4951 | test -f conftest2.$ac_objext && |
---|
4952 | { { case "(($ac_try" in |
---|
4953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4954 | *) ac_try_echo=$ac_try;; |
---|
4955 | esac |
---|
4956 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4957 | $as_echo "$ac_try_echo"; } >&5 |
---|
4958 | (eval "$ac_try") 2>&5 |
---|
4959 | ac_status=$? |
---|
4960 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4961 | test $ac_status = 0; }; then |
---|
4962 | ac_cv_prog_cxx_c_o=yes |
---|
4963 | else |
---|
4964 | ac_cv_prog_cxx_c_o=no |
---|
4965 | fi |
---|
4966 | rm -f conftest* |
---|
4967 | fi |
---|
4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_c_o" >&5 |
---|
4969 | $as_echo "$ac_cv_prog_cxx_c_o" >&6; } |
---|
4970 | if test $ac_cv_prog_cxx_c_o = no; then |
---|
4971 | |
---|
4972 | $as_echo "#define CXX_NO_MINUS_C_MINUS_O 1" >>confdefs.h |
---|
4973 | |
---|
4974 | fi |
---|
4975 | ac_ext=c |
---|
4976 | ac_cpp='$CPP $CPPFLAGS' |
---|
4977 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4978 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4979 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4980 | |
---|
4981 | if test $ac_cv_prog_cxx_c_o = no ; then |
---|
4982 | CXX="$am_aux_dir/compile $CXX" |
---|
4983 | fi |
---|
4984 | |
---|
4985 | # Declare precious variable for additional compiler flags |
---|
4986 | |
---|
4987 | |
---|
4988 | |
---|
4989 | # This is a C++ package, set the language accordingly. |
---|
4990 | |
---|
4991 | ac_ext=cpp |
---|
4992 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4993 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4994 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4995 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
4996 | |
---|
4997 | |
---|
4998 | # Initialize libtool |
---|
4999 | |
---|
5000 | case `pwd` in |
---|
5001 | *\ * | *\ *) |
---|
5002 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
---|
5003 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
---|
5004 | esac |
---|
5005 | |
---|
5006 | |
---|
5007 | |
---|
5008 | macro_version='2.4.6' |
---|
5009 | macro_revision='2.4.6' |
---|
5010 | |
---|
5011 | |
---|
5012 | |
---|
5013 | |
---|
5014 | |
---|
5015 | |
---|
5016 | |
---|
5017 | |
---|
5018 | |
---|
5019 | |
---|
5020 | |
---|
5021 | |
---|
5022 | |
---|
5023 | ltmain=$ac_aux_dir/ltmain.sh |
---|
5024 | |
---|
5025 | # Backslashify metacharacters that are still active within |
---|
5026 | # double-quoted strings. |
---|
5027 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
---|
5028 | |
---|
5029 | # Same as above, but do not quote variable references. |
---|
5030 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
---|
5031 | |
---|
5032 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
5033 | # double_quote_subst'ed string. |
---|
5034 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
5035 | |
---|
5036 | # Sed substitution to delay expansion of an escaped single quote. |
---|
5037 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
---|
5038 | |
---|
5039 | # Sed substitution to avoid accidental globbing in evaled expressions |
---|
5040 | no_glob_subst='s/\*/\\\*/g' |
---|
5041 | |
---|
5042 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
5043 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
---|
5044 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
---|
5045 | |
---|
5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
---|
5047 | $as_echo_n "checking how to print strings... " >&6; } |
---|
5048 | # Test print first, because it will be a builtin if present. |
---|
5049 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
---|
5050 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
---|
5051 | ECHO='print -r --' |
---|
5052 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
---|
5053 | ECHO='printf %s\n' |
---|
5054 | else |
---|
5055 | # Use this function as a fallback that always works. |
---|
5056 | func_fallback_echo () |
---|
5057 | { |
---|
5058 | eval 'cat <<_LTECHO_EOF |
---|
5059 | $1 |
---|
5060 | _LTECHO_EOF' |
---|
5061 | } |
---|
5062 | ECHO='func_fallback_echo' |
---|
5063 | fi |
---|
5064 | |
---|
5065 | # func_echo_all arg... |
---|
5066 | # Invoke $ECHO with all args, space-separated. |
---|
5067 | func_echo_all () |
---|
5068 | { |
---|
5069 | $ECHO "" |
---|
5070 | } |
---|
5071 | |
---|
5072 | case $ECHO in |
---|
5073 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
---|
5074 | $as_echo "printf" >&6; } ;; |
---|
5075 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
---|
5076 | $as_echo "print -r" >&6; } ;; |
---|
5077 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
---|
5078 | $as_echo "cat" >&6; } ;; |
---|
5079 | esac |
---|
5080 | |
---|
5081 | |
---|
5082 | |
---|
5083 | |
---|
5084 | |
---|
5085 | |
---|
5086 | |
---|
5087 | |
---|
5088 | |
---|
5089 | |
---|
5090 | |
---|
5091 | |
---|
5092 | |
---|
5093 | |
---|
5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
---|
5095 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
---|
5096 | if ${ac_cv_path_SED+:} false; then : |
---|
5097 | $as_echo_n "(cached) " >&6 |
---|
5098 | else |
---|
5099 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
---|
5100 | for ac_i in 1 2 3 4 5 6 7; do |
---|
5101 | ac_script="$ac_script$as_nl$ac_script" |
---|
5102 | done |
---|
5103 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
---|
5104 | { ac_script=; unset ac_script;} |
---|
5105 | if test -z "$SED"; then |
---|
5106 | ac_path_SED_found=false |
---|
5107 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5109 | for as_dir in $PATH |
---|
5110 | do |
---|
5111 | IFS=$as_save_IFS |
---|
5112 | test -z "$as_dir" && as_dir=. |
---|
5113 | for ac_prog in sed gsed; do |
---|
5114 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5115 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
---|
5116 | as_fn_executable_p "$ac_path_SED" || continue |
---|
5117 | # Check for GNU ac_path_SED and select it if it is found. |
---|
5118 | # Check for GNU $ac_path_SED |
---|
5119 | case `"$ac_path_SED" --version 2>&1` in |
---|
5120 | *GNU*) |
---|
5121 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
---|
5122 | *) |
---|
5123 | ac_count=0 |
---|
5124 | $as_echo_n 0123456789 >"conftest.in" |
---|
5125 | while : |
---|
5126 | do |
---|
5127 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5128 | mv "conftest.tmp" "conftest.in" |
---|
5129 | cp "conftest.in" "conftest.nl" |
---|
5130 | $as_echo '' >> "conftest.nl" |
---|
5131 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5132 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5133 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5134 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
---|
5135 | # Best one so far, save it but keep looking for a better one |
---|
5136 | ac_cv_path_SED="$ac_path_SED" |
---|
5137 | ac_path_SED_max=$ac_count |
---|
5138 | fi |
---|
5139 | # 10*(2^10) chars as input seems more than enough |
---|
5140 | test $ac_count -gt 10 && break |
---|
5141 | done |
---|
5142 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5143 | esac |
---|
5144 | |
---|
5145 | $ac_path_SED_found && break 3 |
---|
5146 | done |
---|
5147 | done |
---|
5148 | done |
---|
5149 | IFS=$as_save_IFS |
---|
5150 | if test -z "$ac_cv_path_SED"; then |
---|
5151 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
---|
5152 | fi |
---|
5153 | else |
---|
5154 | ac_cv_path_SED=$SED |
---|
5155 | fi |
---|
5156 | |
---|
5157 | fi |
---|
5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
---|
5159 | $as_echo "$ac_cv_path_SED" >&6; } |
---|
5160 | SED="$ac_cv_path_SED" |
---|
5161 | rm -f conftest.sed |
---|
5162 | |
---|
5163 | test -z "$SED" && SED=sed |
---|
5164 | Xsed="$SED -e 1s/^X//" |
---|
5165 | |
---|
5166 | |
---|
5167 | |
---|
5168 | |
---|
5169 | |
---|
5170 | |
---|
5171 | |
---|
5172 | |
---|
5173 | |
---|
5174 | |
---|
5175 | |
---|
5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
5177 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
5178 | if ${ac_cv_path_GREP+:} false; then : |
---|
5179 | $as_echo_n "(cached) " >&6 |
---|
5180 | else |
---|
5181 | if test -z "$GREP"; then |
---|
5182 | ac_path_GREP_found=false |
---|
5183 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5185 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5186 | do |
---|
5187 | IFS=$as_save_IFS |
---|
5188 | test -z "$as_dir" && as_dir=. |
---|
5189 | for ac_prog in grep ggrep; do |
---|
5190 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5191 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5192 | as_fn_executable_p "$ac_path_GREP" || continue |
---|
5193 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
5194 | # Check for GNU $ac_path_GREP |
---|
5195 | case `"$ac_path_GREP" --version 2>&1` in |
---|
5196 | *GNU*) |
---|
5197 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
5198 | *) |
---|
5199 | ac_count=0 |
---|
5200 | $as_echo_n 0123456789 >"conftest.in" |
---|
5201 | while : |
---|
5202 | do |
---|
5203 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5204 | mv "conftest.tmp" "conftest.in" |
---|
5205 | cp "conftest.in" "conftest.nl" |
---|
5206 | $as_echo 'GREP' >> "conftest.nl" |
---|
5207 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5208 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5209 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5210 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
5211 | # Best one so far, save it but keep looking for a better one |
---|
5212 | ac_cv_path_GREP="$ac_path_GREP" |
---|
5213 | ac_path_GREP_max=$ac_count |
---|
5214 | fi |
---|
5215 | # 10*(2^10) chars as input seems more than enough |
---|
5216 | test $ac_count -gt 10 && break |
---|
5217 | done |
---|
5218 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5219 | esac |
---|
5220 | |
---|
5221 | $ac_path_GREP_found && break 3 |
---|
5222 | done |
---|
5223 | done |
---|
5224 | done |
---|
5225 | IFS=$as_save_IFS |
---|
5226 | if test -z "$ac_cv_path_GREP"; then |
---|
5227 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5228 | fi |
---|
5229 | else |
---|
5230 | ac_cv_path_GREP=$GREP |
---|
5231 | fi |
---|
5232 | |
---|
5233 | fi |
---|
5234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
5235 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
5236 | GREP="$ac_cv_path_GREP" |
---|
5237 | |
---|
5238 | |
---|
5239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
5240 | $as_echo_n "checking for egrep... " >&6; } |
---|
5241 | if ${ac_cv_path_EGREP+:} false; then : |
---|
5242 | $as_echo_n "(cached) " >&6 |
---|
5243 | else |
---|
5244 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
5245 | then ac_cv_path_EGREP="$GREP -E" |
---|
5246 | else |
---|
5247 | if test -z "$EGREP"; then |
---|
5248 | ac_path_EGREP_found=false |
---|
5249 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5251 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5252 | do |
---|
5253 | IFS=$as_save_IFS |
---|
5254 | test -z "$as_dir" && as_dir=. |
---|
5255 | for ac_prog in egrep; do |
---|
5256 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5257 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5258 | as_fn_executable_p "$ac_path_EGREP" || continue |
---|
5259 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
5260 | # Check for GNU $ac_path_EGREP |
---|
5261 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
5262 | *GNU*) |
---|
5263 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
5264 | *) |
---|
5265 | ac_count=0 |
---|
5266 | $as_echo_n 0123456789 >"conftest.in" |
---|
5267 | while : |
---|
5268 | do |
---|
5269 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5270 | mv "conftest.tmp" "conftest.in" |
---|
5271 | cp "conftest.in" "conftest.nl" |
---|
5272 | $as_echo 'EGREP' >> "conftest.nl" |
---|
5273 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5274 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5275 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5276 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
5277 | # Best one so far, save it but keep looking for a better one |
---|
5278 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
5279 | ac_path_EGREP_max=$ac_count |
---|
5280 | fi |
---|
5281 | # 10*(2^10) chars as input seems more than enough |
---|
5282 | test $ac_count -gt 10 && break |
---|
5283 | done |
---|
5284 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5285 | esac |
---|
5286 | |
---|
5287 | $ac_path_EGREP_found && break 3 |
---|
5288 | done |
---|
5289 | done |
---|
5290 | done |
---|
5291 | IFS=$as_save_IFS |
---|
5292 | if test -z "$ac_cv_path_EGREP"; then |
---|
5293 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5294 | fi |
---|
5295 | else |
---|
5296 | ac_cv_path_EGREP=$EGREP |
---|
5297 | fi |
---|
5298 | |
---|
5299 | fi |
---|
5300 | fi |
---|
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
5302 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
5303 | EGREP="$ac_cv_path_EGREP" |
---|
5304 | |
---|
5305 | |
---|
5306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
---|
5307 | $as_echo_n "checking for fgrep... " >&6; } |
---|
5308 | if ${ac_cv_path_FGREP+:} false; then : |
---|
5309 | $as_echo_n "(cached) " >&6 |
---|
5310 | else |
---|
5311 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
---|
5312 | then ac_cv_path_FGREP="$GREP -F" |
---|
5313 | else |
---|
5314 | if test -z "$FGREP"; then |
---|
5315 | ac_path_FGREP_found=false |
---|
5316 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5318 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5319 | do |
---|
5320 | IFS=$as_save_IFS |
---|
5321 | test -z "$as_dir" && as_dir=. |
---|
5322 | for ac_prog in fgrep; do |
---|
5323 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5324 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5325 | as_fn_executable_p "$ac_path_FGREP" || continue |
---|
5326 | # Check for GNU ac_path_FGREP and select it if it is found. |
---|
5327 | # Check for GNU $ac_path_FGREP |
---|
5328 | case `"$ac_path_FGREP" --version 2>&1` in |
---|
5329 | *GNU*) |
---|
5330 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
---|
5331 | *) |
---|
5332 | ac_count=0 |
---|
5333 | $as_echo_n 0123456789 >"conftest.in" |
---|
5334 | while : |
---|
5335 | do |
---|
5336 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5337 | mv "conftest.tmp" "conftest.in" |
---|
5338 | cp "conftest.in" "conftest.nl" |
---|
5339 | $as_echo 'FGREP' >> "conftest.nl" |
---|
5340 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5341 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5342 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5343 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
---|
5344 | # Best one so far, save it but keep looking for a better one |
---|
5345 | ac_cv_path_FGREP="$ac_path_FGREP" |
---|
5346 | ac_path_FGREP_max=$ac_count |
---|
5347 | fi |
---|
5348 | # 10*(2^10) chars as input seems more than enough |
---|
5349 | test $ac_count -gt 10 && break |
---|
5350 | done |
---|
5351 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5352 | esac |
---|
5353 | |
---|
5354 | $ac_path_FGREP_found && break 3 |
---|
5355 | done |
---|
5356 | done |
---|
5357 | done |
---|
5358 | IFS=$as_save_IFS |
---|
5359 | if test -z "$ac_cv_path_FGREP"; then |
---|
5360 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5361 | fi |
---|
5362 | else |
---|
5363 | ac_cv_path_FGREP=$FGREP |
---|
5364 | fi |
---|
5365 | |
---|
5366 | fi |
---|
5367 | fi |
---|
5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
---|
5369 | $as_echo "$ac_cv_path_FGREP" >&6; } |
---|
5370 | FGREP="$ac_cv_path_FGREP" |
---|
5371 | |
---|
5372 | |
---|
5373 | test -z "$GREP" && GREP=grep |
---|
5374 | |
---|
5375 | |
---|
5376 | |
---|
5377 | |
---|
5378 | |
---|
5379 | |
---|
5380 | |
---|
5381 | |
---|
5382 | |
---|
5383 | |
---|
5384 | |
---|
5385 | |
---|
5386 | |
---|
5387 | |
---|
5388 | |
---|
5389 | |
---|
5390 | |
---|
5391 | |
---|
5392 | |
---|
5393 | # Check whether --with-gnu-ld was given. |
---|
5394 | if test "${with_gnu_ld+set}" = set; then : |
---|
5395 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
---|
5396 | else |
---|
5397 | with_gnu_ld=no |
---|
5398 | fi |
---|
5399 | |
---|
5400 | ac_prog=ld |
---|
5401 | if test yes = "$GCC"; then |
---|
5402 | # Check if gcc -print-prog-name=ld gives a path. |
---|
5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
---|
5404 | $as_echo_n "checking for ld used by $CC... " >&6; } |
---|
5405 | case $host in |
---|
5406 | *-*-mingw*) |
---|
5407 | # gcc leaves a trailing carriage return, which upsets mingw |
---|
5408 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
5409 | *) |
---|
5410 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
5411 | esac |
---|
5412 | case $ac_prog in |
---|
5413 | # Accept absolute paths. |
---|
5414 | [\\/]* | ?:[\\/]*) |
---|
5415 | re_direlt='/[^/][^/]*/\.\./' |
---|
5416 | # Canonicalize the pathname of ld |
---|
5417 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
---|
5418 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
---|
5419 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
---|
5420 | done |
---|
5421 | test -z "$LD" && LD=$ac_prog |
---|
5422 | ;; |
---|
5423 | "") |
---|
5424 | # If it fails, then pretend we aren't using GCC. |
---|
5425 | ac_prog=ld |
---|
5426 | ;; |
---|
5427 | *) |
---|
5428 | # If it is relative, then search for the first ld in PATH. |
---|
5429 | with_gnu_ld=unknown |
---|
5430 | ;; |
---|
5431 | esac |
---|
5432 | elif test yes = "$with_gnu_ld"; then |
---|
5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
---|
5434 | $as_echo_n "checking for GNU ld... " >&6; } |
---|
5435 | else |
---|
5436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
---|
5437 | $as_echo_n "checking for non-GNU ld... " >&6; } |
---|
5438 | fi |
---|
5439 | if ${lt_cv_path_LD+:} false; then : |
---|
5440 | $as_echo_n "(cached) " >&6 |
---|
5441 | else |
---|
5442 | if test -z "$LD"; then |
---|
5443 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
---|
5444 | for ac_dir in $PATH; do |
---|
5445 | IFS=$lt_save_ifs |
---|
5446 | test -z "$ac_dir" && ac_dir=. |
---|
5447 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
5448 | lt_cv_path_LD=$ac_dir/$ac_prog |
---|
5449 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
5450 | # but apparently some variants of GNU ld only accept -v. |
---|
5451 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
5452 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
5453 | *GNU* | *'with BFD'*) |
---|
5454 | test no != "$with_gnu_ld" && break |
---|
5455 | ;; |
---|
5456 | *) |
---|
5457 | test yes != "$with_gnu_ld" && break |
---|
5458 | ;; |
---|
5459 | esac |
---|
5460 | fi |
---|
5461 | done |
---|
5462 | IFS=$lt_save_ifs |
---|
5463 | else |
---|
5464 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
---|
5465 | fi |
---|
5466 | fi |
---|
5467 | |
---|
5468 | LD=$lt_cv_path_LD |
---|
5469 | if test -n "$LD"; then |
---|
5470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
---|
5471 | $as_echo "$LD" >&6; } |
---|
5472 | else |
---|
5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5474 | $as_echo "no" >&6; } |
---|
5475 | fi |
---|
5476 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
---|
5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
---|
5478 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
---|
5479 | if ${lt_cv_prog_gnu_ld+:} false; then : |
---|
5480 | $as_echo_n "(cached) " >&6 |
---|
5481 | else |
---|
5482 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
5483 | case `$LD -v 2>&1 </dev/null` in |
---|
5484 | *GNU* | *'with BFD'*) |
---|
5485 | lt_cv_prog_gnu_ld=yes |
---|
5486 | ;; |
---|
5487 | *) |
---|
5488 | lt_cv_prog_gnu_ld=no |
---|
5489 | ;; |
---|
5490 | esac |
---|
5491 | fi |
---|
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
---|
5493 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
---|
5494 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
5495 | |
---|
5496 | |
---|
5497 | |
---|
5498 | |
---|
5499 | |
---|
5500 | |
---|
5501 | |
---|
5502 | |
---|
5503 | |
---|
5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
---|
5505 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
---|
5506 | if ${lt_cv_path_NM+:} false; then : |
---|
5507 | $as_echo_n "(cached) " >&6 |
---|
5508 | else |
---|
5509 | if test -n "$NM"; then |
---|
5510 | # Let the user override the test. |
---|
5511 | lt_cv_path_NM=$NM |
---|
5512 | else |
---|
5513 | lt_nm_to_check=${ac_tool_prefix}nm |
---|
5514 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
---|
5515 | lt_nm_to_check="$lt_nm_to_check nm" |
---|
5516 | fi |
---|
5517 | for lt_tmp_nm in $lt_nm_to_check; do |
---|
5518 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
---|
5519 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
---|
5520 | IFS=$lt_save_ifs |
---|
5521 | test -z "$ac_dir" && ac_dir=. |
---|
5522 | tmp_nm=$ac_dir/$lt_tmp_nm |
---|
5523 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
---|
5524 | # Check to see if the nm accepts a BSD-compat flag. |
---|
5525 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
---|
5526 | # nm: unknown option "B" ignored |
---|
5527 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
5528 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
---|
5529 | case $build_os in |
---|
5530 | mingw*) lt_bad_file=conftest.nm/nofile ;; |
---|
5531 | *) lt_bad_file=/dev/null ;; |
---|
5532 | esac |
---|
5533 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
---|
5534 | *$lt_bad_file* | *'Invalid file or object type'*) |
---|
5535 | lt_cv_path_NM="$tmp_nm -B" |
---|
5536 | break 2 |
---|
5537 | ;; |
---|
5538 | *) |
---|
5539 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
5540 | */dev/null*) |
---|
5541 | lt_cv_path_NM="$tmp_nm -p" |
---|
5542 | break 2 |
---|
5543 | ;; |
---|
5544 | *) |
---|
5545 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
5546 | continue # so that we can try to find one that supports BSD flags |
---|
5547 | ;; |
---|
5548 | esac |
---|
5549 | ;; |
---|
5550 | esac |
---|
5551 | fi |
---|
5552 | done |
---|
5553 | IFS=$lt_save_ifs |
---|
5554 | done |
---|
5555 | : ${lt_cv_path_NM=no} |
---|
5556 | fi |
---|
5557 | fi |
---|
5558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
---|
5559 | $as_echo "$lt_cv_path_NM" >&6; } |
---|
5560 | if test no != "$lt_cv_path_NM"; then |
---|
5561 | NM=$lt_cv_path_NM |
---|
5562 | else |
---|
5563 | # Didn't find any BSD compatible name lister, look for dumpbin. |
---|
5564 | if test -n "$DUMPBIN"; then : |
---|
5565 | # Let the user override the test. |
---|
5566 | else |
---|
5567 | if test -n "$ac_tool_prefix"; then |
---|
5568 | for ac_prog in dumpbin "link -dump" |
---|
5569 | do |
---|
5570 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
5571 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5573 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5574 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
---|
5575 | $as_echo_n "(cached) " >&6 |
---|
5576 | else |
---|
5577 | if test -n "$DUMPBIN"; then |
---|
5578 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
---|
5579 | else |
---|
5580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5581 | for as_dir in $PATH |
---|
5582 | do |
---|
5583 | IFS=$as_save_IFS |
---|
5584 | test -z "$as_dir" && as_dir=. |
---|
5585 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5586 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5587 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
---|
5588 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5589 | break 2 |
---|
5590 | fi |
---|
5591 | done |
---|
5592 | done |
---|
5593 | IFS=$as_save_IFS |
---|
5594 | |
---|
5595 | fi |
---|
5596 | fi |
---|
5597 | DUMPBIN=$ac_cv_prog_DUMPBIN |
---|
5598 | if test -n "$DUMPBIN"; then |
---|
5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
---|
5600 | $as_echo "$DUMPBIN" >&6; } |
---|
5601 | else |
---|
5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5603 | $as_echo "no" >&6; } |
---|
5604 | fi |
---|
5605 | |
---|
5606 | |
---|
5607 | test -n "$DUMPBIN" && break |
---|
5608 | done |
---|
5609 | fi |
---|
5610 | if test -z "$DUMPBIN"; then |
---|
5611 | ac_ct_DUMPBIN=$DUMPBIN |
---|
5612 | for ac_prog in dumpbin "link -dump" |
---|
5613 | do |
---|
5614 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5615 | set dummy $ac_prog; ac_word=$2 |
---|
5616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5617 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5618 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
---|
5619 | $as_echo_n "(cached) " >&6 |
---|
5620 | else |
---|
5621 | if test -n "$ac_ct_DUMPBIN"; then |
---|
5622 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
---|
5623 | else |
---|
5624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5625 | for as_dir in $PATH |
---|
5626 | do |
---|
5627 | IFS=$as_save_IFS |
---|
5628 | test -z "$as_dir" && as_dir=. |
---|
5629 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5630 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5631 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
---|
5632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5633 | break 2 |
---|
5634 | fi |
---|
5635 | done |
---|
5636 | done |
---|
5637 | IFS=$as_save_IFS |
---|
5638 | |
---|
5639 | fi |
---|
5640 | fi |
---|
5641 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
---|
5642 | if test -n "$ac_ct_DUMPBIN"; then |
---|
5643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
---|
5644 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
---|
5645 | else |
---|
5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5647 | $as_echo "no" >&6; } |
---|
5648 | fi |
---|
5649 | |
---|
5650 | |
---|
5651 | test -n "$ac_ct_DUMPBIN" && break |
---|
5652 | done |
---|
5653 | |
---|
5654 | if test "x$ac_ct_DUMPBIN" = x; then |
---|
5655 | DUMPBIN=":" |
---|
5656 | else |
---|
5657 | case $cross_compiling:$ac_tool_warned in |
---|
5658 | yes:) |
---|
5659 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
5660 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
5661 | ac_tool_warned=yes ;; |
---|
5662 | esac |
---|
5663 | DUMPBIN=$ac_ct_DUMPBIN |
---|
5664 | fi |
---|
5665 | fi |
---|
5666 | |
---|
5667 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
---|
5668 | *COFF*) |
---|
5669 | DUMPBIN="$DUMPBIN -symbols -headers" |
---|
5670 | ;; |
---|
5671 | *) |
---|
5672 | DUMPBIN=: |
---|
5673 | ;; |
---|
5674 | esac |
---|
5675 | fi |
---|
5676 | |
---|
5677 | if test : != "$DUMPBIN"; then |
---|
5678 | NM=$DUMPBIN |
---|
5679 | fi |
---|
5680 | fi |
---|
5681 | test -z "$NM" && NM=nm |
---|
5682 | |
---|
5683 | |
---|
5684 | |
---|
5685 | |
---|
5686 | |
---|
5687 | |
---|
5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
---|
5689 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
---|
5690 | if ${lt_cv_nm_interface+:} false; then : |
---|
5691 | $as_echo_n "(cached) " >&6 |
---|
5692 | else |
---|
5693 | lt_cv_nm_interface="BSD nm" |
---|
5694 | echo "int some_variable = 0;" > conftest.$ac_ext |
---|
5695 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
---|
5696 | (eval "$ac_compile" 2>conftest.err) |
---|
5697 | cat conftest.err >&5 |
---|
5698 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
---|
5699 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
---|
5700 | cat conftest.err >&5 |
---|
5701 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
---|
5702 | cat conftest.out >&5 |
---|
5703 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
---|
5704 | lt_cv_nm_interface="MS dumpbin" |
---|
5705 | fi |
---|
5706 | rm -f conftest* |
---|
5707 | fi |
---|
5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
---|
5709 | $as_echo "$lt_cv_nm_interface" >&6; } |
---|
5710 | |
---|
5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
---|
5712 | $as_echo_n "checking whether ln -s works... " >&6; } |
---|
5713 | LN_S=$as_ln_s |
---|
5714 | if test "$LN_S" = "ln -s"; then |
---|
5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
5716 | $as_echo "yes" >&6; } |
---|
5717 | else |
---|
5718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
---|
5719 | $as_echo "no, using $LN_S" >&6; } |
---|
5720 | fi |
---|
5721 | |
---|
5722 | # find the maximum length of command line arguments |
---|
5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
---|
5724 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
---|
5725 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
---|
5726 | $as_echo_n "(cached) " >&6 |
---|
5727 | else |
---|
5728 | i=0 |
---|
5729 | teststring=ABCD |
---|
5730 | |
---|
5731 | case $build_os in |
---|
5732 | msdosdjgpp*) |
---|
5733 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
---|
5734 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
---|
5735 | # during glob expansion). Even if it were fixed, the result of this |
---|
5736 | # check would be larger than it should be. |
---|
5737 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
---|
5738 | ;; |
---|
5739 | |
---|
5740 | gnu*) |
---|
5741 | # Under GNU Hurd, this test is not required because there is |
---|
5742 | # no limit to the length of command line arguments. |
---|
5743 | # Libtool will interpret -1 as no limit whatsoever |
---|
5744 | lt_cv_sys_max_cmd_len=-1; |
---|
5745 | ;; |
---|
5746 | |
---|
5747 | cygwin* | mingw* | cegcc*) |
---|
5748 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
---|
5749 | # about 5 minutes as the teststring grows exponentially. |
---|
5750 | # Worse, since 9x/ME are not pre-emptively multitasking, |
---|
5751 | # you end up with a "frozen" computer, even though with patience |
---|
5752 | # the test eventually succeeds (with a max line length of 256k). |
---|
5753 | # Instead, let's just punt: use the minimum linelength reported by |
---|
5754 | # all of the supported platforms: 8192 (on NT/2K/XP). |
---|
5755 | lt_cv_sys_max_cmd_len=8192; |
---|
5756 | ;; |
---|
5757 | |
---|
5758 | mint*) |
---|
5759 | # On MiNT this can take a long time and run out of memory. |
---|
5760 | lt_cv_sys_max_cmd_len=8192; |
---|
5761 | ;; |
---|
5762 | |
---|
5763 | amigaos*) |
---|
5764 | # On AmigaOS with pdksh, this test takes hours, literally. |
---|
5765 | # So we just punt and use a minimum line length of 8192. |
---|
5766 | lt_cv_sys_max_cmd_len=8192; |
---|
5767 | ;; |
---|
5768 | |
---|
5769 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
---|
5770 | # This has been around since 386BSD, at least. Likely further. |
---|
5771 | if test -x /sbin/sysctl; then |
---|
5772 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
---|
5773 | elif test -x /usr/sbin/sysctl; then |
---|
5774 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
---|
5775 | else |
---|
5776 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
---|
5777 | fi |
---|
5778 | # And add a safety zone |
---|
5779 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
5780 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
5781 | ;; |
---|
5782 | |
---|
5783 | interix*) |
---|
5784 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
---|
5785 | lt_cv_sys_max_cmd_len=196608 |
---|
5786 | ;; |
---|
5787 | |
---|
5788 | os2*) |
---|
5789 | # The test takes a long time on OS/2. |
---|
5790 | lt_cv_sys_max_cmd_len=8192 |
---|
5791 | ;; |
---|
5792 | |
---|
5793 | osf*) |
---|
5794 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
---|
5795 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
---|
5796 | # nice to cause kernel panics so lets avoid the loop below. |
---|
5797 | # First set a reasonable default. |
---|
5798 | lt_cv_sys_max_cmd_len=16384 |
---|
5799 | # |
---|
5800 | if test -x /sbin/sysconfig; then |
---|
5801 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
---|
5802 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
---|
5803 | esac |
---|
5804 | fi |
---|
5805 | ;; |
---|
5806 | sco3.2v5*) |
---|
5807 | lt_cv_sys_max_cmd_len=102400 |
---|
5808 | ;; |
---|
5809 | sysv5* | sco5v6* | sysv4.2uw2*) |
---|
5810 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
---|
5811 | if test -n "$kargmax"; then |
---|
5812 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
---|
5813 | else |
---|
5814 | lt_cv_sys_max_cmd_len=32768 |
---|
5815 | fi |
---|
5816 | ;; |
---|
5817 | *) |
---|
5818 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
---|
5819 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
---|
5820 | test undefined != "$lt_cv_sys_max_cmd_len"; then |
---|
5821 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
5822 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
5823 | else |
---|
5824 | # Make teststring a little bigger before we do anything with it. |
---|
5825 | # a 1K string should be a reasonable start. |
---|
5826 | for i in 1 2 3 4 5 6 7 8; do |
---|
5827 | teststring=$teststring$teststring |
---|
5828 | done |
---|
5829 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
---|
5830 | # If test is not a shell built-in, we'll probably end up computing a |
---|
5831 | # maximum length that is only half of the actual maximum length, but |
---|
5832 | # we can't tell. |
---|
5833 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
---|
5834 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
---|
5835 | test 17 != "$i" # 1/2 MB should be enough |
---|
5836 | do |
---|
5837 | i=`expr $i + 1` |
---|
5838 | teststring=$teststring$teststring |
---|
5839 | done |
---|
5840 | # Only check the string length outside the loop. |
---|
5841 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
---|
5842 | teststring= |
---|
5843 | # Add a significant safety factor because C++ compilers can tack on |
---|
5844 | # massive amounts of additional arguments before passing them to the |
---|
5845 | # linker. It appears as though 1/2 is a usable value. |
---|
5846 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
---|
5847 | fi |
---|
5848 | ;; |
---|
5849 | esac |
---|
5850 | |
---|
5851 | fi |
---|
5852 | |
---|
5853 | if test -n "$lt_cv_sys_max_cmd_len"; then |
---|
5854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
---|
5855 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
---|
5856 | else |
---|
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
---|
5858 | $as_echo "none" >&6; } |
---|
5859 | fi |
---|
5860 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
5861 | |
---|
5862 | |
---|
5863 | |
---|
5864 | |
---|
5865 | |
---|
5866 | |
---|
5867 | : ${CP="cp -f"} |
---|
5868 | : ${MV="mv -f"} |
---|
5869 | : ${RM="rm -f"} |
---|
5870 | |
---|
5871 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
5872 | lt_unset=unset |
---|
5873 | else |
---|
5874 | lt_unset=false |
---|
5875 | fi |
---|
5876 | |
---|
5877 | |
---|
5878 | |
---|
5879 | |
---|
5880 | |
---|
5881 | # test EBCDIC or ASCII |
---|
5882 | case `echo X|tr X '\101'` in |
---|
5883 | A) # ASCII based system |
---|
5884 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
---|
5885 | lt_SP2NL='tr \040 \012' |
---|
5886 | lt_NL2SP='tr \015\012 \040\040' |
---|
5887 | ;; |
---|
5888 | *) # EBCDIC based system |
---|
5889 | lt_SP2NL='tr \100 \n' |
---|
5890 | lt_NL2SP='tr \r\n \100\100' |
---|
5891 | ;; |
---|
5892 | esac |
---|
5893 | |
---|
5894 | |
---|
5895 | |
---|
5896 | |
---|
5897 | |
---|
5898 | |
---|
5899 | |
---|
5900 | |
---|
5901 | |
---|
5902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
---|
5903 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
---|
5904 | if ${lt_cv_to_host_file_cmd+:} false; then : |
---|
5905 | $as_echo_n "(cached) " >&6 |
---|
5906 | else |
---|
5907 | case $host in |
---|
5908 | *-*-mingw* ) |
---|
5909 | case $build in |
---|
5910 | *-*-mingw* ) # actually msys |
---|
5911 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
---|
5912 | ;; |
---|
5913 | *-*-cygwin* ) |
---|
5914 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
---|
5915 | ;; |
---|
5916 | * ) # otherwise, assume *nix |
---|
5917 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
---|
5918 | ;; |
---|
5919 | esac |
---|
5920 | ;; |
---|
5921 | *-*-cygwin* ) |
---|
5922 | case $build in |
---|
5923 | *-*-mingw* ) # actually msys |
---|
5924 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
---|
5925 | ;; |
---|
5926 | *-*-cygwin* ) |
---|
5927 | lt_cv_to_host_file_cmd=func_convert_file_noop |
---|
5928 | ;; |
---|
5929 | * ) # otherwise, assume *nix |
---|
5930 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
---|
5931 | ;; |
---|
5932 | esac |
---|
5933 | ;; |
---|
5934 | * ) # unhandled hosts (and "normal" native builds) |
---|
5935 | lt_cv_to_host_file_cmd=func_convert_file_noop |
---|
5936 | ;; |
---|
5937 | esac |
---|
5938 | |
---|
5939 | fi |
---|
5940 | |
---|
5941 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
---|
5942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
---|
5943 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
---|
5944 | |
---|
5945 | |
---|
5946 | |
---|
5947 | |
---|
5948 | |
---|
5949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
---|
5950 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
---|
5951 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
---|
5952 | $as_echo_n "(cached) " >&6 |
---|
5953 | else |
---|
5954 | #assume ordinary cross tools, or native build. |
---|
5955 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
---|
5956 | case $host in |
---|
5957 | *-*-mingw* ) |
---|
5958 | case $build in |
---|
5959 | *-*-mingw* ) # actually msys |
---|
5960 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
---|
5961 | ;; |
---|
5962 | esac |
---|
5963 | ;; |
---|
5964 | esac |
---|
5965 | |
---|
5966 | fi |
---|
5967 | |
---|
5968 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
---|
5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
---|
5970 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
---|
5971 | |
---|
5972 | |
---|
5973 | |
---|
5974 | |
---|
5975 | |
---|
5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
---|
5977 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
---|
5978 | if ${lt_cv_ld_reload_flag+:} false; then : |
---|
5979 | $as_echo_n "(cached) " >&6 |
---|
5980 | else |
---|
5981 | lt_cv_ld_reload_flag='-r' |
---|
5982 | fi |
---|
5983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
---|
5984 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
---|
5985 | reload_flag=$lt_cv_ld_reload_flag |
---|
5986 | case $reload_flag in |
---|
5987 | "" | " "*) ;; |
---|
5988 | *) reload_flag=" $reload_flag" ;; |
---|
5989 | esac |
---|
5990 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
5991 | case $host_os in |
---|
5992 | cygwin* | mingw* | pw32* | cegcc*) |
---|
5993 | if test yes != "$GCC"; then |
---|
5994 | reload_cmds=false |
---|
5995 | fi |
---|
5996 | ;; |
---|
5997 | darwin*) |
---|
5998 | if test yes = "$GCC"; then |
---|
5999 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
---|
6000 | else |
---|
6001 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
6002 | fi |
---|
6003 | ;; |
---|
6004 | esac |
---|
6005 | |
---|
6006 | |
---|
6007 | |
---|
6008 | |
---|
6009 | |
---|
6010 | |
---|
6011 | |
---|
6012 | |
---|
6013 | |
---|
6014 | if test -n "$ac_tool_prefix"; then |
---|
6015 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
---|
6016 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
---|
6017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6018 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6019 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
---|
6020 | $as_echo_n "(cached) " >&6 |
---|
6021 | else |
---|
6022 | if test -n "$OBJDUMP"; then |
---|
6023 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
---|
6024 | else |
---|
6025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6026 | for as_dir in $PATH |
---|
6027 | do |
---|
6028 | IFS=$as_save_IFS |
---|
6029 | test -z "$as_dir" && as_dir=. |
---|
6030 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6031 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6032 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
---|
6033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6034 | break 2 |
---|
6035 | fi |
---|
6036 | done |
---|
6037 | done |
---|
6038 | IFS=$as_save_IFS |
---|
6039 | |
---|
6040 | fi |
---|
6041 | fi |
---|
6042 | OBJDUMP=$ac_cv_prog_OBJDUMP |
---|
6043 | if test -n "$OBJDUMP"; then |
---|
6044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
---|
6045 | $as_echo "$OBJDUMP" >&6; } |
---|
6046 | else |
---|
6047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6048 | $as_echo "no" >&6; } |
---|
6049 | fi |
---|
6050 | |
---|
6051 | |
---|
6052 | fi |
---|
6053 | if test -z "$ac_cv_prog_OBJDUMP"; then |
---|
6054 | ac_ct_OBJDUMP=$OBJDUMP |
---|
6055 | # Extract the first word of "objdump", so it can be a program name with args. |
---|
6056 | set dummy objdump; ac_word=$2 |
---|
6057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6058 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6059 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
---|
6060 | $as_echo_n "(cached) " >&6 |
---|
6061 | else |
---|
6062 | if test -n "$ac_ct_OBJDUMP"; then |
---|
6063 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
---|
6064 | else |
---|
6065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6066 | for as_dir in $PATH |
---|
6067 | do |
---|
6068 | IFS=$as_save_IFS |
---|
6069 | test -z "$as_dir" && as_dir=. |
---|
6070 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6071 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6072 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
---|
6073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6074 | break 2 |
---|
6075 | fi |
---|
6076 | done |
---|
6077 | done |
---|
6078 | IFS=$as_save_IFS |
---|
6079 | |
---|
6080 | fi |
---|
6081 | fi |
---|
6082 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
---|
6083 | if test -n "$ac_ct_OBJDUMP"; then |
---|
6084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
---|
6085 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
---|
6086 | else |
---|
6087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6088 | $as_echo "no" >&6; } |
---|
6089 | fi |
---|
6090 | |
---|
6091 | if test "x$ac_ct_OBJDUMP" = x; then |
---|
6092 | OBJDUMP="false" |
---|
6093 | else |
---|
6094 | case $cross_compiling:$ac_tool_warned in |
---|
6095 | yes:) |
---|
6096 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6097 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6098 | ac_tool_warned=yes ;; |
---|
6099 | esac |
---|
6100 | OBJDUMP=$ac_ct_OBJDUMP |
---|
6101 | fi |
---|
6102 | else |
---|
6103 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
---|
6104 | fi |
---|
6105 | |
---|
6106 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
6107 | |
---|
6108 | |
---|
6109 | |
---|
6110 | |
---|
6111 | |
---|
6112 | |
---|
6113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
---|
6114 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
---|
6115 | if ${lt_cv_deplibs_check_method+:} false; then : |
---|
6116 | $as_echo_n "(cached) " >&6 |
---|
6117 | else |
---|
6118 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
6119 | lt_cv_file_magic_test_file= |
---|
6120 | lt_cv_deplibs_check_method='unknown' |
---|
6121 | # Need to set the preceding variable on all platforms that support |
---|
6122 | # interlibrary dependencies. |
---|
6123 | # 'none' -- dependencies not supported. |
---|
6124 | # 'unknown' -- same as none, but documents that we really don't know. |
---|
6125 | # 'pass_all' -- all dependencies passed with no checks. |
---|
6126 | # 'test_compile' -- check by making test program. |
---|
6127 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
6128 | # that responds to the $file_magic_cmd with a given extended regex. |
---|
6129 | # If you have 'file' or equivalent on your system and you're not sure |
---|
6130 | # whether 'pass_all' will *always* work, you probably want this one. |
---|
6131 | |
---|
6132 | case $host_os in |
---|
6133 | aix[4-9]*) |
---|
6134 | lt_cv_deplibs_check_method=pass_all |
---|
6135 | ;; |
---|
6136 | |
---|
6137 | beos*) |
---|
6138 | lt_cv_deplibs_check_method=pass_all |
---|
6139 | ;; |
---|
6140 | |
---|
6141 | bsdi[45]*) |
---|
6142 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
6143 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
6144 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
6145 | ;; |
---|
6146 | |
---|
6147 | cygwin*) |
---|
6148 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
6149 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
6150 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
6151 | ;; |
---|
6152 | |
---|
6153 | mingw* | pw32*) |
---|
6154 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
6155 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
---|
6156 | # unless we find 'file', for example because we are cross-compiling. |
---|
6157 | if ( file / ) >/dev/null 2>&1; then |
---|
6158 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
6159 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
6160 | else |
---|
6161 | # Keep this pattern in sync with the one in func_win32_libid. |
---|
6162 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
---|
6163 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
6164 | fi |
---|
6165 | ;; |
---|
6166 | |
---|
6167 | cegcc*) |
---|
6168 | # use the weaker test based on 'objdump'. See mingw*. |
---|
6169 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
---|
6170 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
6171 | ;; |
---|
6172 | |
---|
6173 | darwin* | rhapsody*) |
---|
6174 | lt_cv_deplibs_check_method=pass_all |
---|
6175 | ;; |
---|
6176 | |
---|
6177 | freebsd* | dragonfly*) |
---|
6178 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
---|
6179 | case $host_cpu in |
---|
6180 | i*86 ) |
---|
6181 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
6182 | # Let's accept both of them until this is cleared up. |
---|
6183 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
---|
6184 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
6185 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
6186 | ;; |
---|
6187 | esac |
---|
6188 | else |
---|
6189 | lt_cv_deplibs_check_method=pass_all |
---|
6190 | fi |
---|
6191 | ;; |
---|
6192 | |
---|
6193 | haiku*) |
---|
6194 | lt_cv_deplibs_check_method=pass_all |
---|
6195 | ;; |
---|
6196 | |
---|
6197 | hpux10.20* | hpux11*) |
---|
6198 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
6199 | case $host_cpu in |
---|
6200 | ia64*) |
---|
6201 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
---|
6202 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
6203 | ;; |
---|
6204 | hppa*64*) |
---|
6205 | 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]' |
---|
6206 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
6207 | ;; |
---|
6208 | *) |
---|
6209 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
---|
6210 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
6211 | ;; |
---|
6212 | esac |
---|
6213 | ;; |
---|
6214 | |
---|
6215 | interix[3-9]*) |
---|
6216 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
---|
6217 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
---|
6218 | ;; |
---|
6219 | |
---|
6220 | irix5* | irix6* | nonstopux*) |
---|
6221 | case $LD in |
---|
6222 | *-32|*"-32 ") libmagic=32-bit;; |
---|
6223 | *-n32|*"-n32 ") libmagic=N32;; |
---|
6224 | *-64|*"-64 ") libmagic=64-bit;; |
---|
6225 | *) libmagic=never-match;; |
---|
6226 | esac |
---|
6227 | lt_cv_deplibs_check_method=pass_all |
---|
6228 | ;; |
---|
6229 | |
---|
6230 | # This must be glibc/ELF. |
---|
6231 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
---|
6232 | lt_cv_deplibs_check_method=pass_all |
---|
6233 | ;; |
---|
6234 | |
---|
6235 | netbsd*) |
---|
6236 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
---|
6237 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
6238 | else |
---|
6239 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
---|
6240 | fi |
---|
6241 | ;; |
---|
6242 | |
---|
6243 | newos6*) |
---|
6244 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
6245 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
6246 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
6247 | ;; |
---|
6248 | |
---|
6249 | *nto* | *qnx*) |
---|
6250 | lt_cv_deplibs_check_method=pass_all |
---|
6251 | ;; |
---|
6252 | |
---|
6253 | openbsd* | bitrig*) |
---|
6254 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
---|
6255 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
---|
6256 | else |
---|
6257 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
6258 | fi |
---|
6259 | ;; |
---|
6260 | |
---|
6261 | osf3* | osf4* | osf5*) |
---|
6262 | lt_cv_deplibs_check_method=pass_all |
---|
6263 | ;; |
---|
6264 | |
---|
6265 | rdos*) |
---|
6266 | lt_cv_deplibs_check_method=pass_all |
---|
6267 | ;; |
---|
6268 | |
---|
6269 | solaris*) |
---|
6270 | lt_cv_deplibs_check_method=pass_all |
---|
6271 | ;; |
---|
6272 | |
---|
6273 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
6274 | lt_cv_deplibs_check_method=pass_all |
---|
6275 | ;; |
---|
6276 | |
---|
6277 | sysv4 | sysv4.3*) |
---|
6278 | case $host_vendor in |
---|
6279 | motorola) |
---|
6280 | 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]' |
---|
6281 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
6282 | ;; |
---|
6283 | ncr) |
---|
6284 | lt_cv_deplibs_check_method=pass_all |
---|
6285 | ;; |
---|
6286 | sequent) |
---|
6287 | lt_cv_file_magic_cmd='/bin/file' |
---|
6288 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
6289 | ;; |
---|
6290 | sni) |
---|
6291 | lt_cv_file_magic_cmd='/bin/file' |
---|
6292 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
6293 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
6294 | ;; |
---|
6295 | siemens) |
---|
6296 | lt_cv_deplibs_check_method=pass_all |
---|
6297 | ;; |
---|
6298 | pc) |
---|
6299 | lt_cv_deplibs_check_method=pass_all |
---|
6300 | ;; |
---|
6301 | esac |
---|
6302 | ;; |
---|
6303 | |
---|
6304 | tpf*) |
---|
6305 | lt_cv_deplibs_check_method=pass_all |
---|
6306 | ;; |
---|
6307 | os2*) |
---|
6308 | lt_cv_deplibs_check_method=pass_all |
---|
6309 | ;; |
---|
6310 | esac |
---|
6311 | |
---|
6312 | fi |
---|
6313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
---|
6314 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
---|
6315 | |
---|
6316 | file_magic_glob= |
---|
6317 | want_nocaseglob=no |
---|
6318 | if test "$build" = "$host"; then |
---|
6319 | case $host_os in |
---|
6320 | mingw* | pw32*) |
---|
6321 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
---|
6322 | want_nocaseglob=yes |
---|
6323 | else |
---|
6324 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
---|
6325 | fi |
---|
6326 | ;; |
---|
6327 | esac |
---|
6328 | fi |
---|
6329 | |
---|
6330 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
6331 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
6332 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
6333 | |
---|
6334 | |
---|
6335 | |
---|
6336 | |
---|
6337 | |
---|
6338 | |
---|
6339 | |
---|
6340 | |
---|
6341 | |
---|
6342 | |
---|
6343 | |
---|
6344 | |
---|
6345 | |
---|
6346 | |
---|
6347 | |
---|
6348 | |
---|
6349 | |
---|
6350 | |
---|
6351 | |
---|
6352 | |
---|
6353 | |
---|
6354 | |
---|
6355 | if test -n "$ac_tool_prefix"; then |
---|
6356 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
---|
6357 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
---|
6358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6359 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6360 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
---|
6361 | $as_echo_n "(cached) " >&6 |
---|
6362 | else |
---|
6363 | if test -n "$DLLTOOL"; then |
---|
6364 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
---|
6365 | else |
---|
6366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6367 | for as_dir in $PATH |
---|
6368 | do |
---|
6369 | IFS=$as_save_IFS |
---|
6370 | test -z "$as_dir" && as_dir=. |
---|
6371 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6372 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6373 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
---|
6374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6375 | break 2 |
---|
6376 | fi |
---|
6377 | done |
---|
6378 | done |
---|
6379 | IFS=$as_save_IFS |
---|
6380 | |
---|
6381 | fi |
---|
6382 | fi |
---|
6383 | DLLTOOL=$ac_cv_prog_DLLTOOL |
---|
6384 | if test -n "$DLLTOOL"; then |
---|
6385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
---|
6386 | $as_echo "$DLLTOOL" >&6; } |
---|
6387 | else |
---|
6388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6389 | $as_echo "no" >&6; } |
---|
6390 | fi |
---|
6391 | |
---|
6392 | |
---|
6393 | fi |
---|
6394 | if test -z "$ac_cv_prog_DLLTOOL"; then |
---|
6395 | ac_ct_DLLTOOL=$DLLTOOL |
---|
6396 | # Extract the first word of "dlltool", so it can be a program name with args. |
---|
6397 | set dummy dlltool; ac_word=$2 |
---|
6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6399 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6400 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
---|
6401 | $as_echo_n "(cached) " >&6 |
---|
6402 | else |
---|
6403 | if test -n "$ac_ct_DLLTOOL"; then |
---|
6404 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
---|
6405 | else |
---|
6406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6407 | for as_dir in $PATH |
---|
6408 | do |
---|
6409 | IFS=$as_save_IFS |
---|
6410 | test -z "$as_dir" && as_dir=. |
---|
6411 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6412 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6413 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
---|
6414 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6415 | break 2 |
---|
6416 | fi |
---|
6417 | done |
---|
6418 | done |
---|
6419 | IFS=$as_save_IFS |
---|
6420 | |
---|
6421 | fi |
---|
6422 | fi |
---|
6423 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
---|
6424 | if test -n "$ac_ct_DLLTOOL"; then |
---|
6425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
---|
6426 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
---|
6427 | else |
---|
6428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6429 | $as_echo "no" >&6; } |
---|
6430 | fi |
---|
6431 | |
---|
6432 | if test "x$ac_ct_DLLTOOL" = x; then |
---|
6433 | DLLTOOL="false" |
---|
6434 | else |
---|
6435 | case $cross_compiling:$ac_tool_warned in |
---|
6436 | yes:) |
---|
6437 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6438 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6439 | ac_tool_warned=yes ;; |
---|
6440 | esac |
---|
6441 | DLLTOOL=$ac_ct_DLLTOOL |
---|
6442 | fi |
---|
6443 | else |
---|
6444 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
---|
6445 | fi |
---|
6446 | |
---|
6447 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
6448 | |
---|
6449 | |
---|
6450 | |
---|
6451 | |
---|
6452 | |
---|
6453 | |
---|
6454 | |
---|
6455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
---|
6456 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
---|
6457 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
---|
6458 | $as_echo_n "(cached) " >&6 |
---|
6459 | else |
---|
6460 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
---|
6461 | |
---|
6462 | case $host_os in |
---|
6463 | cygwin* | mingw* | pw32* | cegcc*) |
---|
6464 | # two different shell functions defined in ltmain.sh; |
---|
6465 | # decide which one to use based on capabilities of $DLLTOOL |
---|
6466 | case `$DLLTOOL --help 2>&1` in |
---|
6467 | *--identify-strict*) |
---|
6468 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
---|
6469 | ;; |
---|
6470 | *) |
---|
6471 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
---|
6472 | ;; |
---|
6473 | esac |
---|
6474 | ;; |
---|
6475 | *) |
---|
6476 | # fallback: assume linklib IS sharedlib |
---|
6477 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
---|
6478 | ;; |
---|
6479 | esac |
---|
6480 | |
---|
6481 | fi |
---|
6482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
---|
6483 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
---|
6484 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
---|
6485 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
---|
6486 | |
---|
6487 | |
---|
6488 | |
---|
6489 | |
---|
6490 | |
---|
6491 | |
---|
6492 | |
---|
6493 | |
---|
6494 | if test -n "$ac_tool_prefix"; then |
---|
6495 | for ac_prog in ar |
---|
6496 | do |
---|
6497 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
6498 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
6499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6500 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6501 | if ${ac_cv_prog_AR+:} false; then : |
---|
6502 | $as_echo_n "(cached) " >&6 |
---|
6503 | else |
---|
6504 | if test -n "$AR"; then |
---|
6505 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
6506 | else |
---|
6507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6508 | for as_dir in $PATH |
---|
6509 | do |
---|
6510 | IFS=$as_save_IFS |
---|
6511 | test -z "$as_dir" && as_dir=. |
---|
6512 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6513 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6514 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
---|
6515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6516 | break 2 |
---|
6517 | fi |
---|
6518 | done |
---|
6519 | done |
---|
6520 | IFS=$as_save_IFS |
---|
6521 | |
---|
6522 | fi |
---|
6523 | fi |
---|
6524 | AR=$ac_cv_prog_AR |
---|
6525 | if test -n "$AR"; then |
---|
6526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
---|
6527 | $as_echo "$AR" >&6; } |
---|
6528 | else |
---|
6529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6530 | $as_echo "no" >&6; } |
---|
6531 | fi |
---|
6532 | |
---|
6533 | |
---|
6534 | test -n "$AR" && break |
---|
6535 | done |
---|
6536 | fi |
---|
6537 | if test -z "$AR"; then |
---|
6538 | ac_ct_AR=$AR |
---|
6539 | for ac_prog in ar |
---|
6540 | do |
---|
6541 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
6542 | set dummy $ac_prog; ac_word=$2 |
---|
6543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6544 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6545 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
---|
6546 | $as_echo_n "(cached) " >&6 |
---|
6547 | else |
---|
6548 | if test -n "$ac_ct_AR"; then |
---|
6549 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
---|
6550 | else |
---|
6551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6552 | for as_dir in $PATH |
---|
6553 | do |
---|
6554 | IFS=$as_save_IFS |
---|
6555 | test -z "$as_dir" && as_dir=. |
---|
6556 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6557 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6558 | ac_cv_prog_ac_ct_AR="$ac_prog" |
---|
6559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6560 | break 2 |
---|
6561 | fi |
---|
6562 | done |
---|
6563 | done |
---|
6564 | IFS=$as_save_IFS |
---|
6565 | |
---|
6566 | fi |
---|
6567 | fi |
---|
6568 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
---|
6569 | if test -n "$ac_ct_AR"; then |
---|
6570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
---|
6571 | $as_echo "$ac_ct_AR" >&6; } |
---|
6572 | else |
---|
6573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6574 | $as_echo "no" >&6; } |
---|
6575 | fi |
---|
6576 | |
---|
6577 | |
---|
6578 | test -n "$ac_ct_AR" && break |
---|
6579 | done |
---|
6580 | |
---|
6581 | if test "x$ac_ct_AR" = x; then |
---|
6582 | AR="false" |
---|
6583 | else |
---|
6584 | case $cross_compiling:$ac_tool_warned in |
---|
6585 | yes:) |
---|
6586 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6587 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6588 | ac_tool_warned=yes ;; |
---|
6589 | esac |
---|
6590 | AR=$ac_ct_AR |
---|
6591 | fi |
---|
6592 | fi |
---|
6593 | |
---|
6594 | : ${AR=ar} |
---|
6595 | : ${AR_FLAGS=cru} |
---|
6596 | |
---|
6597 | |
---|
6598 | |
---|
6599 | |
---|
6600 | |
---|
6601 | |
---|
6602 | |
---|
6603 | |
---|
6604 | |
---|
6605 | |
---|
6606 | |
---|
6607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
---|
6608 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
---|
6609 | if ${lt_cv_ar_at_file+:} false; then : |
---|
6610 | $as_echo_n "(cached) " >&6 |
---|
6611 | else |
---|
6612 | lt_cv_ar_at_file=no |
---|
6613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6614 | /* end confdefs.h. */ |
---|
6615 | |
---|
6616 | int |
---|
6617 | main () |
---|
6618 | { |
---|
6619 | |
---|
6620 | ; |
---|
6621 | return 0; |
---|
6622 | } |
---|
6623 | _ACEOF |
---|
6624 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
6625 | echo conftest.$ac_objext > conftest.lst |
---|
6626 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
---|
6627 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
---|
6628 | (eval $lt_ar_try) 2>&5 |
---|
6629 | ac_status=$? |
---|
6630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
6631 | test $ac_status = 0; } |
---|
6632 | if test 0 -eq "$ac_status"; then |
---|
6633 | # Ensure the archiver fails upon bogus file names. |
---|
6634 | rm -f conftest.$ac_objext libconftest.a |
---|
6635 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
---|
6636 | (eval $lt_ar_try) 2>&5 |
---|
6637 | ac_status=$? |
---|
6638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
6639 | test $ac_status = 0; } |
---|
6640 | if test 0 -ne "$ac_status"; then |
---|
6641 | lt_cv_ar_at_file=@ |
---|
6642 | fi |
---|
6643 | fi |
---|
6644 | rm -f conftest.* libconftest.a |
---|
6645 | |
---|
6646 | fi |
---|
6647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6648 | |
---|
6649 | fi |
---|
6650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
---|
6651 | $as_echo "$lt_cv_ar_at_file" >&6; } |
---|
6652 | |
---|
6653 | if test no = "$lt_cv_ar_at_file"; then |
---|
6654 | archiver_list_spec= |
---|
6655 | else |
---|
6656 | archiver_list_spec=$lt_cv_ar_at_file |
---|
6657 | fi |
---|
6658 | |
---|
6659 | |
---|
6660 | |
---|
6661 | |
---|
6662 | |
---|
6663 | |
---|
6664 | |
---|
6665 | if test -n "$ac_tool_prefix"; then |
---|
6666 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
6667 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
6668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6669 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6670 | if ${ac_cv_prog_STRIP+:} false; then : |
---|
6671 | $as_echo_n "(cached) " >&6 |
---|
6672 | else |
---|
6673 | if test -n "$STRIP"; then |
---|
6674 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
6675 | else |
---|
6676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6677 | for as_dir in $PATH |
---|
6678 | do |
---|
6679 | IFS=$as_save_IFS |
---|
6680 | test -z "$as_dir" && as_dir=. |
---|
6681 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6682 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6683 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
6684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6685 | break 2 |
---|
6686 | fi |
---|
6687 | done |
---|
6688 | done |
---|
6689 | IFS=$as_save_IFS |
---|
6690 | |
---|
6691 | fi |
---|
6692 | fi |
---|
6693 | STRIP=$ac_cv_prog_STRIP |
---|
6694 | if test -n "$STRIP"; then |
---|
6695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
---|
6696 | $as_echo "$STRIP" >&6; } |
---|
6697 | else |
---|
6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6699 | $as_echo "no" >&6; } |
---|
6700 | fi |
---|
6701 | |
---|
6702 | |
---|
6703 | fi |
---|
6704 | if test -z "$ac_cv_prog_STRIP"; then |
---|
6705 | ac_ct_STRIP=$STRIP |
---|
6706 | # Extract the first word of "strip", so it can be a program name with args. |
---|
6707 | set dummy strip; ac_word=$2 |
---|
6708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6709 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6710 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
---|
6711 | $as_echo_n "(cached) " >&6 |
---|
6712 | else |
---|
6713 | if test -n "$ac_ct_STRIP"; then |
---|
6714 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
6715 | else |
---|
6716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6717 | for as_dir in $PATH |
---|
6718 | do |
---|
6719 | IFS=$as_save_IFS |
---|
6720 | test -z "$as_dir" && as_dir=. |
---|
6721 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6722 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6723 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
6724 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6725 | break 2 |
---|
6726 | fi |
---|
6727 | done |
---|
6728 | done |
---|
6729 | IFS=$as_save_IFS |
---|
6730 | |
---|
6731 | fi |
---|
6732 | fi |
---|
6733 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
6734 | if test -n "$ac_ct_STRIP"; then |
---|
6735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
---|
6736 | $as_echo "$ac_ct_STRIP" >&6; } |
---|
6737 | else |
---|
6738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6739 | $as_echo "no" >&6; } |
---|
6740 | fi |
---|
6741 | |
---|
6742 | if test "x$ac_ct_STRIP" = x; then |
---|
6743 | STRIP=":" |
---|
6744 | else |
---|
6745 | case $cross_compiling:$ac_tool_warned in |
---|
6746 | yes:) |
---|
6747 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6748 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6749 | ac_tool_warned=yes ;; |
---|
6750 | esac |
---|
6751 | STRIP=$ac_ct_STRIP |
---|
6752 | fi |
---|
6753 | else |
---|
6754 | STRIP="$ac_cv_prog_STRIP" |
---|
6755 | fi |
---|
6756 | |
---|
6757 | test -z "$STRIP" && STRIP=: |
---|
6758 | |
---|
6759 | |
---|
6760 | |
---|
6761 | |
---|
6762 | |
---|
6763 | |
---|
6764 | if test -n "$ac_tool_prefix"; then |
---|
6765 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
6766 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
6767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6768 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6769 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
6770 | $as_echo_n "(cached) " >&6 |
---|
6771 | else |
---|
6772 | if test -n "$RANLIB"; then |
---|
6773 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
6774 | else |
---|
6775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6776 | for as_dir in $PATH |
---|
6777 | do |
---|
6778 | IFS=$as_save_IFS |
---|
6779 | test -z "$as_dir" && as_dir=. |
---|
6780 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6781 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6782 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
6783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6784 | break 2 |
---|
6785 | fi |
---|
6786 | done |
---|
6787 | done |
---|
6788 | IFS=$as_save_IFS |
---|
6789 | |
---|
6790 | fi |
---|
6791 | fi |
---|
6792 | RANLIB=$ac_cv_prog_RANLIB |
---|
6793 | if test -n "$RANLIB"; then |
---|
6794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
6795 | $as_echo "$RANLIB" >&6; } |
---|
6796 | else |
---|
6797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6798 | $as_echo "no" >&6; } |
---|
6799 | fi |
---|
6800 | |
---|
6801 | |
---|
6802 | fi |
---|
6803 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
6804 | ac_ct_RANLIB=$RANLIB |
---|
6805 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
6806 | set dummy ranlib; ac_word=$2 |
---|
6807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6808 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6809 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
6810 | $as_echo_n "(cached) " >&6 |
---|
6811 | else |
---|
6812 | if test -n "$ac_ct_RANLIB"; then |
---|
6813 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
6814 | else |
---|
6815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6816 | for as_dir in $PATH |
---|
6817 | do |
---|
6818 | IFS=$as_save_IFS |
---|
6819 | test -z "$as_dir" && as_dir=. |
---|
6820 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6821 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6822 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
6823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6824 | break 2 |
---|
6825 | fi |
---|
6826 | done |
---|
6827 | done |
---|
6828 | IFS=$as_save_IFS |
---|
6829 | |
---|
6830 | fi |
---|
6831 | fi |
---|
6832 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
6833 | if test -n "$ac_ct_RANLIB"; then |
---|
6834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
6835 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
6836 | else |
---|
6837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6838 | $as_echo "no" >&6; } |
---|
6839 | fi |
---|
6840 | |
---|
6841 | if test "x$ac_ct_RANLIB" = x; then |
---|
6842 | RANLIB=":" |
---|
6843 | else |
---|
6844 | case $cross_compiling:$ac_tool_warned in |
---|
6845 | yes:) |
---|
6846 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6847 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6848 | ac_tool_warned=yes ;; |
---|
6849 | esac |
---|
6850 | RANLIB=$ac_ct_RANLIB |
---|
6851 | fi |
---|
6852 | else |
---|
6853 | RANLIB="$ac_cv_prog_RANLIB" |
---|
6854 | fi |
---|
6855 | |
---|
6856 | test -z "$RANLIB" && RANLIB=: |
---|
6857 | |
---|
6858 | |
---|
6859 | |
---|
6860 | |
---|
6861 | |
---|
6862 | |
---|
6863 | # Determine commands to create old-style static archives. |
---|
6864 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
---|
6865 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
6866 | old_postuninstall_cmds= |
---|
6867 | |
---|
6868 | if test -n "$RANLIB"; then |
---|
6869 | case $host_os in |
---|
6870 | bitrig* | openbsd*) |
---|
6871 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
---|
6872 | ;; |
---|
6873 | *) |
---|
6874 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
---|
6875 | ;; |
---|
6876 | esac |
---|
6877 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
---|
6878 | fi |
---|
6879 | |
---|
6880 | case $host_os in |
---|
6881 | darwin*) |
---|
6882 | lock_old_archive_extraction=yes ;; |
---|
6883 | *) |
---|
6884 | lock_old_archive_extraction=no ;; |
---|
6885 | esac |
---|
6886 | |
---|
6887 | |
---|
6888 | |
---|
6889 | |
---|
6890 | |
---|
6891 | |
---|
6892 | |
---|
6893 | |
---|
6894 | |
---|
6895 | |
---|
6896 | |
---|
6897 | |
---|
6898 | |
---|
6899 | |
---|
6900 | |
---|
6901 | |
---|
6902 | |
---|
6903 | |
---|
6904 | |
---|
6905 | |
---|
6906 | |
---|
6907 | |
---|
6908 | |
---|
6909 | |
---|
6910 | |
---|
6911 | |
---|
6912 | |
---|
6913 | |
---|
6914 | |
---|
6915 | |
---|
6916 | |
---|
6917 | |
---|
6918 | |
---|
6919 | |
---|
6920 | |
---|
6921 | |
---|
6922 | |
---|
6923 | |
---|
6924 | |
---|
6925 | # If no C compiler was specified, use CC. |
---|
6926 | LTCC=${LTCC-"$CC"} |
---|
6927 | |
---|
6928 | # If no C compiler flags were specified, use CFLAGS. |
---|
6929 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
6930 | |
---|
6931 | # Allow CC to be a program name with arguments. |
---|
6932 | compiler=$CC |
---|
6933 | |
---|
6934 | |
---|
6935 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
6936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
---|
6937 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
---|
6938 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
---|
6939 | $as_echo_n "(cached) " >&6 |
---|
6940 | else |
---|
6941 | |
---|
6942 | # These are sane defaults that work on at least a few old systems. |
---|
6943 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
6944 | |
---|
6945 | # Character class describing NM global symbol codes. |
---|
6946 | symcode='[BCDEGRST]' |
---|
6947 | |
---|
6948 | # Regexp to match symbols that can be accessed directly from C. |
---|
6949 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
---|
6950 | |
---|
6951 | # Define system-specific variables. |
---|
6952 | case $host_os in |
---|
6953 | aix*) |
---|
6954 | symcode='[BCDT]' |
---|
6955 | ;; |
---|
6956 | cygwin* | mingw* | pw32* | cegcc*) |
---|
6957 | symcode='[ABCDGISTW]' |
---|
6958 | ;; |
---|
6959 | hpux*) |
---|
6960 | if test ia64 = "$host_cpu"; then |
---|
6961 | symcode='[ABCDEGRST]' |
---|
6962 | fi |
---|
6963 | ;; |
---|
6964 | irix* | nonstopux*) |
---|
6965 | symcode='[BCDEGRST]' |
---|
6966 | ;; |
---|
6967 | osf*) |
---|
6968 | symcode='[BCDEGQRST]' |
---|
6969 | ;; |
---|
6970 | solaris*) |
---|
6971 | symcode='[BDRT]' |
---|
6972 | ;; |
---|
6973 | sco3.2v5*) |
---|
6974 | symcode='[DT]' |
---|
6975 | ;; |
---|
6976 | sysv4.2uw2*) |
---|
6977 | symcode='[DT]' |
---|
6978 | ;; |
---|
6979 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
---|
6980 | symcode='[ABDT]' |
---|
6981 | ;; |
---|
6982 | sysv4) |
---|
6983 | symcode='[DFNSTU]' |
---|
6984 | ;; |
---|
6985 | esac |
---|
6986 | |
---|
6987 | # If we're using GNU nm, then use its standard symbol codes. |
---|
6988 | case `$NM -V 2>&1` in |
---|
6989 | *GNU* | *'with BFD'*) |
---|
6990 | symcode='[ABCDGIRSTW]' ;; |
---|
6991 | esac |
---|
6992 | |
---|
6993 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
---|
6994 | # Gets list of data symbols to import. |
---|
6995 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
---|
6996 | # Adjust the below global symbol transforms to fixup imported variables. |
---|
6997 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
---|
6998 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
---|
6999 | lt_c_name_lib_hook="\ |
---|
7000 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
---|
7001 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
---|
7002 | else |
---|
7003 | # Disable hooks by default. |
---|
7004 | lt_cv_sys_global_symbol_to_import= |
---|
7005 | lt_cdecl_hook= |
---|
7006 | lt_c_name_hook= |
---|
7007 | lt_c_name_lib_hook= |
---|
7008 | fi |
---|
7009 | |
---|
7010 | # Transform an extracted symbol line into a proper C declaration. |
---|
7011 | # Some systems (esp. on ia64) link data and code symbols differently, |
---|
7012 | # so use this general approach. |
---|
7013 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
---|
7014 | $lt_cdecl_hook\ |
---|
7015 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
---|
7016 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
7017 | |
---|
7018 | # Transform an extracted symbol line into symbol name and symbol address |
---|
7019 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
---|
7020 | $lt_c_name_hook\ |
---|
7021 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
---|
7022 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
---|
7023 | |
---|
7024 | # Transform an extracted symbol line into symbol name with lib prefix and |
---|
7025 | # symbol address. |
---|
7026 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
---|
7027 | $lt_c_name_lib_hook\ |
---|
7028 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
---|
7029 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
---|
7030 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
---|
7031 | |
---|
7032 | # Handle CRLF in mingw tool chain |
---|
7033 | opt_cr= |
---|
7034 | case $build_os in |
---|
7035 | mingw*) |
---|
7036 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
7037 | ;; |
---|
7038 | esac |
---|
7039 | |
---|
7040 | # Try without a prefix underscore, then with it. |
---|
7041 | for ac_symprfx in "" "_"; do |
---|
7042 | |
---|
7043 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
---|
7044 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
---|
7045 | |
---|
7046 | # Write the raw and C identifiers. |
---|
7047 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
---|
7048 | # Fake it for dumpbin and say T for any non-static function, |
---|
7049 | # D for any global variable and I for any imported variable. |
---|
7050 | # Also find C++ and __fastcall symbols from MSVC++, |
---|
7051 | # which start with @ or ?. |
---|
7052 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
---|
7053 | " {last_section=section; section=\$ 3};"\ |
---|
7054 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
---|
7055 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
---|
7056 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
---|
7057 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
---|
7058 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
---|
7059 | " \$ 0!~/External *\|/{next};"\ |
---|
7060 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
---|
7061 | " {if(hide[section]) next};"\ |
---|
7062 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
---|
7063 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
---|
7064 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
---|
7065 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
---|
7066 | " ' prfx=^$ac_symprfx" |
---|
7067 | else |
---|
7068 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
---|
7069 | fi |
---|
7070 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
---|
7071 | |
---|
7072 | # Check to see that the pipe works correctly. |
---|
7073 | pipe_works=no |
---|
7074 | |
---|
7075 | rm -f conftest* |
---|
7076 | cat > conftest.$ac_ext <<_LT_EOF |
---|
7077 | #ifdef __cplusplus |
---|
7078 | extern "C" { |
---|
7079 | #endif |
---|
7080 | char nm_test_var; |
---|
7081 | void nm_test_func(void); |
---|
7082 | void nm_test_func(void){} |
---|
7083 | #ifdef __cplusplus |
---|
7084 | } |
---|
7085 | #endif |
---|
7086 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
7087 | _LT_EOF |
---|
7088 | |
---|
7089 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
7090 | (eval $ac_compile) 2>&5 |
---|
7091 | ac_status=$? |
---|
7092 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7093 | test $ac_status = 0; }; then |
---|
7094 | # Now try to grab the symbols. |
---|
7095 | nlist=conftest.nm |
---|
7096 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
---|
7097 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
---|
7098 | ac_status=$? |
---|
7099 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7100 | test $ac_status = 0; } && test -s "$nlist"; then |
---|
7101 | # Try sorting and uniquifying the output. |
---|
7102 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
7103 | mv -f "$nlist"T "$nlist" |
---|
7104 | else |
---|
7105 | rm -f "$nlist"T |
---|
7106 | fi |
---|
7107 | |
---|
7108 | # Make sure that we snagged all the symbols we need. |
---|
7109 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
---|
7110 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
---|
7111 | cat <<_LT_EOF > conftest.$ac_ext |
---|
7112 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
---|
7113 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
---|
7114 | /* DATA imports from DLLs on WIN32 can't be const, because runtime |
---|
7115 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
---|
7116 | # define LT_DLSYM_CONST |
---|
7117 | #elif defined __osf__ |
---|
7118 | /* This system does not cope well with relocations in const data. */ |
---|
7119 | # define LT_DLSYM_CONST |
---|
7120 | #else |
---|
7121 | # define LT_DLSYM_CONST const |
---|
7122 | #endif |
---|
7123 | |
---|
7124 | #ifdef __cplusplus |
---|
7125 | extern "C" { |
---|
7126 | #endif |
---|
7127 | |
---|
7128 | _LT_EOF |
---|
7129 | # Now generate the symbol file. |
---|
7130 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
---|
7131 | |
---|
7132 | cat <<_LT_EOF >> conftest.$ac_ext |
---|
7133 | |
---|
7134 | /* The mapping between symbol names and symbols. */ |
---|
7135 | LT_DLSYM_CONST struct { |
---|
7136 | const char *name; |
---|
7137 | void *address; |
---|
7138 | } |
---|
7139 | lt__PROGRAM__LTX_preloaded_symbols[] = |
---|
7140 | { |
---|
7141 | { "@PROGRAM@", (void *) 0 }, |
---|
7142 | _LT_EOF |
---|
7143 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
---|
7144 | cat <<\_LT_EOF >> conftest.$ac_ext |
---|
7145 | {0, (void *) 0} |
---|
7146 | }; |
---|
7147 | |
---|
7148 | /* This works around a problem in FreeBSD linker */ |
---|
7149 | #ifdef FREEBSD_WORKAROUND |
---|
7150 | static const void *lt_preloaded_setup() { |
---|
7151 | return lt__PROGRAM__LTX_preloaded_symbols; |
---|
7152 | } |
---|
7153 | #endif |
---|
7154 | |
---|
7155 | #ifdef __cplusplus |
---|
7156 | } |
---|
7157 | #endif |
---|
7158 | _LT_EOF |
---|
7159 | # Now try linking the two files. |
---|
7160 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
7161 | lt_globsym_save_LIBS=$LIBS |
---|
7162 | lt_globsym_save_CFLAGS=$CFLAGS |
---|
7163 | LIBS=conftstm.$ac_objext |
---|
7164 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
---|
7165 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
---|
7166 | (eval $ac_link) 2>&5 |
---|
7167 | ac_status=$? |
---|
7168 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7169 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
---|
7170 | pipe_works=yes |
---|
7171 | fi |
---|
7172 | LIBS=$lt_globsym_save_LIBS |
---|
7173 | CFLAGS=$lt_globsym_save_CFLAGS |
---|
7174 | else |
---|
7175 | echo "cannot find nm_test_func in $nlist" >&5 |
---|
7176 | fi |
---|
7177 | else |
---|
7178 | echo "cannot find nm_test_var in $nlist" >&5 |
---|
7179 | fi |
---|
7180 | else |
---|
7181 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
---|
7182 | fi |
---|
7183 | else |
---|
7184 | echo "$progname: failed program was:" >&5 |
---|
7185 | cat conftest.$ac_ext >&5 |
---|
7186 | fi |
---|
7187 | rm -rf conftest* conftst* |
---|
7188 | |
---|
7189 | # Do not use the global_symbol_pipe unless it works. |
---|
7190 | if test yes = "$pipe_works"; then |
---|
7191 | break |
---|
7192 | else |
---|
7193 | lt_cv_sys_global_symbol_pipe= |
---|
7194 | fi |
---|
7195 | done |
---|
7196 | |
---|
7197 | fi |
---|
7198 | |
---|
7199 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
7200 | lt_cv_sys_global_symbol_to_cdecl= |
---|
7201 | fi |
---|
7202 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
---|
7203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
---|
7204 | $as_echo "failed" >&6; } |
---|
7205 | else |
---|
7206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
---|
7207 | $as_echo "ok" >&6; } |
---|
7208 | fi |
---|
7209 | |
---|
7210 | # Response file support. |
---|
7211 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
---|
7212 | nm_file_list_spec='@' |
---|
7213 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
---|
7214 | nm_file_list_spec='@' |
---|
7215 | fi |
---|
7216 | |
---|
7217 | |
---|
7218 | |
---|
7219 | |
---|
7220 | |
---|
7221 | |
---|
7222 | |
---|
7223 | |
---|
7224 | |
---|
7225 | |
---|
7226 | |
---|
7227 | |
---|
7228 | |
---|
7229 | |
---|
7230 | |
---|
7231 | |
---|
7232 | |
---|
7233 | |
---|
7234 | |
---|
7235 | |
---|
7236 | |
---|
7237 | |
---|
7238 | |
---|
7239 | |
---|
7240 | |
---|
7241 | |
---|
7242 | |
---|
7243 | |
---|
7244 | |
---|
7245 | |
---|
7246 | |
---|
7247 | |
---|
7248 | |
---|
7249 | |
---|
7250 | |
---|
7251 | |
---|
7252 | |
---|
7253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
---|
7254 | $as_echo_n "checking for sysroot... " >&6; } |
---|
7255 | |
---|
7256 | # Check whether --with-sysroot was given. |
---|
7257 | if test "${with_sysroot+set}" = set; then : |
---|
7258 | withval=$with_sysroot; |
---|
7259 | else |
---|
7260 | with_sysroot=no |
---|
7261 | fi |
---|
7262 | |
---|
7263 | |
---|
7264 | lt_sysroot= |
---|
7265 | case $with_sysroot in #( |
---|
7266 | yes) |
---|
7267 | if test yes = "$GCC"; then |
---|
7268 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
---|
7269 | fi |
---|
7270 | ;; #( |
---|
7271 | /*) |
---|
7272 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
---|
7273 | ;; #( |
---|
7274 | no|'') |
---|
7275 | ;; #( |
---|
7276 | *) |
---|
7277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
---|
7278 | $as_echo "$with_sysroot" >&6; } |
---|
7279 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
---|
7280 | ;; |
---|
7281 | esac |
---|
7282 | |
---|
7283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
---|
7284 | $as_echo "${lt_sysroot:-no}" >&6; } |
---|
7285 | |
---|
7286 | |
---|
7287 | |
---|
7288 | |
---|
7289 | |
---|
7290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
---|
7291 | $as_echo_n "checking for a working dd... " >&6; } |
---|
7292 | if ${ac_cv_path_lt_DD+:} false; then : |
---|
7293 | $as_echo_n "(cached) " >&6 |
---|
7294 | else |
---|
7295 | printf 0123456789abcdef0123456789abcdef >conftest.i |
---|
7296 | cat conftest.i conftest.i >conftest2.i |
---|
7297 | : ${lt_DD:=$DD} |
---|
7298 | if test -z "$lt_DD"; then |
---|
7299 | ac_path_lt_DD_found=false |
---|
7300 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
7301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7302 | for as_dir in $PATH |
---|
7303 | do |
---|
7304 | IFS=$as_save_IFS |
---|
7305 | test -z "$as_dir" && as_dir=. |
---|
7306 | for ac_prog in dd; do |
---|
7307 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7308 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" |
---|
7309 | as_fn_executable_p "$ac_path_lt_DD" || continue |
---|
7310 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
---|
7311 | cmp -s conftest.i conftest.out \ |
---|
7312 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
---|
7313 | fi |
---|
7314 | $ac_path_lt_DD_found && break 3 |
---|
7315 | done |
---|
7316 | done |
---|
7317 | done |
---|
7318 | IFS=$as_save_IFS |
---|
7319 | if test -z "$ac_cv_path_lt_DD"; then |
---|
7320 | : |
---|
7321 | fi |
---|
7322 | else |
---|
7323 | ac_cv_path_lt_DD=$lt_DD |
---|
7324 | fi |
---|
7325 | |
---|
7326 | rm -f conftest.i conftest2.i conftest.out |
---|
7327 | fi |
---|
7328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
---|
7329 | $as_echo "$ac_cv_path_lt_DD" >&6; } |
---|
7330 | |
---|
7331 | |
---|
7332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
---|
7333 | $as_echo_n "checking how to truncate binary pipes... " >&6; } |
---|
7334 | if ${lt_cv_truncate_bin+:} false; then : |
---|
7335 | $as_echo_n "(cached) " >&6 |
---|
7336 | else |
---|
7337 | printf 0123456789abcdef0123456789abcdef >conftest.i |
---|
7338 | cat conftest.i conftest.i >conftest2.i |
---|
7339 | lt_cv_truncate_bin= |
---|
7340 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
---|
7341 | cmp -s conftest.i conftest.out \ |
---|
7342 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
---|
7343 | fi |
---|
7344 | rm -f conftest.i conftest2.i conftest.out |
---|
7345 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
---|
7346 | fi |
---|
7347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
---|
7348 | $as_echo "$lt_cv_truncate_bin" >&6; } |
---|
7349 | |
---|
7350 | |
---|
7351 | |
---|
7352 | |
---|
7353 | |
---|
7354 | |
---|
7355 | |
---|
7356 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
---|
7357 | func_cc_basename () |
---|
7358 | { |
---|
7359 | for cc_temp in $*""; do |
---|
7360 | case $cc_temp in |
---|
7361 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
7362 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
7363 | \-*) ;; |
---|
7364 | *) break;; |
---|
7365 | esac |
---|
7366 | done |
---|
7367 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
---|
7368 | } |
---|
7369 | |
---|
7370 | |
---|
7371 | # Check whether --enable-libtool-lock was given. |
---|
7372 | if test "${enable_libtool_lock+set}" = set; then : |
---|
7373 | enableval=$enable_libtool_lock; |
---|
7374 | fi |
---|
7375 | |
---|
7376 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
---|
7377 | |
---|
7378 | # Some flags need to be propagated to the compiler or linker for good |
---|
7379 | # libtool support. |
---|
7380 | case $host in |
---|
7381 | ia64-*-hpux*) |
---|
7382 | # Find out what ABI is being produced by ac_compile, and set mode |
---|
7383 | # options accordingly. |
---|
7384 | echo 'int i;' > conftest.$ac_ext |
---|
7385 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
7386 | (eval $ac_compile) 2>&5 |
---|
7387 | ac_status=$? |
---|
7388 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7389 | test $ac_status = 0; }; then |
---|
7390 | case `/usr/bin/file conftest.$ac_objext` in |
---|
7391 | *ELF-32*) |
---|
7392 | HPUX_IA64_MODE=32 |
---|
7393 | ;; |
---|
7394 | *ELF-64*) |
---|
7395 | HPUX_IA64_MODE=64 |
---|
7396 | ;; |
---|
7397 | esac |
---|
7398 | fi |
---|
7399 | rm -rf conftest* |
---|
7400 | ;; |
---|
7401 | *-*-irix6*) |
---|
7402 | # Find out what ABI is being produced by ac_compile, and set linker |
---|
7403 | # options accordingly. |
---|
7404 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
---|
7405 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
7406 | (eval $ac_compile) 2>&5 |
---|
7407 | ac_status=$? |
---|
7408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7409 | test $ac_status = 0; }; then |
---|
7410 | if test yes = "$lt_cv_prog_gnu_ld"; then |
---|
7411 | case `/usr/bin/file conftest.$ac_objext` in |
---|
7412 | *32-bit*) |
---|
7413 | LD="${LD-ld} -melf32bsmip" |
---|
7414 | ;; |
---|
7415 | *N32*) |
---|
7416 | LD="${LD-ld} -melf32bmipn32" |
---|
7417 | ;; |
---|
7418 | *64-bit*) |
---|
7419 | LD="${LD-ld} -melf64bmip" |
---|
7420 | ;; |
---|
7421 | esac |
---|
7422 | else |
---|
7423 | case `/usr/bin/file conftest.$ac_objext` in |
---|
7424 | *32-bit*) |
---|
7425 | LD="${LD-ld} -32" |
---|
7426 | ;; |
---|
7427 | *N32*) |
---|
7428 | LD="${LD-ld} -n32" |
---|
7429 | ;; |
---|
7430 | *64-bit*) |
---|
7431 | LD="${LD-ld} -64" |
---|
7432 | ;; |
---|
7433 | esac |
---|
7434 | fi |
---|
7435 | fi |
---|
7436 | rm -rf conftest* |
---|
7437 | ;; |
---|
7438 | |
---|
7439 | mips64*-*linux*) |
---|
7440 | # Find out what ABI is being produced by ac_compile, and set linker |
---|
7441 | # options accordingly. |
---|
7442 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
---|
7443 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
7444 | (eval $ac_compile) 2>&5 |
---|
7445 | ac_status=$? |
---|
7446 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7447 | test $ac_status = 0; }; then |
---|
7448 | emul=elf |
---|
7449 | case `/usr/bin/file conftest.$ac_objext` in |
---|
7450 | *32-bit*) |
---|
7451 | emul="${emul}32" |
---|
7452 | ;; |
---|
7453 | *64-bit*) |
---|
7454 | emul="${emul}64" |
---|
7455 | ;; |
---|
7456 | esac |
---|
7457 | case `/usr/bin/file conftest.$ac_objext` in |
---|
7458 | *MSB*) |
---|
7459 | emul="${emul}btsmip" |
---|
7460 | ;; |
---|
7461 | *LSB*) |
---|
7462 | emul="${emul}ltsmip" |
---|
7463 | ;; |
---|
7464 | esac |
---|
7465 | case `/usr/bin/file conftest.$ac_objext` in |
---|
7466 | *N32*) |
---|
7467 | emul="${emul}n32" |
---|
7468 | ;; |
---|
7469 | esac |
---|
7470 | LD="${LD-ld} -m $emul" |
---|
7471 | fi |
---|
7472 | rm -rf conftest* |
---|
7473 | ;; |
---|
7474 | |
---|
7475 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
---|
7476 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
---|
7477 | # Find out what ABI is being produced by ac_compile, and set linker |
---|
7478 | # options accordingly. Note that the listed cases only cover the |
---|
7479 | # situations where additional linker options are needed (such as when |
---|
7480 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or |
---|
7481 | # vice versa); the common cases where no linker options are needed do |
---|
7482 | # not appear in the list. |
---|
7483 | echo 'int i;' > conftest.$ac_ext |
---|
7484 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
7485 | (eval $ac_compile) 2>&5 |
---|
7486 | ac_status=$? |
---|
7487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7488 | test $ac_status = 0; }; then |
---|
7489 | case `/usr/bin/file conftest.o` in |
---|
7490 | *32-bit*) |
---|
7491 | case $host in |
---|
7492 | x86_64-*kfreebsd*-gnu) |
---|
7493 | LD="${LD-ld} -m elf_i386_fbsd" |
---|
7494 | ;; |
---|
7495 | x86_64-*linux*) |
---|
7496 | case `/usr/bin/file conftest.o` in |
---|
7497 | *x86-64*) |
---|
7498 | LD="${LD-ld} -m elf32_x86_64" |
---|
7499 | ;; |
---|
7500 | *) |
---|
7501 | LD="${LD-ld} -m elf_i386" |
---|
7502 | ;; |
---|
7503 | esac |
---|
7504 | ;; |
---|
7505 | powerpc64le-*linux*) |
---|
7506 | LD="${LD-ld} -m elf32lppclinux" |
---|
7507 | ;; |
---|
7508 | powerpc64-*linux*) |
---|
7509 | LD="${LD-ld} -m elf32ppclinux" |
---|
7510 | ;; |
---|
7511 | s390x-*linux*) |
---|
7512 | LD="${LD-ld} -m elf_s390" |
---|
7513 | ;; |
---|
7514 | sparc64-*linux*) |
---|
7515 | LD="${LD-ld} -m elf32_sparc" |
---|
7516 | ;; |
---|
7517 | esac |
---|
7518 | ;; |
---|
7519 | *64-bit*) |
---|
7520 | case $host in |
---|
7521 | x86_64-*kfreebsd*-gnu) |
---|
7522 | LD="${LD-ld} -m elf_x86_64_fbsd" |
---|
7523 | ;; |
---|
7524 | x86_64-*linux*) |
---|
7525 | LD="${LD-ld} -m elf_x86_64" |
---|
7526 | ;; |
---|
7527 | powerpcle-*linux*) |
---|
7528 | LD="${LD-ld} -m elf64lppc" |
---|
7529 | ;; |
---|
7530 | powerpc-*linux*) |
---|
7531 | LD="${LD-ld} -m elf64ppc" |
---|
7532 | ;; |
---|
7533 | s390*-*linux*|s390*-*tpf*) |
---|
7534 | LD="${LD-ld} -m elf64_s390" |
---|
7535 | ;; |
---|
7536 | sparc*-*linux*) |
---|
7537 | LD="${LD-ld} -m elf64_sparc" |
---|
7538 | ;; |
---|
7539 | esac |
---|
7540 | ;; |
---|
7541 | esac |
---|
7542 | fi |
---|
7543 | rm -rf conftest* |
---|
7544 | ;; |
---|
7545 | |
---|
7546 | *-*-sco3.2v5*) |
---|
7547 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
7548 | SAVE_CFLAGS=$CFLAGS |
---|
7549 | CFLAGS="$CFLAGS -belf" |
---|
7550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
---|
7551 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
---|
7552 | if ${lt_cv_cc_needs_belf+:} false; then : |
---|
7553 | $as_echo_n "(cached) " >&6 |
---|
7554 | else |
---|
7555 | ac_ext=c |
---|
7556 | ac_cpp='$CPP $CPPFLAGS' |
---|
7557 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7558 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7559 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7560 | |
---|
7561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7562 | /* end confdefs.h. */ |
---|
7563 | |
---|
7564 | int |
---|
7565 | main () |
---|
7566 | { |
---|
7567 | |
---|
7568 | ; |
---|
7569 | return 0; |
---|
7570 | } |
---|
7571 | _ACEOF |
---|
7572 | if ac_fn_c_try_link "$LINENO"; then : |
---|
7573 | lt_cv_cc_needs_belf=yes |
---|
7574 | else |
---|
7575 | lt_cv_cc_needs_belf=no |
---|
7576 | fi |
---|
7577 | rm -f core conftest.err conftest.$ac_objext \ |
---|
7578 | conftest$ac_exeext conftest.$ac_ext |
---|
7579 | ac_ext=c |
---|
7580 | ac_cpp='$CPP $CPPFLAGS' |
---|
7581 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7582 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7583 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7584 | |
---|
7585 | fi |
---|
7586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
---|
7587 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
---|
7588 | if test yes != "$lt_cv_cc_needs_belf"; then |
---|
7589 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
7590 | CFLAGS=$SAVE_CFLAGS |
---|
7591 | fi |
---|
7592 | ;; |
---|
7593 | *-*solaris*) |
---|
7594 | # Find out what ABI is being produced by ac_compile, and set linker |
---|
7595 | # options accordingly. |
---|
7596 | echo 'int i;' > conftest.$ac_ext |
---|
7597 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
7598 | (eval $ac_compile) 2>&5 |
---|
7599 | ac_status=$? |
---|
7600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7601 | test $ac_status = 0; }; then |
---|
7602 | case `/usr/bin/file conftest.o` in |
---|
7603 | *64-bit*) |
---|
7604 | case $lt_cv_prog_gnu_ld in |
---|
7605 | yes*) |
---|
7606 | case $host in |
---|
7607 | i?86-*-solaris*|x86_64-*-solaris*) |
---|
7608 | LD="${LD-ld} -m elf_x86_64" |
---|
7609 | ;; |
---|
7610 | sparc*-*-solaris*) |
---|
7611 | LD="${LD-ld} -m elf64_sparc" |
---|
7612 | ;; |
---|
7613 | esac |
---|
7614 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
---|
7615 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
---|
7616 | LD=${LD-ld}_sol2 |
---|
7617 | fi |
---|
7618 | ;; |
---|
7619 | *) |
---|
7620 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
---|
7621 | LD="${LD-ld} -64" |
---|
7622 | fi |
---|
7623 | ;; |
---|
7624 | esac |
---|
7625 | ;; |
---|
7626 | esac |
---|
7627 | fi |
---|
7628 | rm -rf conftest* |
---|
7629 | ;; |
---|
7630 | esac |
---|
7631 | |
---|
7632 | need_locks=$enable_libtool_lock |
---|
7633 | |
---|
7634 | if test -n "$ac_tool_prefix"; then |
---|
7635 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
---|
7636 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
---|
7637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7638 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7639 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
---|
7640 | $as_echo_n "(cached) " >&6 |
---|
7641 | else |
---|
7642 | if test -n "$MANIFEST_TOOL"; then |
---|
7643 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
---|
7644 | else |
---|
7645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7646 | for as_dir in $PATH |
---|
7647 | do |
---|
7648 | IFS=$as_save_IFS |
---|
7649 | test -z "$as_dir" && as_dir=. |
---|
7650 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7651 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7652 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
---|
7653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7654 | break 2 |
---|
7655 | fi |
---|
7656 | done |
---|
7657 | done |
---|
7658 | IFS=$as_save_IFS |
---|
7659 | |
---|
7660 | fi |
---|
7661 | fi |
---|
7662 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
---|
7663 | if test -n "$MANIFEST_TOOL"; then |
---|
7664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
---|
7665 | $as_echo "$MANIFEST_TOOL" >&6; } |
---|
7666 | else |
---|
7667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7668 | $as_echo "no" >&6; } |
---|
7669 | fi |
---|
7670 | |
---|
7671 | |
---|
7672 | fi |
---|
7673 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
---|
7674 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
---|
7675 | # Extract the first word of "mt", so it can be a program name with args. |
---|
7676 | set dummy mt; ac_word=$2 |
---|
7677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7678 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7679 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
---|
7680 | $as_echo_n "(cached) " >&6 |
---|
7681 | else |
---|
7682 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
---|
7683 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
---|
7684 | else |
---|
7685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7686 | for as_dir in $PATH |
---|
7687 | do |
---|
7688 | IFS=$as_save_IFS |
---|
7689 | test -z "$as_dir" && as_dir=. |
---|
7690 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7691 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7692 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
---|
7693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7694 | break 2 |
---|
7695 | fi |
---|
7696 | done |
---|
7697 | done |
---|
7698 | IFS=$as_save_IFS |
---|
7699 | |
---|
7700 | fi |
---|
7701 | fi |
---|
7702 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
---|
7703 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
---|
7704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
---|
7705 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
---|
7706 | else |
---|
7707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7708 | $as_echo "no" >&6; } |
---|
7709 | fi |
---|
7710 | |
---|
7711 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
---|
7712 | MANIFEST_TOOL=":" |
---|
7713 | else |
---|
7714 | case $cross_compiling:$ac_tool_warned in |
---|
7715 | yes:) |
---|
7716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
7717 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
7718 | ac_tool_warned=yes ;; |
---|
7719 | esac |
---|
7720 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
---|
7721 | fi |
---|
7722 | else |
---|
7723 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
---|
7724 | fi |
---|
7725 | |
---|
7726 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
---|
7727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
---|
7728 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
---|
7729 | if ${lt_cv_path_mainfest_tool+:} false; then : |
---|
7730 | $as_echo_n "(cached) " >&6 |
---|
7731 | else |
---|
7732 | lt_cv_path_mainfest_tool=no |
---|
7733 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
---|
7734 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
---|
7735 | cat conftest.err >&5 |
---|
7736 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
---|
7737 | lt_cv_path_mainfest_tool=yes |
---|
7738 | fi |
---|
7739 | rm -f conftest* |
---|
7740 | fi |
---|
7741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
---|
7742 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
---|
7743 | if test yes != "$lt_cv_path_mainfest_tool"; then |
---|
7744 | MANIFEST_TOOL=: |
---|
7745 | fi |
---|
7746 | |
---|
7747 | |
---|
7748 | |
---|
7749 | |
---|
7750 | |
---|
7751 | |
---|
7752 | case $host_os in |
---|
7753 | rhapsody* | darwin*) |
---|
7754 | if test -n "$ac_tool_prefix"; then |
---|
7755 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
---|
7756 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
---|
7757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7758 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7759 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
---|
7760 | $as_echo_n "(cached) " >&6 |
---|
7761 | else |
---|
7762 | if test -n "$DSYMUTIL"; then |
---|
7763 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
---|
7764 | else |
---|
7765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7766 | for as_dir in $PATH |
---|
7767 | do |
---|
7768 | IFS=$as_save_IFS |
---|
7769 | test -z "$as_dir" && as_dir=. |
---|
7770 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7771 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7772 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
---|
7773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7774 | break 2 |
---|
7775 | fi |
---|
7776 | done |
---|
7777 | done |
---|
7778 | IFS=$as_save_IFS |
---|
7779 | |
---|
7780 | fi |
---|
7781 | fi |
---|
7782 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
---|
7783 | if test -n "$DSYMUTIL"; then |
---|
7784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
---|
7785 | $as_echo "$DSYMUTIL" >&6; } |
---|
7786 | else |
---|
7787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7788 | $as_echo "no" >&6; } |
---|
7789 | fi |
---|
7790 | |
---|
7791 | |
---|
7792 | fi |
---|
7793 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
---|
7794 | ac_ct_DSYMUTIL=$DSYMUTIL |
---|
7795 | # Extract the first word of "dsymutil", so it can be a program name with args. |
---|
7796 | set dummy dsymutil; ac_word=$2 |
---|
7797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7798 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7799 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
---|
7800 | $as_echo_n "(cached) " >&6 |
---|
7801 | else |
---|
7802 | if test -n "$ac_ct_DSYMUTIL"; then |
---|
7803 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
---|
7804 | else |
---|
7805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7806 | for as_dir in $PATH |
---|
7807 | do |
---|
7808 | IFS=$as_save_IFS |
---|
7809 | test -z "$as_dir" && as_dir=. |
---|
7810 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7812 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
---|
7813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7814 | break 2 |
---|
7815 | fi |
---|
7816 | done |
---|
7817 | done |
---|
7818 | IFS=$as_save_IFS |
---|
7819 | |
---|
7820 | fi |
---|
7821 | fi |
---|
7822 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
---|
7823 | if test -n "$ac_ct_DSYMUTIL"; then |
---|
7824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
---|
7825 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
---|
7826 | else |
---|
7827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7828 | $as_echo "no" >&6; } |
---|
7829 | fi |
---|
7830 | |
---|
7831 | if test "x$ac_ct_DSYMUTIL" = x; then |
---|
7832 | DSYMUTIL=":" |
---|
7833 | else |
---|
7834 | case $cross_compiling:$ac_tool_warned in |
---|
7835 | yes:) |
---|
7836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
7837 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
7838 | ac_tool_warned=yes ;; |
---|
7839 | esac |
---|
7840 | DSYMUTIL=$ac_ct_DSYMUTIL |
---|
7841 | fi |
---|
7842 | else |
---|
7843 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
---|
7844 | fi |
---|
7845 | |
---|
7846 | if test -n "$ac_tool_prefix"; then |
---|
7847 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
---|
7848 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
---|
7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7850 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7851 | if ${ac_cv_prog_NMEDIT+:} false; then : |
---|
7852 | $as_echo_n "(cached) " >&6 |
---|
7853 | else |
---|
7854 | if test -n "$NMEDIT"; then |
---|
7855 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
---|
7856 | else |
---|
7857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7858 | for as_dir in $PATH |
---|
7859 | do |
---|
7860 | IFS=$as_save_IFS |
---|
7861 | test -z "$as_dir" && as_dir=. |
---|
7862 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7863 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7864 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
---|
7865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7866 | break 2 |
---|
7867 | fi |
---|
7868 | done |
---|
7869 | done |
---|
7870 | IFS=$as_save_IFS |
---|
7871 | |
---|
7872 | fi |
---|
7873 | fi |
---|
7874 | NMEDIT=$ac_cv_prog_NMEDIT |
---|
7875 | if test -n "$NMEDIT"; then |
---|
7876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
---|
7877 | $as_echo "$NMEDIT" >&6; } |
---|
7878 | else |
---|
7879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7880 | $as_echo "no" >&6; } |
---|
7881 | fi |
---|
7882 | |
---|
7883 | |
---|
7884 | fi |
---|
7885 | if test -z "$ac_cv_prog_NMEDIT"; then |
---|
7886 | ac_ct_NMEDIT=$NMEDIT |
---|
7887 | # Extract the first word of "nmedit", so it can be a program name with args. |
---|
7888 | set dummy nmedit; ac_word=$2 |
---|
7889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7890 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7891 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
---|
7892 | $as_echo_n "(cached) " >&6 |
---|
7893 | else |
---|
7894 | if test -n "$ac_ct_NMEDIT"; then |
---|
7895 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
---|
7896 | else |
---|
7897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7898 | for as_dir in $PATH |
---|
7899 | do |
---|
7900 | IFS=$as_save_IFS |
---|
7901 | test -z "$as_dir" && as_dir=. |
---|
7902 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7903 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7904 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
---|
7905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7906 | break 2 |
---|
7907 | fi |
---|
7908 | done |
---|
7909 | done |
---|
7910 | IFS=$as_save_IFS |
---|
7911 | |
---|
7912 | fi |
---|
7913 | fi |
---|
7914 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
---|
7915 | if test -n "$ac_ct_NMEDIT"; then |
---|
7916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
---|
7917 | $as_echo "$ac_ct_NMEDIT" >&6; } |
---|
7918 | else |
---|
7919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7920 | $as_echo "no" >&6; } |
---|
7921 | fi |
---|
7922 | |
---|
7923 | if test "x$ac_ct_NMEDIT" = x; then |
---|
7924 | NMEDIT=":" |
---|
7925 | else |
---|
7926 | case $cross_compiling:$ac_tool_warned in |
---|
7927 | yes:) |
---|
7928 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
7929 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
7930 | ac_tool_warned=yes ;; |
---|
7931 | esac |
---|
7932 | NMEDIT=$ac_ct_NMEDIT |
---|
7933 | fi |
---|
7934 | else |
---|
7935 | NMEDIT="$ac_cv_prog_NMEDIT" |
---|
7936 | fi |
---|
7937 | |
---|
7938 | if test -n "$ac_tool_prefix"; then |
---|
7939 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
---|
7940 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
---|
7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7942 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7943 | if ${ac_cv_prog_LIPO+:} false; then : |
---|
7944 | $as_echo_n "(cached) " >&6 |
---|
7945 | else |
---|
7946 | if test -n "$LIPO"; then |
---|
7947 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
---|
7948 | else |
---|
7949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7950 | for as_dir in $PATH |
---|
7951 | do |
---|
7952 | IFS=$as_save_IFS |
---|
7953 | test -z "$as_dir" && as_dir=. |
---|
7954 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7956 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
---|
7957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7958 | break 2 |
---|
7959 | fi |
---|
7960 | done |
---|
7961 | done |
---|
7962 | IFS=$as_save_IFS |
---|
7963 | |
---|
7964 | fi |
---|
7965 | fi |
---|
7966 | LIPO=$ac_cv_prog_LIPO |
---|
7967 | if test -n "$LIPO"; then |
---|
7968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
---|
7969 | $as_echo "$LIPO" >&6; } |
---|
7970 | else |
---|
7971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7972 | $as_echo "no" >&6; } |
---|
7973 | fi |
---|
7974 | |
---|
7975 | |
---|
7976 | fi |
---|
7977 | if test -z "$ac_cv_prog_LIPO"; then |
---|
7978 | ac_ct_LIPO=$LIPO |
---|
7979 | # Extract the first word of "lipo", so it can be a program name with args. |
---|
7980 | set dummy lipo; ac_word=$2 |
---|
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7982 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7983 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
---|
7984 | $as_echo_n "(cached) " >&6 |
---|
7985 | else |
---|
7986 | if test -n "$ac_ct_LIPO"; then |
---|
7987 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
---|
7988 | else |
---|
7989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7990 | for as_dir in $PATH |
---|
7991 | do |
---|
7992 | IFS=$as_save_IFS |
---|
7993 | test -z "$as_dir" && as_dir=. |
---|
7994 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7995 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7996 | ac_cv_prog_ac_ct_LIPO="lipo" |
---|
7997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7998 | break 2 |
---|
7999 | fi |
---|
8000 | done |
---|
8001 | done |
---|
8002 | IFS=$as_save_IFS |
---|
8003 | |
---|
8004 | fi |
---|
8005 | fi |
---|
8006 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
---|
8007 | if test -n "$ac_ct_LIPO"; then |
---|
8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
---|
8009 | $as_echo "$ac_ct_LIPO" >&6; } |
---|
8010 | else |
---|
8011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8012 | $as_echo "no" >&6; } |
---|
8013 | fi |
---|
8014 | |
---|
8015 | if test "x$ac_ct_LIPO" = x; then |
---|
8016 | LIPO=":" |
---|
8017 | else |
---|
8018 | case $cross_compiling:$ac_tool_warned in |
---|
8019 | yes:) |
---|
8020 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
8021 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
8022 | ac_tool_warned=yes ;; |
---|
8023 | esac |
---|
8024 | LIPO=$ac_ct_LIPO |
---|
8025 | fi |
---|
8026 | else |
---|
8027 | LIPO="$ac_cv_prog_LIPO" |
---|
8028 | fi |
---|
8029 | |
---|
8030 | if test -n "$ac_tool_prefix"; then |
---|
8031 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
---|
8032 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
---|
8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8034 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8035 | if ${ac_cv_prog_OTOOL+:} false; then : |
---|
8036 | $as_echo_n "(cached) " >&6 |
---|
8037 | else |
---|
8038 | if test -n "$OTOOL"; then |
---|
8039 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
---|
8040 | else |
---|
8041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8042 | for as_dir in $PATH |
---|
8043 | do |
---|
8044 | IFS=$as_save_IFS |
---|
8045 | test -z "$as_dir" && as_dir=. |
---|
8046 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8047 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8048 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
---|
8049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8050 | break 2 |
---|
8051 | fi |
---|
8052 | done |
---|
8053 | done |
---|
8054 | IFS=$as_save_IFS |
---|
8055 | |
---|
8056 | fi |
---|
8057 | fi |
---|
8058 | OTOOL=$ac_cv_prog_OTOOL |
---|
8059 | if test -n "$OTOOL"; then |
---|
8060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
---|
8061 | $as_echo "$OTOOL" >&6; } |
---|
8062 | else |
---|
8063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8064 | $as_echo "no" >&6; } |
---|
8065 | fi |
---|
8066 | |
---|
8067 | |
---|
8068 | fi |
---|
8069 | if test -z "$ac_cv_prog_OTOOL"; then |
---|
8070 | ac_ct_OTOOL=$OTOOL |
---|
8071 | # Extract the first word of "otool", so it can be a program name with args. |
---|
8072 | set dummy otool; ac_word=$2 |
---|
8073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8074 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8075 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
---|
8076 | $as_echo_n "(cached) " >&6 |
---|
8077 | else |
---|
8078 | if test -n "$ac_ct_OTOOL"; then |
---|
8079 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
---|
8080 | else |
---|
8081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8082 | for as_dir in $PATH |
---|
8083 | do |
---|
8084 | IFS=$as_save_IFS |
---|
8085 | test -z "$as_dir" && as_dir=. |
---|
8086 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8087 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8088 | ac_cv_prog_ac_ct_OTOOL="otool" |
---|
8089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8090 | break 2 |
---|
8091 | fi |
---|
8092 | done |
---|
8093 | done |
---|
8094 | IFS=$as_save_IFS |
---|
8095 | |
---|
8096 | fi |
---|
8097 | fi |
---|
8098 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
---|
8099 | if test -n "$ac_ct_OTOOL"; then |
---|
8100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
---|
8101 | $as_echo "$ac_ct_OTOOL" >&6; } |
---|
8102 | else |
---|
8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8104 | $as_echo "no" >&6; } |
---|
8105 | fi |
---|
8106 | |
---|
8107 | if test "x$ac_ct_OTOOL" = x; then |
---|
8108 | OTOOL=":" |
---|
8109 | else |
---|
8110 | case $cross_compiling:$ac_tool_warned in |
---|
8111 | yes:) |
---|
8112 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
8113 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
8114 | ac_tool_warned=yes ;; |
---|
8115 | esac |
---|
8116 | OTOOL=$ac_ct_OTOOL |
---|
8117 | fi |
---|
8118 | else |
---|
8119 | OTOOL="$ac_cv_prog_OTOOL" |
---|
8120 | fi |
---|
8121 | |
---|
8122 | if test -n "$ac_tool_prefix"; then |
---|
8123 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
---|
8124 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
---|
8125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8126 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8127 | if ${ac_cv_prog_OTOOL64+:} false; then : |
---|
8128 | $as_echo_n "(cached) " >&6 |
---|
8129 | else |
---|
8130 | if test -n "$OTOOL64"; then |
---|
8131 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
---|
8132 | else |
---|
8133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8134 | for as_dir in $PATH |
---|
8135 | do |
---|
8136 | IFS=$as_save_IFS |
---|
8137 | test -z "$as_dir" && as_dir=. |
---|
8138 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8139 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8140 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
---|
8141 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8142 | break 2 |
---|
8143 | fi |
---|
8144 | done |
---|
8145 | done |
---|
8146 | IFS=$as_save_IFS |
---|
8147 | |
---|
8148 | fi |
---|
8149 | fi |
---|
8150 | OTOOL64=$ac_cv_prog_OTOOL64 |
---|
8151 | if test -n "$OTOOL64"; then |
---|
8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
---|
8153 | $as_echo "$OTOOL64" >&6; } |
---|
8154 | else |
---|
8155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8156 | $as_echo "no" >&6; } |
---|
8157 | fi |
---|
8158 | |
---|
8159 | |
---|
8160 | fi |
---|
8161 | if test -z "$ac_cv_prog_OTOOL64"; then |
---|
8162 | ac_ct_OTOOL64=$OTOOL64 |
---|
8163 | # Extract the first word of "otool64", so it can be a program name with args. |
---|
8164 | set dummy otool64; ac_word=$2 |
---|
8165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8166 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8167 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
---|
8168 | $as_echo_n "(cached) " >&6 |
---|
8169 | else |
---|
8170 | if test -n "$ac_ct_OTOOL64"; then |
---|
8171 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
---|
8172 | else |
---|
8173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8174 | for as_dir in $PATH |
---|
8175 | do |
---|
8176 | IFS=$as_save_IFS |
---|
8177 | test -z "$as_dir" && as_dir=. |
---|
8178 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8179 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8180 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
---|
8181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8182 | break 2 |
---|
8183 | fi |
---|
8184 | done |
---|
8185 | done |
---|
8186 | IFS=$as_save_IFS |
---|
8187 | |
---|
8188 | fi |
---|
8189 | fi |
---|
8190 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
---|
8191 | if test -n "$ac_ct_OTOOL64"; then |
---|
8192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
---|
8193 | $as_echo "$ac_ct_OTOOL64" >&6; } |
---|
8194 | else |
---|
8195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8196 | $as_echo "no" >&6; } |
---|
8197 | fi |
---|
8198 | |
---|
8199 | if test "x$ac_ct_OTOOL64" = x; then |
---|
8200 | OTOOL64=":" |
---|
8201 | else |
---|
8202 | case $cross_compiling:$ac_tool_warned in |
---|
8203 | yes:) |
---|
8204 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
8205 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
8206 | ac_tool_warned=yes ;; |
---|
8207 | esac |
---|
8208 | OTOOL64=$ac_ct_OTOOL64 |
---|
8209 | fi |
---|
8210 | else |
---|
8211 | OTOOL64="$ac_cv_prog_OTOOL64" |
---|
8212 | fi |
---|
8213 | |
---|
8214 | |
---|
8215 | |
---|
8216 | |
---|
8217 | |
---|
8218 | |
---|
8219 | |
---|
8220 | |
---|
8221 | |
---|
8222 | |
---|
8223 | |
---|
8224 | |
---|
8225 | |
---|
8226 | |
---|
8227 | |
---|
8228 | |
---|
8229 | |
---|
8230 | |
---|
8231 | |
---|
8232 | |
---|
8233 | |
---|
8234 | |
---|
8235 | |
---|
8236 | |
---|
8237 | |
---|
8238 | |
---|
8239 | |
---|
8240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
---|
8241 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
---|
8242 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
---|
8243 | $as_echo_n "(cached) " >&6 |
---|
8244 | else |
---|
8245 | lt_cv_apple_cc_single_mod=no |
---|
8246 | if test -z "$LT_MULTI_MODULE"; then |
---|
8247 | # By default we will add the -single_module flag. You can override |
---|
8248 | # by either setting the environment variable LT_MULTI_MODULE |
---|
8249 | # non-empty at configure time, or by adding -multi_module to the |
---|
8250 | # link flags. |
---|
8251 | rm -rf libconftest.dylib* |
---|
8252 | echo "int foo(void){return 1;}" > conftest.c |
---|
8253 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
---|
8254 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
---|
8255 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
---|
8256 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
---|
8257 | _lt_result=$? |
---|
8258 | # If there is a non-empty error log, and "single_module" |
---|
8259 | # appears in it, assume the flag caused a linker warning |
---|
8260 | if test -s conftest.err && $GREP single_module conftest.err; then |
---|
8261 | cat conftest.err >&5 |
---|
8262 | # Otherwise, if the output was created with a 0 exit code from |
---|
8263 | # the compiler, it worked. |
---|
8264 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
---|
8265 | lt_cv_apple_cc_single_mod=yes |
---|
8266 | else |
---|
8267 | cat conftest.err >&5 |
---|
8268 | fi |
---|
8269 | rm -rf libconftest.dylib* |
---|
8270 | rm -f conftest.* |
---|
8271 | fi |
---|
8272 | fi |
---|
8273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
---|
8274 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
---|
8275 | |
---|
8276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
---|
8277 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
---|
8278 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
---|
8279 | $as_echo_n "(cached) " >&6 |
---|
8280 | else |
---|
8281 | lt_cv_ld_exported_symbols_list=no |
---|
8282 | save_LDFLAGS=$LDFLAGS |
---|
8283 | echo "_main" > conftest.sym |
---|
8284 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
---|
8285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8286 | /* end confdefs.h. */ |
---|
8287 | |
---|
8288 | int |
---|
8289 | main () |
---|
8290 | { |
---|
8291 | |
---|
8292 | ; |
---|
8293 | return 0; |
---|
8294 | } |
---|
8295 | _ACEOF |
---|
8296 | if ac_fn_c_try_link "$LINENO"; then : |
---|
8297 | lt_cv_ld_exported_symbols_list=yes |
---|
8298 | else |
---|
8299 | lt_cv_ld_exported_symbols_list=no |
---|
8300 | fi |
---|
8301 | rm -f core conftest.err conftest.$ac_objext \ |
---|
8302 | conftest$ac_exeext conftest.$ac_ext |
---|
8303 | LDFLAGS=$save_LDFLAGS |
---|
8304 | |
---|
8305 | fi |
---|
8306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
---|
8307 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
---|
8308 | |
---|
8309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
---|
8310 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
---|
8311 | if ${lt_cv_ld_force_load+:} false; then : |
---|
8312 | $as_echo_n "(cached) " >&6 |
---|
8313 | else |
---|
8314 | lt_cv_ld_force_load=no |
---|
8315 | cat > conftest.c << _LT_EOF |
---|
8316 | int forced_loaded() { return 2;} |
---|
8317 | _LT_EOF |
---|
8318 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
---|
8319 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
---|
8320 | echo "$AR cru libconftest.a conftest.o" >&5 |
---|
8321 | $AR cru libconftest.a conftest.o 2>&5 |
---|
8322 | echo "$RANLIB libconftest.a" >&5 |
---|
8323 | $RANLIB libconftest.a 2>&5 |
---|
8324 | cat > conftest.c << _LT_EOF |
---|
8325 | int main() { return 0;} |
---|
8326 | _LT_EOF |
---|
8327 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
---|
8328 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
---|
8329 | _lt_result=$? |
---|
8330 | if test -s conftest.err && $GREP force_load conftest.err; then |
---|
8331 | cat conftest.err >&5 |
---|
8332 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
---|
8333 | lt_cv_ld_force_load=yes |
---|
8334 | else |
---|
8335 | cat conftest.err >&5 |
---|
8336 | fi |
---|
8337 | rm -f conftest.err libconftest.a conftest conftest.c |
---|
8338 | rm -rf conftest.dSYM |
---|
8339 | |
---|
8340 | fi |
---|
8341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
---|
8342 | $as_echo "$lt_cv_ld_force_load" >&6; } |
---|
8343 | case $host_os in |
---|
8344 | rhapsody* | darwin1.[012]) |
---|
8345 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
---|
8346 | darwin1.*) |
---|
8347 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
---|
8348 | darwin*) # darwin 5.x on |
---|
8349 | # if running on 10.5 or later, the deployment target defaults |
---|
8350 | # to the OS version, if on x86, and 10.4, the deployment |
---|
8351 | # target defaults to 10.4. Don't you love it? |
---|
8352 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
---|
8353 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
---|
8354 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
---|
8355 | 10.[012][,.]*) |
---|
8356 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
---|
8357 | 10.*) |
---|
8358 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
---|
8359 | esac |
---|
8360 | ;; |
---|
8361 | esac |
---|
8362 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
---|
8363 | _lt_dar_single_mod='$single_module' |
---|
8364 | fi |
---|
8365 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
---|
8366 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
---|
8367 | else |
---|
8368 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
---|
8369 | fi |
---|
8370 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
---|
8371 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
---|
8372 | else |
---|
8373 | _lt_dsymutil= |
---|
8374 | fi |
---|
8375 | ;; |
---|
8376 | esac |
---|
8377 | |
---|
8378 | # func_munge_path_list VARIABLE PATH |
---|
8379 | # ----------------------------------- |
---|
8380 | # VARIABLE is name of variable containing _space_ separated list of |
---|
8381 | # directories to be munged by the contents of PATH, which is string |
---|
8382 | # having a format: |
---|
8383 | # "DIR[:DIR]:" |
---|
8384 | # string "DIR[ DIR]" will be prepended to VARIABLE |
---|
8385 | # ":DIR[:DIR]" |
---|
8386 | # string "DIR[ DIR]" will be appended to VARIABLE |
---|
8387 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
---|
8388 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
---|
8389 | # "DIRA[ DIRA]" will be appended to VARIABLE |
---|
8390 | # "DIR[:DIR]" |
---|
8391 | # VARIABLE will be replaced by "DIR[ DIR]" |
---|
8392 | func_munge_path_list () |
---|
8393 | { |
---|
8394 | case x$2 in |
---|
8395 | x) |
---|
8396 | ;; |
---|
8397 | *:) |
---|
8398 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
---|
8399 | ;; |
---|
8400 | x:*) |
---|
8401 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
---|
8402 | ;; |
---|
8403 | *::*) |
---|
8404 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
---|
8405 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
---|
8406 | ;; |
---|
8407 | *) |
---|
8408 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
---|
8409 | ;; |
---|
8410 | esac |
---|
8411 | } |
---|
8412 | |
---|
8413 | ac_ext=c |
---|
8414 | ac_cpp='$CPP $CPPFLAGS' |
---|
8415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
8416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
8417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
8418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
8419 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
8420 | # On Suns, sometimes $CPP names a directory. |
---|
8421 | if test -n "$CPP" && test -d "$CPP"; then |
---|
8422 | CPP= |
---|
8423 | fi |
---|
8424 | if test -z "$CPP"; then |
---|
8425 | if ${ac_cv_prog_CPP+:} false; then : |
---|
8426 | $as_echo_n "(cached) " >&6 |
---|
8427 | else |
---|
8428 | # Double quotes because CPP needs to be expanded |
---|
8429 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
8430 | do |
---|
8431 | ac_preproc_ok=false |
---|
8432 | for ac_c_preproc_warn_flag in '' yes |
---|
8433 | do |
---|
8434 | # Use a header file that comes with gcc, so configuring glibc |
---|
8435 | # with a fresh cross-compiler works. |
---|
8436 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
8437 | # <limits.h> exists even on freestanding compilers. |
---|
8438 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
8439 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
8440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8441 | /* end confdefs.h. */ |
---|
8442 | #ifdef __STDC__ |
---|
8443 | # include <limits.h> |
---|
8444 | #else |
---|
8445 | # include <assert.h> |
---|
8446 | #endif |
---|
8447 | Syntax error |
---|
8448 | _ACEOF |
---|
8449 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
8450 | |
---|
8451 | else |
---|
8452 | # Broken: fails on valid input. |
---|
8453 | continue |
---|
8454 | fi |
---|
8455 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
8456 | |
---|
8457 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
8458 | # can be detected and how. |
---|
8459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8460 | /* end confdefs.h. */ |
---|
8461 | #include <ac_nonexistent.h> |
---|
8462 | _ACEOF |
---|
8463 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
8464 | # Broken: success on invalid input. |
---|
8465 | continue |
---|
8466 | else |
---|
8467 | # Passes both tests. |
---|
8468 | ac_preproc_ok=: |
---|
8469 | break |
---|
8470 | fi |
---|
8471 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
8472 | |
---|
8473 | done |
---|
8474 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
8475 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
8476 | if $ac_preproc_ok; then : |
---|
8477 | break |
---|
8478 | fi |
---|
8479 | |
---|
8480 | done |
---|
8481 | ac_cv_prog_CPP=$CPP |
---|
8482 | |
---|
8483 | fi |
---|
8484 | CPP=$ac_cv_prog_CPP |
---|
8485 | else |
---|
8486 | ac_cv_prog_CPP=$CPP |
---|
8487 | fi |
---|
8488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
8489 | $as_echo "$CPP" >&6; } |
---|
8490 | ac_preproc_ok=false |
---|
8491 | for ac_c_preproc_warn_flag in '' yes |
---|
8492 | do |
---|
8493 | # Use a header file that comes with gcc, so configuring glibc |
---|
8494 | # with a fresh cross-compiler works. |
---|
8495 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
8496 | # <limits.h> exists even on freestanding compilers. |
---|
8497 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
8498 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
8499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8500 | /* end confdefs.h. */ |
---|
8501 | #ifdef __STDC__ |
---|
8502 | # include <limits.h> |
---|
8503 | #else |
---|
8504 | # include <assert.h> |
---|
8505 | #endif |
---|
8506 | Syntax error |
---|
8507 | _ACEOF |
---|
8508 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
8509 | |
---|
8510 | else |
---|
8511 | # Broken: fails on valid input. |
---|
8512 | continue |
---|
8513 | fi |
---|
8514 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
8515 | |
---|
8516 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
8517 | # can be detected and how. |
---|
8518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8519 | /* end confdefs.h. */ |
---|
8520 | #include <ac_nonexistent.h> |
---|
8521 | _ACEOF |
---|
8522 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
8523 | # Broken: success on invalid input. |
---|
8524 | continue |
---|
8525 | else |
---|
8526 | # Passes both tests. |
---|
8527 | ac_preproc_ok=: |
---|
8528 | break |
---|
8529 | fi |
---|
8530 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
8531 | |
---|
8532 | done |
---|
8533 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
8534 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
8535 | if $ac_preproc_ok; then : |
---|
8536 | |
---|
8537 | else |
---|
8538 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
8539 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
8540 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
8541 | See \`config.log' for more details" "$LINENO" 5; } |
---|
8542 | fi |
---|
8543 | |
---|
8544 | ac_ext=c |
---|
8545 | ac_cpp='$CPP $CPPFLAGS' |
---|
8546 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
8547 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
8548 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
8549 | |
---|
8550 | |
---|
8551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
8552 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
8553 | if ${ac_cv_header_stdc+:} false; then : |
---|
8554 | $as_echo_n "(cached) " >&6 |
---|
8555 | else |
---|
8556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8557 | /* end confdefs.h. */ |
---|
8558 | #include <stdlib.h> |
---|
8559 | #include <stdarg.h> |
---|
8560 | #include <string.h> |
---|
8561 | #include <float.h> |
---|
8562 | |
---|
8563 | int |
---|
8564 | main () |
---|
8565 | { |
---|
8566 | |
---|
8567 | ; |
---|
8568 | return 0; |
---|
8569 | } |
---|
8570 | _ACEOF |
---|
8571 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
8572 | ac_cv_header_stdc=yes |
---|
8573 | else |
---|
8574 | ac_cv_header_stdc=no |
---|
8575 | fi |
---|
8576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8577 | |
---|
8578 | if test $ac_cv_header_stdc = yes; then |
---|
8579 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
8580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8581 | /* end confdefs.h. */ |
---|
8582 | #include <string.h> |
---|
8583 | |
---|
8584 | _ACEOF |
---|
8585 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
8586 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
8587 | |
---|
8588 | else |
---|
8589 | ac_cv_header_stdc=no |
---|
8590 | fi |
---|
8591 | rm -f conftest* |
---|
8592 | |
---|
8593 | fi |
---|
8594 | |
---|
8595 | if test $ac_cv_header_stdc = yes; then |
---|
8596 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
8597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8598 | /* end confdefs.h. */ |
---|
8599 | #include <stdlib.h> |
---|
8600 | |
---|
8601 | _ACEOF |
---|
8602 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
8603 | $EGREP "free" >/dev/null 2>&1; then : |
---|
8604 | |
---|
8605 | else |
---|
8606 | ac_cv_header_stdc=no |
---|
8607 | fi |
---|
8608 | rm -f conftest* |
---|
8609 | |
---|
8610 | fi |
---|
8611 | |
---|
8612 | if test $ac_cv_header_stdc = yes; then |
---|
8613 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
8614 | if test "$cross_compiling" = yes; then : |
---|
8615 | : |
---|
8616 | else |
---|
8617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8618 | /* end confdefs.h. */ |
---|
8619 | #include <ctype.h> |
---|
8620 | #include <stdlib.h> |
---|
8621 | #if ((' ' & 0x0FF) == 0x020) |
---|
8622 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
8623 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
8624 | #else |
---|
8625 | # define ISLOWER(c) \ |
---|
8626 | (('a' <= (c) && (c) <= 'i') \ |
---|
8627 | || ('j' <= (c) && (c) <= 'r') \ |
---|
8628 | || ('s' <= (c) && (c) <= 'z')) |
---|
8629 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
8630 | #endif |
---|
8631 | |
---|
8632 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
8633 | int |
---|
8634 | main () |
---|
8635 | { |
---|
8636 | int i; |
---|
8637 | for (i = 0; i < 256; i++) |
---|
8638 | if (XOR (islower (i), ISLOWER (i)) |
---|
8639 | || toupper (i) != TOUPPER (i)) |
---|
8640 | return 2; |
---|
8641 | return 0; |
---|
8642 | } |
---|
8643 | _ACEOF |
---|
8644 | if ac_fn_c_try_run "$LINENO"; then : |
---|
8645 | |
---|
8646 | else |
---|
8647 | ac_cv_header_stdc=no |
---|
8648 | fi |
---|
8649 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
8650 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
8651 | fi |
---|
8652 | |
---|
8653 | fi |
---|
8654 | fi |
---|
8655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
8656 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
8657 | if test $ac_cv_header_stdc = yes; then |
---|
8658 | |
---|
8659 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
8660 | |
---|
8661 | fi |
---|
8662 | |
---|
8663 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
8664 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
8665 | inttypes.h stdint.h unistd.h |
---|
8666 | do : |
---|
8667 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8668 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
8669 | " |
---|
8670 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
8671 | cat >>confdefs.h <<_ACEOF |
---|
8672 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8673 | _ACEOF |
---|
8674 | |
---|
8675 | fi |
---|
8676 | |
---|
8677 | done |
---|
8678 | |
---|
8679 | |
---|
8680 | for ac_header in dlfcn.h |
---|
8681 | do : |
---|
8682 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
---|
8683 | " |
---|
8684 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
---|
8685 | cat >>confdefs.h <<_ACEOF |
---|
8686 | #define HAVE_DLFCN_H 1 |
---|
8687 | _ACEOF |
---|
8688 | |
---|
8689 | fi |
---|
8690 | |
---|
8691 | done |
---|
8692 | |
---|
8693 | |
---|
8694 | |
---|
8695 | func_stripname_cnf () |
---|
8696 | { |
---|
8697 | case $2 in |
---|
8698 | .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; |
---|
8699 | *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; |
---|
8700 | esac |
---|
8701 | } # func_stripname_cnf |
---|
8702 | |
---|
8703 | |
---|
8704 | # Create libtool. |
---|
8705 | |
---|
8706 | |
---|
8707 | |
---|
8708 | |
---|
8709 | |
---|
8710 | # Set options |
---|
8711 | # Check whether --enable-static was given. |
---|
8712 | if test "${enable_static+set}" = set; then : |
---|
8713 | enableval=$enable_static; p=${PACKAGE-default} |
---|
8714 | case $enableval in |
---|
8715 | yes) enable_static=yes ;; |
---|
8716 | no) enable_static=no ;; |
---|
8717 | *) |
---|
8718 | enable_static=no |
---|
8719 | # Look at the argument we got. We use all the common list separators. |
---|
8720 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
---|
8721 | for pkg in $enableval; do |
---|
8722 | IFS=$lt_save_ifs |
---|
8723 | if test "X$pkg" = "X$p"; then |
---|
8724 | enable_static=yes |
---|
8725 | fi |
---|
8726 | done |
---|
8727 | IFS=$lt_save_ifs |
---|
8728 | ;; |
---|
8729 | esac |
---|
8730 | else |
---|
8731 | enable_static=no |
---|
8732 | fi |
---|
8733 | |
---|
8734 | |
---|
8735 | |
---|
8736 | |
---|
8737 | |
---|
8738 | |
---|
8739 | |
---|
8740 | |
---|
8741 | # Check whether --with-pic was given. |
---|
8742 | if test "${with_pic+set}" = set; then : |
---|
8743 | withval=$with_pic; lt_p=${PACKAGE-default} |
---|
8744 | case $withval in |
---|
8745 | yes|no) pic_mode=$withval ;; |
---|
8746 | *) |
---|
8747 | pic_mode=default |
---|
8748 | # Look at the argument we got. We use all the common list separators. |
---|
8749 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
---|
8750 | for lt_pkg in $withval; do |
---|
8751 | IFS=$lt_save_ifs |
---|
8752 | if test "X$lt_pkg" = "X$lt_p"; then |
---|
8753 | pic_mode=yes |
---|
8754 | fi |
---|
8755 | done |
---|
8756 | IFS=$lt_save_ifs |
---|
8757 | ;; |
---|
8758 | esac |
---|
8759 | else |
---|
8760 | pic_mode=yes |
---|
8761 | fi |
---|
8762 | |
---|
8763 | |
---|
8764 | |
---|
8765 | |
---|
8766 | |
---|
8767 | |
---|
8768 | enable_win32_dll=yes |
---|
8769 | |
---|
8770 | case $host in |
---|
8771 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) |
---|
8772 | if test -n "$ac_tool_prefix"; then |
---|
8773 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
---|
8774 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
---|
8775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8776 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8777 | if ${ac_cv_prog_AS+:} false; then : |
---|
8778 | $as_echo_n "(cached) " >&6 |
---|
8779 | else |
---|
8780 | if test -n "$AS"; then |
---|
8781 | ac_cv_prog_AS="$AS" # Let the user override the test. |
---|
8782 | else |
---|
8783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8784 | for as_dir in $PATH |
---|
8785 | do |
---|
8786 | IFS=$as_save_IFS |
---|
8787 | test -z "$as_dir" && as_dir=. |
---|
8788 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8789 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8790 | ac_cv_prog_AS="${ac_tool_prefix}as" |
---|
8791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8792 | break 2 |
---|
8793 | fi |
---|
8794 | done |
---|
8795 | done |
---|
8796 | IFS=$as_save_IFS |
---|
8797 | |
---|
8798 | fi |
---|
8799 | fi |
---|
8800 | AS=$ac_cv_prog_AS |
---|
8801 | if test -n "$AS"; then |
---|
8802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
---|
8803 | $as_echo "$AS" >&6; } |
---|
8804 | else |
---|
8805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8806 | $as_echo "no" >&6; } |
---|
8807 | fi |
---|
8808 | |
---|
8809 | |
---|
8810 | fi |
---|
8811 | if test -z "$ac_cv_prog_AS"; then |
---|
8812 | ac_ct_AS=$AS |
---|
8813 | # Extract the first word of "as", so it can be a program name with args. |
---|
8814 | set dummy as; ac_word=$2 |
---|
8815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8816 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8817 | if ${ac_cv_prog_ac_ct_AS+:} false; then : |
---|
8818 | $as_echo_n "(cached) " >&6 |
---|
8819 | else |
---|
8820 | if test -n "$ac_ct_AS"; then |
---|
8821 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
---|
8822 | else |
---|
8823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8824 | for as_dir in $PATH |
---|
8825 | do |
---|
8826 | IFS=$as_save_IFS |
---|
8827 | test -z "$as_dir" && as_dir=. |
---|
8828 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8829 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8830 | ac_cv_prog_ac_ct_AS="as" |
---|
8831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8832 | break 2 |
---|
8833 | fi |
---|
8834 | done |
---|
8835 | done |
---|
8836 | IFS=$as_save_IFS |
---|
8837 | |
---|
8838 | fi |
---|
8839 | fi |
---|
8840 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
---|
8841 | if test -n "$ac_ct_AS"; then |
---|
8842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
---|
8843 | $as_echo "$ac_ct_AS" >&6; } |
---|
8844 | else |
---|
8845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8846 | $as_echo "no" >&6; } |
---|
8847 | fi |
---|
8848 | |
---|
8849 | if test "x$ac_ct_AS" = x; then |
---|
8850 | AS="false" |
---|
8851 | else |
---|
8852 | case $cross_compiling:$ac_tool_warned in |
---|
8853 | yes:) |
---|
8854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
8855 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
8856 | ac_tool_warned=yes ;; |
---|
8857 | esac |
---|
8858 | AS=$ac_ct_AS |
---|
8859 | fi |
---|
8860 | else |
---|
8861 | AS="$ac_cv_prog_AS" |
---|
8862 | fi |
---|
8863 | |
---|
8864 | if test -n "$ac_tool_prefix"; then |
---|
8865 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
---|
8866 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
---|
8867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8868 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8869 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
---|
8870 | $as_echo_n "(cached) " >&6 |
---|
8871 | else |
---|
8872 | if test -n "$DLLTOOL"; then |
---|
8873 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
---|
8874 | else |
---|
8875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8876 | for as_dir in $PATH |
---|
8877 | do |
---|
8878 | IFS=$as_save_IFS |
---|
8879 | test -z "$as_dir" && as_dir=. |
---|
8880 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8881 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8882 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
---|
8883 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8884 | break 2 |
---|
8885 | fi |
---|
8886 | done |
---|
8887 | done |
---|
8888 | IFS=$as_save_IFS |
---|
8889 | |
---|
8890 | fi |
---|
8891 | fi |
---|
8892 | DLLTOOL=$ac_cv_prog_DLLTOOL |
---|
8893 | if test -n "$DLLTOOL"; then |
---|
8894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
---|
8895 | $as_echo "$DLLTOOL" >&6; } |
---|
8896 | else |
---|
8897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8898 | $as_echo "no" >&6; } |
---|
8899 | fi |
---|
8900 | |
---|
8901 | |
---|
8902 | fi |
---|
8903 | if test -z "$ac_cv_prog_DLLTOOL"; then |
---|
8904 | ac_ct_DLLTOOL=$DLLTOOL |
---|
8905 | # Extract the first word of "dlltool", so it can be a program name with args. |
---|
8906 | set dummy dlltool; ac_word=$2 |
---|
8907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8908 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8909 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
---|
8910 | $as_echo_n "(cached) " >&6 |
---|
8911 | else |
---|
8912 | if test -n "$ac_ct_DLLTOOL"; then |
---|
8913 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
---|
8914 | else |
---|
8915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8916 | for as_dir in $PATH |
---|
8917 | do |
---|
8918 | IFS=$as_save_IFS |
---|
8919 | test -z "$as_dir" && as_dir=. |
---|
8920 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8922 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
---|
8923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8924 | break 2 |
---|
8925 | fi |
---|
8926 | done |
---|
8927 | done |
---|
8928 | IFS=$as_save_IFS |
---|
8929 | |
---|
8930 | fi |
---|
8931 | fi |
---|
8932 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
---|
8933 | if test -n "$ac_ct_DLLTOOL"; then |
---|
8934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
---|
8935 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
---|
8936 | else |
---|
8937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8938 | $as_echo "no" >&6; } |
---|
8939 | fi |
---|
8940 | |
---|
8941 | if test "x$ac_ct_DLLTOOL" = x; then |
---|
8942 | DLLTOOL="false" |
---|
8943 | else |
---|
8944 | case $cross_compiling:$ac_tool_warned in |
---|
8945 | yes:) |
---|
8946 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
8947 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
8948 | ac_tool_warned=yes ;; |
---|
8949 | esac |
---|
8950 | DLLTOOL=$ac_ct_DLLTOOL |
---|
8951 | fi |
---|
8952 | else |
---|
8953 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
---|
8954 | fi |
---|
8955 | |
---|
8956 | if test -n "$ac_tool_prefix"; then |
---|
8957 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
---|
8958 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
---|
8959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
8960 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
8961 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
---|
8962 | $as_echo_n "(cached) " >&6 |
---|
8963 | else |
---|
8964 | if test -n "$OBJDUMP"; then |
---|
8965 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
---|
8966 | else |
---|
8967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8968 | for as_dir in $PATH |
---|
8969 | do |
---|
8970 | IFS=$as_save_IFS |
---|
8971 | test -z "$as_dir" && as_dir=. |
---|
8972 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8973 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8974 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
---|
8975 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8976 | break 2 |
---|
8977 | fi |
---|
8978 | done |
---|
8979 | done |
---|
8980 | IFS=$as_save_IFS |
---|
8981 | |
---|
8982 | fi |
---|
8983 | fi |
---|
8984 | OBJDUMP=$ac_cv_prog_OBJDUMP |
---|
8985 | if test -n "$OBJDUMP"; then |
---|
8986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
---|
8987 | $as_echo "$OBJDUMP" >&6; } |
---|
8988 | else |
---|
8989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
8990 | $as_echo "no" >&6; } |
---|
8991 | fi |
---|
8992 | |
---|
8993 | |
---|
8994 | fi |
---|
8995 | if test -z "$ac_cv_prog_OBJDUMP"; then |
---|
8996 | ac_ct_OBJDUMP=$OBJDUMP |
---|
8997 | # Extract the first word of "objdump", so it can be a program name with args. |
---|
8998 | set dummy objdump; ac_word=$2 |
---|
8999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
9000 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
9001 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
---|
9002 | $as_echo_n "(cached) " >&6 |
---|
9003 | else |
---|
9004 | if test -n "$ac_ct_OBJDUMP"; then |
---|
9005 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
---|
9006 | else |
---|
9007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9008 | for as_dir in $PATH |
---|
9009 | do |
---|
9010 | IFS=$as_save_IFS |
---|
9011 | test -z "$as_dir" && as_dir=. |
---|
9012 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
9013 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
9014 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
---|
9015 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
9016 | break 2 |
---|
9017 | fi |
---|
9018 | done |
---|
9019 | done |
---|
9020 | IFS=$as_save_IFS |
---|
9021 | |
---|
9022 | fi |
---|
9023 | fi |
---|
9024 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
---|
9025 | if test -n "$ac_ct_OBJDUMP"; then |
---|
9026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
---|
9027 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
---|
9028 | else |
---|
9029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
9030 | $as_echo "no" >&6; } |
---|
9031 | fi |
---|
9032 | |
---|
9033 | if test "x$ac_ct_OBJDUMP" = x; then |
---|
9034 | OBJDUMP="false" |
---|
9035 | else |
---|
9036 | case $cross_compiling:$ac_tool_warned in |
---|
9037 | yes:) |
---|
9038 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
9039 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
9040 | ac_tool_warned=yes ;; |
---|
9041 | esac |
---|
9042 | OBJDUMP=$ac_ct_OBJDUMP |
---|
9043 | fi |
---|
9044 | else |
---|
9045 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
---|
9046 | fi |
---|
9047 | |
---|
9048 | ;; |
---|
9049 | esac |
---|
9050 | |
---|
9051 | test -z "$AS" && AS=as |
---|
9052 | |
---|
9053 | |
---|
9054 | |
---|
9055 | |
---|
9056 | |
---|
9057 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
9058 | |
---|
9059 | |
---|
9060 | |
---|
9061 | |
---|
9062 | |
---|
9063 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
9064 | |
---|
9065 | |
---|
9066 | |
---|
9067 | |
---|
9068 | |
---|
9069 | |
---|
9070 | |
---|
9071 | enable_dlopen=no |
---|
9072 | |
---|
9073 | |
---|
9074 | |
---|
9075 | # Check whether --enable-shared was given. |
---|
9076 | if test "${enable_shared+set}" = set; then : |
---|
9077 | enableval=$enable_shared; p=${PACKAGE-default} |
---|
9078 | case $enableval in |
---|
9079 | yes) enable_shared=yes ;; |
---|
9080 | no) enable_shared=no ;; |
---|
9081 | *) |
---|
9082 | enable_shared=no |
---|
9083 | # Look at the argument we got. We use all the common list separators. |
---|
9084 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
---|
9085 | for pkg in $enableval; do |
---|
9086 | IFS=$lt_save_ifs |
---|
9087 | if test "X$pkg" = "X$p"; then |
---|
9088 | enable_shared=yes |
---|
9089 | fi |
---|
9090 | done |
---|
9091 | IFS=$lt_save_ifs |
---|
9092 | ;; |
---|
9093 | esac |
---|
9094 | else |
---|
9095 | enable_shared=yes |
---|
9096 | fi |
---|
9097 | |
---|
9098 | |
---|
9099 | |
---|
9100 | |
---|
9101 | |
---|
9102 | |
---|
9103 | |
---|
9104 | |
---|
9105 | |
---|
9106 | |
---|
9107 | |
---|
9108 | # Check whether --enable-fast-install was given. |
---|
9109 | if test "${enable_fast_install+set}" = set; then : |
---|
9110 | enableval=$enable_fast_install; p=${PACKAGE-default} |
---|
9111 | case $enableval in |
---|
9112 | yes) enable_fast_install=yes ;; |
---|
9113 | no) enable_fast_install=no ;; |
---|
9114 | *) |
---|
9115 | enable_fast_install=no |
---|
9116 | # Look at the argument we got. We use all the common list separators. |
---|
9117 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
---|
9118 | for pkg in $enableval; do |
---|
9119 | IFS=$lt_save_ifs |
---|
9120 | if test "X$pkg" = "X$p"; then |
---|
9121 | enable_fast_install=yes |
---|
9122 | fi |
---|
9123 | done |
---|
9124 | IFS=$lt_save_ifs |
---|
9125 | ;; |
---|
9126 | esac |
---|
9127 | else |
---|
9128 | enable_fast_install=yes |
---|
9129 | fi |
---|
9130 | |
---|
9131 | |
---|
9132 | |
---|
9133 | |
---|
9134 | |
---|
9135 | |
---|
9136 | |
---|
9137 | |
---|
9138 | shared_archive_member_spec= |
---|
9139 | case $host,$enable_shared in |
---|
9140 | power*-*-aix[5-9]*,yes) |
---|
9141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
---|
9142 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } |
---|
9143 | |
---|
9144 | # Check whether --with-aix-soname was given. |
---|
9145 | if test "${with_aix_soname+set}" = set; then : |
---|
9146 | withval=$with_aix_soname; case $withval in |
---|
9147 | aix|svr4|both) |
---|
9148 | ;; |
---|
9149 | *) |
---|
9150 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
---|
9151 | ;; |
---|
9152 | esac |
---|
9153 | lt_cv_with_aix_soname=$with_aix_soname |
---|
9154 | else |
---|
9155 | if ${lt_cv_with_aix_soname+:} false; then : |
---|
9156 | $as_echo_n "(cached) " >&6 |
---|
9157 | else |
---|
9158 | lt_cv_with_aix_soname=aix |
---|
9159 | fi |
---|
9160 | |
---|
9161 | with_aix_soname=$lt_cv_with_aix_soname |
---|
9162 | fi |
---|
9163 | |
---|
9164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
---|
9165 | $as_echo "$with_aix_soname" >&6; } |
---|
9166 | if test aix != "$with_aix_soname"; then |
---|
9167 | # For the AIX way of multilib, we name the shared archive member |
---|
9168 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
---|
9169 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
---|
9170 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
---|
9171 | # the AIX toolchain works better with OBJECT_MODE set (default 32). |
---|
9172 | if test 64 = "${OBJECT_MODE-32}"; then |
---|
9173 | shared_archive_member_spec=shr_64 |
---|
9174 | else |
---|
9175 | shared_archive_member_spec=shr |
---|
9176 | fi |
---|
9177 | fi |
---|
9178 | ;; |
---|
9179 | *) |
---|
9180 | with_aix_soname=aix |
---|
9181 | ;; |
---|
9182 | esac |
---|
9183 | |
---|
9184 | |
---|
9185 | |
---|
9186 | |
---|
9187 | |
---|
9188 | |
---|
9189 | |
---|
9190 | |
---|
9191 | |
---|
9192 | |
---|
9193 | # This can be used to rebuild libtool when needed |
---|
9194 | LIBTOOL_DEPS=$ltmain |
---|
9195 | |
---|
9196 | # Always use our own libtool. |
---|
9197 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
9198 | |
---|
9199 | |
---|
9200 | |
---|
9201 | |
---|
9202 | |
---|
9203 | |
---|
9204 | |
---|
9205 | |
---|
9206 | |
---|
9207 | |
---|
9208 | |
---|
9209 | |
---|
9210 | |
---|
9211 | |
---|
9212 | |
---|
9213 | |
---|
9214 | |
---|
9215 | |
---|
9216 | |
---|
9217 | |
---|
9218 | |
---|
9219 | |
---|
9220 | |
---|
9221 | |
---|
9222 | |
---|
9223 | |
---|
9224 | |
---|
9225 | |
---|
9226 | |
---|
9227 | |
---|
9228 | test -z "$LN_S" && LN_S="ln -s" |
---|
9229 | |
---|
9230 | |
---|
9231 | |
---|
9232 | |
---|
9233 | |
---|
9234 | |
---|
9235 | |
---|
9236 | |
---|
9237 | |
---|
9238 | |
---|
9239 | |
---|
9240 | |
---|
9241 | |
---|
9242 | |
---|
9243 | if test -n "${ZSH_VERSION+set}"; then |
---|
9244 | setopt NO_GLOB_SUBST |
---|
9245 | fi |
---|
9246 | |
---|
9247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
---|
9248 | $as_echo_n "checking for objdir... " >&6; } |
---|
9249 | if ${lt_cv_objdir+:} false; then : |
---|
9250 | $as_echo_n "(cached) " >&6 |
---|
9251 | else |
---|
9252 | rm -f .libs 2>/dev/null |
---|
9253 | mkdir .libs 2>/dev/null |
---|
9254 | if test -d .libs; then |
---|
9255 | lt_cv_objdir=.libs |
---|
9256 | else |
---|
9257 | # MS-DOS does not allow filenames that begin with a dot. |
---|
9258 | lt_cv_objdir=_libs |
---|
9259 | fi |
---|
9260 | rmdir .libs 2>/dev/null |
---|
9261 | fi |
---|
9262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
---|
9263 | $as_echo "$lt_cv_objdir" >&6; } |
---|
9264 | objdir=$lt_cv_objdir |
---|
9265 | |
---|
9266 | |
---|
9267 | |
---|
9268 | |
---|
9269 | |
---|
9270 | cat >>confdefs.h <<_ACEOF |
---|
9271 | #define LT_OBJDIR "$lt_cv_objdir/" |
---|
9272 | _ACEOF |
---|
9273 | |
---|
9274 | |
---|
9275 | |
---|
9276 | |
---|
9277 | case $host_os in |
---|
9278 | aix3*) |
---|
9279 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
9280 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
9281 | # vanish in a puff of smoke. |
---|
9282 | if test set != "${COLLECT_NAMES+set}"; then |
---|
9283 | COLLECT_NAMES= |
---|
9284 | export COLLECT_NAMES |
---|
9285 | fi |
---|
9286 | ;; |
---|
9287 | esac |
---|
9288 | |
---|
9289 | # Global variables: |
---|
9290 | ofile=libtool |
---|
9291 | can_build_shared=yes |
---|
9292 | |
---|
9293 | # All known linkers require a '.a' archive for static linking (except MSVC, |
---|
9294 | # which needs '.lib'). |
---|
9295 | libext=a |
---|
9296 | |
---|
9297 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
9298 | |
---|
9299 | old_CC=$CC |
---|
9300 | old_CFLAGS=$CFLAGS |
---|
9301 | |
---|
9302 | # Set sane defaults for various variables |
---|
9303 | test -z "$CC" && CC=cc |
---|
9304 | test -z "$LTCC" && LTCC=$CC |
---|
9305 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
---|
9306 | test -z "$LD" && LD=ld |
---|
9307 | test -z "$ac_objext" && ac_objext=o |
---|
9308 | |
---|
9309 | func_cc_basename $compiler |
---|
9310 | cc_basename=$func_cc_basename_result |
---|
9311 | |
---|
9312 | |
---|
9313 | # Only perform the check for file, if the check method requires it |
---|
9314 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
9315 | case $deplibs_check_method in |
---|
9316 | file_magic*) |
---|
9317 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
9318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
---|
9319 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
---|
9320 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
---|
9321 | $as_echo_n "(cached) " >&6 |
---|
9322 | else |
---|
9323 | case $MAGIC_CMD in |
---|
9324 | [\\/*] | ?:[\\/]*) |
---|
9325 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
---|
9326 | ;; |
---|
9327 | *) |
---|
9328 | lt_save_MAGIC_CMD=$MAGIC_CMD |
---|
9329 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
---|
9330 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
9331 | for ac_dir in $ac_dummy; do |
---|
9332 | IFS=$lt_save_ifs |
---|
9333 | test -z "$ac_dir" && ac_dir=. |
---|
9334 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
---|
9335 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
---|
9336 | if test -n "$file_magic_test_file"; then |
---|
9337 | case $deplibs_check_method in |
---|
9338 | "file_magic "*) |
---|
9339 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
9340 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
---|
9341 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
9342 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
9343 | : |
---|
9344 | else |
---|
9345 | cat <<_LT_EOF 1>&2 |
---|
9346 | |
---|
9347 | *** Warning: the command libtool uses to detect shared libraries, |
---|
9348 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
9349 | *** The result is that libtool may fail to recognize shared libraries |
---|
9350 | *** as such. This will affect the creation of libtool libraries that |
---|
9351 | *** depend on shared libraries, but programs linked with such libtool |
---|
9352 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
9353 | *** may want to report the problem to your system manager and/or to |
---|
9354 | *** bug-libtool@gnu.org |
---|
9355 | |
---|
9356 | _LT_EOF |
---|
9357 | fi ;; |
---|
9358 | esac |
---|
9359 | fi |
---|
9360 | break |
---|
9361 | fi |
---|
9362 | done |
---|
9363 | IFS=$lt_save_ifs |
---|
9364 | MAGIC_CMD=$lt_save_MAGIC_CMD |
---|
9365 | ;; |
---|
9366 | esac |
---|
9367 | fi |
---|
9368 | |
---|
9369 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
---|
9370 | if test -n "$MAGIC_CMD"; then |
---|
9371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
---|
9372 | $as_echo "$MAGIC_CMD" >&6; } |
---|
9373 | else |
---|
9374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
9375 | $as_echo "no" >&6; } |
---|
9376 | fi |
---|
9377 | |
---|
9378 | |
---|
9379 | |
---|
9380 | |
---|
9381 | |
---|
9382 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
9383 | if test -n "$ac_tool_prefix"; then |
---|
9384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
---|
9385 | $as_echo_n "checking for file... " >&6; } |
---|
9386 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
---|
9387 | $as_echo_n "(cached) " >&6 |
---|
9388 | else |
---|
9389 | case $MAGIC_CMD in |
---|
9390 | [\\/*] | ?:[\\/]*) |
---|
9391 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
---|
9392 | ;; |
---|
9393 | *) |
---|
9394 | lt_save_MAGIC_CMD=$MAGIC_CMD |
---|
9395 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
---|
9396 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
9397 | for ac_dir in $ac_dummy; do |
---|
9398 | IFS=$lt_save_ifs |
---|
9399 | test -z "$ac_dir" && ac_dir=. |
---|
9400 | if test -f "$ac_dir/file"; then |
---|
9401 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
---|
9402 | if test -n "$file_magic_test_file"; then |
---|
9403 | case $deplibs_check_method in |
---|
9404 | "file_magic "*) |
---|
9405 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
9406 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
---|
9407 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
9408 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
9409 | : |
---|
9410 | else |
---|
9411 | cat <<_LT_EOF 1>&2 |
---|
9412 | |
---|
9413 | *** Warning: the command libtool uses to detect shared libraries, |
---|
9414 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
9415 | *** The result is that libtool may fail to recognize shared libraries |
---|
9416 | *** as such. This will affect the creation of libtool libraries that |
---|
9417 | *** depend on shared libraries, but programs linked with such libtool |
---|
9418 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
9419 | *** may want to report the problem to your system manager and/or to |
---|
9420 | *** bug-libtool@gnu.org |
---|
9421 | |
---|
9422 | _LT_EOF |
---|
9423 | fi ;; |
---|
9424 | esac |
---|
9425 | fi |
---|
9426 | break |
---|
9427 | fi |
---|
9428 | done |
---|
9429 | IFS=$lt_save_ifs |
---|
9430 | MAGIC_CMD=$lt_save_MAGIC_CMD |
---|
9431 | ;; |
---|
9432 | esac |
---|
9433 | fi |
---|
9434 | |
---|
9435 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
---|
9436 | if test -n "$MAGIC_CMD"; then |
---|
9437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
---|
9438 | $as_echo "$MAGIC_CMD" >&6; } |
---|
9439 | else |
---|
9440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
9441 | $as_echo "no" >&6; } |
---|
9442 | fi |
---|
9443 | |
---|
9444 | |
---|
9445 | else |
---|
9446 | MAGIC_CMD=: |
---|
9447 | fi |
---|
9448 | fi |
---|
9449 | |
---|
9450 | fi |
---|
9451 | ;; |
---|
9452 | esac |
---|
9453 | |
---|
9454 | # Use C for the default configuration in the libtool script |
---|
9455 | |
---|
9456 | lt_save_CC=$CC |
---|
9457 | ac_ext=c |
---|
9458 | ac_cpp='$CPP $CPPFLAGS' |
---|
9459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
9460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
9461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
9462 | |
---|
9463 | |
---|
9464 | # Source file extension for C test sources. |
---|
9465 | ac_ext=c |
---|
9466 | |
---|
9467 | # Object file extension for compiled C test sources. |
---|
9468 | objext=o |
---|
9469 | objext=$objext |
---|
9470 | |
---|
9471 | # Code to be used in simple compile tests |
---|
9472 | lt_simple_compile_test_code="int some_variable = 0;" |
---|
9473 | |
---|
9474 | # Code to be used in simple link tests |
---|
9475 | lt_simple_link_test_code='int main(){return(0);}' |
---|
9476 | |
---|
9477 | |
---|
9478 | |
---|
9479 | |
---|
9480 | |
---|
9481 | |
---|
9482 | |
---|
9483 | # If no C compiler was specified, use CC. |
---|
9484 | LTCC=${LTCC-"$CC"} |
---|
9485 | |
---|
9486 | # If no C compiler flags were specified, use CFLAGS. |
---|
9487 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
9488 | |
---|
9489 | # Allow CC to be a program name with arguments. |
---|
9490 | compiler=$CC |
---|
9491 | |
---|
9492 | # Save the default compiler, since it gets overwritten when the other |
---|
9493 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
---|
9494 | compiler_DEFAULT=$CC |
---|
9495 | |
---|
9496 | # save warnings/boilerplate of simple test code |
---|
9497 | ac_outfile=conftest.$ac_objext |
---|
9498 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
9499 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
9500 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
9501 | $RM conftest* |
---|
9502 | |
---|
9503 | ac_outfile=conftest.$ac_objext |
---|
9504 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
9505 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
9506 | _lt_linker_boilerplate=`cat conftest.err` |
---|
9507 | $RM -r conftest* |
---|
9508 | |
---|
9509 | |
---|
9510 | if test -n "$compiler"; then |
---|
9511 | |
---|
9512 | lt_prog_compiler_no_builtin_flag= |
---|
9513 | |
---|
9514 | if test yes = "$GCC"; then |
---|
9515 | case $cc_basename in |
---|
9516 | nvcc*) |
---|
9517 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
---|
9518 | *) |
---|
9519 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
---|
9520 | esac |
---|
9521 | |
---|
9522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
9523 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
---|
9524 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
---|
9525 | $as_echo_n "(cached) " >&6 |
---|
9526 | else |
---|
9527 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
9528 | ac_outfile=conftest.$ac_objext |
---|
9529 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9530 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
---|
9531 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
9532 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
9533 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
9534 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
9535 | # The option is referenced via a variable to avoid confusing sed. |
---|
9536 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
9537 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
9538 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
9539 | -e 's:$: $lt_compiler_flag:'` |
---|
9540 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
---|
9541 | (eval "$lt_compile" 2>conftest.err) |
---|
9542 | ac_status=$? |
---|
9543 | cat conftest.err >&5 |
---|
9544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9545 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
9546 | # The compiler can only warn and ignore the option if not recognized |
---|
9547 | # So say no if there are warnings other than the usual output. |
---|
9548 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
---|
9549 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
9550 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
9551 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
9552 | fi |
---|
9553 | fi |
---|
9554 | $RM conftest* |
---|
9555 | |
---|
9556 | fi |
---|
9557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
9558 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
---|
9559 | |
---|
9560 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
---|
9561 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
---|
9562 | else |
---|
9563 | : |
---|
9564 | fi |
---|
9565 | |
---|
9566 | fi |
---|
9567 | |
---|
9568 | |
---|
9569 | |
---|
9570 | |
---|
9571 | |
---|
9572 | |
---|
9573 | lt_prog_compiler_wl= |
---|
9574 | lt_prog_compiler_pic= |
---|
9575 | lt_prog_compiler_static= |
---|
9576 | |
---|
9577 | |
---|
9578 | if test yes = "$GCC"; then |
---|
9579 | lt_prog_compiler_wl='-Wl,' |
---|
9580 | lt_prog_compiler_static='-static' |
---|
9581 | |
---|
9582 | case $host_os in |
---|
9583 | aix*) |
---|
9584 | # All AIX code is PIC. |
---|
9585 | if test ia64 = "$host_cpu"; then |
---|
9586 | # AIX 5 now supports IA64 processor |
---|
9587 | lt_prog_compiler_static='-Bstatic' |
---|
9588 | fi |
---|
9589 | lt_prog_compiler_pic='-fPIC' |
---|
9590 | ;; |
---|
9591 | |
---|
9592 | amigaos*) |
---|
9593 | case $host_cpu in |
---|
9594 | powerpc) |
---|
9595 | # see comment about AmigaOS4 .so support |
---|
9596 | lt_prog_compiler_pic='-fPIC' |
---|
9597 | ;; |
---|
9598 | m68k) |
---|
9599 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
9600 | # adding the '-m68020' flag to GCC prevents building anything better, |
---|
9601 | # like '-m68040'. |
---|
9602 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
---|
9603 | ;; |
---|
9604 | esac |
---|
9605 | ;; |
---|
9606 | |
---|
9607 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
9608 | # PIC is the default for these OSes. |
---|
9609 | ;; |
---|
9610 | |
---|
9611 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
---|
9612 | # This hack is so that the source file can tell whether it is being |
---|
9613 | # built for inclusion in a dll (and should export symbols for example). |
---|
9614 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
---|
9615 | # (--disable-auto-import) libraries |
---|
9616 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
9617 | case $host_os in |
---|
9618 | os2*) |
---|
9619 | lt_prog_compiler_static='$wl-static' |
---|
9620 | ;; |
---|
9621 | esac |
---|
9622 | ;; |
---|
9623 | |
---|
9624 | darwin* | rhapsody*) |
---|
9625 | # PIC is the default on this platform |
---|
9626 | # Common symbols not allowed in MH_DYLIB files |
---|
9627 | lt_prog_compiler_pic='-fno-common' |
---|
9628 | ;; |
---|
9629 | |
---|
9630 | haiku*) |
---|
9631 | # PIC is the default for Haiku. |
---|
9632 | # The "-static" flag exists, but is broken. |
---|
9633 | lt_prog_compiler_static= |
---|
9634 | ;; |
---|
9635 | |
---|
9636 | hpux*) |
---|
9637 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
---|
9638 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
---|
9639 | # sets the default TLS model and affects inlining. |
---|
9640 | case $host_cpu in |
---|
9641 | hppa*64*) |
---|
9642 | # +Z the default |
---|
9643 | ;; |
---|
9644 | *) |
---|
9645 | lt_prog_compiler_pic='-fPIC' |
---|
9646 | ;; |
---|
9647 | esac |
---|
9648 | ;; |
---|
9649 | |
---|
9650 | interix[3-9]*) |
---|
9651 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
---|
9652 | # Instead, we relocate shared libraries at runtime. |
---|
9653 | ;; |
---|
9654 | |
---|
9655 | msdosdjgpp*) |
---|
9656 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
9657 | # on systems that don't support them. |
---|
9658 | lt_prog_compiler_can_build_shared=no |
---|
9659 | enable_shared=no |
---|
9660 | ;; |
---|
9661 | |
---|
9662 | *nto* | *qnx*) |
---|
9663 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
---|
9664 | # it will coredump. |
---|
9665 | lt_prog_compiler_pic='-fPIC -shared' |
---|
9666 | ;; |
---|
9667 | |
---|
9668 | sysv4*MP*) |
---|
9669 | if test -d /usr/nec; then |
---|
9670 | lt_prog_compiler_pic=-Kconform_pic |
---|
9671 | fi |
---|
9672 | ;; |
---|
9673 | |
---|
9674 | *) |
---|
9675 | lt_prog_compiler_pic='-fPIC' |
---|
9676 | ;; |
---|
9677 | esac |
---|
9678 | |
---|
9679 | case $cc_basename in |
---|
9680 | nvcc*) # Cuda Compiler Driver 2.2 |
---|
9681 | lt_prog_compiler_wl='-Xlinker ' |
---|
9682 | if test -n "$lt_prog_compiler_pic"; then |
---|
9683 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
---|
9684 | fi |
---|
9685 | ;; |
---|
9686 | esac |
---|
9687 | else |
---|
9688 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
9689 | case $host_os in |
---|
9690 | aix*) |
---|
9691 | lt_prog_compiler_wl='-Wl,' |
---|
9692 | if test ia64 = "$host_cpu"; then |
---|
9693 | # AIX 5 now supports IA64 processor |
---|
9694 | lt_prog_compiler_static='-Bstatic' |
---|
9695 | else |
---|
9696 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
---|
9697 | fi |
---|
9698 | ;; |
---|
9699 | |
---|
9700 | darwin* | rhapsody*) |
---|
9701 | # PIC is the default on this platform |
---|
9702 | # Common symbols not allowed in MH_DYLIB files |
---|
9703 | lt_prog_compiler_pic='-fno-common' |
---|
9704 | case $cc_basename in |
---|
9705 | nagfor*) |
---|
9706 | # NAG Fortran compiler |
---|
9707 | lt_prog_compiler_wl='-Wl,-Wl,,' |
---|
9708 | lt_prog_compiler_pic='-PIC' |
---|
9709 | lt_prog_compiler_static='-Bstatic' |
---|
9710 | ;; |
---|
9711 | esac |
---|
9712 | ;; |
---|
9713 | |
---|
9714 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
---|
9715 | # This hack is so that the source file can tell whether it is being |
---|
9716 | # built for inclusion in a dll (and should export symbols for example). |
---|
9717 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
9718 | case $host_os in |
---|
9719 | os2*) |
---|
9720 | lt_prog_compiler_static='$wl-static' |
---|
9721 | ;; |
---|
9722 | esac |
---|
9723 | ;; |
---|
9724 | |
---|
9725 | hpux9* | hpux10* | hpux11*) |
---|
9726 | lt_prog_compiler_wl='-Wl,' |
---|
9727 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
9728 | # not for PA HP-UX. |
---|
9729 | case $host_cpu in |
---|
9730 | hppa*64*|ia64*) |
---|
9731 | # +Z the default |
---|
9732 | ;; |
---|
9733 | *) |
---|
9734 | lt_prog_compiler_pic='+Z' |
---|
9735 | ;; |
---|
9736 | esac |
---|
9737 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
9738 | lt_prog_compiler_static='$wl-a ${wl}archive' |
---|
9739 | ;; |
---|
9740 | |
---|
9741 | irix5* | irix6* | nonstopux*) |
---|
9742 | lt_prog_compiler_wl='-Wl,' |
---|
9743 | # PIC (with -KPIC) is the default. |
---|
9744 | lt_prog_compiler_static='-non_shared' |
---|
9745 | ;; |
---|
9746 | |
---|
9747 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
---|
9748 | case $cc_basename in |
---|
9749 | # old Intel for x86_64, which still supported -KPIC. |
---|
9750 | ecc*) |
---|
9751 | lt_prog_compiler_wl='-Wl,' |
---|
9752 | lt_prog_compiler_pic='-KPIC' |
---|
9753 | lt_prog_compiler_static='-static' |
---|
9754 | ;; |
---|
9755 | # icc used to be incompatible with GCC. |
---|
9756 | # ICC 10 doesn't accept -KPIC any more. |
---|
9757 | icc* | ifort*) |
---|
9758 | lt_prog_compiler_wl='-Wl,' |
---|
9759 | lt_prog_compiler_pic='-fPIC' |
---|
9760 | lt_prog_compiler_static='-static' |
---|
9761 | ;; |
---|
9762 | # Lahey Fortran 8.1. |
---|
9763 | lf95*) |
---|
9764 | lt_prog_compiler_wl='-Wl,' |
---|
9765 | lt_prog_compiler_pic='--shared' |
---|
9766 | lt_prog_compiler_static='--static' |
---|
9767 | ;; |
---|
9768 | nagfor*) |
---|
9769 | # NAG Fortran compiler |
---|
9770 | lt_prog_compiler_wl='-Wl,-Wl,,' |
---|
9771 | lt_prog_compiler_pic='-PIC' |
---|
9772 | lt_prog_compiler_static='-Bstatic' |
---|
9773 | ;; |
---|
9774 | tcc*) |
---|
9775 | # Fabrice Bellard et al's Tiny C Compiler |
---|
9776 | lt_prog_compiler_wl='-Wl,' |
---|
9777 | lt_prog_compiler_pic='-fPIC' |
---|
9778 | lt_prog_compiler_static='-static' |
---|
9779 | ;; |
---|
9780 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
---|
9781 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
9782 | # which looks to be a dead project) |
---|
9783 | lt_prog_compiler_wl='-Wl,' |
---|
9784 | lt_prog_compiler_pic='-fpic' |
---|
9785 | lt_prog_compiler_static='-Bstatic' |
---|
9786 | ;; |
---|
9787 | ccc*) |
---|
9788 | lt_prog_compiler_wl='-Wl,' |
---|
9789 | # All Alpha code is PIC. |
---|
9790 | lt_prog_compiler_static='-non_shared' |
---|
9791 | ;; |
---|
9792 | xl* | bgxl* | bgf* | mpixl*) |
---|
9793 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
---|
9794 | lt_prog_compiler_wl='-Wl,' |
---|
9795 | lt_prog_compiler_pic='-qpic' |
---|
9796 | lt_prog_compiler_static='-qstaticlink' |
---|
9797 | ;; |
---|
9798 | *) |
---|
9799 | case `$CC -V 2>&1 | sed 5q` in |
---|
9800 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
---|
9801 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
---|
9802 | lt_prog_compiler_pic='-KPIC' |
---|
9803 | lt_prog_compiler_static='-Bstatic' |
---|
9804 | lt_prog_compiler_wl='' |
---|
9805 | ;; |
---|
9806 | *Sun\ F* | *Sun*Fortran*) |
---|
9807 | lt_prog_compiler_pic='-KPIC' |
---|
9808 | lt_prog_compiler_static='-Bstatic' |
---|
9809 | lt_prog_compiler_wl='-Qoption ld ' |
---|
9810 | ;; |
---|
9811 | *Sun\ C*) |
---|
9812 | # Sun C 5.9 |
---|
9813 | lt_prog_compiler_pic='-KPIC' |
---|
9814 | lt_prog_compiler_static='-Bstatic' |
---|
9815 | lt_prog_compiler_wl='-Wl,' |
---|
9816 | ;; |
---|
9817 | *Intel*\ [CF]*Compiler*) |
---|
9818 | lt_prog_compiler_wl='-Wl,' |
---|
9819 | lt_prog_compiler_pic='-fPIC' |
---|
9820 | lt_prog_compiler_static='-static' |
---|
9821 | ;; |
---|
9822 | *Portland\ Group*) |
---|
9823 | lt_prog_compiler_wl='-Wl,' |
---|
9824 | lt_prog_compiler_pic='-fpic' |
---|
9825 | lt_prog_compiler_static='-Bstatic' |
---|
9826 | ;; |
---|
9827 | esac |
---|
9828 | ;; |
---|
9829 | esac |
---|
9830 | ;; |
---|
9831 | |
---|
9832 | newsos6) |
---|
9833 | lt_prog_compiler_pic='-KPIC' |
---|
9834 | lt_prog_compiler_static='-Bstatic' |
---|
9835 | ;; |
---|
9836 | |
---|
9837 | *nto* | *qnx*) |
---|
9838 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
---|
9839 | # it will coredump. |
---|
9840 | lt_prog_compiler_pic='-fPIC -shared' |
---|
9841 | ;; |
---|
9842 | |
---|
9843 | osf3* | osf4* | osf5*) |
---|
9844 | lt_prog_compiler_wl='-Wl,' |
---|
9845 | # All OSF/1 code is PIC. |
---|
9846 | lt_prog_compiler_static='-non_shared' |
---|
9847 | ;; |
---|
9848 | |
---|
9849 | rdos*) |
---|
9850 | lt_prog_compiler_static='-non_shared' |
---|
9851 | ;; |
---|
9852 | |
---|
9853 | solaris*) |
---|
9854 | lt_prog_compiler_pic='-KPIC' |
---|
9855 | lt_prog_compiler_static='-Bstatic' |
---|
9856 | case $cc_basename in |
---|
9857 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
---|
9858 | lt_prog_compiler_wl='-Qoption ld ';; |
---|
9859 | *) |
---|
9860 | lt_prog_compiler_wl='-Wl,';; |
---|
9861 | esac |
---|
9862 | ;; |
---|
9863 | |
---|
9864 | sunos4*) |
---|
9865 | lt_prog_compiler_wl='-Qoption ld ' |
---|
9866 | lt_prog_compiler_pic='-PIC' |
---|
9867 | lt_prog_compiler_static='-Bstatic' |
---|
9868 | ;; |
---|
9869 | |
---|
9870 | sysv4 | sysv4.2uw2* | sysv4.3*) |
---|
9871 | lt_prog_compiler_wl='-Wl,' |
---|
9872 | lt_prog_compiler_pic='-KPIC' |
---|
9873 | lt_prog_compiler_static='-Bstatic' |
---|
9874 | ;; |
---|
9875 | |
---|
9876 | sysv4*MP*) |
---|
9877 | if test -d /usr/nec; then |
---|
9878 | lt_prog_compiler_pic='-Kconform_pic' |
---|
9879 | lt_prog_compiler_static='-Bstatic' |
---|
9880 | fi |
---|
9881 | ;; |
---|
9882 | |
---|
9883 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
---|
9884 | lt_prog_compiler_wl='-Wl,' |
---|
9885 | lt_prog_compiler_pic='-KPIC' |
---|
9886 | lt_prog_compiler_static='-Bstatic' |
---|
9887 | ;; |
---|
9888 | |
---|
9889 | unicos*) |
---|
9890 | lt_prog_compiler_wl='-Wl,' |
---|
9891 | lt_prog_compiler_can_build_shared=no |
---|
9892 | ;; |
---|
9893 | |
---|
9894 | uts4*) |
---|
9895 | lt_prog_compiler_pic='-pic' |
---|
9896 | lt_prog_compiler_static='-Bstatic' |
---|
9897 | ;; |
---|
9898 | |
---|
9899 | *) |
---|
9900 | lt_prog_compiler_can_build_shared=no |
---|
9901 | ;; |
---|
9902 | esac |
---|
9903 | fi |
---|
9904 | |
---|
9905 | case $host_os in |
---|
9906 | # For platforms that do not support PIC, -DPIC is meaningless: |
---|
9907 | *djgpp*) |
---|
9908 | lt_prog_compiler_pic= |
---|
9909 | ;; |
---|
9910 | *) |
---|
9911 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
---|
9912 | ;; |
---|
9913 | esac |
---|
9914 | |
---|
9915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
---|
9916 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
---|
9917 | if ${lt_cv_prog_compiler_pic+:} false; then : |
---|
9918 | $as_echo_n "(cached) " >&6 |
---|
9919 | else |
---|
9920 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
---|
9921 | fi |
---|
9922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
---|
9923 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
---|
9924 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
---|
9925 | |
---|
9926 | # |
---|
9927 | # Check to make sure the PIC flag actually works. |
---|
9928 | # |
---|
9929 | if test -n "$lt_prog_compiler_pic"; then |
---|
9930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
---|
9931 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
---|
9932 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
---|
9933 | $as_echo_n "(cached) " >&6 |
---|
9934 | else |
---|
9935 | lt_cv_prog_compiler_pic_works=no |
---|
9936 | ac_outfile=conftest.$ac_objext |
---|
9937 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9938 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
---|
9939 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
9940 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
9941 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
9942 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
9943 | # The option is referenced via a variable to avoid confusing sed. |
---|
9944 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
9945 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
9946 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
9947 | -e 's:$: $lt_compiler_flag:'` |
---|
9948 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
---|
9949 | (eval "$lt_compile" 2>conftest.err) |
---|
9950 | ac_status=$? |
---|
9951 | cat conftest.err >&5 |
---|
9952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9953 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
9954 | # The compiler can only warn and ignore the option if not recognized |
---|
9955 | # So say no if there are warnings other than the usual output. |
---|
9956 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
---|
9957 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
9958 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
9959 | lt_cv_prog_compiler_pic_works=yes |
---|
9960 | fi |
---|
9961 | fi |
---|
9962 | $RM conftest* |
---|
9963 | |
---|
9964 | fi |
---|
9965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
---|
9966 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
---|
9967 | |
---|
9968 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
---|
9969 | case $lt_prog_compiler_pic in |
---|
9970 | "" | " "*) ;; |
---|
9971 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
---|
9972 | esac |
---|
9973 | else |
---|
9974 | lt_prog_compiler_pic= |
---|
9975 | lt_prog_compiler_can_build_shared=no |
---|
9976 | fi |
---|
9977 | |
---|
9978 | fi |
---|
9979 | |
---|
9980 | |
---|
9981 | |
---|
9982 | |
---|
9983 | |
---|
9984 | |
---|
9985 | |
---|
9986 | |
---|
9987 | |
---|
9988 | |
---|
9989 | |
---|
9990 | # |
---|
9991 | # Check to make sure the static flag actually works. |
---|
9992 | # |
---|
9993 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
---|
9994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
---|
9995 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
---|
9996 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
---|
9997 | $as_echo_n "(cached) " >&6 |
---|
9998 | else |
---|
9999 | lt_cv_prog_compiler_static_works=no |
---|
10000 | save_LDFLAGS=$LDFLAGS |
---|
10001 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
---|
10002 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
10003 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
10004 | # The linker can only warn and ignore the option if not recognized |
---|
10005 | # So say no if there are warnings |
---|
10006 | if test -s conftest.err; then |
---|
10007 | # Append any errors to the config.log. |
---|
10008 | cat conftest.err 1>&5 |
---|
10009 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
---|
10010 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
10011 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
10012 | lt_cv_prog_compiler_static_works=yes |
---|
10013 | fi |
---|
10014 | else |
---|
10015 | lt_cv_prog_compiler_static_works=yes |
---|
10016 | fi |
---|
10017 | fi |
---|
10018 | $RM -r conftest* |
---|
10019 | LDFLAGS=$save_LDFLAGS |
---|
10020 | |
---|
10021 | fi |
---|
10022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
---|
10023 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
---|
10024 | |
---|
10025 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
---|
10026 | : |
---|
10027 | else |
---|
10028 | lt_prog_compiler_static= |
---|
10029 | fi |
---|
10030 | |
---|
10031 | |
---|
10032 | |
---|
10033 | |
---|
10034 | |
---|
10035 | |
---|
10036 | |
---|
10037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
10038 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
---|
10039 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
---|
10040 | $as_echo_n "(cached) " >&6 |
---|
10041 | else |
---|
10042 | lt_cv_prog_compiler_c_o=no |
---|
10043 | $RM -r conftest 2>/dev/null |
---|
10044 | mkdir conftest |
---|
10045 | cd conftest |
---|
10046 | mkdir out |
---|
10047 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
10048 | |
---|
10049 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
10050 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
10051 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
10052 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
10053 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
10054 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
10055 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
10056 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
10057 | -e 's:$: $lt_compiler_flag:'` |
---|
10058 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
---|
10059 | (eval "$lt_compile" 2>out/conftest.err) |
---|
10060 | ac_status=$? |
---|
10061 | cat out/conftest.err >&5 |
---|
10062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10063 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
10064 | then |
---|
10065 | # The compiler can only warn and ignore the option if not recognized |
---|
10066 | # So say no if there are warnings |
---|
10067 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
---|
10068 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
10069 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
10070 | lt_cv_prog_compiler_c_o=yes |
---|
10071 | fi |
---|
10072 | fi |
---|
10073 | chmod u+w . 2>&5 |
---|
10074 | $RM conftest* |
---|
10075 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
10076 | # template instantiation |
---|
10077 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
---|
10078 | $RM out/* && rmdir out |
---|
10079 | cd .. |
---|
10080 | $RM -r conftest |
---|
10081 | $RM conftest* |
---|
10082 | |
---|
10083 | fi |
---|
10084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
10085 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
---|
10086 | |
---|
10087 | |
---|
10088 | |
---|
10089 | |
---|
10090 | |
---|
10091 | |
---|
10092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
10093 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
---|
10094 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
---|
10095 | $as_echo_n "(cached) " >&6 |
---|
10096 | else |
---|
10097 | lt_cv_prog_compiler_c_o=no |
---|
10098 | $RM -r conftest 2>/dev/null |
---|
10099 | mkdir conftest |
---|
10100 | cd conftest |
---|
10101 | mkdir out |
---|
10102 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
10103 | |
---|
10104 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
10105 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
10106 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
10107 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
10108 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
10109 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
10110 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
10111 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
10112 | -e 's:$: $lt_compiler_flag:'` |
---|
10113 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
---|
10114 | (eval "$lt_compile" 2>out/conftest.err) |
---|
10115 | ac_status=$? |
---|
10116 | cat out/conftest.err >&5 |
---|
10117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10118 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
10119 | then |
---|
10120 | # The compiler can only warn and ignore the option if not recognized |
---|
10121 | # So say no if there are warnings |
---|
10122 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
---|
10123 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
10124 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
10125 | lt_cv_prog_compiler_c_o=yes |
---|
10126 | fi |
---|
10127 | fi |
---|
10128 | chmod u+w . 2>&5 |
---|
10129 | $RM conftest* |
---|
10130 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
10131 | # template instantiation |
---|
10132 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
---|
10133 | $RM out/* && rmdir out |
---|
10134 | cd .. |
---|
10135 | $RM -r conftest |
---|
10136 | $RM conftest* |
---|
10137 | |
---|
10138 | fi |
---|
10139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
10140 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
---|
10141 | |
---|
10142 | |
---|
10143 | |
---|
10144 | |
---|
10145 | hard_links=nottested |
---|
10146 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
---|
10147 | # do not overwrite the value of need_locks provided by the user |
---|
10148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
---|
10149 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
---|
10150 | hard_links=yes |
---|
10151 | $RM conftest* |
---|
10152 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
10153 | touch conftest.a |
---|
10154 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
10155 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
10156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
---|
10157 | $as_echo "$hard_links" >&6; } |
---|
10158 | if test no = "$hard_links"; then |
---|
10159 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
---|
10160 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
---|
10161 | need_locks=warn |
---|
10162 | fi |
---|
10163 | else |
---|
10164 | need_locks=no |
---|
10165 | fi |
---|
10166 | |
---|
10167 | |
---|
10168 | |
---|
10169 | |
---|
10170 | |
---|
10171 | |
---|
10172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
10173 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
---|
10174 | |
---|
10175 | runpath_var= |
---|
10176 | allow_undefined_flag= |
---|
10177 | always_export_symbols=no |
---|
10178 | archive_cmds= |
---|
10179 | archive_expsym_cmds= |
---|
10180 | compiler_needs_object=no |
---|
10181 | enable_shared_with_static_runtimes=no |
---|
10182 | export_dynamic_flag_spec= |
---|
10183 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
10184 | hardcode_automatic=no |
---|
10185 | hardcode_direct=no |
---|
10186 | hardcode_direct_absolute=no |
---|
10187 | hardcode_libdir_flag_spec= |
---|
10188 | hardcode_libdir_separator= |
---|
10189 | hardcode_minus_L=no |
---|
10190 | hardcode_shlibpath_var=unsupported |
---|
10191 | inherit_rpath=no |
---|
10192 | link_all_deplibs=unknown |
---|
10193 | module_cmds= |
---|
10194 | module_expsym_cmds= |
---|
10195 | old_archive_from_new_cmds= |
---|
10196 | old_archive_from_expsyms_cmds= |
---|
10197 | thread_safe_flag_spec= |
---|
10198 | whole_archive_flag_spec= |
---|
10199 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
10200 | # included in the symbol list |
---|
10201 | include_expsyms= |
---|
10202 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
10203 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
---|
10204 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
---|
10205 | # as well as any symbol that contains 'd'. |
---|
10206 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
---|
10207 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
10208 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
10209 | # the symbol is explicitly referenced. Since portable code cannot |
---|
10210 | # rely on this symbol name, it's probably fine to never include it in |
---|
10211 | # preloaded symbol tables. |
---|
10212 | # Exclude shared library initialization/finalization symbols. |
---|
10213 | extract_expsyms_cmds= |
---|
10214 | |
---|
10215 | case $host_os in |
---|
10216 | cygwin* | mingw* | pw32* | cegcc*) |
---|
10217 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
10218 | # When not using gcc, we currently assume that we are using |
---|
10219 | # Microsoft Visual C++. |
---|
10220 | if test yes != "$GCC"; then |
---|
10221 | with_gnu_ld=no |
---|
10222 | fi |
---|
10223 | ;; |
---|
10224 | interix*) |
---|
10225 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
---|
10226 | with_gnu_ld=yes |
---|
10227 | ;; |
---|
10228 | openbsd* | bitrig*) |
---|
10229 | with_gnu_ld=no |
---|
10230 | ;; |
---|
10231 | esac |
---|
10232 | |
---|
10233 | ld_shlibs=yes |
---|
10234 | |
---|
10235 | # On some targets, GNU ld is compatible enough with the native linker |
---|
10236 | # that we're better off using the native interface for both. |
---|
10237 | lt_use_gnu_ld_interface=no |
---|
10238 | if test yes = "$with_gnu_ld"; then |
---|
10239 | case $host_os in |
---|
10240 | aix*) |
---|
10241 | # The AIX port of GNU ld has always aspired to compatibility |
---|
10242 | # with the native linker. However, as the warning in the GNU ld |
---|
10243 | # block says, versions before 2.19.5* couldn't really create working |
---|
10244 | # shared libraries, regardless of the interface used. |
---|
10245 | case `$LD -v 2>&1` in |
---|
10246 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
---|
10247 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
---|
10248 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
---|
10249 | *) |
---|
10250 | lt_use_gnu_ld_interface=yes |
---|
10251 | ;; |
---|
10252 | esac |
---|
10253 | ;; |
---|
10254 | *) |
---|
10255 | lt_use_gnu_ld_interface=yes |
---|
10256 | ;; |
---|
10257 | esac |
---|
10258 | fi |
---|
10259 | |
---|
10260 | if test yes = "$lt_use_gnu_ld_interface"; then |
---|
10261 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
10262 | wlarc='$wl' |
---|
10263 | |
---|
10264 | # Set some defaults for GNU ld with shared library support. These |
---|
10265 | # are reset later if shared libraries are not supported. Putting them |
---|
10266 | # here allows them to be overridden if necessary. |
---|
10267 | runpath_var=LD_RUN_PATH |
---|
10268 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
---|
10269 | export_dynamic_flag_spec='$wl--export-dynamic' |
---|
10270 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
10271 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
---|
10272 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
---|
10273 | else |
---|
10274 | whole_archive_flag_spec= |
---|
10275 | fi |
---|
10276 | supports_anon_versioning=no |
---|
10277 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
---|
10278 | *GNU\ gold*) supports_anon_versioning=yes ;; |
---|
10279 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
10280 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
10281 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
10282 | *\ 2.11.*) ;; # other 2.11 versions |
---|
10283 | *) supports_anon_versioning=yes ;; |
---|
10284 | esac |
---|
10285 | |
---|
10286 | # See if GNU ld supports shared libraries. |
---|
10287 | case $host_os in |
---|
10288 | aix[3-9]*) |
---|
10289 | # On AIX/PPC, the GNU linker is very broken |
---|
10290 | if test ia64 != "$host_cpu"; then |
---|
10291 | ld_shlibs=no |
---|
10292 | cat <<_LT_EOF 1>&2 |
---|
10293 | |
---|
10294 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
---|
10295 | *** to be unable to reliably create shared libraries on AIX. |
---|
10296 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
10297 | *** really care for shared libraries, you may want to install binutils |
---|
10298 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
---|
10299 | *** You will then need to restart the configuration process. |
---|
10300 | |
---|
10301 | _LT_EOF |
---|
10302 | fi |
---|
10303 | ;; |
---|
10304 | |
---|
10305 | amigaos*) |
---|
10306 | case $host_cpu in |
---|
10307 | powerpc) |
---|
10308 | # see comment about AmigaOS4 .so support |
---|
10309 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
---|
10310 | archive_expsym_cmds='' |
---|
10311 | ;; |
---|
10312 | m68k) |
---|
10313 | 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)' |
---|
10314 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10315 | hardcode_minus_L=yes |
---|
10316 | ;; |
---|
10317 | esac |
---|
10318 | ;; |
---|
10319 | |
---|
10320 | beos*) |
---|
10321 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
---|
10322 | allow_undefined_flag=unsupported |
---|
10323 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
10324 | # support --undefined. This deserves some investigation. FIXME |
---|
10325 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
---|
10326 | else |
---|
10327 | ld_shlibs=no |
---|
10328 | fi |
---|
10329 | ;; |
---|
10330 | |
---|
10331 | cygwin* | mingw* | pw32* | cegcc*) |
---|
10332 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
---|
10333 | # as there is no search path for DLLs. |
---|
10334 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10335 | export_dynamic_flag_spec='$wl--export-all-symbols' |
---|
10336 | allow_undefined_flag=unsupported |
---|
10337 | always_export_symbols=no |
---|
10338 | enable_shared_with_static_runtimes=yes |
---|
10339 | 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' |
---|
10340 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
---|
10341 | |
---|
10342 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
---|
10343 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
10344 | # If the export-symbols file already is a .def file, use it as |
---|
10345 | # is; otherwise, prepend EXPORTS... |
---|
10346 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
---|
10347 | cp $export_symbols $output_objdir/$soname.def; |
---|
10348 | else |
---|
10349 | echo EXPORTS > $output_objdir/$soname.def; |
---|
10350 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
10351 | fi~ |
---|
10352 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
10353 | else |
---|
10354 | ld_shlibs=no |
---|
10355 | fi |
---|
10356 | ;; |
---|
10357 | |
---|
10358 | haiku*) |
---|
10359 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
---|
10360 | link_all_deplibs=yes |
---|
10361 | ;; |
---|
10362 | |
---|
10363 | os2*) |
---|
10364 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10365 | hardcode_minus_L=yes |
---|
10366 | allow_undefined_flag=unsupported |
---|
10367 | shrext_cmds=.dll |
---|
10368 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
---|
10369 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
---|
10370 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
---|
10371 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
---|
10372 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
---|
10373 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
---|
10374 | emximp -o $lib $output_objdir/$libname.def' |
---|
10375 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
---|
10376 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
---|
10377 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
---|
10378 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
---|
10379 | prefix_cmds="$SED"~ |
---|
10380 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
---|
10381 | prefix_cmds="$prefix_cmds -e 1d"; |
---|
10382 | fi~ |
---|
10383 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
---|
10384 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
---|
10385 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
---|
10386 | emximp -o $lib $output_objdir/$libname.def' |
---|
10387 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
---|
10388 | enable_shared_with_static_runtimes=yes |
---|
10389 | ;; |
---|
10390 | |
---|
10391 | interix[3-9]*) |
---|
10392 | hardcode_direct=no |
---|
10393 | hardcode_shlibpath_var=no |
---|
10394 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
---|
10395 | export_dynamic_flag_spec='$wl-E' |
---|
10396 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
---|
10397 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
---|
10398 | # default) and relocated if they conflict, which is a slow very memory |
---|
10399 | # consuming and fragmenting process. To avoid this, we pick a random, |
---|
10400 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
---|
10401 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
---|
10402 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
---|
10403 | 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' |
---|
10404 | ;; |
---|
10405 | |
---|
10406 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
---|
10407 | tmp_diet=no |
---|
10408 | if test linux-dietlibc = "$host_os"; then |
---|
10409 | case $cc_basename in |
---|
10410 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
---|
10411 | esac |
---|
10412 | fi |
---|
10413 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
---|
10414 | && test no = "$tmp_diet" |
---|
10415 | then |
---|
10416 | tmp_addflag=' $pic_flag' |
---|
10417 | tmp_sharedflag='-shared' |
---|
10418 | case $cc_basename,$host_cpu in |
---|
10419 | pgcc*) # Portland Group C compiler |
---|
10420 | 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' |
---|
10421 | tmp_addflag=' $pic_flag' |
---|
10422 | ;; |
---|
10423 | pgf77* | pgf90* | pgf95* | pgfortran*) |
---|
10424 | # Portland Group f77 and f90 compilers |
---|
10425 | 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' |
---|
10426 | tmp_addflag=' $pic_flag -Mnomain' ;; |
---|
10427 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
10428 | tmp_addflag=' -i_dynamic' ;; |
---|
10429 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
10430 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
10431 | ifc* | ifort*) # Intel Fortran compiler |
---|
10432 | tmp_addflag=' -nofor_main' ;; |
---|
10433 | lf95*) # Lahey Fortran 8.1 |
---|
10434 | whole_archive_flag_spec= |
---|
10435 | tmp_sharedflag='--shared' ;; |
---|
10436 | nagfor*) # NAGFOR 5.3 |
---|
10437 | tmp_sharedflag='-Wl,-shared' ;; |
---|
10438 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
---|
10439 | tmp_sharedflag='-qmkshrobj' |
---|
10440 | tmp_addflag= ;; |
---|
10441 | nvcc*) # Cuda Compiler Driver 2.2 |
---|
10442 | 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' |
---|
10443 | compiler_needs_object=yes |
---|
10444 | ;; |
---|
10445 | esac |
---|
10446 | case `$CC -V 2>&1 | sed 5q` in |
---|
10447 | *Sun\ C*) # Sun C 5.9 |
---|
10448 | 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' |
---|
10449 | compiler_needs_object=yes |
---|
10450 | tmp_sharedflag='-G' ;; |
---|
10451 | *Sun\ F*) # Sun Fortran 8.3 |
---|
10452 | tmp_sharedflag='-G' ;; |
---|
10453 | esac |
---|
10454 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
---|
10455 | |
---|
10456 | if test yes = "$supports_anon_versioning"; then |
---|
10457 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
---|
10458 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
10459 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
10460 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
---|
10461 | fi |
---|
10462 | |
---|
10463 | case $cc_basename in |
---|
10464 | tcc*) |
---|
10465 | export_dynamic_flag_spec='-rdynamic' |
---|
10466 | ;; |
---|
10467 | xlf* | bgf* | bgxlf* | mpixlf*) |
---|
10468 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
---|
10469 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
---|
10470 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
---|
10471 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
---|
10472 | if test yes = "$supports_anon_versioning"; then |
---|
10473 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
---|
10474 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
10475 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
10476 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
---|
10477 | fi |
---|
10478 | ;; |
---|
10479 | esac |
---|
10480 | else |
---|
10481 | ld_shlibs=no |
---|
10482 | fi |
---|
10483 | ;; |
---|
10484 | |
---|
10485 | netbsd*) |
---|
10486 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
---|
10487 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
10488 | wlarc= |
---|
10489 | else |
---|
10490 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
---|
10491 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
---|
10492 | fi |
---|
10493 | ;; |
---|
10494 | |
---|
10495 | solaris*) |
---|
10496 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
---|
10497 | ld_shlibs=no |
---|
10498 | cat <<_LT_EOF 1>&2 |
---|
10499 | |
---|
10500 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
10501 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
10502 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
10503 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
10504 | *** your PATH or compiler configuration so that the native linker is |
---|
10505 | *** used, and then restart. |
---|
10506 | |
---|
10507 | _LT_EOF |
---|
10508 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
---|
10509 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
---|
10510 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
---|
10511 | else |
---|
10512 | ld_shlibs=no |
---|
10513 | fi |
---|
10514 | ;; |
---|
10515 | |
---|
10516 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
---|
10517 | case `$LD -v 2>&1` in |
---|
10518 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
---|
10519 | ld_shlibs=no |
---|
10520 | cat <<_LT_EOF 1>&2 |
---|
10521 | |
---|
10522 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
---|
10523 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
---|
10524 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
10525 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
---|
10526 | *** your PATH or compiler configuration so that the native linker is |
---|
10527 | *** used, and then restart. |
---|
10528 | |
---|
10529 | _LT_EOF |
---|
10530 | ;; |
---|
10531 | *) |
---|
10532 | # For security reasons, it is highly recommended that you always |
---|
10533 | # use absolute paths for naming shared libraries, and exclude the |
---|
10534 | # DT_RUNPATH tag from executables and libraries. But doing so |
---|
10535 | # requires that you compile everything twice, which is a pain. |
---|
10536 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
---|
10537 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
---|
10538 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
---|
10539 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
---|
10540 | else |
---|
10541 | ld_shlibs=no |
---|
10542 | fi |
---|
10543 | ;; |
---|
10544 | esac |
---|
10545 | ;; |
---|
10546 | |
---|
10547 | sunos4*) |
---|
10548 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
10549 | wlarc= |
---|
10550 | hardcode_direct=yes |
---|
10551 | hardcode_shlibpath_var=no |
---|
10552 | ;; |
---|
10553 | |
---|
10554 | *) |
---|
10555 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
---|
10556 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
---|
10557 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
---|
10558 | else |
---|
10559 | ld_shlibs=no |
---|
10560 | fi |
---|
10561 | ;; |
---|
10562 | esac |
---|
10563 | |
---|
10564 | if test no = "$ld_shlibs"; then |
---|
10565 | runpath_var= |
---|
10566 | hardcode_libdir_flag_spec= |
---|
10567 | export_dynamic_flag_spec= |
---|
10568 | whole_archive_flag_spec= |
---|
10569 | fi |
---|
10570 | else |
---|
10571 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
10572 | case $host_os in |
---|
10573 | aix3*) |
---|
10574 | allow_undefined_flag=unsupported |
---|
10575 | always_export_symbols=yes |
---|
10576 | 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' |
---|
10577 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
10578 | # are no directories specified by -L. |
---|
10579 | hardcode_minus_L=yes |
---|
10580 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
---|
10581 | # Neither direct hardcoding nor static linking is supported with a |
---|
10582 | # broken collect2. |
---|
10583 | hardcode_direct=unsupported |
---|
10584 | fi |
---|
10585 | ;; |
---|
10586 | |
---|
10587 | aix[4-9]*) |
---|
10588 | if test ia64 = "$host_cpu"; then |
---|
10589 | # On IA64, the linker does run time linking by default, so we don't |
---|
10590 | # have to do anything special. |
---|
10591 | aix_use_runtimelinking=no |
---|
10592 | exp_sym_flag='-Bexport' |
---|
10593 | no_entry_flag= |
---|
10594 | else |
---|
10595 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
10596 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
---|
10597 | # Without the "-l" option, or with the "-B" option, AIX nm treats |
---|
10598 | # weak defined symbols like other global defined symbols, whereas |
---|
10599 | # GNU nm marks them as "W". |
---|
10600 | # While the 'weak' keyword is ignored in the Export File, we need |
---|
10601 | # it in the Import File for the 'aix-soname' feature, so we have |
---|
10602 | # to replace the "-B" option with "-P" for AIX nm. |
---|
10603 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
---|
10604 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
---|
10605 | else |
---|
10606 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
---|
10607 | fi |
---|
10608 | aix_use_runtimelinking=no |
---|
10609 | |
---|
10610 | # Test if we are trying to use run time linking or normal |
---|
10611 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
10612 | # have runtime linking enabled, and use it for executables. |
---|
10613 | # For shared libraries, we enable/disable runtime linking |
---|
10614 | # depending on the kind of the shared library created - |
---|
10615 | # when "with_aix_soname,aix_use_runtimelinking" is: |
---|
10616 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
---|
10617 | # "aix,yes" lib.so shared, rtl:yes, for executables |
---|
10618 | # lib.a static archive |
---|
10619 | # "both,no" lib.so.V(shr.o) shared, rtl:yes |
---|
10620 | # lib.a(lib.so.V) shared, rtl:no, for executables |
---|
10621 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
---|
10622 | # lib.a(lib.so.V) shared, rtl:no |
---|
10623 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
---|
10624 | # lib.a static archive |
---|
10625 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
---|
10626 | for ld_flag in $LDFLAGS; do |
---|
10627 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
---|
10628 | aix_use_runtimelinking=yes |
---|
10629 | break |
---|
10630 | fi |
---|
10631 | done |
---|
10632 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
---|
10633 | # With aix-soname=svr4, we create the lib.so.V shared archives only, |
---|
10634 | # so we don't have lib.a shared libs to link our executables. |
---|
10635 | # We have to force runtime linking in this case. |
---|
10636 | aix_use_runtimelinking=yes |
---|
10637 | LDFLAGS="$LDFLAGS -Wl,-brtl" |
---|
10638 | fi |
---|
10639 | ;; |
---|
10640 | esac |
---|
10641 | |
---|
10642 | exp_sym_flag='-bexport' |
---|
10643 | no_entry_flag='-bnoentry' |
---|
10644 | fi |
---|
10645 | |
---|
10646 | # When large executables or shared objects are built, AIX ld can |
---|
10647 | # have problems creating the table of contents. If linking a library |
---|
10648 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
10649 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
10650 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
10651 | |
---|
10652 | archive_cmds='' |
---|
10653 | hardcode_direct=yes |
---|
10654 | hardcode_direct_absolute=yes |
---|
10655 | hardcode_libdir_separator=':' |
---|
10656 | link_all_deplibs=yes |
---|
10657 | file_list_spec='$wl-f,' |
---|
10658 | case $with_aix_soname,$aix_use_runtimelinking in |
---|
10659 | aix,*) ;; # traditional, no import file |
---|
10660 | svr4,* | *,yes) # use import file |
---|
10661 | # The Import File defines what to hardcode. |
---|
10662 | hardcode_direct=no |
---|
10663 | hardcode_direct_absolute=no |
---|
10664 | ;; |
---|
10665 | esac |
---|
10666 | |
---|
10667 | if test yes = "$GCC"; then |
---|
10668 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
10669 | # We only want to do this on AIX 4.2 and lower, the check |
---|
10670 | # below for broken collect2 doesn't work under 4.3+ |
---|
10671 | collect2name=`$CC -print-prog-name=collect2` |
---|
10672 | if test -f "$collect2name" && |
---|
10673 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
---|
10674 | then |
---|
10675 | # We have reworked collect2 |
---|
10676 | : |
---|
10677 | else |
---|
10678 | # We have old collect2 |
---|
10679 | hardcode_direct=unsupported |
---|
10680 | # It fails to find uninstalled libraries when the uninstalled |
---|
10681 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
10682 | # to unsupported forces relinking |
---|
10683 | hardcode_minus_L=yes |
---|
10684 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10685 | hardcode_libdir_separator= |
---|
10686 | fi |
---|
10687 | ;; |
---|
10688 | esac |
---|
10689 | shared_flag='-shared' |
---|
10690 | if test yes = "$aix_use_runtimelinking"; then |
---|
10691 | shared_flag="$shared_flag "'$wl-G' |
---|
10692 | fi |
---|
10693 | # Need to ensure runtime linking is disabled for the traditional |
---|
10694 | # shared library, or the linker may eventually find shared libraries |
---|
10695 | # /with/ Import File - we do not want to mix them. |
---|
10696 | shared_flag_aix='-shared' |
---|
10697 | shared_flag_svr4='-shared $wl-G' |
---|
10698 | else |
---|
10699 | # not using gcc |
---|
10700 | if test ia64 = "$host_cpu"; then |
---|
10701 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
10702 | # chokes on -Wl,-G. The following line is correct: |
---|
10703 | shared_flag='-G' |
---|
10704 | else |
---|
10705 | if test yes = "$aix_use_runtimelinking"; then |
---|
10706 | shared_flag='$wl-G' |
---|
10707 | else |
---|
10708 | shared_flag='$wl-bM:SRE' |
---|
10709 | fi |
---|
10710 | shared_flag_aix='$wl-bM:SRE' |
---|
10711 | shared_flag_svr4='$wl-G' |
---|
10712 | fi |
---|
10713 | fi |
---|
10714 | |
---|
10715 | export_dynamic_flag_spec='$wl-bexpall' |
---|
10716 | # It seems that -bexpall does not export symbols beginning with |
---|
10717 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
10718 | always_export_symbols=yes |
---|
10719 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
---|
10720 | # Warning - without using the other runtime loading flags (-brtl), |
---|
10721 | # -berok will link without error, but may produce a broken library. |
---|
10722 | allow_undefined_flag='-berok' |
---|
10723 | # Determine the default libpath from the value encoded in an |
---|
10724 | # empty executable. |
---|
10725 | if test set = "${lt_cv_aix_libpath+set}"; then |
---|
10726 | aix_libpath=$lt_cv_aix_libpath |
---|
10727 | else |
---|
10728 | if ${lt_cv_aix_libpath_+:} false; then : |
---|
10729 | $as_echo_n "(cached) " >&6 |
---|
10730 | else |
---|
10731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
10732 | /* end confdefs.h. */ |
---|
10733 | |
---|
10734 | int |
---|
10735 | main () |
---|
10736 | { |
---|
10737 | |
---|
10738 | ; |
---|
10739 | return 0; |
---|
10740 | } |
---|
10741 | _ACEOF |
---|
10742 | if ac_fn_c_try_link "$LINENO"; then : |
---|
10743 | |
---|
10744 | lt_aix_libpath_sed=' |
---|
10745 | /Import File Strings/,/^$/ { |
---|
10746 | /^0/ { |
---|
10747 | s/^0 *\([^ ]*\) *$/\1/ |
---|
10748 | p |
---|
10749 | } |
---|
10750 | }' |
---|
10751 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
10752 | # Check for a 64-bit object if we didn't find anything. |
---|
10753 | if test -z "$lt_cv_aix_libpath_"; then |
---|
10754 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
10755 | fi |
---|
10756 | fi |
---|
10757 | rm -f core conftest.err conftest.$ac_objext \ |
---|
10758 | conftest$ac_exeext conftest.$ac_ext |
---|
10759 | if test -z "$lt_cv_aix_libpath_"; then |
---|
10760 | lt_cv_aix_libpath_=/usr/lib:/lib |
---|
10761 | fi |
---|
10762 | |
---|
10763 | fi |
---|
10764 | |
---|
10765 | aix_libpath=$lt_cv_aix_libpath_ |
---|
10766 | fi |
---|
10767 | |
---|
10768 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
---|
10769 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
---|
10770 | else |
---|
10771 | if test ia64 = "$host_cpu"; then |
---|
10772 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
---|
10773 | allow_undefined_flag="-z nodefs" |
---|
10774 | 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" |
---|
10775 | else |
---|
10776 | # Determine the default libpath from the value encoded in an |
---|
10777 | # empty executable. |
---|
10778 | if test set = "${lt_cv_aix_libpath+set}"; then |
---|
10779 | aix_libpath=$lt_cv_aix_libpath |
---|
10780 | else |
---|
10781 | if ${lt_cv_aix_libpath_+:} false; then : |
---|
10782 | $as_echo_n "(cached) " >&6 |
---|
10783 | else |
---|
10784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
10785 | /* end confdefs.h. */ |
---|
10786 | |
---|
10787 | int |
---|
10788 | main () |
---|
10789 | { |
---|
10790 | |
---|
10791 | ; |
---|
10792 | return 0; |
---|
10793 | } |
---|
10794 | _ACEOF |
---|
10795 | if ac_fn_c_try_link "$LINENO"; then : |
---|
10796 | |
---|
10797 | lt_aix_libpath_sed=' |
---|
10798 | /Import File Strings/,/^$/ { |
---|
10799 | /^0/ { |
---|
10800 | s/^0 *\([^ ]*\) *$/\1/ |
---|
10801 | p |
---|
10802 | } |
---|
10803 | }' |
---|
10804 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
10805 | # Check for a 64-bit object if we didn't find anything. |
---|
10806 | if test -z "$lt_cv_aix_libpath_"; then |
---|
10807 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
10808 | fi |
---|
10809 | fi |
---|
10810 | rm -f core conftest.err conftest.$ac_objext \ |
---|
10811 | conftest$ac_exeext conftest.$ac_ext |
---|
10812 | if test -z "$lt_cv_aix_libpath_"; then |
---|
10813 | lt_cv_aix_libpath_=/usr/lib:/lib |
---|
10814 | fi |
---|
10815 | |
---|
10816 | fi |
---|
10817 | |
---|
10818 | aix_libpath=$lt_cv_aix_libpath_ |
---|
10819 | fi |
---|
10820 | |
---|
10821 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
---|
10822 | # Warning - without using the other run time loading flags, |
---|
10823 | # -berok will link without error, but may produce a broken library. |
---|
10824 | no_undefined_flag=' $wl-bernotok' |
---|
10825 | allow_undefined_flag=' $wl-berok' |
---|
10826 | if test yes = "$with_gnu_ld"; then |
---|
10827 | # We only use this code for GNU lds that support --whole-archive. |
---|
10828 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
---|
10829 | else |
---|
10830 | # Exported symbols can be pulled into shared objects from archives |
---|
10831 | whole_archive_flag_spec='$convenience' |
---|
10832 | fi |
---|
10833 | archive_cmds_need_lc=yes |
---|
10834 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
---|
10835 | # -brtl affects multiple linker settings, -berok does not and is overridden later |
---|
10836 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
---|
10837 | if test svr4 != "$with_aix_soname"; then |
---|
10838 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
10839 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' |
---|
10840 | fi |
---|
10841 | if test aix != "$with_aix_soname"; then |
---|
10842 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' |
---|
10843 | else |
---|
10844 | # used by -dlpreopen to get the symbols |
---|
10845 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
---|
10846 | fi |
---|
10847 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
---|
10848 | fi |
---|
10849 | fi |
---|
10850 | ;; |
---|
10851 | |
---|
10852 | amigaos*) |
---|
10853 | case $host_cpu in |
---|
10854 | powerpc) |
---|
10855 | # see comment about AmigaOS4 .so support |
---|
10856 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
---|
10857 | archive_expsym_cmds='' |
---|
10858 | ;; |
---|
10859 | m68k) |
---|
10860 | 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)' |
---|
10861 | hardcode_libdir_flag_spec='-L$libdir' |
---|
10862 | hardcode_minus_L=yes |
---|
10863 | ;; |
---|
10864 | esac |
---|
10865 | ;; |
---|
10866 | |
---|
10867 | bsdi[45]*) |
---|
10868 | export_dynamic_flag_spec=-rdynamic |
---|
10869 | ;; |
---|
10870 | |
---|
10871 | cygwin* | mingw* | pw32* | cegcc*) |
---|
10872 | # When not using gcc, we currently assume that we are using |
---|
10873 | # Microsoft Visual C++ or Intel C++/Fortran Compiler. |
---|
10874 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
10875 | # no search path for DLLs. |
---|
10876 | case $cc_basename in |
---|
10877 | cl* | icl*| ifort*) |
---|
10878 | # Native MSVC or ICC or IFORT |
---|
10879 | hardcode_libdir_flag_spec=' ' |
---|
10880 | allow_undefined_flag=unsupported |
---|
10881 | always_export_symbols=yes |
---|
10882 | file_list_spec='@' |
---|
10883 | # Tell ltmain to make .lib files, not .a files. |
---|
10884 | libext=lib |
---|
10885 | # Tell ltmain to make .dll files, not .so files. |
---|
10886 | shrext_cmds=.dll |
---|
10887 | # FIXME: Setting linknames here is a bad hack. |
---|
10888 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
---|
10889 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
---|
10890 | cp "$export_symbols" "$output_objdir/$soname.def"; |
---|
10891 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
---|
10892 | else |
---|
10893 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
---|
10894 | fi~ |
---|
10895 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
---|
10896 | linknames=' |
---|
10897 | # The linker will not automatically build a static lib if we build a DLL. |
---|
10898 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
---|
10899 | enable_shared_with_static_runtimes=yes |
---|
10900 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
---|
10901 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
---|
10902 | # Don't use ranlib |
---|
10903 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
10904 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
---|
10905 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
---|
10906 | case $lt_outputfile in |
---|
10907 | *.exe|*.EXE) ;; |
---|
10908 | *) |
---|
10909 | lt_outputfile=$lt_outputfile.exe |
---|
10910 | lt_tool_outputfile=$lt_tool_outputfile.exe |
---|
10911 | ;; |
---|
10912 | esac~ |
---|
10913 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
---|
10914 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
---|
10915 | $RM "$lt_outputfile.manifest"; |
---|
10916 | fi' |
---|
10917 | ;; |
---|
10918 | *) |
---|
10919 | # Assume MSVC and ICC and IFORT wrapper |
---|
10920 | hardcode_libdir_flag_spec=' ' |
---|
10921 | allow_undefined_flag=unsupported |
---|
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 $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
10928 | # The linker will automatically build a .lib file if we build a DLL. |
---|
10929 | old_archive_from_new_cmds='true' |
---|
10930 | # FIXME: Should let the user specify the lib program. |
---|
10931 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
---|
10932 | enable_shared_with_static_runtimes=yes |
---|
10933 | ;; |
---|
10934 | esac |
---|
10935 | ;; |
---|
10936 | |
---|
10937 | darwin* | rhapsody*) |
---|
10938 | |
---|
10939 | |
---|
10940 | archive_cmds_need_lc=no |
---|
10941 | hardcode_direct=no |
---|
10942 | hardcode_automatic=yes |
---|
10943 | hardcode_shlibpath_var=unsupported |
---|
10944 | if test yes = "$lt_cv_ld_force_load"; then |
---|
10945 | 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\"`' |
---|
10946 | |
---|
10947 | else |
---|
10948 | whole_archive_flag_spec='' |
---|
10949 | fi |
---|
10950 | link_all_deplibs=yes |
---|
|
---|