1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.69 for pymolproxy 1.0. |
---|
4 | # |
---|
5 | # Report bugs to <rappture@nanohub.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 | ## M4sh Initialization. ## |
---|
15 | ## -------------------- ## |
---|
16 | |
---|
17 | # Be more Bourne compatible |
---|
18 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
20 | emulate sh |
---|
21 | NULLCMD=: |
---|
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
23 | # is contrary to our usage. Disable this feature. |
---|
24 | alias -g '${1+"$@"}'='"$@"' |
---|
25 | setopt NO_GLOB_SUBST |
---|
26 | else |
---|
27 | case `(set -o) 2>/dev/null` in #( |
---|
28 | *posix*) : |
---|
29 | set -o posix ;; #( |
---|
30 | *) : |
---|
31 | ;; |
---|
32 | esac |
---|
33 | fi |
---|
34 | |
---|
35 | |
---|
36 | as_nl=' |
---|
37 | ' |
---|
38 | export as_nl |
---|
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
44 | # but without wasting forks for bash or zsh. |
---|
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
47 | as_echo='print -r --' |
---|
48 | as_echo_n='print -rn --' |
---|
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
50 | as_echo='printf %s\n' |
---|
51 | as_echo_n='printf %s' |
---|
52 | else |
---|
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
55 | as_echo_n='/usr/ucb/echo -n' |
---|
56 | else |
---|
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
58 | as_echo_n_body='eval |
---|
59 | arg=$1; |
---|
60 | case $arg in #( |
---|
61 | *"$as_nl"*) |
---|
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
64 | esac; |
---|
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
66 | ' |
---|
67 | export as_echo_n_body |
---|
68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
69 | fi |
---|
70 | export as_echo_body |
---|
71 | as_echo='sh -c $as_echo_body as_echo' |
---|
72 | fi |
---|
73 | |
---|
74 | # The user is always right. |
---|
75 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
76 | PATH_SEPARATOR=: |
---|
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
79 | PATH_SEPARATOR=';' |
---|
80 | } |
---|
81 | fi |
---|
82 | |
---|
83 | |
---|
84 | # IFS |
---|
85 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
86 | # there to prevent editors from complaining about space-tab. |
---|
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
88 | # splitting by setting IFS to empty value.) |
---|
89 | IFS=" "" $as_nl" |
---|
90 | |
---|
91 | # Find who we are. Look in the path if we contain no directory separator. |
---|
92 | as_myself= |
---|
93 | case $0 in #(( |
---|
94 | *[\\/]* ) as_myself=$0 ;; |
---|
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
96 | for as_dir in $PATH |
---|
97 | do |
---|
98 | IFS=$as_save_IFS |
---|
99 | test -z "$as_dir" && as_dir=. |
---|
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
101 | done |
---|
102 | IFS=$as_save_IFS |
---|
103 | |
---|
104 | ;; |
---|
105 | esac |
---|
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
107 | # in which case we are not to be found in the path. |
---|
108 | if test "x$as_myself" = x; then |
---|
109 | as_myself=$0 |
---|
110 | fi |
---|
111 | if test ! -f "$as_myself"; then |
---|
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
113 | exit 1 |
---|
114 | fi |
---|
115 | |
---|
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
118 | # suppresses any "Segmentation fault" message there. '((' could |
---|
119 | # trigger a bug in pdksh 5.2.14. |
---|
120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
121 | do eval test x\${$as_var+set} = xset \ |
---|
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
123 | done |
---|
124 | PS1='$ ' |
---|
125 | PS2='> ' |
---|
126 | PS4='+ ' |
---|
127 | |
---|
128 | # NLS nuisances. |
---|
129 | LC_ALL=C |
---|
130 | export LC_ALL |
---|
131 | LANGUAGE=C |
---|
132 | export LANGUAGE |
---|
133 | |
---|
134 | # CDPATH. |
---|
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
136 | |
---|
137 | # Use a proper internal environment variable to ensure we don't fall |
---|
138 | # into an infinite loop, continuously re-executing ourselves. |
---|
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
---|
140 | _as_can_reexec=no; export _as_can_reexec; |
---|
141 | # We cannot yet assume a decent shell, so we have to provide a |
---|
142 | # neutralization value for shells without unset; and this also |
---|
143 | # works around shells that cannot unset nonexistent variables. |
---|
144 | # Preserve -v and -x to the replacement shell. |
---|
145 | BASH_ENV=/dev/null |
---|
146 | ENV=/dev/null |
---|
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
148 | case $- in # (((( |
---|
149 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
150 | *v* ) as_opts=-v ;; |
---|
151 | *x* ) as_opts=-x ;; |
---|
152 | * ) as_opts= ;; |
---|
153 | esac |
---|
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
155 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
156 | # out after a failed `exec'. |
---|
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
158 | as_fn_exit 255 |
---|
159 | fi |
---|
160 | # We don't want this to propagate to other subprocesses. |
---|
161 | { _as_can_reexec=; unset _as_can_reexec;} |
---|
162 | if test "x$CONFIG_SHELL" = x; then |
---|
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
164 | emulate sh |
---|
165 | NULLCMD=: |
---|
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
167 | # is contrary to our usage. Disable this feature. |
---|
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
169 | setopt NO_GLOB_SUBST |
---|
170 | else |
---|
171 | case \`(set -o) 2>/dev/null\` in #( |
---|
172 | *posix*) : |
---|
173 | set -o posix ;; #( |
---|
174 | *) : |
---|
175 | ;; |
---|
176 | esac |
---|
177 | fi |
---|
178 | " |
---|
179 | as_required="as_fn_return () { (exit \$1); } |
---|
180 | as_fn_success () { as_fn_return 0; } |
---|
181 | as_fn_failure () { as_fn_return 1; } |
---|
182 | as_fn_ret_success () { return 0; } |
---|
183 | as_fn_ret_failure () { return 1; } |
---|
184 | |
---|
185 | exitcode=0 |
---|
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
191 | |
---|
192 | else |
---|
193 | exitcode=1; echo positional parameters were not saved. |
---|
194 | fi |
---|
195 | test x\$exitcode = x0 || exit 1 |
---|
196 | test -x / || exit 1" |
---|
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
201 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
202 | if (eval "$as_required") 2>/dev/null; then : |
---|
203 | as_have_required=yes |
---|
204 | else |
---|
205 | as_have_required=no |
---|
206 | fi |
---|
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
208 | |
---|
209 | else |
---|
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
211 | as_found=false |
---|
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
213 | do |
---|
214 | IFS=$as_save_IFS |
---|
215 | test -z "$as_dir" && as_dir=. |
---|
216 | as_found=: |
---|
217 | case $as_dir in #( |
---|
218 | /*) |
---|
219 | for as_base in sh bash ksh sh5; do |
---|
220 | # Try only shells that exist, to save several forks. |
---|
221 | as_shell=$as_dir/$as_base |
---|
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
224 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
226 | break 2 |
---|
227 | fi |
---|
228 | fi |
---|
229 | done;; |
---|
230 | esac |
---|
231 | as_found=false |
---|
232 | done |
---|
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
235 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
236 | fi; } |
---|
237 | IFS=$as_save_IFS |
---|
238 | |
---|
239 | |
---|
240 | if test "x$CONFIG_SHELL" != x; then : |
---|
241 | export CONFIG_SHELL |
---|
242 | # We cannot yet assume a decent shell, so we have to provide a |
---|
243 | # neutralization value for shells without unset; and this also |
---|
244 | # works around shells that cannot unset nonexistent variables. |
---|
245 | # Preserve -v and -x to the replacement shell. |
---|
246 | BASH_ENV=/dev/null |
---|
247 | ENV=/dev/null |
---|
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
249 | case $- in # (((( |
---|
250 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
251 | *v* ) as_opts=-v ;; |
---|
252 | *x* ) as_opts=-x ;; |
---|
253 | * ) as_opts= ;; |
---|
254 | esac |
---|
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
256 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
257 | # out after a failed `exec'. |
---|
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
259 | exit 255 |
---|
260 | fi |
---|
261 | |
---|
262 | if test x$as_have_required = xno; then : |
---|
263 | $as_echo "$0: This script requires a shell more modern than all" |
---|
264 | $as_echo "$0: the shells that I found on your system." |
---|
265 | if test x${ZSH_VERSION+set} = xset ; then |
---|
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
268 | else |
---|
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
---|
270 | $0: rappture@nanohub.org about your system, including any |
---|
271 | $0: error possibly output before this message. Then install |
---|
272 | $0: a modern shell, or manually run the script under such a |
---|
273 | $0: shell if you do have one." |
---|
274 | fi |
---|
275 | exit 1 |
---|
276 | fi |
---|
277 | fi |
---|
278 | fi |
---|
279 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
280 | export SHELL |
---|
281 | # Unset more variables known to interfere with behavior of common tools. |
---|
282 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
283 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
284 | |
---|
285 | ## --------------------- ## |
---|
286 | ## M4sh Shell Functions. ## |
---|
287 | ## --------------------- ## |
---|
288 | # as_fn_unset VAR |
---|
289 | # --------------- |
---|
290 | # Portably unset VAR. |
---|
291 | as_fn_unset () |
---|
292 | { |
---|
293 | { eval $1=; unset $1;} |
---|
294 | } |
---|
295 | as_unset=as_fn_unset |
---|
296 | |
---|
297 | # as_fn_set_status STATUS |
---|
298 | # ----------------------- |
---|
299 | # Set $? to STATUS, without forking. |
---|
300 | as_fn_set_status () |
---|
301 | { |
---|
302 | return $1 |
---|
303 | } # as_fn_set_status |
---|
304 | |
---|
305 | # as_fn_exit STATUS |
---|
306 | # ----------------- |
---|
307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
308 | as_fn_exit () |
---|
309 | { |
---|
310 | set +e |
---|
311 | as_fn_set_status $1 |
---|
312 | exit $1 |
---|
313 | } # as_fn_exit |
---|
314 | |
---|
315 | # as_fn_mkdir_p |
---|
316 | # ------------- |
---|
317 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
318 | as_fn_mkdir_p () |
---|
319 | { |
---|
320 | |
---|
321 | case $as_dir in #( |
---|
322 | -*) as_dir=./$as_dir;; |
---|
323 | esac |
---|
324 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
325 | as_dirs= |
---|
326 | while :; do |
---|
327 | case $as_dir in #( |
---|
328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
329 | *) as_qdir=$as_dir;; |
---|
330 | esac |
---|
331 | as_dirs="'$as_qdir' $as_dirs" |
---|
332 | as_dir=`$as_dirname -- "$as_dir" || |
---|
333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
335 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
337 | $as_echo X"$as_dir" | |
---|
338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
339 | s//\1/ |
---|
340 | q |
---|
341 | } |
---|
342 | /^X\(\/\/\)[^/].*/{ |
---|
343 | s//\1/ |
---|
344 | q |
---|
345 | } |
---|
346 | /^X\(\/\/\)$/{ |
---|
347 | s//\1/ |
---|
348 | q |
---|
349 | } |
---|
350 | /^X\(\/\).*/{ |
---|
351 | s//\1/ |
---|
352 | q |
---|
353 | } |
---|
354 | s/.*/./; q'` |
---|
355 | test -d "$as_dir" && break |
---|
356 | done |
---|
357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
359 | |
---|
360 | |
---|
361 | } # as_fn_mkdir_p |
---|
362 | |
---|
363 | # as_fn_executable_p FILE |
---|
364 | # ----------------------- |
---|
365 | # Test if FILE is an executable regular file. |
---|
366 | as_fn_executable_p () |
---|
367 | { |
---|
368 | test -f "$1" && test -x "$1" |
---|
369 | } # as_fn_executable_p |
---|
370 | # as_fn_append VAR VALUE |
---|
371 | # ---------------------- |
---|
372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
373 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
374 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
375 | # implementations. |
---|
376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
377 | eval 'as_fn_append () |
---|
378 | { |
---|
379 | eval $1+=\$2 |
---|
380 | }' |
---|
381 | else |
---|
382 | as_fn_append () |
---|
383 | { |
---|
384 | eval $1=\$$1\$2 |
---|
385 | } |
---|
386 | fi # as_fn_append |
---|
387 | |
---|
388 | # as_fn_arith ARG... |
---|
389 | # ------------------ |
---|
390 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
392 | # must be portable across $(()) and expr. |
---|
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
394 | eval 'as_fn_arith () |
---|
395 | { |
---|
396 | as_val=$(( $* )) |
---|
397 | }' |
---|
398 | else |
---|
399 | as_fn_arith () |
---|
400 | { |
---|
401 | as_val=`expr "$@" || test $? -eq 1` |
---|
402 | } |
---|
403 | fi # as_fn_arith |
---|
404 | |
---|
405 | |
---|
406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
407 | # ---------------------------------------- |
---|
408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
410 | # script with STATUS, using 1 if that was 0. |
---|
411 | as_fn_error () |
---|
412 | { |
---|
413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
414 | if test "$4"; then |
---|
415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
417 | fi |
---|
418 | $as_echo "$as_me: error: $2" >&2 |
---|
419 | as_fn_exit $as_status |
---|
420 | } # as_fn_error |
---|
421 | |
---|
422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
424 | as_expr=expr |
---|
425 | else |
---|
426 | as_expr=false |
---|
427 | fi |
---|
428 | |
---|
429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
430 | as_basename=basename |
---|
431 | else |
---|
432 | as_basename=false |
---|
433 | fi |
---|
434 | |
---|
435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
436 | as_dirname=dirname |
---|
437 | else |
---|
438 | as_dirname=false |
---|
439 | fi |
---|
440 | |
---|
441 | as_me=`$as_basename -- "$0" || |
---|
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
443 | X"$0" : 'X\(//\)$' \| \ |
---|
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
445 | $as_echo X/"$0" | |
---|
446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
447 | s//\1/ |
---|
448 | q |
---|
449 | } |
---|
450 | /^X\/\(\/\/\)$/{ |
---|
451 | s//\1/ |
---|
452 | q |
---|
453 | } |
---|
454 | /^X\/\(\/\).*/{ |
---|
455 | s//\1/ |
---|
456 | q |
---|
457 | } |
---|
458 | s/.*/./; q'` |
---|
459 | |
---|
460 | # Avoid depending upon Character Ranges. |
---|
461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
464 | as_cr_digits='0123456789' |
---|
465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
466 | |
---|
467 | |
---|
468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
473 | sed -n ' |
---|
474 | p |
---|
475 | /[$]LINENO/= |
---|
476 | ' <$as_myself | |
---|
477 | sed ' |
---|
478 | s/[$]LINENO.*/&-/ |
---|
479 | t lineno |
---|
480 | b |
---|
481 | :lineno |
---|
482 | N |
---|
483 | :loop |
---|
484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
485 | t loop |
---|
486 | s/-\n.*// |
---|
487 | ' >$as_me.lineno && |
---|
488 | chmod +x "$as_me.lineno" || |
---|
489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
490 | |
---|
491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
---|
492 | # already done that, so ensure we don't try to do so again and fall |
---|
493 | # in an infinite loop. This has already happened in practice. |
---|
494 | _as_can_reexec=no; export _as_can_reexec |
---|
495 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
496 | # (the dirname of $[0] is not the place where we might find the |
---|
497 | # original and so on. Autoconf is especially sensitive to this). |
---|
498 | . "./$as_me.lineno" |
---|
499 | # Exit status is that of the last command. |
---|
500 | exit |
---|
501 | } |
---|
502 | |
---|
503 | ECHO_C= ECHO_N= ECHO_T= |
---|
504 | case `echo -n x` in #((((( |
---|
505 | -n*) |
---|
506 | case `echo 'xy\c'` in |
---|
507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
508 | xy) ECHO_C='\c';; |
---|
509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
510 | ECHO_T=' ';; |
---|
511 | esac;; |
---|
512 | *) |
---|
513 | ECHO_N='-n';; |
---|
514 | esac |
---|
515 | |
---|
516 | rm -f conf$$ conf$$.exe conf$$.file |
---|
517 | if test -d conf$$.dir; then |
---|
518 | rm -f conf$$.dir/conf$$.file |
---|
519 | else |
---|
520 | rm -f conf$$.dir |
---|
521 | mkdir conf$$.dir 2>/dev/null |
---|
522 | fi |
---|
523 | if (echo >conf$$.file) 2>/dev/null; then |
---|
524 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
525 | as_ln_s='ln -s' |
---|
526 | # ... but there are two gotchas: |
---|
527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
529 | # In both cases, we have to default to `cp -pR'. |
---|
530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
531 | as_ln_s='cp -pR' |
---|
532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
533 | as_ln_s=ln |
---|
534 | else |
---|
535 | as_ln_s='cp -pR' |
---|
536 | fi |
---|
537 | else |
---|
538 | as_ln_s='cp -pR' |
---|
539 | fi |
---|
540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
541 | rmdir conf$$.dir 2>/dev/null |
---|
542 | |
---|
543 | if mkdir -p . 2>/dev/null; then |
---|
544 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
545 | else |
---|
546 | test -d ./-p && rmdir ./-p |
---|
547 | as_mkdir_p=false |
---|
548 | fi |
---|
549 | |
---|
550 | as_test_x='test -x' |
---|
551 | as_executable_p=as_fn_executable_p |
---|
552 | |
---|
553 | # Sed expression to map a string onto a valid CPP name. |
---|
554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
555 | |
---|
556 | # Sed expression to map a string onto a valid variable name. |
---|
557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
558 | |
---|
559 | |
---|
560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
561 | exec 6>&1 |
---|
562 | |
---|
563 | # Name of the host. |
---|
564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
565 | # so uname gets run too. |
---|
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
567 | |
---|
568 | # |
---|
569 | # Initializations. |
---|
570 | # |
---|
571 | ac_default_prefix=/usr/local |
---|
572 | ac_clean_files= |
---|
573 | ac_config_libobj_dir=. |
---|
574 | LIBOBJS= |
---|
575 | cross_compiling=no |
---|
576 | subdirs= |
---|
577 | MFLAGS= |
---|
578 | MAKEFLAGS= |
---|
579 | |
---|
580 | # Identity of this package. |
---|
581 | PACKAGE_NAME='pymolproxy' |
---|
582 | PACKAGE_TARNAME='pymolproxy' |
---|
583 | PACKAGE_VERSION='1.0' |
---|
584 | PACKAGE_STRING='pymolproxy 1.0' |
---|
585 | PACKAGE_BUGREPORT='rappture@nanohub.org' |
---|
586 | PACKAGE_URL='' |
---|
587 | |
---|
588 | # Factoring default headers for most tests. |
---|
589 | ac_includes_default="\ |
---|
590 | #include <stdio.h> |
---|
591 | #ifdef HAVE_SYS_TYPES_H |
---|
592 | # include <sys/types.h> |
---|
593 | #endif |
---|
594 | #ifdef HAVE_SYS_STAT_H |
---|
595 | # include <sys/stat.h> |
---|
596 | #endif |
---|
597 | #ifdef STDC_HEADERS |
---|
598 | # include <stdlib.h> |
---|
599 | # include <stddef.h> |
---|
600 | #else |
---|
601 | # ifdef HAVE_STDLIB_H |
---|
602 | # include <stdlib.h> |
---|
603 | # endif |
---|
604 | #endif |
---|
605 | #ifdef HAVE_STRING_H |
---|
606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
607 | # include <memory.h> |
---|
608 | # endif |
---|
609 | # include <string.h> |
---|
610 | #endif |
---|
611 | #ifdef HAVE_STRINGS_H |
---|
612 | # include <strings.h> |
---|
613 | #endif |
---|
614 | #ifdef HAVE_INTTYPES_H |
---|
615 | # include <inttypes.h> |
---|
616 | #endif |
---|
617 | #ifdef HAVE_STDINT_H |
---|
618 | # include <stdint.h> |
---|
619 | #endif |
---|
620 | #ifdef HAVE_UNISTD_H |
---|
621 | # include <unistd.h> |
---|
622 | #endif" |
---|
623 | |
---|
624 | ac_subst_vars='LTLIBOBJS |
---|
625 | LIBOBJS |
---|
626 | TCL_VERSION |
---|
627 | TCL_LIB_SPEC |
---|
628 | TCL_INC_SPEC |
---|
629 | SUBDIRS |
---|
630 | STATSDIR |
---|
631 | LOGDIR |
---|
632 | LD_RPATH |
---|
633 | CXXCPP |
---|
634 | ac_ct_CXX |
---|
635 | CXXFLAGS |
---|
636 | CXX |
---|
637 | MKDIR_P |
---|
638 | LN_S |
---|
639 | INSTALL_DATA |
---|
640 | INSTALL_SCRIPT |
---|
641 | INSTALL_PROGRAM |
---|
642 | XMKMF |
---|
643 | INSTALL_STUB_LIB |
---|
644 | INSTALL_LIB |
---|
645 | MAKE_STUB_LIB |
---|
646 | MAKE_LIB |
---|
647 | SHLIB_SUFFIX |
---|
648 | SHLIB_CFLAGS |
---|
649 | SHLIB_LD_LIBS |
---|
650 | TK_SHLIB_LD_EXTRAS |
---|
651 | TCL_SHLIB_LD_EXTRAS |
---|
652 | SHLIB_LD |
---|
653 | STLIB_LD |
---|
654 | LD_SEARCH_FLAGS |
---|
655 | CC_SEARCH_FLAGS |
---|
656 | LDFLAGS_OPTIMIZE |
---|
657 | LDFLAGS_DEBUG |
---|
658 | CFLAGS_WARNING |
---|
659 | CFLAGS_OPTIMIZE |
---|
660 | CFLAGS_DEBUG |
---|
661 | PLAT_SRCS |
---|
662 | PLAT_OBJS |
---|
663 | DL_OBJS |
---|
664 | DL_LIBS |
---|
665 | AR |
---|
666 | RANLIB |
---|
667 | EGREP |
---|
668 | GREP |
---|
669 | CPP |
---|
670 | OBJEXT |
---|
671 | EXEEXT |
---|
672 | ac_ct_CC |
---|
673 | CPPFLAGS |
---|
674 | LDFLAGS |
---|
675 | CFLAGS |
---|
676 | CC |
---|
677 | PYTHON |
---|
678 | target_alias |
---|
679 | host_alias |
---|
680 | build_alias |
---|
681 | LIBS |
---|
682 | ECHO_T |
---|
683 | ECHO_N |
---|
684 | ECHO_C |
---|
685 | DEFS |
---|
686 | mandir |
---|
687 | localedir |
---|
688 | libdir |
---|
689 | psdir |
---|
690 | pdfdir |
---|
691 | dvidir |
---|
692 | htmldir |
---|
693 | infodir |
---|
694 | docdir |
---|
695 | oldincludedir |
---|
696 | includedir |
---|
697 | localstatedir |
---|
698 | sharedstatedir |
---|
699 | sysconfdir |
---|
700 | datadir |
---|
701 | datarootdir |
---|
702 | libexecdir |
---|
703 | sbindir |
---|
704 | bindir |
---|
705 | program_transform_name |
---|
706 | prefix |
---|
707 | exec_prefix |
---|
708 | PACKAGE_URL |
---|
709 | PACKAGE_BUGREPORT |
---|
710 | PACKAGE_STRING |
---|
711 | PACKAGE_VERSION |
---|
712 | PACKAGE_TARNAME |
---|
713 | PACKAGE_NAME |
---|
714 | PATH_SEPARATOR |
---|
715 | SHELL' |
---|
716 | ac_subst_files='' |
---|
717 | ac_user_opts=' |
---|
718 | enable_option_checking |
---|
719 | with_tcllib |
---|
720 | with_statsdir |
---|
721 | with_logdir |
---|
722 | with_python |
---|
723 | enable_64bit |
---|
724 | enable_64bit_vis |
---|
725 | enable_corefoundation |
---|
726 | enable_load |
---|
727 | with_x |
---|
728 | ' |
---|
729 | ac_precious_vars='build_alias |
---|
730 | host_alias |
---|
731 | target_alias |
---|
732 | CC |
---|
733 | CFLAGS |
---|
734 | LDFLAGS |
---|
735 | LIBS |
---|
736 | CPPFLAGS |
---|
737 | CPP |
---|
738 | XMKMF |
---|
739 | CXX |
---|
740 | CXXFLAGS |
---|
741 | CCC |
---|
742 | CXXCPP' |
---|
743 | |
---|
744 | |
---|
745 | # Initialize some variables set by options. |
---|
746 | ac_init_help= |
---|
747 | ac_init_version=false |
---|
748 | ac_unrecognized_opts= |
---|
749 | ac_unrecognized_sep= |
---|
750 | # The variables have the same names as the options, with |
---|
751 | # dashes changed to underlines. |
---|
752 | cache_file=/dev/null |
---|
753 | exec_prefix=NONE |
---|
754 | no_create= |
---|
755 | no_recursion= |
---|
756 | prefix=NONE |
---|
757 | program_prefix=NONE |
---|
758 | program_suffix=NONE |
---|
759 | program_transform_name=s,x,x, |
---|
760 | silent= |
---|
761 | site= |
---|
762 | srcdir= |
---|
763 | verbose= |
---|
764 | x_includes=NONE |
---|
765 | x_libraries=NONE |
---|
766 | |
---|
767 | # Installation directory options. |
---|
768 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
769 | # and all the variables that are supposed to be based on exec_prefix |
---|
770 | # by default will actually change. |
---|
771 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
772 | # (The list follows the same order as the GNU Coding Standards.) |
---|
773 | bindir='${exec_prefix}/bin' |
---|
774 | sbindir='${exec_prefix}/sbin' |
---|
775 | libexecdir='${exec_prefix}/libexec' |
---|
776 | datarootdir='${prefix}/share' |
---|
777 | datadir='${datarootdir}' |
---|
778 | sysconfdir='${prefix}/etc' |
---|
779 | sharedstatedir='${prefix}/com' |
---|
780 | localstatedir='${prefix}/var' |
---|
781 | includedir='${prefix}/include' |
---|
782 | oldincludedir='/usr/include' |
---|
783 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
784 | infodir='${datarootdir}/info' |
---|
785 | htmldir='${docdir}' |
---|
786 | dvidir='${docdir}' |
---|
787 | pdfdir='${docdir}' |
---|
788 | psdir='${docdir}' |
---|
789 | libdir='${exec_prefix}/lib' |
---|
790 | localedir='${datarootdir}/locale' |
---|
791 | mandir='${datarootdir}/man' |
---|
792 | |
---|
793 | ac_prev= |
---|
794 | ac_dashdash= |
---|
795 | for ac_option |
---|
796 | do |
---|
797 | # If the previous option needs an argument, assign it. |
---|
798 | if test -n "$ac_prev"; then |
---|
799 | eval $ac_prev=\$ac_option |
---|
800 | ac_prev= |
---|
801 | continue |
---|
802 | fi |
---|
803 | |
---|
804 | case $ac_option in |
---|
805 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
806 | *=) ac_optarg= ;; |
---|
807 | *) ac_optarg=yes ;; |
---|
808 | esac |
---|
809 | |
---|
810 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
811 | |
---|
812 | case $ac_dashdash$ac_option in |
---|
813 | --) |
---|
814 | ac_dashdash=yes ;; |
---|
815 | |
---|
816 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
817 | ac_prev=bindir ;; |
---|
818 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
819 | bindir=$ac_optarg ;; |
---|
820 | |
---|
821 | -build | --build | --buil | --bui | --bu) |
---|
822 | ac_prev=build_alias ;; |
---|
823 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
824 | build_alias=$ac_optarg ;; |
---|
825 | |
---|
826 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
827 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
828 | ac_prev=cache_file ;; |
---|
829 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
830 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
831 | cache_file=$ac_optarg ;; |
---|
832 | |
---|
833 | --config-cache | -C) |
---|
834 | cache_file=config.cache ;; |
---|
835 | |
---|
836 | -datadir | --datadir | --datadi | --datad) |
---|
837 | ac_prev=datadir ;; |
---|
838 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
839 | datadir=$ac_optarg ;; |
---|
840 | |
---|
841 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
842 | | --dataroo | --dataro | --datar) |
---|
843 | ac_prev=datarootdir ;; |
---|
844 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
845 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
846 | datarootdir=$ac_optarg ;; |
---|
847 | |
---|
848 | -disable-* | --disable-*) |
---|
849 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
850 | # Reject names that are not valid shell variable names. |
---|
851 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
852 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
853 | ac_useropt_orig=$ac_useropt |
---|
854 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
855 | case $ac_user_opts in |
---|
856 | *" |
---|
857 | "enable_$ac_useropt" |
---|
858 | "*) ;; |
---|
859 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
860 | ac_unrecognized_sep=', ';; |
---|
861 | esac |
---|
862 | eval enable_$ac_useropt=no ;; |
---|
863 | |
---|
864 | -docdir | --docdir | --docdi | --doc | --do) |
---|
865 | ac_prev=docdir ;; |
---|
866 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
867 | docdir=$ac_optarg ;; |
---|
868 | |
---|
869 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
870 | ac_prev=dvidir ;; |
---|
871 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
872 | dvidir=$ac_optarg ;; |
---|
873 | |
---|
874 | -enable-* | --enable-*) |
---|
875 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
876 | # Reject names that are not valid shell variable names. |
---|
877 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
878 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
879 | ac_useropt_orig=$ac_useropt |
---|
880 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
881 | case $ac_user_opts in |
---|
882 | *" |
---|
883 | "enable_$ac_useropt" |
---|
884 | "*) ;; |
---|
885 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
886 | ac_unrecognized_sep=', ';; |
---|
887 | esac |
---|
888 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
889 | |
---|
890 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
891 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
892 | | --exec | --exe | --ex) |
---|
893 | ac_prev=exec_prefix ;; |
---|
894 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
895 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
896 | | --exec=* | --exe=* | --ex=*) |
---|
897 | exec_prefix=$ac_optarg ;; |
---|
898 | |
---|
899 | -gas | --gas | --ga | --g) |
---|
900 | # Obsolete; use --with-gas. |
---|
901 | with_gas=yes ;; |
---|
902 | |
---|
903 | -help | --help | --hel | --he | -h) |
---|
904 | ac_init_help=long ;; |
---|
905 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
906 | ac_init_help=recursive ;; |
---|
907 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
908 | ac_init_help=short ;; |
---|
909 | |
---|
910 | -host | --host | --hos | --ho) |
---|
911 | ac_prev=host_alias ;; |
---|
912 | -host=* | --host=* | --hos=* | --ho=*) |
---|
913 | host_alias=$ac_optarg ;; |
---|
914 | |
---|
915 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
916 | ac_prev=htmldir ;; |
---|
917 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
918 | | --ht=*) |
---|
919 | htmldir=$ac_optarg ;; |
---|
920 | |
---|
921 | -includedir | --includedir | --includedi | --included | --include \ |
---|
922 | | --includ | --inclu | --incl | --inc) |
---|
923 | ac_prev=includedir ;; |
---|
924 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
925 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
926 | includedir=$ac_optarg ;; |
---|
927 | |
---|
928 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
929 | ac_prev=infodir ;; |
---|
930 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
931 | infodir=$ac_optarg ;; |
---|
932 | |
---|
933 | -libdir | --libdir | --libdi | --libd) |
---|
934 | ac_prev=libdir ;; |
---|
935 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
936 | libdir=$ac_optarg ;; |
---|
937 | |
---|
938 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
939 | | --libexe | --libex | --libe) |
---|
940 | ac_prev=libexecdir ;; |
---|
941 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
942 | | --libexe=* | --libex=* | --libe=*) |
---|
943 | libexecdir=$ac_optarg ;; |
---|
944 | |
---|
945 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
946 | ac_prev=localedir ;; |
---|
947 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
948 | localedir=$ac_optarg ;; |
---|
949 | |
---|
950 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
951 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
952 | ac_prev=localstatedir ;; |
---|
953 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
954 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
955 | localstatedir=$ac_optarg ;; |
---|
956 | |
---|
957 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
958 | ac_prev=mandir ;; |
---|
959 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
960 | mandir=$ac_optarg ;; |
---|
961 | |
---|
962 | -nfp | --nfp | --nf) |
---|
963 | # Obsolete; use --without-fp. |
---|
964 | with_fp=no ;; |
---|
965 | |
---|
966 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
967 | | --no-cr | --no-c | -n) |
---|
968 | no_create=yes ;; |
---|
969 | |
---|
970 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
971 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
972 | no_recursion=yes ;; |
---|
973 | |
---|
974 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
975 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
976 | | --oldin | --oldi | --old | --ol | --o) |
---|
977 | ac_prev=oldincludedir ;; |
---|
978 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
979 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
980 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
981 | oldincludedir=$ac_optarg ;; |
---|
982 | |
---|
983 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
984 | ac_prev=prefix ;; |
---|
985 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
986 | prefix=$ac_optarg ;; |
---|
987 | |
---|
988 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
989 | | --program-pre | --program-pr | --program-p) |
---|
990 | ac_prev=program_prefix ;; |
---|
991 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
992 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
993 | program_prefix=$ac_optarg ;; |
---|
994 | |
---|
995 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
996 | | --program-suf | --program-su | --program-s) |
---|
997 | ac_prev=program_suffix ;; |
---|
998 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
999 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
1000 | program_suffix=$ac_optarg ;; |
---|
1001 | |
---|
1002 | -program-transform-name | --program-transform-name \ |
---|
1003 | | --program-transform-nam | --program-transform-na \ |
---|
1004 | | --program-transform-n | --program-transform- \ |
---|
1005 | | --program-transform | --program-transfor \ |
---|
1006 | | --program-transfo | --program-transf \ |
---|
1007 | | --program-trans | --program-tran \ |
---|
1008 | | --progr-tra | --program-tr | --program-t) |
---|
1009 | ac_prev=program_transform_name ;; |
---|
1010 | -program-transform-name=* | --program-transform-name=* \ |
---|
1011 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1012 | | --program-transform-n=* | --program-transform-=* \ |
---|
1013 | | --program-transform=* | --program-transfor=* \ |
---|
1014 | | --program-transfo=* | --program-transf=* \ |
---|
1015 | | --program-trans=* | --program-tran=* \ |
---|
1016 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1017 | program_transform_name=$ac_optarg ;; |
---|
1018 | |
---|
1019 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1020 | ac_prev=pdfdir ;; |
---|
1021 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1022 | pdfdir=$ac_optarg ;; |
---|
1023 | |
---|
1024 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1025 | ac_prev=psdir ;; |
---|
1026 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1027 | psdir=$ac_optarg ;; |
---|
1028 | |
---|
1029 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1030 | | -silent | --silent | --silen | --sile | --sil) |
---|
1031 | silent=yes ;; |
---|
1032 | |
---|
1033 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1034 | ac_prev=sbindir ;; |
---|
1035 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1036 | | --sbi=* | --sb=*) |
---|
1037 | sbindir=$ac_optarg ;; |
---|
1038 | |
---|
1039 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1040 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1041 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1042 | | --sha | --sh) |
---|
1043 | ac_prev=sharedstatedir ;; |
---|
1044 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1045 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1046 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1047 | | --sha=* | --sh=*) |
---|
1048 | sharedstatedir=$ac_optarg ;; |
---|
1049 | |
---|
1050 | -site | --site | --sit) |
---|
1051 | ac_prev=site ;; |
---|
1052 | -site=* | --site=* | --sit=*) |
---|
1053 | site=$ac_optarg ;; |
---|
1054 | |
---|
1055 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1056 | ac_prev=srcdir ;; |
---|
1057 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1058 | srcdir=$ac_optarg ;; |
---|
1059 | |
---|
1060 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1061 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1062 | ac_prev=sysconfdir ;; |
---|
1063 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1064 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1065 | sysconfdir=$ac_optarg ;; |
---|
1066 | |
---|
1067 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1068 | ac_prev=target_alias ;; |
---|
1069 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1070 | target_alias=$ac_optarg ;; |
---|
1071 | |
---|
1072 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1073 | verbose=yes ;; |
---|
1074 | |
---|
1075 | -version | --version | --versio | --versi | --vers | -V) |
---|
1076 | ac_init_version=: ;; |
---|
1077 | |
---|
1078 | -with-* | --with-*) |
---|
1079 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1080 | # Reject names that are not valid shell variable names. |
---|
1081 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1082 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1083 | ac_useropt_orig=$ac_useropt |
---|
1084 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1085 | case $ac_user_opts in |
---|
1086 | *" |
---|
1087 | "with_$ac_useropt" |
---|
1088 | "*) ;; |
---|
1089 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1090 | ac_unrecognized_sep=', ';; |
---|
1091 | esac |
---|
1092 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1093 | |
---|
1094 | -without-* | --without-*) |
---|
1095 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1096 | # Reject names that are not valid shell variable names. |
---|
1097 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1098 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1099 | ac_useropt_orig=$ac_useropt |
---|
1100 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1101 | case $ac_user_opts in |
---|
1102 | *" |
---|
1103 | "with_$ac_useropt" |
---|
1104 | "*) ;; |
---|
1105 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1106 | ac_unrecognized_sep=', ';; |
---|
1107 | esac |
---|
1108 | eval with_$ac_useropt=no ;; |
---|
1109 | |
---|
1110 | --x) |
---|
1111 | # Obsolete; use --with-x. |
---|
1112 | with_x=yes ;; |
---|
1113 | |
---|
1114 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1115 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1116 | ac_prev=x_includes ;; |
---|
1117 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1118 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1119 | x_includes=$ac_optarg ;; |
---|
1120 | |
---|
1121 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1122 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1123 | ac_prev=x_libraries ;; |
---|
1124 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1125 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1126 | x_libraries=$ac_optarg ;; |
---|
1127 | |
---|
1128 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1129 | Try \`$0 --help' for more information" |
---|
1130 | ;; |
---|
1131 | |
---|
1132 | *=*) |
---|
1133 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1134 | # Reject names that are not valid shell variable names. |
---|
1135 | case $ac_envvar in #( |
---|
1136 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1137 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1138 | esac |
---|
1139 | eval $ac_envvar=\$ac_optarg |
---|
1140 | export $ac_envvar ;; |
---|
1141 | |
---|
1142 | *) |
---|
1143 | # FIXME: should be removed in autoconf 3.0. |
---|
1144 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1145 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1146 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1147 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1148 | ;; |
---|
1149 | |
---|
1150 | esac |
---|
1151 | done |
---|
1152 | |
---|
1153 | if test -n "$ac_prev"; then |
---|
1154 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1155 | as_fn_error $? "missing argument to $ac_option" |
---|
1156 | fi |
---|
1157 | |
---|
1158 | if test -n "$ac_unrecognized_opts"; then |
---|
1159 | case $enable_option_checking in |
---|
1160 | no) ;; |
---|
1161 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1162 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1163 | esac |
---|
1164 | fi |
---|
1165 | |
---|
1166 | # Check all directory arguments for consistency. |
---|
1167 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1168 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1169 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1170 | libdir localedir mandir |
---|
1171 | do |
---|
1172 | eval ac_val=\$$ac_var |
---|
1173 | # Remove trailing slashes. |
---|
1174 | case $ac_val in |
---|
1175 | */ ) |
---|
1176 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1177 | eval $ac_var=\$ac_val;; |
---|
1178 | esac |
---|
1179 | # Be sure to have absolute directory names. |
---|
1180 | case $ac_val in |
---|
1181 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1182 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1183 | esac |
---|
1184 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1185 | done |
---|
1186 | |
---|
1187 | # There might be people who depend on the old broken behavior: `$host' |
---|
1188 | # used to hold the argument of --host etc. |
---|
1189 | # FIXME: To remove some day. |
---|
1190 | build=$build_alias |
---|
1191 | host=$host_alias |
---|
1192 | target=$target_alias |
---|
1193 | |
---|
1194 | # FIXME: To remove some day. |
---|
1195 | if test "x$host_alias" != x; then |
---|
1196 | if test "x$build_alias" = x; then |
---|
1197 | cross_compiling=maybe |
---|
1198 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1199 | cross_compiling=yes |
---|
1200 | fi |
---|
1201 | fi |
---|
1202 | |
---|
1203 | ac_tool_prefix= |
---|
1204 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1205 | |
---|
1206 | test "$silent" = yes && exec 6>/dev/null |
---|
1207 | |
---|
1208 | |
---|
1209 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1210 | ac_ls_di=`ls -di .` && |
---|
1211 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1212 | as_fn_error $? "working directory cannot be determined" |
---|
1213 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1214 | as_fn_error $? "pwd does not report name of working directory" |
---|
1215 | |
---|
1216 | |
---|
1217 | # Find the source files, if location was not specified. |
---|
1218 | if test -z "$srcdir"; then |
---|
1219 | ac_srcdir_defaulted=yes |
---|
1220 | # Try the directory containing this script, then the parent directory. |
---|
1221 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1222 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1223 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1224 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1225 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1226 | $as_echo X"$as_myself" | |
---|
1227 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1228 | s//\1/ |
---|
1229 | q |
---|
1230 | } |
---|
1231 | /^X\(\/\/\)[^/].*/{ |
---|
1232 | s//\1/ |
---|
1233 | q |
---|
1234 | } |
---|
1235 | /^X\(\/\/\)$/{ |
---|
1236 | s//\1/ |
---|
1237 | q |
---|
1238 | } |
---|
1239 | /^X\(\/\).*/{ |
---|
1240 | s//\1/ |
---|
1241 | q |
---|
1242 | } |
---|
1243 | s/.*/./; q'` |
---|
1244 | srcdir=$ac_confdir |
---|
1245 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1246 | srcdir=.. |
---|
1247 | fi |
---|
1248 | else |
---|
1249 | ac_srcdir_defaulted=no |
---|
1250 | fi |
---|
1251 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1252 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1253 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1254 | fi |
---|
1255 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1256 | ac_abs_confdir=`( |
---|
1257 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1258 | pwd)` |
---|
1259 | # When building in place, set srcdir=. |
---|
1260 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1261 | srcdir=. |
---|
1262 | fi |
---|
1263 | # Remove unnecessary trailing slashes from srcdir. |
---|
1264 | # Double slashes in file names in object file debugging info |
---|
1265 | # mess up M-x gdb in Emacs. |
---|
1266 | case $srcdir in |
---|
1267 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1268 | esac |
---|
1269 | for ac_var in $ac_precious_vars; do |
---|
1270 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1271 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1272 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1273 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1274 | done |
---|
1275 | |
---|
1276 | # |
---|
1277 | # Report the --help message. |
---|
1278 | # |
---|
1279 | if test "$ac_init_help" = "long"; then |
---|
1280 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1281 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1282 | cat <<_ACEOF |
---|
1283 | \`configure' configures pymolproxy 1.0 to adapt to many kinds of systems. |
---|
1284 | |
---|
1285 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1286 | |
---|
1287 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1288 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1289 | |
---|
1290 | Defaults for the options are specified in brackets. |
---|
1291 | |
---|
1292 | Configuration: |
---|
1293 | -h, --help display this help and exit |
---|
1294 | --help=short display options specific to this package |
---|
1295 | --help=recursive display the short help of all the included packages |
---|
1296 | -V, --version display version information and exit |
---|
1297 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1298 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1299 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1300 | -n, --no-create do not create output files |
---|
1301 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1302 | |
---|
1303 | Installation directories: |
---|
1304 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1305 | [$ac_default_prefix] |
---|
1306 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1307 | [PREFIX] |
---|
1308 | |
---|
1309 | By default, \`make install' will install all the files in |
---|
1310 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1311 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1312 | for instance \`--prefix=\$HOME'. |
---|
1313 | |
---|
1314 | For better control, use the options below. |
---|
1315 | |
---|
1316 | Fine tuning of the installation directories: |
---|
1317 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1318 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1319 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1320 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1321 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1322 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1323 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1324 | --includedir=DIR C header files [PREFIX/include] |
---|
1325 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1326 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1327 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1328 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1329 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1330 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1331 | --docdir=DIR documentation root [DATAROOTDIR/doc/pymolproxy] |
---|
1332 | --htmldir=DIR html documentation [DOCDIR] |
---|
1333 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1334 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1335 | --psdir=DIR ps documentation [DOCDIR] |
---|
1336 | _ACEOF |
---|
1337 | |
---|
1338 | cat <<\_ACEOF |
---|
1339 | |
---|
1340 | X features: |
---|
1341 | --x-includes=DIR X include files are in DIR |
---|
1342 | --x-libraries=DIR X library files are in DIR |
---|
1343 | _ACEOF |
---|
1344 | fi |
---|
1345 | |
---|
1346 | if test -n "$ac_init_help"; then |
---|
1347 | case $ac_init_help in |
---|
1348 | short | recursive ) echo "Configuration of pymolproxy 1.0:";; |
---|
1349 | esac |
---|
1350 | cat <<\_ACEOF |
---|
1351 | |
---|
1352 | Optional Features: |
---|
1353 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1354 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1355 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1356 | --enable-64bit enable 64bit support (where applicable) |
---|
1357 | --enable-64bit-vis enable 64bit Sparc VIS support |
---|
1358 | --enable-corefoundation use CoreFoundation API --enable-corefoundation |
---|
1359 | --disable-load disallow dynamic loading and "load" command |
---|
1360 | |
---|
1361 | Optional Packages: |
---|
1362 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1363 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1364 | --with-tcllib=DIR location of Tcl binary library libtclstubs.a |
---|
1365 | [default=/usr/lib] |
---|
1366 | --with-statsdir=DIR Write statistics in DIR |
---|
1367 | --with-logdir=DIR Write log files in DIR |
---|
1368 | --with-python=DIR location of python [default=yes] |
---|
1369 | --with-x use the X Window System |
---|
1370 | |
---|
1371 | Some influential environment variables: |
---|
1372 | CC C compiler command |
---|
1373 | CFLAGS C compiler flags |
---|
1374 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1375 | nonstandard directory <lib dir> |
---|
1376 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1377 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1378 | you have headers in a nonstandard directory <include dir> |
---|
1379 | CPP C preprocessor |
---|
1380 | XMKMF Path to xmkmf, Makefile generator for X Window System |
---|
1381 | CXX C++ compiler command |
---|
1382 | CXXFLAGS C++ compiler flags |
---|
1383 | CXXCPP C++ preprocessor |
---|
1384 | |
---|
1385 | Use these variables to override the choices made by `configure' or to help |
---|
1386 | it to find libraries and programs with nonstandard names/locations. |
---|
1387 | |
---|
1388 | Report bugs to <rappture@nanohub.org>. |
---|
1389 | _ACEOF |
---|
1390 | ac_status=$? |
---|
1391 | fi |
---|
1392 | |
---|
1393 | if test "$ac_init_help" = "recursive"; then |
---|
1394 | # If there are subdirs, report their specific --help. |
---|
1395 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1396 | test -d "$ac_dir" || |
---|
1397 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1398 | continue |
---|
1399 | ac_builddir=. |
---|
1400 | |
---|
1401 | case "$ac_dir" in |
---|
1402 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1403 | *) |
---|
1404 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1405 | # A ".." for each directory in $ac_dir_suffix. |
---|
1406 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1407 | case $ac_top_builddir_sub in |
---|
1408 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1409 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1410 | esac ;; |
---|
1411 | esac |
---|
1412 | ac_abs_top_builddir=$ac_pwd |
---|
1413 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1414 | # for backward compatibility: |
---|
1415 | ac_top_builddir=$ac_top_build_prefix |
---|
1416 | |
---|
1417 | case $srcdir in |
---|
1418 | .) # We are building in place. |
---|
1419 | ac_srcdir=. |
---|
1420 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1421 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1422 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1423 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1424 | ac_top_srcdir=$srcdir |
---|
1425 | ac_abs_top_srcdir=$srcdir ;; |
---|
1426 | *) # Relative name. |
---|
1427 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1428 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1429 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1430 | esac |
---|
1431 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1432 | |
---|
1433 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1434 | # Check for guested configure. |
---|
1435 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1436 | echo && |
---|
1437 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1438 | elif test -f "$ac_srcdir/configure"; then |
---|
1439 | echo && |
---|
1440 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1441 | else |
---|
1442 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1443 | fi || ac_status=$? |
---|
1444 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1445 | done |
---|
1446 | fi |
---|
1447 | |
---|
1448 | test -n "$ac_init_help" && exit $ac_status |
---|
1449 | if $ac_init_version; then |
---|
1450 | cat <<\_ACEOF |
---|
1451 | pymolproxy configure 1.0 |
---|
1452 | generated by GNU Autoconf 2.69 |
---|
1453 | |
---|
1454 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
1455 | This configure script is free software; the Free Software Foundation |
---|
1456 | gives unlimited permission to copy, distribute and modify it. |
---|
1457 | _ACEOF |
---|
1458 | exit |
---|
1459 | fi |
---|
1460 | |
---|
1461 | ## ------------------------ ## |
---|
1462 | ## Autoconf initialization. ## |
---|
1463 | ## ------------------------ ## |
---|
1464 | |
---|
1465 | # ac_fn_c_try_compile LINENO |
---|
1466 | # -------------------------- |
---|
1467 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1468 | ac_fn_c_try_compile () |
---|
1469 | { |
---|
1470 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1471 | rm -f conftest.$ac_objext |
---|
1472 | if { { ac_try="$ac_compile" |
---|
1473 | case "(($ac_try" in |
---|
1474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1475 | *) ac_try_echo=$ac_try;; |
---|
1476 | esac |
---|
1477 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1478 | $as_echo "$ac_try_echo"; } >&5 |
---|
1479 | (eval "$ac_compile") 2>conftest.err |
---|
1480 | ac_status=$? |
---|
1481 | if test -s conftest.err; then |
---|
1482 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1483 | cat conftest.er1 >&5 |
---|
1484 | mv -f conftest.er1 conftest.err |
---|
1485 | fi |
---|
1486 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1487 | test $ac_status = 0; } && { |
---|
1488 | test -z "$ac_c_werror_flag" || |
---|
1489 | test ! -s conftest.err |
---|
1490 | } && test -s conftest.$ac_objext; then : |
---|
1491 | ac_retval=0 |
---|
1492 | else |
---|
1493 | $as_echo "$as_me: failed program was:" >&5 |
---|
1494 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1495 | |
---|
1496 | ac_retval=1 |
---|
1497 | fi |
---|
1498 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1499 | as_fn_set_status $ac_retval |
---|
1500 | |
---|
1501 | } # ac_fn_c_try_compile |
---|
1502 | |
---|
1503 | # ac_fn_c_try_cpp LINENO |
---|
1504 | # ---------------------- |
---|
1505 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1506 | ac_fn_c_try_cpp () |
---|
1507 | { |
---|
1508 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1509 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1510 | case "(($ac_try" in |
---|
1511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1512 | *) ac_try_echo=$ac_try;; |
---|
1513 | esac |
---|
1514 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1515 | $as_echo "$ac_try_echo"; } >&5 |
---|
1516 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1517 | ac_status=$? |
---|
1518 | if test -s conftest.err; then |
---|
1519 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1520 | cat conftest.er1 >&5 |
---|
1521 | mv -f conftest.er1 conftest.err |
---|
1522 | fi |
---|
1523 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1524 | test $ac_status = 0; } > conftest.i && { |
---|
1525 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1526 | test ! -s conftest.err |
---|
1527 | }; then : |
---|
1528 | ac_retval=0 |
---|
1529 | else |
---|
1530 | $as_echo "$as_me: failed program was:" >&5 |
---|
1531 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1532 | |
---|
1533 | ac_retval=1 |
---|
1534 | fi |
---|
1535 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1536 | as_fn_set_status $ac_retval |
---|
1537 | |
---|
1538 | } # ac_fn_c_try_cpp |
---|
1539 | |
---|
1540 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1541 | # ------------------------------------------------------- |
---|
1542 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1543 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1544 | # accordingly. |
---|
1545 | ac_fn_c_check_header_mongrel () |
---|
1546 | { |
---|
1547 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1548 | if eval \${$3+:} false; then : |
---|
1549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1550 | $as_echo_n "checking for $2... " >&6; } |
---|
1551 | if eval \${$3+:} false; then : |
---|
1552 | $as_echo_n "(cached) " >&6 |
---|
1553 | fi |
---|
1554 | eval ac_res=\$$3 |
---|
1555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1556 | $as_echo "$ac_res" >&6; } |
---|
1557 | else |
---|
1558 | # Is the header compilable? |
---|
1559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1560 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1562 | /* end confdefs.h. */ |
---|
1563 | $4 |
---|
1564 | #include <$2> |
---|
1565 | _ACEOF |
---|
1566 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1567 | ac_header_compiler=yes |
---|
1568 | else |
---|
1569 | ac_header_compiler=no |
---|
1570 | fi |
---|
1571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1573 | $as_echo "$ac_header_compiler" >&6; } |
---|
1574 | |
---|
1575 | # Is the header present? |
---|
1576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1577 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1579 | /* end confdefs.h. */ |
---|
1580 | #include <$2> |
---|
1581 | _ACEOF |
---|
1582 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
1583 | ac_header_preproc=yes |
---|
1584 | else |
---|
1585 | ac_header_preproc=no |
---|
1586 | fi |
---|
1587 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1589 | $as_echo "$ac_header_preproc" >&6; } |
---|
1590 | |
---|
1591 | # So? What about this header? |
---|
1592 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
1593 | yes:no: ) |
---|
1594 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1595 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1596 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1597 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1598 | ;; |
---|
1599 | no:yes:* ) |
---|
1600 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1601 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1603 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1604 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1605 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1606 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1607 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1608 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1609 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1610 | ( $as_echo "## ----------------------------------- ## |
---|
1611 | ## Report this to rappture@nanohub.org ## |
---|
1612 | ## ----------------------------------- ##" |
---|
1613 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1614 | ;; |
---|
1615 | esac |
---|
1616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1617 | $as_echo_n "checking for $2... " >&6; } |
---|
1618 | if eval \${$3+:} false; then : |
---|
1619 | $as_echo_n "(cached) " >&6 |
---|
1620 | else |
---|
1621 | eval "$3=\$ac_header_compiler" |
---|
1622 | fi |
---|
1623 | eval ac_res=\$$3 |
---|
1624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1625 | $as_echo "$ac_res" >&6; } |
---|
1626 | fi |
---|
1627 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1628 | |
---|
1629 | } # ac_fn_c_check_header_mongrel |
---|
1630 | |
---|
1631 | # ac_fn_c_try_run LINENO |
---|
1632 | # ---------------------- |
---|
1633 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1634 | # that executables *can* be run. |
---|
1635 | ac_fn_c_try_run () |
---|
1636 | { |
---|
1637 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1638 | if { { ac_try="$ac_link" |
---|
1639 | case "(($ac_try" in |
---|
1640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1641 | *) ac_try_echo=$ac_try;; |
---|
1642 | esac |
---|
1643 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1644 | $as_echo "$ac_try_echo"; } >&5 |
---|
1645 | (eval "$ac_link") 2>&5 |
---|
1646 | ac_status=$? |
---|
1647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1648 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1649 | { { case "(($ac_try" in |
---|
1650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1651 | *) ac_try_echo=$ac_try;; |
---|
1652 | esac |
---|
1653 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1654 | $as_echo "$ac_try_echo"; } >&5 |
---|
1655 | (eval "$ac_try") 2>&5 |
---|
1656 | ac_status=$? |
---|
1657 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1658 | test $ac_status = 0; }; }; then : |
---|
1659 | ac_retval=0 |
---|
1660 | else |
---|
1661 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1662 | $as_echo "$as_me: failed program was:" >&5 |
---|
1663 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1664 | |
---|
1665 | ac_retval=$ac_status |
---|
1666 | fi |
---|
1667 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1668 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1669 | as_fn_set_status $ac_retval |
---|
1670 | |
---|
1671 | } # ac_fn_c_try_run |
---|
1672 | |
---|
1673 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1674 | # ------------------------------------------------------- |
---|
1675 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1676 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1677 | ac_fn_c_check_header_compile () |
---|
1678 | { |
---|
1679 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1681 | $as_echo_n "checking for $2... " >&6; } |
---|
1682 | if eval \${$3+:} false; then : |
---|
1683 | $as_echo_n "(cached) " >&6 |
---|
1684 | else |
---|
1685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1686 | /* end confdefs.h. */ |
---|
1687 | $4 |
---|
1688 | #include <$2> |
---|
1689 | _ACEOF |
---|
1690 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1691 | eval "$3=yes" |
---|
1692 | else |
---|
1693 | eval "$3=no" |
---|
1694 | fi |
---|
1695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1696 | fi |
---|
1697 | eval ac_res=\$$3 |
---|
1698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1699 | $as_echo "$ac_res" >&6; } |
---|
1700 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1701 | |
---|
1702 | } # ac_fn_c_check_header_compile |
---|
1703 | |
---|
1704 | # ac_fn_c_try_link LINENO |
---|
1705 | # ----------------------- |
---|
1706 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1707 | ac_fn_c_try_link () |
---|
1708 | { |
---|
1709 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1710 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1711 | if { { ac_try="$ac_link" |
---|
1712 | case "(($ac_try" in |
---|
1713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1714 | *) ac_try_echo=$ac_try;; |
---|
1715 | esac |
---|
1716 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1717 | $as_echo "$ac_try_echo"; } >&5 |
---|
1718 | (eval "$ac_link") 2>conftest.err |
---|
1719 | ac_status=$? |
---|
1720 | if test -s conftest.err; then |
---|
1721 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1722 | cat conftest.er1 >&5 |
---|
1723 | mv -f conftest.er1 conftest.err |
---|
1724 | fi |
---|
1725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1726 | test $ac_status = 0; } && { |
---|
1727 | test -z "$ac_c_werror_flag" || |
---|
1728 | test ! -s conftest.err |
---|
1729 | } && test -s conftest$ac_exeext && { |
---|
1730 | test "$cross_compiling" = yes || |
---|
1731 | test -x conftest$ac_exeext |
---|
1732 | }; then : |
---|
1733 | ac_retval=0 |
---|
1734 | else |
---|
1735 | $as_echo "$as_me: failed program was:" >&5 |
---|
1736 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1737 | |
---|
1738 | ac_retval=1 |
---|
1739 | fi |
---|
1740 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1741 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1742 | # interfere with the next link command; also delete a directory that is |
---|
1743 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1744 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1745 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1746 | as_fn_set_status $ac_retval |
---|
1747 | |
---|
1748 | } # ac_fn_c_try_link |
---|
1749 | |
---|
1750 | # ac_fn_cxx_try_compile LINENO |
---|
1751 | # ---------------------------- |
---|
1752 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1753 | ac_fn_cxx_try_compile () |
---|
1754 | { |
---|
1755 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1756 | rm -f conftest.$ac_objext |
---|
1757 | if { { ac_try="$ac_compile" |
---|
1758 | case "(($ac_try" in |
---|
1759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1760 | *) ac_try_echo=$ac_try;; |
---|
1761 | esac |
---|
1762 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1763 | $as_echo "$ac_try_echo"; } >&5 |
---|
1764 | (eval "$ac_compile") 2>conftest.err |
---|
1765 | ac_status=$? |
---|
1766 | if test -s conftest.err; then |
---|
1767 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1768 | cat conftest.er1 >&5 |
---|
1769 | mv -f conftest.er1 conftest.err |
---|
1770 | fi |
---|
1771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1772 | test $ac_status = 0; } && { |
---|
1773 | test -z "$ac_cxx_werror_flag" || |
---|
1774 | test ! -s conftest.err |
---|
1775 | } && test -s conftest.$ac_objext; then : |
---|
1776 | ac_retval=0 |
---|
1777 | else |
---|
1778 | $as_echo "$as_me: failed program was:" >&5 |
---|
1779 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1780 | |
---|
1781 | ac_retval=1 |
---|
1782 | fi |
---|
1783 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1784 | as_fn_set_status $ac_retval |
---|
1785 | |
---|
1786 | } # ac_fn_cxx_try_compile |
---|
1787 | |
---|
1788 | # ac_fn_cxx_try_cpp LINENO |
---|
1789 | # ------------------------ |
---|
1790 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1791 | ac_fn_cxx_try_cpp () |
---|
1792 | { |
---|
1793 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1794 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1795 | case "(($ac_try" in |
---|
1796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1797 | *) ac_try_echo=$ac_try;; |
---|
1798 | esac |
---|
1799 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1800 | $as_echo "$ac_try_echo"; } >&5 |
---|
1801 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1802 | ac_status=$? |
---|
1803 | if test -s conftest.err; then |
---|
1804 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1805 | cat conftest.er1 >&5 |
---|
1806 | mv -f conftest.er1 conftest.err |
---|
1807 | fi |
---|
1808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1809 | test $ac_status = 0; } > conftest.i && { |
---|
1810 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
1811 | test ! -s conftest.err |
---|
1812 | }; then : |
---|
1813 | ac_retval=0 |
---|
1814 | else |
---|
1815 | $as_echo "$as_me: failed program was:" >&5 |
---|
1816 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1817 | |
---|
1818 | ac_retval=1 |
---|
1819 | fi |
---|
1820 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1821 | as_fn_set_status $ac_retval |
---|
1822 | |
---|
1823 | } # ac_fn_cxx_try_cpp |
---|
1824 | |
---|
1825 | # ac_fn_cxx_try_run LINENO |
---|
1826 | # ------------------------ |
---|
1827 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1828 | # that executables *can* be run. |
---|
1829 | ac_fn_cxx_try_run () |
---|
1830 | { |
---|
1831 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1832 | if { { ac_try="$ac_link" |
---|
1833 | case "(($ac_try" in |
---|
1834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1835 | *) ac_try_echo=$ac_try;; |
---|
1836 | esac |
---|
1837 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1838 | $as_echo "$ac_try_echo"; } >&5 |
---|
1839 | (eval "$ac_link") 2>&5 |
---|
1840 | ac_status=$? |
---|
1841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1842 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1843 | { { case "(($ac_try" in |
---|
1844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1845 | *) ac_try_echo=$ac_try;; |
---|
1846 | esac |
---|
1847 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1848 | $as_echo "$ac_try_echo"; } >&5 |
---|
1849 | (eval "$ac_try") 2>&5 |
---|
1850 | ac_status=$? |
---|
1851 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1852 | test $ac_status = 0; }; }; then : |
---|
1853 | ac_retval=0 |
---|
1854 | else |
---|
1855 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1856 | $as_echo "$as_me: failed program was:" >&5 |
---|
1857 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1858 | |
---|
1859 | ac_retval=$ac_status |
---|
1860 | fi |
---|
1861 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1862 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1863 | as_fn_set_status $ac_retval |
---|
1864 | |
---|
1865 | } # ac_fn_cxx_try_run |
---|
1866 | |
---|
1867 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1868 | # --------------------------------------------------------- |
---|
1869 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1870 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1871 | # accordingly. |
---|
1872 | ac_fn_cxx_check_header_mongrel () |
---|
1873 | { |
---|
1874 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1875 | if eval \${$3+:} false; then : |
---|
1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1877 | $as_echo_n "checking for $2... " >&6; } |
---|
1878 | if eval \${$3+:} false; then : |
---|
1879 | $as_echo_n "(cached) " >&6 |
---|
1880 | fi |
---|
1881 | eval ac_res=\$$3 |
---|
1882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1883 | $as_echo "$ac_res" >&6; } |
---|
1884 | else |
---|
1885 | # Is the header compilable? |
---|
1886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1887 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1889 | /* end confdefs.h. */ |
---|
1890 | $4 |
---|
1891 | #include <$2> |
---|
1892 | _ACEOF |
---|
1893 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
1894 | ac_header_compiler=yes |
---|
1895 | else |
---|
1896 | ac_header_compiler=no |
---|
1897 | fi |
---|
1898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1900 | $as_echo "$ac_header_compiler" >&6; } |
---|
1901 | |
---|
1902 | # Is the header present? |
---|
1903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1904 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1906 | /* end confdefs.h. */ |
---|
1907 | #include <$2> |
---|
1908 | _ACEOF |
---|
1909 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
1910 | ac_header_preproc=yes |
---|
1911 | else |
---|
1912 | ac_header_preproc=no |
---|
1913 | fi |
---|
1914 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1916 | $as_echo "$ac_header_preproc" >&6; } |
---|
1917 | |
---|
1918 | # So? What about this header? |
---|
1919 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
---|
1920 | yes:no: ) |
---|
1921 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1922 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1923 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1924 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1925 | ;; |
---|
1926 | no:yes:* ) |
---|
1927 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1928 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1929 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1930 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1931 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1932 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1933 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1934 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1936 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1937 | ( $as_echo "## ----------------------------------- ## |
---|
1938 | ## Report this to rappture@nanohub.org ## |
---|
1939 | ## ----------------------------------- ##" |
---|
1940 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1941 | ;; |
---|
1942 | esac |
---|
1943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1944 | $as_echo_n "checking for $2... " >&6; } |
---|
1945 | if eval \${$3+:} false; then : |
---|
1946 | $as_echo_n "(cached) " >&6 |
---|
1947 | else |
---|
1948 | eval "$3=\$ac_header_compiler" |
---|
1949 | fi |
---|
1950 | eval ac_res=\$$3 |
---|
1951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1952 | $as_echo "$ac_res" >&6; } |
---|
1953 | fi |
---|
1954 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1955 | |
---|
1956 | } # ac_fn_cxx_check_header_mongrel |
---|
1957 | |
---|
1958 | # ac_fn_cxx_try_link LINENO |
---|
1959 | # ------------------------- |
---|
1960 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1961 | ac_fn_cxx_try_link () |
---|
1962 | { |
---|
1963 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1964 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1965 | if { { ac_try="$ac_link" |
---|
1966 | case "(($ac_try" in |
---|
1967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1968 | *) ac_try_echo=$ac_try;; |
---|
1969 | esac |
---|
1970 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1971 | $as_echo "$ac_try_echo"; } >&5 |
---|
1972 | (eval "$ac_link") 2>conftest.err |
---|
1973 | ac_status=$? |
---|
1974 | if test -s conftest.err; then |
---|
1975 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1976 | cat conftest.er1 >&5 |
---|
1977 | mv -f conftest.er1 conftest.err |
---|
1978 | fi |
---|
1979 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1980 | test $ac_status = 0; } && { |
---|
1981 | test -z "$ac_cxx_werror_flag" || |
---|
1982 | test ! -s conftest.err |
---|
1983 | } && test -s conftest$ac_exeext && { |
---|
1984 | test "$cross_compiling" = yes || |
---|
1985 | test -x conftest$ac_exeext |
---|
1986 | }; then : |
---|
1987 | ac_retval=0 |
---|
1988 | else |
---|
1989 | $as_echo "$as_me: failed program was:" >&5 |
---|
1990 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1991 | |
---|
1992 | ac_retval=1 |
---|
1993 | fi |
---|
1994 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1995 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1996 | # interfere with the next link command; also delete a directory that is |
---|
1997 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1998 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1999 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2000 | as_fn_set_status $ac_retval |
---|
2001 | |
---|
2002 | } # ac_fn_cxx_try_link |
---|
2003 | |
---|
2004 | # ac_fn_cxx_check_func LINENO FUNC VAR |
---|
2005 | # ------------------------------------ |
---|
2006 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
2007 | ac_fn_cxx_check_func () |
---|
2008 | { |
---|
2009 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2011 | $as_echo_n "checking for $2... " >&6; } |
---|
2012 | if eval \${$3+:} false; then : |
---|
2013 | $as_echo_n "(cached) " >&6 |
---|
2014 | else |
---|
2015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2016 | /* end confdefs.h. */ |
---|
2017 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
2018 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
2019 | #define $2 innocuous_$2 |
---|
2020 | |
---|
2021 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2022 | which can conflict with char $2 (); below. |
---|
2023 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
2024 | <limits.h> exists even on freestanding compilers. */ |
---|
2025 | |
---|
2026 | #ifdef __STDC__ |
---|
2027 | # include <limits.h> |
---|
2028 | #else |
---|
2029 | # include <assert.h> |
---|
2030 | #endif |
---|
2031 | |
---|
2032 | #undef $2 |
---|
2033 | |
---|
2034 | /* Override any GCC internal prototype to avoid an error. |
---|
2035 | Use char because int might match the return type of a GCC |
---|
2036 | builtin and then its argument prototype would still apply. */ |
---|
2037 | #ifdef __cplusplus |
---|
2038 | extern "C" |
---|
2039 | #endif |
---|
2040 | char $2 (); |
---|
2041 | /* The GNU C library defines this for functions which it implements |
---|
2042 | to always fail with ENOSYS. Some functions are actually named |
---|
2043 | something starting with __ and the normal name is an alias. */ |
---|
2044 | #if defined __stub_$2 || defined __stub___$2 |
---|
2045 | choke me |
---|
2046 | #endif |
---|
2047 | |
---|
2048 | int |
---|
2049 | main () |
---|
2050 | { |
---|
2051 | return $2 (); |
---|
2052 | ; |
---|
2053 | return 0; |
---|
2054 | } |
---|
2055 | _ACEOF |
---|
2056 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
2057 | eval "$3=yes" |
---|
2058 | else |
---|
2059 | eval "$3=no" |
---|
2060 | fi |
---|
2061 | rm -f core conftest.err conftest.$ac_objext \ |
---|
2062 | conftest$ac_exeext conftest.$ac_ext |
---|
2063 | fi |
---|
2064 | eval ac_res=\$$3 |
---|
2065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2066 | $as_echo "$ac_res" >&6; } |
---|
2067 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2068 | |
---|
2069 | } # ac_fn_cxx_check_func |
---|
2070 | cat >config.log <<_ACEOF |
---|
2071 | This file contains any messages produced by compilers while |
---|
2072 | running configure, to aid debugging if configure makes a mistake. |
---|
2073 | |
---|
2074 | It was created by pymolproxy $as_me 1.0, which was |
---|
2075 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
2076 | |
---|
2077 | $ $0 $@ |
---|
2078 | |
---|
2079 | _ACEOF |
---|
2080 | exec 5>>config.log |
---|
2081 | { |
---|
2082 | cat <<_ASUNAME |
---|
2083 | ## --------- ## |
---|
2084 | ## Platform. ## |
---|
2085 | ## --------- ## |
---|
2086 | |
---|
2087 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
2088 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
2089 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
2090 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
2091 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
2092 | |
---|
2093 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
2094 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
2095 | |
---|
2096 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
2097 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
2098 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
2099 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
2100 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
2101 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
2102 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
2103 | |
---|
2104 | _ASUNAME |
---|
2105 | |
---|
2106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2107 | for as_dir in $PATH |
---|
2108 | do |
---|
2109 | IFS=$as_save_IFS |
---|
2110 | test -z "$as_dir" && as_dir=. |
---|
2111 | $as_echo "PATH: $as_dir" |
---|
2112 | done |
---|
2113 | IFS=$as_save_IFS |
---|
2114 | |
---|
2115 | } >&5 |
---|
2116 | |
---|
2117 | cat >&5 <<_ACEOF |
---|
2118 | |
---|
2119 | |
---|
2120 | ## ----------- ## |
---|
2121 | ## Core tests. ## |
---|
2122 | ## ----------- ## |
---|
2123 | |
---|
2124 | _ACEOF |
---|
2125 | |
---|
2126 | |
---|
2127 | # Keep a trace of the command line. |
---|
2128 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2129 | # Strip out --silent because we don't want to record it for future runs. |
---|
2130 | # Also quote any args containing shell meta-characters. |
---|
2131 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2132 | ac_configure_args= |
---|
2133 | ac_configure_args0= |
---|
2134 | ac_configure_args1= |
---|
2135 | ac_must_keep_next=false |
---|
2136 | for ac_pass in 1 2 |
---|
2137 | do |
---|
2138 | for ac_arg |
---|
2139 | do |
---|
2140 | case $ac_arg in |
---|
2141 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2142 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2143 | | -silent | --silent | --silen | --sile | --sil) |
---|
2144 | continue ;; |
---|
2145 | *\'*) |
---|
2146 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2147 | esac |
---|
2148 | case $ac_pass in |
---|
2149 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2150 | 2) |
---|
2151 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2152 | if test $ac_must_keep_next = true; then |
---|
2153 | ac_must_keep_next=false # Got value, back to normal. |
---|
2154 | else |
---|
2155 | case $ac_arg in |
---|
2156 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2157 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2158 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2159 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2160 | case "$ac_configure_args0 " in |
---|
2161 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2162 | esac |
---|
2163 | ;; |
---|
2164 | -* ) ac_must_keep_next=true ;; |
---|
2165 | esac |
---|
2166 | fi |
---|
2167 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2168 | ;; |
---|
2169 | esac |
---|
2170 | done |
---|
2171 | done |
---|
2172 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2173 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2174 | |
---|
2175 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2176 | # config.log. We remove comments because anyway the quotes in there |
---|
2177 | # would cause problems or look ugly. |
---|
2178 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2179 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2180 | trap 'exit_status=$? |
---|
2181 | # Save into config.log some information that might help in debugging. |
---|
2182 | { |
---|
2183 | echo |
---|
2184 | |
---|
2185 | $as_echo "## ---------------- ## |
---|
2186 | ## Cache variables. ## |
---|
2187 | ## ---------------- ##" |
---|
2188 | echo |
---|
2189 | # The following way of writing the cache mishandles newlines in values, |
---|
2190 | ( |
---|
2191 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2192 | eval ac_val=\$$ac_var |
---|
2193 | case $ac_val in #( |
---|
2194 | *${as_nl}*) |
---|
2195 | case $ac_var in #( |
---|
2196 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2197 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2198 | esac |
---|
2199 | case $ac_var in #( |
---|
2200 | _ | IFS | as_nl) ;; #( |
---|
2201 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2202 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2203 | esac ;; |
---|
2204 | esac |
---|
2205 | done |
---|
2206 | (set) 2>&1 | |
---|
2207 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2208 | *${as_nl}ac_space=\ *) |
---|
2209 | sed -n \ |
---|
2210 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2211 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2212 | ;; #( |
---|
2213 | *) |
---|
2214 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2215 | ;; |
---|
2216 | esac | |
---|
2217 | sort |
---|
2218 | ) |
---|
2219 | echo |
---|
2220 | |
---|
2221 | $as_echo "## ----------------- ## |
---|
2222 | ## Output variables. ## |
---|
2223 | ## ----------------- ##" |
---|
2224 | echo |
---|
2225 | for ac_var in $ac_subst_vars |
---|
2226 | do |
---|
2227 | eval ac_val=\$$ac_var |
---|
2228 | case $ac_val in |
---|
2229 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2230 | esac |
---|
2231 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2232 | done | sort |
---|
2233 | echo |
---|
2234 | |
---|
2235 | if test -n "$ac_subst_files"; then |
---|
2236 | $as_echo "## ------------------- ## |
---|
2237 | ## File substitutions. ## |
---|
2238 | ## ------------------- ##" |
---|
2239 | echo |
---|
2240 | for ac_var in $ac_subst_files |
---|
2241 | do |
---|
2242 | eval ac_val=\$$ac_var |
---|
2243 | case $ac_val in |
---|
2244 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2245 | esac |
---|
2246 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2247 | done | sort |
---|
2248 | echo |
---|
2249 | fi |
---|
2250 | |
---|
2251 | if test -s confdefs.h; then |
---|
2252 | $as_echo "## ----------- ## |
---|
2253 | ## confdefs.h. ## |
---|
2254 | ## ----------- ##" |
---|
2255 | echo |
---|
2256 | cat confdefs.h |
---|
2257 | echo |
---|
2258 | fi |
---|
2259 | test "$ac_signal" != 0 && |
---|
2260 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2261 | $as_echo "$as_me: exit $exit_status" |
---|
2262 | } >&5 |
---|
2263 | rm -f core *.core core.conftest.* && |
---|
2264 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2265 | exit $exit_status |
---|
2266 | ' 0 |
---|
2267 | for ac_signal in 1 2 13 15; do |
---|
2268 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2269 | done |
---|
2270 | ac_signal=0 |
---|
2271 | |
---|
2272 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2273 | rm -f -r conftest* confdefs.h |
---|
2274 | |
---|
2275 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2276 | |
---|
2277 | # Predefined preprocessor variables. |
---|
2278 | |
---|
2279 | cat >>confdefs.h <<_ACEOF |
---|
2280 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2281 | _ACEOF |
---|
2282 | |
---|
2283 | cat >>confdefs.h <<_ACEOF |
---|
2284 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2285 | _ACEOF |
---|
2286 | |
---|
2287 | cat >>confdefs.h <<_ACEOF |
---|
2288 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2289 | _ACEOF |
---|
2290 | |
---|
2291 | cat >>confdefs.h <<_ACEOF |
---|
2292 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2293 | _ACEOF |
---|
2294 | |
---|
2295 | cat >>confdefs.h <<_ACEOF |
---|
2296 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2297 | _ACEOF |
---|
2298 | |
---|
2299 | cat >>confdefs.h <<_ACEOF |
---|
2300 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2301 | _ACEOF |
---|
2302 | |
---|
2303 | |
---|
2304 | # Let the site file select an alternate cache file if it wants to. |
---|
2305 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2306 | ac_site_file1=NONE |
---|
2307 | ac_site_file2=NONE |
---|
2308 | if test -n "$CONFIG_SITE"; then |
---|
2309 | # We do not want a PATH search for config.site. |
---|
2310 | case $CONFIG_SITE in #(( |
---|
2311 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2312 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2313 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2314 | esac |
---|
2315 | elif test "x$prefix" != xNONE; then |
---|
2316 | ac_site_file1=$prefix/share/config.site |
---|
2317 | ac_site_file2=$prefix/etc/config.site |
---|
2318 | else |
---|
2319 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2320 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2321 | fi |
---|
2322 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2323 | do |
---|
2324 | test "x$ac_site_file" = xNONE && continue |
---|
2325 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2326 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2327 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2328 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2329 | . "$ac_site_file" \ |
---|
2330 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2331 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2332 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2333 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2334 | fi |
---|
2335 | done |
---|
2336 | |
---|
2337 | if test -r "$cache_file"; then |
---|
2338 | # Some versions of bash will fail to source /dev/null (special files |
---|
2339 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2340 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2341 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2342 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2343 | case $cache_file in |
---|
2344 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2345 | *) . "./$cache_file";; |
---|
2346 | esac |
---|
2347 | fi |
---|
2348 | else |
---|
2349 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2350 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2351 | >$cache_file |
---|
2352 | fi |
---|
2353 | |
---|
2354 | # Check that the precious variables saved in the cache have kept the same |
---|
2355 | # value. |
---|
2356 | ac_cache_corrupted=false |
---|
2357 | for ac_var in $ac_precious_vars; do |
---|
2358 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2359 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2360 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2361 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2362 | case $ac_old_set,$ac_new_set in |
---|
2363 | set,) |
---|
2364 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2365 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2366 | ac_cache_corrupted=: ;; |
---|
2367 | ,set) |
---|
2368 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2369 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2370 | ac_cache_corrupted=: ;; |
---|
2371 | ,);; |
---|
2372 | *) |
---|
2373 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2374 | # differences in whitespace do not lead to failure. |
---|
2375 | ac_old_val_w=`echo x $ac_old_val` |
---|
2376 | ac_new_val_w=`echo x $ac_new_val` |
---|
2377 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2378 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2379 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2380 | ac_cache_corrupted=: |
---|
2381 | else |
---|
2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2383 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2384 | eval $ac_var=\$ac_old_val |
---|
2385 | fi |
---|
2386 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2387 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2388 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2389 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2390 | fi;; |
---|
2391 | esac |
---|
2392 | # Pass precious variables to config.status. |
---|
2393 | if test "$ac_new_set" = set; then |
---|
2394 | case $ac_new_val in |
---|
2395 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2396 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2397 | esac |
---|
2398 | case " $ac_configure_args " in |
---|
2399 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2400 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2401 | esac |
---|
2402 | fi |
---|
2403 | done |
---|
2404 | if $ac_cache_corrupted; then |
---|
2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2406 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2407 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2408 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2409 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2410 | fi |
---|
2411 | ## -------------------- ## |
---|
2412 | ## Main body of script. ## |
---|
2413 | ## -------------------- ## |
---|
2414 | |
---|
2415 | ac_ext=c |
---|
2416 | ac_cpp='$CPP $CPPFLAGS' |
---|
2417 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2418 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2419 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2420 | |
---|
2421 | |
---|
2422 | ac_aux_dir= |
---|
2423 | for ac_dir in cf "$srcdir"/cf; do |
---|
2424 | if test -f "$ac_dir/install-sh"; then |
---|
2425 | ac_aux_dir=$ac_dir |
---|
2426 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2427 | break |
---|
2428 | elif test -f "$ac_dir/install.sh"; then |
---|
2429 | ac_aux_dir=$ac_dir |
---|
2430 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2431 | break |
---|
2432 | elif test -f "$ac_dir/shtool"; then |
---|
2433 | ac_aux_dir=$ac_dir |
---|
2434 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2435 | break |
---|
2436 | fi |
---|
2437 | done |
---|
2438 | if test -z "$ac_aux_dir"; then |
---|
2439 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5 |
---|
2440 | fi |
---|
2441 | |
---|
2442 | # These three variables are undocumented and unsupported, |
---|
2443 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2444 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2445 | # whose full name contains unusual characters. |
---|
2446 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2447 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2448 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2449 | |
---|
2450 | |
---|
2451 | |
---|
2452 | |
---|
2453 | # Check whether --with-tcllib was given. |
---|
2454 | if test "${with_tcllib+set}" = set; then : |
---|
2455 | withval=$with_tcllib; with_tcllib=$withval |
---|
2456 | else |
---|
2457 | with_tcllib="" |
---|
2458 | fi |
---|
2459 | |
---|
2460 | |
---|
2461 | |
---|
2462 | # Check whether --with-statsdir was given. |
---|
2463 | if test "${with_statsdir+set}" = set; then : |
---|
2464 | withval=$with_statsdir; STATSDIR=$withval |
---|
2465 | else |
---|
2466 | STATSDIR="/var/tmp/visservers" |
---|
2467 | fi |
---|
2468 | |
---|
2469 | |
---|
2470 | |
---|
2471 | # Check whether --with-logdir was given. |
---|
2472 | if test "${with_logdir+set}" = set; then : |
---|
2473 | withval=$with_logdir; LOGDIR=$withval |
---|
2474 | else |
---|
2475 | LOGDIR="/tmp" |
---|
2476 | fi |
---|
2477 | |
---|
2478 | |
---|
2479 | ac_ext=c |
---|
2480 | ac_cpp='$CPP $CPPFLAGS' |
---|
2481 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2482 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2483 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2484 | if test -n "$ac_tool_prefix"; then |
---|
2485 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2486 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2488 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2489 | if ${ac_cv_prog_CC+:} false; then : |
---|
2490 | $as_echo_n "(cached) " >&6 |
---|
2491 | else |
---|
2492 | if test -n "$CC"; then |
---|
2493 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2494 | else |
---|
2495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2496 | for as_dir in $PATH |
---|
2497 | do |
---|
2498 | IFS=$as_save_IFS |
---|
2499 | test -z "$as_dir" && as_dir=. |
---|
2500 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2501 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2502 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2504 | break 2 |
---|
2505 | fi |
---|
2506 | done |
---|
2507 | done |
---|
2508 | IFS=$as_save_IFS |
---|
2509 | |
---|
2510 | fi |
---|
2511 | fi |
---|
2512 | CC=$ac_cv_prog_CC |
---|
2513 | if test -n "$CC"; then |
---|
2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2515 | $as_echo "$CC" >&6; } |
---|
2516 | else |
---|
2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2518 | $as_echo "no" >&6; } |
---|
2519 | fi |
---|
2520 | |
---|
2521 | |
---|
2522 | fi |
---|
2523 | if test -z "$ac_cv_prog_CC"; then |
---|
2524 | ac_ct_CC=$CC |
---|
2525 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2526 | set dummy gcc; ac_word=$2 |
---|
2527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2528 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2529 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
2530 | $as_echo_n "(cached) " >&6 |
---|
2531 | else |
---|
2532 | if test -n "$ac_ct_CC"; then |
---|
2533 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2534 | else |
---|
2535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2536 | for as_dir in $PATH |
---|
2537 | do |
---|
2538 | IFS=$as_save_IFS |
---|
2539 | test -z "$as_dir" && as_dir=. |
---|
2540 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2541 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2542 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2544 | break 2 |
---|
2545 | fi |
---|
2546 | done |
---|
2547 | done |
---|
2548 | IFS=$as_save_IFS |
---|
2549 | |
---|
2550 | fi |
---|
2551 | fi |
---|
2552 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2553 | if test -n "$ac_ct_CC"; then |
---|
2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
2555 | $as_echo "$ac_ct_CC" >&6; } |
---|
2556 | else |
---|
2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2558 | $as_echo "no" >&6; } |
---|
2559 | fi |
---|
2560 | |
---|
2561 | if test "x$ac_ct_CC" = x; then |
---|
2562 | CC="" |
---|
2563 | else |
---|
2564 | case $cross_compiling:$ac_tool_warned in |
---|
2565 | yes:) |
---|
2566 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2567 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2568 | ac_tool_warned=yes ;; |
---|
2569 | esac |
---|
2570 | CC=$ac_ct_CC |
---|
2571 | fi |
---|
2572 | else |
---|
2573 | CC="$ac_cv_prog_CC" |
---|
2574 | fi |
---|
2575 | |
---|
2576 | if test -z "$CC"; then |
---|
2577 | if test -n "$ac_tool_prefix"; then |
---|
2578 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2579 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2581 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2582 | if ${ac_cv_prog_CC+:} false; then : |
---|
2583 | $as_echo_n "(cached) " >&6 |
---|
2584 | else |
---|
2585 | if test -n "$CC"; then |
---|
2586 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2587 | else |
---|
2588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2589 | for as_dir in $PATH |
---|
2590 | do |
---|
2591 | IFS=$as_save_IFS |
---|
2592 | test -z "$as_dir" && as_dir=. |
---|
2593 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2594 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2595 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2597 | break 2 |
---|
2598 | fi |
---|
2599 | done |
---|
2600 | done |
---|
2601 | IFS=$as_save_IFS |
---|
2602 | |
---|
2603 | fi |
---|
2604 | fi |
---|
2605 | CC=$ac_cv_prog_CC |
---|
2606 | if test -n "$CC"; then |
---|
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2608 | $as_echo "$CC" >&6; } |
---|
2609 | else |
---|
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2611 | $as_echo "no" >&6; } |
---|
2612 | fi |
---|
2613 | |
---|
2614 | |
---|
2615 | fi |
---|
2616 | fi |
---|
2617 | if test -z "$CC"; then |
---|
2618 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2619 | set dummy cc; ac_word=$2 |
---|
2620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2621 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2622 | if ${ac_cv_prog_CC+:} false; then : |
---|
2623 | $as_echo_n "(cached) " >&6 |
---|
2624 | else |
---|
2625 | if test -n "$CC"; then |
---|
2626 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2627 | else |
---|
2628 | ac_prog_rejected=no |
---|
2629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2630 | for as_dir in $PATH |
---|
2631 | do |
---|
2632 | IFS=$as_save_IFS |
---|
2633 | test -z "$as_dir" && as_dir=. |
---|
2634 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2635 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2636 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2637 | ac_prog_rejected=yes |
---|
2638 | continue |
---|
2639 | fi |
---|
2640 | ac_cv_prog_CC="cc" |
---|
2641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2642 | break 2 |
---|
2643 | fi |
---|
2644 | done |
---|
2645 | done |
---|
2646 | IFS=$as_save_IFS |
---|
2647 | |
---|
2648 | if test $ac_prog_rejected = yes; then |
---|
2649 | # We found a bogon in the path, so make sure we never use it. |
---|
2650 | set dummy $ac_cv_prog_CC |
---|
2651 | shift |
---|
2652 | if test $# != 0; then |
---|
2653 | # We chose a different compiler from the bogus one. |
---|
2654 | # However, it has the same basename, so the bogon will be chosen |
---|
2655 | # first if we set CC to just the basename; use the full file name. |
---|
2656 | shift |
---|
2657 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2658 | fi |
---|
2659 | fi |
---|
2660 | fi |
---|
2661 | fi |
---|
2662 | CC=$ac_cv_prog_CC |
---|
2663 | if test -n "$CC"; then |
---|
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2665 | $as_echo "$CC" >&6; } |
---|
2666 | else |
---|
2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2668 | $as_echo "no" >&6; } |
---|
2669 | fi |
---|
2670 | |
---|
2671 | |
---|
2672 | fi |
---|
2673 | if test -z "$CC"; then |
---|
2674 | if test -n "$ac_tool_prefix"; then |
---|
2675 | for ac_prog in cl.exe |
---|
2676 | do |
---|
2677 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2678 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2680 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2681 | if ${ac_cv_prog_CC+:} false; then : |
---|
2682 | $as_echo_n "(cached) " >&6 |
---|
2683 | else |
---|
2684 | if test -n "$CC"; then |
---|
2685 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2686 | else |
---|
2687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2688 | for as_dir in $PATH |
---|
2689 | do |
---|
2690 | IFS=$as_save_IFS |
---|
2691 | test -z "$as_dir" && as_dir=. |
---|
2692 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2693 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2694 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2696 | break 2 |
---|
2697 | fi |
---|
2698 | done |
---|
2699 | done |
---|
2700 | IFS=$as_save_IFS |
---|
2701 | |
---|
2702 | fi |
---|
2703 | fi |
---|
2704 | CC=$ac_cv_prog_CC |
---|
2705 | if test -n "$CC"; then |
---|
2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2707 | $as_echo "$CC" >&6; } |
---|
2708 | else |
---|
2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2710 | $as_echo "no" >&6; } |
---|
2711 | fi |
---|
2712 | |
---|
2713 | |
---|
2714 | test -n "$CC" && break |
---|
2715 | done |
---|
2716 | fi |
---|
2717 | if test -z "$CC"; then |
---|
2718 | ac_ct_CC=$CC |
---|
2719 | for ac_prog in cl.exe |
---|
2720 | do |
---|
2721 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2722 | set dummy $ac_prog; ac_word=$2 |
---|
2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2724 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2725 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
2726 | $as_echo_n "(cached) " >&6 |
---|
2727 | else |
---|
2728 | if test -n "$ac_ct_CC"; then |
---|
2729 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2730 | else |
---|
2731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2732 | for as_dir in $PATH |
---|
2733 | do |
---|
2734 | IFS=$as_save_IFS |
---|
2735 | test -z "$as_dir" && as_dir=. |
---|
2736 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2738 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2740 | break 2 |
---|
2741 | fi |
---|
2742 | done |
---|
2743 | done |
---|
2744 | IFS=$as_save_IFS |
---|
2745 | |
---|
2746 | fi |
---|
2747 | fi |
---|
2748 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2749 | if test -n "$ac_ct_CC"; then |
---|
2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
2751 | $as_echo "$ac_ct_CC" >&6; } |
---|
2752 | else |
---|
2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2754 | $as_echo "no" >&6; } |
---|
2755 | fi |
---|
2756 | |
---|
2757 | |
---|
2758 | test -n "$ac_ct_CC" && break |
---|
2759 | done |
---|
2760 | |
---|
2761 | if test "x$ac_ct_CC" = x; then |
---|
2762 | CC="" |
---|
2763 | else |
---|
2764 | case $cross_compiling:$ac_tool_warned in |
---|
2765 | yes:) |
---|
2766 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2767 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2768 | ac_tool_warned=yes ;; |
---|
2769 | esac |
---|
2770 | CC=$ac_ct_CC |
---|
2771 | fi |
---|
2772 | fi |
---|
2773 | |
---|
2774 | fi |
---|
2775 | |
---|
2776 | |
---|
2777 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2778 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2779 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
2780 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2781 | |
---|
2782 | # Provide some information about the compiler. |
---|
2783 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
2784 | set X $ac_compile |
---|
2785 | ac_compiler=$2 |
---|
2786 | for ac_option in --version -v -V -qversion; do |
---|
2787 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
2788 | case "(($ac_try" in |
---|
2789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2790 | *) ac_try_echo=$ac_try;; |
---|
2791 | esac |
---|
2792 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2793 | $as_echo "$ac_try_echo"; } >&5 |
---|
2794 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
2795 | ac_status=$? |
---|
2796 | if test -s conftest.err; then |
---|
2797 | sed '10a\ |
---|
2798 | ... rest of stderr output deleted ... |
---|
2799 | 10q' conftest.err >conftest.er1 |
---|
2800 | cat conftest.er1 >&5 |
---|
2801 | fi |
---|
2802 | rm -f conftest.er1 conftest.err |
---|
2803 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2804 | test $ac_status = 0; } |
---|
2805 | done |
---|
2806 | |
---|
2807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2808 | /* end confdefs.h. */ |
---|
2809 | |
---|
2810 | int |
---|
2811 | main () |
---|
2812 | { |
---|
2813 | |
---|
2814 | ; |
---|
2815 | return 0; |
---|
2816 | } |
---|
2817 | _ACEOF |
---|
2818 | ac_clean_files_save=$ac_clean_files |
---|
2819 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
2820 | # Try to create an executable without -o first, disregard a.out. |
---|
2821 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2822 | # of exeext. |
---|
2823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
---|
2824 | $as_echo_n "checking whether the C compiler works... " >&6; } |
---|
2825 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2826 | |
---|
2827 | # The possible output files: |
---|
2828 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
2829 | |
---|
2830 | ac_rmfiles= |
---|
2831 | for ac_file in $ac_files |
---|
2832 | do |
---|
2833 | case $ac_file in |
---|
2834 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2835 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
2836 | esac |
---|
2837 | done |
---|
2838 | rm -f $ac_rmfiles |
---|
2839 | |
---|
2840 | if { { ac_try="$ac_link_default" |
---|
2841 | case "(($ac_try" in |
---|
2842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2843 | *) ac_try_echo=$ac_try;; |
---|
2844 | esac |
---|
2845 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2846 | $as_echo "$ac_try_echo"; } >&5 |
---|
2847 | (eval "$ac_link_default") 2>&5 |
---|
2848 | ac_status=$? |
---|
2849 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2850 | test $ac_status = 0; }; then : |
---|
2851 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
2852 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
2853 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
2854 | # so that the user can short-circuit this test for compilers unknown to |
---|
2855 | # Autoconf. |
---|
2856 | for ac_file in $ac_files '' |
---|
2857 | do |
---|
2858 | test -f "$ac_file" || continue |
---|
2859 | case $ac_file in |
---|
2860 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
2861 | ;; |
---|
2862 | [ab].out ) |
---|
2863 | # We found the default executable, but exeext='' is most |
---|
2864 | # certainly right. |
---|
2865 | break;; |
---|
2866 | *.* ) |
---|
2867 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
2868 | then :; else |
---|
2869 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2870 | fi |
---|
2871 | # We set ac_cv_exeext here because the later test for it is not |
---|
2872 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
2873 | # argument, so we may need to know it at that point already. |
---|
2874 | # Even if this section looks crufty: it has the advantage of |
---|
2875 | # actually working. |
---|
2876 | break;; |
---|
2877 | * ) |
---|
2878 | break;; |
---|
2879 | esac |
---|
2880 | done |
---|
2881 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
2882 | |
---|
2883 | else |
---|
2884 | ac_file='' |
---|
2885 | fi |
---|
2886 | if test -z "$ac_file"; then : |
---|
2887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2888 | $as_echo "no" >&6; } |
---|
2889 | $as_echo "$as_me: failed program was:" >&5 |
---|
2890 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2891 | |
---|
2892 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2893 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2894 | as_fn_error 77 "C compiler cannot create executables |
---|
2895 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2896 | else |
---|
2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2898 | $as_echo "yes" >&6; } |
---|
2899 | fi |
---|
2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
---|
2901 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
---|
2902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
2903 | $as_echo "$ac_file" >&6; } |
---|
2904 | ac_exeext=$ac_cv_exeext |
---|
2905 | |
---|
2906 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
2907 | ac_clean_files=$ac_clean_files_save |
---|
2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
2909 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
2910 | if { { ac_try="$ac_link" |
---|
2911 | case "(($ac_try" in |
---|
2912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2913 | *) ac_try_echo=$ac_try;; |
---|
2914 | esac |
---|
2915 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2916 | $as_echo "$ac_try_echo"; } >&5 |
---|
2917 | (eval "$ac_link") 2>&5 |
---|
2918 | ac_status=$? |
---|
2919 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2920 | test $ac_status = 0; }; then : |
---|
2921 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2922 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2923 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2924 | # `rm'. |
---|
2925 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2926 | test -f "$ac_file" || continue |
---|
2927 | case $ac_file in |
---|
2928 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2929 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2930 | break;; |
---|
2931 | * ) break;; |
---|
2932 | esac |
---|
2933 | done |
---|
2934 | else |
---|
2935 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2936 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2937 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
2938 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2939 | fi |
---|
2940 | rm -f conftest conftest$ac_cv_exeext |
---|
2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
2942 | $as_echo "$ac_cv_exeext" >&6; } |
---|
2943 | |
---|
2944 | rm -f conftest.$ac_ext |
---|
2945 | EXEEXT=$ac_cv_exeext |
---|
2946 | ac_exeext=$EXEEXT |
---|
2947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2948 | /* end confdefs.h. */ |
---|
2949 | #include <stdio.h> |
---|
2950 | int |
---|
2951 | main () |
---|
2952 | { |
---|
2953 | FILE *f = fopen ("conftest.out", "w"); |
---|
2954 | return ferror (f) || fclose (f) != 0; |
---|
2955 | |
---|
2956 | ; |
---|
2957 | return 0; |
---|
2958 | } |
---|
2959 | _ACEOF |
---|
2960 | ac_clean_files="$ac_clean_files conftest.out" |
---|
2961 | # Check that the compiler produces executables we can run. If not, either |
---|
2962 | # the compiler is broken, or we cross compile. |
---|
2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
2964 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
2965 | if test "$cross_compiling" != yes; then |
---|
2966 | { { ac_try="$ac_link" |
---|
2967 | case "(($ac_try" in |
---|
2968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2969 | *) ac_try_echo=$ac_try;; |
---|
2970 | esac |
---|
2971 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2972 | $as_echo "$ac_try_echo"; } >&5 |
---|
2973 | (eval "$ac_link") 2>&5 |
---|
2974 | ac_status=$? |
---|
2975 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2976 | test $ac_status = 0; } |
---|
2977 | if { ac_try='./conftest$ac_cv_exeext' |
---|
2978 | { { case "(($ac_try" in |
---|
2979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2980 | *) ac_try_echo=$ac_try;; |
---|
2981 | esac |
---|
2982 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2983 | $as_echo "$ac_try_echo"; } >&5 |
---|
2984 | (eval "$ac_try") 2>&5 |
---|
2985 | ac_status=$? |
---|
2986 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2987 | test $ac_status = 0; }; }; then |
---|
2988 | cross_compiling=no |
---|
2989 | else |
---|
2990 | if test "$cross_compiling" = maybe; then |
---|
2991 | cross_compiling=yes |
---|
2992 | else |
---|
2993 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2994 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2995 | as_fn_error $? "cannot run C compiled programs. |
---|
2996 | If you meant to cross compile, use \`--host'. |
---|
2997 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2998 | fi |
---|
2999 | fi |
---|
3000 | fi |
---|
3001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3002 | $as_echo "$cross_compiling" >&6; } |
---|
3003 | |
---|
3004 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3005 | ac_clean_files=$ac_clean_files_save |
---|
3006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3007 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3008 | if ${ac_cv_objext+:} false; then : |
---|
3009 | $as_echo_n "(cached) " >&6 |
---|
3010 | else |
---|
3011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3012 | /* end confdefs.h. */ |
---|
3013 | |
---|
3014 | int |
---|
3015 | main () |
---|
3016 | { |
---|
3017 | |
---|
3018 | ; |
---|
3019 | return 0; |
---|
3020 | } |
---|
3021 | _ACEOF |
---|
3022 | rm -f conftest.o conftest.obj |
---|
3023 | if { { ac_try="$ac_compile" |
---|
3024 | case "(($ac_try" in |
---|
3025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3026 | *) ac_try_echo=$ac_try;; |
---|
3027 | esac |
---|
3028 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3029 | $as_echo "$ac_try_echo"; } >&5 |
---|
3030 | (eval "$ac_compile") 2>&5 |
---|
3031 | ac_status=$? |
---|
3032 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3033 | test $ac_status = 0; }; then : |
---|
3034 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3035 | test -f "$ac_file" || continue; |
---|
3036 | case $ac_file in |
---|
3037 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3038 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3039 | break;; |
---|
3040 | esac |
---|
3041 | done |
---|
3042 | else |
---|
3043 | $as_echo "$as_me: failed program was:" >&5 |
---|
3044 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3045 | |
---|
3046 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3047 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3048 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3049 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3050 | fi |
---|
3051 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3052 | fi |
---|
3053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3054 | $as_echo "$ac_cv_objext" >&6; } |
---|
3055 | OBJEXT=$ac_cv_objext |
---|
3056 | ac_objext=$OBJEXT |
---|
3057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
3058 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
3059 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
3060 | $as_echo_n "(cached) " >&6 |
---|
3061 | else |
---|
3062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3063 | /* end confdefs.h. */ |
---|
3064 | |
---|
3065 | int |
---|
3066 | main () |
---|
3067 | { |
---|
3068 | #ifndef __GNUC__ |
---|
3069 | choke me |
---|
3070 | #endif |
---|
3071 | |
---|
3072 | ; |
---|
3073 | return 0; |
---|
3074 | } |
---|
3075 | _ACEOF |
---|
3076 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3077 | ac_compiler_gnu=yes |
---|
3078 | else |
---|
3079 | ac_compiler_gnu=no |
---|
3080 | fi |
---|
3081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3082 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3083 | |
---|
3084 | fi |
---|
3085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3086 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
3087 | if test $ac_compiler_gnu = yes; then |
---|
3088 | GCC=yes |
---|
3089 | else |
---|
3090 | GCC= |
---|
3091 | fi |
---|
3092 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3093 | ac_save_CFLAGS=$CFLAGS |
---|
3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
3095 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
3096 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
3097 | $as_echo_n "(cached) " >&6 |
---|
3098 | else |
---|
3099 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
3100 | ac_c_werror_flag=yes |
---|
3101 | ac_cv_prog_cc_g=no |
---|
3102 | CFLAGS="-g" |
---|
3103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3104 | /* end confdefs.h. */ |
---|
3105 | |
---|
3106 | int |
---|
3107 | main () |
---|
3108 | { |
---|
3109 | |
---|
3110 | ; |
---|
3111 | return 0; |
---|
3112 | } |
---|
3113 | _ACEOF |
---|
3114 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3115 | ac_cv_prog_cc_g=yes |
---|
3116 | else |
---|
3117 | CFLAGS="" |
---|
3118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3119 | /* end confdefs.h. */ |
---|
3120 | |
---|
3121 | int |
---|
3122 | main () |
---|
3123 | { |
---|
3124 | |
---|
3125 | ; |
---|
3126 | return 0; |
---|
3127 | } |
---|
3128 | _ACEOF |
---|
3129 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3130 | |
---|
3131 | else |
---|
3132 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3133 | CFLAGS="-g" |
---|
3134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3135 | /* end confdefs.h. */ |
---|
3136 | |
---|
3137 | int |
---|
3138 | main () |
---|
3139 | { |
---|
3140 | |
---|
3141 | ; |
---|
3142 | return 0; |
---|
3143 | } |
---|
3144 | _ACEOF |
---|
3145 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3146 | ac_cv_prog_cc_g=yes |
---|
3147 | fi |
---|
3148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3149 | fi |
---|
3150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3151 | fi |
---|
3152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3153 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3154 | fi |
---|
3155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
3156 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
3157 | if test "$ac_test_CFLAGS" = set; then |
---|
3158 | CFLAGS=$ac_save_CFLAGS |
---|
3159 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3160 | if test "$GCC" = yes; then |
---|
3161 | CFLAGS="-g -O2" |
---|
3162 | else |
---|
3163 | CFLAGS="-g" |
---|
3164 | fi |
---|
3165 | else |
---|
3166 | if test "$GCC" = yes; then |
---|
3167 | CFLAGS="-O2" |
---|
3168 | else |
---|
3169 | CFLAGS= |
---|
3170 | fi |
---|
3171 | fi |
---|
3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
3173 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
3174 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
3175 | $as_echo_n "(cached) " >&6 |
---|
3176 | else |
---|
3177 | ac_cv_prog_cc_c89=no |
---|
3178 | ac_save_CC=$CC |
---|
3179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3180 | /* end confdefs.h. */ |
---|
3181 | #include <stdarg.h> |
---|
3182 | #include <stdio.h> |
---|
3183 | struct stat; |
---|
3184 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3185 | struct buf { int x; }; |
---|
3186 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3187 | static char *e (p, i) |
---|
3188 | char **p; |
---|
3189 | int i; |
---|
3190 | { |
---|
3191 | return p[i]; |
---|
3192 | } |
---|
3193 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3194 | { |
---|
3195 | char *s; |
---|
3196 | va_list v; |
---|
3197 | va_start (v,p); |
---|
3198 | s = g (p, va_arg (v,int)); |
---|
3199 | va_end (v); |
---|
3200 | return s; |
---|
3201 | } |
---|
3202 | |
---|
3203 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3204 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3205 | These don't provoke an error unfortunately, instead are silently treated |
---|
3206 | as 'x'. The following induces an error, until -std is added to get |
---|
3207 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3208 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3209 | that's true only with -std. */ |
---|
3210 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3211 | |
---|
3212 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
3213 | inside strings and character constants. */ |
---|
3214 | #define FOO(x) 'x' |
---|
3215 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
3216 | |
---|
3217 | int test (int i, double x); |
---|
3218 | struct s1 {int (*f) (int a);}; |
---|
3219 | struct s2 {int (*f) (double a);}; |
---|
3220 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3221 | int argc; |
---|
3222 | char **argv; |
---|
3223 | int |
---|
3224 | main () |
---|
3225 | { |
---|
3226 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3227 | ; |
---|
3228 | return 0; |
---|
3229 | } |
---|
3230 | _ACEOF |
---|
3231 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
3232 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3233 | do |
---|
3234 | CC="$ac_save_CC $ac_arg" |
---|
3235 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3236 | ac_cv_prog_cc_c89=$ac_arg |
---|
3237 | fi |
---|
3238 | rm -f core conftest.err conftest.$ac_objext |
---|
3239 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3240 | done |
---|
3241 | rm -f conftest.$ac_ext |
---|
3242 | CC=$ac_save_CC |
---|
3243 | |
---|
3244 | fi |
---|
3245 | # AC_CACHE_VAL |
---|
3246 | case "x$ac_cv_prog_cc_c89" in |
---|
3247 | x) |
---|
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
3249 | $as_echo "none needed" >&6; } ;; |
---|
3250 | xno) |
---|
3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
3252 | $as_echo "unsupported" >&6; } ;; |
---|
3253 | *) |
---|
3254 | CC="$CC $ac_cv_prog_cc_c89" |
---|
3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
3256 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3257 | esac |
---|
3258 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
3259 | |
---|
3260 | fi |
---|
3261 | |
---|
3262 | ac_ext=c |
---|
3263 | ac_cpp='$CPP $CPPFLAGS' |
---|
3264 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3265 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3266 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3267 | |
---|
3268 | |
---|
3269 | ac_ext=c |
---|
3270 | ac_cpp='$CPP $CPPFLAGS' |
---|
3271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
3275 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
3276 | # On Suns, sometimes $CPP names a directory. |
---|
3277 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3278 | CPP= |
---|
3279 | fi |
---|
3280 | if test -z "$CPP"; then |
---|
3281 | if ${ac_cv_prog_CPP+:} false; then : |
---|
3282 | $as_echo_n "(cached) " >&6 |
---|
3283 | else |
---|
3284 | # Double quotes because CPP needs to be expanded |
---|
3285 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3286 | do |
---|
3287 | ac_preproc_ok=false |
---|
3288 | for ac_c_preproc_warn_flag in '' yes |
---|
3289 | do |
---|
3290 | # Use a header file that comes with gcc, so configuring glibc |
---|
3291 | # with a fresh cross-compiler works. |
---|
3292 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3293 | # <limits.h> exists even on freestanding compilers. |
---|
3294 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3295 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3297 | /* end confdefs.h. */ |
---|
3298 | #ifdef __STDC__ |
---|
3299 | # include <limits.h> |
---|
3300 | #else |
---|
3301 | # include <assert.h> |
---|
3302 | #endif |
---|
3303 | Syntax error |
---|
3304 | _ACEOF |
---|
3305 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3306 | |
---|
3307 | else |
---|
3308 | # Broken: fails on valid input. |
---|
3309 | continue |
---|
3310 | fi |
---|
3311 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3312 | |
---|
3313 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3314 | # can be detected and how. |
---|
3315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3316 | /* end confdefs.h. */ |
---|
3317 | #include <ac_nonexistent.h> |
---|
3318 | _ACEOF |
---|
3319 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3320 | # Broken: success on invalid input. |
---|
3321 | continue |
---|
3322 | else |
---|
3323 | # Passes both tests. |
---|
3324 | ac_preproc_ok=: |
---|
3325 | break |
---|
3326 | fi |
---|
3327 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3328 | |
---|
3329 | done |
---|
3330 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3331 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
3332 | if $ac_preproc_ok; then : |
---|
3333 | break |
---|
3334 | fi |
---|
3335 | |
---|
3336 | done |
---|
3337 | ac_cv_prog_CPP=$CPP |
---|
3338 | |
---|
3339 | fi |
---|
3340 | CPP=$ac_cv_prog_CPP |
---|
3341 | else |
---|
3342 | ac_cv_prog_CPP=$CPP |
---|
3343 | fi |
---|
3344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
3345 | $as_echo "$CPP" >&6; } |
---|
3346 | ac_preproc_ok=false |
---|
3347 | for ac_c_preproc_warn_flag in '' yes |
---|
3348 | do |
---|
3349 | # Use a header file that comes with gcc, so configuring glibc |
---|
3350 | # with a fresh cross-compiler works. |
---|
3351 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3352 | # <limits.h> exists even on freestanding compilers. |
---|
3353 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3354 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3356 | /* end confdefs.h. */ |
---|
3357 | #ifdef __STDC__ |
---|
3358 | # include <limits.h> |
---|
3359 | #else |
---|
3360 | # include <assert.h> |
---|
3361 | #endif |
---|
3362 | Syntax error |
---|
3363 | _ACEOF |
---|
3364 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3365 | |
---|
3366 | else |
---|
3367 | # Broken: fails on valid input. |
---|
3368 | continue |
---|
3369 | fi |
---|
3370 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3371 | |
---|
3372 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3373 | # can be detected and how. |
---|
3374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3375 | /* end confdefs.h. */ |
---|
3376 | #include <ac_nonexistent.h> |
---|
3377 | _ACEOF |
---|
3378 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3379 | # Broken: success on invalid input. |
---|
3380 | continue |
---|
3381 | else |
---|
3382 | # Passes both tests. |
---|
3383 | ac_preproc_ok=: |
---|
3384 | break |
---|
3385 | fi |
---|
3386 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3387 | |
---|
3388 | done |
---|
3389 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3390 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
3391 | if $ac_preproc_ok; then : |
---|
3392 | |
---|
3393 | else |
---|
3394 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3395 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3396 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
3397 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3398 | fi |
---|
3399 | |
---|
3400 | ac_ext=c |
---|
3401 | ac_cpp='$CPP $CPPFLAGS' |
---|
3402 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3403 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3404 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3405 | |
---|
3406 | |
---|
3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
3408 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
3409 | if ${ac_cv_path_GREP+:} false; then : |
---|
3410 | $as_echo_n "(cached) " >&6 |
---|
3411 | else |
---|
3412 | if test -z "$GREP"; then |
---|
3413 | ac_path_GREP_found=false |
---|
3414 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
3415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3416 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
3417 | do |
---|
3418 | IFS=$as_save_IFS |
---|
3419 | test -z "$as_dir" && as_dir=. |
---|
3420 | for ac_prog in grep ggrep; do |
---|
3421 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3422 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
3423 | as_fn_executable_p "$ac_path_GREP" || continue |
---|
3424 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
3425 | # Check for GNU $ac_path_GREP |
---|
3426 | case `"$ac_path_GREP" --version 2>&1` in |
---|
3427 | *GNU*) |
---|
3428 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
3429 | *) |
---|
3430 | ac_count=0 |
---|
3431 | $as_echo_n 0123456789 >"conftest.in" |
---|
3432 | while : |
---|
3433 | do |
---|
3434 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
3435 | mv "conftest.tmp" "conftest.in" |
---|
3436 | cp "conftest.in" "conftest.nl" |
---|
3437 | $as_echo 'GREP' >> "conftest.nl" |
---|
3438 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
3439 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
3440 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
3441 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
3442 | # Best one so far, save it but keep looking for a better one |
---|
3443 | ac_cv_path_GREP="$ac_path_GREP" |
---|
3444 | ac_path_GREP_max=$ac_count |
---|
3445 | fi |
---|
3446 | # 10*(2^10) chars as input seems more than enough |
---|
3447 | test $ac_count -gt 10 && break |
---|
3448 | done |
---|
3449 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
3450 | esac |
---|
3451 | |
---|
3452 | $ac_path_GREP_found && break 3 |
---|
3453 | done |
---|
3454 | done |
---|
3455 | done |
---|
3456 | IFS=$as_save_IFS |
---|
3457 | if test -z "$ac_cv_path_GREP"; then |
---|
3458 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
3459 | fi |
---|
3460 | else |
---|
3461 | ac_cv_path_GREP=$GREP |
---|
3462 | fi |
---|
3463 | |
---|
3464 | fi |
---|
3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
3466 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
3467 | GREP="$ac_cv_path_GREP" |
---|
3468 | |
---|
3469 | |
---|
3470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
3471 | $as_echo_n "checking for egrep... " >&6; } |
---|
3472 | if ${ac_cv_path_EGREP+:} false; then : |
---|
3473 | $as_echo_n "(cached) " >&6 |
---|
3474 | else |
---|
3475 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
3476 | then ac_cv_path_EGREP="$GREP -E" |
---|
3477 | else |
---|
3478 | if test -z "$EGREP"; then |
---|
3479 | ac_path_EGREP_found=false |
---|
3480 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
3481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3482 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
3483 | do |
---|
3484 | IFS=$as_save_IFS |
---|
3485 | test -z "$as_dir" && as_dir=. |
---|
3486 | for ac_prog in egrep; do |
---|
3487 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3488 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
3489 | as_fn_executable_p "$ac_path_EGREP" || continue |
---|
3490 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
3491 | # Check for GNU $ac_path_EGREP |
---|
3492 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
3493 | *GNU*) |
---|
3494 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
3495 | *) |
---|
3496 | ac_count=0 |
---|
3497 | $as_echo_n 0123456789 >"conftest.in" |
---|
3498 | while : |
---|
3499 | do |
---|
3500 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
3501 | mv "conftest.tmp" "conftest.in" |
---|
3502 | cp "conftest.in" "conftest.nl" |
---|
3503 | $as_echo 'EGREP' >> "conftest.nl" |
---|
3504 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
3505 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
3506 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
3507 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
3508 | # Best one so far, save it but keep looking for a better one |
---|
3509 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
3510 | ac_path_EGREP_max=$ac_count |
---|
3511 | fi |
---|
3512 | # 10*(2^10) chars as input seems more than enough |
---|
3513 | test $ac_count -gt 10 && break |
---|
3514 | done |
---|
3515 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
3516 | esac |
---|
3517 | |
---|
3518 | $ac_path_EGREP_found && break 3 |
---|
3519 | done |
---|
3520 | done |
---|
3521 | done |
---|
3522 | IFS=$as_save_IFS |
---|
3523 | if test -z "$ac_cv_path_EGREP"; then |
---|
3524 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
3525 | fi |
---|
3526 | else |
---|
3527 | ac_cv_path_EGREP=$EGREP |
---|
3528 | fi |
---|
3529 | |
---|
3530 | fi |
---|
3531 | fi |
---|
3532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
3533 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
3534 | EGREP="$ac_cv_path_EGREP" |
---|
3535 | |
---|
3536 | |
---|
3537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
3538 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
3539 | if ${ac_cv_header_stdc+:} false; then : |
---|
3540 | $as_echo_n "(cached) " >&6 |
---|
3541 | else |
---|
3542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3543 | /* end confdefs.h. */ |
---|
3544 | #include <stdlib.h> |
---|
3545 | #include <stdarg.h> |
---|
3546 | #include <string.h> |
---|
3547 | #include <float.h> |
---|
3548 | |
---|
3549 | int |
---|
3550 | main () |
---|
3551 | { |
---|
3552 | |
---|
3553 | ; |
---|
3554 | return 0; |
---|
3555 | } |
---|
3556 | _ACEOF |
---|
3557 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3558 | ac_cv_header_stdc=yes |
---|
3559 | else |
---|
3560 | ac_cv_header_stdc=no |
---|
3561 | fi |
---|
3562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3563 | |
---|
3564 | if test $ac_cv_header_stdc = yes; then |
---|
3565 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3567 | /* end confdefs.h. */ |
---|
3568 | #include <string.h> |
---|
3569 | |
---|
3570 | _ACEOF |
---|
3571 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3572 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
3573 | |
---|
3574 | else |
---|
3575 | ac_cv_header_stdc=no |
---|
3576 | fi |
---|
3577 | rm -f conftest* |
---|
3578 | |
---|
3579 | fi |
---|
3580 | |
---|
3581 | if test $ac_cv_header_stdc = yes; then |
---|
3582 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3584 | /* end confdefs.h. */ |
---|
3585 | #include <stdlib.h> |
---|
3586 | |
---|
3587 | _ACEOF |
---|
3588 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3589 | $EGREP "free" >/dev/null 2>&1; then : |
---|
3590 | |
---|
3591 | else |
---|
3592 | ac_cv_header_stdc=no |
---|
3593 | fi |
---|
3594 | rm -f conftest* |
---|
3595 | |
---|
3596 | fi |
---|
3597 | |
---|
3598 | if test $ac_cv_header_stdc = yes; then |
---|
3599 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3600 | if test "$cross_compiling" = yes; then : |
---|
3601 | : |
---|
3602 | else |
---|
3603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3604 | /* end confdefs.h. */ |
---|
3605 | #include <ctype.h> |
---|
3606 | #include <stdlib.h> |
---|
3607 | #if ((' ' & 0x0FF) == 0x020) |
---|
3608 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3609 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3610 | #else |
---|
3611 | # define ISLOWER(c) \ |
---|
3612 | (('a' <= (c) && (c) <= 'i') \ |
---|
3613 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3614 | || ('s' <= (c) && (c) <= 'z')) |
---|
3615 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3616 | #endif |
---|
3617 | |
---|
3618 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3619 | int |
---|
3620 | main () |
---|
3621 | { |
---|
3622 | int i; |
---|
3623 | for (i = 0; i < 256; i++) |
---|
3624 | if (XOR (islower (i), ISLOWER (i)) |
---|
3625 | || toupper (i) != TOUPPER (i)) |
---|
3626 | return 2; |
---|
3627 | return 0; |
---|
3628 | } |
---|
3629 | _ACEOF |
---|
3630 | if ac_fn_c_try_run "$LINENO"; then : |
---|
3631 | |
---|
3632 | else |
---|
3633 | ac_cv_header_stdc=no |
---|
3634 | fi |
---|
3635 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
3636 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
3637 | fi |
---|
3638 | |
---|
3639 | fi |
---|
3640 | fi |
---|
3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
3642 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
3643 | if test $ac_cv_header_stdc = yes; then |
---|
3644 | |
---|
3645 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
3646 | |
---|
3647 | fi |
---|
3648 | |
---|
3649 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3650 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3651 | inttypes.h stdint.h unistd.h |
---|
3652 | do : |
---|
3653 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3654 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
3655 | " |
---|
3656 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
3657 | cat >>confdefs.h <<_ACEOF |
---|
3658 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3659 | _ACEOF |
---|
3660 | |
---|
3661 | fi |
---|
3662 | |
---|
3663 | done |
---|
3664 | |
---|
3665 | |
---|
3666 | |
---|
3667 | PYTHON="" |
---|
3668 | PYTHON_CFLAGS="" |
---|
3669 | PYTHON_CPPFLAGS="" |
---|
3670 | PYTHON_DISTUTILS="" |
---|
3671 | PYTHON_INCLUDES="" |
---|
3672 | PYTHON_LDFLAGS="" |
---|
3673 | PYTHON_LIB="" |
---|
3674 | PYTHON_LIBDIR="" |
---|
3675 | PYTHON_SITE_DIR="" |
---|
3676 | PYTHON_SITE_PACKAGES="" |
---|
3677 | PYTHON_VERSION="" |
---|
3678 | pythondir="" |
---|
3679 | |
---|
3680 | # Check whether --with-python was given. |
---|
3681 | if test "${with_python+set}" = set; then : |
---|
3682 | withval=$with_python; |
---|
3683 | else |
---|
3684 | with_python=yes |
---|
3685 | fi |
---|
3686 | |
---|
3687 | |
---|
3688 | if test "$with_python" != "no" ; then |
---|
3689 | if test "$with_python" = "yes" ; then |
---|
3690 | # Extract the first word of "python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args. |
---|
3691 | set dummy python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2 |
---|
3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3693 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3694 | if ${ac_cv_path_PYTHON+:} false; then : |
---|
3695 | $as_echo_n "(cached) " >&6 |
---|
3696 | else |
---|
3697 | case $PYTHON in |
---|
3698 | [\\/]* | ?:[\\/]*) |
---|
3699 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
---|
3700 | ;; |
---|
3701 | *) |
---|
3702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3703 | for as_dir in $PATH |
---|
3704 | do |
---|
3705 | IFS=$as_save_IFS |
---|
3706 | test -z "$as_dir" && as_dir=. |
---|
3707 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3708 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3709 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
---|
3710 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3711 | break 2 |
---|
3712 | fi |
---|
3713 | done |
---|
3714 | done |
---|
3715 | IFS=$as_save_IFS |
---|
3716 | |
---|
3717 | ;; |
---|
3718 | esac |
---|
3719 | fi |
---|
3720 | PYTHON=$ac_cv_path_PYTHON |
---|
3721 | if test -n "$PYTHON"; then |
---|
3722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
---|
3723 | $as_echo "$PYTHON" >&6; } |
---|
3724 | else |
---|
3725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3726 | $as_echo "no" >&6; } |
---|
3727 | fi |
---|
3728 | |
---|
3729 | |
---|
3730 | else |
---|
3731 | # Extract the first word of "python", so it can be a program name with args. |
---|
3732 | set dummy python; ac_word=$2 |
---|
3733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3734 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3735 | if ${ac_cv_path_PYTHON+:} false; then : |
---|
3736 | $as_echo_n "(cached) " >&6 |
---|
3737 | else |
---|
3738 | case $PYTHON in |
---|
3739 | [\\/]* | ?:[\\/]*) |
---|
3740 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
---|
3741 | ;; |
---|
3742 | *) |
---|
3743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3744 | as_dummy="${with_python}/bin:${with_python}" |
---|
3745 | for as_dir in $as_dummy |
---|
3746 | do |
---|
3747 | IFS=$as_save_IFS |
---|
3748 | test -z "$as_dir" && as_dir=. |
---|
3749 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3750 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3751 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
---|
3752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3753 | break 2 |
---|
3754 | fi |
---|
3755 | done |
---|
3756 | done |
---|
3757 | IFS=$as_save_IFS |
---|
3758 | |
---|
3759 | ;; |
---|
3760 | esac |
---|
3761 | fi |
---|
3762 | PYTHON=$ac_cv_path_PYTHON |
---|
3763 | if test -n "$PYTHON"; then |
---|
3764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
---|
3765 | $as_echo "$PYTHON" >&6; } |
---|
3766 | else |
---|
3767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3768 | $as_echo "no" >&6; } |
---|
3769 | fi |
---|
3770 | |
---|
3771 | |
---|
3772 | fi |
---|
3773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&5 |
---|
3774 | $as_echo_n "checking for Python version... " >&6; } |
---|
3775 | if test "x${PYTHON}" != "x"; then |
---|
3776 | PYTHON_VERSION=`${PYTHON} -c "import sys; print sys.version[0:3]"` |
---|
3777 | fi |
---|
3778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_VERSION" >&5 |
---|
3779 | $as_echo "$PYTHON_VERSION" >&6; } |
---|
3780 | fi |
---|
3781 | |
---|
3782 | if test "x${PYTHON_VERSION}" != "x"; then |
---|
3783 | PYTHON_INCLUDES=$incdir |
---|
3784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils" >&5 |
---|
3785 | $as_echo_n "checking for Python distutils... " >&6; } |
---|
3786 | PYTHON_DISTUTILS="" |
---|
3787 | ${PYTHON} -c "from distutils.core import setup; setup(name='test')" \ |
---|
3788 | build build_ext 2>&1 > /dev/null |
---|
3789 | if test $? = 0 ; then |
---|
3790 | PYTHON_DISTUTILS="yes" |
---|
3791 | fi |
---|
3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_DISTUTILS" >&5 |
---|
3793 | $as_echo "$PYTHON_DISTUTILS" >&6; } |
---|
3794 | if test "${PYTHON_DISTUTILS}" = "yes" ; then |
---|
3795 | PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"` |
---|
3796 | # |
---|
3797 | # Check for Python include path |
---|
3798 | # |
---|
3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to Python headers" >&5 |
---|
3800 | $as_echo_n "checking path to Python headers... " >&6; } |
---|
3801 | PYTHON_INCDIR=`${PYTHON} -c "import distutils.sysconfig; \ |
---|
3802 | print distutils.sysconfig.get_python_inc();"` |
---|
3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCDIR" >&5 |
---|
3804 | $as_echo "$PYTHON_INCDIR" >&6; } |
---|
3805 | # |
---|
3806 | # Python distutils found, get settings from python directly |
---|
3807 | # |
---|
3808 | PYTHON_SITE_DIR="`${PYTHON} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(0);'`" |
---|
3809 | |
---|
3810 | PYTHON_CFLAGS="`$PYTHON -c 'from distutils import sysconfig; flags = [\"-I\" + sysconfig.get_python_inc(0), \"-I\" + sysconfig.get_python_inc(1), \" \".join(sysconfig.get_config_var(\"CFLAGS\").split())]; print \" \".join(flags);'`" |
---|
3811 | PYTHON_LDFLAGS="`$PYTHON -c 'from distutils import sysconfig; libs = sysconfig.get_config_var(\"LIBS\").split() + sysconfig.get_config_var(\"SYSLIBS\").split(); libs.append(\"-lpython\"+sysconfig.get_config_var(\"VERSION\")); print \" \".join(libs);'`" |
---|
3812 | PYTHON_LIB="`$PYTHON -c 'from distutils import sysconfig; print \"python\" + sysconfig.get_config_var(\"VERSION\");'`" |
---|
3813 | PYTHON_LIBDIR="`$PYTHON -c 'from distutils import sysconfig; print sysconfig.get_config_var(\"LIBDIR\");'`" |
---|
3814 | save_CPPFLAGS=$CPPFLAGS |
---|
3815 | CPPFLAGS="$CPPFLAGS -I${PYTHON_INCDIR}" |
---|
3816 | for ac_header in Python.h |
---|
3817 | do : |
---|
3818 | ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" |
---|
3819 | if test "x$ac_cv_header_Python_h" = xyes; then : |
---|
3820 | cat >>confdefs.h <<_ACEOF |
---|
3821 | #define HAVE_PYTHON_H 1 |
---|
3822 | _ACEOF |
---|
3823 | found=yes |
---|
3824 | else |
---|
3825 | found=no |
---|
3826 | fi |
---|
3827 | |
---|
3828 | done |
---|
3829 | |
---|
3830 | CPPFLAGS=$save_CPPFLAGS |
---|
3831 | if test "$found" = "no" ; then |
---|
3832 | PYTHON_DISTUTILS="" |
---|
3833 | fi |
---|
3834 | fi |
---|
3835 | fi |
---|
3836 | |
---|
3837 | |
---|
3838 | #------------------------------------------------------------------------ |
---|
3839 | # Handle the --prefix=... option |
---|
3840 | #------------------------------------------------------------------------ |
---|
3841 | |
---|
3842 | if test "${prefix}" = "NONE"; then |
---|
3843 | prefix=/usr/local |
---|
3844 | fi |
---|
3845 | if test "${exec_prefix}" = "NONE"; then |
---|
3846 | exec_prefix=$prefix |
---|
3847 | fi |
---|
3848 | |
---|
3849 | if test "x${incdir}" == "x"; then |
---|
3850 | incdir=${exec_prefix}/include |
---|
3851 | fi |
---|
3852 | libdir=${exec_prefix}/lib |
---|
3853 | |
---|
3854 | if test "${libdir}" != "${prefix}/lib"; then |
---|
3855 | LIB_SEARCH_DIRS="-L ${prefix}/lib -L ${libdir}" |
---|
3856 | else |
---|
3857 | LIB_SEARCH_DIRS="-L ${libdir}" |
---|
3858 | fi |
---|
3859 | |
---|
3860 | if test -n "$ac_tool_prefix"; then |
---|
3861 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
3862 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
3863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3864 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3865 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
3866 | $as_echo_n "(cached) " >&6 |
---|
3867 | else |
---|
3868 | if test -n "$RANLIB"; then |
---|
3869 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
3870 | else |
---|
3871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3872 | for as_dir in $PATH |
---|
3873 | do |
---|
3874 | IFS=$as_save_IFS |
---|
3875 | test -z "$as_dir" && as_dir=. |
---|
3876 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3877 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3878 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
3879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3880 | break 2 |
---|
3881 | fi |
---|
3882 | done |
---|
3883 | done |
---|
3884 | IFS=$as_save_IFS |
---|
3885 | |
---|
3886 | fi |
---|
3887 | fi |
---|
3888 | RANLIB=$ac_cv_prog_RANLIB |
---|
3889 | if test -n "$RANLIB"; then |
---|
3890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
3891 | $as_echo "$RANLIB" >&6; } |
---|
3892 | else |
---|
3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3894 | $as_echo "no" >&6; } |
---|
3895 | fi |
---|
3896 | |
---|
3897 | |
---|
3898 | fi |
---|
3899 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
3900 | ac_ct_RANLIB=$RANLIB |
---|
3901 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
3902 | set dummy ranlib; ac_word=$2 |
---|
3903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3904 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3905 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
3906 | $as_echo_n "(cached) " >&6 |
---|
3907 | else |
---|
3908 | if test -n "$ac_ct_RANLIB"; then |
---|
3909 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
3910 | else |
---|
3911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3912 | for as_dir in $PATH |
---|
3913 | do |
---|
3914 | IFS=$as_save_IFS |
---|
3915 | test -z "$as_dir" && as_dir=. |
---|
3916 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3917 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3918 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
3919 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3920 | break 2 |
---|
3921 | fi |
---|
3922 | done |
---|
3923 | done |
---|
3924 | IFS=$as_save_IFS |
---|
3925 | |
---|
3926 | fi |
---|
3927 | fi |
---|
3928 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
3929 | if test -n "$ac_ct_RANLIB"; then |
---|
3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
3931 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
3932 | else |
---|
3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3934 | $as_echo "no" >&6; } |
---|
3935 | fi |
---|
3936 | |
---|
3937 | if test "x$ac_ct_RANLIB" = x; then |
---|
3938 | RANLIB=":" |
---|
3939 | else |
---|
3940 | case $cross_compiling:$ac_tool_warned in |
---|
3941 | yes:) |
---|
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3943 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3944 | ac_tool_warned=yes ;; |
---|
3945 | esac |
---|
3946 | RANLIB=$ac_ct_RANLIB |
---|
3947 | fi |
---|
3948 | else |
---|
3949 | RANLIB="$ac_cv_prog_RANLIB" |
---|
3950 | fi |
---|
3951 | |
---|
3952 | |
---|
3953 | |
---|
3954 | # Step 0.a: Enable 64 bit support? |
---|
3955 | |
---|
3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5 |
---|
3957 | $as_echo_n "checking if 64bit support is requested... " >&6; } |
---|
3958 | # Check whether --enable-64bit was given. |
---|
3959 | if test "${enable_64bit+set}" = set; then : |
---|
3960 | enableval=$enable_64bit; do64bit=$enableval |
---|
3961 | else |
---|
3962 | do64bit=no |
---|
3963 | fi |
---|
3964 | |
---|
3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 |
---|
3966 | $as_echo "$do64bit" >&6; } |
---|
3967 | |
---|
3968 | # Step 0.b: Enable Solaris 64 bit VIS support? |
---|
3969 | |
---|
3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5 |
---|
3971 | $as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; } |
---|
3972 | # Check whether --enable-64bit-vis was given. |
---|
3973 | if test "${enable_64bit_vis+set}" = set; then : |
---|
3974 | enableval=$enable_64bit_vis; do64bitVIS=$enableval |
---|
3975 | else |
---|
3976 | do64bitVIS=no |
---|
3977 | fi |
---|
3978 | |
---|
3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 |
---|
3980 | $as_echo "$do64bitVIS" >&6; } |
---|
3981 | |
---|
3982 | if test "$do64bitVIS" = "yes"; then |
---|
3983 | # Force 64bit on with VIS |
---|
3984 | do64bit=yes |
---|
3985 | fi |
---|
3986 | |
---|
3987 | # Step 1: set the variable "system" to hold the name and version number |
---|
3988 | # for the system. |
---|
3989 | |
---|
3990 | |
---|
3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5 |
---|
3992 | $as_echo_n "checking system version... " >&6; } |
---|
3993 | if ${tcl_cv_sys_version+:} false; then : |
---|
3994 | $as_echo_n "(cached) " >&6 |
---|
3995 | else |
---|
3996 | |
---|
3997 | if test -f /usr/lib/NextStep/software_version; then |
---|
3998 | tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` |
---|
3999 | else |
---|
4000 | tcl_cv_sys_version=`uname -s`-`uname -r` |
---|
4001 | if test "$?" -ne 0 ; then |
---|
4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 |
---|
4003 | $as_echo "$as_me: WARNING: can't find uname command" >&2;} |
---|
4004 | tcl_cv_sys_version=unknown |
---|
4005 | else |
---|
4006 | # Special check for weird MP-RAS system (uname returns weird |
---|
4007 | # results, and the version is kept in special file). |
---|
4008 | |
---|
4009 | if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then |
---|
4010 | tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` |
---|
4011 | fi |
---|
4012 | if test "`uname -s`" = "AIX" ; then |
---|
4013 | tcl_cv_sys_version=AIX-`uname -v`.`uname -r` |
---|
4014 | fi |
---|
4015 | fi |
---|
4016 | fi |
---|
4017 | |
---|
4018 | fi |
---|
4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 |
---|
4020 | $as_echo "$tcl_cv_sys_version" >&6; } |
---|
4021 | system=$tcl_cv_sys_version |
---|
4022 | |
---|
4023 | |
---|
4024 | # Step 2: check for existence of -ldl library. This is needed because |
---|
4025 | # Linux can use either -ldl or -ldld for dynamic loading. |
---|
4026 | |
---|
4027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
---|
4028 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
---|
4029 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
---|
4030 | $as_echo_n "(cached) " >&6 |
---|
4031 | else |
---|
4032 | ac_check_lib_save_LIBS=$LIBS |
---|
4033 | LIBS="-ldl $LIBS" |
---|
4034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4035 | /* end confdefs.h. */ |
---|
4036 | |
---|
4037 | /* Override any GCC internal prototype to avoid an error. |
---|
4038 | Use char because int might match the return type of a GCC |
---|
4039 | builtin and then its argument prototype would still apply. */ |
---|
4040 | #ifdef __cplusplus |
---|
4041 | extern "C" |
---|
4042 | #endif |
---|
4043 | char dlopen (); |
---|
4044 | int |
---|
4045 | main () |
---|
4046 | { |
---|
4047 | return dlopen (); |
---|
4048 | ; |
---|
4049 | return 0; |
---|
4050 | } |
---|
4051 | _ACEOF |
---|
4052 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4053 | ac_cv_lib_dl_dlopen=yes |
---|
4054 | else |
---|
4055 | ac_cv_lib_dl_dlopen=no |
---|
4056 | fi |
---|
4057 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4058 | conftest$ac_exeext conftest.$ac_ext |
---|
4059 | LIBS=$ac_check_lib_save_LIBS |
---|
4060 | fi |
---|
4061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
4062 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
---|
4063 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
---|
4064 | have_dl=yes |
---|
4065 | else |
---|
4066 | have_dl=no |
---|
4067 | fi |
---|
4068 | |
---|
4069 | |
---|
4070 | # Require ranlib early so we can override it in special cases below. |
---|
4071 | |
---|
4072 | |
---|
4073 | |
---|
4074 | # Step 3: set configuration options based on system name and version. |
---|
4075 | |
---|
4076 | do64bit_ok=no |
---|
4077 | LDFLAGS_ORIG="$LDFLAGS" |
---|
4078 | TCL_EXPORT_FILE_SUFFIX="" |
---|
4079 | UNSHARED_LIB_SUFFIX="" |
---|
4080 | TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`' |
---|
4081 | ECHO_VERSION='`echo ${VERSION}`' |
---|
4082 | TCL_LIB_VERSIONS_OK=ok |
---|
4083 | CFLAGS_DEBUG=-g |
---|
4084 | CFLAGS_OPTIMIZE=-O |
---|
4085 | if test "$GCC" = "yes" ; then |
---|
4086 | CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing" |
---|
4087 | else |
---|
4088 | CFLAGS_WARNING="" |
---|
4089 | fi |
---|
4090 | TCL_NEEDS_EXP_FILE=0 |
---|
4091 | TCL_BUILD_EXP_FILE="" |
---|
4092 | TCL_EXP_FILE="" |
---|
4093 | # Extract the first word of "ar", so it can be a program name with args. |
---|
4094 | set dummy ar; ac_word=$2 |
---|
4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4096 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4097 | if ${ac_cv_prog_AR+:} false; then : |
---|
4098 | $as_echo_n "(cached) " >&6 |
---|
4099 | else |
---|
4100 | if test -n "$AR"; then |
---|
4101 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
4102 | else |
---|
4103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4104 | for as_dir in $PATH |
---|
4105 | do |
---|
4106 | IFS=$as_save_IFS |
---|
4107 | test -z "$as_dir" && as_dir=. |
---|
4108 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4109 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4110 | ac_cv_prog_AR="ar" |
---|
4111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4112 | break 2 |
---|
4113 | fi |
---|
4114 | done |
---|
4115 | done |
---|
4116 | IFS=$as_save_IFS |
---|
4117 | |
---|
4118 | fi |
---|
4119 | fi |
---|
4120 | AR=$ac_cv_prog_AR |
---|
4121 | if test -n "$AR"; then |
---|
4122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
---|
4123 | $as_echo "$AR" >&6; } |
---|
4124 | else |
---|
4125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4126 | $as_echo "no" >&6; } |
---|
4127 | fi |
---|
4128 | |
---|
4129 | |
---|
4130 | if test "${AR}" = "" ; then |
---|
4131 | as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 |
---|
4132 | fi |
---|
4133 | STLIB_LD='${AR} cr' |
---|
4134 | LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" |
---|
4135 | PLAT_OBJS="" |
---|
4136 | PLAT_SRCS="" |
---|
4137 | case $system in |
---|
4138 | AIX-*) |
---|
4139 | if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then |
---|
4140 | # AIX requires the _r compiler when gcc isn't being used |
---|
4141 | case "${CC}" in |
---|
4142 | *_r) |
---|
4143 | # ok ... |
---|
4144 | ;; |
---|
4145 | *) |
---|
4146 | CC=${CC}_r |
---|
4147 | ;; |
---|
4148 | esac |
---|
4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5 |
---|
4150 | $as_echo "Using $CC for compiling with threads" >&6; } |
---|
4151 | fi |
---|
4152 | LIBS="$LIBS -lc" |
---|
4153 | SHLIB_CFLAGS="" |
---|
4154 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
4155 | # symbols when dynamically loaded into tclsh. |
---|
4156 | SHLIB_LD_LIBS='${LIBS}' |
---|
4157 | SHLIB_SUFFIX=".so" |
---|
4158 | |
---|
4159 | DL_OBJS="tclLoadDl.o" |
---|
4160 | LD_LIBRARY_PATH_VAR="LIBPATH" |
---|
4161 | |
---|
4162 | # Check to enable 64-bit flags for compiler/linker on AIX 4+ |
---|
4163 | if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then |
---|
4164 | if test "$GCC" = "yes" ; then |
---|
4165 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
4166 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
4167 | else |
---|
4168 | do64bit_ok=yes |
---|
4169 | CFLAGS="$CFLAGS -q64" |
---|
4170 | LDFLAGS="$LDFLAGS -q64" |
---|
4171 | RANLIB="${RANLIB} -X64" |
---|
4172 | AR="${AR} -X64" |
---|
4173 | SHLIB_LD_FLAGS="-b64" |
---|
4174 | fi |
---|
4175 | fi |
---|
4176 | |
---|
4177 | if test "`uname -m`" = "ia64" ; then |
---|
4178 | # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC |
---|
4179 | SHLIB_LD="/usr/ccs/bin/ld -G -z text" |
---|
4180 | # AIX-5 has dl* in libc.so |
---|
4181 | DL_LIBS="" |
---|
4182 | if test "$GCC" = "yes" ; then |
---|
4183 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
4184 | else |
---|
4185 | CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' |
---|
4186 | fi |
---|
4187 | LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
4188 | else |
---|
4189 | if test "$GCC" = "yes" ; then |
---|
4190 | SHLIB_LD="gcc -shared" |
---|
4191 | else |
---|
4192 | SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" |
---|
4193 | fi |
---|
4194 | SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}" |
---|
4195 | DL_LIBS="-ldl" |
---|
4196 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
4197 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4198 | TCL_NEEDS_EXP_FILE=1 |
---|
4199 | TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp' |
---|
4200 | fi |
---|
4201 | |
---|
4202 | # AIX v<=4.1 has some different flags than 4.2+ |
---|
4203 | if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then |
---|
4204 | LIBOBJS="$LIBOBJS tclLoadAix.o" |
---|
4205 | DL_LIBS="-lld" |
---|
4206 | fi |
---|
4207 | |
---|
4208 | # On AIX <=v4 systems, libbsd.a has to be linked in to support |
---|
4209 | # non-blocking file IO. This library has to be linked in after |
---|
4210 | # the MATH_LIBS or it breaks the pow() function. The way to |
---|
4211 | # insure proper sequencing, is to add it to the tail of MATH_LIBS. |
---|
4212 | # This library also supplies gettimeofday. |
---|
4213 | # |
---|
4214 | # AIX does not have a timezone field in struct tm. When the AIX |
---|
4215 | # bsd library is used, the timezone global and the gettimeofday |
---|
4216 | # methods are to be avoided for timezone deduction instead, we |
---|
4217 | # deduce the timezone by comparing the localtime result on a |
---|
4218 | # known GMT value. |
---|
4219 | |
---|
4220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5 |
---|
4221 | $as_echo_n "checking for gettimeofday in -lbsd... " >&6; } |
---|
4222 | if ${ac_cv_lib_bsd_gettimeofday+:} false; then : |
---|
4223 | $as_echo_n "(cached) " >&6 |
---|
4224 | else |
---|
4225 | ac_check_lib_save_LIBS=$LIBS |
---|
4226 | LIBS="-lbsd $LIBS" |
---|
4227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4228 | /* end confdefs.h. */ |
---|
4229 | |
---|
4230 | /* Override any GCC internal prototype to avoid an error. |
---|
4231 | Use char because int might match the return type of a GCC |
---|
4232 | builtin and then its argument prototype would still apply. */ |
---|
4233 | #ifdef __cplusplus |
---|
4234 | extern "C" |
---|
4235 | #endif |
---|
4236 | char gettimeofday (); |
---|
4237 | int |
---|
4238 | main () |
---|
4239 | { |
---|
4240 | return gettimeofday (); |
---|
4241 | ; |
---|
4242 | return 0; |
---|
4243 | } |
---|
4244 | _ACEOF |
---|
4245 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4246 | ac_cv_lib_bsd_gettimeofday=yes |
---|
4247 | else |
---|
4248 | ac_cv_lib_bsd_gettimeofday=no |
---|
4249 | fi |
---|
4250 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4251 | conftest$ac_exeext conftest.$ac_ext |
---|
4252 | LIBS=$ac_check_lib_save_LIBS |
---|
4253 | fi |
---|
4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5 |
---|
4255 | $as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; } |
---|
4256 | if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then : |
---|
4257 | libbsd=yes |
---|
4258 | else |
---|
4259 | libbsd=no |
---|
4260 | fi |
---|
4261 | |
---|
4262 | if test $libbsd = yes; then |
---|
4263 | MATH_LIBS="$MATH_LIBS -lbsd" |
---|
4264 | $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h |
---|
4265 | |
---|
4266 | fi |
---|
4267 | ;; |
---|
4268 | BeOS*) |
---|
4269 | SHLIB_CFLAGS="-fPIC" |
---|
4270 | SHLIB_LD="${CC} -nostart" |
---|
4271 | SHLIB_LD_LIBS='${LIBS}' |
---|
4272 | SHLIB_SUFFIX=".so" |
---|
4273 | DL_OBJS="tclLoadDl.o" |
---|
4274 | DL_LIBS="-ldl" |
---|
4275 | |
---|
4276 | #----------------------------------------------------------- |
---|
4277 | # Check for inet_ntoa in -lbind, for BeOS (which also needs |
---|
4278 | # -lsocket, even if the network functions are in -lnet which |
---|
4279 | # is always linked to, for compatibility. |
---|
4280 | #----------------------------------------------------------- |
---|
4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5 |
---|
4282 | $as_echo_n "checking for inet_ntoa in -lbind... " >&6; } |
---|
4283 | if ${ac_cv_lib_bind_inet_ntoa+:} false; then : |
---|
4284 | $as_echo_n "(cached) " >&6 |
---|
4285 | else |
---|
4286 | ac_check_lib_save_LIBS=$LIBS |
---|
4287 | LIBS="-lbind $LIBS" |
---|
4288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4289 | /* end confdefs.h. */ |
---|
4290 | |
---|
4291 | /* Override any GCC internal prototype to avoid an error. |
---|
4292 | Use char because int might match the return type of a GCC |
---|
4293 | builtin and then its argument prototype would still apply. */ |
---|
4294 | #ifdef __cplusplus |
---|
4295 | extern "C" |
---|
4296 | #endif |
---|
4297 | char inet_ntoa (); |
---|
4298 | int |
---|
4299 | main () |
---|
4300 | { |
---|
4301 | return inet_ntoa (); |
---|
4302 | ; |
---|
4303 | return 0; |
---|
4304 | } |
---|
4305 | _ACEOF |
---|
4306 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4307 | ac_cv_lib_bind_inet_ntoa=yes |
---|
4308 | else |
---|
4309 | ac_cv_lib_bind_inet_ntoa=no |
---|
4310 | fi |
---|
4311 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4312 | conftest$ac_exeext conftest.$ac_ext |
---|
4313 | LIBS=$ac_check_lib_save_LIBS |
---|
4314 | fi |
---|
4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5 |
---|
4316 | $as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; } |
---|
4317 | if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then : |
---|
4318 | LIBS="$LIBS -lbind -lsocket" |
---|
4319 | fi |
---|
4320 | |
---|
4321 | ;; |
---|
4322 | BSD/OS-2.1*|BSD/OS-3*) |
---|
4323 | SHLIB_CFLAGS="" |
---|
4324 | SHLIB_LD="shlicc -r" |
---|
4325 | SHLIB_LD_LIBS='${LIBS}' |
---|
4326 | SHLIB_SUFFIX=".so" |
---|
4327 | DL_OBJS="tclLoadDl.o" |
---|
4328 | DL_LIBS="-ldl" |
---|
4329 | CC_SEARCH_FLAGS="" |
---|
4330 | LD_SEARCH_FLAGS="" |
---|
4331 | ;; |
---|
4332 | BSD/OS-4.*) |
---|
4333 | SHLIB_CFLAGS="-export-dynamic -fPIC" |
---|
4334 | SHLIB_LD="cc -shared" |
---|
4335 | SHLIB_LD_LIBS='${LIBS}' |
---|
4336 | SHLIB_SUFFIX=".so" |
---|
4337 | DL_OBJS="tclLoadDl.o" |
---|
4338 | DL_LIBS="-ldl" |
---|
4339 | LDFLAGS="$LDFLAGS -export-dynamic" |
---|
4340 | CC_SEARCH_FLAGS="" |
---|
4341 | LD_SEARCH_FLAGS="" |
---|
4342 | ;; |
---|
4343 | dgux*) |
---|
4344 | SHLIB_CFLAGS="-K PIC" |
---|
4345 | SHLIB_LD="cc -G" |
---|
4346 | SHLIB_LD_LIBS="" |
---|
4347 | SHLIB_SUFFIX=".so" |
---|
4348 | DL_OBJS="tclLoadDl.o" |
---|
4349 | DL_LIBS="-ldl" |
---|
4350 | CC_SEARCH_FLAGS="" |
---|
4351 | LD_SEARCH_FLAGS="" |
---|
4352 | ;; |
---|
4353 | HP-UX-*.11.*) |
---|
4354 | # Use updated header definitions where possible |
---|
4355 | $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h |
---|
4356 | # Use the XOPEN network library |
---|
4357 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
---|
4358 | # Use the XOPEN network library |
---|
4359 | LIBS="$LIBS -lxnet" # Use the XOPEN network library |
---|
4360 | |
---|
4361 | if test "`uname -m`" = "ia64" ; then |
---|
4362 | SHLIB_SUFFIX=".so" |
---|
4363 | else |
---|
4364 | SHLIB_SUFFIX=".sl" |
---|
4365 | fi |
---|
4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
---|
4367 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
---|
4368 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
---|
4369 | $as_echo_n "(cached) " >&6 |
---|
4370 | else |
---|
4371 | ac_check_lib_save_LIBS=$LIBS |
---|
4372 | LIBS="-ldld $LIBS" |
---|
4373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4374 | /* end confdefs.h. */ |
---|
4375 | |
---|
4376 | /* Override any GCC internal prototype to avoid an error. |
---|
4377 | Use char because int might match the return type of a GCC |
---|
4378 | builtin and then its argument prototype would still apply. */ |
---|
4379 | #ifdef __cplusplus |
---|
4380 | extern "C" |
---|
4381 | #endif |
---|
4382 | char shl_load (); |
---|
4383 | int |
---|
4384 | main () |
---|
4385 | { |
---|
4386 | return shl_load (); |
---|
4387 | ; |
---|
4388 | return 0; |
---|
4389 | } |
---|
4390 | _ACEOF |
---|
4391 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4392 | ac_cv_lib_dld_shl_load=yes |
---|
4393 | else |
---|
4394 | ac_cv_lib_dld_shl_load=no |
---|
4395 | fi |
---|
4396 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4397 | conftest$ac_exeext conftest.$ac_ext |
---|
4398 | LIBS=$ac_check_lib_save_LIBS |
---|
4399 | fi |
---|
4400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
4401 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
---|
4402 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
---|
4403 | tcl_ok=yes |
---|
4404 | else |
---|
4405 | tcl_ok=no |
---|
4406 | fi |
---|
4407 | |
---|
4408 | if test "$tcl_ok" = yes; then |
---|
4409 | SHLIB_CFLAGS="+z" |
---|
4410 | SHLIB_LD="ld -b" |
---|
4411 | SHLIB_LD_LIBS='${LIBS}' |
---|
4412 | DL_OBJS="tclLoadShl.o" |
---|
4413 | DL_LIBS="-ldld" |
---|
4414 | LDFLAGS="$LDFLAGS -Wl,-E" |
---|
4415 | CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' |
---|
4416 | LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' |
---|
4417 | LD_LIBRARY_PATH_VAR="SHLIB_PATH" |
---|
4418 | fi |
---|
4419 | if test "$GCC" = "yes" ; then |
---|
4420 | SHLIB_LD="gcc -shared" |
---|
4421 | SHLIB_LD_LIBS='${LIBS}' |
---|
4422 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4423 | fi |
---|
4424 | |
---|
4425 | # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc |
---|
4426 | #CFLAGS="$CFLAGS +DAportable" |
---|
4427 | |
---|
4428 | # Check to enable 64-bit flags for compiler/linker |
---|
4429 | if test "$do64bit" = "yes" ; then |
---|
4430 | if test "$GCC" = "yes" ; then |
---|
4431 | hpux_arch=`${CC} -dumpmachine` |
---|
4432 | case $hpux_arch in |
---|
4433 | hppa64*) |
---|
4434 | # 64-bit gcc in use. Fix flags for GNU ld. |
---|
4435 | do64bit_ok=yes |
---|
4436 | SHLIB_LD="${CC} -shared" |
---|
4437 | SHLIB_LD_LIBS='${LIBS}' |
---|
4438 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4439 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4440 | ;; |
---|
4441 | *) |
---|
4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
4443 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
4444 | ;; |
---|
4445 | esac |
---|
4446 | else |
---|
4447 | do64bit_ok=yes |
---|
4448 | CFLAGS="$CFLAGS +DD64" |
---|
4449 | LDFLAGS="$LDFLAGS +DD64" |
---|
4450 | fi |
---|
4451 | fi |
---|
4452 | ;; |
---|
4453 | HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) |
---|
4454 | SHLIB_SUFFIX=".sl" |
---|
4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
---|
4456 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
---|
4457 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
---|
4458 | $as_echo_n "(cached) " >&6 |
---|
4459 | else |
---|
4460 | ac_check_lib_save_LIBS=$LIBS |
---|
4461 | LIBS="-ldld $LIBS" |
---|
4462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4463 | /* end confdefs.h. */ |
---|
4464 | |
---|
4465 | /* Override any GCC internal prototype to avoid an error. |
---|
4466 | Use char because int might match the return type of a GCC |
---|
4467 | builtin and then its argument prototype would still apply. */ |
---|
4468 | #ifdef __cplusplus |
---|
4469 | extern "C" |
---|
4470 | #endif |
---|
4471 | char shl_load (); |
---|
4472 | int |
---|
4473 | main () |
---|
4474 | { |
---|
4475 | return shl_load (); |
---|
4476 | ; |
---|
4477 | return 0; |
---|
4478 | } |
---|
4479 | _ACEOF |
---|
4480 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4481 | ac_cv_lib_dld_shl_load=yes |
---|
4482 | else |
---|
4483 | ac_cv_lib_dld_shl_load=no |
---|
4484 | fi |
---|
4485 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4486 | conftest$ac_exeext conftest.$ac_ext |
---|
4487 | LIBS=$ac_check_lib_save_LIBS |
---|
4488 | fi |
---|
4489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
4490 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
---|
4491 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
---|
4492 | tcl_ok=yes |
---|
4493 | else |
---|
4494 | tcl_ok=no |
---|
4495 | fi |
---|
4496 | |
---|
4497 | if test "$tcl_ok" = yes; then |
---|
4498 | SHLIB_CFLAGS="+z" |
---|
4499 | SHLIB_LD="ld -b" |
---|
4500 | SHLIB_LD_LIBS="" |
---|
4501 | DL_OBJS="tclLoadShl.o" |
---|
4502 | DL_LIBS="-ldld" |
---|
4503 | LDFLAGS="$LDFLAGS -Wl,-E" |
---|
4504 | CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' |
---|
4505 | LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' |
---|
4506 | LD_LIBRARY_PATH_VAR="SHLIB_PATH" |
---|
4507 | fi |
---|
4508 | ;; |
---|
4509 | IRIX-4.*) |
---|
4510 | SHLIB_CFLAGS="-G 0" |
---|
4511 | SHLIB_SUFFIX=".a" |
---|
4512 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
4513 | SHLIB_LD_LIBS='${LIBS}' |
---|
4514 | DL_OBJS="tclLoadAout.o" |
---|
4515 | DL_LIBS="" |
---|
4516 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
4517 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
4518 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4519 | SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' |
---|
4520 | ;; |
---|
4521 | IRIX-5.*) |
---|
4522 | SHLIB_CFLAGS="" |
---|
4523 | SHLIB_LD="ld -shared -rdata_shared" |
---|
4524 | SHLIB_LD_LIBS='${LIBS}' |
---|
4525 | SHLIB_SUFFIX=".so" |
---|
4526 | DL_OBJS="tclLoadDl.o" |
---|
4527 | DL_LIBS="" |
---|
4528 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4529 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
4530 | ;; |
---|
4531 | IRIX-6.*) |
---|
4532 | SHLIB_CFLAGS="" |
---|
4533 | SHLIB_LD="ld -n32 -shared -rdata_shared" |
---|
4534 | SHLIB_LD_LIBS='${LIBS}' |
---|
4535 | SHLIB_SUFFIX=".so" |
---|
4536 | DL_OBJS="tclLoadDl.o" |
---|
4537 | DL_LIBS="" |
---|
4538 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4539 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
4540 | if test "$GCC" = "yes" ; then |
---|
4541 | CFLAGS="$CFLAGS -mabi=n32" |
---|
4542 | LDFLAGS="$LDFLAGS -mabi=n32" |
---|
4543 | else |
---|
4544 | case $system in |
---|
4545 | IRIX-6.3) |
---|
4546 | # Use to build 6.2 compatible binaries on 6.3. |
---|
4547 | CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" |
---|
4548 | ;; |
---|
4549 | *) |
---|
4550 | CFLAGS="$CFLAGS -n32" |
---|
4551 | ;; |
---|
4552 | esac |
---|
4553 | LDFLAGS="$LDFLAGS -n32" |
---|
4554 | fi |
---|
4555 | ;; |
---|
4556 | IRIX64-6.*) |
---|
4557 | SHLIB_CFLAGS="" |
---|
4558 | SHLIB_LD="ld -n32 -shared -rdata_shared" |
---|
4559 | SHLIB_LD_LIBS='${LIBS}' |
---|
4560 | SHLIB_SUFFIX=".so" |
---|
4561 | DL_OBJS="tclLoadDl.o" |
---|
4562 | DL_LIBS="" |
---|
4563 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4564 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
4565 | |
---|
4566 | # Check to enable 64-bit flags for compiler/linker |
---|
4567 | |
---|
4568 | if test "$do64bit" = "yes" ; then |
---|
4569 | if test "$GCC" = "yes" ; then |
---|
4570 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5 |
---|
4571 | $as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} |
---|
4572 | else |
---|
4573 | do64bit_ok=yes |
---|
4574 | SHLIB_LD="ld -64 -shared -rdata_shared" |
---|
4575 | CFLAGS="$CFLAGS -64" |
---|
4576 | LDFLAGS="$LDFLAGS -64" |
---|
4577 | fi |
---|
4578 | fi |
---|
4579 | ;; |
---|
4580 | Linux*) |
---|
4581 | SHLIB_CFLAGS="-fPIC" |
---|
4582 | SHLIB_LD_LIBS='${LIBS}' |
---|
4583 | SHLIB_SUFFIX=".so" |
---|
4584 | |
---|
4585 | CFLAGS_OPTIMIZE=-O2 |
---|
4586 | # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings |
---|
4587 | # when you inline the string and math operations. Turn this off to |
---|
4588 | # get rid of the warnings. |
---|
4589 | #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" |
---|
4590 | |
---|
4591 | if test "$have_dl" = yes; then |
---|
4592 | SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' |
---|
4593 | DL_OBJS="tclLoadDl.o" |
---|
4594 | DL_LIBS="-ldl" |
---|
4595 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" |
---|
4596 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4597 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4598 | else |
---|
4599 | ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" |
---|
4600 | if test "x$ac_cv_header_dld_h" = xyes; then : |
---|
4601 | |
---|
4602 | SHLIB_LD="ld -shared" |
---|
4603 | DL_OBJS="tclLoadDld.o" |
---|
4604 | DL_LIBS="-ldld" |
---|
4605 | CC_SEARCH_FLAGS="" |
---|
4606 | LD_SEARCH_FLAGS="" |
---|
4607 | fi |
---|
4608 | |
---|
4609 | |
---|
4610 | fi |
---|
4611 | if test "`uname -m`" = "alpha" ; then |
---|
4612 | CFLAGS="$CFLAGS -mieee" |
---|
4613 | fi |
---|
4614 | if test $do64bit = yes; then |
---|
4615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5 |
---|
4616 | $as_echo_n "checking if compiler accepts -m64 flag... " >&6; } |
---|
4617 | if ${tcl_cv_cc_m64+:} false; then : |
---|
4618 | $as_echo_n "(cached) " >&6 |
---|
4619 | else |
---|
4620 | |
---|
4621 | hold_cflags=$CFLAGS |
---|
4622 | CFLAGS="$CFLAGS -m64" |
---|
4623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4624 | /* end confdefs.h. */ |
---|
4625 | |
---|
4626 | int |
---|
4627 | main () |
---|
4628 | { |
---|
4629 | |
---|
4630 | ; |
---|
4631 | return 0; |
---|
4632 | } |
---|
4633 | _ACEOF |
---|
4634 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4635 | tcl_cv_cc_m64=yes |
---|
4636 | else |
---|
4637 | tcl_cv_cc_m64=no |
---|
4638 | fi |
---|
4639 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4640 | conftest$ac_exeext conftest.$ac_ext |
---|
4641 | CFLAGS=$hold_cflags |
---|
4642 | fi |
---|
4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5 |
---|
4644 | $as_echo "$tcl_cv_cc_m64" >&6; } |
---|
4645 | if test $tcl_cv_cc_m64 = yes; then |
---|
4646 | CFLAGS="$CFLAGS -m64" |
---|
4647 | do64bit_ok=yes |
---|
4648 | fi |
---|
4649 | fi |
---|
4650 | |
---|
4651 | # The combo of gcc + glibc has a bug related |
---|
4652 | # to inlining of functions like strtod(). The |
---|
4653 | # -fno-builtin flag should address this problem |
---|
4654 | # but it does not work. The -fno-inline flag |
---|
4655 | # is kind of overkill but it works. |
---|
4656 | # Disable inlining only when one of the |
---|
4657 | # files in compat/*.c is being linked in. |
---|
4658 | if test x"${LIBOBJS}" != x ; then |
---|
4659 | CFLAGS="$CFLAGS -fno-inline" |
---|
4660 | fi |
---|
4661 | |
---|
4662 | # XIM peeking works under XFree86. |
---|
4663 | $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h |
---|
4664 | |
---|
4665 | |
---|
4666 | ;; |
---|
4667 | GNU*) |
---|
4668 | SHLIB_CFLAGS="-fPIC" |
---|
4669 | SHLIB_LD_LIBS='${LIBS}' |
---|
4670 | SHLIB_SUFFIX=".so" |
---|
4671 | |
---|
4672 | if test "$have_dl" = yes; then |
---|
4673 | SHLIB_LD="${CC} -shared" |
---|
4674 | DL_OBJS="" |
---|
4675 | DL_LIBS="-ldl" |
---|
4676 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" |
---|
4677 | CC_SEARCH_FLAGS="" |
---|
4678 | LD_SEARCH_FLAGS="" |
---|
4679 | else |
---|
4680 | ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" |
---|
4681 | if test "x$ac_cv_header_dld_h" = xyes; then : |
---|
4682 | |
---|
4683 | SHLIB_LD="ld -shared" |
---|
4684 | DL_OBJS="" |
---|
4685 | DL_LIBS="-ldld" |
---|
4686 | CC_SEARCH_FLAGS="" |
---|
4687 | LD_SEARCH_FLAGS="" |
---|
4688 | fi |
---|
4689 | |
---|
4690 | |
---|
4691 | fi |
---|
4692 | if test "`uname -m`" = "alpha" ; then |
---|
4693 | CFLAGS="$CFLAGS -mieee" |
---|
4694 | fi |
---|
4695 | ;; |
---|
4696 | Lynx*) |
---|
4697 | SHLIB_CFLAGS="-fPIC" |
---|
4698 | SHLIB_LD_LIBS='${LIBS}' |
---|
4699 | SHLIB_SUFFIX=".so" |
---|
4700 | CFLAGS_OPTIMIZE=-02 |
---|
4701 | SHLIB_LD="${CC} -shared " |
---|
4702 | DL_OBJS="tclLoadDl.o" |
---|
4703 | DL_LIBS="-mshared -ldl" |
---|
4704 | LD_FLAGS="-Wl,--export-dynamic" |
---|
4705 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4706 | LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4707 | ;; |
---|
4708 | MP-RAS-02*) |
---|
4709 | SHLIB_CFLAGS="-K PIC" |
---|
4710 | SHLIB_LD="cc -G" |
---|
4711 | SHLIB_LD_LIBS="" |
---|
4712 | SHLIB_SUFFIX=".so" |
---|
4713 | DL_OBJS="tclLoadDl.o" |
---|
4714 | DL_LIBS="-ldl" |
---|
4715 | CC_SEARCH_FLAGS="" |
---|
4716 | LD_SEARCH_FLAGS="" |
---|
4717 | ;; |
---|
4718 | MP-RAS-*) |
---|
4719 | SHLIB_CFLAGS="-K PIC" |
---|
4720 | SHLIB_LD="cc -G" |
---|
4721 | SHLIB_LD_LIBS="" |
---|
4722 | SHLIB_SUFFIX=".so" |
---|
4723 | DL_OBJS="tclLoadDl.o" |
---|
4724 | DL_LIBS="-ldl" |
---|
4725 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
4726 | CC_SEARCH_FLAGS="" |
---|
4727 | LD_SEARCH_FLAGS="" |
---|
4728 | ;; |
---|
4729 | NetBSD-*|FreeBSD-[1-2].*) |
---|
4730 | # Not available on all versions: check for include file. |
---|
4731 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
---|
4732 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
---|
4733 | |
---|
4734 | # NetBSD/SPARC needs -fPIC, -fpic will not do. |
---|
4735 | SHLIB_CFLAGS="-fPIC" |
---|
4736 | SHLIB_LD="ld -Bshareable -x" |
---|
4737 | SHLIB_LD_LIBS='${LIBS}' |
---|
4738 | SHLIB_SUFFIX=".so" |
---|
4739 | DL_OBJS="tclLoadDl.o" |
---|
4740 | DL_LIBS="" |
---|
4741 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4742 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 |
---|
4744 | $as_echo_n "checking for ELF... " >&6; } |
---|
4745 | if ${tcl_cv_ld_elf+:} false; then : |
---|
4746 | $as_echo_n "(cached) " >&6 |
---|
4747 | else |
---|
4748 | |
---|
4749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4750 | /* end confdefs.h. */ |
---|
4751 | |
---|
4752 | #ifdef __ELF__ |
---|
4753 | yes |
---|
4754 | #endif |
---|
4755 | |
---|
4756 | _ACEOF |
---|
4757 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4758 | $EGREP "yes" >/dev/null 2>&1; then : |
---|
4759 | tcl_cv_ld_elf=yes |
---|
4760 | else |
---|
4761 | tcl_cv_ld_elf=no |
---|
4762 | fi |
---|
4763 | rm -f conftest* |
---|
4764 | |
---|
4765 | fi |
---|
4766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 |
---|
4767 | $as_echo "$tcl_cv_ld_elf" >&6; } |
---|
4768 | if test $tcl_cv_ld_elf = yes; then |
---|
4769 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' |
---|
4770 | else |
---|
4771 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
4772 | fi |
---|
4773 | |
---|
4774 | else |
---|
4775 | |
---|
4776 | SHLIB_CFLAGS="" |
---|
4777 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" |
---|
4778 | SHLIB_LD_LIBS='${LIBS}' |
---|
4779 | SHLIB_SUFFIX=".a" |
---|
4780 | DL_OBJS="tclLoadAout.o" |
---|
4781 | DL_LIBS="" |
---|
4782 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
4783 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4784 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
4785 | |
---|
4786 | fi |
---|
4787 | |
---|
4788 | |
---|
4789 | |
---|
4790 | # FreeBSD doesn't handle version numbers with dots. |
---|
4791 | |
---|
4792 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
4793 | TCL_LIB_VERSIONS_OK=nodots |
---|
4794 | ;; |
---|
4795 | OpenBSD-*) |
---|
4796 | case `arch -s` in |
---|
4797 | m88k|vax) |
---|
4798 | SHLIB_CFLAGS="" |
---|
4799 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" |
---|
4800 | SHLIB_LD_LIBS='${LIBS}' |
---|
4801 | SHLIB_SUFFIX=".a" |
---|
4802 | DL_OBJS="tclLoadAout.o" |
---|
4803 | DL_LIBS="" |
---|
4804 | LDFLAGS="" |
---|
4805 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
4806 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4807 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
4808 | ;; |
---|
4809 | *) |
---|
4810 | # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do. |
---|
4811 | case `machine` in |
---|
4812 | sparc|sparc64) |
---|
4813 | SHLIB_CFLAGS="-fPIC";; |
---|
4814 | *) |
---|
4815 | SHLIB_CFLAGS="-fpic";; |
---|
4816 | esac |
---|
4817 | SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}" |
---|
4818 | SHLIB_LD_LIBS='${LIBS}' |
---|
4819 | SHLIB_SUFFIX=".so" |
---|
4820 | DL_OBJS="tclLoadDl.o" |
---|
4821 | DL_LIBS="" |
---|
4822 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4823 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4824 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 |
---|
4826 | $as_echo_n "checking for ELF... " >&6; } |
---|
4827 | if ${tcl_cv_ld_elf+:} false; then : |
---|
4828 | $as_echo_n "(cached) " >&6 |
---|
4829 | else |
---|
4830 | |
---|
4831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4832 | /* end confdefs.h. */ |
---|
4833 | |
---|
4834 | #ifdef __ELF__ |
---|
4835 | yes |
---|
4836 | #endif |
---|
4837 | |
---|
4838 | _ACEOF |
---|
4839 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4840 | $EGREP "yes" >/dev/null 2>&1; then : |
---|
4841 | tcl_cv_ld_elf=yes |
---|
4842 | else |
---|
4843 | tcl_cv_ld_elf=no |
---|
4844 | fi |
---|
4845 | rm -f conftest* |
---|
4846 | |
---|
4847 | fi |
---|
4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 |
---|
4849 | $as_echo "$tcl_cv_ld_elf" >&6; } |
---|
4850 | if test $tcl_cv_ld_elf = yes; then |
---|
4851 | LDFLAGS=-Wl,-export-dynamic |
---|
4852 | else |
---|
4853 | LDFLAGS="" |
---|
4854 | fi |
---|
4855 | ;; |
---|
4856 | esac |
---|
4857 | |
---|
4858 | # OpenBSD doesn't do version numbers with dots. |
---|
4859 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
4860 | TCL_LIB_VERSIONS_OK=nodots |
---|
4861 | ;; |
---|
4862 | FreeBSD-*) |
---|
4863 | # FreeBSD 3.* and greater have ELF. |
---|
4864 | SHLIB_CFLAGS="-fPIC" |
---|
4865 | SHLIB_LD="ld -Bshareable -x" |
---|
4866 | SHLIB_LD_LIBS='${LIBS}' |
---|
4867 | SHLIB_SUFFIX=".so" |
---|
4868 | DL_OBJS="tclLoadDl.o" |
---|
4869 | DL_LIBS="" |
---|
4870 | LDFLAGS="$LDFLAGS -export-dynamic" |
---|
4871 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4872 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
4873 | if test "${TCL_THREADS}" = "1" ; then |
---|
4874 | # The -pthread needs to go in the CFLAGS, not LIBS |
---|
4875 | LIBS=`echo $LIBS | sed s/-pthread//` |
---|
4876 | CFLAGS="$CFLAGS -pthread" |
---|
4877 | LDFLAGS="$LDFLAGS -pthread" |
---|
4878 | fi |
---|
4879 | case $system in |
---|
4880 | FreeBSD-3.*) |
---|
4881 | # FreeBSD-3 doesn't handle version numbers with dots. |
---|
4882 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
4883 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' |
---|
4884 | TCL_LIB_VERSIONS_OK=nodots |
---|
4885 | ;; |
---|
4886 | esac |
---|
4887 | ;; |
---|
4888 | Darwin-*) |
---|
4889 | CFLAGS_OPTIMIZE="-Os" |
---|
4890 | SHLIB_CFLAGS="-fno-common" |
---|
4891 | # To avoid discrepancies between what headers configure sees during |
---|
4892 | # preprocessing tests and compiling tests, move any -isysroot and |
---|
4893 | # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: |
---|
4894 | CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ |
---|
4895 | awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ |
---|
4896 | if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" |
---|
4897 | CFLAGS="`echo " ${CFLAGS}" | \ |
---|
4898 | awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ |
---|
4899 | if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" |
---|
4900 | if test $do64bit = yes; then |
---|
4901 | case `arch` in |
---|
4902 | ppc) |
---|
4903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5 |
---|
4904 | $as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; } |
---|
4905 | if ${tcl_cv_cc_arch_ppc64+:} false; then : |
---|
4906 | $as_echo_n "(cached) " >&6 |
---|
4907 | else |
---|
4908 | |
---|
4909 | hold_cflags=$CFLAGS |
---|
4910 | CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" |
---|
4911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4912 | /* end confdefs.h. */ |
---|
4913 | |
---|
4914 | int |
---|
4915 | main () |
---|
4916 | { |
---|
4917 | |
---|
4918 | ; |
---|
4919 | return 0; |
---|
4920 | } |
---|
4921 | _ACEOF |
---|
4922 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4923 | tcl_cv_cc_arch_ppc64=yes |
---|
4924 | else |
---|
4925 | tcl_cv_cc_arch_ppc64=no |
---|
4926 | fi |
---|
4927 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4928 | conftest$ac_exeext conftest.$ac_ext |
---|
4929 | CFLAGS=$hold_cflags |
---|
4930 | fi |
---|
4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5 |
---|
4932 | $as_echo "$tcl_cv_cc_arch_ppc64" >&6; } |
---|
4933 | if test $tcl_cv_cc_arch_ppc64 = yes; then |
---|
4934 | CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" |
---|
4935 | do64bit_ok=yes |
---|
4936 | fi;; |
---|
4937 | i386) |
---|
4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5 |
---|
4939 | $as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; } |
---|
4940 | if ${tcl_cv_cc_arch_x86_64+:} false; then : |
---|
4941 | $as_echo_n "(cached) " >&6 |
---|
4942 | else |
---|
4943 | |
---|
4944 | hold_cflags=$CFLAGS |
---|
4945 | CFLAGS="$CFLAGS -arch x86_64" |
---|
4946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4947 | /* end confdefs.h. */ |
---|
4948 | |
---|
4949 | int |
---|
4950 | main () |
---|
4951 | { |
---|
4952 | |
---|
4953 | ; |
---|
4954 | return 0; |
---|
4955 | } |
---|
4956 | _ACEOF |
---|
4957 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4958 | tcl_cv_cc_arch_x86_64=yes |
---|
4959 | else |
---|
4960 | tcl_cv_cc_arch_x86_64=no |
---|
4961 | fi |
---|
4962 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4963 | conftest$ac_exeext conftest.$ac_ext |
---|
4964 | CFLAGS=$hold_cflags |
---|
4965 | fi |
---|
4966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5 |
---|
4967 | $as_echo "$tcl_cv_cc_arch_x86_64" >&6; } |
---|
4968 | if test $tcl_cv_cc_arch_x86_64 = yes; then |
---|
4969 | CFLAGS="$CFLAGS -arch x86_64" |
---|
4970 | do64bit_ok=yes |
---|
4971 | fi;; |
---|
4972 | *) |
---|
4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 |
---|
4974 | $as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; |
---|
4975 | esac |
---|
4976 | else |
---|
4977 | # Check for combined 32-bit and 64-bit fat build |
---|
4978 | echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \ |
---|
4979 | echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \ |
---|
4980 | fat_32_64=yes |
---|
4981 | fi |
---|
4982 | SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}' |
---|
4983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5 |
---|
4984 | $as_echo_n "checking if ld accepts -single_module flag... " >&6; } |
---|
4985 | if ${tcl_cv_ld_single_module+:} false; then : |
---|
4986 | $as_echo_n "(cached) " >&6 |
---|
4987 | else |
---|
4988 | |
---|
4989 | hold_ldflags=$LDFLAGS |
---|
4990 | LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" |
---|
4991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4992 | /* end confdefs.h. */ |
---|
4993 | |
---|
4994 | int |
---|
4995 | main () |
---|
4996 | { |
---|
4997 | int i; |
---|
4998 | ; |
---|
4999 | return 0; |
---|
5000 | } |
---|
5001 | _ACEOF |
---|
5002 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5003 | tcl_cv_ld_single_module=yes |
---|
5004 | else |
---|
5005 | tcl_cv_ld_single_module=no |
---|
5006 | fi |
---|
5007 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5008 | conftest$ac_exeext conftest.$ac_ext |
---|
5009 | LDFLAGS=$hold_ldflags |
---|
5010 | fi |
---|
5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5 |
---|
5012 | $as_echo "$tcl_cv_ld_single_module" >&6; } |
---|
5013 | if test $tcl_cv_ld_single_module = yes; then |
---|
5014 | SHLIB_LD="${SHLIB_LD} -Wl,-single_module" |
---|
5015 | fi |
---|
5016 | SHLIB_LD_LIBS='${LIBS}' |
---|
5017 | SHLIB_SUFFIX=".dylib" |
---|
5018 | DL_OBJS="tclLoadDyld.o" |
---|
5019 | DL_LIBS="" |
---|
5020 | # Don't use -prebind when building for Mac OS X 10.4 or later only: |
---|
5021 | test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ |
---|
5022 | "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \ |
---|
5023 | LDFLAGS="$LDFLAGS -prebind" |
---|
5024 | LDFLAGS="$LDFLAGS -headerpad_max_install_names" |
---|
5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5 |
---|
5026 | $as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; } |
---|
5027 | if ${tcl_cv_ld_search_paths_first+:} false; then : |
---|
5028 | $as_echo_n "(cached) " >&6 |
---|
5029 | else |
---|
5030 | |
---|
5031 | hold_ldflags=$LDFLAGS |
---|
5032 | LDFLAGS="$LDFLAGS -Wl,-search_paths_first" |
---|
5033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5034 | /* end confdefs.h. */ |
---|
5035 | |
---|
5036 | int |
---|
5037 | main () |
---|
5038 | { |
---|
5039 | int i; |
---|
5040 | ; |
---|
5041 | return 0; |
---|
5042 | } |
---|
5043 | _ACEOF |
---|
5044 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5045 | tcl_cv_ld_search_paths_first=yes |
---|
5046 | else |
---|
5047 | tcl_cv_ld_search_paths_first=no |
---|
5048 | fi |
---|
5049 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5050 | conftest$ac_exeext conftest.$ac_ext |
---|
5051 | LDFLAGS=$hold_ldflags |
---|
5052 | fi |
---|
5053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5 |
---|
5054 | $as_echo "$tcl_cv_ld_search_paths_first" >&6; } |
---|
5055 | if test $tcl_cv_ld_search_paths_first = yes; then |
---|
5056 | LDFLAGS="$LDFLAGS -Wl,-search_paths_first" |
---|
5057 | fi |
---|
5058 | CC_SEARCH_FLAGS="" |
---|
5059 | LD_SEARCH_FLAGS="" |
---|
5060 | LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" |
---|
5061 | PLAT_OBJS=\$\(MAC\_OSX_OBJS\) |
---|
5062 | PLAT_SRCS=\$\(MAC\_OSX_SRCS\) |
---|
5063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5 |
---|
5064 | $as_echo_n "checking whether to use CoreFoundation... " >&6; } |
---|
5065 | # Check whether --enable-corefoundation was given. |
---|
5066 | if test "${enable_corefoundation+set}" = set; then : |
---|
5067 | enableval=$enable_corefoundation; tcl_corefoundation=$enableval |
---|
5068 | else |
---|
5069 | tcl_corefoundation=yes |
---|
5070 | fi |
---|
5071 | |
---|
5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5 |
---|
5073 | $as_echo "$tcl_corefoundation" >&6; } |
---|
5074 | if test $tcl_corefoundation = yes; then |
---|
5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5 |
---|
5076 | $as_echo_n "checking for CoreFoundation.framework... " >&6; } |
---|
5077 | if ${tcl_cv_lib_corefoundation+:} false; then : |
---|
5078 | $as_echo_n "(cached) " >&6 |
---|
5079 | else |
---|
5080 | |
---|
5081 | hold_libs=$LIBS |
---|
5082 | if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
5083 | # On Tiger there is no 64-bit CF, so remove 64-bit archs |
---|
5084 | # from CFLAGS et al. while testing for presence of CF. |
---|
5085 | # 64-bit CF is disabled in tclUnixPort.h if necessary. |
---|
5086 | eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' |
---|
5087 | done; fi |
---|
5088 | LIBS="$LIBS -framework CoreFoundation" |
---|
5089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5090 | /* end confdefs.h. */ |
---|
5091 | #include <CoreFoundation/CoreFoundation.h> |
---|
5092 | int |
---|
5093 | main () |
---|
5094 | { |
---|
5095 | CFBundleRef b = CFBundleGetMainBundle(); |
---|
5096 | ; |
---|
5097 | return 0; |
---|
5098 | } |
---|
5099 | _ACEOF |
---|
5100 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5101 | tcl_cv_lib_corefoundation=yes |
---|
5102 | else |
---|
5103 | tcl_cv_lib_corefoundation=no |
---|
5104 | fi |
---|
5105 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5106 | conftest$ac_exeext conftest.$ac_ext |
---|
5107 | if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
5108 | eval $v'="$hold_'$v'"' |
---|
5109 | done; fi; LIBS=$hold_libs |
---|
5110 | fi |
---|
5111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5 |
---|
5112 | $as_echo "$tcl_cv_lib_corefoundation" >&6; } |
---|
5113 | if test $tcl_cv_lib_corefoundation = yes; then |
---|
5114 | LIBS="$LIBS -framework CoreFoundation" |
---|
5115 | $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h |
---|
5116 | |
---|
5117 | else |
---|
5118 | tcl_corefoundation=no |
---|
5119 | fi |
---|
5120 | if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then |
---|
5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5 |
---|
5122 | $as_echo_n "checking for 64-bit CoreFoundation... " >&6; } |
---|
5123 | if ${tcl_cv_lib_corefoundation_64+:} false; then : |
---|
5124 | $as_echo_n "(cached) " >&6 |
---|
5125 | else |
---|
5126 | |
---|
5127 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
5128 | eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' |
---|
5129 | done |
---|
5130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5131 | /* end confdefs.h. */ |
---|
5132 | #include <CoreFoundation/CoreFoundation.h> |
---|
5133 | int |
---|
5134 | main () |
---|
5135 | { |
---|
5136 | CFBundleRef b = CFBundleGetMainBundle(); |
---|
5137 | ; |
---|
5138 | return 0; |
---|
5139 | } |
---|
5140 | _ACEOF |
---|
5141 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5142 | tcl_cv_lib_corefoundation_64=yes |
---|
5143 | else |
---|
5144 | tcl_cv_lib_corefoundation_64=no |
---|
5145 | fi |
---|
5146 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5147 | conftest$ac_exeext conftest.$ac_ext |
---|
5148 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
5149 | eval $v'="$hold_'$v'"' |
---|
5150 | done |
---|
5151 | fi |
---|
5152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5 |
---|
5153 | $as_echo "$tcl_cv_lib_corefoundation_64" >&6; } |
---|
5154 | if test $tcl_cv_lib_corefoundation_64 = no; then |
---|
5155 | $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h |
---|
5156 | |
---|
5157 | fi |
---|
5158 | fi |
---|
5159 | fi |
---|
5160 | $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h |
---|
5161 | |
---|
5162 | ;; |
---|
5163 | NEXTSTEP-*) |
---|
5164 | SHLIB_CFLAGS="" |
---|
5165 | SHLIB_LD="cc -nostdlib -r" |
---|
5166 | SHLIB_LD_LIBS="" |
---|
5167 | SHLIB_SUFFIX=".so" |
---|
5168 | DL_OBJS="tclLoadNext.o" |
---|
5169 | DL_LIBS="" |
---|
5170 | CC_SEARCH_FLAGS="" |
---|
5171 | LD_SEARCH_FLAGS="" |
---|
5172 | ;; |
---|
5173 | OS/390-*) |
---|
5174 | CFLAGS_OPTIMIZE="" # Optimizer is buggy |
---|
5175 | $as_echo "#define _OE_SOCKETS 1" >>confdefs.h |
---|
5176 | # needed in sys/socket.h |
---|
5177 | ;; |
---|
5178 | OSF1-1.0|OSF1-1.1|OSF1-1.2) |
---|
5179 | # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 |
---|
5180 | SHLIB_CFLAGS="" |
---|
5181 | # Hack: make package name same as library name |
---|
5182 | SHLIB_LD='ld -R -export :' |
---|
5183 | SHLIB_LD_LIBS="" |
---|
5184 | SHLIB_SUFFIX=".so" |
---|
5185 | DL_OBJS="tclLoadOSF.o" |
---|
5186 | DL_LIBS="" |
---|
5187 | CC_SEARCH_FLAGS="" |
---|
5188 | LD_SEARCH_FLAGS="" |
---|
5189 | ;; |
---|
5190 | OSF1-1.*) |
---|
5191 | # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 |
---|
5192 | SHLIB_CFLAGS="-fPIC" |
---|
5193 | if test "$SHARED_BUILD" = "1" ; then |
---|
5194 | SHLIB_LD="ld -shared" |
---|
5195 | else |
---|
5196 | SHLIB_LD="ld -non_shared" |
---|
5197 | fi |
---|
5198 | SHLIB_LD_LIBS="" |
---|
5199 | SHLIB_SUFFIX=".so" |
---|
5200 | DL_OBJS="tclLoadDl.o" |
---|
5201 | DL_LIBS="" |
---|
5202 | CC_SEARCH_FLAGS="" |
---|
5203 | LD_SEARCH_FLAGS="" |
---|
5204 | ;; |
---|
5205 | OSF1-V*) |
---|
5206 | # Digital OSF/1 |
---|
5207 | SHLIB_CFLAGS="" |
---|
5208 | if test "$SHARED_BUILD" = "1" ; then |
---|
5209 | SHLIB_LD='ld -shared -expect_unresolved "*"' |
---|
5210 | else |
---|
5211 | SHLIB_LD='ld -non_shared -expect_unresolved "*"' |
---|
5212 | fi |
---|
5213 | SHLIB_LD_LIBS="" |
---|
5214 | SHLIB_SUFFIX=".so" |
---|
5215 | DL_OBJS="tclLoadDl.o" |
---|
5216 | DL_LIBS="" |
---|
5217 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
5218 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
5219 | if test "$GCC" = "yes" ; then |
---|
5220 | CFLAGS="$CFLAGS -mieee" |
---|
5221 | else |
---|
5222 | CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" |
---|
5223 | fi |
---|
5224 | # see pthread_intro(3) for pthread support on osf1, k.furukawa |
---|
5225 | if test "${TCL_THREADS}" = "1" ; then |
---|
5226 | CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" |
---|
5227 | CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" |
---|
5228 | LIBS=`echo $LIBS | sed s/-lpthreads//` |
---|
5229 | if test "$GCC" = "yes" ; then |
---|
5230 | LIBS="$LIBS -lpthread -lmach -lexc" |
---|
5231 | else |
---|
5232 | CFLAGS="$CFLAGS -pthread" |
---|
5233 | LDFLAGS="$LDFLAGS -pthread" |
---|
5234 | fi |
---|
5235 | fi |
---|
5236 | |
---|
5237 | ;; |
---|
5238 | QNX-6*) |
---|
5239 | # QNX RTP |
---|
5240 | # This may work for all QNX, but it was only reported for v6. |
---|
5241 | SHLIB_CFLAGS="-fPIC" |
---|
5242 | SHLIB_LD="ld -Bshareable -x" |
---|
5243 | SHLIB_LD_LIBS="" |
---|
5244 | SHLIB_SUFFIX=".so" |
---|
5245 | DL_OBJS="tclLoadDl.o" |
---|
5246 | # dlopen is in -lc on QNX |
---|
5247 | DL_LIBS="" |
---|
5248 | CC_SEARCH_FLAGS="" |
---|
5249 | LD_SEARCH_FLAGS="" |
---|
5250 | ;; |
---|
5251 | RISCos-*) |
---|
5252 | SHLIB_CFLAGS="-G 0" |
---|
5253 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
5254 | SHLIB_LD_LIBS='${LIBS}' |
---|
5255 | SHLIB_SUFFIX=".a" |
---|
5256 | DL_OBJS="tclLoadAout.o" |
---|
5257 | DL_LIBS="" |
---|
5258 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
5259 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
5260 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5261 | ;; |
---|
5262 | SCO_SV-3.2*) |
---|
5263 | # Note, dlopen is available only on SCO 3.2.5 and greater. However, |
---|
5264 | # this test works, since "uname -s" was non-standard in 3.2.4 and |
---|
5265 | # below. |
---|
5266 | if test "$GCC" = "yes" ; then |
---|
5267 | SHLIB_CFLAGS="-fPIC -melf" |
---|
5268 | LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" |
---|
5269 | else |
---|
5270 | SHLIB_CFLAGS="-Kpic -belf" |
---|
5271 | LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" |
---|
5272 | fi |
---|
5273 | SHLIB_LD="ld -G" |
---|
5274 | SHLIB_LD_LIBS="" |
---|
5275 | SHLIB_SUFFIX=".so" |
---|
5276 | DL_OBJS="tclLoadDl.o" |
---|
5277 | DL_LIBS="" |
---|
5278 | CC_SEARCH_FLAGS="" |
---|
5279 | LD_SEARCH_FLAGS="" |
---|
5280 | ;; |
---|
5281 | SINIX*5.4*) |
---|
5282 | SHLIB_CFLAGS="-K PIC" |
---|
5283 | SHLIB_LD="cc -G" |
---|
5284 | SHLIB_LD_LIBS="" |
---|
5285 | SHLIB_SUFFIX=".so" |
---|
5286 | DL_OBJS="tclLoadDl.o" |
---|
5287 | DL_LIBS="-ldl" |
---|
5288 | CC_SEARCH_FLAGS="" |
---|
5289 | LD_SEARCH_FLAGS="" |
---|
5290 | ;; |
---|
5291 | SunOS-4*) |
---|
5292 | SHLIB_CFLAGS="-PIC" |
---|
5293 | SHLIB_LD="ld" |
---|
5294 | SHLIB_LD_LIBS="" |
---|
5295 | SHLIB_SUFFIX=".so" |
---|
5296 | DL_OBJS="tclLoadDl.o" |
---|
5297 | DL_LIBS="-ldl" |
---|
5298 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
5299 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5300 | |
---|
5301 | # SunOS can't handle version numbers with dots in them in library |
---|
5302 | # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it |
---|
5303 | # requires an extra version number at the end of .so file names. |
---|
5304 | # So, the library has to have a name like libtcl75.so.1.0 |
---|
5305 | |
---|
5306 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
5307 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
5308 | TCL_LIB_VERSIONS_OK=nodots |
---|
5309 | ;; |
---|
5310 | SunOS-5.[0-6]) |
---|
5311 | # Careful to not let 5.10+ fall into this case |
---|
5312 | |
---|
5313 | # Note: If _REENTRANT isn't defined, then Solaris |
---|
5314 | # won't define thread-safe library routines. |
---|
5315 | |
---|
5316 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
---|
5317 | |
---|
5318 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
---|
5319 | |
---|
5320 | |
---|
5321 | SHLIB_CFLAGS="-KPIC" |
---|
5322 | |
---|
5323 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
5324 | # symbols when dynamically loaded into tclsh. |
---|
5325 | |
---|
5326 | SHLIB_LD_LIBS='${LIBS}' |
---|
5327 | SHLIB_SUFFIX=".so" |
---|
5328 | DL_OBJS="tclLoadDl.o" |
---|
5329 | DL_LIBS="-ldl" |
---|
5330 | if test "$GCC" = "yes" ; then |
---|
5331 | SHLIB_LD="$CC -shared" |
---|
5332 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
5333 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5334 | else |
---|
5335 | SHLIB_LD="/usr/ccs/bin/ld -G -z text" |
---|
5336 | CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
5337 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5338 | fi |
---|
5339 | ;; |
---|
5340 | SunOS-5*) |
---|
5341 | # Note: If _REENTRANT isn't defined, then Solaris |
---|
5342 | # won't define thread-safe library routines. |
---|
5343 | |
---|
5344 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
---|
5345 | |
---|
5346 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
---|
5347 | |
---|
5348 | |
---|
5349 | SHLIB_CFLAGS="-KPIC" |
---|
5350 | |
---|
5351 | # Check to enable 64-bit flags for compiler/linker |
---|
5352 | if test "$do64bit" = "yes" ; then |
---|
5353 | arch=`isainfo` |
---|
5354 | if test "$arch" = "sparcv9 sparc" ; then |
---|
5355 | if test "$GCC" = "yes" ; then |
---|
5356 | if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then |
---|
5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 |
---|
5358 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} |
---|
5359 | else |
---|
5360 | do64bit_ok=yes |
---|
5361 | CFLAGS="$CFLAGS -m64 -mcpu=v9" |
---|
5362 | LDFLAGS="$LDFLAGS -m64 -mcpu=v9" |
---|
5363 | SHLIB_CFLAGS="-fPIC" |
---|
5364 | fi |
---|
5365 | else |
---|
5366 | do64bit_ok=yes |
---|
5367 | if test "$do64bitVIS" = "yes" ; then |
---|
5368 | CFLAGS="$CFLAGS -xarch=v9a" |
---|
5369 | LDFLAGS="$LDFLAGS -xarch=v9a" |
---|
5370 | else |
---|
5371 | CFLAGS="$CFLAGS -xarch=v9" |
---|
5372 | LDFLAGS="$LDFLAGS -xarch=v9" |
---|
5373 | fi |
---|
5374 | # Solaris 64 uses this as well |
---|
5375 | #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" |
---|
5376 | fi |
---|
5377 | elif test "$arch" = "amd64 i386" ; then |
---|
5378 | if test "$GCC" = "yes" ; then |
---|
5379 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
5380 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
5381 | else |
---|
5382 | do64bit_ok=yes |
---|
5383 | CFLAGS="$CFLAGS -xarch=amd64" |
---|
5384 | LDFLAGS="$LDFLAGS -xarch=amd64" |
---|
5385 | fi |
---|
5386 | else |
---|
5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5 |
---|
5388 | $as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} |
---|
5389 | fi |
---|
5390 | fi |
---|
5391 | |
---|
5392 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
5393 | # symbols when dynamically loaded into tclsh. |
---|
5394 | |
---|
5395 | SHLIB_LD_LIBS='${LIBS}' |
---|
5396 | SHLIB_SUFFIX=".so" |
---|
5397 | DL_OBJS="tclLoadDl.o" |
---|
5398 | DL_LIBS="-ldl" |
---|
5399 | if test "$GCC" = "yes" ; then |
---|
5400 | SHLIB_LD="$CC -shared" |
---|
5401 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
5402 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5403 | if test "$do64bit_ok" = "yes" ; then |
---|
5404 | # We need to specify -static-libgcc or we need to |
---|
5405 | # add the path to the sparv9 libgcc. |
---|
5406 | SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" |
---|
5407 | # for finding sparcv9 libgcc, get the regular libgcc |
---|
5408 | # path, remove so name and append 'sparcv9' |
---|
5409 | #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." |
---|
5410 | #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" |
---|
5411 | fi |
---|
5412 | else |
---|
5413 | case $system in |
---|
5414 | SunOS-5.[1-9][0-9]*) |
---|
5415 | SHLIB_LD='${CC} -G -z text ${LDFLAGS}';; |
---|
5416 | *) |
---|
5417 | SHLIB_LD="/usr/ccs/bin/ld -G -z text";; |
---|
5418 | esac |
---|
5419 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
5420 | LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
5421 | fi |
---|
5422 | ;; |
---|
5423 | ULTRIX-4.*) |
---|
5424 | SHLIB_CFLAGS="-G 0" |
---|
5425 | SHLIB_SUFFIX=".a" |
---|
5426 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
5427 | SHLIB_LD_LIBS='${LIBS}' |
---|
5428 | DL_OBJS="tclLoadAout.o" |
---|
5429 | DL_LIBS="" |
---|
5430 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
5431 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
5432 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5433 | if test "$GCC" != "yes" ; then |
---|
5434 | CFLAGS="$CFLAGS -DHAVE_TZSET -std1" |
---|
5435 | fi |
---|
5436 | ;; |
---|
5437 | UNIX_SV* | UnixWare-5*) |
---|
5438 | SHLIB_CFLAGS="-KPIC" |
---|
5439 | SHLIB_LD="cc -G" |
---|
5440 | SHLIB_LD_LIBS="" |
---|
5441 | SHLIB_SUFFIX=".so" |
---|
5442 | DL_OBJS="tclLoadDl.o" |
---|
5443 | DL_LIBS="-ldl" |
---|
5444 | # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers |
---|
5445 | # that don't grok the -Bexport option. Test that it does. |
---|
5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5 |
---|
5447 | $as_echo_n "checking for ld accepts -Bexport flag... " >&6; } |
---|
5448 | if ${tcl_cv_ld_Bexport+:} false; then : |
---|
5449 | $as_echo_n "(cached) " >&6 |
---|
5450 | else |
---|
5451 | |
---|
5452 | hold_ldflags=$LDFLAGS |
---|
5453 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
5454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5455 | /* end confdefs.h. */ |
---|
5456 | |
---|
5457 | int |
---|
5458 | main () |
---|
5459 | { |
---|
5460 | int i; |
---|
5461 | ; |
---|
5462 | return 0; |
---|
5463 | } |
---|
5464 | _ACEOF |
---|
5465 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5466 | tcl_cv_ld_Bexport=yes |
---|
5467 | else |
---|
5468 | tcl_cv_ld_Bexport=no |
---|
5469 | fi |
---|
5470 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5471 | conftest$ac_exeext conftest.$ac_ext |
---|
5472 | LDFLAGS=$hold_ldflags |
---|
5473 | fi |
---|
5474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5 |
---|
5475 | $as_echo "$tcl_cv_ld_Bexport" >&6; } |
---|
5476 | if test $tcl_cv_ld_Bexport = yes; then |
---|
5477 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
5478 | fi |
---|
5479 | CC_SEARCH_FLAGS="" |
---|
5480 | LD_SEARCH_FLAGS="" |
---|
5481 | ;; |
---|
5482 | esac |
---|
5483 | |
---|
5484 | if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then |
---|
5485 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 |
---|
5486 | $as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} |
---|
5487 | fi |
---|
5488 | |
---|
5489 | |
---|
5490 | |
---|
5491 | |
---|
5492 | # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic |
---|
5493 | # Loading for Tcl -- What Became of It?". Proc. 2nd Tcl/Tk Workshop, |
---|
5494 | # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need |
---|
5495 | # to determine which of several header files defines the a.out file |
---|
5496 | # format (a.out.h, sys/exec.h, or sys/exec_aout.h). At present, we |
---|
5497 | # support only a file format that is more or less version-7-compatible. |
---|
5498 | # In particular, |
---|
5499 | # - a.out files must begin with `struct exec'. |
---|
5500 | # - the N_TXTOFF on the `struct exec' must compute the seek address |
---|
5501 | # of the text segment |
---|
5502 | # - The `struct exec' must contain a_magic, a_text, a_data, a_bss |
---|
5503 | # and a_entry fields. |
---|
5504 | # The following compilation should succeed if and only if either sys/exec.h |
---|
5505 | # or a.out.h is usable for the purpose. |
---|
5506 | # |
---|
5507 | # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the |
---|
5508 | # `struct exec' includes a second header that contains information that |
---|
5509 | # duplicates the v7 fields that are needed. |
---|
5510 | |
---|
5511 | if test "x$DL_OBJS" = "xtclLoadAout.o" ; then |
---|
5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5 |
---|
5513 | $as_echo_n "checking sys/exec.h... " >&6; } |
---|
5514 | if ${tcl_cv_sysexec_h+:} false; then : |
---|
5515 | $as_echo_n "(cached) " >&6 |
---|
5516 | else |
---|
5517 | |
---|
5518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5519 | /* end confdefs.h. */ |
---|
5520 | #include <sys/exec.h> |
---|
5521 | int |
---|
5522 | main () |
---|
5523 | { |
---|
5524 | |
---|
5525 | struct exec foo; |
---|
5526 | unsigned long seek; |
---|
5527 | int flag; |
---|
5528 | #if defined(__mips) || defined(mips) |
---|
5529 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
5530 | #else |
---|
5531 | seek = N_TXTOFF (foo); |
---|
5532 | #endif |
---|
5533 | flag = (foo.a_magic == OMAGIC); |
---|
5534 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
5535 | |
---|
5536 | ; |
---|
5537 | return 0; |
---|
5538 | } |
---|
5539 | _ACEOF |
---|
5540 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5541 | tcl_cv_sysexec_h=usable |
---|
5542 | else |
---|
5543 | tcl_cv_sysexec_h=unusable |
---|
5544 | fi |
---|
5545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5546 | fi |
---|
5547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5 |
---|
5548 | $as_echo "$tcl_cv_sysexec_h" >&6; } |
---|
5549 | if test $tcl_cv_sysexec_h = usable; then |
---|
5550 | $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h |
---|
5551 | |
---|
5552 | else |
---|
5553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5 |
---|
5554 | $as_echo_n "checking a.out.h... " >&6; } |
---|
5555 | if ${tcl_cv_aout_h+:} false; then : |
---|
5556 | $as_echo_n "(cached) " >&6 |
---|
5557 | else |
---|
5558 | |
---|
5559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5560 | /* end confdefs.h. */ |
---|
5561 | #include <a.out.h> |
---|
5562 | int |
---|
5563 | main () |
---|
5564 | { |
---|
5565 | |
---|
5566 | struct exec foo; |
---|
5567 | unsigned long seek; |
---|
5568 | int flag; |
---|
5569 | #if defined(__mips) || defined(mips) |
---|
5570 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
5571 | #else |
---|
5572 | seek = N_TXTOFF (foo); |
---|
5573 | #endif |
---|
5574 | flag = (foo.a_magic == OMAGIC); |
---|
5575 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
5576 | |
---|
5577 | ; |
---|
5578 | return 0; |
---|
5579 | } |
---|
5580 | _ACEOF |
---|
5581 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5582 | tcl_cv_aout_h=usable |
---|
5583 | else |
---|
5584 | tcl_cv_aout_h=unusable |
---|
5585 | fi |
---|
5586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5587 | fi |
---|
5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5 |
---|
5589 | $as_echo "$tcl_cv_aout_h" >&6; } |
---|
5590 | if test $tcl_cv_aout_h = usable; then |
---|
5591 | $as_echo "#define USE_A_OUT_H 1" >>confdefs.h |
---|
5592 | |
---|
5593 | else |
---|
5594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5 |
---|
5595 | $as_echo_n "checking sys/exec_aout.h... " >&6; } |
---|
5596 | if ${tcl_cv_sysexecaout_h+:} false; then : |
---|
5597 | $as_echo_n "(cached) " >&6 |
---|
5598 | else |
---|
5599 | |
---|
5600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5601 | /* end confdefs.h. */ |
---|
5602 | #include <sys/exec_aout.h> |
---|
5603 | int |
---|
5604 | main () |
---|
5605 | { |
---|
5606 | |
---|
5607 | struct exec foo; |
---|
5608 | unsigned long seek; |
---|
5609 | int flag; |
---|
5610 | #if defined(__mips) || defined(mips) |
---|
5611 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
5612 | #else |
---|
5613 | seek = N_TXTOFF (foo); |
---|
5614 | #endif |
---|
5615 | flag = (foo.a_midmag == OMAGIC); |
---|
5616 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
5617 | |
---|
5618 | ; |
---|
5619 | return 0; |
---|
5620 | } |
---|
5621 | _ACEOF |
---|
5622 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5623 | tcl_cv_sysexecaout_h=usable |
---|
5624 | else |
---|
5625 | tcl_cv_sysexecaout_h=unusable |
---|
5626 | fi |
---|
5627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5628 | fi |
---|
5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5 |
---|
5630 | $as_echo "$tcl_cv_sysexecaout_h" >&6; } |
---|
5631 | if test $tcl_cv_sysexecaout_h = usable; then |
---|
5632 | $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h |
---|
5633 | |
---|
5634 | else |
---|
5635 | DL_OBJS="" |
---|
5636 | fi |
---|
5637 | fi |
---|
5638 | fi |
---|
5639 | fi |
---|
5640 | |
---|
5641 | # Step 5: disable dynamic loading if requested via a command-line switch. |
---|
5642 | |
---|
5643 | # Check whether --enable-load was given. |
---|
5644 | if test "${enable_load+set}" = set; then : |
---|
5645 | enableval=$enable_load; tcl_ok=$enableval |
---|
5646 | else |
---|
5647 | tcl_ok=yes |
---|
5648 | fi |
---|
5649 | |
---|
5650 | if test "$tcl_ok" = "no"; then |
---|
5651 | DL_OBJS="" |
---|
5652 | fi |
---|
5653 | |
---|
5654 | if test "x$DL_OBJS" != "x" ; then |
---|
5655 | BUILD_DLTEST="\$(DLTEST_TARGETS)" |
---|
5656 | else |
---|
5657 | echo "Can't figure out how to do dynamic loading or shared libraries" |
---|
5658 | echo "on this system." |
---|
5659 | SHLIB_CFLAGS="" |
---|
5660 | SHLIB_LD="" |
---|
5661 | SHLIB_SUFFIX="" |
---|
5662 | DL_OBJS="tclLoadNone.o" |
---|
5663 | DL_LIBS="" |
---|
5664 | LDFLAGS="$LDFLAGS_ORIG" |
---|
5665 | CC_SEARCH_FLAGS="" |
---|
5666 | LD_SEARCH_FLAGS="" |
---|
5667 | BUILD_DLTEST="" |
---|
5668 | fi |
---|
5669 | |
---|
5670 | # If we're running gcc, then change the C flags for compiling shared |
---|
5671 | # libraries to the right flags for gcc, instead of those for the |
---|
5672 | # standard manufacturer compiler. |
---|
5673 | |
---|
5674 | if test "$DL_OBJS" != "tclLoadNone.o" ; then |
---|
5675 | if test "$GCC" = "yes" ; then |
---|
5676 | case $system in |
---|
5677 | AIX-*) |
---|
5678 | ;; |
---|
5679 | BSD/OS*) |
---|
5680 | ;; |
---|
5681 | IRIX*) |
---|
5682 | ;; |
---|
5683 | NetBSD-*|FreeBSD-*|OpenBSD-*) |
---|
5684 | ;; |
---|
5685 | Darwin-*) |
---|
5686 | ;; |
---|
5687 | RISCos-*) |
---|
5688 | ;; |
---|
5689 | SCO_SV-3.2*) |
---|
5690 | ;; |
---|
5691 | ULTRIX-4.*) |
---|
5692 | ;; |
---|
5693 | *) |
---|
5694 | SHLIB_CFLAGS="-fPIC" |
---|
5695 | ;; |
---|
5696 | esac |
---|
5697 | fi |
---|
5698 | fi |
---|
5699 | |
---|
5700 | if test "$SHARED_LIB_SUFFIX" = "" ; then |
---|
5701 | SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}' |
---|
5702 | fi |
---|
5703 | if test "$UNSHARED_LIB_SUFFIX" = "" ; then |
---|
5704 | UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' |
---|
5705 | fi |
---|
5706 | |
---|
5707 | if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then |
---|
5708 | LIB_SUFFIX=${SHARED_LIB_SUFFIX} |
---|
5709 | MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' |
---|
5710 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' |
---|
5711 | else |
---|
5712 | LIB_SUFFIX=${UNSHARED_LIB_SUFFIX} |
---|
5713 | |
---|
5714 | if test "$RANLIB" = "" ; then |
---|
5715 | MAKE_LIB='$(STLIB_LD) $@ ${OBJS}' |
---|
5716 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' |
---|
5717 | else |
---|
5718 | MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@' |
---|
5719 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))' |
---|
5720 | fi |
---|
5721 | |
---|
5722 | fi |
---|
5723 | |
---|
5724 | |
---|
5725 | # Stub lib does not depend on shared/static configuration |
---|
5726 | if test "$RANLIB" = "" ; then |
---|
5727 | MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}' |
---|
5728 | INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)' |
---|
5729 | else |
---|
5730 | MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@' |
---|
5731 | INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))' |
---|
5732 | fi |
---|
5733 | |
---|
5734 | |
---|
5735 | |
---|
5736 | |
---|
5737 | |
---|
5738 | |
---|
5739 | |
---|
5740 | |
---|
5741 | |
---|
5742 | |
---|
5743 | |
---|
5744 | |
---|
5745 | |
---|
5746 | |
---|
5747 | |
---|
5748 | |
---|
5749 | |
---|
5750 | |
---|
5751 | |
---|
5752 | |
---|
5753 | |
---|
5754 | |
---|
5755 | |
---|
5756 | |
---|
5757 | |
---|
5758 | |
---|
5759 | |
---|
5760 | |
---|
5761 | |
---|
5762 | |
---|
5763 | |
---|
5764 | |
---|
5765 | |
---|
5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
---|
5767 | $as_echo_n "checking for X... " >&6; } |
---|
5768 | |
---|
5769 | |
---|
5770 | # Check whether --with-x was given. |
---|
5771 | if test "${with_x+set}" = set; then : |
---|
5772 | withval=$with_x; |
---|
5773 | fi |
---|
5774 | |
---|
5775 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
5776 | if test "x$with_x" = xno; then |
---|
5777 | # The user explicitly disabled X. |
---|
5778 | have_x=disabled |
---|
5779 | else |
---|
5780 | case $x_includes,$x_libraries in #( |
---|
5781 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
---|
5782 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
---|
5783 | $as_echo_n "(cached) " >&6 |
---|
5784 | else |
---|
5785 | # One or both of the vars are not set, and there is no cached value. |
---|
5786 | ac_x_includes=no ac_x_libraries=no |
---|
5787 | rm -f -r conftest.dir |
---|
5788 | if mkdir conftest.dir; then |
---|
5789 | cd conftest.dir |
---|
5790 | cat >Imakefile <<'_ACEOF' |
---|
5791 | incroot: |
---|
5792 | @echo incroot='${INCROOT}' |
---|
5793 | usrlibdir: |
---|
5794 | @echo usrlibdir='${USRLIBDIR}' |
---|
5795 | libdir: |
---|
5796 | @echo libdir='${LIBDIR}' |
---|
5797 | _ACEOF |
---|
5798 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
5799 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
5800 | for ac_var in incroot usrlibdir libdir; do |
---|
5801 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
---|
5802 | done |
---|
5803 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
5804 | for ac_extension in a so sl dylib la dll; do |
---|
5805 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
---|
5806 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
---|
5807 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
5808 | fi |
---|
5809 | done |
---|
5810 | # Screen out bogus values from the imake configuration. They are |
---|
5811 | # bogus both because they are the default anyway, and because |
---|
5812 | # using them would break gcc on systems where it needs fixed includes. |
---|
5813 | case $ac_im_incroot in |
---|
5814 | /usr/include) ac_x_includes= ;; |
---|
5815 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
---|
5816 | esac |
---|
5817 | case $ac_im_usrlibdir in |
---|
5818 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
---|
5819 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
---|
5820 | esac |
---|
5821 | fi |
---|
5822 | cd .. |
---|
5823 | rm -f -r conftest.dir |
---|
5824 | fi |
---|
5825 | |
---|
5826 | # Standard set of common directories for X headers. |
---|
5827 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
5828 | ac_x_header_dirs=' |
---|
5829 | /usr/X11/include |
---|
5830 | /usr/X11R7/include |
---|
5831 | /usr/X11R6/include |
---|
5832 | /usr/X11R5/include |
---|
5833 | /usr/X11R4/include |
---|
5834 | |
---|
5835 | /usr/include/X11 |
---|
5836 | /usr/include/X11R7 |
---|
5837 | /usr/include/X11R6 |
---|
5838 | /usr/include/X11R5 |
---|
5839 | /usr/include/X11R4 |
---|
5840 | |
---|
5841 | /usr/local/X11/include |
---|
5842 | /usr/local/X11R7/include |
---|
5843 | /usr/local/X11R6/include |
---|
5844 | /usr/local/X11R5/include |
---|
5845 | /usr/local/X11R4/include |
---|
5846 | |
---|
5847 | /usr/local/include/X11 |
---|
5848 | /usr/local/include/X11R7 |
---|
5849 | /usr/local/include/X11R6 |
---|
5850 | /usr/local/include/X11R5 |
---|
5851 | /usr/local/include/X11R4 |
---|
5852 | |
---|
5853 | /usr/X386/include |
---|
5854 | /usr/x386/include |
---|
5855 | /usr/XFree86/include/X11 |
---|
5856 | |
---|
5857 | /usr/include |
---|
5858 | /usr/local/include |
---|
5859 | /usr/unsupported/include |
---|
5860 | /usr/athena/include |
---|
5861 | /usr/local/x11r5/include |
---|
5862 | /usr/lpp/Xamples/include |
---|
5863 | |
---|
5864 | /usr/openwin/include |
---|
5865 | /usr/openwin/share/include' |
---|
5866 | |
---|
5867 | if test "$ac_x_includes" = no; then |
---|
5868 | # Guess where to find include files, by looking for Xlib.h. |
---|
5869 | # First, try using that file with no special directory specified. |
---|
5870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5871 | /* end confdefs.h. */ |
---|
5872 | #include <X11/Xlib.h> |
---|
5873 | _ACEOF |
---|
5874 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5875 | # We can compile using X headers with no special include directory. |
---|
5876 | ac_x_includes= |
---|
5877 | else |
---|
5878 | for ac_dir in $ac_x_header_dirs; do |
---|
5879 | if test -r "$ac_dir/X11/Xlib.h"; then |
---|
5880 | ac_x_includes=$ac_dir |
---|
5881 | break |
---|
5882 | fi |
---|
5883 | done |
---|
5884 | fi |
---|
5885 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5886 | fi # $ac_x_includes = no |
---|
5887 | |
---|
5888 | if test "$ac_x_libraries" = no; then |
---|
5889 | # Check for the libraries. |
---|
5890 | # See if we find them without any special options. |
---|
5891 | # Don't add to $LIBS permanently. |
---|
5892 | ac_save_LIBS=$LIBS |
---|
5893 | LIBS="-lX11 $LIBS" |
---|
5894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5895 | /* end confdefs.h. */ |
---|
5896 | #include <X11/Xlib.h> |
---|
5897 | int |
---|
5898 | main () |
---|
5899 | { |
---|
5900 | XrmInitialize () |
---|
5901 | ; |
---|
5902 | return 0; |
---|
5903 | } |
---|
5904 | _ACEOF |
---|
5905 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5906 | LIBS=$ac_save_LIBS |
---|
5907 | # We can link X programs with no special library path. |
---|
5908 | ac_x_libraries= |
---|
5909 | else |
---|
5910 | LIBS=$ac_save_LIBS |
---|
5911 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
---|
5912 | do |
---|
5913 | # Don't even attempt the hair of trying to link an X program! |
---|
5914 | for ac_extension in a so sl dylib la dll; do |
---|
5915 | if test -r "$ac_dir/libX11.$ac_extension"; then |
---|
5916 | ac_x_libraries=$ac_dir |
---|
5917 | break 2 |
---|
5918 | fi |
---|
5919 | done |
---|
5920 | done |
---|
5921 | fi |
---|
5922 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5923 | conftest$ac_exeext conftest.$ac_ext |
---|
5924 | fi # $ac_x_libraries = no |
---|
5925 | |
---|
5926 | case $ac_x_includes,$ac_x_libraries in #( |
---|
5927 | no,* | *,no | *\'*) |
---|
5928 | # Didn't find X, or a directory has "'" in its name. |
---|
5929 | ac_cv_have_x="have_x=no";; #( |
---|
5930 | *) |
---|
5931 | # Record where we found X for the cache. |
---|
5932 | ac_cv_have_x="have_x=yes\ |
---|
5933 | ac_x_includes='$ac_x_includes'\ |
---|
5934 | ac_x_libraries='$ac_x_libraries'" |
---|
5935 | esac |
---|
5936 | fi |
---|
5937 | ;; #( |
---|
5938 | *) have_x=yes;; |
---|
5939 | esac |
---|
5940 | eval "$ac_cv_have_x" |
---|
5941 | fi # $with_x != no |
---|
5942 | |
---|
5943 | if test "$have_x" != yes; then |
---|
5944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
---|
5945 | $as_echo "$have_x" >&6; } |
---|
5946 | no_x=yes |
---|
5947 | else |
---|
5948 | # If each of the values was on the command line, it overrides each guess. |
---|
5949 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
5950 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
5951 | # Update the cache value to reflect the command line values. |
---|
5952 | ac_cv_have_x="have_x=yes\ |
---|
5953 | ac_x_includes='$x_includes'\ |
---|
5954 | ac_x_libraries='$x_libraries'" |
---|
5955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
---|
5956 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
---|
5957 | fi |
---|
5958 | |
---|
5959 | |
---|
5960 | # Find a good install program. We prefer a C program (faster), |
---|
5961 | # so one script is as good as another. But avoid the broken or |
---|
5962 | # incompatible versions: |
---|
5963 | # SysV /etc/install, /usr/sbin/install |
---|
5964 | # SunOS /usr/etc/install |
---|
5965 | # IRIX /sbin/install |
---|
5966 | # AIX /bin/install |
---|
5967 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
5968 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
5969 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
5970 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
5971 | # OS/2's system install, which has a completely different semantic |
---|
5972 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
5973 | # Reject install programs that cannot install multiple files. |
---|
5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
5975 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
5976 | if test -z "$INSTALL"; then |
---|
5977 | if ${ac_cv_path_install+:} false; then : |
---|
5978 | $as_echo_n "(cached) " >&6 |
---|
5979 | else |
---|
5980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5981 | for as_dir in $PATH |
---|
5982 | do |
---|
5983 | IFS=$as_save_IFS |
---|
5984 | test -z "$as_dir" && as_dir=. |
---|
5985 | # Account for people who put trailing slashes in PATH elements. |
---|
5986 | case $as_dir/ in #(( |
---|
5987 | ./ | .// | /[cC]/* | \ |
---|
5988 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
5989 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
5990 | /usr/ucb/* ) ;; |
---|
5991 | *) |
---|
5992 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
5993 | # Don't use installbsd from OSF since it installs stuff as root |
---|
5994 | # by default. |
---|
5995 | for ac_prog in ginstall scoinst install; do |
---|
5996 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5997 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
5998 | if test $ac_prog = install && |
---|
5999 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
6000 | # AIX install. It has an incompatible calling convention. |
---|
6001 | : |
---|
6002 | elif test $ac_prog = install && |
---|
6003 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
6004 | # program-specific install script used by HP pwplus--don't use. |
---|
6005 | : |
---|
6006 | else |
---|
6007 | rm -rf conftest.one conftest.two conftest.dir |
---|
6008 | echo one > conftest.one |
---|
6009 | echo two > conftest.two |
---|
6010 | mkdir conftest.dir |
---|
6011 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
6012 | test -s conftest.one && test -s conftest.two && |
---|
6013 | test -s conftest.dir/conftest.one && |
---|
6014 | test -s conftest.dir/conftest.two |
---|
6015 | then |
---|
6016 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
6017 | break 3 |
---|
6018 | fi |
---|
6019 | fi |
---|
6020 | fi |
---|
6021 | done |
---|
6022 | done |
---|
6023 | ;; |
---|
6024 | esac |
---|
6025 | |
---|
6026 | done |
---|
6027 | IFS=$as_save_IFS |
---|
6028 | |
---|
6029 | rm -rf conftest.one conftest.two conftest.dir |
---|
6030 | |
---|
6031 | fi |
---|
6032 | if test "${ac_cv_path_install+set}" = set; then |
---|
6033 | INSTALL=$ac_cv_path_install |
---|
6034 | else |
---|
6035 | # As a last resort, use the slow shell script. Don't cache a |
---|
6036 | # value for INSTALL within a source directory, because that will |
---|
6037 | # break other packages using the cache if that directory is |
---|
6038 | # removed, or if the value is a relative name. |
---|
6039 | INSTALL=$ac_install_sh |
---|
6040 | fi |
---|
6041 | fi |
---|
6042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
6043 | $as_echo "$INSTALL" >&6; } |
---|
6044 | |
---|
6045 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
6046 | # It thinks the first close brace ends the variable substitution. |
---|
6047 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
6048 | |
---|
6049 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
6050 | |
---|
6051 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
6052 | |
---|
6053 | if test -n "$ac_tool_prefix"; then |
---|
6054 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
6055 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
6056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6057 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6058 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
6059 | $as_echo_n "(cached) " >&6 |
---|
6060 | else |
---|
6061 | if test -n "$RANLIB"; then |
---|
6062 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
6063 | else |
---|
6064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6065 | for as_dir in $PATH |
---|
6066 | do |
---|
6067 | IFS=$as_save_IFS |
---|
6068 | test -z "$as_dir" && as_dir=. |
---|
6069 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6070 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6071 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
6072 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6073 | break 2 |
---|
6074 | fi |
---|
6075 | done |
---|
6076 | done |
---|
6077 | IFS=$as_save_IFS |
---|
6078 | |
---|
6079 | fi |
---|
6080 | fi |
---|
6081 | RANLIB=$ac_cv_prog_RANLIB |
---|
6082 | if test -n "$RANLIB"; then |
---|
6083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
6084 | $as_echo "$RANLIB" >&6; } |
---|
6085 | else |
---|
6086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6087 | $as_echo "no" >&6; } |
---|
6088 | fi |
---|
6089 | |
---|
6090 | |
---|
6091 | fi |
---|
6092 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
6093 | ac_ct_RANLIB=$RANLIB |
---|
6094 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
6095 | set dummy ranlib; ac_word=$2 |
---|
6096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6097 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6098 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
6099 | $as_echo_n "(cached) " >&6 |
---|
6100 | else |
---|
6101 | if test -n "$ac_ct_RANLIB"; then |
---|
6102 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
6103 | else |
---|
6104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6105 | for as_dir in $PATH |
---|
6106 | do |
---|
6107 | IFS=$as_save_IFS |
---|
6108 | test -z "$as_dir" && as_dir=. |
---|
6109 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6110 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6111 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
6112 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6113 | break 2 |
---|
6114 | fi |
---|
6115 | done |
---|
6116 | done |
---|
6117 | IFS=$as_save_IFS |
---|
6118 | |
---|
6119 | fi |
---|
6120 | fi |
---|
6121 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
6122 | if test -n "$ac_ct_RANLIB"; then |
---|
6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
6124 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
6125 | else |
---|
6126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6127 | $as_echo "no" >&6; } |
---|
6128 | fi |
---|
6129 | |
---|
6130 | if test "x$ac_ct_RANLIB" = x; then |
---|
6131 | RANLIB=":" |
---|
6132 | else |
---|
6133 | case $cross_compiling:$ac_tool_warned in |
---|
6134 | yes:) |
---|
6135 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6136 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6137 | ac_tool_warned=yes ;; |
---|
6138 | esac |
---|
6139 | RANLIB=$ac_ct_RANLIB |
---|
6140 | fi |
---|
6141 | else |
---|
6142 | RANLIB="$ac_cv_prog_RANLIB" |
---|
6143 | fi |
---|
6144 | |
---|
6145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
---|
6146 | $as_echo_n "checking whether ln -s works... " >&6; } |
---|
6147 | LN_S=$as_ln_s |
---|
6148 | if test "$LN_S" = "ln -s"; then |
---|
6149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
6150 | $as_echo "yes" >&6; } |
---|
6151 | else |
---|
6152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
---|
6153 | $as_echo "no, using $LN_S" >&6; } |
---|
6154 | fi |
---|
6155 | |
---|
6156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
6157 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
6158 | if test -z "$MKDIR_P"; then |
---|
6159 | if ${ac_cv_path_mkdir+:} false; then : |
---|
6160 | $as_echo_n "(cached) " >&6 |
---|
6161 | else |
---|
6162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6163 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
6164 | do |
---|
6165 | IFS=$as_save_IFS |
---|
6166 | test -z "$as_dir" && as_dir=. |
---|
6167 | for ac_prog in mkdir gmkdir; do |
---|
6168 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6169 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
---|
6170 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
6171 | 'mkdir (GNU coreutils) '* | \ |
---|
6172 | 'mkdir (coreutils) '* | \ |
---|
6173 | 'mkdir (fileutils) '4.1*) |
---|
6174 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
6175 | break 3;; |
---|
6176 | esac |
---|
6177 | done |
---|
6178 | done |
---|
6179 | done |
---|
6180 | IFS=$as_save_IFS |
---|
6181 | |
---|
6182 | fi |
---|
6183 | |
---|
6184 | test -d ./--version && rmdir ./--version |
---|
6185 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
6186 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
6187 | else |
---|
6188 | # As a last resort, use the slow shell script. Don't cache a |
---|
6189 | # value for MKDIR_P within a source directory, because that will |
---|
6190 | # break other packages using the cache if that directory is |
---|
6191 | # removed, or if the value is a relative name. |
---|
6192 | MKDIR_P="$ac_install_sh -d" |
---|
6193 | fi |
---|
6194 | fi |
---|
6195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
6196 | $as_echo "$MKDIR_P" >&6; } |
---|
6197 | |
---|
6198 | |
---|
6199 | ac_ext=c |
---|
6200 | ac_cpp='$CPP $CPPFLAGS' |
---|
6201 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6202 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6203 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6204 | if test -n "$ac_tool_prefix"; then |
---|
6205 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
6206 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
6207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6208 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6209 | if ${ac_cv_prog_CC+:} false; then : |
---|
6210 | $as_echo_n "(cached) " >&6 |
---|
6211 | else |
---|
6212 | if test -n "$CC"; then |
---|
6213 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
6214 | else |
---|
6215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6216 | for as_dir in $PATH |
---|
6217 | do |
---|
6218 | IFS=$as_save_IFS |
---|
6219 | test -z "$as_dir" && as_dir=. |
---|
6220 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6221 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6222 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
6223 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6224 | break 2 |
---|
6225 | fi |
---|
6226 | done |
---|
6227 | done |
---|
6228 | IFS=$as_save_IFS |
---|
6229 | |
---|
6230 | fi |
---|
6231 | fi |
---|
6232 | CC=$ac_cv_prog_CC |
---|
6233 | if test -n "$CC"; then |
---|
6234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
6235 | $as_echo "$CC" >&6; } |
---|
6236 | else |
---|
6237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6238 | $as_echo "no" >&6; } |
---|
6239 | fi |
---|
6240 | |
---|
6241 | |
---|
6242 | fi |
---|
6243 | if test -z "$ac_cv_prog_CC"; then |
---|
6244 | ac_ct_CC=$CC |
---|
6245 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
6246 | set dummy gcc; ac_word=$2 |
---|
6247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6248 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6249 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
6250 | $as_echo_n "(cached) " >&6 |
---|
6251 | else |
---|
6252 | if test -n "$ac_ct_CC"; then |
---|
6253 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
6254 | else |
---|
6255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6256 | for as_dir in $PATH |
---|
6257 | do |
---|
6258 | IFS=$as_save_IFS |
---|
6259 | test -z "$as_dir" && as_dir=. |
---|
6260 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6261 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6262 | ac_cv_prog_ac_ct_CC="gcc" |
---|
6263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6264 | break 2 |
---|
6265 | fi |
---|
6266 | done |
---|
6267 | done |
---|
6268 | IFS=$as_save_IFS |
---|
6269 | |
---|
6270 | fi |
---|
6271 | fi |
---|
6272 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
6273 | if test -n "$ac_ct_CC"; then |
---|
6274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
6275 | $as_echo "$ac_ct_CC" >&6; } |
---|
6276 | else |
---|
6277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6278 | $as_echo "no" >&6; } |
---|
6279 | fi |
---|
6280 | |
---|
6281 | if test "x$ac_ct_CC" = x; then |
---|
6282 | CC="" |
---|
6283 | else |
---|
6284 | case $cross_compiling:$ac_tool_warned in |
---|
6285 | yes:) |
---|
6286 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6287 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6288 | ac_tool_warned=yes ;; |
---|
6289 | esac |
---|
6290 | CC=$ac_ct_CC |
---|
6291 | fi |
---|
6292 | else |
---|
6293 | CC="$ac_cv_prog_CC" |
---|
6294 | fi |
---|
6295 | |
---|
6296 | if test -z "$CC"; then |
---|
6297 | if test -n "$ac_tool_prefix"; then |
---|
6298 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
6299 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6301 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6302 | if ${ac_cv_prog_CC+:} false; then : |
---|
6303 | $as_echo_n "(cached) " >&6 |
---|
6304 | else |
---|
6305 | if test -n "$CC"; then |
---|
6306 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
6307 | else |
---|
6308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6309 | for as_dir in $PATH |
---|
6310 | do |
---|
6311 | IFS=$as_save_IFS |
---|
6312 | test -z "$as_dir" && as_dir=. |
---|
6313 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6314 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6315 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
6316 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6317 | break 2 |
---|
6318 | fi |
---|
6319 | done |
---|
6320 | done |
---|
6321 | IFS=$as_save_IFS |
---|
6322 | |
---|
6323 | fi |
---|
6324 | fi |
---|
6325 | CC=$ac_cv_prog_CC |
---|
6326 | if test -n "$CC"; then |
---|
6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
6328 | $as_echo "$CC" >&6; } |
---|
6329 | else |
---|
6330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6331 | $as_echo "no" >&6; } |
---|
6332 | fi |
---|
6333 | |
---|
6334 | |
---|
6335 | fi |
---|
6336 | fi |
---|
6337 | if test -z "$CC"; then |
---|
6338 | # Extract the first word of "cc", so it can be a program name with args. |
---|
6339 | set dummy cc; ac_word=$2 |
---|
6340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6341 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6342 | if ${ac_cv_prog_CC+:} false; then : |
---|
6343 | $as_echo_n "(cached) " >&6 |
---|
6344 | else |
---|
6345 | if test -n "$CC"; then |
---|
6346 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
6347 | else |
---|
6348 | ac_prog_rejected=no |
---|
6349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6350 | for as_dir in $PATH |
---|
6351 | do |
---|
6352 | IFS=$as_save_IFS |
---|
6353 | test -z "$as_dir" && as_dir=. |
---|
6354 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6355 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6356 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
6357 | ac_prog_rejected=yes |
---|
6358 | continue |
---|
6359 | fi |
---|
6360 | ac_cv_prog_CC="cc" |
---|
6361 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6362 | break 2 |
---|
6363 | fi |
---|
6364 | done |
---|
6365 | done |
---|
6366 | IFS=$as_save_IFS |
---|
6367 | |
---|
6368 | if test $ac_prog_rejected = yes; then |
---|
6369 | # We found a bogon in the path, so make sure we never use it. |
---|
6370 | set dummy $ac_cv_prog_CC |
---|
6371 | shift |
---|
6372 | if test $# != 0; then |
---|
6373 | # We chose a different compiler from the bogus one. |
---|
6374 | # However, it has the same basename, so the bogon will be chosen |
---|
6375 | # first if we set CC to just the basename; use the full file name. |
---|
6376 | shift |
---|
6377 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
6378 | fi |
---|
6379 | fi |
---|
6380 | fi |
---|
6381 | fi |
---|
6382 | CC=$ac_cv_prog_CC |
---|
6383 | if test -n "$CC"; then |
---|
6384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
6385 | $as_echo "$CC" >&6; } |
---|
6386 | else |
---|
6387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6388 | $as_echo "no" >&6; } |
---|
6389 | fi |
---|
6390 | |
---|
6391 | |
---|
6392 | fi |
---|
6393 | if test -z "$CC"; then |
---|
6394 | if test -n "$ac_tool_prefix"; then |
---|
6395 | for ac_prog in cl.exe |
---|
6396 | do |
---|
6397 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
6398 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6400 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6401 | if ${ac_cv_prog_CC+:} false; then : |
---|
6402 | $as_echo_n "(cached) " >&6 |
---|
6403 | else |
---|
6404 | if test -n "$CC"; then |
---|
6405 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
6406 | else |
---|
6407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6408 | for as_dir in $PATH |
---|
6409 | do |
---|
6410 | IFS=$as_save_IFS |
---|
6411 | test -z "$as_dir" && as_dir=. |
---|
6412 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6413 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6414 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
6415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6416 | break 2 |
---|
6417 | fi |
---|
6418 | done |
---|
6419 | done |
---|
6420 | IFS=$as_save_IFS |
---|
6421 | |
---|
6422 | fi |
---|
6423 | fi |
---|
6424 | CC=$ac_cv_prog_CC |
---|
6425 | if test -n "$CC"; then |
---|
6426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
6427 | $as_echo "$CC" >&6; } |
---|
6428 | else |
---|
6429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6430 | $as_echo "no" >&6; } |
---|
6431 | fi |
---|
6432 | |
---|
6433 | |
---|
6434 | test -n "$CC" && break |
---|
6435 | done |
---|
6436 | fi |
---|
6437 | if test -z "$CC"; then |
---|
6438 | ac_ct_CC=$CC |
---|
6439 | for ac_prog in cl.exe |
---|
6440 | do |
---|
6441 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
6442 | set dummy $ac_prog; ac_word=$2 |
---|
6443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6444 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6445 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
6446 | $as_echo_n "(cached) " >&6 |
---|
6447 | else |
---|
6448 | if test -n "$ac_ct_CC"; then |
---|
6449 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
6450 | else |
---|
6451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6452 | for as_dir in $PATH |
---|
6453 | do |
---|
6454 | IFS=$as_save_IFS |
---|
6455 | test -z "$as_dir" && as_dir=. |
---|
6456 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6457 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6458 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
6459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6460 | break 2 |
---|
6461 | fi |
---|
6462 | done |
---|
6463 | done |
---|
6464 | IFS=$as_save_IFS |
---|
6465 | |
---|
6466 | fi |
---|
6467 | fi |
---|
6468 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
6469 | if test -n "$ac_ct_CC"; then |
---|
6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
6471 | $as_echo "$ac_ct_CC" >&6; } |
---|
6472 | else |
---|
6473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6474 | $as_echo "no" >&6; } |
---|
6475 | fi |
---|
6476 | |
---|
6477 | |
---|
6478 | test -n "$ac_ct_CC" && break |
---|
6479 | done |
---|
6480 | |
---|
6481 | if test "x$ac_ct_CC" = x; then |
---|
6482 | CC="" |
---|
6483 | else |
---|
6484 | case $cross_compiling:$ac_tool_warned in |
---|
6485 | yes:) |
---|
6486 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6487 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6488 | ac_tool_warned=yes ;; |
---|
6489 | esac |
---|
6490 | CC=$ac_ct_CC |
---|
6491 | fi |
---|
6492 | fi |
---|
6493 | |
---|
6494 | fi |
---|
6495 | |
---|
6496 | |
---|
6497 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
6498 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
6499 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
6500 | See \`config.log' for more details" "$LINENO" 5; } |
---|
6501 | |
---|
6502 | # Provide some information about the compiler. |
---|
6503 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
6504 | set X $ac_compile |
---|
6505 | ac_compiler=$2 |
---|
6506 | for ac_option in --version -v -V -qversion; do |
---|
6507 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
6508 | case "(($ac_try" in |
---|
6509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6510 | *) ac_try_echo=$ac_try;; |
---|
6511 | esac |
---|
6512 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
6513 | $as_echo "$ac_try_echo"; } >&5 |
---|
6514 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
6515 | ac_status=$? |
---|
6516 | if test -s conftest.err; then |
---|
6517 | sed '10a\ |
---|
6518 | ... rest of stderr output deleted ... |
---|
6519 | 10q' conftest.err >conftest.er1 |
---|
6520 | cat conftest.er1 >&5 |
---|
6521 | fi |
---|
6522 | rm -f conftest.er1 conftest.err |
---|
6523 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
6524 | test $ac_status = 0; } |
---|
6525 | done |
---|
6526 | |
---|
6527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
6528 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
6529 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
6530 | $as_echo_n "(cached) " >&6 |
---|
6531 | else |
---|
6532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6533 | /* end confdefs.h. */ |
---|
6534 | |
---|
6535 | int |
---|
6536 | main () |
---|
6537 | { |
---|
6538 | #ifndef __GNUC__ |
---|
6539 | choke me |
---|
6540 | #endif |
---|
6541 | |
---|
6542 | ; |
---|
6543 | return 0; |
---|
6544 | } |
---|
6545 | _ACEOF |
---|
6546 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6547 | ac_compiler_gnu=yes |
---|
6548 | else |
---|
6549 | ac_compiler_gnu=no |
---|
6550 | fi |
---|
6551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6552 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
6553 | |
---|
6554 | fi |
---|
6555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
6556 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
6557 | if test $ac_compiler_gnu = yes; then |
---|
6558 | GCC=yes |
---|
6559 | else |
---|
6560 | GCC= |
---|
6561 | fi |
---|
6562 | ac_test_CFLAGS=${CFLAGS+set} |
---|
6563 | ac_save_CFLAGS=$CFLAGS |
---|
6564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
6565 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
6566 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
6567 | $as_echo_n "(cached) " >&6 |
---|
6568 | else |
---|
6569 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
6570 | ac_c_werror_flag=yes |
---|
6571 | ac_cv_prog_cc_g=no |
---|
6572 | CFLAGS="-g" |
---|
6573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6574 | /* end confdefs.h. */ |
---|
6575 | |
---|
6576 | int |
---|
6577 | main () |
---|
6578 | { |
---|
6579 | |
---|
6580 | ; |
---|
6581 | return 0; |
---|
6582 | } |
---|
6583 | _ACEOF |
---|
6584 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6585 | ac_cv_prog_cc_g=yes |
---|
6586 | else |
---|
6587 | CFLAGS="" |
---|
6588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6589 | /* end confdefs.h. */ |
---|
6590 | |
---|
6591 | int |
---|
6592 | main () |
---|
6593 | { |
---|
6594 | |
---|
6595 | ; |
---|
6596 | return 0; |
---|
6597 | } |
---|
6598 | _ACEOF |
---|
6599 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6600 | |
---|
6601 | else |
---|
6602 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
6603 | CFLAGS="-g" |
---|
6604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6605 | /* end confdefs.h. */ |
---|
6606 | |
---|
6607 | int |
---|
6608 | main () |
---|
6609 | { |
---|
6610 | |
---|
6611 | ; |
---|
6612 | return 0; |
---|
6613 | } |
---|
6614 | _ACEOF |
---|
6615 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6616 | ac_cv_prog_cc_g=yes |
---|
6617 | fi |
---|
6618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6619 | fi |
---|
6620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6621 | fi |
---|
6622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6623 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
6624 | fi |
---|
6625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
6626 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
6627 | if test "$ac_test_CFLAGS" = set; then |
---|
6628 | CFLAGS=$ac_save_CFLAGS |
---|
6629 | elif test $ac_cv_prog_cc_g = yes; then |
---|
6630 | if test "$GCC" = yes; then |
---|
6631 | CFLAGS="-g -O2" |
---|
6632 | else |
---|
6633 | CFLAGS="-g" |
---|
6634 | fi |
---|
6635 | else |
---|
6636 | if test "$GCC" = yes; then |
---|
6637 | CFLAGS="-O2" |
---|
6638 | else |
---|
6639 | CFLAGS= |
---|
6640 | fi |
---|
6641 | fi |
---|
6642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
6643 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
6644 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
6645 | $as_echo_n "(cached) " >&6 |
---|
6646 | else |
---|
6647 | ac_cv_prog_cc_c89=no |
---|
6648 | ac_save_CC=$CC |
---|
6649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6650 | /* end confdefs.h. */ |
---|
6651 | #include <stdarg.h> |
---|
6652 | #include <stdio.h> |
---|
6653 | struct stat; |
---|
6654 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
6655 | struct buf { int x; }; |
---|
6656 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
6657 | static char *e (p, i) |
---|
6658 | char **p; |
---|
6659 | int i; |
---|
6660 | { |
---|
6661 | return p[i]; |
---|
6662 | } |
---|
6663 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
6664 | { |
---|
6665 | char *s; |
---|
6666 | va_list v; |
---|
6667 | va_start (v,p); |
---|
6668 | s = g (p, va_arg (v,int)); |
---|
6669 | va_end (v); |
---|
6670 | return s; |
---|
6671 | } |
---|
6672 | |
---|
6673 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
6674 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
6675 | These don't provoke an error unfortunately, instead are silently treated |
---|
6676 | as 'x'. The following induces an error, until -std is added to get |
---|
6677 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
6678 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
6679 | that's true only with -std. */ |
---|
6680 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
6681 | |
---|
6682 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
6683 | inside strings and character constants. */ |
---|
6684 | #define FOO(x) 'x' |
---|
6685 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
6686 | |
---|
6687 | int test (int i, double x); |
---|
6688 | struct s1 {int (*f) (int a);}; |
---|
6689 | struct s2 {int (*f) (double a);}; |
---|
6690 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
6691 | int argc; |
---|
6692 | char **argv; |
---|
6693 | int |
---|
6694 | main () |
---|
6695 | { |
---|
6696 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
6697 | ; |
---|
6698 | return 0; |
---|
6699 | } |
---|
6700 | _ACEOF |
---|
6701 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
6702 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
6703 | do |
---|
6704 | CC="$ac_save_CC $ac_arg" |
---|
6705 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6706 | ac_cv_prog_cc_c89=$ac_arg |
---|
6707 | fi |
---|
6708 | rm -f core conftest.err conftest.$ac_objext |
---|
6709 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
6710 | done |
---|
6711 | rm -f conftest.$ac_ext |
---|
6712 | CC=$ac_save_CC |
---|
6713 | |
---|
6714 | fi |
---|
6715 | # AC_CACHE_VAL |
---|
6716 | case "x$ac_cv_prog_cc_c89" in |
---|
6717 | x) |
---|
6718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
6719 | $as_echo "none needed" >&6; } ;; |
---|
6720 | xno) |
---|
6721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
6722 | $as_echo "unsupported" >&6; } ;; |
---|
6723 | *) |
---|
6724 | CC="$CC $ac_cv_prog_cc_c89" |
---|
6725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
6726 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
6727 | esac |
---|
6728 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
6729 | |
---|
6730 | fi |
---|
6731 | |
---|
6732 | ac_ext=c |
---|
6733 | ac_cpp='$CPP $CPPFLAGS' |
---|
6734 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6735 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6736 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6737 | |
---|
6738 | ac_ext=c |
---|
6739 | ac_cpp='$CPP $CPPFLAGS' |
---|
6740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
6744 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
6745 | # On Suns, sometimes $CPP names a directory. |
---|
6746 | if test -n "$CPP" && test -d "$CPP"; then |
---|
6747 | CPP= |
---|
6748 | fi |
---|
6749 | if test -z "$CPP"; then |
---|
6750 | if ${ac_cv_prog_CPP+:} false; then : |
---|
6751 | $as_echo_n "(cached) " >&6 |
---|
6752 | else |
---|
6753 | # Double quotes because CPP needs to be expanded |
---|
6754 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
6755 | do |
---|
6756 | ac_preproc_ok=false |
---|
6757 | for ac_c_preproc_warn_flag in '' yes |
---|
6758 | do |
---|
6759 | # Use a header file that comes with gcc, so configuring glibc |
---|
6760 | # with a fresh cross-compiler works. |
---|
6761 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6762 | # <limits.h> exists even on freestanding compilers. |
---|
6763 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6764 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6766 | /* end confdefs.h. */ |
---|
6767 | #ifdef __STDC__ |
---|
6768 | # include <limits.h> |
---|
6769 | #else |
---|
6770 | # include <assert.h> |
---|
6771 | #endif |
---|
6772 | Syntax error |
---|
6773 | _ACEOF |
---|
6774 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
6775 | |
---|
6776 | else |
---|
6777 | # Broken: fails on valid input. |
---|
6778 | continue |
---|
6779 | fi |
---|
6780 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
6781 | |
---|
6782 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
6783 | # can be detected and how. |
---|
6784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6785 | /* end confdefs.h. */ |
---|
6786 | #include <ac_nonexistent.h> |
---|
6787 | _ACEOF |
---|
6788 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
6789 | # Broken: success on invalid input. |
---|
6790 | continue |
---|
6791 | else |
---|
6792 | # Passes both tests. |
---|
6793 | ac_preproc_ok=: |
---|
6794 | break |
---|
6795 | fi |
---|
6796 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
6797 | |
---|
6798 | done |
---|
6799 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6800 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
6801 | if $ac_preproc_ok; then : |
---|
6802 | break |
---|
6803 | fi |
---|
6804 | |
---|
6805 | done |
---|
6806 | ac_cv_prog_CPP=$CPP |
---|
6807 | |
---|
6808 | fi |
---|
6809 | CPP=$ac_cv_prog_CPP |
---|
6810 | else |
---|
6811 | ac_cv_prog_CPP=$CPP |
---|
6812 | fi |
---|
6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
6814 | $as_echo "$CPP" >&6; } |
---|
6815 | ac_preproc_ok=false |
---|
6816 | for ac_c_preproc_warn_flag in '' yes |
---|
6817 | do |
---|
6818 | # Use a header file that comes with gcc, so configuring glibc |
---|
6819 | # with a fresh cross-compiler works. |
---|
6820 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6821 | # <limits.h> exists even on freestanding compilers. |
---|
6822 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6823 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6825 | /* end confdefs.h. */ |
---|
6826 | #ifdef __STDC__ |
---|
6827 | # include <limits.h> |
---|
6828 | #else |
---|
6829 | # include <assert.h> |
---|
6830 | #endif |
---|
6831 | Syntax error |
---|
6832 | _ACEOF |
---|
6833 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
6834 | |
---|
6835 | else |
---|
6836 | # Broken: fails on valid input. |
---|
6837 | continue |
---|
6838 | fi |
---|
6839 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
6840 | |
---|
6841 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
6842 | # can be detected and how. |
---|
6843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6844 | /* end confdefs.h. */ |
---|
6845 | #include <ac_nonexistent.h> |
---|
6846 | _ACEOF |
---|
6847 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
6848 | # Broken: success on invalid input. |
---|
6849 | continue |
---|
6850 | else |
---|
6851 | # Passes both tests. |
---|
6852 | ac_preproc_ok=: |
---|
6853 | break |
---|
6854 | fi |
---|
6855 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
6856 | |
---|
6857 | done |
---|
6858 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6859 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
6860 | if $ac_preproc_ok; then : |
---|
6861 | |
---|
6862 | else |
---|
6863 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
6864 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
6865 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
6866 | See \`config.log' for more details" "$LINENO" 5; } |
---|
6867 | fi |
---|
6868 | |
---|
6869 | ac_ext=c |
---|
6870 | ac_cpp='$CPP $CPPFLAGS' |
---|
6871 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6872 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6873 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6874 | |
---|
6875 | ac_ext=cpp |
---|
6876 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6877 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6878 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6879 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6880 | if test -z "$CXX"; then |
---|
6881 | if test -n "$CCC"; then |
---|
6882 | CXX=$CCC |
---|
6883 | else |
---|
6884 | if test -n "$ac_tool_prefix"; then |
---|
6885 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
6886 | do |
---|
6887 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
6888 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6890 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6891 | if ${ac_cv_prog_CXX+:} false; then : |
---|
6892 | $as_echo_n "(cached) " >&6 |
---|
6893 | else |
---|
6894 | if test -n "$CXX"; then |
---|
6895 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
6896 | else |
---|
6897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6898 | for as_dir in $PATH |
---|
6899 | do |
---|
6900 | IFS=$as_save_IFS |
---|
6901 | test -z "$as_dir" && as_dir=. |
---|
6902 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6903 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6904 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
6905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6906 | break 2 |
---|
6907 | fi |
---|
6908 | done |
---|
6909 | done |
---|
6910 | IFS=$as_save_IFS |
---|
6911 | |
---|
6912 | fi |
---|
6913 | fi |
---|
6914 | CXX=$ac_cv_prog_CXX |
---|
6915 | if test -n "$CXX"; then |
---|
6916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
6917 | $as_echo "$CXX" >&6; } |
---|
6918 | else |
---|
6919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6920 | $as_echo "no" >&6; } |
---|
6921 | fi |
---|
6922 | |
---|
6923 | |
---|
6924 | test -n "$CXX" && break |
---|
6925 | done |
---|
6926 | fi |
---|
6927 | if test -z "$CXX"; then |
---|
6928 | ac_ct_CXX=$CXX |
---|
6929 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
6930 | do |
---|
6931 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
6932 | set dummy $ac_prog; ac_word=$2 |
---|
6933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6934 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6935 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
6936 | $as_echo_n "(cached) " >&6 |
---|
6937 | else |
---|
6938 | if test -n "$ac_ct_CXX"; then |
---|
6939 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
6940 | else |
---|
6941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6942 | for as_dir in $PATH |
---|
6943 | do |
---|
6944 | IFS=$as_save_IFS |
---|
6945 | test -z "$as_dir" && as_dir=. |
---|
6946 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6947 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6948 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
6949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6950 | break 2 |
---|
6951 | fi |
---|
6952 | done |
---|
6953 | done |
---|
6954 | IFS=$as_save_IFS |
---|
6955 | |
---|
6956 | fi |
---|
6957 | fi |
---|
6958 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
6959 | if test -n "$ac_ct_CXX"; then |
---|
6960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
6961 | $as_echo "$ac_ct_CXX" >&6; } |
---|
6962 | else |
---|
6963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6964 | $as_echo "no" >&6; } |
---|
6965 | fi |
---|
6966 | |
---|
6967 | |
---|
6968 | test -n "$ac_ct_CXX" && break |
---|
6969 | done |
---|
6970 | |
---|
6971 | if test "x$ac_ct_CXX" = x; then |
---|
6972 | CXX="g++" |
---|
6973 | else |
---|
6974 | case $cross_compiling:$ac_tool_warned in |
---|
6975 | yes:) |
---|
6976 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6977 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6978 | ac_tool_warned=yes ;; |
---|
6979 | esac |
---|
6980 | CXX=$ac_ct_CXX |
---|
6981 | fi |
---|
6982 | fi |
---|
6983 | |
---|
6984 | fi |
---|
6985 | fi |
---|
6986 | # Provide some information about the compiler. |
---|
6987 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
6988 | set X $ac_compile |
---|
6989 | ac_compiler=$2 |
---|
6990 | for ac_option in --version -v -V -qversion; do |
---|
6991 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
6992 | case "(($ac_try" in |
---|
6993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6994 | *) ac_try_echo=$ac_try;; |
---|
6995 | esac |
---|
6996 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
6997 | $as_echo "$ac_try_echo"; } >&5 |
---|
6998 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
6999 | ac_status=$? |
---|
7000 | if test -s conftest.err; then |
---|
7001 | sed '10a\ |
---|
7002 | ... rest of stderr output deleted ... |
---|
7003 | 10q' conftest.err >conftest.er1 |
---|
7004 | cat conftest.er1 >&5 |
---|
7005 | fi |
---|
7006 | rm -f conftest.er1 conftest.err |
---|
7007 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7008 | test $ac_status = 0; } |
---|
7009 | done |
---|
7010 | |
---|
7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
7012 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
7013 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
7014 | $as_echo_n "(cached) " >&6 |
---|
7015 | else |
---|
7016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7017 | /* end confdefs.h. */ |
---|
7018 | |
---|
7019 | int |
---|
7020 | main () |
---|
7021 | { |
---|
7022 | #ifndef __GNUC__ |
---|
7023 | choke me |
---|
7024 | #endif |
---|
7025 | |
---|
7026 | ; |
---|
7027 | return 0; |
---|
7028 | } |
---|
7029 | _ACEOF |
---|
7030 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7031 | ac_compiler_gnu=yes |
---|
7032 | else |
---|
7033 | ac_compiler_gnu=no |
---|
7034 | fi |
---|
7035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7036 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
7037 | |
---|
7038 | fi |
---|
7039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
7040 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
7041 | if test $ac_compiler_gnu = yes; then |
---|
7042 | GXX=yes |
---|
7043 | else |
---|
7044 | GXX= |
---|
7045 | fi |
---|
7046 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
7047 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
7048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
7049 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
7050 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
7051 | $as_echo_n "(cached) " >&6 |
---|
7052 | else |
---|
7053 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
7054 | ac_cxx_werror_flag=yes |
---|
7055 | ac_cv_prog_cxx_g=no |
---|
7056 | CXXFLAGS="-g" |
---|
7057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7058 | /* end confdefs.h. */ |
---|
7059 | |
---|
7060 | int |
---|
7061 | main () |
---|
7062 | { |
---|
7063 | |
---|
7064 | ; |
---|
7065 | return 0; |
---|
7066 | } |
---|
7067 | _ACEOF |
---|
7068 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7069 | ac_cv_prog_cxx_g=yes |
---|
7070 | else |
---|
7071 | CXXFLAGS="" |
---|
7072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7073 | /* end confdefs.h. */ |
---|
7074 | |
---|
7075 | int |
---|
7076 | main () |
---|
7077 | { |
---|
7078 | |
---|
7079 | ; |
---|
7080 | return 0; |
---|
7081 | } |
---|
7082 | _ACEOF |
---|
7083 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7084 | |
---|
7085 | else |
---|
7086 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
7087 | CXXFLAGS="-g" |
---|
7088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7089 | /* end confdefs.h. */ |
---|
7090 | |
---|
7091 | int |
---|
7092 | main () |
---|
7093 | { |
---|
7094 | |
---|
7095 | ; |
---|
7096 | return 0; |
---|
7097 | } |
---|
7098 | _ACEOF |
---|
7099 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7100 | ac_cv_prog_cxx_g=yes |
---|
7101 | fi |
---|
7102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7103 | fi |
---|
7104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7105 | fi |
---|
7106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7107 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
7108 | fi |
---|
7109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
7110 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
7111 | if test "$ac_test_CXXFLAGS" = set; then |
---|
7112 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
7113 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
7114 | if test "$GXX" = yes; then |
---|
7115 | CXXFLAGS="-g -O2" |
---|
7116 | else |
---|
7117 | CXXFLAGS="-g" |
---|
7118 | fi |
---|
7119 | else |
---|
7120 | if test "$GXX" = yes; then |
---|
7121 | CXXFLAGS="-O2" |
---|
7122 | else |
---|
7123 | CXXFLAGS= |
---|
7124 | fi |
---|
7125 | fi |
---|
7126 | ac_ext=c |
---|
7127 | ac_cpp='$CPP $CPPFLAGS' |
---|
7128 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7129 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7130 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7131 | |
---|
7132 | ac_ext=cpp |
---|
7133 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
7134 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7135 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7136 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
---|
7138 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
---|
7139 | if test -z "$CXXCPP"; then |
---|
7140 | if ${ac_cv_prog_CXXCPP+:} false; then : |
---|
7141 | $as_echo_n "(cached) " >&6 |
---|
7142 | else |
---|
7143 | # Double quotes because CXXCPP needs to be expanded |
---|
7144 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
7145 | do |
---|
7146 | ac_preproc_ok=false |
---|
7147 | for ac_cxx_preproc_warn_flag in '' yes |
---|
7148 | do |
---|
7149 | # Use a header file that comes with gcc, so configuring glibc |
---|
7150 | # with a fresh cross-compiler works. |
---|
7151 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
7152 | # <limits.h> exists even on freestanding compilers. |
---|
7153 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
7154 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
7155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7156 | /* end confdefs.h. */ |
---|
7157 | #ifdef __STDC__ |
---|
7158 | # include <limits.h> |
---|
7159 | #else |
---|
7160 | # include <assert.h> |
---|
7161 | #endif |
---|
7162 | Syntax error |
---|
7163 | _ACEOF |
---|
7164 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
7165 | |
---|
7166 | else |
---|
7167 | # Broken: fails on valid input. |
---|
7168 | continue |
---|
7169 | fi |
---|
7170 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
7171 | |
---|
7172 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
7173 | # can be detected and how. |
---|
7174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7175 | /* end confdefs.h. */ |
---|
7176 | #include <ac_nonexistent.h> |
---|
7177 | _ACEOF |
---|
7178 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
7179 | # Broken: success on invalid input. |
---|
7180 | continue |
---|
7181 | else |
---|
7182 | # Passes both tests. |
---|
7183 | ac_preproc_ok=: |
---|
7184 | break |
---|
7185 | fi |
---|
7186 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
7187 | |
---|
7188 | done |
---|
7189 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
7190 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
7191 | if $ac_preproc_ok; then : |
---|
7192 | break |
---|
7193 | fi |
---|
7194 | |
---|
7195 | done |
---|
7196 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
7197 | |
---|
7198 | fi |
---|
7199 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
7200 | else |
---|
7201 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
7202 | fi |
---|
7203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
---|
7204 | $as_echo "$CXXCPP" >&6; } |
---|
7205 | ac_preproc_ok=false |
---|
7206 | for ac_cxx_preproc_warn_flag in '' yes |
---|
7207 | do |
---|
7208 | # Use a header file that comes with gcc, so configuring glibc |
---|
7209 | # with a fresh cross-compiler works. |
---|
7210 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
7211 | # <limits.h> exists even on freestanding compilers. |
---|
7212 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
7213 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
7214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7215 | /* end confdefs.h. */ |
---|
7216 | #ifdef __STDC__ |
---|
7217 | # include <limits.h> |
---|
7218 | #else |
---|
7219 | # include <assert.h> |
---|
7220 | #endif |
---|
7221 | Syntax error |
---|
7222 | _ACEOF |
---|
7223 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
7224 | |
---|
7225 | else |
---|
7226 | # Broken: fails on valid input. |
---|
7227 | continue |
---|
7228 | fi |
---|
7229 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
7230 | |
---|
7231 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
7232 | # can be detected and how. |
---|
7233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7234 | /* end confdefs.h. */ |
---|
7235 | #include <ac_nonexistent.h> |
---|
7236 | _ACEOF |
---|
7237 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
7238 | # Broken: success on invalid input. |
---|
7239 | continue |
---|
7240 | else |
---|
7241 | # Passes both tests. |
---|
7242 | ac_preproc_ok=: |
---|
7243 | break |
---|
7244 | fi |
---|
7245 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
7246 | |
---|
7247 | done |
---|
7248 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
7249 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
7250 | if $ac_preproc_ok; then : |
---|
7251 | |
---|
7252 | else |
---|
7253 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
7254 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
7255 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
7256 | See \`config.log' for more details" "$LINENO" 5; } |
---|
7257 | fi |
---|
7258 | |
---|
7259 | ac_ext=c |
---|
7260 | ac_cpp='$CPP $CPPFLAGS' |
---|
7261 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7262 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7263 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7264 | |
---|
7265 | ac_ext=cpp |
---|
7266 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
7267 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7268 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7269 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
7270 | if test -z "$CXX"; then |
---|
7271 | if test -n "$CCC"; then |
---|
7272 | CXX=$CCC |
---|
7273 | else |
---|
7274 | if test -n "$ac_tool_prefix"; then |
---|
7275 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
7276 | do |
---|
7277 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
7278 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
7279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7280 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7281 | if ${ac_cv_prog_CXX+:} false; then : |
---|
7282 | $as_echo_n "(cached) " >&6 |
---|
7283 | else |
---|
7284 | if test -n "$CXX"; then |
---|
7285 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
7286 | else |
---|
7287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7288 | for as_dir in $PATH |
---|
7289 | do |
---|
7290 | IFS=$as_save_IFS |
---|
7291 | test -z "$as_dir" && as_dir=. |
---|
7292 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7293 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7294 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
7295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7296 | break 2 |
---|
7297 | fi |
---|
7298 | done |
---|
7299 | done |
---|
7300 | IFS=$as_save_IFS |
---|
7301 | |
---|
7302 | fi |
---|
7303 | fi |
---|
7304 | CXX=$ac_cv_prog_CXX |
---|
7305 | if test -n "$CXX"; then |
---|
7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
7307 | $as_echo "$CXX" >&6; } |
---|
7308 | else |
---|
7309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7310 | $as_echo "no" >&6; } |
---|
7311 | fi |
---|
7312 | |
---|
7313 | |
---|
7314 | test -n "$CXX" && break |
---|
7315 | done |
---|
7316 | fi |
---|
7317 | if test -z "$CXX"; then |
---|
7318 | ac_ct_CXX=$CXX |
---|
7319 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
7320 | do |
---|
7321 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
7322 | set dummy $ac_prog; ac_word=$2 |
---|
7323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7324 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7325 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
7326 | $as_echo_n "(cached) " >&6 |
---|
7327 | else |
---|
7328 | if test -n "$ac_ct_CXX"; then |
---|
7329 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
7330 | else |
---|
7331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7332 | for as_dir in $PATH |
---|
7333 | do |
---|
7334 | IFS=$as_save_IFS |
---|
7335 | test -z "$as_dir" && as_dir=. |
---|
7336 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7337 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7338 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
7339 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7340 | break 2 |
---|
7341 | fi |
---|
7342 | done |
---|
7343 | done |
---|
7344 | IFS=$as_save_IFS |
---|
7345 | |
---|
7346 | fi |
---|
7347 | fi |
---|
7348 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
7349 | if test -n "$ac_ct_CXX"; then |
---|
7350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
7351 | $as_echo "$ac_ct_CXX" >&6; } |
---|
7352 | else |
---|
7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7354 | $as_echo "no" >&6; } |
---|
7355 | fi |
---|
7356 | |
---|
7357 | |
---|
7358 | test -n "$ac_ct_CXX" && break |
---|
7359 | done |
---|
7360 | |
---|
7361 | if test "x$ac_ct_CXX" = x; then |
---|
7362 | CXX="g++" |
---|
7363 | else |
---|
7364 | case $cross_compiling:$ac_tool_warned in |
---|
7365 | yes:) |
---|
7366 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
7367 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
7368 | ac_tool_warned=yes ;; |
---|
7369 | esac |
---|
7370 | CXX=$ac_ct_CXX |
---|
7371 | fi |
---|
7372 | fi |
---|
7373 | |
---|
7374 | fi |
---|
7375 | fi |
---|
7376 | # Provide some information about the compiler. |
---|
7377 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
7378 | set X $ac_compile |
---|
7379 | ac_compiler=$2 |
---|
7380 | for ac_option in --version -v -V -qversion; do |
---|
7381 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
7382 | case "(($ac_try" in |
---|
7383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7384 | *) ac_try_echo=$ac_try;; |
---|
7385 | esac |
---|
7386 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
7387 | $as_echo "$ac_try_echo"; } >&5 |
---|
7388 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
7389 | ac_status=$? |
---|
7390 | if test -s conftest.err; then |
---|
7391 | sed '10a\ |
---|
7392 | ... rest of stderr output deleted ... |
---|
7393 | 10q' conftest.err >conftest.er1 |
---|
7394 | cat conftest.er1 >&5 |
---|
7395 | fi |
---|
7396 | rm -f conftest.er1 conftest.err |
---|
7397 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
7398 | test $ac_status = 0; } |
---|
7399 | done |
---|
7400 | |
---|
7401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
7402 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
7403 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
7404 | $as_echo_n "(cached) " >&6 |
---|
7405 | else |
---|
7406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7407 | /* end confdefs.h. */ |
---|
7408 | |
---|
7409 | int |
---|
7410 | main () |
---|
7411 | { |
---|
7412 | #ifndef __GNUC__ |
---|
7413 | choke me |
---|
7414 | #endif |
---|
7415 | |
---|
7416 | ; |
---|
7417 | return 0; |
---|
7418 | } |
---|
7419 | _ACEOF |
---|
7420 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7421 | ac_compiler_gnu=yes |
---|
7422 | else |
---|
7423 | ac_compiler_gnu=no |
---|
7424 | fi |
---|
7425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7426 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
7427 | |
---|
7428 | fi |
---|
7429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
7430 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
7431 | if test $ac_compiler_gnu = yes; then |
---|
7432 | GXX=yes |
---|
7433 | else |
---|
7434 | GXX= |
---|
7435 | fi |
---|
7436 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
7437 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
7438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
7439 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
7440 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
7441 | $as_echo_n "(cached) " >&6 |
---|
7442 | else |
---|
7443 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
7444 | ac_cxx_werror_flag=yes |
---|
7445 | ac_cv_prog_cxx_g=no |
---|
7446 | CXXFLAGS="-g" |
---|
7447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7448 | /* end confdefs.h. */ |
---|
7449 | |
---|
7450 | int |
---|
7451 | main () |
---|
7452 | { |
---|
7453 | |
---|
7454 | ; |
---|
7455 | return 0; |
---|
7456 | } |
---|
7457 | _ACEOF |
---|
7458 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7459 | ac_cv_prog_cxx_g=yes |
---|
7460 | else |
---|
7461 | CXXFLAGS="" |
---|
7462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7463 | /* end confdefs.h. */ |
---|
7464 | |
---|
7465 | int |
---|
7466 | main () |
---|
7467 | { |
---|
7468 | |
---|
7469 | ; |
---|
7470 | return 0; |
---|
7471 | } |
---|
7472 | _ACEOF |
---|
7473 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7474 | |
---|
7475 | else |
---|
7476 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
7477 | CXXFLAGS="-g" |
---|
7478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7479 | /* end confdefs.h. */ |
---|
7480 | |
---|
7481 | int |
---|
7482 | main () |
---|
7483 | { |
---|
7484 | |
---|
7485 | ; |
---|
7486 | return 0; |
---|
7487 | } |
---|
7488 | _ACEOF |
---|
7489 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7490 | ac_cv_prog_cxx_g=yes |
---|
7491 | fi |
---|
7492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7493 | fi |
---|
7494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7495 | fi |
---|
7496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7497 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
7498 | fi |
---|
7499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
7500 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
7501 | if test "$ac_test_CXXFLAGS" = set; then |
---|
7502 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
7503 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
7504 | if test "$GXX" = yes; then |
---|
7505 | CXXFLAGS="-g -O2" |
---|
7506 | else |
---|
7507 | CXXFLAGS="-g" |
---|
7508 | fi |
---|
7509 | else |
---|
7510 | if test "$GXX" = yes; then |
---|
7511 | CXXFLAGS="-O2" |
---|
7512 | else |
---|
7513 | CXXFLAGS= |
---|
7514 | fi |
---|
7515 | fi |
---|
7516 | ac_ext=c |
---|
7517 | ac_cpp='$CPP $CPPFLAGS' |
---|
7518 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7519 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7520 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7521 | |
---|
7522 | ac_ext=cpp |
---|
7523 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
7524 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7525 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7526 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
7527 | |
---|
7528 | |
---|
7529 | |
---|
7530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
---|
7531 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
---|
7532 | if ${ac_cv_c_bigendian+:} false; then : |
---|
7533 | $as_echo_n "(cached) " >&6 |
---|
7534 | else |
---|
7535 | ac_cv_c_bigendian=unknown |
---|
7536 | # See if we're dealing with a universal compiler. |
---|
7537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7538 | /* end confdefs.h. */ |
---|
7539 | #ifndef __APPLE_CC__ |
---|
7540 | not a universal capable compiler |
---|
7541 | #endif |
---|
7542 | typedef int dummy; |
---|
7543 | |
---|
7544 | _ACEOF |
---|
7545 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7546 | |
---|
7547 | # Check for potential -arch flags. It is not universal unless |
---|
7548 | # there are at least two -arch flags with different values. |
---|
7549 | ac_arch= |
---|
7550 | ac_prev= |
---|
7551 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
---|
7552 | if test -n "$ac_prev"; then |
---|
7553 | case $ac_word in |
---|
7554 | i?86 | x86_64 | ppc | ppc64) |
---|
7555 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
---|
7556 | ac_arch=$ac_word |
---|
7557 | else |
---|
7558 | ac_cv_c_bigendian=universal |
---|
7559 | break |
---|
7560 | fi |
---|
7561 | ;; |
---|
7562 | esac |
---|
7563 | ac_prev= |
---|
7564 | elif test "x$ac_word" = "x-arch"; then |
---|
7565 | ac_prev=arch |
---|
7566 | fi |
---|
7567 | done |
---|
7568 | fi |
---|
7569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7570 | if test $ac_cv_c_bigendian = unknown; then |
---|
7571 | # See if sys/param.h defines the BYTE_ORDER macro. |
---|
7572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7573 | /* end confdefs.h. */ |
---|
7574 | #include <sys/types.h> |
---|
7575 | #include <sys/param.h> |
---|
7576 | |
---|
7577 | int |
---|
7578 | main () |
---|
7579 | { |
---|
7580 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
---|
7581 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
---|
7582 | && LITTLE_ENDIAN) |
---|
7583 | bogus endian macros |
---|
7584 | #endif |
---|
7585 | |
---|
7586 | ; |
---|
7587 | return 0; |
---|
7588 | } |
---|
7589 | _ACEOF |
---|
7590 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7591 | # It does; now see whether it defined to BIG_ENDIAN or not. |
---|
7592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7593 | /* end confdefs.h. */ |
---|
7594 | #include <sys/types.h> |
---|
7595 | #include <sys/param.h> |
---|
7596 | |
---|
7597 | int |
---|
7598 | main () |
---|
7599 | { |
---|
7600 | #if BYTE_ORDER != BIG_ENDIAN |
---|
7601 | not big endian |
---|
7602 | #endif |
---|
7603 | |
---|
7604 | ; |
---|
7605 | return 0; |
---|
7606 | } |
---|
7607 | _ACEOF |
---|
7608 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7609 | ac_cv_c_bigendian=yes |
---|
7610 | else |
---|
7611 | ac_cv_c_bigendian=no |
---|
7612 | fi |
---|
7613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7614 | fi |
---|
7615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7616 | fi |
---|
7617 | if test $ac_cv_c_bigendian = unknown; then |
---|
7618 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
---|
7619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7620 | /* end confdefs.h. */ |
---|
7621 | #include <limits.h> |
---|
7622 | |
---|
7623 | int |
---|
7624 | main () |
---|
7625 | { |
---|
7626 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
---|
7627 | bogus endian macros |
---|
7628 | #endif |
---|
7629 | |
---|
7630 | ; |
---|
7631 | return 0; |
---|
7632 | } |
---|
7633 | _ACEOF |
---|
7634 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7635 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
---|
7636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7637 | /* end confdefs.h. */ |
---|
7638 | #include <limits.h> |
---|
7639 | |
---|
7640 | int |
---|
7641 | main () |
---|
7642 | { |
---|
7643 | #ifndef _BIG_ENDIAN |
---|
7644 | not big endian |
---|
7645 | #endif |
---|
7646 | |
---|
7647 | ; |
---|
7648 | return 0; |
---|
7649 | } |
---|
7650 | _ACEOF |
---|
7651 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7652 | ac_cv_c_bigendian=yes |
---|
7653 | else |
---|
7654 | ac_cv_c_bigendian=no |
---|
7655 | fi |
---|
7656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7657 | fi |
---|
7658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7659 | fi |
---|
7660 | if test $ac_cv_c_bigendian = unknown; then |
---|
7661 | # Compile a test program. |
---|
7662 | if test "$cross_compiling" = yes; then : |
---|
7663 | # Try to guess by grepping values from an object file. |
---|
7664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7665 | /* end confdefs.h. */ |
---|
7666 | short int ascii_mm[] = |
---|
7667 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
---|
7668 | short int ascii_ii[] = |
---|
7669 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
---|
7670 | int use_ascii (int i) { |
---|
7671 | return ascii_mm[i] + ascii_ii[i]; |
---|
7672 | } |
---|
7673 | short int ebcdic_ii[] = |
---|
7674 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
---|
7675 | short int ebcdic_mm[] = |
---|
7676 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
---|
7677 | int use_ebcdic (int i) { |
---|
7678 | return ebcdic_mm[i] + ebcdic_ii[i]; |
---|
7679 | } |
---|
7680 | extern int foo; |
---|
7681 | |
---|
7682 | int |
---|
7683 | main () |
---|
7684 | { |
---|
7685 | return use_ascii (foo) == use_ebcdic (foo); |
---|
7686 | ; |
---|
7687 | return 0; |
---|
7688 | } |
---|
7689 | _ACEOF |
---|
7690 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7691 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
---|
7692 | ac_cv_c_bigendian=yes |
---|
7693 | fi |
---|
7694 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
---|
7695 | if test "$ac_cv_c_bigendian" = unknown; then |
---|
7696 | ac_cv_c_bigendian=no |
---|
7697 | else |
---|
7698 | # finding both strings is unlikely to happen, but who knows? |
---|
7699 | ac_cv_c_bigendian=unknown |
---|
7700 | fi |
---|
7701 | fi |
---|
7702 | fi |
---|
7703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7704 | else |
---|
7705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7706 | /* end confdefs.h. */ |
---|
7707 | $ac_includes_default |
---|
7708 | int |
---|
7709 | main () |
---|
7710 | { |
---|
7711 | |
---|
7712 | /* Are we little or big endian? From Harbison&Steele. */ |
---|
7713 | union |
---|
7714 | { |
---|
7715 | long int l; |
---|
7716 | char c[sizeof (long int)]; |
---|
7717 | } u; |
---|
7718 | u.l = 1; |
---|
7719 | return u.c[sizeof (long int) - 1] == 1; |
---|
7720 | |
---|
7721 | ; |
---|
7722 | return 0; |
---|
7723 | } |
---|
7724 | _ACEOF |
---|
7725 | if ac_fn_cxx_try_run "$LINENO"; then : |
---|
7726 | ac_cv_c_bigendian=no |
---|
7727 | else |
---|
7728 | ac_cv_c_bigendian=yes |
---|
7729 | fi |
---|
7730 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
7731 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
7732 | fi |
---|
7733 | |
---|
7734 | fi |
---|
7735 | fi |
---|
7736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
---|
7737 | $as_echo "$ac_cv_c_bigendian" >&6; } |
---|
7738 | case $ac_cv_c_bigendian in #( |
---|
7739 | yes) |
---|
7740 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
---|
7741 | ;; #( |
---|
7742 | no) |
---|
7743 | ;; #( |
---|
7744 | universal) |
---|
7745 | |
---|
7746 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
---|
7747 | |
---|
7748 | ;; #( |
---|
7749 | *) |
---|
7750 | as_fn_error $? "unknown endianness |
---|
7751 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
---|
7752 | esac |
---|
7753 | |
---|
7754 | |
---|
7755 | # Save the values as shell variables so that we can substitute them |
---|
7756 | # into bltHash.h for situtations where there's no bltInt.h. |
---|
7757 | |
---|
7758 | LD_RPATH=""; |
---|
7759 | |
---|
7760 | # |
---|
7761 | # Need to check for the following dependencies: |
---|
7762 | # Rappture headers and library (done) |
---|
7763 | # Tcl headers and library (done) |
---|
7764 | # GL headers and library |
---|
7765 | # GLEW header and library |
---|
7766 | # pthread library |
---|
7767 | # |
---|
7768 | |
---|
7769 | TCL_VERSION="8.4" |
---|
7770 | for dir in \ |
---|
7771 | ${exec_prefix} \ |
---|
7772 | ${exec_prefix}/lib ; do |
---|
7773 | tclconfig="${dir}/tclConfig.sh" |
---|
7774 | if test -f "$tclconfig" ; then |
---|
7775 | . $tclconfig |
---|
7776 | break |
---|
7777 | fi |
---|
7778 | done |
---|
7779 | TCL_INC_SPEC="$TCL_INCLUDE_SPEC" |
---|
7780 | |
---|
7781 | if test "x$with_tcllib" != "x" ; then |
---|
7782 | tclconfig="${with_tcllib}/tclConfig.sh" |
---|
7783 | if test -f "$tclconfig" ; then |
---|
7784 | . $tclconfig |
---|
7785 | fi |
---|
7786 | TCL_LIB_SPEC="-L${with_tcllib} -ltcl${TCL_VERSION}" |
---|
7787 | fi |
---|
7788 | if test "x$with_tclinclude" != "x" ; then |
---|
7789 | TCL_INC_SPEC="-I${with_tclinclude}" |
---|
7790 | fi |
---|
7791 | |
---|
7792 | |
---|
7793 | ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glew.h" "ac_cv_header_GL_glew_h" "$ac_includes_default" |
---|
7794 | if test "x$ac_cv_header_GL_glew_h" = xyes; then : |
---|
7795 | |
---|
7796 | fi |
---|
7797 | |
---|
7798 | |
---|
7799 | |
---|
7800 | for ac_header in stdio.h unistd.h stdlib.h string.h sys/types.h |
---|
7801 | do : |
---|
7802 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7803 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
7804 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
7805 | cat >>confdefs.h <<_ACEOF |
---|
7806 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7807 | _ACEOF |
---|
7808 | |
---|
7809 | fi |
---|
7810 | |
---|
7811 | done |
---|
7812 | |
---|
7813 | for ac_header in sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h |
---|
7814 | do : |
---|
7815 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7816 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
7817 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
7818 | cat >>confdefs.h <<_ACEOF |
---|
7819 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7820 | _ACEOF |
---|
7821 | |
---|
7822 | fi |
---|
7823 | |
---|
7824 | done |
---|
7825 | |
---|
7826 | |
---|
7827 | for ac_func in accept4 |
---|
7828 | do : |
---|
7829 | ac_fn_cxx_check_func "$LINENO" "accept4" "ac_cv_func_accept4" |
---|
7830 | if test "x$ac_cv_func_accept4" = xyes; then : |
---|
7831 | cat >>confdefs.h <<_ACEOF |
---|
7832 | #define HAVE_ACCEPT4 1 |
---|
7833 | _ACEOF |
---|
7834 | |
---|
7835 | fi |
---|
7836 | done |
---|
7837 | |
---|
7838 | for ac_func in mkstemps |
---|
7839 | do : |
---|
7840 | ac_fn_cxx_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps" |
---|
7841 | if test "x$ac_cv_func_mkstemps" = xyes; then : |
---|
7842 | cat >>confdefs.h <<_ACEOF |
---|
7843 | #define HAVE_MKSTEMPS 1 |
---|
7844 | _ACEOF |
---|
7845 | |
---|
7846 | fi |
---|
7847 | done |
---|
7848 | |
---|
7849 | |
---|
7850 | |
---|
7851 | |
---|
7852 | |
---|
7853 | |
---|
7854 | |
---|
7855 | |
---|
7856 | |
---|
7857 | |
---|
7858 | |
---|
7859 | ac_config_files="$ac_config_files Makefile" |
---|
7860 | |
---|
7861 | cat >confcache <<\_ACEOF |
---|
7862 | # This file is a shell script that caches the results of configure |
---|
7863 | # tests run on this system so they can be shared between configure |
---|
7864 | # scripts and configure runs, see configure's option --config-cache. |
---|
7865 | # It is not useful on other systems. If it contains results you don't |
---|
7866 | # want to keep, you may remove or edit it. |
---|
7867 | # |
---|
7868 | # config.status only pays attention to the cache file if you give it |
---|
7869 | # the --recheck option to rerun configure. |
---|
7870 | # |
---|
7871 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
7872 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
7873 | # following values. |
---|
7874 | |
---|
7875 | _ACEOF |
---|
7876 | |
---|
7877 | # The following way of writing the cache mishandles newlines in values, |
---|
7878 | # but we know of no workaround that is simple, portable, and efficient. |
---|
7879 | # So, we kill variables containing newlines. |
---|
7880 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
7881 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
7882 | ( |
---|
7883 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
7884 | eval ac_val=\$$ac_var |
---|
7885 | case $ac_val in #( |
---|
7886 | *${as_nl}*) |
---|
7887 | case $ac_var in #( |
---|
7888 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
7889 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
7890 | esac |
---|
7891 | case $ac_var in #( |
---|
7892 | _ | IFS | as_nl) ;; #( |
---|
7893 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
7894 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
7895 | esac ;; |
---|
7896 | esac |
---|
7897 | done |
---|
7898 | |
---|
7899 | (set) 2>&1 | |
---|
7900 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
7901 | *${as_nl}ac_space=\ *) |
---|
7902 | # `set' does not quote correctly, so add quotes: double-quote |
---|
7903 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
7904 | sed -n \ |
---|
7905 | "s/'/'\\\\''/g; |
---|
7906 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
7907 | ;; #( |
---|
7908 | *) |
---|
7909 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
7910 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
7911 | ;; |
---|
7912 | esac | |
---|
7913 | sort |
---|
7914 | ) | |
---|
7915 | sed ' |
---|
7916 | /^ac_cv_env_/b end |
---|
7917 | t clear |
---|
7918 | :clear |
---|
7919 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
7920 | t end |
---|
7921 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
7922 | :end' >>confcache |
---|
7923 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
7924 | if test -w "$cache_file"; then |
---|
7925 | if test "x$cache_file" != "x/dev/null"; then |
---|
7926 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
7927 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
7928 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
7929 | cat confcache >"$cache_file" |
---|
7930 | else |
---|
7931 | case $cache_file in #( |
---|
7932 | */* | ?:*) |
---|
7933 | mv -f confcache "$cache_file"$$ && |
---|
7934 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
7935 | *) |
---|
7936 | mv -f confcache "$cache_file" ;; |
---|
7937 | esac |
---|
7938 | fi |
---|
7939 | fi |
---|
7940 | else |
---|
7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
7942 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
7943 | fi |
---|
7944 | fi |
---|
7945 | rm -f confcache |
---|
7946 | |
---|
7947 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
7948 | # Let make expand exec_prefix. |
---|
7949 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
7950 | |
---|
7951 | # Transform confdefs.h into DEFS. |
---|
7952 | # Protect against shell expansion while executing Makefile rules. |
---|
7953 | # Protect against Makefile macro expansion. |
---|
7954 | # |
---|
7955 | # If the first sed substitution is executed (which looks for macros that |
---|
7956 | # take arguments), then branch to the quote section. Otherwise, |
---|
7957 | # look for a macro that doesn't take arguments. |
---|
7958 | ac_script=' |
---|
7959 | :mline |
---|
7960 | /\\$/{ |
---|
7961 | N |
---|
7962 | s,\\\n,, |
---|
7963 | b mline |
---|
7964 | } |
---|
7965 | t clear |
---|
7966 | :clear |
---|
7967 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
---|
7968 | t quote |
---|
7969 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
---|
7970 | t quote |
---|
7971 | b any |
---|
7972 | :quote |
---|
7973 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
---|
7974 | s/\[/\\&/g |
---|
7975 | s/\]/\\&/g |
---|
7976 | s/\$/$$/g |
---|
7977 | H |
---|
7978 | :any |
---|
7979 | ${ |
---|
7980 | g |
---|
7981 | s/^\n// |
---|
7982 | s/\n/ /g |
---|
7983 | p |
---|
7984 | } |
---|
7985 | ' |
---|
7986 | DEFS=`sed -n "$ac_script" confdefs.h` |
---|
7987 | |
---|
7988 | |
---|
7989 | ac_libobjs= |
---|
7990 | ac_ltlibobjs= |
---|
7991 | U= |
---|
7992 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
7993 | # 1. Remove the extension, and $U if already installed. |
---|
7994 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
7995 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
7996 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
7997 | # will be set to the directory where LIBOBJS objects are built. |
---|
7998 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
7999 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
8000 | done |
---|
8001 | LIBOBJS=$ac_libobjs |
---|
8002 | |
---|
8003 | LTLIBOBJS=$ac_ltlibobjs |
---|
8004 | |
---|
8005 | |
---|
8006 | |
---|
8007 | |
---|
8008 | : "${CONFIG_STATUS=./config.status}" |
---|
8009 | ac_write_fail=0 |
---|
8010 | ac_clean_files_save=$ac_clean_files |
---|
8011 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
8012 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
8013 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
8014 | as_write_fail=0 |
---|
8015 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
8016 | #! $SHELL |
---|
8017 | # Generated by $as_me. |
---|
8018 | # Run this file to recreate the current configuration. |
---|
8019 | # Compiler output produced by configure, useful for debugging |
---|
8020 | # configure, is in config.log if it exists. |
---|
8021 | |
---|
8022 | debug=false |
---|
8023 | ac_cs_recheck=false |
---|
8024 | ac_cs_silent=false |
---|
8025 | |
---|
8026 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
8027 | export SHELL |
---|
8028 | _ASEOF |
---|
8029 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
8030 | ## -------------------- ## |
---|
8031 | ## M4sh Initialization. ## |
---|
8032 | ## -------------------- ## |
---|
8033 | |
---|
8034 | # Be more Bourne compatible |
---|
8035 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
8036 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
8037 | emulate sh |
---|
8038 | NULLCMD=: |
---|
8039 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
8040 | # is contrary to our usage. Disable this feature. |
---|
8041 | alias -g '${1+"$@"}'='"$@"' |
---|
8042 | setopt NO_GLOB_SUBST |
---|
8043 | else |
---|
8044 | case `(set -o) 2>/dev/null` in #( |
---|
8045 | *posix*) : |
---|
8046 | set -o posix ;; #( |
---|
8047 | *) : |
---|
8048 | ;; |
---|
8049 | esac |
---|
8050 | fi |
---|
8051 | |
---|
8052 | |
---|
8053 | as_nl=' |
---|
8054 | ' |
---|
8055 | export as_nl |
---|
8056 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
8057 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
8058 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
8059 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
8060 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
8061 | # but without wasting forks for bash or zsh. |
---|
8062 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
8063 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
8064 | as_echo='print -r --' |
---|
8065 | as_echo_n='print -rn --' |
---|
8066 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
8067 | as_echo='printf %s\n' |
---|
8068 | as_echo_n='printf %s' |
---|
8069 | else |
---|
8070 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
8071 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
8072 | as_echo_n='/usr/ucb/echo -n' |
---|
8073 | else |
---|
8074 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
8075 | as_echo_n_body='eval |
---|
8076 | arg=$1; |
---|
8077 | case $arg in #( |
---|
8078 | *"$as_nl"*) |
---|
8079 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
8080 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
8081 | esac; |
---|
8082 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
8083 | ' |
---|
8084 | export as_echo_n_body |
---|
8085 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
8086 | fi |
---|
8087 | export as_echo_body |
---|
8088 | as_echo='sh -c $as_echo_body as_echo' |
---|
8089 | fi |
---|
8090 | |
---|
8091 | # The user is always right. |
---|
8092 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
8093 | PATH_SEPARATOR=: |
---|
8094 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
8095 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
8096 | PATH_SEPARATOR=';' |
---|
8097 | } |
---|
8098 | fi |
---|
8099 | |
---|
8100 | |
---|
8101 | # IFS |
---|
8102 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
8103 | # there to prevent editors from complaining about space-tab. |
---|
8104 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
8105 | # splitting by setting IFS to empty value.) |
---|
8106 | IFS=" "" $as_nl" |
---|
8107 | |
---|
8108 | # Find who we are. Look in the path if we contain no directory separator. |
---|
8109 | as_myself= |
---|
8110 | case $0 in #(( |
---|
8111 | *[\\/]* ) as_myself=$0 ;; |
---|
8112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8113 | for as_dir in $PATH |
---|
8114 | do |
---|
8115 | IFS=$as_save_IFS |
---|
8116 | test -z "$as_dir" && as_dir=. |
---|
8117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
8118 | done |
---|
8119 | IFS=$as_save_IFS |
---|
8120 | |
---|
8121 | ;; |
---|
8122 | esac |
---|
8123 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
8124 | # in which case we are not to be found in the path. |
---|
8125 | if test "x$as_myself" = x; then |
---|
8126 | as_myself=$0 |
---|
8127 | fi |
---|
8128 | if test ! -f "$as_myself"; then |
---|
8129 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
8130 | exit 1 |
---|
8131 | fi |
---|
8132 | |
---|
8133 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
8134 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
8135 | # suppresses any "Segmentation fault" message there. '((' could |
---|
8136 | # trigger a bug in pdksh 5.2.14. |
---|
8137 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
8138 | do eval test x\${$as_var+set} = xset \ |
---|
8139 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
8140 | done |
---|
8141 | PS1='$ ' |
---|
8142 | PS2='> ' |
---|
8143 | PS4='+ ' |
---|
8144 | |
---|
8145 | # NLS nuisances. |
---|
8146 | LC_ALL=C |
---|
8147 | export LC_ALL |
---|
8148 | LANGUAGE=C |
---|
8149 | export LANGUAGE |
---|
8150 | |
---|
8151 | # CDPATH. |
---|
8152 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
8153 | |
---|
8154 | |
---|
8155 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
8156 | # ---------------------------------------- |
---|
8157 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
8158 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
8159 | # script with STATUS, using 1 if that was 0. |
---|
8160 | as_fn_error () |
---|
8161 | { |
---|
8162 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
8163 | if test "$4"; then |
---|
8164 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
8165 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
8166 | fi |
---|
8167 | $as_echo "$as_me: error: $2" >&2 |
---|
8168 | as_fn_exit $as_status |
---|
8169 | } # as_fn_error |
---|
8170 | |
---|
8171 | |
---|
8172 | # as_fn_set_status STATUS |
---|
8173 | # ----------------------- |
---|
8174 | # Set $? to STATUS, without forking. |
---|
8175 | as_fn_set_status () |
---|
8176 | { |
---|
8177 | return $1 |
---|
8178 | } # as_fn_set_status |
---|
8179 | |
---|
8180 | # as_fn_exit STATUS |
---|
8181 | # ----------------- |
---|
8182 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
8183 | as_fn_exit () |
---|
8184 | { |
---|
8185 | set +e |
---|
8186 | as_fn_set_status $1 |
---|
8187 | exit $1 |
---|
8188 | } # as_fn_exit |
---|
8189 | |
---|
8190 | # as_fn_unset VAR |
---|
8191 | # --------------- |
---|
8192 | # Portably unset VAR. |
---|
8193 | as_fn_unset () |
---|
8194 | { |
---|
8195 | { eval $1=; unset $1;} |
---|
8196 | } |
---|
8197 | as_unset=as_fn_unset |
---|
8198 | # as_fn_append VAR VALUE |
---|
8199 | # ---------------------- |
---|
8200 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
8201 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
8202 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
8203 | # implementations. |
---|
8204 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
8205 | eval 'as_fn_append () |
---|
8206 | { |
---|
8207 | eval $1+=\$2 |
---|
8208 | }' |
---|
8209 | else |
---|
8210 | as_fn_append () |
---|
8211 | { |
---|
8212 | eval $1=\$$1\$2 |
---|
8213 | } |
---|
8214 | fi # as_fn_append |
---|
8215 | |
---|
8216 | # as_fn_arith ARG... |
---|
8217 | # ------------------ |
---|
8218 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
8219 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
8220 | # must be portable across $(()) and expr. |
---|
8221 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
8222 | eval 'as_fn_arith () |
---|
8223 | { |
---|
8224 | as_val=$(( $* )) |
---|
8225 | }' |
---|
8226 | else |
---|
8227 | as_fn_arith () |
---|
8228 | { |
---|
8229 | as_val=`expr "$@" || test $? -eq 1` |
---|
8230 | } |
---|
8231 | fi # as_fn_arith |
---|
8232 | |
---|
8233 | |
---|
8234 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
8235 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
8236 | as_expr=expr |
---|
8237 | else |
---|
8238 | as_expr=false |
---|
8239 | fi |
---|
8240 | |
---|
8241 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
8242 | as_basename=basename |
---|
8243 | else |
---|
8244 | as_basename=false |
---|
8245 | fi |
---|
8246 | |
---|
8247 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
8248 | as_dirname=dirname |
---|
8249 | else |
---|
8250 | as_dirname=false |
---|
8251 | fi |
---|
8252 | |
---|
8253 | as_me=`$as_basename -- "$0" || |
---|
8254 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
8255 | X"$0" : 'X\(//\)$' \| \ |
---|
8256 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
8257 | $as_echo X/"$0" | |
---|
8258 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
8259 | s//\1/ |
---|
8260 | q |
---|
8261 | } |
---|
8262 | /^X\/\(\/\/\)$/{ |
---|
8263 | s//\1/ |
---|
8264 | q |
---|
8265 | } |
---|
8266 | /^X\/\(\/\).*/{ |
---|
8267 | s//\1/ |
---|
8268 | q |
---|
8269 | } |
---|
8270 | s/.*/./; q'` |
---|
8271 | |
---|
8272 | # Avoid depending upon Character Ranges. |
---|
8273 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
8274 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
8275 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
8276 | as_cr_digits='0123456789' |
---|
8277 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
8278 | |
---|
8279 | ECHO_C= ECHO_N= ECHO_T= |
---|
8280 | case `echo -n x` in #((((( |
---|
8281 | -n*) |
---|
8282 | case `echo 'xy\c'` in |
---|
8283 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
8284 | xy) ECHO_C='\c';; |
---|
8285 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
8286 | ECHO_T=' ';; |
---|
8287 | esac;; |
---|
8288 | *) |
---|
8289 | ECHO_N='-n';; |
---|
8290 | esac |
---|
8291 | |
---|
8292 | rm -f conf$$ conf$$.exe conf$$.file |
---|
8293 | if test -d conf$$.dir; then |
---|
8294 | rm -f conf$$.dir/conf$$.file |
---|
8295 | else |
---|
8296 | rm -f conf$$.dir |
---|
8297 | mkdir conf$$.dir 2>/dev/null |
---|
8298 | fi |
---|
8299 | if (echo >conf$$.file) 2>/dev/null; then |
---|
8300 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
8301 | as_ln_s='ln -s' |
---|
8302 | # ... but there are two gotchas: |
---|
8303 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
8304 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
8305 | # In both cases, we have to default to `cp -pR'. |
---|
8306 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
8307 | as_ln_s='cp -pR' |
---|
8308 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
8309 | as_ln_s=ln |
---|
8310 | else |
---|
8311 | as_ln_s='cp -pR' |
---|
8312 | fi |
---|
8313 | else |
---|
8314 | as_ln_s='cp -pR' |
---|
8315 | fi |
---|
8316 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
8317 | rmdir conf$$.dir 2>/dev/null |
---|
8318 | |
---|
8319 | |
---|
8320 | # as_fn_mkdir_p |
---|
8321 | # ------------- |
---|
8322 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
8323 | as_fn_mkdir_p () |
---|
8324 | { |
---|
8325 | |
---|
8326 | case $as_dir in #( |
---|
8327 | -*) as_dir=./$as_dir;; |
---|
8328 | esac |
---|
8329 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
8330 | as_dirs= |
---|
8331 | while :; do |
---|
8332 | case $as_dir in #( |
---|
8333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
8334 | *) as_qdir=$as_dir;; |
---|
8335 | esac |
---|
8336 | as_dirs="'$as_qdir' $as_dirs" |
---|
8337 | as_dir=`$as_dirname -- "$as_dir" || |
---|
8338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8339 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8340 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
8342 | $as_echo X"$as_dir" | |
---|
8343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
8344 | s//\1/ |
---|
8345 | q |
---|
8346 | } |
---|
8347 | /^X\(\/\/\)[^/].*/{ |
---|
8348 | s//\1/ |
---|
8349 | q |
---|
8350 | } |
---|
8351 | /^X\(\/\/\)$/{ |
---|
8352 | s//\1/ |
---|
8353 | q |
---|
8354 | } |
---|
8355 | /^X\(\/\).*/{ |
---|
8356 | s//\1/ |
---|
8357 | q |
---|
8358 | } |
---|
8359 | s/.*/./; q'` |
---|
8360 | test -d "$as_dir" && break |
---|
8361 | done |
---|
8362 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
8363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
8364 | |
---|
8365 | |
---|
8366 | } # as_fn_mkdir_p |
---|
8367 | if mkdir -p . 2>/dev/null; then |
---|
8368 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
8369 | else |
---|
8370 | test -d ./-p && rmdir ./-p |
---|
8371 | as_mkdir_p=false |
---|
8372 | fi |
---|
8373 | |
---|
8374 | |
---|
8375 | # as_fn_executable_p FILE |
---|
8376 | # ----------------------- |
---|
8377 | # Test if FILE is an executable regular file. |
---|
8378 | as_fn_executable_p () |
---|
8379 | { |
---|
8380 | test -f "$1" && test -x "$1" |
---|
8381 | } # as_fn_executable_p |
---|
8382 | as_test_x='test -x' |
---|
8383 | as_executable_p=as_fn_executable_p |
---|
8384 | |
---|
8385 | # Sed expression to map a string onto a valid CPP name. |
---|
8386 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
8387 | |
---|
8388 | # Sed expression to map a string onto a valid variable name. |
---|
8389 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
8390 | |
---|
8391 | |
---|
8392 | exec 6>&1 |
---|
8393 | ## ----------------------------------- ## |
---|
8394 | ## Main body of $CONFIG_STATUS script. ## |
---|
8395 | ## ----------------------------------- ## |
---|
8396 | _ASEOF |
---|
8397 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
8398 | |
---|
8399 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8400 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
8401 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
8402 | # values after options handling. |
---|
8403 | ac_log=" |
---|
8404 | This file was extended by pymolproxy $as_me 1.0, which was |
---|
8405 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
8406 | |
---|
8407 | CONFIG_FILES = $CONFIG_FILES |
---|
8408 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
8409 | CONFIG_LINKS = $CONFIG_LINKS |
---|
8410 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
8411 | $ $0 $@ |
---|
8412 | |
---|
8413 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
8414 | " |
---|
8415 | |
---|
8416 | _ACEOF |
---|
8417 | |
---|
8418 | case $ac_config_files in *" |
---|
8419 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
8420 | esac |
---|
8421 | |
---|
8422 | |
---|
8423 | |
---|
8424 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8425 | # Files that config.status was made for. |
---|
8426 | config_files="$ac_config_files" |
---|
8427 | |
---|
8428 | _ACEOF |
---|
8429 | |
---|
8430 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8431 | ac_cs_usage="\ |
---|
8432 | \`$as_me' instantiates files and other configuration actions |
---|
8433 | from templates according to the current configuration. Unless the files |
---|
8434 | and actions are specified as TAGs, all are instantiated by default. |
---|
8435 | |
---|
8436 | Usage: $0 [OPTION]... [TAG]... |
---|
8437 | |
---|
8438 | -h, --help print this help, then exit |
---|
8439 | -V, --version print version number and configuration settings, then exit |
---|
8440 | --config print configuration, then exit |
---|
8441 | -q, --quiet, --silent |
---|
8442 | do not print progress messages |
---|
8443 | -d, --debug don't remove temporary files |
---|
8444 | --recheck update $as_me by reconfiguring in the same conditions |
---|
8445 | --file=FILE[:TEMPLATE] |
---|
8446 | instantiate the configuration file FILE |
---|
8447 | |
---|
8448 | Configuration files: |
---|
8449 | $config_files |
---|
8450 | |
---|
8451 | Report bugs to <rappture@nanohub.org>." |
---|
8452 | |
---|
8453 | _ACEOF |
---|
8454 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8455 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
8456 | ac_cs_version="\\ |
---|
8457 | pymolproxy config.status 1.0 |
---|
8458 | configured by $0, generated by GNU Autoconf 2.69, |
---|
8459 | with options \\"\$ac_cs_config\\" |
---|
8460 | |
---|
8461 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
8462 | This config.status script is free software; the Free Software Foundation |
---|
8463 | gives unlimited permission to copy, distribute and modify it." |
---|
8464 | |
---|
8465 | ac_pwd='$ac_pwd' |
---|
8466 | srcdir='$srcdir' |
---|
8467 | INSTALL='$INSTALL' |
---|
8468 | MKDIR_P='$MKDIR_P' |
---|
8469 | test -n "\$AWK" || AWK=awk |
---|
8470 | _ACEOF |
---|
8471 | |
---|
8472 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8473 | # The default lists apply if the user does not specify any file. |
---|
8474 | ac_need_defaults=: |
---|
8475 | while test $# != 0 |
---|
8476 | do |
---|
8477 | case $1 in |
---|
8478 | --*=?*) |
---|
8479 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
8480 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
8481 | ac_shift=: |
---|
8482 | ;; |
---|
8483 | --*=) |
---|
8484 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
8485 | ac_optarg= |
---|
8486 | ac_shift=: |
---|
8487 | ;; |
---|
8488 | *) |
---|
8489 | ac_option=$1 |
---|
8490 | ac_optarg=$2 |
---|
8491 | ac_shift=shift |
---|
8492 | ;; |
---|
8493 | esac |
---|
8494 | |
---|
8495 | case $ac_option in |
---|
8496 | # Handling of the options. |
---|
8497 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
8498 | ac_cs_recheck=: ;; |
---|
8499 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
8500 | $as_echo "$ac_cs_version"; exit ;; |
---|
8501 | --config | --confi | --conf | --con | --co | --c ) |
---|
8502 | $as_echo "$ac_cs_config"; exit ;; |
---|
8503 | --debug | --debu | --deb | --de | --d | -d ) |
---|
8504 | debug=: ;; |
---|
8505 | --file | --fil | --fi | --f ) |
---|
8506 | $ac_shift |
---|
8507 | case $ac_optarg in |
---|
8508 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
8509 | '') as_fn_error $? "missing file argument" ;; |
---|
8510 | esac |
---|
8511 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
8512 | ac_need_defaults=false;; |
---|
8513 | --he | --h | --help | --hel | -h ) |
---|
8514 | $as_echo "$ac_cs_usage"; exit ;; |
---|
8515 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
8516 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
8517 | ac_cs_silent=: ;; |
---|
8518 | |
---|
8519 | # This is an error. |
---|
8520 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
8521 | Try \`$0 --help' for more information." ;; |
---|
8522 | |
---|
8523 | *) as_fn_append ac_config_targets " $1" |
---|
8524 | ac_need_defaults=false ;; |
---|
8525 | |
---|
8526 | esac |
---|
8527 | shift |
---|
8528 | done |
---|
8529 | |
---|
8530 | ac_configure_extra_args= |
---|
8531 | |
---|
8532 | if $ac_cs_silent; then |
---|
8533 | exec 6>/dev/null |
---|
8534 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
8535 | fi |
---|
8536 | |
---|
8537 | _ACEOF |
---|
8538 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8539 | if \$ac_cs_recheck; then |
---|
8540 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
8541 | shift |
---|
8542 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
8543 | CONFIG_SHELL='$SHELL' |
---|
8544 | export CONFIG_SHELL |
---|
8545 | exec "\$@" |
---|
8546 | fi |
---|
8547 | |
---|
8548 | _ACEOF |
---|
8549 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8550 | exec 5>>config.log |
---|
8551 | { |
---|
8552 | echo |
---|
8553 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
8554 | ## Running $as_me. ## |
---|
8555 | _ASBOX |
---|
8556 | $as_echo "$ac_log" |
---|
8557 | } >&5 |
---|
8558 | |
---|
8559 | _ACEOF |
---|
8560 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8561 | _ACEOF |
---|
8562 | |
---|
8563 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8564 | |
---|
8565 | # Handling of arguments. |
---|
8566 | for ac_config_target in $ac_config_targets |
---|
8567 | do |
---|
8568 | case $ac_config_target in |
---|
8569 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
8570 | |
---|
8571 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
8572 | esac |
---|
8573 | done |
---|
8574 | |
---|
8575 | |
---|
8576 | # If the user did not use the arguments to specify the items to instantiate, |
---|
8577 | # then the envvar interface is used. Set only those that are not. |
---|
8578 | # We use the long form for the default assignment because of an extremely |
---|
8579 | # bizarre bug on SunOS 4.1.3. |
---|
8580 | if $ac_need_defaults; then |
---|
8581 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
8582 | fi |
---|
8583 | |
---|
8584 | # Have a temporary directory for convenience. Make it in the build tree |
---|
8585 | # simply because there is no reason against having it here, and in addition, |
---|
8586 | # creating and moving files from /tmp can sometimes cause problems. |
---|
8587 | # Hook for its removal unless debugging. |
---|
8588 | # Note that there is a small window in which the directory will not be cleaned: |
---|
8589 | # after its creation but before its name has been assigned to `$tmp'. |
---|
8590 | $debug || |
---|
8591 | { |
---|
8592 | tmp= ac_tmp= |
---|
8593 | trap 'exit_status=$? |
---|
8594 | : "${ac_tmp:=$tmp}" |
---|
8595 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
8596 | ' 0 |
---|
8597 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
8598 | } |
---|
8599 | # Create a (secure) tmp directory for tmp files. |
---|
8600 | |
---|
8601 | { |
---|
8602 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
8603 | test -d "$tmp" |
---|
8604 | } || |
---|
8605 | { |
---|
8606 | tmp=./conf$$-$RANDOM |
---|
8607 | (umask 077 && mkdir "$tmp") |
---|
8608 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
8609 | ac_tmp=$tmp |
---|
8610 | |
---|
8611 | # Set up the scripts for CONFIG_FILES section. |
---|
8612 | # No need to generate them if there are no CONFIG_FILES. |
---|
8613 | # This happens for instance with `./config.status config.h'. |
---|
8614 | if test -n "$CONFIG_FILES"; then |
---|
8615 | |
---|
8616 | |
---|
8617 | ac_cr=`echo X | tr X '\015'` |
---|
8618 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
8619 | # But we know of no other shell where ac_cr would be empty at this |
---|
8620 | # point, so we can use a bashism as a fallback. |
---|
8621 | if test "x$ac_cr" = x; then |
---|
8622 | eval ac_cr=\$\'\\r\' |
---|
8623 | fi |
---|
8624 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
8625 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
8626 | ac_cs_awk_cr='\\r' |
---|
8627 | else |
---|
8628 | ac_cs_awk_cr=$ac_cr |
---|
8629 | fi |
---|
8630 | |
---|
8631 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
8632 | _ACEOF |
---|
8633 | |
---|
8634 | |
---|
8635 | { |
---|
8636 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
8637 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
8638 | echo "_ACEOF" |
---|
8639 | } >conf$$subs.sh || |
---|
8640 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
8641 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
8642 | ac_delim='%!_!# ' |
---|
8643 | for ac_last_try in false false false false false :; do |
---|
8644 | . ./conf$$subs.sh || |
---|
8645 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
8646 | |
---|
8647 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
8648 | if test $ac_delim_n = $ac_delim_num; then |
---|
8649 | break |
---|
8650 | elif $ac_last_try; then |
---|
8651 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
8652 | else |
---|
8653 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
8654 | fi |
---|
8655 | done |
---|
8656 | rm -f conf$$subs.sh |
---|
8657 | |
---|
8658 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8659 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
8660 | _ACEOF |
---|
8661 | sed -n ' |
---|
8662 | h |
---|
8663 | s/^/S["/; s/!.*/"]=/ |
---|
8664 | p |
---|
8665 | g |
---|
8666 | s/^[^!]*!// |
---|
8667 | :repl |
---|
8668 | t repl |
---|
8669 | s/'"$ac_delim"'$// |
---|
8670 | t delim |
---|
8671 | :nl |
---|
8672 | h |
---|
8673 | s/\(.\{148\}\)..*/\1/ |
---|
8674 | t more1 |
---|
8675 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
8676 | p |
---|
8677 | n |
---|
8678 | b repl |
---|
8679 | :more1 |
---|
8680 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
8681 | p |
---|
8682 | g |
---|
8683 | s/.\{148\}// |
---|
8684 | t nl |
---|
8685 | :delim |
---|
8686 | h |
---|
8687 | s/\(.\{148\}\)..*/\1/ |
---|
8688 | t more2 |
---|
8689 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
8690 | p |
---|
8691 | b |
---|
8692 | :more2 |
---|
8693 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
8694 | p |
---|
8695 | g |
---|
8696 | s/.\{148\}// |
---|
8697 | t delim |
---|
8698 | ' <conf$$subs.awk | sed ' |
---|
8699 | /^[^""]/{ |
---|
8700 | N |
---|
8701 | s/\n// |
---|
8702 | } |
---|
8703 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
8704 | rm -f conf$$subs.awk |
---|
8705 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8706 | _ACAWK |
---|
8707 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
8708 | for (key in S) S_is_set[key] = 1 |
---|
8709 | FS = "" |
---|
8710 | |
---|
8711 | } |
---|
8712 | { |
---|
8713 | line = $ 0 |
---|
8714 | nfields = split(line, field, "@") |
---|
8715 | substed = 0 |
---|
8716 | len = length(field[1]) |
---|
8717 | for (i = 2; i < nfields; i++) { |
---|
8718 | key = field[i] |
---|
8719 | keylen = length(key) |
---|
8720 | if (S_is_set[key]) { |
---|
8721 | value = S[key] |
---|
8722 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
8723 | len += length(value) + length(field[++i]) |
---|
8724 | substed = 1 |
---|
8725 | } else |
---|
8726 | len += 1 + keylen |
---|
8727 | } |
---|
8728 | |
---|
8729 | print line |
---|
8730 | } |
---|
8731 | |
---|
8732 | _ACAWK |
---|
8733 | _ACEOF |
---|
8734 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8735 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
8736 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
8737 | else |
---|
8738 | cat |
---|
8739 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
8740 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
8741 | _ACEOF |
---|
8742 | |
---|
8743 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
8744 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
8745 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
8746 | # (actually we leave an empty line to preserve line numbers). |
---|
8747 | if test "x$srcdir" = x.; then |
---|
8748 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
8749 | h |
---|
8750 | s/// |
---|
8751 | s/^/:/ |
---|
8752 | s/[ ]*$/:/ |
---|
8753 | s/:\$(srcdir):/:/g |
---|
8754 | s/:\${srcdir}:/:/g |
---|
8755 | s/:@srcdir@:/:/g |
---|
8756 | s/^:*// |
---|
8757 | s/:*$// |
---|
8758 | x |
---|
8759 | s/\(=[ ]*\).*/\1/ |
---|
8760 | G |
---|
8761 | s/\n// |
---|
8762 | s/^[^=]*=[ ]*$// |
---|
8763 | }' |
---|
8764 | fi |
---|
8765 | |
---|
8766 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8767 | fi # test -n "$CONFIG_FILES" |
---|
8768 | |
---|
8769 | |
---|
8770 | eval set X " :F $CONFIG_FILES " |
---|
8771 | shift |
---|
8772 | for ac_tag |
---|
8773 | do |
---|
8774 | case $ac_tag in |
---|
8775 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
8776 | esac |
---|
8777 | case $ac_mode$ac_tag in |
---|
8778 | :[FHL]*:*);; |
---|
8779 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
8780 | :[FH]-) ac_tag=-:-;; |
---|
8781 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
8782 | esac |
---|
8783 | ac_save_IFS=$IFS |
---|
8784 | IFS=: |
---|
8785 | set x $ac_tag |
---|
8786 | IFS=$ac_save_IFS |
---|
8787 | shift |
---|
8788 | ac_file=$1 |
---|
8789 | shift |
---|
8790 | |
---|
8791 | case $ac_mode in |
---|
8792 | :L) ac_source=$1;; |
---|
8793 | :[FH]) |
---|
8794 | ac_file_inputs= |
---|
8795 | for ac_f |
---|
8796 | do |
---|
8797 | case $ac_f in |
---|
8798 | -) ac_f="$ac_tmp/stdin";; |
---|
8799 | *) # Look for the file first in the build tree, then in the source tree |
---|
8800 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
8801 | # because $ac_f cannot contain `:'. |
---|
8802 | test -f "$ac_f" || |
---|
8803 | case $ac_f in |
---|
8804 | [\\/$]*) false;; |
---|
8805 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
8806 | esac || |
---|
8807 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
8808 | esac |
---|
8809 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
8810 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
8811 | done |
---|
8812 | |
---|
8813 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
8814 | # use $as_me), people would be surprised to read: |
---|
8815 | # /* config.h. Generated by config.status. */ |
---|
8816 | configure_input='Generated from '` |
---|
8817 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
8818 | `' by configure.' |
---|
8819 | if test x"$ac_file" != x-; then |
---|
8820 | configure_input="$ac_file. $configure_input" |
---|
8821 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
8822 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
8823 | fi |
---|
8824 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
8825 | case $configure_input in #( |
---|
8826 | *\&* | *\|* | *\\* ) |
---|
8827 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
8828 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
8829 | *) ac_sed_conf_input=$configure_input;; |
---|
8830 | esac |
---|
8831 | |
---|
8832 | case $ac_tag in |
---|
8833 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
8834 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
8835 | esac |
---|
8836 | ;; |
---|
8837 | esac |
---|
8838 | |
---|
8839 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
8840 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8841 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
8842 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
8843 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
8844 | $as_echo X"$ac_file" | |
---|
8845 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
8846 | s//\1/ |
---|
8847 | q |
---|
8848 | } |
---|
8849 | /^X\(\/\/\)[^/].*/{ |
---|
8850 | s//\1/ |
---|
8851 | q |
---|
8852 | } |
---|
8853 | /^X\(\/\/\)$/{ |
---|
8854 | s//\1/ |
---|
8855 | q |
---|
8856 | } |
---|
8857 | /^X\(\/\).*/{ |
---|
8858 | s//\1/ |
---|
8859 | q |
---|
8860 | } |
---|
8861 | s/.*/./; q'` |
---|
8862 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
8863 | ac_builddir=. |
---|
8864 | |
---|
8865 | case "$ac_dir" in |
---|
8866 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
8867 | *) |
---|
8868 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
8869 | # A ".." for each directory in $ac_dir_suffix. |
---|
8870 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
8871 | case $ac_top_builddir_sub in |
---|
8872 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
8873 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
8874 | esac ;; |
---|
8875 | esac |
---|
8876 | ac_abs_top_builddir=$ac_pwd |
---|
8877 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
8878 | # for backward compatibility: |
---|
8879 | ac_top_builddir=$ac_top_build_prefix |
---|
8880 | |
---|
8881 | case $srcdir in |
---|
8882 | .) # We are building in place. |
---|
8883 | ac_srcdir=. |
---|
8884 | ac_top_srcdir=$ac_top_builddir_sub |
---|
8885 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
8886 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
8887 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
8888 | ac_top_srcdir=$srcdir |
---|
8889 | ac_abs_top_srcdir=$srcdir ;; |
---|
8890 | *) # Relative name. |
---|
8891 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
8892 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
8893 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
8894 | esac |
---|
8895 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
8896 | |
---|
8897 | |
---|
8898 | case $ac_mode in |
---|
8899 | :F) |
---|
8900 | # |
---|
8901 | # CONFIG_FILE |
---|
8902 | # |
---|
8903 | |
---|
8904 | case $INSTALL in |
---|
8905 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
8906 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
8907 | esac |
---|
8908 | ac_MKDIR_P=$MKDIR_P |
---|
8909 | case $MKDIR_P in |
---|
8910 | [\\/$]* | ?:[\\/]* ) ;; |
---|
8911 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
8912 | esac |
---|
8913 | _ACEOF |
---|
8914 | |
---|
8915 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8916 | # If the template does not know about datarootdir, expand it. |
---|
8917 | # FIXME: This hack should be removed a few years after 2.60. |
---|
8918 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
8919 | ac_sed_dataroot=' |
---|
8920 | /datarootdir/ { |
---|
8921 | p |
---|
8922 | q |
---|
8923 | } |
---|
8924 | /@datadir@/p |
---|
8925 | /@docdir@/p |
---|
8926 | /@infodir@/p |
---|
8927 | /@localedir@/p |
---|
8928 | /@mandir@/p' |
---|
8929 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
8930 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
8931 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
8932 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
8933 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
8934 | _ACEOF |
---|
8935 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8936 | ac_datarootdir_hack=' |
---|
8937 | s&@datadir@&$datadir&g |
---|
8938 | s&@docdir@&$docdir&g |
---|
8939 | s&@infodir@&$infodir&g |
---|
8940 | s&@localedir@&$localedir&g |
---|
8941 | s&@mandir@&$mandir&g |
---|
8942 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
8943 | esac |
---|
8944 | _ACEOF |
---|
8945 | |
---|
8946 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
8947 | # Shell code in configure.ac might set extrasub. |
---|
8948 | # FIXME: do we really want to maintain this feature? |
---|
8949 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8950 | ac_sed_extra="$ac_vpsub |
---|
8951 | $extrasub |
---|
8952 | _ACEOF |
---|
8953 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8954 | :t |
---|
8955 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
8956 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
8957 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
8958 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
8959 | s&@srcdir@&$ac_srcdir&;t t |
---|
8960 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
8961 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
8962 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
8963 | s&@builddir@&$ac_builddir&;t t |
---|
8964 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
8965 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
8966 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
8967 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
8968 | $ac_datarootdir_hack |
---|
8969 | " |
---|
8970 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
8971 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
8972 | |
---|
8973 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
8974 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
8975 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
8976 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
8977 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
8978 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
8979 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
8980 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
8981 | |
---|
8982 | rm -f "$ac_tmp/stdin" |
---|
8983 | case $ac_file in |
---|
8984 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
8985 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
8986 | esac \ |
---|
8987 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
8988 | ;; |
---|
8989 | |
---|
8990 | |
---|
8991 | |
---|
8992 | esac |
---|
8993 | |
---|
8994 | done # for ac_tag |
---|
8995 | |
---|
8996 | |
---|
8997 | as_fn_exit 0 |
---|
8998 | _ACEOF |
---|
8999 | ac_clean_files=$ac_clean_files_save |
---|
9000 | |
---|
9001 | test $ac_write_fail = 0 || |
---|
9002 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
9003 | |
---|
9004 | |
---|
9005 | # configure is writing to config.log, and then calls config.status. |
---|
9006 | # config.status does its own redirection, appending to config.log. |
---|
9007 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
9008 | # by configure, so config.status won't be able to write to it; its |
---|
9009 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
9010 | # effectively closing config.log, so it can be properly (re)opened and |
---|
9011 | # appended to by config.status. When coming back to configure, we |
---|
9012 | # need to make the FD available again. |
---|
9013 | if test "$no_create" != yes; then |
---|
9014 | ac_cs_success=: |
---|
9015 | ac_config_status_args= |
---|
9016 | test "$silent" = yes && |
---|
9017 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
9018 | exec 5>/dev/null |
---|
9019 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
9020 | exec 5>>config.log |
---|
9021 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
9022 | # would make configure fail if this is the last instruction. |
---|
9023 | $ac_cs_success || as_fn_exit 1 |
---|
9024 | fi |
---|
9025 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
9026 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
9027 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
9028 | fi |
---|
9029 | |
---|