1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.69 for Rappture 1.4. |
---|
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='Rappture' |
---|
582 | PACKAGE_TARNAME='rappture' |
---|
583 | PACKAGE_VERSION='1.4' |
---|
584 | PACKAGE_STRING='Rappture 1.4' |
---|
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 | SIZEOF_VOID_P |
---|
627 | SIZEOF_LONG_LONG |
---|
628 | SIZEOF_LONG |
---|
629 | SIZEOF_INT |
---|
630 | SHLIB_LDFLAGS |
---|
631 | SVN_VERSION |
---|
632 | MAKE |
---|
633 | LIB_SEARCH_DIRS |
---|
634 | INSTALL_PREFIX |
---|
635 | LDFLAGS_DEFAULT |
---|
636 | CFLAGS_DEFAULT |
---|
637 | INSTALL_STUB_LIB |
---|
638 | INSTALL_LIB |
---|
639 | MAKE_STUB_LIB |
---|
640 | MAKE_LIB |
---|
641 | SHLIB_SUFFIX |
---|
642 | SHLIB_CFLAGS |
---|
643 | SHLIB_LD_LIBS |
---|
644 | TK_SHLIB_LD_EXTRAS |
---|
645 | TCL_SHLIB_LD_EXTRAS |
---|
646 | SHLIB_LD |
---|
647 | STLIB_LD |
---|
648 | LD_SEARCH_FLAGS |
---|
649 | CC_SEARCH_FLAGS |
---|
650 | LDFLAGS_OPTIMIZE |
---|
651 | LDFLAGS_DEBUG |
---|
652 | CFLAGS_WARNING |
---|
653 | CFLAGS_OPTIMIZE |
---|
654 | CFLAGS_DEBUG |
---|
655 | PLAT_SRCS |
---|
656 | PLAT_OBJS |
---|
657 | DL_OBJS |
---|
658 | DL_LIBS |
---|
659 | AR |
---|
660 | CXXCPP |
---|
661 | EGREP |
---|
662 | GREP |
---|
663 | CPP |
---|
664 | ac_ct_F77 |
---|
665 | FFLAGS |
---|
666 | F77 |
---|
667 | ac_ct_CXX |
---|
668 | CXXFLAGS |
---|
669 | CXX |
---|
670 | OBJEXT |
---|
671 | EXEEXT |
---|
672 | ac_ct_CC |
---|
673 | CPPFLAGS |
---|
674 | LDFLAGS |
---|
675 | CFLAGS |
---|
676 | CC |
---|
677 | SET_MAKE |
---|
678 | MKDIR_P |
---|
679 | LN_S |
---|
680 | RANLIB |
---|
681 | INSTALL_DATA |
---|
682 | INSTALL_SCRIPT |
---|
683 | INSTALL_PROGRAM |
---|
684 | target_alias |
---|
685 | host_alias |
---|
686 | build_alias |
---|
687 | LIBS |
---|
688 | ECHO_T |
---|
689 | ECHO_N |
---|
690 | ECHO_C |
---|
691 | DEFS |
---|
692 | mandir |
---|
693 | localedir |
---|
694 | libdir |
---|
695 | psdir |
---|
696 | pdfdir |
---|
697 | dvidir |
---|
698 | htmldir |
---|
699 | infodir |
---|
700 | docdir |
---|
701 | oldincludedir |
---|
702 | includedir |
---|
703 | localstatedir |
---|
704 | sharedstatedir |
---|
705 | sysconfdir |
---|
706 | datadir |
---|
707 | datarootdir |
---|
708 | libexecdir |
---|
709 | sbindir |
---|
710 | bindir |
---|
711 | program_transform_name |
---|
712 | prefix |
---|
713 | exec_prefix |
---|
714 | PACKAGE_URL |
---|
715 | PACKAGE_BUGREPORT |
---|
716 | PACKAGE_STRING |
---|
717 | PACKAGE_VERSION |
---|
718 | PACKAGE_TARNAME |
---|
719 | PACKAGE_NAME |
---|
720 | PATH_SEPARATOR |
---|
721 | SHELL' |
---|
722 | ac_subst_files='' |
---|
723 | ac_user_opts=' |
---|
724 | enable_option_checking |
---|
725 | with_install |
---|
726 | enable_64bit |
---|
727 | enable_64bit_vis |
---|
728 | enable_corefoundation |
---|
729 | enable_load |
---|
730 | enable_shared |
---|
731 | enable_symbols |
---|
732 | ' |
---|
733 | ac_precious_vars='build_alias |
---|
734 | host_alias |
---|
735 | target_alias |
---|
736 | CC |
---|
737 | CFLAGS |
---|
738 | LDFLAGS |
---|
739 | LIBS |
---|
740 | CPPFLAGS |
---|
741 | CXX |
---|
742 | CXXFLAGS |
---|
743 | CCC |
---|
744 | F77 |
---|
745 | FFLAGS |
---|
746 | CPP |
---|
747 | CXXCPP' |
---|
748 | |
---|
749 | |
---|
750 | # Initialize some variables set by options. |
---|
751 | ac_init_help= |
---|
752 | ac_init_version=false |
---|
753 | ac_unrecognized_opts= |
---|
754 | ac_unrecognized_sep= |
---|
755 | # The variables have the same names as the options, with |
---|
756 | # dashes changed to underlines. |
---|
757 | cache_file=/dev/null |
---|
758 | exec_prefix=NONE |
---|
759 | no_create= |
---|
760 | no_recursion= |
---|
761 | prefix=NONE |
---|
762 | program_prefix=NONE |
---|
763 | program_suffix=NONE |
---|
764 | program_transform_name=s,x,x, |
---|
765 | silent= |
---|
766 | site= |
---|
767 | srcdir= |
---|
768 | verbose= |
---|
769 | x_includes=NONE |
---|
770 | x_libraries=NONE |
---|
771 | |
---|
772 | # Installation directory options. |
---|
773 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
774 | # and all the variables that are supposed to be based on exec_prefix |
---|
775 | # by default will actually change. |
---|
776 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
777 | # (The list follows the same order as the GNU Coding Standards.) |
---|
778 | bindir='${exec_prefix}/bin' |
---|
779 | sbindir='${exec_prefix}/sbin' |
---|
780 | libexecdir='${exec_prefix}/libexec' |
---|
781 | datarootdir='${prefix}/share' |
---|
782 | datadir='${datarootdir}' |
---|
783 | sysconfdir='${prefix}/etc' |
---|
784 | sharedstatedir='${prefix}/com' |
---|
785 | localstatedir='${prefix}/var' |
---|
786 | includedir='${prefix}/include' |
---|
787 | oldincludedir='/usr/include' |
---|
788 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
789 | infodir='${datarootdir}/info' |
---|
790 | htmldir='${docdir}' |
---|
791 | dvidir='${docdir}' |
---|
792 | pdfdir='${docdir}' |
---|
793 | psdir='${docdir}' |
---|
794 | libdir='${exec_prefix}/lib' |
---|
795 | localedir='${datarootdir}/locale' |
---|
796 | mandir='${datarootdir}/man' |
---|
797 | |
---|
798 | ac_prev= |
---|
799 | ac_dashdash= |
---|
800 | for ac_option |
---|
801 | do |
---|
802 | # If the previous option needs an argument, assign it. |
---|
803 | if test -n "$ac_prev"; then |
---|
804 | eval $ac_prev=\$ac_option |
---|
805 | ac_prev= |
---|
806 | continue |
---|
807 | fi |
---|
808 | |
---|
809 | case $ac_option in |
---|
810 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
811 | *=) ac_optarg= ;; |
---|
812 | *) ac_optarg=yes ;; |
---|
813 | esac |
---|
814 | |
---|
815 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
816 | |
---|
817 | case $ac_dashdash$ac_option in |
---|
818 | --) |
---|
819 | ac_dashdash=yes ;; |
---|
820 | |
---|
821 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
822 | ac_prev=bindir ;; |
---|
823 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
824 | bindir=$ac_optarg ;; |
---|
825 | |
---|
826 | -build | --build | --buil | --bui | --bu) |
---|
827 | ac_prev=build_alias ;; |
---|
828 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
829 | build_alias=$ac_optarg ;; |
---|
830 | |
---|
831 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
832 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
833 | ac_prev=cache_file ;; |
---|
834 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
835 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
836 | cache_file=$ac_optarg ;; |
---|
837 | |
---|
838 | --config-cache | -C) |
---|
839 | cache_file=config.cache ;; |
---|
840 | |
---|
841 | -datadir | --datadir | --datadi | --datad) |
---|
842 | ac_prev=datadir ;; |
---|
843 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
844 | datadir=$ac_optarg ;; |
---|
845 | |
---|
846 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
847 | | --dataroo | --dataro | --datar) |
---|
848 | ac_prev=datarootdir ;; |
---|
849 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
850 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
851 | datarootdir=$ac_optarg ;; |
---|
852 | |
---|
853 | -disable-* | --disable-*) |
---|
854 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
855 | # Reject names that are not valid shell variable names. |
---|
856 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
857 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
858 | ac_useropt_orig=$ac_useropt |
---|
859 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
860 | case $ac_user_opts in |
---|
861 | *" |
---|
862 | "enable_$ac_useropt" |
---|
863 | "*) ;; |
---|
864 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
865 | ac_unrecognized_sep=', ';; |
---|
866 | esac |
---|
867 | eval enable_$ac_useropt=no ;; |
---|
868 | |
---|
869 | -docdir | --docdir | --docdi | --doc | --do) |
---|
870 | ac_prev=docdir ;; |
---|
871 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
872 | docdir=$ac_optarg ;; |
---|
873 | |
---|
874 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
875 | ac_prev=dvidir ;; |
---|
876 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
877 | dvidir=$ac_optarg ;; |
---|
878 | |
---|
879 | -enable-* | --enable-*) |
---|
880 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
881 | # Reject names that are not valid shell variable names. |
---|
882 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
883 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
884 | ac_useropt_orig=$ac_useropt |
---|
885 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
886 | case $ac_user_opts in |
---|
887 | *" |
---|
888 | "enable_$ac_useropt" |
---|
889 | "*) ;; |
---|
890 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
891 | ac_unrecognized_sep=', ';; |
---|
892 | esac |
---|
893 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
894 | |
---|
895 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
896 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
897 | | --exec | --exe | --ex) |
---|
898 | ac_prev=exec_prefix ;; |
---|
899 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
900 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
901 | | --exec=* | --exe=* | --ex=*) |
---|
902 | exec_prefix=$ac_optarg ;; |
---|
903 | |
---|
904 | -gas | --gas | --ga | --g) |
---|
905 | # Obsolete; use --with-gas. |
---|
906 | with_gas=yes ;; |
---|
907 | |
---|
908 | -help | --help | --hel | --he | -h) |
---|
909 | ac_init_help=long ;; |
---|
910 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
911 | ac_init_help=recursive ;; |
---|
912 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
913 | ac_init_help=short ;; |
---|
914 | |
---|
915 | -host | --host | --hos | --ho) |
---|
916 | ac_prev=host_alias ;; |
---|
917 | -host=* | --host=* | --hos=* | --ho=*) |
---|
918 | host_alias=$ac_optarg ;; |
---|
919 | |
---|
920 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
921 | ac_prev=htmldir ;; |
---|
922 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
923 | | --ht=*) |
---|
924 | htmldir=$ac_optarg ;; |
---|
925 | |
---|
926 | -includedir | --includedir | --includedi | --included | --include \ |
---|
927 | | --includ | --inclu | --incl | --inc) |
---|
928 | ac_prev=includedir ;; |
---|
929 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
930 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
931 | includedir=$ac_optarg ;; |
---|
932 | |
---|
933 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
934 | ac_prev=infodir ;; |
---|
935 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
936 | infodir=$ac_optarg ;; |
---|
937 | |
---|
938 | -libdir | --libdir | --libdi | --libd) |
---|
939 | ac_prev=libdir ;; |
---|
940 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
941 | libdir=$ac_optarg ;; |
---|
942 | |
---|
943 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
944 | | --libexe | --libex | --libe) |
---|
945 | ac_prev=libexecdir ;; |
---|
946 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
947 | | --libexe=* | --libex=* | --libe=*) |
---|
948 | libexecdir=$ac_optarg ;; |
---|
949 | |
---|
950 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
951 | ac_prev=localedir ;; |
---|
952 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
953 | localedir=$ac_optarg ;; |
---|
954 | |
---|
955 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
956 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
957 | ac_prev=localstatedir ;; |
---|
958 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
959 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
960 | localstatedir=$ac_optarg ;; |
---|
961 | |
---|
962 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
963 | ac_prev=mandir ;; |
---|
964 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
965 | mandir=$ac_optarg ;; |
---|
966 | |
---|
967 | -nfp | --nfp | --nf) |
---|
968 | # Obsolete; use --without-fp. |
---|
969 | with_fp=no ;; |
---|
970 | |
---|
971 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
972 | | --no-cr | --no-c | -n) |
---|
973 | no_create=yes ;; |
---|
974 | |
---|
975 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
976 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
977 | no_recursion=yes ;; |
---|
978 | |
---|
979 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
980 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
981 | | --oldin | --oldi | --old | --ol | --o) |
---|
982 | ac_prev=oldincludedir ;; |
---|
983 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
984 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
985 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
986 | oldincludedir=$ac_optarg ;; |
---|
987 | |
---|
988 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
989 | ac_prev=prefix ;; |
---|
990 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
991 | prefix=$ac_optarg ;; |
---|
992 | |
---|
993 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
994 | | --program-pre | --program-pr | --program-p) |
---|
995 | ac_prev=program_prefix ;; |
---|
996 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
997 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
998 | program_prefix=$ac_optarg ;; |
---|
999 | |
---|
1000 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
1001 | | --program-suf | --program-su | --program-s) |
---|
1002 | ac_prev=program_suffix ;; |
---|
1003 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
1004 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
1005 | program_suffix=$ac_optarg ;; |
---|
1006 | |
---|
1007 | -program-transform-name | --program-transform-name \ |
---|
1008 | | --program-transform-nam | --program-transform-na \ |
---|
1009 | | --program-transform-n | --program-transform- \ |
---|
1010 | | --program-transform | --program-transfor \ |
---|
1011 | | --program-transfo | --program-transf \ |
---|
1012 | | --program-trans | --program-tran \ |
---|
1013 | | --progr-tra | --program-tr | --program-t) |
---|
1014 | ac_prev=program_transform_name ;; |
---|
1015 | -program-transform-name=* | --program-transform-name=* \ |
---|
1016 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1017 | | --program-transform-n=* | --program-transform-=* \ |
---|
1018 | | --program-transform=* | --program-transfor=* \ |
---|
1019 | | --program-transfo=* | --program-transf=* \ |
---|
1020 | | --program-trans=* | --program-tran=* \ |
---|
1021 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1022 | program_transform_name=$ac_optarg ;; |
---|
1023 | |
---|
1024 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1025 | ac_prev=pdfdir ;; |
---|
1026 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1027 | pdfdir=$ac_optarg ;; |
---|
1028 | |
---|
1029 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1030 | ac_prev=psdir ;; |
---|
1031 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1032 | psdir=$ac_optarg ;; |
---|
1033 | |
---|
1034 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1035 | | -silent | --silent | --silen | --sile | --sil) |
---|
1036 | silent=yes ;; |
---|
1037 | |
---|
1038 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1039 | ac_prev=sbindir ;; |
---|
1040 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1041 | | --sbi=* | --sb=*) |
---|
1042 | sbindir=$ac_optarg ;; |
---|
1043 | |
---|
1044 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1045 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1046 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1047 | | --sha | --sh) |
---|
1048 | ac_prev=sharedstatedir ;; |
---|
1049 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1050 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1051 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1052 | | --sha=* | --sh=*) |
---|
1053 | sharedstatedir=$ac_optarg ;; |
---|
1054 | |
---|
1055 | -site | --site | --sit) |
---|
1056 | ac_prev=site ;; |
---|
1057 | -site=* | --site=* | --sit=*) |
---|
1058 | site=$ac_optarg ;; |
---|
1059 | |
---|
1060 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1061 | ac_prev=srcdir ;; |
---|
1062 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1063 | srcdir=$ac_optarg ;; |
---|
1064 | |
---|
1065 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1066 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1067 | ac_prev=sysconfdir ;; |
---|
1068 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1069 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1070 | sysconfdir=$ac_optarg ;; |
---|
1071 | |
---|
1072 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1073 | ac_prev=target_alias ;; |
---|
1074 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1075 | target_alias=$ac_optarg ;; |
---|
1076 | |
---|
1077 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1078 | verbose=yes ;; |
---|
1079 | |
---|
1080 | -version | --version | --versio | --versi | --vers | -V) |
---|
1081 | ac_init_version=: ;; |
---|
1082 | |
---|
1083 | -with-* | --with-*) |
---|
1084 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1085 | # Reject names that are not valid shell variable names. |
---|
1086 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1087 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1088 | ac_useropt_orig=$ac_useropt |
---|
1089 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1090 | case $ac_user_opts in |
---|
1091 | *" |
---|
1092 | "with_$ac_useropt" |
---|
1093 | "*) ;; |
---|
1094 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1095 | ac_unrecognized_sep=', ';; |
---|
1096 | esac |
---|
1097 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1098 | |
---|
1099 | -without-* | --without-*) |
---|
1100 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1101 | # Reject names that are not valid shell variable names. |
---|
1102 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1103 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1104 | ac_useropt_orig=$ac_useropt |
---|
1105 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1106 | case $ac_user_opts in |
---|
1107 | *" |
---|
1108 | "with_$ac_useropt" |
---|
1109 | "*) ;; |
---|
1110 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1111 | ac_unrecognized_sep=', ';; |
---|
1112 | esac |
---|
1113 | eval with_$ac_useropt=no ;; |
---|
1114 | |
---|
1115 | --x) |
---|
1116 | # Obsolete; use --with-x. |
---|
1117 | with_x=yes ;; |
---|
1118 | |
---|
1119 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1120 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1121 | ac_prev=x_includes ;; |
---|
1122 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1123 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1124 | x_includes=$ac_optarg ;; |
---|
1125 | |
---|
1126 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1127 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1128 | ac_prev=x_libraries ;; |
---|
1129 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1130 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1131 | x_libraries=$ac_optarg ;; |
---|
1132 | |
---|
1133 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1134 | Try \`$0 --help' for more information" |
---|
1135 | ;; |
---|
1136 | |
---|
1137 | *=*) |
---|
1138 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1139 | # Reject names that are not valid shell variable names. |
---|
1140 | case $ac_envvar in #( |
---|
1141 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1142 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1143 | esac |
---|
1144 | eval $ac_envvar=\$ac_optarg |
---|
1145 | export $ac_envvar ;; |
---|
1146 | |
---|
1147 | *) |
---|
1148 | # FIXME: should be removed in autoconf 3.0. |
---|
1149 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1150 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1151 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1152 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1153 | ;; |
---|
1154 | |
---|
1155 | esac |
---|
1156 | done |
---|
1157 | |
---|
1158 | if test -n "$ac_prev"; then |
---|
1159 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1160 | as_fn_error $? "missing argument to $ac_option" |
---|
1161 | fi |
---|
1162 | |
---|
1163 | if test -n "$ac_unrecognized_opts"; then |
---|
1164 | case $enable_option_checking in |
---|
1165 | no) ;; |
---|
1166 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1167 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1168 | esac |
---|
1169 | fi |
---|
1170 | |
---|
1171 | # Check all directory arguments for consistency. |
---|
1172 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1173 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1174 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1175 | libdir localedir mandir |
---|
1176 | do |
---|
1177 | eval ac_val=\$$ac_var |
---|
1178 | # Remove trailing slashes. |
---|
1179 | case $ac_val in |
---|
1180 | */ ) |
---|
1181 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1182 | eval $ac_var=\$ac_val;; |
---|
1183 | esac |
---|
1184 | # Be sure to have absolute directory names. |
---|
1185 | case $ac_val in |
---|
1186 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1187 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1188 | esac |
---|
1189 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1190 | done |
---|
1191 | |
---|
1192 | # There might be people who depend on the old broken behavior: `$host' |
---|
1193 | # used to hold the argument of --host etc. |
---|
1194 | # FIXME: To remove some day. |
---|
1195 | build=$build_alias |
---|
1196 | host=$host_alias |
---|
1197 | target=$target_alias |
---|
1198 | |
---|
1199 | # FIXME: To remove some day. |
---|
1200 | if test "x$host_alias" != x; then |
---|
1201 | if test "x$build_alias" = x; then |
---|
1202 | cross_compiling=maybe |
---|
1203 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1204 | cross_compiling=yes |
---|
1205 | fi |
---|
1206 | fi |
---|
1207 | |
---|
1208 | ac_tool_prefix= |
---|
1209 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1210 | |
---|
1211 | test "$silent" = yes && exec 6>/dev/null |
---|
1212 | |
---|
1213 | |
---|
1214 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1215 | ac_ls_di=`ls -di .` && |
---|
1216 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1217 | as_fn_error $? "working directory cannot be determined" |
---|
1218 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1219 | as_fn_error $? "pwd does not report name of working directory" |
---|
1220 | |
---|
1221 | |
---|
1222 | # Find the source files, if location was not specified. |
---|
1223 | if test -z "$srcdir"; then |
---|
1224 | ac_srcdir_defaulted=yes |
---|
1225 | # Try the directory containing this script, then the parent directory. |
---|
1226 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1227 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1228 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1229 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1230 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1231 | $as_echo X"$as_myself" | |
---|
1232 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1233 | s//\1/ |
---|
1234 | q |
---|
1235 | } |
---|
1236 | /^X\(\/\/\)[^/].*/{ |
---|
1237 | s//\1/ |
---|
1238 | q |
---|
1239 | } |
---|
1240 | /^X\(\/\/\)$/{ |
---|
1241 | s//\1/ |
---|
1242 | q |
---|
1243 | } |
---|
1244 | /^X\(\/\).*/{ |
---|
1245 | s//\1/ |
---|
1246 | q |
---|
1247 | } |
---|
1248 | s/.*/./; q'` |
---|
1249 | srcdir=$ac_confdir |
---|
1250 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1251 | srcdir=.. |
---|
1252 | fi |
---|
1253 | else |
---|
1254 | ac_srcdir_defaulted=no |
---|
1255 | fi |
---|
1256 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1257 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1258 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1259 | fi |
---|
1260 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1261 | ac_abs_confdir=`( |
---|
1262 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1263 | pwd)` |
---|
1264 | # When building in place, set srcdir=. |
---|
1265 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1266 | srcdir=. |
---|
1267 | fi |
---|
1268 | # Remove unnecessary trailing slashes from srcdir. |
---|
1269 | # Double slashes in file names in object file debugging info |
---|
1270 | # mess up M-x gdb in Emacs. |
---|
1271 | case $srcdir in |
---|
1272 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1273 | esac |
---|
1274 | for ac_var in $ac_precious_vars; do |
---|
1275 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1276 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1277 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1278 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1279 | done |
---|
1280 | |
---|
1281 | # |
---|
1282 | # Report the --help message. |
---|
1283 | # |
---|
1284 | if test "$ac_init_help" = "long"; then |
---|
1285 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1286 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1287 | cat <<_ACEOF |
---|
1288 | \`configure' configures Rappture 1.4 to adapt to many kinds of systems. |
---|
1289 | |
---|
1290 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1291 | |
---|
1292 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1293 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1294 | |
---|
1295 | Defaults for the options are specified in brackets. |
---|
1296 | |
---|
1297 | Configuration: |
---|
1298 | -h, --help display this help and exit |
---|
1299 | --help=short display options specific to this package |
---|
1300 | --help=recursive display the short help of all the included packages |
---|
1301 | -V, --version display version information and exit |
---|
1302 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1303 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1304 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1305 | -n, --no-create do not create output files |
---|
1306 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1307 | |
---|
1308 | Installation directories: |
---|
1309 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1310 | [$ac_default_prefix] |
---|
1311 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1312 | [PREFIX] |
---|
1313 | |
---|
1314 | By default, \`make install' will install all the files in |
---|
1315 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1316 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1317 | for instance \`--prefix=\$HOME'. |
---|
1318 | |
---|
1319 | For better control, use the options below. |
---|
1320 | |
---|
1321 | Fine tuning of the installation directories: |
---|
1322 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1323 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1324 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1325 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1326 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1327 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1328 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1329 | --includedir=DIR C header files [PREFIX/include] |
---|
1330 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1331 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1332 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1333 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1334 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1335 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1336 | --docdir=DIR documentation root [DATAROOTDIR/doc/rappture] |
---|
1337 | --htmldir=DIR html documentation [DOCDIR] |
---|
1338 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1339 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1340 | --psdir=DIR ps documentation [DOCDIR] |
---|
1341 | _ACEOF |
---|
1342 | |
---|
1343 | cat <<\_ACEOF |
---|
1344 | _ACEOF |
---|
1345 | fi |
---|
1346 | |
---|
1347 | if test -n "$ac_init_help"; then |
---|
1348 | case $ac_init_help in |
---|
1349 | short | recursive ) echo "Configuration of Rappture 1.4:";; |
---|
1350 | esac |
---|
1351 | cat <<\_ACEOF |
---|
1352 | |
---|
1353 | Optional Features: |
---|
1354 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1355 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1356 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1357 | --enable-64bit enable 64bit support (where applicable) |
---|
1358 | --enable-64bit-vis enable 64bit Sparc VIS support |
---|
1359 | --enable-corefoundation use CoreFoundation API --enable-corefoundation |
---|
1360 | --disable-load disallow dynamic loading and "load" command |
---|
1361 | --enable-shared build and link with shared libraries --enable-shared |
---|
1362 | --enable-symbols build with debugging symbols --disable-symbols |
---|
1363 | |
---|
1364 | Optional Packages: |
---|
1365 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1366 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1367 | --with-install=DIR location of installation [default=yes] |
---|
1368 | |
---|
1369 | Some influential environment variables: |
---|
1370 | CC C compiler command |
---|
1371 | CFLAGS C compiler flags |
---|
1372 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1373 | nonstandard directory <lib dir> |
---|
1374 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1375 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1376 | you have headers in a nonstandard directory <include dir> |
---|
1377 | CXX C++ compiler command |
---|
1378 | CXXFLAGS C++ compiler flags |
---|
1379 | F77 Fortran 77 compiler command |
---|
1380 | FFLAGS Fortran 77 compiler flags |
---|
1381 | CPP C preprocessor |
---|
1382 | CXXCPP C++ preprocessor |
---|
1383 | |
---|
1384 | Use these variables to override the choices made by `configure' or to help |
---|
1385 | it to find libraries and programs with nonstandard names/locations. |
---|
1386 | |
---|
1387 | Report bugs to <rappture@nanohub.org>. |
---|
1388 | _ACEOF |
---|
1389 | ac_status=$? |
---|
1390 | fi |
---|
1391 | |
---|
1392 | if test "$ac_init_help" = "recursive"; then |
---|
1393 | # If there are subdirs, report their specific --help. |
---|
1394 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1395 | test -d "$ac_dir" || |
---|
1396 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1397 | continue |
---|
1398 | ac_builddir=. |
---|
1399 | |
---|
1400 | case "$ac_dir" in |
---|
1401 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1402 | *) |
---|
1403 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1404 | # A ".." for each directory in $ac_dir_suffix. |
---|
1405 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1406 | case $ac_top_builddir_sub in |
---|
1407 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1408 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1409 | esac ;; |
---|
1410 | esac |
---|
1411 | ac_abs_top_builddir=$ac_pwd |
---|
1412 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1413 | # for backward compatibility: |
---|
1414 | ac_top_builddir=$ac_top_build_prefix |
---|
1415 | |
---|
1416 | case $srcdir in |
---|
1417 | .) # We are building in place. |
---|
1418 | ac_srcdir=. |
---|
1419 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1420 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1421 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1422 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1423 | ac_top_srcdir=$srcdir |
---|
1424 | ac_abs_top_srcdir=$srcdir ;; |
---|
1425 | *) # Relative name. |
---|
1426 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1427 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1428 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1429 | esac |
---|
1430 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1431 | |
---|
1432 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1433 | # Check for guested configure. |
---|
1434 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1435 | echo && |
---|
1436 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1437 | elif test -f "$ac_srcdir/configure"; then |
---|
1438 | echo && |
---|
1439 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1440 | else |
---|
1441 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1442 | fi || ac_status=$? |
---|
1443 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1444 | done |
---|
1445 | fi |
---|
1446 | |
---|
1447 | test -n "$ac_init_help" && exit $ac_status |
---|
1448 | if $ac_init_version; then |
---|
1449 | cat <<\_ACEOF |
---|
1450 | Rappture configure 1.4 |
---|
1451 | generated by GNU Autoconf 2.69 |
---|
1452 | |
---|
1453 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
1454 | This configure script is free software; the Free Software Foundation |
---|
1455 | gives unlimited permission to copy, distribute and modify it. |
---|
1456 | _ACEOF |
---|
1457 | exit |
---|
1458 | fi |
---|
1459 | |
---|
1460 | ## ------------------------ ## |
---|
1461 | ## Autoconf initialization. ## |
---|
1462 | ## ------------------------ ## |
---|
1463 | |
---|
1464 | # ac_fn_c_try_compile LINENO |
---|
1465 | # -------------------------- |
---|
1466 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1467 | ac_fn_c_try_compile () |
---|
1468 | { |
---|
1469 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1470 | rm -f conftest.$ac_objext |
---|
1471 | if { { ac_try="$ac_compile" |
---|
1472 | case "(($ac_try" in |
---|
1473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1474 | *) ac_try_echo=$ac_try;; |
---|
1475 | esac |
---|
1476 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1477 | $as_echo "$ac_try_echo"; } >&5 |
---|
1478 | (eval "$ac_compile") 2>conftest.err |
---|
1479 | ac_status=$? |
---|
1480 | if test -s conftest.err; then |
---|
1481 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1482 | cat conftest.er1 >&5 |
---|
1483 | mv -f conftest.er1 conftest.err |
---|
1484 | fi |
---|
1485 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1486 | test $ac_status = 0; } && { |
---|
1487 | test -z "$ac_c_werror_flag" || |
---|
1488 | test ! -s conftest.err |
---|
1489 | } && test -s conftest.$ac_objext; then : |
---|
1490 | ac_retval=0 |
---|
1491 | else |
---|
1492 | $as_echo "$as_me: failed program was:" >&5 |
---|
1493 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1494 | |
---|
1495 | ac_retval=1 |
---|
1496 | fi |
---|
1497 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1498 | as_fn_set_status $ac_retval |
---|
1499 | |
---|
1500 | } # ac_fn_c_try_compile |
---|
1501 | |
---|
1502 | # ac_fn_cxx_try_compile LINENO |
---|
1503 | # ---------------------------- |
---|
1504 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1505 | ac_fn_cxx_try_compile () |
---|
1506 | { |
---|
1507 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1508 | rm -f conftest.$ac_objext |
---|
1509 | if { { ac_try="$ac_compile" |
---|
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_compile") 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; } && { |
---|
1525 | test -z "$ac_cxx_werror_flag" || |
---|
1526 | test ! -s conftest.err |
---|
1527 | } && test -s conftest.$ac_objext; 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_cxx_try_compile |
---|
1539 | |
---|
1540 | # ac_fn_f77_try_compile LINENO |
---|
1541 | # ---------------------------- |
---|
1542 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1543 | ac_fn_f77_try_compile () |
---|
1544 | { |
---|
1545 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1546 | rm -f conftest.$ac_objext |
---|
1547 | if { { ac_try="$ac_compile" |
---|
1548 | case "(($ac_try" in |
---|
1549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1550 | *) ac_try_echo=$ac_try;; |
---|
1551 | esac |
---|
1552 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1553 | $as_echo "$ac_try_echo"; } >&5 |
---|
1554 | (eval "$ac_compile") 2>conftest.err |
---|
1555 | ac_status=$? |
---|
1556 | if test -s conftest.err; then |
---|
1557 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1558 | cat conftest.er1 >&5 |
---|
1559 | mv -f conftest.er1 conftest.err |
---|
1560 | fi |
---|
1561 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1562 | test $ac_status = 0; } && { |
---|
1563 | test -z "$ac_f77_werror_flag" || |
---|
1564 | test ! -s conftest.err |
---|
1565 | } && test -s conftest.$ac_objext; then : |
---|
1566 | ac_retval=0 |
---|
1567 | else |
---|
1568 | $as_echo "$as_me: failed program was:" >&5 |
---|
1569 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1570 | |
---|
1571 | ac_retval=1 |
---|
1572 | fi |
---|
1573 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1574 | as_fn_set_status $ac_retval |
---|
1575 | |
---|
1576 | } # ac_fn_f77_try_compile |
---|
1577 | |
---|
1578 | # ac_fn_c_try_cpp LINENO |
---|
1579 | # ---------------------- |
---|
1580 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1581 | ac_fn_c_try_cpp () |
---|
1582 | { |
---|
1583 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1584 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1585 | case "(($ac_try" in |
---|
1586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1587 | *) ac_try_echo=$ac_try;; |
---|
1588 | esac |
---|
1589 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1590 | $as_echo "$ac_try_echo"; } >&5 |
---|
1591 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1592 | ac_status=$? |
---|
1593 | if test -s conftest.err; then |
---|
1594 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1595 | cat conftest.er1 >&5 |
---|
1596 | mv -f conftest.er1 conftest.err |
---|
1597 | fi |
---|
1598 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1599 | test $ac_status = 0; } > conftest.i && { |
---|
1600 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1601 | test ! -s conftest.err |
---|
1602 | }; then : |
---|
1603 | ac_retval=0 |
---|
1604 | else |
---|
1605 | $as_echo "$as_me: failed program was:" >&5 |
---|
1606 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1607 | |
---|
1608 | ac_retval=1 |
---|
1609 | fi |
---|
1610 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1611 | as_fn_set_status $ac_retval |
---|
1612 | |
---|
1613 | } # ac_fn_c_try_cpp |
---|
1614 | |
---|
1615 | # ac_fn_c_try_run LINENO |
---|
1616 | # ---------------------- |
---|
1617 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1618 | # that executables *can* be run. |
---|
1619 | ac_fn_c_try_run () |
---|
1620 | { |
---|
1621 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1622 | if { { ac_try="$ac_link" |
---|
1623 | case "(($ac_try" in |
---|
1624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1625 | *) ac_try_echo=$ac_try;; |
---|
1626 | esac |
---|
1627 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1628 | $as_echo "$ac_try_echo"; } >&5 |
---|
1629 | (eval "$ac_link") 2>&5 |
---|
1630 | ac_status=$? |
---|
1631 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1632 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1633 | { { case "(($ac_try" in |
---|
1634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1635 | *) ac_try_echo=$ac_try;; |
---|
1636 | esac |
---|
1637 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1638 | $as_echo "$ac_try_echo"; } >&5 |
---|
1639 | (eval "$ac_try") 2>&5 |
---|
1640 | ac_status=$? |
---|
1641 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1642 | test $ac_status = 0; }; }; then : |
---|
1643 | ac_retval=0 |
---|
1644 | else |
---|
1645 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1646 | $as_echo "$as_me: failed program was:" >&5 |
---|
1647 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1648 | |
---|
1649 | ac_retval=$ac_status |
---|
1650 | fi |
---|
1651 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1652 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1653 | as_fn_set_status $ac_retval |
---|
1654 | |
---|
1655 | } # ac_fn_c_try_run |
---|
1656 | |
---|
1657 | # ac_fn_c_try_link LINENO |
---|
1658 | # ----------------------- |
---|
1659 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1660 | ac_fn_c_try_link () |
---|
1661 | { |
---|
1662 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1663 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1664 | if { { ac_try="$ac_link" |
---|
1665 | case "(($ac_try" in |
---|
1666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1667 | *) ac_try_echo=$ac_try;; |
---|
1668 | esac |
---|
1669 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1670 | $as_echo "$ac_try_echo"; } >&5 |
---|
1671 | (eval "$ac_link") 2>conftest.err |
---|
1672 | ac_status=$? |
---|
1673 | if test -s conftest.err; then |
---|
1674 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1675 | cat conftest.er1 >&5 |
---|
1676 | mv -f conftest.er1 conftest.err |
---|
1677 | fi |
---|
1678 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1679 | test $ac_status = 0; } && { |
---|
1680 | test -z "$ac_c_werror_flag" || |
---|
1681 | test ! -s conftest.err |
---|
1682 | } && test -s conftest$ac_exeext && { |
---|
1683 | test "$cross_compiling" = yes || |
---|
1684 | test -x conftest$ac_exeext |
---|
1685 | }; then : |
---|
1686 | ac_retval=0 |
---|
1687 | else |
---|
1688 | $as_echo "$as_me: failed program was:" >&5 |
---|
1689 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1690 | |
---|
1691 | ac_retval=1 |
---|
1692 | fi |
---|
1693 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1694 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1695 | # interfere with the next link command; also delete a directory that is |
---|
1696 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1697 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1698 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1699 | as_fn_set_status $ac_retval |
---|
1700 | |
---|
1701 | } # ac_fn_c_try_link |
---|
1702 | |
---|
1703 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
1704 | # ---------------------------------- |
---|
1705 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1706 | ac_fn_c_check_func () |
---|
1707 | { |
---|
1708 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1710 | $as_echo_n "checking for $2... " >&6; } |
---|
1711 | if eval \${$3+:} false; then : |
---|
1712 | $as_echo_n "(cached) " >&6 |
---|
1713 | else |
---|
1714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1715 | /* end confdefs.h. */ |
---|
1716 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1717 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1718 | #define $2 innocuous_$2 |
---|
1719 | |
---|
1720 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1721 | which can conflict with char $2 (); below. |
---|
1722 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1723 | <limits.h> exists even on freestanding compilers. */ |
---|
1724 | |
---|
1725 | #ifdef __STDC__ |
---|
1726 | # include <limits.h> |
---|
1727 | #else |
---|
1728 | # include <assert.h> |
---|
1729 | #endif |
---|
1730 | |
---|
1731 | #undef $2 |
---|
1732 | |
---|
1733 | /* Override any GCC internal prototype to avoid an error. |
---|
1734 | Use char because int might match the return type of a GCC |
---|
1735 | builtin and then its argument prototype would still apply. */ |
---|
1736 | #ifdef __cplusplus |
---|
1737 | extern "C" |
---|
1738 | #endif |
---|
1739 | char $2 (); |
---|
1740 | /* The GNU C library defines this for functions which it implements |
---|
1741 | to always fail with ENOSYS. Some functions are actually named |
---|
1742 | something starting with __ and the normal name is an alias. */ |
---|
1743 | #if defined __stub_$2 || defined __stub___$2 |
---|
1744 | choke me |
---|
1745 | #endif |
---|
1746 | |
---|
1747 | int |
---|
1748 | main () |
---|
1749 | { |
---|
1750 | return $2 (); |
---|
1751 | ; |
---|
1752 | return 0; |
---|
1753 | } |
---|
1754 | _ACEOF |
---|
1755 | if ac_fn_c_try_link "$LINENO"; then : |
---|
1756 | eval "$3=yes" |
---|
1757 | else |
---|
1758 | eval "$3=no" |
---|
1759 | fi |
---|
1760 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1761 | conftest$ac_exeext conftest.$ac_ext |
---|
1762 | fi |
---|
1763 | eval ac_res=\$$3 |
---|
1764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1765 | $as_echo "$ac_res" >&6; } |
---|
1766 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1767 | |
---|
1768 | } # ac_fn_c_check_func |
---|
1769 | |
---|
1770 | # ac_fn_cxx_try_link LINENO |
---|
1771 | # ------------------------- |
---|
1772 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1773 | ac_fn_cxx_try_link () |
---|
1774 | { |
---|
1775 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1776 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1777 | if { { ac_try="$ac_link" |
---|
1778 | case "(($ac_try" in |
---|
1779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1780 | *) ac_try_echo=$ac_try;; |
---|
1781 | esac |
---|
1782 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1783 | $as_echo "$ac_try_echo"; } >&5 |
---|
1784 | (eval "$ac_link") 2>conftest.err |
---|
1785 | ac_status=$? |
---|
1786 | if test -s conftest.err; then |
---|
1787 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1788 | cat conftest.er1 >&5 |
---|
1789 | mv -f conftest.er1 conftest.err |
---|
1790 | fi |
---|
1791 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1792 | test $ac_status = 0; } && { |
---|
1793 | test -z "$ac_cxx_werror_flag" || |
---|
1794 | test ! -s conftest.err |
---|
1795 | } && test -s conftest$ac_exeext && { |
---|
1796 | test "$cross_compiling" = yes || |
---|
1797 | test -x conftest$ac_exeext |
---|
1798 | }; then : |
---|
1799 | ac_retval=0 |
---|
1800 | else |
---|
1801 | $as_echo "$as_me: failed program was:" >&5 |
---|
1802 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1803 | |
---|
1804 | ac_retval=1 |
---|
1805 | fi |
---|
1806 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1807 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1808 | # interfere with the next link command; also delete a directory that is |
---|
1809 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1810 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1811 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1812 | as_fn_set_status $ac_retval |
---|
1813 | |
---|
1814 | } # ac_fn_cxx_try_link |
---|
1815 | |
---|
1816 | # ac_fn_cxx_check_func LINENO FUNC VAR |
---|
1817 | # ------------------------------------ |
---|
1818 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1819 | ac_fn_cxx_check_func () |
---|
1820 | { |
---|
1821 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1823 | $as_echo_n "checking for $2... " >&6; } |
---|
1824 | if eval \${$3+:} false; then : |
---|
1825 | $as_echo_n "(cached) " >&6 |
---|
1826 | else |
---|
1827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1828 | /* end confdefs.h. */ |
---|
1829 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1830 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1831 | #define $2 innocuous_$2 |
---|
1832 | |
---|
1833 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1834 | which can conflict with char $2 (); below. |
---|
1835 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1836 | <limits.h> exists even on freestanding compilers. */ |
---|
1837 | |
---|
1838 | #ifdef __STDC__ |
---|
1839 | # include <limits.h> |
---|
1840 | #else |
---|
1841 | # include <assert.h> |
---|
1842 | #endif |
---|
1843 | |
---|
1844 | #undef $2 |
---|
1845 | |
---|
1846 | /* Override any GCC internal prototype to avoid an error. |
---|
1847 | Use char because int might match the return type of a GCC |
---|
1848 | builtin and then its argument prototype would still apply. */ |
---|
1849 | #ifdef __cplusplus |
---|
1850 | extern "C" |
---|
1851 | #endif |
---|
1852 | char $2 (); |
---|
1853 | /* The GNU C library defines this for functions which it implements |
---|
1854 | to always fail with ENOSYS. Some functions are actually named |
---|
1855 | something starting with __ and the normal name is an alias. */ |
---|
1856 | #if defined __stub_$2 || defined __stub___$2 |
---|
1857 | choke me |
---|
1858 | #endif |
---|
1859 | |
---|
1860 | int |
---|
1861 | main () |
---|
1862 | { |
---|
1863 | return $2 (); |
---|
1864 | ; |
---|
1865 | return 0; |
---|
1866 | } |
---|
1867 | _ACEOF |
---|
1868 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
1869 | eval "$3=yes" |
---|
1870 | else |
---|
1871 | eval "$3=no" |
---|
1872 | fi |
---|
1873 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1874 | conftest$ac_exeext conftest.$ac_ext |
---|
1875 | fi |
---|
1876 | eval ac_res=\$$3 |
---|
1877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1878 | $as_echo "$ac_res" >&6; } |
---|
1879 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1880 | |
---|
1881 | } # ac_fn_cxx_check_func |
---|
1882 | |
---|
1883 | # ac_fn_cxx_try_cpp LINENO |
---|
1884 | # ------------------------ |
---|
1885 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1886 | ac_fn_cxx_try_cpp () |
---|
1887 | { |
---|
1888 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1889 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1890 | case "(($ac_try" in |
---|
1891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1892 | *) ac_try_echo=$ac_try;; |
---|
1893 | esac |
---|
1894 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1895 | $as_echo "$ac_try_echo"; } >&5 |
---|
1896 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1897 | ac_status=$? |
---|
1898 | if test -s conftest.err; then |
---|
1899 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1900 | cat conftest.er1 >&5 |
---|
1901 | mv -f conftest.er1 conftest.err |
---|
1902 | fi |
---|
1903 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1904 | test $ac_status = 0; } > conftest.i && { |
---|
1905 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
1906 | test ! -s conftest.err |
---|
1907 | }; then : |
---|
1908 | ac_retval=0 |
---|
1909 | else |
---|
1910 | $as_echo "$as_me: failed program was:" >&5 |
---|
1911 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1912 | |
---|
1913 | ac_retval=1 |
---|
1914 | fi |
---|
1915 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1916 | as_fn_set_status $ac_retval |
---|
1917 | |
---|
1918 | } # ac_fn_cxx_try_cpp |
---|
1919 | |
---|
1920 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1921 | # --------------------------------------------------------- |
---|
1922 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1923 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1924 | # accordingly. |
---|
1925 | ac_fn_cxx_check_header_mongrel () |
---|
1926 | { |
---|
1927 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1928 | if eval \${$3+:} false; then : |
---|
1929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1930 | $as_echo_n "checking for $2... " >&6; } |
---|
1931 | if eval \${$3+:} false; then : |
---|
1932 | $as_echo_n "(cached) " >&6 |
---|
1933 | fi |
---|
1934 | eval ac_res=\$$3 |
---|
1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1936 | $as_echo "$ac_res" >&6; } |
---|
1937 | else |
---|
1938 | # Is the header compilable? |
---|
1939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1940 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1942 | /* end confdefs.h. */ |
---|
1943 | $4 |
---|
1944 | #include <$2> |
---|
1945 | _ACEOF |
---|
1946 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
1947 | ac_header_compiler=yes |
---|
1948 | else |
---|
1949 | ac_header_compiler=no |
---|
1950 | fi |
---|
1951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1953 | $as_echo "$ac_header_compiler" >&6; } |
---|
1954 | |
---|
1955 | # Is the header present? |
---|
1956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1957 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1959 | /* end confdefs.h. */ |
---|
1960 | #include <$2> |
---|
1961 | _ACEOF |
---|
1962 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
1963 | ac_header_preproc=yes |
---|
1964 | else |
---|
1965 | ac_header_preproc=no |
---|
1966 | fi |
---|
1967 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1969 | $as_echo "$ac_header_preproc" >&6; } |
---|
1970 | |
---|
1971 | # So? What about this header? |
---|
1972 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
---|
1973 | yes:no: ) |
---|
1974 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1975 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1976 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1977 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1978 | ;; |
---|
1979 | no:yes:* ) |
---|
1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1981 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1983 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1984 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1985 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1987 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1989 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1990 | ( $as_echo "## ----------------------------------- ## |
---|
1991 | ## Report this to rappture@nanohub.org ## |
---|
1992 | ## ----------------------------------- ##" |
---|
1993 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1994 | ;; |
---|
1995 | esac |
---|
1996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1997 | $as_echo_n "checking for $2... " >&6; } |
---|
1998 | if eval \${$3+:} false; then : |
---|
1999 | $as_echo_n "(cached) " >&6 |
---|
2000 | else |
---|
2001 | eval "$3=\$ac_header_compiler" |
---|
2002 | fi |
---|
2003 | eval ac_res=\$$3 |
---|
2004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2005 | $as_echo "$ac_res" >&6; } |
---|
2006 | fi |
---|
2007 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2008 | |
---|
2009 | } # ac_fn_cxx_check_header_mongrel |
---|
2010 | |
---|
2011 | # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES |
---|
2012 | # --------------------------------------------------------- |
---|
2013 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
2014 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
2015 | ac_fn_cxx_check_header_compile () |
---|
2016 | { |
---|
2017 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2019 | $as_echo_n "checking for $2... " >&6; } |
---|
2020 | if eval \${$3+:} false; then : |
---|
2021 | $as_echo_n "(cached) " >&6 |
---|
2022 | else |
---|
2023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2024 | /* end confdefs.h. */ |
---|
2025 | $4 |
---|
2026 | #include <$2> |
---|
2027 | _ACEOF |
---|
2028 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2029 | eval "$3=yes" |
---|
2030 | else |
---|
2031 | eval "$3=no" |
---|
2032 | fi |
---|
2033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2034 | fi |
---|
2035 | eval ac_res=\$$3 |
---|
2036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2037 | $as_echo "$ac_res" >&6; } |
---|
2038 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2039 | |
---|
2040 | } # ac_fn_cxx_check_header_compile |
---|
2041 | |
---|
2042 | # ac_fn_cxx_try_run LINENO |
---|
2043 | # ------------------------ |
---|
2044 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
2045 | # that executables *can* be run. |
---|
2046 | ac_fn_cxx_try_run () |
---|
2047 | { |
---|
2048 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2049 | if { { ac_try="$ac_link" |
---|
2050 | case "(($ac_try" in |
---|
2051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2052 | *) ac_try_echo=$ac_try;; |
---|
2053 | esac |
---|
2054 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2055 | $as_echo "$ac_try_echo"; } >&5 |
---|
2056 | (eval "$ac_link") 2>&5 |
---|
2057 | ac_status=$? |
---|
2058 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2059 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
2060 | { { case "(($ac_try" in |
---|
2061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2062 | *) ac_try_echo=$ac_try;; |
---|
2063 | esac |
---|
2064 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2065 | $as_echo "$ac_try_echo"; } >&5 |
---|
2066 | (eval "$ac_try") 2>&5 |
---|
2067 | ac_status=$? |
---|
2068 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2069 | test $ac_status = 0; }; }; then : |
---|
2070 | ac_retval=0 |
---|
2071 | else |
---|
2072 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
2073 | $as_echo "$as_me: failed program was:" >&5 |
---|
2074 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2075 | |
---|
2076 | ac_retval=$ac_status |
---|
2077 | fi |
---|
2078 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
2079 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2080 | as_fn_set_status $ac_retval |
---|
2081 | |
---|
2082 | } # ac_fn_cxx_try_run |
---|
2083 | |
---|
2084 | # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES |
---|
2085 | # ---------------------------------------------- |
---|
2086 | # Tries to find the compile-time value of EXPR in a program that includes |
---|
2087 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
---|
2088 | # computed |
---|
2089 | ac_fn_cxx_compute_int () |
---|
2090 | { |
---|
2091 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2092 | if test "$cross_compiling" = yes; then |
---|
2093 | # Depending upon the size, compute the lo and hi bounds. |
---|
2094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2095 | /* end confdefs.h. */ |
---|
2096 | $4 |
---|
2097 | int |
---|
2098 | main () |
---|
2099 | { |
---|
2100 | static int test_array [1 - 2 * !(($2) >= 0)]; |
---|
2101 | test_array [0] = 0; |
---|
2102 | return test_array [0]; |
---|
2103 | |
---|
2104 | ; |
---|
2105 | return 0; |
---|
2106 | } |
---|
2107 | _ACEOF |
---|
2108 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2109 | ac_lo=0 ac_mid=0 |
---|
2110 | while :; do |
---|
2111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2112 | /* end confdefs.h. */ |
---|
2113 | $4 |
---|
2114 | int |
---|
2115 | main () |
---|
2116 | { |
---|
2117 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
---|
2118 | test_array [0] = 0; |
---|
2119 | return test_array [0]; |
---|
2120 | |
---|
2121 | ; |
---|
2122 | return 0; |
---|
2123 | } |
---|
2124 | _ACEOF |
---|
2125 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2126 | ac_hi=$ac_mid; break |
---|
2127 | else |
---|
2128 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
---|
2129 | if test $ac_lo -le $ac_mid; then |
---|
2130 | ac_lo= ac_hi= |
---|
2131 | break |
---|
2132 | fi |
---|
2133 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
---|
2134 | fi |
---|
2135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2136 | done |
---|
2137 | else |
---|
2138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2139 | /* end confdefs.h. */ |
---|
2140 | $4 |
---|
2141 | int |
---|
2142 | main () |
---|
2143 | { |
---|
2144 | static int test_array [1 - 2 * !(($2) < 0)]; |
---|
2145 | test_array [0] = 0; |
---|
2146 | return test_array [0]; |
---|
2147 | |
---|
2148 | ; |
---|
2149 | return 0; |
---|
2150 | } |
---|
2151 | _ACEOF |
---|
2152 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2153 | ac_hi=-1 ac_mid=-1 |
---|
2154 | while :; do |
---|
2155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2156 | /* end confdefs.h. */ |
---|
2157 | $4 |
---|
2158 | int |
---|
2159 | main () |
---|
2160 | { |
---|
2161 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
---|
2162 | test_array [0] = 0; |
---|
2163 | return test_array [0]; |
---|
2164 | |
---|
2165 | ; |
---|
2166 | return 0; |
---|
2167 | } |
---|
2168 | _ACEOF |
---|
2169 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2170 | ac_lo=$ac_mid; break |
---|
2171 | else |
---|
2172 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
---|
2173 | if test $ac_mid -le $ac_hi; then |
---|
2174 | ac_lo= ac_hi= |
---|
2175 | break |
---|
2176 | fi |
---|
2177 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
---|
2178 | fi |
---|
2179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2180 | done |
---|
2181 | else |
---|
2182 | ac_lo= ac_hi= |
---|
2183 | fi |
---|
2184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2185 | fi |
---|
2186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2187 | # Binary search between lo and hi bounds. |
---|
2188 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
2189 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
---|
2190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2191 | /* end confdefs.h. */ |
---|
2192 | $4 |
---|
2193 | int |
---|
2194 | main () |
---|
2195 | { |
---|
2196 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
---|
2197 | test_array [0] = 0; |
---|
2198 | return test_array [0]; |
---|
2199 | |
---|
2200 | ; |
---|
2201 | return 0; |
---|
2202 | } |
---|
2203 | _ACEOF |
---|
2204 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2205 | ac_hi=$ac_mid |
---|
2206 | else |
---|
2207 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
---|
2208 | fi |
---|
2209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2210 | done |
---|
2211 | case $ac_lo in #(( |
---|
2212 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
---|
2213 | '') ac_retval=1 ;; |
---|
2214 | esac |
---|
2215 | else |
---|
2216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2217 | /* end confdefs.h. */ |
---|
2218 | $4 |
---|
2219 | static long int longval () { return $2; } |
---|
2220 | static unsigned long int ulongval () { return $2; } |
---|
2221 | #include <stdio.h> |
---|
2222 | #include <stdlib.h> |
---|
2223 | int |
---|
2224 | main () |
---|
2225 | { |
---|
2226 | |
---|
2227 | FILE *f = fopen ("conftest.val", "w"); |
---|
2228 | if (! f) |
---|
2229 | return 1; |
---|
2230 | if (($2) < 0) |
---|
2231 | { |
---|
2232 | long int i = longval (); |
---|
2233 | if (i != ($2)) |
---|
2234 | return 1; |
---|
2235 | fprintf (f, "%ld", i); |
---|
2236 | } |
---|
2237 | else |
---|
2238 | { |
---|
2239 | unsigned long int i = ulongval (); |
---|
2240 | if (i != ($2)) |
---|
2241 | return 1; |
---|
2242 | fprintf (f, "%lu", i); |
---|
2243 | } |
---|
2244 | /* Do not output a trailing newline, as this causes \r\n confusion |
---|
2245 | on some platforms. */ |
---|
2246 | return ferror (f) || fclose (f) != 0; |
---|
2247 | |
---|
2248 | ; |
---|
2249 | return 0; |
---|
2250 | } |
---|
2251 | _ACEOF |
---|
2252 | if ac_fn_cxx_try_run "$LINENO"; then : |
---|
2253 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
---|
2254 | else |
---|
2255 | ac_retval=1 |
---|
2256 | fi |
---|
2257 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
2258 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
2259 | rm -f conftest.val |
---|
2260 | |
---|
2261 | fi |
---|
2262 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2263 | as_fn_set_status $ac_retval |
---|
2264 | |
---|
2265 | } # ac_fn_cxx_compute_int |
---|
2266 | cat >config.log <<_ACEOF |
---|
2267 | This file contains any messages produced by compilers while |
---|
2268 | running configure, to aid debugging if configure makes a mistake. |
---|
2269 | |
---|
2270 | It was created by Rappture $as_me 1.4, which was |
---|
2271 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
2272 | |
---|
2273 | $ $0 $@ |
---|
2274 | |
---|
2275 | _ACEOF |
---|
2276 | exec 5>>config.log |
---|
2277 | { |
---|
2278 | cat <<_ASUNAME |
---|
2279 | ## --------- ## |
---|
2280 | ## Platform. ## |
---|
2281 | ## --------- ## |
---|
2282 | |
---|
2283 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
2284 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
2285 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
2286 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
2287 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
2288 | |
---|
2289 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
2290 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
2291 | |
---|
2292 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
2293 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
2294 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
2295 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
2296 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
2297 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
2298 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
2299 | |
---|
2300 | _ASUNAME |
---|
2301 | |
---|
2302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2303 | for as_dir in $PATH |
---|
2304 | do |
---|
2305 | IFS=$as_save_IFS |
---|
2306 | test -z "$as_dir" && as_dir=. |
---|
2307 | $as_echo "PATH: $as_dir" |
---|
2308 | done |
---|
2309 | IFS=$as_save_IFS |
---|
2310 | |
---|
2311 | } >&5 |
---|
2312 | |
---|
2313 | cat >&5 <<_ACEOF |
---|
2314 | |
---|
2315 | |
---|
2316 | ## ----------- ## |
---|
2317 | ## Core tests. ## |
---|
2318 | ## ----------- ## |
---|
2319 | |
---|
2320 | _ACEOF |
---|
2321 | |
---|
2322 | |
---|
2323 | # Keep a trace of the command line. |
---|
2324 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2325 | # Strip out --silent because we don't want to record it for future runs. |
---|
2326 | # Also quote any args containing shell meta-characters. |
---|
2327 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2328 | ac_configure_args= |
---|
2329 | ac_configure_args0= |
---|
2330 | ac_configure_args1= |
---|
2331 | ac_must_keep_next=false |
---|
2332 | for ac_pass in 1 2 |
---|
2333 | do |
---|
2334 | for ac_arg |
---|
2335 | do |
---|
2336 | case $ac_arg in |
---|
2337 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2338 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2339 | | -silent | --silent | --silen | --sile | --sil) |
---|
2340 | continue ;; |
---|
2341 | *\'*) |
---|
2342 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2343 | esac |
---|
2344 | case $ac_pass in |
---|
2345 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2346 | 2) |
---|
2347 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2348 | if test $ac_must_keep_next = true; then |
---|
2349 | ac_must_keep_next=false # Got value, back to normal. |
---|
2350 | else |
---|
2351 | case $ac_arg in |
---|
2352 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2353 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2354 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2355 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2356 | case "$ac_configure_args0 " in |
---|
2357 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2358 | esac |
---|
2359 | ;; |
---|
2360 | -* ) ac_must_keep_next=true ;; |
---|
2361 | esac |
---|
2362 | fi |
---|
2363 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2364 | ;; |
---|
2365 | esac |
---|
2366 | done |
---|
2367 | done |
---|
2368 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2369 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2370 | |
---|
2371 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2372 | # config.log. We remove comments because anyway the quotes in there |
---|
2373 | # would cause problems or look ugly. |
---|
2374 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2375 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2376 | trap 'exit_status=$? |
---|
2377 | # Save into config.log some information that might help in debugging. |
---|
2378 | { |
---|
2379 | echo |
---|
2380 | |
---|
2381 | $as_echo "## ---------------- ## |
---|
2382 | ## Cache variables. ## |
---|
2383 | ## ---------------- ##" |
---|
2384 | echo |
---|
2385 | # The following way of writing the cache mishandles newlines in values, |
---|
2386 | ( |
---|
2387 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2388 | eval ac_val=\$$ac_var |
---|
2389 | case $ac_val in #( |
---|
2390 | *${as_nl}*) |
---|
2391 | case $ac_var in #( |
---|
2392 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2393 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2394 | esac |
---|
2395 | case $ac_var in #( |
---|
2396 | _ | IFS | as_nl) ;; #( |
---|
2397 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2398 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2399 | esac ;; |
---|
2400 | esac |
---|
2401 | done |
---|
2402 | (set) 2>&1 | |
---|
2403 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2404 | *${as_nl}ac_space=\ *) |
---|
2405 | sed -n \ |
---|
2406 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2407 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2408 | ;; #( |
---|
2409 | *) |
---|
2410 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2411 | ;; |
---|
2412 | esac | |
---|
2413 | sort |
---|
2414 | ) |
---|
2415 | echo |
---|
2416 | |
---|
2417 | $as_echo "## ----------------- ## |
---|
2418 | ## Output variables. ## |
---|
2419 | ## ----------------- ##" |
---|
2420 | echo |
---|
2421 | for ac_var in $ac_subst_vars |
---|
2422 | do |
---|
2423 | eval ac_val=\$$ac_var |
---|
2424 | case $ac_val in |
---|
2425 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2426 | esac |
---|
2427 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2428 | done | sort |
---|
2429 | echo |
---|
2430 | |
---|
2431 | if test -n "$ac_subst_files"; then |
---|
2432 | $as_echo "## ------------------- ## |
---|
2433 | ## File substitutions. ## |
---|
2434 | ## ------------------- ##" |
---|
2435 | echo |
---|
2436 | for ac_var in $ac_subst_files |
---|
2437 | do |
---|
2438 | eval ac_val=\$$ac_var |
---|
2439 | case $ac_val in |
---|
2440 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2441 | esac |
---|
2442 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2443 | done | sort |
---|
2444 | echo |
---|
2445 | fi |
---|
2446 | |
---|
2447 | if test -s confdefs.h; then |
---|
2448 | $as_echo "## ----------- ## |
---|
2449 | ## confdefs.h. ## |
---|
2450 | ## ----------- ##" |
---|
2451 | echo |
---|
2452 | cat confdefs.h |
---|
2453 | echo |
---|
2454 | fi |
---|
2455 | test "$ac_signal" != 0 && |
---|
2456 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2457 | $as_echo "$as_me: exit $exit_status" |
---|
2458 | } >&5 |
---|
2459 | rm -f core *.core core.conftest.* && |
---|
2460 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2461 | exit $exit_status |
---|
2462 | ' 0 |
---|
2463 | for ac_signal in 1 2 13 15; do |
---|
2464 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2465 | done |
---|
2466 | ac_signal=0 |
---|
2467 | |
---|
2468 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2469 | rm -f -r conftest* confdefs.h |
---|
2470 | |
---|
2471 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2472 | |
---|
2473 | # Predefined preprocessor variables. |
---|
2474 | |
---|
2475 | cat >>confdefs.h <<_ACEOF |
---|
2476 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2477 | _ACEOF |
---|
2478 | |
---|
2479 | cat >>confdefs.h <<_ACEOF |
---|
2480 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2481 | _ACEOF |
---|
2482 | |
---|
2483 | cat >>confdefs.h <<_ACEOF |
---|
2484 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2485 | _ACEOF |
---|
2486 | |
---|
2487 | cat >>confdefs.h <<_ACEOF |
---|
2488 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2489 | _ACEOF |
---|
2490 | |
---|
2491 | cat >>confdefs.h <<_ACEOF |
---|
2492 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2493 | _ACEOF |
---|
2494 | |
---|
2495 | cat >>confdefs.h <<_ACEOF |
---|
2496 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2497 | _ACEOF |
---|
2498 | |
---|
2499 | |
---|
2500 | # Let the site file select an alternate cache file if it wants to. |
---|
2501 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2502 | ac_site_file1=NONE |
---|
2503 | ac_site_file2=NONE |
---|
2504 | if test -n "$CONFIG_SITE"; then |
---|
2505 | # We do not want a PATH search for config.site. |
---|
2506 | case $CONFIG_SITE in #(( |
---|
2507 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2508 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2509 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2510 | esac |
---|
2511 | elif test "x$prefix" != xNONE; then |
---|
2512 | ac_site_file1=$prefix/share/config.site |
---|
2513 | ac_site_file2=$prefix/etc/config.site |
---|
2514 | else |
---|
2515 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2516 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2517 | fi |
---|
2518 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2519 | do |
---|
2520 | test "x$ac_site_file" = xNONE && continue |
---|
2521 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2522 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2523 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2524 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2525 | . "$ac_site_file" \ |
---|
2526 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2527 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2528 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2529 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2530 | fi |
---|
2531 | done |
---|
2532 | |
---|
2533 | if test -r "$cache_file"; then |
---|
2534 | # Some versions of bash will fail to source /dev/null (special files |
---|
2535 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2536 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2538 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2539 | case $cache_file in |
---|
2540 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2541 | *) . "./$cache_file";; |
---|
2542 | esac |
---|
2543 | fi |
---|
2544 | else |
---|
2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2546 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2547 | >$cache_file |
---|
2548 | fi |
---|
2549 | |
---|
2550 | # Check that the precious variables saved in the cache have kept the same |
---|
2551 | # value. |
---|
2552 | ac_cache_corrupted=false |
---|
2553 | for ac_var in $ac_precious_vars; do |
---|
2554 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2555 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2556 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2557 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2558 | case $ac_old_set,$ac_new_set in |
---|
2559 | set,) |
---|
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2561 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2562 | ac_cache_corrupted=: ;; |
---|
2563 | ,set) |
---|
2564 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2565 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2566 | ac_cache_corrupted=: ;; |
---|
2567 | ,);; |
---|
2568 | *) |
---|
2569 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2570 | # differences in whitespace do not lead to failure. |
---|
2571 | ac_old_val_w=`echo x $ac_old_val` |
---|
2572 | ac_new_val_w=`echo x $ac_new_val` |
---|
2573 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2575 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2576 | ac_cache_corrupted=: |
---|
2577 | else |
---|
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2579 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2580 | eval $ac_var=\$ac_old_val |
---|
2581 | fi |
---|
2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2583 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2585 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2586 | fi;; |
---|
2587 | esac |
---|
2588 | # Pass precious variables to config.status. |
---|
2589 | if test "$ac_new_set" = set; then |
---|
2590 | case $ac_new_val in |
---|
2591 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2592 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2593 | esac |
---|
2594 | case " $ac_configure_args " in |
---|
2595 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2596 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2597 | esac |
---|
2598 | fi |
---|
2599 | done |
---|
2600 | if $ac_cache_corrupted; then |
---|
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2602 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2604 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2605 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2606 | fi |
---|
2607 | ## -------------------- ## |
---|
2608 | ## Main body of script. ## |
---|
2609 | ## -------------------- ## |
---|
2610 | |
---|
2611 | ac_ext=c |
---|
2612 | ac_cpp='$CPP $CPPFLAGS' |
---|
2613 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2614 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2615 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2616 | |
---|
2617 | |
---|
2618 | ac_aux_dir= |
---|
2619 | for ac_dir in ../cf "$srcdir"/../cf; do |
---|
2620 | if test -f "$ac_dir/install-sh"; then |
---|
2621 | ac_aux_dir=$ac_dir |
---|
2622 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2623 | break |
---|
2624 | elif test -f "$ac_dir/install.sh"; then |
---|
2625 | ac_aux_dir=$ac_dir |
---|
2626 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2627 | break |
---|
2628 | elif test -f "$ac_dir/shtool"; then |
---|
2629 | ac_aux_dir=$ac_dir |
---|
2630 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2631 | break |
---|
2632 | fi |
---|
2633 | done |
---|
2634 | if test -z "$ac_aux_dir"; then |
---|
2635 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../cf \"$srcdir\"/../cf" "$LINENO" 5 |
---|
2636 | fi |
---|
2637 | |
---|
2638 | # These three variables are undocumented and unsupported, |
---|
2639 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2640 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2641 | # whose full name contains unusual characters. |
---|
2642 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2643 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2644 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2645 | |
---|
2646 | |
---|
2647 | ac_config_headers="$ac_config_headers rappture/config.h" |
---|
2648 | |
---|
2649 | |
---|
2650 | #------------------------------------------------------------------------ |
---|
2651 | # Handle the --prefix=... option |
---|
2652 | #------------------------------------------------------------------------ |
---|
2653 | |
---|
2654 | if test "${prefix}" = "NONE"; then |
---|
2655 | prefix=/usr/local |
---|
2656 | fi |
---|
2657 | if test "${exec_prefix}" = "NONE"; then |
---|
2658 | exec_prefix=$prefix |
---|
2659 | fi |
---|
2660 | |
---|
2661 | |
---|
2662 | # Check whether --with-install was given. |
---|
2663 | if test "${with_install+set}" = set; then : |
---|
2664 | withval=$with_install; |
---|
2665 | else |
---|
2666 | with_install=yes |
---|
2667 | fi |
---|
2668 | |
---|
2669 | |
---|
2670 | if test "$with_install" != "yes"; then |
---|
2671 | INSTALL_PREFIX=$with_install |
---|
2672 | else |
---|
2673 | INSTALL_PREFIX=$prefix |
---|
2674 | fi |
---|
2675 | |
---|
2676 | |
---|
2677 | if test "${libdir}" != "${prefix}/lib"; then |
---|
2678 | LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}" |
---|
2679 | else |
---|
2680 | LIB_SEARCH_DIRS="-L${libdir}" |
---|
2681 | fi |
---|
2682 | |
---|
2683 | |
---|
2684 | # Find a good install program. We prefer a C program (faster), |
---|
2685 | # so one script is as good as another. But avoid the broken or |
---|
2686 | # incompatible versions: |
---|
2687 | # SysV /etc/install, /usr/sbin/install |
---|
2688 | # SunOS /usr/etc/install |
---|
2689 | # IRIX /sbin/install |
---|
2690 | # AIX /bin/install |
---|
2691 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2692 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2693 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2694 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2695 | # OS/2's system install, which has a completely different semantic |
---|
2696 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2697 | # Reject install programs that cannot install multiple files. |
---|
2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2699 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2700 | if test -z "$INSTALL"; then |
---|
2701 | if ${ac_cv_path_install+:} false; then : |
---|
2702 | $as_echo_n "(cached) " >&6 |
---|
2703 | else |
---|
2704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2705 | for as_dir in $PATH |
---|
2706 | do |
---|
2707 | IFS=$as_save_IFS |
---|
2708 | test -z "$as_dir" && as_dir=. |
---|
2709 | # Account for people who put trailing slashes in PATH elements. |
---|
2710 | case $as_dir/ in #(( |
---|
2711 | ./ | .// | /[cC]/* | \ |
---|
2712 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2713 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2714 | /usr/ucb/* ) ;; |
---|
2715 | *) |
---|
2716 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2717 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2718 | # by default. |
---|
2719 | for ac_prog in ginstall scoinst install; do |
---|
2720 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2721 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
2722 | if test $ac_prog = install && |
---|
2723 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2724 | # AIX install. It has an incompatible calling convention. |
---|
2725 | : |
---|
2726 | elif test $ac_prog = install && |
---|
2727 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2728 | # program-specific install script used by HP pwplus--don't use. |
---|
2729 | : |
---|
2730 | else |
---|
2731 | rm -rf conftest.one conftest.two conftest.dir |
---|
2732 | echo one > conftest.one |
---|
2733 | echo two > conftest.two |
---|
2734 | mkdir conftest.dir |
---|
2735 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2736 | test -s conftest.one && test -s conftest.two && |
---|
2737 | test -s conftest.dir/conftest.one && |
---|
2738 | test -s conftest.dir/conftest.two |
---|
2739 | then |
---|
2740 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2741 | break 3 |
---|
2742 | fi |
---|
2743 | fi |
---|
2744 | fi |
---|
2745 | done |
---|
2746 | done |
---|
2747 | ;; |
---|
2748 | esac |
---|
2749 | |
---|
2750 | done |
---|
2751 | IFS=$as_save_IFS |
---|
2752 | |
---|
2753 | rm -rf conftest.one conftest.two conftest.dir |
---|
2754 | |
---|
2755 | fi |
---|
2756 | if test "${ac_cv_path_install+set}" = set; then |
---|
2757 | INSTALL=$ac_cv_path_install |
---|
2758 | else |
---|
2759 | # As a last resort, use the slow shell script. Don't cache a |
---|
2760 | # value for INSTALL within a source directory, because that will |
---|
2761 | # break other packages using the cache if that directory is |
---|
2762 | # removed, or if the value is a relative name. |
---|
2763 | INSTALL=$ac_install_sh |
---|
2764 | fi |
---|
2765 | fi |
---|
2766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2767 | $as_echo "$INSTALL" >&6; } |
---|
2768 | |
---|
2769 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2770 | # It thinks the first close brace ends the variable substitution. |
---|
2771 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2772 | |
---|
2773 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2774 | |
---|
2775 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2776 | |
---|
2777 | |
---|
2778 | if test -n "$ac_tool_prefix"; then |
---|
2779 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
2780 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
2781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2782 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2783 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
2784 | $as_echo_n "(cached) " >&6 |
---|
2785 | else |
---|
2786 | if test -n "$RANLIB"; then |
---|
2787 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2788 | else |
---|
2789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2790 | for as_dir in $PATH |
---|
2791 | do |
---|
2792 | IFS=$as_save_IFS |
---|
2793 | test -z "$as_dir" && as_dir=. |
---|
2794 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2795 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2796 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
2797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2798 | break 2 |
---|
2799 | fi |
---|
2800 | done |
---|
2801 | done |
---|
2802 | IFS=$as_save_IFS |
---|
2803 | |
---|
2804 | fi |
---|
2805 | fi |
---|
2806 | RANLIB=$ac_cv_prog_RANLIB |
---|
2807 | if test -n "$RANLIB"; then |
---|
2808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
2809 | $as_echo "$RANLIB" >&6; } |
---|
2810 | else |
---|
2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2812 | $as_echo "no" >&6; } |
---|
2813 | fi |
---|
2814 | |
---|
2815 | |
---|
2816 | fi |
---|
2817 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
2818 | ac_ct_RANLIB=$RANLIB |
---|
2819 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2820 | set dummy ranlib; ac_word=$2 |
---|
2821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2822 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2823 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
2824 | $as_echo_n "(cached) " >&6 |
---|
2825 | else |
---|
2826 | if test -n "$ac_ct_RANLIB"; then |
---|
2827 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
2828 | else |
---|
2829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2830 | for as_dir in $PATH |
---|
2831 | do |
---|
2832 | IFS=$as_save_IFS |
---|
2833 | test -z "$as_dir" && as_dir=. |
---|
2834 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2835 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2836 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
2837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2838 | break 2 |
---|
2839 | fi |
---|
2840 | done |
---|
2841 | done |
---|
2842 | IFS=$as_save_IFS |
---|
2843 | |
---|
2844 | fi |
---|
2845 | fi |
---|
2846 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
2847 | if test -n "$ac_ct_RANLIB"; then |
---|
2848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
2849 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
2850 | else |
---|
2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2852 | $as_echo "no" >&6; } |
---|
2853 | fi |
---|
2854 | |
---|
2855 | if test "x$ac_ct_RANLIB" = x; then |
---|
2856 | RANLIB=":" |
---|
2857 | else |
---|
2858 | case $cross_compiling:$ac_tool_warned in |
---|
2859 | yes:) |
---|
2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2861 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2862 | ac_tool_warned=yes ;; |
---|
2863 | esac |
---|
2864 | RANLIB=$ac_ct_RANLIB |
---|
2865 | fi |
---|
2866 | else |
---|
2867 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2868 | fi |
---|
2869 | |
---|
2870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
---|
2871 | $as_echo_n "checking whether ln -s works... " >&6; } |
---|
2872 | LN_S=$as_ln_s |
---|
2873 | if test "$LN_S" = "ln -s"; then |
---|
2874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2875 | $as_echo "yes" >&6; } |
---|
2876 | else |
---|
2877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
---|
2878 | $as_echo "no, using $LN_S" >&6; } |
---|
2879 | fi |
---|
2880 | |
---|
2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
2882 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
2883 | if test -z "$MKDIR_P"; then |
---|
2884 | if ${ac_cv_path_mkdir+:} false; then : |
---|
2885 | $as_echo_n "(cached) " >&6 |
---|
2886 | else |
---|
2887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2888 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2889 | do |
---|
2890 | IFS=$as_save_IFS |
---|
2891 | test -z "$as_dir" && as_dir=. |
---|
2892 | for ac_prog in mkdir gmkdir; do |
---|
2893 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2894 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
---|
2895 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2896 | 'mkdir (GNU coreutils) '* | \ |
---|
2897 | 'mkdir (coreutils) '* | \ |
---|
2898 | 'mkdir (fileutils) '4.1*) |
---|
2899 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2900 | break 3;; |
---|
2901 | esac |
---|
2902 | done |
---|
2903 | done |
---|
2904 | done |
---|
2905 | IFS=$as_save_IFS |
---|
2906 | |
---|
2907 | fi |
---|
2908 | |
---|
2909 | test -d ./--version && rmdir ./--version |
---|
2910 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2911 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2912 | else |
---|
2913 | # As a last resort, use the slow shell script. Don't cache a |
---|
2914 | # value for MKDIR_P within a source directory, because that will |
---|
2915 | # break other packages using the cache if that directory is |
---|
2916 | # removed, or if the value is a relative name. |
---|
2917 | MKDIR_P="$ac_install_sh -d" |
---|
2918 | fi |
---|
2919 | fi |
---|
2920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
2921 | $as_echo "$MKDIR_P" >&6; } |
---|
2922 | |
---|
2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2924 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
2925 | set x ${MAKE-make} |
---|
2926 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2927 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
2928 | $as_echo_n "(cached) " >&6 |
---|
2929 | else |
---|
2930 | cat >conftest.make <<\_ACEOF |
---|
2931 | SHELL = /bin/sh |
---|
2932 | all: |
---|
2933 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2934 | _ACEOF |
---|
2935 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
2936 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2937 | *@@@%%%=?*=@@@%%%*) |
---|
2938 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2939 | *) |
---|
2940 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2941 | esac |
---|
2942 | rm -f conftest.make |
---|
2943 | fi |
---|
2944 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2946 | $as_echo "yes" >&6; } |
---|
2947 | SET_MAKE= |
---|
2948 | else |
---|
2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2950 | $as_echo "no" >&6; } |
---|
2951 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2952 | fi |
---|
2953 | |
---|
2954 | |
---|
2955 | # Check for C, C++, and FORTRAN |
---|
2956 | ac_ext=c |
---|
2957 | ac_cpp='$CPP $CPPFLAGS' |
---|
2958 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2959 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2960 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2961 | if test -n "$ac_tool_prefix"; then |
---|
2962 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2963 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2965 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2966 | if ${ac_cv_prog_CC+:} false; then : |
---|
2967 | $as_echo_n "(cached) " >&6 |
---|
2968 | else |
---|
2969 | if test -n "$CC"; then |
---|
2970 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2971 | else |
---|
2972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2973 | for as_dir in $PATH |
---|
2974 | do |
---|
2975 | IFS=$as_save_IFS |
---|
2976 | test -z "$as_dir" && as_dir=. |
---|
2977 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2978 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2979 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2981 | break 2 |
---|
2982 | fi |
---|
2983 | done |
---|
2984 | done |
---|
2985 | IFS=$as_save_IFS |
---|
2986 | |
---|
2987 | fi |
---|
2988 | fi |
---|
2989 | CC=$ac_cv_prog_CC |
---|
2990 | if test -n "$CC"; then |
---|
2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2992 | $as_echo "$CC" >&6; } |
---|
2993 | else |
---|
2994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2995 | $as_echo "no" >&6; } |
---|
2996 | fi |
---|
2997 | |
---|
2998 | |
---|
2999 | fi |
---|
3000 | if test -z "$ac_cv_prog_CC"; then |
---|
3001 | ac_ct_CC=$CC |
---|
3002 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
3003 | set dummy gcc; ac_word=$2 |
---|
3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3005 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3006 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
3007 | $as_echo_n "(cached) " >&6 |
---|
3008 | else |
---|
3009 | if test -n "$ac_ct_CC"; then |
---|
3010 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3011 | else |
---|
3012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3013 | for as_dir in $PATH |
---|
3014 | do |
---|
3015 | IFS=$as_save_IFS |
---|
3016 | test -z "$as_dir" && as_dir=. |
---|
3017 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3018 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3019 | ac_cv_prog_ac_ct_CC="gcc" |
---|
3020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3021 | break 2 |
---|
3022 | fi |
---|
3023 | done |
---|
3024 | done |
---|
3025 | IFS=$as_save_IFS |
---|
3026 | |
---|
3027 | fi |
---|
3028 | fi |
---|
3029 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
3030 | if test -n "$ac_ct_CC"; then |
---|
3031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
3032 | $as_echo "$ac_ct_CC" >&6; } |
---|
3033 | else |
---|
3034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3035 | $as_echo "no" >&6; } |
---|
3036 | fi |
---|
3037 | |
---|
3038 | if test "x$ac_ct_CC" = x; then |
---|
3039 | CC="" |
---|
3040 | else |
---|
3041 | case $cross_compiling:$ac_tool_warned in |
---|
3042 | yes:) |
---|
3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3044 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3045 | ac_tool_warned=yes ;; |
---|
3046 | esac |
---|
3047 | CC=$ac_ct_CC |
---|
3048 | fi |
---|
3049 | else |
---|
3050 | CC="$ac_cv_prog_CC" |
---|
3051 | fi |
---|
3052 | |
---|
3053 | if test -z "$CC"; then |
---|
3054 | if test -n "$ac_tool_prefix"; then |
---|
3055 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
3056 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
3057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3058 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3059 | if ${ac_cv_prog_CC+:} false; then : |
---|
3060 | $as_echo_n "(cached) " >&6 |
---|
3061 | else |
---|
3062 | if test -n "$CC"; then |
---|
3063 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3064 | else |
---|
3065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3066 | for as_dir in $PATH |
---|
3067 | do |
---|
3068 | IFS=$as_save_IFS |
---|
3069 | test -z "$as_dir" && as_dir=. |
---|
3070 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3071 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3072 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
3073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3074 | break 2 |
---|
3075 | fi |
---|
3076 | done |
---|
3077 | done |
---|
3078 | IFS=$as_save_IFS |
---|
3079 | |
---|
3080 | fi |
---|
3081 | fi |
---|
3082 | CC=$ac_cv_prog_CC |
---|
3083 | if test -n "$CC"; then |
---|
3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3085 | $as_echo "$CC" >&6; } |
---|
3086 | else |
---|
3087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3088 | $as_echo "no" >&6; } |
---|
3089 | fi |
---|
3090 | |
---|
3091 | |
---|
3092 | fi |
---|
3093 | fi |
---|
3094 | if test -z "$CC"; then |
---|
3095 | # Extract the first word of "cc", so it can be a program name with args. |
---|
3096 | set dummy cc; ac_word=$2 |
---|
3097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3098 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3099 | if ${ac_cv_prog_CC+:} false; then : |
---|
3100 | $as_echo_n "(cached) " >&6 |
---|
3101 | else |
---|
3102 | if test -n "$CC"; then |
---|
3103 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3104 | else |
---|
3105 | ac_prog_rejected=no |
---|
3106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3107 | for as_dir in $PATH |
---|
3108 | do |
---|
3109 | IFS=$as_save_IFS |
---|
3110 | test -z "$as_dir" && as_dir=. |
---|
3111 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3112 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3113 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
3114 | ac_prog_rejected=yes |
---|
3115 | continue |
---|
3116 | fi |
---|
3117 | ac_cv_prog_CC="cc" |
---|
3118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3119 | break 2 |
---|
3120 | fi |
---|
3121 | done |
---|
3122 | done |
---|
3123 | IFS=$as_save_IFS |
---|
3124 | |
---|
3125 | if test $ac_prog_rejected = yes; then |
---|
3126 | # We found a bogon in the path, so make sure we never use it. |
---|
3127 | set dummy $ac_cv_prog_CC |
---|
3128 | shift |
---|
3129 | if test $# != 0; then |
---|
3130 | # We chose a different compiler from the bogus one. |
---|
3131 | # However, it has the same basename, so the bogon will be chosen |
---|
3132 | # first if we set CC to just the basename; use the full file name. |
---|
3133 | shift |
---|
3134 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
3135 | fi |
---|
3136 | fi |
---|
3137 | fi |
---|
3138 | fi |
---|
3139 | CC=$ac_cv_prog_CC |
---|
3140 | if test -n "$CC"; then |
---|
3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3142 | $as_echo "$CC" >&6; } |
---|
3143 | else |
---|
3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3145 | $as_echo "no" >&6; } |
---|
3146 | fi |
---|
3147 | |
---|
3148 | |
---|
3149 | fi |
---|
3150 | if test -z "$CC"; then |
---|
3151 | if test -n "$ac_tool_prefix"; then |
---|
3152 | for ac_prog in cl.exe |
---|
3153 | do |
---|
3154 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3155 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3157 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3158 | if ${ac_cv_prog_CC+:} false; then : |
---|
3159 | $as_echo_n "(cached) " >&6 |
---|
3160 | else |
---|
3161 | if test -n "$CC"; then |
---|
3162 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3163 | else |
---|
3164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3165 | for as_dir in $PATH |
---|
3166 | do |
---|
3167 | IFS=$as_save_IFS |
---|
3168 | test -z "$as_dir" && as_dir=. |
---|
3169 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3170 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3171 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
3172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3173 | break 2 |
---|
3174 | fi |
---|
3175 | done |
---|
3176 | done |
---|
3177 | IFS=$as_save_IFS |
---|
3178 | |
---|
3179 | fi |
---|
3180 | fi |
---|
3181 | CC=$ac_cv_prog_CC |
---|
3182 | if test -n "$CC"; then |
---|
3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3184 | $as_echo "$CC" >&6; } |
---|
3185 | else |
---|
3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3187 | $as_echo "no" >&6; } |
---|
3188 | fi |
---|
3189 | |
---|
3190 | |
---|
3191 | test -n "$CC" && break |
---|
3192 | done |
---|
3193 | fi |
---|
3194 | if test -z "$CC"; then |
---|
3195 | ac_ct_CC=$CC |
---|
3196 | for ac_prog in cl.exe |
---|
3197 | do |
---|
3198 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3199 | set dummy $ac_prog; ac_word=$2 |
---|
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3201 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3202 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
3203 | $as_echo_n "(cached) " >&6 |
---|
3204 | else |
---|
3205 | if test -n "$ac_ct_CC"; then |
---|
3206 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3207 | else |
---|
3208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3209 | for as_dir in $PATH |
---|
3210 | do |
---|
3211 | IFS=$as_save_IFS |
---|
3212 | test -z "$as_dir" && as_dir=. |
---|
3213 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3214 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3215 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
3216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3217 | break 2 |
---|
3218 | fi |
---|
3219 | done |
---|
3220 | done |
---|
3221 | IFS=$as_save_IFS |
---|
3222 | |
---|
3223 | fi |
---|
3224 | fi |
---|
3225 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
3226 | if test -n "$ac_ct_CC"; then |
---|
3227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
3228 | $as_echo "$ac_ct_CC" >&6; } |
---|
3229 | else |
---|
3230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3231 | $as_echo "no" >&6; } |
---|
3232 | fi |
---|
3233 | |
---|
3234 | |
---|
3235 | test -n "$ac_ct_CC" && break |
---|
3236 | done |
---|
3237 | |
---|
3238 | if test "x$ac_ct_CC" = x; then |
---|
3239 | CC="" |
---|
3240 | else |
---|
3241 | case $cross_compiling:$ac_tool_warned in |
---|
3242 | yes:) |
---|
3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3244 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3245 | ac_tool_warned=yes ;; |
---|
3246 | esac |
---|
3247 | CC=$ac_ct_CC |
---|
3248 | fi |
---|
3249 | fi |
---|
3250 | |
---|
3251 | fi |
---|
3252 | |
---|
3253 | |
---|
3254 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3255 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3256 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
3257 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3258 | |
---|
3259 | # Provide some information about the compiler. |
---|
3260 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
3261 | set X $ac_compile |
---|
3262 | ac_compiler=$2 |
---|
3263 | for ac_option in --version -v -V -qversion; do |
---|
3264 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3265 | case "(($ac_try" in |
---|
3266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3267 | *) ac_try_echo=$ac_try;; |
---|
3268 | esac |
---|
3269 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3270 | $as_echo "$ac_try_echo"; } >&5 |
---|
3271 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3272 | ac_status=$? |
---|
3273 | if test -s conftest.err; then |
---|
3274 | sed '10a\ |
---|
3275 | ... rest of stderr output deleted ... |
---|
3276 | 10q' conftest.err >conftest.er1 |
---|
3277 | cat conftest.er1 >&5 |
---|
3278 | fi |
---|
3279 | rm -f conftest.er1 conftest.err |
---|
3280 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3281 | test $ac_status = 0; } |
---|
3282 | done |
---|
3283 | |
---|
3284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3285 | /* end confdefs.h. */ |
---|
3286 | |
---|
3287 | int |
---|
3288 | main () |
---|
3289 | { |
---|
3290 | |
---|
3291 | ; |
---|
3292 | return 0; |
---|
3293 | } |
---|
3294 | _ACEOF |
---|
3295 | ac_clean_files_save=$ac_clean_files |
---|
3296 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
3297 | # Try to create an executable without -o first, disregard a.out. |
---|
3298 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3299 | # of exeext. |
---|
3300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
---|
3301 | $as_echo_n "checking whether the C compiler works... " >&6; } |
---|
3302 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3303 | |
---|
3304 | # The possible output files: |
---|
3305 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
3306 | |
---|
3307 | ac_rmfiles= |
---|
3308 | for ac_file in $ac_files |
---|
3309 | do |
---|
3310 | case $ac_file in |
---|
3311 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3312 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3313 | esac |
---|
3314 | done |
---|
3315 | rm -f $ac_rmfiles |
---|
3316 | |
---|
3317 | if { { ac_try="$ac_link_default" |
---|
3318 | case "(($ac_try" in |
---|
3319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3320 | *) ac_try_echo=$ac_try;; |
---|
3321 | esac |
---|
3322 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3323 | $as_echo "$ac_try_echo"; } >&5 |
---|
3324 | (eval "$ac_link_default") 2>&5 |
---|
3325 | ac_status=$? |
---|
3326 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3327 | test $ac_status = 0; }; then : |
---|
3328 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3329 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3330 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3331 | # so that the user can short-circuit this test for compilers unknown to |
---|
3332 | # Autoconf. |
---|
3333 | for ac_file in $ac_files '' |
---|
3334 | do |
---|
3335 | test -f "$ac_file" || continue |
---|
3336 | case $ac_file in |
---|
3337 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
3338 | ;; |
---|
3339 | [ab].out ) |
---|
3340 | # We found the default executable, but exeext='' is most |
---|
3341 | # certainly right. |
---|
3342 | break;; |
---|
3343 | *.* ) |
---|
3344 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3345 | then :; else |
---|
3346 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3347 | fi |
---|
3348 | # We set ac_cv_exeext here because the later test for it is not |
---|
3349 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3350 | # argument, so we may need to know it at that point already. |
---|
3351 | # Even if this section looks crufty: it has the advantage of |
---|
3352 | # actually working. |
---|
3353 | break;; |
---|
3354 | * ) |
---|
3355 | break;; |
---|
3356 | esac |
---|
3357 | done |
---|
3358 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3359 | |
---|
3360 | else |
---|
3361 | ac_file='' |
---|
3362 | fi |
---|
3363 | if test -z "$ac_file"; then : |
---|
3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3365 | $as_echo "no" >&6; } |
---|
3366 | $as_echo "$as_me: failed program was:" >&5 |
---|
3367 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3368 | |
---|
3369 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3370 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3371 | as_fn_error 77 "C compiler cannot create executables |
---|
3372 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3373 | else |
---|
3374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3375 | $as_echo "yes" >&6; } |
---|
3376 | fi |
---|
3377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
---|
3378 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
---|
3379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
3380 | $as_echo "$ac_file" >&6; } |
---|
3381 | ac_exeext=$ac_cv_exeext |
---|
3382 | |
---|
3383 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
3384 | ac_clean_files=$ac_clean_files_save |
---|
3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
3386 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
3387 | if { { ac_try="$ac_link" |
---|
3388 | case "(($ac_try" in |
---|
3389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3390 | *) ac_try_echo=$ac_try;; |
---|
3391 | esac |
---|
3392 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3393 | $as_echo "$ac_try_echo"; } >&5 |
---|
3394 | (eval "$ac_link") 2>&5 |
---|
3395 | ac_status=$? |
---|
3396 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3397 | test $ac_status = 0; }; then : |
---|
3398 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3399 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3400 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3401 | # `rm'. |
---|
3402 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3403 | test -f "$ac_file" || continue |
---|
3404 | case $ac_file in |
---|
3405 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3406 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3407 | break;; |
---|
3408 | * ) break;; |
---|
3409 | esac |
---|
3410 | done |
---|
3411 | else |
---|
3412 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3413 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3414 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
3415 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3416 | fi |
---|
3417 | rm -f conftest conftest$ac_cv_exeext |
---|
3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
3419 | $as_echo "$ac_cv_exeext" >&6; } |
---|
3420 | |
---|
3421 | rm -f conftest.$ac_ext |
---|
3422 | EXEEXT=$ac_cv_exeext |
---|
3423 | ac_exeext=$EXEEXT |
---|
3424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3425 | /* end confdefs.h. */ |
---|
3426 | #include <stdio.h> |
---|
3427 | int |
---|
3428 | main () |
---|
3429 | { |
---|
3430 | FILE *f = fopen ("conftest.out", "w"); |
---|
3431 | return ferror (f) || fclose (f) != 0; |
---|
3432 | |
---|
3433 | ; |
---|
3434 | return 0; |
---|
3435 | } |
---|
3436 | _ACEOF |
---|
3437 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3438 | # Check that the compiler produces executables we can run. If not, either |
---|
3439 | # the compiler is broken, or we cross compile. |
---|
3440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3441 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
3442 | if test "$cross_compiling" != yes; then |
---|
3443 | { { ac_try="$ac_link" |
---|
3444 | case "(($ac_try" in |
---|
3445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3446 | *) ac_try_echo=$ac_try;; |
---|
3447 | esac |
---|
3448 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3449 | $as_echo "$ac_try_echo"; } >&5 |
---|
3450 | (eval "$ac_link") 2>&5 |
---|
3451 | ac_status=$? |
---|
3452 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3453 | test $ac_status = 0; } |
---|
3454 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3455 | { { case "(($ac_try" in |
---|
3456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3457 | *) ac_try_echo=$ac_try;; |
---|
3458 | esac |
---|
3459 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3460 | $as_echo "$ac_try_echo"; } >&5 |
---|
3461 | (eval "$ac_try") 2>&5 |
---|
3462 | ac_status=$? |
---|
3463 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3464 | test $ac_status = 0; }; }; then |
---|
3465 | cross_compiling=no |
---|
3466 | else |
---|
3467 | if test "$cross_compiling" = maybe; then |
---|
3468 | cross_compiling=yes |
---|
3469 | else |
---|
3470 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3471 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3472 | as_fn_error $? "cannot run C compiled programs. |
---|
3473 | If you meant to cross compile, use \`--host'. |
---|
3474 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3475 | fi |
---|
3476 | fi |
---|
3477 | fi |
---|
3478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3479 | $as_echo "$cross_compiling" >&6; } |
---|
3480 | |
---|
3481 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3482 | ac_clean_files=$ac_clean_files_save |
---|
3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3484 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3485 | if ${ac_cv_objext+:} false; then : |
---|
3486 | $as_echo_n "(cached) " >&6 |
---|
3487 | else |
---|
3488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3489 | /* end confdefs.h. */ |
---|
3490 | |
---|
3491 | int |
---|
3492 | main () |
---|
3493 | { |
---|
3494 | |
---|
3495 | ; |
---|
3496 | return 0; |
---|
3497 | } |
---|
3498 | _ACEOF |
---|
3499 | rm -f conftest.o conftest.obj |
---|
3500 | if { { ac_try="$ac_compile" |
---|
3501 | case "(($ac_try" in |
---|
3502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3503 | *) ac_try_echo=$ac_try;; |
---|
3504 | esac |
---|
3505 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3506 | $as_echo "$ac_try_echo"; } >&5 |
---|
3507 | (eval "$ac_compile") 2>&5 |
---|
3508 | ac_status=$? |
---|
3509 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3510 | test $ac_status = 0; }; then : |
---|
3511 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3512 | test -f "$ac_file" || continue; |
---|
3513 | case $ac_file in |
---|
3514 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3515 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3516 | break;; |
---|
3517 | esac |
---|
3518 | done |
---|
3519 | else |
---|
3520 | $as_echo "$as_me: failed program was:" >&5 |
---|
3521 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3522 | |
---|
3523 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3524 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3525 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3526 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3527 | fi |
---|
3528 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3529 | fi |
---|
3530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3531 | $as_echo "$ac_cv_objext" >&6; } |
---|
3532 | OBJEXT=$ac_cv_objext |
---|
3533 | ac_objext=$OBJEXT |
---|
3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
3535 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
3536 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
3537 | $as_echo_n "(cached) " >&6 |
---|
3538 | else |
---|
3539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3540 | /* end confdefs.h. */ |
---|
3541 | |
---|
3542 | int |
---|
3543 | main () |
---|
3544 | { |
---|
3545 | #ifndef __GNUC__ |
---|
3546 | choke me |
---|
3547 | #endif |
---|
3548 | |
---|
3549 | ; |
---|
3550 | return 0; |
---|
3551 | } |
---|
3552 | _ACEOF |
---|
3553 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3554 | ac_compiler_gnu=yes |
---|
3555 | else |
---|
3556 | ac_compiler_gnu=no |
---|
3557 | fi |
---|
3558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3559 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3560 | |
---|
3561 | fi |
---|
3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3563 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
3564 | if test $ac_compiler_gnu = yes; then |
---|
3565 | GCC=yes |
---|
3566 | else |
---|
3567 | GCC= |
---|
3568 | fi |
---|
3569 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3570 | ac_save_CFLAGS=$CFLAGS |
---|
3571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
3572 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
3573 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
3574 | $as_echo_n "(cached) " >&6 |
---|
3575 | else |
---|
3576 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
3577 | ac_c_werror_flag=yes |
---|
3578 | ac_cv_prog_cc_g=no |
---|
3579 | CFLAGS="-g" |
---|
3580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3581 | /* end confdefs.h. */ |
---|
3582 | |
---|
3583 | int |
---|
3584 | main () |
---|
3585 | { |
---|
3586 | |
---|
3587 | ; |
---|
3588 | return 0; |
---|
3589 | } |
---|
3590 | _ACEOF |
---|
3591 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3592 | ac_cv_prog_cc_g=yes |
---|
3593 | else |
---|
3594 | CFLAGS="" |
---|
3595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3596 | /* end confdefs.h. */ |
---|
3597 | |
---|
3598 | int |
---|
3599 | main () |
---|
3600 | { |
---|
3601 | |
---|
3602 | ; |
---|
3603 | return 0; |
---|
3604 | } |
---|
3605 | _ACEOF |
---|
3606 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3607 | |
---|
3608 | else |
---|
3609 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3610 | CFLAGS="-g" |
---|
3611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3612 | /* end confdefs.h. */ |
---|
3613 | |
---|
3614 | int |
---|
3615 | main () |
---|
3616 | { |
---|
3617 | |
---|
3618 | ; |
---|
3619 | return 0; |
---|
3620 | } |
---|
3621 | _ACEOF |
---|
3622 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3623 | ac_cv_prog_cc_g=yes |
---|
3624 | fi |
---|
3625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3626 | fi |
---|
3627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3628 | fi |
---|
3629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3630 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3631 | fi |
---|
3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
3633 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
3634 | if test "$ac_test_CFLAGS" = set; then |
---|
3635 | CFLAGS=$ac_save_CFLAGS |
---|
3636 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3637 | if test "$GCC" = yes; then |
---|
3638 | CFLAGS="-g -O2" |
---|
3639 | else |
---|
3640 | CFLAGS="-g" |
---|
3641 | fi |
---|
3642 | else |
---|
3643 | if test "$GCC" = yes; then |
---|
3644 | CFLAGS="-O2" |
---|
3645 | else |
---|
3646 | CFLAGS= |
---|
3647 | fi |
---|
3648 | fi |
---|
3649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
3650 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
3651 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
3652 | $as_echo_n "(cached) " >&6 |
---|
3653 | else |
---|
3654 | ac_cv_prog_cc_c89=no |
---|
3655 | ac_save_CC=$CC |
---|
3656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3657 | /* end confdefs.h. */ |
---|
3658 | #include <stdarg.h> |
---|
3659 | #include <stdio.h> |
---|
3660 | struct stat; |
---|
3661 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3662 | struct buf { int x; }; |
---|
3663 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3664 | static char *e (p, i) |
---|
3665 | char **p; |
---|
3666 | int i; |
---|
3667 | { |
---|
3668 | return p[i]; |
---|
3669 | } |
---|
3670 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3671 | { |
---|
3672 | char *s; |
---|
3673 | va_list v; |
---|
3674 | va_start (v,p); |
---|
3675 | s = g (p, va_arg (v,int)); |
---|
3676 | va_end (v); |
---|
3677 | return s; |
---|
3678 | } |
---|
3679 | |
---|
3680 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3681 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3682 | These don't provoke an error unfortunately, instead are silently treated |
---|
3683 | as 'x'. The following induces an error, until -std is added to get |
---|
3684 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3685 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3686 | that's true only with -std. */ |
---|
3687 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3688 | |
---|
3689 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
3690 | inside strings and character constants. */ |
---|
3691 | #define FOO(x) 'x' |
---|
3692 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
3693 | |
---|
3694 | int test (int i, double x); |
---|
3695 | struct s1 {int (*f) (int a);}; |
---|
3696 | struct s2 {int (*f) (double a);}; |
---|
3697 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3698 | int argc; |
---|
3699 | char **argv; |
---|
3700 | int |
---|
3701 | main () |
---|
3702 | { |
---|
3703 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3704 | ; |
---|
3705 | return 0; |
---|
3706 | } |
---|
3707 | _ACEOF |
---|
3708 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
3709 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3710 | do |
---|
3711 | CC="$ac_save_CC $ac_arg" |
---|
3712 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3713 | ac_cv_prog_cc_c89=$ac_arg |
---|
3714 | fi |
---|
3715 | rm -f core conftest.err conftest.$ac_objext |
---|
3716 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3717 | done |
---|
3718 | rm -f conftest.$ac_ext |
---|
3719 | CC=$ac_save_CC |
---|
3720 | |
---|
3721 | fi |
---|
3722 | # AC_CACHE_VAL |
---|
3723 | case "x$ac_cv_prog_cc_c89" in |
---|
3724 | x) |
---|
3725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
3726 | $as_echo "none needed" >&6; } ;; |
---|
3727 | xno) |
---|
3728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
3729 | $as_echo "unsupported" >&6; } ;; |
---|
3730 | *) |
---|
3731 | CC="$CC $ac_cv_prog_cc_c89" |
---|
3732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
3733 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3734 | esac |
---|
3735 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
3736 | |
---|
3737 | fi |
---|
3738 | |
---|
3739 | ac_ext=c |
---|
3740 | ac_cpp='$CPP $CPPFLAGS' |
---|
3741 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3742 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3743 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3744 | |
---|
3745 | ac_ext=cpp |
---|
3746 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3747 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3748 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3749 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3750 | if test -z "$CXX"; then |
---|
3751 | if test -n "$CCC"; then |
---|
3752 | CXX=$CCC |
---|
3753 | else |
---|
3754 | if test -n "$ac_tool_prefix"; then |
---|
3755 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3756 | do |
---|
3757 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3758 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3760 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3761 | if ${ac_cv_prog_CXX+:} false; then : |
---|
3762 | $as_echo_n "(cached) " >&6 |
---|
3763 | else |
---|
3764 | if test -n "$CXX"; then |
---|
3765 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3766 | else |
---|
3767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3768 | for as_dir in $PATH |
---|
3769 | do |
---|
3770 | IFS=$as_save_IFS |
---|
3771 | test -z "$as_dir" && as_dir=. |
---|
3772 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3773 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3774 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3776 | break 2 |
---|
3777 | fi |
---|
3778 | done |
---|
3779 | done |
---|
3780 | IFS=$as_save_IFS |
---|
3781 | |
---|
3782 | fi |
---|
3783 | fi |
---|
3784 | CXX=$ac_cv_prog_CXX |
---|
3785 | if test -n "$CXX"; then |
---|
3786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
3787 | $as_echo "$CXX" >&6; } |
---|
3788 | else |
---|
3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3790 | $as_echo "no" >&6; } |
---|
3791 | fi |
---|
3792 | |
---|
3793 | |
---|
3794 | test -n "$CXX" && break |
---|
3795 | done |
---|
3796 | fi |
---|
3797 | if test -z "$CXX"; then |
---|
3798 | ac_ct_CXX=$CXX |
---|
3799 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3800 | do |
---|
3801 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3802 | set dummy $ac_prog; ac_word=$2 |
---|
3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3804 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3805 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
3806 | $as_echo_n "(cached) " >&6 |
---|
3807 | else |
---|
3808 | if test -n "$ac_ct_CXX"; then |
---|
3809 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3810 | else |
---|
3811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3812 | for as_dir in $PATH |
---|
3813 | do |
---|
3814 | IFS=$as_save_IFS |
---|
3815 | test -z "$as_dir" && as_dir=. |
---|
3816 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3817 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3818 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3820 | break 2 |
---|
3821 | fi |
---|
3822 | done |
---|
3823 | done |
---|
3824 | IFS=$as_save_IFS |
---|
3825 | |
---|
3826 | fi |
---|
3827 | fi |
---|
3828 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3829 | if test -n "$ac_ct_CXX"; then |
---|
3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
3831 | $as_echo "$ac_ct_CXX" >&6; } |
---|
3832 | else |
---|
3833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3834 | $as_echo "no" >&6; } |
---|
3835 | fi |
---|
3836 | |
---|
3837 | |
---|
3838 | test -n "$ac_ct_CXX" && break |
---|
3839 | done |
---|
3840 | |
---|
3841 | if test "x$ac_ct_CXX" = x; then |
---|
3842 | CXX="g++" |
---|
3843 | else |
---|
3844 | case $cross_compiling:$ac_tool_warned in |
---|
3845 | yes:) |
---|
3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3847 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3848 | ac_tool_warned=yes ;; |
---|
3849 | esac |
---|
3850 | CXX=$ac_ct_CXX |
---|
3851 | fi |
---|
3852 | fi |
---|
3853 | |
---|
3854 | fi |
---|
3855 | fi |
---|
3856 | # Provide some information about the compiler. |
---|
3857 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
3858 | set X $ac_compile |
---|
3859 | ac_compiler=$2 |
---|
3860 | for ac_option in --version -v -V -qversion; do |
---|
3861 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3862 | case "(($ac_try" in |
---|
3863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3864 | *) ac_try_echo=$ac_try;; |
---|
3865 | esac |
---|
3866 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3867 | $as_echo "$ac_try_echo"; } >&5 |
---|
3868 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3869 | ac_status=$? |
---|
3870 | if test -s conftest.err; then |
---|
3871 | sed '10a\ |
---|
3872 | ... rest of stderr output deleted ... |
---|
3873 | 10q' conftest.err >conftest.er1 |
---|
3874 | cat conftest.er1 >&5 |
---|
3875 | fi |
---|
3876 | rm -f conftest.er1 conftest.err |
---|
3877 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3878 | test $ac_status = 0; } |
---|
3879 | done |
---|
3880 | |
---|
3881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
3882 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
3883 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
3884 | $as_echo_n "(cached) " >&6 |
---|
3885 | else |
---|
3886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3887 | /* end confdefs.h. */ |
---|
3888 | |
---|
3889 | int |
---|
3890 | main () |
---|
3891 | { |
---|
3892 | #ifndef __GNUC__ |
---|
3893 | choke me |
---|
3894 | #endif |
---|
3895 | |
---|
3896 | ; |
---|
3897 | return 0; |
---|
3898 | } |
---|
3899 | _ACEOF |
---|
3900 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3901 | ac_compiler_gnu=yes |
---|
3902 | else |
---|
3903 | ac_compiler_gnu=no |
---|
3904 | fi |
---|
3905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3906 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3907 | |
---|
3908 | fi |
---|
3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3910 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3911 | if test $ac_compiler_gnu = yes; then |
---|
3912 | GXX=yes |
---|
3913 | else |
---|
3914 | GXX= |
---|
3915 | fi |
---|
3916 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3917 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
3919 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
3920 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
3921 | $as_echo_n "(cached) " >&6 |
---|
3922 | else |
---|
3923 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3924 | ac_cxx_werror_flag=yes |
---|
3925 | ac_cv_prog_cxx_g=no |
---|
3926 | CXXFLAGS="-g" |
---|
3927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3928 | /* end confdefs.h. */ |
---|
3929 | |
---|
3930 | int |
---|
3931 | main () |
---|
3932 | { |
---|
3933 | |
---|
3934 | ; |
---|
3935 | return 0; |
---|
3936 | } |
---|
3937 | _ACEOF |
---|
3938 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3939 | ac_cv_prog_cxx_g=yes |
---|
3940 | else |
---|
3941 | CXXFLAGS="" |
---|
3942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3943 | /* end confdefs.h. */ |
---|
3944 | |
---|
3945 | int |
---|
3946 | main () |
---|
3947 | { |
---|
3948 | |
---|
3949 | ; |
---|
3950 | return 0; |
---|
3951 | } |
---|
3952 | _ACEOF |
---|
3953 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3954 | |
---|
3955 | else |
---|
3956 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3957 | CXXFLAGS="-g" |
---|
3958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3959 | /* end confdefs.h. */ |
---|
3960 | |
---|
3961 | int |
---|
3962 | main () |
---|
3963 | { |
---|
3964 | |
---|
3965 | ; |
---|
3966 | return 0; |
---|
3967 | } |
---|
3968 | _ACEOF |
---|
3969 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3970 | ac_cv_prog_cxx_g=yes |
---|
3971 | fi |
---|
3972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3973 | fi |
---|
3974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3975 | fi |
---|
3976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3977 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3978 | fi |
---|
3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
3980 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
3981 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3982 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3983 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3984 | if test "$GXX" = yes; then |
---|
3985 | CXXFLAGS="-g -O2" |
---|
3986 | else |
---|
3987 | CXXFLAGS="-g" |
---|
3988 | fi |
---|
3989 | else |
---|
3990 | if test "$GXX" = yes; then |
---|
3991 | CXXFLAGS="-O2" |
---|
3992 | else |
---|
3993 | CXXFLAGS= |
---|
3994 | fi |
---|
3995 | fi |
---|
3996 | ac_ext=c |
---|
3997 | ac_cpp='$CPP $CPPFLAGS' |
---|
3998 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3999 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4000 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4001 | |
---|
4002 | # Avoid g95 |
---|
4003 | ac_ext=f |
---|
4004 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4005 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4006 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4007 | if test -n "$ac_tool_prefix"; then |
---|
4008 | for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl32 |
---|
4009 | do |
---|
4010 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
4011 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
4012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4013 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4014 | if ${ac_cv_prog_F77+:} false; then : |
---|
4015 | $as_echo_n "(cached) " >&6 |
---|
4016 | else |
---|
4017 | if test -n "$F77"; then |
---|
4018 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
4019 | else |
---|
4020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4021 | for as_dir in $PATH |
---|
4022 | do |
---|
4023 | IFS=$as_save_IFS |
---|
4024 | test -z "$as_dir" && as_dir=. |
---|
4025 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4026 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4027 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
4028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4029 | break 2 |
---|
4030 | fi |
---|
4031 | done |
---|
4032 | done |
---|
4033 | IFS=$as_save_IFS |
---|
4034 | |
---|
4035 | fi |
---|
4036 | fi |
---|
4037 | F77=$ac_cv_prog_F77 |
---|
4038 | if test -n "$F77"; then |
---|
4039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 |
---|
4040 | $as_echo "$F77" >&6; } |
---|
4041 | else |
---|
4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4043 | $as_echo "no" >&6; } |
---|
4044 | fi |
---|
4045 | |
---|
4046 | |
---|
4047 | test -n "$F77" && break |
---|
4048 | done |
---|
4049 | fi |
---|
4050 | if test -z "$F77"; then |
---|
4051 | ac_ct_F77=$F77 |
---|
4052 | for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl32 |
---|
4053 | do |
---|
4054 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4055 | set dummy $ac_prog; ac_word=$2 |
---|
4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4057 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4058 | if ${ac_cv_prog_ac_ct_F77+:} false; then : |
---|
4059 | $as_echo_n "(cached) " >&6 |
---|
4060 | else |
---|
4061 | if test -n "$ac_ct_F77"; then |
---|
4062 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
4063 | else |
---|
4064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4065 | for as_dir in $PATH |
---|
4066 | do |
---|
4067 | IFS=$as_save_IFS |
---|
4068 | test -z "$as_dir" && as_dir=. |
---|
4069 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4070 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4071 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
4072 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4073 | break 2 |
---|
4074 | fi |
---|
4075 | done |
---|
4076 | done |
---|
4077 | IFS=$as_save_IFS |
---|
4078 | |
---|
4079 | fi |
---|
4080 | fi |
---|
4081 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
4082 | if test -n "$ac_ct_F77"; then |
---|
4083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 |
---|
4084 | $as_echo "$ac_ct_F77" >&6; } |
---|
4085 | else |
---|
4086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4087 | $as_echo "no" >&6; } |
---|
4088 | fi |
---|
4089 | |
---|
4090 | |
---|
4091 | test -n "$ac_ct_F77" && break |
---|
4092 | done |
---|
4093 | |
---|
4094 | if test "x$ac_ct_F77" = x; then |
---|
4095 | F77="" |
---|
4096 | else |
---|
4097 | case $cross_compiling:$ac_tool_warned in |
---|
4098 | yes:) |
---|
4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4100 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4101 | ac_tool_warned=yes ;; |
---|
4102 | esac |
---|
4103 | F77=$ac_ct_F77 |
---|
4104 | fi |
---|
4105 | fi |
---|
4106 | |
---|
4107 | |
---|
4108 | # Provide some information about the compiler. |
---|
4109 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 |
---|
4110 | set X $ac_compile |
---|
4111 | ac_compiler=$2 |
---|
4112 | for ac_option in --version -v -V -qversion; do |
---|
4113 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
4114 | case "(($ac_try" in |
---|
4115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4116 | *) ac_try_echo=$ac_try;; |
---|
4117 | esac |
---|
4118 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4119 | $as_echo "$ac_try_echo"; } >&5 |
---|
4120 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
4121 | ac_status=$? |
---|
4122 | if test -s conftest.err; then |
---|
4123 | sed '10a\ |
---|
4124 | ... rest of stderr output deleted ... |
---|
4125 | 10q' conftest.err >conftest.er1 |
---|
4126 | cat conftest.er1 >&5 |
---|
4127 | fi |
---|
4128 | rm -f conftest.er1 conftest.err |
---|
4129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4130 | test $ac_status = 0; } |
---|
4131 | done |
---|
4132 | rm -f a.out |
---|
4133 | |
---|
4134 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
4135 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
4136 | ac_save_ext=$ac_ext |
---|
4137 | ac_ext=F |
---|
4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
4139 | $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } |
---|
4140 | if ${ac_cv_f77_compiler_gnu+:} false; then : |
---|
4141 | $as_echo_n "(cached) " >&6 |
---|
4142 | else |
---|
4143 | cat > conftest.$ac_ext <<_ACEOF |
---|
4144 | program main |
---|
4145 | #ifndef __GNUC__ |
---|
4146 | choke me |
---|
4147 | #endif |
---|
4148 | |
---|
4149 | end |
---|
4150 | _ACEOF |
---|
4151 | if ac_fn_f77_try_compile "$LINENO"; then : |
---|
4152 | ac_compiler_gnu=yes |
---|
4153 | else |
---|
4154 | ac_compiler_gnu=no |
---|
4155 | fi |
---|
4156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4157 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
4158 | |
---|
4159 | fi |
---|
4160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
4161 | $as_echo "$ac_cv_f77_compiler_gnu" >&6; } |
---|
4162 | ac_ext=$ac_save_ext |
---|
4163 | ac_test_FFLAGS=${FFLAGS+set} |
---|
4164 | ac_save_FFLAGS=$FFLAGS |
---|
4165 | FFLAGS= |
---|
4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 |
---|
4167 | $as_echo_n "checking whether $F77 accepts -g... " >&6; } |
---|
4168 | if ${ac_cv_prog_f77_g+:} false; then : |
---|
4169 | $as_echo_n "(cached) " >&6 |
---|
4170 | else |
---|
4171 | FFLAGS=-g |
---|
4172 | cat > conftest.$ac_ext <<_ACEOF |
---|
4173 | program main |
---|
4174 | |
---|
4175 | end |
---|
4176 | _ACEOF |
---|
4177 | if ac_fn_f77_try_compile "$LINENO"; then : |
---|
4178 | ac_cv_prog_f77_g=yes |
---|
4179 | else |
---|
4180 | ac_cv_prog_f77_g=no |
---|
4181 | fi |
---|
4182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4183 | |
---|
4184 | fi |
---|
4185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 |
---|
4186 | $as_echo "$ac_cv_prog_f77_g" >&6; } |
---|
4187 | if test "$ac_test_FFLAGS" = set; then |
---|
4188 | FFLAGS=$ac_save_FFLAGS |
---|
4189 | elif test $ac_cv_prog_f77_g = yes; then |
---|
4190 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
4191 | FFLAGS="-g -O2" |
---|
4192 | else |
---|
4193 | FFLAGS="-g" |
---|
4194 | fi |
---|
4195 | else |
---|
4196 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
4197 | FFLAGS="-O2" |
---|
4198 | else |
---|
4199 | FFLAGS= |
---|
4200 | fi |
---|
4201 | fi |
---|
4202 | |
---|
4203 | if test $ac_compiler_gnu = yes; then |
---|
4204 | G77=yes |
---|
4205 | else |
---|
4206 | G77= |
---|
4207 | fi |
---|
4208 | ac_ext=c |
---|
4209 | ac_cpp='$CPP $CPPFLAGS' |
---|
4210 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4211 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4212 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4213 | |
---|
4214 | |
---|
4215 | ac_ext=c |
---|
4216 | ac_cpp='$CPP $CPPFLAGS' |
---|
4217 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4218 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4219 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4220 | |
---|
4221 | |
---|
4222 | |
---|
4223 | ac_ext=c |
---|
4224 | ac_cpp='$CPP $CPPFLAGS' |
---|
4225 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4226 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4227 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
4229 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
4230 | # On Suns, sometimes $CPP names a directory. |
---|
4231 | if test -n "$CPP" && test -d "$CPP"; then |
---|
4232 | CPP= |
---|
4233 | fi |
---|
4234 | if test -z "$CPP"; then |
---|
4235 | if ${ac_cv_prog_CPP+:} false; then : |
---|
4236 | $as_echo_n "(cached) " >&6 |
---|
4237 | else |
---|
4238 | # Double quotes because CPP needs to be expanded |
---|
4239 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
4240 | do |
---|
4241 | ac_preproc_ok=false |
---|
4242 | for ac_c_preproc_warn_flag in '' yes |
---|
4243 | do |
---|
4244 | # Use a header file that comes with gcc, so configuring glibc |
---|
4245 | # with a fresh cross-compiler works. |
---|
4246 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4247 | # <limits.h> exists even on freestanding compilers. |
---|
4248 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4249 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4251 | /* end confdefs.h. */ |
---|
4252 | #ifdef __STDC__ |
---|
4253 | # include <limits.h> |
---|
4254 | #else |
---|
4255 | # include <assert.h> |
---|
4256 | #endif |
---|
4257 | Syntax error |
---|
4258 | _ACEOF |
---|
4259 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4260 | |
---|
4261 | else |
---|
4262 | # Broken: fails on valid input. |
---|
4263 | continue |
---|
4264 | fi |
---|
4265 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4266 | |
---|
4267 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4268 | # can be detected and how. |
---|
4269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4270 | /* end confdefs.h. */ |
---|
4271 | #include <ac_nonexistent.h> |
---|
4272 | _ACEOF |
---|
4273 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4274 | # Broken: success on invalid input. |
---|
4275 | continue |
---|
4276 | else |
---|
4277 | # Passes both tests. |
---|
4278 | ac_preproc_ok=: |
---|
4279 | break |
---|
4280 | fi |
---|
4281 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4282 | |
---|
4283 | done |
---|
4284 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4285 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4286 | if $ac_preproc_ok; then : |
---|
4287 | break |
---|
4288 | fi |
---|
4289 | |
---|
4290 | done |
---|
4291 | ac_cv_prog_CPP=$CPP |
---|
4292 | |
---|
4293 | fi |
---|
4294 | CPP=$ac_cv_prog_CPP |
---|
4295 | else |
---|
4296 | ac_cv_prog_CPP=$CPP |
---|
4297 | fi |
---|
4298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
4299 | $as_echo "$CPP" >&6; } |
---|
4300 | ac_preproc_ok=false |
---|
4301 | for ac_c_preproc_warn_flag in '' yes |
---|
4302 | do |
---|
4303 | # Use a header file that comes with gcc, so configuring glibc |
---|
4304 | # with a fresh cross-compiler works. |
---|
4305 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4306 | # <limits.h> exists even on freestanding compilers. |
---|
4307 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4308 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4310 | /* end confdefs.h. */ |
---|
4311 | #ifdef __STDC__ |
---|
4312 | # include <limits.h> |
---|
4313 | #else |
---|
4314 | # include <assert.h> |
---|
4315 | #endif |
---|
4316 | Syntax error |
---|
4317 | _ACEOF |
---|
4318 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4319 | |
---|
4320 | else |
---|
4321 | # Broken: fails on valid input. |
---|
4322 | continue |
---|
4323 | fi |
---|
4324 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4325 | |
---|
4326 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4327 | # can be detected and how. |
---|
4328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4329 | /* end confdefs.h. */ |
---|
4330 | #include <ac_nonexistent.h> |
---|
4331 | _ACEOF |
---|
4332 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4333 | # Broken: success on invalid input. |
---|
4334 | continue |
---|
4335 | else |
---|
4336 | # Passes both tests. |
---|
4337 | ac_preproc_ok=: |
---|
4338 | break |
---|
4339 | fi |
---|
4340 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4341 | |
---|
4342 | done |
---|
4343 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4344 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4345 | if $ac_preproc_ok; then : |
---|
4346 | |
---|
4347 | else |
---|
4348 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4349 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4350 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
4351 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4352 | fi |
---|
4353 | |
---|
4354 | ac_ext=c |
---|
4355 | ac_cpp='$CPP $CPPFLAGS' |
---|
4356 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4357 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4358 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4359 | |
---|
4360 | |
---|
4361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
4362 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
4363 | if ${ac_cv_path_GREP+:} false; then : |
---|
4364 | $as_echo_n "(cached) " >&6 |
---|
4365 | else |
---|
4366 | if test -z "$GREP"; then |
---|
4367 | ac_path_GREP_found=false |
---|
4368 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4370 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4371 | do |
---|
4372 | IFS=$as_save_IFS |
---|
4373 | test -z "$as_dir" && as_dir=. |
---|
4374 | for ac_prog in grep ggrep; do |
---|
4375 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4376 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4377 | as_fn_executable_p "$ac_path_GREP" || continue |
---|
4378 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
4379 | # Check for GNU $ac_path_GREP |
---|
4380 | case `"$ac_path_GREP" --version 2>&1` in |
---|
4381 | *GNU*) |
---|
4382 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
4383 | *) |
---|
4384 | ac_count=0 |
---|
4385 | $as_echo_n 0123456789 >"conftest.in" |
---|
4386 | while : |
---|
4387 | do |
---|
4388 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4389 | mv "conftest.tmp" "conftest.in" |
---|
4390 | cp "conftest.in" "conftest.nl" |
---|
4391 | $as_echo 'GREP' >> "conftest.nl" |
---|
4392 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4393 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4394 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4395 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
4396 | # Best one so far, save it but keep looking for a better one |
---|
4397 | ac_cv_path_GREP="$ac_path_GREP" |
---|
4398 | ac_path_GREP_max=$ac_count |
---|
4399 | fi |
---|
4400 | # 10*(2^10) chars as input seems more than enough |
---|
4401 | test $ac_count -gt 10 && break |
---|
4402 | done |
---|
4403 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4404 | esac |
---|
4405 | |
---|
4406 | $ac_path_GREP_found && break 3 |
---|
4407 | done |
---|
4408 | done |
---|
4409 | done |
---|
4410 | IFS=$as_save_IFS |
---|
4411 | if test -z "$ac_cv_path_GREP"; then |
---|
4412 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4413 | fi |
---|
4414 | else |
---|
4415 | ac_cv_path_GREP=$GREP |
---|
4416 | fi |
---|
4417 | |
---|
4418 | fi |
---|
4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
4420 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
4421 | GREP="$ac_cv_path_GREP" |
---|
4422 | |
---|
4423 | |
---|
4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
4425 | $as_echo_n "checking for egrep... " >&6; } |
---|
4426 | if ${ac_cv_path_EGREP+:} false; then : |
---|
4427 | $as_echo_n "(cached) " >&6 |
---|
4428 | else |
---|
4429 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
4430 | then ac_cv_path_EGREP="$GREP -E" |
---|
4431 | else |
---|
4432 | if test -z "$EGREP"; then |
---|
4433 | ac_path_EGREP_found=false |
---|
4434 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4436 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4437 | do |
---|
4438 | IFS=$as_save_IFS |
---|
4439 | test -z "$as_dir" && as_dir=. |
---|
4440 | for ac_prog in egrep; do |
---|
4441 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4442 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4443 | as_fn_executable_p "$ac_path_EGREP" || continue |
---|
4444 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
4445 | # Check for GNU $ac_path_EGREP |
---|
4446 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
4447 | *GNU*) |
---|
4448 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
4449 | *) |
---|
4450 | ac_count=0 |
---|
4451 | $as_echo_n 0123456789 >"conftest.in" |
---|
4452 | while : |
---|
4453 | do |
---|
4454 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4455 | mv "conftest.tmp" "conftest.in" |
---|
4456 | cp "conftest.in" "conftest.nl" |
---|
4457 | $as_echo 'EGREP' >> "conftest.nl" |
---|
4458 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4459 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4460 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4461 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
4462 | # Best one so far, save it but keep looking for a better one |
---|
4463 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
4464 | ac_path_EGREP_max=$ac_count |
---|
4465 | fi |
---|
4466 | # 10*(2^10) chars as input seems more than enough |
---|
4467 | test $ac_count -gt 10 && break |
---|
4468 | done |
---|
4469 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4470 | esac |
---|
4471 | |
---|
4472 | $ac_path_EGREP_found && break 3 |
---|
4473 | done |
---|
4474 | done |
---|
4475 | done |
---|
4476 | IFS=$as_save_IFS |
---|
4477 | if test -z "$ac_cv_path_EGREP"; then |
---|
4478 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4479 | fi |
---|
4480 | else |
---|
4481 | ac_cv_path_EGREP=$EGREP |
---|
4482 | fi |
---|
4483 | |
---|
4484 | fi |
---|
4485 | fi |
---|
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
4487 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
4488 | EGREP="$ac_cv_path_EGREP" |
---|
4489 | |
---|
4490 | |
---|
4491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
4492 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
4493 | if ${ac_cv_header_stdc+:} false; then : |
---|
4494 | $as_echo_n "(cached) " >&6 |
---|
4495 | else |
---|
4496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4497 | /* end confdefs.h. */ |
---|
4498 | #include <stdlib.h> |
---|
4499 | #include <stdarg.h> |
---|
4500 | #include <string.h> |
---|
4501 | #include <float.h> |
---|
4502 | |
---|
4503 | int |
---|
4504 | main () |
---|
4505 | { |
---|
4506 | |
---|
4507 | ; |
---|
4508 | return 0; |
---|
4509 | } |
---|
4510 | _ACEOF |
---|
4511 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4512 | ac_cv_header_stdc=yes |
---|
4513 | else |
---|
4514 | ac_cv_header_stdc=no |
---|
4515 | fi |
---|
4516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4517 | |
---|
4518 | if test $ac_cv_header_stdc = yes; then |
---|
4519 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
4520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4521 | /* end confdefs.h. */ |
---|
4522 | #include <string.h> |
---|
4523 | |
---|
4524 | _ACEOF |
---|
4525 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4526 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
4527 | |
---|
4528 | else |
---|
4529 | ac_cv_header_stdc=no |
---|
4530 | fi |
---|
4531 | rm -f conftest* |
---|
4532 | |
---|
4533 | fi |
---|
4534 | |
---|
4535 | if test $ac_cv_header_stdc = yes; then |
---|
4536 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
4537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4538 | /* end confdefs.h. */ |
---|
4539 | #include <stdlib.h> |
---|
4540 | |
---|
4541 | _ACEOF |
---|
4542 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4543 | $EGREP "free" >/dev/null 2>&1; then : |
---|
4544 | |
---|
4545 | else |
---|
4546 | ac_cv_header_stdc=no |
---|
4547 | fi |
---|
4548 | rm -f conftest* |
---|
4549 | |
---|
4550 | fi |
---|
4551 | |
---|
4552 | if test $ac_cv_header_stdc = yes; then |
---|
4553 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
4554 | if test "$cross_compiling" = yes; then : |
---|
4555 | : |
---|
4556 | else |
---|
4557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4558 | /* end confdefs.h. */ |
---|
4559 | #include <ctype.h> |
---|
4560 | #include <stdlib.h> |
---|
4561 | #if ((' ' & 0x0FF) == 0x020) |
---|
4562 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
4563 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
4564 | #else |
---|
4565 | # define ISLOWER(c) \ |
---|
4566 | (('a' <= (c) && (c) <= 'i') \ |
---|
4567 | || ('j' <= (c) && (c) <= 'r') \ |
---|
4568 | || ('s' <= (c) && (c) <= 'z')) |
---|
4569 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
4570 | #endif |
---|
4571 | |
---|
4572 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
4573 | int |
---|
4574 | main () |
---|
4575 | { |
---|
4576 | int i; |
---|
4577 | for (i = 0; i < 256; i++) |
---|
4578 | if (XOR (islower (i), ISLOWER (i)) |
---|
4579 | || toupper (i) != TOUPPER (i)) |
---|
4580 | return 2; |
---|
4581 | return 0; |
---|
4582 | } |
---|
4583 | _ACEOF |
---|
4584 | if ac_fn_c_try_run "$LINENO"; then : |
---|
4585 | |
---|
4586 | else |
---|
4587 | ac_cv_header_stdc=no |
---|
4588 | fi |
---|
4589 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
4590 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
4591 | fi |
---|
4592 | |
---|
4593 | fi |
---|
4594 | fi |
---|
4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
4596 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
4597 | if test $ac_cv_header_stdc = yes; then |
---|
4598 | |
---|
4599 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
4600 | |
---|
4601 | fi |
---|
4602 | |
---|
4603 | ac_fn_c_check_func "$LINENO" "atol" "ac_cv_func_atol" |
---|
4604 | if test "x$ac_cv_func_atol" = xyes; then : |
---|
4605 | |
---|
4606 | else |
---|
4607 | as_fn_error $? "oops! no atol ?!?" "$LINENO" 5 |
---|
4608 | fi |
---|
4609 | |
---|
4610 | |
---|
4611 | ac_ext=cpp |
---|
4612 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4613 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4614 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4615 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
4616 | |
---|
4617 | |
---|
4618 | |
---|
4619 | for ac_func in sysinfo |
---|
4620 | do : |
---|
4621 | ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo" |
---|
4622 | if test "x$ac_cv_func_sysinfo" = xyes; then : |
---|
4623 | cat >>confdefs.h <<_ACEOF |
---|
4624 | #define HAVE_SYSINFO 1 |
---|
4625 | _ACEOF |
---|
4626 | |
---|
4627 | fi |
---|
4628 | done |
---|
4629 | |
---|
4630 | for ac_func in gettimeofday |
---|
4631 | do : |
---|
4632 | ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
---|
4633 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
---|
4634 | cat >>confdefs.h <<_ACEOF |
---|
4635 | #define HAVE_GETTIMEOFDAY 1 |
---|
4636 | _ACEOF |
---|
4637 | |
---|
4638 | fi |
---|
4639 | done |
---|
4640 | |
---|
4641 | ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime" |
---|
4642 | if test "x$ac_cv_func_localtime" = xyes; then : |
---|
4643 | |
---|
4644 | else |
---|
4645 | as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5 |
---|
4646 | fi |
---|
4647 | |
---|
4648 | ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv" |
---|
4649 | if test "x$ac_cv_func_getenv" = xyes; then : |
---|
4650 | |
---|
4651 | else |
---|
4652 | as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5 |
---|
4653 | fi |
---|
4654 | |
---|
4655 | |
---|
4656 | ac_ext=cpp |
---|
4657 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4658 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4659 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4660 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
4661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
---|
4662 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
---|
4663 | if test -z "$CXXCPP"; then |
---|
4664 | if ${ac_cv_prog_CXXCPP+:} false; then : |
---|
4665 | $as_echo_n "(cached) " >&6 |
---|
4666 | else |
---|
4667 | # Double quotes because CXXCPP needs to be expanded |
---|
4668 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
4669 | do |
---|
4670 | ac_preproc_ok=false |
---|
4671 | for ac_cxx_preproc_warn_flag in '' yes |
---|
4672 | do |
---|
4673 | # Use a header file that comes with gcc, so configuring glibc |
---|
4674 | # with a fresh cross-compiler works. |
---|
4675 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4676 | # <limits.h> exists even on freestanding compilers. |
---|
4677 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4678 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4680 | /* end confdefs.h. */ |
---|
4681 | #ifdef __STDC__ |
---|
4682 | # include <limits.h> |
---|
4683 | #else |
---|
4684 | # include <assert.h> |
---|
4685 | #endif |
---|
4686 | Syntax error |
---|
4687 | _ACEOF |
---|
4688 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4689 | |
---|
4690 | else |
---|
4691 | # Broken: fails on valid input. |
---|
4692 | continue |
---|
4693 | fi |
---|
4694 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4695 | |
---|
4696 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4697 | # can be detected and how. |
---|
4698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4699 | /* end confdefs.h. */ |
---|
4700 | #include <ac_nonexistent.h> |
---|
4701 | _ACEOF |
---|
4702 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4703 | # Broken: success on invalid input. |
---|
4704 | continue |
---|
4705 | else |
---|
4706 | # Passes both tests. |
---|
4707 | ac_preproc_ok=: |
---|
4708 | break |
---|
4709 | fi |
---|
4710 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4711 | |
---|
4712 | done |
---|
4713 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4714 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4715 | if $ac_preproc_ok; then : |
---|
4716 | break |
---|
4717 | fi |
---|
4718 | |
---|
4719 | done |
---|
4720 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
4721 | |
---|
4722 | fi |
---|
4723 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
4724 | else |
---|
4725 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
4726 | fi |
---|
4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
---|
4728 | $as_echo "$CXXCPP" >&6; } |
---|
4729 | ac_preproc_ok=false |
---|
4730 | for ac_cxx_preproc_warn_flag in '' yes |
---|
4731 | do |
---|
4732 | # Use a header file that comes with gcc, so configuring glibc |
---|
4733 | # with a fresh cross-compiler works. |
---|
4734 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4735 | # <limits.h> exists even on freestanding compilers. |
---|
4736 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4737 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4739 | /* end confdefs.h. */ |
---|
4740 | #ifdef __STDC__ |
---|
4741 | # include <limits.h> |
---|
4742 | #else |
---|
4743 | # include <assert.h> |
---|
4744 | #endif |
---|
4745 | Syntax error |
---|
4746 | _ACEOF |
---|
4747 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4748 | |
---|
4749 | else |
---|
4750 | # Broken: fails on valid input. |
---|
4751 | continue |
---|
4752 | fi |
---|
4753 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4754 | |
---|
4755 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4756 | # can be detected and how. |
---|
4757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4758 | /* end confdefs.h. */ |
---|
4759 | #include <ac_nonexistent.h> |
---|
4760 | _ACEOF |
---|
4761 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4762 | # Broken: success on invalid input. |
---|
4763 | continue |
---|
4764 | else |
---|
4765 | # Passes both tests. |
---|
4766 | ac_preproc_ok=: |
---|
4767 | break |
---|
4768 | fi |
---|
4769 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4770 | |
---|
4771 | done |
---|
4772 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4773 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4774 | if $ac_preproc_ok; then : |
---|
4775 | |
---|
4776 | else |
---|
4777 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4778 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4779 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
4780 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4781 | fi |
---|
4782 | |
---|
4783 | ac_ext=cpp |
---|
4784 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4785 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4786 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4787 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
4788 | |
---|
4789 | |
---|
4790 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4791 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4792 | inttypes.h stdint.h unistd.h |
---|
4793 | do : |
---|
4794 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4795 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
4796 | " |
---|
4797 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
4798 | cat >>confdefs.h <<_ACEOF |
---|
4799 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4800 | _ACEOF |
---|
4801 | |
---|
4802 | fi |
---|
4803 | |
---|
4804 | done |
---|
4805 | |
---|
4806 | |
---|
4807 | for ac_header in sys/sysinfo.h |
---|
4808 | do : |
---|
4809 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default" |
---|
4810 | if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then : |
---|
4811 | cat >>confdefs.h <<_ACEOF |
---|
4812 | #define HAVE_SYS_SYSINFO_H 1 |
---|
4813 | _ACEOF |
---|
4814 | |
---|
4815 | fi |
---|
4816 | |
---|
4817 | done |
---|
4818 | |
---|
4819 | |
---|
4820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clrtoeol in -lncurses" >&5 |
---|
4821 | $as_echo_n "checking for clrtoeol in -lncurses... " >&6; } |
---|
4822 | if ${ac_cv_lib_ncurses_clrtoeol+:} false; then : |
---|
4823 | $as_echo_n "(cached) " >&6 |
---|
4824 | else |
---|
4825 | ac_check_lib_save_LIBS=$LIBS |
---|
4826 | LIBS="-lncurses $LIBS" |
---|
4827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4828 | /* end confdefs.h. */ |
---|
4829 | |
---|
4830 | /* Override any GCC internal prototype to avoid an error. |
---|
4831 | Use char because int might match the return type of a GCC |
---|
4832 | builtin and then its argument prototype would still apply. */ |
---|
4833 | #ifdef __cplusplus |
---|
4834 | extern "C" |
---|
4835 | #endif |
---|
4836 | char clrtoeol (); |
---|
4837 | int |
---|
4838 | main () |
---|
4839 | { |
---|
4840 | return clrtoeol (); |
---|
4841 | ; |
---|
4842 | return 0; |
---|
4843 | } |
---|
4844 | _ACEOF |
---|
4845 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
4846 | ac_cv_lib_ncurses_clrtoeol=yes |
---|
4847 | else |
---|
4848 | ac_cv_lib_ncurses_clrtoeol=no |
---|
4849 | fi |
---|
4850 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4851 | conftest$ac_exeext conftest.$ac_ext |
---|
4852 | LIBS=$ac_check_lib_save_LIBS |
---|
4853 | fi |
---|
4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_clrtoeol" >&5 |
---|
4855 | $as_echo "$ac_cv_lib_ncurses_clrtoeol" >&6; } |
---|
4856 | if test "x$ac_cv_lib_ncurses_clrtoeol" = xyes; then : |
---|
4857 | cat >>confdefs.h <<_ACEOF |
---|
4858 | #define HAVE_LIBNCURSES 1 |
---|
4859 | _ACEOF |
---|
4860 | |
---|
4861 | LIBS="-lncurses $LIBS" |
---|
4862 | |
---|
4863 | else |
---|
4864 | as_fn_error $? "ncurses library missing?" "$LINENO" 5 |
---|
4865 | fi |
---|
4866 | |
---|
4867 | for ac_header in ncurses.h |
---|
4868 | do : |
---|
4869 | ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" |
---|
4870 | if test "x$ac_cv_header_ncurses_h" = xyes; then : |
---|
4871 | cat >>confdefs.h <<_ACEOF |
---|
4872 | #define HAVE_NCURSES_H 1 |
---|
4873 | _ACEOF |
---|
4874 | |
---|
4875 | else |
---|
4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses headers missing ?" >&5 |
---|
4877 | $as_echo "$as_me: WARNING: ncurses headers missing ?" >&2;} |
---|
4878 | fi |
---|
4879 | |
---|
4880 | done |
---|
4881 | |
---|
4882 | |
---|
4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5 |
---|
4884 | $as_echo_n "checking for main in -lstdc++... " >&6; } |
---|
4885 | if ${ac_cv_lib_stdcpp_main+:} false; then : |
---|
4886 | $as_echo_n "(cached) " >&6 |
---|
4887 | else |
---|
4888 | ac_check_lib_save_LIBS=$LIBS |
---|
4889 | LIBS="-lstdc++ $LIBS" |
---|
4890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4891 | /* end confdefs.h. */ |
---|
4892 | |
---|
4893 | |
---|
4894 | int |
---|
4895 | main () |
---|
4896 | { |
---|
4897 | return main (); |
---|
4898 | ; |
---|
4899 | return 0; |
---|
4900 | } |
---|
4901 | _ACEOF |
---|
4902 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
4903 | ac_cv_lib_stdcpp_main=yes |
---|
4904 | else |
---|
4905 | ac_cv_lib_stdcpp_main=no |
---|
4906 | fi |
---|
4907 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4908 | conftest$ac_exeext conftest.$ac_ext |
---|
4909 | LIBS=$ac_check_lib_save_LIBS |
---|
4910 | fi |
---|
4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5 |
---|
4912 | $as_echo "$ac_cv_lib_stdcpp_main" >&6; } |
---|
4913 | if test "x$ac_cv_lib_stdcpp_main" = xyes; then : |
---|
4914 | cat >>confdefs.h <<_ACEOF |
---|
4915 | #define HAVE_LIBSTDC__ 1 |
---|
4916 | _ACEOF |
---|
4917 | |
---|
4918 | LIBS="-lstdc++ $LIBS" |
---|
4919 | |
---|
4920 | else |
---|
4921 | as_fn_error $? "librappture requires libstdc++" "$LINENO" 5 |
---|
4922 | fi |
---|
4923 | |
---|
4924 | for ac_header in algorithm |
---|
4925 | do : |
---|
4926 | ac_fn_cxx_check_header_mongrel "$LINENO" "algorithm" "ac_cv_header_algorithm" "$ac_includes_default" |
---|
4927 | if test "x$ac_cv_header_algorithm" = xyes; then : |
---|
4928 | cat >>confdefs.h <<_ACEOF |
---|
4929 | #define HAVE_ALGORITHM 1 |
---|
4930 | _ACEOF |
---|
4931 | |
---|
4932 | else |
---|
4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
4934 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
4935 | fi |
---|
4936 | |
---|
4937 | done |
---|
4938 | |
---|
4939 | for ac_header in cctype |
---|
4940 | do : |
---|
4941 | ac_fn_cxx_check_header_mongrel "$LINENO" "cctype" "ac_cv_header_cctype" "$ac_includes_default" |
---|
4942 | if test "x$ac_cv_header_cctype" = xyes; then : |
---|
4943 | cat >>confdefs.h <<_ACEOF |
---|
4944 | #define HAVE_CCTYPE 1 |
---|
4945 | _ACEOF |
---|
4946 | |
---|
4947 | else |
---|
4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
4949 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
4950 | fi |
---|
4951 | |
---|
4952 | done |
---|
4953 | |
---|
4954 | for ac_header in cfloat |
---|
4955 | do : |
---|
4956 | ac_fn_cxx_check_header_mongrel "$LINENO" "cfloat" "ac_cv_header_cfloat" "$ac_includes_default" |
---|
4957 | if test "x$ac_cv_header_cfloat" = xyes; then : |
---|
4958 | cat >>confdefs.h <<_ACEOF |
---|
4959 | #define HAVE_CFLOAT 1 |
---|
4960 | _ACEOF |
---|
4961 | |
---|
4962 | else |
---|
4963 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
4964 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
4965 | fi |
---|
4966 | |
---|
4967 | done |
---|
4968 | |
---|
4969 | for ac_header in cmath |
---|
4970 | do : |
---|
4971 | ac_fn_cxx_check_header_mongrel "$LINENO" "cmath" "ac_cv_header_cmath" "$ac_includes_default" |
---|
4972 | if test "x$ac_cv_header_cmath" = xyes; then : |
---|
4973 | cat >>confdefs.h <<_ACEOF |
---|
4974 | #define HAVE_CMATH 1 |
---|
4975 | _ACEOF |
---|
4976 | |
---|
4977 | else |
---|
4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
4979 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
4980 | fi |
---|
4981 | |
---|
4982 | done |
---|
4983 | |
---|
4984 | for ac_header in cstdio |
---|
4985 | do : |
---|
4986 | ac_fn_cxx_check_header_mongrel "$LINENO" "cstdio" "ac_cv_header_cstdio" "$ac_includes_default" |
---|
4987 | if test "x$ac_cv_header_cstdio" = xyes; then : |
---|
4988 | cat >>confdefs.h <<_ACEOF |
---|
4989 | #define HAVE_CSTDIO 1 |
---|
4990 | _ACEOF |
---|
4991 | |
---|
4992 | else |
---|
4993 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
4994 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
4995 | fi |
---|
4996 | |
---|
4997 | done |
---|
4998 | |
---|
4999 | for ac_header in cstdlib |
---|
5000 | do : |
---|
5001 | ac_fn_cxx_check_header_mongrel "$LINENO" "cstdlib" "ac_cv_header_cstdlib" "$ac_includes_default" |
---|
5002 | if test "x$ac_cv_header_cstdlib" = xyes; then : |
---|
5003 | cat >>confdefs.h <<_ACEOF |
---|
5004 | #define HAVE_CSTDLIB 1 |
---|
5005 | _ACEOF |
---|
5006 | |
---|
5007 | else |
---|
5008 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5009 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5010 | fi |
---|
5011 | |
---|
5012 | done |
---|
5013 | |
---|
5014 | for ac_header in cstring |
---|
5015 | do : |
---|
5016 | ac_fn_cxx_check_header_mongrel "$LINENO" "cstring" "ac_cv_header_cstring" "$ac_includes_default" |
---|
5017 | if test "x$ac_cv_header_cstring" = xyes; then : |
---|
5018 | cat >>confdefs.h <<_ACEOF |
---|
5019 | #define HAVE_CSTRING 1 |
---|
5020 | _ACEOF |
---|
5021 | |
---|
5022 | else |
---|
5023 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5024 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5025 | fi |
---|
5026 | |
---|
5027 | done |
---|
5028 | |
---|
5029 | for ac_header in fstream |
---|
5030 | do : |
---|
5031 | ac_fn_cxx_check_header_mongrel "$LINENO" "fstream" "ac_cv_header_fstream" "$ac_includes_default" |
---|
5032 | if test "x$ac_cv_header_fstream" = xyes; then : |
---|
5033 | cat >>confdefs.h <<_ACEOF |
---|
5034 | #define HAVE_FSTREAM 1 |
---|
5035 | _ACEOF |
---|
5036 | |
---|
5037 | else |
---|
5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5039 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5040 | fi |
---|
5041 | |
---|
5042 | done |
---|
5043 | |
---|
5044 | for ac_header in list |
---|
5045 | do : |
---|
5046 | ac_fn_cxx_check_header_mongrel "$LINENO" "list" "ac_cv_header_list" "$ac_includes_default" |
---|
5047 | if test "x$ac_cv_header_list" = xyes; then : |
---|
5048 | cat >>confdefs.h <<_ACEOF |
---|
5049 | #define HAVE_LIST 1 |
---|
5050 | _ACEOF |
---|
5051 | |
---|
5052 | else |
---|
5053 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5054 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5055 | fi |
---|
5056 | |
---|
5057 | done |
---|
5058 | |
---|
5059 | for ac_header in iostream |
---|
5060 | do : |
---|
5061 | ac_fn_cxx_check_header_mongrel "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default" |
---|
5062 | if test "x$ac_cv_header_iostream" = xyes; then : |
---|
5063 | cat >>confdefs.h <<_ACEOF |
---|
5064 | #define HAVE_IOSTREAM 1 |
---|
5065 | _ACEOF |
---|
5066 | |
---|
5067 | else |
---|
5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5069 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5070 | fi |
---|
5071 | |
---|
5072 | done |
---|
5073 | |
---|
5074 | for ac_header in iterator |
---|
5075 | do : |
---|
5076 | ac_fn_cxx_check_header_mongrel "$LINENO" "iterator" "ac_cv_header_iterator" "$ac_includes_default" |
---|
5077 | if test "x$ac_cv_header_iterator" = xyes; then : |
---|
5078 | cat >>confdefs.h <<_ACEOF |
---|
5079 | #define HAVE_ITERATOR 1 |
---|
5080 | _ACEOF |
---|
5081 | |
---|
5082 | else |
---|
5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5084 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5085 | fi |
---|
5086 | |
---|
5087 | done |
---|
5088 | |
---|
5089 | for ac_header in sstream |
---|
5090 | do : |
---|
5091 | ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default" |
---|
5092 | if test "x$ac_cv_header_sstream" = xyes; then : |
---|
5093 | cat >>confdefs.h <<_ACEOF |
---|
5094 | #define HAVE_SSTREAM 1 |
---|
5095 | _ACEOF |
---|
5096 | |
---|
5097 | else |
---|
5098 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5099 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5100 | fi |
---|
5101 | |
---|
5102 | done |
---|
5103 | |
---|
5104 | for ac_header in stack |
---|
5105 | do : |
---|
5106 | ac_fn_cxx_check_header_mongrel "$LINENO" "stack" "ac_cv_header_stack" "$ac_includes_default" |
---|
5107 | if test "x$ac_cv_header_stack" = xyes; then : |
---|
5108 | cat >>confdefs.h <<_ACEOF |
---|
5109 | #define HAVE_STACK 1 |
---|
5110 | _ACEOF |
---|
5111 | |
---|
5112 | else |
---|
5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5114 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5115 | fi |
---|
5116 | |
---|
5117 | done |
---|
5118 | |
---|
5119 | for ac_header in string |
---|
5120 | do : |
---|
5121 | ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default" |
---|
5122 | if test "x$ac_cv_header_string" = xyes; then : |
---|
5123 | cat >>confdefs.h <<_ACEOF |
---|
5124 | #define HAVE_STRING 1 |
---|
5125 | _ACEOF |
---|
5126 | |
---|
5127 | else |
---|
5128 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5129 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5130 | fi |
---|
5131 | |
---|
5132 | done |
---|
5133 | |
---|
5134 | for ac_header in vector |
---|
5135 | do : |
---|
5136 | ac_fn_cxx_check_header_mongrel "$LINENO" "vector" "ac_cv_header_vector" "$ac_includes_default" |
---|
5137 | if test "x$ac_cv_header_vector" = xyes; then : |
---|
5138 | cat >>confdefs.h <<_ACEOF |
---|
5139 | #define HAVE_VECTOR 1 |
---|
5140 | _ACEOF |
---|
5141 | |
---|
5142 | else |
---|
5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5144 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5145 | fi |
---|
5146 | |
---|
5147 | done |
---|
5148 | |
---|
5149 | |
---|
5150 | for ac_header in assert.h |
---|
5151 | do : |
---|
5152 | ac_fn_cxx_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" |
---|
5153 | if test "x$ac_cv_header_assert_h" = xyes; then : |
---|
5154 | cat >>confdefs.h <<_ACEOF |
---|
5155 | #define HAVE_ASSERT_H 1 |
---|
5156 | _ACEOF |
---|
5157 | |
---|
5158 | else |
---|
5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5160 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5161 | fi |
---|
5162 | |
---|
5163 | done |
---|
5164 | |
---|
5165 | for ac_header in ctype.h |
---|
5166 | do : |
---|
5167 | ac_fn_cxx_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" |
---|
5168 | if test "x$ac_cv_header_ctype_h" = xyes; then : |
---|
5169 | cat >>confdefs.h <<_ACEOF |
---|
5170 | #define HAVE_CTYPE_H 1 |
---|
5171 | _ACEOF |
---|
5172 | |
---|
5173 | else |
---|
5174 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5175 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5176 | fi |
---|
5177 | |
---|
5178 | done |
---|
5179 | |
---|
5180 | for ac_header in errno.h |
---|
5181 | do : |
---|
5182 | ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
---|
5183 | if test "x$ac_cv_header_errno_h" = xyes; then : |
---|
5184 | cat >>confdefs.h <<_ACEOF |
---|
5185 | #define HAVE_ERRNO_H 1 |
---|
5186 | _ACEOF |
---|
5187 | |
---|
5188 | else |
---|
5189 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5190 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5191 | fi |
---|
5192 | |
---|
5193 | done |
---|
5194 | |
---|
5195 | for ac_header in limits.h |
---|
5196 | do : |
---|
5197 | ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" |
---|
5198 | if test "x$ac_cv_header_limits_h" = xyes; then : |
---|
5199 | cat >>confdefs.h <<_ACEOF |
---|
5200 | #define HAVE_LIMITS_H 1 |
---|
5201 | _ACEOF |
---|
5202 | |
---|
5203 | else |
---|
5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5205 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5206 | fi |
---|
5207 | |
---|
5208 | done |
---|
5209 | |
---|
5210 | for ac_header in string.h |
---|
5211 | do : |
---|
5212 | ac_fn_cxx_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
---|
5213 | if test "x$ac_cv_header_string_h" = xyes; then : |
---|
5214 | cat >>confdefs.h <<_ACEOF |
---|
5215 | #define HAVE_STRING_H 1 |
---|
5216 | _ACEOF |
---|
5217 | |
---|
5218 | else |
---|
5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5220 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5221 | fi |
---|
5222 | |
---|
5223 | done |
---|
5224 | |
---|
5225 | for ac_header in stdlib.h |
---|
5226 | do : |
---|
5227 | ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
---|
5228 | if test "x$ac_cv_header_stdlib_h" = xyes; then : |
---|
5229 | cat >>confdefs.h <<_ACEOF |
---|
5230 | #define HAVE_STDLIB_H 1 |
---|
5231 | _ACEOF |
---|
5232 | |
---|
5233 | else |
---|
5234 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5235 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5236 | fi |
---|
5237 | |
---|
5238 | done |
---|
5239 | |
---|
5240 | for ac_header in stddef.h |
---|
5241 | do : |
---|
5242 | ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" |
---|
5243 | if test "x$ac_cv_header_stddef_h" = xyes; then : |
---|
5244 | cat >>confdefs.h <<_ACEOF |
---|
5245 | #define HAVE_STDDEF_H 1 |
---|
5246 | _ACEOF |
---|
5247 | |
---|
5248 | else |
---|
5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5250 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5251 | fi |
---|
5252 | |
---|
5253 | done |
---|
5254 | |
---|
5255 | for ac_header in float.h |
---|
5256 | do : |
---|
5257 | ac_fn_cxx_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" |
---|
5258 | if test "x$ac_cv_header_float_h" = xyes; then : |
---|
5259 | cat >>confdefs.h <<_ACEOF |
---|
5260 | #define HAVE_FLOAT_H 1 |
---|
5261 | _ACEOF |
---|
5262 | |
---|
5263 | else |
---|
5264 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5265 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5266 | fi |
---|
5267 | |
---|
5268 | done |
---|
5269 | |
---|
5270 | for ac_header in math.h |
---|
5271 | do : |
---|
5272 | ac_fn_cxx_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" |
---|
5273 | if test "x$ac_cv_header_math_h" = xyes; then : |
---|
5274 | cat >>confdefs.h <<_ACEOF |
---|
5275 | #define HAVE_MATH_H 1 |
---|
5276 | _ACEOF |
---|
5277 | |
---|
5278 | else |
---|
5279 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5280 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5281 | fi |
---|
5282 | |
---|
5283 | done |
---|
5284 | |
---|
5285 | for ac_header in malloc.h |
---|
5286 | do : |
---|
5287 | ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" |
---|
5288 | if test "x$ac_cv_header_malloc_h" = xyes; then : |
---|
5289 | cat >>confdefs.h <<_ACEOF |
---|
5290 | #define HAVE_MALLOC_H 1 |
---|
5291 | _ACEOF |
---|
5292 | |
---|
5293 | else |
---|
5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5295 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5296 | fi |
---|
5297 | |
---|
5298 | done |
---|
5299 | |
---|
5300 | for ac_header in memory.h |
---|
5301 | do : |
---|
5302 | ac_fn_cxx_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default" |
---|
5303 | if test "x$ac_cv_header_memory_h" = xyes; then : |
---|
5304 | cat >>confdefs.h <<_ACEOF |
---|
5305 | #define HAVE_MEMORY_H 1 |
---|
5306 | _ACEOF |
---|
5307 | |
---|
5308 | else |
---|
5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5310 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5311 | fi |
---|
5312 | |
---|
5313 | done |
---|
5314 | |
---|
5315 | for ac_header in unistd.h |
---|
5316 | do : |
---|
5317 | ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
---|
5318 | if test "x$ac_cv_header_unistd_h" = xyes; then : |
---|
5319 | cat >>confdefs.h <<_ACEOF |
---|
5320 | #define HAVE_UNISTD_H 1 |
---|
5321 | _ACEOF |
---|
5322 | |
---|
5323 | else |
---|
5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5325 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5326 | fi |
---|
5327 | |
---|
5328 | done |
---|
5329 | |
---|
5330 | |
---|
5331 | for ac_header in inttypes.h |
---|
5332 | do : |
---|
5333 | ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
---|
5334 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
---|
5335 | cat >>confdefs.h <<_ACEOF |
---|
5336 | #define HAVE_INTTYPES_H 1 |
---|
5337 | _ACEOF |
---|
5338 | |
---|
5339 | fi |
---|
5340 | |
---|
5341 | done |
---|
5342 | |
---|
5343 | |
---|
5344 | |
---|
5345 | |
---|
5346 | # Step 0.a: Enable 64 bit support? |
---|
5347 | |
---|
5348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5 |
---|
5349 | $as_echo_n "checking if 64bit support is requested... " >&6; } |
---|
5350 | # Check whether --enable-64bit was given. |
---|
5351 | if test "${enable_64bit+set}" = set; then : |
---|
5352 | enableval=$enable_64bit; do64bit=$enableval |
---|
5353 | else |
---|
5354 | do64bit=no |
---|
5355 | fi |
---|
5356 | |
---|
5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 |
---|
5358 | $as_echo "$do64bit" >&6; } |
---|
5359 | |
---|
5360 | # Step 0.b: Enable Solaris 64 bit VIS support? |
---|
5361 | |
---|
5362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5 |
---|
5363 | $as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; } |
---|
5364 | # Check whether --enable-64bit-vis was given. |
---|
5365 | if test "${enable_64bit_vis+set}" = set; then : |
---|
5366 | enableval=$enable_64bit_vis; do64bitVIS=$enableval |
---|
5367 | else |
---|
5368 | do64bitVIS=no |
---|
5369 | fi |
---|
5370 | |
---|
5371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 |
---|
5372 | $as_echo "$do64bitVIS" >&6; } |
---|
5373 | |
---|
5374 | if test "$do64bitVIS" = "yes"; then |
---|
5375 | # Force 64bit on with VIS |
---|
5376 | do64bit=yes |
---|
5377 | fi |
---|
5378 | |
---|
5379 | # Step 1: set the variable "system" to hold the name and version number |
---|
5380 | # for the system. |
---|
5381 | |
---|
5382 | |
---|
5383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5 |
---|
5384 | $as_echo_n "checking system version... " >&6; } |
---|
5385 | if ${tcl_cv_sys_version+:} false; then : |
---|
5386 | $as_echo_n "(cached) " >&6 |
---|
5387 | else |
---|
5388 | |
---|
5389 | if test -f /usr/lib/NextStep/software_version; then |
---|
5390 | tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` |
---|
5391 | else |
---|
5392 | tcl_cv_sys_version=`uname -s`-`uname -r` |
---|
5393 | if test "$?" -ne 0 ; then |
---|
5394 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 |
---|
5395 | $as_echo "$as_me: WARNING: can't find uname command" >&2;} |
---|
5396 | tcl_cv_sys_version=unknown |
---|
5397 | else |
---|
5398 | # Special check for weird MP-RAS system (uname returns weird |
---|
5399 | # results, and the version is kept in special file). |
---|
5400 | |
---|
5401 | if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then |
---|
5402 | tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` |
---|
5403 | fi |
---|
5404 | if test "`uname -s`" = "AIX" ; then |
---|
5405 | tcl_cv_sys_version=AIX-`uname -v`.`uname -r` |
---|
5406 | fi |
---|
5407 | fi |
---|
5408 | fi |
---|
5409 | |
---|
5410 | fi |
---|
5411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 |
---|
5412 | $as_echo "$tcl_cv_sys_version" >&6; } |
---|
5413 | system=$tcl_cv_sys_version |
---|
5414 | |
---|
5415 | |
---|
5416 | # Step 2: check for existence of -ldl library. This is needed because |
---|
5417 | # Linux can use either -ldl or -ldld for dynamic loading. |
---|
5418 | |
---|
5419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
---|
5420 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
---|
5421 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
---|
5422 | $as_echo_n "(cached) " >&6 |
---|
5423 | else |
---|
5424 | ac_check_lib_save_LIBS=$LIBS |
---|
5425 | LIBS="-ldl $LIBS" |
---|
5426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5427 | /* end confdefs.h. */ |
---|
5428 | |
---|
5429 | /* Override any GCC internal prototype to avoid an error. |
---|
5430 | Use char because int might match the return type of a GCC |
---|
5431 | builtin and then its argument prototype would still apply. */ |
---|
5432 | #ifdef __cplusplus |
---|
5433 | extern "C" |
---|
5434 | #endif |
---|
5435 | char dlopen (); |
---|
5436 | int |
---|
5437 | main () |
---|
5438 | { |
---|
5439 | return dlopen (); |
---|
5440 | ; |
---|
5441 | return 0; |
---|
5442 | } |
---|
5443 | _ACEOF |
---|
5444 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5445 | ac_cv_lib_dl_dlopen=yes |
---|
5446 | else |
---|
5447 | ac_cv_lib_dl_dlopen=no |
---|
5448 | fi |
---|
5449 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5450 | conftest$ac_exeext conftest.$ac_ext |
---|
5451 | LIBS=$ac_check_lib_save_LIBS |
---|
5452 | fi |
---|
5453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
5454 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
---|
5455 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
---|
5456 | have_dl=yes |
---|
5457 | else |
---|
5458 | have_dl=no |
---|
5459 | fi |
---|
5460 | |
---|
5461 | |
---|
5462 | # Require ranlib early so we can override it in special cases below. |
---|
5463 | |
---|
5464 | |
---|
5465 | |
---|
5466 | # Step 3: set configuration options based on system name and version. |
---|
5467 | |
---|
5468 | do64bit_ok=no |
---|
5469 | LDFLAGS_ORIG="$LDFLAGS" |
---|
5470 | TCL_EXPORT_FILE_SUFFIX="" |
---|
5471 | UNSHARED_LIB_SUFFIX="" |
---|
5472 | TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`' |
---|
5473 | ECHO_VERSION='`echo ${VERSION}`' |
---|
5474 | TCL_LIB_VERSIONS_OK=ok |
---|
5475 | CFLAGS_DEBUG=-g |
---|
5476 | CFLAGS_OPTIMIZE=-O |
---|
5477 | if test "$GCC" = "yes" ; then |
---|
5478 | CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing" |
---|
5479 | else |
---|
5480 | CFLAGS_WARNING="" |
---|
5481 | fi |
---|
5482 | TCL_NEEDS_EXP_FILE=0 |
---|
5483 | TCL_BUILD_EXP_FILE="" |
---|
5484 | TCL_EXP_FILE="" |
---|
5485 | # Extract the first word of "ar", so it can be a program name with args. |
---|
5486 | set dummy ar; ac_word=$2 |
---|
5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5488 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5489 | if ${ac_cv_prog_AR+:} false; then : |
---|
5490 | $as_echo_n "(cached) " >&6 |
---|
5491 | else |
---|
5492 | if test -n "$AR"; then |
---|
5493 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
5494 | else |
---|
5495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5496 | for as_dir in $PATH |
---|
5497 | do |
---|
5498 | IFS=$as_save_IFS |
---|
5499 | test -z "$as_dir" && as_dir=. |
---|
5500 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5501 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5502 | ac_cv_prog_AR="ar" |
---|
5503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5504 | break 2 |
---|
5505 | fi |
---|
5506 | done |
---|
5507 | done |
---|
5508 | IFS=$as_save_IFS |
---|
5509 | |
---|
5510 | fi |
---|
5511 | fi |
---|
5512 | AR=$ac_cv_prog_AR |
---|
5513 | if test -n "$AR"; then |
---|
5514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
---|
5515 | $as_echo "$AR" >&6; } |
---|
5516 | else |
---|
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5518 | $as_echo "no" >&6; } |
---|
5519 | fi |
---|
5520 | |
---|
5521 | |
---|
5522 | if test "${AR}" = "" ; then |
---|
5523 | as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 |
---|
5524 | fi |
---|
5525 | STLIB_LD='${AR} cr' |
---|
5526 | LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" |
---|
5527 | PLAT_OBJS="" |
---|
5528 | PLAT_SRCS="" |
---|
5529 | case $system in |
---|
5530 | AIX-*) |
---|
5531 | if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then |
---|
5532 | # AIX requires the _r compiler when gcc isn't being used |
---|
5533 | case "${CC}" in |
---|
5534 | *_r) |
---|
5535 | # ok ... |
---|
5536 | ;; |
---|
5537 | *) |
---|
5538 | CC=${CC}_r |
---|
5539 | ;; |
---|
5540 | esac |
---|
5541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5 |
---|
5542 | $as_echo "Using $CC for compiling with threads" >&6; } |
---|
5543 | fi |
---|
5544 | LIBS="$LIBS -lc" |
---|
5545 | SHLIB_CFLAGS="" |
---|
5546 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
5547 | # symbols when dynamically loaded into tclsh. |
---|
5548 | SHLIB_LD_LIBS='${LIBS}' |
---|
5549 | SHLIB_SUFFIX=".so" |
---|
5550 | |
---|
5551 | DL_OBJS="tclLoadDl.o" |
---|
5552 | LD_LIBRARY_PATH_VAR="LIBPATH" |
---|
5553 | |
---|
5554 | # Check to enable 64-bit flags for compiler/linker on AIX 4+ |
---|
5555 | if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then |
---|
5556 | if test "$GCC" = "yes" ; then |
---|
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
5558 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
5559 | else |
---|
5560 | do64bit_ok=yes |
---|
5561 | CFLAGS="$CFLAGS -q64" |
---|
5562 | LDFLAGS="$LDFLAGS -q64" |
---|
5563 | RANLIB="${RANLIB} -X64" |
---|
5564 | AR="${AR} -X64" |
---|
5565 | SHLIB_LD_FLAGS="-b64" |
---|
5566 | fi |
---|
5567 | fi |
---|
5568 | |
---|
5569 | if test "`uname -m`" = "ia64" ; then |
---|
5570 | # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC |
---|
5571 | SHLIB_LD="/usr/ccs/bin/ld -G -z text" |
---|
5572 | # AIX-5 has dl* in libc.so |
---|
5573 | DL_LIBS="" |
---|
5574 | if test "$GCC" = "yes" ; then |
---|
5575 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
5576 | else |
---|
5577 | CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' |
---|
5578 | fi |
---|
5579 | LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
5580 | else |
---|
5581 | if test "$GCC" = "yes" ; then |
---|
5582 | SHLIB_LD="gcc -shared" |
---|
5583 | else |
---|
5584 | SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" |
---|
5585 | fi |
---|
5586 | SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}" |
---|
5587 | DL_LIBS="-ldl" |
---|
5588 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
5589 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5590 | TCL_NEEDS_EXP_FILE=1 |
---|
5591 | TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp' |
---|
5592 | fi |
---|
5593 | |
---|
5594 | # AIX v<=4.1 has some different flags than 4.2+ |
---|
5595 | if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then |
---|
5596 | LIBOBJS="$LIBOBJS tclLoadAix.o" |
---|
5597 | DL_LIBS="-lld" |
---|
5598 | fi |
---|
5599 | |
---|
5600 | # On AIX <=v4 systems, libbsd.a has to be linked in to support |
---|
5601 | # non-blocking file IO. This library has to be linked in after |
---|
5602 | # the MATH_LIBS or it breaks the pow() function. The way to |
---|
5603 | # insure proper sequencing, is to add it to the tail of MATH_LIBS. |
---|
5604 | # This library also supplies gettimeofday. |
---|
5605 | # |
---|
5606 | # AIX does not have a timezone field in struct tm. When the AIX |
---|
5607 | # bsd library is used, the timezone global and the gettimeofday |
---|
5608 | # methods are to be avoided for timezone deduction instead, we |
---|
5609 | # deduce the timezone by comparing the localtime result on a |
---|
5610 | # known GMT value. |
---|
5611 | |
---|
5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5 |
---|
5613 | $as_echo_n "checking for gettimeofday in -lbsd... " >&6; } |
---|
5614 | if ${ac_cv_lib_bsd_gettimeofday+:} false; then : |
---|
5615 | $as_echo_n "(cached) " >&6 |
---|
5616 | else |
---|
5617 | ac_check_lib_save_LIBS=$LIBS |
---|
5618 | LIBS="-lbsd $LIBS" |
---|
5619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5620 | /* end confdefs.h. */ |
---|
5621 | |
---|
5622 | /* Override any GCC internal prototype to avoid an error. |
---|
5623 | Use char because int might match the return type of a GCC |
---|
5624 | builtin and then its argument prototype would still apply. */ |
---|
5625 | #ifdef __cplusplus |
---|
5626 | extern "C" |
---|
5627 | #endif |
---|
5628 | char gettimeofday (); |
---|
5629 | int |
---|
5630 | main () |
---|
5631 | { |
---|
5632 | return gettimeofday (); |
---|
5633 | ; |
---|
5634 | return 0; |
---|
5635 | } |
---|
5636 | _ACEOF |
---|
5637 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5638 | ac_cv_lib_bsd_gettimeofday=yes |
---|
5639 | else |
---|
5640 | ac_cv_lib_bsd_gettimeofday=no |
---|
5641 | fi |
---|
5642 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5643 | conftest$ac_exeext conftest.$ac_ext |
---|
5644 | LIBS=$ac_check_lib_save_LIBS |
---|
5645 | fi |
---|
5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5 |
---|
5647 | $as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; } |
---|
5648 | if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then : |
---|
5649 | libbsd=yes |
---|
5650 | else |
---|
5651 | libbsd=no |
---|
5652 | fi |
---|
5653 | |
---|
5654 | if test $libbsd = yes; then |
---|
5655 | MATH_LIBS="$MATH_LIBS -lbsd" |
---|
5656 | $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h |
---|
5657 | |
---|
5658 | fi |
---|
5659 | ;; |
---|
5660 | BeOS*) |
---|
5661 | SHLIB_CFLAGS="-fPIC" |
---|
5662 | SHLIB_LD="${CC} -nostart" |
---|
5663 | SHLIB_LD_LIBS='${LIBS}' |
---|
5664 | SHLIB_SUFFIX=".so" |
---|
5665 | DL_OBJS="tclLoadDl.o" |
---|
5666 | DL_LIBS="-ldl" |
---|
5667 | |
---|
5668 | #----------------------------------------------------------- |
---|
5669 | # Check for inet_ntoa in -lbind, for BeOS (which also needs |
---|
5670 | # -lsocket, even if the network functions are in -lnet which |
---|
5671 | # is always linked to, for compatibility. |
---|
5672 | #----------------------------------------------------------- |
---|
5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5 |
---|
5674 | $as_echo_n "checking for inet_ntoa in -lbind... " >&6; } |
---|
5675 | if ${ac_cv_lib_bind_inet_ntoa+:} false; then : |
---|
5676 | $as_echo_n "(cached) " >&6 |
---|
5677 | else |
---|
5678 | ac_check_lib_save_LIBS=$LIBS |
---|
5679 | LIBS="-lbind $LIBS" |
---|
5680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5681 | /* end confdefs.h. */ |
---|
5682 | |
---|
5683 | /* Override any GCC internal prototype to avoid an error. |
---|
5684 | Use char because int might match the return type of a GCC |
---|
5685 | builtin and then its argument prototype would still apply. */ |
---|
5686 | #ifdef __cplusplus |
---|
5687 | extern "C" |
---|
5688 | #endif |
---|
5689 | char inet_ntoa (); |
---|
5690 | int |
---|
5691 | main () |
---|
5692 | { |
---|
5693 | return inet_ntoa (); |
---|
5694 | ; |
---|
5695 | return 0; |
---|
5696 | } |
---|
5697 | _ACEOF |
---|
5698 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5699 | ac_cv_lib_bind_inet_ntoa=yes |
---|
5700 | else |
---|
5701 | ac_cv_lib_bind_inet_ntoa=no |
---|
5702 | fi |
---|
5703 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5704 | conftest$ac_exeext conftest.$ac_ext |
---|
5705 | LIBS=$ac_check_lib_save_LIBS |
---|
5706 | fi |
---|
5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5 |
---|
5708 | $as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; } |
---|
5709 | if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then : |
---|
5710 | LIBS="$LIBS -lbind -lsocket" |
---|
5711 | fi |
---|
5712 | |
---|
5713 | ;; |
---|
5714 | BSD/OS-2.1*|BSD/OS-3*) |
---|
5715 | SHLIB_CFLAGS="" |
---|
5716 | SHLIB_LD="shlicc -r" |
---|
5717 | SHLIB_LD_LIBS='${LIBS}' |
---|
5718 | SHLIB_SUFFIX=".so" |
---|
5719 | DL_OBJS="tclLoadDl.o" |
---|
5720 | DL_LIBS="-ldl" |
---|
5721 | CC_SEARCH_FLAGS="" |
---|
5722 | LD_SEARCH_FLAGS="" |
---|
5723 | ;; |
---|
5724 | BSD/OS-4.*) |
---|
5725 | SHLIB_CFLAGS="-export-dynamic -fPIC" |
---|
5726 | SHLIB_LD="cc -shared" |
---|
5727 | SHLIB_LD_LIBS='${LIBS}' |
---|
5728 | SHLIB_SUFFIX=".so" |
---|
5729 | DL_OBJS="tclLoadDl.o" |
---|
5730 | DL_LIBS="-ldl" |
---|
5731 | LDFLAGS="$LDFLAGS -export-dynamic" |
---|
5732 | CC_SEARCH_FLAGS="" |
---|
5733 | LD_SEARCH_FLAGS="" |
---|
5734 | ;; |
---|
5735 | dgux*) |
---|
5736 | SHLIB_CFLAGS="-K PIC" |
---|
5737 | SHLIB_LD="cc -G" |
---|
5738 | SHLIB_LD_LIBS="" |
---|
5739 | SHLIB_SUFFIX=".so" |
---|
5740 | DL_OBJS="tclLoadDl.o" |
---|
5741 | DL_LIBS="-ldl" |
---|
5742 | CC_SEARCH_FLAGS="" |
---|
5743 | LD_SEARCH_FLAGS="" |
---|
5744 | ;; |
---|
5745 | HP-UX-*.11.*) |
---|
5746 | # Use updated header definitions where possible |
---|
5747 | $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h |
---|
5748 | # Use the XOPEN network library |
---|
5749 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
---|
5750 | # Use the XOPEN network library |
---|
5751 | LIBS="$LIBS -lxnet" # Use the XOPEN network library |
---|
5752 | |
---|
5753 | if test "`uname -m`" = "ia64" ; then |
---|
5754 | SHLIB_SUFFIX=".so" |
---|
5755 | else |
---|
5756 | SHLIB_SUFFIX=".sl" |
---|
5757 | fi |
---|
5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
---|
5759 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
---|
5760 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
---|
5761 | $as_echo_n "(cached) " >&6 |
---|
5762 | else |
---|
5763 | ac_check_lib_save_LIBS=$LIBS |
---|
5764 | LIBS="-ldld $LIBS" |
---|
5765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5766 | /* end confdefs.h. */ |
---|
5767 | |
---|
5768 | /* Override any GCC internal prototype to avoid an error. |
---|
5769 | Use char because int might match the return type of a GCC |
---|
5770 | builtin and then its argument prototype would still apply. */ |
---|
5771 | #ifdef __cplusplus |
---|
5772 | extern "C" |
---|
5773 | #endif |
---|
5774 | char shl_load (); |
---|
5775 | int |
---|
5776 | main () |
---|
5777 | { |
---|
5778 | return shl_load (); |
---|
5779 | ; |
---|
5780 | return 0; |
---|
5781 | } |
---|
5782 | _ACEOF |
---|
5783 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5784 | ac_cv_lib_dld_shl_load=yes |
---|
5785 | else |
---|
5786 | ac_cv_lib_dld_shl_load=no |
---|
5787 | fi |
---|
5788 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5789 | conftest$ac_exeext conftest.$ac_ext |
---|
5790 | LIBS=$ac_check_lib_save_LIBS |
---|
5791 | fi |
---|
5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
5793 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
---|
5794 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
---|
5795 | tcl_ok=yes |
---|
5796 | else |
---|
5797 | tcl_ok=no |
---|
5798 | fi |
---|
5799 | |
---|
5800 | if test "$tcl_ok" = yes; then |
---|
5801 | SHLIB_CFLAGS="+z" |
---|
5802 | SHLIB_LD="ld -b" |
---|
5803 | SHLIB_LD_LIBS='${LIBS}' |
---|
5804 | DL_OBJS="tclLoadShl.o" |
---|
5805 | DL_LIBS="-ldld" |
---|
5806 | LDFLAGS="$LDFLAGS -Wl,-E" |
---|
5807 | CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' |
---|
5808 | LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' |
---|
5809 | LD_LIBRARY_PATH_VAR="SHLIB_PATH" |
---|
5810 | fi |
---|
5811 | if test "$GCC" = "yes" ; then |
---|
5812 | SHLIB_LD="gcc -shared" |
---|
5813 | SHLIB_LD_LIBS='${LIBS}' |
---|
5814 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5815 | fi |
---|
5816 | |
---|
5817 | # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc |
---|
5818 | #CFLAGS="$CFLAGS +DAportable" |
---|
5819 | |
---|
5820 | # Check to enable 64-bit flags for compiler/linker |
---|
5821 | if test "$do64bit" = "yes" ; then |
---|
5822 | if test "$GCC" = "yes" ; then |
---|
5823 | hpux_arch=`${CC} -dumpmachine` |
---|
5824 | case $hpux_arch in |
---|
5825 | hppa64*) |
---|
5826 | # 64-bit gcc in use. Fix flags for GNU ld. |
---|
5827 | do64bit_ok=yes |
---|
5828 | SHLIB_LD="${CC} -shared" |
---|
5829 | SHLIB_LD_LIBS='${LIBS}' |
---|
5830 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
5831 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5832 | ;; |
---|
5833 | *) |
---|
5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
5835 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
5836 | ;; |
---|
5837 | esac |
---|
5838 | else |
---|
5839 | do64bit_ok=yes |
---|
5840 | CFLAGS="$CFLAGS +DD64" |
---|
5841 | LDFLAGS="$LDFLAGS +DD64" |
---|
5842 | fi |
---|
5843 | fi |
---|
5844 | ;; |
---|
5845 | HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) |
---|
5846 | SHLIB_SUFFIX=".sl" |
---|
5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
---|
5848 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
---|
5849 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
---|
5850 | $as_echo_n "(cached) " >&6 |
---|
5851 | else |
---|
5852 | ac_check_lib_save_LIBS=$LIBS |
---|
5853 | LIBS="-ldld $LIBS" |
---|
5854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5855 | /* end confdefs.h. */ |
---|
5856 | |
---|
5857 | /* Override any GCC internal prototype to avoid an error. |
---|
5858 | Use char because int might match the return type of a GCC |
---|
5859 | builtin and then its argument prototype would still apply. */ |
---|
5860 | #ifdef __cplusplus |
---|
5861 | extern "C" |
---|
5862 | #endif |
---|
5863 | char shl_load (); |
---|
5864 | int |
---|
5865 | main () |
---|
5866 | { |
---|
5867 | return shl_load (); |
---|
5868 | ; |
---|
5869 | return 0; |
---|
5870 | } |
---|
5871 | _ACEOF |
---|
5872 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5873 | ac_cv_lib_dld_shl_load=yes |
---|
5874 | else |
---|
5875 | ac_cv_lib_dld_shl_load=no |
---|
5876 | fi |
---|
5877 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5878 | conftest$ac_exeext conftest.$ac_ext |
---|
5879 | LIBS=$ac_check_lib_save_LIBS |
---|
5880 | fi |
---|
5881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
5882 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
---|
5883 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
---|
5884 | tcl_ok=yes |
---|
5885 | else |
---|
5886 | tcl_ok=no |
---|
5887 | fi |
---|
5888 | |
---|
5889 | if test "$tcl_ok" = yes; then |
---|
5890 | SHLIB_CFLAGS="+z" |
---|
5891 | SHLIB_LD="ld -b" |
---|
5892 | SHLIB_LD_LIBS="" |
---|
5893 | DL_OBJS="tclLoadShl.o" |
---|
5894 | DL_LIBS="-ldld" |
---|
5895 | LDFLAGS="$LDFLAGS -Wl,-E" |
---|
5896 | CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' |
---|
5897 | LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' |
---|
5898 | LD_LIBRARY_PATH_VAR="SHLIB_PATH" |
---|
5899 | fi |
---|
5900 | ;; |
---|
5901 | IRIX-4.*) |
---|
5902 | SHLIB_CFLAGS="-G 0" |
---|
5903 | SHLIB_SUFFIX=".a" |
---|
5904 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
5905 | SHLIB_LD_LIBS='${LIBS}' |
---|
5906 | DL_OBJS="tclLoadAout.o" |
---|
5907 | DL_LIBS="" |
---|
5908 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
5909 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
5910 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5911 | SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' |
---|
5912 | ;; |
---|
5913 | IRIX-5.*) |
---|
5914 | SHLIB_CFLAGS="" |
---|
5915 | SHLIB_LD="ld -shared -rdata_shared" |
---|
5916 | SHLIB_LD_LIBS='${LIBS}' |
---|
5917 | SHLIB_SUFFIX=".so" |
---|
5918 | DL_OBJS="tclLoadDl.o" |
---|
5919 | DL_LIBS="" |
---|
5920 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
5921 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
5922 | ;; |
---|
5923 | IRIX-6.*) |
---|
5924 | SHLIB_CFLAGS="" |
---|
5925 | SHLIB_LD="ld -n32 -shared -rdata_shared" |
---|
5926 | SHLIB_LD_LIBS='${LIBS}' |
---|
5927 | SHLIB_SUFFIX=".so" |
---|
5928 | DL_OBJS="tclLoadDl.o" |
---|
5929 | DL_LIBS="" |
---|
5930 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
5931 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
5932 | if test "$GCC" = "yes" ; then |
---|
5933 | CFLAGS="$CFLAGS -mabi=n32" |
---|
5934 | LDFLAGS="$LDFLAGS -mabi=n32" |
---|
5935 | else |
---|
5936 | case $system in |
---|
5937 | IRIX-6.3) |
---|
5938 | # Use to build 6.2 compatible binaries on 6.3. |
---|
5939 | CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" |
---|
5940 | ;; |
---|
5941 | *) |
---|
5942 | CFLAGS="$CFLAGS -n32" |
---|
5943 | ;; |
---|
5944 | esac |
---|
5945 | LDFLAGS="$LDFLAGS -n32" |
---|
5946 | fi |
---|
5947 | ;; |
---|
5948 | IRIX64-6.*) |
---|
5949 | SHLIB_CFLAGS="" |
---|
5950 | SHLIB_LD="ld -n32 -shared -rdata_shared" |
---|
5951 | SHLIB_LD_LIBS='${LIBS}' |
---|
5952 | SHLIB_SUFFIX=".so" |
---|
5953 | DL_OBJS="tclLoadDl.o" |
---|
5954 | DL_LIBS="" |
---|
5955 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
5956 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
5957 | |
---|
5958 | # Check to enable 64-bit flags for compiler/linker |
---|
5959 | |
---|
5960 | if test "$do64bit" = "yes" ; then |
---|
5961 | if test "$GCC" = "yes" ; then |
---|
5962 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5 |
---|
5963 | $as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} |
---|
5964 | else |
---|
5965 | do64bit_ok=yes |
---|
5966 | SHLIB_LD="ld -64 -shared -rdata_shared" |
---|
5967 | CFLAGS="$CFLAGS -64" |
---|
5968 | LDFLAGS="$LDFLAGS -64" |
---|
5969 | fi |
---|
5970 | fi |
---|
5971 | ;; |
---|
5972 | Linux*) |
---|
5973 | SHLIB_CFLAGS="-fPIC" |
---|
5974 | SHLIB_LD_LIBS='${LIBS}' |
---|
5975 | SHLIB_SUFFIX=".so" |
---|
5976 | |
---|
5977 | CFLAGS_OPTIMIZE=-O2 |
---|
5978 | # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings |
---|
5979 | # when you inline the string and math operations. Turn this off to |
---|
5980 | # get rid of the warnings. |
---|
5981 | #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" |
---|
5982 | |
---|
5983 | if test "$have_dl" = yes; then |
---|
5984 | SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' |
---|
5985 | DL_OBJS="tclLoadDl.o" |
---|
5986 | DL_LIBS="-ldl" |
---|
5987 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" |
---|
5988 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
5989 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5990 | else |
---|
5991 | ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" |
---|
5992 | if test "x$ac_cv_header_dld_h" = xyes; then : |
---|
5993 | |
---|
5994 | SHLIB_LD="ld -shared" |
---|
5995 | DL_OBJS="tclLoadDld.o" |
---|
5996 | DL_LIBS="-ldld" |
---|
5997 | CC_SEARCH_FLAGS="" |
---|
5998 | LD_SEARCH_FLAGS="" |
---|
5999 | fi |
---|
6000 | |
---|
6001 | |
---|
6002 | fi |
---|
6003 | if test "`uname -m`" = "alpha" ; then |
---|
6004 | CFLAGS="$CFLAGS -mieee" |
---|
6005 | fi |
---|
6006 | if test $do64bit = yes; then |
---|
6007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5 |
---|
6008 | $as_echo_n "checking if compiler accepts -m64 flag... " >&6; } |
---|
6009 | if ${tcl_cv_cc_m64+:} false; then : |
---|
6010 | $as_echo_n "(cached) " >&6 |
---|
6011 | else |
---|
6012 | |
---|
6013 | hold_cflags=$CFLAGS |
---|
6014 | CFLAGS="$CFLAGS -m64" |
---|
6015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6016 | /* end confdefs.h. */ |
---|
6017 | |
---|
6018 | int |
---|
6019 | main () |
---|
6020 | { |
---|
6021 | |
---|
6022 | ; |
---|
6023 | return 0; |
---|
6024 | } |
---|
6025 | _ACEOF |
---|
6026 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6027 | tcl_cv_cc_m64=yes |
---|
6028 | else |
---|
6029 | tcl_cv_cc_m64=no |
---|
6030 | fi |
---|
6031 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6032 | conftest$ac_exeext conftest.$ac_ext |
---|
6033 | CFLAGS=$hold_cflags |
---|
6034 | fi |
---|
6035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5 |
---|
6036 | $as_echo "$tcl_cv_cc_m64" >&6; } |
---|
6037 | if test $tcl_cv_cc_m64 = yes; then |
---|
6038 | CFLAGS="$CFLAGS -m64" |
---|
6039 | do64bit_ok=yes |
---|
6040 | fi |
---|
6041 | fi |
---|
6042 | |
---|
6043 | # The combo of gcc + glibc has a bug related |
---|
6044 | # to inlining of functions like strtod(). The |
---|
6045 | # -fno-builtin flag should address this problem |
---|
6046 | # but it does not work. The -fno-inline flag |
---|
6047 | # is kind of overkill but it works. |
---|
6048 | # Disable inlining only when one of the |
---|
6049 | # files in compat/*.c is being linked in. |
---|
6050 | if test x"${LIBOBJS}" != x ; then |
---|
6051 | CFLAGS="$CFLAGS -fno-inline" |
---|
6052 | fi |
---|
6053 | |
---|
6054 | # XIM peeking works under XFree86. |
---|
6055 | $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h |
---|
6056 | |
---|
6057 | |
---|
6058 | ;; |
---|
6059 | GNU*) |
---|
6060 | SHLIB_CFLAGS="-fPIC" |
---|
6061 | SHLIB_LD_LIBS='${LIBS}' |
---|
6062 | SHLIB_SUFFIX=".so" |
---|
6063 | |
---|
6064 | if test "$have_dl" = yes; then |
---|
6065 | SHLIB_LD="${CC} -shared" |
---|
6066 | DL_OBJS="" |
---|
6067 | DL_LIBS="-ldl" |
---|
6068 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" |
---|
6069 | CC_SEARCH_FLAGS="" |
---|
6070 | LD_SEARCH_FLAGS="" |
---|
6071 | else |
---|
6072 | ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" |
---|
6073 | if test "x$ac_cv_header_dld_h" = xyes; then : |
---|
6074 | |
---|
6075 | SHLIB_LD="ld -shared" |
---|
6076 | DL_OBJS="" |
---|
6077 | DL_LIBS="-ldld" |
---|
6078 | CC_SEARCH_FLAGS="" |
---|
6079 | LD_SEARCH_FLAGS="" |
---|
6080 | fi |
---|
6081 | |
---|
6082 | |
---|
6083 | fi |
---|
6084 | if test "`uname -m`" = "alpha" ; then |
---|
6085 | CFLAGS="$CFLAGS -mieee" |
---|
6086 | fi |
---|
6087 | ;; |
---|
6088 | Lynx*) |
---|
6089 | SHLIB_CFLAGS="-fPIC" |
---|
6090 | SHLIB_LD_LIBS='${LIBS}' |
---|
6091 | SHLIB_SUFFIX=".so" |
---|
6092 | CFLAGS_OPTIMIZE=-02 |
---|
6093 | SHLIB_LD="${CC} -shared " |
---|
6094 | DL_OBJS="tclLoadDl.o" |
---|
6095 | DL_LIBS="-mshared -ldl" |
---|
6096 | LD_FLAGS="-Wl,--export-dynamic" |
---|
6097 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
6098 | LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
6099 | ;; |
---|
6100 | MP-RAS-02*) |
---|
6101 | SHLIB_CFLAGS="-K PIC" |
---|
6102 | SHLIB_LD="cc -G" |
---|
6103 | SHLIB_LD_LIBS="" |
---|
6104 | SHLIB_SUFFIX=".so" |
---|
6105 | DL_OBJS="tclLoadDl.o" |
---|
6106 | DL_LIBS="-ldl" |
---|
6107 | CC_SEARCH_FLAGS="" |
---|
6108 | LD_SEARCH_FLAGS="" |
---|
6109 | ;; |
---|
6110 | MP-RAS-*) |
---|
6111 | SHLIB_CFLAGS="-K PIC" |
---|
6112 | SHLIB_LD="cc -G" |
---|
6113 | SHLIB_LD_LIBS="" |
---|
6114 | SHLIB_SUFFIX=".so" |
---|
6115 | DL_OBJS="tclLoadDl.o" |
---|
6116 | DL_LIBS="-ldl" |
---|
6117 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
6118 | CC_SEARCH_FLAGS="" |
---|
6119 | LD_SEARCH_FLAGS="" |
---|
6120 | ;; |
---|
6121 | NetBSD-*|FreeBSD-[1-2].*) |
---|
6122 | # Not available on all versions: check for include file. |
---|
6123 | ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
---|
6124 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
---|
6125 | |
---|
6126 | # NetBSD/SPARC needs -fPIC, -fpic will not do. |
---|
6127 | SHLIB_CFLAGS="-fPIC" |
---|
6128 | SHLIB_LD="ld -Bshareable -x" |
---|
6129 | SHLIB_LD_LIBS='${LIBS}' |
---|
6130 | SHLIB_SUFFIX=".so" |
---|
6131 | DL_OBJS="tclLoadDl.o" |
---|
6132 | DL_LIBS="" |
---|
6133 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
6134 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
6135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 |
---|
6136 | $as_echo_n "checking for ELF... " >&6; } |
---|
6137 | if ${tcl_cv_ld_elf+:} false; then : |
---|
6138 | $as_echo_n "(cached) " >&6 |
---|
6139 | else |
---|
6140 | |
---|
6141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6142 | /* end confdefs.h. */ |
---|
6143 | |
---|
6144 | #ifdef __ELF__ |
---|
6145 | yes |
---|
6146 | #endif |
---|
6147 | |
---|
6148 | _ACEOF |
---|
6149 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6150 | $EGREP "yes" >/dev/null 2>&1; then : |
---|
6151 | tcl_cv_ld_elf=yes |
---|
6152 | else |
---|
6153 | tcl_cv_ld_elf=no |
---|
6154 | fi |
---|
6155 | rm -f conftest* |
---|
6156 | |
---|
6157 | fi |
---|
6158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 |
---|
6159 | $as_echo "$tcl_cv_ld_elf" >&6; } |
---|
6160 | if test $tcl_cv_ld_elf = yes; then |
---|
6161 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' |
---|
6162 | else |
---|
6163 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
6164 | fi |
---|
6165 | |
---|
6166 | else |
---|
6167 | |
---|
6168 | SHLIB_CFLAGS="" |
---|
6169 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" |
---|
6170 | SHLIB_LD_LIBS='${LIBS}' |
---|
6171 | SHLIB_SUFFIX=".a" |
---|
6172 | DL_OBJS="tclLoadAout.o" |
---|
6173 | DL_LIBS="" |
---|
6174 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
6175 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6176 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
6177 | |
---|
6178 | fi |
---|
6179 | |
---|
6180 | |
---|
6181 | |
---|
6182 | # FreeBSD doesn't handle version numbers with dots. |
---|
6183 | |
---|
6184 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
6185 | TCL_LIB_VERSIONS_OK=nodots |
---|
6186 | ;; |
---|
6187 | OpenBSD-*) |
---|
6188 | case `arch -s` in |
---|
6189 | m88k|vax) |
---|
6190 | SHLIB_CFLAGS="" |
---|
6191 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" |
---|
6192 | SHLIB_LD_LIBS='${LIBS}' |
---|
6193 | SHLIB_SUFFIX=".a" |
---|
6194 | DL_OBJS="tclLoadAout.o" |
---|
6195 | DL_LIBS="" |
---|
6196 | LDFLAGS="" |
---|
6197 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
6198 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6199 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
6200 | ;; |
---|
6201 | *) |
---|
6202 | # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do. |
---|
6203 | case `machine` in |
---|
6204 | sparc|sparc64) |
---|
6205 | SHLIB_CFLAGS="-fPIC";; |
---|
6206 | *) |
---|
6207 | SHLIB_CFLAGS="-fpic";; |
---|
6208 | esac |
---|
6209 | SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}" |
---|
6210 | SHLIB_LD_LIBS='${LIBS}' |
---|
6211 | SHLIB_SUFFIX=".so" |
---|
6212 | DL_OBJS="tclLoadDl.o" |
---|
6213 | DL_LIBS="" |
---|
6214 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
6215 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6216 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
6217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 |
---|
6218 | $as_echo_n "checking for ELF... " >&6; } |
---|
6219 | if ${tcl_cv_ld_elf+:} false; then : |
---|
6220 | $as_echo_n "(cached) " >&6 |
---|
6221 | else |
---|
6222 | |
---|
6223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6224 | /* end confdefs.h. */ |
---|
6225 | |
---|
6226 | #ifdef __ELF__ |
---|
6227 | yes |
---|
6228 | #endif |
---|
6229 | |
---|
6230 | _ACEOF |
---|
6231 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6232 | $EGREP "yes" >/dev/null 2>&1; then : |
---|
6233 | tcl_cv_ld_elf=yes |
---|
6234 | else |
---|
6235 | tcl_cv_ld_elf=no |
---|
6236 | fi |
---|
6237 | rm -f conftest* |
---|
6238 | |
---|
6239 | fi |
---|
6240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 |
---|
6241 | $as_echo "$tcl_cv_ld_elf" >&6; } |
---|
6242 | if test $tcl_cv_ld_elf = yes; then |
---|
6243 | LDFLAGS=-Wl,-export-dynamic |
---|
6244 | else |
---|
6245 | LDFLAGS="" |
---|
6246 | fi |
---|
6247 | ;; |
---|
6248 | esac |
---|
6249 | |
---|
6250 | # OpenBSD doesn't do version numbers with dots. |
---|
6251 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
6252 | TCL_LIB_VERSIONS_OK=nodots |
---|
6253 | ;; |
---|
6254 | FreeBSD-*) |
---|
6255 | # FreeBSD 3.* and greater have ELF. |
---|
6256 | SHLIB_CFLAGS="-fPIC" |
---|
6257 | SHLIB_LD="ld -Bshareable -x" |
---|
6258 | SHLIB_LD_LIBS='${LIBS}' |
---|
6259 | SHLIB_SUFFIX=".so" |
---|
6260 | DL_OBJS="tclLoadDl.o" |
---|
6261 | DL_LIBS="" |
---|
6262 | LDFLAGS="$LDFLAGS -export-dynamic" |
---|
6263 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
6264 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
6265 | if test "${TCL_THREADS}" = "1" ; then |
---|
6266 | # The -pthread needs to go in the CFLAGS, not LIBS |
---|
6267 | LIBS=`echo $LIBS | sed s/-pthread//` |
---|
6268 | CFLAGS="$CFLAGS -pthread" |
---|
6269 | LDFLAGS="$LDFLAGS -pthread" |
---|
6270 | fi |
---|
6271 | case $system in |
---|
6272 | FreeBSD-3.*) |
---|
6273 | # FreeBSD-3 doesn't handle version numbers with dots. |
---|
6274 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
6275 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' |
---|
6276 | TCL_LIB_VERSIONS_OK=nodots |
---|
6277 | ;; |
---|
6278 | esac |
---|
6279 | ;; |
---|
6280 | Darwin-*) |
---|
6281 | CFLAGS_OPTIMIZE="-Os" |
---|
6282 | SHLIB_CFLAGS="-fno-common" |
---|
6283 | # To avoid discrepancies between what headers configure sees during |
---|
6284 | # preprocessing tests and compiling tests, move any -isysroot and |
---|
6285 | # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: |
---|
6286 | CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ |
---|
6287 | awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ |
---|
6288 | if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" |
---|
6289 | CFLAGS="`echo " ${CFLAGS}" | \ |
---|
6290 | awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ |
---|
6291 | if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" |
---|
6292 | if test $do64bit = yes; then |
---|
6293 | case `arch` in |
---|
6294 | ppc) |
---|
6295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5 |
---|
6296 | $as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; } |
---|
6297 | if ${tcl_cv_cc_arch_ppc64+:} false; then : |
---|
6298 | $as_echo_n "(cached) " >&6 |
---|
6299 | else |
---|
6300 | |
---|
6301 | hold_cflags=$CFLAGS |
---|
6302 | CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" |
---|
6303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6304 | /* end confdefs.h. */ |
---|
6305 | |
---|
6306 | int |
---|
6307 | main () |
---|
6308 | { |
---|
6309 | |
---|
6310 | ; |
---|
6311 | return 0; |
---|
6312 | } |
---|
6313 | _ACEOF |
---|
6314 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6315 | tcl_cv_cc_arch_ppc64=yes |
---|
6316 | else |
---|
6317 | tcl_cv_cc_arch_ppc64=no |
---|
6318 | fi |
---|
6319 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6320 | conftest$ac_exeext conftest.$ac_ext |
---|
6321 | CFLAGS=$hold_cflags |
---|
6322 | fi |
---|
6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5 |
---|
6324 | $as_echo "$tcl_cv_cc_arch_ppc64" >&6; } |
---|
6325 | if test $tcl_cv_cc_arch_ppc64 = yes; then |
---|
6326 | CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" |
---|
6327 | do64bit_ok=yes |
---|
6328 | fi;; |
---|
6329 | i386) |
---|
6330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5 |
---|
6331 | $as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; } |
---|
6332 | if ${tcl_cv_cc_arch_x86_64+:} false; then : |
---|
6333 | $as_echo_n "(cached) " >&6 |
---|
6334 | else |
---|
6335 | |
---|
6336 | hold_cflags=$CFLAGS |
---|
6337 | CFLAGS="$CFLAGS -arch x86_64" |
---|
6338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6339 | /* end confdefs.h. */ |
---|
6340 | |
---|
6341 | int |
---|
6342 | main () |
---|
6343 | { |
---|
6344 | |
---|
6345 | ; |
---|
6346 | return 0; |
---|
6347 | } |
---|
6348 | _ACEOF |
---|
6349 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6350 | tcl_cv_cc_arch_x86_64=yes |
---|
6351 | else |
---|
6352 | tcl_cv_cc_arch_x86_64=no |
---|
6353 | fi |
---|
6354 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6355 | conftest$ac_exeext conftest.$ac_ext |
---|
6356 | CFLAGS=$hold_cflags |
---|
6357 | fi |
---|
6358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5 |
---|
6359 | $as_echo "$tcl_cv_cc_arch_x86_64" >&6; } |
---|
6360 | if test $tcl_cv_cc_arch_x86_64 = yes; then |
---|
6361 | CFLAGS="$CFLAGS -arch x86_64" |
---|
6362 | do64bit_ok=yes |
---|
6363 | fi;; |
---|
6364 | *) |
---|
6365 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 |
---|
6366 | $as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; |
---|
6367 | esac |
---|
6368 | else |
---|
6369 | # Check for combined 32-bit and 64-bit fat build |
---|
6370 | echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \ |
---|
6371 | echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \ |
---|
6372 | fat_32_64=yes |
---|
6373 | fi |
---|
6374 | SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}' |
---|
6375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5 |
---|
6376 | $as_echo_n "checking if ld accepts -single_module flag... " >&6; } |
---|
6377 | if ${tcl_cv_ld_single_module+:} false; then : |
---|
6378 | $as_echo_n "(cached) " >&6 |
---|
6379 | else |
---|
6380 | |
---|
6381 | hold_ldflags=$LDFLAGS |
---|
6382 | LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" |
---|
6383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6384 | /* end confdefs.h. */ |
---|
6385 | |
---|
6386 | int |
---|
6387 | main () |
---|
6388 | { |
---|
6389 | int i; |
---|
6390 | ; |
---|
6391 | return 0; |
---|
6392 | } |
---|
6393 | _ACEOF |
---|
6394 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6395 | tcl_cv_ld_single_module=yes |
---|
6396 | else |
---|
6397 | tcl_cv_ld_single_module=no |
---|
6398 | fi |
---|
6399 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6400 | conftest$ac_exeext conftest.$ac_ext |
---|
6401 | LDFLAGS=$hold_ldflags |
---|
6402 | fi |
---|
6403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5 |
---|
6404 | $as_echo "$tcl_cv_ld_single_module" >&6; } |
---|
6405 | if test $tcl_cv_ld_single_module = yes; then |
---|
6406 | SHLIB_LD="${SHLIB_LD} -Wl,-single_module" |
---|
6407 | fi |
---|
6408 | SHLIB_LD_LIBS='${LIBS}' |
---|
6409 | SHLIB_SUFFIX=".dylib" |
---|
6410 | DL_OBJS="tclLoadDyld.o" |
---|
6411 | DL_LIBS="" |
---|
6412 | # Don't use -prebind when building for Mac OS X 10.4 or later only: |
---|
6413 | test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ |
---|
6414 | "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \ |
---|
6415 | LDFLAGS="$LDFLAGS -prebind" |
---|
6416 | LDFLAGS="$LDFLAGS -headerpad_max_install_names" |
---|
6417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5 |
---|
6418 | $as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; } |
---|
6419 | if ${tcl_cv_ld_search_paths_first+:} false; then : |
---|
6420 | $as_echo_n "(cached) " >&6 |
---|
6421 | else |
---|
6422 | |
---|
6423 | hold_ldflags=$LDFLAGS |
---|
6424 | LDFLAGS="$LDFLAGS -Wl,-search_paths_first" |
---|
6425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6426 | /* end confdefs.h. */ |
---|
6427 | |
---|
6428 | int |
---|
6429 | main () |
---|
6430 | { |
---|
6431 | int i; |
---|
6432 | ; |
---|
6433 | return 0; |
---|
6434 | } |
---|
6435 | _ACEOF |
---|
6436 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6437 | tcl_cv_ld_search_paths_first=yes |
---|
6438 | else |
---|
6439 | tcl_cv_ld_search_paths_first=no |
---|
6440 | fi |
---|
6441 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6442 | conftest$ac_exeext conftest.$ac_ext |
---|
6443 | LDFLAGS=$hold_ldflags |
---|
6444 | fi |
---|
6445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5 |
---|
6446 | $as_echo "$tcl_cv_ld_search_paths_first" >&6; } |
---|
6447 | if test $tcl_cv_ld_search_paths_first = yes; then |
---|
6448 | LDFLAGS="$LDFLAGS -Wl,-search_paths_first" |
---|
6449 | fi |
---|
6450 | CC_SEARCH_FLAGS="" |
---|
6451 | LD_SEARCH_FLAGS="" |
---|
6452 | LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" |
---|
6453 | PLAT_OBJS=\$\(MAC\_OSX_OBJS\) |
---|
6454 | PLAT_SRCS=\$\(MAC\_OSX_SRCS\) |
---|
6455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5 |
---|
6456 | $as_echo_n "checking whether to use CoreFoundation... " >&6; } |
---|
6457 | # Check whether --enable-corefoundation was given. |
---|
6458 | if test "${enable_corefoundation+set}" = set; then : |
---|
6459 | enableval=$enable_corefoundation; tcl_corefoundation=$enableval |
---|
6460 | else |
---|
6461 | tcl_corefoundation=yes |
---|
6462 | fi |
---|
6463 | |
---|
6464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5 |
---|
6465 | $as_echo "$tcl_corefoundation" >&6; } |
---|
6466 | if test $tcl_corefoundation = yes; then |
---|
6467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5 |
---|
6468 | $as_echo_n "checking for CoreFoundation.framework... " >&6; } |
---|
6469 | if ${tcl_cv_lib_corefoundation+:} false; then : |
---|
6470 | $as_echo_n "(cached) " >&6 |
---|
6471 | else |
---|
6472 | |
---|
6473 | hold_libs=$LIBS |
---|
6474 | if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
6475 | # On Tiger there is no 64-bit CF, so remove 64-bit archs |
---|
6476 | # from CFLAGS et al. while testing for presence of CF. |
---|
6477 | # 64-bit CF is disabled in tclUnixPort.h if necessary. |
---|
6478 | eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' |
---|
6479 | done; fi |
---|
6480 | LIBS="$LIBS -framework CoreFoundation" |
---|
6481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6482 | /* end confdefs.h. */ |
---|
6483 | #include <CoreFoundation/CoreFoundation.h> |
---|
6484 | int |
---|
6485 | main () |
---|
6486 | { |
---|
6487 | CFBundleRef b = CFBundleGetMainBundle(); |
---|
6488 | ; |
---|
6489 | return 0; |
---|
6490 | } |
---|
6491 | _ACEOF |
---|
6492 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6493 | tcl_cv_lib_corefoundation=yes |
---|
6494 | else |
---|
6495 | tcl_cv_lib_corefoundation=no |
---|
6496 | fi |
---|
6497 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6498 | conftest$ac_exeext conftest.$ac_ext |
---|
6499 | if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
6500 | eval $v'="$hold_'$v'"' |
---|
6501 | done; fi; LIBS=$hold_libs |
---|
6502 | fi |
---|
6503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5 |
---|
6504 | $as_echo "$tcl_cv_lib_corefoundation" >&6; } |
---|
6505 | if test $tcl_cv_lib_corefoundation = yes; then |
---|
6506 | LIBS="$LIBS -framework CoreFoundation" |
---|
6507 | $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h |
---|
6508 | |
---|
6509 | else |
---|
6510 | tcl_corefoundation=no |
---|
6511 | fi |
---|
6512 | if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then |
---|
6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5 |
---|
6514 | $as_echo_n "checking for 64-bit CoreFoundation... " >&6; } |
---|
6515 | if ${tcl_cv_lib_corefoundation_64+:} false; then : |
---|
6516 | $as_echo_n "(cached) " >&6 |
---|
6517 | else |
---|
6518 | |
---|
6519 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
6520 | eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' |
---|
6521 | done |
---|
6522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6523 | /* end confdefs.h. */ |
---|
6524 | #include <CoreFoundation/CoreFoundation.h> |
---|
6525 | int |
---|
6526 | main () |
---|
6527 | { |
---|
6528 | CFBundleRef b = CFBundleGetMainBundle(); |
---|
6529 | ; |
---|
6530 | return 0; |
---|
6531 | } |
---|
6532 | _ACEOF |
---|
6533 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6534 | tcl_cv_lib_corefoundation_64=yes |
---|
6535 | else |
---|
6536 | tcl_cv_lib_corefoundation_64=no |
---|
6537 | fi |
---|
6538 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6539 | conftest$ac_exeext conftest.$ac_ext |
---|
6540 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
6541 | eval $v'="$hold_'$v'"' |
---|
6542 | done |
---|
6543 | fi |
---|
6544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5 |
---|
6545 | $as_echo "$tcl_cv_lib_corefoundation_64" >&6; } |
---|
6546 | if test $tcl_cv_lib_corefoundation_64 = no; then |
---|
6547 | $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h |
---|
6548 | |
---|
6549 | fi |
---|
6550 | fi |
---|
6551 | fi |
---|
6552 | $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h |
---|
6553 | |
---|
6554 | ;; |
---|
6555 | NEXTSTEP-*) |
---|
6556 | SHLIB_CFLAGS="" |
---|
6557 | SHLIB_LD="cc -nostdlib -r" |
---|
6558 | SHLIB_LD_LIBS="" |
---|
6559 | SHLIB_SUFFIX=".so" |
---|
6560 | DL_OBJS="tclLoadNext.o" |
---|
6561 | DL_LIBS="" |
---|
6562 | CC_SEARCH_FLAGS="" |
---|
6563 | LD_SEARCH_FLAGS="" |
---|
6564 | ;; |
---|
6565 | OS/390-*) |
---|
6566 | CFLAGS_OPTIMIZE="" # Optimizer is buggy |
---|
6567 | $as_echo "#define _OE_SOCKETS 1" >>confdefs.h |
---|
6568 | # needed in sys/socket.h |
---|
6569 | ;; |
---|
6570 | OSF1-1.0|OSF1-1.1|OSF1-1.2) |
---|
6571 | # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 |
---|
6572 | SHLIB_CFLAGS="" |
---|
6573 | # Hack: make package name same as library name |
---|
6574 | SHLIB_LD='ld -R -export :' |
---|
6575 | SHLIB_LD_LIBS="" |
---|
6576 | SHLIB_SUFFIX=".so" |
---|
6577 | DL_OBJS="tclLoadOSF.o" |
---|
6578 | DL_LIBS="" |
---|
6579 | CC_SEARCH_FLAGS="" |
---|
6580 | LD_SEARCH_FLAGS="" |
---|
6581 | ;; |
---|
6582 | OSF1-1.*) |
---|
6583 | # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 |
---|
6584 | SHLIB_CFLAGS="-fPIC" |
---|
6585 | if test "$SHARED_BUILD" = "1" ; then |
---|
6586 | SHLIB_LD="ld -shared" |
---|
6587 | else |
---|
6588 | SHLIB_LD="ld -non_shared" |
---|
6589 | fi |
---|
6590 | SHLIB_LD_LIBS="" |
---|
6591 | SHLIB_SUFFIX=".so" |
---|
6592 | DL_OBJS="tclLoadDl.o" |
---|
6593 | DL_LIBS="" |
---|
6594 | CC_SEARCH_FLAGS="" |
---|
6595 | LD_SEARCH_FLAGS="" |
---|
6596 | ;; |
---|
6597 | OSF1-V*) |
---|
6598 | # Digital OSF/1 |
---|
6599 | SHLIB_CFLAGS="" |
---|
6600 | if test "$SHARED_BUILD" = "1" ; then |
---|
6601 | SHLIB_LD='ld -shared -expect_unresolved "*"' |
---|
6602 | else |
---|
6603 | SHLIB_LD='ld -non_shared -expect_unresolved "*"' |
---|
6604 | fi |
---|
6605 | SHLIB_LD_LIBS="" |
---|
6606 | SHLIB_SUFFIX=".so" |
---|
6607 | DL_OBJS="tclLoadDl.o" |
---|
6608 | DL_LIBS="" |
---|
6609 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
6610 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
6611 | if test "$GCC" = "yes" ; then |
---|
6612 | CFLAGS="$CFLAGS -mieee" |
---|
6613 | else |
---|
6614 | CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" |
---|
6615 | fi |
---|
6616 | # see pthread_intro(3) for pthread support on osf1, k.furukawa |
---|
6617 | if test "${TCL_THREADS}" = "1" ; then |
---|
6618 | CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" |
---|
6619 | CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" |
---|
6620 | LIBS=`echo $LIBS | sed s/-lpthreads//` |
---|
6621 | if test "$GCC" = "yes" ; then |
---|
6622 | LIBS="$LIBS -lpthread -lmach -lexc" |
---|
6623 | else |
---|
6624 | CFLAGS="$CFLAGS -pthread" |
---|
6625 | LDFLAGS="$LDFLAGS -pthread" |
---|
6626 | fi |
---|
6627 | fi |
---|
6628 | |
---|
6629 | ;; |
---|
6630 | QNX-6*) |
---|
6631 | # QNX RTP |
---|
6632 | # This may work for all QNX, but it was only reported for v6. |
---|
6633 | SHLIB_CFLAGS="-fPIC" |
---|
6634 | SHLIB_LD="ld -Bshareable -x" |
---|
6635 | SHLIB_LD_LIBS="" |
---|
6636 | SHLIB_SUFFIX=".so" |
---|
6637 | DL_OBJS="tclLoadDl.o" |
---|
6638 | # dlopen is in -lc on QNX |
---|
6639 | DL_LIBS="" |
---|
6640 | CC_SEARCH_FLAGS="" |
---|
6641 | LD_SEARCH_FLAGS="" |
---|
6642 | ;; |
---|
6643 | RISCos-*) |
---|
6644 | SHLIB_CFLAGS="-G 0" |
---|
6645 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
6646 | SHLIB_LD_LIBS='${LIBS}' |
---|
6647 | SHLIB_SUFFIX=".a" |
---|
6648 | DL_OBJS="tclLoadAout.o" |
---|
6649 | DL_LIBS="" |
---|
6650 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
6651 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
6652 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6653 | ;; |
---|
6654 | SCO_SV-3.2*) |
---|
6655 | # Note, dlopen is available only on SCO 3.2.5 and greater. However, |
---|
6656 | # this test works, since "uname -s" was non-standard in 3.2.4 and |
---|
6657 | # below. |
---|
6658 | if test "$GCC" = "yes" ; then |
---|
6659 | SHLIB_CFLAGS="-fPIC -melf" |
---|
6660 | LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" |
---|
6661 | else |
---|
6662 | SHLIB_CFLAGS="-Kpic -belf" |
---|
6663 | LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" |
---|
6664 | fi |
---|
6665 | SHLIB_LD="ld -G" |
---|
6666 | SHLIB_LD_LIBS="" |
---|
6667 | SHLIB_SUFFIX=".so" |
---|
6668 | DL_OBJS="tclLoadDl.o" |
---|
6669 | DL_LIBS="" |
---|
6670 | CC_SEARCH_FLAGS="" |
---|
6671 | LD_SEARCH_FLAGS="" |
---|
6672 | ;; |
---|
6673 | SINIX*5.4*) |
---|
6674 | SHLIB_CFLAGS="-K PIC" |
---|
6675 | SHLIB_LD="cc -G" |
---|
6676 | SHLIB_LD_LIBS="" |
---|
6677 | SHLIB_SUFFIX=".so" |
---|
6678 | DL_OBJS="tclLoadDl.o" |
---|
6679 | DL_LIBS="-ldl" |
---|
6680 | CC_SEARCH_FLAGS="" |
---|
6681 | LD_SEARCH_FLAGS="" |
---|
6682 | ;; |
---|
6683 | SunOS-4*) |
---|
6684 | SHLIB_CFLAGS="-PIC" |
---|
6685 | SHLIB_LD="ld" |
---|
6686 | SHLIB_LD_LIBS="" |
---|
6687 | SHLIB_SUFFIX=".so" |
---|
6688 | DL_OBJS="tclLoadDl.o" |
---|
6689 | DL_LIBS="-ldl" |
---|
6690 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
6691 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6692 | |
---|
6693 | # SunOS can't handle version numbers with dots in them in library |
---|
6694 | # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it |
---|
6695 | # requires an extra version number at the end of .so file names. |
---|
6696 | # So, the library has to have a name like libtcl75.so.1.0 |
---|
6697 | |
---|
6698 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
6699 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
6700 | TCL_LIB_VERSIONS_OK=nodots |
---|
6701 | ;; |
---|
6702 | SunOS-5.[0-6]) |
---|
6703 | # Careful to not let 5.10+ fall into this case |
---|
6704 | |
---|
6705 | # Note: If _REENTRANT isn't defined, then Solaris |
---|
6706 | # won't define thread-safe library routines. |
---|
6707 | |
---|
6708 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
---|
6709 | |
---|
6710 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
---|
6711 | |
---|
6712 | |
---|
6713 | SHLIB_CFLAGS="-KPIC" |
---|
6714 | |
---|
6715 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
6716 | # symbols when dynamically loaded into tclsh. |
---|
6717 | |
---|
6718 | SHLIB_LD_LIBS='${LIBS}' |
---|
6719 | SHLIB_SUFFIX=".so" |
---|
6720 | DL_OBJS="tclLoadDl.o" |
---|
6721 | DL_LIBS="-ldl" |
---|
6722 | if test "$GCC" = "yes" ; then |
---|
6723 | SHLIB_LD="$CC -shared" |
---|
6724 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
6725 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6726 | else |
---|
6727 | SHLIB_LD="/usr/ccs/bin/ld -G -z text" |
---|
6728 | CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
6729 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6730 | fi |
---|
6731 | ;; |
---|
6732 | SunOS-5*) |
---|
6733 | # Note: If _REENTRANT isn't defined, then Solaris |
---|
6734 | # won't define thread-safe library routines. |
---|
6735 | |
---|
6736 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
---|
6737 | |
---|
6738 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
---|
6739 | |
---|
6740 | |
---|
6741 | SHLIB_CFLAGS="-KPIC" |
---|
6742 | |
---|
6743 | # Check to enable 64-bit flags for compiler/linker |
---|
6744 | if test "$do64bit" = "yes" ; then |
---|
6745 | arch=`isainfo` |
---|
6746 | if test "$arch" = "sparcv9 sparc" ; then |
---|
6747 | if test "$GCC" = "yes" ; then |
---|
6748 | if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then |
---|
6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 |
---|
6750 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} |
---|
6751 | else |
---|
6752 | do64bit_ok=yes |
---|
6753 | CFLAGS="$CFLAGS -m64 -mcpu=v9" |
---|
6754 | LDFLAGS="$LDFLAGS -m64 -mcpu=v9" |
---|
6755 | SHLIB_CFLAGS="-fPIC" |
---|
6756 | fi |
---|
6757 | else |
---|
6758 | do64bit_ok=yes |
---|
6759 | if test "$do64bitVIS" = "yes" ; then |
---|
6760 | CFLAGS="$CFLAGS -xarch=v9a" |
---|
6761 | LDFLAGS="$LDFLAGS -xarch=v9a" |
---|
6762 | else |
---|
6763 | CFLAGS="$CFLAGS -xarch=v9" |
---|
6764 | LDFLAGS="$LDFLAGS -xarch=v9" |
---|
6765 | fi |
---|
6766 | # Solaris 64 uses this as well |
---|
6767 | #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" |
---|
6768 | fi |
---|
6769 | elif test "$arch" = "amd64 i386" ; then |
---|
6770 | if test "$GCC" = "yes" ; then |
---|
6771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
6772 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
6773 | else |
---|
6774 | do64bit_ok=yes |
---|
6775 | CFLAGS="$CFLAGS -xarch=amd64" |
---|
6776 | LDFLAGS="$LDFLAGS -xarch=amd64" |
---|
6777 | fi |
---|
6778 | else |
---|
6779 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5 |
---|
6780 | $as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} |
---|
6781 | fi |
---|
6782 | fi |
---|
6783 | |
---|
6784 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
6785 | # symbols when dynamically loaded into tclsh. |
---|
6786 | |
---|
6787 | SHLIB_LD_LIBS='${LIBS}' |
---|
6788 | SHLIB_SUFFIX=".so" |
---|
6789 | DL_OBJS="tclLoadDl.o" |
---|
6790 | DL_LIBS="-ldl" |
---|
6791 | if test "$GCC" = "yes" ; then |
---|
6792 | SHLIB_LD="$CC -shared" |
---|
6793 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
6794 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6795 | if test "$do64bit_ok" = "yes" ; then |
---|
6796 | # We need to specify -static-libgcc or we need to |
---|
6797 | # add the path to the sparv9 libgcc. |
---|
6798 | SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" |
---|
6799 | # for finding sparcv9 libgcc, get the regular libgcc |
---|
6800 | # path, remove so name and append 'sparcv9' |
---|
6801 | #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." |
---|
6802 | #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" |
---|
6803 | fi |
---|
6804 | else |
---|
6805 | case $system in |
---|
6806 | SunOS-5.[1-9][0-9]*) |
---|
6807 | SHLIB_LD='${CC} -G -z text ${LDFLAGS}';; |
---|
6808 | *) |
---|
6809 | SHLIB_LD="/usr/ccs/bin/ld -G -z text";; |
---|
6810 | esac |
---|
6811 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
6812 | LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
6813 | fi |
---|
6814 | ;; |
---|
6815 | ULTRIX-4.*) |
---|
6816 | SHLIB_CFLAGS="-G 0" |
---|
6817 | SHLIB_SUFFIX=".a" |
---|
6818 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
6819 | SHLIB_LD_LIBS='${LIBS}' |
---|
6820 | DL_OBJS="tclLoadAout.o" |
---|
6821 | DL_LIBS="" |
---|
6822 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
6823 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
6824 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6825 | if test "$GCC" != "yes" ; then |
---|
6826 | CFLAGS="$CFLAGS -DHAVE_TZSET -std1" |
---|
6827 | fi |
---|
6828 | ;; |
---|
6829 | UNIX_SV* | UnixWare-5*) |
---|
6830 | SHLIB_CFLAGS="-KPIC" |
---|
6831 | SHLIB_LD="cc -G" |
---|
6832 | SHLIB_LD_LIBS="" |
---|
6833 | SHLIB_SUFFIX=".so" |
---|
6834 | DL_OBJS="tclLoadDl.o" |
---|
6835 | DL_LIBS="-ldl" |
---|
6836 | # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers |
---|
6837 | # that don't grok the -Bexport option. Test that it does. |
---|
6838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5 |
---|
6839 | $as_echo_n "checking for ld accepts -Bexport flag... " >&6; } |
---|
6840 | if ${tcl_cv_ld_Bexport+:} false; then : |
---|
6841 | $as_echo_n "(cached) " >&6 |
---|
6842 | else |
---|
6843 | |
---|
6844 | hold_ldflags=$LDFLAGS |
---|
6845 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
6846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6847 | /* end confdefs.h. */ |
---|
6848 | |
---|
6849 | int |
---|
6850 | main () |
---|
6851 | { |
---|
6852 | int i; |
---|
6853 | ; |
---|
6854 | return 0; |
---|
6855 | } |
---|
6856 | _ACEOF |
---|
6857 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6858 | tcl_cv_ld_Bexport=yes |
---|
6859 | else |
---|
6860 | tcl_cv_ld_Bexport=no |
---|
6861 | fi |
---|
6862 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6863 | conftest$ac_exeext conftest.$ac_ext |
---|
6864 | LDFLAGS=$hold_ldflags |
---|
6865 | fi |
---|
6866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5 |
---|
6867 | $as_echo "$tcl_cv_ld_Bexport" >&6; } |
---|
6868 | if test $tcl_cv_ld_Bexport = yes; then |
---|
6869 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
6870 | fi |
---|
6871 | CC_SEARCH_FLAGS="" |
---|
6872 | LD_SEARCH_FLAGS="" |
---|
6873 | ;; |
---|
6874 | esac |
---|
6875 | |
---|
6876 | if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then |
---|
6877 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 |
---|
6878 | $as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} |
---|
6879 | fi |
---|
6880 | |
---|
6881 | |
---|
6882 | |
---|
6883 | |
---|
6884 | # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic |
---|
6885 | # Loading for Tcl -- What Became of It?". Proc. 2nd Tcl/Tk Workshop, |
---|
6886 | # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need |
---|
6887 | # to determine which of several header files defines the a.out file |
---|
6888 | # format (a.out.h, sys/exec.h, or sys/exec_aout.h). At present, we |
---|
6889 | # support only a file format that is more or less version-7-compatible. |
---|
6890 | # In particular, |
---|
6891 | # - a.out files must begin with `struct exec'. |
---|
6892 | # - the N_TXTOFF on the `struct exec' must compute the seek address |
---|
6893 | # of the text segment |
---|
6894 | # - The `struct exec' must contain a_magic, a_text, a_data, a_bss |
---|
6895 | # and a_entry fields. |
---|
6896 | # The following compilation should succeed if and only if either sys/exec.h |
---|
6897 | # or a.out.h is usable for the purpose. |
---|
6898 | # |
---|
6899 | # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the |
---|
6900 | # `struct exec' includes a second header that contains information that |
---|
6901 | # duplicates the v7 fields that are needed. |
---|
6902 | |
---|
6903 | if test "x$DL_OBJS" = "xtclLoadAout.o" ; then |
---|
6904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5 |
---|
6905 | $as_echo_n "checking sys/exec.h... " >&6; } |
---|
6906 | if ${tcl_cv_sysexec_h+:} false; then : |
---|
6907 | $as_echo_n "(cached) " >&6 |
---|
6908 | else |
---|
6909 | |
---|
6910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6911 | /* end confdefs.h. */ |
---|
6912 | #include <sys/exec.h> |
---|
6913 | int |
---|
6914 | main () |
---|
6915 | { |
---|
6916 | |
---|
6917 | struct exec foo; |
---|
6918 | unsigned long seek; |
---|
6919 | int flag; |
---|
6920 | #if defined(__mips) || defined(mips) |
---|
6921 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
6922 | #else |
---|
6923 | seek = N_TXTOFF (foo); |
---|
6924 | #endif |
---|
6925 | flag = (foo.a_magic == OMAGIC); |
---|
6926 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
6927 | |
---|
6928 | ; |
---|
6929 | return 0; |
---|
6930 | } |
---|
6931 | _ACEOF |
---|
6932 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
6933 | tcl_cv_sysexec_h=usable |
---|
6934 | else |
---|
6935 | tcl_cv_sysexec_h=unusable |
---|
6936 | fi |
---|
6937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6938 | fi |
---|
6939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5 |
---|
6940 | $as_echo "$tcl_cv_sysexec_h" >&6; } |
---|
6941 | if test $tcl_cv_sysexec_h = usable; then |
---|
6942 | $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h |
---|
6943 | |
---|
6944 | else |
---|
6945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5 |
---|
6946 | $as_echo_n "checking a.out.h... " >&6; } |
---|
6947 | if ${tcl_cv_aout_h+:} false; then : |
---|
6948 | $as_echo_n "(cached) " >&6 |
---|
6949 | else |
---|
6950 | |
---|
6951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6952 | /* end confdefs.h. */ |
---|
6953 | #include <a.out.h> |
---|
6954 | int |
---|
6955 | main () |
---|
6956 | { |
---|
6957 | |
---|
6958 | struct exec foo; |
---|
6959 | unsigned long seek; |
---|
6960 | int flag; |
---|
6961 | #if defined(__mips) || defined(mips) |
---|
6962 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
6963 | #else |
---|
6964 | seek = N_TXTOFF (foo); |
---|
6965 | #endif |
---|
6966 | flag = (foo.a_magic == OMAGIC); |
---|
6967 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
6968 | |
---|
6969 | ; |
---|
6970 | return 0; |
---|
6971 | } |
---|
6972 | _ACEOF |
---|
6973 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
6974 | tcl_cv_aout_h=usable |
---|
6975 | else |
---|
6976 | tcl_cv_aout_h=unusable |
---|
6977 | fi |
---|
6978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6979 | fi |
---|
6980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5 |
---|
6981 | $as_echo "$tcl_cv_aout_h" >&6; } |
---|
6982 | if test $tcl_cv_aout_h = usable; then |
---|
6983 | $as_echo "#define USE_A_OUT_H 1" >>confdefs.h |
---|
6984 | |
---|
6985 | else |
---|
6986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5 |
---|
6987 | $as_echo_n "checking sys/exec_aout.h... " >&6; } |
---|
6988 | if ${tcl_cv_sysexecaout_h+:} false; then : |
---|
6989 | $as_echo_n "(cached) " >&6 |
---|
6990 | else |
---|
6991 | |
---|
6992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6993 | /* end confdefs.h. */ |
---|
6994 | #include <sys/exec_aout.h> |
---|
6995 | int |
---|
6996 | main () |
---|
6997 | { |
---|
6998 | |
---|
6999 | struct exec foo; |
---|
7000 | unsigned long seek; |
---|
7001 | int flag; |
---|
7002 | #if defined(__mips) || defined(mips) |
---|
7003 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
7004 | #else |
---|
7005 | seek = N_TXTOFF (foo); |
---|
7006 | #endif |
---|
7007 | flag = (foo.a_midmag == OMAGIC); |
---|
7008 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
7009 | |
---|
7010 | ; |
---|
7011 | return 0; |
---|
7012 | } |
---|
7013 | _ACEOF |
---|
7014 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7015 | tcl_cv_sysexecaout_h=usable |
---|
7016 | else |
---|
7017 | tcl_cv_sysexecaout_h=unusable |
---|
7018 | fi |
---|
7019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7020 | fi |
---|
7021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5 |
---|
7022 | $as_echo "$tcl_cv_sysexecaout_h" >&6; } |
---|
7023 | if test $tcl_cv_sysexecaout_h = usable; then |
---|
7024 | $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h |
---|
7025 | |
---|
7026 | else |
---|
7027 | DL_OBJS="" |
---|
7028 | fi |
---|
7029 | fi |
---|
7030 | fi |
---|
7031 | fi |
---|
7032 | |
---|
7033 | # Step 5: disable dynamic loading if requested via a command-line switch. |
---|
7034 | |
---|
7035 | # Check whether --enable-load was given. |
---|
7036 | if test "${enable_load+set}" = set; then : |
---|
7037 | enableval=$enable_load; tcl_ok=$enableval |
---|
7038 | else |
---|
7039 | tcl_ok=yes |
---|
7040 | fi |
---|
7041 | |
---|
7042 | if test "$tcl_ok" = "no"; then |
---|
7043 | DL_OBJS="" |
---|
7044 | fi |
---|
7045 | |
---|
7046 | if test "x$DL_OBJS" != "x" ; then |
---|
7047 | BUILD_DLTEST="\$(DLTEST_TARGETS)" |
---|
7048 | else |
---|
7049 | echo "Can't figure out how to do dynamic loading or shared libraries" |
---|
7050 | echo "on this system." |
---|
7051 | SHLIB_CFLAGS="" |
---|
7052 | SHLIB_LD="" |
---|
7053 | SHLIB_SUFFIX="" |
---|
7054 | DL_OBJS="tclLoadNone.o" |
---|
7055 | DL_LIBS="" |
---|
7056 | LDFLAGS="$LDFLAGS_ORIG" |
---|
7057 | CC_SEARCH_FLAGS="" |
---|
7058 | LD_SEARCH_FLAGS="" |
---|
7059 | BUILD_DLTEST="" |
---|
7060 | fi |
---|
7061 | |
---|
7062 | # If we're running gcc, then change the C flags for compiling shared |
---|
7063 | # libraries to the right flags for gcc, instead of those for the |
---|
7064 | # standard manufacturer compiler. |
---|
7065 | |
---|
7066 | if test "$DL_OBJS" != "tclLoadNone.o" ; then |
---|
7067 | if test "$GCC" = "yes" ; then |
---|
7068 | case $system in |
---|
7069 | AIX-*) |
---|
7070 | ;; |
---|
7071 | BSD/OS*) |
---|
7072 | ;; |
---|
7073 | IRIX*) |
---|
7074 | ;; |
---|
7075 | NetBSD-*|FreeBSD-*|OpenBSD-*) |
---|
7076 | ;; |
---|
7077 | Darwin-*) |
---|
7078 | ;; |
---|
7079 | RISCos-*) |
---|
7080 | ;; |
---|
7081 | SCO_SV-3.2*) |
---|
7082 | ;; |
---|
7083 | ULTRIX-4.*) |
---|
7084 | ;; |
---|
7085 | *) |
---|
7086 | SHLIB_CFLAGS="-fPIC" |
---|
7087 | ;; |
---|
7088 | esac |
---|
7089 | fi |
---|
7090 | fi |
---|
7091 | |
---|
7092 | if test "$SHARED_LIB_SUFFIX" = "" ; then |
---|
7093 | SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}' |
---|
7094 | fi |
---|
7095 | if test "$UNSHARED_LIB_SUFFIX" = "" ; then |
---|
7096 | UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' |
---|
7097 | fi |
---|
7098 | |
---|
7099 | if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then |
---|
7100 | LIB_SUFFIX=${SHARED_LIB_SUFFIX} |
---|
7101 | MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' |
---|
7102 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' |
---|
7103 | else |
---|
7104 | LIB_SUFFIX=${UNSHARED_LIB_SUFFIX} |
---|
7105 | |
---|
7106 | if test "$RANLIB" = "" ; then |
---|
7107 | MAKE_LIB='$(STLIB_LD) $@ ${OBJS}' |
---|
7108 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' |
---|
7109 | else |
---|
7110 | MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@' |
---|
7111 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))' |
---|
7112 | fi |
---|
7113 | |
---|
7114 | fi |
---|
7115 | |
---|
7116 | |
---|
7117 | # Stub lib does not depend on shared/static configuration |
---|
7118 | if test "$RANLIB" = "" ; then |
---|
7119 | MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}' |
---|
7120 | INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)' |
---|
7121 | else |
---|
7122 | MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@' |
---|
7123 | INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))' |
---|
7124 | fi |
---|
7125 | |
---|
7126 | |
---|
7127 | |
---|
7128 | |
---|
7129 | |
---|
7130 | |
---|
7131 | |
---|
7132 | |
---|
7133 | |
---|
7134 | |
---|
7135 | |
---|
7136 | |
---|
7137 | |
---|
7138 | |
---|
7139 | |
---|
7140 | |
---|
7141 | |
---|
7142 | |
---|
7143 | |
---|
7144 | |
---|
7145 | |
---|
7146 | |
---|
7147 | |
---|
7148 | |
---|
7149 | |
---|
7150 | |
---|
7151 | |
---|
7152 | |
---|
7153 | |
---|
7154 | |
---|
7155 | |
---|
7156 | |
---|
7157 | |
---|
7158 | SVN_VERSION=`svnversion $srcdir` |
---|
7159 | |
---|
7160 | make_command="" |
---|
7161 | for m in "$MAKE" make gmake gnumake ; do |
---|
7162 | if test "x${m}" != "x" ; then |
---|
7163 | if ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then |
---|
7164 | make_command=$m; break; |
---|
7165 | fi |
---|
7166 | fi |
---|
7167 | done |
---|
7168 | if test "x${make_command}" = "x" ; then |
---|
7169 | as_fn_error $? "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 5 |
---|
7170 | fi |
---|
7171 | |
---|
7172 | RP_BASE=`pwd` |
---|
7173 | |
---|
7174 | |
---|
7175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5 |
---|
7176 | $as_echo_n "checking how to build libraries... " >&6; } |
---|
7177 | # Check whether --enable-shared was given. |
---|
7178 | if test "${enable_shared+set}" = set; then : |
---|
7179 | enableval=$enable_shared; tcl_ok=$enableval |
---|
7180 | else |
---|
7181 | tcl_ok=yes |
---|
7182 | fi |
---|
7183 | |
---|
7184 | |
---|
7185 | if test "${enable_shared+set}" = set; then |
---|
7186 | enableval="$enable_shared" |
---|
7187 | tcl_ok=$enableval |
---|
7188 | else |
---|
7189 | tcl_ok=yes |
---|
7190 | fi |
---|
7191 | |
---|
7192 | if test "$tcl_ok" = "yes" ; then |
---|
7193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5 |
---|
7194 | $as_echo "shared" >&6; } |
---|
7195 | SHARED_BUILD=1 |
---|
7196 | else |
---|
7197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 |
---|
7198 | $as_echo "static" >&6; } |
---|
7199 | SHARED_BUILD=0 |
---|
7200 | $as_echo "#define STATIC_BUILD 1" >>confdefs.h |
---|
7201 | |
---|
7202 | fi |
---|
7203 | |
---|
7204 | |
---|
7205 | # ----------------------------------------------------------------------- |
---|
7206 | # |
---|
7207 | # Compiler characteristics: |
---|
7208 | # Check for existence of types of size_t and pid_t |
---|
7209 | # |
---|
7210 | # ----------------------------------------------------------------------- |
---|
7211 | |
---|
7212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
---|
7213 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
---|
7214 | if ${ac_cv_c_bigendian+:} false; then : |
---|
7215 | $as_echo_n "(cached) " >&6 |
---|
7216 | else |
---|
7217 | ac_cv_c_bigendian=unknown |
---|
7218 | # See if we're dealing with a universal compiler. |
---|
7219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7220 | /* end confdefs.h. */ |
---|
7221 | #ifndef __APPLE_CC__ |
---|
7222 | not a universal capable compiler |
---|
7223 | #endif |
---|
7224 | typedef int dummy; |
---|
7225 | |
---|
7226 | _ACEOF |
---|
7227 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7228 | |
---|
7229 | # Check for potential -arch flags. It is not universal unless |
---|
7230 | # there are at least two -arch flags with different values. |
---|
7231 | ac_arch= |
---|
7232 | ac_prev= |
---|
7233 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
---|
7234 | if test -n "$ac_prev"; then |
---|
7235 | case $ac_word in |
---|
7236 | i?86 | x86_64 | ppc | ppc64) |
---|
7237 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
---|
7238 | ac_arch=$ac_word |
---|
7239 | else |
---|
7240 | ac_cv_c_bigendian=universal |
---|
7241 | break |
---|
7242 | fi |
---|
7243 | ;; |
---|
7244 | esac |
---|
7245 | ac_prev= |
---|
7246 | elif test "x$ac_word" = "x-arch"; then |
---|
7247 | ac_prev=arch |
---|
7248 | fi |
---|
7249 | done |
---|
7250 | fi |
---|
7251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7252 | if test $ac_cv_c_bigendian = unknown; then |
---|
7253 | # See if sys/param.h defines the BYTE_ORDER macro. |
---|
7254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7255 | /* end confdefs.h. */ |
---|
7256 | #include <sys/types.h> |
---|
7257 | #include <sys/param.h> |
---|
7258 | |
---|
7259 | int |
---|
7260 | main () |
---|
7261 | { |
---|
7262 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
---|
7263 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
---|
7264 | && LITTLE_ENDIAN) |
---|
7265 | bogus endian macros |
---|
7266 | #endif |
---|
7267 | |
---|
7268 | ; |
---|
7269 | return 0; |
---|
7270 | } |
---|
7271 | _ACEOF |
---|
7272 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7273 | # It does; now see whether it defined to BIG_ENDIAN or not. |
---|
7274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7275 | /* end confdefs.h. */ |
---|
7276 | #include <sys/types.h> |
---|
7277 | #include <sys/param.h> |
---|
7278 | |
---|
7279 | int |
---|
7280 | main () |
---|
7281 | { |
---|
7282 | #if BYTE_ORDER != BIG_ENDIAN |
---|
7283 | not big endian |
---|
7284 | #endif |
---|
7285 | |
---|
7286 | ; |
---|
7287 | return 0; |
---|
7288 | } |
---|
7289 | _ACEOF |
---|
7290 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7291 | ac_cv_c_bigendian=yes |
---|
7292 | else |
---|
7293 | ac_cv_c_bigendian=no |
---|
7294 | fi |
---|
7295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7296 | fi |
---|
7297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7298 | fi |
---|
7299 | if test $ac_cv_c_bigendian = unknown; then |
---|
7300 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
---|
7301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7302 | /* end confdefs.h. */ |
---|
7303 | #include <limits.h> |
---|
7304 | |
---|
7305 | int |
---|
7306 | main () |
---|
7307 | { |
---|
7308 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
---|
7309 | bogus endian macros |
---|
7310 | #endif |
---|
7311 | |
---|
7312 | ; |
---|
7313 | return 0; |
---|
7314 | } |
---|
7315 | _ACEOF |
---|
7316 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7317 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
---|
7318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7319 | /* end confdefs.h. */ |
---|
7320 | #include <limits.h> |
---|
7321 | |
---|
7322 | int |
---|
7323 | main () |
---|
7324 | { |
---|
7325 | #ifndef _BIG_ENDIAN |
---|
7326 | not big endian |
---|
7327 | #endif |
---|
7328 | |
---|
7329 | ; |
---|
7330 | return 0; |
---|
7331 | } |
---|
7332 | _ACEOF |
---|
7333 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7334 | ac_cv_c_bigendian=yes |
---|
7335 | else |
---|
7336 | ac_cv_c_bigendian=no |
---|
7337 | fi |
---|
7338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7339 | fi |
---|
7340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7341 | fi |
---|
7342 | if test $ac_cv_c_bigendian = unknown; then |
---|
7343 | # Compile a test program. |
---|
7344 | if test "$cross_compiling" = yes; then : |
---|
7345 | # Try to guess by grepping values from an object file. |
---|
7346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7347 | /* end confdefs.h. */ |
---|
7348 | short int ascii_mm[] = |
---|
7349 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
---|
7350 | short int ascii_ii[] = |
---|
7351 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
---|
7352 | int use_ascii (int i) { |
---|
7353 | return ascii_mm[i] + ascii_ii[i]; |
---|
7354 | } |
---|
7355 | short int ebcdic_ii[] = |
---|
7356 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
---|
7357 | short int ebcdic_mm[] = |
---|
7358 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
---|
7359 | int use_ebcdic (int i) { |
---|
7360 | return ebcdic_mm[i] + ebcdic_ii[i]; |
---|
7361 | } |
---|
7362 | extern int foo; |
---|
7363 | |
---|
7364 | int |
---|
7365 | main () |
---|
7366 | { |
---|
7367 | return use_ascii (foo) == use_ebcdic (foo); |
---|
7368 | ; |
---|
7369 | return 0; |
---|
7370 | } |
---|
7371 | _ACEOF |
---|
7372 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7373 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
---|
7374 | ac_cv_c_bigendian=yes |
---|
7375 | fi |
---|
7376 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
---|
7377 | if test "$ac_cv_c_bigendian" = unknown; then |
---|
7378 | ac_cv_c_bigendian=no |
---|
7379 | else |
---|
7380 | # finding both strings is unlikely to happen, but who knows? |
---|
7381 | ac_cv_c_bigendian=unknown |
---|
7382 | fi |
---|
7383 | fi |
---|
7384 | fi |
---|
7385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7386 | else |
---|
7387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7388 | /* end confdefs.h. */ |
---|
7389 | $ac_includes_default |
---|
7390 | int |
---|
7391 | main () |
---|
7392 | { |
---|
7393 | |
---|
7394 | /* Are we little or big endian? From Harbison&Steele. */ |
---|
7395 | union |
---|
7396 | { |
---|
7397 | long int l; |
---|
7398 | char c[sizeof (long int)]; |
---|
7399 | } u; |
---|
7400 | u.l = 1; |
---|
7401 | return u.c[sizeof (long int) - 1] == 1; |
---|
7402 | |
---|
7403 | ; |
---|
7404 | return 0; |
---|
7405 | } |
---|
7406 | _ACEOF |
---|
7407 | if ac_fn_cxx_try_run "$LINENO"; then : |
---|
7408 | ac_cv_c_bigendian=no |
---|
7409 | else |
---|
7410 | ac_cv_c_bigendian=yes |
---|
7411 | fi |
---|
7412 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
7413 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
7414 | fi |
---|
7415 | |
---|
7416 | fi |
---|
7417 | fi |
---|
7418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
---|
7419 | $as_echo "$ac_cv_c_bigendian" >&6; } |
---|
7420 | case $ac_cv_c_bigendian in #( |
---|
7421 | yes) |
---|
7422 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
---|
7423 | ;; #( |
---|
7424 | no) |
---|
7425 | ;; #( |
---|
7426 | universal) |
---|
7427 | |
---|
7428 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
---|
7429 | |
---|
7430 | ;; #( |
---|
7431 | *) |
---|
7432 | as_fn_error $? "unknown endianness |
---|
7433 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
---|
7434 | esac |
---|
7435 | |
---|
7436 | # The cast to long int works around a bug in the HP C Compiler |
---|
7437 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
7438 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
7439 | # This bug is HP SR number 8606223364. |
---|
7440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
---|
7441 | $as_echo_n "checking size of int... " >&6; } |
---|
7442 | if ${ac_cv_sizeof_int+:} false; then : |
---|
7443 | $as_echo_n "(cached) " >&6 |
---|
7444 | else |
---|
7445 | if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
---|
7446 | |
---|
7447 | else |
---|
7448 | if test "$ac_cv_type_int" = yes; then |
---|
7449 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
7450 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
7451 | as_fn_error 77 "cannot compute sizeof (int) |
---|
7452 | See \`config.log' for more details" "$LINENO" 5; } |
---|
7453 | else |
---|
7454 | ac_cv_sizeof_int=0 |
---|
7455 | fi |
---|
7456 | fi |
---|
7457 | |
---|
7458 | fi |
---|
7459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
---|
7460 | $as_echo "$ac_cv_sizeof_int" >&6; } |
---|
7461 | |
---|
7462 | |
---|
7463 | |
---|
7464 | cat >>confdefs.h <<_ACEOF |
---|
7465 | #define SIZEOF_INT $ac_cv_sizeof_int |
---|
7466 | _ACEOF |
---|
7467 | |
---|
7468 | |
---|
7469 | # The cast to long int works around a bug in the HP C Compiler |
---|
7470 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
7471 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
7472 | # This bug is HP SR number 8606223364. |
---|
7473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
---|
7474 | $as_echo_n "checking size of long... " >&6; } |
---|
7475 | if ${ac_cv_sizeof_long+:} false; then : |
---|
7476 | $as_echo_n "(cached) " >&6 |
---|
7477 | else |
---|
7478 | if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
---|
7479 | |
---|
7480 | else |
---|
7481 | if test "$ac_cv_type_long" = yes; then |
---|
7482 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
7483 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
7484 | as_fn_error 77 "cannot compute sizeof (long) |
---|
7485 | See \`config.log' for more details" "$LINENO" 5; } |
---|
7486 | else |
---|
7487 | ac_cv_sizeof_long=0 |
---|
7488 | fi |
---|
7489 | fi |
---|
7490 | |
---|
7491 | fi |
---|
7492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
---|
7493 | $as_echo "$ac_cv_sizeof_long" >&6; } |
---|
7494 | |
---|
7495 | |
---|
7496 | |
---|
7497 | cat >>confdefs.h <<_ACEOF |
---|
7498 | #define SIZEOF_LONG $ac_cv_sizeof_long |
---|
7499 | _ACEOF |
---|
7500 | |
---|
7501 | |
---|
7502 | # The cast to long int works around a bug in the HP C Compiler |
---|
7503 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
7504 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
7505 | # This bug is HP SR number 8606223364. |
---|
7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
---|
7507 | $as_echo_n "checking size of long long... " >&6; } |
---|
7508 | if ${ac_cv_sizeof_long_long+:} false; then : |
---|
7509 | $as_echo_n "(cached) " >&6 |
---|
7510 | else |
---|
7511 | if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
---|
7512 | |
---|
7513 | else |
---|
7514 | if test "$ac_cv_type_long_long" = yes; then |
---|
7515 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
7516 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
7517 | as_fn_error 77 "cannot compute sizeof (long long) |
---|
7518 | See \`config.log' for more details" "$LINENO" 5; } |
---|
7519 | else |
---|
7520 | ac_cv_sizeof_long_long=0 |
---|
7521 | fi |
---|
7522 | fi |
---|
7523 | |
---|
7524 | fi |
---|
7525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
---|
7526 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
---|
7527 | |
---|
7528 | |
---|
7529 | |
---|
7530 | cat >>confdefs.h <<_ACEOF |
---|
7531 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
---|
7532 | _ACEOF |
---|
7533 | |
---|
7534 | |
---|
7535 | # The cast to long int works around a bug in the HP C Compiler |
---|
7536 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
7537 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
7538 | # This bug is HP SR number 8606223364. |
---|
7539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
---|
7540 | $as_echo_n "checking size of void *... " >&6; } |
---|
7541 | if ${ac_cv_sizeof_void_p+:} false; then : |
---|
7542 | $as_echo_n "(cached) " >&6 |
---|
7543 | else |
---|
7544 | if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
---|
7545 | |
---|
7546 | else |
---|
7547 | if test "$ac_cv_type_void_p" = yes; then |
---|
7548 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
7549 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
7550 | as_fn_error 77 "cannot compute sizeof (void *) |
---|
7551 | See \`config.log' for more details" "$LINENO" 5; } |
---|
7552 | else |
---|
7553 | ac_cv_sizeof_void_p=0 |
---|
7554 | fi |
---|
7555 | fi |
---|
7556 | |
---|
7557 | fi |
---|
7558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
---|
7559 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
---|
7560 | |
---|
7561 | |
---|
7562 | |
---|
7563 | cat >>confdefs.h <<_ACEOF |
---|
7564 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
---|
7565 | _ACEOF |
---|
7566 | |
---|
7567 | |
---|
7568 | |
---|
7569 | SIZEOF_LONG="${ac_cv_sizeof_long}" |
---|
7570 | SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}" |
---|
7571 | SIZEOF_VOID_P="${ac_cv_sizeof_void_p}" |
---|
7572 | SIZEOF_INT="${ac_cv_sizeof_int}" |
---|
7573 | |
---|
7574 | #-------------------------------------------------------------------- |
---|
7575 | # Set the default compiler switches based on the --enable-symbols |
---|
7576 | # option. |
---|
7577 | #-------------------------------------------------------------------- |
---|
7578 | |
---|
7579 | |
---|
7580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5 |
---|
7581 | $as_echo_n "checking for build with symbols... " >&6; } |
---|
7582 | # Check whether --enable-symbols was given. |
---|
7583 | if test "${enable_symbols+set}" = set; then : |
---|
7584 | enableval=$enable_symbols; tcl_ok=$enableval |
---|
7585 | else |
---|
7586 | tcl_ok=no |
---|
7587 | fi |
---|
7588 | |
---|
7589 | # FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT. |
---|
7590 | if test "$tcl_ok" = "no"; then |
---|
7591 | CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)' |
---|
7592 | LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)' |
---|
7593 | DBGX="" |
---|
7594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7595 | $as_echo "no" >&6; } |
---|
7596 | else |
---|
7597 | CFLAGS_DEFAULT='$(CFLAGS_DEBUG)' |
---|
7598 | LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)' |
---|
7599 | DBGX=g |
---|
7600 | if test "$tcl_ok" = "yes"; then |
---|
7601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5 |
---|
7602 | $as_echo "yes (standard debugging)" >&6; } |
---|
7603 | fi |
---|
7604 | fi |
---|
7605 | |
---|
7606 | |
---|
7607 | |
---|
7608 | if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then |
---|
7609 | $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h |
---|
7610 | |
---|
7611 | fi |
---|
7612 | |
---|
7613 | if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then |
---|
7614 | $as_echo "#define TCL_COMPILE_DEBUG 1" >>confdefs.h |
---|
7615 | |
---|
7616 | $as_echo "#define TCL_COMPILE_STATS 1" >>confdefs.h |
---|
7617 | |
---|
7618 | fi |
---|
7619 | |
---|
7620 | if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then |
---|
7621 | if test "$tcl_ok" = "all"; then |
---|
7622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem compile debugging" >&5 |
---|
7623 | $as_echo "enabled symbols mem compile debugging" >&6; } |
---|
7624 | else |
---|
7625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5 |
---|
7626 | $as_echo "enabled $tcl_ok debugging" >&6; } |
---|
7627 | fi |
---|
7628 | fi |
---|
7629 | |
---|
7630 | |
---|
7631 | |
---|
7632 | |
---|
7633 | |
---|
7634 | |
---|
7635 | MAKE=${make_command} |
---|
7636 | |
---|
7637 | |
---|
7638 | |
---|
7639 | |
---|
7640 | |
---|
7641 | |
---|
7642 | |
---|
7643 | |
---|
7644 | |
---|
7645 | |
---|
7646 | |
---|
7647 | |
---|
7648 | ac_config_files="$ac_config_files Makefile rappture/Makefile rappture2/Makefile objects/Makefile objects/RpHash.h" |
---|
7649 | |
---|
7650 | cat >confcache <<\_ACEOF |
---|
7651 | # This file is a shell script that caches the results of configure |
---|
7652 | # tests run on this system so they can be shared between configure |
---|
7653 | # scripts and configure runs, see configure's option --config-cache. |
---|
7654 | # It is not useful on other systems. If it contains results you don't |
---|
7655 | # want to keep, you may remove or edit it. |
---|
7656 | # |
---|
7657 | # config.status only pays attention to the cache file if you give it |
---|
7658 | # the --recheck option to rerun configure. |
---|
7659 | # |
---|
7660 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
7661 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
7662 | # following values. |
---|
7663 | |
---|
7664 | _ACEOF |
---|
7665 | |
---|
7666 | # The following way of writing the cache mishandles newlines in values, |
---|
7667 | # but we know of no workaround that is simple, portable, and efficient. |
---|
7668 | # So, we kill variables containing newlines. |
---|
7669 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
7670 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
7671 | ( |
---|
7672 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
7673 | eval ac_val=\$$ac_var |
---|
7674 | case $ac_val in #( |
---|
7675 | *${as_nl}*) |
---|
7676 | case $ac_var in #( |
---|
7677 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
7678 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
7679 | esac |
---|
7680 | case $ac_var in #( |
---|
7681 | _ | IFS | as_nl) ;; #( |
---|
7682 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
7683 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
7684 | esac ;; |
---|
7685 | esac |
---|
7686 | done |
---|
7687 | |
---|
7688 | (set) 2>&1 | |
---|
7689 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
7690 | *${as_nl}ac_space=\ *) |
---|
7691 | # `set' does not quote correctly, so add quotes: double-quote |
---|
7692 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
7693 | sed -n \ |
---|
7694 | "s/'/'\\\\''/g; |
---|
7695 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
7696 | ;; #( |
---|
7697 | *) |
---|
7698 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
7699 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
7700 | ;; |
---|
7701 | esac | |
---|
7702 | sort |
---|
7703 | ) | |
---|
7704 | sed ' |
---|
7705 | /^ac_cv_env_/b end |
---|
7706 | t clear |
---|
7707 | :clear |
---|
7708 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
7709 | t end |
---|
7710 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
7711 | :end' >>confcache |
---|
7712 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
7713 | if test -w "$cache_file"; then |
---|
7714 | if test "x$cache_file" != "x/dev/null"; then |
---|
7715 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
7716 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
7717 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
7718 | cat confcache >"$cache_file" |
---|
7719 | else |
---|
7720 | case $cache_file in #( |
---|
7721 | */* | ?:*) |
---|
7722 | mv -f confcache "$cache_file"$$ && |
---|
7723 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
7724 | *) |
---|
7725 | mv -f confcache "$cache_file" ;; |
---|
7726 | esac |
---|
7727 | fi |
---|
7728 | fi |
---|
7729 | else |
---|
7730 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
7731 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
7732 | fi |
---|
7733 | fi |
---|
7734 | rm -f confcache |
---|
7735 | |
---|
7736 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
7737 | # Let make expand exec_prefix. |
---|
7738 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
7739 | |
---|
7740 | DEFS=-DHAVE_CONFIG_H |
---|
7741 | |
---|
7742 | ac_libobjs= |
---|
7743 | ac_ltlibobjs= |
---|
7744 | U= |
---|
7745 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
7746 | # 1. Remove the extension, and $U if already installed. |
---|
7747 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
7748 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
7749 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
7750 | # will be set to the directory where LIBOBJS objects are built. |
---|
7751 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
7752 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
7753 | done |
---|
7754 | LIBOBJS=$ac_libobjs |
---|
7755 | |
---|
7756 | LTLIBOBJS=$ac_ltlibobjs |
---|
7757 | |
---|
7758 | |
---|
7759 | |
---|
7760 | |
---|
7761 | : "${CONFIG_STATUS=./config.status}" |
---|
7762 | ac_write_fail=0 |
---|
7763 | ac_clean_files_save=$ac_clean_files |
---|
7764 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
7765 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
7766 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
7767 | as_write_fail=0 |
---|
7768 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
7769 | #! $SHELL |
---|
7770 | # Generated by $as_me. |
---|
7771 | # Run this file to recreate the current configuration. |
---|
7772 | # Compiler output produced by configure, useful for debugging |
---|
7773 | # configure, is in config.log if it exists. |
---|
7774 | |
---|
7775 | debug=false |
---|
7776 | ac_cs_recheck=false |
---|
7777 | ac_cs_silent=false |
---|
7778 | |
---|
7779 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
7780 | export SHELL |
---|
7781 | _ASEOF |
---|
7782 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
7783 | ## -------------------- ## |
---|
7784 | ## M4sh Initialization. ## |
---|
7785 | ## -------------------- ## |
---|
7786 | |
---|
7787 | # Be more Bourne compatible |
---|
7788 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
7789 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
7790 | emulate sh |
---|
7791 | NULLCMD=: |
---|
7792 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
7793 | # is contrary to our usage. Disable this feature. |
---|
7794 | alias -g '${1+"$@"}'='"$@"' |
---|
7795 | setopt NO_GLOB_SUBST |
---|
7796 | else |
---|
7797 | case `(set -o) 2>/dev/null` in #( |
---|
7798 | *posix*) : |
---|
7799 | set -o posix ;; #( |
---|
7800 | *) : |
---|
7801 | ;; |
---|
7802 | esac |
---|
7803 | fi |
---|
7804 | |
---|
7805 | |
---|
7806 | as_nl=' |
---|
7807 | ' |
---|
7808 | export as_nl |
---|
7809 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
7810 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
7811 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
7812 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
7813 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
7814 | # but without wasting forks for bash or zsh. |
---|
7815 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
7816 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
7817 | as_echo='print -r --' |
---|
7818 | as_echo_n='print -rn --' |
---|
7819 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
7820 | as_echo='printf %s\n' |
---|
7821 | as_echo_n='printf %s' |
---|
7822 | else |
---|
7823 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
7824 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
7825 | as_echo_n='/usr/ucb/echo -n' |
---|
7826 | else |
---|
7827 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
7828 | as_echo_n_body='eval |
---|
7829 | arg=$1; |
---|
7830 | case $arg in #( |
---|
7831 | *"$as_nl"*) |
---|
7832 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
7833 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
7834 | esac; |
---|
7835 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
7836 | ' |
---|
7837 | export as_echo_n_body |
---|
7838 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
7839 | fi |
---|
7840 | export as_echo_body |
---|
7841 | as_echo='sh -c $as_echo_body as_echo' |
---|
7842 | fi |
---|
7843 | |
---|
7844 | # The user is always right. |
---|
7845 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
7846 | PATH_SEPARATOR=: |
---|
7847 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
7848 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
7849 | PATH_SEPARATOR=';' |
---|
7850 | } |
---|
7851 | fi |
---|
7852 | |
---|
7853 | |
---|
7854 | # IFS |
---|
7855 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
7856 | # there to prevent editors from complaining about space-tab. |
---|
7857 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
7858 | # splitting by setting IFS to empty value.) |
---|
7859 | IFS=" "" $as_nl" |
---|
7860 | |
---|
7861 | # Find who we are. Look in the path if we contain no directory separator. |
---|
7862 | as_myself= |
---|
7863 | case $0 in #(( |
---|
7864 | *[\\/]* ) as_myself=$0 ;; |
---|
7865 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7866 | for as_dir in $PATH |
---|
7867 | do |
---|
7868 | IFS=$as_save_IFS |
---|
7869 | test -z "$as_dir" && as_dir=. |
---|
7870 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
7871 | done |
---|
7872 | IFS=$as_save_IFS |
---|
7873 | |
---|
7874 | ;; |
---|
7875 | esac |
---|
7876 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
7877 | # in which case we are not to be found in the path. |
---|
7878 | if test "x$as_myself" = x; then |
---|
7879 | as_myself=$0 |
---|
7880 | fi |
---|
7881 | if test ! -f "$as_myself"; then |
---|
7882 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
7883 | exit 1 |
---|
7884 | fi |
---|
7885 | |
---|
7886 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
7887 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
7888 | # suppresses any "Segmentation fault" message there. '((' could |
---|
7889 | # trigger a bug in pdksh 5.2.14. |
---|
7890 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
7891 | do eval test x\${$as_var+set} = xset \ |
---|
7892 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
7893 | done |
---|
7894 | PS1='$ ' |
---|
7895 | PS2='> ' |
---|
7896 | PS4='+ ' |
---|
7897 | |
---|
7898 | # NLS nuisances. |
---|
7899 | LC_ALL=C |
---|
7900 | export LC_ALL |
---|
7901 | LANGUAGE=C |
---|
7902 | export LANGUAGE |
---|
7903 | |
---|
7904 | # CDPATH. |
---|
7905 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
7906 | |
---|
7907 | |
---|
7908 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
7909 | # ---------------------------------------- |
---|
7910 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
7911 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
7912 | # script with STATUS, using 1 if that was 0. |
---|
7913 | as_fn_error () |
---|
7914 | { |
---|
7915 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
7916 | if test "$4"; then |
---|
7917 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
7918 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
7919 | fi |
---|
7920 | $as_echo "$as_me: error: $2" >&2 |
---|
7921 | as_fn_exit $as_status |
---|
7922 | } # as_fn_error |
---|
7923 | |
---|
7924 | |
---|
7925 | # as_fn_set_status STATUS |
---|
7926 | # ----------------------- |
---|
7927 | # Set $? to STATUS, without forking. |
---|
7928 | as_fn_set_status () |
---|
7929 | { |
---|
7930 | return $1 |
---|
7931 | } # as_fn_set_status |
---|
7932 | |
---|
7933 | # as_fn_exit STATUS |
---|
7934 | # ----------------- |
---|
7935 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
7936 | as_fn_exit () |
---|
7937 | { |
---|
7938 | set +e |
---|
7939 | as_fn_set_status $1 |
---|
7940 | exit $1 |
---|
7941 | } # as_fn_exit |
---|
7942 | |
---|
7943 | # as_fn_unset VAR |
---|
7944 | # --------------- |
---|
7945 | # Portably unset VAR. |
---|
7946 | as_fn_unset () |
---|
7947 | { |
---|
7948 | { eval $1=; unset $1;} |
---|
7949 | } |
---|
7950 | as_unset=as_fn_unset |
---|
7951 | # as_fn_append VAR VALUE |
---|
7952 | # ---------------------- |
---|
7953 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
7954 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
7955 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
7956 | # implementations. |
---|
7957 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
7958 | eval 'as_fn_append () |
---|
7959 | { |
---|
7960 | eval $1+=\$2 |
---|
7961 | }' |
---|
7962 | else |
---|
7963 | as_fn_append () |
---|
7964 | { |
---|
7965 | eval $1=\$$1\$2 |
---|
7966 | } |
---|
7967 | fi # as_fn_append |
---|
7968 | |
---|
7969 | # as_fn_arith ARG... |
---|
7970 | # ------------------ |
---|
7971 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
7972 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
7973 | # must be portable across $(()) and expr. |
---|
7974 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
7975 | eval 'as_fn_arith () |
---|
7976 | { |
---|
7977 | as_val=$(( $* )) |
---|
7978 | }' |
---|
7979 | else |
---|
7980 | as_fn_arith () |
---|
7981 | { |
---|
7982 | as_val=`expr "$@" || test $? -eq 1` |
---|
7983 | } |
---|
7984 | fi # as_fn_arith |
---|
7985 | |
---|
7986 | |
---|
7987 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
7988 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
7989 | as_expr=expr |
---|
7990 | else |
---|
7991 | as_expr=false |
---|
7992 | fi |
---|
7993 | |
---|
7994 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
7995 | as_basename=basename |
---|
7996 | else |
---|
7997 | as_basename=false |
---|
7998 | fi |
---|
7999 | |
---|
8000 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
8001 | as_dirname=dirname |
---|
8002 | else |
---|
8003 | as_dirname=false |
---|
8004 | fi |
---|
8005 | |
---|
8006 | as_me=`$as_basename -- "$0" || |
---|
8007 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
8008 | X"$0" : 'X\(//\)$' \| \ |
---|
8009 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
8010 | $as_echo X/"$0" | |
---|
8011 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
8012 | s//\1/ |
---|
8013 | q |
---|
8014 | } |
---|
8015 | /^X\/\(\/\/\)$/{ |
---|
8016 | s//\1/ |
---|
8017 | q |
---|
8018 | } |
---|
8019 | /^X\/\(\/\).*/{ |
---|
8020 | s//\1/ |
---|
8021 | q |
---|
8022 | } |
---|
8023 | s/.*/./; q'` |
---|
8024 | |
---|
8025 | # Avoid depending upon Character Ranges. |
---|
8026 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
8027 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
8028 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
8029 | as_cr_digits='0123456789' |
---|
8030 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
8031 | |
---|
8032 | ECHO_C= ECHO_N= ECHO_T= |
---|
8033 | case `echo -n x` in #((((( |
---|
8034 | -n*) |
---|
8035 | case `echo 'xy\c'` in |
---|
8036 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
8037 | xy) ECHO_C='\c';; |
---|
8038 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
8039 | ECHO_T=' ';; |
---|
8040 | esac;; |
---|
8041 | *) |
---|
8042 | ECHO_N='-n';; |
---|
8043 | esac |
---|
8044 | |
---|
8045 | rm -f conf$$ conf$$.exe conf$$.file |
---|
8046 | if test -d conf$$.dir; then |
---|
8047 | rm -f conf$$.dir/conf$$.file |
---|
8048 | else |
---|
8049 | rm -f conf$$.dir |
---|
8050 | mkdir conf$$.dir 2>/dev/null |
---|
8051 | fi |
---|
8052 | if (echo >conf$$.file) 2>/dev/null; then |
---|
8053 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
8054 | as_ln_s='ln -s' |
---|
8055 | # ... but there are two gotchas: |
---|
8056 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
8057 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
8058 | # In both cases, we have to default to `cp -pR'. |
---|
8059 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
8060 | as_ln_s='cp -pR' |
---|
8061 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
8062 | as_ln_s=ln |
---|
8063 | else |
---|
8064 | as_ln_s='cp -pR' |
---|
8065 | fi |
---|
8066 | else |
---|
8067 | as_ln_s='cp -pR' |
---|
8068 | fi |
---|
8069 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
8070 | rmdir conf$$.dir 2>/dev/null |
---|
8071 | |
---|
8072 | |
---|
8073 | # as_fn_mkdir_p |
---|
8074 | # ------------- |
---|
8075 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
8076 | as_fn_mkdir_p () |
---|
8077 | { |
---|
8078 | |
---|
8079 | case $as_dir in #( |
---|
8080 | -*) as_dir=./$as_dir;; |
---|
8081 | esac |
---|
8082 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
8083 | as_dirs= |
---|
8084 | while :; do |
---|
8085 | case $as_dir in #( |
---|
8086 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
8087 | *) as_qdir=$as_dir;; |
---|
8088 | esac |
---|
8089 | as_dirs="'$as_qdir' $as_dirs" |
---|
8090 | as_dir=`$as_dirname -- "$as_dir" || |
---|
8091 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8092 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8093 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8094 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
8095 | $as_echo X"$as_dir" | |
---|
8096 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
8097 | s//\1/ |
---|
8098 | q |
---|
8099 | } |
---|
8100 | /^X\(\/\/\)[^/].*/{ |
---|
8101 | s//\1/ |
---|
8102 | q |
---|
8103 | } |
---|
8104 | /^X\(\/\/\)$/{ |
---|
8105 | s//\1/ |
---|
8106 | q |
---|
8107 | } |
---|
8108 | /^X\(\/\).*/{ |
---|
8109 | s//\1/ |
---|
8110 | q |
---|
8111 | } |
---|
8112 | s/.*/./; q'` |
---|
8113 | test -d "$as_dir" && break |
---|
8114 | done |
---|
8115 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
8116 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
8117 | |
---|
8118 | |
---|
8119 | } # as_fn_mkdir_p |
---|
8120 | if mkdir -p . 2>/dev/null; then |
---|
8121 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
8122 | else |
---|
8123 | test -d ./-p && rmdir ./-p |
---|
8124 | as_mkdir_p=false |
---|
8125 | fi |
---|
8126 | |
---|
8127 | |
---|
8128 | # as_fn_executable_p FILE |
---|
8129 | # ----------------------- |
---|
8130 | # Test if FILE is an executable regular file. |
---|
8131 | as_fn_executable_p () |
---|
8132 | { |
---|
8133 | test -f "$1" && test -x "$1" |
---|
8134 | } # as_fn_executable_p |
---|
8135 | as_test_x='test -x' |
---|
8136 | as_executable_p=as_fn_executable_p |
---|
8137 | |
---|
8138 | # Sed expression to map a string onto a valid CPP name. |
---|
8139 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
8140 | |
---|
8141 | # Sed expression to map a string onto a valid variable name. |
---|
8142 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
8143 | |
---|
8144 | |
---|
8145 | exec 6>&1 |
---|
8146 | ## ----------------------------------- ## |
---|
8147 | ## Main body of $CONFIG_STATUS script. ## |
---|
8148 | ## ----------------------------------- ## |
---|
8149 | _ASEOF |
---|
8150 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
8151 | |
---|
8152 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8153 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
8154 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
8155 | # values after options handling. |
---|
8156 | ac_log=" |
---|
8157 | This file was extended by Rappture $as_me 1.4, which was |
---|
8158 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
8159 | |
---|
8160 | CONFIG_FILES = $CONFIG_FILES |
---|
8161 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
8162 | CONFIG_LINKS = $CONFIG_LINKS |
---|
8163 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
8164 | $ $0 $@ |
---|
8165 | |
---|
8166 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
8167 | " |
---|
8168 | |
---|
8169 | _ACEOF |
---|
8170 | |
---|
8171 | case $ac_config_files in *" |
---|
8172 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
8173 | esac |
---|
8174 | |
---|
8175 | case $ac_config_headers in *" |
---|
8176 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
8177 | esac |
---|
8178 | |
---|
8179 | |
---|
8180 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8181 | # Files that config.status was made for. |
---|
8182 | config_files="$ac_config_files" |
---|
8183 | config_headers="$ac_config_headers" |
---|
8184 | |
---|
8185 | _ACEOF |
---|
8186 | |
---|
8187 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8188 | ac_cs_usage="\ |
---|
8189 | \`$as_me' instantiates files and other configuration actions |
---|
8190 | from templates according to the current configuration. Unless the files |
---|
8191 | and actions are specified as TAGs, all are instantiated by default. |
---|
8192 | |
---|
8193 | Usage: $0 [OPTION]... [TAG]... |
---|
8194 | |
---|
8195 | -h, --help print this help, then exit |
---|
8196 | -V, --version print version number and configuration settings, then exit |
---|
8197 | --config print configuration, then exit |
---|
8198 | -q, --quiet, --silent |
---|
8199 | do not print progress messages |
---|
8200 | -d, --debug don't remove temporary files |
---|
8201 | --recheck update $as_me by reconfiguring in the same conditions |
---|
8202 | --file=FILE[:TEMPLATE] |
---|
8203 | instantiate the configuration file FILE |
---|
8204 | --header=FILE[:TEMPLATE] |
---|
8205 | instantiate the configuration header FILE |
---|
8206 | |
---|
8207 | Configuration files: |
---|
8208 | $config_files |
---|
8209 | |
---|
8210 | Configuration headers: |
---|
8211 | $config_headers |
---|
8212 | |
---|
8213 | Report bugs to <rappture@nanohub.org>." |
---|
8214 | |
---|
8215 | _ACEOF |
---|
8216 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8217 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
8218 | ac_cs_version="\\ |
---|
8219 | Rappture config.status 1.4 |
---|
8220 | configured by $0, generated by GNU Autoconf 2.69, |
---|
8221 | with options \\"\$ac_cs_config\\" |
---|
8222 | |
---|
8223 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
8224 | This config.status script is free software; the Free Software Foundation |
---|
8225 | gives unlimited permission to copy, distribute and modify it." |
---|
8226 | |
---|
8227 | ac_pwd='$ac_pwd' |
---|
8228 | srcdir='$srcdir' |
---|
8229 | INSTALL='$INSTALL' |
---|
8230 | MKDIR_P='$MKDIR_P' |
---|
8231 | test -n "\$AWK" || AWK=awk |
---|
8232 | _ACEOF |
---|
8233 | |
---|
8234 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8235 | # The default lists apply if the user does not specify any file. |
---|
8236 | ac_need_defaults=: |
---|
8237 | while test $# != 0 |
---|
8238 | do |
---|
8239 | case $1 in |
---|
8240 | --*=?*) |
---|
8241 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
8242 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
8243 | ac_shift=: |
---|
8244 | ;; |
---|
8245 | --*=) |
---|
8246 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
8247 | ac_optarg= |
---|
8248 | ac_shift=: |
---|
8249 | ;; |
---|
8250 | *) |
---|
8251 | ac_option=$1 |
---|
8252 | ac_optarg=$2 |
---|
8253 | ac_shift=shift |
---|
8254 | ;; |
---|
8255 | esac |
---|
8256 | |
---|
8257 | case $ac_option in |
---|
8258 | # Handling of the options. |
---|
8259 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
8260 | ac_cs_recheck=: ;; |
---|
8261 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
8262 | $as_echo "$ac_cs_version"; exit ;; |
---|
8263 | --config | --confi | --conf | --con | --co | --c ) |
---|
8264 | $as_echo "$ac_cs_config"; exit ;; |
---|
8265 | --debug | --debu | --deb | --de | --d | -d ) |
---|
8266 | debug=: ;; |
---|
8267 | --file | --fil | --fi | --f ) |
---|
8268 | $ac_shift |
---|
8269 | case $ac_optarg in |
---|
8270 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
8271 | '') as_fn_error $? "missing file argument" ;; |
---|
8272 | esac |
---|
8273 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
8274 | ac_need_defaults=false;; |
---|
8275 | --header | --heade | --head | --hea ) |
---|
8276 | $ac_shift |
---|
8277 | case $ac_optarg in |
---|
8278 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
8279 | esac |
---|
8280 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
8281 | ac_need_defaults=false;; |
---|
8282 | --he | --h) |
---|
8283 | # Conflict between --help and --header |
---|
8284 | as_fn_error $? "ambiguous option: \`$1' |
---|
8285 | Try \`$0 --help' for more information.";; |
---|
8286 | --help | --hel | -h ) |
---|
8287 | $as_echo "$ac_cs_usage"; exit ;; |
---|
8288 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
8289 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
8290 | ac_cs_silent=: ;; |
---|
8291 | |
---|
8292 | # This is an error. |
---|
8293 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
8294 | Try \`$0 --help' for more information." ;; |
---|
8295 | |
---|
8296 | *) as_fn_append ac_config_targets " $1" |
---|
8297 | ac_need_defaults=false ;; |
---|
8298 | |
---|
8299 | esac |
---|
8300 | shift |
---|
8301 | done |
---|
8302 | |
---|
8303 | ac_configure_extra_args= |
---|
8304 | |
---|
8305 | if $ac_cs_silent; then |
---|
8306 | exec 6>/dev/null |
---|
8307 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
8308 | fi |
---|
8309 | |
---|
8310 | _ACEOF |
---|
8311 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8312 | if \$ac_cs_recheck; then |
---|
8313 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
8314 | shift |
---|
8315 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
8316 | CONFIG_SHELL='$SHELL' |
---|
8317 | export CONFIG_SHELL |
---|
8318 | exec "\$@" |
---|
8319 | fi |
---|
8320 | |
---|
8321 | _ACEOF |
---|
8322 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8323 | exec 5>>config.log |
---|
8324 | { |
---|
8325 | echo |
---|
8326 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
8327 | ## Running $as_me. ## |
---|
8328 | _ASBOX |
---|
8329 | $as_echo "$ac_log" |
---|
8330 | } >&5 |
---|
8331 | |
---|
8332 | _ACEOF |
---|
8333 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8334 | _ACEOF |
---|
8335 | |
---|
8336 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8337 | |
---|
8338 | # Handling of arguments. |
---|
8339 | for ac_config_target in $ac_config_targets |
---|
8340 | do |
---|
8341 | case $ac_config_target in |
---|
8342 | "rappture/config.h") CONFIG_HEADERS="$CONFIG_HEADERS rappture/config.h" ;; |
---|
8343 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
8344 | "rappture/Makefile") CONFIG_FILES="$CONFIG_FILES rappture/Makefile" ;; |
---|
8345 | "rappture2/Makefile") CONFIG_FILES="$CONFIG_FILES rappture2/Makefile" ;; |
---|
8346 | "objects/Makefile") CONFIG_FILES="$CONFIG_FILES objects/Makefile" ;; |
---|
8347 | "objects/RpHash.h") CONFIG_FILES="$CONFIG_FILES objects/RpHash.h" ;; |
---|
8348 | |
---|
8349 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
8350 | esac |
---|
8351 | done |
---|
8352 | |
---|
8353 | |
---|
8354 | # If the user did not use the arguments to specify the items to instantiate, |
---|
8355 | # then the envvar interface is used. Set only those that are not. |
---|
8356 | # We use the long form for the default assignment because of an extremely |
---|
8357 | # bizarre bug on SunOS 4.1.3. |
---|
8358 | if $ac_need_defaults; then |
---|
8359 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
8360 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
8361 | fi |
---|
8362 | |
---|
8363 | # Have a temporary directory for convenience. Make it in the build tree |
---|
8364 | # simply because there is no reason against having it here, and in addition, |
---|
8365 | # creating and moving files from /tmp can sometimes cause problems. |
---|
8366 | # Hook for its removal unless debugging. |
---|
8367 | # Note that there is a small window in which the directory will not be cleaned: |
---|
8368 | # after its creation but before its name has been assigned to `$tmp'. |
---|
8369 | $debug || |
---|
8370 | { |
---|
8371 | tmp= ac_tmp= |
---|
8372 | trap 'exit_status=$? |
---|
8373 | : "${ac_tmp:=$tmp}" |
---|
8374 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
8375 | ' 0 |
---|
8376 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
8377 | } |
---|
8378 | # Create a (secure) tmp directory for tmp files. |
---|
8379 | |
---|
8380 | { |
---|
8381 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
8382 | test -d "$tmp" |
---|
8383 | } || |
---|
8384 | { |
---|
8385 | tmp=./conf$$-$RANDOM |
---|
8386 | (umask 077 && mkdir "$tmp") |
---|
8387 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
8388 | ac_tmp=$tmp |
---|
8389 | |
---|
8390 | # Set up the scripts for CONFIG_FILES section. |
---|
8391 | # No need to generate them if there are no CONFIG_FILES. |
---|
8392 | # This happens for instance with `./config.status config.h'. |
---|
8393 | if test -n "$CONFIG_FILES"; then |
---|
8394 | |
---|
8395 | |
---|
8396 | ac_cr=`echo X | tr X '\015'` |
---|
8397 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
8398 | # But we know of no other shell where ac_cr would be empty at this |
---|
8399 | # point, so we can use a bashism as a fallback. |
---|
8400 | if test "x$ac_cr" = x; then |
---|
8401 | eval ac_cr=\$\'\\r\' |
---|
8402 | fi |
---|
8403 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
8404 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
8405 | ac_cs_awk_cr='\\r' |
---|
8406 | else |
---|
8407 | ac_cs_awk_cr=$ac_cr |
---|
8408 | fi |
---|
8409 | |
---|
8410 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
8411 | _ACEOF |
---|
8412 | |
---|
8413 | |
---|
8414 | { |
---|
8415 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
8416 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
8417 | echo "_ACEOF" |
---|
8418 | } >conf$$subs.sh || |
---|
8419 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
8420 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
8421 | ac_delim='%!_!# ' |
---|
8422 | for ac_last_try in false false false false false :; do |
---|
8423 | . ./conf$$subs.sh || |
---|
8424 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
8425 | |
---|
8426 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
8427 | if test $ac_delim_n = $ac_delim_num; then |
---|
8428 | break |
---|
8429 | elif $ac_last_try; then |
---|
8430 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
8431 | else |
---|
8432 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
8433 | fi |
---|
8434 | done |
---|
8435 | rm -f conf$$subs.sh |
---|
8436 | |
---|
8437 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8438 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
8439 | _ACEOF |
---|
8440 | sed -n ' |
---|
8441 | h |
---|
8442 | s/^/S["/; s/!.*/"]=/ |
---|
8443 | p |
---|
8444 | g |
---|
8445 | s/^[^!]*!// |
---|
8446 | :repl |
---|
8447 | t repl |
---|
8448 | s/'"$ac_delim"'$// |
---|
8449 | t delim |
---|
8450 | :nl |
---|
8451 | h |
---|
8452 | s/\(.\{148\}\)..*/\1/ |
---|
8453 | t more1 |
---|
8454 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
8455 | p |
---|
8456 | n |
---|
8457 | b repl |
---|
8458 | :more1 |
---|
8459 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
8460 | p |
---|
8461 | g |
---|
8462 | s/.\{148\}// |
---|
8463 | t nl |
---|
8464 | :delim |
---|
8465 | h |
---|
8466 | s/\(.\{148\}\)..*/\1/ |
---|
8467 | t more2 |
---|
8468 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
8469 | p |
---|
8470 | b |
---|
8471 | :more2 |
---|
8472 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
8473 | p |
---|
8474 | g |
---|
8475 | s/.\{148\}// |
---|
8476 | t delim |
---|
8477 | ' <conf$$subs.awk | sed ' |
---|
8478 | /^[^""]/{ |
---|
8479 | N |
---|
8480 | s/\n// |
---|
8481 | } |
---|
8482 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
8483 | rm -f conf$$subs.awk |
---|
8484 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8485 | _ACAWK |
---|
8486 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
8487 | for (key in S) S_is_set[key] = 1 |
---|
8488 | FS = "" |
---|
8489 | |
---|
8490 | } |
---|
8491 | { |
---|
8492 | line = $ 0 |
---|
8493 | nfields = split(line, field, "@") |
---|
8494 | substed = 0 |
---|
8495 | len = length(field[1]) |
---|
8496 | for (i = 2; i < nfields; i++) { |
---|
8497 | key = field[i] |
---|
8498 | keylen = length(key) |
---|
8499 | if (S_is_set[key]) { |
---|
8500 | value = S[key] |
---|
8501 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
8502 | len += length(value) + length(field[++i]) |
---|
8503 | substed = 1 |
---|
8504 | } else |
---|
8505 | len += 1 + keylen |
---|
8506 | } |
---|
8507 | |
---|
8508 | print line |
---|
8509 | } |
---|
8510 | |
---|
8511 | _ACAWK |
---|
8512 | _ACEOF |
---|
8513 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8514 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
8515 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
8516 | else |
---|
8517 | cat |
---|
8518 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
8519 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
8520 | _ACEOF |
---|
8521 | |
---|
8522 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
8523 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
8524 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
8525 | # (actually we leave an empty line to preserve line numbers). |
---|
8526 | if test "x$srcdir" = x.; then |
---|
8527 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
8528 | h |
---|
8529 | s/// |
---|
8530 | s/^/:/ |
---|
8531 | s/[ ]*$/:/ |
---|
8532 | s/:\$(srcdir):/:/g |
---|
8533 | s/:\${srcdir}:/:/g |
---|
8534 | s/:@srcdir@:/:/g |
---|
8535 | s/^:*// |
---|
8536 | s/:*$// |
---|
8537 | x |
---|
8538 | s/\(=[ ]*\).*/\1/ |
---|
8539 | G |
---|
8540 | s/\n// |
---|
8541 | s/^[^=]*=[ ]*$// |
---|
8542 | }' |
---|
8543 | fi |
---|
8544 | |
---|
8545 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8546 | fi # test -n "$CONFIG_FILES" |
---|
8547 | |
---|
8548 | # Set up the scripts for CONFIG_HEADERS section. |
---|
8549 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
8550 | # This happens for instance with `./config.status Makefile'. |
---|
8551 | if test -n "$CONFIG_HEADERS"; then |
---|
8552 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
8553 | BEGIN { |
---|
8554 | _ACEOF |
---|
8555 | |
---|
8556 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
8557 | # here-document in config.status, that substitutes the proper values into |
---|
8558 | # config.h.in to produce config.h. |
---|
8559 | |
---|
8560 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
8561 | # handling of long lines. |
---|
8562 | ac_delim='%!_!# ' |
---|
8563 | for ac_last_try in false false :; do |
---|
8564 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
8565 | if test -z "$ac_tt"; then |
---|
8566 | break |
---|
8567 | elif $ac_last_try; then |
---|
8568 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
8569 | else |
---|
8570 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
8571 | fi |
---|
8572 | done |
---|
8573 | |
---|
8574 | # For the awk script, D is an array of macro values keyed by name, |
---|
8575 | # likewise P contains macro parameters if any. Preserve backslash |
---|
8576 | # newline sequences. |
---|
8577 | |
---|
8578 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
8579 | sed -n ' |
---|
8580 | s/.\{148\}/&'"$ac_delim"'/g |
---|
8581 | t rset |
---|
8582 | :rset |
---|
8583 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
8584 | t def |
---|
8585 | d |
---|
8586 | :def |
---|
8587 | s/\\$// |
---|
8588 | t bsnl |
---|
8589 | s/["\\]/\\&/g |
---|
8590 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
8591 | D["\1"]=" \3"/p |
---|
8592 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
8593 | d |
---|
8594 | :bsnl |
---|
8595 | s/["\\]/\\&/g |
---|
8596 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
8597 | D["\1"]=" \3\\\\\\n"\\/p |
---|
8598 | t cont |
---|
8599 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
8600 | t cont |
---|
8601 | d |
---|
8602 | :cont |
---|
8603 | n |
---|
8604 | s/.\{148\}/&'"$ac_delim"'/g |
---|
8605 | t clear |
---|
8606 | :clear |
---|
8607 | s/\\$// |
---|
8608 | t bsnlc |
---|
8609 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
8610 | d |
---|
8611 | :bsnlc |
---|
8612 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
8613 | b cont |
---|
8614 | ' <confdefs.h | sed ' |
---|
8615 | s/'"$ac_delim"'/"\\\ |
---|
8616 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
8617 | |
---|
8618 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8619 | for (key in D) D_is_set[key] = 1 |
---|
8620 | FS = "" |
---|
8621 | } |
---|
8622 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
8623 | line = \$ 0 |
---|
8624 | split(line, arg, " ") |
---|
8625 | if (arg[1] == "#") { |
---|
8626 | defundef = arg[2] |
---|
8627 | mac1 = arg[3] |
---|
8628 | } else { |
---|
8629 | defundef = substr(arg[1], 2) |
---|
8630 | mac1 = arg[2] |
---|
8631 | } |
---|
8632 | split(mac1, mac2, "(") #) |
---|
8633 | macro = mac2[1] |
---|
8634 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
8635 | if (D_is_set[macro]) { |
---|
8636 | # Preserve the white space surrounding the "#". |
---|
8637 | print prefix "define", macro P[macro] D[macro] |
---|
8638 | next |
---|
8639 | } else { |
---|
8640 | # Replace #undef with comments. This is necessary, for example, |
---|
8641 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
8642 | # on some systems where configure will not decide to define it. |
---|
8643 | if (defundef == "undef") { |
---|
8644 | print "/*", prefix defundef, macro, "*/" |
---|
8645 | next |
---|
8646 | } |
---|
8647 | } |
---|
8648 | } |
---|
8649 | { print } |
---|
8650 | _ACAWK |
---|
8651 | _ACEOF |
---|
8652 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8653 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
8654 | fi # test -n "$CONFIG_HEADERS" |
---|
8655 | |
---|
8656 | |
---|
8657 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
---|
8658 | shift |
---|
8659 | for ac_tag |
---|
8660 | do |
---|
8661 | case $ac_tag in |
---|
8662 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
8663 | esac |
---|
8664 | case $ac_mode$ac_tag in |
---|
8665 | :[FHL]*:*);; |
---|
8666 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
8667 | :[FH]-) ac_tag=-:-;; |
---|
8668 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
8669 | esac |
---|
8670 | ac_save_IFS=$IFS |
---|
8671 | IFS=: |
---|
8672 | set x $ac_tag |
---|
8673 | IFS=$ac_save_IFS |
---|
8674 | shift |
---|
8675 | ac_file=$1 |
---|
8676 | shift |
---|
8677 | |
---|
8678 | case $ac_mode in |
---|
8679 | :L) ac_source=$1;; |
---|
8680 | :[FH]) |
---|
8681 | ac_file_inputs= |
---|
8682 | for ac_f |
---|
8683 | do |
---|
8684 | case $ac_f in |
---|
8685 | -) ac_f="$ac_tmp/stdin";; |
---|
8686 | *) # Look for the file first in the build tree, then in the source tree |
---|
8687 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
8688 | # because $ac_f cannot contain `:'. |
---|
8689 | test -f "$ac_f" || |
---|
8690 | case $ac_f in |
---|
8691 | [\\/$]*) false;; |
---|
8692 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
8693 | esac || |
---|
8694 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
8695 | esac |
---|
8696 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
8697 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
8698 | done |
---|
8699 | |
---|
8700 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
8701 | # use $as_me), people would be surprised to read: |
---|
8702 | # /* config.h. Generated by config.status. */ |
---|
8703 | configure_input='Generated from '` |
---|
8704 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
8705 | `' by configure.' |
---|
8706 | if test x"$ac_file" != x-; then |
---|
8707 | configure_input="$ac_file. $configure_input" |
---|
8708 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
8709 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
8710 | fi |
---|
8711 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
8712 | case $configure_input in #( |
---|
8713 | *\&* | *\|* | *\\* ) |
---|
8714 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
8715 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
8716 | *) ac_sed_conf_input=$configure_input;; |
---|
8717 | esac |
---|
8718 | |
---|
8719 | case $ac_tag in |
---|
8720 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
8721 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
8722 | esac |
---|
8723 | ;; |
---|
8724 | esac |
---|
8725 | |
---|
8726 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
8727 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8728 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
8729 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
8730 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
8731 | $as_echo X"$ac_file" | |
---|
8732 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
8733 | s//\1/ |
---|
8734 | q |
---|
8735 | } |
---|
8736 | /^X\(\/\/\)[^/].*/{ |
---|
8737 | s//\1/ |
---|
8738 | q |
---|
8739 | } |
---|
8740 | /^X\(\/\/\)$/{ |
---|
8741 | s//\1/ |
---|
8742 | q |
---|
8743 | } |
---|
8744 | /^X\(\/\).*/{ |
---|
8745 | s//\1/ |
---|
8746 | q |
---|
8747 | } |
---|
8748 | s/.*/./; q'` |
---|
8749 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
8750 | ac_builddir=. |
---|
8751 | |
---|
8752 | case "$ac_dir" in |
---|
8753 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
8754 | *) |
---|
8755 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
8756 | # A ".." for each directory in $ac_dir_suffix. |
---|
8757 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
8758 | case $ac_top_builddir_sub in |
---|
8759 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
8760 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
8761 | esac ;; |
---|
8762 | esac |
---|
8763 | ac_abs_top_builddir=$ac_pwd |
---|
8764 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
8765 | # for backward compatibility: |
---|
8766 | ac_top_builddir=$ac_top_build_prefix |
---|
8767 | |
---|
8768 | case $srcdir in |
---|
8769 | .) # We are building in place. |
---|
8770 | ac_srcdir=. |
---|
8771 | ac_top_srcdir=$ac_top_builddir_sub |
---|
8772 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
8773 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
8774 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
8775 | ac_top_srcdir=$srcdir |
---|
8776 | ac_abs_top_srcdir=$srcdir ;; |
---|
8777 | *) # Relative name. |
---|
8778 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
8779 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
8780 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
8781 | esac |
---|
8782 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
8783 | |
---|
8784 | |
---|
8785 | case $ac_mode in |
---|
8786 | :F) |
---|
8787 | # |
---|
8788 | # CONFIG_FILE |
---|
8789 | # |
---|
8790 | |
---|
8791 | case $INSTALL in |
---|
8792 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
8793 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
8794 | esac |
---|
8795 | ac_MKDIR_P=$MKDIR_P |
---|
8796 | case $MKDIR_P in |
---|
8797 | [\\/$]* | ?:[\\/]* ) ;; |
---|
8798 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
8799 | esac |
---|
8800 | _ACEOF |
---|
8801 | |
---|
8802 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8803 | # If the template does not know about datarootdir, expand it. |
---|
8804 | # FIXME: This hack should be removed a few years after 2.60. |
---|
8805 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
8806 | ac_sed_dataroot=' |
---|
8807 | /datarootdir/ { |
---|
8808 | p |
---|
8809 | q |
---|
8810 | } |
---|
8811 | /@datadir@/p |
---|
8812 | /@docdir@/p |
---|
8813 | /@infodir@/p |
---|
8814 | /@localedir@/p |
---|
8815 | /@mandir@/p' |
---|
8816 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
8817 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
8818 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
8819 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
8820 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
8821 | _ACEOF |
---|
8822 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8823 | ac_datarootdir_hack=' |
---|
8824 | s&@datadir@&$datadir&g |
---|
8825 | s&@docdir@&$docdir&g |
---|
8826 | s&@infodir@&$infodir&g |
---|
8827 | s&@localedir@&$localedir&g |
---|
8828 | s&@mandir@&$mandir&g |
---|
8829 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
8830 | esac |
---|
8831 | _ACEOF |
---|
8832 | |
---|
8833 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
8834 | # Shell code in configure.ac might set extrasub. |
---|
8835 | # FIXME: do we really want to maintain this feature? |
---|
8836 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8837 | ac_sed_extra="$ac_vpsub |
---|
8838 | $extrasub |
---|
8839 | _ACEOF |
---|
8840 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8841 | :t |
---|
8842 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
8843 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
8844 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
8845 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
8846 | s&@srcdir@&$ac_srcdir&;t t |
---|
8847 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
8848 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
8849 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
8850 | s&@builddir@&$ac_builddir&;t t |
---|
8851 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
8852 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
8853 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
8854 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
8855 | $ac_datarootdir_hack |
---|
8856 | " |
---|
8857 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
8858 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
8859 | |
---|
8860 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
8861 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
8862 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
8863 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
8864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
8865 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
8866 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
8867 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
8868 | |
---|
8869 | rm -f "$ac_tmp/stdin" |
---|
8870 | case $ac_file in |
---|
8871 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
8872 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
8873 | esac \ |
---|
8874 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
8875 | ;; |
---|
8876 | :H) |
---|
8877 | # |
---|
8878 | # CONFIG_HEADER |
---|
8879 | # |
---|
8880 | if test x"$ac_file" != x-; then |
---|
8881 | { |
---|
8882 | $as_echo "/* $configure_input */" \ |
---|
8883 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
8884 | } >"$ac_tmp/config.h" \ |
---|
8885 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
8886 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
8887 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
8888 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
8889 | else |
---|
8890 | rm -f "$ac_file" |
---|
8891 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
8892 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
8893 | fi |
---|
8894 | else |
---|
8895 | $as_echo "/* $configure_input */" \ |
---|
8896 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
8897 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
8898 | fi |
---|
8899 | ;; |
---|
8900 | |
---|
8901 | |
---|
8902 | esac |
---|
8903 | |
---|
8904 | done # for ac_tag |
---|
8905 | |
---|
8906 | |
---|
8907 | as_fn_exit 0 |
---|
8908 | _ACEOF |
---|
8909 | ac_clean_files=$ac_clean_files_save |
---|
8910 | |
---|
8911 | test $ac_write_fail = 0 || |
---|
8912 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
8913 | |
---|
8914 | |
---|
8915 | # configure is writing to config.log, and then calls config.status. |
---|
8916 | # config.status does its own redirection, appending to config.log. |
---|
8917 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
8918 | # by configure, so config.status won't be able to write to it; its |
---|
8919 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
8920 | # effectively closing config.log, so it can be properly (re)opened and |
---|
8921 | # appended to by config.status. When coming back to configure, we |
---|
8922 | # need to make the FD available again. |
---|
8923 | if test "$no_create" != yes; then |
---|
8924 | ac_cs_success=: |
---|
8925 | ac_config_status_args= |
---|
8926 | test "$silent" = yes && |
---|
8927 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
8928 | exec 5>/dev/null |
---|
8929 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
8930 | exec 5>>config.log |
---|
8931 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
8932 | # would make configure fail if this is the last instruction. |
---|
8933 | $ac_cs_success || as_fn_exit 1 |
---|
8934 | fi |
---|
8935 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
8936 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
8937 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
8938 | fi |
---|
8939 | |
---|
8940 | |
---|