1 | #! /bin/sh |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.61. |
3 | # Generated by GNU Autoconf 2.71. |
4 | # |
4 | # |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
5 | # |
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
6 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
|
|
7 | # Inc. |
|
|
8 | # |
|
|
9 | # |
7 | # This configure script is free software; the Free Software Foundation |
10 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. |
11 | # gives unlimited permission to copy, distribute and modify it. |
9 | ## --------------------- ## |
12 | ## -------------------- ## |
10 | ## M4sh Initialization. ## |
13 | ## M4sh Initialization. ## |
11 | ## --------------------- ## |
14 | ## -------------------- ## |
12 | |
15 | |
13 | # Be more Bourne compatible |
16 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh |
17 | DUALCASE=1; export DUALCASE # for MKS sh |
|
|
18 | as_nop=: |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
19 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
20 | then : |
16 | emulate sh |
21 | emulate sh |
17 | NULLCMD=: |
22 | NULLCMD=: |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
19 | # is contrary to our usage. Disable this feature. |
24 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' |
25 | alias -g '${1+"$@"}'='"$@"' |
21 | setopt NO_GLOB_SUBST |
26 | setopt NO_GLOB_SUBST |
22 | else |
27 | else $as_nop |
23 | case `(set -o) 2>/dev/null` in |
28 | case `(set -o) 2>/dev/null` in #( |
24 | *posix*) set -o posix ;; |
29 | *posix*) : |
|
|
30 | set -o posix ;; #( |
|
|
31 | *) : |
|
|
32 | ;; |
25 | esac |
33 | esac |
26 | |
|
|
27 | fi |
34 | fi |
28 | |
35 | |
29 | |
36 | |
30 | |
37 | |
|
|
38 | # Reset variables that may have inherited troublesome values from |
|
|
39 | # the environment. |
31 | |
40 | |
32 | # PATH needs CR |
|
|
33 | # Avoid depending upon Character Ranges. |
|
|
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
|
37 | as_cr_digits='0123456789' |
|
|
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
|
39 | |
|
|
40 | # The user is always right. |
|
|
41 | if test "${PATH_SEPARATOR+set}" != set; then |
|
|
42 | echo "#! /bin/sh" >conf$$.sh |
|
|
43 | echo "exit 0" >>conf$$.sh |
|
|
44 | chmod +x conf$$.sh |
|
|
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
|
46 | PATH_SEPARATOR=';' |
|
|
47 | else |
|
|
48 | PATH_SEPARATOR=: |
|
|
49 | fi |
|
|
50 | rm -f conf$$.sh |
|
|
51 | fi |
|
|
52 | |
|
|
53 | # Support unset when possible. |
|
|
54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
|
55 | as_unset=unset |
|
|
56 | else |
|
|
57 | as_unset=false |
|
|
58 | fi |
|
|
59 | |
|
|
60 | |
|
|
61 | # IFS |
|
|
62 | # We need space, tab and new line, in precisely that order. Quoting is |
41 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
|
|
42 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
|
|
43 | # side effect of setting IFS to empty, thus disabling word splitting.) |
63 | # there to prevent editors from complaining about space-tab. |
44 | # Quoting is to prevent editors from complaining about space-tab. |
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
|
65 | # splitting by setting IFS to empty value.) |
|
|
66 | as_nl=' |
45 | as_nl=' |
67 | ' |
46 | ' |
|
|
47 | export as_nl |
68 | IFS=" "" $as_nl" |
48 | IFS=" "" $as_nl" |
69 | |
49 | |
|
|
50 | PS1='$ ' |
|
|
51 | PS2='> ' |
|
|
52 | PS4='+ ' |
|
|
53 | |
|
|
54 | # Ensure predictable behavior from utilities with locale-dependent output. |
|
|
55 | LC_ALL=C |
|
|
56 | export LC_ALL |
|
|
57 | LANGUAGE=C |
|
|
58 | export LANGUAGE |
|
|
59 | |
|
|
60 | # We cannot yet rely on "unset" to work, but we need these variables |
|
|
61 | # to be unset--not just set to an empty or harmless value--now, to |
|
|
62 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
|
|
63 | # also avoids known problems related to "unset" and subshell syntax |
|
|
64 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
|
|
65 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
|
|
66 | do eval test \${$as_var+y} \ |
|
|
67 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
|
68 | done |
|
|
69 | |
|
|
70 | # Ensure that fds 0, 1, and 2 are open. |
|
|
71 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
|
|
72 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
|
|
73 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
|
|
74 | |
|
|
75 | # The user is always right. |
|
|
76 | if ${PATH_SEPARATOR+false} :; then |
|
|
77 | PATH_SEPARATOR=: |
|
|
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
|
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
|
80 | PATH_SEPARATOR=';' |
|
|
81 | } |
|
|
82 | fi |
|
|
83 | |
|
|
84 | |
70 | # Find who we are. Look in the path if we contain no directory separator. |
85 | # Find who we are. Look in the path if we contain no directory separator. |
|
|
86 | as_myself= |
71 | case $0 in |
87 | case $0 in #(( |
72 | *[\\/]* ) as_myself=$0 ;; |
88 | *[\\/]* ) as_myself=$0 ;; |
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
89 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
74 | for as_dir in $PATH |
90 | for as_dir in $PATH |
75 | do |
91 | do |
76 | IFS=$as_save_IFS |
92 | IFS=$as_save_IFS |
77 | test -z "$as_dir" && as_dir=. |
93 | case $as_dir in #((( |
|
|
94 | '') as_dir=./ ;; |
|
|
95 | */) ;; |
|
|
96 | *) as_dir=$as_dir/ ;; |
|
|
97 | esac |
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
98 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
79 | done |
99 | done |
80 | IFS=$as_save_IFS |
100 | IFS=$as_save_IFS |
81 | |
101 | |
82 | ;; |
102 | ;; |
83 | esac |
103 | esac |
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
85 | # in which case we are not to be found in the path. |
105 | # in which case we are not to be found in the path. |
86 | if test "x$as_myself" = x; then |
106 | if test "x$as_myself" = x; then |
87 | as_myself=$0 |
107 | as_myself=$0 |
88 | fi |
108 | fi |
89 | if test ! -f "$as_myself"; then |
109 | if test ! -f "$as_myself"; then |
90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
110 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
91 | { (exit 1); exit 1; } |
111 | exit 1 |
92 | fi |
112 | fi |
93 | |
113 | |
94 | # Work around bugs in pre-3.0 UWIN ksh. |
114 | |
95 | for as_var in ENV MAIL MAILPATH |
115 | # Use a proper internal environment variable to ensure we don't fall |
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
116 | # into an infinite loop, continuously re-executing ourselves. |
|
|
117 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
|
|
118 | _as_can_reexec=no; export _as_can_reexec; |
|
|
119 | # We cannot yet assume a decent shell, so we have to provide a |
|
|
120 | # neutralization value for shells without unset; and this also |
|
|
121 | # works around shells that cannot unset nonexistent variables. |
|
|
122 | # Preserve -v and -x to the replacement shell. |
|
|
123 | BASH_ENV=/dev/null |
|
|
124 | ENV=/dev/null |
|
|
125 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|
|
126 | case $- in # (((( |
|
|
127 | *v*x* | *x*v* ) as_opts=-vx ;; |
|
|
128 | *v* ) as_opts=-v ;; |
|
|
129 | *x* ) as_opts=-x ;; |
|
|
130 | * ) as_opts= ;; |
|
|
131 | esac |
|
|
132 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
|
|
133 | # Admittedly, this is quite paranoid, since all the known shells bail |
|
|
134 | # out after a failed `exec'. |
|
|
135 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
|
|
136 | exit 255 |
|
|
137 | fi |
|
|
138 | # We don't want this to propagate to other subprocesses. |
|
|
139 | { _as_can_reexec=; unset _as_can_reexec;} |
|
|
140 | if test "x$CONFIG_SHELL" = x; then |
|
|
141 | as_bourne_compatible="as_nop=: |
|
|
142 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
143 | then : |
|
|
144 | emulate sh |
|
|
145 | NULLCMD=: |
|
|
146 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
|
|
147 | # is contrary to our usage. Disable this feature. |
|
|
148 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
|
|
149 | setopt NO_GLOB_SUBST |
|
|
150 | else \$as_nop |
|
|
151 | case \`(set -o) 2>/dev/null\` in #( |
|
|
152 | *posix*) : |
|
|
153 | set -o posix ;; #( |
|
|
154 | *) : |
|
|
155 | ;; |
|
|
156 | esac |
|
|
157 | fi |
|
|
158 | " |
|
|
159 | as_required="as_fn_return () { (exit \$1); } |
|
|
160 | as_fn_success () { as_fn_return 0; } |
|
|
161 | as_fn_failure () { as_fn_return 1; } |
|
|
162 | as_fn_ret_success () { return 0; } |
|
|
163 | as_fn_ret_failure () { return 1; } |
|
|
164 | |
|
|
165 | exitcode=0 |
|
|
166 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
|
|
167 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
|
|
168 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
|
|
169 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
|
|
170 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
|
|
171 | then : |
|
|
172 | |
|
|
173 | else \$as_nop |
|
|
174 | exitcode=1; echo positional parameters were not saved. |
|
|
175 | fi |
|
|
176 | test x\$exitcode = x0 || exit 1 |
|
|
177 | blah=\$(echo \$(echo blah)) |
|
|
178 | test x\"\$blah\" = xblah || exit 1 |
|
|
179 | test -x / || exit 1" |
|
|
180 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
|
|
181 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
|
|
182 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
|
|
183 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
|
|
184 | test \$(( 1 + 1 )) = 2 || exit 1" |
|
|
185 | if (eval "$as_required") 2>/dev/null |
|
|
186 | then : |
|
|
187 | as_have_required=yes |
|
|
188 | else $as_nop |
|
|
189 | as_have_required=no |
|
|
190 | fi |
|
|
191 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
|
|
192 | then : |
|
|
193 | |
|
|
194 | else $as_nop |
|
|
195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
196 | as_found=false |
|
|
197 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
|
198 | do |
|
|
199 | IFS=$as_save_IFS |
|
|
200 | case $as_dir in #((( |
|
|
201 | '') as_dir=./ ;; |
|
|
202 | */) ;; |
|
|
203 | *) as_dir=$as_dir/ ;; |
|
|
204 | esac |
|
|
205 | as_found=: |
|
|
206 | case $as_dir in #( |
|
|
207 | /*) |
|
|
208 | for as_base in sh bash ksh sh5; do |
|
|
209 | # Try only shells that exist, to save several forks. |
|
|
210 | as_shell=$as_dir$as_base |
|
|
211 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
|
|
212 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
|
|
213 | then : |
|
|
214 | CONFIG_SHELL=$as_shell as_have_required=yes |
|
|
215 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
|
|
216 | then : |
|
|
217 | break 2 |
|
|
218 | fi |
|
|
219 | fi |
|
|
220 | done;; |
|
|
221 | esac |
|
|
222 | as_found=false |
97 | done |
223 | done |
98 | PS1='$ ' |
224 | IFS=$as_save_IFS |
99 | PS2='> ' |
225 | if $as_found |
100 | PS4='+ ' |
226 | then : |
101 | |
227 | |
102 | # NLS nuisances. |
228 | else $as_nop |
103 | for as_var in \ |
229 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
230 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
231 | then : |
106 | LC_TELEPHONE LC_TIME |
232 | CONFIG_SHELL=$SHELL as_have_required=yes |
107 | do |
233 | fi |
108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
234 | fi |
109 | eval $as_var=C; export $as_var |
235 | |
|
|
236 | |
|
|
237 | if test "x$CONFIG_SHELL" != x |
|
|
238 | then : |
|
|
239 | export CONFIG_SHELL |
|
|
240 | # We cannot yet assume a decent shell, so we have to provide a |
|
|
241 | # neutralization value for shells without unset; and this also |
|
|
242 | # works around shells that cannot unset nonexistent variables. |
|
|
243 | # Preserve -v and -x to the replacement shell. |
|
|
244 | BASH_ENV=/dev/null |
|
|
245 | ENV=/dev/null |
|
|
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|
|
247 | case $- in # (((( |
|
|
248 | *v*x* | *x*v* ) as_opts=-vx ;; |
|
|
249 | *v* ) as_opts=-v ;; |
|
|
250 | *x* ) as_opts=-x ;; |
|
|
251 | * ) as_opts= ;; |
|
|
252 | esac |
|
|
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
|
|
254 | # Admittedly, this is quite paranoid, since all the known shells bail |
|
|
255 | # out after a failed `exec'. |
|
|
256 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
|
|
257 | exit 255 |
|
|
258 | fi |
|
|
259 | |
|
|
260 | if test x$as_have_required = xno |
|
|
261 | then : |
|
|
262 | printf "%s\n" "$0: This script requires a shell more modern than all" |
|
|
263 | printf "%s\n" "$0: the shells that I found on your system." |
|
|
264 | if test ${ZSH_VERSION+y} ; then |
|
|
265 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
|
|
266 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
110 | else |
267 | else |
111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
268 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, |
|
|
269 | $0: including any error possibly output before this |
|
|
270 | $0: message. Then install a modern shell, or manually run |
|
|
271 | $0: the script under such a shell if you do have one." |
112 | fi |
272 | fi |
113 | done |
273 | exit 1 |
|
|
274 | fi |
|
|
275 | fi |
|
|
276 | fi |
|
|
277 | SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
278 | export SHELL |
|
|
279 | # Unset more variables known to interfere with behavior of common tools. |
|
|
280 | CLICOLOR_FORCE= GREP_OPTIONS= |
|
|
281 | unset CLICOLOR_FORCE GREP_OPTIONS |
114 | |
282 | |
115 | # Required to use basename. |
283 | ## --------------------- ## |
|
|
284 | ## M4sh Shell Functions. ## |
|
|
285 | ## --------------------- ## |
|
|
286 | # as_fn_unset VAR |
|
|
287 | # --------------- |
|
|
288 | # Portably unset VAR. |
|
|
289 | as_fn_unset () |
|
|
290 | { |
|
|
291 | { eval $1=; unset $1;} |
|
|
292 | } |
|
|
293 | as_unset=as_fn_unset |
|
|
294 | |
|
|
295 | |
|
|
296 | # as_fn_set_status STATUS |
|
|
297 | # ----------------------- |
|
|
298 | # Set $? to STATUS, without forking. |
|
|
299 | as_fn_set_status () |
|
|
300 | { |
|
|
301 | return $1 |
|
|
302 | } # as_fn_set_status |
|
|
303 | |
|
|
304 | # as_fn_exit STATUS |
|
|
305 | # ----------------- |
|
|
306 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|
|
307 | as_fn_exit () |
|
|
308 | { |
|
|
309 | set +e |
|
|
310 | as_fn_set_status $1 |
|
|
311 | exit $1 |
|
|
312 | } # as_fn_exit |
|
|
313 | # as_fn_nop |
|
|
314 | # --------- |
|
|
315 | # Do nothing but, unlike ":", preserve the value of $?. |
|
|
316 | as_fn_nop () |
|
|
317 | { |
|
|
318 | return $? |
|
|
319 | } |
|
|
320 | as_nop=as_fn_nop |
|
|
321 | |
|
|
322 | # as_fn_mkdir_p |
|
|
323 | # ------------- |
|
|
324 | # Create "$as_dir" as a directory, including parents if necessary. |
|
|
325 | as_fn_mkdir_p () |
|
|
326 | { |
|
|
327 | |
|
|
328 | case $as_dir in #( |
|
|
329 | -*) as_dir=./$as_dir;; |
|
|
330 | esac |
|
|
331 | test -d "$as_dir" || eval $as_mkdir_p || { |
|
|
332 | as_dirs= |
|
|
333 | while :; do |
|
|
334 | case $as_dir in #( |
|
|
335 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|
|
336 | *) as_qdir=$as_dir;; |
|
|
337 | esac |
|
|
338 | as_dirs="'$as_qdir' $as_dirs" |
|
|
339 | as_dir=`$as_dirname -- "$as_dir" || |
|
|
340 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
341 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
|
342 | X"$as_dir" : 'X\(//\)$' \| \ |
|
|
343 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
|
344 | printf "%s\n" X"$as_dir" | |
|
|
345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
|
346 | s//\1/ |
|
|
347 | q |
|
|
348 | } |
|
|
349 | /^X\(\/\/\)[^/].*/{ |
|
|
350 | s//\1/ |
|
|
351 | q |
|
|
352 | } |
|
|
353 | /^X\(\/\/\)$/{ |
|
|
354 | s//\1/ |
|
|
355 | q |
|
|
356 | } |
|
|
357 | /^X\(\/\).*/{ |
|
|
358 | s//\1/ |
|
|
359 | q |
|
|
360 | } |
|
|
361 | s/.*/./; q'` |
|
|
362 | test -d "$as_dir" && break |
|
|
363 | done |
|
|
364 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
|
365 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
|
|
366 | |
|
|
367 | |
|
|
368 | } # as_fn_mkdir_p |
|
|
369 | |
|
|
370 | # as_fn_executable_p FILE |
|
|
371 | # ----------------------- |
|
|
372 | # Test if FILE is an executable regular file. |
|
|
373 | as_fn_executable_p () |
|
|
374 | { |
|
|
375 | test -f "$1" && test -x "$1" |
|
|
376 | } # as_fn_executable_p |
|
|
377 | # as_fn_append VAR VALUE |
|
|
378 | # ---------------------- |
|
|
379 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
|
|
380 | # advantage of any shell optimizations that allow amortized linear growth over |
|
|
381 | # repeated appends, instead of the typical quadratic growth present in naive |
|
|
382 | # implementations. |
|
|
383 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
|
|
384 | then : |
|
|
385 | eval 'as_fn_append () |
|
|
386 | { |
|
|
387 | eval $1+=\$2 |
|
|
388 | }' |
|
|
389 | else $as_nop |
|
|
390 | as_fn_append () |
|
|
391 | { |
|
|
392 | eval $1=\$$1\$2 |
|
|
393 | } |
|
|
394 | fi # as_fn_append |
|
|
395 | |
|
|
396 | # as_fn_arith ARG... |
|
|
397 | # ------------------ |
|
|
398 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
|
|
399 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
|
|
400 | # must be portable across $(()) and expr. |
|
|
401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
|
|
402 | then : |
|
|
403 | eval 'as_fn_arith () |
|
|
404 | { |
|
|
405 | as_val=$(( $* )) |
|
|
406 | }' |
|
|
407 | else $as_nop |
|
|
408 | as_fn_arith () |
|
|
409 | { |
|
|
410 | as_val=`expr "$@" || test $? -eq 1` |
|
|
411 | } |
|
|
412 | fi # as_fn_arith |
|
|
413 | |
|
|
414 | # as_fn_nop |
|
|
415 | # --------- |
|
|
416 | # Do nothing but, unlike ":", preserve the value of $?. |
|
|
417 | as_fn_nop () |
|
|
418 | { |
|
|
419 | return $? |
|
|
420 | } |
|
|
421 | as_nop=as_fn_nop |
|
|
422 | |
|
|
423 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
|
|
424 | # ---------------------------------------- |
|
|
425 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|
|
426 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|
|
427 | # script with STATUS, using 1 if that was 0. |
|
|
428 | as_fn_error () |
|
|
429 | { |
|
|
430 | as_status=$1; test $as_status -eq 0 && as_status=1 |
|
|
431 | if test "$4"; then |
|
|
432 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
433 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
|
|
434 | fi |
|
|
435 | printf "%s\n" "$as_me: error: $2" >&2 |
|
|
436 | as_fn_exit $as_status |
|
|
437 | } # as_fn_error |
|
|
438 | |
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
439 | if expr a : '\(a\)' >/dev/null 2>&1 && |
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
440 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
118 | as_expr=expr |
441 | as_expr=expr |
119 | else |
442 | else |
120 | as_expr=false |
443 | as_expr=false |
… | |
… | |
124 | as_basename=basename |
447 | as_basename=basename |
125 | else |
448 | else |
126 | as_basename=false |
449 | as_basename=false |
127 | fi |
450 | fi |
128 | |
451 | |
|
|
452 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
|
453 | as_dirname=dirname |
|
|
454 | else |
|
|
455 | as_dirname=false |
|
|
456 | fi |
129 | |
457 | |
130 | # Name of the executable. |
|
|
131 | as_me=`$as_basename -- "$0" || |
458 | as_me=`$as_basename -- "$0" || |
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
459 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
133 | X"$0" : 'X\(//\)$' \| \ |
460 | X"$0" : 'X\(//\)$' \| \ |
134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
461 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
135 | echo X/"$0" | |
462 | printf "%s\n" X/"$0" | |
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
463 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
137 | s//\1/ |
464 | s//\1/ |
138 | q |
465 | q |
139 | } |
466 | } |
140 | /^X\/\(\/\/\)$/{ |
467 | /^X\/\(\/\/\)$/{ |
… | |
… | |
145 | s//\1/ |
472 | s//\1/ |
146 | q |
473 | q |
147 | } |
474 | } |
148 | s/.*/./; q'` |
475 | s/.*/./; q'` |
149 | |
476 | |
150 | # CDPATH. |
477 | # Avoid depending upon Character Ranges. |
151 | $as_unset CDPATH |
478 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
479 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
480 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
|
481 | as_cr_digits='0123456789' |
|
|
482 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
152 | |
483 | |
153 | |
484 | |
154 | if test "x$CONFIG_SHELL" = x; then |
485 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
155 | if (eval ":") 2>/dev/null; then |
486 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
156 | as_have_required=yes |
|
|
157 | else |
|
|
158 | as_have_required=no |
|
|
159 | fi |
|
|
160 | |
|
|
161 | if test $as_have_required = yes && (eval ": |
|
|
162 | (as_func_return () { |
|
|
163 | (exit \$1) |
|
|
164 | } |
|
|
165 | as_func_success () { |
|
|
166 | as_func_return 0 |
|
|
167 | } |
|
|
168 | as_func_failure () { |
|
|
169 | as_func_return 1 |
|
|
170 | } |
|
|
171 | as_func_ret_success () { |
|
|
172 | return 0 |
|
|
173 | } |
|
|
174 | as_func_ret_failure () { |
|
|
175 | return 1 |
|
|
176 | } |
|
|
177 | |
|
|
178 | exitcode=0 |
|
|
179 | if as_func_success; then |
|
|
180 | : |
|
|
181 | else |
|
|
182 | exitcode=1 |
|
|
183 | echo as_func_success failed. |
|
|
184 | fi |
|
|
185 | |
|
|
186 | if as_func_failure; then |
|
|
187 | exitcode=1 |
|
|
188 | echo as_func_failure succeeded. |
|
|
189 | fi |
|
|
190 | |
|
|
191 | if as_func_ret_success; then |
|
|
192 | : |
|
|
193 | else |
|
|
194 | exitcode=1 |
|
|
195 | echo as_func_ret_success failed. |
|
|
196 | fi |
|
|
197 | |
|
|
198 | if as_func_ret_failure; then |
|
|
199 | exitcode=1 |
|
|
200 | echo as_func_ret_failure succeeded. |
|
|
201 | fi |
|
|
202 | |
|
|
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
|
|
204 | : |
|
|
205 | else |
|
|
206 | exitcode=1 |
|
|
207 | echo positional parameters were not saved. |
|
|
208 | fi |
|
|
209 | |
|
|
210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
|
|
211 | |
|
|
212 | ( |
|
|
213 | as_lineno_1=\$LINENO |
|
|
214 | as_lineno_2=\$LINENO |
|
|
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
|
|
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
|
|
217 | ") 2> /dev/null; then |
|
|
218 | : |
|
|
219 | else |
|
|
220 | as_candidate_shells= |
|
|
221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
|
223 | do |
|
|
224 | IFS=$as_save_IFS |
|
|
225 | test -z "$as_dir" && as_dir=. |
|
|
226 | case $as_dir in |
|
|
227 | /*) |
|
|
228 | for as_base in sh bash ksh sh5; do |
|
|
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
|
|
230 | done;; |
|
|
231 | esac |
|
|
232 | done |
|
|
233 | IFS=$as_save_IFS |
|
|
234 | |
|
|
235 | |
|
|
236 | for as_shell in $as_candidate_shells $SHELL; do |
|
|
237 | # Try only shells that exist, to save several forks. |
|
|
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
|
|
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
|
|
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
|
241 | emulate sh |
|
|
242 | NULLCMD=: |
|
|
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
|
244 | # is contrary to our usage. Disable this feature. |
|
|
245 | alias -g '${1+"$@"}'='"$@"' |
|
|
246 | setopt NO_GLOB_SUBST |
|
|
247 | else |
|
|
248 | case `(set -o) 2>/dev/null` in |
|
|
249 | *posix*) set -o posix ;; |
|
|
250 | esac |
|
|
251 | |
|
|
252 | fi |
|
|
253 | |
|
|
254 | |
|
|
255 | : |
|
|
256 | _ASEOF |
|
|
257 | }; then |
|
|
258 | CONFIG_SHELL=$as_shell |
|
|
259 | as_have_required=yes |
|
|
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
|
|
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
|
262 | emulate sh |
|
|
263 | NULLCMD=: |
|
|
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
|
265 | # is contrary to our usage. Disable this feature. |
|
|
266 | alias -g '${1+"$@"}'='"$@"' |
|
|
267 | setopt NO_GLOB_SUBST |
|
|
268 | else |
|
|
269 | case `(set -o) 2>/dev/null` in |
|
|
270 | *posix*) set -o posix ;; |
|
|
271 | esac |
|
|
272 | |
|
|
273 | fi |
|
|
274 | |
|
|
275 | |
|
|
276 | : |
|
|
277 | (as_func_return () { |
|
|
278 | (exit $1) |
|
|
279 | } |
|
|
280 | as_func_success () { |
|
|
281 | as_func_return 0 |
|
|
282 | } |
|
|
283 | as_func_failure () { |
|
|
284 | as_func_return 1 |
|
|
285 | } |
|
|
286 | as_func_ret_success () { |
|
|
287 | return 0 |
|
|
288 | } |
|
|
289 | as_func_ret_failure () { |
|
|
290 | return 1 |
|
|
291 | } |
|
|
292 | |
|
|
293 | exitcode=0 |
|
|
294 | if as_func_success; then |
|
|
295 | : |
|
|
296 | else |
|
|
297 | exitcode=1 |
|
|
298 | echo as_func_success failed. |
|
|
299 | fi |
|
|
300 | |
|
|
301 | if as_func_failure; then |
|
|
302 | exitcode=1 |
|
|
303 | echo as_func_failure succeeded. |
|
|
304 | fi |
|
|
305 | |
|
|
306 | if as_func_ret_success; then |
|
|
307 | : |
|
|
308 | else |
|
|
309 | exitcode=1 |
|
|
310 | echo as_func_ret_success failed. |
|
|
311 | fi |
|
|
312 | |
|
|
313 | if as_func_ret_failure; then |
|
|
314 | exitcode=1 |
|
|
315 | echo as_func_ret_failure succeeded. |
|
|
316 | fi |
|
|
317 | |
|
|
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
|
|
319 | : |
|
|
320 | else |
|
|
321 | exitcode=1 |
|
|
322 | echo positional parameters were not saved. |
|
|
323 | fi |
|
|
324 | |
|
|
325 | test $exitcode = 0) || { (exit 1); exit 1; } |
|
|
326 | |
|
|
327 | ( |
|
|
328 | as_lineno_1=$LINENO |
|
|
329 | as_lineno_2=$LINENO |
|
|
330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
487 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
|
|
332 | |
|
|
333 | _ASEOF |
|
|
334 | }; then |
|
|
335 | break |
|
|
336 | fi |
|
|
337 | |
|
|
338 | fi |
|
|
339 | |
|
|
340 | done |
|
|
341 | |
|
|
342 | if test "x$CONFIG_SHELL" != x; then |
|
|
343 | for as_var in BASH_ENV ENV |
|
|
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
|
345 | done |
|
|
346 | export CONFIG_SHELL |
|
|
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
|
|
348 | fi |
|
|
349 | |
|
|
350 | |
|
|
351 | if test $as_have_required = no; then |
|
|
352 | echo This script requires a shell more modern than all the |
|
|
353 | echo shells that I found on your system. Please install a |
|
|
354 | echo modern shell, or manually run the script under such a |
|
|
355 | echo shell if you do have one. |
|
|
356 | { (exit 1); exit 1; } |
|
|
357 | fi |
|
|
358 | |
|
|
359 | |
|
|
360 | fi |
|
|
361 | |
|
|
362 | fi |
|
|
363 | |
|
|
364 | |
|
|
365 | |
|
|
366 | (eval "as_func_return () { |
|
|
367 | (exit \$1) |
|
|
368 | } |
|
|
369 | as_func_success () { |
|
|
370 | as_func_return 0 |
|
|
371 | } |
|
|
372 | as_func_failure () { |
|
|
373 | as_func_return 1 |
|
|
374 | } |
|
|
375 | as_func_ret_success () { |
|
|
376 | return 0 |
|
|
377 | } |
|
|
378 | as_func_ret_failure () { |
|
|
379 | return 1 |
|
|
380 | } |
|
|
381 | |
|
|
382 | exitcode=0 |
|
|
383 | if as_func_success; then |
|
|
384 | : |
|
|
385 | else |
|
|
386 | exitcode=1 |
|
|
387 | echo as_func_success failed. |
|
|
388 | fi |
|
|
389 | |
|
|
390 | if as_func_failure; then |
|
|
391 | exitcode=1 |
|
|
392 | echo as_func_failure succeeded. |
|
|
393 | fi |
|
|
394 | |
|
|
395 | if as_func_ret_success; then |
|
|
396 | : |
|
|
397 | else |
|
|
398 | exitcode=1 |
|
|
399 | echo as_func_ret_success failed. |
|
|
400 | fi |
|
|
401 | |
|
|
402 | if as_func_ret_failure; then |
|
|
403 | exitcode=1 |
|
|
404 | echo as_func_ret_failure succeeded. |
|
|
405 | fi |
|
|
406 | |
|
|
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
|
|
408 | : |
|
|
409 | else |
|
|
410 | exitcode=1 |
|
|
411 | echo positional parameters were not saved. |
|
|
412 | fi |
|
|
413 | |
|
|
414 | test \$exitcode = 0") || { |
|
|
415 | echo No shell found that supports shell functions. |
|
|
416 | echo Please tell autoconf@gnu.org about your system, |
|
|
417 | echo including any error possibly output before this |
|
|
418 | echo message |
|
|
419 | } |
|
|
420 | |
|
|
421 | |
|
|
422 | |
|
|
423 | as_lineno_1=$LINENO |
|
|
424 | as_lineno_2=$LINENO |
|
|
425 | test "x$as_lineno_1" != "x$as_lineno_2" && |
|
|
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
488 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
427 | |
|
|
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
|
429 | # uniformly replaced by the line number. The first 'sed' inserts a |
|
|
430 | # line-number line after each line using $LINENO; the second 'sed' |
|
|
431 | # does the real work. The second script uses 'N' to pair each |
|
|
432 | # line-number line with the line containing $LINENO, and appends |
|
|
433 | # trailing '-' during substitution so that $LINENO is not a special |
|
|
434 | # case at line end. |
|
|
435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
|
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
|
|
437 | # E. McMahon (1931-1989) for sed's syntax. :-) |
489 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
438 | sed -n ' |
490 | sed -n ' |
439 | p |
491 | p |
440 | /[$]LINENO/= |
492 | /[$]LINENO/= |
441 | ' <$as_myself | |
493 | ' <$as_myself | |
442 | sed ' |
494 | sed ' |
… | |
… | |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
501 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
450 | t loop |
502 | t loop |
451 | s/-\n.*// |
503 | s/-\n.*// |
452 | ' >$as_me.lineno && |
504 | ' >$as_me.lineno && |
453 | chmod +x "$as_me.lineno" || |
505 | chmod +x "$as_me.lineno" || |
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
506 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
455 | { (exit 1); exit 1; }; } |
|
|
456 | |
507 | |
|
|
508 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
|
|
509 | # already done that, so ensure we don't try to do so again and fall |
|
|
510 | # in an infinite loop. This has already happened in practice. |
|
|
511 | _as_can_reexec=no; export _as_can_reexec |
457 | # Don't try to exec as it changes $[0], causing all sort of problems |
512 | # Don't try to exec as it changes $[0], causing all sort of problems |
458 | # (the dirname of $[0] is not the place where we might find the |
513 | # (the dirname of $[0] is not the place where we might find the |
459 | # original and so on. Autoconf is especially sensitive to this). |
514 | # original and so on. Autoconf is especially sensitive to this). |
460 | . "./$as_me.lineno" |
515 | . "./$as_me.lineno" |
461 | # Exit status is that of the last command. |
516 | # Exit status is that of the last command. |
462 | exit |
517 | exit |
463 | } |
518 | } |
464 | |
519 | |
465 | |
520 | |
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
521 | # Determine whether it's possible to make 'echo' print without a newline. |
467 | as_dirname=dirname |
522 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
468 | else |
523 | # for compatibility with existing Makefiles. |
469 | as_dirname=false |
|
|
470 | fi |
|
|
471 | |
|
|
472 | ECHO_C= ECHO_N= ECHO_T= |
524 | ECHO_C= ECHO_N= ECHO_T= |
473 | case `echo -n x` in |
525 | case `echo -n x` in #((((( |
474 | -n*) |
526 | -n*) |
475 | case `echo 'x\c'` in |
527 | case `echo 'xy\c'` in |
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
528 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
477 | *) ECHO_C='\c';; |
529 | xy) ECHO_C='\c';; |
|
|
530 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|
|
531 | ECHO_T=' ';; |
478 | esac;; |
532 | esac;; |
479 | *) |
533 | *) |
480 | ECHO_N='-n';; |
534 | ECHO_N='-n';; |
481 | esac |
535 | esac |
482 | |
536 | |
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
537 | # For backward compatibility with old third-party macros, we provide |
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
538 | # the shell variables $as_echo and $as_echo_n. New code should use |
485 | as_expr=expr |
539 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
486 | else |
540 | as_echo='printf %s\n' |
487 | as_expr=false |
541 | as_echo_n='printf %s' |
488 | fi |
542 | |
489 | |
543 | |
490 | rm -f conf$$ conf$$.exe conf$$.file |
544 | rm -f conf$$ conf$$.exe conf$$.file |
491 | if test -d conf$$.dir; then |
545 | if test -d conf$$.dir; then |
492 | rm -f conf$$.dir/conf$$.file |
546 | rm -f conf$$.dir/conf$$.file |
493 | else |
547 | else |
494 | rm -f conf$$.dir |
548 | rm -f conf$$.dir |
495 | mkdir conf$$.dir |
549 | mkdir conf$$.dir 2>/dev/null |
496 | fi |
550 | fi |
497 | echo >conf$$.file |
551 | if (echo >conf$$.file) 2>/dev/null; then |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
552 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
499 | as_ln_s='ln -s' |
553 | as_ln_s='ln -s' |
500 | # ... but there are two gotchas: |
554 | # ... but there are two gotchas: |
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
555 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
556 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
503 | # In both cases, we have to default to `cp -p'. |
557 | # In both cases, we have to default to `cp -pR'. |
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
558 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
505 | as_ln_s='cp -p' |
559 | as_ln_s='cp -pR' |
506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
560 | elif ln conf$$.file conf$$ 2>/dev/null; then |
507 | as_ln_s=ln |
561 | as_ln_s=ln |
|
|
562 | else |
|
|
563 | as_ln_s='cp -pR' |
|
|
564 | fi |
508 | else |
565 | else |
509 | as_ln_s='cp -p' |
566 | as_ln_s='cp -pR' |
510 | fi |
567 | fi |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
568 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
512 | rmdir conf$$.dir 2>/dev/null |
569 | rmdir conf$$.dir 2>/dev/null |
513 | |
570 | |
514 | if mkdir -p . 2>/dev/null; then |
571 | if mkdir -p . 2>/dev/null; then |
515 | as_mkdir_p=: |
572 | as_mkdir_p='mkdir -p "$as_dir"' |
516 | else |
573 | else |
517 | test -d ./-p && rmdir ./-p |
574 | test -d ./-p && rmdir ./-p |
518 | as_mkdir_p=false |
575 | as_mkdir_p=false |
519 | fi |
576 | fi |
520 | |
577 | |
521 | if test -x / >/dev/null 2>&1; then |
|
|
522 | as_test_x='test -x' |
578 | as_test_x='test -x' |
523 | else |
579 | as_executable_p=as_fn_executable_p |
524 | if ls -dL / >/dev/null 2>&1; then |
|
|
525 | as_ls_L_option=L |
|
|
526 | else |
|
|
527 | as_ls_L_option= |
|
|
528 | fi |
|
|
529 | as_test_x=' |
|
|
530 | eval sh -c '\'' |
|
|
531 | if test -d "$1"; then |
|
|
532 | test -d "$1/."; |
|
|
533 | else |
|
|
534 | case $1 in |
|
|
535 | -*)set "./$1";; |
|
|
536 | esac; |
|
|
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
|
|
538 | ???[sx]*):;;*)false;;esac;fi |
|
|
539 | '\'' sh |
|
|
540 | ' |
|
|
541 | fi |
|
|
542 | as_executable_p=$as_test_x |
|
|
543 | |
580 | |
544 | # Sed expression to map a string onto a valid CPP name. |
581 | # Sed expression to map a string onto a valid CPP name. |
545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
582 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
546 | |
583 | |
547 | # Sed expression to map a string onto a valid variable name. |
584 | # Sed expression to map a string onto a valid variable name. |
548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
585 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
549 | |
586 | |
550 | |
587 | |
551 | |
588 | test -n "$DJDIR" || exec 7<&0 </dev/null |
552 | exec 7<&0 </dev/null 6>&1 |
589 | exec 6>&1 |
553 | |
590 | |
554 | # Name of the host. |
591 | # Name of the host. |
555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
592 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
556 | # so uname gets run too. |
593 | # so uname gets run too. |
557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
594 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
558 | |
595 | |
559 | # |
596 | # |
560 | # Initializations. |
597 | # Initializations. |
… | |
… | |
565 | LIBOBJS= |
602 | LIBOBJS= |
566 | cross_compiling=no |
603 | cross_compiling=no |
567 | subdirs= |
604 | subdirs= |
568 | MFLAGS= |
605 | MFLAGS= |
569 | MAKEFLAGS= |
606 | MAKEFLAGS= |
570 | SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
571 | |
607 | |
572 | # Identity of this package. |
608 | # Identity of this package. |
573 | PACKAGE_NAME= |
609 | PACKAGE_NAME='' |
574 | PACKAGE_TARNAME= |
610 | PACKAGE_TARNAME='' |
575 | PACKAGE_VERSION= |
611 | PACKAGE_VERSION='' |
576 | PACKAGE_STRING= |
612 | PACKAGE_STRING='' |
577 | PACKAGE_BUGREPORT= |
613 | PACKAGE_BUGREPORT='' |
|
|
614 | PACKAGE_URL='' |
578 | |
615 | |
579 | ac_unique_file="src/feature.h" |
616 | ac_unique_file="src/feature.h" |
580 | # Factoring default headers for most tests. |
617 | # Factoring default headers for most tests. |
581 | ac_includes_default="\ |
618 | ac_includes_default="\ |
|
|
619 | #include <stddef.h> |
|
|
620 | #ifdef HAVE_STDIO_H |
582 | #include <stdio.h> |
621 | # include <stdio.h> |
583 | #ifdef HAVE_SYS_TYPES_H |
|
|
584 | # include <sys/types.h> |
|
|
585 | #endif |
622 | #endif |
586 | #ifdef HAVE_SYS_STAT_H |
623 | #ifdef HAVE_STDLIB_H |
587 | # include <sys/stat.h> |
|
|
588 | #endif |
|
|
589 | #ifdef STDC_HEADERS |
|
|
590 | # include <stdlib.h> |
624 | # include <stdlib.h> |
591 | # include <stddef.h> |
|
|
592 | #else |
|
|
593 | # ifdef HAVE_STDLIB_H |
|
|
594 | # include <stdlib.h> |
|
|
595 | # endif |
|
|
596 | #endif |
625 | #endif |
597 | #ifdef HAVE_STRING_H |
626 | #ifdef HAVE_STRING_H |
598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
|
|
599 | # include <memory.h> |
|
|
600 | # endif |
|
|
601 | # include <string.h> |
627 | # include <string.h> |
602 | #endif |
|
|
603 | #ifdef HAVE_STRINGS_H |
|
|
604 | # include <strings.h> |
|
|
605 | #endif |
628 | #endif |
606 | #ifdef HAVE_INTTYPES_H |
629 | #ifdef HAVE_INTTYPES_H |
607 | # include <inttypes.h> |
630 | # include <inttypes.h> |
608 | #endif |
631 | #endif |
609 | #ifdef HAVE_STDINT_H |
632 | #ifdef HAVE_STDINT_H |
610 | # include <stdint.h> |
633 | # include <stdint.h> |
611 | #endif |
634 | #endif |
|
|
635 | #ifdef HAVE_STRINGS_H |
|
|
636 | # include <strings.h> |
|
|
637 | #endif |
|
|
638 | #ifdef HAVE_SYS_TYPES_H |
|
|
639 | # include <sys/types.h> |
|
|
640 | #endif |
|
|
641 | #ifdef HAVE_SYS_STAT_H |
|
|
642 | # include <sys/stat.h> |
|
|
643 | #endif |
612 | #ifdef HAVE_UNISTD_H |
644 | #ifdef HAVE_UNISTD_H |
613 | # include <unistd.h> |
645 | # include <unistd.h> |
614 | #endif" |
646 | #endif" |
615 | |
647 | |
616 | ac_subst_vars='SHELL |
648 | ac_header_c_list= |
|
|
649 | ac_subst_vars='LTLIBOBJS |
|
|
650 | LIBOBJS |
|
|
651 | PERL_O |
|
|
652 | IF_PERL |
|
|
653 | PERLPRIVLIBEXP |
|
|
654 | PERLFLAGS |
|
|
655 | PERLLIB |
|
|
656 | PERL |
|
|
657 | XFT_CONFIG |
|
|
658 | EGREP |
|
|
659 | GREP |
|
|
660 | STARTUP_NOTIFICATION_LIBS |
|
|
661 | STARTUP_NOTIFICATION_CFLAGS |
|
|
662 | PIXBUF_LIBS |
|
|
663 | PIXBUF_CFLAGS |
|
|
664 | PTYTTY_LIBS |
|
|
665 | PTYTTY_CFLAGS |
|
|
666 | PKG_CONFIG |
|
|
667 | X_EXTRA_LIBS |
|
|
668 | X_LIBS |
|
|
669 | X_PRE_LIBS |
|
|
670 | X_CFLAGS |
|
|
671 | CXXCPP |
|
|
672 | XMKMF |
|
|
673 | TIC |
|
|
674 | RXVTNAME |
|
|
675 | LINKER |
|
|
676 | INSTALL_DATA |
|
|
677 | INSTALL_SCRIPT |
|
|
678 | INSTALL_PROGRAM |
|
|
679 | ac_ct_CXX |
|
|
680 | CXXFLAGS |
|
|
681 | CXX |
|
|
682 | OBJEXT |
|
|
683 | EXEEXT |
|
|
684 | ac_ct_CC |
|
|
685 | CPPFLAGS |
|
|
686 | LDFLAGS |
|
|
687 | CFLAGS |
|
|
688 | CC |
|
|
689 | DATE |
|
|
690 | VERSION |
|
|
691 | target_alias |
|
|
692 | host_alias |
|
|
693 | build_alias |
|
|
694 | LIBS |
|
|
695 | ECHO_T |
|
|
696 | ECHO_N |
|
|
697 | ECHO_C |
|
|
698 | DEFS |
|
|
699 | mandir |
|
|
700 | localedir |
|
|
701 | libdir |
|
|
702 | psdir |
|
|
703 | pdfdir |
|
|
704 | dvidir |
|
|
705 | htmldir |
|
|
706 | infodir |
|
|
707 | docdir |
|
|
708 | oldincludedir |
|
|
709 | includedir |
|
|
710 | runstatedir |
|
|
711 | localstatedir |
|
|
712 | sharedstatedir |
|
|
713 | sysconfdir |
|
|
714 | datadir |
|
|
715 | datarootdir |
|
|
716 | libexecdir |
|
|
717 | sbindir |
|
|
718 | bindir |
|
|
719 | program_transform_name |
|
|
720 | prefix |
|
|
721 | exec_prefix |
|
|
722 | PACKAGE_URL |
|
|
723 | PACKAGE_BUGREPORT |
|
|
724 | PACKAGE_STRING |
|
|
725 | PACKAGE_VERSION |
|
|
726 | PACKAGE_TARNAME |
|
|
727 | PACKAGE_NAME |
617 | PATH_SEPARATOR |
728 | PATH_SEPARATOR |
618 | PACKAGE_NAME |
729 | SHELL' |
619 | PACKAGE_TARNAME |
|
|
620 | PACKAGE_VERSION |
|
|
621 | PACKAGE_STRING |
|
|
622 | PACKAGE_BUGREPORT |
|
|
623 | exec_prefix |
|
|
624 | prefix |
|
|
625 | program_transform_name |
|
|
626 | bindir |
|
|
627 | sbindir |
|
|
628 | libexecdir |
|
|
629 | datarootdir |
|
|
630 | datadir |
|
|
631 | sysconfdir |
|
|
632 | sharedstatedir |
|
|
633 | localstatedir |
|
|
634 | includedir |
|
|
635 | oldincludedir |
|
|
636 | docdir |
|
|
637 | infodir |
|
|
638 | htmldir |
|
|
639 | dvidir |
|
|
640 | pdfdir |
|
|
641 | psdir |
|
|
642 | libdir |
|
|
643 | localedir |
|
|
644 | mandir |
|
|
645 | DEFS |
|
|
646 | ECHO_C |
|
|
647 | ECHO_N |
|
|
648 | ECHO_T |
|
|
649 | LIBS |
|
|
650 | build_alias |
|
|
651 | host_alias |
|
|
652 | target_alias |
|
|
653 | build |
|
|
654 | build_cpu |
|
|
655 | build_vendor |
|
|
656 | build_os |
|
|
657 | host |
|
|
658 | host_cpu |
|
|
659 | host_vendor |
|
|
660 | host_os |
|
|
661 | VERSION |
|
|
662 | DATE |
|
|
663 | LSMDATE |
|
|
664 | LIBVERSION |
|
|
665 | CC |
|
|
666 | CFLAGS |
|
|
667 | LDFLAGS |
|
|
668 | CPPFLAGS |
|
|
669 | ac_ct_CC |
|
|
670 | EXEEXT |
|
|
671 | OBJEXT |
|
|
672 | CXX |
|
|
673 | CXXFLAGS |
|
|
674 | ac_ct_CXX |
|
|
675 | CPP |
|
|
676 | INSTALL_PROGRAM |
|
|
677 | INSTALL_SCRIPT |
|
|
678 | INSTALL_DATA |
|
|
679 | GREP |
|
|
680 | EGREP |
|
|
681 | LINKER |
|
|
682 | INSTALL_LIBRXVT |
|
|
683 | RXVTNAME |
|
|
684 | MV |
|
|
685 | CP |
|
|
686 | LN |
|
|
687 | SED |
|
|
688 | ECHO |
|
|
689 | CMP |
|
|
690 | TIC |
|
|
691 | XMKMF |
|
|
692 | CXXCPP |
|
|
693 | X_CFLAGS |
|
|
694 | X_PRE_LIBS |
|
|
695 | X_LIBS |
|
|
696 | X_EXTRA_LIBS |
|
|
697 | XPM_CPPFLAGS |
|
|
698 | XPM_CFLAGS |
|
|
699 | XPM_LIBS |
|
|
700 | rxvt_int16_typedef |
|
|
701 | rxvt_uint16_typedef |
|
|
702 | rxvt_int32_typedef |
|
|
703 | rxvt_uint32_typedef |
|
|
704 | rxvt_intp_define |
|
|
705 | rxvt_u_intp_define |
|
|
706 | PKG_CONFIG |
|
|
707 | XFT_CONFIG |
|
|
708 | PERL |
|
|
709 | PERLLIB |
|
|
710 | PERLFLAGS |
|
|
711 | PERLPRIVLIBEXP |
|
|
712 | IF_PERL |
|
|
713 | PERL_O |
|
|
714 | DEBUG |
|
|
715 | DINCLUDE |
|
|
716 | DLIB |
|
|
717 | include_stdint_h |
|
|
718 | include_stdarg_h |
|
|
719 | include_stdlib_h |
|
|
720 | include_unistd_h |
|
|
721 | include_string_h |
|
|
722 | include_fcntl_h |
|
|
723 | include_util_h |
|
|
724 | include_assert_h |
|
|
725 | include_sys_ioctl_h |
|
|
726 | include_sys_select_h |
|
|
727 | include_sys_strredir_h |
|
|
728 | include_sys_time_h |
|
|
729 | include_time_h |
|
|
730 | LIBOBJS |
|
|
731 | LTLIBOBJS' |
|
|
732 | ac_subst_files='' |
730 | ac_subst_files='' |
|
|
731 | ac_user_opts=' |
|
|
732 | enable_option_checking |
|
|
733 | enable_everything |
|
|
734 | enable_assert |
|
|
735 | enable_warnings |
|
|
736 | enable_256_color |
|
|
737 | enable_unicode3 |
|
|
738 | enable_combining |
|
|
739 | enable_xft |
|
|
740 | enable_font_styles |
|
|
741 | enable_pixbuf |
|
|
742 | enable_startup_notification |
|
|
743 | enable_transparency |
|
|
744 | enable_fading |
|
|
745 | enable_rxvt_scroll |
|
|
746 | enable_next_scroll |
|
|
747 | enable_xterm_scroll |
|
|
748 | enable_perl |
|
|
749 | with_codesets |
|
|
750 | enable_xim |
|
|
751 | enable_backspace_key |
|
|
752 | enable_delete_key |
|
|
753 | enable_resources |
|
|
754 | enable_8bitctrls |
|
|
755 | enable_fallback |
|
|
756 | with_res_name |
|
|
757 | with_res_class |
|
|
758 | with_name |
|
|
759 | enable_swapscreen |
|
|
760 | enable_iso14755 |
|
|
761 | enable_frills |
|
|
762 | enable_keepscrolling |
|
|
763 | enable_selectionscrolling |
|
|
764 | enable_mousewheel |
|
|
765 | enable_slipwheeling |
|
|
766 | enable_smart_resize |
|
|
767 | enable_text_blink |
|
|
768 | enable_pointer_blank |
|
|
769 | with_term |
|
|
770 | with_terminfo |
|
|
771 | with_x |
|
|
772 | ' |
733 | ac_precious_vars='build_alias |
773 | ac_precious_vars='build_alias |
734 | host_alias |
774 | host_alias |
735 | target_alias |
775 | target_alias |
736 | CC |
776 | CC |
737 | CFLAGS |
777 | CFLAGS |
… | |
… | |
739 | LIBS |
779 | LIBS |
740 | CPPFLAGS |
780 | CPPFLAGS |
741 | CXX |
781 | CXX |
742 | CXXFLAGS |
782 | CXXFLAGS |
743 | CCC |
783 | CCC |
744 | CPP |
|
|
745 | XMKMF |
784 | XMKMF |
746 | CXXCPP' |
785 | CXXCPP' |
747 | |
786 | |
748 | |
787 | |
749 | # Initialize some variables set by options. |
788 | # Initialize some variables set by options. |
750 | ac_init_help= |
789 | ac_init_help= |
751 | ac_init_version=false |
790 | ac_init_version=false |
|
|
791 | ac_unrecognized_opts= |
|
|
792 | ac_unrecognized_sep= |
752 | # The variables have the same names as the options, with |
793 | # The variables have the same names as the options, with |
753 | # dashes changed to underlines. |
794 | # dashes changed to underlines. |
754 | cache_file=/dev/null |
795 | cache_file=/dev/null |
755 | exec_prefix=NONE |
796 | exec_prefix=NONE |
756 | no_create= |
797 | no_create= |
… | |
… | |
778 | datarootdir='${prefix}/share' |
819 | datarootdir='${prefix}/share' |
779 | datadir='${datarootdir}' |
820 | datadir='${datarootdir}' |
780 | sysconfdir='${prefix}/etc' |
821 | sysconfdir='${prefix}/etc' |
781 | sharedstatedir='${prefix}/com' |
822 | sharedstatedir='${prefix}/com' |
782 | localstatedir='${prefix}/var' |
823 | localstatedir='${prefix}/var' |
|
|
824 | runstatedir='${localstatedir}/run' |
783 | includedir='${prefix}/include' |
825 | includedir='${prefix}/include' |
784 | oldincludedir='/usr/include' |
826 | oldincludedir='/usr/include' |
785 | docdir='${datarootdir}/doc/${PACKAGE}' |
827 | docdir='${datarootdir}/doc/${PACKAGE}' |
786 | infodir='${datarootdir}/info' |
828 | infodir='${datarootdir}/info' |
787 | htmldir='${docdir}' |
829 | htmldir='${docdir}' |
… | |
… | |
802 | ac_prev= |
844 | ac_prev= |
803 | continue |
845 | continue |
804 | fi |
846 | fi |
805 | |
847 | |
806 | case $ac_option in |
848 | case $ac_option in |
807 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
849 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
|
|
850 | *=) ac_optarg= ;; |
808 | *) ac_optarg=yes ;; |
851 | *) ac_optarg=yes ;; |
809 | esac |
852 | esac |
810 | |
|
|
811 | # Accept the important Cygnus configure options, so we can diagnose typos. |
|
|
812 | |
853 | |
813 | case $ac_dashdash$ac_option in |
854 | case $ac_dashdash$ac_option in |
814 | --) |
855 | --) |
815 | ac_dashdash=yes ;; |
856 | ac_dashdash=yes ;; |
816 | |
857 | |
… | |
… | |
845 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
886 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
846 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
887 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
847 | datarootdir=$ac_optarg ;; |
888 | datarootdir=$ac_optarg ;; |
848 | |
889 | |
849 | -disable-* | --disable-*) |
890 | -disable-* | --disable-*) |
850 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
891 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
851 | # Reject names that are not valid shell variable names. |
892 | # Reject names that are not valid shell variable names. |
852 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
893 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
853 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
894 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
854 | { (exit 1); exit 1; }; } |
895 | ac_useropt_orig=$ac_useropt |
855 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
896 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
|
897 | case $ac_user_opts in |
|
|
898 | *" |
|
|
899 | "enable_$ac_useropt" |
|
|
900 | "*) ;; |
|
|
901 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
|
|
902 | ac_unrecognized_sep=', ';; |
|
|
903 | esac |
856 | eval enable_$ac_feature=no ;; |
904 | eval enable_$ac_useropt=no ;; |
857 | |
905 | |
858 | -docdir | --docdir | --docdi | --doc | --do) |
906 | -docdir | --docdir | --docdi | --doc | --do) |
859 | ac_prev=docdir ;; |
907 | ac_prev=docdir ;; |
860 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
908 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
861 | docdir=$ac_optarg ;; |
909 | docdir=$ac_optarg ;; |
… | |
… | |
864 | ac_prev=dvidir ;; |
912 | ac_prev=dvidir ;; |
865 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
913 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
866 | dvidir=$ac_optarg ;; |
914 | dvidir=$ac_optarg ;; |
867 | |
915 | |
868 | -enable-* | --enable-*) |
916 | -enable-* | --enable-*) |
869 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
917 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
870 | # Reject names that are not valid shell variable names. |
918 | # Reject names that are not valid shell variable names. |
871 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
919 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
872 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
920 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
873 | { (exit 1); exit 1; }; } |
921 | ac_useropt_orig=$ac_useropt |
874 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
922 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
|
923 | case $ac_user_opts in |
|
|
924 | *" |
|
|
925 | "enable_$ac_useropt" |
|
|
926 | "*) ;; |
|
|
927 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
|
|
928 | ac_unrecognized_sep=', ';; |
|
|
929 | esac |
875 | eval enable_$ac_feature=\$ac_optarg ;; |
930 | eval enable_$ac_useropt=\$ac_optarg ;; |
876 | |
931 | |
877 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
932 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
878 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
933 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
879 | | --exec | --exe | --ex) |
934 | | --exec | --exe | --ex) |
880 | ac_prev=exec_prefix ;; |
935 | ac_prev=exec_prefix ;; |
… | |
… | |
1015 | |
1070 | |
1016 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1071 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1017 | | -silent | --silent | --silen | --sile | --sil) |
1072 | | -silent | --silent | --silen | --sile | --sil) |
1018 | silent=yes ;; |
1073 | silent=yes ;; |
1019 | |
1074 | |
|
|
1075 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
|
|
1076 | | --runstate | --runstat | --runsta | --runst | --runs \ |
|
|
1077 | | --run | --ru | --r) |
|
|
1078 | ac_prev=runstatedir ;; |
|
|
1079 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
|
|
1080 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
|
|
1081 | | --run=* | --ru=* | --r=*) |
|
|
1082 | runstatedir=$ac_optarg ;; |
|
|
1083 | |
1020 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1084 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1021 | ac_prev=sbindir ;; |
1085 | ac_prev=sbindir ;; |
1022 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1086 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1023 | | --sbi=* | --sb=*) |
1087 | | --sbi=* | --sb=*) |
1024 | sbindir=$ac_optarg ;; |
1088 | sbindir=$ac_optarg ;; |
… | |
… | |
1061 | |
1125 | |
1062 | -version | --version | --versio | --versi | --vers | -V) |
1126 | -version | --version | --versio | --versi | --vers | -V) |
1063 | ac_init_version=: ;; |
1127 | ac_init_version=: ;; |
1064 | |
1128 | |
1065 | -with-* | --with-*) |
1129 | -with-* | --with-*) |
1066 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1130 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1067 | # Reject names that are not valid shell variable names. |
1131 | # Reject names that are not valid shell variable names. |
1068 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1132 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1069 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1133 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
1070 | { (exit 1); exit 1; }; } |
1134 | ac_useropt_orig=$ac_useropt |
1071 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1135 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
|
1136 | case $ac_user_opts in |
|
|
1137 | *" |
|
|
1138 | "with_$ac_useropt" |
|
|
1139 | "*) ;; |
|
|
1140 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
|
|
1141 | ac_unrecognized_sep=', ';; |
|
|
1142 | esac |
1072 | eval with_$ac_package=\$ac_optarg ;; |
1143 | eval with_$ac_useropt=\$ac_optarg ;; |
1073 | |
1144 | |
1074 | -without-* | --without-*) |
1145 | -without-* | --without-*) |
1075 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1146 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1076 | # Reject names that are not valid shell variable names. |
1147 | # Reject names that are not valid shell variable names. |
1077 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1148 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1078 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1149 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
1079 | { (exit 1); exit 1; }; } |
1150 | ac_useropt_orig=$ac_useropt |
1080 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1151 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
|
1152 | case $ac_user_opts in |
|
|
1153 | *" |
|
|
1154 | "with_$ac_useropt" |
|
|
1155 | "*) ;; |
|
|
1156 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
|
|
1157 | ac_unrecognized_sep=', ';; |
|
|
1158 | esac |
1081 | eval with_$ac_package=no ;; |
1159 | eval with_$ac_useropt=no ;; |
1082 | |
1160 | |
1083 | --x) |
1161 | --x) |
1084 | # Obsolete; use --with-x. |
1162 | # Obsolete; use --with-x. |
1085 | with_x=yes ;; |
1163 | with_x=yes ;; |
1086 | |
1164 | |
… | |
… | |
1096 | ac_prev=x_libraries ;; |
1174 | ac_prev=x_libraries ;; |
1097 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1175 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1098 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1176 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1099 | x_libraries=$ac_optarg ;; |
1177 | x_libraries=$ac_optarg ;; |
1100 | |
1178 | |
1101 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1179 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1102 | Try \`$0 --help' for more information." >&2 |
1180 | Try \`$0 --help' for more information" |
1103 | { (exit 1); exit 1; }; } |
|
|
1104 | ;; |
1181 | ;; |
1105 | |
1182 | |
1106 | *=*) |
1183 | *=*) |
1107 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1184 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1108 | # Reject names that are not valid shell variable names. |
1185 | # Reject names that are not valid shell variable names. |
1109 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1186 | case $ac_envvar in #( |
|
|
1187 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
1110 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1188 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1111 | { (exit 1); exit 1; }; } |
1189 | esac |
1112 | eval $ac_envvar=\$ac_optarg |
1190 | eval $ac_envvar=\$ac_optarg |
1113 | export $ac_envvar ;; |
1191 | export $ac_envvar ;; |
1114 | |
1192 | |
1115 | *) |
1193 | *) |
1116 | # FIXME: should be removed in autoconf 3.0. |
1194 | # FIXME: should be removed in autoconf 3.0. |
1117 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1195 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1118 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1196 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1119 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1197 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1120 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1198 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1121 | ;; |
1199 | ;; |
1122 | |
1200 | |
1123 | esac |
1201 | esac |
1124 | done |
1202 | done |
1125 | |
1203 | |
1126 | if test -n "$ac_prev"; then |
1204 | if test -n "$ac_prev"; then |
1127 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1205 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1128 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1206 | as_fn_error $? "missing argument to $ac_option" |
1129 | { (exit 1); exit 1; }; } |
|
|
1130 | fi |
1207 | fi |
1131 | |
1208 | |
1132 | # Be sure to have absolute directory names. |
1209 | if test -n "$ac_unrecognized_opts"; then |
|
|
1210 | case $enable_option_checking in |
|
|
1211 | no) ;; |
|
|
1212 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
|
|
1213 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
|
|
1214 | esac |
|
|
1215 | fi |
|
|
1216 | |
|
|
1217 | # Check all directory arguments for consistency. |
1133 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1218 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1134 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1219 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1135 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1220 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1136 | libdir localedir mandir |
1221 | libdir localedir mandir runstatedir |
1137 | do |
1222 | do |
1138 | eval ac_val=\$$ac_var |
1223 | eval ac_val=\$$ac_var |
|
|
1224 | # Remove trailing slashes. |
|
|
1225 | case $ac_val in |
|
|
1226 | */ ) |
|
|
1227 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
|
|
1228 | eval $ac_var=\$ac_val;; |
|
|
1229 | esac |
|
|
1230 | # Be sure to have absolute directory names. |
1139 | case $ac_val in |
1231 | case $ac_val in |
1140 | [\\/$]* | ?:[\\/]* ) continue;; |
1232 | [\\/$]* | ?:[\\/]* ) continue;; |
1141 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1233 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1142 | esac |
1234 | esac |
1143 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1235 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1144 | { (exit 1); exit 1; }; } |
|
|
1145 | done |
1236 | done |
1146 | |
1237 | |
1147 | # There might be people who depend on the old broken behavior: `$host' |
1238 | # There might be people who depend on the old broken behavior: `$host' |
1148 | # used to hold the argument of --host etc. |
1239 | # used to hold the argument of --host etc. |
1149 | # FIXME: To remove some day. |
1240 | # FIXME: To remove some day. |
… | |
… | |
1153 | |
1244 | |
1154 | # FIXME: To remove some day. |
1245 | # FIXME: To remove some day. |
1155 | if test "x$host_alias" != x; then |
1246 | if test "x$host_alias" != x; then |
1156 | if test "x$build_alias" = x; then |
1247 | if test "x$build_alias" = x; then |
1157 | cross_compiling=maybe |
1248 | cross_compiling=maybe |
1158 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
|
|
1159 | If a cross compiler is detected then cross compile mode will be used." >&2 |
|
|
1160 | elif test "x$build_alias" != "x$host_alias"; then |
1249 | elif test "x$build_alias" != "x$host_alias"; then |
1161 | cross_compiling=yes |
1250 | cross_compiling=yes |
1162 | fi |
1251 | fi |
1163 | fi |
1252 | fi |
1164 | |
1253 | |
… | |
… | |
1169 | |
1258 | |
1170 | |
1259 | |
1171 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1260 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1172 | ac_ls_di=`ls -di .` && |
1261 | ac_ls_di=`ls -di .` && |
1173 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1262 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1174 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1263 | as_fn_error $? "working directory cannot be determined" |
1175 | { (exit 1); exit 1; }; } |
|
|
1176 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1264 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1177 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1265 | as_fn_error $? "pwd does not report name of working directory" |
1178 | { (exit 1); exit 1; }; } |
|
|
1179 | |
1266 | |
1180 | |
1267 | |
1181 | # Find the source files, if location was not specified. |
1268 | # Find the source files, if location was not specified. |
1182 | if test -z "$srcdir"; then |
1269 | if test -z "$srcdir"; then |
1183 | ac_srcdir_defaulted=yes |
1270 | ac_srcdir_defaulted=yes |
1184 | # Try the directory containing this script, then the parent directory. |
1271 | # Try the directory containing this script, then the parent directory. |
1185 | ac_confdir=`$as_dirname -- "$0" || |
1272 | ac_confdir=`$as_dirname -- "$as_myself" || |
1186 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1273 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1187 | X"$0" : 'X\(//\)[^/]' \| \ |
1274 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
1188 | X"$0" : 'X\(//\)$' \| \ |
1275 | X"$as_myself" : 'X\(//\)$' \| \ |
1189 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1276 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1190 | echo X"$0" | |
1277 | printf "%s\n" X"$as_myself" | |
1191 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1278 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1192 | s//\1/ |
1279 | s//\1/ |
1193 | q |
1280 | q |
1194 | } |
1281 | } |
1195 | /^X\(\/\/\)[^/].*/{ |
1282 | /^X\(\/\/\)[^/].*/{ |
… | |
… | |
1212 | else |
1299 | else |
1213 | ac_srcdir_defaulted=no |
1300 | ac_srcdir_defaulted=no |
1214 | fi |
1301 | fi |
1215 | if test ! -r "$srcdir/$ac_unique_file"; then |
1302 | if test ! -r "$srcdir/$ac_unique_file"; then |
1216 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1303 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1217 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
1304 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1218 | { (exit 1); exit 1; }; } |
|
|
1219 | fi |
1305 | fi |
1220 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1306 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1221 | ac_abs_confdir=`( |
1307 | ac_abs_confdir=`( |
1222 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
1308 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1223 | { (exit 1); exit 1; }; } |
|
|
1224 | pwd)` |
1309 | pwd)` |
1225 | # When building in place, set srcdir=. |
1310 | # When building in place, set srcdir=. |
1226 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1311 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1227 | srcdir=. |
1312 | srcdir=. |
1228 | fi |
1313 | fi |
… | |
… | |
1258 | Configuration: |
1343 | Configuration: |
1259 | -h, --help display this help and exit |
1344 | -h, --help display this help and exit |
1260 | --help=short display options specific to this package |
1345 | --help=short display options specific to this package |
1261 | --help=recursive display the short help of all the included packages |
1346 | --help=recursive display the short help of all the included packages |
1262 | -V, --version display version information and exit |
1347 | -V, --version display version information and exit |
1263 | -q, --quiet, --silent do not print \`checking...' messages |
1348 | -q, --quiet, --silent do not print \`checking ...' messages |
1264 | --cache-file=FILE cache test results in FILE [disabled] |
1349 | --cache-file=FILE cache test results in FILE [disabled] |
1265 | -C, --config-cache alias for \`--cache-file=config.cache' |
1350 | -C, --config-cache alias for \`--cache-file=config.cache' |
1266 | -n, --no-create do not create output files |
1351 | -n, --no-create do not create output files |
1267 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1352 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1268 | |
1353 | |
1269 | Installation directories: |
1354 | Installation directories: |
1270 | --prefix=PREFIX install architecture-independent files in PREFIX |
1355 | --prefix=PREFIX install architecture-independent files in PREFIX |
1271 | [$ac_default_prefix] |
1356 | [$ac_default_prefix] |
1272 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1357 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1273 | [PREFIX] |
1358 | [PREFIX] |
1274 | |
1359 | |
1275 | By default, \`make install' will install all the files in |
1360 | By default, \`make install' will install all the files in |
1276 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1361 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1277 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1362 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1278 | for instance \`--prefix=\$HOME'. |
1363 | for instance \`--prefix=\$HOME'. |
1279 | |
1364 | |
1280 | For better control, use the options below. |
1365 | For better control, use the options below. |
1281 | |
1366 | |
1282 | Fine tuning of the installation directories: |
1367 | Fine tuning of the installation directories: |
1283 | --bindir=DIR user executables [EPREFIX/bin] |
1368 | --bindir=DIR user executables [EPREFIX/bin] |
1284 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1369 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1285 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1370 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1286 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1371 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1287 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1372 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1288 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1373 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
|
1374 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
1289 | --libdir=DIR object code libraries [EPREFIX/lib] |
1375 | --libdir=DIR object code libraries [EPREFIX/lib] |
1290 | --includedir=DIR C header files [PREFIX/include] |
1376 | --includedir=DIR C header files [PREFIX/include] |
1291 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1377 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1292 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1378 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1293 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1379 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1294 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1380 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1295 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1381 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1296 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1382 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1297 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
1383 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
1298 | --htmldir=DIR html documentation [DOCDIR] |
1384 | --htmldir=DIR html documentation [DOCDIR] |
1299 | --dvidir=DIR dvi documentation [DOCDIR] |
1385 | --dvidir=DIR dvi documentation [DOCDIR] |
1300 | --pdfdir=DIR pdf documentation [DOCDIR] |
1386 | --pdfdir=DIR pdf documentation [DOCDIR] |
1301 | --psdir=DIR ps documentation [DOCDIR] |
1387 | --psdir=DIR ps documentation [DOCDIR] |
1302 | _ACEOF |
1388 | _ACEOF |
1303 | |
1389 | |
1304 | cat <<\_ACEOF |
1390 | cat <<\_ACEOF |
1305 | |
1391 | |
1306 | X features: |
1392 | X features: |
1307 | --x-includes=DIR X include files are in DIR |
1393 | --x-includes=DIR X include files are in DIR |
1308 | --x-libraries=DIR X library files are in DIR |
1394 | --x-libraries=DIR X library files are in DIR |
1309 | |
|
|
1310 | Program names: |
|
|
1311 | --program-prefix=PREFIX prepend PREFIX to installed program names |
|
|
1312 | --program-suffix=SUFFIX append SUFFIX to installed program names |
|
|
1313 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
|
|
1314 | |
|
|
1315 | System types: |
|
|
1316 | --build=BUILD configure for building on BUILD [guessed] |
|
|
1317 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
|
|
1318 | _ACEOF |
1395 | _ACEOF |
1319 | fi |
1396 | fi |
1320 | |
1397 | |
1321 | if test -n "$ac_init_help"; then |
1398 | if test -n "$ac_init_help"; then |
1322 | |
1399 | |
1323 | cat <<\_ACEOF |
1400 | cat <<\_ACEOF |
1324 | |
1401 | |
1325 | Optional Features: |
1402 | Optional Features: |
|
|
1403 | --disable-option-checking ignore unrecognized --enable/--with options |
1326 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1404 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1327 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1405 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1328 | --enable-everything enable standard non-multichoice features |
1406 | --enable-everything enable standard non-multichoice features |
1329 | NOTE: this option is order dependent |
1407 | NOTE: this option is order dependent |
1330 | NOTE: automatically enabled with --enable-shared |
1408 | --enable-assert enable assertions |
|
|
1409 | --enable-warnings turn on g++ warnings |
|
|
1410 | --enable-256-color enable 256-color support |
1331 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1411 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1332 | --enable-combining enable composition of base and combining characters |
1412 | --enable-combining enable composition of base and combining characters |
1333 | --enable-xft enable xft support on systems that have it |
1413 | --enable-xft enable xft support on systems that have it |
1334 | --enable-font-styles enable bold and italic support |
1414 | --enable-font-styles enable bold and italic support |
1335 | --enable-xpm-background enable XPM background pixmaps |
1415 | --enable-pixbuf enable integration with gdk-pixbuf for background images |
|
|
1416 | --enable-startup-notification enable freedesktop startup notification support |
1336 | --enable-transparency enable transparent backgrounds |
1417 | --enable-transparency enable transparent backgrounds |
1337 | --enable-tinting enable tinting of transparent bg |
|
|
1338 | --enable-fading enable colors fading when off focus |
1418 | --enable-fading enable colors fading when off focus |
1339 | --enable-rxvt-scroll enable rxvt style scrollbar |
1419 | --enable-rxvt-scroll enable rxvt style scrollbar |
1340 | --enable-next-scroll enable NeXT style scrollbar |
1420 | --enable-next-scroll enable NeXT style scrollbar |
1341 | --enable-xterm-scroll enable Xterm style scrollbar |
1421 | --enable-xterm-scroll enable Xterm style scrollbar |
1342 | --enable-perl enable embedded perl interpreter |
1422 | --enable-perl enable embedded perl interpreter |
1343 | --enable-plain-scroll enable plain style scrollbar |
|
|
1344 | --enable-xim XIM (X Input Method) protocol support |
1423 | --enable-xim XIM (X Input Method) protocol support |
1345 | --disable-backspace-key disable handling of the backspace key |
1424 | --disable-backspace-key disable handling of the backspace key |
1346 | --disable-delete-key disable handling of the delete key |
1425 | --disable-delete-key disable handling of the delete key |
1347 | --disable-resources disable all resource checking |
1426 | --disable-resources disable all resource checking |
1348 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1427 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1349 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1428 | --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1350 | --disable-swapscreen disable swap screen support |
1429 | --disable-swapscreen disable swap screen support |
1351 | --enable-iso14755 enable support for extended ISO 14755 modes |
1430 | --enable-iso14755 enable support for extended ISO 14755 modes |
1352 | --enable-frills enable support for rarely used features |
1431 | --enable-frills enable support for rarely used features |
1353 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1432 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1354 | --enable-selectionscrolling enable scrolling during selections |
1433 | --enable-selectionscrolling enable scrolling during selections |
1355 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1434 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1356 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1435 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1357 | --enable-smart-resize enable smart growth/shrink behaviour |
1436 | --enable-smart-resize enable smart growth/shrink behaviour |
1358 | --enable-text-blink enable blinking text |
1437 | --enable-text-blink enable blinking text |
1359 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1438 | --enable-pointer-blank enable pointer blanking when typing or inactive |
1360 | --enable-utmp enable utmp (utmpx) support |
|
|
1361 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
|
|
1362 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
|
|
1363 | |
1439 | |
1364 | Optional Packages: |
1440 | Optional Packages: |
1365 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1441 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1366 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1442 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1367 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1443 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1368 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1444 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1369 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1445 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1370 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1446 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1371 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1447 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1372 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1448 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1373 | --with-x use the X Window System |
1449 | --with-x use the X Window System |
1374 | --with-xpm-includes=DIR use XPM includes in DIR |
|
|
1375 | --with-xpm-library=DIR use XPM library in DIR |
|
|
1376 | --with-xpm use XPM |
|
|
1377 | |
1450 | |
1378 | Some influential environment variables: |
1451 | Some influential environment variables: |
1379 | CC C compiler command |
1452 | CC C compiler command |
1380 | CFLAGS C compiler flags |
1453 | CFLAGS C compiler flags |
1381 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1454 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1382 | nonstandard directory <lib dir> |
1455 | nonstandard directory <lib dir> |
1383 | LIBS libraries to pass to the linker, e.g. -l<library> |
1456 | LIBS libraries to pass to the linker, e.g. -l<library> |
1384 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1457 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1385 | you have headers in a nonstandard directory <include dir> |
1458 | you have headers in a nonstandard directory <include dir> |
1386 | CXX C++ compiler command |
1459 | CXX C++ compiler command |
1387 | CXXFLAGS C++ compiler flags |
1460 | CXXFLAGS C++ compiler flags |
1388 | CPP C preprocessor |
|
|
1389 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1461 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1390 | CXXCPP C++ preprocessor |
1462 | CXXCPP C++ preprocessor |
1391 | |
1463 | |
1392 | Use these variables to override the choices made by `configure' or to help |
1464 | Use these variables to override the choices made by `configure' or to help |
1393 | it to find libraries and programs with nonstandard names/locations. |
1465 | it to find libraries and programs with nonstandard names/locations. |
1394 | |
1466 | |
|
|
1467 | Report bugs to the package provider. |
1395 | _ACEOF |
1468 | _ACEOF |
1396 | ac_status=$? |
1469 | ac_status=$? |
1397 | fi |
1470 | fi |
1398 | |
1471 | |
1399 | if test "$ac_init_help" = "recursive"; then |
1472 | if test "$ac_init_help" = "recursive"; then |
1400 | # If there are subdirs, report their specific --help. |
1473 | # If there are subdirs, report their specific --help. |
1401 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1474 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1402 | test -d "$ac_dir" || continue |
1475 | test -d "$ac_dir" || |
|
|
1476 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
|
|
1477 | continue |
1403 | ac_builddir=. |
1478 | ac_builddir=. |
1404 | |
1479 | |
1405 | case "$ac_dir" in |
1480 | case "$ac_dir" in |
1406 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1481 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1407 | *) |
1482 | *) |
1408 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1483 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
1409 | # A ".." for each directory in $ac_dir_suffix. |
1484 | # A ".." for each directory in $ac_dir_suffix. |
1410 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1485 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1411 | case $ac_top_builddir_sub in |
1486 | case $ac_top_builddir_sub in |
1412 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1487 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1413 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1488 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1414 | esac ;; |
1489 | esac ;; |
1415 | esac |
1490 | esac |
… | |
… | |
1433 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1508 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1434 | esac |
1509 | esac |
1435 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1510 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1436 | |
1511 | |
1437 | cd "$ac_dir" || { ac_status=$?; continue; } |
1512 | cd "$ac_dir" || { ac_status=$?; continue; } |
1438 | # Check for guested configure. |
1513 | # Check for configure.gnu first; this name is used for a wrapper for |
|
|
1514 | # Metaconfig's "Configure" on case-insensitive file systems. |
1439 | if test -f "$ac_srcdir/configure.gnu"; then |
1515 | if test -f "$ac_srcdir/configure.gnu"; then |
1440 | echo && |
1516 | echo && |
1441 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1517 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1442 | elif test -f "$ac_srcdir/configure"; then |
1518 | elif test -f "$ac_srcdir/configure"; then |
1443 | echo && |
1519 | echo && |
1444 | $SHELL "$ac_srcdir/configure" --help=recursive |
1520 | $SHELL "$ac_srcdir/configure" --help=recursive |
1445 | else |
1521 | else |
1446 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1522 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1447 | fi || ac_status=$? |
1523 | fi || ac_status=$? |
1448 | cd "$ac_pwd" || { ac_status=$?; break; } |
1524 | cd "$ac_pwd" || { ac_status=$?; break; } |
1449 | done |
1525 | done |
1450 | fi |
1526 | fi |
1451 | |
1527 | |
1452 | test -n "$ac_init_help" && exit $ac_status |
1528 | test -n "$ac_init_help" && exit $ac_status |
1453 | if $ac_init_version; then |
1529 | if $ac_init_version; then |
1454 | cat <<\_ACEOF |
1530 | cat <<\_ACEOF |
1455 | configure |
1531 | configure |
1456 | generated by GNU Autoconf 2.61 |
1532 | generated by GNU Autoconf 2.71 |
1457 | |
1533 | |
1458 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1534 | Copyright (C) 2021 Free Software Foundation, Inc. |
1459 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
|
|
1460 | This configure script is free software; the Free Software Foundation |
1535 | This configure script is free software; the Free Software Foundation |
1461 | gives unlimited permission to copy, distribute and modify it. |
1536 | gives unlimited permission to copy, distribute and modify it. |
1462 | _ACEOF |
1537 | _ACEOF |
1463 | exit |
1538 | exit |
1464 | fi |
1539 | fi |
|
|
1540 | |
|
|
1541 | ## ------------------------ ## |
|
|
1542 | ## Autoconf initialization. ## |
|
|
1543 | ## ------------------------ ## |
|
|
1544 | |
|
|
1545 | # ac_fn_c_try_compile LINENO |
|
|
1546 | # -------------------------- |
|
|
1547 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
|
|
1548 | ac_fn_c_try_compile () |
|
|
1549 | { |
|
|
1550 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1551 | rm -f conftest.$ac_objext conftest.beam |
|
|
1552 | if { { ac_try="$ac_compile" |
|
|
1553 | case "(($ac_try" in |
|
|
1554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1555 | *) ac_try_echo=$ac_try;; |
|
|
1556 | esac |
|
|
1557 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1558 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
1559 | (eval "$ac_compile") 2>conftest.err |
|
|
1560 | ac_status=$? |
|
|
1561 | if test -s conftest.err; then |
|
|
1562 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1563 | cat conftest.er1 >&5 |
|
|
1564 | mv -f conftest.er1 conftest.err |
|
|
1565 | fi |
|
|
1566 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1567 | test $ac_status = 0; } && { |
|
|
1568 | test -z "$ac_c_werror_flag" || |
|
|
1569 | test ! -s conftest.err |
|
|
1570 | } && test -s conftest.$ac_objext |
|
|
1571 | then : |
|
|
1572 | ac_retval=0 |
|
|
1573 | else $as_nop |
|
|
1574 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
1575 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1576 | |
|
|
1577 | ac_retval=1 |
|
|
1578 | fi |
|
|
1579 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1580 | as_fn_set_status $ac_retval |
|
|
1581 | |
|
|
1582 | } # ac_fn_c_try_compile |
|
|
1583 | |
|
|
1584 | # ac_fn_cxx_try_compile LINENO |
|
|
1585 | # ---------------------------- |
|
|
1586 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
|
|
1587 | ac_fn_cxx_try_compile () |
|
|
1588 | { |
|
|
1589 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1590 | rm -f conftest.$ac_objext conftest.beam |
|
|
1591 | if { { ac_try="$ac_compile" |
|
|
1592 | case "(($ac_try" in |
|
|
1593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1594 | *) ac_try_echo=$ac_try;; |
|
|
1595 | esac |
|
|
1596 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1597 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
1598 | (eval "$ac_compile") 2>conftest.err |
|
|
1599 | ac_status=$? |
|
|
1600 | if test -s conftest.err; then |
|
|
1601 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1602 | cat conftest.er1 >&5 |
|
|
1603 | mv -f conftest.er1 conftest.err |
|
|
1604 | fi |
|
|
1605 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1606 | test $ac_status = 0; } && { |
|
|
1607 | test -z "$ac_cxx_werror_flag" || |
|
|
1608 | test ! -s conftest.err |
|
|
1609 | } && test -s conftest.$ac_objext |
|
|
1610 | then : |
|
|
1611 | ac_retval=0 |
|
|
1612 | else $as_nop |
|
|
1613 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
1614 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1615 | |
|
|
1616 | ac_retval=1 |
|
|
1617 | fi |
|
|
1618 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1619 | as_fn_set_status $ac_retval |
|
|
1620 | |
|
|
1621 | } # ac_fn_cxx_try_compile |
|
|
1622 | |
|
|
1623 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
|
|
1624 | # ------------------------------------------------------- |
|
|
1625 | # Tests whether HEADER exists and can be compiled using the include files in |
|
|
1626 | # INCLUDES, setting the cache variable VAR accordingly. |
|
|
1627 | ac_fn_c_check_header_compile () |
|
|
1628 | { |
|
|
1629 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1630 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1631 | printf %s "checking for $2... " >&6; } |
|
|
1632 | if eval test \${$3+y} |
|
|
1633 | then : |
|
|
1634 | printf %s "(cached) " >&6 |
|
|
1635 | else $as_nop |
|
|
1636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1637 | /* end confdefs.h. */ |
|
|
1638 | $4 |
|
|
1639 | #include <$2> |
|
|
1640 | _ACEOF |
|
|
1641 | if ac_fn_c_try_compile "$LINENO" |
|
|
1642 | then : |
|
|
1643 | eval "$3=yes" |
|
|
1644 | else $as_nop |
|
|
1645 | eval "$3=no" |
|
|
1646 | fi |
|
|
1647 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
1648 | fi |
|
|
1649 | eval ac_res=\$$3 |
|
|
1650 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1651 | printf "%s\n" "$ac_res" >&6; } |
|
|
1652 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1653 | |
|
|
1654 | } # ac_fn_c_check_header_compile |
|
|
1655 | |
|
|
1656 | # ac_fn_cxx_try_link LINENO |
|
|
1657 | # ------------------------- |
|
|
1658 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
|
|
1659 | ac_fn_cxx_try_link () |
|
|
1660 | { |
|
|
1661 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1662 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
|
|
1663 | if { { ac_try="$ac_link" |
|
|
1664 | case "(($ac_try" in |
|
|
1665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1666 | *) ac_try_echo=$ac_try;; |
|
|
1667 | esac |
|
|
1668 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1669 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
1670 | (eval "$ac_link") 2>conftest.err |
|
|
1671 | ac_status=$? |
|
|
1672 | if test -s conftest.err; then |
|
|
1673 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1674 | cat conftest.er1 >&5 |
|
|
1675 | mv -f conftest.er1 conftest.err |
|
|
1676 | fi |
|
|
1677 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1678 | test $ac_status = 0; } && { |
|
|
1679 | test -z "$ac_cxx_werror_flag" || |
|
|
1680 | test ! -s conftest.err |
|
|
1681 | } && test -s conftest$ac_exeext && { |
|
|
1682 | test "$cross_compiling" = yes || |
|
|
1683 | test -x conftest$ac_exeext |
|
|
1684 | } |
|
|
1685 | then : |
|
|
1686 | ac_retval=0 |
|
|
1687 | else $as_nop |
|
|
1688 | printf "%s\n" "$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_cxx_try_link |
|
|
1702 | |
|
|
1703 | # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES |
|
|
1704 | # --------------------------------------------------------- |
|
|
1705 | # Tests whether HEADER exists and can be compiled using the include files in |
|
|
1706 | # INCLUDES, setting the cache variable VAR accordingly. |
|
|
1707 | ac_fn_cxx_check_header_compile () |
|
|
1708 | { |
|
|
1709 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1710 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1711 | printf %s "checking for $2... " >&6; } |
|
|
1712 | if eval test \${$3+y} |
|
|
1713 | then : |
|
|
1714 | printf %s "(cached) " >&6 |
|
|
1715 | else $as_nop |
|
|
1716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1717 | /* end confdefs.h. */ |
|
|
1718 | $4 |
|
|
1719 | #include <$2> |
|
|
1720 | _ACEOF |
|
|
1721 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
1722 | then : |
|
|
1723 | eval "$3=yes" |
|
|
1724 | else $as_nop |
|
|
1725 | eval "$3=no" |
|
|
1726 | fi |
|
|
1727 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
1728 | fi |
|
|
1729 | eval ac_res=\$$3 |
|
|
1730 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1731 | printf "%s\n" "$ac_res" >&6; } |
|
|
1732 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1733 | |
|
|
1734 | } # ac_fn_cxx_check_header_compile |
|
|
1735 | |
|
|
1736 | # ac_fn_cxx_check_func LINENO FUNC VAR |
|
|
1737 | # ------------------------------------ |
|
|
1738 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
|
|
1739 | ac_fn_cxx_check_func () |
|
|
1740 | { |
|
|
1741 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1743 | printf %s "checking for $2... " >&6; } |
|
|
1744 | if eval test \${$3+y} |
|
|
1745 | then : |
|
|
1746 | printf %s "(cached) " >&6 |
|
|
1747 | else $as_nop |
|
|
1748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1749 | /* end confdefs.h. */ |
|
|
1750 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
|
|
1751 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
1752 | #define $2 innocuous_$2 |
|
|
1753 | |
|
|
1754 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
1755 | which can conflict with char $2 (); below. */ |
|
|
1756 | |
|
|
1757 | #include <limits.h> |
|
|
1758 | #undef $2 |
|
|
1759 | |
|
|
1760 | /* Override any GCC internal prototype to avoid an error. |
|
|
1761 | Use char because int might match the return type of a GCC |
|
|
1762 | builtin and then its argument prototype would still apply. */ |
|
|
1763 | #ifdef __cplusplus |
|
|
1764 | extern "C" |
|
|
1765 | #endif |
|
|
1766 | char $2 (); |
|
|
1767 | /* The GNU C library defines this for functions which it implements |
|
|
1768 | to always fail with ENOSYS. Some functions are actually named |
|
|
1769 | something starting with __ and the normal name is an alias. */ |
|
|
1770 | #if defined __stub_$2 || defined __stub___$2 |
|
|
1771 | choke me |
|
|
1772 | #endif |
|
|
1773 | |
|
|
1774 | int |
|
|
1775 | main (void) |
|
|
1776 | { |
|
|
1777 | return $2 (); |
|
|
1778 | ; |
|
|
1779 | return 0; |
|
|
1780 | } |
|
|
1781 | _ACEOF |
|
|
1782 | if ac_fn_cxx_try_link "$LINENO" |
|
|
1783 | then : |
|
|
1784 | eval "$3=yes" |
|
|
1785 | else $as_nop |
|
|
1786 | eval "$3=no" |
|
|
1787 | fi |
|
|
1788 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
1789 | conftest$ac_exeext conftest.$ac_ext |
|
|
1790 | fi |
|
|
1791 | eval ac_res=\$$3 |
|
|
1792 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1793 | printf "%s\n" "$ac_res" >&6; } |
|
|
1794 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1795 | |
|
|
1796 | } # ac_fn_cxx_check_func |
|
|
1797 | |
|
|
1798 | # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES |
|
|
1799 | # --------------------------------------------- |
|
|
1800 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
|
|
1801 | # variable VAR accordingly. |
|
|
1802 | ac_fn_cxx_check_type () |
|
|
1803 | { |
|
|
1804 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1806 | printf %s "checking for $2... " >&6; } |
|
|
1807 | if eval test \${$3+y} |
|
|
1808 | then : |
|
|
1809 | printf %s "(cached) " >&6 |
|
|
1810 | else $as_nop |
|
|
1811 | eval "$3=no" |
|
|
1812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1813 | /* end confdefs.h. */ |
|
|
1814 | $4 |
|
|
1815 | int |
|
|
1816 | main (void) |
|
|
1817 | { |
|
|
1818 | if (sizeof ($2)) |
|
|
1819 | return 0; |
|
|
1820 | ; |
|
|
1821 | return 0; |
|
|
1822 | } |
|
|
1823 | _ACEOF |
|
|
1824 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
1825 | then : |
|
|
1826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1827 | /* end confdefs.h. */ |
|
|
1828 | $4 |
|
|
1829 | int |
|
|
1830 | main (void) |
|
|
1831 | { |
|
|
1832 | if (sizeof (($2))) |
|
|
1833 | return 0; |
|
|
1834 | ; |
|
|
1835 | return 0; |
|
|
1836 | } |
|
|
1837 | _ACEOF |
|
|
1838 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
1839 | then : |
|
|
1840 | |
|
|
1841 | else $as_nop |
|
|
1842 | eval "$3=yes" |
|
|
1843 | fi |
|
|
1844 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
1845 | fi |
|
|
1846 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
1847 | fi |
|
|
1848 | eval ac_res=\$$3 |
|
|
1849 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1850 | printf "%s\n" "$ac_res" >&6; } |
|
|
1851 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1852 | |
|
|
1853 | } # ac_fn_cxx_check_type |
|
|
1854 | |
|
|
1855 | # ac_fn_cxx_try_cpp LINENO |
|
|
1856 | # ------------------------ |
|
|
1857 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
|
|
1858 | ac_fn_cxx_try_cpp () |
|
|
1859 | { |
|
|
1860 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1861 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
|
|
1862 | case "(($ac_try" in |
|
|
1863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1864 | *) ac_try_echo=$ac_try;; |
|
|
1865 | esac |
|
|
1866 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1867 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
1868 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
|
|
1869 | ac_status=$? |
|
|
1870 | if test -s conftest.err; then |
|
|
1871 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1872 | cat conftest.er1 >&5 |
|
|
1873 | mv -f conftest.er1 conftest.err |
|
|
1874 | fi |
|
|
1875 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1876 | test $ac_status = 0; } > conftest.i && { |
|
|
1877 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
1878 | test ! -s conftest.err |
|
|
1879 | } |
|
|
1880 | then : |
|
|
1881 | ac_retval=0 |
|
|
1882 | else $as_nop |
|
|
1883 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
1884 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1885 | |
|
|
1886 | ac_retval=1 |
|
|
1887 | fi |
|
|
1888 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1889 | as_fn_set_status $ac_retval |
|
|
1890 | |
|
|
1891 | } # ac_fn_cxx_try_cpp |
|
|
1892 | |
|
|
1893 | # ac_fn_c_find_intX_t LINENO BITS VAR |
|
|
1894 | # ----------------------------------- |
|
|
1895 | # Finds a signed integer type with width BITS, setting cache variable VAR |
|
|
1896 | # accordingly. |
|
|
1897 | ac_fn_c_find_intX_t () |
|
|
1898 | { |
|
|
1899 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1900 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
|
|
1901 | printf %s "checking for int$2_t... " >&6; } |
|
|
1902 | if eval test \${$3+y} |
|
|
1903 | then : |
|
|
1904 | printf %s "(cached) " >&6 |
|
|
1905 | else $as_nop |
|
|
1906 | eval "$3=no" |
|
|
1907 | # Order is important - never check a type that is potentially smaller |
|
|
1908 | # than half of the expected target width. |
|
|
1909 | for ac_type in int$2_t 'int' 'long int' \ |
|
|
1910 | 'long long int' 'short int' 'signed char'; do |
|
|
1911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1912 | /* end confdefs.h. */ |
|
|
1913 | $ac_includes_default |
|
|
1914 | enum { N = $2 / 2 - 1 }; |
|
|
1915 | int |
|
|
1916 | main (void) |
|
|
1917 | { |
|
|
1918 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
|
|
1919 | test_array [0] = 0; |
|
|
1920 | return test_array [0]; |
|
|
1921 | |
|
|
1922 | ; |
|
|
1923 | return 0; |
|
|
1924 | } |
|
|
1925 | _ACEOF |
|
|
1926 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
1927 | then : |
|
|
1928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1929 | /* end confdefs.h. */ |
|
|
1930 | $ac_includes_default |
|
|
1931 | enum { N = $2 / 2 - 1 }; |
|
|
1932 | int |
|
|
1933 | main (void) |
|
|
1934 | { |
|
|
1935 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
|
|
1936 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
|
|
1937 | test_array [0] = 0; |
|
|
1938 | return test_array [0]; |
|
|
1939 | |
|
|
1940 | ; |
|
|
1941 | return 0; |
|
|
1942 | } |
|
|
1943 | _ACEOF |
|
|
1944 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
1945 | then : |
|
|
1946 | |
|
|
1947 | else $as_nop |
|
|
1948 | case $ac_type in #( |
|
|
1949 | int$2_t) : |
|
|
1950 | eval "$3=yes" ;; #( |
|
|
1951 | *) : |
|
|
1952 | eval "$3=\$ac_type" ;; |
|
|
1953 | esac |
|
|
1954 | fi |
|
|
1955 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
1956 | fi |
|
|
1957 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
1958 | if eval test \"x\$"$3"\" = x"no" |
|
|
1959 | then : |
|
|
1960 | |
|
|
1961 | else $as_nop |
|
|
1962 | break |
|
|
1963 | fi |
|
|
1964 | done |
|
|
1965 | fi |
|
|
1966 | eval ac_res=\$$3 |
|
|
1967 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1968 | printf "%s\n" "$ac_res" >&6; } |
|
|
1969 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1970 | |
|
|
1971 | } # ac_fn_c_find_intX_t |
|
|
1972 | |
|
|
1973 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
|
|
1974 | # ------------------------------------ |
|
|
1975 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
|
|
1976 | # accordingly. |
|
|
1977 | ac_fn_c_find_uintX_t () |
|
|
1978 | { |
|
|
1979 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
|
|
1981 | printf %s "checking for uint$2_t... " >&6; } |
|
|
1982 | if eval test \${$3+y} |
|
|
1983 | then : |
|
|
1984 | printf %s "(cached) " >&6 |
|
|
1985 | else $as_nop |
|
|
1986 | eval "$3=no" |
|
|
1987 | # Order is important - never check a type that is potentially smaller |
|
|
1988 | # than half of the expected target width. |
|
|
1989 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
|
|
1990 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
|
|
1991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1992 | /* end confdefs.h. */ |
|
|
1993 | $ac_includes_default |
|
|
1994 | int |
|
|
1995 | main (void) |
|
|
1996 | { |
|
|
1997 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
|
|
1998 | test_array [0] = 0; |
|
|
1999 | return test_array [0]; |
|
|
2000 | |
|
|
2001 | ; |
|
|
2002 | return 0; |
|
|
2003 | } |
|
|
2004 | _ACEOF |
|
|
2005 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
2006 | then : |
|
|
2007 | case $ac_type in #( |
|
|
2008 | uint$2_t) : |
|
|
2009 | eval "$3=yes" ;; #( |
|
|
2010 | *) : |
|
|
2011 | eval "$3=\$ac_type" ;; |
|
|
2012 | esac |
|
|
2013 | fi |
|
|
2014 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
2015 | if eval test \"x\$"$3"\" = x"no" |
|
|
2016 | then : |
|
|
2017 | |
|
|
2018 | else $as_nop |
|
|
2019 | break |
|
|
2020 | fi |
|
|
2021 | done |
|
|
2022 | fi |
|
|
2023 | eval ac_res=\$$3 |
|
|
2024 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
2025 | printf "%s\n" "$ac_res" >&6; } |
|
|
2026 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
2027 | |
|
|
2028 | } # ac_fn_c_find_uintX_t |
|
|
2029 | |
|
|
2030 | # ac_fn_cxx_try_run LINENO |
|
|
2031 | # ------------------------ |
|
|
2032 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
|
|
2033 | # executables *can* be run. |
|
|
2034 | ac_fn_cxx_try_run () |
|
|
2035 | { |
|
|
2036 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
2037 | if { { ac_try="$ac_link" |
|
|
2038 | case "(($ac_try" in |
|
|
2039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2040 | *) ac_try_echo=$ac_try;; |
|
|
2041 | esac |
|
|
2042 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
2043 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
2044 | (eval "$ac_link") 2>&5 |
|
|
2045 | ac_status=$? |
|
|
2046 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
2047 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
|
|
2048 | { { case "(($ac_try" in |
|
|
2049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2050 | *) ac_try_echo=$ac_try;; |
|
|
2051 | esac |
|
|
2052 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
2053 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
2054 | (eval "$ac_try") 2>&5 |
|
|
2055 | ac_status=$? |
|
|
2056 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
2057 | test $ac_status = 0; }; } |
|
|
2058 | then : |
|
|
2059 | ac_retval=0 |
|
|
2060 | else $as_nop |
|
|
2061 | printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
|
|
2062 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
2063 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2064 | |
|
|
2065 | ac_retval=$ac_status |
|
|
2066 | fi |
|
|
2067 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
|
2068 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
2069 | as_fn_set_status $ac_retval |
|
|
2070 | |
|
|
2071 | } # ac_fn_cxx_try_run |
|
|
2072 | ac_configure_args_raw= |
|
|
2073 | for ac_arg |
|
|
2074 | do |
|
|
2075 | case $ac_arg in |
|
|
2076 | *\'*) |
|
|
2077 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
|
2078 | esac |
|
|
2079 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
|
|
2080 | done |
|
|
2081 | |
|
|
2082 | case $ac_configure_args_raw in |
|
|
2083 | *$as_nl*) |
|
|
2084 | ac_safe_unquote= ;; |
|
|
2085 | *) |
|
|
2086 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
|
|
2087 | ac_unsafe_a="$ac_unsafe_z#~" |
|
|
2088 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
|
|
2089 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
|
|
2090 | esac |
|
|
2091 | |
1465 | cat >config.log <<_ACEOF |
2092 | cat >config.log <<_ACEOF |
1466 | This file contains any messages produced by compilers while |
2093 | This file contains any messages produced by compilers while |
1467 | running configure, to aid debugging if configure makes a mistake. |
2094 | running configure, to aid debugging if configure makes a mistake. |
1468 | |
2095 | |
1469 | It was created by $as_me, which was |
2096 | It was created by $as_me, which was |
1470 | generated by GNU Autoconf 2.61. Invocation command line was |
2097 | generated by GNU Autoconf 2.71. Invocation command line was |
1471 | |
2098 | |
1472 | $ $0 $@ |
2099 | $ $0$ac_configure_args_raw |
1473 | |
2100 | |
1474 | _ACEOF |
2101 | _ACEOF |
1475 | exec 5>>config.log |
2102 | exec 5>>config.log |
1476 | { |
2103 | { |
1477 | cat <<_ASUNAME |
2104 | cat <<_ASUNAME |
… | |
… | |
1500 | |
2127 | |
1501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1502 | for as_dir in $PATH |
2129 | for as_dir in $PATH |
1503 | do |
2130 | do |
1504 | IFS=$as_save_IFS |
2131 | IFS=$as_save_IFS |
1505 | test -z "$as_dir" && as_dir=. |
2132 | case $as_dir in #((( |
1506 | echo "PATH: $as_dir" |
2133 | '') as_dir=./ ;; |
|
|
2134 | */) ;; |
|
|
2135 | *) as_dir=$as_dir/ ;; |
|
|
2136 | esac |
|
|
2137 | printf "%s\n" "PATH: $as_dir" |
1507 | done |
2138 | done |
1508 | IFS=$as_save_IFS |
2139 | IFS=$as_save_IFS |
1509 | |
2140 | |
1510 | } >&5 |
2141 | } >&5 |
1511 | |
2142 | |
1512 | cat >&5 <<_ACEOF |
2143 | cat >&5 <<_ACEOF |
… | |
… | |
1536 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
2167 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
2168 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1538 | | -silent | --silent | --silen | --sile | --sil) |
2169 | | -silent | --silent | --silen | --sile | --sil) |
1539 | continue ;; |
2170 | continue ;; |
1540 | *\'*) |
2171 | *\'*) |
1541 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2172 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1542 | esac |
2173 | esac |
1543 | case $ac_pass in |
2174 | case $ac_pass in |
1544 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
2175 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1545 | 2) |
2176 | 2) |
1546 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
2177 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1547 | if test $ac_must_keep_next = true; then |
2178 | if test $ac_must_keep_next = true; then |
1548 | ac_must_keep_next=false # Got value, back to normal. |
2179 | ac_must_keep_next=false # Got value, back to normal. |
1549 | else |
2180 | else |
1550 | case $ac_arg in |
2181 | case $ac_arg in |
1551 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
2182 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
… | |
… | |
1557 | esac |
2188 | esac |
1558 | ;; |
2189 | ;; |
1559 | -* ) ac_must_keep_next=true ;; |
2190 | -* ) ac_must_keep_next=true ;; |
1560 | esac |
2191 | esac |
1561 | fi |
2192 | fi |
1562 | ac_configure_args="$ac_configure_args '$ac_arg'" |
2193 | as_fn_append ac_configure_args " '$ac_arg'" |
1563 | ;; |
2194 | ;; |
1564 | esac |
2195 | esac |
1565 | done |
2196 | done |
1566 | done |
2197 | done |
1567 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
2198 | { ac_configure_args0=; unset ac_configure_args0;} |
1568 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
2199 | { ac_configure_args1=; unset ac_configure_args1;} |
1569 | |
2200 | |
1570 | # When interrupted or exit'd, cleanup temporary files, and complete |
2201 | # When interrupted or exit'd, cleanup temporary files, and complete |
1571 | # config.log. We remove comments because anyway the quotes in there |
2202 | # config.log. We remove comments because anyway the quotes in there |
1572 | # would cause problems or look ugly. |
2203 | # would cause problems or look ugly. |
1573 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2204 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1574 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
2205 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1575 | trap 'exit_status=$? |
2206 | trap 'exit_status=$? |
|
|
2207 | # Sanitize IFS. |
|
|
2208 | IFS=" "" $as_nl" |
1576 | # Save into config.log some information that might help in debugging. |
2209 | # Save into config.log some information that might help in debugging. |
1577 | { |
2210 | { |
1578 | echo |
2211 | echo |
1579 | |
2212 | |
1580 | cat <<\_ASBOX |
2213 | printf "%s\n" "## ---------------- ## |
1581 | ## ---------------- ## |
|
|
1582 | ## Cache variables. ## |
2214 | ## Cache variables. ## |
1583 | ## ---------------- ## |
2215 | ## ---------------- ##" |
1584 | _ASBOX |
|
|
1585 | echo |
2216 | echo |
1586 | # The following way of writing the cache mishandles newlines in values, |
2217 | # The following way of writing the cache mishandles newlines in values, |
1587 | ( |
2218 | ( |
1588 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
2219 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1589 | eval ac_val=\$$ac_var |
2220 | eval ac_val=\$$ac_var |
1590 | case $ac_val in #( |
2221 | case $ac_val in #( |
1591 | *${as_nl}*) |
2222 | *${as_nl}*) |
1592 | case $ac_var in #( |
2223 | case $ac_var in #( |
1593 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
2224 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
1594 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
2225 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1595 | esac |
2226 | esac |
1596 | case $ac_var in #( |
2227 | case $ac_var in #( |
1597 | _ | IFS | as_nl) ;; #( |
2228 | _ | IFS | as_nl) ;; #( |
1598 | *) $as_unset $ac_var ;; |
2229 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
|
2230 | *) { eval $ac_var=; unset $ac_var;} ;; |
1599 | esac ;; |
2231 | esac ;; |
1600 | esac |
2232 | esac |
1601 | done |
2233 | done |
1602 | (set) 2>&1 | |
2234 | (set) 2>&1 | |
1603 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2235 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
… | |
… | |
1612 | esac | |
2244 | esac | |
1613 | sort |
2245 | sort |
1614 | ) |
2246 | ) |
1615 | echo |
2247 | echo |
1616 | |
2248 | |
1617 | cat <<\_ASBOX |
2249 | printf "%s\n" "## ----------------- ## |
1618 | ## ----------------- ## |
|
|
1619 | ## Output variables. ## |
2250 | ## Output variables. ## |
1620 | ## ----------------- ## |
2251 | ## ----------------- ##" |
1621 | _ASBOX |
|
|
1622 | echo |
2252 | echo |
1623 | for ac_var in $ac_subst_vars |
2253 | for ac_var in $ac_subst_vars |
1624 | do |
2254 | do |
1625 | eval ac_val=\$$ac_var |
2255 | eval ac_val=\$$ac_var |
1626 | case $ac_val in |
2256 | case $ac_val in |
1627 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2257 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1628 | esac |
2258 | esac |
1629 | echo "$ac_var='\''$ac_val'\''" |
2259 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
1630 | done | sort |
2260 | done | sort |
1631 | echo |
2261 | echo |
1632 | |
2262 | |
1633 | if test -n "$ac_subst_files"; then |
2263 | if test -n "$ac_subst_files"; then |
1634 | cat <<\_ASBOX |
2264 | printf "%s\n" "## ------------------- ## |
1635 | ## ------------------- ## |
|
|
1636 | ## File substitutions. ## |
2265 | ## File substitutions. ## |
1637 | ## ------------------- ## |
2266 | ## ------------------- ##" |
1638 | _ASBOX |
|
|
1639 | echo |
2267 | echo |
1640 | for ac_var in $ac_subst_files |
2268 | for ac_var in $ac_subst_files |
1641 | do |
2269 | do |
1642 | eval ac_val=\$$ac_var |
2270 | eval ac_val=\$$ac_var |
1643 | case $ac_val in |
2271 | case $ac_val in |
1644 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2272 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1645 | esac |
2273 | esac |
1646 | echo "$ac_var='\''$ac_val'\''" |
2274 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
1647 | done | sort |
2275 | done | sort |
1648 | echo |
2276 | echo |
1649 | fi |
2277 | fi |
1650 | |
2278 | |
1651 | if test -s confdefs.h; then |
2279 | if test -s confdefs.h; then |
1652 | cat <<\_ASBOX |
2280 | printf "%s\n" "## ----------- ## |
1653 | ## ----------- ## |
|
|
1654 | ## confdefs.h. ## |
2281 | ## confdefs.h. ## |
1655 | ## ----------- ## |
2282 | ## ----------- ##" |
1656 | _ASBOX |
|
|
1657 | echo |
2283 | echo |
1658 | cat confdefs.h |
2284 | cat confdefs.h |
1659 | echo |
2285 | echo |
1660 | fi |
2286 | fi |
1661 | test "$ac_signal" != 0 && |
2287 | test "$ac_signal" != 0 && |
1662 | echo "$as_me: caught signal $ac_signal" |
2288 | printf "%s\n" "$as_me: caught signal $ac_signal" |
1663 | echo "$as_me: exit $exit_status" |
2289 | printf "%s\n" "$as_me: exit $exit_status" |
1664 | } >&5 |
2290 | } >&5 |
1665 | rm -f core *.core core.conftest.* && |
2291 | rm -f core *.core core.conftest.* && |
1666 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
2292 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1667 | exit $exit_status |
2293 | exit $exit_status |
1668 | ' 0 |
2294 | ' 0 |
1669 | for ac_signal in 1 2 13 15; do |
2295 | for ac_signal in 1 2 13 15; do |
1670 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
2296 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1671 | done |
2297 | done |
1672 | ac_signal=0 |
2298 | ac_signal=0 |
1673 | |
2299 | |
1674 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2300 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1675 | rm -f -r conftest* confdefs.h |
2301 | rm -f -r conftest* confdefs.h |
1676 | |
2302 | |
|
|
2303 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
|
|
2304 | |
1677 | # Predefined preprocessor variables. |
2305 | # Predefined preprocessor variables. |
1678 | |
2306 | |
1679 | cat >>confdefs.h <<_ACEOF |
2307 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
1680 | #define PACKAGE_NAME "$PACKAGE_NAME" |
|
|
1681 | _ACEOF |
|
|
1682 | |
2308 | |
|
|
2309 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
1683 | |
2310 | |
1684 | cat >>confdefs.h <<_ACEOF |
2311 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
1685 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
|
1686 | _ACEOF |
|
|
1687 | |
2312 | |
|
|
2313 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
1688 | |
2314 | |
1689 | cat >>confdefs.h <<_ACEOF |
2315 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
1690 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
|
|
1691 | _ACEOF |
|
|
1692 | |
2316 | |
1693 | |
2317 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
1694 | cat >>confdefs.h <<_ACEOF |
|
|
1695 | #define PACKAGE_STRING "$PACKAGE_STRING" |
|
|
1696 | _ACEOF |
|
|
1697 | |
|
|
1698 | |
|
|
1699 | cat >>confdefs.h <<_ACEOF |
|
|
1700 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|
|
1701 | _ACEOF |
|
|
1702 | |
2318 | |
1703 | |
2319 | |
1704 | # Let the site file select an alternate cache file if it wants to. |
2320 | # Let the site file select an alternate cache file if it wants to. |
1705 | # Prefer explicitly selected file to automatically selected ones. |
2321 | # Prefer an explicitly selected file to automatically selected ones. |
1706 | if test -n "$CONFIG_SITE"; then |
2322 | if test -n "$CONFIG_SITE"; then |
1707 | set x "$CONFIG_SITE" |
2323 | ac_site_files="$CONFIG_SITE" |
1708 | elif test "x$prefix" != xNONE; then |
2324 | elif test "x$prefix" != xNONE; then |
1709 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
2325 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
1710 | else |
2326 | else |
1711 | set x "$ac_default_prefix/share/config.site" \ |
2327 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1712 | "$ac_default_prefix/etc/config.site" |
|
|
1713 | fi |
2328 | fi |
1714 | shift |
2329 | |
1715 | for ac_site_file |
2330 | for ac_site_file in $ac_site_files |
1716 | do |
2331 | do |
1717 | if test -r "$ac_site_file"; then |
2332 | case $ac_site_file in #( |
|
|
2333 | */*) : |
|
|
2334 | ;; #( |
|
|
2335 | *) : |
|
|
2336 | ac_site_file=./$ac_site_file ;; |
|
|
2337 | esac |
|
|
2338 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
1718 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
2339 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1719 | echo "$as_me: loading site script $ac_site_file" >&6;} |
2340 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
1720 | sed 's/^/| /' "$ac_site_file" >&5 |
2341 | sed 's/^/| /' "$ac_site_file" >&5 |
1721 | . "$ac_site_file" |
2342 | . "$ac_site_file" \ |
|
|
2343 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
2344 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
2345 | as_fn_error $? "failed to load site script $ac_site_file |
|
|
2346 | See \`config.log' for more details" "$LINENO" 5; } |
1722 | fi |
2347 | fi |
1723 | done |
2348 | done |
1724 | |
2349 | |
1725 | if test -r "$cache_file"; then |
2350 | if test -r "$cache_file"; then |
1726 | # Some versions of bash will fail to source /dev/null (special |
2351 | # Some versions of bash will fail to source /dev/null (special files |
1727 | # files actually), so we avoid doing that. |
2352 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
1728 | if test -f "$cache_file"; then |
2353 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
1729 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
2354 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1730 | echo "$as_me: loading cache $cache_file" >&6;} |
2355 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
1731 | case $cache_file in |
2356 | case $cache_file in |
1732 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2357 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1733 | *) . "./$cache_file";; |
2358 | *) . "./$cache_file";; |
1734 | esac |
2359 | esac |
1735 | fi |
2360 | fi |
1736 | else |
2361 | else |
1737 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
2362 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1738 | echo "$as_me: creating cache $cache_file" >&6;} |
2363 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
1739 | >$cache_file |
2364 | >$cache_file |
|
|
2365 | fi |
|
|
2366 | |
|
|
2367 | # Test code for whether the C compiler supports C89 (global declarations) |
|
|
2368 | ac_c_conftest_c89_globals=' |
|
|
2369 | /* Does the compiler advertise C89 conformance? |
|
|
2370 | Do not test the value of __STDC__, because some compilers set it to 0 |
|
|
2371 | while being otherwise adequately conformant. */ |
|
|
2372 | #if !defined __STDC__ |
|
|
2373 | # error "Compiler does not advertise C89 conformance" |
|
|
2374 | #endif |
|
|
2375 | |
|
|
2376 | #include <stddef.h> |
|
|
2377 | #include <stdarg.h> |
|
|
2378 | struct stat; |
|
|
2379 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
|
|
2380 | struct buf { int x; }; |
|
|
2381 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
2382 | static char *e (p, i) |
|
|
2383 | char **p; |
|
|
2384 | int i; |
|
|
2385 | { |
|
|
2386 | return p[i]; |
|
|
2387 | } |
|
|
2388 | static char *f (char * (*g) (char **, int), char **p, ...) |
|
|
2389 | { |
|
|
2390 | char *s; |
|
|
2391 | va_list v; |
|
|
2392 | va_start (v,p); |
|
|
2393 | s = g (p, va_arg (v,int)); |
|
|
2394 | va_end (v); |
|
|
2395 | return s; |
|
|
2396 | } |
|
|
2397 | |
|
|
2398 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
|
2399 | function prototypes and stuff, but not \xHH hex character constants. |
|
|
2400 | These do not provoke an error unfortunately, instead are silently treated |
|
|
2401 | as an "x". The following induces an error, until -std is added to get |
|
|
2402 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
|
|
2403 | array size at least. It is necessary to write \x00 == 0 to get something |
|
|
2404 | that is true only with -std. */ |
|
|
2405 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
|
|
2406 | |
|
|
2407 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
|
2408 | inside strings and character constants. */ |
|
|
2409 | #define FOO(x) '\''x'\'' |
|
|
2410 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
|
|
2411 | |
|
|
2412 | int test (int i, double x); |
|
|
2413 | struct s1 {int (*f) (int a);}; |
|
|
2414 | struct s2 {int (*f) (double a);}; |
|
|
2415 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
|
|
2416 | int, int);' |
|
|
2417 | |
|
|
2418 | # Test code for whether the C compiler supports C89 (body of main). |
|
|
2419 | ac_c_conftest_c89_main=' |
|
|
2420 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
|
|
2421 | ' |
|
|
2422 | |
|
|
2423 | # Test code for whether the C compiler supports C99 (global declarations) |
|
|
2424 | ac_c_conftest_c99_globals=' |
|
|
2425 | // Does the compiler advertise C99 conformance? |
|
|
2426 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
|
|
2427 | # error "Compiler does not advertise C99 conformance" |
|
|
2428 | #endif |
|
|
2429 | |
|
|
2430 | #include <stdbool.h> |
|
|
2431 | extern int puts (const char *); |
|
|
2432 | extern int printf (const char *, ...); |
|
|
2433 | extern int dprintf (int, const char *, ...); |
|
|
2434 | extern void *malloc (size_t); |
|
|
2435 | |
|
|
2436 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
|
|
2437 | // dprintf is used instead of fprintf to avoid needing to declare |
|
|
2438 | // FILE and stderr. |
|
|
2439 | #define debug(...) dprintf (2, __VA_ARGS__) |
|
|
2440 | #define showlist(...) puts (#__VA_ARGS__) |
|
|
2441 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
|
|
2442 | static void |
|
|
2443 | test_varargs_macros (void) |
|
|
2444 | { |
|
|
2445 | int x = 1234; |
|
|
2446 | int y = 5678; |
|
|
2447 | debug ("Flag"); |
|
|
2448 | debug ("X = %d\n", x); |
|
|
2449 | showlist (The first, second, and third items.); |
|
|
2450 | report (x>y, "x is %d but y is %d", x, y); |
|
|
2451 | } |
|
|
2452 | |
|
|
2453 | // Check long long types. |
|
|
2454 | #define BIG64 18446744073709551615ull |
|
|
2455 | #define BIG32 4294967295ul |
|
|
2456 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
|
|
2457 | #if !BIG_OK |
|
|
2458 | #error "your preprocessor is broken" |
|
|
2459 | #endif |
|
|
2460 | #if BIG_OK |
|
|
2461 | #else |
|
|
2462 | #error "your preprocessor is broken" |
|
|
2463 | #endif |
|
|
2464 | static long long int bignum = -9223372036854775807LL; |
|
|
2465 | static unsigned long long int ubignum = BIG64; |
|
|
2466 | |
|
|
2467 | struct incomplete_array |
|
|
2468 | { |
|
|
2469 | int datasize; |
|
|
2470 | double data[]; |
|
|
2471 | }; |
|
|
2472 | |
|
|
2473 | struct named_init { |
|
|
2474 | int number; |
|
|
2475 | const wchar_t *name; |
|
|
2476 | double average; |
|
|
2477 | }; |
|
|
2478 | |
|
|
2479 | typedef const char *ccp; |
|
|
2480 | |
|
|
2481 | static inline int |
|
|
2482 | test_restrict (ccp restrict text) |
|
|
2483 | { |
|
|
2484 | // See if C++-style comments work. |
|
|
2485 | // Iterate through items via the restricted pointer. |
|
|
2486 | // Also check for declarations in for loops. |
|
|
2487 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
|
|
2488 | continue; |
|
|
2489 | return 0; |
|
|
2490 | } |
|
|
2491 | |
|
|
2492 | // Check varargs and va_copy. |
|
|
2493 | static bool |
|
|
2494 | test_varargs (const char *format, ...) |
|
|
2495 | { |
|
|
2496 | va_list args; |
|
|
2497 | va_start (args, format); |
|
|
2498 | va_list args_copy; |
|
|
2499 | va_copy (args_copy, args); |
|
|
2500 | |
|
|
2501 | const char *str = ""; |
|
|
2502 | int number = 0; |
|
|
2503 | float fnumber = 0; |
|
|
2504 | |
|
|
2505 | while (*format) |
|
|
2506 | { |
|
|
2507 | switch (*format++) |
|
|
2508 | { |
|
|
2509 | case '\''s'\'': // string |
|
|
2510 | str = va_arg (args_copy, const char *); |
|
|
2511 | break; |
|
|
2512 | case '\''d'\'': // int |
|
|
2513 | number = va_arg (args_copy, int); |
|
|
2514 | break; |
|
|
2515 | case '\''f'\'': // float |
|
|
2516 | fnumber = va_arg (args_copy, double); |
|
|
2517 | break; |
|
|
2518 | default: |
|
|
2519 | break; |
|
|
2520 | } |
|
|
2521 | } |
|
|
2522 | va_end (args_copy); |
|
|
2523 | va_end (args); |
|
|
2524 | |
|
|
2525 | return *str && number && fnumber; |
|
|
2526 | } |
|
|
2527 | ' |
|
|
2528 | |
|
|
2529 | # Test code for whether the C compiler supports C99 (body of main). |
|
|
2530 | ac_c_conftest_c99_main=' |
|
|
2531 | // Check bool. |
|
|
2532 | _Bool success = false; |
|
|
2533 | success |= (argc != 0); |
|
|
2534 | |
|
|
2535 | // Check restrict. |
|
|
2536 | if (test_restrict ("String literal") == 0) |
|
|
2537 | success = true; |
|
|
2538 | char *restrict newvar = "Another string"; |
|
|
2539 | |
|
|
2540 | // Check varargs. |
|
|
2541 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
|
|
2542 | test_varargs_macros (); |
|
|
2543 | |
|
|
2544 | // Check flexible array members. |
|
|
2545 | struct incomplete_array *ia = |
|
|
2546 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
|
|
2547 | ia->datasize = 10; |
|
|
2548 | for (int i = 0; i < ia->datasize; ++i) |
|
|
2549 | ia->data[i] = i * 1.234; |
|
|
2550 | |
|
|
2551 | // Check named initializers. |
|
|
2552 | struct named_init ni = { |
|
|
2553 | .number = 34, |
|
|
2554 | .name = L"Test wide string", |
|
|
2555 | .average = 543.34343, |
|
|
2556 | }; |
|
|
2557 | |
|
|
2558 | ni.number = 58; |
|
|
2559 | |
|
|
2560 | int dynamic_array[ni.number]; |
|
|
2561 | dynamic_array[0] = argv[0][0]; |
|
|
2562 | dynamic_array[ni.number - 1] = 543; |
|
|
2563 | |
|
|
2564 | // work around unused variable warnings |
|
|
2565 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
|
|
2566 | || dynamic_array[ni.number - 1] != 543); |
|
|
2567 | ' |
|
|
2568 | |
|
|
2569 | # Test code for whether the C compiler supports C11 (global declarations) |
|
|
2570 | ac_c_conftest_c11_globals=' |
|
|
2571 | // Does the compiler advertise C11 conformance? |
|
|
2572 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
|
|
2573 | # error "Compiler does not advertise C11 conformance" |
|
|
2574 | #endif |
|
|
2575 | |
|
|
2576 | // Check _Alignas. |
|
|
2577 | char _Alignas (double) aligned_as_double; |
|
|
2578 | char _Alignas (0) no_special_alignment; |
|
|
2579 | extern char aligned_as_int; |
|
|
2580 | char _Alignas (0) _Alignas (int) aligned_as_int; |
|
|
2581 | |
|
|
2582 | // Check _Alignof. |
|
|
2583 | enum |
|
|
2584 | { |
|
|
2585 | int_alignment = _Alignof (int), |
|
|
2586 | int_array_alignment = _Alignof (int[100]), |
|
|
2587 | char_alignment = _Alignof (char) |
|
|
2588 | }; |
|
|
2589 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
|
|
2590 | |
|
|
2591 | // Check _Noreturn. |
|
|
2592 | int _Noreturn does_not_return (void) { for (;;) continue; } |
|
|
2593 | |
|
|
2594 | // Check _Static_assert. |
|
|
2595 | struct test_static_assert |
|
|
2596 | { |
|
|
2597 | int x; |
|
|
2598 | _Static_assert (sizeof (int) <= sizeof (long int), |
|
|
2599 | "_Static_assert does not work in struct"); |
|
|
2600 | long int y; |
|
|
2601 | }; |
|
|
2602 | |
|
|
2603 | // Check UTF-8 literals. |
|
|
2604 | #define u8 syntax error! |
|
|
2605 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
|
|
2606 | |
|
|
2607 | // Check duplicate typedefs. |
|
|
2608 | typedef long *long_ptr; |
|
|
2609 | typedef long int *long_ptr; |
|
|
2610 | typedef long_ptr long_ptr; |
|
|
2611 | |
|
|
2612 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
|
|
2613 | struct anonymous |
|
|
2614 | { |
|
|
2615 | union { |
|
|
2616 | struct { int i; int j; }; |
|
|
2617 | struct { int k; long int l; } w; |
|
|
2618 | }; |
|
|
2619 | int m; |
|
|
2620 | } v1; |
|
|
2621 | ' |
|
|
2622 | |
|
|
2623 | # Test code for whether the C compiler supports C11 (body of main). |
|
|
2624 | ac_c_conftest_c11_main=' |
|
|
2625 | _Static_assert ((offsetof (struct anonymous, i) |
|
|
2626 | == offsetof (struct anonymous, w.k)), |
|
|
2627 | "Anonymous union alignment botch"); |
|
|
2628 | v1.i = 2; |
|
|
2629 | v1.w.k = 5; |
|
|
2630 | ok |= v1.i != 5; |
|
|
2631 | ' |
|
|
2632 | |
|
|
2633 | # Test code for whether the C compiler supports C11 (complete). |
|
|
2634 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
|
|
2635 | ${ac_c_conftest_c99_globals} |
|
|
2636 | ${ac_c_conftest_c11_globals} |
|
|
2637 | |
|
|
2638 | int |
|
|
2639 | main (int argc, char **argv) |
|
|
2640 | { |
|
|
2641 | int ok = 0; |
|
|
2642 | ${ac_c_conftest_c89_main} |
|
|
2643 | ${ac_c_conftest_c99_main} |
|
|
2644 | ${ac_c_conftest_c11_main} |
|
|
2645 | return ok; |
|
|
2646 | } |
|
|
2647 | " |
|
|
2648 | |
|
|
2649 | # Test code for whether the C compiler supports C99 (complete). |
|
|
2650 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
|
|
2651 | ${ac_c_conftest_c99_globals} |
|
|
2652 | |
|
|
2653 | int |
|
|
2654 | main (int argc, char **argv) |
|
|
2655 | { |
|
|
2656 | int ok = 0; |
|
|
2657 | ${ac_c_conftest_c89_main} |
|
|
2658 | ${ac_c_conftest_c99_main} |
|
|
2659 | return ok; |
|
|
2660 | } |
|
|
2661 | " |
|
|
2662 | |
|
|
2663 | # Test code for whether the C compiler supports C89 (complete). |
|
|
2664 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
|
|
2665 | |
|
|
2666 | int |
|
|
2667 | main (int argc, char **argv) |
|
|
2668 | { |
|
|
2669 | int ok = 0; |
|
|
2670 | ${ac_c_conftest_c89_main} |
|
|
2671 | return ok; |
|
|
2672 | } |
|
|
2673 | " |
|
|
2674 | |
|
|
2675 | # Test code for whether the C++ compiler supports C++98 (global declarations) |
|
|
2676 | ac_cxx_conftest_cxx98_globals=' |
|
|
2677 | // Does the compiler advertise C++98 conformance? |
|
|
2678 | #if !defined __cplusplus || __cplusplus < 199711L |
|
|
2679 | # error "Compiler does not advertise C++98 conformance" |
|
|
2680 | #endif |
|
|
2681 | |
|
|
2682 | // These inclusions are to reject old compilers that |
|
|
2683 | // lack the unsuffixed header files. |
|
|
2684 | #include <cstdlib> |
|
|
2685 | #include <exception> |
|
|
2686 | |
|
|
2687 | // <cassert> and <cstring> are *not* freestanding headers in C++98. |
|
|
2688 | extern void assert (int); |
|
|
2689 | namespace std { |
|
|
2690 | extern int strcmp (const char *, const char *); |
|
|
2691 | } |
|
|
2692 | |
|
|
2693 | // Namespaces, exceptions, and templates were all added after "C++ 2.0". |
|
|
2694 | using std::exception; |
|
|
2695 | using std::strcmp; |
|
|
2696 | |
|
|
2697 | namespace { |
|
|
2698 | |
|
|
2699 | void test_exception_syntax() |
|
|
2700 | { |
|
|
2701 | try { |
|
|
2702 | throw "test"; |
|
|
2703 | } catch (const char *s) { |
|
|
2704 | // Extra parentheses suppress a warning when building autoconf itself, |
|
|
2705 | // due to lint rules shared with more typical C programs. |
|
|
2706 | assert (!(strcmp) (s, "test")); |
|
|
2707 | } |
|
|
2708 | } |
|
|
2709 | |
|
|
2710 | template <typename T> struct test_template |
|
|
2711 | { |
|
|
2712 | T const val; |
|
|
2713 | explicit test_template(T t) : val(t) {} |
|
|
2714 | template <typename U> T add(U u) { return static_cast<T>(u) + val; } |
|
|
2715 | }; |
|
|
2716 | |
|
|
2717 | } // anonymous namespace |
|
|
2718 | ' |
|
|
2719 | |
|
|
2720 | # Test code for whether the C++ compiler supports C++98 (body of main) |
|
|
2721 | ac_cxx_conftest_cxx98_main=' |
|
|
2722 | assert (argc); |
|
|
2723 | assert (! argv[0]); |
|
|
2724 | { |
|
|
2725 | test_exception_syntax (); |
|
|
2726 | test_template<double> tt (2.0); |
|
|
2727 | assert (tt.add (4) == 6.0); |
|
|
2728 | assert (true && !false); |
|
|
2729 | } |
|
|
2730 | ' |
|
|
2731 | |
|
|
2732 | # Test code for whether the C++ compiler supports C++11 (global declarations) |
|
|
2733 | ac_cxx_conftest_cxx11_globals=' |
|
|
2734 | // Does the compiler advertise C++ 2011 conformance? |
|
|
2735 | #if !defined __cplusplus || __cplusplus < 201103L |
|
|
2736 | # error "Compiler does not advertise C++11 conformance" |
|
|
2737 | #endif |
|
|
2738 | |
|
|
2739 | namespace cxx11test |
|
|
2740 | { |
|
|
2741 | constexpr int get_val() { return 20; } |
|
|
2742 | |
|
|
2743 | struct testinit |
|
|
2744 | { |
|
|
2745 | int i; |
|
|
2746 | double d; |
|
|
2747 | }; |
|
|
2748 | |
|
|
2749 | class delegate |
|
|
2750 | { |
|
|
2751 | public: |
|
|
2752 | delegate(int n) : n(n) {} |
|
|
2753 | delegate(): delegate(2354) {} |
|
|
2754 | |
|
|
2755 | virtual int getval() { return this->n; }; |
|
|
2756 | protected: |
|
|
2757 | int n; |
|
|
2758 | }; |
|
|
2759 | |
|
|
2760 | class overridden : public delegate |
|
|
2761 | { |
|
|
2762 | public: |
|
|
2763 | overridden(int n): delegate(n) {} |
|
|
2764 | virtual int getval() override final { return this->n * 2; } |
|
|
2765 | }; |
|
|
2766 | |
|
|
2767 | class nocopy |
|
|
2768 | { |
|
|
2769 | public: |
|
|
2770 | nocopy(int i): i(i) {} |
|
|
2771 | nocopy() = default; |
|
|
2772 | nocopy(const nocopy&) = delete; |
|
|
2773 | nocopy & operator=(const nocopy&) = delete; |
|
|
2774 | private: |
|
|
2775 | int i; |
|
|
2776 | }; |
|
|
2777 | |
|
|
2778 | // for testing lambda expressions |
|
|
2779 | template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) |
|
|
2780 | { |
|
|
2781 | return f(v); |
|
|
2782 | } |
|
|
2783 | |
|
|
2784 | // for testing variadic templates and trailing return types |
|
|
2785 | template <typename V> auto sum(V first) -> V |
|
|
2786 | { |
|
|
2787 | return first; |
|
|
2788 | } |
|
|
2789 | template <typename V, typename... Args> auto sum(V first, Args... rest) -> V |
|
|
2790 | { |
|
|
2791 | return first + sum(rest...); |
|
|
2792 | } |
|
|
2793 | } |
|
|
2794 | ' |
|
|
2795 | |
|
|
2796 | # Test code for whether the C++ compiler supports C++11 (body of main) |
|
|
2797 | ac_cxx_conftest_cxx11_main=' |
|
|
2798 | { |
|
|
2799 | // Test auto and decltype |
|
|
2800 | auto a1 = 6538; |
|
|
2801 | auto a2 = 48573953.4; |
|
|
2802 | auto a3 = "String literal"; |
|
|
2803 | |
|
|
2804 | int total = 0; |
|
|
2805 | for (auto i = a3; *i; ++i) { total += *i; } |
|
|
2806 | |
|
|
2807 | decltype(a2) a4 = 34895.034; |
|
|
2808 | } |
|
|
2809 | { |
|
|
2810 | // Test constexpr |
|
|
2811 | short sa[cxx11test::get_val()] = { 0 }; |
|
|
2812 | } |
|
|
2813 | { |
|
|
2814 | // Test initializer lists |
|
|
2815 | cxx11test::testinit il = { 4323, 435234.23544 }; |
|
|
2816 | } |
|
|
2817 | { |
|
|
2818 | // Test range-based for |
|
|
2819 | int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, |
|
|
2820 | 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; |
|
|
2821 | for (auto &x : array) { x += 23; } |
|
|
2822 | } |
|
|
2823 | { |
|
|
2824 | // Test lambda expressions |
|
|
2825 | using cxx11test::eval; |
|
|
2826 | assert (eval ([](int x) { return x*2; }, 21) == 42); |
|
|
2827 | double d = 2.0; |
|
|
2828 | assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); |
|
|
2829 | assert (d == 5.0); |
|
|
2830 | assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); |
|
|
2831 | assert (d == 5.0); |
|
|
2832 | } |
|
|
2833 | { |
|
|
2834 | // Test use of variadic templates |
|
|
2835 | using cxx11test::sum; |
|
|
2836 | auto a = sum(1); |
|
|
2837 | auto b = sum(1, 2); |
|
|
2838 | auto c = sum(1.0, 2.0, 3.0); |
|
|
2839 | } |
|
|
2840 | { |
|
|
2841 | // Test constructor delegation |
|
|
2842 | cxx11test::delegate d1; |
|
|
2843 | cxx11test::delegate d2(); |
|
|
2844 | cxx11test::delegate d3(45); |
|
|
2845 | } |
|
|
2846 | { |
|
|
2847 | // Test override and final |
|
|
2848 | cxx11test::overridden o1(55464); |
|
|
2849 | } |
|
|
2850 | { |
|
|
2851 | // Test nullptr |
|
|
2852 | char *c = nullptr; |
|
|
2853 | } |
|
|
2854 | { |
|
|
2855 | // Test template brackets |
|
|
2856 | test_template<::test_template<int>> v(test_template<int>(12)); |
|
|
2857 | } |
|
|
2858 | { |
|
|
2859 | // Unicode literals |
|
|
2860 | char const *utf8 = u8"UTF-8 string \u2500"; |
|
|
2861 | char16_t const *utf16 = u"UTF-8 string \u2500"; |
|
|
2862 | char32_t const *utf32 = U"UTF-32 string \u2500"; |
|
|
2863 | } |
|
|
2864 | ' |
|
|
2865 | |
|
|
2866 | # Test code for whether the C compiler supports C++11 (complete). |
|
|
2867 | ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} |
|
|
2868 | ${ac_cxx_conftest_cxx11_globals} |
|
|
2869 | |
|
|
2870 | int |
|
|
2871 | main (int argc, char **argv) |
|
|
2872 | { |
|
|
2873 | int ok = 0; |
|
|
2874 | ${ac_cxx_conftest_cxx98_main} |
|
|
2875 | ${ac_cxx_conftest_cxx11_main} |
|
|
2876 | return ok; |
|
|
2877 | } |
|
|
2878 | " |
|
|
2879 | |
|
|
2880 | # Test code for whether the C compiler supports C++98 (complete). |
|
|
2881 | ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} |
|
|
2882 | int |
|
|
2883 | main (int argc, char **argv) |
|
|
2884 | { |
|
|
2885 | int ok = 0; |
|
|
2886 | ${ac_cxx_conftest_cxx98_main} |
|
|
2887 | return ok; |
|
|
2888 | } |
|
|
2889 | " |
|
|
2890 | |
|
|
2891 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
|
|
2892 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
|
|
2893 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
|
|
2894 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
|
|
2895 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
|
|
2896 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
|
|
2897 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
|
|
2898 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
|
|
2899 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
|
|
2900 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
|
|
2901 | as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
|
|
2902 | |
|
|
2903 | # Auxiliary files required by this configure script. |
|
|
2904 | ac_aux_files="install-sh" |
|
|
2905 | |
|
|
2906 | # Locations in which to look for auxiliary files. |
|
|
2907 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
|
|
2908 | |
|
|
2909 | # Search for a directory containing all of the required auxiliary files, |
|
|
2910 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
|
|
2911 | # If we don't find one directory that contains all the files we need, |
|
|
2912 | # we report the set of missing files from the *first* directory in |
|
|
2913 | # $ac_aux_dir_candidates and give up. |
|
|
2914 | ac_missing_aux_files="" |
|
|
2915 | ac_first_candidate=: |
|
|
2916 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
|
|
2917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2918 | as_found=false |
|
|
2919 | for as_dir in $ac_aux_dir_candidates |
|
|
2920 | do |
|
|
2921 | IFS=$as_save_IFS |
|
|
2922 | case $as_dir in #((( |
|
|
2923 | '') as_dir=./ ;; |
|
|
2924 | */) ;; |
|
|
2925 | *) as_dir=$as_dir/ ;; |
|
|
2926 | esac |
|
|
2927 | as_found=: |
|
|
2928 | |
|
|
2929 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
|
|
2930 | ac_aux_dir_found=yes |
|
|
2931 | ac_install_sh= |
|
|
2932 | for ac_aux in $ac_aux_files |
|
|
2933 | do |
|
|
2934 | # As a special case, if "install-sh" is required, that requirement |
|
|
2935 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", |
|
|
2936 | # and $ac_install_sh is set appropriately for whichever one is found. |
|
|
2937 | if test x"$ac_aux" = x"install-sh" |
|
|
2938 | then |
|
|
2939 | if test -f "${as_dir}install-sh"; then |
|
|
2940 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
|
|
2941 | ac_install_sh="${as_dir}install-sh -c" |
|
|
2942 | elif test -f "${as_dir}install.sh"; then |
|
|
2943 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
|
|
2944 | ac_install_sh="${as_dir}install.sh -c" |
|
|
2945 | elif test -f "${as_dir}shtool"; then |
|
|
2946 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
|
|
2947 | ac_install_sh="${as_dir}shtool install -c" |
|
|
2948 | else |
|
|
2949 | ac_aux_dir_found=no |
|
|
2950 | if $ac_first_candidate; then |
|
|
2951 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
|
|
2952 | else |
|
|
2953 | break |
|
|
2954 | fi |
|
|
2955 | fi |
|
|
2956 | else |
|
|
2957 | if test -f "${as_dir}${ac_aux}"; then |
|
|
2958 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
|
|
2959 | else |
|
|
2960 | ac_aux_dir_found=no |
|
|
2961 | if $ac_first_candidate; then |
|
|
2962 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
|
|
2963 | else |
|
|
2964 | break |
|
|
2965 | fi |
|
|
2966 | fi |
|
|
2967 | fi |
|
|
2968 | done |
|
|
2969 | if test "$ac_aux_dir_found" = yes; then |
|
|
2970 | ac_aux_dir="$as_dir" |
|
|
2971 | break |
|
|
2972 | fi |
|
|
2973 | ac_first_candidate=false |
|
|
2974 | |
|
|
2975 | as_found=false |
|
|
2976 | done |
|
|
2977 | IFS=$as_save_IFS |
|
|
2978 | if $as_found |
|
|
2979 | then : |
|
|
2980 | |
|
|
2981 | else $as_nop |
|
|
2982 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
|
|
2983 | fi |
|
|
2984 | |
|
|
2985 | |
|
|
2986 | # These three variables are undocumented and unsupported, |
|
|
2987 | # and are intended to be withdrawn in a future Autoconf release. |
|
|
2988 | # They can cause serious problems if a builder's source tree is in a directory |
|
|
2989 | # whose full name contains unusual characters. |
|
|
2990 | if test -f "${ac_aux_dir}config.guess"; then |
|
|
2991 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
|
|
2992 | fi |
|
|
2993 | if test -f "${ac_aux_dir}config.sub"; then |
|
|
2994 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
|
|
2995 | fi |
|
|
2996 | if test -f "$ac_aux_dir/configure"; then |
|
|
2997 | ac_configure="$SHELL ${ac_aux_dir}configure" |
1740 | fi |
2998 | fi |
1741 | |
2999 | |
1742 | # Check that the precious variables saved in the cache have kept the same |
3000 | # Check that the precious variables saved in the cache have kept the same |
1743 | # value. |
3001 | # value. |
1744 | ac_cache_corrupted=false |
3002 | ac_cache_corrupted=false |
… | |
… | |
1747 | eval ac_new_set=\$ac_env_${ac_var}_set |
3005 | eval ac_new_set=\$ac_env_${ac_var}_set |
1748 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
3006 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1749 | eval ac_new_val=\$ac_env_${ac_var}_value |
3007 | eval ac_new_val=\$ac_env_${ac_var}_value |
1750 | case $ac_old_set,$ac_new_set in |
3008 | case $ac_old_set,$ac_new_set in |
1751 | set,) |
3009 | set,) |
1752 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
3010 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1753 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
3011 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1754 | ac_cache_corrupted=: ;; |
3012 | ac_cache_corrupted=: ;; |
1755 | ,set) |
3013 | ,set) |
1756 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
3014 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
1757 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
3015 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1758 | ac_cache_corrupted=: ;; |
3016 | ac_cache_corrupted=: ;; |
1759 | ,);; |
3017 | ,);; |
1760 | *) |
3018 | *) |
1761 | if test "x$ac_old_val" != "x$ac_new_val"; then |
3019 | if test "x$ac_old_val" != "x$ac_new_val"; then |
|
|
3020 | # differences in whitespace do not lead to failure. |
|
|
3021 | ac_old_val_w=`echo x $ac_old_val` |
|
|
3022 | ac_new_val_w=`echo x $ac_new_val` |
|
|
3023 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
1762 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
3024 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
1763 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
3025 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1764 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
|
|
1765 | echo "$as_me: former value: $ac_old_val" >&2;} |
|
|
1766 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
|
|
1767 | echo "$as_me: current value: $ac_new_val" >&2;} |
|
|
1768 | ac_cache_corrupted=: |
3026 | ac_cache_corrupted=: |
|
|
3027 | else |
|
|
3028 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
|
|
3029 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
|
|
3030 | eval $ac_var=\$ac_old_val |
|
|
3031 | fi |
|
|
3032 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
|
|
3033 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
|
|
3034 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
|
|
3035 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
1769 | fi;; |
3036 | fi;; |
1770 | esac |
3037 | esac |
1771 | # Pass precious variables to config.status. |
3038 | # Pass precious variables to config.status. |
1772 | if test "$ac_new_set" = set; then |
3039 | if test "$ac_new_set" = set; then |
1773 | case $ac_new_val in |
3040 | case $ac_new_val in |
1774 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
3041 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1775 | *) ac_arg=$ac_var=$ac_new_val ;; |
3042 | *) ac_arg=$ac_var=$ac_new_val ;; |
1776 | esac |
3043 | esac |
1777 | case " $ac_configure_args " in |
3044 | case " $ac_configure_args " in |
1778 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
3045 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1779 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
3046 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1780 | esac |
3047 | esac |
1781 | fi |
3048 | fi |
1782 | done |
3049 | done |
1783 | if $ac_cache_corrupted; then |
3050 | if $ac_cache_corrupted; then |
|
|
3051 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
3052 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
1784 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
3053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
1785 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
3054 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
1786 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
3055 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
1787 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
3056 | and start over" "$LINENO" 5 |
1788 | { (exit 1); exit 1; }; } |
|
|
1789 | fi |
3057 | fi |
1790 | |
3058 | ## -------------------- ## |
1791 | |
3059 | ## Main body of script. ## |
1792 | |
3060 | ## -------------------- ## |
1793 | |
|
|
1794 | |
|
|
1795 | |
|
|
1796 | |
|
|
1797 | |
|
|
1798 | |
|
|
1799 | |
|
|
1800 | |
|
|
1801 | |
|
|
1802 | |
|
|
1803 | |
|
|
1804 | |
|
|
1805 | |
|
|
1806 | |
3061 | |
1807 | ac_ext=c |
3062 | ac_ext=c |
1808 | ac_cpp='$CPP $CPPFLAGS' |
3063 | ac_cpp='$CPP $CPPFLAGS' |
1809 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3064 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1810 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3065 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
1814 | |
3069 | |
1815 | |
3070 | |
1816 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
3071 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
1817 | |
3072 | |
1818 | |
3073 | |
1819 | ac_aux_dir= |
|
|
1820 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
|
|
1821 | if test -f "$ac_dir/install-sh"; then |
|
|
1822 | ac_aux_dir=$ac_dir |
|
|
1823 | ac_install_sh="$ac_aux_dir/install-sh -c" |
|
|
1824 | break |
|
|
1825 | elif test -f "$ac_dir/install.sh"; then |
|
|
1826 | ac_aux_dir=$ac_dir |
|
|
1827 | ac_install_sh="$ac_aux_dir/install.sh -c" |
|
|
1828 | break |
|
|
1829 | elif test -f "$ac_dir/shtool"; then |
|
|
1830 | ac_aux_dir=$ac_dir |
|
|
1831 | ac_install_sh="$ac_aux_dir/shtool install -c" |
|
|
1832 | break |
|
|
1833 | fi |
|
|
1834 | done |
|
|
1835 | if test -z "$ac_aux_dir"; then |
|
|
1836 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
|
|
1837 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
|
|
1838 | { (exit 1); exit 1; }; } |
|
|
1839 | fi |
|
|
1840 | |
|
|
1841 | # These three variables are undocumented and unsupported, |
|
|
1842 | # and are intended to be withdrawn in a future Autoconf release. |
|
|
1843 | # They can cause serious problems if a builder's source tree is in a directory |
|
|
1844 | # whose full name contains unusual characters. |
|
|
1845 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
|
|
1846 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
|
|
1847 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
|
|
1848 | |
|
|
1849 | |
|
|
1850 | # Make sure we can run config.sub. |
|
|
1851 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
|
|
1852 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
|
|
1853 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
|
|
1854 | { (exit 1); exit 1; }; } |
|
|
1855 | |
|
|
1856 | { echo "$as_me:$LINENO: checking build system type" >&5 |
|
|
1857 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
|
|
1858 | if test "${ac_cv_build+set}" = set; then |
|
|
1859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1860 | else |
|
|
1861 | ac_build_alias=$build_alias |
|
|
1862 | test "x$ac_build_alias" = x && |
|
|
1863 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
|
|
1864 | test "x$ac_build_alias" = x && |
|
|
1865 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
|
1866 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
|
1867 | { (exit 1); exit 1; }; } |
|
|
1868 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
|
|
1869 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
|
|
1870 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
|
|
1871 | { (exit 1); exit 1; }; } |
|
|
1872 | |
|
|
1873 | fi |
|
|
1874 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
|
1875 | echo "${ECHO_T}$ac_cv_build" >&6; } |
|
|
1876 | case $ac_cv_build in |
|
|
1877 | *-*-*) ;; |
|
|
1878 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
|
|
1879 | echo "$as_me: error: invalid value of canonical build" >&2;} |
|
|
1880 | { (exit 1); exit 1; }; };; |
|
|
1881 | esac |
|
|
1882 | build=$ac_cv_build |
|
|
1883 | ac_save_IFS=$IFS; IFS='-' |
|
|
1884 | set x $ac_cv_build |
|
|
1885 | shift |
|
|
1886 | build_cpu=$1 |
|
|
1887 | build_vendor=$2 |
|
|
1888 | shift; shift |
|
|
1889 | # Remember, the first character of IFS is used to create $*, |
|
|
1890 | # except with old shells: |
|
|
1891 | build_os=$* |
|
|
1892 | IFS=$ac_save_IFS |
|
|
1893 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
|
|
1894 | |
|
|
1895 | |
|
|
1896 | { echo "$as_me:$LINENO: checking host system type" >&5 |
|
|
1897 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
|
|
1898 | if test "${ac_cv_host+set}" = set; then |
|
|
1899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1900 | else |
|
|
1901 | if test "x$host_alias" = x; then |
|
|
1902 | ac_cv_host=$ac_cv_build |
|
|
1903 | else |
|
|
1904 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
|
|
1905 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
|
|
1906 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
|
|
1907 | { (exit 1); exit 1; }; } |
|
|
1908 | fi |
|
|
1909 | |
|
|
1910 | fi |
|
|
1911 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
|
1912 | echo "${ECHO_T}$ac_cv_host" >&6; } |
|
|
1913 | case $ac_cv_host in |
|
|
1914 | *-*-*) ;; |
|
|
1915 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
|
|
1916 | echo "$as_me: error: invalid value of canonical host" >&2;} |
|
|
1917 | { (exit 1); exit 1; }; };; |
|
|
1918 | esac |
|
|
1919 | host=$ac_cv_host |
|
|
1920 | ac_save_IFS=$IFS; IFS='-' |
|
|
1921 | set x $ac_cv_host |
|
|
1922 | shift |
|
|
1923 | host_cpu=$1 |
|
|
1924 | host_vendor=$2 |
|
|
1925 | shift; shift |
|
|
1926 | # Remember, the first character of IFS is used to create $*, |
|
|
1927 | # except with old shells: |
|
|
1928 | host_os=$* |
|
|
1929 | IFS=$ac_save_IFS |
|
|
1930 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
|
|
1931 | |
|
|
1932 | |
|
|
1933 | |
|
|
1934 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
3074 | VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1935 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
3075 | DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
3076 | |
1936 | echo "" |
3077 | echo "" |
1937 | echo "configuring for rxvt $VERSION" |
3078 | echo "configuring for rxvt $VERSION" |
1938 | echo "" |
3079 | echo "" |
1939 | |
3080 | |
1940 | orig_CXXFLAGS="$CXXFLAGS" |
3081 | orig_CXXFLAGS="$CXXFLAGS" |
|
|
3082 | |
|
|
3083 | |
|
|
3084 | |
|
|
3085 | |
|
|
3086 | |
|
|
3087 | |
|
|
3088 | |
|
|
3089 | |
1941 | |
3090 | |
1942 | |
3091 | |
1943 | ac_ext=c |
3092 | ac_ext=c |
1944 | ac_cpp='$CPP $CPPFLAGS' |
3093 | ac_cpp='$CPP $CPPFLAGS' |
1945 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3094 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1946 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3095 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1947 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3096 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1948 | if test -n "$ac_tool_prefix"; then |
3097 | if test -n "$ac_tool_prefix"; then |
1949 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3098 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1950 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3099 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1951 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1952 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3101 | printf %s "checking for $ac_word... " >&6; } |
1953 | if test "${ac_cv_prog_CC+set}" = set; then |
3102 | if test ${ac_cv_prog_CC+y} |
1954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3103 | then : |
1955 | else |
3104 | printf %s "(cached) " >&6 |
|
|
3105 | else $as_nop |
1956 | if test -n "$CC"; then |
3106 | if test -n "$CC"; then |
1957 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3107 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1958 | else |
3108 | else |
1959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1960 | for as_dir in $PATH |
3110 | for as_dir in $PATH |
1961 | do |
3111 | do |
1962 | IFS=$as_save_IFS |
3112 | IFS=$as_save_IFS |
1963 | test -z "$as_dir" && as_dir=. |
3113 | case $as_dir in #((( |
|
|
3114 | '') as_dir=./ ;; |
|
|
3115 | */) ;; |
|
|
3116 | *) as_dir=$as_dir/ ;; |
|
|
3117 | esac |
1964 | for ac_exec_ext in '' $ac_executable_extensions; do |
3118 | for ac_exec_ext in '' $ac_executable_extensions; do |
1965 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3119 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
1966 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3120 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1967 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3121 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
1968 | break 2 |
3122 | break 2 |
1969 | fi |
3123 | fi |
1970 | done |
3124 | done |
1971 | done |
3125 | done |
1972 | IFS=$as_save_IFS |
3126 | IFS=$as_save_IFS |
1973 | |
3127 | |
1974 | fi |
3128 | fi |
1975 | fi |
3129 | fi |
1976 | CC=$ac_cv_prog_CC |
3130 | CC=$ac_cv_prog_CC |
1977 | if test -n "$CC"; then |
3131 | if test -n "$CC"; then |
1978 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
1979 | echo "${ECHO_T}$CC" >&6; } |
3133 | printf "%s\n" "$CC" >&6; } |
1980 | else |
3134 | else |
1981 | { echo "$as_me:$LINENO: result: no" >&5 |
3135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1982 | echo "${ECHO_T}no" >&6; } |
3136 | printf "%s\n" "no" >&6; } |
1983 | fi |
3137 | fi |
1984 | |
3138 | |
1985 | |
3139 | |
1986 | fi |
3140 | fi |
1987 | if test -z "$ac_cv_prog_CC"; then |
3141 | if test -z "$ac_cv_prog_CC"; then |
1988 | ac_ct_CC=$CC |
3142 | ac_ct_CC=$CC |
1989 | # Extract the first word of "gcc", so it can be a program name with args. |
3143 | # Extract the first word of "gcc", so it can be a program name with args. |
1990 | set dummy gcc; ac_word=$2 |
3144 | set dummy gcc; ac_word=$2 |
1991 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3145 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1992 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3146 | printf %s "checking for $ac_word... " >&6; } |
1993 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3147 | if test ${ac_cv_prog_ac_ct_CC+y} |
1994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3148 | then : |
1995 | else |
3149 | printf %s "(cached) " >&6 |
|
|
3150 | else $as_nop |
1996 | if test -n "$ac_ct_CC"; then |
3151 | if test -n "$ac_ct_CC"; then |
1997 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3152 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1998 | else |
3153 | else |
1999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2000 | for as_dir in $PATH |
3155 | for as_dir in $PATH |
2001 | do |
3156 | do |
2002 | IFS=$as_save_IFS |
3157 | IFS=$as_save_IFS |
2003 | test -z "$as_dir" && as_dir=. |
3158 | case $as_dir in #((( |
|
|
3159 | '') as_dir=./ ;; |
|
|
3160 | */) ;; |
|
|
3161 | *) as_dir=$as_dir/ ;; |
|
|
3162 | esac |
2004 | for ac_exec_ext in '' $ac_executable_extensions; do |
3163 | for ac_exec_ext in '' $ac_executable_extensions; do |
2005 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3164 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2006 | ac_cv_prog_ac_ct_CC="gcc" |
3165 | ac_cv_prog_ac_ct_CC="gcc" |
2007 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3166 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2008 | break 2 |
3167 | break 2 |
2009 | fi |
3168 | fi |
2010 | done |
3169 | done |
2011 | done |
3170 | done |
2012 | IFS=$as_save_IFS |
3171 | IFS=$as_save_IFS |
2013 | |
3172 | |
2014 | fi |
3173 | fi |
2015 | fi |
3174 | fi |
2016 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3175 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2017 | if test -n "$ac_ct_CC"; then |
3176 | if test -n "$ac_ct_CC"; then |
2018 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3177 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2019 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
3178 | printf "%s\n" "$ac_ct_CC" >&6; } |
2020 | else |
3179 | else |
2021 | { echo "$as_me:$LINENO: result: no" >&5 |
3180 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2022 | echo "${ECHO_T}no" >&6; } |
3181 | printf "%s\n" "no" >&6; } |
2023 | fi |
3182 | fi |
2024 | |
3183 | |
2025 | if test "x$ac_ct_CC" = x; then |
3184 | if test "x$ac_ct_CC" = x; then |
2026 | CC="" |
3185 | CC="" |
2027 | else |
3186 | else |
2028 | case $cross_compiling:$ac_tool_warned in |
3187 | case $cross_compiling:$ac_tool_warned in |
2029 | yes:) |
3188 | yes:) |
2030 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
3189 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2031 | whose name does not start with the host triplet. If you think this |
3190 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2032 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
|
2033 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
|
2034 | whose name does not start with the host triplet. If you think this |
|
|
2035 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
|
2036 | ac_tool_warned=yes ;; |
3191 | ac_tool_warned=yes ;; |
2037 | esac |
3192 | esac |
2038 | CC=$ac_ct_CC |
3193 | CC=$ac_ct_CC |
2039 | fi |
3194 | fi |
2040 | else |
3195 | else |
… | |
… | |
2043 | |
3198 | |
2044 | if test -z "$CC"; then |
3199 | if test -z "$CC"; then |
2045 | if test -n "$ac_tool_prefix"; then |
3200 | if test -n "$ac_tool_prefix"; then |
2046 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3201 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2047 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3202 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2048 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3203 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2049 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3204 | printf %s "checking for $ac_word... " >&6; } |
2050 | if test "${ac_cv_prog_CC+set}" = set; then |
3205 | if test ${ac_cv_prog_CC+y} |
2051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3206 | then : |
2052 | else |
3207 | printf %s "(cached) " >&6 |
|
|
3208 | else $as_nop |
2053 | if test -n "$CC"; then |
3209 | if test -n "$CC"; then |
2054 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3210 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2055 | else |
3211 | else |
2056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2057 | for as_dir in $PATH |
3213 | for as_dir in $PATH |
2058 | do |
3214 | do |
2059 | IFS=$as_save_IFS |
3215 | IFS=$as_save_IFS |
2060 | test -z "$as_dir" && as_dir=. |
3216 | case $as_dir in #((( |
|
|
3217 | '') as_dir=./ ;; |
|
|
3218 | */) ;; |
|
|
3219 | *) as_dir=$as_dir/ ;; |
|
|
3220 | esac |
2061 | for ac_exec_ext in '' $ac_executable_extensions; do |
3221 | for ac_exec_ext in '' $ac_executable_extensions; do |
2062 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3222 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2063 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3223 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2064 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3224 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2065 | break 2 |
3225 | break 2 |
2066 | fi |
3226 | fi |
2067 | done |
3227 | done |
2068 | done |
3228 | done |
2069 | IFS=$as_save_IFS |
3229 | IFS=$as_save_IFS |
2070 | |
3230 | |
2071 | fi |
3231 | fi |
2072 | fi |
3232 | fi |
2073 | CC=$ac_cv_prog_CC |
3233 | CC=$ac_cv_prog_CC |
2074 | if test -n "$CC"; then |
3234 | if test -n "$CC"; then |
2075 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3235 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2076 | echo "${ECHO_T}$CC" >&6; } |
3236 | printf "%s\n" "$CC" >&6; } |
2077 | else |
3237 | else |
2078 | { echo "$as_me:$LINENO: result: no" >&5 |
3238 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2079 | echo "${ECHO_T}no" >&6; } |
3239 | printf "%s\n" "no" >&6; } |
2080 | fi |
3240 | fi |
2081 | |
3241 | |
2082 | |
3242 | |
2083 | fi |
3243 | fi |
2084 | fi |
3244 | fi |
2085 | if test -z "$CC"; then |
3245 | if test -z "$CC"; then |
2086 | # Extract the first word of "cc", so it can be a program name with args. |
3246 | # Extract the first word of "cc", so it can be a program name with args. |
2087 | set dummy cc; ac_word=$2 |
3247 | set dummy cc; ac_word=$2 |
2088 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3248 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3249 | printf %s "checking for $ac_word... " >&6; } |
2090 | if test "${ac_cv_prog_CC+set}" = set; then |
3250 | if test ${ac_cv_prog_CC+y} |
2091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3251 | then : |
2092 | else |
3252 | printf %s "(cached) " >&6 |
|
|
3253 | else $as_nop |
2093 | if test -n "$CC"; then |
3254 | if test -n "$CC"; then |
2094 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3255 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2095 | else |
3256 | else |
2096 | ac_prog_rejected=no |
3257 | ac_prog_rejected=no |
2097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2098 | for as_dir in $PATH |
3259 | for as_dir in $PATH |
2099 | do |
3260 | do |
2100 | IFS=$as_save_IFS |
3261 | IFS=$as_save_IFS |
2101 | test -z "$as_dir" && as_dir=. |
3262 | case $as_dir in #((( |
|
|
3263 | '') as_dir=./ ;; |
|
|
3264 | */) ;; |
|
|
3265 | *) as_dir=$as_dir/ ;; |
|
|
3266 | esac |
2102 | for ac_exec_ext in '' $ac_executable_extensions; do |
3267 | for ac_exec_ext in '' $ac_executable_extensions; do |
2103 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3268 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2104 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3269 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2105 | ac_prog_rejected=yes |
3270 | ac_prog_rejected=yes |
2106 | continue |
3271 | continue |
2107 | fi |
3272 | fi |
2108 | ac_cv_prog_CC="cc" |
3273 | ac_cv_prog_CC="cc" |
2109 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3274 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2110 | break 2 |
3275 | break 2 |
2111 | fi |
3276 | fi |
2112 | done |
3277 | done |
2113 | done |
3278 | done |
2114 | IFS=$as_save_IFS |
3279 | IFS=$as_save_IFS |
2115 | |
3280 | |
2116 | if test $ac_prog_rejected = yes; then |
3281 | if test $ac_prog_rejected = yes; then |
2117 | # We found a bogon in the path, so make sure we never use it. |
3282 | # We found a bogon in the path, so make sure we never use it. |
2118 | set dummy $ac_cv_prog_CC |
3283 | set dummy $ac_cv_prog_CC |
… | |
… | |
2120 | if test $# != 0; then |
3285 | if test $# != 0; then |
2121 | # We chose a different compiler from the bogus one. |
3286 | # We chose a different compiler from the bogus one. |
2122 | # However, it has the same basename, so the bogon will be chosen |
3287 | # However, it has the same basename, so the bogon will be chosen |
2123 | # first if we set CC to just the basename; use the full file name. |
3288 | # first if we set CC to just the basename; use the full file name. |
2124 | shift |
3289 | shift |
2125 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
3290 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
2126 | fi |
3291 | fi |
2127 | fi |
3292 | fi |
2128 | fi |
3293 | fi |
2129 | fi |
3294 | fi |
2130 | CC=$ac_cv_prog_CC |
3295 | CC=$ac_cv_prog_CC |
2131 | if test -n "$CC"; then |
3296 | if test -n "$CC"; then |
2132 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3297 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2133 | echo "${ECHO_T}$CC" >&6; } |
3298 | printf "%s\n" "$CC" >&6; } |
2134 | else |
3299 | else |
2135 | { echo "$as_me:$LINENO: result: no" >&5 |
3300 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2136 | echo "${ECHO_T}no" >&6; } |
3301 | printf "%s\n" "no" >&6; } |
2137 | fi |
3302 | fi |
2138 | |
3303 | |
2139 | |
3304 | |
2140 | fi |
3305 | fi |
2141 | if test -z "$CC"; then |
3306 | if test -z "$CC"; then |
2142 | if test -n "$ac_tool_prefix"; then |
3307 | if test -n "$ac_tool_prefix"; then |
2143 | for ac_prog in cl.exe |
3308 | for ac_prog in cl.exe |
2144 | do |
3309 | do |
2145 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3310 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2146 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3311 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2147 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3312 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3313 | printf %s "checking for $ac_word... " >&6; } |
2149 | if test "${ac_cv_prog_CC+set}" = set; then |
3314 | if test ${ac_cv_prog_CC+y} |
2150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3315 | then : |
2151 | else |
3316 | printf %s "(cached) " >&6 |
|
|
3317 | else $as_nop |
2152 | if test -n "$CC"; then |
3318 | if test -n "$CC"; then |
2153 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3319 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2154 | else |
3320 | else |
2155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2156 | for as_dir in $PATH |
3322 | for as_dir in $PATH |
2157 | do |
3323 | do |
2158 | IFS=$as_save_IFS |
3324 | IFS=$as_save_IFS |
2159 | test -z "$as_dir" && as_dir=. |
3325 | case $as_dir in #((( |
|
|
3326 | '') as_dir=./ ;; |
|
|
3327 | */) ;; |
|
|
3328 | *) as_dir=$as_dir/ ;; |
|
|
3329 | esac |
2160 | for ac_exec_ext in '' $ac_executable_extensions; do |
3330 | for ac_exec_ext in '' $ac_executable_extensions; do |
2161 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3331 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2162 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3332 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3333 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2164 | break 2 |
3334 | break 2 |
2165 | fi |
3335 | fi |
2166 | done |
3336 | done |
2167 | done |
3337 | done |
2168 | IFS=$as_save_IFS |
3338 | IFS=$as_save_IFS |
2169 | |
3339 | |
2170 | fi |
3340 | fi |
2171 | fi |
3341 | fi |
2172 | CC=$ac_cv_prog_CC |
3342 | CC=$ac_cv_prog_CC |
2173 | if test -n "$CC"; then |
3343 | if test -n "$CC"; then |
2174 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3344 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2175 | echo "${ECHO_T}$CC" >&6; } |
3345 | printf "%s\n" "$CC" >&6; } |
2176 | else |
3346 | else |
2177 | { echo "$as_me:$LINENO: result: no" >&5 |
3347 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2178 | echo "${ECHO_T}no" >&6; } |
3348 | printf "%s\n" "no" >&6; } |
2179 | fi |
3349 | fi |
2180 | |
3350 | |
2181 | |
3351 | |
2182 | test -n "$CC" && break |
3352 | test -n "$CC" && break |
2183 | done |
3353 | done |
… | |
… | |
2186 | ac_ct_CC=$CC |
3356 | ac_ct_CC=$CC |
2187 | for ac_prog in cl.exe |
3357 | for ac_prog in cl.exe |
2188 | do |
3358 | do |
2189 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3359 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2190 | set dummy $ac_prog; ac_word=$2 |
3360 | set dummy $ac_prog; ac_word=$2 |
2191 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3362 | printf %s "checking for $ac_word... " >&6; } |
2193 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3363 | if test ${ac_cv_prog_ac_ct_CC+y} |
2194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3364 | then : |
2195 | else |
3365 | printf %s "(cached) " >&6 |
|
|
3366 | else $as_nop |
2196 | if test -n "$ac_ct_CC"; then |
3367 | if test -n "$ac_ct_CC"; then |
2197 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3368 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2198 | else |
3369 | else |
2199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2200 | for as_dir in $PATH |
3371 | for as_dir in $PATH |
2201 | do |
3372 | do |
2202 | IFS=$as_save_IFS |
3373 | IFS=$as_save_IFS |
2203 | test -z "$as_dir" && as_dir=. |
3374 | case $as_dir in #((( |
|
|
3375 | '') as_dir=./ ;; |
|
|
3376 | */) ;; |
|
|
3377 | *) as_dir=$as_dir/ ;; |
|
|
3378 | esac |
2204 | for ac_exec_ext in '' $ac_executable_extensions; do |
3379 | for ac_exec_ext in '' $ac_executable_extensions; do |
2205 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3380 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2206 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3381 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2207 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3382 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2208 | break 2 |
3383 | break 2 |
2209 | fi |
3384 | fi |
2210 | done |
3385 | done |
2211 | done |
3386 | done |
2212 | IFS=$as_save_IFS |
3387 | IFS=$as_save_IFS |
2213 | |
3388 | |
2214 | fi |
3389 | fi |
2215 | fi |
3390 | fi |
2216 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3391 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2217 | if test -n "$ac_ct_CC"; then |
3392 | if test -n "$ac_ct_CC"; then |
2218 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2219 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
3394 | printf "%s\n" "$ac_ct_CC" >&6; } |
2220 | else |
3395 | else |
2221 | { echo "$as_me:$LINENO: result: no" >&5 |
3396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2222 | echo "${ECHO_T}no" >&6; } |
3397 | printf "%s\n" "no" >&6; } |
2223 | fi |
3398 | fi |
2224 | |
3399 | |
2225 | |
3400 | |
2226 | test -n "$ac_ct_CC" && break |
3401 | test -n "$ac_ct_CC" && break |
2227 | done |
3402 | done |
… | |
… | |
2229 | if test "x$ac_ct_CC" = x; then |
3404 | if test "x$ac_ct_CC" = x; then |
2230 | CC="" |
3405 | CC="" |
2231 | else |
3406 | else |
2232 | case $cross_compiling:$ac_tool_warned in |
3407 | case $cross_compiling:$ac_tool_warned in |
2233 | yes:) |
3408 | yes:) |
2234 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
3409 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2235 | whose name does not start with the host triplet. If you think this |
3410 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2236 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
|
2237 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
|
2238 | whose name does not start with the host triplet. If you think this |
|
|
2239 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
|
2240 | ac_tool_warned=yes ;; |
3411 | ac_tool_warned=yes ;; |
2241 | esac |
3412 | esac |
2242 | CC=$ac_ct_CC |
3413 | CC=$ac_ct_CC |
2243 | fi |
3414 | fi |
2244 | fi |
3415 | fi |
2245 | |
3416 | |
2246 | fi |
3417 | fi |
|
|
3418 | if test -z "$CC"; then |
|
|
3419 | if test -n "$ac_tool_prefix"; then |
|
|
3420 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
|
|
3421 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
|
|
3422 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
3423 | printf %s "checking for $ac_word... " >&6; } |
|
|
3424 | if test ${ac_cv_prog_CC+y} |
|
|
3425 | then : |
|
|
3426 | printf %s "(cached) " >&6 |
|
|
3427 | else $as_nop |
|
|
3428 | if test -n "$CC"; then |
|
|
3429 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
3430 | else |
|
|
3431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3432 | for as_dir in $PATH |
|
|
3433 | do |
|
|
3434 | IFS=$as_save_IFS |
|
|
3435 | case $as_dir in #((( |
|
|
3436 | '') as_dir=./ ;; |
|
|
3437 | */) ;; |
|
|
3438 | *) as_dir=$as_dir/ ;; |
|
|
3439 | esac |
|
|
3440 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3441 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
3442 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
|
|
3443 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
3444 | break 2 |
|
|
3445 | fi |
|
|
3446 | done |
|
|
3447 | done |
|
|
3448 | IFS=$as_save_IFS |
2247 | |
3449 | |
|
|
3450 | fi |
|
|
3451 | fi |
|
|
3452 | CC=$ac_cv_prog_CC |
|
|
3453 | if test -n "$CC"; then |
|
|
3454 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
|
3455 | printf "%s\n" "$CC" >&6; } |
|
|
3456 | else |
|
|
3457 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3458 | printf "%s\n" "no" >&6; } |
|
|
3459 | fi |
2248 | |
3460 | |
2249 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
3461 | |
2250 | See \`config.log' for more details." >&5 |
3462 | fi |
|
|
3463 | if test -z "$ac_cv_prog_CC"; then |
|
|
3464 | ac_ct_CC=$CC |
|
|
3465 | # Extract the first word of "clang", so it can be a program name with args. |
|
|
3466 | set dummy clang; ac_word=$2 |
|
|
3467 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
3468 | printf %s "checking for $ac_word... " >&6; } |
|
|
3469 | if test ${ac_cv_prog_ac_ct_CC+y} |
|
|
3470 | then : |
|
|
3471 | printf %s "(cached) " >&6 |
|
|
3472 | else $as_nop |
|
|
3473 | if test -n "$ac_ct_CC"; then |
|
|
3474 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
3475 | else |
|
|
3476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3477 | for as_dir in $PATH |
|
|
3478 | do |
|
|
3479 | IFS=$as_save_IFS |
|
|
3480 | case $as_dir in #((( |
|
|
3481 | '') as_dir=./ ;; |
|
|
3482 | */) ;; |
|
|
3483 | *) as_dir=$as_dir/ ;; |
|
|
3484 | esac |
|
|
3485 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3486 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
3487 | ac_cv_prog_ac_ct_CC="clang" |
|
|
3488 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
3489 | break 2 |
|
|
3490 | fi |
|
|
3491 | done |
|
|
3492 | done |
|
|
3493 | IFS=$as_save_IFS |
|
|
3494 | |
|
|
3495 | fi |
|
|
3496 | fi |
|
|
3497 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
3498 | if test -n "$ac_ct_CC"; then |
|
|
3499 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
|
3500 | printf "%s\n" "$ac_ct_CC" >&6; } |
|
|
3501 | else |
|
|
3502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3503 | printf "%s\n" "no" >&6; } |
|
|
3504 | fi |
|
|
3505 | |
|
|
3506 | if test "x$ac_ct_CC" = x; then |
|
|
3507 | CC="" |
|
|
3508 | else |
|
|
3509 | case $cross_compiling:$ac_tool_warned in |
|
|
3510 | yes:) |
|
|
3511 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
|
3512 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
|
3513 | ac_tool_warned=yes ;; |
|
|
3514 | esac |
|
|
3515 | CC=$ac_ct_CC |
|
|
3516 | fi |
|
|
3517 | else |
|
|
3518 | CC="$ac_cv_prog_CC" |
|
|
3519 | fi |
|
|
3520 | |
|
|
3521 | fi |
|
|
3522 | |
|
|
3523 | |
|
|
3524 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
3525 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2251 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
3526 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2252 | See \`config.log' for more details." >&2;} |
3527 | See \`config.log' for more details" "$LINENO" 5; } |
2253 | { (exit 1); exit 1; }; } |
|
|
2254 | |
3528 | |
2255 | # Provide some information about the compiler. |
3529 | # Provide some information about the compiler. |
2256 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
3530 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2257 | ac_compiler=`set X $ac_compile; echo $2` |
3531 | set X $ac_compile |
|
|
3532 | ac_compiler=$2 |
|
|
3533 | for ac_option in --version -v -V -qversion -version; do |
2258 | { (ac_try="$ac_compiler --version >&5" |
3534 | { { ac_try="$ac_compiler $ac_option >&5" |
2259 | case "(($ac_try" in |
3535 | case "(($ac_try" in |
2260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2261 | *) ac_try_echo=$ac_try;; |
3537 | *) ac_try_echo=$ac_try;; |
2262 | esac |
3538 | esac |
2263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3539 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2264 | (eval "$ac_compiler --version >&5") 2>&5 |
3540 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
3541 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
2265 | ac_status=$? |
3542 | ac_status=$? |
2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3543 | if test -s conftest.err; then |
|
|
3544 | sed '10a\ |
|
|
3545 | ... rest of stderr output deleted ... |
|
|
3546 | 10q' conftest.err >conftest.er1 |
|
|
3547 | cat conftest.er1 >&5 |
|
|
3548 | fi |
|
|
3549 | rm -f conftest.er1 conftest.err |
|
|
3550 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2267 | (exit $ac_status); } |
3551 | test $ac_status = 0; } |
2268 | { (ac_try="$ac_compiler -v >&5" |
3552 | done |
|
|
3553 | |
|
|
3554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3555 | /* end confdefs.h. */ |
|
|
3556 | |
|
|
3557 | int |
|
|
3558 | main (void) |
|
|
3559 | { |
|
|
3560 | |
|
|
3561 | ; |
|
|
3562 | return 0; |
|
|
3563 | } |
|
|
3564 | _ACEOF |
|
|
3565 | ac_clean_files_save=$ac_clean_files |
|
|
3566 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
|
|
3567 | # Try to create an executable without -o first, disregard a.out. |
|
|
3568 | # It will help us diagnose broken compilers, and finding out an intuition |
|
|
3569 | # of exeext. |
|
|
3570 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
|
|
3571 | printf %s "checking whether the C compiler works... " >&6; } |
|
|
3572 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
|
3573 | |
|
|
3574 | # The possible output files: |
|
|
3575 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
|
|
3576 | |
|
|
3577 | ac_rmfiles= |
|
|
3578 | for ac_file in $ac_files |
|
|
3579 | do |
|
|
3580 | case $ac_file in |
|
|
3581 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
|
3582 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
|
3583 | esac |
|
|
3584 | done |
|
|
3585 | rm -f $ac_rmfiles |
|
|
3586 | |
|
|
3587 | if { { ac_try="$ac_link_default" |
2269 | case "(($ac_try" in |
3588 | case "(($ac_try" in |
2270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2271 | *) ac_try_echo=$ac_try;; |
3590 | *) ac_try_echo=$ac_try;; |
2272 | esac |
3591 | esac |
2273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3592 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2274 | (eval "$ac_compiler -v >&5") 2>&5 |
3593 | printf "%s\n" "$ac_try_echo"; } >&5 |
2275 | ac_status=$? |
|
|
2276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2277 | (exit $ac_status); } |
|
|
2278 | { (ac_try="$ac_compiler -V >&5" |
|
|
2279 | case "(($ac_try" in |
|
|
2280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2281 | *) ac_try_echo=$ac_try;; |
|
|
2282 | esac |
|
|
2283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2284 | (eval "$ac_compiler -V >&5") 2>&5 |
|
|
2285 | ac_status=$? |
|
|
2286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2287 | (exit $ac_status); } |
|
|
2288 | |
|
|
2289 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2290 | /* confdefs.h. */ |
|
|
2291 | _ACEOF |
|
|
2292 | cat confdefs.h >>conftest.$ac_ext |
|
|
2293 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2294 | /* end confdefs.h. */ |
|
|
2295 | |
|
|
2296 | int |
|
|
2297 | main () |
|
|
2298 | { |
|
|
2299 | |
|
|
2300 | ; |
|
|
2301 | return 0; |
|
|
2302 | } |
|
|
2303 | _ACEOF |
|
|
2304 | ac_clean_files_save=$ac_clean_files |
|
|
2305 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
|
|
2306 | # Try to create an executable without -o first, disregard a.out. |
|
|
2307 | # It will help us diagnose broken compilers, and finding out an intuition |
|
|
2308 | # of exeext. |
|
|
2309 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
|
|
2310 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
|
|
2311 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
|
2312 | # |
|
|
2313 | # List of possible output files, starting from the most likely. |
|
|
2314 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
|
|
2315 | # only as a last resort. b.out is created by i960 compilers. |
|
|
2316 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
|
|
2317 | # |
|
|
2318 | # The IRIX 6 linker writes into existing files which may not be |
|
|
2319 | # executable, retaining their permissions. Remove them first so a |
|
|
2320 | # subsequent execution test works. |
|
|
2321 | ac_rmfiles= |
|
|
2322 | for ac_file in $ac_files |
|
|
2323 | do |
|
|
2324 | case $ac_file in |
|
|
2325 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
|
|
2326 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
|
2327 | esac |
|
|
2328 | done |
|
|
2329 | rm -f $ac_rmfiles |
|
|
2330 | |
|
|
2331 | if { (ac_try="$ac_link_default" |
|
|
2332 | case "(($ac_try" in |
|
|
2333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2334 | *) ac_try_echo=$ac_try;; |
|
|
2335 | esac |
|
|
2336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2337 | (eval "$ac_link_default") 2>&5 |
3594 | (eval "$ac_link_default") 2>&5 |
2338 | ac_status=$? |
3595 | ac_status=$? |
2339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3596 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2340 | (exit $ac_status); }; then |
3597 | test $ac_status = 0; } |
|
|
3598 | then : |
2341 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3599 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2342 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3600 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2343 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
3601 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2344 | # so that the user can short-circuit this test for compilers unknown to |
3602 | # so that the user can short-circuit this test for compilers unknown to |
2345 | # Autoconf. |
3603 | # Autoconf. |
2346 | for ac_file in $ac_files '' |
3604 | for ac_file in $ac_files '' |
2347 | do |
3605 | do |
2348 | test -f "$ac_file" || continue |
3606 | test -f "$ac_file" || continue |
2349 | case $ac_file in |
3607 | case $ac_file in |
2350 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
3608 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
2351 | ;; |
3609 | ;; |
2352 | [ab].out ) |
3610 | [ab].out ) |
2353 | # We found the default executable, but exeext='' is most |
3611 | # We found the default executable, but exeext='' is most |
2354 | # certainly right. |
3612 | # certainly right. |
2355 | break;; |
3613 | break;; |
2356 | *.* ) |
3614 | *.* ) |
2357 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3615 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
2358 | then :; else |
3616 | then :; else |
2359 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3617 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2360 | fi |
3618 | fi |
2361 | # We set ac_cv_exeext here because the later test for it is not |
3619 | # We set ac_cv_exeext here because the later test for it is not |
2362 | # safe: cross compilers may not add the suffix if given an `-o' |
3620 | # safe: cross compilers may not add the suffix if given an `-o' |
… | |
… | |
2368 | break;; |
3626 | break;; |
2369 | esac |
3627 | esac |
2370 | done |
3628 | done |
2371 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3629 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2372 | |
3630 | |
2373 | else |
3631 | else $as_nop |
2374 | ac_file='' |
3632 | ac_file='' |
2375 | fi |
3633 | fi |
2376 | |
|
|
2377 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
|
|
2378 | echo "${ECHO_T}$ac_file" >&6; } |
|
|
2379 | if test -z "$ac_file"; then |
3634 | if test -z "$ac_file" |
|
|
3635 | then : |
|
|
3636 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3637 | printf "%s\n" "no" >&6; } |
2380 | echo "$as_me: failed program was:" >&5 |
3638 | printf "%s\n" "$as_me: failed program was:" >&5 |
2381 | sed 's/^/| /' conftest.$ac_ext >&5 |
3639 | sed 's/^/| /' conftest.$ac_ext >&5 |
2382 | |
3640 | |
2383 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
3641 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2384 | See \`config.log' for more details." >&5 |
3642 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2385 | echo "$as_me: error: C compiler cannot create executables |
3643 | as_fn_error 77 "C compiler cannot create executables |
2386 | See \`config.log' for more details." >&2;} |
3644 | See \`config.log' for more details" "$LINENO" 5; } |
2387 | { (exit 77); exit 77; }; } |
3645 | else $as_nop |
|
|
3646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
3647 | printf "%s\n" "yes" >&6; } |
2388 | fi |
3648 | fi |
2389 | |
3649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
|
|
3650 | printf %s "checking for C compiler default output file name... " >&6; } |
|
|
3651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
|
|
3652 | printf "%s\n" "$ac_file" >&6; } |
2390 | ac_exeext=$ac_cv_exeext |
3653 | ac_exeext=$ac_cv_exeext |
2391 | |
3654 | |
2392 | # Check that the compiler produces executables we can run. If not, either |
|
|
2393 | # the compiler is broken, or we cross compile. |
|
|
2394 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
|
|
2395 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
|
|
2396 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
|
|
2397 | # If not cross compiling, check that we can run a simple program. |
|
|
2398 | if test "$cross_compiling" != yes; then |
|
|
2399 | if { ac_try='./$ac_file' |
|
|
2400 | { (case "(($ac_try" in |
|
|
2401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2402 | *) ac_try_echo=$ac_try;; |
|
|
2403 | esac |
|
|
2404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2405 | (eval "$ac_try") 2>&5 |
|
|
2406 | ac_status=$? |
|
|
2407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2408 | (exit $ac_status); }; }; then |
|
|
2409 | cross_compiling=no |
|
|
2410 | else |
|
|
2411 | if test "$cross_compiling" = maybe; then |
|
|
2412 | cross_compiling=yes |
|
|
2413 | else |
|
|
2414 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
|
|
2415 | If you meant to cross compile, use \`--host'. |
|
|
2416 | See \`config.log' for more details." >&5 |
|
|
2417 | echo "$as_me: error: cannot run C compiled programs. |
|
|
2418 | If you meant to cross compile, use \`--host'. |
|
|
2419 | See \`config.log' for more details." >&2;} |
|
|
2420 | { (exit 1); exit 1; }; } |
|
|
2421 | fi |
|
|
2422 | fi |
|
|
2423 | fi |
|
|
2424 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
2425 | echo "${ECHO_T}yes" >&6; } |
|
|
2426 | |
|
|
2427 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
3655 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2428 | ac_clean_files=$ac_clean_files_save |
3656 | ac_clean_files=$ac_clean_files_save |
2429 | # Check that the compiler produces executables we can run. If not, either |
|
|
2430 | # the compiler is broken, or we cross compile. |
|
|
2431 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
|
|
2432 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
|
|
2433 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
|
|
2434 | echo "${ECHO_T}$cross_compiling" >&6; } |
|
|
2435 | |
|
|
2436 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3657 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2437 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
3658 | printf %s "checking for suffix of executables... " >&6; } |
2438 | if { (ac_try="$ac_link" |
3659 | if { { ac_try="$ac_link" |
2439 | case "(($ac_try" in |
3660 | case "(($ac_try" in |
2440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2441 | *) ac_try_echo=$ac_try;; |
3662 | *) ac_try_echo=$ac_try;; |
2442 | esac |
3663 | esac |
2443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3664 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
3665 | printf "%s\n" "$ac_try_echo"; } >&5 |
2444 | (eval "$ac_link") 2>&5 |
3666 | (eval "$ac_link") 2>&5 |
2445 | ac_status=$? |
3667 | ac_status=$? |
2446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3668 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2447 | (exit $ac_status); }; then |
3669 | test $ac_status = 0; } |
|
|
3670 | then : |
2448 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3671 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2449 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3672 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2450 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
3673 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2451 | # `rm'. |
3674 | # `rm'. |
2452 | for ac_file in conftest.exe conftest conftest.*; do |
3675 | for ac_file in conftest.exe conftest conftest.*; do |
2453 | test -f "$ac_file" || continue |
3676 | test -f "$ac_file" || continue |
2454 | case $ac_file in |
3677 | case $ac_file in |
2455 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
3678 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2456 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3679 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2457 | break;; |
3680 | break;; |
2458 | * ) break;; |
3681 | * ) break;; |
2459 | esac |
3682 | esac |
2460 | done |
3683 | done |
2461 | else |
3684 | else $as_nop |
2462 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3685 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2463 | See \`config.log' for more details." >&5 |
3686 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2464 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
3687 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2465 | See \`config.log' for more details." >&2;} |
3688 | See \`config.log' for more details" "$LINENO" 5; } |
2466 | { (exit 1); exit 1; }; } |
|
|
2467 | fi |
3689 | fi |
2468 | |
|
|
2469 | rm -f conftest$ac_cv_exeext |
3690 | rm -f conftest conftest$ac_cv_exeext |
2470 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2471 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
3692 | printf "%s\n" "$ac_cv_exeext" >&6; } |
2472 | |
3693 | |
2473 | rm -f conftest.$ac_ext |
3694 | rm -f conftest.$ac_ext |
2474 | EXEEXT=$ac_cv_exeext |
3695 | EXEEXT=$ac_cv_exeext |
2475 | ac_exeext=$EXEEXT |
3696 | ac_exeext=$EXEEXT |
2476 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
|
|
2477 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
|
|
2478 | if test "${ac_cv_objext+set}" = set; then |
|
|
2479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2480 | else |
|
|
2481 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2482 | /* confdefs.h. */ |
|
|
2483 | _ACEOF |
|
|
2484 | cat confdefs.h >>conftest.$ac_ext |
3697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2485 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2486 | /* end confdefs.h. */ |
3698 | /* end confdefs.h. */ |
2487 | |
3699 | #include <stdio.h> |
2488 | int |
3700 | int |
2489 | main () |
3701 | main (void) |
2490 | { |
3702 | { |
|
|
3703 | FILE *f = fopen ("conftest.out", "w"); |
|
|
3704 | return ferror (f) || fclose (f) != 0; |
2491 | |
3705 | |
2492 | ; |
3706 | ; |
2493 | return 0; |
3707 | return 0; |
2494 | } |
3708 | } |
2495 | _ACEOF |
3709 | _ACEOF |
2496 | rm -f conftest.o conftest.obj |
3710 | ac_clean_files="$ac_clean_files conftest.out" |
2497 | if { (ac_try="$ac_compile" |
3711 | # Check that the compiler produces executables we can run. If not, either |
|
|
3712 | # the compiler is broken, or we cross compile. |
|
|
3713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
|
|
3714 | printf %s "checking whether we are cross compiling... " >&6; } |
|
|
3715 | if test "$cross_compiling" != yes; then |
|
|
3716 | { { ac_try="$ac_link" |
2498 | case "(($ac_try" in |
3717 | case "(($ac_try" in |
2499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2500 | *) ac_try_echo=$ac_try;; |
3719 | *) ac_try_echo=$ac_try;; |
2501 | esac |
3720 | esac |
2502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
3722 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
3723 | (eval "$ac_link") 2>&5 |
|
|
3724 | ac_status=$? |
|
|
3725 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
3726 | test $ac_status = 0; } |
|
|
3727 | if { ac_try='./conftest$ac_cv_exeext' |
|
|
3728 | { { case "(($ac_try" in |
|
|
3729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3730 | *) ac_try_echo=$ac_try;; |
|
|
3731 | esac |
|
|
3732 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
3733 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
3734 | (eval "$ac_try") 2>&5 |
|
|
3735 | ac_status=$? |
|
|
3736 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
3737 | test $ac_status = 0; }; }; then |
|
|
3738 | cross_compiling=no |
|
|
3739 | else |
|
|
3740 | if test "$cross_compiling" = maybe; then |
|
|
3741 | cross_compiling=yes |
|
|
3742 | else |
|
|
3743 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
3744 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
3745 | as_fn_error 77 "cannot run C compiled programs. |
|
|
3746 | If you meant to cross compile, use \`--host'. |
|
|
3747 | See \`config.log' for more details" "$LINENO" 5; } |
|
|
3748 | fi |
|
|
3749 | fi |
|
|
3750 | fi |
|
|
3751 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
|
|
3752 | printf "%s\n" "$cross_compiling" >&6; } |
|
|
3753 | |
|
|
3754 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
|
|
3755 | ac_clean_files=$ac_clean_files_save |
|
|
3756 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
|
|
3757 | printf %s "checking for suffix of object files... " >&6; } |
|
|
3758 | if test ${ac_cv_objext+y} |
|
|
3759 | then : |
|
|
3760 | printf %s "(cached) " >&6 |
|
|
3761 | else $as_nop |
|
|
3762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3763 | /* end confdefs.h. */ |
|
|
3764 | |
|
|
3765 | int |
|
|
3766 | main (void) |
|
|
3767 | { |
|
|
3768 | |
|
|
3769 | ; |
|
|
3770 | return 0; |
|
|
3771 | } |
|
|
3772 | _ACEOF |
|
|
3773 | rm -f conftest.o conftest.obj |
|
|
3774 | if { { ac_try="$ac_compile" |
|
|
3775 | case "(($ac_try" in |
|
|
3776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3777 | *) ac_try_echo=$ac_try;; |
|
|
3778 | esac |
|
|
3779 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
3780 | printf "%s\n" "$ac_try_echo"; } >&5 |
2503 | (eval "$ac_compile") 2>&5 |
3781 | (eval "$ac_compile") 2>&5 |
2504 | ac_status=$? |
3782 | ac_status=$? |
2505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3783 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2506 | (exit $ac_status); }; then |
3784 | test $ac_status = 0; } |
|
|
3785 | then : |
2507 | for ac_file in conftest.o conftest.obj conftest.*; do |
3786 | for ac_file in conftest.o conftest.obj conftest.*; do |
2508 | test -f "$ac_file" || continue; |
3787 | test -f "$ac_file" || continue; |
2509 | case $ac_file in |
3788 | case $ac_file in |
2510 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
3789 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2511 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3790 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2512 | break;; |
3791 | break;; |
2513 | esac |
3792 | esac |
2514 | done |
3793 | done |
2515 | else |
3794 | else $as_nop |
2516 | echo "$as_me: failed program was:" >&5 |
3795 | printf "%s\n" "$as_me: failed program was:" >&5 |
2517 | sed 's/^/| /' conftest.$ac_ext >&5 |
3796 | sed 's/^/| /' conftest.$ac_ext >&5 |
2518 | |
3797 | |
2519 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3798 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2520 | See \`config.log' for more details." >&5 |
3799 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2521 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
3800 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2522 | See \`config.log' for more details." >&2;} |
3801 | See \`config.log' for more details" "$LINENO" 5; } |
2523 | { (exit 1); exit 1; }; } |
|
|
2524 | fi |
3802 | fi |
2525 | |
|
|
2526 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3803 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2527 | fi |
3804 | fi |
2528 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2529 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
3806 | printf "%s\n" "$ac_cv_objext" >&6; } |
2530 | OBJEXT=$ac_cv_objext |
3807 | OBJEXT=$ac_cv_objext |
2531 | ac_objext=$OBJEXT |
3808 | ac_objext=$OBJEXT |
2532 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3809 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
2533 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
3810 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
2534 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3811 | if test ${ac_cv_c_compiler_gnu+y} |
2535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3812 | then : |
2536 | else |
3813 | printf %s "(cached) " >&6 |
2537 | cat >conftest.$ac_ext <<_ACEOF |
3814 | else $as_nop |
2538 | /* confdefs.h. */ |
|
|
2539 | _ACEOF |
|
|
2540 | cat confdefs.h >>conftest.$ac_ext |
3815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2541 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2542 | /* end confdefs.h. */ |
3816 | /* end confdefs.h. */ |
2543 | |
3817 | |
2544 | int |
3818 | int |
2545 | main () |
3819 | main (void) |
2546 | { |
3820 | { |
2547 | #ifndef __GNUC__ |
3821 | #ifndef __GNUC__ |
2548 | choke me |
3822 | choke me |
2549 | #endif |
3823 | #endif |
2550 | |
3824 | |
2551 | ; |
3825 | ; |
2552 | return 0; |
3826 | return 0; |
2553 | } |
3827 | } |
2554 | _ACEOF |
3828 | _ACEOF |
2555 | rm -f conftest.$ac_objext |
3829 | if ac_fn_c_try_compile "$LINENO" |
2556 | if { (ac_try="$ac_compile" |
3830 | then : |
2557 | case "(($ac_try" in |
|
|
2558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2559 | *) ac_try_echo=$ac_try;; |
|
|
2560 | esac |
|
|
2561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2562 | (eval "$ac_compile") 2>conftest.er1 |
|
|
2563 | ac_status=$? |
|
|
2564 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2565 | rm -f conftest.er1 |
|
|
2566 | cat conftest.err >&5 |
|
|
2567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2568 | (exit $ac_status); } && { |
|
|
2569 | test -z "$ac_c_werror_flag" || |
|
|
2570 | test ! -s conftest.err |
|
|
2571 | } && test -s conftest.$ac_objext; then |
|
|
2572 | ac_compiler_gnu=yes |
3831 | ac_compiler_gnu=yes |
|
|
3832 | else $as_nop |
|
|
3833 | ac_compiler_gnu=no |
|
|
3834 | fi |
|
|
3835 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
3836 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
|
3837 | |
|
|
3838 | fi |
|
|
3839 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
|
|
3840 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
|
|
3841 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3842 | |
|
|
3843 | if test $ac_compiler_gnu = yes; then |
|
|
3844 | GCC=yes |
2573 | else |
3845 | else |
2574 | echo "$as_me: failed program was:" >&5 |
3846 | GCC= |
2575 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2576 | |
|
|
2577 | ac_compiler_gnu=no |
|
|
2578 | fi |
3847 | fi |
2579 | |
|
|
2580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2581 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
|
2582 | |
|
|
2583 | fi |
|
|
2584 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
|
|
2585 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
|
|
2586 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
|
|
2587 | ac_test_CFLAGS=${CFLAGS+set} |
3848 | ac_test_CFLAGS=${CFLAGS+y} |
2588 | ac_save_CFLAGS=$CFLAGS |
3849 | ac_save_CFLAGS=$CFLAGS |
2589 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2590 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
3851 | printf %s "checking whether $CC accepts -g... " >&6; } |
2591 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3852 | if test ${ac_cv_prog_cc_g+y} |
2592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3853 | then : |
2593 | else |
3854 | printf %s "(cached) " >&6 |
|
|
3855 | else $as_nop |
2594 | ac_save_c_werror_flag=$ac_c_werror_flag |
3856 | ac_save_c_werror_flag=$ac_c_werror_flag |
2595 | ac_c_werror_flag=yes |
3857 | ac_c_werror_flag=yes |
2596 | ac_cv_prog_cc_g=no |
3858 | ac_cv_prog_cc_g=no |
2597 | CFLAGS="-g" |
3859 | CFLAGS="-g" |
2598 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2599 | /* confdefs.h. */ |
|
|
2600 | _ACEOF |
|
|
2601 | cat confdefs.h >>conftest.$ac_ext |
3860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2602 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2603 | /* end confdefs.h. */ |
3861 | /* end confdefs.h. */ |
2604 | |
3862 | |
2605 | int |
3863 | int |
2606 | main () |
3864 | main (void) |
2607 | { |
3865 | { |
2608 | |
3866 | |
2609 | ; |
3867 | ; |
2610 | return 0; |
3868 | return 0; |
2611 | } |
3869 | } |
2612 | _ACEOF |
3870 | _ACEOF |
2613 | rm -f conftest.$ac_objext |
3871 | if ac_fn_c_try_compile "$LINENO" |
2614 | if { (ac_try="$ac_compile" |
3872 | then : |
2615 | case "(($ac_try" in |
|
|
2616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2617 | *) ac_try_echo=$ac_try;; |
|
|
2618 | esac |
|
|
2619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2620 | (eval "$ac_compile") 2>conftest.er1 |
|
|
2621 | ac_status=$? |
|
|
2622 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2623 | rm -f conftest.er1 |
|
|
2624 | cat conftest.err >&5 |
|
|
2625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2626 | (exit $ac_status); } && { |
|
|
2627 | test -z "$ac_c_werror_flag" || |
|
|
2628 | test ! -s conftest.err |
|
|
2629 | } && test -s conftest.$ac_objext; then |
|
|
2630 | ac_cv_prog_cc_g=yes |
3873 | ac_cv_prog_cc_g=yes |
2631 | else |
3874 | else $as_nop |
2632 | echo "$as_me: failed program was:" >&5 |
|
|
2633 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2634 | |
|
|
2635 | CFLAGS="" |
3875 | CFLAGS="" |
2636 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2637 | /* confdefs.h. */ |
|
|
2638 | _ACEOF |
|
|
2639 | cat confdefs.h >>conftest.$ac_ext |
3876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2640 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2641 | /* end confdefs.h. */ |
3877 | /* end confdefs.h. */ |
2642 | |
3878 | |
2643 | int |
3879 | int |
2644 | main () |
3880 | main (void) |
2645 | { |
3881 | { |
2646 | |
3882 | |
2647 | ; |
3883 | ; |
2648 | return 0; |
3884 | return 0; |
2649 | } |
3885 | } |
2650 | _ACEOF |
3886 | _ACEOF |
2651 | rm -f conftest.$ac_objext |
3887 | if ac_fn_c_try_compile "$LINENO" |
2652 | if { (ac_try="$ac_compile" |
3888 | then : |
2653 | case "(($ac_try" in |
|
|
2654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2655 | *) ac_try_echo=$ac_try;; |
|
|
2656 | esac |
|
|
2657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2658 | (eval "$ac_compile") 2>conftest.er1 |
|
|
2659 | ac_status=$? |
|
|
2660 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2661 | rm -f conftest.er1 |
|
|
2662 | cat conftest.err >&5 |
|
|
2663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2664 | (exit $ac_status); } && { |
|
|
2665 | test -z "$ac_c_werror_flag" || |
|
|
2666 | test ! -s conftest.err |
|
|
2667 | } && test -s conftest.$ac_objext; then |
|
|
2668 | : |
|
|
2669 | else |
|
|
2670 | echo "$as_me: failed program was:" >&5 |
|
|
2671 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2672 | |
3889 | |
|
|
3890 | else $as_nop |
2673 | ac_c_werror_flag=$ac_save_c_werror_flag |
3891 | ac_c_werror_flag=$ac_save_c_werror_flag |
2674 | CFLAGS="-g" |
3892 | CFLAGS="-g" |
2675 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2676 | /* confdefs.h. */ |
|
|
2677 | _ACEOF |
|
|
2678 | cat confdefs.h >>conftest.$ac_ext |
3893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2679 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2680 | /* end confdefs.h. */ |
3894 | /* end confdefs.h. */ |
2681 | |
3895 | |
2682 | int |
3896 | int |
2683 | main () |
3897 | main (void) |
2684 | { |
3898 | { |
2685 | |
3899 | |
2686 | ; |
3900 | ; |
2687 | return 0; |
3901 | return 0; |
2688 | } |
3902 | } |
2689 | _ACEOF |
3903 | _ACEOF |
2690 | rm -f conftest.$ac_objext |
3904 | if ac_fn_c_try_compile "$LINENO" |
2691 | if { (ac_try="$ac_compile" |
3905 | then : |
2692 | case "(($ac_try" in |
|
|
2693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2694 | *) ac_try_echo=$ac_try;; |
|
|
2695 | esac |
|
|
2696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2697 | (eval "$ac_compile") 2>conftest.er1 |
|
|
2698 | ac_status=$? |
|
|
2699 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2700 | rm -f conftest.er1 |
|
|
2701 | cat conftest.err >&5 |
|
|
2702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2703 | (exit $ac_status); } && { |
|
|
2704 | test -z "$ac_c_werror_flag" || |
|
|
2705 | test ! -s conftest.err |
|
|
2706 | } && test -s conftest.$ac_objext; then |
|
|
2707 | ac_cv_prog_cc_g=yes |
3906 | ac_cv_prog_cc_g=yes |
2708 | else |
|
|
2709 | echo "$as_me: failed program was:" >&5 |
|
|
2710 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2711 | |
|
|
2712 | |
|
|
2713 | fi |
3907 | fi |
2714 | |
|
|
2715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3908 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2716 | fi |
3909 | fi |
2717 | |
|
|
2718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3910 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2719 | fi |
3911 | fi |
2720 | |
|
|
2721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3912 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2722 | ac_c_werror_flag=$ac_save_c_werror_flag |
3913 | ac_c_werror_flag=$ac_save_c_werror_flag |
2723 | fi |
3914 | fi |
2724 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3915 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
2725 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
3916 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
2726 | if test "$ac_test_CFLAGS" = set; then |
3917 | if test $ac_test_CFLAGS; then |
2727 | CFLAGS=$ac_save_CFLAGS |
3918 | CFLAGS=$ac_save_CFLAGS |
2728 | elif test $ac_cv_prog_cc_g = yes; then |
3919 | elif test $ac_cv_prog_cc_g = yes; then |
2729 | if test "$GCC" = yes; then |
3920 | if test "$GCC" = yes; then |
2730 | CFLAGS="-g -O2" |
3921 | CFLAGS="-g -O2" |
2731 | else |
3922 | else |
… | |
… | |
2736 | CFLAGS="-O2" |
3927 | CFLAGS="-O2" |
2737 | else |
3928 | else |
2738 | CFLAGS= |
3929 | CFLAGS= |
2739 | fi |
3930 | fi |
2740 | fi |
3931 | fi |
2741 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3932 | ac_prog_cc_stdc=no |
2742 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3933 | if test x$ac_prog_cc_stdc = xno |
|
|
3934 | then : |
|
|
3935 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
|
|
3936 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
|
|
3937 | if test ${ac_cv_prog_cc_c11+y} |
|
|
3938 | then : |
|
|
3939 | printf %s "(cached) " >&6 |
|
|
3940 | else $as_nop |
|
|
3941 | ac_cv_prog_cc_c11=no |
|
|
3942 | ac_save_CC=$CC |
|
|
3943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3944 | /* end confdefs.h. */ |
|
|
3945 | $ac_c_conftest_c11_program |
|
|
3946 | _ACEOF |
|
|
3947 | for ac_arg in '' -std=gnu11 |
|
|
3948 | do |
|
|
3949 | CC="$ac_save_CC $ac_arg" |
|
|
3950 | if ac_fn_c_try_compile "$LINENO" |
|
|
3951 | then : |
|
|
3952 | ac_cv_prog_cc_c11=$ac_arg |
|
|
3953 | fi |
|
|
3954 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
3955 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
|
|
3956 | done |
|
|
3957 | rm -f conftest.$ac_ext |
|
|
3958 | CC=$ac_save_CC |
|
|
3959 | fi |
|
|
3960 | |
|
|
3961 | if test "x$ac_cv_prog_cc_c11" = xno |
|
|
3962 | then : |
|
|
3963 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
3964 | printf "%s\n" "unsupported" >&6; } |
|
|
3965 | else $as_nop |
|
|
3966 | if test "x$ac_cv_prog_cc_c11" = x |
|
|
3967 | then : |
|
|
3968 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
3969 | printf "%s\n" "none needed" >&6; } |
|
|
3970 | else $as_nop |
|
|
3971 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
|
|
3972 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
|
|
3973 | CC="$CC $ac_cv_prog_cc_c11" |
|
|
3974 | fi |
|
|
3975 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
|
|
3976 | ac_prog_cc_stdc=c11 |
|
|
3977 | fi |
|
|
3978 | fi |
|
|
3979 | if test x$ac_prog_cc_stdc = xno |
|
|
3980 | then : |
|
|
3981 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
|
|
3982 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
|
|
3983 | if test ${ac_cv_prog_cc_c99+y} |
|
|
3984 | then : |
|
|
3985 | printf %s "(cached) " >&6 |
|
|
3986 | else $as_nop |
|
|
3987 | ac_cv_prog_cc_c99=no |
|
|
3988 | ac_save_CC=$CC |
|
|
3989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3990 | /* end confdefs.h. */ |
|
|
3991 | $ac_c_conftest_c99_program |
|
|
3992 | _ACEOF |
|
|
3993 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
|
|
3994 | do |
|
|
3995 | CC="$ac_save_CC $ac_arg" |
|
|
3996 | if ac_fn_c_try_compile "$LINENO" |
|
|
3997 | then : |
|
|
3998 | ac_cv_prog_cc_c99=$ac_arg |
|
|
3999 | fi |
|
|
4000 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
4001 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
|
|
4002 | done |
|
|
4003 | rm -f conftest.$ac_ext |
|
|
4004 | CC=$ac_save_CC |
|
|
4005 | fi |
|
|
4006 | |
2743 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
4007 | if test "x$ac_cv_prog_cc_c99" = xno |
2744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4008 | then : |
2745 | else |
4009 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
4010 | printf "%s\n" "unsupported" >&6; } |
|
|
4011 | else $as_nop |
|
|
4012 | if test "x$ac_cv_prog_cc_c99" = x |
|
|
4013 | then : |
|
|
4014 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4015 | printf "%s\n" "none needed" >&6; } |
|
|
4016 | else $as_nop |
|
|
4017 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
|
|
4018 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
|
|
4019 | CC="$CC $ac_cv_prog_cc_c99" |
|
|
4020 | fi |
|
|
4021 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
|
|
4022 | ac_prog_cc_stdc=c99 |
|
|
4023 | fi |
|
|
4024 | fi |
|
|
4025 | if test x$ac_prog_cc_stdc = xno |
|
|
4026 | then : |
|
|
4027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
|
|
4028 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
|
|
4029 | if test ${ac_cv_prog_cc_c89+y} |
|
|
4030 | then : |
|
|
4031 | printf %s "(cached) " >&6 |
|
|
4032 | else $as_nop |
2746 | ac_cv_prog_cc_c89=no |
4033 | ac_cv_prog_cc_c89=no |
2747 | ac_save_CC=$CC |
4034 | ac_save_CC=$CC |
2748 | cat >conftest.$ac_ext <<_ACEOF |
4035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2749 | /* confdefs.h. */ |
4036 | /* end confdefs.h. */ |
|
|
4037 | $ac_c_conftest_c89_program |
2750 | _ACEOF |
4038 | _ACEOF |
2751 | cat confdefs.h >>conftest.$ac_ext |
4039 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2752 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2753 | /* end confdefs.h. */ |
|
|
2754 | #include <stdarg.h> |
|
|
2755 | #include <stdio.h> |
|
|
2756 | #include <sys/types.h> |
|
|
2757 | #include <sys/stat.h> |
|
|
2758 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
|
2759 | struct buf { int x; }; |
|
|
2760 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
2761 | static char *e (p, i) |
|
|
2762 | char **p; |
|
|
2763 | int i; |
|
|
2764 | { |
|
|
2765 | return p[i]; |
|
|
2766 | } |
|
|
2767 | static char *f (char * (*g) (char **, int), char **p, ...) |
|
|
2768 | { |
|
|
2769 | char *s; |
|
|
2770 | va_list v; |
|
|
2771 | va_start (v,p); |
|
|
2772 | s = g (p, va_arg (v,int)); |
|
|
2773 | va_end (v); |
|
|
2774 | return s; |
|
|
2775 | } |
|
|
2776 | |
|
|
2777 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
|
2778 | function prototypes and stuff, but not '\xHH' hex character constants. |
|
|
2779 | These don't provoke an error unfortunately, instead are silently treated |
|
|
2780 | as 'x'. The following induces an error, until -std is added to get |
|
|
2781 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
|
2782 | array size at least. It's necessary to write '\x00'==0 to get something |
|
|
2783 | that's true only with -std. */ |
|
|
2784 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
|
2785 | |
|
|
2786 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
|
2787 | inside strings and character constants. */ |
|
|
2788 | #define FOO(x) 'x' |
|
|
2789 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
|
2790 | |
|
|
2791 | int test (int i, double x); |
|
|
2792 | struct s1 {int (*f) (int a);}; |
|
|
2793 | struct s2 {int (*f) (double a);}; |
|
|
2794 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
|
2795 | int argc; |
|
|
2796 | char **argv; |
|
|
2797 | int |
|
|
2798 | main () |
|
|
2799 | { |
|
|
2800 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
|
2801 | ; |
|
|
2802 | return 0; |
|
|
2803 | } |
|
|
2804 | _ACEOF |
|
|
2805 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
|
|
2806 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
|
2807 | do |
4040 | do |
2808 | CC="$ac_save_CC $ac_arg" |
4041 | CC="$ac_save_CC $ac_arg" |
2809 | rm -f conftest.$ac_objext |
4042 | if ac_fn_c_try_compile "$LINENO" |
2810 | if { (ac_try="$ac_compile" |
4043 | then : |
2811 | case "(($ac_try" in |
|
|
2812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2813 | *) ac_try_echo=$ac_try;; |
|
|
2814 | esac |
|
|
2815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2816 | (eval "$ac_compile") 2>conftest.er1 |
|
|
2817 | ac_status=$? |
|
|
2818 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2819 | rm -f conftest.er1 |
|
|
2820 | cat conftest.err >&5 |
|
|
2821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2822 | (exit $ac_status); } && { |
|
|
2823 | test -z "$ac_c_werror_flag" || |
|
|
2824 | test ! -s conftest.err |
|
|
2825 | } && test -s conftest.$ac_objext; then |
|
|
2826 | ac_cv_prog_cc_c89=$ac_arg |
4044 | ac_cv_prog_cc_c89=$ac_arg |
2827 | else |
|
|
2828 | echo "$as_me: failed program was:" >&5 |
|
|
2829 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2830 | |
|
|
2831 | |
|
|
2832 | fi |
4045 | fi |
2833 | |
|
|
2834 | rm -f core conftest.err conftest.$ac_objext |
4046 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
2835 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
4047 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
2836 | done |
4048 | done |
2837 | rm -f conftest.$ac_ext |
4049 | rm -f conftest.$ac_ext |
2838 | CC=$ac_save_CC |
4050 | CC=$ac_save_CC |
2839 | |
|
|
2840 | fi |
4051 | fi |
2841 | # AC_CACHE_VAL |
4052 | |
2842 | case "x$ac_cv_prog_cc_c89" in |
4053 | if test "x$ac_cv_prog_cc_c89" = xno |
2843 | x) |
4054 | then : |
2844 | { echo "$as_me:$LINENO: result: none needed" >&5 |
4055 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
2845 | echo "${ECHO_T}none needed" >&6; } ;; |
4056 | printf "%s\n" "unsupported" >&6; } |
2846 | xno) |
4057 | else $as_nop |
2847 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
4058 | if test "x$ac_cv_prog_cc_c89" = x |
2848 | echo "${ECHO_T}unsupported" >&6; } ;; |
4059 | then : |
2849 | *) |
4060 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4061 | printf "%s\n" "none needed" >&6; } |
|
|
4062 | else $as_nop |
|
|
4063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
|
|
4064 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
2850 | CC="$CC $ac_cv_prog_cc_c89" |
4065 | CC="$CC $ac_cv_prog_cc_c89" |
2851 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
4066 | fi |
2852 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
4067 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
2853 | esac |
4068 | ac_prog_cc_stdc=c89 |
2854 | |
4069 | fi |
|
|
4070 | fi |
2855 | |
4071 | |
2856 | ac_ext=c |
4072 | ac_ext=c |
2857 | ac_cpp='$CPP $CPPFLAGS' |
4073 | ac_cpp='$CPP $CPPFLAGS' |
2858 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4074 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2859 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4075 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2860 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4076 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
4077 | |
|
|
4078 | |
|
|
4079 | |
|
|
4080 | |
|
|
4081 | |
|
|
4082 | |
2861 | |
4083 | |
2862 | ac_ext=cpp |
4084 | ac_ext=cpp |
2863 | ac_cpp='$CXXCPP $CPPFLAGS' |
4085 | ac_cpp='$CXXCPP $CPPFLAGS' |
2864 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4086 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2865 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4087 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
2867 | if test -z "$CXX"; then |
4089 | if test -z "$CXX"; then |
2868 | if test -n "$CCC"; then |
4090 | if test -n "$CCC"; then |
2869 | CXX=$CCC |
4091 | CXX=$CCC |
2870 | else |
4092 | else |
2871 | if test -n "$ac_tool_prefix"; then |
4093 | if test -n "$ac_tool_prefix"; then |
2872 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
4094 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
2873 | do |
4095 | do |
2874 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4096 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2875 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4097 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2876 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4098 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2877 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4099 | printf %s "checking for $ac_word... " >&6; } |
2878 | if test "${ac_cv_prog_CXX+set}" = set; then |
4100 | if test ${ac_cv_prog_CXX+y} |
2879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4101 | then : |
2880 | else |
4102 | printf %s "(cached) " >&6 |
|
|
4103 | else $as_nop |
2881 | if test -n "$CXX"; then |
4104 | if test -n "$CXX"; then |
2882 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
4105 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
2883 | else |
4106 | else |
2884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2885 | for as_dir in $PATH |
4108 | for as_dir in $PATH |
2886 | do |
4109 | do |
2887 | IFS=$as_save_IFS |
4110 | IFS=$as_save_IFS |
2888 | test -z "$as_dir" && as_dir=. |
4111 | case $as_dir in #((( |
|
|
4112 | '') as_dir=./ ;; |
|
|
4113 | */) ;; |
|
|
4114 | *) as_dir=$as_dir/ ;; |
|
|
4115 | esac |
2889 | for ac_exec_ext in '' $ac_executable_extensions; do |
4116 | for ac_exec_ext in '' $ac_executable_extensions; do |
2890 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4117 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2891 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
4118 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
2892 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4119 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2893 | break 2 |
4120 | break 2 |
2894 | fi |
4121 | fi |
2895 | done |
4122 | done |
2896 | done |
4123 | done |
2897 | IFS=$as_save_IFS |
4124 | IFS=$as_save_IFS |
2898 | |
4125 | |
2899 | fi |
4126 | fi |
2900 | fi |
4127 | fi |
2901 | CXX=$ac_cv_prog_CXX |
4128 | CXX=$ac_cv_prog_CXX |
2902 | if test -n "$CXX"; then |
4129 | if test -n "$CXX"; then |
2903 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
4130 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
2904 | echo "${ECHO_T}$CXX" >&6; } |
4131 | printf "%s\n" "$CXX" >&6; } |
2905 | else |
4132 | else |
2906 | { echo "$as_me:$LINENO: result: no" >&5 |
4133 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2907 | echo "${ECHO_T}no" >&6; } |
4134 | printf "%s\n" "no" >&6; } |
2908 | fi |
4135 | fi |
2909 | |
4136 | |
2910 | |
4137 | |
2911 | test -n "$CXX" && break |
4138 | test -n "$CXX" && break |
2912 | done |
4139 | done |
2913 | fi |
4140 | fi |
2914 | if test -z "$CXX"; then |
4141 | if test -z "$CXX"; then |
2915 | ac_ct_CXX=$CXX |
4142 | ac_ct_CXX=$CXX |
2916 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
4143 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
2917 | do |
4144 | do |
2918 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4145 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2919 | set dummy $ac_prog; ac_word=$2 |
4146 | set dummy $ac_prog; ac_word=$2 |
2920 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2921 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4148 | printf %s "checking for $ac_word... " >&6; } |
2922 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
4149 | if test ${ac_cv_prog_ac_ct_CXX+y} |
2923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4150 | then : |
2924 | else |
4151 | printf %s "(cached) " >&6 |
|
|
4152 | else $as_nop |
2925 | if test -n "$ac_ct_CXX"; then |
4153 | if test -n "$ac_ct_CXX"; then |
2926 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
4154 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
2927 | else |
4155 | else |
2928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2929 | for as_dir in $PATH |
4157 | for as_dir in $PATH |
2930 | do |
4158 | do |
2931 | IFS=$as_save_IFS |
4159 | IFS=$as_save_IFS |
2932 | test -z "$as_dir" && as_dir=. |
4160 | case $as_dir in #((( |
|
|
4161 | '') as_dir=./ ;; |
|
|
4162 | */) ;; |
|
|
4163 | *) as_dir=$as_dir/ ;; |
|
|
4164 | esac |
2933 | for ac_exec_ext in '' $ac_executable_extensions; do |
4165 | for ac_exec_ext in '' $ac_executable_extensions; do |
2934 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4166 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2935 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
4167 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
2936 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4168 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2937 | break 2 |
4169 | break 2 |
2938 | fi |
4170 | fi |
2939 | done |
4171 | done |
2940 | done |
4172 | done |
2941 | IFS=$as_save_IFS |
4173 | IFS=$as_save_IFS |
2942 | |
4174 | |
2943 | fi |
4175 | fi |
2944 | fi |
4176 | fi |
2945 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4177 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2946 | if test -n "$ac_ct_CXX"; then |
4178 | if test -n "$ac_ct_CXX"; then |
2947 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
4179 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
2948 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
4180 | printf "%s\n" "$ac_ct_CXX" >&6; } |
2949 | else |
4181 | else |
2950 | { echo "$as_me:$LINENO: result: no" >&5 |
4182 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2951 | echo "${ECHO_T}no" >&6; } |
4183 | printf "%s\n" "no" >&6; } |
2952 | fi |
4184 | fi |
2953 | |
4185 | |
2954 | |
4186 | |
2955 | test -n "$ac_ct_CXX" && break |
4187 | test -n "$ac_ct_CXX" && break |
2956 | done |
4188 | done |
… | |
… | |
2958 | if test "x$ac_ct_CXX" = x; then |
4190 | if test "x$ac_ct_CXX" = x; then |
2959 | CXX="g++" |
4191 | CXX="g++" |
2960 | else |
4192 | else |
2961 | case $cross_compiling:$ac_tool_warned in |
4193 | case $cross_compiling:$ac_tool_warned in |
2962 | yes:) |
4194 | yes:) |
2963 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
4195 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2964 | whose name does not start with the host triplet. If you think this |
4196 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2965 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
|
2966 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
|
2967 | whose name does not start with the host triplet. If you think this |
|
|
2968 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
|
2969 | ac_tool_warned=yes ;; |
4197 | ac_tool_warned=yes ;; |
2970 | esac |
4198 | esac |
2971 | CXX=$ac_ct_CXX |
4199 | CXX=$ac_ct_CXX |
2972 | fi |
4200 | fi |
2973 | fi |
4201 | fi |
2974 | |
4202 | |
2975 | fi |
4203 | fi |
2976 | fi |
4204 | fi |
2977 | # Provide some information about the compiler. |
4205 | # Provide some information about the compiler. |
2978 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
4206 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
2979 | ac_compiler=`set X $ac_compile; echo $2` |
4207 | set X $ac_compile |
|
|
4208 | ac_compiler=$2 |
|
|
4209 | for ac_option in --version -v -V -qversion; do |
2980 | { (ac_try="$ac_compiler --version >&5" |
4210 | { { ac_try="$ac_compiler $ac_option >&5" |
2981 | case "(($ac_try" in |
4211 | case "(($ac_try" in |
2982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2983 | *) ac_try_echo=$ac_try;; |
4213 | *) ac_try_echo=$ac_try;; |
2984 | esac |
4214 | esac |
2985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4215 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2986 | (eval "$ac_compiler --version >&5") 2>&5 |
4216 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
4217 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
2987 | ac_status=$? |
4218 | ac_status=$? |
2988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4219 | if test -s conftest.err; then |
|
|
4220 | sed '10a\ |
|
|
4221 | ... rest of stderr output deleted ... |
|
|
4222 | 10q' conftest.err >conftest.er1 |
|
|
4223 | cat conftest.er1 >&5 |
|
|
4224 | fi |
|
|
4225 | rm -f conftest.er1 conftest.err |
|
|
4226 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2989 | (exit $ac_status); } |
4227 | test $ac_status = 0; } |
2990 | { (ac_try="$ac_compiler -v >&5" |
4228 | done |
2991 | case "(($ac_try" in |
|
|
2992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2993 | *) ac_try_echo=$ac_try;; |
|
|
2994 | esac |
|
|
2995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2996 | (eval "$ac_compiler -v >&5") 2>&5 |
|
|
2997 | ac_status=$? |
|
|
2998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2999 | (exit $ac_status); } |
|
|
3000 | { (ac_try="$ac_compiler -V >&5" |
|
|
3001 | case "(($ac_try" in |
|
|
3002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3003 | *) ac_try_echo=$ac_try;; |
|
|
3004 | esac |
|
|
3005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3006 | (eval "$ac_compiler -V >&5") 2>&5 |
|
|
3007 | ac_status=$? |
|
|
3008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3009 | (exit $ac_status); } |
|
|
3010 | |
4229 | |
3011 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
4230 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 |
3012 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
4231 | printf %s "checking whether the compiler supports GNU C++... " >&6; } |
3013 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
4232 | if test ${ac_cv_cxx_compiler_gnu+y} |
3014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4233 | then : |
3015 | else |
4234 | printf %s "(cached) " >&6 |
3016 | cat >conftest.$ac_ext <<_ACEOF |
4235 | else $as_nop |
3017 | /* confdefs.h. */ |
|
|
3018 | _ACEOF |
|
|
3019 | cat confdefs.h >>conftest.$ac_ext |
4236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3020 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3021 | /* end confdefs.h. */ |
4237 | /* end confdefs.h. */ |
3022 | |
4238 | |
3023 | int |
4239 | int |
3024 | main () |
4240 | main (void) |
3025 | { |
4241 | { |
3026 | #ifndef __GNUC__ |
4242 | #ifndef __GNUC__ |
3027 | choke me |
4243 | choke me |
3028 | #endif |
4244 | #endif |
3029 | |
4245 | |
3030 | ; |
4246 | ; |
3031 | return 0; |
4247 | return 0; |
3032 | } |
4248 | } |
3033 | _ACEOF |
4249 | _ACEOF |
3034 | rm -f conftest.$ac_objext |
4250 | if ac_fn_cxx_try_compile "$LINENO" |
3035 | if { (ac_try="$ac_compile" |
4251 | then : |
3036 | case "(($ac_try" in |
|
|
3037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3038 | *) ac_try_echo=$ac_try;; |
|
|
3039 | esac |
|
|
3040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3041 | (eval "$ac_compile") 2>conftest.er1 |
|
|
3042 | ac_status=$? |
|
|
3043 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3044 | rm -f conftest.er1 |
|
|
3045 | cat conftest.err >&5 |
|
|
3046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3047 | (exit $ac_status); } && { |
|
|
3048 | test -z "$ac_cxx_werror_flag" || |
|
|
3049 | test ! -s conftest.err |
|
|
3050 | } && test -s conftest.$ac_objext; then |
|
|
3051 | ac_compiler_gnu=yes |
4252 | ac_compiler_gnu=yes |
|
|
4253 | else $as_nop |
|
|
4254 | ac_compiler_gnu=no |
|
|
4255 | fi |
|
|
4256 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
4257 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
|
|
4258 | |
|
|
4259 | fi |
|
|
4260 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
|
|
4261 | printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } |
|
|
4262 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4263 | |
|
|
4264 | if test $ac_compiler_gnu = yes; then |
|
|
4265 | GXX=yes |
3052 | else |
4266 | else |
3053 | echo "$as_me: failed program was:" >&5 |
4267 | GXX= |
3054 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3055 | |
|
|
3056 | ac_compiler_gnu=no |
|
|
3057 | fi |
4268 | fi |
3058 | |
|
|
3059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3060 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
|
|
3061 | |
|
|
3062 | fi |
|
|
3063 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
|
|
3064 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
|
|
3065 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
|
|
3066 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4269 | ac_test_CXXFLAGS=${CXXFLAGS+y} |
3067 | ac_save_CXXFLAGS=$CXXFLAGS |
4270 | ac_save_CXXFLAGS=$CXXFLAGS |
3068 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
4271 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
3069 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
4272 | printf %s "checking whether $CXX accepts -g... " >&6; } |
3070 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
4273 | if test ${ac_cv_prog_cxx_g+y} |
3071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4274 | then : |
3072 | else |
4275 | printf %s "(cached) " >&6 |
|
|
4276 | else $as_nop |
3073 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4277 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3074 | ac_cxx_werror_flag=yes |
4278 | ac_cxx_werror_flag=yes |
3075 | ac_cv_prog_cxx_g=no |
4279 | ac_cv_prog_cxx_g=no |
3076 | CXXFLAGS="-g" |
4280 | CXXFLAGS="-g" |
3077 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3078 | /* confdefs.h. */ |
|
|
3079 | _ACEOF |
|
|
3080 | cat confdefs.h >>conftest.$ac_ext |
4281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3081 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3082 | /* end confdefs.h. */ |
4282 | /* end confdefs.h. */ |
3083 | |
4283 | |
3084 | int |
4284 | int |
3085 | main () |
4285 | main (void) |
3086 | { |
4286 | { |
3087 | |
4287 | |
3088 | ; |
4288 | ; |
3089 | return 0; |
4289 | return 0; |
3090 | } |
4290 | } |
3091 | _ACEOF |
4291 | _ACEOF |
3092 | rm -f conftest.$ac_objext |
4292 | if ac_fn_cxx_try_compile "$LINENO" |
3093 | if { (ac_try="$ac_compile" |
4293 | then : |
3094 | case "(($ac_try" in |
|
|
3095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3096 | *) ac_try_echo=$ac_try;; |
|
|
3097 | esac |
|
|
3098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3099 | (eval "$ac_compile") 2>conftest.er1 |
|
|
3100 | ac_status=$? |
|
|
3101 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3102 | rm -f conftest.er1 |
|
|
3103 | cat conftest.err >&5 |
|
|
3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3105 | (exit $ac_status); } && { |
|
|
3106 | test -z "$ac_cxx_werror_flag" || |
|
|
3107 | test ! -s conftest.err |
|
|
3108 | } && test -s conftest.$ac_objext; then |
|
|
3109 | ac_cv_prog_cxx_g=yes |
4294 | ac_cv_prog_cxx_g=yes |
3110 | else |
4295 | else $as_nop |
3111 | echo "$as_me: failed program was:" >&5 |
|
|
3112 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3113 | |
|
|
3114 | CXXFLAGS="" |
4296 | CXXFLAGS="" |
3115 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3116 | /* confdefs.h. */ |
|
|
3117 | _ACEOF |
|
|
3118 | cat confdefs.h >>conftest.$ac_ext |
4297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3119 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3120 | /* end confdefs.h. */ |
4298 | /* end confdefs.h. */ |
3121 | |
4299 | |
3122 | int |
4300 | int |
3123 | main () |
4301 | main (void) |
3124 | { |
4302 | { |
3125 | |
4303 | |
3126 | ; |
4304 | ; |
3127 | return 0; |
4305 | return 0; |
3128 | } |
4306 | } |
3129 | _ACEOF |
4307 | _ACEOF |
3130 | rm -f conftest.$ac_objext |
4308 | if ac_fn_cxx_try_compile "$LINENO" |
3131 | if { (ac_try="$ac_compile" |
4309 | then : |
3132 | case "(($ac_try" in |
|
|
3133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3134 | *) ac_try_echo=$ac_try;; |
|
|
3135 | esac |
|
|
3136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3137 | (eval "$ac_compile") 2>conftest.er1 |
|
|
3138 | ac_status=$? |
|
|
3139 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3140 | rm -f conftest.er1 |
|
|
3141 | cat conftest.err >&5 |
|
|
3142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3143 | (exit $ac_status); } && { |
|
|
3144 | test -z "$ac_cxx_werror_flag" || |
|
|
3145 | test ! -s conftest.err |
|
|
3146 | } && test -s conftest.$ac_objext; then |
|
|
3147 | : |
|
|
3148 | else |
|
|
3149 | echo "$as_me: failed program was:" >&5 |
|
|
3150 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3151 | |
4310 | |
|
|
4311 | else $as_nop |
3152 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4312 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3153 | CXXFLAGS="-g" |
4313 | CXXFLAGS="-g" |
3154 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3155 | /* confdefs.h. */ |
|
|
3156 | _ACEOF |
|
|
3157 | cat confdefs.h >>conftest.$ac_ext |
4314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3158 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3159 | /* end confdefs.h. */ |
4315 | /* end confdefs.h. */ |
3160 | |
4316 | |
3161 | int |
4317 | int |
3162 | main () |
4318 | main (void) |
3163 | { |
4319 | { |
3164 | |
4320 | |
3165 | ; |
4321 | ; |
3166 | return 0; |
4322 | return 0; |
3167 | } |
4323 | } |
3168 | _ACEOF |
4324 | _ACEOF |
3169 | rm -f conftest.$ac_objext |
4325 | if ac_fn_cxx_try_compile "$LINENO" |
3170 | if { (ac_try="$ac_compile" |
4326 | then : |
3171 | case "(($ac_try" in |
|
|
3172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3173 | *) ac_try_echo=$ac_try;; |
|
|
3174 | esac |
|
|
3175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3176 | (eval "$ac_compile") 2>conftest.er1 |
|
|
3177 | ac_status=$? |
|
|
3178 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3179 | rm -f conftest.er1 |
|
|
3180 | cat conftest.err >&5 |
|
|
3181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3182 | (exit $ac_status); } && { |
|
|
3183 | test -z "$ac_cxx_werror_flag" || |
|
|
3184 | test ! -s conftest.err |
|
|
3185 | } && test -s conftest.$ac_objext; then |
|
|
3186 | ac_cv_prog_cxx_g=yes |
4327 | ac_cv_prog_cxx_g=yes |
3187 | else |
|
|
3188 | echo "$as_me: failed program was:" >&5 |
|
|
3189 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3190 | |
|
|
3191 | |
|
|
3192 | fi |
4328 | fi |
3193 | |
|
|
3194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4329 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3195 | fi |
4330 | fi |
3196 | |
|
|
3197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4331 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3198 | fi |
4332 | fi |
3199 | |
|
|
3200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4333 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3201 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4334 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3202 | fi |
4335 | fi |
3203 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
4336 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
3204 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
4337 | printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } |
3205 | if test "$ac_test_CXXFLAGS" = set; then |
4338 | if test $ac_test_CXXFLAGS; then |
3206 | CXXFLAGS=$ac_save_CXXFLAGS |
4339 | CXXFLAGS=$ac_save_CXXFLAGS |
3207 | elif test $ac_cv_prog_cxx_g = yes; then |
4340 | elif test $ac_cv_prog_cxx_g = yes; then |
3208 | if test "$GXX" = yes; then |
4341 | if test "$GXX" = yes; then |
3209 | CXXFLAGS="-g -O2" |
4342 | CXXFLAGS="-g -O2" |
3210 | else |
4343 | else |
… | |
… | |
3215 | CXXFLAGS="-O2" |
4348 | CXXFLAGS="-O2" |
3216 | else |
4349 | else |
3217 | CXXFLAGS= |
4350 | CXXFLAGS= |
3218 | fi |
4351 | fi |
3219 | fi |
4352 | fi |
|
|
4353 | ac_prog_cxx_stdcxx=no |
|
|
4354 | if test x$ac_prog_cxx_stdcxx = xno |
|
|
4355 | then : |
|
|
4356 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 |
|
|
4357 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } |
|
|
4358 | if test ${ac_cv_prog_cxx_11+y} |
|
|
4359 | then : |
|
|
4360 | printf %s "(cached) " >&6 |
|
|
4361 | else $as_nop |
|
|
4362 | ac_cv_prog_cxx_11=no |
|
|
4363 | ac_save_CXX=$CXX |
|
|
4364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4365 | /* end confdefs.h. */ |
|
|
4366 | $ac_cxx_conftest_cxx11_program |
|
|
4367 | _ACEOF |
|
|
4368 | for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA |
|
|
4369 | do |
|
|
4370 | CXX="$ac_save_CXX $ac_arg" |
|
|
4371 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
4372 | then : |
|
|
4373 | ac_cv_prog_cxx_cxx11=$ac_arg |
|
|
4374 | fi |
|
|
4375 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
4376 | test "x$ac_cv_prog_cxx_cxx11" != "xno" && break |
|
|
4377 | done |
|
|
4378 | rm -f conftest.$ac_ext |
|
|
4379 | CXX=$ac_save_CXX |
|
|
4380 | fi |
|
|
4381 | |
|
|
4382 | if test "x$ac_cv_prog_cxx_cxx11" = xno |
|
|
4383 | then : |
|
|
4384 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
4385 | printf "%s\n" "unsupported" >&6; } |
|
|
4386 | else $as_nop |
|
|
4387 | if test "x$ac_cv_prog_cxx_cxx11" = x |
|
|
4388 | then : |
|
|
4389 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4390 | printf "%s\n" "none needed" >&6; } |
|
|
4391 | else $as_nop |
|
|
4392 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 |
|
|
4393 | printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } |
|
|
4394 | CXX="$CXX $ac_cv_prog_cxx_cxx11" |
|
|
4395 | fi |
|
|
4396 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 |
|
|
4397 | ac_prog_cxx_stdcxx=cxx11 |
|
|
4398 | fi |
|
|
4399 | fi |
|
|
4400 | if test x$ac_prog_cxx_stdcxx = xno |
|
|
4401 | then : |
|
|
4402 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 |
|
|
4403 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } |
|
|
4404 | if test ${ac_cv_prog_cxx_98+y} |
|
|
4405 | then : |
|
|
4406 | printf %s "(cached) " >&6 |
|
|
4407 | else $as_nop |
|
|
4408 | ac_cv_prog_cxx_98=no |
|
|
4409 | ac_save_CXX=$CXX |
|
|
4410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4411 | /* end confdefs.h. */ |
|
|
4412 | $ac_cxx_conftest_cxx98_program |
|
|
4413 | _ACEOF |
|
|
4414 | for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA |
|
|
4415 | do |
|
|
4416 | CXX="$ac_save_CXX $ac_arg" |
|
|
4417 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
4418 | then : |
|
|
4419 | ac_cv_prog_cxx_cxx98=$ac_arg |
|
|
4420 | fi |
|
|
4421 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
4422 | test "x$ac_cv_prog_cxx_cxx98" != "xno" && break |
|
|
4423 | done |
|
|
4424 | rm -f conftest.$ac_ext |
|
|
4425 | CXX=$ac_save_CXX |
|
|
4426 | fi |
|
|
4427 | |
|
|
4428 | if test "x$ac_cv_prog_cxx_cxx98" = xno |
|
|
4429 | then : |
|
|
4430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
4431 | printf "%s\n" "unsupported" >&6; } |
|
|
4432 | else $as_nop |
|
|
4433 | if test "x$ac_cv_prog_cxx_cxx98" = x |
|
|
4434 | then : |
|
|
4435 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4436 | printf "%s\n" "none needed" >&6; } |
|
|
4437 | else $as_nop |
|
|
4438 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 |
|
|
4439 | printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } |
|
|
4440 | CXX="$CXX $ac_cv_prog_cxx_cxx98" |
|
|
4441 | fi |
|
|
4442 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 |
|
|
4443 | ac_prog_cxx_stdcxx=cxx98 |
|
|
4444 | fi |
|
|
4445 | fi |
|
|
4446 | |
3220 | ac_ext=c |
4447 | ac_ext=c |
3221 | ac_cpp='$CPP $CPPFLAGS' |
4448 | ac_cpp='$CPP $CPPFLAGS' |
3222 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3223 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3224 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3225 | |
4452 | |
3226 | ac_ext=c |
|
|
3227 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3228 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3229 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3230 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3231 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
|
|
3232 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
|
|
3233 | # On Suns, sometimes $CPP names a directory. |
|
|
3234 | if test -n "$CPP" && test -d "$CPP"; then |
|
|
3235 | CPP= |
|
|
3236 | fi |
|
|
3237 | if test -z "$CPP"; then |
|
|
3238 | if test "${ac_cv_prog_CPP+set}" = set; then |
|
|
3239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3240 | else |
|
|
3241 | # Double quotes because CPP needs to be expanded |
|
|
3242 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
|
3243 | do |
|
|
3244 | ac_preproc_ok=false |
|
|
3245 | for ac_c_preproc_warn_flag in '' yes |
|
|
3246 | do |
|
|
3247 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3248 | # with a fresh cross-compiler works. |
|
|
3249 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3250 | # <limits.h> exists even on freestanding compilers. |
|
|
3251 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3252 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3253 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3254 | /* confdefs.h. */ |
|
|
3255 | _ACEOF |
|
|
3256 | cat confdefs.h >>conftest.$ac_ext |
|
|
3257 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3258 | /* end confdefs.h. */ |
|
|
3259 | #ifdef __STDC__ |
|
|
3260 | # include <limits.h> |
|
|
3261 | #else |
|
|
3262 | # include <assert.h> |
|
|
3263 | #endif |
|
|
3264 | Syntax error |
|
|
3265 | _ACEOF |
|
|
3266 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
3267 | case "(($ac_try" in |
|
|
3268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3269 | *) ac_try_echo=$ac_try;; |
|
|
3270 | esac |
|
|
3271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3272 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
3273 | ac_status=$? |
|
|
3274 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3275 | rm -f conftest.er1 |
|
|
3276 | cat conftest.err >&5 |
|
|
3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3278 | (exit $ac_status); } >/dev/null && { |
|
|
3279 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
|
3280 | test ! -s conftest.err |
|
|
3281 | }; then |
|
|
3282 | : |
|
|
3283 | else |
|
|
3284 | echo "$as_me: failed program was:" >&5 |
|
|
3285 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3286 | |
4453 | |
3287 | # Broken: fails on valid input. |
|
|
3288 | continue |
|
|
3289 | fi |
|
|
3290 | |
4454 | |
3291 | rm -f conftest.err conftest.$ac_ext |
|
|
3292 | |
|
|
3293 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
3294 | # can be detected and how. |
|
|
3295 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3296 | /* confdefs.h. */ |
|
|
3297 | _ACEOF |
|
|
3298 | cat confdefs.h >>conftest.$ac_ext |
|
|
3299 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3300 | /* end confdefs.h. */ |
|
|
3301 | #include <ac_nonexistent.h> |
|
|
3302 | _ACEOF |
|
|
3303 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
3304 | case "(($ac_try" in |
|
|
3305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3306 | *) ac_try_echo=$ac_try;; |
|
|
3307 | esac |
|
|
3308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3309 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
3310 | ac_status=$? |
|
|
3311 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3312 | rm -f conftest.er1 |
|
|
3313 | cat conftest.err >&5 |
|
|
3314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3315 | (exit $ac_status); } >/dev/null && { |
|
|
3316 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
|
3317 | test ! -s conftest.err |
|
|
3318 | }; then |
|
|
3319 | # Broken: success on invalid input. |
|
|
3320 | continue |
|
|
3321 | else |
|
|
3322 | echo "$as_me: failed program was:" >&5 |
|
|
3323 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3324 | |
|
|
3325 | # Passes both tests. |
|
|
3326 | ac_preproc_ok=: |
|
|
3327 | break |
|
|
3328 | fi |
|
|
3329 | |
|
|
3330 | rm -f conftest.err conftest.$ac_ext |
|
|
3331 | |
|
|
3332 | done |
|
|
3333 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3334 | rm -f conftest.err conftest.$ac_ext |
|
|
3335 | if $ac_preproc_ok; then |
|
|
3336 | break |
|
|
3337 | fi |
|
|
3338 | |
|
|
3339 | done |
|
|
3340 | ac_cv_prog_CPP=$CPP |
|
|
3341 | |
|
|
3342 | fi |
|
|
3343 | CPP=$ac_cv_prog_CPP |
|
|
3344 | else |
|
|
3345 | ac_cv_prog_CPP=$CPP |
|
|
3346 | fi |
|
|
3347 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
|
|
3348 | echo "${ECHO_T}$CPP" >&6; } |
|
|
3349 | ac_preproc_ok=false |
|
|
3350 | for ac_c_preproc_warn_flag in '' yes |
|
|
3351 | do |
|
|
3352 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3353 | # with a fresh cross-compiler works. |
|
|
3354 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3355 | # <limits.h> exists even on freestanding compilers. |
|
|
3356 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3357 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3358 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3359 | /* confdefs.h. */ |
|
|
3360 | _ACEOF |
|
|
3361 | cat confdefs.h >>conftest.$ac_ext |
|
|
3362 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3363 | /* end confdefs.h. */ |
|
|
3364 | #ifdef __STDC__ |
|
|
3365 | # include <limits.h> |
|
|
3366 | #else |
|
|
3367 | # include <assert.h> |
|
|
3368 | #endif |
|
|
3369 | Syntax error |
|
|
3370 | _ACEOF |
|
|
3371 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
3372 | case "(($ac_try" in |
|
|
3373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3374 | *) ac_try_echo=$ac_try;; |
|
|
3375 | esac |
|
|
3376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3377 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
3378 | ac_status=$? |
|
|
3379 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3380 | rm -f conftest.er1 |
|
|
3381 | cat conftest.err >&5 |
|
|
3382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3383 | (exit $ac_status); } >/dev/null && { |
|
|
3384 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
|
3385 | test ! -s conftest.err |
|
|
3386 | }; then |
|
|
3387 | : |
|
|
3388 | else |
|
|
3389 | echo "$as_me: failed program was:" >&5 |
|
|
3390 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3391 | |
|
|
3392 | # Broken: fails on valid input. |
|
|
3393 | continue |
|
|
3394 | fi |
|
|
3395 | |
|
|
3396 | rm -f conftest.err conftest.$ac_ext |
|
|
3397 | |
|
|
3398 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
3399 | # can be detected and how. |
|
|
3400 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3401 | /* confdefs.h. */ |
|
|
3402 | _ACEOF |
|
|
3403 | cat confdefs.h >>conftest.$ac_ext |
|
|
3404 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3405 | /* end confdefs.h. */ |
|
|
3406 | #include <ac_nonexistent.h> |
|
|
3407 | _ACEOF |
|
|
3408 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
3409 | case "(($ac_try" in |
|
|
3410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3411 | *) ac_try_echo=$ac_try;; |
|
|
3412 | esac |
|
|
3413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3414 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
3415 | ac_status=$? |
|
|
3416 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3417 | rm -f conftest.er1 |
|
|
3418 | cat conftest.err >&5 |
|
|
3419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3420 | (exit $ac_status); } >/dev/null && { |
|
|
3421 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
|
3422 | test ! -s conftest.err |
|
|
3423 | }; then |
|
|
3424 | # Broken: success on invalid input. |
|
|
3425 | continue |
|
|
3426 | else |
|
|
3427 | echo "$as_me: failed program was:" >&5 |
|
|
3428 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3429 | |
|
|
3430 | # Passes both tests. |
|
|
3431 | ac_preproc_ok=: |
|
|
3432 | break |
|
|
3433 | fi |
|
|
3434 | |
|
|
3435 | rm -f conftest.err conftest.$ac_ext |
|
|
3436 | |
|
|
3437 | done |
|
|
3438 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3439 | rm -f conftest.err conftest.$ac_ext |
|
|
3440 | if $ac_preproc_ok; then |
|
|
3441 | : |
|
|
3442 | else |
|
|
3443 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
|
|
3444 | See \`config.log' for more details." >&5 |
|
|
3445 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
|
|
3446 | See \`config.log' for more details." >&2;} |
|
|
3447 | { (exit 1); exit 1; }; } |
|
|
3448 | fi |
|
|
3449 | |
|
|
3450 | ac_ext=c |
|
|
3451 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3455 | |
|
|
3456 | # Find a good install program. We prefer a C program (faster), |
4455 | # Find a good install program. We prefer a C program (faster), |
3457 | # so one script is as good as another. But avoid the broken or |
4456 | # so one script is as good as another. But avoid the broken or |
3458 | # incompatible versions: |
4457 | # incompatible versions: |
3459 | # SysV /etc/install, /usr/sbin/install |
4458 | # SysV /etc/install, /usr/sbin/install |
3460 | # SunOS /usr/etc/install |
4459 | # SunOS /usr/etc/install |
3461 | # IRIX /sbin/install |
4460 | # IRIX /sbin/install |
… | |
… | |
3464 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
4463 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3465 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
4464 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3466 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
4465 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3467 | # OS/2's system install, which has a completely different semantic |
4466 | # OS/2's system install, which has a completely different semantic |
3468 | # ./install, which can be erroneously created by make from ./install.sh. |
4467 | # ./install, which can be erroneously created by make from ./install.sh. |
|
|
4468 | # Reject install programs that cannot install multiple files. |
3469 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4469 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3470 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
4470 | printf %s "checking for a BSD-compatible install... " >&6; } |
3471 | if test -z "$INSTALL"; then |
4471 | if test -z "$INSTALL"; then |
3472 | if test "${ac_cv_path_install+set}" = set; then |
4472 | if test ${ac_cv_path_install+y} |
3473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4473 | then : |
3474 | else |
4474 | printf %s "(cached) " >&6 |
|
|
4475 | else $as_nop |
3475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3476 | for as_dir in $PATH |
4477 | for as_dir in $PATH |
3477 | do |
4478 | do |
3478 | IFS=$as_save_IFS |
4479 | IFS=$as_save_IFS |
3479 | test -z "$as_dir" && as_dir=. |
4480 | case $as_dir in #((( |
3480 | # Account for people who put trailing slashes in PATH elements. |
4481 | '') as_dir=./ ;; |
|
|
4482 | */) ;; |
|
|
4483 | *) as_dir=$as_dir/ ;; |
|
|
4484 | esac |
|
|
4485 | # Account for fact that we put trailing slashes in our PATH walk. |
3481 | case $as_dir/ in |
4486 | case $as_dir in #(( |
3482 | ./ | .// | /cC/* | \ |
4487 | ./ | /[cC]/* | \ |
3483 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
4488 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3484 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
4489 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
3485 | /usr/ucb/* ) ;; |
4490 | /usr/ucb/* ) ;; |
3486 | *) |
4491 | *) |
3487 | # OSF1 and SCO ODT 3.0 have their own names for install. |
4492 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3488 | # Don't use installbsd from OSF since it installs stuff as root |
4493 | # Don't use installbsd from OSF since it installs stuff as root |
3489 | # by default. |
4494 | # by default. |
3490 | for ac_prog in ginstall scoinst install; do |
4495 | for ac_prog in ginstall scoinst install; do |
3491 | for ac_exec_ext in '' $ac_executable_extensions; do |
4496 | for ac_exec_ext in '' $ac_executable_extensions; do |
3492 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
4497 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
3493 | if test $ac_prog = install && |
4498 | if test $ac_prog = install && |
3494 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
4499 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3495 | # AIX install. It has an incompatible calling convention. |
4500 | # AIX install. It has an incompatible calling convention. |
3496 | : |
4501 | : |
3497 | elif test $ac_prog = install && |
4502 | elif test $ac_prog = install && |
3498 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
4503 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3499 | # program-specific install script used by HP pwplus--don't use. |
4504 | # program-specific install script used by HP pwplus--don't use. |
3500 | : |
4505 | : |
3501 | else |
4506 | else |
|
|
4507 | rm -rf conftest.one conftest.two conftest.dir |
|
|
4508 | echo one > conftest.one |
|
|
4509 | echo two > conftest.two |
|
|
4510 | mkdir conftest.dir |
|
|
4511 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
|
|
4512 | test -s conftest.one && test -s conftest.two && |
|
|
4513 | test -s conftest.dir/conftest.one && |
|
|
4514 | test -s conftest.dir/conftest.two |
|
|
4515 | then |
3502 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
4516 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
3503 | break 3 |
4517 | break 3 |
|
|
4518 | fi |
3504 | fi |
4519 | fi |
3505 | fi |
4520 | fi |
3506 | done |
4521 | done |
3507 | done |
4522 | done |
3508 | ;; |
4523 | ;; |
3509 | esac |
4524 | esac |
|
|
4525 | |
3510 | done |
4526 | done |
3511 | IFS=$as_save_IFS |
4527 | IFS=$as_save_IFS |
3512 | |
4528 | |
|
|
4529 | rm -rf conftest.one conftest.two conftest.dir |
3513 | |
4530 | |
3514 | fi |
4531 | fi |
3515 | if test "${ac_cv_path_install+set}" = set; then |
4532 | if test ${ac_cv_path_install+y}; then |
3516 | INSTALL=$ac_cv_path_install |
4533 | INSTALL=$ac_cv_path_install |
3517 | else |
4534 | else |
3518 | # As a last resort, use the slow shell script. Don't cache a |
4535 | # As a last resort, use the slow shell script. Don't cache a |
3519 | # value for INSTALL within a source directory, because that will |
4536 | # value for INSTALL within a source directory, because that will |
3520 | # break other packages using the cache if that directory is |
4537 | # break other packages using the cache if that directory is |
3521 | # removed, or if the value is a relative name. |
4538 | # removed, or if the value is a relative name. |
3522 | INSTALL=$ac_install_sh |
4539 | INSTALL=$ac_install_sh |
3523 | fi |
4540 | fi |
3524 | fi |
4541 | fi |
3525 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4542 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3526 | echo "${ECHO_T}$INSTALL" >&6; } |
4543 | printf "%s\n" "$INSTALL" >&6; } |
3527 | |
4544 | |
3528 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4545 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3529 | # It thinks the first close brace ends the variable substitution. |
4546 | # It thinks the first close brace ends the variable substitution. |
3530 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
4547 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3531 | |
4548 | |
… | |
… | |
3533 | |
4550 | |
3534 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4551 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3535 | |
4552 | |
3536 | |
4553 | |
3537 | |
4554 | |
3538 | |
4555 | ac_header= ac_cache= |
3539 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
4556 | for ac_item in $ac_header_c_list |
3540 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
|
|
3541 | if test "${ac_cv_path_GREP+set}" = set; then |
|
|
3542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3543 | else |
|
|
3544 | # Extract the first word of "grep ggrep" to use in msg output |
|
|
3545 | if test -z "$GREP"; then |
|
|
3546 | set dummy grep ggrep; ac_prog_name=$2 |
|
|
3547 | if test "${ac_cv_path_GREP+set}" = set; then |
|
|
3548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3549 | else |
|
|
3550 | ac_path_GREP_found=false |
|
|
3551 | # Loop through the user's path and test for each of PROGNAME-LIST |
|
|
3552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3553 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
3554 | do |
4557 | do |
3555 | IFS=$as_save_IFS |
4558 | if test $ac_cache; then |
3556 | test -z "$as_dir" && as_dir=. |
4559 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
3557 | for ac_prog in grep ggrep; do |
4560 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
3558 | for ac_exec_ext in '' $ac_executable_extensions; do |
4561 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
3559 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
|
|
3560 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
|
|
3561 | # Check for GNU ac_path_GREP and select it if it is found. |
|
|
3562 | # Check for GNU $ac_path_GREP |
|
|
3563 | case `"$ac_path_GREP" --version 2>&1` in |
|
|
3564 | *GNU*) |
|
|
3565 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
|
3566 | *) |
|
|
3567 | ac_count=0 |
|
|
3568 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
|
|
3569 | while : |
|
|
3570 | do |
|
|
3571 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
|
3572 | mv "conftest.tmp" "conftest.in" |
|
|
3573 | cp "conftest.in" "conftest.nl" |
|
|
3574 | echo 'GREP' >> "conftest.nl" |
|
|
3575 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
|
3576 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
|
3577 | ac_count=`expr $ac_count + 1` |
|
|
3578 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|
|
3579 | # Best one so far, save it but keep looking for a better one |
|
|
3580 | ac_cv_path_GREP="$ac_path_GREP" |
|
|
3581 | ac_path_GREP_max=$ac_count |
|
|
3582 | fi |
4562 | fi |
3583 | # 10*(2^10) chars as input seems more than enough |
4563 | ac_header= ac_cache= |
3584 | test $ac_count -gt 10 && break |
4564 | elif test $ac_header; then |
3585 | done |
4565 | ac_cache=$ac_item |
3586 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4566 | else |
3587 | esac |
4567 | ac_header=$ac_item |
3588 | |
4568 | fi |
3589 | |
|
|
3590 | $ac_path_GREP_found && break 3 |
|
|
3591 | done |
|
|
3592 | done |
4569 | done |
3593 | |
4570 | |
3594 | done |
|
|
3595 | IFS=$as_save_IFS |
|
|
3596 | |
4571 | |
3597 | |
4572 | |
3598 | fi |
|
|
3599 | |
4573 | |
3600 | GREP="$ac_cv_path_GREP" |
|
|
3601 | if test -z "$GREP"; then |
|
|
3602 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
|
|
3603 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
|
|
3604 | { (exit 1); exit 1; }; } |
|
|
3605 | fi |
|
|
3606 | |
4574 | |
3607 | else |
|
|
3608 | ac_cv_path_GREP=$GREP |
|
|
3609 | fi |
|
|
3610 | |
4575 | |
3611 | |
4576 | |
3612 | fi |
|
|
3613 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
|
|
3614 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
|
|
3615 | GREP="$ac_cv_path_GREP" |
|
|
3616 | |
4577 | |
|
|
4578 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
|
|
4579 | then : |
3617 | |
4580 | |
3618 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
4581 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
3619 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
|
|
3620 | if test "${ac_cv_path_EGREP+set}" = set; then |
|
|
3621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3622 | else |
|
|
3623 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
|
3624 | then ac_cv_path_EGREP="$GREP -E" |
|
|
3625 | else |
|
|
3626 | # Extract the first word of "egrep" to use in msg output |
|
|
3627 | if test -z "$EGREP"; then |
|
|
3628 | set dummy egrep; ac_prog_name=$2 |
|
|
3629 | if test "${ac_cv_path_EGREP+set}" = set; then |
|
|
3630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3631 | else |
|
|
3632 | ac_path_EGREP_found=false |
|
|
3633 | # Loop through the user's path and test for each of PROGNAME-LIST |
|
|
3634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3635 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
3636 | do |
|
|
3637 | IFS=$as_save_IFS |
|
|
3638 | test -z "$as_dir" && as_dir=. |
|
|
3639 | for ac_prog in egrep; do |
|
|
3640 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3641 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
|
3642 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
|
|
3643 | # Check for GNU ac_path_EGREP and select it if it is found. |
|
|
3644 | # Check for GNU $ac_path_EGREP |
|
|
3645 | case `"$ac_path_EGREP" --version 2>&1` in |
|
|
3646 | *GNU*) |
|
|
3647 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
|
3648 | *) |
|
|
3649 | ac_count=0 |
|
|
3650 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
|
|
3651 | while : |
|
|
3652 | do |
|
|
3653 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
|
3654 | mv "conftest.tmp" "conftest.in" |
|
|
3655 | cp "conftest.in" "conftest.nl" |
|
|
3656 | echo 'EGREP' >> "conftest.nl" |
|
|
3657 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
|
3658 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
|
3659 | ac_count=`expr $ac_count + 1` |
|
|
3660 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|
|
3661 | # Best one so far, save it but keep looking for a better one |
|
|
3662 | ac_cv_path_EGREP="$ac_path_EGREP" |
|
|
3663 | ac_path_EGREP_max=$ac_count |
|
|
3664 | fi |
|
|
3665 | # 10*(2^10) chars as input seems more than enough |
|
|
3666 | test $ac_count -gt 10 && break |
|
|
3667 | done |
|
|
3668 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
|
3669 | esac |
|
|
3670 | |
4582 | |
3671 | |
|
|
3672 | $ac_path_EGREP_found && break 3 |
|
|
3673 | done |
|
|
3674 | done |
|
|
3675 | |
|
|
3676 | done |
|
|
3677 | IFS=$as_save_IFS |
|
|
3678 | |
|
|
3679 | |
|
|
3680 | fi |
4583 | fi |
3681 | |
4584 | |
3682 | EGREP="$ac_cv_path_EGREP" |
|
|
3683 | if test -z "$EGREP"; then |
|
|
3684 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
|
|
3685 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
|
|
3686 | { (exit 1); exit 1; }; } |
|
|
3687 | fi |
|
|
3688 | |
4585 | |
3689 | else |
|
|
3690 | ac_cv_path_EGREP=$EGREP |
|
|
3691 | fi |
|
|
3692 | |
4586 | |
3693 | |
4587 | |
3694 | fi |
|
|
3695 | fi |
|
|
3696 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
|
|
3697 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
|
|
3698 | EGREP="$ac_cv_path_EGREP" |
|
|
3699 | |
4588 | |
3700 | |
4589 | |
3701 | |
4590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
3702 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
4591 | printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
3703 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
4592 | if test ${ac_cv_safe_to_define___extensions__+y} |
3704 | cat >conftest.$ac_ext <<_ACEOF |
4593 | then : |
3705 | /* confdefs.h. */ |
4594 | printf %s "(cached) " >&6 |
3706 | _ACEOF |
4595 | else $as_nop |
3707 | cat confdefs.h >>conftest.$ac_ext |
4596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3708 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3709 | /* end confdefs.h. */ |
4597 | /* end confdefs.h. */ |
3710 | #ifdef _AIX |
|
|
3711 | yes |
|
|
3712 | #endif |
|
|
3713 | |
4598 | |
3714 | _ACEOF |
4599 | # define __EXTENSIONS__ 1 |
3715 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4600 | $ac_includes_default |
3716 | $EGREP "yes" >/dev/null 2>&1; then |
|
|
3717 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
3718 | echo "${ECHO_T}yes" >&6; } |
|
|
3719 | cat >>confdefs.h <<\_ACEOF |
|
|
3720 | #define _ALL_SOURCE 1 |
|
|
3721 | _ACEOF |
|
|
3722 | |
|
|
3723 | else |
|
|
3724 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
3725 | echo "${ECHO_T}no" >&6; } |
|
|
3726 | fi |
|
|
3727 | rm -f conftest* |
|
|
3728 | |
|
|
3729 | |
|
|
3730 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
|
|
3731 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
|
|
3732 | if test "${ac_cv_search_strerror+set}" = set; then |
|
|
3733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3734 | else |
|
|
3735 | ac_func_search_save_LIBS=$LIBS |
|
|
3736 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3737 | /* confdefs.h. */ |
|
|
3738 | _ACEOF |
|
|
3739 | cat confdefs.h >>conftest.$ac_ext |
|
|
3740 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3741 | /* end confdefs.h. */ |
|
|
3742 | |
|
|
3743 | /* Override any GCC internal prototype to avoid an error. |
|
|
3744 | Use char because int might match the return type of a GCC |
|
|
3745 | builtin and then its argument prototype would still apply. */ |
|
|
3746 | #ifdef __cplusplus |
|
|
3747 | extern "C" |
|
|
3748 | #endif |
|
|
3749 | char strerror (); |
|
|
3750 | int |
4601 | int |
3751 | main () |
4602 | main (void) |
3752 | { |
4603 | { |
3753 | return strerror (); |
4604 | |
3754 | ; |
4605 | ; |
3755 | return 0; |
4606 | return 0; |
3756 | } |
4607 | } |
3757 | _ACEOF |
4608 | _ACEOF |
|
|
4609 | if ac_fn_c_try_compile "$LINENO" |
|
|
4610 | then : |
|
|
4611 | ac_cv_safe_to_define___extensions__=yes |
|
|
4612 | else $as_nop |
|
|
4613 | ac_cv_safe_to_define___extensions__=no |
|
|
4614 | fi |
|
|
4615 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
4616 | fi |
|
|
4617 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
|
|
4618 | printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } |
|
|
4619 | |
|
|
4620 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 |
|
|
4621 | printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } |
|
|
4622 | if test ${ac_cv_should_define__xopen_source+y} |
|
|
4623 | then : |
|
|
4624 | printf %s "(cached) " >&6 |
|
|
4625 | else $as_nop |
|
|
4626 | ac_cv_should_define__xopen_source=no |
|
|
4627 | if test $ac_cv_header_wchar_h = yes |
|
|
4628 | then : |
|
|
4629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4630 | /* end confdefs.h. */ |
|
|
4631 | |
|
|
4632 | #include <wchar.h> |
|
|
4633 | mbstate_t x; |
|
|
4634 | int |
|
|
4635 | main (void) |
|
|
4636 | { |
|
|
4637 | |
|
|
4638 | ; |
|
|
4639 | return 0; |
|
|
4640 | } |
|
|
4641 | _ACEOF |
|
|
4642 | if ac_fn_c_try_compile "$LINENO" |
|
|
4643 | then : |
|
|
4644 | |
|
|
4645 | else $as_nop |
|
|
4646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4647 | /* end confdefs.h. */ |
|
|
4648 | |
|
|
4649 | #define _XOPEN_SOURCE 500 |
|
|
4650 | #include <wchar.h> |
|
|
4651 | mbstate_t x; |
|
|
4652 | int |
|
|
4653 | main (void) |
|
|
4654 | { |
|
|
4655 | |
|
|
4656 | ; |
|
|
4657 | return 0; |
|
|
4658 | } |
|
|
4659 | _ACEOF |
|
|
4660 | if ac_fn_c_try_compile "$LINENO" |
|
|
4661 | then : |
|
|
4662 | ac_cv_should_define__xopen_source=yes |
|
|
4663 | fi |
|
|
4664 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
4665 | fi |
|
|
4666 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
4667 | fi |
|
|
4668 | fi |
|
|
4669 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
|
|
4670 | printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } |
|
|
4671 | |
|
|
4672 | printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h |
|
|
4673 | |
|
|
4674 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
|
|
4675 | |
|
|
4676 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
|
|
4677 | |
|
|
4678 | printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h |
|
|
4679 | |
|
|
4680 | printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h |
|
|
4681 | |
|
|
4682 | printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h |
|
|
4683 | |
|
|
4684 | printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
|
|
4685 | |
|
|
4686 | printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h |
|
|
4687 | |
|
|
4688 | printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h |
|
|
4689 | |
|
|
4690 | printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h |
|
|
4691 | |
|
|
4692 | printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h |
|
|
4693 | |
|
|
4694 | printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h |
|
|
4695 | |
|
|
4696 | printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h |
|
|
4697 | |
|
|
4698 | printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h |
|
|
4699 | |
|
|
4700 | printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h |
|
|
4701 | |
|
|
4702 | if test $ac_cv_header_minix_config_h = yes |
|
|
4703 | then : |
|
|
4704 | MINIX=yes |
|
|
4705 | printf "%s\n" "#define _MINIX 1" >>confdefs.h |
|
|
4706 | |
|
|
4707 | printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h |
|
|
4708 | |
|
|
4709 | printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h |
|
|
4710 | |
|
|
4711 | else $as_nop |
|
|
4712 | MINIX= |
|
|
4713 | fi |
|
|
4714 | if test $ac_cv_safe_to_define___extensions__ = yes |
|
|
4715 | then : |
|
|
4716 | printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
|
|
4717 | |
|
|
4718 | fi |
|
|
4719 | if test $ac_cv_should_define__xopen_source = yes |
|
|
4720 | then : |
|
|
4721 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
4722 | |
|
|
4723 | fi |
|
|
4724 | |
|
|
4725 | ac_ext=cpp |
|
|
4726 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4727 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4728 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4729 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4730 | |
|
|
4731 | |
|
|
4732 | LINKER="$CXX" |
|
|
4733 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
4734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 |
|
|
4735 | printf %s "checking for working libsupc++... " >&6; } |
|
|
4736 | save_CXX="$CXX" |
|
|
4737 | save_LIBS="$LIBS" |
|
|
4738 | CXX="$CC" |
|
|
4739 | LIBS="$LIBS -lsupc++" |
|
|
4740 | |
|
|
4741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4742 | /* end confdefs.h. */ |
|
|
4743 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
|
|
4744 | int |
|
|
4745 | main (void) |
|
|
4746 | { |
|
|
4747 | |
|
|
4748 | ; |
|
|
4749 | return 0; |
|
|
4750 | } |
|
|
4751 | _ACEOF |
|
|
4752 | if ac_fn_cxx_try_link "$LINENO" |
|
|
4753 | then : |
|
|
4754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
4755 | printf "%s\n" "ok" >&6; } |
|
|
4756 | LINKER="$CC" |
|
|
4757 | else $as_nop |
|
|
4758 | |
|
|
4759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5 |
|
|
4760 | printf "%s\n" "no, making everything bigger and slower" >&6; } |
|
|
4761 | LIBS="$save_LIBS" |
|
|
4762 | |
|
|
4763 | |
|
|
4764 | fi |
|
|
4765 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4766 | conftest$ac_exeext conftest.$ac_ext |
|
|
4767 | CXX="$save_CXX" |
|
|
4768 | fi |
|
|
4769 | LINKER=$LINKER |
|
|
4770 | |
|
|
4771 | |
|
|
4772 | if test -z "$orig_CXXFLAGS"; then |
|
|
4773 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
|
|
4774 | CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
|
|
4775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4776 | /* end confdefs.h. */ |
|
|
4777 | |
|
|
4778 | int |
|
|
4779 | main (void) |
|
|
4780 | { |
|
|
4781 | |
|
|
4782 | ; |
|
|
4783 | return 0; |
|
|
4784 | } |
|
|
4785 | _ACEOF |
|
|
4786 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
4787 | then : |
|
|
4788 | |
|
|
4789 | else $as_nop |
|
|
4790 | CXXFLAGS="-g -O3" |
|
|
4791 | fi |
|
|
4792 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
4793 | else |
|
|
4794 | CXXFLAGS="-O" |
|
|
4795 | fi |
|
|
4796 | CFLAGS="$CXXFLAGS" |
|
|
4797 | fi |
|
|
4798 | |
|
|
4799 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5 |
|
|
4800 | printf %s "checking for library containing setlocale... " >&6; } |
|
|
4801 | if test ${ac_cv_search_setlocale+y} |
|
|
4802 | then : |
|
|
4803 | printf %s "(cached) " >&6 |
|
|
4804 | else $as_nop |
|
|
4805 | ac_func_search_save_LIBS=$LIBS |
|
|
4806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4807 | /* end confdefs.h. */ |
|
|
4808 | |
|
|
4809 | namespace conftest { |
|
|
4810 | extern "C" int setlocale (); |
|
|
4811 | } |
|
|
4812 | int |
|
|
4813 | main (void) |
|
|
4814 | { |
|
|
4815 | return conftest::setlocale (); |
|
|
4816 | ; |
|
|
4817 | return 0; |
|
|
4818 | } |
|
|
4819 | _ACEOF |
3758 | for ac_lib in '' cposix; do |
4820 | for ac_lib in '' xpg4 |
|
|
4821 | do |
3759 | if test -z "$ac_lib"; then |
4822 | if test -z "$ac_lib"; then |
3760 | ac_res="none required" |
4823 | ac_res="none required" |
3761 | else |
4824 | else |
3762 | ac_res=-l$ac_lib |
4825 | ac_res=-l$ac_lib |
3763 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4826 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
3764 | fi |
4827 | fi |
3765 | rm -f conftest.$ac_objext conftest$ac_exeext |
4828 | if ac_fn_cxx_try_link "$LINENO" |
3766 | if { (ac_try="$ac_link" |
4829 | then : |
3767 | case "(($ac_try" in |
|
|
3768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3769 | *) ac_try_echo=$ac_try;; |
|
|
3770 | esac |
|
|
3771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3772 | (eval "$ac_link") 2>conftest.er1 |
|
|
3773 | ac_status=$? |
|
|
3774 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3775 | rm -f conftest.er1 |
|
|
3776 | cat conftest.err >&5 |
|
|
3777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3778 | (exit $ac_status); } && { |
|
|
3779 | test -z "$ac_c_werror_flag" || |
|
|
3780 | test ! -s conftest.err |
|
|
3781 | } && test -s conftest$ac_exeext && |
|
|
3782 | $as_test_x conftest$ac_exeext; then |
|
|
3783 | ac_cv_search_strerror=$ac_res |
4830 | ac_cv_search_setlocale=$ac_res |
3784 | else |
|
|
3785 | echo "$as_me: failed program was:" >&5 |
|
|
3786 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3787 | |
|
|
3788 | |
|
|
3789 | fi |
4831 | fi |
3790 | |
|
|
3791 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4832 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3792 | conftest$ac_exeext |
4833 | conftest$ac_exeext |
3793 | if test "${ac_cv_search_strerror+set}" = set; then |
4834 | if test ${ac_cv_search_setlocale+y} |
|
|
4835 | then : |
3794 | break |
4836 | break |
3795 | fi |
4837 | fi |
3796 | done |
4838 | done |
3797 | if test "${ac_cv_search_strerror+set}" = set; then |
4839 | if test ${ac_cv_search_setlocale+y} |
3798 | : |
4840 | then : |
3799 | else |
4841 | |
|
|
4842 | else $as_nop |
3800 | ac_cv_search_strerror=no |
4843 | ac_cv_search_setlocale=no |
3801 | fi |
4844 | fi |
3802 | rm conftest.$ac_ext |
4845 | rm conftest.$ac_ext |
3803 | LIBS=$ac_func_search_save_LIBS |
4846 | LIBS=$ac_func_search_save_LIBS |
3804 | fi |
4847 | fi |
3805 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
4848 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5 |
3806 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; } |
4849 | printf "%s\n" "$ac_cv_search_setlocale" >&6; } |
3807 | ac_res=$ac_cv_search_strerror |
4850 | ac_res=$ac_cv_search_setlocale |
3808 | if test "$ac_res" != no; then |
4851 | if test "$ac_res" != no |
|
|
4852 | then : |
3809 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4853 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
3810 | |
4854 | |
3811 | fi |
4855 | fi |
3812 | |
4856 | |
3813 | ac_ext=cpp |
|
|
3814 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3815 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3816 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3817 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3818 | |
4857 | |
3819 | |
4858 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 |
3820 | if test x$GCC = xyes && test x$GXX = xyes; then |
4859 | printf %s "checking for library containing gethostbyname... " >&6; } |
3821 | { echo "$as_me:$LINENO: checking for working libsupc++" >&5 |
4860 | if test ${ac_cv_search_gethostbyname+y} |
3822 | echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6; } |
4861 | then : |
3823 | save_CXX="$CXX" |
4862 | printf %s "(cached) " >&6 |
3824 | save_LIBS="$LIBS" |
4863 | else $as_nop |
3825 | CXX="$CC" |
4864 | ac_func_search_save_LIBS=$LIBS |
3826 | LIBS="$LIBS -lsupc++" |
|
|
3827 | LINKER="$CC" |
|
|
3828 | |
|
|
3829 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3830 | /* confdefs.h. */ |
|
|
3831 | _ACEOF |
|
|
3832 | cat confdefs.h >>conftest.$ac_ext |
4865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3833 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3834 | /* end confdefs.h. */ |
4866 | /* end confdefs.h. */ |
3835 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
4867 | |
|
|
4868 | namespace conftest { |
|
|
4869 | extern "C" int gethostbyname (); |
|
|
4870 | } |
3836 | int |
4871 | int |
3837 | main () |
4872 | main (void) |
3838 | { |
4873 | { |
3839 | |
4874 | return conftest::gethostbyname (); |
3840 | ; |
4875 | ; |
3841 | return 0; |
4876 | return 0; |
3842 | } |
4877 | } |
3843 | _ACEOF |
4878 | _ACEOF |
3844 | rm -f conftest.$ac_objext conftest$ac_exeext |
4879 | for ac_lib in '' nsl |
3845 | if { (ac_try="$ac_link" |
4880 | do |
3846 | case "(($ac_try" in |
4881 | if test -z "$ac_lib"; then |
3847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4882 | ac_res="none required" |
3848 | *) ac_try_echo=$ac_try;; |
|
|
3849 | esac |
|
|
3850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3851 | (eval "$ac_link") 2>conftest.er1 |
|
|
3852 | ac_status=$? |
|
|
3853 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3854 | rm -f conftest.er1 |
|
|
3855 | cat conftest.err >&5 |
|
|
3856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3857 | (exit $ac_status); } && { |
|
|
3858 | test -z "$ac_cxx_werror_flag" || |
|
|
3859 | test ! -s conftest.err |
|
|
3860 | } && test -s conftest$ac_exeext && |
|
|
3861 | $as_test_x conftest$ac_exeext; then |
|
|
3862 | { echo "$as_me:$LINENO: result: ok" >&5 |
|
|
3863 | echo "${ECHO_T}ok" >&6; } |
|
|
3864 | else |
4883 | else |
3865 | echo "$as_me: failed program was:" >&5 |
4884 | ac_res=-l$ac_lib |
3866 | sed 's/^/| /' conftest.$ac_ext >&5 |
4885 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
3867 | |
4886 | fi |
3868 | |
4887 | if ac_fn_cxx_try_link "$LINENO" |
3869 | { echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5 |
4888 | then : |
3870 | echo "${ECHO_T}no, making everything bigger and slower" >&6; } |
4889 | ac_cv_search_gethostbyname=$ac_res |
3871 | LIBS="$save_LIBS" |
|
|
3872 | LINKER="$save_CXX" |
|
|
3873 | |
|
|
3874 | |
|
|
3875 | fi |
4890 | fi |
3876 | |
|
|
3877 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4891 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3878 | conftest$ac_exeext conftest.$ac_ext |
4892 | conftest$ac_exeext |
3879 | CXX="$save_CXX" |
4893 | if test ${ac_cv_search_gethostbyname+y} |
|
|
4894 | then : |
|
|
4895 | break |
3880 | fi |
4896 | fi |
3881 | LINKER=$LINKER |
4897 | done |
|
|
4898 | if test ${ac_cv_search_gethostbyname+y} |
|
|
4899 | then : |
3882 | |
4900 | |
|
|
4901 | else $as_nop |
|
|
4902 | ac_cv_search_gethostbyname=no |
|
|
4903 | fi |
|
|
4904 | rm conftest.$ac_ext |
|
|
4905 | LIBS=$ac_func_search_save_LIBS |
|
|
4906 | fi |
|
|
4907 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 |
|
|
4908 | printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } |
|
|
4909 | ac_res=$ac_cv_search_gethostbyname |
|
|
4910 | if test "$ac_res" != no |
|
|
4911 | then : |
|
|
4912 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
3883 | |
4913 | |
3884 | if test -z "$orig_CXXFLAGS"; then |
4914 | fi |
3885 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
4915 | |
3886 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
4916 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
3887 | cat >conftest.$ac_ext <<_ACEOF |
4917 | printf %s "checking for library containing socket... " >&6; } |
3888 | /* confdefs.h. */ |
4918 | if test ${ac_cv_search_socket+y} |
3889 | _ACEOF |
4919 | then : |
|
|
4920 | printf %s "(cached) " >&6 |
|
|
4921 | else $as_nop |
|
|
4922 | ac_func_search_save_LIBS=$LIBS |
3890 | cat confdefs.h >>conftest.$ac_ext |
4923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3891 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3892 | /* end confdefs.h. */ |
4924 | /* end confdefs.h. */ |
3893 | |
4925 | |
|
|
4926 | namespace conftest { |
|
|
4927 | extern "C" int socket (); |
|
|
4928 | } |
3894 | int |
4929 | int |
3895 | main () |
4930 | main (void) |
3896 | { |
4931 | { |
3897 | |
4932 | return conftest::socket (); |
3898 | ; |
4933 | ; |
3899 | return 0; |
4934 | return 0; |
3900 | } |
4935 | } |
3901 | _ACEOF |
4936 | _ACEOF |
3902 | rm -f conftest.$ac_objext |
4937 | for ac_lib in '' socket |
3903 | if { (ac_try="$ac_compile" |
4938 | do |
3904 | case "(($ac_try" in |
4939 | if test -z "$ac_lib"; then |
3905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4940 | ac_res="none required" |
3906 | *) ac_try_echo=$ac_try;; |
|
|
3907 | esac |
|
|
3908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3909 | (eval "$ac_compile") 2>conftest.er1 |
|
|
3910 | ac_status=$? |
|
|
3911 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3912 | rm -f conftest.er1 |
|
|
3913 | cat conftest.err >&5 |
|
|
3914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3915 | (exit $ac_status); } && { |
|
|
3916 | test -z "$ac_cxx_werror_flag" || |
|
|
3917 | test ! -s conftest.err |
|
|
3918 | } && test -s conftest.$ac_objext; then |
|
|
3919 | : |
|
|
3920 | else |
|
|
3921 | echo "$as_me: failed program was:" >&5 |
|
|
3922 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3923 | |
|
|
3924 | CXXFLAGS="-g -O3" |
|
|
3925 | fi |
|
|
3926 | |
|
|
3927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3928 | else |
4941 | else |
3929 | CXXFLAGS="-O" |
4942 | ac_res=-l$ac_lib |
|
|
4943 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
3930 | fi |
4944 | fi |
3931 | CFLAGS="$CXXFLAGS" |
4945 | if ac_fn_cxx_try_link "$LINENO" |
|
|
4946 | then : |
|
|
4947 | ac_cv_search_socket=$ac_res |
3932 | fi |
4948 | fi |
3933 | |
|
|
3934 | |
|
|
3935 | cat >>confdefs.h <<\_ACEOF |
|
|
3936 | #define _GNU_SOURCE 1 |
|
|
3937 | _ACEOF |
|
|
3938 | |
|
|
3939 | |
|
|
3940 | case $host in |
|
|
3941 | *-*-solaris* ) |
|
|
3942 | |
|
|
3943 | cat >>confdefs.h <<\_ACEOF |
|
|
3944 | #define _XOPEN_SOURCE_EXTENDED 1 |
|
|
3945 | _ACEOF |
|
|
3946 | |
|
|
3947 | |
|
|
3948 | cat >>confdefs.h <<\_ACEOF |
|
|
3949 | #define _XOPEN_SOURCE 2 |
|
|
3950 | _ACEOF |
|
|
3951 | |
|
|
3952 | |
|
|
3953 | cat >>confdefs.h <<\_ACEOF |
|
|
3954 | #define __EXTENSIONS__ 1 |
|
|
3955 | _ACEOF |
|
|
3956 | |
|
|
3957 | ;; |
|
|
3958 | esac |
|
|
3959 | |
|
|
3960 | |
|
|
3961 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
|
|
3962 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
|
|
3963 | if test "${ac_cv_func_setlocale+set}" = set; then |
|
|
3964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3965 | else |
|
|
3966 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3967 | /* confdefs.h. */ |
|
|
3968 | _ACEOF |
|
|
3969 | cat confdefs.h >>conftest.$ac_ext |
|
|
3970 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3971 | /* end confdefs.h. */ |
|
|
3972 | /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale. |
|
|
3973 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3974 | #define setlocale innocuous_setlocale |
|
|
3975 | |
|
|
3976 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3977 | which can conflict with char setlocale (); below. |
|
|
3978 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3979 | <limits.h> exists even on freestanding compilers. */ |
|
|
3980 | |
|
|
3981 | #ifdef __STDC__ |
|
|
3982 | # include <limits.h> |
|
|
3983 | #else |
|
|
3984 | # include <assert.h> |
|
|
3985 | #endif |
|
|
3986 | |
|
|
3987 | #undef setlocale |
|
|
3988 | |
|
|
3989 | /* Override any GCC internal prototype to avoid an error. |
|
|
3990 | Use char because int might match the return type of a GCC |
|
|
3991 | builtin and then its argument prototype would still apply. */ |
|
|
3992 | #ifdef __cplusplus |
|
|
3993 | extern "C" |
|
|
3994 | #endif |
|
|
3995 | char setlocale (); |
|
|
3996 | /* The GNU C library defines this for functions which it implements |
|
|
3997 | to always fail with ENOSYS. Some functions are actually named |
|
|
3998 | something starting with __ and the normal name is an alias. */ |
|
|
3999 | #if defined __stub_setlocale || defined __stub___setlocale |
|
|
4000 | choke me |
|
|
4001 | #endif |
|
|
4002 | |
|
|
4003 | int |
|
|
4004 | main () |
|
|
4005 | { |
|
|
4006 | return setlocale (); |
|
|
4007 | ; |
|
|
4008 | return 0; |
|
|
4009 | } |
|
|
4010 | _ACEOF |
|
|
4011 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4012 | if { (ac_try="$ac_link" |
|
|
4013 | case "(($ac_try" in |
|
|
4014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4015 | *) ac_try_echo=$ac_try;; |
|
|
4016 | esac |
|
|
4017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4018 | (eval "$ac_link") 2>conftest.er1 |
|
|
4019 | ac_status=$? |
|
|
4020 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4021 | rm -f conftest.er1 |
|
|
4022 | cat conftest.err >&5 |
|
|
4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4024 | (exit $ac_status); } && { |
|
|
4025 | test -z "$ac_cxx_werror_flag" || |
|
|
4026 | test ! -s conftest.err |
|
|
4027 | } && test -s conftest$ac_exeext && |
|
|
4028 | $as_test_x conftest$ac_exeext; then |
|
|
4029 | ac_cv_func_setlocale=yes |
|
|
4030 | else |
|
|
4031 | echo "$as_me: failed program was:" >&5 |
|
|
4032 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4033 | |
|
|
4034 | ac_cv_func_setlocale=no |
|
|
4035 | fi |
|
|
4036 | |
|
|
4037 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4949 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4038 | conftest$ac_exeext conftest.$ac_ext |
4950 | conftest$ac_exeext |
|
|
4951 | if test ${ac_cv_search_socket+y} |
|
|
4952 | then : |
|
|
4953 | break |
4039 | fi |
4954 | fi |
4040 | { echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5 |
4955 | done |
4041 | echo "${ECHO_T}$ac_cv_func_setlocale" >&6; } |
4956 | if test ${ac_cv_search_socket+y} |
4042 | if test $ac_cv_func_setlocale = yes; then |
4957 | then : |
4043 | : |
|
|
4044 | else |
|
|
4045 | { echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
|
|
4046 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6; } |
|
|
4047 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
|
|
4048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4049 | else |
|
|
4050 | ac_check_lib_save_LIBS=$LIBS |
|
|
4051 | LIBS="-lxpg4 $LIBS" |
|
|
4052 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4053 | /* confdefs.h. */ |
|
|
4054 | _ACEOF |
|
|
4055 | cat confdefs.h >>conftest.$ac_ext |
|
|
4056 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4057 | /* end confdefs.h. */ |
|
|
4058 | |
4958 | |
4059 | /* Override any GCC internal prototype to avoid an error. |
4959 | else $as_nop |
4060 | Use char because int might match the return type of a GCC |
|
|
4061 | builtin and then its argument prototype would still apply. */ |
|
|
4062 | #ifdef __cplusplus |
|
|
4063 | extern "C" |
|
|
4064 | #endif |
|
|
4065 | char setlocale (); |
|
|
4066 | int |
|
|
4067 | main () |
|
|
4068 | { |
|
|
4069 | return setlocale (); |
|
|
4070 | ; |
|
|
4071 | return 0; |
|
|
4072 | } |
|
|
4073 | _ACEOF |
|
|
4074 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4075 | if { (ac_try="$ac_link" |
|
|
4076 | case "(($ac_try" in |
|
|
4077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4078 | *) ac_try_echo=$ac_try;; |
|
|
4079 | esac |
|
|
4080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4081 | (eval "$ac_link") 2>conftest.er1 |
|
|
4082 | ac_status=$? |
|
|
4083 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4084 | rm -f conftest.er1 |
|
|
4085 | cat conftest.err >&5 |
|
|
4086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4087 | (exit $ac_status); } && { |
|
|
4088 | test -z "$ac_cxx_werror_flag" || |
|
|
4089 | test ! -s conftest.err |
|
|
4090 | } && test -s conftest$ac_exeext && |
|
|
4091 | $as_test_x conftest$ac_exeext; then |
|
|
4092 | ac_cv_lib_xpg4_setlocale=yes |
|
|
4093 | else |
|
|
4094 | echo "$as_me: failed program was:" >&5 |
|
|
4095 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4096 | |
|
|
4097 | ac_cv_lib_xpg4_setlocale=no |
|
|
4098 | fi |
|
|
4099 | |
|
|
4100 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
4101 | conftest$ac_exeext conftest.$ac_ext |
|
|
4102 | LIBS=$ac_check_lib_save_LIBS |
|
|
4103 | fi |
|
|
4104 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 |
|
|
4105 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; } |
|
|
4106 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
|
|
4107 | LIBS="$LIBS -lxpg4" |
|
|
4108 | fi |
|
|
4109 | |
|
|
4110 | fi |
|
|
4111 | |
|
|
4112 | |
|
|
4113 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
|
|
4114 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } |
|
|
4115 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
|
|
4116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4117 | else |
|
|
4118 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4119 | /* confdefs.h. */ |
|
|
4120 | _ACEOF |
|
|
4121 | cat confdefs.h >>conftest.$ac_ext |
|
|
4122 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4123 | /* end confdefs.h. */ |
|
|
4124 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
|
|
4125 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
4126 | #define gethostbyname innocuous_gethostbyname |
|
|
4127 | |
|
|
4128 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
4129 | which can conflict with char gethostbyname (); below. |
|
|
4130 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4131 | <limits.h> exists even on freestanding compilers. */ |
|
|
4132 | |
|
|
4133 | #ifdef __STDC__ |
|
|
4134 | # include <limits.h> |
|
|
4135 | #else |
|
|
4136 | # include <assert.h> |
|
|
4137 | #endif |
|
|
4138 | |
|
|
4139 | #undef gethostbyname |
|
|
4140 | |
|
|
4141 | /* Override any GCC internal prototype to avoid an error. |
|
|
4142 | Use char because int might match the return type of a GCC |
|
|
4143 | builtin and then its argument prototype would still apply. */ |
|
|
4144 | #ifdef __cplusplus |
|
|
4145 | extern "C" |
|
|
4146 | #endif |
|
|
4147 | char gethostbyname (); |
|
|
4148 | /* The GNU C library defines this for functions which it implements |
|
|
4149 | to always fail with ENOSYS. Some functions are actually named |
|
|
4150 | something starting with __ and the normal name is an alias. */ |
|
|
4151 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
|
|
4152 | choke me |
|
|
4153 | #endif |
|
|
4154 | |
|
|
4155 | int |
|
|
4156 | main () |
|
|
4157 | { |
|
|
4158 | return gethostbyname (); |
|
|
4159 | ; |
|
|
4160 | return 0; |
|
|
4161 | } |
|
|
4162 | _ACEOF |
|
|
4163 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4164 | if { (ac_try="$ac_link" |
|
|
4165 | case "(($ac_try" in |
|
|
4166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4167 | *) ac_try_echo=$ac_try;; |
|
|
4168 | esac |
|
|
4169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4170 | (eval "$ac_link") 2>conftest.er1 |
|
|
4171 | ac_status=$? |
|
|
4172 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4173 | rm -f conftest.er1 |
|
|
4174 | cat conftest.err >&5 |
|
|
4175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4176 | (exit $ac_status); } && { |
|
|
4177 | test -z "$ac_cxx_werror_flag" || |
|
|
4178 | test ! -s conftest.err |
|
|
4179 | } && test -s conftest$ac_exeext && |
|
|
4180 | $as_test_x conftest$ac_exeext; then |
|
|
4181 | ac_cv_func_gethostbyname=yes |
|
|
4182 | else |
|
|
4183 | echo "$as_me: failed program was:" >&5 |
|
|
4184 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4185 | |
|
|
4186 | ac_cv_func_gethostbyname=no |
|
|
4187 | fi |
|
|
4188 | |
|
|
4189 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
4190 | conftest$ac_exeext conftest.$ac_ext |
|
|
4191 | fi |
|
|
4192 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
|
|
4193 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } |
|
|
4194 | if test $ac_cv_func_gethostbyname = yes; then |
|
|
4195 | : |
|
|
4196 | else |
|
|
4197 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
|
|
4198 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
|
|
4199 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
|
|
4200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4201 | else |
|
|
4202 | ac_check_lib_save_LIBS=$LIBS |
|
|
4203 | LIBS="-lnsl $LIBS" |
|
|
4204 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4205 | /* confdefs.h. */ |
|
|
4206 | _ACEOF |
|
|
4207 | cat confdefs.h >>conftest.$ac_ext |
|
|
4208 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4209 | /* end confdefs.h. */ |
|
|
4210 | |
|
|
4211 | /* Override any GCC internal prototype to avoid an error. |
|
|
4212 | Use char because int might match the return type of a GCC |
|
|
4213 | builtin and then its argument prototype would still apply. */ |
|
|
4214 | #ifdef __cplusplus |
|
|
4215 | extern "C" |
|
|
4216 | #endif |
|
|
4217 | char gethostbyname (); |
|
|
4218 | int |
|
|
4219 | main () |
|
|
4220 | { |
|
|
4221 | return gethostbyname (); |
|
|
4222 | ; |
|
|
4223 | return 0; |
|
|
4224 | } |
|
|
4225 | _ACEOF |
|
|
4226 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4227 | if { (ac_try="$ac_link" |
|
|
4228 | case "(($ac_try" in |
|
|
4229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4230 | *) ac_try_echo=$ac_try;; |
|
|
4231 | esac |
|
|
4232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4233 | (eval "$ac_link") 2>conftest.er1 |
|
|
4234 | ac_status=$? |
|
|
4235 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4236 | rm -f conftest.er1 |
|
|
4237 | cat conftest.err >&5 |
|
|
4238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4239 | (exit $ac_status); } && { |
|
|
4240 | test -z "$ac_cxx_werror_flag" || |
|
|
4241 | test ! -s conftest.err |
|
|
4242 | } && test -s conftest$ac_exeext && |
|
|
4243 | $as_test_x conftest$ac_exeext; then |
|
|
4244 | ac_cv_lib_nsl_gethostbyname=yes |
|
|
4245 | else |
|
|
4246 | echo "$as_me: failed program was:" >&5 |
|
|
4247 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4248 | |
|
|
4249 | ac_cv_lib_nsl_gethostbyname=no |
|
|
4250 | fi |
|
|
4251 | |
|
|
4252 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
4253 | conftest$ac_exeext conftest.$ac_ext |
|
|
4254 | LIBS=$ac_check_lib_save_LIBS |
|
|
4255 | fi |
|
|
4256 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
|
|
4257 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
|
|
4258 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
|
|
4259 | LIBS="$LIBS -lnsl" |
|
|
4260 | fi |
|
|
4261 | |
|
|
4262 | fi |
|
|
4263 | |
|
|
4264 | { echo "$as_me:$LINENO: checking for socket" >&5 |
|
|
4265 | echo $ECHO_N "checking for socket... $ECHO_C" >&6; } |
|
|
4266 | if test "${ac_cv_func_socket+set}" = set; then |
|
|
4267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4268 | else |
|
|
4269 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4270 | /* confdefs.h. */ |
|
|
4271 | _ACEOF |
|
|
4272 | cat confdefs.h >>conftest.$ac_ext |
|
|
4273 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4274 | /* end confdefs.h. */ |
|
|
4275 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
|
|
4276 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
4277 | #define socket innocuous_socket |
|
|
4278 | |
|
|
4279 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
4280 | which can conflict with char socket (); below. |
|
|
4281 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4282 | <limits.h> exists even on freestanding compilers. */ |
|
|
4283 | |
|
|
4284 | #ifdef __STDC__ |
|
|
4285 | # include <limits.h> |
|
|
4286 | #else |
|
|
4287 | # include <assert.h> |
|
|
4288 | #endif |
|
|
4289 | |
|
|
4290 | #undef socket |
|
|
4291 | |
|
|
4292 | /* Override any GCC internal prototype to avoid an error. |
|
|
4293 | Use char because int might match the return type of a GCC |
|
|
4294 | builtin and then its argument prototype would still apply. */ |
|
|
4295 | #ifdef __cplusplus |
|
|
4296 | extern "C" |
|
|
4297 | #endif |
|
|
4298 | char socket (); |
|
|
4299 | /* The GNU C library defines this for functions which it implements |
|
|
4300 | to always fail with ENOSYS. Some functions are actually named |
|
|
4301 | something starting with __ and the normal name is an alias. */ |
|
|
4302 | #if defined __stub_socket || defined __stub___socket |
|
|
4303 | choke me |
|
|
4304 | #endif |
|
|
4305 | |
|
|
4306 | int |
|
|
4307 | main () |
|
|
4308 | { |
|
|
4309 | return socket (); |
|
|
4310 | ; |
|
|
4311 | return 0; |
|
|
4312 | } |
|
|
4313 | _ACEOF |
|
|
4314 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4315 | if { (ac_try="$ac_link" |
|
|
4316 | case "(($ac_try" in |
|
|
4317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4318 | *) ac_try_echo=$ac_try;; |
|
|
4319 | esac |
|
|
4320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4321 | (eval "$ac_link") 2>conftest.er1 |
|
|
4322 | ac_status=$? |
|
|
4323 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4324 | rm -f conftest.er1 |
|
|
4325 | cat conftest.err >&5 |
|
|
4326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4327 | (exit $ac_status); } && { |
|
|
4328 | test -z "$ac_cxx_werror_flag" || |
|
|
4329 | test ! -s conftest.err |
|
|
4330 | } && test -s conftest$ac_exeext && |
|
|
4331 | $as_test_x conftest$ac_exeext; then |
|
|
4332 | ac_cv_func_socket=yes |
|
|
4333 | else |
|
|
4334 | echo "$as_me: failed program was:" >&5 |
|
|
4335 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4336 | |
|
|
4337 | ac_cv_func_socket=no |
4960 | ac_cv_search_socket=no |
4338 | fi |
4961 | fi |
4339 | |
4962 | rm conftest.$ac_ext |
4340 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4963 | LIBS=$ac_func_search_save_LIBS |
4341 | conftest$ac_exeext conftest.$ac_ext |
|
|
4342 | fi |
4964 | fi |
4343 | { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
4965 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
4344 | echo "${ECHO_T}$ac_cv_func_socket" >&6; } |
4966 | printf "%s\n" "$ac_cv_search_socket" >&6; } |
4345 | if test $ac_cv_func_socket = yes; then |
4967 | ac_res=$ac_cv_search_socket |
4346 | : |
4968 | if test "$ac_res" != no |
4347 | else |
4969 | then : |
4348 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
4970 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4349 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
|
|
4350 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
|
|
4351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4352 | else |
|
|
4353 | ac_check_lib_save_LIBS=$LIBS |
|
|
4354 | LIBS="-lsocket $LIBS" |
|
|
4355 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4356 | /* confdefs.h. */ |
|
|
4357 | _ACEOF |
|
|
4358 | cat confdefs.h >>conftest.$ac_ext |
|
|
4359 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4360 | /* end confdefs.h. */ |
|
|
4361 | |
4971 | |
4362 | /* Override any GCC internal prototype to avoid an error. |
|
|
4363 | Use char because int might match the return type of a GCC |
|
|
4364 | builtin and then its argument prototype would still apply. */ |
|
|
4365 | #ifdef __cplusplus |
|
|
4366 | extern "C" |
|
|
4367 | #endif |
|
|
4368 | char socket (); |
|
|
4369 | int |
|
|
4370 | main () |
|
|
4371 | { |
|
|
4372 | return socket (); |
|
|
4373 | ; |
|
|
4374 | return 0; |
|
|
4375 | } |
|
|
4376 | _ACEOF |
|
|
4377 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4378 | if { (ac_try="$ac_link" |
|
|
4379 | case "(($ac_try" in |
|
|
4380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4381 | *) ac_try_echo=$ac_try;; |
|
|
4382 | esac |
|
|
4383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4384 | (eval "$ac_link") 2>conftest.er1 |
|
|
4385 | ac_status=$? |
|
|
4386 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4387 | rm -f conftest.er1 |
|
|
4388 | cat conftest.err >&5 |
|
|
4389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4390 | (exit $ac_status); } && { |
|
|
4391 | test -z "$ac_cxx_werror_flag" || |
|
|
4392 | test ! -s conftest.err |
|
|
4393 | } && test -s conftest$ac_exeext && |
|
|
4394 | $as_test_x conftest$ac_exeext; then |
|
|
4395 | ac_cv_lib_socket_socket=yes |
|
|
4396 | else |
|
|
4397 | echo "$as_me: failed program was:" >&5 |
|
|
4398 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4399 | |
|
|
4400 | ac_cv_lib_socket_socket=no |
|
|
4401 | fi |
4972 | fi |
4402 | |
|
|
4403 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
4404 | conftest$ac_exeext conftest.$ac_ext |
|
|
4405 | LIBS=$ac_check_lib_save_LIBS |
|
|
4406 | fi |
|
|
4407 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
|
|
4408 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
|
|
4409 | if test $ac_cv_lib_socket_socket = yes; then |
|
|
4410 | LIBS="$LIBS -lsocket" |
|
|
4411 | fi |
|
|
4412 | |
|
|
4413 | fi |
|
|
4414 | |
|
|
4415 | |
4973 | |
4416 | |
4974 | |
4417 | support_frills=yes |
4975 | support_frills=yes |
4418 | support_inheritpixmap=yes |
4976 | support_inheritpixmap=yes |
4419 | support_tinting=yes |
|
|
4420 | support_fading=yes |
4977 | support_fading=yes |
4421 | support_keepscrolling=yes |
4978 | support_keepscrolling=yes |
4422 | support_selectionscrolling=yes |
4979 | support_selectionscrolling=yes |
4423 | support_mousewheel=yes |
4980 | support_mousewheel=yes |
4424 | support_mouseslipwheel=yes |
4981 | support_mouseslipwheel=yes |
4425 | support_text_blink=yes |
4982 | support_text_blink=yes |
4426 | support_pointer_blank=yes |
4983 | support_pointer_blank=yes |
4427 | support_scroll_rxvt=yes |
4984 | support_scroll_rxvt=yes |
4428 | support_scroll_next=yes |
4985 | support_scroll_next=yes |
4429 | support_scroll_xterm=yes |
4986 | support_scroll_xterm=yes |
4430 | support_scroll_plain=yes |
|
|
4431 | support_xim=yes |
4987 | support_xim=yes |
4432 | support_xpm=yes |
4988 | support_pixbuf=yes |
|
|
4989 | support_startup_notification=yes |
4433 | support_xft=yes |
4990 | support_xft=yes |
4434 | support_unicode3=no |
4991 | support_unicode3=no |
4435 | support_combining=yes |
4992 | support_combining=yes |
4436 | support_8bitctrls=no |
4993 | support_8bitctrls=no |
4437 | support_iso14755=yes |
4994 | support_iso14755=yes |
4438 | support_styles=yes |
4995 | support_styles=yes |
4439 | support_perl=yes |
4996 | support_perl=yes |
4440 | codesets=all |
4997 | codesets=all |
4441 | |
4998 | |
4442 | |
4999 | |
4443 | if test "x$enable_shared" = xyes; then |
|
|
4444 | |
|
|
4445 | cat >>confdefs.h <<\_ACEOF |
|
|
4446 | #define LIBRXVT 1 |
|
|
4447 | _ACEOF |
|
|
4448 | |
|
|
4449 | INSTALL_LIBRXVT=yes |
|
|
4450 | fi |
|
|
4451 | |
|
|
4452 | |
|
|
4453 | # Check whether --enable-everything was given. |
5000 | # Check whether --enable-everything was given. |
4454 | if test "${enable_everything+set}" = set; then |
5001 | if test ${enable_everything+y} |
|
|
5002 | then : |
4455 | enableval=$enable_everything; |
5003 | enableval=$enable_everything; |
4456 | if test x$enableval = xno; then |
5004 | if test x$enableval = xno; then |
4457 | support_frills=no |
5005 | support_frills=no |
4458 | support_inheritpixmap=no |
5006 | support_inheritpixmap=no |
4459 | support_tinting=no |
|
|
4460 | support_fading=no |
5007 | support_fading=no |
4461 | support_keepscrolling=no |
5008 | support_keepscrolling=no |
4462 | support_selectionscrolling=no |
5009 | support_selectionscrolling=no |
4463 | support_lastlog=no |
|
|
4464 | support_mousewheel=no |
5010 | support_mousewheel=no |
4465 | support_mouseslipwheel=no |
5011 | support_mouseslipwheel=no |
4466 | support_text_blink=no |
5012 | support_text_blink=no |
4467 | support_pointer_blank=no |
5013 | support_pointer_blank=no |
4468 | support_scroll_rxvt=no |
5014 | support_scroll_rxvt=no |
4469 | support_scroll_next=no |
5015 | support_scroll_next=no |
4470 | support_scroll_xterm=no |
5016 | support_scroll_xterm=no |
4471 | support_scroll_plain=no |
|
|
4472 | support_utmp=no |
|
|
4473 | support_wtmp=no |
|
|
4474 | support_xim=no |
5017 | support_xim=no |
4475 | support_xpm=no |
5018 | support_pixbuf=no |
|
|
5019 | support_startup_notification=no |
4476 | support_xft=no |
5020 | support_xft=no |
4477 | support_unicode3=no |
5021 | support_unicode3=no |
4478 | support_combining=no |
5022 | support_combining=no |
4479 | support_8bitctrls=no |
5023 | support_8bitctrls=no |
4480 | support_iso14755=no |
5024 | support_iso14755=no |
… | |
… | |
4483 | codesets= |
5027 | codesets= |
4484 | fi |
5028 | fi |
4485 | if test x$enableval = xyes; then |
5029 | if test x$enableval = xyes; then |
4486 | support_frills=yes |
5030 | support_frills=yes |
4487 | support_inheritpixmap=yes |
5031 | support_inheritpixmap=yes |
4488 | support_tinting=yes |
|
|
4489 | support_fading=yes |
5032 | support_fading=yes |
4490 | support_keepscrolling=yes |
5033 | support_keepscrolling=yes |
4491 | support_selectionscrolling=yes |
5034 | support_selectionscrolling=yes |
4492 | support_lastlog=yes |
|
|
4493 | support_mousewheel=yes |
5035 | support_mousewheel=yes |
4494 | support_mouseslipwheel=yes |
5036 | support_mouseslipwheel=yes |
4495 | support_text_blink=yes |
5037 | support_text_blink=yes |
4496 | support_pointer_blank=yes |
5038 | support_pointer_blank=yes |
4497 | support_scroll_rxvt=yes |
5039 | support_scroll_rxvt=yes |
4498 | support_scroll_next=yes |
5040 | support_scroll_next=yes |
4499 | support_scroll_xterm=yes |
5041 | support_scroll_xterm=yes |
4500 | support_scroll_plain=yes |
|
|
4501 | support_utmp=yes |
|
|
4502 | support_wtmp=yes |
|
|
4503 | support_xim=yes |
5042 | support_xim=yes |
4504 | support_xpm=yes |
5043 | support_pixbuf=yes |
|
|
5044 | support_startup_notification=yes |
4505 | support_xft=yes |
5045 | support_xft=yes |
4506 | support_unicode3=yes |
5046 | support_unicode3=yes |
4507 | support_combining=yes |
5047 | support_combining=yes |
4508 | #support_8bitctrls=yes |
5048 | #support_8bitctrls=yes |
4509 | support_iso14755=yes |
5049 | support_iso14755=yes |
… | |
… | |
4513 | fi |
5053 | fi |
4514 | |
5054 | |
4515 | fi |
5055 | fi |
4516 | |
5056 | |
4517 | |
5057 | |
|
|
5058 | support_assertions=no |
|
|
5059 | # Check whether --enable-assert was given. |
|
|
5060 | if test ${enable_assert+y} |
|
|
5061 | then : |
|
|
5062 | enableval=$enable_assert; if test x$enableval = xyes; then |
|
|
5063 | support_assertions=yes |
|
|
5064 | fi |
|
|
5065 | fi |
|
|
5066 | |
|
|
5067 | if test x$support_assertions = xno; then |
|
|
5068 | |
|
|
5069 | printf "%s\n" "#define NDEBUG 1" >>confdefs.h |
|
|
5070 | |
|
|
5071 | fi |
|
|
5072 | |
|
|
5073 | support_warnings=no |
|
|
5074 | # Check whether --enable-warnings was given. |
|
|
5075 | if test ${enable_warnings+y} |
|
|
5076 | then : |
|
|
5077 | enableval=$enable_warnings; if test x$enableval = xyes; then |
|
|
5078 | support_warnings=yes |
|
|
5079 | fi |
|
|
5080 | fi |
|
|
5081 | |
|
|
5082 | if test x$GXX = xyes; then |
|
|
5083 | if test $support_warnings = yes; then |
|
|
5084 | save_CXXFLAGS="$CXXFLAGS" |
|
|
5085 | for warning in \ |
|
|
5086 | -Wall \ |
|
|
5087 | -Wno-parentheses \ |
|
|
5088 | -Wno-reorder \ |
|
|
5089 | -Wno-sign-compare \ |
|
|
5090 | -Wno-unused-value \ |
|
|
5091 | ; do |
|
|
5092 | CXXFLAGS="$CXXFLAGS $warning" |
|
|
5093 | done |
|
|
5094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5095 | /* end confdefs.h. */ |
|
|
5096 | |
|
|
5097 | int |
|
|
5098 | main (void) |
|
|
5099 | { |
|
|
5100 | |
|
|
5101 | ; |
|
|
5102 | return 0; |
|
|
5103 | } |
|
|
5104 | _ACEOF |
|
|
5105 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
5106 | then : |
|
|
5107 | |
|
|
5108 | else $as_nop |
|
|
5109 | CXXFLAGS="$save_CXXFLAGS" |
|
|
5110 | fi |
|
|
5111 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
5112 | else |
|
|
5113 | CXXFLAGS="$CXXFLAGS -w" |
|
|
5114 | fi |
|
|
5115 | fi |
|
|
5116 | |
|
|
5117 | support_256_color=no |
|
|
5118 | # Check whether --enable-256-color was given. |
|
|
5119 | if test ${enable_256_color+y} |
|
|
5120 | then : |
|
|
5121 | enableval=$enable_256_color; if test x$enableval = xyes; then |
|
|
5122 | support_256_color=yes |
|
|
5123 | fi |
|
|
5124 | fi |
|
|
5125 | |
|
|
5126 | if test x$support_256_color = xyes; then |
|
|
5127 | |
|
|
5128 | printf "%s\n" "#define USE_256_COLORS 1" >>confdefs.h |
|
|
5129 | |
|
|
5130 | fi |
|
|
5131 | |
4518 | # Check whether --enable-unicode3 was given. |
5132 | # Check whether --enable-unicode3 was given. |
4519 | if test "${enable_unicode3+set}" = set; then |
5133 | if test ${enable_unicode3+y} |
|
|
5134 | then : |
4520 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
5135 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4521 | support_unicode3=$enableval |
5136 | support_unicode3=$enableval |
4522 | fi |
5137 | fi |
4523 | fi |
5138 | fi |
4524 | |
5139 | |
4525 | |
5140 | |
4526 | # Check whether --enable-combining was given. |
5141 | # Check whether --enable-combining was given. |
4527 | if test "${enable_combining+set}" = set; then |
5142 | if test ${enable_combining+y} |
|
|
5143 | then : |
4528 | enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then |
5144 | enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then |
4529 | support_combining=$enableval |
5145 | support_combining=$enableval |
4530 | fi |
5146 | fi |
4531 | fi |
5147 | fi |
4532 | |
5148 | |
4533 | |
5149 | |
4534 | # Check whether --enable-xft was given. |
5150 | # Check whether --enable-xft was given. |
4535 | if test "${enable_xft+set}" = set; then |
5151 | if test ${enable_xft+y} |
|
|
5152 | then : |
4536 | enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then |
5153 | enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then |
4537 | support_xft=$enableval |
5154 | support_xft=$enableval |
4538 | fi |
5155 | fi |
4539 | fi |
5156 | fi |
4540 | |
5157 | |
4541 | |
5158 | |
4542 | # Check whether --enable-font-styles was given. |
5159 | # Check whether --enable-font-styles was given. |
4543 | if test "${enable_font_styles+set}" = set; then |
5160 | if test ${enable_font_styles+y} |
|
|
5161 | then : |
4544 | enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then |
5162 | enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then |
4545 | support_styles=$enableval |
5163 | support_styles=$enableval |
4546 | fi |
5164 | fi |
4547 | fi |
5165 | fi |
4548 | |
5166 | |
4549 | |
5167 | |
4550 | # Check whether --enable-xpm-background was given. |
5168 | # Check whether --enable-pixbuf was given. |
4551 | if test "${enable_xpm_background+set}" = set; then |
5169 | if test ${enable_pixbuf+y} |
|
|
5170 | then : |
4552 | enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then |
5171 | enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then |
4553 | support_xpm=$enableval |
5172 | support_pixbuf=$enableval |
|
|
5173 | fi |
|
|
5174 | fi |
|
|
5175 | |
|
|
5176 | |
|
|
5177 | # Check whether --enable-startup-notification was given. |
|
|
5178 | if test ${enable_startup_notification+y} |
|
|
5179 | then : |
|
|
5180 | enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
5181 | support_startup_notification=$enableval |
4554 | fi |
5182 | fi |
4555 | fi |
5183 | fi |
4556 | |
5184 | |
4557 | |
5185 | |
4558 | # Check whether --enable-transparency was given. |
5186 | # Check whether --enable-transparency was given. |
4559 | if test "${enable_transparency+set}" = set; then |
5187 | if test ${enable_transparency+y} |
|
|
5188 | then : |
4560 | enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then |
5189 | enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then |
4561 | support_inheritpixmap=$enableval |
5190 | support_inheritpixmap=$enableval |
4562 | fi |
5191 | fi |
4563 | fi |
5192 | fi |
4564 | |
5193 | |
4565 | |
5194 | |
4566 | # Check whether --enable-tinting was given. |
|
|
4567 | if test "${enable_tinting+set}" = set; then |
|
|
4568 | enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4569 | support_tinting=$enableval |
|
|
4570 | fi |
|
|
4571 | fi |
|
|
4572 | |
|
|
4573 | |
|
|
4574 | # Check whether --enable-fading was given. |
5195 | # Check whether --enable-fading was given. |
4575 | if test "${enable_fading+set}" = set; then |
5196 | if test ${enable_fading+y} |
|
|
5197 | then : |
4576 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
5198 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
4577 | support_fading=$enableval |
5199 | support_fading=$enableval |
4578 | fi |
5200 | fi |
4579 | fi |
5201 | fi |
4580 | |
5202 | |
4581 | |
5203 | |
4582 | # Check whether --enable-rxvt-scroll was given. |
5204 | # Check whether --enable-rxvt-scroll was given. |
4583 | if test "${enable_rxvt_scroll+set}" = set; then |
5205 | if test ${enable_rxvt_scroll+y} |
|
|
5206 | then : |
4584 | enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
5207 | enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
4585 | support_scroll_rxvt=$enableval |
5208 | support_scroll_rxvt=$enableval |
4586 | fi |
5209 | fi |
4587 | fi |
5210 | fi |
4588 | |
5211 | |
4589 | |
5212 | |
4590 | # Check whether --enable-next-scroll was given. |
5213 | # Check whether --enable-next-scroll was given. |
4591 | if test "${enable_next_scroll+set}" = set; then |
5214 | if test ${enable_next_scroll+y} |
|
|
5215 | then : |
4592 | enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
5216 | enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
4593 | support_scroll_next=$enableval |
5217 | support_scroll_next=$enableval |
4594 | fi |
5218 | fi |
4595 | fi |
5219 | fi |
4596 | |
5220 | |
4597 | |
5221 | |
4598 | # Check whether --enable-xterm-scroll was given. |
5222 | # Check whether --enable-xterm-scroll was given. |
4599 | if test "${enable_xterm_scroll+set}" = set; then |
5223 | if test ${enable_xterm_scroll+y} |
|
|
5224 | then : |
4600 | enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
5225 | enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
4601 | support_scroll_xterm=$enableval |
5226 | support_scroll_xterm=$enableval |
4602 | fi |
5227 | fi |
4603 | fi |
5228 | fi |
4604 | |
5229 | |
4605 | |
5230 | |
4606 | # Check whether --enable-perl was given. |
5231 | # Check whether --enable-perl was given. |
4607 | if test "${enable_perl+set}" = set; then |
5232 | if test ${enable_perl+y} |
|
|
5233 | then : |
4608 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
5234 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4609 | support_perl=$enableval |
5235 | support_perl=$enableval |
4610 | fi |
5236 | fi |
4611 | fi |
5237 | fi |
4612 | |
5238 | |
4613 | |
5239 | |
4614 | # Check whether --enable-plain-scroll was given. |
|
|
4615 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4616 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4617 | support_scroll_plain=$enableval |
|
|
4618 | fi |
|
|
4619 | fi |
|
|
4620 | |
|
|
4621 | |
|
|
4622 | |
5240 | |
4623 | # Check whether --with-codesets was given. |
5241 | # Check whether --with-codesets was given. |
4624 | if test "${with_codesets+set}" = set; then |
5242 | if test ${with_codesets+y} |
|
|
5243 | then : |
4625 | withval=$with_codesets; codesets="$withval" |
5244 | withval=$with_codesets; codesets="$withval" |
4626 | fi |
5245 | fi |
4627 | |
5246 | |
4628 | |
5247 | |
4629 | # Check whether --enable-xim was given. |
5248 | # Check whether --enable-xim was given. |
4630 | if test "${enable_xim+set}" = set; then |
5249 | if test ${enable_xim+y} |
|
|
5250 | then : |
4631 | enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then |
5251 | enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then |
4632 | support_xim=$enableval |
5252 | support_xim=$enableval |
4633 | fi |
5253 | fi |
4634 | fi |
5254 | fi |
4635 | |
5255 | |
4636 | |
5256 | |
4637 | # Check whether --enable-backspace-key was given. |
5257 | # Check whether --enable-backspace-key was given. |
4638 | if test "${enable_backspace_key+set}" = set; then |
5258 | if test ${enable_backspace_key+y} |
|
|
5259 | then : |
4639 | enableval=$enable_backspace_key; if test x$enableval = xno; then |
5260 | enableval=$enable_backspace_key; if test x$enableval = xno; then |
4640 | |
5261 | |
4641 | cat >>confdefs.h <<\_ACEOF |
5262 | printf "%s\n" "#define NO_BACKSPACE_KEY 1" >>confdefs.h |
4642 | #define NO_BACKSPACE_KEY 1 |
|
|
4643 | _ACEOF |
|
|
4644 | |
5263 | |
4645 | fi |
5264 | fi |
4646 | fi |
5265 | fi |
4647 | |
5266 | |
4648 | |
5267 | |
4649 | # Check whether --enable-delete-key was given. |
5268 | # Check whether --enable-delete-key was given. |
4650 | if test "${enable_delete_key+set}" = set; then |
5269 | if test ${enable_delete_key+y} |
|
|
5270 | then : |
4651 | enableval=$enable_delete_key; if test x$enableval = xno; then |
5271 | enableval=$enable_delete_key; if test x$enableval = xno; then |
4652 | |
5272 | |
4653 | cat >>confdefs.h <<\_ACEOF |
5273 | printf "%s\n" "#define NO_DELETE_KEY 1" >>confdefs.h |
4654 | #define NO_DELETE_KEY 1 |
|
|
4655 | _ACEOF |
|
|
4656 | |
5274 | |
4657 | fi |
5275 | fi |
4658 | fi |
5276 | fi |
4659 | |
5277 | |
4660 | |
5278 | |
|
|
5279 | support_resources=yes |
4661 | # Check whether --enable-resources was given. |
5280 | # Check whether --enable-resources was given. |
4662 | if test "${enable_resources+set}" = set; then |
5281 | if test ${enable_resources+y} |
|
|
5282 | then : |
4663 | enableval=$enable_resources; if test x$enableval = xno; then |
5283 | enableval=$enable_resources; if test x$enableval = xno; then |
4664 | |
5284 | support_resources=no |
4665 | cat >>confdefs.h <<\_ACEOF |
|
|
4666 | #define NO_RESOURCES 1 |
|
|
4667 | _ACEOF |
|
|
4668 | |
|
|
4669 | fi |
5285 | fi |
4670 | fi |
5286 | fi |
4671 | |
5287 | |
4672 | |
5288 | |
4673 | # Check whether --enable-8bitctrls was given. |
5289 | # Check whether --enable-8bitctrls was given. |
4674 | if test "${enable_8bitctrls+set}" = set; then |
5290 | if test ${enable_8bitctrls+y} |
|
|
5291 | then : |
4675 | enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then |
5292 | enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then |
4676 | support_8bitctrls=$enableval |
5293 | support_8bitctrls=$enableval |
4677 | fi |
5294 | fi |
4678 | fi |
5295 | fi |
4679 | |
5296 | |
4680 | |
5297 | |
4681 | RESFALLBACK=Rxvt |
5298 | RESFALLBACK=Rxvt |
4682 | # Check whether --enable-fallback was given. |
5299 | # Check whether --enable-fallback was given. |
4683 | if test "${enable_fallback+set}" = set; then |
5300 | if test ${enable_fallback+y} |
|
|
5301 | then : |
4684 | enableval=$enable_fallback; |
5302 | enableval=$enable_fallback; |
4685 | test x$enableval = xyes && enableval=Rxvt |
5303 | test x$enableval = xyes && enableval=Rxvt |
4686 | test x$enableval = xno && enableval= |
5304 | test x$enableval = xno && enableval= |
4687 | RESFALLBACK="$enableval" |
5305 | RESFALLBACK="$enableval" |
4688 | |
5306 | |
4689 | fi |
5307 | fi |
4690 | |
5308 | |
4691 | |
5309 | |
4692 | if test x$RESFALLBACK != x; then |
5310 | if test x$RESFALLBACK != x; then |
4693 | |
5311 | |
4694 | cat >>confdefs.h <<_ACEOF |
5312 | printf "%s\n" "#define RESFALLBACK \"$RESFALLBACK\"" >>confdefs.h |
4695 | #define RESFALLBACK "$RESFALLBACK" |
|
|
4696 | _ACEOF |
|
|
4697 | |
5313 | |
4698 | fi |
5314 | fi |
4699 | |
5315 | |
4700 | RESNAME=urxvt |
5316 | RESNAME=urxvt |
4701 | |
5317 | |
4702 | # Check whether --with-res-name was given. |
5318 | # Check whether --with-res-name was given. |
4703 | if test "${with_res_name+set}" = set; then |
5319 | if test ${with_res_name+y} |
|
|
5320 | then : |
4704 | withval=$with_res_name; RESNAME="$withval" |
5321 | withval=$with_res_name; RESNAME="$withval" |
4705 | fi |
5322 | fi |
4706 | |
5323 | |
4707 | |
5324 | |
4708 | cat >>confdefs.h <<_ACEOF |
5325 | printf "%s\n" "#define RESNAME \"$RESNAME\"" >>confdefs.h |
4709 | #define RESNAME "$RESNAME" |
|
|
4710 | _ACEOF |
|
|
4711 | |
5326 | |
4712 | |
5327 | |
4713 | RESCLASS=URxvt |
5328 | RESCLASS=URxvt |
4714 | |
5329 | |
4715 | # Check whether --with-res-class was given. |
5330 | # Check whether --with-res-class was given. |
4716 | if test "${with_res_class+set}" = set; then |
5331 | if test ${with_res_class+y} |
|
|
5332 | then : |
4717 | withval=$with_res_class; RESCLASS="$withval" |
5333 | withval=$with_res_class; RESCLASS="$withval" |
4718 | fi |
5334 | fi |
4719 | |
5335 | |
4720 | |
5336 | |
4721 | cat >>confdefs.h <<_ACEOF |
5337 | printf "%s\n" "#define RESCLASS \"$RESCLASS\"" >>confdefs.h |
4722 | #define RESCLASS "$RESCLASS" |
|
|
4723 | _ACEOF |
|
|
4724 | |
5338 | |
4725 | |
5339 | |
4726 | RXVTNAME=urxvt |
5340 | RXVTNAME=urxvt |
4727 | |
5341 | |
4728 | # Check whether --with-name was given. |
5342 | # Check whether --with-name was given. |
4729 | if test "${with_name+set}" = set; then |
5343 | if test ${with_name+y} |
|
|
5344 | then : |
4730 | withval=$with_name; RXVTNAME="$withval" |
5345 | withval=$with_name; RXVTNAME="$withval" |
4731 | fi |
5346 | fi |
4732 | |
5347 | |
4733 | |
5348 | |
4734 | cat >>confdefs.h <<_ACEOF |
5349 | printf "%s\n" "#define RXVTNAME \"$RXVTNAME\"" >>confdefs.h |
4735 | #define RXVTNAME "$RXVTNAME" |
|
|
4736 | _ACEOF |
|
|
4737 | |
5350 | |
4738 | |
5351 | |
4739 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
|
|
4740 | |
5352 | |
4741 | |
5353 | |
4742 | # Check whether --enable-swapscreen was given. |
5354 | # Check whether --enable-swapscreen was given. |
4743 | if test "${enable_swapscreen+set}" = set; then |
5355 | if test ${enable_swapscreen+y} |
|
|
5356 | then : |
4744 | enableval=$enable_swapscreen; if test x$enableval = xno; then |
5357 | enableval=$enable_swapscreen; if test x$enableval = xno; then |
4745 | |
5358 | |
4746 | cat >>confdefs.h <<\_ACEOF |
5359 | printf "%s\n" "#define NO_SECONDARY_SCREEN 1" >>confdefs.h |
4747 | #define NO_SECONDARY_SCREEN 1 |
|
|
4748 | _ACEOF |
|
|
4749 | |
5360 | |
4750 | fi |
5361 | fi |
4751 | fi |
5362 | fi |
4752 | |
5363 | |
4753 | |
5364 | |
4754 | # Check whether --enable-iso14755 was given. |
5365 | # Check whether --enable-iso14755 was given. |
4755 | if test "${enable_iso14755+set}" = set; then |
5366 | if test ${enable_iso14755+y} |
|
|
5367 | then : |
4756 | enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then |
5368 | enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then |
4757 | support_iso14755=$enableval |
5369 | support_iso14755=$enableval |
4758 | fi |
5370 | fi |
4759 | fi |
5371 | fi |
4760 | |
5372 | |
4761 | |
5373 | |
4762 | # Check whether --enable-frills was given. |
5374 | # Check whether --enable-frills was given. |
4763 | if test "${enable_frills+set}" = set; then |
5375 | if test ${enable_frills+y} |
|
|
5376 | then : |
4764 | enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then |
5377 | enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then |
4765 | support_frills=$enableval |
5378 | support_frills=$enableval |
4766 | fi |
5379 | fi |
4767 | fi |
5380 | fi |
4768 | |
5381 | |
4769 | |
5382 | |
4770 | # Check whether --enable-keepscrolling was given. |
5383 | # Check whether --enable-keepscrolling was given. |
4771 | if test "${enable_keepscrolling+set}" = set; then |
5384 | if test ${enable_keepscrolling+y} |
|
|
5385 | then : |
4772 | enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then |
5386 | enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then |
4773 | support_keepscrolling=$enableval |
5387 | support_keepscrolling=$enableval |
4774 | fi |
5388 | fi |
4775 | fi |
5389 | fi |
4776 | |
5390 | |
4777 | |
5391 | |
4778 | # Check whether --enable-selectionscrolling was given. |
5392 | # Check whether --enable-selectionscrolling was given. |
4779 | if test "${enable_selectionscrolling+set}" = set; then |
5393 | if test ${enable_selectionscrolling+y} |
|
|
5394 | then : |
4780 | enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then |
5395 | enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then |
4781 | support_selectionscrolling=$enableval |
5396 | support_selectionscrolling=$enableval |
4782 | fi |
5397 | fi |
4783 | fi |
5398 | fi |
4784 | |
5399 | |
4785 | |
5400 | |
4786 | # Check whether --enable-mousewheel was given. |
5401 | # Check whether --enable-mousewheel was given. |
4787 | if test "${enable_mousewheel+set}" = set; then |
5402 | if test ${enable_mousewheel+y} |
|
|
5403 | then : |
4788 | enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then |
5404 | enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then |
4789 | support_mousewheel=$enableval |
5405 | support_mousewheel=$enableval |
4790 | fi |
5406 | fi |
4791 | fi |
5407 | fi |
4792 | |
5408 | |
4793 | |
5409 | |
4794 | # Check whether --enable-slipwheeling was given. |
5410 | # Check whether --enable-slipwheeling was given. |
4795 | if test "${enable_slipwheeling+set}" = set; then |
5411 | if test ${enable_slipwheeling+y} |
|
|
5412 | then : |
4796 | enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then |
5413 | enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then |
4797 | support_mouseslipwheel=$enableval |
5414 | support_mouseslipwheel=$enableval |
4798 | fi |
5415 | fi |
4799 | fi |
5416 | fi |
4800 | |
5417 | |
4801 | |
5418 | |
4802 | # Check whether --enable-smart-resize was given. |
5419 | # Check whether --enable-smart-resize was given. |
4803 | if test "${enable_smart_resize+set}" = set; then |
5420 | if test ${enable_smart_resize+y} |
|
|
5421 | then : |
4804 | enableval=$enable_smart_resize; if test x$enableval = xyes; then |
5422 | enableval=$enable_smart_resize; if test x$enableval = xyes; then |
4805 | |
5423 | |
4806 | cat >>confdefs.h <<\_ACEOF |
5424 | printf "%s\n" "#define SMART_RESIZE 1" >>confdefs.h |
4807 | #define SMART_RESIZE 1 |
|
|
4808 | _ACEOF |
|
|
4809 | |
5425 | |
4810 | fi |
5426 | fi |
4811 | fi |
5427 | fi |
4812 | |
5428 | |
4813 | |
5429 | |
4814 | # Check whether --enable-text-blink was given. |
5430 | # Check whether --enable-text-blink was given. |
4815 | if test "${enable_text_blink+set}" = set; then |
5431 | if test ${enable_text_blink+y} |
|
|
5432 | then : |
4816 | enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then |
5433 | enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then |
4817 | support_text_blink=$enableval |
5434 | support_text_blink=$enableval |
4818 | fi |
5435 | fi |
4819 | fi |
5436 | fi |
4820 | |
5437 | |
4821 | |
5438 | |
4822 | # Check whether --enable-pointer-blank was given. |
5439 | # Check whether --enable-pointer-blank was given. |
4823 | if test "${enable_pointer_blank+set}" = set; then |
5440 | if test ${enable_pointer_blank+y} |
|
|
5441 | then : |
4824 | enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then |
5442 | enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then |
4825 | support_pointer_blank=$enableval |
5443 | support_pointer_blank=$enableval |
4826 | fi |
5444 | fi |
4827 | fi |
5445 | fi |
4828 | |
5446 | |
4829 | |
5447 | |
4830 | |
5448 | |
4831 | # Check whether --with-term was given. |
5449 | # Check whether --with-term was given. |
4832 | if test "${with_term+set}" = set; then |
5450 | if test ${with_term+y} |
|
|
5451 | then : |
4833 | withval=$with_term; if test x$withval != x; then |
5452 | withval=$with_term; if test x$withval != x; then |
4834 | |
5453 | |
4835 | cat >>confdefs.h <<_ACEOF |
5454 | printf "%s\n" "#define TERMENV \"$withval\"" >>confdefs.h |
4836 | #define TERMENV "$withval" |
5455 | term="$withval" |
|
|
5456 | fi |
|
|
5457 | fi |
|
|
5458 | |
|
|
5459 | |
|
|
5460 | |
|
|
5461 | # Check whether --with-terminfo was given. |
|
|
5462 | if test ${with_terminfo+y} |
|
|
5463 | then : |
|
|
5464 | withval=$with_terminfo; if test x$withval != x; then |
|
|
5465 | |
|
|
5466 | printf "%s\n" "#define RXVT_TERMINFO \"$withval\"" >>confdefs.h |
|
|
5467 | terminfo="$withval" |
|
|
5468 | fi |
|
|
5469 | fi |
|
|
5470 | |
|
|
5471 | |
|
|
5472 | if test x$support_resources = xno; then |
|
|
5473 | if test x$support_frills = xyes || test x$support_perl = xyes; then |
|
|
5474 | as_fn_error $? "--disable-resources requires --disable-frills --disable-perl" "$LINENO" 5 |
|
|
5475 | fi |
|
|
5476 | |
|
|
5477 | |
|
|
5478 | printf "%s\n" "#define NO_RESOURCES 1" >>confdefs.h |
|
|
5479 | |
|
|
5480 | fi |
|
|
5481 | |
|
|
5482 | |
|
|
5483 | LIBEV_M4_AVOID_LIBRT=1 |
|
|
5484 | |
|
|
5485 | ac_fn_cxx_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" |
|
|
5486 | if test "x$ac_cv_header_sys_inotify_h" = xyes |
|
|
5487 | then : |
|
|
5488 | printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h |
|
|
5489 | |
|
|
5490 | fi |
|
|
5491 | ac_fn_cxx_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" |
|
|
5492 | if test "x$ac_cv_header_sys_epoll_h" = xyes |
|
|
5493 | then : |
|
|
5494 | printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h |
|
|
5495 | |
|
|
5496 | fi |
|
|
5497 | ac_fn_cxx_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" |
|
|
5498 | if test "x$ac_cv_header_sys_event_h" = xyes |
|
|
5499 | then : |
|
|
5500 | printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h |
|
|
5501 | |
|
|
5502 | fi |
|
|
5503 | ac_fn_cxx_check_header_compile "$LINENO" "port.h" "ac_cv_header_port_h" "$ac_includes_default" |
|
|
5504 | if test "x$ac_cv_header_port_h" = xyes |
|
|
5505 | then : |
|
|
5506 | printf "%s\n" "#define HAVE_PORT_H 1" >>confdefs.h |
|
|
5507 | |
|
|
5508 | fi |
|
|
5509 | ac_fn_cxx_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" |
|
|
5510 | if test "x$ac_cv_header_poll_h" = xyes |
|
|
5511 | then : |
|
|
5512 | printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h |
|
|
5513 | |
|
|
5514 | fi |
|
|
5515 | ac_fn_cxx_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default" |
|
|
5516 | if test "x$ac_cv_header_sys_timerfd_h" = xyes |
|
|
5517 | then : |
|
|
5518 | printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h |
|
|
5519 | |
|
|
5520 | fi |
|
|
5521 | |
|
|
5522 | ac_fn_cxx_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
|
|
5523 | if test "x$ac_cv_header_sys_select_h" = xyes |
|
|
5524 | then : |
|
|
5525 | printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h |
|
|
5526 | |
|
|
5527 | fi |
|
|
5528 | ac_fn_cxx_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default" |
|
|
5529 | if test "x$ac_cv_header_sys_eventfd_h" = xyes |
|
|
5530 | then : |
|
|
5531 | printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h |
|
|
5532 | |
|
|
5533 | fi |
|
|
5534 | ac_fn_cxx_check_header_compile "$LINENO" "sys/signalfd.h" "ac_cv_header_sys_signalfd_h" "$ac_includes_default" |
|
|
5535 | if test "x$ac_cv_header_sys_signalfd_h" = xyes |
|
|
5536 | then : |
|
|
5537 | printf "%s\n" "#define HAVE_SYS_SIGNALFD_H 1" >>confdefs.h |
|
|
5538 | |
|
|
5539 | fi |
|
|
5540 | ac_fn_cxx_check_header_compile "$LINENO" "linux/aio_abi.h" "ac_cv_header_linux_aio_abi_h" "$ac_includes_default" |
|
|
5541 | if test "x$ac_cv_header_linux_aio_abi_h" = xyes |
|
|
5542 | then : |
|
|
5543 | printf "%s\n" "#define HAVE_LINUX_AIO_ABI_H 1" >>confdefs.h |
|
|
5544 | |
|
|
5545 | fi |
|
|
5546 | ac_fn_cxx_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default" |
|
|
5547 | if test "x$ac_cv_header_linux_fs_h" = xyes |
|
|
5548 | then : |
|
|
5549 | printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h |
|
|
5550 | |
|
|
5551 | fi |
|
|
5552 | |
|
|
5553 | |
|
|
5554 | ac_fn_cxx_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init" |
|
|
5555 | if test "x$ac_cv_func_inotify_init" = xyes |
|
|
5556 | then : |
|
|
5557 | printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h |
|
|
5558 | |
|
|
5559 | fi |
|
|
5560 | ac_fn_cxx_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" |
|
|
5561 | if test "x$ac_cv_func_epoll_ctl" = xyes |
|
|
5562 | then : |
|
|
5563 | printf "%s\n" "#define HAVE_EPOLL_CTL 1" >>confdefs.h |
|
|
5564 | |
|
|
5565 | fi |
|
|
5566 | ac_fn_cxx_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" |
|
|
5567 | if test "x$ac_cv_func_kqueue" = xyes |
|
|
5568 | then : |
|
|
5569 | printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h |
|
|
5570 | |
|
|
5571 | fi |
|
|
5572 | ac_fn_cxx_check_func "$LINENO" "port_create" "ac_cv_func_port_create" |
|
|
5573 | if test "x$ac_cv_func_port_create" = xyes |
|
|
5574 | then : |
|
|
5575 | printf "%s\n" "#define HAVE_PORT_CREATE 1" >>confdefs.h |
|
|
5576 | |
|
|
5577 | fi |
|
|
5578 | ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll" |
|
|
5579 | if test "x$ac_cv_func_poll" = xyes |
|
|
5580 | then : |
|
|
5581 | printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h |
|
|
5582 | |
|
|
5583 | fi |
|
|
5584 | ac_fn_cxx_check_func "$LINENO" "select" "ac_cv_func_select" |
|
|
5585 | if test "x$ac_cv_func_select" = xyes |
|
|
5586 | then : |
|
|
5587 | printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h |
|
|
5588 | |
|
|
5589 | fi |
|
|
5590 | ac_fn_cxx_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd" |
|
|
5591 | if test "x$ac_cv_func_eventfd" = xyes |
|
|
5592 | then : |
|
|
5593 | printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h |
|
|
5594 | |
|
|
5595 | fi |
|
|
5596 | ac_fn_cxx_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd" |
|
|
5597 | if test "x$ac_cv_func_signalfd" = xyes |
|
|
5598 | then : |
|
|
5599 | printf "%s\n" "#define HAVE_SIGNALFD 1" >>confdefs.h |
|
|
5600 | |
|
|
5601 | fi |
|
|
5602 | |
|
|
5603 | |
|
|
5604 | |
|
|
5605 | for ac_func in clock_gettime |
|
|
5606 | do : |
|
|
5607 | ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
|
|
5608 | if test "x$ac_cv_func_clock_gettime" = xyes |
|
|
5609 | then : |
|
|
5610 | printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
|
|
5611 | |
|
|
5612 | else $as_nop |
|
|
5613 | |
|
|
5614 | if test $(uname) = Linux; then |
|
|
5615 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5 |
|
|
5616 | printf %s "checking for clock_gettime syscall... " >&6; } |
|
|
5617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5618 | /* end confdefs.h. */ |
|
|
5619 | #include <unistd.h> |
|
|
5620 | #include <sys/syscall.h> |
|
|
5621 | #include <time.h> |
|
|
5622 | int |
|
|
5623 | main (void) |
|
|
5624 | { |
|
|
5625 | struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) |
|
|
5626 | ; |
|
|
5627 | return 0; |
|
|
5628 | } |
4837 | _ACEOF |
5629 | _ACEOF |
4838 | term="$withval" |
5630 | if ac_fn_cxx_try_link "$LINENO" |
|
|
5631 | then : |
|
|
5632 | ac_have_clock_syscall=1 |
|
|
5633 | |
|
|
5634 | printf "%s\n" "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h |
|
|
5635 | |
|
|
5636 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
5637 | printf "%s\n" "yes" >&6; } |
|
|
5638 | else $as_nop |
|
|
5639 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
5640 | printf "%s\n" "no" >&6; } |
|
|
5641 | fi |
|
|
5642 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5643 | conftest$ac_exeext conftest.$ac_ext |
4839 | fi |
5644 | fi |
4840 | fi |
5645 | if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then |
|
|
5646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
|
|
5647 | printf %s "checking for clock_gettime in -lrt... " >&6; } |
|
|
5648 | if test ${ac_cv_lib_rt_clock_gettime+y} |
|
|
5649 | then : |
|
|
5650 | printf %s "(cached) " >&6 |
|
|
5651 | else $as_nop |
|
|
5652 | ac_check_lib_save_LIBS=$LIBS |
|
|
5653 | LIBS="-lrt $LIBS" |
|
|
5654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5655 | /* end confdefs.h. */ |
4841 | |
5656 | |
4842 | |
5657 | namespace conftest { |
4843 | |
5658 | extern "C" int clock_gettime (); |
4844 | # Check whether --with-terminfo was given. |
5659 | } |
4845 | if test "${with_terminfo+set}" = set; then |
5660 | int |
4846 | withval=$with_terminfo; if test x$withval != x; then |
5661 | main (void) |
4847 | |
5662 | { |
4848 | cat >>confdefs.h <<_ACEOF |
5663 | return conftest::clock_gettime (); |
4849 | #define RXVT_TERMINFO "$withval" |
5664 | ; |
|
|
5665 | return 0; |
|
|
5666 | } |
4850 | _ACEOF |
5667 | _ACEOF |
4851 | terminfo="$withval" |
5668 | if ac_fn_cxx_try_link "$LINENO" |
|
|
5669 | then : |
|
|
5670 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5671 | else $as_nop |
|
|
5672 | ac_cv_lib_rt_clock_gettime=no |
|
|
5673 | fi |
|
|
5674 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5675 | conftest$ac_exeext conftest.$ac_ext |
|
|
5676 | LIBS=$ac_check_lib_save_LIBS |
|
|
5677 | fi |
|
|
5678 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5679 | printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5680 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes |
|
|
5681 | then : |
|
|
5682 | printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h |
|
|
5683 | |
|
|
5684 | LIBS="-lrt $LIBS" |
|
|
5685 | |
|
|
5686 | fi |
|
|
5687 | |
|
|
5688 | unset ac_cv_func_clock_gettime |
|
|
5689 | ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
|
|
5690 | if test "x$ac_cv_func_clock_gettime" = xyes |
|
|
5691 | then : |
|
|
5692 | printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
|
|
5693 | |
|
|
5694 | fi |
|
|
5695 | |
4852 | fi |
5696 | fi |
4853 | fi |
|
|
4854 | |
5697 | |
|
|
5698 | fi |
4855 | |
5699 | |
|
|
5700 | done |
4856 | |
5701 | |
4857 | # Extract the first word of "mv", so it can be a program name with args. |
5702 | |
4858 | set dummy mv; ac_word=$2 |
5703 | for ac_func in nanosleep |
4859 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5704 | do : |
4860 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5705 | ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
4861 | if test "${ac_cv_path_MV+set}" = set; then |
5706 | if test "x$ac_cv_func_nanosleep" = xyes |
4862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5707 | then : |
4863 | else |
5708 | printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h |
4864 | case $MV in |
5709 | |
4865 | [\\/]* | ?:[\\/]*) |
5710 | else $as_nop |
4866 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
5711 | |
|
|
5712 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
|
|
5714 | printf %s "checking for nanosleep in -lrt... " >&6; } |
|
|
5715 | if test ${ac_cv_lib_rt_nanosleep+y} |
|
|
5716 | then : |
|
|
5717 | printf %s "(cached) " >&6 |
|
|
5718 | else $as_nop |
|
|
5719 | ac_check_lib_save_LIBS=$LIBS |
|
|
5720 | LIBS="-lrt $LIBS" |
|
|
5721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5722 | /* end confdefs.h. */ |
|
|
5723 | |
|
|
5724 | namespace conftest { |
|
|
5725 | extern "C" int nanosleep (); |
|
|
5726 | } |
|
|
5727 | int |
|
|
5728 | main (void) |
|
|
5729 | { |
|
|
5730 | return conftest::nanosleep (); |
4867 | ;; |
5731 | ; |
4868 | *) |
5732 | return 0; |
4869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5733 | } |
4870 | for as_dir in $PATH |
5734 | _ACEOF |
|
|
5735 | if ac_fn_cxx_try_link "$LINENO" |
|
|
5736 | then : |
|
|
5737 | ac_cv_lib_rt_nanosleep=yes |
|
|
5738 | else $as_nop |
|
|
5739 | ac_cv_lib_rt_nanosleep=no |
|
|
5740 | fi |
|
|
5741 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5742 | conftest$ac_exeext conftest.$ac_ext |
|
|
5743 | LIBS=$ac_check_lib_save_LIBS |
|
|
5744 | fi |
|
|
5745 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
5746 | printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
5747 | if test "x$ac_cv_lib_rt_nanosleep" = xyes |
|
|
5748 | then : |
|
|
5749 | printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h |
|
|
5750 | |
|
|
5751 | LIBS="-lrt $LIBS" |
|
|
5752 | |
|
|
5753 | fi |
|
|
5754 | |
|
|
5755 | unset ac_cv_func_nanosleep |
|
|
5756 | ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
|
|
5757 | if test "x$ac_cv_func_nanosleep" = xyes |
|
|
5758 | then : |
|
|
5759 | printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h |
|
|
5760 | |
|
|
5761 | fi |
|
|
5762 | |
|
|
5763 | fi |
|
|
5764 | |
|
|
5765 | fi |
|
|
5766 | |
|
|
5767 | done |
|
|
5768 | |
|
|
5769 | ac_fn_cxx_check_type "$LINENO" "__kernel_rwf_t" "ac_cv_type___kernel_rwf_t" "#include <linux/fs.h> |
|
|
5770 | " |
|
|
5771 | if test "x$ac_cv_type___kernel_rwf_t" = xyes |
|
|
5772 | then : |
|
|
5773 | |
|
|
5774 | |
|
|
5775 | printf "%s\n" "#define HAVE_KERNEL_RWF_T 1" >>confdefs.h |
|
|
5776 | |
|
|
5777 | |
|
|
5778 | fi |
|
|
5779 | |
|
|
5780 | |
|
|
5781 | if test -z "$LIBEV_M4_AVOID_LIBM"; then |
|
|
5782 | LIBM=m |
|
|
5783 | fi |
|
|
5784 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 |
|
|
5785 | printf %s "checking for library containing floor... " >&6; } |
|
|
5786 | if test ${ac_cv_search_floor+y} |
|
|
5787 | then : |
|
|
5788 | printf %s "(cached) " >&6 |
|
|
5789 | else $as_nop |
|
|
5790 | ac_func_search_save_LIBS=$LIBS |
|
|
5791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5792 | /* end confdefs.h. */ |
|
|
5793 | |
|
|
5794 | namespace conftest { |
|
|
5795 | extern "C" int floor (); |
|
|
5796 | } |
|
|
5797 | int |
|
|
5798 | main (void) |
|
|
5799 | { |
|
|
5800 | return conftest::floor (); |
|
|
5801 | ; |
|
|
5802 | return 0; |
|
|
5803 | } |
|
|
5804 | _ACEOF |
|
|
5805 | for ac_lib in '' $LIBM |
4871 | do |
5806 | do |
4872 | IFS=$as_save_IFS |
5807 | if test -z "$ac_lib"; then |
4873 | test -z "$as_dir" && as_dir=. |
5808 | ac_res="none required" |
4874 | for ac_exec_ext in '' $ac_executable_extensions; do |
5809 | else |
4875 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5810 | ac_res=-l$ac_lib |
4876 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
5811 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4877 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5812 | fi |
|
|
5813 | if ac_fn_cxx_try_link "$LINENO" |
|
|
5814 | then : |
|
|
5815 | ac_cv_search_floor=$ac_res |
|
|
5816 | fi |
|
|
5817 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5818 | conftest$ac_exeext |
|
|
5819 | if test ${ac_cv_search_floor+y} |
|
|
5820 | then : |
4878 | break 2 |
5821 | break |
4879 | fi |
5822 | fi |
4880 | done |
5823 | done |
4881 | done |
5824 | if test ${ac_cv_search_floor+y} |
4882 | IFS=$as_save_IFS |
5825 | then : |
4883 | |
5826 | |
4884 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
5827 | else $as_nop |
4885 | ;; |
5828 | ac_cv_search_floor=no |
4886 | esac |
|
|
4887 | fi |
5829 | fi |
4888 | MV=$ac_cv_path_MV |
5830 | rm conftest.$ac_ext |
4889 | if test -n "$MV"; then |
5831 | LIBS=$ac_func_search_save_LIBS |
4890 | { echo "$as_me:$LINENO: result: $MV" >&5 |
|
|
4891 | echo "${ECHO_T}$MV" >&6; } |
|
|
4892 | else |
|
|
4893 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
4894 | echo "${ECHO_T}no" >&6; } |
|
|
4895 | fi |
5832 | fi |
|
|
5833 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 |
|
|
5834 | printf "%s\n" "$ac_cv_search_floor" >&6; } |
|
|
5835 | ac_res=$ac_cv_search_floor |
|
|
5836 | if test "$ac_res" != no |
|
|
5837 | then : |
|
|
5838 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4896 | |
5839 | |
|
|
5840 | printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h |
4897 | |
5841 | |
4898 | # Extract the first word of "cp", so it can be a program name with args. |
|
|
4899 | set dummy cp; ac_word=$2 |
|
|
4900 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
|
4902 | if test "${ac_cv_path_CP+set}" = set; then |
|
|
4903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4904 | else |
|
|
4905 | case $CP in |
|
|
4906 | [\\/]* | ?:[\\/]*) |
|
|
4907 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
|
|
4908 | ;; |
|
|
4909 | *) |
|
|
4910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4911 | for as_dir in $PATH |
|
|
4912 | do |
|
|
4913 | IFS=$as_save_IFS |
|
|
4914 | test -z "$as_dir" && as_dir=. |
|
|
4915 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4916 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
4917 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
|
|
4918 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4919 | break 2 |
|
|
4920 | fi |
|
|
4921 | done |
|
|
4922 | done |
|
|
4923 | IFS=$as_save_IFS |
|
|
4924 | |
|
|
4925 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
|
|
4926 | ;; |
|
|
4927 | esac |
|
|
4928 | fi |
5842 | fi |
4929 | CP=$ac_cv_path_CP |
|
|
4930 | if test -n "$CP"; then |
|
|
4931 | { echo "$as_me:$LINENO: result: $CP" >&5 |
|
|
4932 | echo "${ECHO_T}$CP" >&6; } |
|
|
4933 | else |
|
|
4934 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
4935 | echo "${ECHO_T}no" >&6; } |
|
|
4936 | fi |
|
|
4937 | |
5843 | |
4938 | |
5844 | |
4939 | # Extract the first word of "ln", so it can be a program name with args. |
|
|
4940 | set dummy ln; ac_word=$2 |
|
|
4941 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4942 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
|
4943 | if test "${ac_cv_path_LN+set}" = set; then |
|
|
4944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4945 | else |
|
|
4946 | case $LN in |
|
|
4947 | [\\/]* | ?:[\\/]*) |
|
|
4948 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
|
|
4949 | ;; |
|
|
4950 | *) |
|
|
4951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4952 | for as_dir in $PATH |
|
|
4953 | do |
|
|
4954 | IFS=$as_save_IFS |
|
|
4955 | test -z "$as_dir" && as_dir=. |
|
|
4956 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4957 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
4958 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
|
|
4959 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4960 | break 2 |
|
|
4961 | fi |
|
|
4962 | done |
|
|
4963 | done |
|
|
4964 | IFS=$as_save_IFS |
|
|
4965 | |
5845 | |
4966 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
|
|
4967 | ;; |
|
|
4968 | esac |
|
|
4969 | fi |
|
|
4970 | LN=$ac_cv_path_LN |
|
|
4971 | if test -n "$LN"; then |
|
|
4972 | { echo "$as_me:$LINENO: result: $LN" >&5 |
|
|
4973 | echo "${ECHO_T}$LN" >&6; } |
|
|
4974 | else |
|
|
4975 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
4976 | echo "${ECHO_T}no" >&6; } |
|
|
4977 | fi |
|
|
4978 | |
|
|
4979 | |
|
|
4980 | # Extract the first word of "sed", so it can be a program name with args. |
|
|
4981 | set dummy sed; ac_word=$2 |
|
|
4982 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4983 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
|
4984 | if test "${ac_cv_path_SED+set}" = set; then |
|
|
4985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4986 | else |
|
|
4987 | case $SED in |
|
|
4988 | [\\/]* | ?:[\\/]*) |
|
|
4989 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
|
|
4990 | ;; |
|
|
4991 | *) |
|
|
4992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4993 | for as_dir in $PATH |
|
|
4994 | do |
|
|
4995 | IFS=$as_save_IFS |
|
|
4996 | test -z "$as_dir" && as_dir=. |
|
|
4997 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
4999 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
|
|
5000 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5001 | break 2 |
|
|
5002 | fi |
|
|
5003 | done |
|
|
5004 | done |
|
|
5005 | IFS=$as_save_IFS |
|
|
5006 | |
|
|
5007 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
|
|
5008 | ;; |
|
|
5009 | esac |
|
|
5010 | fi |
|
|
5011 | SED=$ac_cv_path_SED |
|
|
5012 | if test -n "$SED"; then |
|
|
5013 | { echo "$as_me:$LINENO: result: $SED" >&5 |
|
|
5014 | echo "${ECHO_T}$SED" >&6; } |
|
|
5015 | else |
|
|
5016 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5017 | echo "${ECHO_T}no" >&6; } |
|
|
5018 | fi |
|
|
5019 | |
|
|
5020 | |
|
|
5021 | # Extract the first word of "echo", so it can be a program name with args. |
|
|
5022 | set dummy echo; ac_word=$2 |
|
|
5023 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5024 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
|
5025 | if test "${ac_cv_path_ECHO+set}" = set; then |
|
|
5026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5027 | else |
|
|
5028 | case $ECHO in |
|
|
5029 | [\\/]* | ?:[\\/]*) |
|
|
5030 | ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. |
|
|
5031 | ;; |
|
|
5032 | *) |
|
|
5033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5034 | for as_dir in $PATH |
|
|
5035 | do |
|
|
5036 | IFS=$as_save_IFS |
|
|
5037 | test -z "$as_dir" && as_dir=. |
|
|
5038 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5039 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
5040 | ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" |
|
|
5041 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5042 | break 2 |
|
|
5043 | fi |
|
|
5044 | done |
|
|
5045 | done |
|
|
5046 | IFS=$as_save_IFS |
|
|
5047 | |
|
|
5048 | test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo" |
|
|
5049 | ;; |
|
|
5050 | esac |
|
|
5051 | fi |
|
|
5052 | ECHO=$ac_cv_path_ECHO |
|
|
5053 | if test -n "$ECHO"; then |
|
|
5054 | { echo "$as_me:$LINENO: result: $ECHO" >&5 |
|
|
5055 | echo "${ECHO_T}$ECHO" >&6; } |
|
|
5056 | else |
|
|
5057 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5058 | echo "${ECHO_T}no" >&6; } |
|
|
5059 | fi |
|
|
5060 | |
|
|
5061 | |
|
|
5062 | # Extract the first word of "cmp", so it can be a program name with args. |
|
|
5063 | set dummy cmp; ac_word=$2 |
|
|
5064 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
|
5066 | if test "${ac_cv_path_CMP+set}" = set; then |
|
|
5067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5068 | else |
|
|
5069 | case $CMP in |
|
|
5070 | [\\/]* | ?:[\\/]*) |
|
|
5071 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
|
|
5072 | ;; |
|
|
5073 | *) |
|
|
5074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5075 | for as_dir in $PATH |
|
|
5076 | do |
|
|
5077 | IFS=$as_save_IFS |
|
|
5078 | test -z "$as_dir" && as_dir=. |
|
|
5079 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5080 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
5081 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
|
|
5082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5083 | break 2 |
|
|
5084 | fi |
|
|
5085 | done |
|
|
5086 | done |
|
|
5087 | IFS=$as_save_IFS |
|
|
5088 | |
|
|
5089 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
|
|
5090 | ;; |
|
|
5091 | esac |
|
|
5092 | fi |
|
|
5093 | CMP=$ac_cv_path_CMP |
|
|
5094 | if test -n "$CMP"; then |
|
|
5095 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
|
|
5096 | echo "${ECHO_T}$CMP" >&6; } |
|
|
5097 | else |
|
|
5098 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5099 | echo "${ECHO_T}no" >&6; } |
|
|
5100 | fi |
|
|
5101 | |
5846 | |
5102 | |
5847 | |
5103 | # Extract the first word of "tic", so it can be a program name with args. |
5848 | # Extract the first word of "tic", so it can be a program name with args. |
5104 | set dummy tic; ac_word=$2 |
5849 | set dummy tic; ac_word=$2 |
5105 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5851 | printf %s "checking for $ac_word... " >&6; } |
5107 | if test "${ac_cv_path_TIC+set}" = set; then |
5852 | if test ${ac_cv_path_TIC+y} |
5108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5853 | then : |
5109 | else |
5854 | printf %s "(cached) " >&6 |
|
|
5855 | else $as_nop |
5110 | case $TIC in |
5856 | case $TIC in |
5111 | [\\/]* | ?:[\\/]*) |
5857 | [\\/]* | ?:[\\/]*) |
5112 | ac_cv_path_TIC="$TIC" # Let the user override the test with a path. |
5858 | ac_cv_path_TIC="$TIC" # Let the user override the test with a path. |
5113 | ;; |
5859 | ;; |
5114 | *) |
5860 | *) |
5115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5116 | for as_dir in $PATH |
5862 | for as_dir in $PATH |
5117 | do |
5863 | do |
5118 | IFS=$as_save_IFS |
5864 | IFS=$as_save_IFS |
5119 | test -z "$as_dir" && as_dir=. |
5865 | case $as_dir in #((( |
|
|
5866 | '') as_dir=./ ;; |
|
|
5867 | */) ;; |
|
|
5868 | *) as_dir=$as_dir/ ;; |
|
|
5869 | esac |
5120 | for ac_exec_ext in '' $ac_executable_extensions; do |
5870 | for ac_exec_ext in '' $ac_executable_extensions; do |
5121 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5871 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
5122 | ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext" |
5872 | ac_cv_path_TIC="$as_dir$ac_word$ac_exec_ext" |
5123 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5873 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
5124 | break 2 |
5874 | break 2 |
5125 | fi |
5875 | fi |
5126 | done |
5876 | done |
5127 | done |
5877 | done |
5128 | IFS=$as_save_IFS |
5878 | IFS=$as_save_IFS |
5129 | |
5879 | |
|
|
5880 | test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
5130 | ;; |
5881 | ;; |
5131 | esac |
5882 | esac |
5132 | fi |
5883 | fi |
5133 | TIC=$ac_cv_path_TIC |
5884 | TIC=$ac_cv_path_TIC |
5134 | if test -n "$TIC"; then |
5885 | if test -n "$TIC"; then |
5135 | { echo "$as_me:$LINENO: result: $TIC" >&5 |
5886 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5 |
5136 | echo "${ECHO_T}$TIC" >&6; } |
5887 | printf "%s\n" "$TIC" >&6; } |
5137 | else |
5888 | else |
5138 | { echo "$as_me:$LINENO: result: no" >&5 |
5889 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5139 | echo "${ECHO_T}no" >&6; } |
5890 | printf "%s\n" "no" >&6; } |
5140 | fi |
5891 | fi |
5141 | |
|
|
5142 | |
|
|
5143 | |
5892 | |
5144 | |
5893 | |
5145 | |
5894 | |
5146 | ac_ext=cpp |
5895 | ac_ext=cpp |
5147 | ac_cpp='$CXXCPP $CPPFLAGS' |
5896 | ac_cpp='$CXXCPP $CPPFLAGS' |
5148 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5897 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5149 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5898 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5150 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5899 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5151 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5900 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
5152 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
5901 | printf %s "checking how to run the C++ preprocessor... " >&6; } |
5153 | if test -z "$CXXCPP"; then |
5902 | if test -z "$CXXCPP"; then |
5154 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5903 | if test ${ac_cv_prog_CXXCPP+y} |
5155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5904 | then : |
5156 | else |
5905 | printf %s "(cached) " >&6 |
|
|
5906 | else $as_nop |
5157 | # Double quotes because CXXCPP needs to be expanded |
5907 | # Double quotes because $CXX needs to be expanded |
5158 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5908 | for CXXCPP in "$CXX -E" cpp /lib/cpp |
5159 | do |
5909 | do |
5160 | ac_preproc_ok=false |
5910 | ac_preproc_ok=false |
5161 | for ac_cxx_preproc_warn_flag in '' yes |
5911 | for ac_cxx_preproc_warn_flag in '' yes |
5162 | do |
5912 | do |
5163 | # Use a header file that comes with gcc, so configuring glibc |
5913 | # Use a header file that comes with gcc, so configuring glibc |
5164 | # with a fresh cross-compiler works. |
5914 | # with a fresh cross-compiler works. |
5165 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5166 | # <limits.h> exists even on freestanding compilers. |
|
|
5167 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5915 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5168 | # not just through cpp. "Syntax error" is here to catch this case. |
5916 | # not just through cpp. "Syntax error" is here to catch this case. |
5169 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5170 | /* confdefs.h. */ |
|
|
5171 | _ACEOF |
|
|
5172 | cat confdefs.h >>conftest.$ac_ext |
5917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5173 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5174 | /* end confdefs.h. */ |
5918 | /* end confdefs.h. */ |
5175 | #ifdef __STDC__ |
|
|
5176 | # include <limits.h> |
5919 | #include <limits.h> |
5177 | #else |
|
|
5178 | # include <assert.h> |
|
|
5179 | #endif |
|
|
5180 | Syntax error |
5920 | Syntax error |
5181 | _ACEOF |
5921 | _ACEOF |
5182 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5922 | if ac_fn_cxx_try_cpp "$LINENO" |
5183 | case "(($ac_try" in |
5923 | then : |
5184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5185 | *) ac_try_echo=$ac_try;; |
|
|
5186 | esac |
|
|
5187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5188 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5189 | ac_status=$? |
|
|
5190 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5191 | rm -f conftest.er1 |
|
|
5192 | cat conftest.err >&5 |
|
|
5193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5194 | (exit $ac_status); } >/dev/null && { |
|
|
5195 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5196 | test ! -s conftest.err |
|
|
5197 | }; then |
|
|
5198 | : |
|
|
5199 | else |
|
|
5200 | echo "$as_me: failed program was:" >&5 |
|
|
5201 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5202 | |
5924 | |
|
|
5925 | else $as_nop |
5203 | # Broken: fails on valid input. |
5926 | # Broken: fails on valid input. |
5204 | continue |
5927 | continue |
5205 | fi |
5928 | fi |
5206 | |
|
|
5207 | rm -f conftest.err conftest.$ac_ext |
5929 | rm -f conftest.err conftest.i conftest.$ac_ext |
5208 | |
5930 | |
5209 | # OK, works on sane cases. Now check whether nonexistent headers |
5931 | # OK, works on sane cases. Now check whether nonexistent headers |
5210 | # can be detected and how. |
5932 | # can be detected and how. |
5211 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5212 | /* confdefs.h. */ |
|
|
5213 | _ACEOF |
|
|
5214 | cat confdefs.h >>conftest.$ac_ext |
5933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5215 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5216 | /* end confdefs.h. */ |
5934 | /* end confdefs.h. */ |
5217 | #include <ac_nonexistent.h> |
5935 | #include <ac_nonexistent.h> |
5218 | _ACEOF |
5936 | _ACEOF |
5219 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5937 | if ac_fn_cxx_try_cpp "$LINENO" |
5220 | case "(($ac_try" in |
5938 | then : |
5221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5222 | *) ac_try_echo=$ac_try;; |
|
|
5223 | esac |
|
|
5224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5225 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5226 | ac_status=$? |
|
|
5227 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5228 | rm -f conftest.er1 |
|
|
5229 | cat conftest.err >&5 |
|
|
5230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5231 | (exit $ac_status); } >/dev/null && { |
|
|
5232 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5233 | test ! -s conftest.err |
|
|
5234 | }; then |
|
|
5235 | # Broken: success on invalid input. |
5939 | # Broken: success on invalid input. |
5236 | continue |
5940 | continue |
5237 | else |
5941 | else $as_nop |
5238 | echo "$as_me: failed program was:" >&5 |
|
|
5239 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5240 | |
|
|
5241 | # Passes both tests. |
5942 | # Passes both tests. |
5242 | ac_preproc_ok=: |
5943 | ac_preproc_ok=: |
5243 | break |
5944 | break |
5244 | fi |
5945 | fi |
5245 | |
|
|
5246 | rm -f conftest.err conftest.$ac_ext |
5946 | rm -f conftest.err conftest.i conftest.$ac_ext |
5247 | |
5947 | |
5248 | done |
5948 | done |
5249 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5949 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5250 | rm -f conftest.err conftest.$ac_ext |
5950 | rm -f conftest.i conftest.err conftest.$ac_ext |
5251 | if $ac_preproc_ok; then |
5951 | if $ac_preproc_ok |
|
|
5952 | then : |
5252 | break |
5953 | break |
5253 | fi |
5954 | fi |
5254 | |
5955 | |
5255 | done |
5956 | done |
5256 | ac_cv_prog_CXXCPP=$CXXCPP |
5957 | ac_cv_prog_CXXCPP=$CXXCPP |
… | |
… | |
5258 | fi |
5959 | fi |
5259 | CXXCPP=$ac_cv_prog_CXXCPP |
5960 | CXXCPP=$ac_cv_prog_CXXCPP |
5260 | else |
5961 | else |
5261 | ac_cv_prog_CXXCPP=$CXXCPP |
5962 | ac_cv_prog_CXXCPP=$CXXCPP |
5262 | fi |
5963 | fi |
5263 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5964 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
5264 | echo "${ECHO_T}$CXXCPP" >&6; } |
5965 | printf "%s\n" "$CXXCPP" >&6; } |
5265 | ac_preproc_ok=false |
5966 | ac_preproc_ok=false |
5266 | for ac_cxx_preproc_warn_flag in '' yes |
5967 | for ac_cxx_preproc_warn_flag in '' yes |
5267 | do |
5968 | do |
5268 | # Use a header file that comes with gcc, so configuring glibc |
5969 | # Use a header file that comes with gcc, so configuring glibc |
5269 | # with a fresh cross-compiler works. |
5970 | # with a fresh cross-compiler works. |
5270 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5271 | # <limits.h> exists even on freestanding compilers. |
|
|
5272 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5971 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5273 | # not just through cpp. "Syntax error" is here to catch this case. |
5972 | # not just through cpp. "Syntax error" is here to catch this case. |
5274 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5275 | /* confdefs.h. */ |
|
|
5276 | _ACEOF |
|
|
5277 | cat confdefs.h >>conftest.$ac_ext |
5973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5278 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5279 | /* end confdefs.h. */ |
5974 | /* end confdefs.h. */ |
5280 | #ifdef __STDC__ |
|
|
5281 | # include <limits.h> |
5975 | #include <limits.h> |
5282 | #else |
|
|
5283 | # include <assert.h> |
|
|
5284 | #endif |
|
|
5285 | Syntax error |
5976 | Syntax error |
5286 | _ACEOF |
5977 | _ACEOF |
5287 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5978 | if ac_fn_cxx_try_cpp "$LINENO" |
5288 | case "(($ac_try" in |
5979 | then : |
5289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5290 | *) ac_try_echo=$ac_try;; |
|
|
5291 | esac |
|
|
5292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5293 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5294 | ac_status=$? |
|
|
5295 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5296 | rm -f conftest.er1 |
|
|
5297 | cat conftest.err >&5 |
|
|
5298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5299 | (exit $ac_status); } >/dev/null && { |
|
|
5300 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5301 | test ! -s conftest.err |
|
|
5302 | }; then |
|
|
5303 | : |
|
|
5304 | else |
|
|
5305 | echo "$as_me: failed program was:" >&5 |
|
|
5306 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5307 | |
5980 | |
|
|
5981 | else $as_nop |
5308 | # Broken: fails on valid input. |
5982 | # Broken: fails on valid input. |
5309 | continue |
5983 | continue |
5310 | fi |
5984 | fi |
5311 | |
|
|
5312 | rm -f conftest.err conftest.$ac_ext |
5985 | rm -f conftest.err conftest.i conftest.$ac_ext |
5313 | |
5986 | |
5314 | # OK, works on sane cases. Now check whether nonexistent headers |
5987 | # OK, works on sane cases. Now check whether nonexistent headers |
5315 | # can be detected and how. |
5988 | # can be detected and how. |
5316 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5317 | /* confdefs.h. */ |
|
|
5318 | _ACEOF |
|
|
5319 | cat confdefs.h >>conftest.$ac_ext |
5989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5320 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5321 | /* end confdefs.h. */ |
5990 | /* end confdefs.h. */ |
5322 | #include <ac_nonexistent.h> |
5991 | #include <ac_nonexistent.h> |
5323 | _ACEOF |
5992 | _ACEOF |
5324 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5993 | if ac_fn_cxx_try_cpp "$LINENO" |
5325 | case "(($ac_try" in |
5994 | then : |
5326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5327 | *) ac_try_echo=$ac_try;; |
|
|
5328 | esac |
|
|
5329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5330 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5331 | ac_status=$? |
|
|
5332 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5333 | rm -f conftest.er1 |
|
|
5334 | cat conftest.err >&5 |
|
|
5335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5336 | (exit $ac_status); } >/dev/null && { |
|
|
5337 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5338 | test ! -s conftest.err |
|
|
5339 | }; then |
|
|
5340 | # Broken: success on invalid input. |
5995 | # Broken: success on invalid input. |
5341 | continue |
5996 | continue |
5342 | else |
5997 | else $as_nop |
5343 | echo "$as_me: failed program was:" >&5 |
|
|
5344 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5345 | |
|
|
5346 | # Passes both tests. |
5998 | # Passes both tests. |
5347 | ac_preproc_ok=: |
5999 | ac_preproc_ok=: |
5348 | break |
6000 | break |
5349 | fi |
6001 | fi |
5350 | |
|
|
5351 | rm -f conftest.err conftest.$ac_ext |
6002 | rm -f conftest.err conftest.i conftest.$ac_ext |
5352 | |
6003 | |
5353 | done |
6004 | done |
5354 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6005 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5355 | rm -f conftest.err conftest.$ac_ext |
6006 | rm -f conftest.i conftest.err conftest.$ac_ext |
5356 | if $ac_preproc_ok; then |
6007 | if $ac_preproc_ok |
5357 | : |
6008 | then : |
5358 | else |
6009 | |
5359 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6010 | else $as_nop |
5360 | See \`config.log' for more details." >&5 |
6011 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
6012 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
5361 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6013 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
5362 | See \`config.log' for more details." >&2;} |
6014 | See \`config.log' for more details" "$LINENO" 5; } |
5363 | { (exit 1); exit 1; }; } |
|
|
5364 | fi |
6015 | fi |
5365 | |
6016 | |
5366 | ac_ext=cpp |
6017 | ac_ext=cpp |
5367 | ac_cpp='$CXXCPP $CPPFLAGS' |
6018 | ac_cpp='$CXXCPP $CPPFLAGS' |
5368 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6019 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5369 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6020 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5370 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
6021 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5371 | |
6022 | |
5372 | |
6023 | |
5373 | { echo "$as_me:$LINENO: checking for X" >&5 |
6024 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
5374 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6025 | printf %s "checking for X... " >&6; } |
5375 | |
6026 | |
5376 | |
6027 | |
5377 | # Check whether --with-x was given. |
6028 | # Check whether --with-x was given. |
5378 | if test "${with_x+set}" = set; then |
6029 | if test ${with_x+y} |
|
|
6030 | then : |
5379 | withval=$with_x; |
6031 | withval=$with_x; |
5380 | fi |
6032 | fi |
5381 | |
6033 | |
5382 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
6034 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
5383 | if test "x$with_x" = xno; then |
6035 | if test "x$with_x" = xno; then |
5384 | # The user explicitly disabled X. |
6036 | # The user explicitly disabled X. |
5385 | have_x=disabled |
6037 | have_x=disabled |
5386 | else |
6038 | else |
5387 | case $x_includes,$x_libraries in #( |
6039 | case $x_includes,$x_libraries in #( |
5388 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
6040 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
5389 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} |
|
|
5390 | { (exit 1); exit 1; }; };; #( |
|
|
5391 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
6041 | *,NONE | NONE,*) if test ${ac_cv_have_x+y} |
5392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6042 | then : |
5393 | else |
6043 | printf %s "(cached) " >&6 |
|
|
6044 | else $as_nop |
5394 | # One or both of the vars are not set, and there is no cached value. |
6045 | # One or both of the vars are not set, and there is no cached value. |
5395 | ac_x_includes=no ac_x_libraries=no |
6046 | ac_x_includes=no |
|
|
6047 | ac_x_libraries=no |
|
|
6048 | # Do we need to do anything special at all? |
|
|
6049 | ac_save_LIBS=$LIBS |
|
|
6050 | LIBS="-lX11 $LIBS" |
|
|
6051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6052 | /* end confdefs.h. */ |
|
|
6053 | #include <X11/Xlib.h> |
|
|
6054 | int |
|
|
6055 | main (void) |
|
|
6056 | { |
|
|
6057 | XrmInitialize () |
|
|
6058 | ; |
|
|
6059 | return 0; |
|
|
6060 | } |
|
|
6061 | _ACEOF |
|
|
6062 | if ac_fn_cxx_try_link "$LINENO" |
|
|
6063 | then : |
|
|
6064 | # We can compile and link X programs with no special options. |
|
|
6065 | ac_x_includes= |
|
|
6066 | ac_x_libraries= |
|
|
6067 | fi |
|
|
6068 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
6069 | conftest$ac_exeext conftest.$ac_ext |
|
|
6070 | LIBS="$ac_save_LIBS" |
|
|
6071 | # If that didn't work, only try xmkmf and file system searches |
|
|
6072 | # for native compilation. |
|
|
6073 | if test x"$ac_x_includes" = xno && test "$cross_compiling" = no |
|
|
6074 | then : |
5396 | rm -f -r conftest.dir |
6075 | rm -f -r conftest.dir |
5397 | if mkdir conftest.dir; then |
6076 | if mkdir conftest.dir; then |
5398 | cd conftest.dir |
6077 | cd conftest.dir |
5399 | cat >Imakefile <<'_ACEOF' |
6078 | cat >Imakefile <<'_ACEOF' |
5400 | incroot: |
6079 | incroot: |
5401 | @echo incroot='${INCROOT}' |
6080 | @echo incroot='${INCROOT}' |
… | |
… | |
5403 | @echo usrlibdir='${USRLIBDIR}' |
6082 | @echo usrlibdir='${USRLIBDIR}' |
5404 | libdir: |
6083 | libdir: |
5405 | @echo libdir='${LIBDIR}' |
6084 | @echo libdir='${LIBDIR}' |
5406 | _ACEOF |
6085 | _ACEOF |
5407 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
6086 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
5408 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
6087 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
5409 | for ac_var in incroot usrlibdir libdir; do |
6088 | for ac_var in incroot usrlibdir libdir; do |
5410 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
6089 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
5411 | done |
6090 | done |
5412 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
6091 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
5413 | for ac_extension in a so sl; do |
6092 | for ac_extension in a so sl dylib la dll; do |
5414 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
6093 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
5415 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
6094 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
5416 | ac_im_usrlibdir=$ac_im_libdir; break |
6095 | ac_im_usrlibdir=$ac_im_libdir; break |
5417 | fi |
6096 | fi |
5418 | done |
6097 | done |
… | |
… | |
5422 | case $ac_im_incroot in |
6101 | case $ac_im_incroot in |
5423 | /usr/include) ac_x_includes= ;; |
6102 | /usr/include) ac_x_includes= ;; |
5424 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
6103 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
5425 | esac |
6104 | esac |
5426 | case $ac_im_usrlibdir in |
6105 | case $ac_im_usrlibdir in |
5427 | /usr/lib | /lib) ;; |
6106 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
5428 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
6107 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
5429 | esac |
6108 | esac |
5430 | fi |
6109 | fi |
5431 | cd .. |
6110 | cd .. |
5432 | rm -f -r conftest.dir |
6111 | rm -f -r conftest.dir |
5433 | fi |
6112 | fi |
5434 | |
6113 | |
5435 | # Standard set of common directories for X headers. |
6114 | # Standard set of common directories for X headers. |
5436 | # Check X11 before X11Rn because it is often a symlink to the current release. |
6115 | # Check X11 before X11Rn because it is often a symlink to the current release. |
5437 | ac_x_header_dirs=' |
6116 | ac_x_header_dirs=' |
5438 | /usr/X11/include |
6117 | /usr/X11/include |
|
|
6118 | /usr/X11R7/include |
5439 | /usr/X11R6/include |
6119 | /usr/X11R6/include |
5440 | /usr/X11R5/include |
6120 | /usr/X11R5/include |
5441 | /usr/X11R4/include |
6121 | /usr/X11R4/include |
5442 | |
6122 | |
5443 | /usr/include/X11 |
6123 | /usr/include/X11 |
|
|
6124 | /usr/include/X11R7 |
5444 | /usr/include/X11R6 |
6125 | /usr/include/X11R6 |
5445 | /usr/include/X11R5 |
6126 | /usr/include/X11R5 |
5446 | /usr/include/X11R4 |
6127 | /usr/include/X11R4 |
5447 | |
6128 | |
5448 | /usr/local/X11/include |
6129 | /usr/local/X11/include |
|
|
6130 | /usr/local/X11R7/include |
5449 | /usr/local/X11R6/include |
6131 | /usr/local/X11R6/include |
5450 | /usr/local/X11R5/include |
6132 | /usr/local/X11R5/include |
5451 | /usr/local/X11R4/include |
6133 | /usr/local/X11R4/include |
5452 | |
6134 | |
5453 | /usr/local/include/X11 |
6135 | /usr/local/include/X11 |
|
|
6136 | /usr/local/include/X11R7 |
5454 | /usr/local/include/X11R6 |
6137 | /usr/local/include/X11R6 |
5455 | /usr/local/include/X11R5 |
6138 | /usr/local/include/X11R5 |
5456 | /usr/local/include/X11R4 |
6139 | /usr/local/include/X11R4 |
|
|
6140 | |
|
|
6141 | /opt/X11/include |
5457 | |
6142 | |
5458 | /usr/X386/include |
6143 | /usr/X386/include |
5459 | /usr/x386/include |
6144 | /usr/x386/include |
5460 | /usr/XFree86/include/X11 |
6145 | /usr/XFree86/include/X11 |
5461 | |
6146 | |
… | |
… | |
5470 | /usr/openwin/share/include' |
6155 | /usr/openwin/share/include' |
5471 | |
6156 | |
5472 | if test "$ac_x_includes" = no; then |
6157 | if test "$ac_x_includes" = no; then |
5473 | # Guess where to find include files, by looking for Xlib.h. |
6158 | # Guess where to find include files, by looking for Xlib.h. |
5474 | # First, try using that file with no special directory specified. |
6159 | # First, try using that file with no special directory specified. |
5475 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5476 | /* confdefs.h. */ |
|
|
5477 | _ACEOF |
|
|
5478 | cat confdefs.h >>conftest.$ac_ext |
6160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5479 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5480 | /* end confdefs.h. */ |
6161 | /* end confdefs.h. */ |
5481 | #include <X11/Xlib.h> |
6162 | #include <X11/Xlib.h> |
5482 | _ACEOF |
6163 | _ACEOF |
5483 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6164 | if ac_fn_cxx_try_cpp "$LINENO" |
5484 | case "(($ac_try" in |
6165 | then : |
5485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5486 | *) ac_try_echo=$ac_try;; |
|
|
5487 | esac |
|
|
5488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5489 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5490 | ac_status=$? |
|
|
5491 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5492 | rm -f conftest.er1 |
|
|
5493 | cat conftest.err >&5 |
|
|
5494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5495 | (exit $ac_status); } >/dev/null && { |
|
|
5496 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5497 | test ! -s conftest.err |
|
|
5498 | }; then |
|
|
5499 | # We can compile using X headers with no special include directory. |
6166 | # We can compile using X headers with no special include directory. |
5500 | ac_x_includes= |
6167 | ac_x_includes= |
5501 | else |
6168 | else $as_nop |
5502 | echo "$as_me: failed program was:" >&5 |
|
|
5503 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5504 | |
|
|
5505 | for ac_dir in $ac_x_header_dirs; do |
6169 | for ac_dir in $ac_x_header_dirs; do |
5506 | if test -r "$ac_dir/X11/Xlib.h"; then |
6170 | if test -r "$ac_dir/X11/Xlib.h"; then |
5507 | ac_x_includes=$ac_dir |
6171 | ac_x_includes=$ac_dir |
5508 | break |
6172 | break |
5509 | fi |
6173 | fi |
5510 | done |
6174 | done |
5511 | fi |
6175 | fi |
5512 | |
|
|
5513 | rm -f conftest.err conftest.$ac_ext |
6176 | rm -f conftest.err conftest.i conftest.$ac_ext |
5514 | fi # $ac_x_includes = no |
6177 | fi # $ac_x_includes = no |
5515 | |
6178 | |
5516 | if test "$ac_x_libraries" = no; then |
6179 | if test "$ac_x_libraries" = no; then |
5517 | # Check for the libraries. |
6180 | # Check for the libraries. |
5518 | # See if we find them without any special options. |
6181 | # See if we find them without any special options. |
5519 | # Don't add to $LIBS permanently. |
6182 | # Don't add to $LIBS permanently. |
5520 | ac_save_LIBS=$LIBS |
6183 | ac_save_LIBS=$LIBS |
5521 | LIBS="-lX11 $LIBS" |
6184 | LIBS="-lX11 $LIBS" |
5522 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5523 | /* confdefs.h. */ |
|
|
5524 | _ACEOF |
|
|
5525 | cat confdefs.h >>conftest.$ac_ext |
6185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5526 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5527 | /* end confdefs.h. */ |
6186 | /* end confdefs.h. */ |
5528 | #include <X11/Xlib.h> |
6187 | #include <X11/Xlib.h> |
5529 | int |
6188 | int |
5530 | main () |
6189 | main (void) |
5531 | { |
6190 | { |
5532 | XrmInitialize () |
6191 | XrmInitialize () |
5533 | ; |
6192 | ; |
5534 | return 0; |
6193 | return 0; |
5535 | } |
6194 | } |
5536 | _ACEOF |
6195 | _ACEOF |
5537 | rm -f conftest.$ac_objext conftest$ac_exeext |
6196 | if ac_fn_cxx_try_link "$LINENO" |
5538 | if { (ac_try="$ac_link" |
6197 | then : |
5539 | case "(($ac_try" in |
|
|
5540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5541 | *) ac_try_echo=$ac_try;; |
|
|
5542 | esac |
|
|
5543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5544 | (eval "$ac_link") 2>conftest.er1 |
|
|
5545 | ac_status=$? |
|
|
5546 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5547 | rm -f conftest.er1 |
|
|
5548 | cat conftest.err >&5 |
|
|
5549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5550 | (exit $ac_status); } && { |
|
|
5551 | test -z "$ac_cxx_werror_flag" || |
|
|
5552 | test ! -s conftest.err |
|
|
5553 | } && test -s conftest$ac_exeext && |
|
|
5554 | $as_test_x conftest$ac_exeext; then |
|
|
5555 | LIBS=$ac_save_LIBS |
6198 | LIBS=$ac_save_LIBS |
5556 | # We can link X programs with no special library path. |
6199 | # We can link X programs with no special library path. |
5557 | ac_x_libraries= |
6200 | ac_x_libraries= |
5558 | else |
6201 | else $as_nop |
5559 | echo "$as_me: failed program was:" >&5 |
|
|
5560 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5561 | |
|
|
5562 | LIBS=$ac_save_LIBS |
6202 | LIBS=$ac_save_LIBS |
5563 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
6203 | for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
5564 | do |
6204 | do |
5565 | # Don't even attempt the hair of trying to link an X program! |
6205 | # Don't even attempt the hair of trying to link an X program! |
5566 | for ac_extension in a so sl; do |
6206 | for ac_extension in a so sl dylib la dll; do |
5567 | if test -r "$ac_dir/libX11.$ac_extension"; then |
6207 | if test -r "$ac_dir/libX11.$ac_extension"; then |
5568 | ac_x_libraries=$ac_dir |
6208 | ac_x_libraries=$ac_dir |
5569 | break 2 |
6209 | break 2 |
5570 | fi |
6210 | fi |
5571 | done |
6211 | done |
5572 | done |
6212 | done |
5573 | fi |
6213 | fi |
5574 | |
|
|
5575 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6214 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5576 | conftest$ac_exeext conftest.$ac_ext |
6215 | conftest$ac_exeext conftest.$ac_ext |
5577 | fi # $ac_x_libraries = no |
6216 | fi # $ac_x_libraries = no |
5578 | |
6217 | |
|
|
6218 | fi |
|
|
6219 | # Record the results. |
5579 | case $ac_x_includes,$ac_x_libraries in #( |
6220 | case $ac_x_includes,$ac_x_libraries in #( |
5580 | no,* | *,no | *\'*) |
6221 | no,* | *,no | *\'*) : |
5581 | # Didn't find X, or a directory has "'" in its name. |
6222 | # Didn't find X, or a directory has "'" in its name. |
5582 | ac_cv_have_x="have_x=no";; #( |
6223 | ac_cv_have_x="have_x=no" ;; #( |
5583 | *) |
6224 | *) : |
5584 | # Record where we found X for the cache. |
6225 | # Record where we found X for the cache. |
5585 | ac_cv_have_x="have_x=yes\ |
6226 | ac_cv_have_x="have_x=yes\ |
5586 | ac_x_includes='$ac_x_includes'\ |
6227 | ac_x_includes='$ac_x_includes'\ |
5587 | ac_x_libraries='$ac_x_libraries'" |
6228 | ac_x_libraries='$ac_x_libraries'" ;; |
5588 | esac |
6229 | esac |
5589 | fi |
6230 | fi |
5590 | ;; #( |
6231 | ;; #( |
5591 | *) have_x=yes;; |
6232 | *) have_x=yes;; |
5592 | esac |
6233 | esac |
5593 | eval "$ac_cv_have_x" |
6234 | eval "$ac_cv_have_x" |
5594 | fi # $with_x != no |
6235 | fi # $with_x != no |
5595 | |
6236 | |
5596 | if test "$have_x" != yes; then |
6237 | if test "$have_x" != yes; then |
5597 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
6238 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
5598 | echo "${ECHO_T}$have_x" >&6; } |
6239 | printf "%s\n" "$have_x" >&6; } |
5599 | no_x=yes |
6240 | no_x=yes |
5600 | else |
6241 | else |
5601 | # If each of the values was on the command line, it overrides each guess. |
6242 | # If each of the values was on the command line, it overrides each guess. |
5602 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
6243 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
5603 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
6244 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
5604 | # Update the cache value to reflect the command line values. |
6245 | # Update the cache value to reflect the command line values. |
5605 | ac_cv_have_x="have_x=yes\ |
6246 | ac_cv_have_x="have_x=yes\ |
5606 | ac_x_includes='$x_includes'\ |
6247 | ac_x_includes='$x_includes'\ |
5607 | ac_x_libraries='$x_libraries'" |
6248 | ac_x_libraries='$x_libraries'" |
5608 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
6249 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
5609 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } |
6250 | printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; } |
5610 | fi |
6251 | fi |
5611 | |
6252 | |
5612 | if test "$no_x" = yes; then |
6253 | if test "$no_x" = yes; then |
5613 | # Not all programs may use this symbol, but it does not hurt to define it. |
6254 | # Not all programs may use this symbol, but it does not hurt to define it. |
5614 | |
6255 | |
5615 | cat >>confdefs.h <<\_ACEOF |
6256 | printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h |
5616 | #define X_DISPLAY_MISSING 1 |
|
|
5617 | _ACEOF |
|
|
5618 | |
6257 | |
5619 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
6258 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
5620 | else |
6259 | else |
5621 | if test -n "$x_includes"; then |
6260 | if test -n "$x_includes"; then |
5622 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
6261 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
… | |
… | |
5625 | # It would also be nice to do this for all -L options, not just this one. |
6264 | # It would also be nice to do this for all -L options, not just this one. |
5626 | if test -n "$x_libraries"; then |
6265 | if test -n "$x_libraries"; then |
5627 | X_LIBS="$X_LIBS -L$x_libraries" |
6266 | X_LIBS="$X_LIBS -L$x_libraries" |
5628 | # For Solaris; some versions of Sun CC require a space after -R and |
6267 | # For Solaris; some versions of Sun CC require a space after -R and |
5629 | # others require no space. Words are not sufficient . . . . |
6268 | # others require no space. Words are not sufficient . . . . |
5630 | { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
6269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
5631 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } |
6270 | printf %s "checking whether -R must be followed by a space... " >&6; } |
5632 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
6271 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
5633 | ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag |
6272 | ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag |
5634 | ac_cxx_werror_flag=yes |
6273 | ac_cxx_werror_flag=yes |
5635 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5636 | /* confdefs.h. */ |
|
|
5637 | _ACEOF |
|
|
5638 | cat confdefs.h >>conftest.$ac_ext |
6274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5639 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5640 | /* end confdefs.h. */ |
6275 | /* end confdefs.h. */ |
5641 | |
6276 | |
5642 | int |
6277 | int |
5643 | main () |
6278 | main (void) |
5644 | { |
6279 | { |
5645 | |
6280 | |
5646 | ; |
6281 | ; |
5647 | return 0; |
6282 | return 0; |
5648 | } |
6283 | } |
5649 | _ACEOF |
6284 | _ACEOF |
5650 | rm -f conftest.$ac_objext conftest$ac_exeext |
6285 | if ac_fn_cxx_try_link "$LINENO" |
5651 | if { (ac_try="$ac_link" |
6286 | then : |
5652 | case "(($ac_try" in |
6287 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6288 | printf "%s\n" "no" >&6; } |
5654 | *) ac_try_echo=$ac_try;; |
|
|
5655 | esac |
|
|
5656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5657 | (eval "$ac_link") 2>conftest.er1 |
|
|
5658 | ac_status=$? |
|
|
5659 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5660 | rm -f conftest.er1 |
|
|
5661 | cat conftest.err >&5 |
|
|
5662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5663 | (exit $ac_status); } && { |
|
|
5664 | test -z "$ac_cxx_werror_flag" || |
|
|
5665 | test ! -s conftest.err |
|
|
5666 | } && test -s conftest$ac_exeext && |
|
|
5667 | $as_test_x conftest$ac_exeext; then |
|
|
5668 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5669 | echo "${ECHO_T}no" >&6; } |
|
|
5670 | X_LIBS="$X_LIBS -R$x_libraries" |
6289 | X_LIBS="$X_LIBS -R$x_libraries" |
5671 | else |
6290 | else $as_nop |
5672 | echo "$as_me: failed program was:" >&5 |
|
|
5673 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5674 | |
|
|
5675 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
6291 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
5676 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5677 | /* confdefs.h. */ |
|
|
5678 | _ACEOF |
|
|
5679 | cat confdefs.h >>conftest.$ac_ext |
6292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5680 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5681 | /* end confdefs.h. */ |
6293 | /* end confdefs.h. */ |
5682 | |
6294 | |
5683 | int |
6295 | int |
5684 | main () |
6296 | main (void) |
5685 | { |
6297 | { |
5686 | |
6298 | |
5687 | ; |
6299 | ; |
5688 | return 0; |
6300 | return 0; |
5689 | } |
6301 | } |
5690 | _ACEOF |
6302 | _ACEOF |
5691 | rm -f conftest.$ac_objext conftest$ac_exeext |
6303 | if ac_fn_cxx_try_link "$LINENO" |
5692 | if { (ac_try="$ac_link" |
6304 | then : |
5693 | case "(($ac_try" in |
6305 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6306 | printf "%s\n" "yes" >&6; } |
5695 | *) ac_try_echo=$ac_try;; |
|
|
5696 | esac |
|
|
5697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5698 | (eval "$ac_link") 2>conftest.er1 |
|
|
5699 | ac_status=$? |
|
|
5700 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5701 | rm -f conftest.er1 |
|
|
5702 | cat conftest.err >&5 |
|
|
5703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5704 | (exit $ac_status); } && { |
|
|
5705 | test -z "$ac_cxx_werror_flag" || |
|
|
5706 | test ! -s conftest.err |
|
|
5707 | } && test -s conftest$ac_exeext && |
|
|
5708 | $as_test_x conftest$ac_exeext; then |
|
|
5709 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
5710 | echo "${ECHO_T}yes" >&6; } |
|
|
5711 | X_LIBS="$X_LIBS -R $x_libraries" |
6307 | X_LIBS="$X_LIBS -R $x_libraries" |
5712 | else |
6308 | else $as_nop |
5713 | echo "$as_me: failed program was:" >&5 |
6309 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
5714 | sed 's/^/| /' conftest.$ac_ext >&5 |
6310 | printf "%s\n" "neither works" >&6; } |
5715 | |
|
|
5716 | { echo "$as_me:$LINENO: result: neither works" >&5 |
|
|
5717 | echo "${ECHO_T}neither works" >&6; } |
|
|
5718 | fi |
6311 | fi |
5719 | |
|
|
5720 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6312 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5721 | conftest$ac_exeext conftest.$ac_ext |
6313 | conftest$ac_exeext conftest.$ac_ext |
5722 | fi |
6314 | fi |
5723 | |
|
|
5724 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6315 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5725 | conftest$ac_exeext conftest.$ac_ext |
6316 | conftest$ac_exeext conftest.$ac_ext |
5726 | ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag |
6317 | ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag |
5727 | LIBS=$ac_xsave_LIBS |
6318 | LIBS=$ac_xsave_LIBS |
5728 | fi |
6319 | fi |
5729 | |
6320 | |
5730 | # Check for system-dependent libraries X programs must link with. |
6321 | # Check for system-dependent libraries X programs must link with. |
… | |
… | |
5736 | else |
6327 | else |
5737 | # Martyn Johnson says this is needed for Ultrix, if the X |
6328 | # Martyn Johnson says this is needed for Ultrix, if the X |
5738 | # libraries were built with DECnet support. And Karl Berry says |
6329 | # libraries were built with DECnet support. And Karl Berry says |
5739 | # the Alpha needs dnet_stub (dnet does not exist). |
6330 | # the Alpha needs dnet_stub (dnet does not exist). |
5740 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
6331 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
5741 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5742 | /* confdefs.h. */ |
|
|
5743 | _ACEOF |
|
|
5744 | cat confdefs.h >>conftest.$ac_ext |
6332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5745 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5746 | /* end confdefs.h. */ |
6333 | /* end confdefs.h. */ |
5747 | |
6334 | |
5748 | /* Override any GCC internal prototype to avoid an error. |
6335 | namespace conftest { |
5749 | Use char because int might match the return type of a GCC |
6336 | extern "C" int XOpenDisplay (); |
5750 | builtin and then its argument prototype would still apply. */ |
6337 | } |
5751 | #ifdef __cplusplus |
|
|
5752 | extern "C" |
|
|
5753 | #endif |
|
|
5754 | char XOpenDisplay (); |
|
|
5755 | int |
6338 | int |
5756 | main () |
6339 | main (void) |
5757 | { |
6340 | { |
5758 | return XOpenDisplay (); |
6341 | return conftest::XOpenDisplay (); |
5759 | ; |
6342 | ; |
5760 | return 0; |
6343 | return 0; |
5761 | } |
6344 | } |
5762 | _ACEOF |
6345 | _ACEOF |
5763 | rm -f conftest.$ac_objext conftest$ac_exeext |
6346 | if ac_fn_cxx_try_link "$LINENO" |
5764 | if { (ac_try="$ac_link" |
6347 | then : |
5765 | case "(($ac_try" in |
|
|
5766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5767 | *) ac_try_echo=$ac_try;; |
|
|
5768 | esac |
|
|
5769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5770 | (eval "$ac_link") 2>conftest.er1 |
|
|
5771 | ac_status=$? |
|
|
5772 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5773 | rm -f conftest.er1 |
|
|
5774 | cat conftest.err >&5 |
|
|
5775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5776 | (exit $ac_status); } && { |
|
|
5777 | test -z "$ac_cxx_werror_flag" || |
|
|
5778 | test ! -s conftest.err |
|
|
5779 | } && test -s conftest$ac_exeext && |
|
|
5780 | $as_test_x conftest$ac_exeext; then |
|
|
5781 | : |
|
|
5782 | else |
|
|
5783 | echo "$as_me: failed program was:" >&5 |
|
|
5784 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5785 | |
6348 | |
|
|
6349 | else $as_nop |
5786 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
6350 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
5787 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } |
6351 | printf %s "checking for dnet_ntoa in -ldnet... " >&6; } |
5788 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
6352 | if test ${ac_cv_lib_dnet_dnet_ntoa+y} |
5789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6353 | then : |
5790 | else |
6354 | printf %s "(cached) " >&6 |
|
|
6355 | else $as_nop |
5791 | ac_check_lib_save_LIBS=$LIBS |
6356 | ac_check_lib_save_LIBS=$LIBS |
5792 | LIBS="-ldnet $LIBS" |
6357 | LIBS="-ldnet $LIBS" |
5793 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5794 | /* confdefs.h. */ |
|
|
5795 | _ACEOF |
|
|
5796 | cat confdefs.h >>conftest.$ac_ext |
6358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5797 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5798 | /* end confdefs.h. */ |
6359 | /* end confdefs.h. */ |
5799 | |
6360 | |
5800 | /* Override any GCC internal prototype to avoid an error. |
6361 | namespace conftest { |
5801 | Use char because int might match the return type of a GCC |
6362 | extern "C" int dnet_ntoa (); |
5802 | builtin and then its argument prototype would still apply. */ |
6363 | } |
5803 | #ifdef __cplusplus |
|
|
5804 | extern "C" |
|
|
5805 | #endif |
|
|
5806 | char dnet_ntoa (); |
|
|
5807 | int |
6364 | int |
5808 | main () |
6365 | main (void) |
5809 | { |
6366 | { |
5810 | return dnet_ntoa (); |
6367 | return conftest::dnet_ntoa (); |
5811 | ; |
6368 | ; |
5812 | return 0; |
6369 | return 0; |
5813 | } |
6370 | } |
5814 | _ACEOF |
6371 | _ACEOF |
5815 | rm -f conftest.$ac_objext conftest$ac_exeext |
6372 | if ac_fn_cxx_try_link "$LINENO" |
5816 | if { (ac_try="$ac_link" |
6373 | then : |
5817 | case "(($ac_try" in |
|
|
5818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5819 | *) ac_try_echo=$ac_try;; |
|
|
5820 | esac |
|
|
5821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5822 | (eval "$ac_link") 2>conftest.er1 |
|
|
5823 | ac_status=$? |
|
|
5824 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5825 | rm -f conftest.er1 |
|
|
5826 | cat conftest.err >&5 |
|
|
5827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5828 | (exit $ac_status); } && { |
|
|
5829 | test -z "$ac_cxx_werror_flag" || |
|
|
5830 | test ! -s conftest.err |
|
|
5831 | } && test -s conftest$ac_exeext && |
|
|
5832 | $as_test_x conftest$ac_exeext; then |
|
|
5833 | ac_cv_lib_dnet_dnet_ntoa=yes |
6374 | ac_cv_lib_dnet_dnet_ntoa=yes |
5834 | else |
6375 | else $as_nop |
5835 | echo "$as_me: failed program was:" >&5 |
|
|
5836 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5837 | |
|
|
5838 | ac_cv_lib_dnet_dnet_ntoa=no |
6376 | ac_cv_lib_dnet_dnet_ntoa=no |
5839 | fi |
6377 | fi |
5840 | |
|
|
5841 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6378 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5842 | conftest$ac_exeext conftest.$ac_ext |
6379 | conftest$ac_exeext conftest.$ac_ext |
5843 | LIBS=$ac_check_lib_save_LIBS |
6380 | LIBS=$ac_check_lib_save_LIBS |
5844 | fi |
6381 | fi |
5845 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
6382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
5846 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
6383 | printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
5847 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
6384 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes |
|
|
6385 | then : |
5848 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
6386 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
5849 | fi |
6387 | fi |
5850 | |
6388 | |
5851 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
6389 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
5852 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
6390 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
5853 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } |
6391 | printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
5854 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
6392 | if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y} |
5855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6393 | then : |
5856 | else |
6394 | printf %s "(cached) " >&6 |
|
|
6395 | else $as_nop |
5857 | ac_check_lib_save_LIBS=$LIBS |
6396 | ac_check_lib_save_LIBS=$LIBS |
5858 | LIBS="-ldnet_stub $LIBS" |
6397 | LIBS="-ldnet_stub $LIBS" |
5859 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5860 | /* confdefs.h. */ |
|
|
5861 | _ACEOF |
|
|
5862 | cat confdefs.h >>conftest.$ac_ext |
6398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5863 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5864 | /* end confdefs.h. */ |
6399 | /* end confdefs.h. */ |
5865 | |
6400 | |
5866 | /* Override any GCC internal prototype to avoid an error. |
6401 | namespace conftest { |
5867 | Use char because int might match the return type of a GCC |
6402 | extern "C" int dnet_ntoa (); |
5868 | builtin and then its argument prototype would still apply. */ |
6403 | } |
5869 | #ifdef __cplusplus |
|
|
5870 | extern "C" |
|
|
5871 | #endif |
|
|
5872 | char dnet_ntoa (); |
|
|
5873 | int |
6404 | int |
5874 | main () |
6405 | main (void) |
5875 | { |
6406 | { |
5876 | return dnet_ntoa (); |
6407 | return conftest::dnet_ntoa (); |
5877 | ; |
6408 | ; |
5878 | return 0; |
6409 | return 0; |
5879 | } |
6410 | } |
5880 | _ACEOF |
6411 | _ACEOF |
5881 | rm -f conftest.$ac_objext conftest$ac_exeext |
6412 | if ac_fn_cxx_try_link "$LINENO" |
5882 | if { (ac_try="$ac_link" |
6413 | then : |
5883 | case "(($ac_try" in |
|
|
5884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5885 | *) ac_try_echo=$ac_try;; |
|
|
5886 | esac |
|
|
5887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5888 | (eval "$ac_link") 2>conftest.er1 |
|
|
5889 | ac_status=$? |
|
|
5890 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5891 | rm -f conftest.er1 |
|
|
5892 | cat conftest.err >&5 |
|
|
5893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5894 | (exit $ac_status); } && { |
|
|
5895 | test -z "$ac_cxx_werror_flag" || |
|
|
5896 | test ! -s conftest.err |
|
|
5897 | } && test -s conftest$ac_exeext && |
|
|
5898 | $as_test_x conftest$ac_exeext; then |
|
|
5899 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
6414 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
5900 | else |
6415 | else $as_nop |
5901 | echo "$as_me: failed program was:" >&5 |
|
|
5902 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5903 | |
|
|
5904 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
6416 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
5905 | fi |
6417 | fi |
5906 | |
|
|
5907 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6418 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5908 | conftest$ac_exeext conftest.$ac_ext |
6419 | conftest$ac_exeext conftest.$ac_ext |
5909 | LIBS=$ac_check_lib_save_LIBS |
6420 | LIBS=$ac_check_lib_save_LIBS |
5910 | fi |
6421 | fi |
5911 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
6422 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
5912 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
6423 | printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
5913 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
6424 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes |
|
|
6425 | then : |
5914 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
6426 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
5915 | fi |
6427 | fi |
5916 | |
6428 | |
5917 | fi |
6429 | fi |
5918 | fi |
6430 | fi |
5919 | |
|
|
5920 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6431 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5921 | conftest$ac_exeext conftest.$ac_ext |
6432 | conftest$ac_exeext conftest.$ac_ext |
5922 | LIBS="$ac_xsave_LIBS" |
6433 | LIBS="$ac_xsave_LIBS" |
5923 | |
6434 | |
5924 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
6435 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
5925 | # to get the SysV transport functions. |
6436 | # to get the SysV transport functions. |
5926 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
6437 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
5927 | # needs -lnsl. |
6438 | # needs -lnsl. |
5928 | # The nsl library prevents programs from opening the X display |
6439 | # The nsl library prevents programs from opening the X display |
5929 | # on Irix 5.2, according to T.E. Dickey. |
6440 | # on Irix 5.2, according to T.E. Dickey. |
5930 | # The functions gethostbyname, getservbyname, and inet_addr are |
6441 | # The functions gethostbyname, getservbyname, and inet_addr are |
5931 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
6442 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
5932 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
6443 | ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
5933 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } |
6444 | if test "x$ac_cv_func_gethostbyname" = xyes |
|
|
6445 | then : |
|
|
6446 | |
|
|
6447 | fi |
|
|
6448 | |
5934 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
6449 | if test $ac_cv_func_gethostbyname = no; then |
5935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6450 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
5936 | else |
6451 | printf %s "checking for gethostbyname in -lnsl... " >&6; } |
5937 | cat >conftest.$ac_ext <<_ACEOF |
6452 | if test ${ac_cv_lib_nsl_gethostbyname+y} |
5938 | /* confdefs.h. */ |
6453 | then : |
5939 | _ACEOF |
6454 | printf %s "(cached) " >&6 |
|
|
6455 | else $as_nop |
|
|
6456 | ac_check_lib_save_LIBS=$LIBS |
|
|
6457 | LIBS="-lnsl $LIBS" |
5940 | cat confdefs.h >>conftest.$ac_ext |
6458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5941 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5942 | /* end confdefs.h. */ |
6459 | /* end confdefs.h. */ |
5943 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
|
|
5944 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5945 | #define gethostbyname innocuous_gethostbyname |
|
|
5946 | |
6460 | |
5947 | /* System header to define __stub macros and hopefully few prototypes, |
6461 | namespace conftest { |
5948 | which can conflict with char gethostbyname (); below. |
6462 | extern "C" int gethostbyname (); |
5949 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6463 | } |
5950 | <limits.h> exists even on freestanding compilers. */ |
|
|
5951 | |
|
|
5952 | #ifdef __STDC__ |
|
|
5953 | # include <limits.h> |
|
|
5954 | #else |
|
|
5955 | # include <assert.h> |
|
|
5956 | #endif |
|
|
5957 | |
|
|
5958 | #undef gethostbyname |
|
|
5959 | |
|
|
5960 | /* Override any GCC internal prototype to avoid an error. |
|
|
5961 | Use char because int might match the return type of a GCC |
|
|
5962 | builtin and then its argument prototype would still apply. */ |
|
|
5963 | #ifdef __cplusplus |
|
|
5964 | extern "C" |
|
|
5965 | #endif |
|
|
5966 | char gethostbyname (); |
|
|
5967 | /* The GNU C library defines this for functions which it implements |
|
|
5968 | to always fail with ENOSYS. Some functions are actually named |
|
|
5969 | something starting with __ and the normal name is an alias. */ |
|
|
5970 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
|
|
5971 | choke me |
|
|
5972 | #endif |
|
|
5973 | |
|
|
5974 | int |
6464 | int |
5975 | main () |
6465 | main (void) |
5976 | { |
6466 | { |
5977 | return gethostbyname (); |
6467 | return conftest::gethostbyname (); |
5978 | ; |
6468 | ; |
5979 | return 0; |
6469 | return 0; |
5980 | } |
6470 | } |
5981 | _ACEOF |
6471 | _ACEOF |
5982 | rm -f conftest.$ac_objext conftest$ac_exeext |
6472 | if ac_fn_cxx_try_link "$LINENO" |
5983 | if { (ac_try="$ac_link" |
6473 | then : |
5984 | case "(($ac_try" in |
|
|
5985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5986 | *) ac_try_echo=$ac_try;; |
|
|
5987 | esac |
|
|
5988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5989 | (eval "$ac_link") 2>conftest.er1 |
|
|
5990 | ac_status=$? |
|
|
5991 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5992 | rm -f conftest.er1 |
|
|
5993 | cat conftest.err >&5 |
|
|
5994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5995 | (exit $ac_status); } && { |
|
|
5996 | test -z "$ac_cxx_werror_flag" || |
|
|
5997 | test ! -s conftest.err |
|
|
5998 | } && test -s conftest$ac_exeext && |
|
|
5999 | $as_test_x conftest$ac_exeext; then |
|
|
6000 | ac_cv_func_gethostbyname=yes |
6474 | ac_cv_lib_nsl_gethostbyname=yes |
6001 | else |
6475 | else $as_nop |
6002 | echo "$as_me: failed program was:" >&5 |
|
|
6003 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6004 | |
|
|
6005 | ac_cv_func_gethostbyname=no |
6476 | ac_cv_lib_nsl_gethostbyname=no |
6006 | fi |
6477 | fi |
6007 | |
|
|
6008 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6478 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6009 | conftest$ac_exeext conftest.$ac_ext |
6479 | conftest$ac_exeext conftest.$ac_ext |
|
|
6480 | LIBS=$ac_check_lib_save_LIBS |
6010 | fi |
6481 | fi |
6011 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
6482 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
6012 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } |
6483 | printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } |
|
|
6484 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes |
|
|
6485 | then : |
|
|
6486 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
|
|
6487 | fi |
6013 | |
6488 | |
6014 | if test $ac_cv_func_gethostbyname = no; then |
6489 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
6015 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
6490 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
6016 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
6491 | printf %s "checking for gethostbyname in -lbsd... " >&6; } |
6017 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
6492 | if test ${ac_cv_lib_bsd_gethostbyname+y} |
6018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6493 | then : |
6019 | else |
6494 | printf %s "(cached) " >&6 |
|
|
6495 | else $as_nop |
6020 | ac_check_lib_save_LIBS=$LIBS |
6496 | ac_check_lib_save_LIBS=$LIBS |
6021 | LIBS="-lnsl $LIBS" |
6497 | LIBS="-lbsd $LIBS" |
6022 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6023 | /* confdefs.h. */ |
|
|
6024 | _ACEOF |
|
|
6025 | cat confdefs.h >>conftest.$ac_ext |
6498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6026 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6027 | /* end confdefs.h. */ |
6499 | /* end confdefs.h. */ |
6028 | |
6500 | |
6029 | /* Override any GCC internal prototype to avoid an error. |
6501 | namespace conftest { |
6030 | Use char because int might match the return type of a GCC |
6502 | extern "C" int gethostbyname (); |
6031 | builtin and then its argument prototype would still apply. */ |
6503 | } |
6032 | #ifdef __cplusplus |
|
|
6033 | extern "C" |
|
|
6034 | #endif |
|
|
6035 | char gethostbyname (); |
|
|
6036 | int |
6504 | int |
6037 | main () |
6505 | main (void) |
6038 | { |
6506 | { |
6039 | return gethostbyname (); |
6507 | return conftest::gethostbyname (); |
6040 | ; |
6508 | ; |
6041 | return 0; |
6509 | return 0; |
6042 | } |
6510 | } |
6043 | _ACEOF |
6511 | _ACEOF |
6044 | rm -f conftest.$ac_objext conftest$ac_exeext |
6512 | if ac_fn_cxx_try_link "$LINENO" |
6045 | if { (ac_try="$ac_link" |
6513 | then : |
6046 | case "(($ac_try" in |
|
|
6047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6048 | *) ac_try_echo=$ac_try;; |
|
|
6049 | esac |
|
|
6050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6051 | (eval "$ac_link") 2>conftest.er1 |
|
|
6052 | ac_status=$? |
|
|
6053 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6054 | rm -f conftest.er1 |
|
|
6055 | cat conftest.err >&5 |
|
|
6056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6057 | (exit $ac_status); } && { |
|
|
6058 | test -z "$ac_cxx_werror_flag" || |
|
|
6059 | test ! -s conftest.err |
|
|
6060 | } && test -s conftest$ac_exeext && |
|
|
6061 | $as_test_x conftest$ac_exeext; then |
|
|
6062 | ac_cv_lib_nsl_gethostbyname=yes |
6514 | ac_cv_lib_bsd_gethostbyname=yes |
6063 | else |
6515 | else $as_nop |
6064 | echo "$as_me: failed program was:" >&5 |
|
|
6065 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6066 | |
|
|
6067 | ac_cv_lib_nsl_gethostbyname=no |
6516 | ac_cv_lib_bsd_gethostbyname=no |
6068 | fi |
6517 | fi |
6069 | |
|
|
6070 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6518 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6071 | conftest$ac_exeext conftest.$ac_ext |
6519 | conftest$ac_exeext conftest.$ac_ext |
6072 | LIBS=$ac_check_lib_save_LIBS |
6520 | LIBS=$ac_check_lib_save_LIBS |
6073 | fi |
6521 | fi |
6074 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
|
|
6075 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
|
|
6076 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
|
|
6077 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
|
|
6078 | fi |
|
|
6079 | |
|
|
6080 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
|
|
6081 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
|
|
6082 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } |
|
|
6083 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
|
|
6084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6085 | else |
|
|
6086 | ac_check_lib_save_LIBS=$LIBS |
|
|
6087 | LIBS="-lbsd $LIBS" |
|
|
6088 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6089 | /* confdefs.h. */ |
|
|
6090 | _ACEOF |
|
|
6091 | cat confdefs.h >>conftest.$ac_ext |
|
|
6092 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6093 | /* end confdefs.h. */ |
|
|
6094 | |
|
|
6095 | /* Override any GCC internal prototype to avoid an error. |
|
|
6096 | Use char because int might match the return type of a GCC |
|
|
6097 | builtin and then its argument prototype would still apply. */ |
|
|
6098 | #ifdef __cplusplus |
|
|
6099 | extern "C" |
|
|
6100 | #endif |
|
|
6101 | char gethostbyname (); |
|
|
6102 | int |
|
|
6103 | main () |
|
|
6104 | { |
|
|
6105 | return gethostbyname (); |
|
|
6106 | ; |
|
|
6107 | return 0; |
|
|
6108 | } |
|
|
6109 | _ACEOF |
|
|
6110 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6111 | if { (ac_try="$ac_link" |
|
|
6112 | case "(($ac_try" in |
|
|
6113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6114 | *) ac_try_echo=$ac_try;; |
|
|
6115 | esac |
|
|
6116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6117 | (eval "$ac_link") 2>conftest.er1 |
|
|
6118 | ac_status=$? |
|
|
6119 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6120 | rm -f conftest.er1 |
|
|
6121 | cat conftest.err >&5 |
|
|
6122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6123 | (exit $ac_status); } && { |
|
|
6124 | test -z "$ac_cxx_werror_flag" || |
|
|
6125 | test ! -s conftest.err |
|
|
6126 | } && test -s conftest$ac_exeext && |
|
|
6127 | $as_test_x conftest$ac_exeext; then |
|
|
6128 | ac_cv_lib_bsd_gethostbyname=yes |
|
|
6129 | else |
|
|
6130 | echo "$as_me: failed program was:" >&5 |
|
|
6131 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6132 | |
|
|
6133 | ac_cv_lib_bsd_gethostbyname=no |
|
|
6134 | fi |
|
|
6135 | |
|
|
6136 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6137 | conftest$ac_exeext conftest.$ac_ext |
|
|
6138 | LIBS=$ac_check_lib_save_LIBS |
|
|
6139 | fi |
|
|
6140 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
6522 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
6141 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } |
6523 | printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; } |
6142 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
6524 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes |
|
|
6525 | then : |
6143 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
6526 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
6144 | fi |
6527 | fi |
6145 | |
6528 | |
6146 | fi |
6529 | fi |
6147 | fi |
6530 | fi |
… | |
… | |
6151 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
6534 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
6152 | # on later versions), says Simon Leinen: it contains gethostby* |
6535 | # on later versions), says Simon Leinen: it contains gethostby* |
6153 | # variants that don't use the name server (or something). -lsocket |
6536 | # variants that don't use the name server (or something). -lsocket |
6154 | # must be given before -lnsl if both are needed. We assume that |
6537 | # must be given before -lnsl if both are needed. We assume that |
6155 | # if connect needs -lnsl, so does gethostbyname. |
6538 | # if connect needs -lnsl, so does gethostbyname. |
6156 | { echo "$as_me:$LINENO: checking for connect" >&5 |
6539 | ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" |
6157 | echo $ECHO_N "checking for connect... $ECHO_C" >&6; } |
6540 | if test "x$ac_cv_func_connect" = xyes |
|
|
6541 | then : |
|
|
6542 | |
|
|
6543 | fi |
|
|
6544 | |
6158 | if test "${ac_cv_func_connect+set}" = set; then |
6545 | if test $ac_cv_func_connect = no; then |
6159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6546 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
6160 | else |
6547 | printf %s "checking for connect in -lsocket... " >&6; } |
6161 | cat >conftest.$ac_ext <<_ACEOF |
6548 | if test ${ac_cv_lib_socket_connect+y} |
6162 | /* confdefs.h. */ |
6549 | then : |
6163 | _ACEOF |
6550 | printf %s "(cached) " >&6 |
|
|
6551 | else $as_nop |
|
|
6552 | ac_check_lib_save_LIBS=$LIBS |
|
|
6553 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
6164 | cat confdefs.h >>conftest.$ac_ext |
6554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6165 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6166 | /* end confdefs.h. */ |
6555 | /* end confdefs.h. */ |
6167 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
|
|
6168 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6169 | #define connect innocuous_connect |
|
|
6170 | |
6556 | |
6171 | /* System header to define __stub macros and hopefully few prototypes, |
6557 | namespace conftest { |
6172 | which can conflict with char connect (); below. |
6558 | extern "C" int connect (); |
6173 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6559 | } |
6174 | <limits.h> exists even on freestanding compilers. */ |
|
|
6175 | |
|
|
6176 | #ifdef __STDC__ |
|
|
6177 | # include <limits.h> |
|
|
6178 | #else |
|
|
6179 | # include <assert.h> |
|
|
6180 | #endif |
|
|
6181 | |
|
|
6182 | #undef connect |
|
|
6183 | |
|
|
6184 | /* Override any GCC internal prototype to avoid an error. |
|
|
6185 | Use char because int might match the return type of a GCC |
|
|
6186 | builtin and then its argument prototype would still apply. */ |
|
|
6187 | #ifdef __cplusplus |
|
|
6188 | extern "C" |
|
|
6189 | #endif |
|
|
6190 | char connect (); |
|
|
6191 | /* The GNU C library defines this for functions which it implements |
|
|
6192 | to always fail with ENOSYS. Some functions are actually named |
|
|
6193 | something starting with __ and the normal name is an alias. */ |
|
|
6194 | #if defined __stub_connect || defined __stub___connect |
|
|
6195 | choke me |
|
|
6196 | #endif |
|
|
6197 | |
|
|
6198 | int |
6560 | int |
6199 | main () |
6561 | main (void) |
6200 | { |
6562 | { |
6201 | return connect (); |
6563 | return conftest::connect (); |
6202 | ; |
6564 | ; |
6203 | return 0; |
6565 | return 0; |
6204 | } |
6566 | } |
6205 | _ACEOF |
6567 | _ACEOF |
6206 | rm -f conftest.$ac_objext conftest$ac_exeext |
6568 | if ac_fn_cxx_try_link "$LINENO" |
6207 | if { (ac_try="$ac_link" |
6569 | then : |
6208 | case "(($ac_try" in |
|
|
6209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6210 | *) ac_try_echo=$ac_try;; |
|
|
6211 | esac |
|
|
6212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6213 | (eval "$ac_link") 2>conftest.er1 |
|
|
6214 | ac_status=$? |
|
|
6215 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6216 | rm -f conftest.er1 |
|
|
6217 | cat conftest.err >&5 |
|
|
6218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6219 | (exit $ac_status); } && { |
|
|
6220 | test -z "$ac_cxx_werror_flag" || |
|
|
6221 | test ! -s conftest.err |
|
|
6222 | } && test -s conftest$ac_exeext && |
|
|
6223 | $as_test_x conftest$ac_exeext; then |
|
|
6224 | ac_cv_func_connect=yes |
6570 | ac_cv_lib_socket_connect=yes |
6225 | else |
6571 | else $as_nop |
6226 | echo "$as_me: failed program was:" >&5 |
6572 | ac_cv_lib_socket_connect=no |
6227 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6228 | |
|
|
6229 | ac_cv_func_connect=no |
|
|
6230 | fi |
6573 | fi |
6231 | |
|
|
6232 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6574 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6233 | conftest$ac_exeext conftest.$ac_ext |
6575 | conftest$ac_exeext conftest.$ac_ext |
|
|
6576 | LIBS=$ac_check_lib_save_LIBS |
6234 | fi |
6577 | fi |
6235 | { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
6578 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
6236 | echo "${ECHO_T}$ac_cv_func_connect" >&6; } |
6579 | printf "%s\n" "$ac_cv_lib_socket_connect" >&6; } |
|
|
6580 | if test "x$ac_cv_lib_socket_connect" = xyes |
|
|
6581 | then : |
|
|
6582 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
|
|
6583 | fi |
6237 | |
6584 | |
|
|
6585 | fi |
|
|
6586 | |
|
|
6587 | # Guillermo Gomez says -lposix is necessary on A/UX. |
|
|
6588 | ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" |
|
|
6589 | if test "x$ac_cv_func_remove" = xyes |
|
|
6590 | then : |
|
|
6591 | |
|
|
6592 | fi |
|
|
6593 | |
6238 | if test $ac_cv_func_connect = no; then |
6594 | if test $ac_cv_func_remove = no; then |
6239 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
6595 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
6240 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } |
6596 | printf %s "checking for remove in -lposix... " >&6; } |
6241 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
6597 | if test ${ac_cv_lib_posix_remove+y} |
6242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6598 | then : |
6243 | else |
6599 | printf %s "(cached) " >&6 |
|
|
6600 | else $as_nop |
6244 | ac_check_lib_save_LIBS=$LIBS |
6601 | ac_check_lib_save_LIBS=$LIBS |
6245 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
6602 | LIBS="-lposix $LIBS" |
6246 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6247 | /* confdefs.h. */ |
|
|
6248 | _ACEOF |
|
|
6249 | cat confdefs.h >>conftest.$ac_ext |
6603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6250 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6251 | /* end confdefs.h. */ |
6604 | /* end confdefs.h. */ |
6252 | |
6605 | |
6253 | /* Override any GCC internal prototype to avoid an error. |
6606 | namespace conftest { |
6254 | Use char because int might match the return type of a GCC |
6607 | extern "C" int remove (); |
6255 | builtin and then its argument prototype would still apply. */ |
6608 | } |
6256 | #ifdef __cplusplus |
|
|
6257 | extern "C" |
|
|
6258 | #endif |
|
|
6259 | char connect (); |
|
|
6260 | int |
6609 | int |
6261 | main () |
6610 | main (void) |
6262 | { |
6611 | { |
6263 | return connect (); |
6612 | return conftest::remove (); |
6264 | ; |
6613 | ; |
6265 | return 0; |
6614 | return 0; |
6266 | } |
6615 | } |
6267 | _ACEOF |
6616 | _ACEOF |
6268 | rm -f conftest.$ac_objext conftest$ac_exeext |
6617 | if ac_fn_cxx_try_link "$LINENO" |
6269 | if { (ac_try="$ac_link" |
6618 | then : |
6270 | case "(($ac_try" in |
6619 | ac_cv_lib_posix_remove=yes |
6271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6620 | else $as_nop |
6272 | *) ac_try_echo=$ac_try;; |
6621 | ac_cv_lib_posix_remove=no |
6273 | esac |
|
|
6274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6275 | (eval "$ac_link") 2>conftest.er1 |
|
|
6276 | ac_status=$? |
|
|
6277 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6278 | rm -f conftest.er1 |
|
|
6279 | cat conftest.err >&5 |
|
|
6280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6281 | (exit $ac_status); } && { |
|
|
6282 | test -z "$ac_cxx_werror_flag" || |
|
|
6283 | test ! -s conftest.err |
|
|
6284 | } && test -s conftest$ac_exeext && |
|
|
6285 | $as_test_x conftest$ac_exeext; then |
|
|
6286 | ac_cv_lib_socket_connect=yes |
|
|
6287 | else |
|
|
6288 | echo "$as_me: failed program was:" >&5 |
|
|
6289 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6290 | |
|
|
6291 | ac_cv_lib_socket_connect=no |
|
|
6292 | fi |
6622 | fi |
6293 | |
|
|
6294 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6623 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6295 | conftest$ac_exeext conftest.$ac_ext |
6624 | conftest$ac_exeext conftest.$ac_ext |
6296 | LIBS=$ac_check_lib_save_LIBS |
6625 | LIBS=$ac_check_lib_save_LIBS |
6297 | fi |
6626 | fi |
6298 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
6627 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
6299 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } |
6628 | printf "%s\n" "$ac_cv_lib_posix_remove" >&6; } |
6300 | if test $ac_cv_lib_socket_connect = yes; then |
6629 | if test "x$ac_cv_lib_posix_remove" = xyes |
|
|
6630 | then : |
6301 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
6631 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
6302 | fi |
6632 | fi |
6303 | |
6633 | |
6304 | fi |
6634 | fi |
6305 | |
6635 | |
6306 | # Guillermo Gomez says -lposix is necessary on A/UX. |
6636 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
6307 | { echo "$as_me:$LINENO: checking for remove" >&5 |
6637 | ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
6308 | echo $ECHO_N "checking for remove... $ECHO_C" >&6; } |
6638 | if test "x$ac_cv_func_shmat" = xyes |
6309 | if test "${ac_cv_func_remove+set}" = set; then |
6639 | then : |
6310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6640 | |
6311 | else |
6641 | fi |
6312 | cat >conftest.$ac_ext <<_ACEOF |
6642 | |
6313 | /* confdefs.h. */ |
6643 | if test $ac_cv_func_shmat = no; then |
6314 | _ACEOF |
6644 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
|
|
6645 | printf %s "checking for shmat in -lipc... " >&6; } |
|
|
6646 | if test ${ac_cv_lib_ipc_shmat+y} |
|
|
6647 | then : |
|
|
6648 | printf %s "(cached) " >&6 |
|
|
6649 | else $as_nop |
|
|
6650 | ac_check_lib_save_LIBS=$LIBS |
|
|
6651 | LIBS="-lipc $LIBS" |
6315 | cat confdefs.h >>conftest.$ac_ext |
6652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6316 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6317 | /* end confdefs.h. */ |
6653 | /* end confdefs.h. */ |
6318 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
|
|
6319 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6320 | #define remove innocuous_remove |
|
|
6321 | |
6654 | |
6322 | /* System header to define __stub macros and hopefully few prototypes, |
6655 | namespace conftest { |
6323 | which can conflict with char remove (); below. |
6656 | extern "C" int shmat (); |
6324 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6657 | } |
6325 | <limits.h> exists even on freestanding compilers. */ |
|
|
6326 | |
|
|
6327 | #ifdef __STDC__ |
|
|
6328 | # include <limits.h> |
|
|
6329 | #else |
|
|
6330 | # include <assert.h> |
|
|
6331 | #endif |
|
|
6332 | |
|
|
6333 | #undef remove |
|
|
6334 | |
|
|
6335 | /* Override any GCC internal prototype to avoid an error. |
|
|
6336 | Use char because int might match the return type of a GCC |
|
|
6337 | builtin and then its argument prototype would still apply. */ |
|
|
6338 | #ifdef __cplusplus |
|
|
6339 | extern "C" |
|
|
6340 | #endif |
|
|
6341 | char remove (); |
|
|
6342 | /* The GNU C library defines this for functions which it implements |
|
|
6343 | to always fail with ENOSYS. Some functions are actually named |
|
|
6344 | something starting with __ and the normal name is an alias. */ |
|
|
6345 | #if defined __stub_remove || defined __stub___remove |
|
|
6346 | choke me |
|
|
6347 | #endif |
|
|
6348 | |
|
|
6349 | int |
6658 | int |
6350 | main () |
6659 | main (void) |
6351 | { |
6660 | { |
6352 | return remove (); |
6661 | return conftest::shmat (); |
6353 | ; |
6662 | ; |
6354 | return 0; |
6663 | return 0; |
6355 | } |
6664 | } |
6356 | _ACEOF |
6665 | _ACEOF |
6357 | rm -f conftest.$ac_objext conftest$ac_exeext |
6666 | if ac_fn_cxx_try_link "$LINENO" |
6358 | if { (ac_try="$ac_link" |
6667 | then : |
6359 | case "(($ac_try" in |
6668 | ac_cv_lib_ipc_shmat=yes |
6360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6669 | else $as_nop |
6361 | *) ac_try_echo=$ac_try;; |
6670 | ac_cv_lib_ipc_shmat=no |
6362 | esac |
|
|
6363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6364 | (eval "$ac_link") 2>conftest.er1 |
|
|
6365 | ac_status=$? |
|
|
6366 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6367 | rm -f conftest.er1 |
|
|
6368 | cat conftest.err >&5 |
|
|
6369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6370 | (exit $ac_status); } && { |
|
|
6371 | test -z "$ac_cxx_werror_flag" || |
|
|
6372 | test ! -s conftest.err |
|
|
6373 | } && test -s conftest$ac_exeext && |
|
|
6374 | $as_test_x conftest$ac_exeext; then |
|
|
6375 | ac_cv_func_remove=yes |
|
|
6376 | else |
|
|
6377 | echo "$as_me: failed program was:" >&5 |
|
|
6378 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6379 | |
|
|
6380 | ac_cv_func_remove=no |
|
|
6381 | fi |
6671 | fi |
6382 | |
|
|
6383 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6672 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6384 | conftest$ac_exeext conftest.$ac_ext |
6673 | conftest$ac_exeext conftest.$ac_ext |
6385 | fi |
|
|
6386 | { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
|
|
6387 | echo "${ECHO_T}$ac_cv_func_remove" >&6; } |
|
|
6388 | |
|
|
6389 | if test $ac_cv_func_remove = no; then |
|
|
6390 | { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
|
|
6391 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } |
|
|
6392 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
|
|
6393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6394 | else |
|
|
6395 | ac_check_lib_save_LIBS=$LIBS |
|
|
6396 | LIBS="-lposix $LIBS" |
|
|
6397 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6398 | /* confdefs.h. */ |
|
|
6399 | _ACEOF |
|
|
6400 | cat confdefs.h >>conftest.$ac_ext |
|
|
6401 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6402 | /* end confdefs.h. */ |
|
|
6403 | |
|
|
6404 | /* Override any GCC internal prototype to avoid an error. |
|
|
6405 | Use char because int might match the return type of a GCC |
|
|
6406 | builtin and then its argument prototype would still apply. */ |
|
|
6407 | #ifdef __cplusplus |
|
|
6408 | extern "C" |
|
|
6409 | #endif |
|
|
6410 | char remove (); |
|
|
6411 | int |
|
|
6412 | main () |
|
|
6413 | { |
|
|
6414 | return remove (); |
|
|
6415 | ; |
|
|
6416 | return 0; |
|
|
6417 | } |
|
|
6418 | _ACEOF |
|
|
6419 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6420 | if { (ac_try="$ac_link" |
|
|
6421 | case "(($ac_try" in |
|
|
6422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6423 | *) ac_try_echo=$ac_try;; |
|
|
6424 | esac |
|
|
6425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6426 | (eval "$ac_link") 2>conftest.er1 |
|
|
6427 | ac_status=$? |
|
|
6428 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6429 | rm -f conftest.er1 |
|
|
6430 | cat conftest.err >&5 |
|
|
6431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6432 | (exit $ac_status); } && { |
|
|
6433 | test -z "$ac_cxx_werror_flag" || |
|
|
6434 | test ! -s conftest.err |
|
|
6435 | } && test -s conftest$ac_exeext && |
|
|
6436 | $as_test_x conftest$ac_exeext; then |
|
|
6437 | ac_cv_lib_posix_remove=yes |
|
|
6438 | else |
|
|
6439 | echo "$as_me: failed program was:" >&5 |
|
|
6440 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6441 | |
|
|
6442 | ac_cv_lib_posix_remove=no |
|
|
6443 | fi |
|
|
6444 | |
|
|
6445 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6446 | conftest$ac_exeext conftest.$ac_ext |
|
|
6447 | LIBS=$ac_check_lib_save_LIBS |
6674 | LIBS=$ac_check_lib_save_LIBS |
6448 | fi |
6675 | fi |
6449 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
|
|
6450 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } |
|
|
6451 | if test $ac_cv_lib_posix_remove = yes; then |
|
|
6452 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
|
|
6453 | fi |
|
|
6454 | |
|
|
6455 | fi |
|
|
6456 | |
|
|
6457 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
|
|
6458 | { echo "$as_me:$LINENO: checking for shmat" >&5 |
|
|
6459 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } |
|
|
6460 | if test "${ac_cv_func_shmat+set}" = set; then |
|
|
6461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6462 | else |
|
|
6463 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6464 | /* confdefs.h. */ |
|
|
6465 | _ACEOF |
|
|
6466 | cat confdefs.h >>conftest.$ac_ext |
|
|
6467 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6468 | /* end confdefs.h. */ |
|
|
6469 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
|
|
6470 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6471 | #define shmat innocuous_shmat |
|
|
6472 | |
|
|
6473 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6474 | which can conflict with char shmat (); below. |
|
|
6475 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6476 | <limits.h> exists even on freestanding compilers. */ |
|
|
6477 | |
|
|
6478 | #ifdef __STDC__ |
|
|
6479 | # include <limits.h> |
|
|
6480 | #else |
|
|
6481 | # include <assert.h> |
|
|
6482 | #endif |
|
|
6483 | |
|
|
6484 | #undef shmat |
|
|
6485 | |
|
|
6486 | /* Override any GCC internal prototype to avoid an error. |
|
|
6487 | Use char because int might match the return type of a GCC |
|
|
6488 | builtin and then its argument prototype would still apply. */ |
|
|
6489 | #ifdef __cplusplus |
|
|
6490 | extern "C" |
|
|
6491 | #endif |
|
|
6492 | char shmat (); |
|
|
6493 | /* The GNU C library defines this for functions which it implements |
|
|
6494 | to always fail with ENOSYS. Some functions are actually named |
|
|
6495 | something starting with __ and the normal name is an alias. */ |
|
|
6496 | #if defined __stub_shmat || defined __stub___shmat |
|
|
6497 | choke me |
|
|
6498 | #endif |
|
|
6499 | |
|
|
6500 | int |
|
|
6501 | main () |
|
|
6502 | { |
|
|
6503 | return shmat (); |
|
|
6504 | ; |
|
|
6505 | return 0; |
|
|
6506 | } |
|
|
6507 | _ACEOF |
|
|
6508 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6509 | if { (ac_try="$ac_link" |
|
|
6510 | case "(($ac_try" in |
|
|
6511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6512 | *) ac_try_echo=$ac_try;; |
|
|
6513 | esac |
|
|
6514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6515 | (eval "$ac_link") 2>conftest.er1 |
|
|
6516 | ac_status=$? |
|
|
6517 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6518 | rm -f conftest.er1 |
|
|
6519 | cat conftest.err >&5 |
|
|
6520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6521 | (exit $ac_status); } && { |
|
|
6522 | test -z "$ac_cxx_werror_flag" || |
|
|
6523 | test ! -s conftest.err |
|
|
6524 | } && test -s conftest$ac_exeext && |
|
|
6525 | $as_test_x conftest$ac_exeext; then |
|
|
6526 | ac_cv_func_shmat=yes |
|
|
6527 | else |
|
|
6528 | echo "$as_me: failed program was:" >&5 |
|
|
6529 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6530 | |
|
|
6531 | ac_cv_func_shmat=no |
|
|
6532 | fi |
|
|
6533 | |
|
|
6534 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6535 | conftest$ac_exeext conftest.$ac_ext |
|
|
6536 | fi |
|
|
6537 | { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
|
|
6538 | echo "${ECHO_T}$ac_cv_func_shmat" >&6; } |
|
|
6539 | |
|
|
6540 | if test $ac_cv_func_shmat = no; then |
|
|
6541 | { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
|
|
6542 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } |
|
|
6543 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
|
|
6544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6545 | else |
|
|
6546 | ac_check_lib_save_LIBS=$LIBS |
|
|
6547 | LIBS="-lipc $LIBS" |
|
|
6548 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6549 | /* confdefs.h. */ |
|
|
6550 | _ACEOF |
|
|
6551 | cat confdefs.h >>conftest.$ac_ext |
|
|
6552 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6553 | /* end confdefs.h. */ |
|
|
6554 | |
|
|
6555 | /* Override any GCC internal prototype to avoid an error. |
|
|
6556 | Use char because int might match the return type of a GCC |
|
|
6557 | builtin and then its argument prototype would still apply. */ |
|
|
6558 | #ifdef __cplusplus |
|
|
6559 | extern "C" |
|
|
6560 | #endif |
|
|
6561 | char shmat (); |
|
|
6562 | int |
|
|
6563 | main () |
|
|
6564 | { |
|
|
6565 | return shmat (); |
|
|
6566 | ; |
|
|
6567 | return 0; |
|
|
6568 | } |
|
|
6569 | _ACEOF |
|
|
6570 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6571 | if { (ac_try="$ac_link" |
|
|
6572 | case "(($ac_try" in |
|
|
6573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6574 | *) ac_try_echo=$ac_try;; |
|
|
6575 | esac |
|
|
6576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6577 | (eval "$ac_link") 2>conftest.er1 |
|
|
6578 | ac_status=$? |
|
|
6579 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6580 | rm -f conftest.er1 |
|
|
6581 | cat conftest.err >&5 |
|
|
6582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6583 | (exit $ac_status); } && { |
|
|
6584 | test -z "$ac_cxx_werror_flag" || |
|
|
6585 | test ! -s conftest.err |
|
|
6586 | } && test -s conftest$ac_exeext && |
|
|
6587 | $as_test_x conftest$ac_exeext; then |
|
|
6588 | ac_cv_lib_ipc_shmat=yes |
|
|
6589 | else |
|
|
6590 | echo "$as_me: failed program was:" >&5 |
|
|
6591 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6592 | |
|
|
6593 | ac_cv_lib_ipc_shmat=no |
|
|
6594 | fi |
|
|
6595 | |
|
|
6596 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6597 | conftest$ac_exeext conftest.$ac_ext |
|
|
6598 | LIBS=$ac_check_lib_save_LIBS |
|
|
6599 | fi |
|
|
6600 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
6676 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
6601 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } |
6677 | printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; } |
6602 | if test $ac_cv_lib_ipc_shmat = yes; then |
6678 | if test "x$ac_cv_lib_ipc_shmat" = xyes |
|
|
6679 | then : |
6603 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
6680 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
6604 | fi |
6681 | fi |
6605 | |
6682 | |
6606 | fi |
6683 | fi |
6607 | fi |
6684 | fi |
… | |
… | |
6613 | # check for ICE first), but we must link in the order -lSM -lICE or |
6690 | # check for ICE first), but we must link in the order -lSM -lICE or |
6614 | # we get undefined symbols. So assume we have SM if we have ICE. |
6691 | # we get undefined symbols. So assume we have SM if we have ICE. |
6615 | # These have to be linked with before -lX11, unlike the other |
6692 | # These have to be linked with before -lX11, unlike the other |
6616 | # libraries we check for below, so use a different variable. |
6693 | # libraries we check for below, so use a different variable. |
6617 | # John Interrante, Karl Berry |
6694 | # John Interrante, Karl Berry |
6618 | { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
6695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
6619 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } |
6696 | printf %s "checking for IceConnectionNumber in -lICE... " >&6; } |
6620 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
6697 | if test ${ac_cv_lib_ICE_IceConnectionNumber+y} |
6621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6698 | then : |
6622 | else |
6699 | printf %s "(cached) " >&6 |
|
|
6700 | else $as_nop |
6623 | ac_check_lib_save_LIBS=$LIBS |
6701 | ac_check_lib_save_LIBS=$LIBS |
6624 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
6702 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
6625 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6626 | /* confdefs.h. */ |
|
|
6627 | _ACEOF |
|
|
6628 | cat confdefs.h >>conftest.$ac_ext |
6703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6629 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6630 | /* end confdefs.h. */ |
6704 | /* end confdefs.h. */ |
6631 | |
6705 | |
6632 | /* Override any GCC internal prototype to avoid an error. |
6706 | namespace conftest { |
6633 | Use char because int might match the return type of a GCC |
6707 | extern "C" int IceConnectionNumber (); |
6634 | builtin and then its argument prototype would still apply. */ |
6708 | } |
6635 | #ifdef __cplusplus |
|
|
6636 | extern "C" |
|
|
6637 | #endif |
|
|
6638 | char IceConnectionNumber (); |
|
|
6639 | int |
6709 | int |
6640 | main () |
6710 | main (void) |
6641 | { |
6711 | { |
6642 | return IceConnectionNumber (); |
6712 | return conftest::IceConnectionNumber (); |
6643 | ; |
6713 | ; |
6644 | return 0; |
6714 | return 0; |
6645 | } |
6715 | } |
6646 | _ACEOF |
6716 | _ACEOF |
6647 | rm -f conftest.$ac_objext conftest$ac_exeext |
6717 | if ac_fn_cxx_try_link "$LINENO" |
6648 | if { (ac_try="$ac_link" |
6718 | then : |
6649 | case "(($ac_try" in |
|
|
6650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6651 | *) ac_try_echo=$ac_try;; |
|
|
6652 | esac |
|
|
6653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6654 | (eval "$ac_link") 2>conftest.er1 |
|
|
6655 | ac_status=$? |
|
|
6656 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6657 | rm -f conftest.er1 |
|
|
6658 | cat conftest.err >&5 |
|
|
6659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6660 | (exit $ac_status); } && { |
|
|
6661 | test -z "$ac_cxx_werror_flag" || |
|
|
6662 | test ! -s conftest.err |
|
|
6663 | } && test -s conftest$ac_exeext && |
|
|
6664 | $as_test_x conftest$ac_exeext; then |
|
|
6665 | ac_cv_lib_ICE_IceConnectionNumber=yes |
6719 | ac_cv_lib_ICE_IceConnectionNumber=yes |
6666 | else |
6720 | else $as_nop |
6667 | echo "$as_me: failed program was:" >&5 |
|
|
6668 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6669 | |
|
|
6670 | ac_cv_lib_ICE_IceConnectionNumber=no |
6721 | ac_cv_lib_ICE_IceConnectionNumber=no |
6671 | fi |
6722 | fi |
6672 | |
|
|
6673 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6723 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6674 | conftest$ac_exeext conftest.$ac_ext |
6724 | conftest$ac_exeext conftest.$ac_ext |
6675 | LIBS=$ac_check_lib_save_LIBS |
6725 | LIBS=$ac_check_lib_save_LIBS |
6676 | fi |
6726 | fi |
6677 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
6727 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
6678 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
6728 | printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
6679 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
6729 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes |
|
|
6730 | then : |
6680 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
6731 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
6681 | fi |
6732 | fi |
6682 | |
6733 | |
6683 | LDFLAGS=$ac_save_LDFLAGS |
6734 | LDFLAGS=$ac_save_LDFLAGS |
6684 | |
6735 | |
6685 | fi |
6736 | fi |
6686 | |
6737 | |
6687 | |
6738 | |
6688 | |
6739 | if test -n "$ac_tool_prefix"; then |
6689 | if test x$support_xpm = xyes; then |
|
|
6690 | |
|
|
6691 | |
|
|
6692 | |
|
|
6693 | # Initialize some more variables set by options. |
|
|
6694 | # The variables have the same names as the options, with |
|
|
6695 | # dashes changed to underlines. |
|
|
6696 | |
|
|
6697 | # If we find XPM, set shell vars xpm_includes and xpm_libraries to the |
|
|
6698 | # paths, otherwise set no_xpm=yes. |
|
|
6699 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
|
|
6700 | { echo "$as_me:$LINENO: checking for libXpm" >&5 |
|
|
6701 | echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; } |
|
|
6702 | |
|
|
6703 | |
|
|
6704 | # Check whether --with-xpm_includes was given. |
|
|
6705 | if test "${with_xpm_includes+set}" = set; then |
|
|
6706 | withval=$with_xpm_includes; xpm_includes="$withval" |
|
|
6707 | else |
|
|
6708 | xpm_includes=NO |
|
|
6709 | fi |
|
|
6710 | |
|
|
6711 | |
|
|
6712 | # Check whether --with-xpm_library was given. |
|
|
6713 | if test "${with_xpm_library+set}" = set; then |
|
|
6714 | withval=$with_xpm_library; xpm_libraries="$withval" |
|
|
6715 | else |
|
|
6716 | xpm_libraries=NO |
|
|
6717 | fi |
|
|
6718 | |
|
|
6719 | |
|
|
6720 | # --without-xpm overrides everything else, but does not touch the cache. |
|
|
6721 | |
|
|
6722 | # Check whether --with-xpm was given. |
|
|
6723 | if test "${with_xpm+set}" = set; then |
|
|
6724 | withval=$with_xpm; |
|
|
6725 | fi |
|
|
6726 | |
|
|
6727 | if test "$with_xpm" = no; then |
|
|
6728 | have_xpm=disabled |
|
|
6729 | else |
|
|
6730 | if test "${ac_cv_have_xpm+set}" = set; then |
|
|
6731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6732 | else |
|
|
6733 | |
|
|
6734 | vt_xpm_include_X11=no |
|
|
6735 | if test -n "$xpm_includes"; then |
|
|
6736 | vt_xpm_includes=$xpm_includes |
|
|
6737 | else |
|
|
6738 | vt_xpm_includes=NO |
|
|
6739 | fi |
|
|
6740 | if test -n "$xpm_libraries"; then |
|
|
6741 | vt_xpm_libraries=$xpm_libraries |
|
|
6742 | else |
|
|
6743 | vt_xpm_libraries=NO |
|
|
6744 | fi |
|
|
6745 | |
|
|
6746 | if test "$vt_xpm_includes" = NO; then |
|
|
6747 | # Guess where to find xpm.h |
|
|
6748 | |
|
|
6749 | ac_save_CPPFLAGS="$CPPFLAGS" |
|
|
6750 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
|
|
6751 | |
|
|
6752 | # First, try using that file with no special directory specified. |
|
|
6753 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6754 | /* confdefs.h. */ |
|
|
6755 | _ACEOF |
|
|
6756 | cat confdefs.h >>conftest.$ac_ext |
|
|
6757 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6758 | /* end confdefs.h. */ |
|
|
6759 | #include <X11/xpm.h> |
|
|
6760 | _ACEOF |
|
|
6761 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6762 | case "(($ac_try" in |
|
|
6763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6764 | *) ac_try_echo=$ac_try;; |
|
|
6765 | esac |
|
|
6766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6767 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6768 | ac_status=$? |
|
|
6769 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6770 | rm -f conftest.er1 |
|
|
6771 | cat conftest.err >&5 |
|
|
6772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6773 | (exit $ac_status); } >/dev/null && { |
|
|
6774 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6775 | test ! -s conftest.err |
|
|
6776 | }; then |
|
|
6777 | # We can compile using X headers with no special include directory. |
|
|
6778 | vt_xpm_includes= |
|
|
6779 | vt_xpm_include_X11=yes |
|
|
6780 | else |
|
|
6781 | echo "$as_me: failed program was:" >&5 |
|
|
6782 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6783 | |
|
|
6784 | CPPFLAGS="$ac_save_CPPFLAGS" |
|
|
6785 | # Look for the header file in a standard set of common directories. |
|
|
6786 | for ac_dir in \ |
|
|
6787 | /usr/X11/include \ |
|
|
6788 | /usr/X11R6/include \ |
|
|
6789 | /usr/X11R5/include \ |
|
|
6790 | /usr/X11R4/include \ |
|
|
6791 | \ |
|
|
6792 | /usr/include/X11 \ |
|
|
6793 | /usr/include/X11R6 \ |
|
|
6794 | /usr/include/X11R5 \ |
|
|
6795 | /usr/include/X11R4 \ |
|
|
6796 | \ |
|
|
6797 | /usr/local/X11/include \ |
|
|
6798 | /usr/local/X11R6/include \ |
|
|
6799 | /usr/local/X11R5/include \ |
|
|
6800 | /usr/local/X11R4/include \ |
|
|
6801 | \ |
|
|
6802 | /usr/local/include/X11 \ |
|
|
6803 | /usr/local/include/X11R6 \ |
|
|
6804 | /usr/local/include/X11R5 \ |
|
|
6805 | /usr/local/include/X11R4 \ |
|
|
6806 | \ |
|
|
6807 | /usr/X386/include \ |
|
|
6808 | /usr/x386/include \ |
|
|
6809 | /usr/XFree86/include/X11 \ |
|
|
6810 | \ |
|
|
6811 | /usr/include \ |
|
|
6812 | /usr/local/include \ |
|
|
6813 | /usr/unsupported/include \ |
|
|
6814 | /usr/athena/include \ |
|
|
6815 | /usr/local/x11r5/include \ |
|
|
6816 | /usr/lpp/Xamples/include \ |
|
|
6817 | \ |
|
|
6818 | /usr/openwin/include \ |
|
|
6819 | /usr/openwin/share/include \ |
|
|
6820 | ; \ |
|
|
6821 | do |
|
|
6822 | if test -r "$ac_dir/X11/xpm.h"; then |
|
|
6823 | vt_xpm_includes="$ac_dir" |
|
|
6824 | vt_xpm_include_X11=yes |
|
|
6825 | break |
|
|
6826 | else |
|
|
6827 | if test -r "$ac_dir/xpm.h"; then |
|
|
6828 | vt_xpm_includes=$ac_dir |
|
|
6829 | break |
|
|
6830 | fi |
|
|
6831 | fi |
|
|
6832 | done |
|
|
6833 | fi |
|
|
6834 | |
|
|
6835 | rm -f conftest.err conftest.$ac_ext |
|
|
6836 | fi |
|
|
6837 | |
|
|
6838 | if test "$vt_xpm_libraries" = NO; then |
|
|
6839 | # Check for the libraries. |
|
|
6840 | |
|
|
6841 | # See if we find them without any special options. |
|
|
6842 | # Don't add to $LIBS permanently. |
|
|
6843 | ac_save_LIBS="$LIBS" |
|
|
6844 | LIBS="$LIBS $X_LIBS -lXpm -lX11" |
|
|
6845 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6846 | /* confdefs.h. */ |
|
|
6847 | _ACEOF |
|
|
6848 | cat confdefs.h >>conftest.$ac_ext |
|
|
6849 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6850 | /* end confdefs.h. */ |
|
|
6851 | |
|
|
6852 | int |
|
|
6853 | main () |
|
|
6854 | { |
|
|
6855 | XpmReadFileToPixmap() |
|
|
6856 | ; |
|
|
6857 | return 0; |
|
|
6858 | } |
|
|
6859 | _ACEOF |
|
|
6860 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6861 | if { (ac_try="$ac_link" |
|
|
6862 | case "(($ac_try" in |
|
|
6863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6864 | *) ac_try_echo=$ac_try;; |
|
|
6865 | esac |
|
|
6866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6867 | (eval "$ac_link") 2>conftest.er1 |
|
|
6868 | ac_status=$? |
|
|
6869 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6870 | rm -f conftest.er1 |
|
|
6871 | cat conftest.err >&5 |
|
|
6872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6873 | (exit $ac_status); } && { |
|
|
6874 | test -z "$ac_cxx_werror_flag" || |
|
|
6875 | test ! -s conftest.err |
|
|
6876 | } && test -s conftest$ac_exeext && |
|
|
6877 | $as_test_x conftest$ac_exeext; then |
|
|
6878 | LIBS="$ac_save_LIBS" |
|
|
6879 | # We can link libXpm with no special library path. |
|
|
6880 | vt_xpm_libraries= |
|
|
6881 | else |
|
|
6882 | echo "$as_me: failed program was:" >&5 |
|
|
6883 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6884 | |
|
|
6885 | LIBS="$ac_save_LIBS" |
|
|
6886 | # First see if replacing the include by lib works. |
|
|
6887 | for ac_dir in \ |
|
|
6888 | `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ |
|
|
6889 | /usr/X11/lib \ |
|
|
6890 | /usr/X11R6/lib \ |
|
|
6891 | /usr/X11R5/lib \ |
|
|
6892 | /usr/X11R4/lib \ |
|
|
6893 | \ |
|
|
6894 | /usr/lib/X11 \ |
|
|
6895 | /usr/lib/X11R6 \ |
|
|
6896 | /usr/lib/X11R5 \ |
|
|
6897 | /usr/lib/X11R4 \ |
|
|
6898 | \ |
|
|
6899 | /usr/local/X11/lib \ |
|
|
6900 | /usr/local/X11R6/lib \ |
|
|
6901 | /usr/local/X11R5/lib \ |
|
|
6902 | /usr/local/X11R4/lib \ |
|
|
6903 | \ |
|
|
6904 | /usr/local/lib/X11 \ |
|
|
6905 | /usr/local/lib/X11R6 \ |
|
|
6906 | /usr/local/lib/X11R5 \ |
|
|
6907 | /usr/local/lib/X11R4 \ |
|
|
6908 | \ |
|
|
6909 | /usr/X386/lib \ |
|
|
6910 | /usr/x386/lib \ |
|
|
6911 | /usr/XFree86/lib/X11 \ |
|
|
6912 | \ |
|
|
6913 | /usr/lib \ |
|
|
6914 | /usr/local/lib \ |
|
|
6915 | /usr/unsupported/lib \ |
|
|
6916 | /usr/athena/lib \ |
|
|
6917 | /usr/local/x11r5/lib \ |
|
|
6918 | /usr/lpp/Xamples/lib \ |
|
|
6919 | \ |
|
|
6920 | /usr/openwin/lib \ |
|
|
6921 | /usr/openwin/share/lib \ |
|
|
6922 | ; \ |
|
|
6923 | do |
|
|
6924 | for ac_extension in a so sl; do |
|
|
6925 | if test -r $ac_dir/libXpm.$ac_extension; then |
|
|
6926 | vt_xpm_libraries=$ac_dir |
|
|
6927 | break 2 |
|
|
6928 | fi |
|
|
6929 | done |
|
|
6930 | done |
|
|
6931 | fi |
|
|
6932 | |
|
|
6933 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6934 | conftest$ac_exeext conftest.$ac_ext |
|
|
6935 | fi |
|
|
6936 | |
|
|
6937 | |
|
|
6938 | if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then |
|
|
6939 | ac_cv_have_xpm="have_xpm=no" |
|
|
6940 | else |
|
|
6941 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
6942 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
6943 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
6944 | fi |
|
|
6945 | fi |
|
|
6946 | eval "$ac_cv_have_xpm" |
|
|
6947 | fi |
|
|
6948 | |
|
|
6949 | if test "$have_xpm" != yes; then |
|
|
6950 | { echo "$as_me:$LINENO: result: $have_xpm" >&5 |
|
|
6951 | echo "${ECHO_T}$have_xpm" >&6; } |
|
|
6952 | no_xpm=yes |
|
|
6953 | else |
|
|
6954 | if test "$xpm_includes" != NO; then |
|
|
6955 | if test "$xpm_includes" = "$vt_xpm_includes"; then |
|
|
6956 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6957 | vt_xpm_include_X11=yes |
|
|
6958 | fi |
|
|
6959 | else |
|
|
6960 | vt_xpm_include_X11=no |
|
|
6961 | if test -z "$xpm_includes"; then |
|
|
6962 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6963 | /* confdefs.h. */ |
|
|
6964 | _ACEOF |
|
|
6965 | cat confdefs.h >>conftest.$ac_ext |
|
|
6966 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6967 | /* end confdefs.h. */ |
|
|
6968 | #include <X11/xpm.h> |
|
|
6969 | _ACEOF |
|
|
6970 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6971 | case "(($ac_try" in |
|
|
6972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6973 | *) ac_try_echo=$ac_try;; |
|
|
6974 | esac |
|
|
6975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6976 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6977 | ac_status=$? |
|
|
6978 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6979 | rm -f conftest.er1 |
|
|
6980 | cat conftest.err >&5 |
|
|
6981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6982 | (exit $ac_status); } >/dev/null && { |
|
|
6983 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6984 | test ! -s conftest.err |
|
|
6985 | }; then |
|
|
6986 | vt_xpm_include_X11=yes |
|
|
6987 | else |
|
|
6988 | echo "$as_me: failed program was:" >&5 |
|
|
6989 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6990 | |
|
|
6991 | |
|
|
6992 | fi |
|
|
6993 | |
|
|
6994 | rm -f conftest.err conftest.$ac_ext |
|
|
6995 | else |
|
|
6996 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6997 | vt_xpm_include_X11=yes |
|
|
6998 | fi |
|
|
6999 | fi |
|
|
7000 | fi |
|
|
7001 | vt_xpm_includes=$xpm_includes |
|
|
7002 | fi |
|
|
7003 | if test "x$xpm_libraries" != xNO; then |
|
|
7004 | vt_xpm_libraries=$xpm_libraries |
|
|
7005 | fi |
|
|
7006 | # Update the cache value to reflect the command line values. |
|
|
7007 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
7008 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
7009 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
7010 | eval "$ac_cv_have_xpm" |
|
|
7011 | { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5 |
|
|
7012 | echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; } |
|
|
7013 | if test -n "$vt_xpm_includes"; then |
|
|
7014 | XPM_CPPFLAGS="-DHAVE_LIBXPM" |
|
|
7015 | fi |
|
|
7016 | if test -n "$vt_xpm_includes"; then |
|
|
7017 | XPM_CFLAGS="-I$vt_xpm_includes" |
|
|
7018 | fi |
|
|
7019 | XPM_LIBS="-lXpm" |
|
|
7020 | if test -n "$vt_xpm_libraries"; then |
|
|
7021 | XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" |
|
|
7022 | fi |
|
|
7023 | if test "x$vt_xpm_include_X11" = xyes; then |
|
|
7024 | |
|
|
7025 | cat >>confdefs.h <<\_ACEOF |
|
|
7026 | #define XPM_INC_X11 1 |
|
|
7027 | _ACEOF |
|
|
7028 | |
|
|
7029 | fi |
|
|
7030 | fi |
|
|
7031 | |
|
|
7032 | |
|
|
7033 | |
|
|
7034 | |
|
|
7035 | |
|
|
7036 | if test x$no_xpm = xyes; then |
|
|
7037 | support_xpm=needsmanualspecification |
|
|
7038 | fi |
|
|
7039 | fi |
|
|
7040 | |
|
|
7041 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
7042 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
7043 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
7044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7045 | else |
|
|
7046 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7047 | /* confdefs.h. */ |
|
|
7048 | _ACEOF |
|
|
7049 | cat confdefs.h >>conftest.$ac_ext |
|
|
7050 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7051 | /* end confdefs.h. */ |
|
|
7052 | #include <sys/types.h> |
|
|
7053 | #include <sys/wait.h> |
|
|
7054 | #ifndef WEXITSTATUS |
|
|
7055 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
7056 | #endif |
|
|
7057 | #ifndef WIFEXITED |
|
|
7058 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
7059 | #endif |
|
|
7060 | |
|
|
7061 | int |
|
|
7062 | main () |
|
|
7063 | { |
|
|
7064 | int s; |
|
|
7065 | wait (&s); |
|
|
7066 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
7067 | ; |
|
|
7068 | return 0; |
|
|
7069 | } |
|
|
7070 | _ACEOF |
|
|
7071 | rm -f conftest.$ac_objext |
|
|
7072 | if { (ac_try="$ac_compile" |
|
|
7073 | case "(($ac_try" in |
|
|
7074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7075 | *) ac_try_echo=$ac_try;; |
|
|
7076 | esac |
|
|
7077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7078 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7079 | ac_status=$? |
|
|
7080 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7081 | rm -f conftest.er1 |
|
|
7082 | cat conftest.err >&5 |
|
|
7083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7084 | (exit $ac_status); } && { |
|
|
7085 | test -z "$ac_cxx_werror_flag" || |
|
|
7086 | test ! -s conftest.err |
|
|
7087 | } && test -s conftest.$ac_objext; then |
|
|
7088 | ac_cv_header_sys_wait_h=yes |
|
|
7089 | else |
|
|
7090 | echo "$as_me: failed program was:" >&5 |
|
|
7091 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7092 | |
|
|
7093 | ac_cv_header_sys_wait_h=no |
|
|
7094 | fi |
|
|
7095 | |
|
|
7096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7097 | fi |
|
|
7098 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
7099 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
7100 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
7101 | |
|
|
7102 | cat >>confdefs.h <<\_ACEOF |
|
|
7103 | #define HAVE_SYS_WAIT_H 1 |
|
|
7104 | _ACEOF |
|
|
7105 | |
|
|
7106 | fi |
|
|
7107 | |
|
|
7108 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
7109 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
7110 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
7111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7112 | else |
|
|
7113 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7114 | /* confdefs.h. */ |
|
|
7115 | _ACEOF |
|
|
7116 | cat confdefs.h >>conftest.$ac_ext |
|
|
7117 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7118 | /* end confdefs.h. */ |
|
|
7119 | #include <stdlib.h> |
|
|
7120 | #include <stdarg.h> |
|
|
7121 | #include <string.h> |
|
|
7122 | #include <float.h> |
|
|
7123 | |
|
|
7124 | int |
|
|
7125 | main () |
|
|
7126 | { |
|
|
7127 | |
|
|
7128 | ; |
|
|
7129 | return 0; |
|
|
7130 | } |
|
|
7131 | _ACEOF |
|
|
7132 | rm -f conftest.$ac_objext |
|
|
7133 | if { (ac_try="$ac_compile" |
|
|
7134 | case "(($ac_try" in |
|
|
7135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7136 | *) ac_try_echo=$ac_try;; |
|
|
7137 | esac |
|
|
7138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7139 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7140 | ac_status=$? |
|
|
7141 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7142 | rm -f conftest.er1 |
|
|
7143 | cat conftest.err >&5 |
|
|
7144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7145 | (exit $ac_status); } && { |
|
|
7146 | test -z "$ac_cxx_werror_flag" || |
|
|
7147 | test ! -s conftest.err |
|
|
7148 | } && test -s conftest.$ac_objext; then |
|
|
7149 | ac_cv_header_stdc=yes |
|
|
7150 | else |
|
|
7151 | echo "$as_me: failed program was:" >&5 |
|
|
7152 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7153 | |
|
|
7154 | ac_cv_header_stdc=no |
|
|
7155 | fi |
|
|
7156 | |
|
|
7157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7158 | |
|
|
7159 | if test $ac_cv_header_stdc = yes; then |
|
|
7160 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
7161 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7162 | /* confdefs.h. */ |
|
|
7163 | _ACEOF |
|
|
7164 | cat confdefs.h >>conftest.$ac_ext |
|
|
7165 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7166 | /* end confdefs.h. */ |
|
|
7167 | #include <string.h> |
|
|
7168 | |
|
|
7169 | _ACEOF |
|
|
7170 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7171 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
7172 | : |
|
|
7173 | else |
|
|
7174 | ac_cv_header_stdc=no |
|
|
7175 | fi |
|
|
7176 | rm -f conftest* |
|
|
7177 | |
|
|
7178 | fi |
|
|
7179 | |
|
|
7180 | if test $ac_cv_header_stdc = yes; then |
|
|
7181 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
7182 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7183 | /* confdefs.h. */ |
|
|
7184 | _ACEOF |
|
|
7185 | cat confdefs.h >>conftest.$ac_ext |
|
|
7186 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7187 | /* end confdefs.h. */ |
|
|
7188 | #include <stdlib.h> |
|
|
7189 | |
|
|
7190 | _ACEOF |
|
|
7191 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7192 | $EGREP "free" >/dev/null 2>&1; then |
|
|
7193 | : |
|
|
7194 | else |
|
|
7195 | ac_cv_header_stdc=no |
|
|
7196 | fi |
|
|
7197 | rm -f conftest* |
|
|
7198 | |
|
|
7199 | fi |
|
|
7200 | |
|
|
7201 | if test $ac_cv_header_stdc = yes; then |
|
|
7202 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
7203 | if test "$cross_compiling" = yes; then |
|
|
7204 | : |
|
|
7205 | else |
|
|
7206 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7207 | /* confdefs.h. */ |
|
|
7208 | _ACEOF |
|
|
7209 | cat confdefs.h >>conftest.$ac_ext |
|
|
7210 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7211 | /* end confdefs.h. */ |
|
|
7212 | #include <ctype.h> |
|
|
7213 | #include <stdlib.h> |
|
|
7214 | #if ((' ' & 0x0FF) == 0x020) |
|
|
7215 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
7216 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
7217 | #else |
|
|
7218 | # define ISLOWER(c) \ |
|
|
7219 | (('a' <= (c) && (c) <= 'i') \ |
|
|
7220 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
7221 | || ('s' <= (c) && (c) <= 'z')) |
|
|
7222 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
7223 | #endif |
|
|
7224 | |
|
|
7225 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
7226 | int |
|
|
7227 | main () |
|
|
7228 | { |
|
|
7229 | int i; |
|
|
7230 | for (i = 0; i < 256; i++) |
|
|
7231 | if (XOR (islower (i), ISLOWER (i)) |
|
|
7232 | || toupper (i) != TOUPPER (i)) |
|
|
7233 | return 2; |
|
|
7234 | return 0; |
|
|
7235 | } |
|
|
7236 | _ACEOF |
|
|
7237 | rm -f conftest$ac_exeext |
|
|
7238 | if { (ac_try="$ac_link" |
|
|
7239 | case "(($ac_try" in |
|
|
7240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7241 | *) ac_try_echo=$ac_try;; |
|
|
7242 | esac |
|
|
7243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7244 | (eval "$ac_link") 2>&5 |
|
|
7245 | ac_status=$? |
|
|
7246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7247 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7248 | { (case "(($ac_try" in |
|
|
7249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7250 | *) ac_try_echo=$ac_try;; |
|
|
7251 | esac |
|
|
7252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7253 | (eval "$ac_try") 2>&5 |
|
|
7254 | ac_status=$? |
|
|
7255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7256 | (exit $ac_status); }; }; then |
|
|
7257 | : |
|
|
7258 | else |
|
|
7259 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7260 | echo "$as_me: failed program was:" >&5 |
|
|
7261 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7262 | |
|
|
7263 | ( exit $ac_status ) |
|
|
7264 | ac_cv_header_stdc=no |
|
|
7265 | fi |
|
|
7266 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7267 | fi |
|
|
7268 | |
|
|
7269 | |
|
|
7270 | fi |
|
|
7271 | fi |
|
|
7272 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
7273 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
7274 | if test $ac_cv_header_stdc = yes; then |
|
|
7275 | |
|
|
7276 | cat >>confdefs.h <<\_ACEOF |
|
|
7277 | #define STDC_HEADERS 1 |
|
|
7278 | _ACEOF |
|
|
7279 | |
|
|
7280 | fi |
|
|
7281 | |
|
|
7282 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
7283 | |
|
|
7284 | |
|
|
7285 | |
|
|
7286 | |
|
|
7287 | |
|
|
7288 | |
|
|
7289 | |
|
|
7290 | |
|
|
7291 | |
|
|
7292 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
7293 | inttypes.h stdint.h unistd.h |
|
|
7294 | do |
|
|
7295 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7296 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7297 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
7298 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7300 | else |
|
|
7301 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7302 | /* confdefs.h. */ |
|
|
7303 | _ACEOF |
|
|
7304 | cat confdefs.h >>conftest.$ac_ext |
|
|
7305 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7306 | /* end confdefs.h. */ |
|
|
7307 | $ac_includes_default |
|
|
7308 | |
|
|
7309 | #include <$ac_header> |
|
|
7310 | _ACEOF |
|
|
7311 | rm -f conftest.$ac_objext |
|
|
7312 | if { (ac_try="$ac_compile" |
|
|
7313 | case "(($ac_try" in |
|
|
7314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7315 | *) ac_try_echo=$ac_try;; |
|
|
7316 | esac |
|
|
7317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7318 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7319 | ac_status=$? |
|
|
7320 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7321 | rm -f conftest.er1 |
|
|
7322 | cat conftest.err >&5 |
|
|
7323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7324 | (exit $ac_status); } && { |
|
|
7325 | test -z "$ac_cxx_werror_flag" || |
|
|
7326 | test ! -s conftest.err |
|
|
7327 | } && test -s conftest.$ac_objext; then |
|
|
7328 | eval "$as_ac_Header=yes" |
|
|
7329 | else |
|
|
7330 | echo "$as_me: failed program was:" >&5 |
|
|
7331 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7332 | |
|
|
7333 | eval "$as_ac_Header=no" |
|
|
7334 | fi |
|
|
7335 | |
|
|
7336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7337 | fi |
|
|
7338 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
7339 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
7340 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
7341 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
7342 | cat >>confdefs.h <<_ACEOF |
|
|
7343 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7344 | _ACEOF |
|
|
7345 | |
|
|
7346 | fi |
|
|
7347 | |
|
|
7348 | done |
|
|
7349 | |
|
|
7350 | |
|
|
7351 | |
|
|
7352 | |
|
|
7353 | |
|
|
7354 | |
|
|
7355 | |
|
|
7356 | |
|
|
7357 | |
|
|
7358 | |
|
|
7359 | |
|
|
7360 | |
|
|
7361 | |
|
|
7362 | |
|
|
7363 | |
|
|
7364 | |
|
|
7365 | |
|
|
7366 | |
|
|
7367 | |
|
|
7368 | for ac_header in \ |
|
|
7369 | assert.h \ |
|
|
7370 | fcntl.h \ |
|
|
7371 | stdarg.h \ |
|
|
7372 | stdlib.h \ |
|
|
7373 | string.h \ |
|
|
7374 | termios.h \ |
|
|
7375 | unistd.h \ |
|
|
7376 | sys/byteorder.h \ |
|
|
7377 | sys/ioctl.h \ |
|
|
7378 | sys/select.h \ |
|
|
7379 | sys/sockio.h \ |
|
|
7380 | sys/strredir.h \ |
|
|
7381 | sys/time.h \ |
|
|
7382 | stdint.h \ |
|
|
7383 | wchar.h \ |
|
|
7384 | cwchar \ |
|
|
7385 | clocale \ |
|
|
7386 | |
|
|
7387 | do |
|
|
7388 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7389 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7390 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7391 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
7392 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7394 | fi |
|
|
7395 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
7396 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
7397 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
7398 | else |
|
|
7399 | # Is the header compilable? |
|
|
7400 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
7401 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
7402 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7403 | /* confdefs.h. */ |
|
|
7404 | _ACEOF |
|
|
7405 | cat confdefs.h >>conftest.$ac_ext |
|
|
7406 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7407 | /* end confdefs.h. */ |
|
|
7408 | $ac_includes_default |
|
|
7409 | #include <$ac_header> |
|
|
7410 | _ACEOF |
|
|
7411 | rm -f conftest.$ac_objext |
|
|
7412 | if { (ac_try="$ac_compile" |
|
|
7413 | case "(($ac_try" in |
|
|
7414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7415 | *) ac_try_echo=$ac_try;; |
|
|
7416 | esac |
|
|
7417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7418 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7419 | ac_status=$? |
|
|
7420 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7421 | rm -f conftest.er1 |
|
|
7422 | cat conftest.err >&5 |
|
|
7423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7424 | (exit $ac_status); } && { |
|
|
7425 | test -z "$ac_cxx_werror_flag" || |
|
|
7426 | test ! -s conftest.err |
|
|
7427 | } && test -s conftest.$ac_objext; then |
|
|
7428 | ac_header_compiler=yes |
|
|
7429 | else |
|
|
7430 | echo "$as_me: failed program was:" >&5 |
|
|
7431 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7432 | |
|
|
7433 | ac_header_compiler=no |
|
|
7434 | fi |
|
|
7435 | |
|
|
7436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7437 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
7438 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
7439 | |
|
|
7440 | # Is the header present? |
|
|
7441 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
7442 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
7443 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7444 | /* confdefs.h. */ |
|
|
7445 | _ACEOF |
|
|
7446 | cat confdefs.h >>conftest.$ac_ext |
|
|
7447 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7448 | /* end confdefs.h. */ |
|
|
7449 | #include <$ac_header> |
|
|
7450 | _ACEOF |
|
|
7451 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
7452 | case "(($ac_try" in |
|
|
7453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7454 | *) ac_try_echo=$ac_try;; |
|
|
7455 | esac |
|
|
7456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7457 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
7458 | ac_status=$? |
|
|
7459 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7460 | rm -f conftest.er1 |
|
|
7461 | cat conftest.err >&5 |
|
|
7462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7463 | (exit $ac_status); } >/dev/null && { |
|
|
7464 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
7465 | test ! -s conftest.err |
|
|
7466 | }; then |
|
|
7467 | ac_header_preproc=yes |
|
|
7468 | else |
|
|
7469 | echo "$as_me: failed program was:" >&5 |
|
|
7470 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7471 | |
|
|
7472 | ac_header_preproc=no |
|
|
7473 | fi |
|
|
7474 | |
|
|
7475 | rm -f conftest.err conftest.$ac_ext |
|
|
7476 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
7477 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
7478 | |
|
|
7479 | # So? What about this header? |
|
|
7480 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
7481 | yes:no: ) |
|
|
7482 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
7483 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
7484 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
7485 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
7486 | ac_header_preproc=yes |
|
|
7487 | ;; |
|
|
7488 | no:yes:* ) |
|
|
7489 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
7490 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
7491 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
7492 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
7493 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
7494 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
7495 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
7496 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
7497 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
7498 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
7499 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
7500 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
7501 | |
|
|
7502 | ;; |
|
|
7503 | esac |
|
|
7504 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7505 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
7506 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7508 | else |
|
|
7509 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
7510 | fi |
|
|
7511 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
7512 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
7513 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
7514 | |
|
|
7515 | fi |
|
|
7516 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
7517 | cat >>confdefs.h <<_ACEOF |
|
|
7518 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7519 | _ACEOF |
|
|
7520 | |
|
|
7521 | fi |
|
|
7522 | |
|
|
7523 | done |
|
|
7524 | |
|
|
7525 | |
|
|
7526 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
7527 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
7528 | if test "${ac_cv_header_time+set}" = set; then |
|
|
7529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7530 | else |
|
|
7531 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7532 | /* confdefs.h. */ |
|
|
7533 | _ACEOF |
|
|
7534 | cat confdefs.h >>conftest.$ac_ext |
|
|
7535 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7536 | /* end confdefs.h. */ |
|
|
7537 | #include <sys/types.h> |
|
|
7538 | #include <sys/time.h> |
|
|
7539 | #include <time.h> |
|
|
7540 | |
|
|
7541 | int |
|
|
7542 | main () |
|
|
7543 | { |
|
|
7544 | if ((struct tm *) 0) |
|
|
7545 | return 0; |
|
|
7546 | ; |
|
|
7547 | return 0; |
|
|
7548 | } |
|
|
7549 | _ACEOF |
|
|
7550 | rm -f conftest.$ac_objext |
|
|
7551 | if { (ac_try="$ac_compile" |
|
|
7552 | case "(($ac_try" in |
|
|
7553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7554 | *) ac_try_echo=$ac_try;; |
|
|
7555 | esac |
|
|
7556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7557 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7558 | ac_status=$? |
|
|
7559 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7560 | rm -f conftest.er1 |
|
|
7561 | cat conftest.err >&5 |
|
|
7562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7563 | (exit $ac_status); } && { |
|
|
7564 | test -z "$ac_cxx_werror_flag" || |
|
|
7565 | test ! -s conftest.err |
|
|
7566 | } && test -s conftest.$ac_objext; then |
|
|
7567 | ac_cv_header_time=yes |
|
|
7568 | else |
|
|
7569 | echo "$as_me: failed program was:" >&5 |
|
|
7570 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7571 | |
|
|
7572 | ac_cv_header_time=no |
|
|
7573 | fi |
|
|
7574 | |
|
|
7575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7576 | fi |
|
|
7577 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7578 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7579 | if test $ac_cv_header_time = yes; then |
|
|
7580 | |
|
|
7581 | cat >>confdefs.h <<\_ACEOF |
|
|
7582 | #define TIME_WITH_SYS_TIME 1 |
|
|
7583 | _ACEOF |
|
|
7584 | |
|
|
7585 | fi |
|
|
7586 | |
|
|
7587 | |
|
|
7588 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
|
|
7589 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
|
|
7590 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
|
|
7591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7592 | else |
|
|
7593 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7594 | /* confdefs.h. */ |
|
|
7595 | _ACEOF |
|
|
7596 | cat confdefs.h >>conftest.$ac_ext |
|
|
7597 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7598 | /* end confdefs.h. */ |
|
|
7599 | #include <stdio.h> |
|
|
7600 | #include <sys/ioctl.h> |
|
|
7601 | #ifdef HAVE_TERMIOS_H |
|
|
7602 | #include <termios.h> |
|
|
7603 | #endif |
|
|
7604 | int |
|
|
7605 | main () |
|
|
7606 | { |
|
|
7607 | int a = ECHO; |
|
|
7608 | ; |
|
|
7609 | return 0; |
|
|
7610 | } |
|
|
7611 | _ACEOF |
|
|
7612 | rm -f conftest.$ac_objext |
|
|
7613 | if { (ac_try="$ac_compile" |
|
|
7614 | case "(($ac_try" in |
|
|
7615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7616 | *) ac_try_echo=$ac_try;; |
|
|
7617 | esac |
|
|
7618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7619 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7620 | ac_status=$? |
|
|
7621 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7622 | rm -f conftest.er1 |
|
|
7623 | cat conftest.err >&5 |
|
|
7624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7625 | (exit $ac_status); } && { |
|
|
7626 | test -z "$ac_cxx_werror_flag" || |
|
|
7627 | test ! -s conftest.err |
|
|
7628 | } && test -s conftest.$ac_objext; then |
|
|
7629 | rxvt_cv_header_sysioctl=yes |
|
|
7630 | else |
|
|
7631 | echo "$as_me: failed program was:" >&5 |
|
|
7632 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7633 | |
|
|
7634 | rxvt_cv_header_sysioctl=no |
|
|
7635 | fi |
|
|
7636 | |
|
|
7637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7638 | fi |
|
|
7639 | { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 |
|
|
7640 | echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } |
|
|
7641 | |
|
|
7642 | if test -n "$GCC"; then |
|
|
7643 | LDARG="-Wl," |
|
|
7644 | else |
|
|
7645 | LDARG="" |
|
|
7646 | fi |
|
|
7647 | R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g' |
|
|
7648 | |
|
|
7649 | ac_save_CFLAGS=$CFLAGS |
|
|
7650 | ac_save_LIBS=$LIBS |
|
|
7651 | CFLAGS="$CFLAGS $X_CFLAGS" |
|
|
7652 | LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` |
|
|
7653 | { echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5 |
|
|
7654 | echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6; } |
|
|
7655 | if test "${rxvt_cv_rpath+set}" = set; then |
|
|
7656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7657 | else |
|
|
7658 | if test "$cross_compiling" = yes; then |
|
|
7659 | { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5 |
|
|
7660 | echo "$as_me: WARNING: You may need to check the LIBS line" >&2;} |
|
|
7661 | else |
|
|
7662 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7663 | /* confdefs.h. */ |
|
|
7664 | _ACEOF |
|
|
7665 | cat confdefs.h >>conftest.$ac_ext |
|
|
7666 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7667 | /* end confdefs.h. */ |
|
|
7668 | #include <X11/Xlib.h> |
|
|
7669 | #include <stdlib.h> |
|
|
7670 | main() |
|
|
7671 | { |
|
|
7672 | exit(0); |
|
|
7673 | (void) XOpenDisplay("foobar"); |
|
|
7674 | } |
|
|
7675 | _ACEOF |
|
|
7676 | rm -f conftest$ac_exeext |
|
|
7677 | if { (ac_try="$ac_link" |
|
|
7678 | case "(($ac_try" in |
|
|
7679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7680 | *) ac_try_echo=$ac_try;; |
|
|
7681 | esac |
|
|
7682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7683 | (eval "$ac_link") 2>&5 |
|
|
7684 | ac_status=$? |
|
|
7685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7686 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7687 | { (case "(($ac_try" in |
|
|
7688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7689 | *) ac_try_echo=$ac_try;; |
|
|
7690 | esac |
|
|
7691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7692 | (eval "$ac_try") 2>&5 |
|
|
7693 | ac_status=$? |
|
|
7694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7695 | (exit $ac_status); }; }; then |
|
|
7696 | rxvt_cv_rpath=yes |
|
|
7697 | else |
|
|
7698 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7699 | echo "$as_me: failed program was:" >&5 |
|
|
7700 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7701 | |
|
|
7702 | ( exit $ac_status ) |
|
|
7703 | rxvt_cv_rpath=no |
|
|
7704 | fi |
|
|
7705 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7706 | fi |
|
|
7707 | |
|
|
7708 | |
|
|
7709 | fi |
|
|
7710 | { echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5 |
|
|
7711 | echo "${ECHO_T}$rxvt_cv_rpath" >&6; } |
|
|
7712 | if test x$rxvt_cv_rpath != xyes; then |
|
|
7713 | R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' |
|
|
7714 | LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` |
|
|
7715 | { echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5 |
|
|
7716 | echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6; } |
|
|
7717 | if test "${rxvt_cv_R+set}" = set; then |
|
|
7718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7719 | else |
|
|
7720 | if test "$cross_compiling" = yes; then |
|
|
7721 | rxvt_cv_R=no |
|
|
7722 | else |
|
|
7723 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7724 | /* confdefs.h. */ |
|
|
7725 | _ACEOF |
|
|
7726 | cat confdefs.h >>conftest.$ac_ext |
|
|
7727 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7728 | /* end confdefs.h. */ |
|
|
7729 | #include <X11/Xlib.h> |
|
|
7730 | #include <stdlib.h> |
|
|
7731 | main() |
|
|
7732 | { |
|
|
7733 | exit(0); |
|
|
7734 | (void) XOpenDisplay("foobar"); |
|
|
7735 | } |
|
|
7736 | _ACEOF |
|
|
7737 | rm -f conftest$ac_exeext |
|
|
7738 | if { (ac_try="$ac_link" |
|
|
7739 | case "(($ac_try" in |
|
|
7740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7741 | *) ac_try_echo=$ac_try;; |
|
|
7742 | esac |
|
|
7743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7744 | (eval "$ac_link") 2>&5 |
|
|
7745 | ac_status=$? |
|
|
7746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7747 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7748 | { (case "(($ac_try" in |
|
|
7749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7750 | *) ac_try_echo=$ac_try;; |
|
|
7751 | esac |
|
|
7752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7753 | (eval "$ac_try") 2>&5 |
|
|
7754 | ac_status=$? |
|
|
7755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7756 | (exit $ac_status); }; }; then |
|
|
7757 | rxvt_cv_R=yes |
|
|
7758 | else |
|
|
7759 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7760 | echo "$as_me: failed program was:" >&5 |
|
|
7761 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7762 | |
|
|
7763 | ( exit $ac_status ) |
|
|
7764 | rxvt_cv_R=no |
|
|
7765 | fi |
|
|
7766 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7767 | fi |
|
|
7768 | |
|
|
7769 | |
|
|
7770 | fi |
|
|
7771 | { echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5 |
|
|
7772 | echo "${ECHO_T}$rxvt_cv_R" >&6; } |
|
|
7773 | if test x$rxvt_cv_R != xyes; then |
|
|
7774 | LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
7775 | fi |
|
|
7776 | fi |
|
|
7777 | |
|
|
7778 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
|
|
7779 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
|
|
7780 | if test "${rxvt_cv_xpointer+set}" = set; then |
|
|
7781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7782 | else |
|
|
7783 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7784 | /* confdefs.h. */ |
|
|
7785 | _ACEOF |
|
|
7786 | cat confdefs.h >>conftest.$ac_ext |
|
|
7787 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7788 | /* end confdefs.h. */ |
|
|
7789 | #include <X11/Xlib.h> |
|
|
7790 | int |
|
|
7791 | main () |
|
|
7792 | { |
|
|
7793 | XPointer dummy; |
|
|
7794 | ; |
|
|
7795 | return 0; |
|
|
7796 | } |
|
|
7797 | _ACEOF |
|
|
7798 | rm -f conftest.$ac_objext |
|
|
7799 | if { (ac_try="$ac_compile" |
|
|
7800 | case "(($ac_try" in |
|
|
7801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7802 | *) ac_try_echo=$ac_try;; |
|
|
7803 | esac |
|
|
7804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7805 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7806 | ac_status=$? |
|
|
7807 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7808 | rm -f conftest.er1 |
|
|
7809 | cat conftest.err >&5 |
|
|
7810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7811 | (exit $ac_status); } && { |
|
|
7812 | test -z "$ac_cxx_werror_flag" || |
|
|
7813 | test ! -s conftest.err |
|
|
7814 | } && test -s conftest.$ac_objext; then |
|
|
7815 | rxvt_cv_xpointer=yes |
|
|
7816 | else |
|
|
7817 | echo "$as_me: failed program was:" >&5 |
|
|
7818 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7819 | |
|
|
7820 | rxvt_cv_xpointer=no |
|
|
7821 | fi |
|
|
7822 | |
|
|
7823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7824 | fi |
|
|
7825 | { echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5 |
|
|
7826 | echo "${ECHO_T}$rxvt_cv_xpointer" >&6; } |
|
|
7827 | if test x$rxvt_cv_xpointer = xyes; then |
|
|
7828 | |
|
|
7829 | cat >>confdefs.h <<\_ACEOF |
|
|
7830 | #define HAVE_XPOINTER 1 |
|
|
7831 | _ACEOF |
|
|
7832 | |
|
|
7833 | fi |
|
|
7834 | LIBS=$ac_save_LIBS |
|
|
7835 | CFLAGS=$ac_save_CFLAGS |
|
|
7836 | |
|
|
7837 | { echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 |
|
|
7838 | echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } |
|
|
7839 | if test "${rxvt_xlib_illegal_access+set}" = set; then |
|
|
7840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7841 | else |
|
|
7842 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7843 | /* confdefs.h. */ |
|
|
7844 | _ACEOF |
|
|
7845 | cat confdefs.h >>conftest.$ac_ext |
|
|
7846 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7847 | /* end confdefs.h. */ |
|
|
7848 | |
|
|
7849 | #define XLIB_ILLEGAL_ACCESS |
|
|
7850 | #include <X11/Xlib.h> |
|
|
7851 | |
|
|
7852 | int |
|
|
7853 | main () |
|
|
7854 | { |
|
|
7855 | |
|
|
7856 | Display *dpy; |
|
|
7857 | dpy->xdefaults = (char *)0; |
|
|
7858 | |
|
|
7859 | ; |
|
|
7860 | return 0; |
|
|
7861 | } |
|
|
7862 | _ACEOF |
|
|
7863 | rm -f conftest.$ac_objext |
|
|
7864 | if { (ac_try="$ac_compile" |
|
|
7865 | case "(($ac_try" in |
|
|
7866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7867 | *) ac_try_echo=$ac_try;; |
|
|
7868 | esac |
|
|
7869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7870 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7871 | ac_status=$? |
|
|
7872 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7873 | rm -f conftest.er1 |
|
|
7874 | cat conftest.err >&5 |
|
|
7875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7876 | (exit $ac_status); } && { |
|
|
7877 | test -z "$ac_cxx_werror_flag" || |
|
|
7878 | test ! -s conftest.err |
|
|
7879 | } && test -s conftest.$ac_objext; then |
|
|
7880 | rxvt_xlib_illegal_access=yes |
|
|
7881 | else |
|
|
7882 | echo "$as_me: failed program was:" >&5 |
|
|
7883 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7884 | |
|
|
7885 | rxvt_xlib_illegal_access=no |
|
|
7886 | |
|
|
7887 | fi |
|
|
7888 | |
|
|
7889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7890 | fi |
|
|
7891 | { echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5 |
|
|
7892 | echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6; } |
|
|
7893 | if test x$rxvt_xlib_illegal_access = xyes; then |
|
|
7894 | |
|
|
7895 | cat >>confdefs.h <<\_ACEOF |
|
|
7896 | #define XLIB_ILLEGAL_ACCESS 1 |
|
|
7897 | _ACEOF |
|
|
7898 | |
|
|
7899 | fi |
|
|
7900 | |
|
|
7901 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
7902 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
|
7903 | if test "${ac_cv_c_const+set}" = set; then |
|
|
7904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7905 | else |
|
|
7906 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7907 | /* confdefs.h. */ |
|
|
7908 | _ACEOF |
|
|
7909 | cat confdefs.h >>conftest.$ac_ext |
|
|
7910 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7911 | /* end confdefs.h. */ |
|
|
7912 | |
|
|
7913 | int |
|
|
7914 | main () |
|
|
7915 | { |
|
|
7916 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
7917 | #ifndef __cplusplus |
|
|
7918 | /* Ultrix mips cc rejects this. */ |
|
|
7919 | typedef int charset[2]; |
|
|
7920 | const charset cs; |
|
|
7921 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
7922 | char const *const *pcpcc; |
|
|
7923 | char **ppc; |
|
|
7924 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
7925 | struct point {int x, y;}; |
|
|
7926 | static struct point const zero = {0,0}; |
|
|
7927 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
7928 | It does not let you subtract one const X* pointer from another in |
|
|
7929 | an arm of an if-expression whose if-part is not a constant |
|
|
7930 | expression */ |
|
|
7931 | const char *g = "string"; |
|
|
7932 | pcpcc = &g + (g ? g-g : 0); |
|
|
7933 | /* HPUX 7.0 cc rejects these. */ |
|
|
7934 | ++pcpcc; |
|
|
7935 | ppc = (char**) pcpcc; |
|
|
7936 | pcpcc = (char const *const *) ppc; |
|
|
7937 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
7938 | char *t; |
|
|
7939 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
7940 | |
|
|
7941 | *t++ = 0; |
|
|
7942 | if (s) return 0; |
|
|
7943 | } |
|
|
7944 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
7945 | int x[] = {25, 17}; |
|
|
7946 | const int *foo = &x[0]; |
|
|
7947 | ++foo; |
|
|
7948 | } |
|
|
7949 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
7950 | typedef const int *iptr; |
|
|
7951 | iptr p = 0; |
|
|
7952 | ++p; |
|
|
7953 | } |
|
|
7954 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
7955 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
7956 | struct s { int j; const int *ap[3]; }; |
|
|
7957 | struct s *b; b->j = 5; |
|
|
7958 | } |
|
|
7959 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
7960 | const int foo = 10; |
|
|
7961 | if (!foo) return 0; |
|
|
7962 | } |
|
|
7963 | return !cs[0] && !zero.x; |
|
|
7964 | #endif |
|
|
7965 | |
|
|
7966 | ; |
|
|
7967 | return 0; |
|
|
7968 | } |
|
|
7969 | _ACEOF |
|
|
7970 | rm -f conftest.$ac_objext |
|
|
7971 | if { (ac_try="$ac_compile" |
|
|
7972 | case "(($ac_try" in |
|
|
7973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7974 | *) ac_try_echo=$ac_try;; |
|
|
7975 | esac |
|
|
7976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7977 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7978 | ac_status=$? |
|
|
7979 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7980 | rm -f conftest.er1 |
|
|
7981 | cat conftest.err >&5 |
|
|
7982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7983 | (exit $ac_status); } && { |
|
|
7984 | test -z "$ac_cxx_werror_flag" || |
|
|
7985 | test ! -s conftest.err |
|
|
7986 | } && test -s conftest.$ac_objext; then |
|
|
7987 | ac_cv_c_const=yes |
|
|
7988 | else |
|
|
7989 | echo "$as_me: failed program was:" >&5 |
|
|
7990 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7991 | |
|
|
7992 | ac_cv_c_const=no |
|
|
7993 | fi |
|
|
7994 | |
|
|
7995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7996 | fi |
|
|
7997 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
7998 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
|
7999 | if test $ac_cv_c_const = no; then |
|
|
8000 | |
|
|
8001 | cat >>confdefs.h <<\_ACEOF |
|
|
8002 | #define const |
|
|
8003 | _ACEOF |
|
|
8004 | |
|
|
8005 | fi |
|
|
8006 | |
|
|
8007 | { echo "$as_me:$LINENO: checking for inline" >&5 |
|
|
8008 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
|
|
8009 | if test "${ac_cv_c_inline+set}" = set; then |
|
|
8010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8011 | else |
|
|
8012 | ac_cv_c_inline=no |
|
|
8013 | for ac_kw in inline __inline__ __inline; do |
|
|
8014 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8015 | /* confdefs.h. */ |
|
|
8016 | _ACEOF |
|
|
8017 | cat confdefs.h >>conftest.$ac_ext |
|
|
8018 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8019 | /* end confdefs.h. */ |
|
|
8020 | #ifndef __cplusplus |
|
|
8021 | typedef int foo_t; |
|
|
8022 | static $ac_kw foo_t static_foo () {return 0; } |
|
|
8023 | $ac_kw foo_t foo () {return 0; } |
|
|
8024 | #endif |
|
|
8025 | |
|
|
8026 | _ACEOF |
|
|
8027 | rm -f conftest.$ac_objext |
|
|
8028 | if { (ac_try="$ac_compile" |
|
|
8029 | case "(($ac_try" in |
|
|
8030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8031 | *) ac_try_echo=$ac_try;; |
|
|
8032 | esac |
|
|
8033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8034 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8035 | ac_status=$? |
|
|
8036 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8037 | rm -f conftest.er1 |
|
|
8038 | cat conftest.err >&5 |
|
|
8039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8040 | (exit $ac_status); } && { |
|
|
8041 | test -z "$ac_cxx_werror_flag" || |
|
|
8042 | test ! -s conftest.err |
|
|
8043 | } && test -s conftest.$ac_objext; then |
|
|
8044 | ac_cv_c_inline=$ac_kw |
|
|
8045 | else |
|
|
8046 | echo "$as_me: failed program was:" >&5 |
|
|
8047 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8048 | |
|
|
8049 | |
|
|
8050 | fi |
|
|
8051 | |
|
|
8052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8053 | test "$ac_cv_c_inline" != no && break |
|
|
8054 | done |
|
|
8055 | |
|
|
8056 | fi |
|
|
8057 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
|
|
8058 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
|
|
8059 | |
|
|
8060 | |
|
|
8061 | case $ac_cv_c_inline in |
|
|
8062 | inline | yes) ;; |
|
|
8063 | *) |
|
|
8064 | case $ac_cv_c_inline in |
|
|
8065 | no) ac_val=;; |
|
|
8066 | *) ac_val=$ac_cv_c_inline;; |
|
|
8067 | esac |
|
|
8068 | cat >>confdefs.h <<_ACEOF |
|
|
8069 | #ifndef __cplusplus |
|
|
8070 | #define inline $ac_val |
|
|
8071 | #endif |
|
|
8072 | _ACEOF |
|
|
8073 | ;; |
|
|
8074 | esac |
|
|
8075 | |
|
|
8076 | |
|
|
8077 | |
|
|
8078 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
|
|
8079 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
|
|
8080 | if test "${ac_cv_type_mode_t+set}" = set; then |
|
|
8081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8082 | else |
|
|
8083 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8084 | /* confdefs.h. */ |
|
|
8085 | _ACEOF |
|
|
8086 | cat confdefs.h >>conftest.$ac_ext |
|
|
8087 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8088 | /* end confdefs.h. */ |
|
|
8089 | $ac_includes_default |
|
|
8090 | typedef mode_t ac__type_new_; |
|
|
8091 | int |
|
|
8092 | main () |
|
|
8093 | { |
|
|
8094 | if ((ac__type_new_ *) 0) |
|
|
8095 | return 0; |
|
|
8096 | if (sizeof (ac__type_new_)) |
|
|
8097 | return 0; |
|
|
8098 | ; |
|
|
8099 | return 0; |
|
|
8100 | } |
|
|
8101 | _ACEOF |
|
|
8102 | rm -f conftest.$ac_objext |
|
|
8103 | if { (ac_try="$ac_compile" |
|
|
8104 | case "(($ac_try" in |
|
|
8105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8106 | *) ac_try_echo=$ac_try;; |
|
|
8107 | esac |
|
|
8108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8109 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8110 | ac_status=$? |
|
|
8111 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8112 | rm -f conftest.er1 |
|
|
8113 | cat conftest.err >&5 |
|
|
8114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8115 | (exit $ac_status); } && { |
|
|
8116 | test -z "$ac_cxx_werror_flag" || |
|
|
8117 | test ! -s conftest.err |
|
|
8118 | } && test -s conftest.$ac_objext; then |
|
|
8119 | ac_cv_type_mode_t=yes |
|
|
8120 | else |
|
|
8121 | echo "$as_me: failed program was:" >&5 |
|
|
8122 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8123 | |
|
|
8124 | ac_cv_type_mode_t=no |
|
|
8125 | fi |
|
|
8126 | |
|
|
8127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8128 | fi |
|
|
8129 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
|
|
8130 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
|
|
8131 | if test $ac_cv_type_mode_t = yes; then |
|
|
8132 | : |
|
|
8133 | else |
|
|
8134 | |
|
|
8135 | cat >>confdefs.h <<_ACEOF |
|
|
8136 | #define mode_t int |
|
|
8137 | _ACEOF |
|
|
8138 | |
|
|
8139 | fi |
|
|
8140 | |
|
|
8141 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
|
|
8142 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
|
|
8143 | if test "${ac_cv_type_pid_t+set}" = set; then |
|
|
8144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8145 | else |
|
|
8146 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8147 | /* confdefs.h. */ |
|
|
8148 | _ACEOF |
|
|
8149 | cat confdefs.h >>conftest.$ac_ext |
|
|
8150 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8151 | /* end confdefs.h. */ |
|
|
8152 | $ac_includes_default |
|
|
8153 | typedef pid_t ac__type_new_; |
|
|
8154 | int |
|
|
8155 | main () |
|
|
8156 | { |
|
|
8157 | if ((ac__type_new_ *) 0) |
|
|
8158 | return 0; |
|
|
8159 | if (sizeof (ac__type_new_)) |
|
|
8160 | return 0; |
|
|
8161 | ; |
|
|
8162 | return 0; |
|
|
8163 | } |
|
|
8164 | _ACEOF |
|
|
8165 | rm -f conftest.$ac_objext |
|
|
8166 | if { (ac_try="$ac_compile" |
|
|
8167 | case "(($ac_try" in |
|
|
8168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8169 | *) ac_try_echo=$ac_try;; |
|
|
8170 | esac |
|
|
8171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8172 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8173 | ac_status=$? |
|
|
8174 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8175 | rm -f conftest.er1 |
|
|
8176 | cat conftest.err >&5 |
|
|
8177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8178 | (exit $ac_status); } && { |
|
|
8179 | test -z "$ac_cxx_werror_flag" || |
|
|
8180 | test ! -s conftest.err |
|
|
8181 | } && test -s conftest.$ac_objext; then |
|
|
8182 | ac_cv_type_pid_t=yes |
|
|
8183 | else |
|
|
8184 | echo "$as_me: failed program was:" >&5 |
|
|
8185 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8186 | |
|
|
8187 | ac_cv_type_pid_t=no |
|
|
8188 | fi |
|
|
8189 | |
|
|
8190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8191 | fi |
|
|
8192 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
|
|
8193 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
|
|
8194 | if test $ac_cv_type_pid_t = yes; then |
|
|
8195 | : |
|
|
8196 | else |
|
|
8197 | |
|
|
8198 | cat >>confdefs.h <<_ACEOF |
|
|
8199 | #define pid_t int |
|
|
8200 | _ACEOF |
|
|
8201 | |
|
|
8202 | fi |
|
|
8203 | |
|
|
8204 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
|
|
8205 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } |
|
|
8206 | if test "${ac_cv_type_uid_t+set}" = set; then |
|
|
8207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8208 | else |
|
|
8209 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8210 | /* confdefs.h. */ |
|
|
8211 | _ACEOF |
|
|
8212 | cat confdefs.h >>conftest.$ac_ext |
|
|
8213 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8214 | /* end confdefs.h. */ |
|
|
8215 | #include <sys/types.h> |
|
|
8216 | |
|
|
8217 | _ACEOF |
|
|
8218 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
8219 | $EGREP "uid_t" >/dev/null 2>&1; then |
|
|
8220 | ac_cv_type_uid_t=yes |
|
|
8221 | else |
|
|
8222 | ac_cv_type_uid_t=no |
|
|
8223 | fi |
|
|
8224 | rm -f conftest* |
|
|
8225 | |
|
|
8226 | fi |
|
|
8227 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
|
|
8228 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
|
|
8229 | if test $ac_cv_type_uid_t = no; then |
|
|
8230 | |
|
|
8231 | cat >>confdefs.h <<\_ACEOF |
|
|
8232 | #define uid_t int |
|
|
8233 | _ACEOF |
|
|
8234 | |
|
|
8235 | |
|
|
8236 | cat >>confdefs.h <<\_ACEOF |
|
|
8237 | #define gid_t int |
|
|
8238 | _ACEOF |
|
|
8239 | |
|
|
8240 | fi |
|
|
8241 | |
|
|
8242 | |
|
|
8243 | { echo "$as_me:$LINENO: checking for short" >&5 |
|
|
8244 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
|
|
8245 | if test "${ac_cv_type_short+set}" = set; then |
|
|
8246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8247 | else |
|
|
8248 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8249 | /* confdefs.h. */ |
|
|
8250 | _ACEOF |
|
|
8251 | cat confdefs.h >>conftest.$ac_ext |
|
|
8252 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8253 | /* end confdefs.h. */ |
|
|
8254 | $ac_includes_default |
|
|
8255 | typedef short ac__type_new_; |
|
|
8256 | int |
|
|
8257 | main () |
|
|
8258 | { |
|
|
8259 | if ((ac__type_new_ *) 0) |
|
|
8260 | return 0; |
|
|
8261 | if (sizeof (ac__type_new_)) |
|
|
8262 | return 0; |
|
|
8263 | ; |
|
|
8264 | return 0; |
|
|
8265 | } |
|
|
8266 | _ACEOF |
|
|
8267 | rm -f conftest.$ac_objext |
|
|
8268 | if { (ac_try="$ac_compile" |
|
|
8269 | case "(($ac_try" in |
|
|
8270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8271 | *) ac_try_echo=$ac_try;; |
|
|
8272 | esac |
|
|
8273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8274 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8275 | ac_status=$? |
|
|
8276 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8277 | rm -f conftest.er1 |
|
|
8278 | cat conftest.err >&5 |
|
|
8279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8280 | (exit $ac_status); } && { |
|
|
8281 | test -z "$ac_cxx_werror_flag" || |
|
|
8282 | test ! -s conftest.err |
|
|
8283 | } && test -s conftest.$ac_objext; then |
|
|
8284 | ac_cv_type_short=yes |
|
|
8285 | else |
|
|
8286 | echo "$as_me: failed program was:" >&5 |
|
|
8287 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8288 | |
|
|
8289 | ac_cv_type_short=no |
|
|
8290 | fi |
|
|
8291 | |
|
|
8292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8293 | fi |
|
|
8294 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
8295 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
8296 | |
|
|
8297 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8298 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8299 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8300 | # This bug is HP SR number 8606223364. |
|
|
8301 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
8302 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
8303 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
8304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8305 | else |
|
|
8306 | if test "$cross_compiling" = yes; then |
|
|
8307 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8308 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8309 | /* confdefs.h. */ |
|
|
8310 | _ACEOF |
|
|
8311 | cat confdefs.h >>conftest.$ac_ext |
|
|
8312 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8313 | /* end confdefs.h. */ |
|
|
8314 | $ac_includes_default |
|
|
8315 | typedef short ac__type_sizeof_; |
|
|
8316 | int |
|
|
8317 | main () |
|
|
8318 | { |
|
|
8319 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8320 | test_array [0] = 0 |
|
|
8321 | |
|
|
8322 | ; |
|
|
8323 | return 0; |
|
|
8324 | } |
|
|
8325 | _ACEOF |
|
|
8326 | rm -f conftest.$ac_objext |
|
|
8327 | if { (ac_try="$ac_compile" |
|
|
8328 | case "(($ac_try" in |
|
|
8329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8330 | *) ac_try_echo=$ac_try;; |
|
|
8331 | esac |
|
|
8332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8333 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8334 | ac_status=$? |
|
|
8335 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8336 | rm -f conftest.er1 |
|
|
8337 | cat conftest.err >&5 |
|
|
8338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8339 | (exit $ac_status); } && { |
|
|
8340 | test -z "$ac_cxx_werror_flag" || |
|
|
8341 | test ! -s conftest.err |
|
|
8342 | } && test -s conftest.$ac_objext; then |
|
|
8343 | ac_lo=0 ac_mid=0 |
|
|
8344 | while :; do |
|
|
8345 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8346 | /* confdefs.h. */ |
|
|
8347 | _ACEOF |
|
|
8348 | cat confdefs.h >>conftest.$ac_ext |
|
|
8349 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8350 | /* end confdefs.h. */ |
|
|
8351 | $ac_includes_default |
|
|
8352 | typedef short ac__type_sizeof_; |
|
|
8353 | int |
|
|
8354 | main () |
|
|
8355 | { |
|
|
8356 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8357 | test_array [0] = 0 |
|
|
8358 | |
|
|
8359 | ; |
|
|
8360 | return 0; |
|
|
8361 | } |
|
|
8362 | _ACEOF |
|
|
8363 | rm -f conftest.$ac_objext |
|
|
8364 | if { (ac_try="$ac_compile" |
|
|
8365 | case "(($ac_try" in |
|
|
8366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8367 | *) ac_try_echo=$ac_try;; |
|
|
8368 | esac |
|
|
8369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8370 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8371 | ac_status=$? |
|
|
8372 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8373 | rm -f conftest.er1 |
|
|
8374 | cat conftest.err >&5 |
|
|
8375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8376 | (exit $ac_status); } && { |
|
|
8377 | test -z "$ac_cxx_werror_flag" || |
|
|
8378 | test ! -s conftest.err |
|
|
8379 | } && test -s conftest.$ac_objext; then |
|
|
8380 | ac_hi=$ac_mid; break |
|
|
8381 | else |
|
|
8382 | echo "$as_me: failed program was:" >&5 |
|
|
8383 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8384 | |
|
|
8385 | ac_lo=`expr $ac_mid + 1` |
|
|
8386 | if test $ac_lo -le $ac_mid; then |
|
|
8387 | ac_lo= ac_hi= |
|
|
8388 | break |
|
|
8389 | fi |
|
|
8390 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8391 | fi |
|
|
8392 | |
|
|
8393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8394 | done |
|
|
8395 | else |
|
|
8396 | echo "$as_me: failed program was:" >&5 |
|
|
8397 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8398 | |
|
|
8399 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8400 | /* confdefs.h. */ |
|
|
8401 | _ACEOF |
|
|
8402 | cat confdefs.h >>conftest.$ac_ext |
|
|
8403 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8404 | /* end confdefs.h. */ |
|
|
8405 | $ac_includes_default |
|
|
8406 | typedef short ac__type_sizeof_; |
|
|
8407 | int |
|
|
8408 | main () |
|
|
8409 | { |
|
|
8410 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8411 | test_array [0] = 0 |
|
|
8412 | |
|
|
8413 | ; |
|
|
8414 | return 0; |
|
|
8415 | } |
|
|
8416 | _ACEOF |
|
|
8417 | rm -f conftest.$ac_objext |
|
|
8418 | if { (ac_try="$ac_compile" |
|
|
8419 | case "(($ac_try" in |
|
|
8420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8421 | *) ac_try_echo=$ac_try;; |
|
|
8422 | esac |
|
|
8423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8424 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8425 | ac_status=$? |
|
|
8426 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8427 | rm -f conftest.er1 |
|
|
8428 | cat conftest.err >&5 |
|
|
8429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8430 | (exit $ac_status); } && { |
|
|
8431 | test -z "$ac_cxx_werror_flag" || |
|
|
8432 | test ! -s conftest.err |
|
|
8433 | } && test -s conftest.$ac_objext; then |
|
|
8434 | ac_hi=-1 ac_mid=-1 |
|
|
8435 | while :; do |
|
|
8436 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8437 | /* confdefs.h. */ |
|
|
8438 | _ACEOF |
|
|
8439 | cat confdefs.h >>conftest.$ac_ext |
|
|
8440 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8441 | /* end confdefs.h. */ |
|
|
8442 | $ac_includes_default |
|
|
8443 | typedef short ac__type_sizeof_; |
|
|
8444 | int |
|
|
8445 | main () |
|
|
8446 | { |
|
|
8447 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8448 | test_array [0] = 0 |
|
|
8449 | |
|
|
8450 | ; |
|
|
8451 | return 0; |
|
|
8452 | } |
|
|
8453 | _ACEOF |
|
|
8454 | rm -f conftest.$ac_objext |
|
|
8455 | if { (ac_try="$ac_compile" |
|
|
8456 | case "(($ac_try" in |
|
|
8457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8458 | *) ac_try_echo=$ac_try;; |
|
|
8459 | esac |
|
|
8460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8461 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8462 | ac_status=$? |
|
|
8463 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8464 | rm -f conftest.er1 |
|
|
8465 | cat conftest.err >&5 |
|
|
8466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8467 | (exit $ac_status); } && { |
|
|
8468 | test -z "$ac_cxx_werror_flag" || |
|
|
8469 | test ! -s conftest.err |
|
|
8470 | } && test -s conftest.$ac_objext; then |
|
|
8471 | ac_lo=$ac_mid; break |
|
|
8472 | else |
|
|
8473 | echo "$as_me: failed program was:" >&5 |
|
|
8474 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8475 | |
|
|
8476 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8477 | if test $ac_mid -le $ac_hi; then |
|
|
8478 | ac_lo= ac_hi= |
|
|
8479 | break |
|
|
8480 | fi |
|
|
8481 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8482 | fi |
|
|
8483 | |
|
|
8484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8485 | done |
|
|
8486 | else |
|
|
8487 | echo "$as_me: failed program was:" >&5 |
|
|
8488 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8489 | |
|
|
8490 | ac_lo= ac_hi= |
|
|
8491 | fi |
|
|
8492 | |
|
|
8493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8494 | fi |
|
|
8495 | |
|
|
8496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8497 | # Binary search between lo and hi bounds. |
|
|
8498 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8499 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8500 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8501 | /* confdefs.h. */ |
|
|
8502 | _ACEOF |
|
|
8503 | cat confdefs.h >>conftest.$ac_ext |
|
|
8504 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8505 | /* end confdefs.h. */ |
|
|
8506 | $ac_includes_default |
|
|
8507 | typedef short ac__type_sizeof_; |
|
|
8508 | int |
|
|
8509 | main () |
|
|
8510 | { |
|
|
8511 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8512 | test_array [0] = 0 |
|
|
8513 | |
|
|
8514 | ; |
|
|
8515 | return 0; |
|
|
8516 | } |
|
|
8517 | _ACEOF |
|
|
8518 | rm -f conftest.$ac_objext |
|
|
8519 | if { (ac_try="$ac_compile" |
|
|
8520 | case "(($ac_try" in |
|
|
8521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8522 | *) ac_try_echo=$ac_try;; |
|
|
8523 | esac |
|
|
8524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8525 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8526 | ac_status=$? |
|
|
8527 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8528 | rm -f conftest.er1 |
|
|
8529 | cat conftest.err >&5 |
|
|
8530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8531 | (exit $ac_status); } && { |
|
|
8532 | test -z "$ac_cxx_werror_flag" || |
|
|
8533 | test ! -s conftest.err |
|
|
8534 | } && test -s conftest.$ac_objext; then |
|
|
8535 | ac_hi=$ac_mid |
|
|
8536 | else |
|
|
8537 | echo "$as_me: failed program was:" >&5 |
|
|
8538 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8539 | |
|
|
8540 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8541 | fi |
|
|
8542 | |
|
|
8543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8544 | done |
|
|
8545 | case $ac_lo in |
|
|
8546 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
8547 | '') if test "$ac_cv_type_short" = yes; then |
|
|
8548 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8549 | See \`config.log' for more details." >&5 |
|
|
8550 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8551 | See \`config.log' for more details." >&2;} |
|
|
8552 | { (exit 77); exit 77; }; } |
|
|
8553 | else |
|
|
8554 | ac_cv_sizeof_short=0 |
|
|
8555 | fi ;; |
|
|
8556 | esac |
|
|
8557 | else |
|
|
8558 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8559 | /* confdefs.h. */ |
|
|
8560 | _ACEOF |
|
|
8561 | cat confdefs.h >>conftest.$ac_ext |
|
|
8562 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8563 | /* end confdefs.h. */ |
|
|
8564 | $ac_includes_default |
|
|
8565 | typedef short ac__type_sizeof_; |
|
|
8566 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8567 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8568 | #include <stdio.h> |
|
|
8569 | #include <stdlib.h> |
|
|
8570 | int |
|
|
8571 | main () |
|
|
8572 | { |
|
|
8573 | |
|
|
8574 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8575 | if (! f) |
|
|
8576 | return 1; |
|
|
8577 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8578 | { |
|
|
8579 | long int i = longval (); |
|
|
8580 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8581 | return 1; |
|
|
8582 | fprintf (f, "%ld\n", i); |
|
|
8583 | } |
|
|
8584 | else |
|
|
8585 | { |
|
|
8586 | unsigned long int i = ulongval (); |
|
|
8587 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8588 | return 1; |
|
|
8589 | fprintf (f, "%lu\n", i); |
|
|
8590 | } |
|
|
8591 | return ferror (f) || fclose (f) != 0; |
|
|
8592 | |
|
|
8593 | ; |
|
|
8594 | return 0; |
|
|
8595 | } |
|
|
8596 | _ACEOF |
|
|
8597 | rm -f conftest$ac_exeext |
|
|
8598 | if { (ac_try="$ac_link" |
|
|
8599 | case "(($ac_try" in |
|
|
8600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8601 | *) ac_try_echo=$ac_try;; |
|
|
8602 | esac |
|
|
8603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8604 | (eval "$ac_link") 2>&5 |
|
|
8605 | ac_status=$? |
|
|
8606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8607 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8608 | { (case "(($ac_try" in |
|
|
8609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8610 | *) ac_try_echo=$ac_try;; |
|
|
8611 | esac |
|
|
8612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8613 | (eval "$ac_try") 2>&5 |
|
|
8614 | ac_status=$? |
|
|
8615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8616 | (exit $ac_status); }; }; then |
|
|
8617 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
8618 | else |
|
|
8619 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8620 | echo "$as_me: failed program was:" >&5 |
|
|
8621 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8622 | |
|
|
8623 | ( exit $ac_status ) |
|
|
8624 | if test "$ac_cv_type_short" = yes; then |
|
|
8625 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8626 | See \`config.log' for more details." >&5 |
|
|
8627 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8628 | See \`config.log' for more details." >&2;} |
|
|
8629 | { (exit 77); exit 77; }; } |
|
|
8630 | else |
|
|
8631 | ac_cv_sizeof_short=0 |
|
|
8632 | fi |
|
|
8633 | fi |
|
|
8634 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8635 | fi |
|
|
8636 | rm -f conftest.val |
|
|
8637 | fi |
|
|
8638 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
|
|
8639 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
|
|
8640 | |
|
|
8641 | |
|
|
8642 | |
|
|
8643 | cat >>confdefs.h <<_ACEOF |
|
|
8644 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
|
|
8645 | _ACEOF |
|
|
8646 | |
|
|
8647 | |
|
|
8648 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
8649 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
8650 | if test "${ac_cv_type_int+set}" = set; then |
|
|
8651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8652 | else |
|
|
8653 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8654 | /* confdefs.h. */ |
|
|
8655 | _ACEOF |
|
|
8656 | cat confdefs.h >>conftest.$ac_ext |
|
|
8657 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8658 | /* end confdefs.h. */ |
|
|
8659 | $ac_includes_default |
|
|
8660 | typedef int ac__type_new_; |
|
|
8661 | int |
|
|
8662 | main () |
|
|
8663 | { |
|
|
8664 | if ((ac__type_new_ *) 0) |
|
|
8665 | return 0; |
|
|
8666 | if (sizeof (ac__type_new_)) |
|
|
8667 | return 0; |
|
|
8668 | ; |
|
|
8669 | return 0; |
|
|
8670 | } |
|
|
8671 | _ACEOF |
|
|
8672 | rm -f conftest.$ac_objext |
|
|
8673 | if { (ac_try="$ac_compile" |
|
|
8674 | case "(($ac_try" in |
|
|
8675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8676 | *) ac_try_echo=$ac_try;; |
|
|
8677 | esac |
|
|
8678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8679 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8680 | ac_status=$? |
|
|
8681 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8682 | rm -f conftest.er1 |
|
|
8683 | cat conftest.err >&5 |
|
|
8684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8685 | (exit $ac_status); } && { |
|
|
8686 | test -z "$ac_cxx_werror_flag" || |
|
|
8687 | test ! -s conftest.err |
|
|
8688 | } && test -s conftest.$ac_objext; then |
|
|
8689 | ac_cv_type_int=yes |
|
|
8690 | else |
|
|
8691 | echo "$as_me: failed program was:" >&5 |
|
|
8692 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8693 | |
|
|
8694 | ac_cv_type_int=no |
|
|
8695 | fi |
|
|
8696 | |
|
|
8697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8698 | fi |
|
|
8699 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8700 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8701 | |
|
|
8702 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8703 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8704 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8705 | # This bug is HP SR number 8606223364. |
|
|
8706 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8707 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8708 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8710 | else |
|
|
8711 | if test "$cross_compiling" = yes; then |
|
|
8712 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8713 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8714 | /* confdefs.h. */ |
|
|
8715 | _ACEOF |
|
|
8716 | cat confdefs.h >>conftest.$ac_ext |
|
|
8717 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8718 | /* end confdefs.h. */ |
|
|
8719 | $ac_includes_default |
|
|
8720 | typedef int ac__type_sizeof_; |
|
|
8721 | int |
|
|
8722 | main () |
|
|
8723 | { |
|
|
8724 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8725 | test_array [0] = 0 |
|
|
8726 | |
|
|
8727 | ; |
|
|
8728 | return 0; |
|
|
8729 | } |
|
|
8730 | _ACEOF |
|
|
8731 | rm -f conftest.$ac_objext |
|
|
8732 | if { (ac_try="$ac_compile" |
|
|
8733 | case "(($ac_try" in |
|
|
8734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8735 | *) ac_try_echo=$ac_try;; |
|
|
8736 | esac |
|
|
8737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8738 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8739 | ac_status=$? |
|
|
8740 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8741 | rm -f conftest.er1 |
|
|
8742 | cat conftest.err >&5 |
|
|
8743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8744 | (exit $ac_status); } && { |
|
|
8745 | test -z "$ac_cxx_werror_flag" || |
|
|
8746 | test ! -s conftest.err |
|
|
8747 | } && test -s conftest.$ac_objext; then |
|
|
8748 | ac_lo=0 ac_mid=0 |
|
|
8749 | while :; do |
|
|
8750 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8751 | /* confdefs.h. */ |
|
|
8752 | _ACEOF |
|
|
8753 | cat confdefs.h >>conftest.$ac_ext |
|
|
8754 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8755 | /* end confdefs.h. */ |
|
|
8756 | $ac_includes_default |
|
|
8757 | typedef int ac__type_sizeof_; |
|
|
8758 | int |
|
|
8759 | main () |
|
|
8760 | { |
|
|
8761 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8762 | test_array [0] = 0 |
|
|
8763 | |
|
|
8764 | ; |
|
|
8765 | return 0; |
|
|
8766 | } |
|
|
8767 | _ACEOF |
|
|
8768 | rm -f conftest.$ac_objext |
|
|
8769 | if { (ac_try="$ac_compile" |
|
|
8770 | case "(($ac_try" in |
|
|
8771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8772 | *) ac_try_echo=$ac_try;; |
|
|
8773 | esac |
|
|
8774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8775 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8776 | ac_status=$? |
|
|
8777 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8778 | rm -f conftest.er1 |
|
|
8779 | cat conftest.err >&5 |
|
|
8780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8781 | (exit $ac_status); } && { |
|
|
8782 | test -z "$ac_cxx_werror_flag" || |
|
|
8783 | test ! -s conftest.err |
|
|
8784 | } && test -s conftest.$ac_objext; then |
|
|
8785 | ac_hi=$ac_mid; break |
|
|
8786 | else |
|
|
8787 | echo "$as_me: failed program was:" >&5 |
|
|
8788 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8789 | |
|
|
8790 | ac_lo=`expr $ac_mid + 1` |
|
|
8791 | if test $ac_lo -le $ac_mid; then |
|
|
8792 | ac_lo= ac_hi= |
|
|
8793 | break |
|
|
8794 | fi |
|
|
8795 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8796 | fi |
|
|
8797 | |
|
|
8798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8799 | done |
|
|
8800 | else |
|
|
8801 | echo "$as_me: failed program was:" >&5 |
|
|
8802 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8803 | |
|
|
8804 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8805 | /* confdefs.h. */ |
|
|
8806 | _ACEOF |
|
|
8807 | cat confdefs.h >>conftest.$ac_ext |
|
|
8808 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8809 | /* end confdefs.h. */ |
|
|
8810 | $ac_includes_default |
|
|
8811 | typedef int ac__type_sizeof_; |
|
|
8812 | int |
|
|
8813 | main () |
|
|
8814 | { |
|
|
8815 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8816 | test_array [0] = 0 |
|
|
8817 | |
|
|
8818 | ; |
|
|
8819 | return 0; |
|
|
8820 | } |
|
|
8821 | _ACEOF |
|
|
8822 | rm -f conftest.$ac_objext |
|
|
8823 | if { (ac_try="$ac_compile" |
|
|
8824 | case "(($ac_try" in |
|
|
8825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8826 | *) ac_try_echo=$ac_try;; |
|
|
8827 | esac |
|
|
8828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8829 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8830 | ac_status=$? |
|
|
8831 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8832 | rm -f conftest.er1 |
|
|
8833 | cat conftest.err >&5 |
|
|
8834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8835 | (exit $ac_status); } && { |
|
|
8836 | test -z "$ac_cxx_werror_flag" || |
|
|
8837 | test ! -s conftest.err |
|
|
8838 | } && test -s conftest.$ac_objext; then |
|
|
8839 | ac_hi=-1 ac_mid=-1 |
|
|
8840 | while :; do |
|
|
8841 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8842 | /* confdefs.h. */ |
|
|
8843 | _ACEOF |
|
|
8844 | cat confdefs.h >>conftest.$ac_ext |
|
|
8845 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8846 | /* end confdefs.h. */ |
|
|
8847 | $ac_includes_default |
|
|
8848 | typedef int ac__type_sizeof_; |
|
|
8849 | int |
|
|
8850 | main () |
|
|
8851 | { |
|
|
8852 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8853 | test_array [0] = 0 |
|
|
8854 | |
|
|
8855 | ; |
|
|
8856 | return 0; |
|
|
8857 | } |
|
|
8858 | _ACEOF |
|
|
8859 | rm -f conftest.$ac_objext |
|
|
8860 | if { (ac_try="$ac_compile" |
|
|
8861 | case "(($ac_try" in |
|
|
8862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8863 | *) ac_try_echo=$ac_try;; |
|
|
8864 | esac |
|
|
8865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8866 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8867 | ac_status=$? |
|
|
8868 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8869 | rm -f conftest.er1 |
|
|
8870 | cat conftest.err >&5 |
|
|
8871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8872 | (exit $ac_status); } && { |
|
|
8873 | test -z "$ac_cxx_werror_flag" || |
|
|
8874 | test ! -s conftest.err |
|
|
8875 | } && test -s conftest.$ac_objext; then |
|
|
8876 | ac_lo=$ac_mid; break |
|
|
8877 | else |
|
|
8878 | echo "$as_me: failed program was:" >&5 |
|
|
8879 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8880 | |
|
|
8881 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8882 | if test $ac_mid -le $ac_hi; then |
|
|
8883 | ac_lo= ac_hi= |
|
|
8884 | break |
|
|
8885 | fi |
|
|
8886 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8887 | fi |
|
|
8888 | |
|
|
8889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8890 | done |
|
|
8891 | else |
|
|
8892 | echo "$as_me: failed program was:" >&5 |
|
|
8893 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8894 | |
|
|
8895 | ac_lo= ac_hi= |
|
|
8896 | fi |
|
|
8897 | |
|
|
8898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8899 | fi |
|
|
8900 | |
|
|
8901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8902 | # Binary search between lo and hi bounds. |
|
|
8903 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8904 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8905 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8906 | /* confdefs.h. */ |
|
|
8907 | _ACEOF |
|
|
8908 | cat confdefs.h >>conftest.$ac_ext |
|
|
8909 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8910 | /* end confdefs.h. */ |
|
|
8911 | $ac_includes_default |
|
|
8912 | typedef int ac__type_sizeof_; |
|
|
8913 | int |
|
|
8914 | main () |
|
|
8915 | { |
|
|
8916 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8917 | test_array [0] = 0 |
|
|
8918 | |
|
|
8919 | ; |
|
|
8920 | return 0; |
|
|
8921 | } |
|
|
8922 | _ACEOF |
|
|
8923 | rm -f conftest.$ac_objext |
|
|
8924 | if { (ac_try="$ac_compile" |
|
|
8925 | case "(($ac_try" in |
|
|
8926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8927 | *) ac_try_echo=$ac_try;; |
|
|
8928 | esac |
|
|
8929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8930 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8931 | ac_status=$? |
|
|
8932 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8933 | rm -f conftest.er1 |
|
|
8934 | cat conftest.err >&5 |
|
|
8935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8936 | (exit $ac_status); } && { |
|
|
8937 | test -z "$ac_cxx_werror_flag" || |
|
|
8938 | test ! -s conftest.err |
|
|
8939 | } && test -s conftest.$ac_objext; then |
|
|
8940 | ac_hi=$ac_mid |
|
|
8941 | else |
|
|
8942 | echo "$as_me: failed program was:" >&5 |
|
|
8943 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8944 | |
|
|
8945 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8946 | fi |
|
|
8947 | |
|
|
8948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8949 | done |
|
|
8950 | case $ac_lo in |
|
|
8951 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8952 | '') if test "$ac_cv_type_int" = yes; then |
|
|
8953 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8954 | See \`config.log' for more details." >&5 |
|
|
8955 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8956 | See \`config.log' for more details." >&2;} |
|
|
8957 | { (exit 77); exit 77; }; } |
|
|
8958 | else |
|
|
8959 | ac_cv_sizeof_int=0 |
|
|
8960 | fi ;; |
|
|
8961 | esac |
|
|
8962 | else |
|
|
8963 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8964 | /* confdefs.h. */ |
|
|
8965 | _ACEOF |
|
|
8966 | cat confdefs.h >>conftest.$ac_ext |
|
|
8967 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8968 | /* end confdefs.h. */ |
|
|
8969 | $ac_includes_default |
|
|
8970 | typedef int ac__type_sizeof_; |
|
|
8971 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8972 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8973 | #include <stdio.h> |
|
|
8974 | #include <stdlib.h> |
|
|
8975 | int |
|
|
8976 | main () |
|
|
8977 | { |
|
|
8978 | |
|
|
8979 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8980 | if (! f) |
|
|
8981 | return 1; |
|
|
8982 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8983 | { |
|
|
8984 | long int i = longval (); |
|
|
8985 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8986 | return 1; |
|
|
8987 | fprintf (f, "%ld\n", i); |
|
|
8988 | } |
|
|
8989 | else |
|
|
8990 | { |
|
|
8991 | unsigned long int i = ulongval (); |
|
|
8992 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8993 | return 1; |
|
|
8994 | fprintf (f, "%lu\n", i); |
|
|
8995 | } |
|
|
8996 | return ferror (f) || fclose (f) != 0; |
|
|
8997 | |
|
|
8998 | ; |
|
|
8999 | return 0; |
|
|
9000 | } |
|
|
9001 | _ACEOF |
|
|
9002 | rm -f conftest$ac_exeext |
|
|
9003 | if { (ac_try="$ac_link" |
|
|
9004 | case "(($ac_try" in |
|
|
9005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9006 | *) ac_try_echo=$ac_try;; |
|
|
9007 | esac |
|
|
9008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9009 | (eval "$ac_link") 2>&5 |
|
|
9010 | ac_status=$? |
|
|
9011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9012 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9013 | { (case "(($ac_try" in |
|
|
9014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9015 | *) ac_try_echo=$ac_try;; |
|
|
9016 | esac |
|
|
9017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9018 | (eval "$ac_try") 2>&5 |
|
|
9019 | ac_status=$? |
|
|
9020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9021 | (exit $ac_status); }; }; then |
|
|
9022 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
9023 | else |
|
|
9024 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9025 | echo "$as_me: failed program was:" >&5 |
|
|
9026 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9027 | |
|
|
9028 | ( exit $ac_status ) |
|
|
9029 | if test "$ac_cv_type_int" = yes; then |
|
|
9030 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
9031 | See \`config.log' for more details." >&5 |
|
|
9032 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
9033 | See \`config.log' for more details." >&2;} |
|
|
9034 | { (exit 77); exit 77; }; } |
|
|
9035 | else |
|
|
9036 | ac_cv_sizeof_int=0 |
|
|
9037 | fi |
|
|
9038 | fi |
|
|
9039 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9040 | fi |
|
|
9041 | rm -f conftest.val |
|
|
9042 | fi |
|
|
9043 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
9044 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
9045 | |
|
|
9046 | |
|
|
9047 | |
|
|
9048 | cat >>confdefs.h <<_ACEOF |
|
|
9049 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
9050 | _ACEOF |
|
|
9051 | |
|
|
9052 | |
|
|
9053 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
9054 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
9055 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
9056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9057 | else |
|
|
9058 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9059 | /* confdefs.h. */ |
|
|
9060 | _ACEOF |
|
|
9061 | cat confdefs.h >>conftest.$ac_ext |
|
|
9062 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9063 | /* end confdefs.h. */ |
|
|
9064 | $ac_includes_default |
|
|
9065 | typedef long long ac__type_new_; |
|
|
9066 | int |
|
|
9067 | main () |
|
|
9068 | { |
|
|
9069 | if ((ac__type_new_ *) 0) |
|
|
9070 | return 0; |
|
|
9071 | if (sizeof (ac__type_new_)) |
|
|
9072 | return 0; |
|
|
9073 | ; |
|
|
9074 | return 0; |
|
|
9075 | } |
|
|
9076 | _ACEOF |
|
|
9077 | rm -f conftest.$ac_objext |
|
|
9078 | if { (ac_try="$ac_compile" |
|
|
9079 | case "(($ac_try" in |
|
|
9080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9081 | *) ac_try_echo=$ac_try;; |
|
|
9082 | esac |
|
|
9083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9084 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9085 | ac_status=$? |
|
|
9086 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9087 | rm -f conftest.er1 |
|
|
9088 | cat conftest.err >&5 |
|
|
9089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9090 | (exit $ac_status); } && { |
|
|
9091 | test -z "$ac_cxx_werror_flag" || |
|
|
9092 | test ! -s conftest.err |
|
|
9093 | } && test -s conftest.$ac_objext; then |
|
|
9094 | ac_cv_type_long_long=yes |
|
|
9095 | else |
|
|
9096 | echo "$as_me: failed program was:" >&5 |
|
|
9097 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9098 | |
|
|
9099 | ac_cv_type_long_long=no |
|
|
9100 | fi |
|
|
9101 | |
|
|
9102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9103 | fi |
|
|
9104 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
9105 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
9106 | |
|
|
9107 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9108 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9109 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9110 | # This bug is HP SR number 8606223364. |
|
|
9111 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
9112 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
9113 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
9114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9115 | else |
|
|
9116 | if test "$cross_compiling" = yes; then |
|
|
9117 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9118 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9119 | /* confdefs.h. */ |
|
|
9120 | _ACEOF |
|
|
9121 | cat confdefs.h >>conftest.$ac_ext |
|
|
9122 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9123 | /* end confdefs.h. */ |
|
|
9124 | $ac_includes_default |
|
|
9125 | typedef long long ac__type_sizeof_; |
|
|
9126 | int |
|
|
9127 | main () |
|
|
9128 | { |
|
|
9129 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9130 | test_array [0] = 0 |
|
|
9131 | |
|
|
9132 | ; |
|
|
9133 | return 0; |
|
|
9134 | } |
|
|
9135 | _ACEOF |
|
|
9136 | rm -f conftest.$ac_objext |
|
|
9137 | if { (ac_try="$ac_compile" |
|
|
9138 | case "(($ac_try" in |
|
|
9139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9140 | *) ac_try_echo=$ac_try;; |
|
|
9141 | esac |
|
|
9142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9143 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9144 | ac_status=$? |
|
|
9145 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9146 | rm -f conftest.er1 |
|
|
9147 | cat conftest.err >&5 |
|
|
9148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9149 | (exit $ac_status); } && { |
|
|
9150 | test -z "$ac_cxx_werror_flag" || |
|
|
9151 | test ! -s conftest.err |
|
|
9152 | } && test -s conftest.$ac_objext; then |
|
|
9153 | ac_lo=0 ac_mid=0 |
|
|
9154 | while :; do |
|
|
9155 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9156 | /* confdefs.h. */ |
|
|
9157 | _ACEOF |
|
|
9158 | cat confdefs.h >>conftest.$ac_ext |
|
|
9159 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9160 | /* end confdefs.h. */ |
|
|
9161 | $ac_includes_default |
|
|
9162 | typedef long long ac__type_sizeof_; |
|
|
9163 | int |
|
|
9164 | main () |
|
|
9165 | { |
|
|
9166 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9167 | test_array [0] = 0 |
|
|
9168 | |
|
|
9169 | ; |
|
|
9170 | return 0; |
|
|
9171 | } |
|
|
9172 | _ACEOF |
|
|
9173 | rm -f conftest.$ac_objext |
|
|
9174 | if { (ac_try="$ac_compile" |
|
|
9175 | case "(($ac_try" in |
|
|
9176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9177 | *) ac_try_echo=$ac_try;; |
|
|
9178 | esac |
|
|
9179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9180 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9181 | ac_status=$? |
|
|
9182 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9183 | rm -f conftest.er1 |
|
|
9184 | cat conftest.err >&5 |
|
|
9185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9186 | (exit $ac_status); } && { |
|
|
9187 | test -z "$ac_cxx_werror_flag" || |
|
|
9188 | test ! -s conftest.err |
|
|
9189 | } && test -s conftest.$ac_objext; then |
|
|
9190 | ac_hi=$ac_mid; break |
|
|
9191 | else |
|
|
9192 | echo "$as_me: failed program was:" >&5 |
|
|
9193 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9194 | |
|
|
9195 | ac_lo=`expr $ac_mid + 1` |
|
|
9196 | if test $ac_lo -le $ac_mid; then |
|
|
9197 | ac_lo= ac_hi= |
|
|
9198 | break |
|
|
9199 | fi |
|
|
9200 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9201 | fi |
|
|
9202 | |
|
|
9203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9204 | done |
|
|
9205 | else |
|
|
9206 | echo "$as_me: failed program was:" >&5 |
|
|
9207 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9208 | |
|
|
9209 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9210 | /* confdefs.h. */ |
|
|
9211 | _ACEOF |
|
|
9212 | cat confdefs.h >>conftest.$ac_ext |
|
|
9213 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9214 | /* end confdefs.h. */ |
|
|
9215 | $ac_includes_default |
|
|
9216 | typedef long long ac__type_sizeof_; |
|
|
9217 | int |
|
|
9218 | main () |
|
|
9219 | { |
|
|
9220 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9221 | test_array [0] = 0 |
|
|
9222 | |
|
|
9223 | ; |
|
|
9224 | return 0; |
|
|
9225 | } |
|
|
9226 | _ACEOF |
|
|
9227 | rm -f conftest.$ac_objext |
|
|
9228 | if { (ac_try="$ac_compile" |
|
|
9229 | case "(($ac_try" in |
|
|
9230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9231 | *) ac_try_echo=$ac_try;; |
|
|
9232 | esac |
|
|
9233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9234 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9235 | ac_status=$? |
|
|
9236 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9237 | rm -f conftest.er1 |
|
|
9238 | cat conftest.err >&5 |
|
|
9239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9240 | (exit $ac_status); } && { |
|
|
9241 | test -z "$ac_cxx_werror_flag" || |
|
|
9242 | test ! -s conftest.err |
|
|
9243 | } && test -s conftest.$ac_objext; then |
|
|
9244 | ac_hi=-1 ac_mid=-1 |
|
|
9245 | while :; do |
|
|
9246 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9247 | /* confdefs.h. */ |
|
|
9248 | _ACEOF |
|
|
9249 | cat confdefs.h >>conftest.$ac_ext |
|
|
9250 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9251 | /* end confdefs.h. */ |
|
|
9252 | $ac_includes_default |
|
|
9253 | typedef long long ac__type_sizeof_; |
|
|
9254 | int |
|
|
9255 | main () |
|
|
9256 | { |
|
|
9257 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9258 | test_array [0] = 0 |
|
|
9259 | |
|
|
9260 | ; |
|
|
9261 | return 0; |
|
|
9262 | } |
|
|
9263 | _ACEOF |
|
|
9264 | rm -f conftest.$ac_objext |
|
|
9265 | if { (ac_try="$ac_compile" |
|
|
9266 | case "(($ac_try" in |
|
|
9267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9268 | *) ac_try_echo=$ac_try;; |
|
|
9269 | esac |
|
|
9270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9271 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9272 | ac_status=$? |
|
|
9273 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9274 | rm -f conftest.er1 |
|
|
9275 | cat conftest.err >&5 |
|
|
9276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9277 | (exit $ac_status); } && { |
|
|
9278 | test -z "$ac_cxx_werror_flag" || |
|
|
9279 | test ! -s conftest.err |
|
|
9280 | } && test -s conftest.$ac_objext; then |
|
|
9281 | ac_lo=$ac_mid; break |
|
|
9282 | else |
|
|
9283 | echo "$as_me: failed program was:" >&5 |
|
|
9284 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9285 | |
|
|
9286 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9287 | if test $ac_mid -le $ac_hi; then |
|
|
9288 | ac_lo= ac_hi= |
|
|
9289 | break |
|
|
9290 | fi |
|
|
9291 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9292 | fi |
|
|
9293 | |
|
|
9294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9295 | done |
|
|
9296 | else |
|
|
9297 | echo "$as_me: failed program was:" >&5 |
|
|
9298 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9299 | |
|
|
9300 | ac_lo= ac_hi= |
|
|
9301 | fi |
|
|
9302 | |
|
|
9303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9304 | fi |
|
|
9305 | |
|
|
9306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9307 | # Binary search between lo and hi bounds. |
|
|
9308 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9309 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9310 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9311 | /* confdefs.h. */ |
|
|
9312 | _ACEOF |
|
|
9313 | cat confdefs.h >>conftest.$ac_ext |
|
|
9314 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9315 | /* end confdefs.h. */ |
|
|
9316 | $ac_includes_default |
|
|
9317 | typedef long long ac__type_sizeof_; |
|
|
9318 | int |
|
|
9319 | main () |
|
|
9320 | { |
|
|
9321 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9322 | test_array [0] = 0 |
|
|
9323 | |
|
|
9324 | ; |
|
|
9325 | return 0; |
|
|
9326 | } |
|
|
9327 | _ACEOF |
|
|
9328 | rm -f conftest.$ac_objext |
|
|
9329 | if { (ac_try="$ac_compile" |
|
|
9330 | case "(($ac_try" in |
|
|
9331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9332 | *) ac_try_echo=$ac_try;; |
|
|
9333 | esac |
|
|
9334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9335 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9336 | ac_status=$? |
|
|
9337 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9338 | rm -f conftest.er1 |
|
|
9339 | cat conftest.err >&5 |
|
|
9340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9341 | (exit $ac_status); } && { |
|
|
9342 | test -z "$ac_cxx_werror_flag" || |
|
|
9343 | test ! -s conftest.err |
|
|
9344 | } && test -s conftest.$ac_objext; then |
|
|
9345 | ac_hi=$ac_mid |
|
|
9346 | else |
|
|
9347 | echo "$as_me: failed program was:" >&5 |
|
|
9348 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9349 | |
|
|
9350 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9351 | fi |
|
|
9352 | |
|
|
9353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9354 | done |
|
|
9355 | case $ac_lo in |
|
|
9356 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
9357 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
9358 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9359 | See \`config.log' for more details." >&5 |
|
|
9360 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9361 | See \`config.log' for more details." >&2;} |
|
|
9362 | { (exit 77); exit 77; }; } |
|
|
9363 | else |
|
|
9364 | ac_cv_sizeof_long_long=0 |
|
|
9365 | fi ;; |
|
|
9366 | esac |
|
|
9367 | else |
|
|
9368 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9369 | /* confdefs.h. */ |
|
|
9370 | _ACEOF |
|
|
9371 | cat confdefs.h >>conftest.$ac_ext |
|
|
9372 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9373 | /* end confdefs.h. */ |
|
|
9374 | $ac_includes_default |
|
|
9375 | typedef long long ac__type_sizeof_; |
|
|
9376 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9377 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9378 | #include <stdio.h> |
|
|
9379 | #include <stdlib.h> |
|
|
9380 | int |
|
|
9381 | main () |
|
|
9382 | { |
|
|
9383 | |
|
|
9384 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9385 | if (! f) |
|
|
9386 | return 1; |
|
|
9387 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9388 | { |
|
|
9389 | long int i = longval (); |
|
|
9390 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9391 | return 1; |
|
|
9392 | fprintf (f, "%ld\n", i); |
|
|
9393 | } |
|
|
9394 | else |
|
|
9395 | { |
|
|
9396 | unsigned long int i = ulongval (); |
|
|
9397 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9398 | return 1; |
|
|
9399 | fprintf (f, "%lu\n", i); |
|
|
9400 | } |
|
|
9401 | return ferror (f) || fclose (f) != 0; |
|
|
9402 | |
|
|
9403 | ; |
|
|
9404 | return 0; |
|
|
9405 | } |
|
|
9406 | _ACEOF |
|
|
9407 | rm -f conftest$ac_exeext |
|
|
9408 | if { (ac_try="$ac_link" |
|
|
9409 | case "(($ac_try" in |
|
|
9410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9411 | *) ac_try_echo=$ac_try;; |
|
|
9412 | esac |
|
|
9413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9414 | (eval "$ac_link") 2>&5 |
|
|
9415 | ac_status=$? |
|
|
9416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9417 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9418 | { (case "(($ac_try" in |
|
|
9419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9420 | *) ac_try_echo=$ac_try;; |
|
|
9421 | esac |
|
|
9422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9423 | (eval "$ac_try") 2>&5 |
|
|
9424 | ac_status=$? |
|
|
9425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9426 | (exit $ac_status); }; }; then |
|
|
9427 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
9428 | else |
|
|
9429 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9430 | echo "$as_me: failed program was:" >&5 |
|
|
9431 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9432 | |
|
|
9433 | ( exit $ac_status ) |
|
|
9434 | if test "$ac_cv_type_long_long" = yes; then |
|
|
9435 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9436 | See \`config.log' for more details." >&5 |
|
|
9437 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9438 | See \`config.log' for more details." >&2;} |
|
|
9439 | { (exit 77); exit 77; }; } |
|
|
9440 | else |
|
|
9441 | ac_cv_sizeof_long_long=0 |
|
|
9442 | fi |
|
|
9443 | fi |
|
|
9444 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9445 | fi |
|
|
9446 | rm -f conftest.val |
|
|
9447 | fi |
|
|
9448 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
9449 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
9450 | |
|
|
9451 | |
|
|
9452 | |
|
|
9453 | cat >>confdefs.h <<_ACEOF |
|
|
9454 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
9455 | _ACEOF |
|
|
9456 | |
|
|
9457 | |
|
|
9458 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
9459 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
9460 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
9461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9462 | else |
|
|
9463 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9464 | /* confdefs.h. */ |
|
|
9465 | _ACEOF |
|
|
9466 | cat confdefs.h >>conftest.$ac_ext |
|
|
9467 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9468 | /* end confdefs.h. */ |
|
|
9469 | $ac_includes_default |
|
|
9470 | typedef int * ac__type_new_; |
|
|
9471 | int |
|
|
9472 | main () |
|
|
9473 | { |
|
|
9474 | if ((ac__type_new_ *) 0) |
|
|
9475 | return 0; |
|
|
9476 | if (sizeof (ac__type_new_)) |
|
|
9477 | return 0; |
|
|
9478 | ; |
|
|
9479 | return 0; |
|
|
9480 | } |
|
|
9481 | _ACEOF |
|
|
9482 | rm -f conftest.$ac_objext |
|
|
9483 | if { (ac_try="$ac_compile" |
|
|
9484 | case "(($ac_try" in |
|
|
9485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9486 | *) ac_try_echo=$ac_try;; |
|
|
9487 | esac |
|
|
9488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9489 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9490 | ac_status=$? |
|
|
9491 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9492 | rm -f conftest.er1 |
|
|
9493 | cat conftest.err >&5 |
|
|
9494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9495 | (exit $ac_status); } && { |
|
|
9496 | test -z "$ac_cxx_werror_flag" || |
|
|
9497 | test ! -s conftest.err |
|
|
9498 | } && test -s conftest.$ac_objext; then |
|
|
9499 | ac_cv_type_int_p=yes |
|
|
9500 | else |
|
|
9501 | echo "$as_me: failed program was:" >&5 |
|
|
9502 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9503 | |
|
|
9504 | ac_cv_type_int_p=no |
|
|
9505 | fi |
|
|
9506 | |
|
|
9507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9508 | fi |
|
|
9509 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
9510 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
9511 | |
|
|
9512 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9513 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9514 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9515 | # This bug is HP SR number 8606223364. |
|
|
9516 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
9517 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
9518 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
9519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9520 | else |
|
|
9521 | if test "$cross_compiling" = yes; then |
|
|
9522 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9523 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9524 | /* confdefs.h. */ |
|
|
9525 | _ACEOF |
|
|
9526 | cat confdefs.h >>conftest.$ac_ext |
|
|
9527 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9528 | /* end confdefs.h. */ |
|
|
9529 | $ac_includes_default |
|
|
9530 | typedef int * ac__type_sizeof_; |
|
|
9531 | int |
|
|
9532 | main () |
|
|
9533 | { |
|
|
9534 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9535 | test_array [0] = 0 |
|
|
9536 | |
|
|
9537 | ; |
|
|
9538 | return 0; |
|
|
9539 | } |
|
|
9540 | _ACEOF |
|
|
9541 | rm -f conftest.$ac_objext |
|
|
9542 | if { (ac_try="$ac_compile" |
|
|
9543 | case "(($ac_try" in |
|
|
9544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9545 | *) ac_try_echo=$ac_try;; |
|
|
9546 | esac |
|
|
9547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9548 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9549 | ac_status=$? |
|
|
9550 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9551 | rm -f conftest.er1 |
|
|
9552 | cat conftest.err >&5 |
|
|
9553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9554 | (exit $ac_status); } && { |
|
|
9555 | test -z "$ac_cxx_werror_flag" || |
|
|
9556 | test ! -s conftest.err |
|
|
9557 | } && test -s conftest.$ac_objext; then |
|
|
9558 | ac_lo=0 ac_mid=0 |
|
|
9559 | while :; do |
|
|
9560 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9561 | /* confdefs.h. */ |
|
|
9562 | _ACEOF |
|
|
9563 | cat confdefs.h >>conftest.$ac_ext |
|
|
9564 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9565 | /* end confdefs.h. */ |
|
|
9566 | $ac_includes_default |
|
|
9567 | typedef int * ac__type_sizeof_; |
|
|
9568 | int |
|
|
9569 | main () |
|
|
9570 | { |
|
|
9571 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9572 | test_array [0] = 0 |
|
|
9573 | |
|
|
9574 | ; |
|
|
9575 | return 0; |
|
|
9576 | } |
|
|
9577 | _ACEOF |
|
|
9578 | rm -f conftest.$ac_objext |
|
|
9579 | if { (ac_try="$ac_compile" |
|
|
9580 | case "(($ac_try" in |
|
|
9581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9582 | *) ac_try_echo=$ac_try;; |
|
|
9583 | esac |
|
|
9584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9585 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9586 | ac_status=$? |
|
|
9587 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9588 | rm -f conftest.er1 |
|
|
9589 | cat conftest.err >&5 |
|
|
9590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9591 | (exit $ac_status); } && { |
|
|
9592 | test -z "$ac_cxx_werror_flag" || |
|
|
9593 | test ! -s conftest.err |
|
|
9594 | } && test -s conftest.$ac_objext; then |
|
|
9595 | ac_hi=$ac_mid; break |
|
|
9596 | else |
|
|
9597 | echo "$as_me: failed program was:" >&5 |
|
|
9598 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9599 | |
|
|
9600 | ac_lo=`expr $ac_mid + 1` |
|
|
9601 | if test $ac_lo -le $ac_mid; then |
|
|
9602 | ac_lo= ac_hi= |
|
|
9603 | break |
|
|
9604 | fi |
|
|
9605 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9606 | fi |
|
|
9607 | |
|
|
9608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9609 | done |
|
|
9610 | else |
|
|
9611 | echo "$as_me: failed program was:" >&5 |
|
|
9612 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9613 | |
|
|
9614 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9615 | /* confdefs.h. */ |
|
|
9616 | _ACEOF |
|
|
9617 | cat confdefs.h >>conftest.$ac_ext |
|
|
9618 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9619 | /* end confdefs.h. */ |
|
|
9620 | $ac_includes_default |
|
|
9621 | typedef int * ac__type_sizeof_; |
|
|
9622 | int |
|
|
9623 | main () |
|
|
9624 | { |
|
|
9625 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9626 | test_array [0] = 0 |
|
|
9627 | |
|
|
9628 | ; |
|
|
9629 | return 0; |
|
|
9630 | } |
|
|
9631 | _ACEOF |
|
|
9632 | rm -f conftest.$ac_objext |
|
|
9633 | if { (ac_try="$ac_compile" |
|
|
9634 | case "(($ac_try" in |
|
|
9635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9636 | *) ac_try_echo=$ac_try;; |
|
|
9637 | esac |
|
|
9638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9639 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9640 | ac_status=$? |
|
|
9641 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9642 | rm -f conftest.er1 |
|
|
9643 | cat conftest.err >&5 |
|
|
9644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9645 | (exit $ac_status); } && { |
|
|
9646 | test -z "$ac_cxx_werror_flag" || |
|
|
9647 | test ! -s conftest.err |
|
|
9648 | } && test -s conftest.$ac_objext; then |
|
|
9649 | ac_hi=-1 ac_mid=-1 |
|
|
9650 | while :; do |
|
|
9651 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9652 | /* confdefs.h. */ |
|
|
9653 | _ACEOF |
|
|
9654 | cat confdefs.h >>conftest.$ac_ext |
|
|
9655 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9656 | /* end confdefs.h. */ |
|
|
9657 | $ac_includes_default |
|
|
9658 | typedef int * ac__type_sizeof_; |
|
|
9659 | int |
|
|
9660 | main () |
|
|
9661 | { |
|
|
9662 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9663 | test_array [0] = 0 |
|
|
9664 | |
|
|
9665 | ; |
|
|
9666 | return 0; |
|
|
9667 | } |
|
|
9668 | _ACEOF |
|
|
9669 | rm -f conftest.$ac_objext |
|
|
9670 | if { (ac_try="$ac_compile" |
|
|
9671 | case "(($ac_try" in |
|
|
9672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9673 | *) ac_try_echo=$ac_try;; |
|
|
9674 | esac |
|
|
9675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9676 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9677 | ac_status=$? |
|
|
9678 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9679 | rm -f conftest.er1 |
|
|
9680 | cat conftest.err >&5 |
|
|
9681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9682 | (exit $ac_status); } && { |
|
|
9683 | test -z "$ac_cxx_werror_flag" || |
|
|
9684 | test ! -s conftest.err |
|
|
9685 | } && test -s conftest.$ac_objext; then |
|
|
9686 | ac_lo=$ac_mid; break |
|
|
9687 | else |
|
|
9688 | echo "$as_me: failed program was:" >&5 |
|
|
9689 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9690 | |
|
|
9691 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9692 | if test $ac_mid -le $ac_hi; then |
|
|
9693 | ac_lo= ac_hi= |
|
|
9694 | break |
|
|
9695 | fi |
|
|
9696 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9697 | fi |
|
|
9698 | |
|
|
9699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9700 | done |
|
|
9701 | else |
|
|
9702 | echo "$as_me: failed program was:" >&5 |
|
|
9703 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9704 | |
|
|
9705 | ac_lo= ac_hi= |
|
|
9706 | fi |
|
|
9707 | |
|
|
9708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9709 | fi |
|
|
9710 | |
|
|
9711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9712 | # Binary search between lo and hi bounds. |
|
|
9713 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9714 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9715 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9716 | /* confdefs.h. */ |
|
|
9717 | _ACEOF |
|
|
9718 | cat confdefs.h >>conftest.$ac_ext |
|
|
9719 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9720 | /* end confdefs.h. */ |
|
|
9721 | $ac_includes_default |
|
|
9722 | typedef int * ac__type_sizeof_; |
|
|
9723 | int |
|
|
9724 | main () |
|
|
9725 | { |
|
|
9726 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9727 | test_array [0] = 0 |
|
|
9728 | |
|
|
9729 | ; |
|
|
9730 | return 0; |
|
|
9731 | } |
|
|
9732 | _ACEOF |
|
|
9733 | rm -f conftest.$ac_objext |
|
|
9734 | if { (ac_try="$ac_compile" |
|
|
9735 | case "(($ac_try" in |
|
|
9736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9737 | *) ac_try_echo=$ac_try;; |
|
|
9738 | esac |
|
|
9739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9740 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9741 | ac_status=$? |
|
|
9742 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9743 | rm -f conftest.er1 |
|
|
9744 | cat conftest.err >&5 |
|
|
9745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9746 | (exit $ac_status); } && { |
|
|
9747 | test -z "$ac_cxx_werror_flag" || |
|
|
9748 | test ! -s conftest.err |
|
|
9749 | } && test -s conftest.$ac_objext; then |
|
|
9750 | ac_hi=$ac_mid |
|
|
9751 | else |
|
|
9752 | echo "$as_me: failed program was:" >&5 |
|
|
9753 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9754 | |
|
|
9755 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9756 | fi |
|
|
9757 | |
|
|
9758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9759 | done |
|
|
9760 | case $ac_lo in |
|
|
9761 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9762 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9763 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9764 | See \`config.log' for more details." >&5 |
|
|
9765 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9766 | See \`config.log' for more details." >&2;} |
|
|
9767 | { (exit 77); exit 77; }; } |
|
|
9768 | else |
|
|
9769 | ac_cv_sizeof_int_p=0 |
|
|
9770 | fi ;; |
|
|
9771 | esac |
|
|
9772 | else |
|
|
9773 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9774 | /* confdefs.h. */ |
|
|
9775 | _ACEOF |
|
|
9776 | cat confdefs.h >>conftest.$ac_ext |
|
|
9777 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9778 | /* end confdefs.h. */ |
|
|
9779 | $ac_includes_default |
|
|
9780 | typedef int * ac__type_sizeof_; |
|
|
9781 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9782 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9783 | #include <stdio.h> |
|
|
9784 | #include <stdlib.h> |
|
|
9785 | int |
|
|
9786 | main () |
|
|
9787 | { |
|
|
9788 | |
|
|
9789 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9790 | if (! f) |
|
|
9791 | return 1; |
|
|
9792 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9793 | { |
|
|
9794 | long int i = longval (); |
|
|
9795 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9796 | return 1; |
|
|
9797 | fprintf (f, "%ld\n", i); |
|
|
9798 | } |
|
|
9799 | else |
|
|
9800 | { |
|
|
9801 | unsigned long int i = ulongval (); |
|
|
9802 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9803 | return 1; |
|
|
9804 | fprintf (f, "%lu\n", i); |
|
|
9805 | } |
|
|
9806 | return ferror (f) || fclose (f) != 0; |
|
|
9807 | |
|
|
9808 | ; |
|
|
9809 | return 0; |
|
|
9810 | } |
|
|
9811 | _ACEOF |
|
|
9812 | rm -f conftest$ac_exeext |
|
|
9813 | if { (ac_try="$ac_link" |
|
|
9814 | case "(($ac_try" in |
|
|
9815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9816 | *) ac_try_echo=$ac_try;; |
|
|
9817 | esac |
|
|
9818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9819 | (eval "$ac_link") 2>&5 |
|
|
9820 | ac_status=$? |
|
|
9821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9822 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9823 | { (case "(($ac_try" in |
|
|
9824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9825 | *) ac_try_echo=$ac_try;; |
|
|
9826 | esac |
|
|
9827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9828 | (eval "$ac_try") 2>&5 |
|
|
9829 | ac_status=$? |
|
|
9830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9831 | (exit $ac_status); }; }; then |
|
|
9832 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9833 | else |
|
|
9834 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9835 | echo "$as_me: failed program was:" >&5 |
|
|
9836 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9837 | |
|
|
9838 | ( exit $ac_status ) |
|
|
9839 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9840 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9841 | See \`config.log' for more details." >&5 |
|
|
9842 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9843 | See \`config.log' for more details." >&2;} |
|
|
9844 | { (exit 77); exit 77; }; } |
|
|
9845 | else |
|
|
9846 | ac_cv_sizeof_int_p=0 |
|
|
9847 | fi |
|
|
9848 | fi |
|
|
9849 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9850 | fi |
|
|
9851 | rm -f conftest.val |
|
|
9852 | fi |
|
|
9853 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9854 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9855 | |
|
|
9856 | |
|
|
9857 | |
|
|
9858 | cat >>confdefs.h <<_ACEOF |
|
|
9859 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9860 | _ACEOF |
|
|
9861 | |
|
|
9862 | |
|
|
9863 | |
|
|
9864 | |
|
|
9865 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9866 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9867 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9869 | else |
|
|
9870 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9871 | /* confdefs.h. */ |
|
|
9872 | _ACEOF |
|
|
9873 | cat confdefs.h >>conftest.$ac_ext |
|
|
9874 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9875 | /* end confdefs.h. */ |
|
|
9876 | #include <stdint.h> |
|
|
9877 | int |
|
|
9878 | main () |
|
|
9879 | { |
|
|
9880 | int16_t dummy; |
|
|
9881 | ; |
|
|
9882 | return 0; |
|
|
9883 | } |
|
|
9884 | _ACEOF |
|
|
9885 | rm -f conftest.$ac_objext |
|
|
9886 | if { (ac_try="$ac_compile" |
|
|
9887 | case "(($ac_try" in |
|
|
9888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9889 | *) ac_try_echo=$ac_try;; |
|
|
9890 | esac |
|
|
9891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9892 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9893 | ac_status=$? |
|
|
9894 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9895 | rm -f conftest.er1 |
|
|
9896 | cat conftest.err >&5 |
|
|
9897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9898 | (exit $ac_status); } && { |
|
|
9899 | test -z "$ac_cxx_werror_flag" || |
|
|
9900 | test ! -s conftest.err |
|
|
9901 | } && test -s conftest.$ac_objext; then |
|
|
9902 | rxvt_cv_int16_t=yes |
|
|
9903 | else |
|
|
9904 | echo "$as_me: failed program was:" >&5 |
|
|
9905 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9906 | |
|
|
9907 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9908 | rxvt_cv_int16_t=" char" |
|
|
9909 | else |
|
|
9910 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9911 | rxvt_cv_int16_t=" short" |
|
|
9912 | else |
|
|
9913 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9914 | rxvt_cv_int16_t=" int" |
|
|
9915 | else |
|
|
9916 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9917 | rxvt_cv_int16_t=" long" |
|
|
9918 | else |
|
|
9919 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9920 | rxvt_cv_int16_t=" long long" |
|
|
9921 | else |
|
|
9922 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9923 | fi |
|
|
9924 | fi |
|
|
9925 | fi |
|
|
9926 | fi |
|
|
9927 | fi |
|
|
9928 | fi |
|
|
9929 | |
|
|
9930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9931 | fi |
|
|
9932 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9933 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
9934 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9935 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9936 | else |
|
|
9937 | if test x"" = x; then |
|
|
9938 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9939 | else |
|
|
9940 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9941 | fi |
|
|
9942 | fi |
|
|
9943 | |
|
|
9944 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9945 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
9946 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9948 | else |
|
|
9949 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9950 | /* confdefs.h. */ |
|
|
9951 | _ACEOF |
|
|
9952 | cat confdefs.h >>conftest.$ac_ext |
|
|
9953 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9954 | /* end confdefs.h. */ |
|
|
9955 | #include <stdint.h> |
|
|
9956 | int |
|
|
9957 | main () |
|
|
9958 | { |
|
|
9959 | uint16_t dummy; |
|
|
9960 | ; |
|
|
9961 | return 0; |
|
|
9962 | } |
|
|
9963 | _ACEOF |
|
|
9964 | rm -f conftest.$ac_objext |
|
|
9965 | if { (ac_try="$ac_compile" |
|
|
9966 | case "(($ac_try" in |
|
|
9967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9968 | *) ac_try_echo=$ac_try;; |
|
|
9969 | esac |
|
|
9970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9971 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9972 | ac_status=$? |
|
|
9973 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9974 | rm -f conftest.er1 |
|
|
9975 | cat conftest.err >&5 |
|
|
9976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9977 | (exit $ac_status); } && { |
|
|
9978 | test -z "$ac_cxx_werror_flag" || |
|
|
9979 | test ! -s conftest.err |
|
|
9980 | } && test -s conftest.$ac_objext; then |
|
|
9981 | rxvt_cv_uint16_t=yes |
|
|
9982 | else |
|
|
9983 | echo "$as_me: failed program was:" >&5 |
|
|
9984 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9985 | |
|
|
9986 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9987 | rxvt_cv_uint16_t="unsigned char" |
|
|
9988 | else |
|
|
9989 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9990 | rxvt_cv_uint16_t="unsigned short" |
|
|
9991 | else |
|
|
9992 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9993 | rxvt_cv_uint16_t="unsigned int" |
|
|
9994 | else |
|
|
9995 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9996 | rxvt_cv_uint16_t="unsigned long" |
|
|
9997 | else |
|
|
9998 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9999 | rxvt_cv_uint16_t="unsigned long long" |
|
|
10000 | else |
|
|
10001 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
10002 | fi |
|
|
10003 | fi |
|
|
10004 | fi |
|
|
10005 | fi |
|
|
10006 | fi |
|
|
10007 | fi |
|
|
10008 | |
|
|
10009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10010 | fi |
|
|
10011 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
10012 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
10013 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
10014 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
10015 | else |
|
|
10016 | if test x"unsigned" = x; then |
|
|
10017 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
10018 | else |
|
|
10019 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
10020 | fi |
|
|
10021 | fi |
|
|
10022 | |
|
|
10023 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
10024 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
10025 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
10026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10027 | else |
|
|
10028 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10029 | /* confdefs.h. */ |
|
|
10030 | _ACEOF |
|
|
10031 | cat confdefs.h >>conftest.$ac_ext |
|
|
10032 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10033 | /* end confdefs.h. */ |
|
|
10034 | #include <stdint.h> |
|
|
10035 | int |
|
|
10036 | main () |
|
|
10037 | { |
|
|
10038 | int32_t dummy; |
|
|
10039 | ; |
|
|
10040 | return 0; |
|
|
10041 | } |
|
|
10042 | _ACEOF |
|
|
10043 | rm -f conftest.$ac_objext |
|
|
10044 | if { (ac_try="$ac_compile" |
|
|
10045 | case "(($ac_try" in |
|
|
10046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10047 | *) ac_try_echo=$ac_try;; |
|
|
10048 | esac |
|
|
10049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10050 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10051 | ac_status=$? |
|
|
10052 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10053 | rm -f conftest.er1 |
|
|
10054 | cat conftest.err >&5 |
|
|
10055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10056 | (exit $ac_status); } && { |
|
|
10057 | test -z "$ac_cxx_werror_flag" || |
|
|
10058 | test ! -s conftest.err |
|
|
10059 | } && test -s conftest.$ac_objext; then |
|
|
10060 | rxvt_cv_int32_t=yes |
|
|
10061 | else |
|
|
10062 | echo "$as_me: failed program was:" >&5 |
|
|
10063 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10064 | |
|
|
10065 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
10066 | rxvt_cv_int32_t=" char" |
|
|
10067 | else |
|
|
10068 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
10069 | rxvt_cv_int32_t=" short" |
|
|
10070 | else |
|
|
10071 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
10072 | rxvt_cv_int32_t=" int" |
|
|
10073 | else |
|
|
10074 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
10075 | rxvt_cv_int32_t=" long" |
|
|
10076 | else |
|
|
10077 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
10078 | rxvt_cv_int32_t=" long long" |
|
|
10079 | else |
|
|
10080 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
10081 | fi |
|
|
10082 | fi |
|
|
10083 | fi |
|
|
10084 | fi |
|
|
10085 | fi |
|
|
10086 | fi |
|
|
10087 | |
|
|
10088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10089 | fi |
|
|
10090 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
10091 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
10092 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
10093 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
10094 | else |
|
|
10095 | if test x"" = x; then |
|
|
10096 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
10097 | else |
|
|
10098 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
10099 | fi |
|
|
10100 | fi |
|
|
10101 | |
|
|
10102 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
10103 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
10104 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
10105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10106 | else |
|
|
10107 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10108 | /* confdefs.h. */ |
|
|
10109 | _ACEOF |
|
|
10110 | cat confdefs.h >>conftest.$ac_ext |
|
|
10111 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10112 | /* end confdefs.h. */ |
|
|
10113 | #include <stdint.h> |
|
|
10114 | int |
|
|
10115 | main () |
|
|
10116 | { |
|
|
10117 | uint32_t dummy; |
|
|
10118 | ; |
|
|
10119 | return 0; |
|
|
10120 | } |
|
|
10121 | _ACEOF |
|
|
10122 | rm -f conftest.$ac_objext |
|
|
10123 | if { (ac_try="$ac_compile" |
|
|
10124 | case "(($ac_try" in |
|
|
10125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10126 | *) ac_try_echo=$ac_try;; |
|
|
10127 | esac |
|
|
10128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10129 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10130 | ac_status=$? |
|
|
10131 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10132 | rm -f conftest.er1 |
|
|
10133 | cat conftest.err >&5 |
|
|
10134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10135 | (exit $ac_status); } && { |
|
|
10136 | test -z "$ac_cxx_werror_flag" || |
|
|
10137 | test ! -s conftest.err |
|
|
10138 | } && test -s conftest.$ac_objext; then |
|
|
10139 | rxvt_cv_uint32_t=yes |
|
|
10140 | else |
|
|
10141 | echo "$as_me: failed program was:" >&5 |
|
|
10142 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10143 | |
|
|
10144 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
10145 | rxvt_cv_uint32_t="unsigned char" |
|
|
10146 | else |
|
|
10147 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
10148 | rxvt_cv_uint32_t="unsigned short" |
|
|
10149 | else |
|
|
10150 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
10151 | rxvt_cv_uint32_t="unsigned int" |
|
|
10152 | else |
|
|
10153 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
10154 | rxvt_cv_uint32_t="unsigned long" |
|
|
10155 | else |
|
|
10156 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
10157 | rxvt_cv_uint32_t="unsigned long long" |
|
|
10158 | else |
|
|
10159 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
10160 | fi |
|
|
10161 | fi |
|
|
10162 | fi |
|
|
10163 | fi |
|
|
10164 | fi |
|
|
10165 | fi |
|
|
10166 | |
|
|
10167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10168 | fi |
|
|
10169 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
10170 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
10171 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
10172 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
10173 | else |
|
|
10174 | if test x"unsigned" = x; then |
|
|
10175 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
10176 | else |
|
|
10177 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
10178 | fi |
|
|
10179 | fi |
|
|
10180 | |
|
|
10181 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
10182 | rxvt_intp_define="#define intp_t int64_t" |
|
|
10183 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
10184 | else |
|
|
10185 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
10186 | rxvt_intp_define="#define intp_t int32_t" |
|
|
10187 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
10188 | else |
|
|
10189 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
10190 | rxvt_intp_define="#define intp_t int16_t" |
|
|
10191 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
10192 | else |
|
|
10193 | rxvt_intp_define="#error set intp_t" |
|
|
10194 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
10195 | fi |
|
|
10196 | fi |
|
|
10197 | fi |
|
|
10198 | |
|
|
10199 | |
|
|
10200 | |
|
|
10201 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
10202 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
|
|
10203 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
10204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10205 | else |
|
|
10206 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10207 | /* confdefs.h. */ |
|
|
10208 | _ACEOF |
|
|
10209 | cat confdefs.h >>conftest.$ac_ext |
|
|
10210 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10211 | /* end confdefs.h. */ |
|
|
10212 | #include <sys/types.h> |
|
|
10213 | #include <signal.h> |
|
|
10214 | |
|
|
10215 | int |
|
|
10216 | main () |
|
|
10217 | { |
|
|
10218 | return *(signal (0, 0)) (0) == 1; |
|
|
10219 | ; |
|
|
10220 | return 0; |
|
|
10221 | } |
|
|
10222 | _ACEOF |
|
|
10223 | rm -f conftest.$ac_objext |
|
|
10224 | if { (ac_try="$ac_compile" |
|
|
10225 | case "(($ac_try" in |
|
|
10226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10227 | *) ac_try_echo=$ac_try;; |
|
|
10228 | esac |
|
|
10229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10230 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10231 | ac_status=$? |
|
|
10232 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10233 | rm -f conftest.er1 |
|
|
10234 | cat conftest.err >&5 |
|
|
10235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10236 | (exit $ac_status); } && { |
|
|
10237 | test -z "$ac_cxx_werror_flag" || |
|
|
10238 | test ! -s conftest.err |
|
|
10239 | } && test -s conftest.$ac_objext; then |
|
|
10240 | ac_cv_type_signal=int |
|
|
10241 | else |
|
|
10242 | echo "$as_me: failed program was:" >&5 |
|
|
10243 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10244 | |
|
|
10245 | ac_cv_type_signal=void |
|
|
10246 | fi |
|
|
10247 | |
|
|
10248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10249 | fi |
|
|
10250 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
10251 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
|
|
10252 | |
|
|
10253 | cat >>confdefs.h <<_ACEOF |
|
|
10254 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
10255 | _ACEOF |
|
|
10256 | |
|
|
10257 | |
|
|
10258 | |
|
|
10259 | |
|
|
10260 | |
|
|
10261 | |
|
|
10262 | for ac_func in \ |
|
|
10263 | unsetenv \ |
|
|
10264 | setutent \ |
|
|
10265 | on_exit \ |
|
|
10266 | |
|
|
10267 | do |
|
|
10268 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
10269 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
10270 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
10271 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
10272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10273 | else |
|
|
10274 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10275 | /* confdefs.h. */ |
|
|
10276 | _ACEOF |
|
|
10277 | cat confdefs.h >>conftest.$ac_ext |
|
|
10278 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10279 | /* end confdefs.h. */ |
|
|
10280 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
10281 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
10282 | #define $ac_func innocuous_$ac_func |
|
|
10283 | |
|
|
10284 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
10285 | which can conflict with char $ac_func (); below. |
|
|
10286 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
10287 | <limits.h> exists even on freestanding compilers. */ |
|
|
10288 | |
|
|
10289 | #ifdef __STDC__ |
|
|
10290 | # include <limits.h> |
|
|
10291 | #else |
|
|
10292 | # include <assert.h> |
|
|
10293 | #endif |
|
|
10294 | |
|
|
10295 | #undef $ac_func |
|
|
10296 | |
|
|
10297 | /* Override any GCC internal prototype to avoid an error. |
|
|
10298 | Use char because int might match the return type of a GCC |
|
|
10299 | builtin and then its argument prototype would still apply. */ |
|
|
10300 | #ifdef __cplusplus |
|
|
10301 | extern "C" |
|
|
10302 | #endif |
|
|
10303 | char $ac_func (); |
|
|
10304 | /* The GNU C library defines this for functions which it implements |
|
|
10305 | to always fail with ENOSYS. Some functions are actually named |
|
|
10306 | something starting with __ and the normal name is an alias. */ |
|
|
10307 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
10308 | choke me |
|
|
10309 | #endif |
|
|
10310 | |
|
|
10311 | int |
|
|
10312 | main () |
|
|
10313 | { |
|
|
10314 | return $ac_func (); |
|
|
10315 | ; |
|
|
10316 | return 0; |
|
|
10317 | } |
|
|
10318 | _ACEOF |
|
|
10319 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10320 | if { (ac_try="$ac_link" |
|
|
10321 | case "(($ac_try" in |
|
|
10322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10323 | *) ac_try_echo=$ac_try;; |
|
|
10324 | esac |
|
|
10325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10326 | (eval "$ac_link") 2>conftest.er1 |
|
|
10327 | ac_status=$? |
|
|
10328 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10329 | rm -f conftest.er1 |
|
|
10330 | cat conftest.err >&5 |
|
|
10331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10332 | (exit $ac_status); } && { |
|
|
10333 | test -z "$ac_cxx_werror_flag" || |
|
|
10334 | test ! -s conftest.err |
|
|
10335 | } && test -s conftest$ac_exeext && |
|
|
10336 | $as_test_x conftest$ac_exeext; then |
|
|
10337 | eval "$as_ac_var=yes" |
|
|
10338 | else |
|
|
10339 | echo "$as_me: failed program was:" >&5 |
|
|
10340 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10341 | |
|
|
10342 | eval "$as_ac_var=no" |
|
|
10343 | fi |
|
|
10344 | |
|
|
10345 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
10346 | conftest$ac_exeext conftest.$ac_ext |
|
|
10347 | fi |
|
|
10348 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
10349 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
10350 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
10351 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10352 | cat >>confdefs.h <<_ACEOF |
|
|
10353 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10354 | _ACEOF |
|
|
10355 | |
|
|
10356 | fi |
|
|
10357 | done |
|
|
10358 | |
|
|
10359 | |
|
|
10360 | |
|
|
10361 | support_utmp=yes |
|
|
10362 | support_wtmp=yes |
|
|
10363 | support_lastlog=yes |
|
|
10364 | |
|
|
10365 | # Check whether --enable-utmp was given. |
|
|
10366 | if test "${enable_utmp+set}" = set; then |
|
|
10367 | enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
10368 | support_utmp=$enableval |
|
|
10369 | fi |
|
|
10370 | fi |
|
|
10371 | |
|
|
10372 | |
|
|
10373 | # Check whether --enable-wtmp was given. |
|
|
10374 | if test "${enable_wtmp+set}" = set; then |
|
|
10375 | enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
10376 | support_wtmp=$enableval |
|
|
10377 | fi |
|
|
10378 | fi |
|
|
10379 | |
|
|
10380 | |
|
|
10381 | # Check whether --enable-lastlog was given. |
|
|
10382 | if test "${enable_lastlog+set}" = set; then |
|
|
10383 | enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
10384 | support_lastlog=$enableval |
|
|
10385 | fi |
|
|
10386 | fi |
|
|
10387 | |
|
|
10388 | |
|
|
10389 | if test x$support_utmp = xyes; then |
|
|
10390 | |
|
|
10391 | cat >>confdefs.h <<\_ACEOF |
|
|
10392 | #define UTMP_SUPPORT 1 |
|
|
10393 | _ACEOF |
|
|
10394 | |
|
|
10395 | fi |
|
|
10396 | if test x$support_wtmp = xyes; then |
|
|
10397 | |
|
|
10398 | cat >>confdefs.h <<\_ACEOF |
|
|
10399 | #define WTMP_SUPPORT 1 |
|
|
10400 | _ACEOF |
|
|
10401 | |
|
|
10402 | fi |
|
|
10403 | if test x$support_lastlog = xyes; then |
|
|
10404 | |
|
|
10405 | cat >>confdefs.h <<\_ACEOF |
|
|
10406 | #define LASTLOG_SUPPORT 1 |
|
|
10407 | _ACEOF |
|
|
10408 | |
|
|
10409 | fi |
|
|
10410 | |
|
|
10411 | |
|
|
10412 | |
|
|
10413 | |
|
|
10414 | for ac_func in \ |
|
|
10415 | ttyslot \ |
|
|
10416 | updwtmp \ |
|
|
10417 | updwtmpx \ |
|
|
10418 | |
|
|
10419 | do |
|
|
10420 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
10421 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
10422 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
10423 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
10424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10425 | else |
|
|
10426 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10427 | /* confdefs.h. */ |
|
|
10428 | _ACEOF |
|
|
10429 | cat confdefs.h >>conftest.$ac_ext |
|
|
10430 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10431 | /* end confdefs.h. */ |
|
|
10432 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
10433 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
10434 | #define $ac_func innocuous_$ac_func |
|
|
10435 | |
|
|
10436 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
10437 | which can conflict with char $ac_func (); below. |
|
|
10438 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
10439 | <limits.h> exists even on freestanding compilers. */ |
|
|
10440 | |
|
|
10441 | #ifdef __STDC__ |
|
|
10442 | # include <limits.h> |
|
|
10443 | #else |
|
|
10444 | # include <assert.h> |
|
|
10445 | #endif |
|
|
10446 | |
|
|
10447 | #undef $ac_func |
|
|
10448 | |
|
|
10449 | /* Override any GCC internal prototype to avoid an error. |
|
|
10450 | Use char because int might match the return type of a GCC |
|
|
10451 | builtin and then its argument prototype would still apply. */ |
|
|
10452 | #ifdef __cplusplus |
|
|
10453 | extern "C" |
|
|
10454 | #endif |
|
|
10455 | char $ac_func (); |
|
|
10456 | /* The GNU C library defines this for functions which it implements |
|
|
10457 | to always fail with ENOSYS. Some functions are actually named |
|
|
10458 | something starting with __ and the normal name is an alias. */ |
|
|
10459 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
10460 | choke me |
|
|
10461 | #endif |
|
|
10462 | |
|
|
10463 | int |
|
|
10464 | main () |
|
|
10465 | { |
|
|
10466 | return $ac_func (); |
|
|
10467 | ; |
|
|
10468 | return 0; |
|
|
10469 | } |
|
|
10470 | _ACEOF |
|
|
10471 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10472 | if { (ac_try="$ac_link" |
|
|
10473 | case "(($ac_try" in |
|
|
10474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10475 | *) ac_try_echo=$ac_try;; |
|
|
10476 | esac |
|
|
10477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10478 | (eval "$ac_link") 2>conftest.er1 |
|
|
10479 | ac_status=$? |
|
|
10480 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10481 | rm -f conftest.er1 |
|
|
10482 | cat conftest.err >&5 |
|
|
10483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10484 | (exit $ac_status); } && { |
|
|
10485 | test -z "$ac_cxx_werror_flag" || |
|
|
10486 | test ! -s conftest.err |
|
|
10487 | } && test -s conftest$ac_exeext && |
|
|
10488 | $as_test_x conftest$ac_exeext; then |
|
|
10489 | eval "$as_ac_var=yes" |
|
|
10490 | else |
|
|
10491 | echo "$as_me: failed program was:" >&5 |
|
|
10492 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10493 | |
|
|
10494 | eval "$as_ac_var=no" |
|
|
10495 | fi |
|
|
10496 | |
|
|
10497 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
10498 | conftest$ac_exeext conftest.$ac_ext |
|
|
10499 | fi |
|
|
10500 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
10501 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
10502 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
10503 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10504 | cat >>confdefs.h <<_ACEOF |
|
|
10505 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10506 | _ACEOF |
|
|
10507 | |
|
|
10508 | fi |
|
|
10509 | done |
|
|
10510 | |
|
|
10511 | |
|
|
10512 | |
|
|
10513 | |
|
|
10514 | |
|
|
10515 | for ac_header in \ |
|
|
10516 | utmp.h \ |
|
|
10517 | utmpx.h \ |
|
|
10518 | lastlog.h \ |
|
|
10519 | |
|
|
10520 | do |
|
|
10521 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
10522 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
10523 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10524 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
10525 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
10526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10527 | fi |
|
|
10528 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
10529 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
10530 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
10531 | else |
|
|
10532 | # Is the header compilable? |
|
|
10533 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
10534 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
10535 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10536 | /* confdefs.h. */ |
|
|
10537 | _ACEOF |
|
|
10538 | cat confdefs.h >>conftest.$ac_ext |
|
|
10539 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10540 | /* end confdefs.h. */ |
|
|
10541 | $ac_includes_default |
|
|
10542 | #include <$ac_header> |
|
|
10543 | _ACEOF |
|
|
10544 | rm -f conftest.$ac_objext |
|
|
10545 | if { (ac_try="$ac_compile" |
|
|
10546 | case "(($ac_try" in |
|
|
10547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10548 | *) ac_try_echo=$ac_try;; |
|
|
10549 | esac |
|
|
10550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10551 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10552 | ac_status=$? |
|
|
10553 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10554 | rm -f conftest.er1 |
|
|
10555 | cat conftest.err >&5 |
|
|
10556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10557 | (exit $ac_status); } && { |
|
|
10558 | test -z "$ac_cxx_werror_flag" || |
|
|
10559 | test ! -s conftest.err |
|
|
10560 | } && test -s conftest.$ac_objext; then |
|
|
10561 | ac_header_compiler=yes |
|
|
10562 | else |
|
|
10563 | echo "$as_me: failed program was:" >&5 |
|
|
10564 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10565 | |
|
|
10566 | ac_header_compiler=no |
|
|
10567 | fi |
|
|
10568 | |
|
|
10569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10570 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10571 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
10572 | |
|
|
10573 | # Is the header present? |
|
|
10574 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
10575 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
10576 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10577 | /* confdefs.h. */ |
|
|
10578 | _ACEOF |
|
|
10579 | cat confdefs.h >>conftest.$ac_ext |
|
|
10580 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10581 | /* end confdefs.h. */ |
|
|
10582 | #include <$ac_header> |
|
|
10583 | _ACEOF |
|
|
10584 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
10585 | case "(($ac_try" in |
|
|
10586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10587 | *) ac_try_echo=$ac_try;; |
|
|
10588 | esac |
|
|
10589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10590 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
10591 | ac_status=$? |
|
|
10592 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10593 | rm -f conftest.er1 |
|
|
10594 | cat conftest.err >&5 |
|
|
10595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10596 | (exit $ac_status); } >/dev/null && { |
|
|
10597 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
10598 | test ! -s conftest.err |
|
|
10599 | }; then |
|
|
10600 | ac_header_preproc=yes |
|
|
10601 | else |
|
|
10602 | echo "$as_me: failed program was:" >&5 |
|
|
10603 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10604 | |
|
|
10605 | ac_header_preproc=no |
|
|
10606 | fi |
|
|
10607 | |
|
|
10608 | rm -f conftest.err conftest.$ac_ext |
|
|
10609 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10610 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
10611 | |
|
|
10612 | # So? What about this header? |
|
|
10613 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10614 | yes:no: ) |
|
|
10615 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10616 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10617 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
10618 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
10619 | ac_header_preproc=yes |
|
|
10620 | ;; |
|
|
10621 | no:yes:* ) |
|
|
10622 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
10623 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
10624 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
10625 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
10626 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
10627 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
10628 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10629 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10630 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
10631 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
10632 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
10633 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
10634 | |
|
|
10635 | ;; |
|
|
10636 | esac |
|
|
10637 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10638 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
10639 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
10640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10641 | else |
|
|
10642 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
10643 | fi |
|
|
10644 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
10645 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
10646 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
10647 | |
|
|
10648 | fi |
|
|
10649 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
10650 | cat >>confdefs.h <<_ACEOF |
|
|
10651 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
10652 | _ACEOF |
|
|
10653 | |
|
|
10654 | fi |
|
|
10655 | |
|
|
10656 | done |
|
|
10657 | |
|
|
10658 | |
|
|
10659 | |
|
|
10660 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10661 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10662 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
|
|
10663 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10665 | fi |
|
|
10666 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10667 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
|
|
10668 | else |
|
|
10669 | # Is the header compilable? |
|
|
10670 | { echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
|
|
10671 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } |
|
|
10672 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10673 | /* confdefs.h. */ |
|
|
10674 | _ACEOF |
|
|
10675 | cat confdefs.h >>conftest.$ac_ext |
|
|
10676 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10677 | /* end confdefs.h. */ |
|
|
10678 | $ac_includes_default |
|
|
10679 | #include <utmp.h> |
|
|
10680 | _ACEOF |
|
|
10681 | rm -f conftest.$ac_objext |
|
|
10682 | if { (ac_try="$ac_compile" |
|
|
10683 | case "(($ac_try" in |
|
|
10684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10685 | *) ac_try_echo=$ac_try;; |
|
|
10686 | esac |
|
|
10687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10688 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10689 | ac_status=$? |
|
|
10690 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10691 | rm -f conftest.er1 |
|
|
10692 | cat conftest.err >&5 |
|
|
10693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10694 | (exit $ac_status); } && { |
|
|
10695 | test -z "$ac_cxx_werror_flag" || |
|
|
10696 | test ! -s conftest.err |
|
|
10697 | } && test -s conftest.$ac_objext; then |
|
|
10698 | ac_header_compiler=yes |
|
|
10699 | else |
|
|
10700 | echo "$as_me: failed program was:" >&5 |
|
|
10701 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10702 | |
|
|
10703 | ac_header_compiler=no |
|
|
10704 | fi |
|
|
10705 | |
|
|
10706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10707 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10708 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
10709 | |
|
|
10710 | # Is the header present? |
|
|
10711 | { echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
|
|
10712 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } |
|
|
10713 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10714 | /* confdefs.h. */ |
|
|
10715 | _ACEOF |
|
|
10716 | cat confdefs.h >>conftest.$ac_ext |
|
|
10717 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10718 | /* end confdefs.h. */ |
|
|
10719 | #include <utmp.h> |
|
|
10720 | _ACEOF |
|
|
10721 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
10722 | case "(($ac_try" in |
|
|
10723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10724 | *) ac_try_echo=$ac_try;; |
|
|
10725 | esac |
|
|
10726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10727 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
10728 | ac_status=$? |
|
|
10729 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10730 | rm -f conftest.er1 |
|
|
10731 | cat conftest.err >&5 |
|
|
10732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10733 | (exit $ac_status); } >/dev/null && { |
|
|
10734 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
10735 | test ! -s conftest.err |
|
|
10736 | }; then |
|
|
10737 | ac_header_preproc=yes |
|
|
10738 | else |
|
|
10739 | echo "$as_me: failed program was:" >&5 |
|
|
10740 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10741 | |
|
|
10742 | ac_header_preproc=no |
|
|
10743 | fi |
|
|
10744 | |
|
|
10745 | rm -f conftest.err conftest.$ac_ext |
|
|
10746 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10747 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
10748 | |
|
|
10749 | # So? What about this header? |
|
|
10750 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10751 | yes:no: ) |
|
|
10752 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10753 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10754 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
|
|
10755 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
|
|
10756 | ac_header_preproc=yes |
|
|
10757 | ;; |
|
|
10758 | no:yes:* ) |
|
|
10759 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
|
|
10760 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
|
|
10761 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
|
|
10762 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
|
|
10763 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
|
|
10764 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
|
|
10765 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10766 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10767 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
|
|
10768 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
|
|
10769 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
|
|
10770 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
|
|
10771 | |
|
|
10772 | ;; |
|
|
10773 | esac |
|
|
10774 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10775 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
|
|
10776 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10778 | else |
|
|
10779 | ac_cv_header_utmp_h=$ac_header_preproc |
|
|
10780 | fi |
|
|
10781 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10782 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
|
|
10783 | |
|
|
10784 | fi |
|
|
10785 | if test $ac_cv_header_utmp_h = yes; then |
|
|
10786 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
|
|
10787 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
|
|
10788 | if test "${struct_utmp+set}" = set; then |
|
|
10789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10790 | else |
|
|
10791 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10792 | /* confdefs.h. */ |
|
|
10793 | _ACEOF |
|
|
10794 | cat confdefs.h >>conftest.$ac_ext |
|
|
10795 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10796 | /* end confdefs.h. */ |
|
|
10797 | #include <sys/types.h> |
|
|
10798 | #include <utmp.h> |
|
|
10799 | int |
|
|
10800 | main () |
|
|
10801 | { |
|
|
10802 | struct utmp ut; |
|
|
10803 | ; |
|
|
10804 | return 0; |
|
|
10805 | } |
|
|
10806 | _ACEOF |
|
|
10807 | rm -f conftest.$ac_objext |
|
|
10808 | if { (ac_try="$ac_compile" |
|
|
10809 | case "(($ac_try" in |
|
|
10810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10811 | *) ac_try_echo=$ac_try;; |
|
|
10812 | esac |
|
|
10813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10814 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10815 | ac_status=$? |
|
|
10816 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10817 | rm -f conftest.er1 |
|
|
10818 | cat conftest.err >&5 |
|
|
10819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10820 | (exit $ac_status); } && { |
|
|
10821 | test -z "$ac_cxx_werror_flag" || |
|
|
10822 | test ! -s conftest.err |
|
|
10823 | } && test -s conftest.$ac_objext; then |
|
|
10824 | struct_utmp=yes |
|
|
10825 | else |
|
|
10826 | echo "$as_me: failed program was:" >&5 |
|
|
10827 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10828 | |
|
|
10829 | struct_utmp=no |
|
|
10830 | fi |
|
|
10831 | |
|
|
10832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10833 | fi |
|
|
10834 | { echo "$as_me:$LINENO: result: $struct_utmp" >&5 |
|
|
10835 | echo "${ECHO_T}$struct_utmp" >&6; } |
|
|
10836 | if test x$struct_utmp = xyes; then |
|
|
10837 | |
|
|
10838 | cat >>confdefs.h <<\_ACEOF |
|
|
10839 | #define HAVE_STRUCT_UTMP 1 |
|
|
10840 | _ACEOF |
|
|
10841 | |
|
|
10842 | fi |
|
|
10843 | |
|
|
10844 | |
|
|
10845 | { echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
|
|
10846 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6; } |
|
|
10847 | if test "${struct_utmp_host+set}" = set; then |
|
|
10848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10849 | else |
|
|
10850 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10851 | /* confdefs.h. */ |
|
|
10852 | _ACEOF |
|
|
10853 | cat confdefs.h >>conftest.$ac_ext |
|
|
10854 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10855 | /* end confdefs.h. */ |
|
|
10856 | #include <sys/types.h> |
|
|
10857 | #include <utmp.h> |
|
|
10858 | int |
|
|
10859 | main () |
|
|
10860 | { |
|
|
10861 | struct utmp ut; ut.ut_host; |
|
|
10862 | ; |
|
|
10863 | return 0; |
|
|
10864 | } |
|
|
10865 | _ACEOF |
|
|
10866 | rm -f conftest.$ac_objext |
|
|
10867 | if { (ac_try="$ac_compile" |
|
|
10868 | case "(($ac_try" in |
|
|
10869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10870 | *) ac_try_echo=$ac_try;; |
|
|
10871 | esac |
|
|
10872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10873 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10874 | ac_status=$? |
|
|
10875 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10876 | rm -f conftest.er1 |
|
|
10877 | cat conftest.err >&5 |
|
|
10878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10879 | (exit $ac_status); } && { |
|
|
10880 | test -z "$ac_cxx_werror_flag" || |
|
|
10881 | test ! -s conftest.err |
|
|
10882 | } && test -s conftest.$ac_objext; then |
|
|
10883 | struct_utmp_host=yes |
|
|
10884 | else |
|
|
10885 | echo "$as_me: failed program was:" >&5 |
|
|
10886 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10887 | |
|
|
10888 | struct_utmp_host=no |
|
|
10889 | fi |
|
|
10890 | |
|
|
10891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10892 | fi |
|
|
10893 | { echo "$as_me:$LINENO: result: $struct_utmp_host" >&5 |
|
|
10894 | echo "${ECHO_T}$struct_utmp_host" >&6; } |
|
|
10895 | if test x$struct_utmp_host = xyes; then |
|
|
10896 | |
|
|
10897 | cat >>confdefs.h <<\_ACEOF |
|
|
10898 | #define HAVE_UTMP_HOST 1 |
|
|
10899 | _ACEOF |
|
|
10900 | |
|
|
10901 | fi |
|
|
10902 | |
|
|
10903 | { echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
|
|
10904 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6; } |
|
|
10905 | if test "${struct_utmp_pid+set}" = set; then |
|
|
10906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10907 | else |
|
|
10908 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10909 | /* confdefs.h. */ |
|
|
10910 | _ACEOF |
|
|
10911 | cat confdefs.h >>conftest.$ac_ext |
|
|
10912 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10913 | /* end confdefs.h. */ |
|
|
10914 | #include <sys/types.h> |
|
|
10915 | #include <utmp.h> |
|
|
10916 | int |
|
|
10917 | main () |
|
|
10918 | { |
|
|
10919 | struct utmp ut; ut.ut_pid; |
|
|
10920 | ; |
|
|
10921 | return 0; |
|
|
10922 | } |
|
|
10923 | _ACEOF |
|
|
10924 | rm -f conftest.$ac_objext |
|
|
10925 | if { (ac_try="$ac_compile" |
|
|
10926 | case "(($ac_try" in |
|
|
10927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10928 | *) ac_try_echo=$ac_try;; |
|
|
10929 | esac |
|
|
10930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10931 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10932 | ac_status=$? |
|
|
10933 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10934 | rm -f conftest.er1 |
|
|
10935 | cat conftest.err >&5 |
|
|
10936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10937 | (exit $ac_status); } && { |
|
|
10938 | test -z "$ac_cxx_werror_flag" || |
|
|
10939 | test ! -s conftest.err |
|
|
10940 | } && test -s conftest.$ac_objext; then |
|
|
10941 | struct_utmp_pid=yes |
|
|
10942 | else |
|
|
10943 | echo "$as_me: failed program was:" >&5 |
|
|
10944 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10945 | |
|
|
10946 | struct_utmp_pid=no |
|
|
10947 | fi |
|
|
10948 | |
|
|
10949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10950 | fi |
|
|
10951 | { echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5 |
|
|
10952 | echo "${ECHO_T}$struct_utmp_pid" >&6; } |
|
|
10953 | if test x$struct_utmp_pid = xyes; then |
|
|
10954 | |
|
|
10955 | cat >>confdefs.h <<\_ACEOF |
|
|
10956 | #define HAVE_UTMP_PID 1 |
|
|
10957 | _ACEOF |
|
|
10958 | |
|
|
10959 | fi |
|
|
10960 | |
|
|
10961 | fi |
|
|
10962 | |
|
|
10963 | |
|
|
10964 | |
|
|
10965 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10966 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
10967 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
|
|
10968 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10970 | fi |
|
|
10971 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
10972 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
|
|
10973 | else |
|
|
10974 | # Is the header compilable? |
|
|
10975 | { echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
|
|
10976 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } |
|
|
10977 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10978 | /* confdefs.h. */ |
|
|
10979 | _ACEOF |
|
|
10980 | cat confdefs.h >>conftest.$ac_ext |
|
|
10981 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10982 | /* end confdefs.h. */ |
|
|
10983 | $ac_includes_default |
|
|
10984 | #include <utmpx.h> |
|
|
10985 | _ACEOF |
|
|
10986 | rm -f conftest.$ac_objext |
|
|
10987 | if { (ac_try="$ac_compile" |
|
|
10988 | case "(($ac_try" in |
|
|
10989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10990 | *) ac_try_echo=$ac_try;; |
|
|
10991 | esac |
|
|
10992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10993 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10994 | ac_status=$? |
|
|
10995 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10996 | rm -f conftest.er1 |
|
|
10997 | cat conftest.err >&5 |
|
|
10998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10999 | (exit $ac_status); } && { |
|
|
11000 | test -z "$ac_cxx_werror_flag" || |
|
|
11001 | test ! -s conftest.err |
|
|
11002 | } && test -s conftest.$ac_objext; then |
|
|
11003 | ac_header_compiler=yes |
|
|
11004 | else |
|
|
11005 | echo "$as_me: failed program was:" >&5 |
|
|
11006 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11007 | |
|
|
11008 | ac_header_compiler=no |
|
|
11009 | fi |
|
|
11010 | |
|
|
11011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11012 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
11013 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
11014 | |
|
|
11015 | # Is the header present? |
|
|
11016 | { echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
|
|
11017 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } |
|
|
11018 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11019 | /* confdefs.h. */ |
|
|
11020 | _ACEOF |
|
|
11021 | cat confdefs.h >>conftest.$ac_ext |
|
|
11022 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11023 | /* end confdefs.h. */ |
|
|
11024 | #include <utmpx.h> |
|
|
11025 | _ACEOF |
|
|
11026 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
11027 | case "(($ac_try" in |
|
|
11028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11029 | *) ac_try_echo=$ac_try;; |
|
|
11030 | esac |
|
|
11031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11032 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
11033 | ac_status=$? |
|
|
11034 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11035 | rm -f conftest.er1 |
|
|
11036 | cat conftest.err >&5 |
|
|
11037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11038 | (exit $ac_status); } >/dev/null && { |
|
|
11039 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
11040 | test ! -s conftest.err |
|
|
11041 | }; then |
|
|
11042 | ac_header_preproc=yes |
|
|
11043 | else |
|
|
11044 | echo "$as_me: failed program was:" >&5 |
|
|
11045 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11046 | |
|
|
11047 | ac_header_preproc=no |
|
|
11048 | fi |
|
|
11049 | |
|
|
11050 | rm -f conftest.err conftest.$ac_ext |
|
|
11051 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
11052 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
11053 | |
|
|
11054 | # So? What about this header? |
|
|
11055 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
11056 | yes:no: ) |
|
|
11057 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
11058 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
11059 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
|
|
11060 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
|
|
11061 | ac_header_preproc=yes |
|
|
11062 | ;; |
|
|
11063 | no:yes:* ) |
|
|
11064 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
|
|
11065 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
|
|
11066 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
|
|
11067 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
|
|
11068 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
|
|
11069 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
|
|
11070 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
11071 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
11072 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
|
|
11073 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
|
|
11074 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
|
|
11075 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
|
|
11076 | |
|
|
11077 | ;; |
|
|
11078 | esac |
|
|
11079 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
11080 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
|
|
11081 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
11082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11083 | else |
|
|
11084 | ac_cv_header_utmpx_h=$ac_header_preproc |
|
|
11085 | fi |
|
|
11086 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
11087 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
|
|
11088 | |
|
|
11089 | fi |
|
|
11090 | if test $ac_cv_header_utmpx_h = yes; then |
|
|
11091 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
|
|
11092 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
|
|
11093 | if test "${struct_utmpx+set}" = set; then |
|
|
11094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11095 | else |
|
|
11096 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11097 | /* confdefs.h. */ |
|
|
11098 | _ACEOF |
|
|
11099 | cat confdefs.h >>conftest.$ac_ext |
|
|
11100 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11101 | /* end confdefs.h. */ |
|
|
11102 | #include <sys/types.h> |
|
|
11103 | #include <utmpx.h> |
|
|
11104 | int |
|
|
11105 | main () |
|
|
11106 | { |
|
|
11107 | struct utmpx ut; |
|
|
11108 | ; |
|
|
11109 | return 0; |
|
|
11110 | } |
|
|
11111 | _ACEOF |
|
|
11112 | rm -f conftest.$ac_objext |
|
|
11113 | if { (ac_try="$ac_compile" |
|
|
11114 | case "(($ac_try" in |
|
|
11115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11116 | *) ac_try_echo=$ac_try;; |
|
|
11117 | esac |
|
|
11118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11119 | (eval "$ac_compile") 2>conftest.er1 |
|
|
11120 | ac_status=$? |
|
|
11121 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11122 | rm -f conftest.er1 |
|
|
11123 | cat conftest.err >&5 |
|
|
11124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11125 | (exit $ac_status); } && { |
|
|
11126 | test -z "$ac_cxx_werror_flag" || |
|
|
11127 | test ! -s conftest.err |
|
|
11128 | } && test -s conftest.$ac_objext; then |
|
|
11129 | struct_utmpx=yes |
|
|
11130 | else |
|
|
11131 | echo "$as_me: failed program was:" >&5 |
|
|
11132 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11133 | |
|
|
11134 | struct_utmpx=no |
|
|
11135 | fi |
|
|
11136 | |
|
|
11137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11138 | fi |
|
|
11139 | { echo "$as_me:$LINENO: result: $struct_utmpx" >&5 |
|
|
11140 | echo "${ECHO_T}$struct_utmpx" >&6; } |
|
|
11141 | if test x$struct_utmpx = xyes; then |
|
|
11142 | |
|
|
11143 | cat >>confdefs.h <<\_ACEOF |
|
|
11144 | #define HAVE_STRUCT_UTMPX 1 |
|
|
11145 | _ACEOF |
|
|
11146 | |
|
|
11147 | fi |
|
|
11148 | |
|
|
11149 | |
|
|
11150 | { echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
|
|
11151 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6; } |
|
|
11152 | if test "${struct_utmpx_host+set}" = set; then |
|
|
11153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11154 | else |
|
|
11155 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11156 | /* confdefs.h. */ |
|
|
11157 | _ACEOF |
|
|
11158 | cat confdefs.h >>conftest.$ac_ext |
|
|
11159 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11160 | /* end confdefs.h. */ |
|
|
11161 | #include <sys/types.h> |
|
|
11162 | #include <utmpx.h> |
|
|
11163 | int |
|
|
11164 | main () |
|
|
11165 | { |
|
|
11166 | struct utmpx utx; utx.ut_host; |
|
|
11167 | ; |
|
|
11168 | return 0; |
|
|
11169 | } |
|
|
11170 | _ACEOF |
|
|
11171 | rm -f conftest.$ac_objext |
|
|
11172 | if { (ac_try="$ac_compile" |
|
|
11173 | case "(($ac_try" in |
|
|
11174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11175 | *) ac_try_echo=$ac_try;; |
|
|
11176 | esac |
|
|
11177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11178 | (eval "$ac_compile") 2>conftest.er1 |
|
|
11179 | ac_status=$? |
|
|
11180 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11181 | rm -f conftest.er1 |
|
|
11182 | cat conftest.err >&5 |
|
|
11183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11184 | (exit $ac_status); } && { |
|
|
11185 | test -z "$ac_cxx_werror_flag" || |
|
|
11186 | test ! -s conftest.err |
|
|
11187 | } && test -s conftest.$ac_objext; then |
|
|
11188 | struct_utmpx_host=yes |
|
|
11189 | else |
|
|
11190 | echo "$as_me: failed program was:" >&5 |
|
|
11191 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11192 | |
|
|
11193 | struct_utmpx_host=no |
|
|
11194 | fi |
|
|
11195 | |
|
|
11196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11197 | fi |
|
|
11198 | { echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5 |
|
|
11199 | echo "${ECHO_T}$struct_utmpx_host" >&6; } |
|
|
11200 | if test x$struct_utmpx_host = xyes; then |
|
|
11201 | |
|
|
11202 | cat >>confdefs.h <<\_ACEOF |
|
|
11203 | #define HAVE_UTMPX_HOST 1 |
|
|
11204 | _ACEOF |
|
|
11205 | |
|
|
11206 | fi |
|
|
11207 | |
|
|
11208 | { echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
|
|
11209 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6; } |
|
|
11210 | if test "${struct_utmpx_session+set}" = set; then |
|
|
11211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11212 | else |
|
|
11213 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11214 | /* confdefs.h. */ |
|
|
11215 | _ACEOF |
|
|
11216 | cat confdefs.h >>conftest.$ac_ext |
|
|
11217 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11218 | /* end confdefs.h. */ |
|
|
11219 | #include <sys/types.h> |
|
|
11220 | #include <utmpx.h> |
|
|
11221 | int |
|
|
11222 | main () |
|
|
11223 | { |
|
|
11224 | struct utmpx utx; utx.ut_session; |
|
|
11225 | ; |
|
|
11226 | return 0; |
|
|
11227 | } |
|
|
11228 | _ACEOF |
|
|
11229 | rm -f conftest.$ac_objext |
|
|
11230 | if { (ac_try="$ac_compile" |
|
|
11231 | case "(($ac_try" in |
|
|
11232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11233 | *) ac_try_echo=$ac_try;; |
|
|
11234 | esac |
|
|
11235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11236 | (eval "$ac_compile") 2>conftest.er1 |
|
|
11237 | ac_status=$? |
|
|
11238 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11239 | rm -f conftest.er1 |
|
|
11240 | cat conftest.err >&5 |
|
|
11241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11242 | (exit $ac_status); } && { |
|
|
11243 | test -z "$ac_cxx_werror_flag" || |
|
|
11244 | test ! -s conftest.err |
|
|
11245 | } && test -s conftest.$ac_objext; then |
|
|
11246 | struct_utmpx_session=yes |
|
|
11247 | else |
|
|
11248 | echo "$as_me: failed program was:" >&5 |
|
|
11249 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11250 | |
|
|
11251 | struct_utmpx_session=no |
|
|
11252 | fi |
|
|
11253 | |
|
|
11254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11255 | fi |
|
|
11256 | { echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5 |
|
|
11257 | echo "${ECHO_T}$struct_utmpx_session" >&6; } |
|
|
11258 | if test x$struct_utmpx_session = xyes; then |
|
|
11259 | |
|
|
11260 | cat >>confdefs.h <<\_ACEOF |
|
|
11261 | #define HAVE_UTMPX_SESSION 1 |
|
|
11262 | _ACEOF |
|
|
11263 | |
|
|
11264 | fi |
|
|
11265 | |
|
|
11266 | fi |
|
|
11267 | |
|
|
11268 | |
|
|
11269 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
|
|
11270 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
|
|
11271 | if test "${struct_lastlog+set}" = set; then |
|
|
11272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11273 | else |
|
|
11274 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11275 | /* confdefs.h. */ |
|
|
11276 | _ACEOF |
|
|
11277 | cat confdefs.h >>conftest.$ac_ext |
|
|
11278 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11279 | /* end confdefs.h. */ |
|
|
11280 | #include <sys/types.h> |
|
|
11281 | #include <utmp.h> |
|
|
11282 | #ifdef HAVE_LASTLOG_H |
|
|
11283 | #include <lastlog.h> |
|
|
11284 | #endif |
|
|
11285 | |
|
|
11286 | int |
|
|
11287 | main () |
|
|
11288 | { |
|
|
11289 | struct lastlog ll; |
|
|
11290 | ; |
|
|
11291 | return 0; |
|
|
11292 | } |
|
|
11293 | _ACEOF |
|
|
11294 | rm -f conftest.$ac_objext |
|
|
11295 | if { (ac_try="$ac_compile" |
|
|
11296 | case "(($ac_try" in |
|
|
11297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11298 | *) ac_try_echo=$ac_try;; |
|
|
11299 | esac |
|
|
11300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11301 | (eval "$ac_compile") 2>conftest.er1 |
|
|
11302 | ac_status=$? |
|
|
11303 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11304 | rm -f conftest.er1 |
|
|
11305 | cat conftest.err >&5 |
|
|
11306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11307 | (exit $ac_status); } && { |
|
|
11308 | test -z "$ac_cxx_werror_flag" || |
|
|
11309 | test ! -s conftest.err |
|
|
11310 | } && test -s conftest.$ac_objext; then |
|
|
11311 | struct_lastlog=yes |
|
|
11312 | else |
|
|
11313 | echo "$as_me: failed program was:" >&5 |
|
|
11314 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11315 | |
|
|
11316 | struct_lastlog=no |
|
|
11317 | fi |
|
|
11318 | |
|
|
11319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11320 | fi |
|
|
11321 | { echo "$as_me:$LINENO: result: $struct_lastlog" >&5 |
|
|
11322 | echo "${ECHO_T}$struct_lastlog" >&6; } |
|
|
11323 | if test x$struct_lastlog = xyes; then |
|
|
11324 | |
|
|
11325 | cat >>confdefs.h <<\_ACEOF |
|
|
11326 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
11327 | _ACEOF |
|
|
11328 | |
|
|
11329 | fi |
|
|
11330 | |
|
|
11331 | { echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
|
|
11332 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6; } |
|
|
11333 | if test "${struct_lastlogx+set}" = set; then |
|
|
11334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11335 | else |
|
|
11336 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11337 | /* confdefs.h. */ |
|
|
11338 | _ACEOF |
|
|
11339 | cat confdefs.h >>conftest.$ac_ext |
|
|
11340 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11341 | /* end confdefs.h. */ |
|
|
11342 | #include <sys/types.h> |
|
|
11343 | #include <utmpx.h> |
|
|
11344 | #ifdef HAVE_LASTLOG_H |
|
|
11345 | #include <lastlog.h> |
|
|
11346 | #endif |
|
|
11347 | |
|
|
11348 | int |
|
|
11349 | main () |
|
|
11350 | { |
|
|
11351 | struct lastlogx ll; |
|
|
11352 | ; |
|
|
11353 | return 0; |
|
|
11354 | } |
|
|
11355 | _ACEOF |
|
|
11356 | rm -f conftest.$ac_objext |
|
|
11357 | if { (ac_try="$ac_compile" |
|
|
11358 | case "(($ac_try" in |
|
|
11359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11360 | *) ac_try_echo=$ac_try;; |
|
|
11361 | esac |
|
|
11362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11363 | (eval "$ac_compile") 2>conftest.er1 |
|
|
11364 | ac_status=$? |
|
|
11365 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11366 | rm -f conftest.er1 |
|
|
11367 | cat conftest.err >&5 |
|
|
11368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11369 | (exit $ac_status); } && { |
|
|
11370 | test -z "$ac_cxx_werror_flag" || |
|
|
11371 | test ! -s conftest.err |
|
|
11372 | } && test -s conftest.$ac_objext; then |
|
|
11373 | struct_lastlogx=yes |
|
|
11374 | else |
|
|
11375 | echo "$as_me: failed program was:" >&5 |
|
|
11376 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11377 | |
|
|
11378 | struct_lastlogx=no |
|
|
11379 | fi |
|
|
11380 | |
|
|
11381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11382 | fi |
|
|
11383 | { echo "$as_me:$LINENO: result: $struct_lastlogx" >&5 |
|
|
11384 | echo "${ECHO_T}$struct_lastlogx" >&6; } |
|
|
11385 | if test x$struct_lastlogx = xyes; then |
|
|
11386 | |
|
|
11387 | cat >>confdefs.h <<\_ACEOF |
|
|
11388 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
11389 | _ACEOF |
|
|
11390 | |
|
|
11391 | fi |
|
|
11392 | |
|
|
11393 | |
|
|
11394 | { echo "$as_me:$LINENO: checking where utmp is located" >&5 |
|
|
11395 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6; } |
|
|
11396 | if test "${path_utmp+set}" = set; then |
|
|
11397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11398 | else |
|
|
11399 | if test "$cross_compiling" = yes; then |
|
|
11400 | { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5 |
|
|
11401 | echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} |
|
|
11402 | else |
|
|
11403 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11404 | /* confdefs.h. */ |
|
|
11405 | _ACEOF |
|
|
11406 | cat confdefs.h >>conftest.$ac_ext |
|
|
11407 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11408 | /* end confdefs.h. */ |
|
|
11409 | #include <stdio.h> |
|
|
11410 | #include <stdlib.h> |
|
|
11411 | #include <sys/types.h> |
|
|
11412 | #include <utmp.h> |
|
|
11413 | #include <errno.h> |
|
|
11414 | main() |
|
|
11415 | { |
|
|
11416 | char **u, *utmplist[] = { |
|
|
11417 | "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
|
|
11418 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11419 | if (!f) exit(1); |
|
|
11420 | #ifdef UTMP_FILE |
|
|
11421 | fprintf(f, "%s\n", UTMP_FILE); |
|
|
11422 | exit(0); |
|
|
11423 | #endif |
|
|
11424 | #ifdef _PATH_UTMP |
|
|
11425 | fprintf(f, "%s\n", _PATH_UTMP); |
|
|
11426 | exit(0); |
|
|
11427 | #endif |
|
|
11428 | for (u = utmplist; *u; u++) { |
|
|
11429 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
11430 | fprintf(f, "%s\n", *u); |
|
|
11431 | exit(0); |
|
|
11432 | } |
|
|
11433 | } |
|
|
11434 | exit(0); |
|
|
11435 | } |
|
|
11436 | _ACEOF |
|
|
11437 | rm -f conftest$ac_exeext |
|
|
11438 | if { (ac_try="$ac_link" |
|
|
11439 | case "(($ac_try" in |
|
|
11440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11441 | *) ac_try_echo=$ac_try;; |
|
|
11442 | esac |
|
|
11443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11444 | (eval "$ac_link") 2>&5 |
|
|
11445 | ac_status=$? |
|
|
11446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11447 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11448 | { (case "(($ac_try" in |
|
|
11449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11450 | *) ac_try_echo=$ac_try;; |
|
|
11451 | esac |
|
|
11452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11453 | (eval "$ac_try") 2>&5 |
|
|
11454 | ac_status=$? |
|
|
11455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11456 | (exit $ac_status); }; }; then |
|
|
11457 | path_utmp=`cat conftestval` |
|
|
11458 | else |
|
|
11459 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11460 | echo "$as_me: failed program was:" >&5 |
|
|
11461 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11462 | |
|
|
11463 | ( exit $ac_status ) |
|
|
11464 | path_utmp= |
|
|
11465 | fi |
|
|
11466 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11467 | fi |
|
|
11468 | |
|
|
11469 | |
|
|
11470 | fi |
|
|
11471 | { echo "$as_me:$LINENO: result: $path_utmp" >&5 |
|
|
11472 | echo "${ECHO_T}$path_utmp" >&6; } |
|
|
11473 | if test x$path_utmp != x; then |
|
|
11474 | |
|
|
11475 | cat >>confdefs.h <<_ACEOF |
|
|
11476 | #define UTMP_FILE "$path_utmp" |
|
|
11477 | _ACEOF |
|
|
11478 | |
|
|
11479 | fi |
|
|
11480 | |
|
|
11481 | |
|
|
11482 | { echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
|
|
11483 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6; } |
|
|
11484 | if test "${path_utmpx+set}" = set; then |
|
|
11485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11486 | else |
|
|
11487 | if test "$cross_compiling" = yes; then |
|
|
11488 | { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5 |
|
|
11489 | echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;} |
|
|
11490 | else |
|
|
11491 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11492 | /* confdefs.h. */ |
|
|
11493 | _ACEOF |
|
|
11494 | cat confdefs.h >>conftest.$ac_ext |
|
|
11495 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11496 | /* end confdefs.h. */ |
|
|
11497 | #include <stdio.h> |
|
|
11498 | #include <stdlib.h> |
|
|
11499 | #include <sys/types.h> |
|
|
11500 | #include <utmpx.h> |
|
|
11501 | #include <errno.h> |
|
|
11502 | #include <sys/stat.h> |
|
|
11503 | #ifdef HAVE_STRING_H |
|
|
11504 | #include <string.h> |
|
|
11505 | #endif |
|
|
11506 | main() |
|
|
11507 | { |
|
|
11508 | char **u, *p, *utmplist[] = { |
|
|
11509 | #ifdef UTMPX_FILE |
|
|
11510 | UTMPX_FILE, |
|
|
11511 | #endif |
|
|
11512 | #ifdef _PATH_UTMPX |
|
|
11513 | _PATH_UTMPX, |
|
|
11514 | #endif |
|
|
11515 | "/var/adm/utmpx", "/etc/utmpx", NULL }; |
|
|
11516 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11517 | struct stat statu, statux; |
|
|
11518 | if (!f) exit(1); |
|
|
11519 | for (u = utmplist; *u; u++) { |
|
|
11520 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
11521 | if (stat(*u, &statux) < 0) |
|
|
11522 | continue; |
|
|
11523 | p = strdup(*u); |
|
|
11524 | p[strlen(p) - 1] = '\0'; |
|
|
11525 | if (stat(p, &statu) >= 0 |
|
|
11526 | && (statu.st_mtime - statux.st_mtime > 86400)) |
|
|
11527 | continue; |
|
|
11528 | fprintf(f, "%s\n", *u); |
|
|
11529 | exit(0); |
|
|
11530 | } |
|
|
11531 | } |
|
|
11532 | exit(0); |
|
|
11533 | } |
|
|
11534 | _ACEOF |
|
|
11535 | rm -f conftest$ac_exeext |
|
|
11536 | if { (ac_try="$ac_link" |
|
|
11537 | case "(($ac_try" in |
|
|
11538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11539 | *) ac_try_echo=$ac_try;; |
|
|
11540 | esac |
|
|
11541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11542 | (eval "$ac_link") 2>&5 |
|
|
11543 | ac_status=$? |
|
|
11544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11545 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11546 | { (case "(($ac_try" in |
|
|
11547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11548 | *) ac_try_echo=$ac_try;; |
|
|
11549 | esac |
|
|
11550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11551 | (eval "$ac_try") 2>&5 |
|
|
11552 | ac_status=$? |
|
|
11553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11554 | (exit $ac_status); }; }; then |
|
|
11555 | path_utmpx=`cat conftestval` |
|
|
11556 | else |
|
|
11557 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11558 | echo "$as_me: failed program was:" >&5 |
|
|
11559 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11560 | |
|
|
11561 | ( exit $ac_status ) |
|
|
11562 | path_utmpx= |
|
|
11563 | fi |
|
|
11564 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11565 | fi |
|
|
11566 | |
|
|
11567 | |
|
|
11568 | fi |
|
|
11569 | { echo "$as_me:$LINENO: result: $path_utmpx" >&5 |
|
|
11570 | echo "${ECHO_T}$path_utmpx" >&6; } |
|
|
11571 | if test x$path_utmpx != x; then |
|
|
11572 | |
|
|
11573 | cat >>confdefs.h <<_ACEOF |
|
|
11574 | #define UTMPX_FILE "$path_utmpx" |
|
|
11575 | _ACEOF |
|
|
11576 | |
|
|
11577 | fi |
|
|
11578 | |
|
|
11579 | |
|
|
11580 | { echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
|
|
11581 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6; } |
|
|
11582 | if test "${path_wtmp+set}" = set; then |
|
|
11583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11584 | else |
|
|
11585 | if test "$cross_compiling" = yes; then |
|
|
11586 | { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5 |
|
|
11587 | echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} |
|
|
11588 | else |
|
|
11589 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11590 | /* confdefs.h. */ |
|
|
11591 | _ACEOF |
|
|
11592 | cat confdefs.h >>conftest.$ac_ext |
|
|
11593 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11594 | /* end confdefs.h. */ |
|
|
11595 | #include <stdio.h> |
|
|
11596 | #include <stdlib.h> |
|
|
11597 | #include <sys/types.h> |
|
|
11598 | #ifdef HAVE_UTMP_H |
|
|
11599 | #include <utmp.h> |
|
|
11600 | #endif |
|
|
11601 | #include <errno.h> |
|
|
11602 | main() |
|
|
11603 | { |
|
|
11604 | char **w, *wtmplist[] = { |
|
|
11605 | "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
|
|
11606 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11607 | if (!f) exit(1); |
|
|
11608 | #ifdef WTMP_FILE |
|
|
11609 | fprintf(f, "%s\n", WTMP_FILE); |
|
|
11610 | exit(0); |
|
|
11611 | #endif |
|
|
11612 | #ifdef _PATH_WTMP |
|
|
11613 | fprintf(f, "%s\n", _PATH_WTMP); |
|
|
11614 | exit(0); |
|
|
11615 | #endif |
|
|
11616 | for (w = wtmplist; *w; w++) { |
|
|
11617 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11618 | fprintf(f, "%s\n", *w); |
|
|
11619 | exit(0); |
|
|
11620 | } |
|
|
11621 | } |
|
|
11622 | exit(0); |
|
|
11623 | } |
|
|
11624 | _ACEOF |
|
|
11625 | rm -f conftest$ac_exeext |
|
|
11626 | if { (ac_try="$ac_link" |
|
|
11627 | case "(($ac_try" in |
|
|
11628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11629 | *) ac_try_echo=$ac_try;; |
|
|
11630 | esac |
|
|
11631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11632 | (eval "$ac_link") 2>&5 |
|
|
11633 | ac_status=$? |
|
|
11634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11635 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11636 | { (case "(($ac_try" in |
|
|
11637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11638 | *) ac_try_echo=$ac_try;; |
|
|
11639 | esac |
|
|
11640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11641 | (eval "$ac_try") 2>&5 |
|
|
11642 | ac_status=$? |
|
|
11643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11644 | (exit $ac_status); }; }; then |
|
|
11645 | path_wtmp=`cat conftestval` |
|
|
11646 | else |
|
|
11647 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11648 | echo "$as_me: failed program was:" >&5 |
|
|
11649 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11650 | |
|
|
11651 | ( exit $ac_status ) |
|
|
11652 | path_wtmp= |
|
|
11653 | fi |
|
|
11654 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11655 | fi |
|
|
11656 | |
|
|
11657 | |
|
|
11658 | fi |
|
|
11659 | { echo "$as_me:$LINENO: result: $path_wtmp" >&5 |
|
|
11660 | echo "${ECHO_T}$path_wtmp" >&6; } |
|
|
11661 | if test x$path_wtmp != x; then |
|
|
11662 | |
|
|
11663 | cat >>confdefs.h <<_ACEOF |
|
|
11664 | #define WTMP_FILE "$path_wtmp" |
|
|
11665 | _ACEOF |
|
|
11666 | |
|
|
11667 | fi |
|
|
11668 | |
|
|
11669 | { echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
|
|
11670 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6; } |
|
|
11671 | if test "${path_wtmpx+set}" = set; then |
|
|
11672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11673 | else |
|
|
11674 | if test "$cross_compiling" = yes; then |
|
|
11675 | { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 |
|
|
11676 | echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} |
|
|
11677 | else |
|
|
11678 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11679 | /* confdefs.h. */ |
|
|
11680 | _ACEOF |
|
|
11681 | cat confdefs.h >>conftest.$ac_ext |
|
|
11682 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11683 | /* end confdefs.h. */ |
|
|
11684 | #include <stdio.h> |
|
|
11685 | #include <stdlib.h> |
|
|
11686 | #ifdef HAVE_UTMPX_H |
|
|
11687 | #include <utmpx.h> |
|
|
11688 | #endif |
|
|
11689 | #include <errno.h> |
|
|
11690 | main() |
|
|
11691 | { |
|
|
11692 | char **w, *wtmplist[] = { |
|
|
11693 | "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
|
|
11694 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11695 | if (!f) exit(1); |
|
|
11696 | #ifdef WTMPX_FILE |
|
|
11697 | fprintf(f, "%s\n", WTMPX_FILE); |
|
|
11698 | exit(0); |
|
|
11699 | #endif |
|
|
11700 | #ifdef _PATH_WTMPX |
|
|
11701 | fprintf(f, "%s\n", _PATH_WTMPX); |
|
|
11702 | exit(0); |
|
|
11703 | #endif |
|
|
11704 | for (w = wtmplist; *w; w++) { |
|
|
11705 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11706 | fprintf(f, "%s\n", *w); |
|
|
11707 | exit(0); |
|
|
11708 | } |
|
|
11709 | } |
|
|
11710 | exit(0); |
|
|
11711 | } |
|
|
11712 | _ACEOF |
|
|
11713 | rm -f conftest$ac_exeext |
|
|
11714 | if { (ac_try="$ac_link" |
|
|
11715 | case "(($ac_try" in |
|
|
11716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11717 | *) ac_try_echo=$ac_try;; |
|
|
11718 | esac |
|
|
11719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11720 | (eval "$ac_link") 2>&5 |
|
|
11721 | ac_status=$? |
|
|
11722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11723 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11724 | { (case "(($ac_try" in |
|
|
11725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11726 | *) ac_try_echo=$ac_try;; |
|
|
11727 | esac |
|
|
11728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11729 | (eval "$ac_try") 2>&5 |
|
|
11730 | ac_status=$? |
|
|
11731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11732 | (exit $ac_status); }; }; then |
|
|
11733 | path_wtmpx=`cat conftestval` |
|
|
11734 | else |
|
|
11735 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11736 | echo "$as_me: failed program was:" >&5 |
|
|
11737 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11738 | |
|
|
11739 | ( exit $ac_status ) |
|
|
11740 | path_wtmpx= |
|
|
11741 | fi |
|
|
11742 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11743 | fi |
|
|
11744 | |
|
|
11745 | |
|
|
11746 | fi |
|
|
11747 | { echo "$as_me:$LINENO: result: $path_wtmpx" >&5 |
|
|
11748 | echo "${ECHO_T}$path_wtmpx" >&6; } |
|
|
11749 | if test x$path_wtmpx != x; then |
|
|
11750 | |
|
|
11751 | cat >>confdefs.h <<_ACEOF |
|
|
11752 | #define WTMPX_FILE "$path_wtmpx" |
|
|
11753 | _ACEOF |
|
|
11754 | |
|
|
11755 | fi |
|
|
11756 | |
|
|
11757 | { echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
|
|
11758 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6; } |
|
|
11759 | if test "${path_lastlog+set}" = set; then |
|
|
11760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11761 | else |
|
|
11762 | if test "$cross_compiling" = yes; then |
|
|
11763 | { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 |
|
|
11764 | echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} |
|
|
11765 | else |
|
|
11766 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11767 | /* confdefs.h. */ |
|
|
11768 | _ACEOF |
|
|
11769 | cat confdefs.h >>conftest.$ac_ext |
|
|
11770 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11771 | /* end confdefs.h. */ |
|
|
11772 | #include <stdio.h> |
|
|
11773 | #include <stdlib.h> |
|
|
11774 | #include <sys/types.h> |
|
|
11775 | #ifdef HAVE_UTMPX_H |
|
|
11776 | #include <utmpx.h> |
|
|
11777 | #elif defined(HAVE_UTMP_H) |
|
|
11778 | #include <utmp.h> |
|
|
11779 | #endif |
|
|
11780 | #ifdef HAVE_LASTLOG_H |
|
|
11781 | #include <lastlog.h> |
|
|
11782 | #endif |
|
|
11783 | #include <errno.h> |
|
|
11784 | main() |
|
|
11785 | { |
|
|
11786 | char **w, *lastloglist[] = { "/var/log/lastlog", NULL }; |
|
|
11787 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11788 | if (!f) exit(1); |
|
|
11789 | #ifdef LASTLOG_FILE |
|
|
11790 | fprintf(f, "%s\n", LASTLOG_FILE); |
|
|
11791 | exit(0); |
|
|
11792 | #endif |
|
|
11793 | #ifdef _PATH_LASTLOG |
|
|
11794 | fprintf(f, "%s\n", _PATH_LASTLOG); |
|
|
11795 | exit(0); |
|
|
11796 | #endif |
|
|
11797 | for (w = lastloglist; *w; w++) { |
|
|
11798 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11799 | fprintf(f, "%s\n", *w); |
|
|
11800 | exit(0); |
|
|
11801 | } |
|
|
11802 | } |
|
|
11803 | exit(0); |
|
|
11804 | } |
|
|
11805 | _ACEOF |
|
|
11806 | rm -f conftest$ac_exeext |
|
|
11807 | if { (ac_try="$ac_link" |
|
|
11808 | case "(($ac_try" in |
|
|
11809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11810 | *) ac_try_echo=$ac_try;; |
|
|
11811 | esac |
|
|
11812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11813 | (eval "$ac_link") 2>&5 |
|
|
11814 | ac_status=$? |
|
|
11815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11816 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11817 | { (case "(($ac_try" in |
|
|
11818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11819 | *) ac_try_echo=$ac_try;; |
|
|
11820 | esac |
|
|
11821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11822 | (eval "$ac_try") 2>&5 |
|
|
11823 | ac_status=$? |
|
|
11824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11825 | (exit $ac_status); }; }; then |
|
|
11826 | path_lastlog=`cat conftestval` |
|
|
11827 | else |
|
|
11828 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11829 | echo "$as_me: failed program was:" >&5 |
|
|
11830 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11831 | |
|
|
11832 | ( exit $ac_status ) |
|
|
11833 | path_lastlog= |
|
|
11834 | fi |
|
|
11835 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11836 | fi |
|
|
11837 | |
|
|
11838 | |
|
|
11839 | fi |
|
|
11840 | { echo "$as_me:$LINENO: result: $path_lastlog" >&5 |
|
|
11841 | echo "${ECHO_T}$path_lastlog" >&6; } |
|
|
11842 | if test x$path_lastlog != x; then |
|
|
11843 | |
|
|
11844 | cat >>confdefs.h <<_ACEOF |
|
|
11845 | #define LASTLOG_FILE "$path_lastlog" |
|
|
11846 | _ACEOF |
|
|
11847 | |
|
|
11848 | if test -d "$path_lastlog"; then |
|
|
11849 | |
|
|
11850 | cat >>confdefs.h <<\_ACEOF |
|
|
11851 | #define LASTLOG_IS_DIR 1 |
|
|
11852 | _ACEOF |
|
|
11853 | |
|
|
11854 | fi |
|
|
11855 | fi |
|
|
11856 | |
|
|
11857 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
|
|
11858 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
|
|
11859 | if test "${path_lastlogx+set}" = set; then |
|
|
11860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11861 | else |
|
|
11862 | if test "$cross_compiling" = yes; then |
|
|
11863 | { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 |
|
|
11864 | echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} |
|
|
11865 | else |
|
|
11866 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11867 | /* confdefs.h. */ |
|
|
11868 | _ACEOF |
|
|
11869 | cat confdefs.h >>conftest.$ac_ext |
|
|
11870 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11871 | /* end confdefs.h. */ |
|
|
11872 | #include <stdio.h> |
|
|
11873 | #include <stdlib.h> |
|
|
11874 | #ifdef HAVE_UTMPX_H |
|
|
11875 | #include <utmpx.h> |
|
|
11876 | #endif |
|
|
11877 | #include <errno.h> |
|
|
11878 | main() |
|
|
11879 | { |
|
|
11880 | char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
|
|
11881 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11882 | if (!f) exit(1); |
|
|
11883 | #ifdef LASTLOGX_FILE |
|
|
11884 | fprintf(f, "%s\n", LASTLOGX_FILE); |
|
|
11885 | exit(0); |
|
|
11886 | #endif |
|
|
11887 | #ifdef _PATH_LASTLOGX |
|
|
11888 | fprintf(f, "%s\n", _PATH_LASTLOGX); |
|
|
11889 | exit(0); |
|
|
11890 | #endif |
|
|
11891 | for (w = wtmplist; *w; w++) { |
|
|
11892 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11893 | fprintf(f, "%s\n", *w); |
|
|
11894 | exit(0); |
|
|
11895 | } |
|
|
11896 | } |
|
|
11897 | exit(0); |
|
|
11898 | } |
|
|
11899 | _ACEOF |
|
|
11900 | rm -f conftest$ac_exeext |
|
|
11901 | if { (ac_try="$ac_link" |
|
|
11902 | case "(($ac_try" in |
|
|
11903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11904 | *) ac_try_echo=$ac_try;; |
|
|
11905 | esac |
|
|
11906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11907 | (eval "$ac_link") 2>&5 |
|
|
11908 | ac_status=$? |
|
|
11909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11910 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11911 | { (case "(($ac_try" in |
|
|
11912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11913 | *) ac_try_echo=$ac_try;; |
|
|
11914 | esac |
|
|
11915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11916 | (eval "$ac_try") 2>&5 |
|
|
11917 | ac_status=$? |
|
|
11918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11919 | (exit $ac_status); }; }; then |
|
|
11920 | path_lastlogx=`cat conftestval` |
|
|
11921 | else |
|
|
11922 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11923 | echo "$as_me: failed program was:" >&5 |
|
|
11924 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11925 | |
|
|
11926 | ( exit $ac_status ) |
|
|
11927 | path_lastlogx= |
|
|
11928 | fi |
|
|
11929 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11930 | fi |
|
|
11931 | |
|
|
11932 | |
|
|
11933 | fi |
|
|
11934 | { echo "$as_me:$LINENO: result: $path_lastlogx" >&5 |
|
|
11935 | echo "${ECHO_T}$path_lastlogx" >&6; } |
|
|
11936 | if test x$path_lastlogx != x; then |
|
|
11937 | |
|
|
11938 | cat >>confdefs.h <<_ACEOF |
|
|
11939 | #define LASTLOGX_FILE "$path_lastlogx" |
|
|
11940 | _ACEOF |
|
|
11941 | |
|
|
11942 | fi |
|
|
11943 | |
|
|
11944 | |
|
|
11945 | |
|
|
11946 | { echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
|
|
11947 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; } |
|
|
11948 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
|
|
11949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11950 | else |
|
|
11951 | for ttys_file in /etc/ttys /etc/ttytab; |
|
|
11952 | do |
|
|
11953 | if test -f "$ttys_file" ; then |
|
|
11954 | rxvt_cv_path_ttytab=$ttys_file |
|
|
11955 | break |
|
|
11956 | fi |
|
|
11957 | done |
|
|
11958 | |
|
|
11959 | fi |
|
|
11960 | { echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5 |
|
|
11961 | echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; } |
|
|
11962 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
11963 | |
|
|
11964 | cat >>confdefs.h <<_ACEOF |
|
|
11965 | #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" |
|
|
11966 | _ACEOF |
|
|
11967 | |
|
|
11968 | fi |
|
|
11969 | |
|
|
11970 | |
|
|
11971 | ac_save_LIBS=$LIBS |
|
|
11972 | ac_save_CFLAGS=$CFLAGS |
|
|
11973 | CFLAGS="$CFLAGS $X_CFLAGS" |
|
|
11974 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
11975 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
11976 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
11977 | fi |
|
|
11978 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
|
|
11979 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
|
|
11980 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
|
|
11981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11982 | else |
|
|
11983 | if test "$cross_compiling" = yes; then |
|
|
11984 | { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 |
|
|
11985 | echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;} |
|
|
11986 | else |
|
|
11987 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11988 | /* confdefs.h. */ |
|
|
11989 | _ACEOF |
|
|
11990 | cat confdefs.h >>conftest.$ac_ext |
|
|
11991 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11992 | /* end confdefs.h. */ |
|
|
11993 | #include <X11/Xlib.h> |
|
|
11994 | #include <stdlib.h> |
|
|
11995 | main() { |
|
|
11996 | char *p; |
|
|
11997 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
|
|
11998 | exit (XSupportsLocale() ? 0 : 1); |
|
|
11999 | else |
|
|
12000 | exit (1);} |
|
|
12001 | _ACEOF |
|
|
12002 | rm -f conftest$ac_exeext |
|
|
12003 | if { (ac_try="$ac_link" |
|
|
12004 | case "(($ac_try" in |
|
|
12005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12006 | *) ac_try_echo=$ac_try;; |
|
|
12007 | esac |
|
|
12008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12009 | (eval "$ac_link") 2>&5 |
|
|
12010 | ac_status=$? |
|
|
12011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12012 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
12013 | { (case "(($ac_try" in |
|
|
12014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12015 | *) ac_try_echo=$ac_try;; |
|
|
12016 | esac |
|
|
12017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12018 | (eval "$ac_try") 2>&5 |
|
|
12019 | ac_status=$? |
|
|
12020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12021 | (exit $ac_status); }; }; then |
|
|
12022 | rxvt_cv_func_xlocale=yes |
|
|
12023 | else |
|
|
12024 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
12025 | echo "$as_me: failed program was:" >&5 |
|
|
12026 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12027 | |
|
|
12028 | ( exit $ac_status ) |
|
|
12029 | rxvt_cv_func_xlocale=no |
|
|
12030 | fi |
|
|
12031 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
12032 | fi |
|
|
12033 | |
|
|
12034 | |
|
|
12035 | fi |
|
|
12036 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
|
|
12037 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
|
|
12038 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
12039 | |
|
|
12040 | cat >>confdefs.h <<\_ACEOF |
|
|
12041 | #define HAVE_XLOCALE 1 |
|
|
12042 | _ACEOF |
|
|
12043 | |
|
|
12044 | fi |
|
|
12045 | |
|
|
12046 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
|
|
12047 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
|
|
12048 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then |
|
|
12049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12050 | else |
|
|
12051 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12052 | /* confdefs.h. */ |
|
|
12053 | _ACEOF |
|
|
12054 | cat confdefs.h >>conftest.$ac_ext |
|
|
12055 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12056 | /* end confdefs.h. */ |
|
|
12057 | #define X_LOCALE 1 |
|
|
12058 | #include <X11/Xlocale.h> |
|
|
12059 | int |
|
|
12060 | main () |
|
|
12061 | { |
|
|
12062 | setlocale(LC_CTYPE, ""); |
|
|
12063 | ; |
|
|
12064 | return 0; |
|
|
12065 | } |
|
|
12066 | _ACEOF |
|
|
12067 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12068 | if { (ac_try="$ac_link" |
|
|
12069 | case "(($ac_try" in |
|
|
12070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12071 | *) ac_try_echo=$ac_try;; |
|
|
12072 | esac |
|
|
12073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12074 | (eval "$ac_link") 2>conftest.er1 |
|
|
12075 | ac_status=$? |
|
|
12076 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12077 | rm -f conftest.er1 |
|
|
12078 | cat conftest.err >&5 |
|
|
12079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12080 | (exit $ac_status); } && { |
|
|
12081 | test -z "$ac_cxx_werror_flag" || |
|
|
12082 | test ! -s conftest.err |
|
|
12083 | } && test -s conftest$ac_exeext && |
|
|
12084 | $as_test_x conftest$ac_exeext; then |
|
|
12085 | rxvt_cv_func_xsetlocale=yes |
|
|
12086 | else |
|
|
12087 | echo "$as_me: failed program was:" >&5 |
|
|
12088 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12089 | |
|
|
12090 | rxvt_cv_func_xsetlocale=no |
|
|
12091 | fi |
|
|
12092 | |
|
|
12093 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12094 | conftest$ac_exeext conftest.$ac_ext |
|
|
12095 | fi |
|
|
12096 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5 |
|
|
12097 | echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6; } |
|
|
12098 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
|
|
12099 | |
|
|
12100 | cat >>confdefs.h <<\_ACEOF |
|
|
12101 | #define HAVE_XSETLOCALE 1 |
|
|
12102 | _ACEOF |
|
|
12103 | |
|
|
12104 | fi |
|
|
12105 | LIBS=$ac_save_LIBS |
|
|
12106 | CFLAGS=$ac_save_CFLAGS |
|
|
12107 | |
|
|
12108 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
|
|
12109 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
|
|
12110 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
|
|
12111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12112 | else |
|
|
12113 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12114 | /* confdefs.h. */ |
|
|
12115 | _ACEOF |
|
|
12116 | cat confdefs.h >>conftest.$ac_ext |
|
|
12117 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12118 | /* end confdefs.h. */ |
|
|
12119 | #include <clocale> |
|
|
12120 | int |
|
|
12121 | main () |
|
|
12122 | { |
|
|
12123 | setlocale(LC_CTYPE, ""); |
|
|
12124 | ; |
|
|
12125 | return 0; |
|
|
12126 | } |
|
|
12127 | _ACEOF |
|
|
12128 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12129 | if { (ac_try="$ac_link" |
|
|
12130 | case "(($ac_try" in |
|
|
12131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12132 | *) ac_try_echo=$ac_try;; |
|
|
12133 | esac |
|
|
12134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12135 | (eval "$ac_link") 2>conftest.er1 |
|
|
12136 | ac_status=$? |
|
|
12137 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12138 | rm -f conftest.er1 |
|
|
12139 | cat conftest.err >&5 |
|
|
12140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12141 | (exit $ac_status); } && { |
|
|
12142 | test -z "$ac_cxx_werror_flag" || |
|
|
12143 | test ! -s conftest.err |
|
|
12144 | } && test -s conftest$ac_exeext && |
|
|
12145 | $as_test_x conftest$ac_exeext; then |
|
|
12146 | rxvt_cv_func_setlocale=yes |
|
|
12147 | else |
|
|
12148 | echo "$as_me: failed program was:" >&5 |
|
|
12149 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12150 | |
|
|
12151 | rxvt_cv_func_setlocale=no |
|
|
12152 | fi |
|
|
12153 | |
|
|
12154 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12155 | conftest$ac_exeext conftest.$ac_ext |
|
|
12156 | fi |
|
|
12157 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5 |
|
|
12158 | echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6; } |
|
|
12159 | if test x$rxvt_cv_func_setlocale = xyes; then |
|
|
12160 | |
|
|
12161 | cat >>confdefs.h <<\_ACEOF |
|
|
12162 | #define HAVE_SETLOCALE 1 |
|
|
12163 | _ACEOF |
|
|
12164 | |
|
|
12165 | fi |
|
|
12166 | |
|
|
12167 | { echo "$as_me:$LINENO: checking for working nl_langinfo" >&5 |
|
|
12168 | echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6; } |
|
|
12169 | if test "${rxvt_cv_func_nl_langinfo+set}" = set; then |
|
|
12170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12171 | else |
|
|
12172 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12173 | /* confdefs.h. */ |
|
|
12174 | _ACEOF |
|
|
12175 | cat confdefs.h >>conftest.$ac_ext |
|
|
12176 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12177 | /* end confdefs.h. */ |
|
|
12178 | #include <langinfo.h> |
|
|
12179 | int |
|
|
12180 | main () |
|
|
12181 | { |
|
|
12182 | nl_langinfo(CODESET); |
|
|
12183 | ; |
|
|
12184 | return 0; |
|
|
12185 | } |
|
|
12186 | _ACEOF |
|
|
12187 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12188 | if { (ac_try="$ac_link" |
|
|
12189 | case "(($ac_try" in |
|
|
12190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12191 | *) ac_try_echo=$ac_try;; |
|
|
12192 | esac |
|
|
12193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12194 | (eval "$ac_link") 2>conftest.er1 |
|
|
12195 | ac_status=$? |
|
|
12196 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12197 | rm -f conftest.er1 |
|
|
12198 | cat conftest.err >&5 |
|
|
12199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12200 | (exit $ac_status); } && { |
|
|
12201 | test -z "$ac_cxx_werror_flag" || |
|
|
12202 | test ! -s conftest.err |
|
|
12203 | } && test -s conftest$ac_exeext && |
|
|
12204 | $as_test_x conftest$ac_exeext; then |
|
|
12205 | rxvt_cv_func_nl_langinfo=yes |
|
|
12206 | else |
|
|
12207 | echo "$as_me: failed program was:" >&5 |
|
|
12208 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12209 | |
|
|
12210 | rxvt_cv_func_nl_langinfo=no |
|
|
12211 | fi |
|
|
12212 | |
|
|
12213 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12214 | conftest$ac_exeext conftest.$ac_ext |
|
|
12215 | fi |
|
|
12216 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5 |
|
|
12217 | echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6; } |
|
|
12218 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
|
|
12219 | |
|
|
12220 | cat >>confdefs.h <<\_ACEOF |
|
|
12221 | #define HAVE_NL_LANGINFO 1 |
|
|
12222 | _ACEOF |
|
|
12223 | |
|
|
12224 | fi |
|
|
12225 | |
|
|
12226 | |
|
|
12227 | { echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
|
|
12228 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6; } |
|
|
12229 | if test "${can_pass_fds+set}" = set; then |
|
|
12230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12231 | else |
|
|
12232 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12233 | /* confdefs.h. */ |
|
|
12234 | _ACEOF |
|
|
12235 | cat confdefs.h >>conftest.$ac_ext |
|
|
12236 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12237 | /* end confdefs.h. */ |
|
|
12238 | |
|
|
12239 | #include <cstddef> // broken bsds (is that redundant?) need this |
|
|
12240 | #include <sys/types.h> |
|
|
12241 | #include <sys/socket.h> |
|
|
12242 | #include <sys/uio.h> |
|
|
12243 | |
|
|
12244 | int |
|
|
12245 | main () |
|
|
12246 | { |
|
|
12247 | |
|
|
12248 | { |
|
|
12249 | msghdr msg; |
|
|
12250 | iovec iov; |
|
|
12251 | char buf [100]; |
|
|
12252 | char data = 0; |
|
|
12253 | |
|
|
12254 | iov.iov_base = &data; |
|
|
12255 | iov.iov_len = 1; |
|
|
12256 | |
|
|
12257 | msg.msg_iov = &iov; |
|
|
12258 | msg.msg_iovlen = 1; |
|
|
12259 | msg.msg_control = buf; |
|
|
12260 | msg.msg_controllen = sizeof buf; |
|
|
12261 | |
|
|
12262 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
12263 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
12264 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
12265 | cmsg->cmsg_len = 100; |
|
|
12266 | |
|
|
12267 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
12268 | |
|
|
12269 | return sendmsg (3, &msg, 0); |
|
|
12270 | } |
|
|
12271 | |
|
|
12272 | ; |
|
|
12273 | return 0; |
|
|
12274 | } |
|
|
12275 | _ACEOF |
|
|
12276 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12277 | if { (ac_try="$ac_link" |
|
|
12278 | case "(($ac_try" in |
|
|
12279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12280 | *) ac_try_echo=$ac_try;; |
|
|
12281 | esac |
|
|
12282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12283 | (eval "$ac_link") 2>conftest.er1 |
|
|
12284 | ac_status=$? |
|
|
12285 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12286 | rm -f conftest.er1 |
|
|
12287 | cat conftest.err >&5 |
|
|
12288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12289 | (exit $ac_status); } && { |
|
|
12290 | test -z "$ac_cxx_werror_flag" || |
|
|
12291 | test ! -s conftest.err |
|
|
12292 | } && test -s conftest$ac_exeext && |
|
|
12293 | $as_test_x conftest$ac_exeext; then |
|
|
12294 | can_pass_fds=yes |
|
|
12295 | else |
|
|
12296 | echo "$as_me: failed program was:" >&5 |
|
|
12297 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12298 | |
|
|
12299 | can_pass_fds=no |
|
|
12300 | fi |
|
|
12301 | |
|
|
12302 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12303 | conftest$ac_exeext conftest.$ac_ext |
|
|
12304 | fi |
|
|
12305 | { echo "$as_me:$LINENO: result: $can_pass_fds" >&5 |
|
|
12306 | echo "${ECHO_T}$can_pass_fds" >&6; } |
|
|
12307 | if test x$can_pass_fds = xyes; then |
|
|
12308 | |
|
|
12309 | cat >>confdefs.h <<\_ACEOF |
|
|
12310 | #define HAVE_UNIX_FDPASS 1 |
|
|
12311 | _ACEOF |
|
|
12312 | |
|
|
12313 | else |
|
|
12314 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
|
|
12315 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
|
|
12316 | { (exit 1); exit 1; }; } |
|
|
12317 | fi |
|
|
12318 | |
|
|
12319 | |
|
|
12320 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
12321 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
12322 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
12323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12324 | else |
|
|
12325 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12326 | |
|
|
12327 | #include <X11/Xlib.h> |
|
|
12328 | |
|
|
12329 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
12330 | |
|
|
12331 | void f() { |
|
|
12332 | XIMCallback cb; |
|
|
12333 | cb.callback = im_destroy_cb; |
|
|
12334 | } |
|
|
12335 | |
|
|
12336 | _ACEOF |
|
|
12337 | rm -f conftest.$ac_objext |
|
|
12338 | if { (ac_try="$ac_compile" |
|
|
12339 | case "(($ac_try" in |
|
|
12340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12341 | *) ac_try_echo=$ac_try;; |
|
|
12342 | esac |
|
|
12343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12344 | (eval "$ac_compile") 2>conftest.er1 |
|
|
12345 | ac_status=$? |
|
|
12346 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12347 | rm -f conftest.er1 |
|
|
12348 | cat conftest.err >&5 |
|
|
12349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12350 | (exit $ac_status); } && { |
|
|
12351 | test -z "$ac_cxx_werror_flag" || |
|
|
12352 | test ! -s conftest.err |
|
|
12353 | } && test -s conftest.$ac_objext; then |
|
|
12354 | rxvt_broken_ximcb=yes |
|
|
12355 | else |
|
|
12356 | echo "$as_me: failed program was:" >&5 |
|
|
12357 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12358 | |
|
|
12359 | rxvt_broken_ximcb=no |
|
|
12360 | fi |
|
|
12361 | |
|
|
12362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12363 | fi |
|
|
12364 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
12365 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
12366 | |
|
|
12367 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
12368 | |
|
|
12369 | cat >>confdefs.h <<\_ACEOF |
|
|
12370 | #define XIMCB_PROTO_BROKEN 1 |
|
|
12371 | _ACEOF |
|
|
12372 | |
|
|
12373 | fi |
|
|
12374 | |
|
|
12375 | |
|
|
12376 | |
|
|
12377 | |
|
|
12378 | |
|
|
12379 | |
|
|
12380 | |
|
|
12381 | for ac_header in \ |
|
|
12382 | pty.h \ |
|
|
12383 | util.h \ |
|
|
12384 | libutil.h \ |
|
|
12385 | sys/ioctl.h \ |
|
|
12386 | sys/stropts.h \ |
|
|
12387 | |
|
|
12388 | do |
|
|
12389 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
12390 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
12391 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12392 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
12393 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
12394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12395 | fi |
|
|
12396 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
12397 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
12398 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
12399 | else |
|
|
12400 | # Is the header compilable? |
|
|
12401 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
12402 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
12403 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12404 | /* confdefs.h. */ |
|
|
12405 | _ACEOF |
|
|
12406 | cat confdefs.h >>conftest.$ac_ext |
|
|
12407 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12408 | /* end confdefs.h. */ |
|
|
12409 | $ac_includes_default |
|
|
12410 | #include <$ac_header> |
|
|
12411 | _ACEOF |
|
|
12412 | rm -f conftest.$ac_objext |
|
|
12413 | if { (ac_try="$ac_compile" |
|
|
12414 | case "(($ac_try" in |
|
|
12415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12416 | *) ac_try_echo=$ac_try;; |
|
|
12417 | esac |
|
|
12418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12419 | (eval "$ac_compile") 2>conftest.er1 |
|
|
12420 | ac_status=$? |
|
|
12421 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12422 | rm -f conftest.er1 |
|
|
12423 | cat conftest.err >&5 |
|
|
12424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12425 | (exit $ac_status); } && { |
|
|
12426 | test -z "$ac_cxx_werror_flag" || |
|
|
12427 | test ! -s conftest.err |
|
|
12428 | } && test -s conftest.$ac_objext; then |
|
|
12429 | ac_header_compiler=yes |
|
|
12430 | else |
|
|
12431 | echo "$as_me: failed program was:" >&5 |
|
|
12432 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12433 | |
|
|
12434 | ac_header_compiler=no |
|
|
12435 | fi |
|
|
12436 | |
|
|
12437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12438 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
12439 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
12440 | |
|
|
12441 | # Is the header present? |
|
|
12442 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
12443 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
12444 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12445 | /* confdefs.h. */ |
|
|
12446 | _ACEOF |
|
|
12447 | cat confdefs.h >>conftest.$ac_ext |
|
|
12448 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12449 | /* end confdefs.h. */ |
|
|
12450 | #include <$ac_header> |
|
|
12451 | _ACEOF |
|
|
12452 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
12453 | case "(($ac_try" in |
|
|
12454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12455 | *) ac_try_echo=$ac_try;; |
|
|
12456 | esac |
|
|
12457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12458 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
12459 | ac_status=$? |
|
|
12460 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12461 | rm -f conftest.er1 |
|
|
12462 | cat conftest.err >&5 |
|
|
12463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12464 | (exit $ac_status); } >/dev/null && { |
|
|
12465 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
12466 | test ! -s conftest.err |
|
|
12467 | }; then |
|
|
12468 | ac_header_preproc=yes |
|
|
12469 | else |
|
|
12470 | echo "$as_me: failed program was:" >&5 |
|
|
12471 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12472 | |
|
|
12473 | ac_header_preproc=no |
|
|
12474 | fi |
|
|
12475 | |
|
|
12476 | rm -f conftest.err conftest.$ac_ext |
|
|
12477 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
12478 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
12479 | |
|
|
12480 | # So? What about this header? |
|
|
12481 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
12482 | yes:no: ) |
|
|
12483 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
12484 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
12485 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
12486 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
12487 | ac_header_preproc=yes |
|
|
12488 | ;; |
|
|
12489 | no:yes:* ) |
|
|
12490 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
12491 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
12492 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
12493 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
12494 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
12495 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
12496 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
12497 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
12498 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
12499 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
12500 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
12501 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
12502 | |
|
|
12503 | ;; |
|
|
12504 | esac |
|
|
12505 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12506 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
12507 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
12508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12509 | else |
|
|
12510 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
12511 | fi |
|
|
12512 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
12513 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
12514 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
12515 | |
|
|
12516 | fi |
|
|
12517 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
12518 | cat >>confdefs.h <<_ACEOF |
|
|
12519 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
12520 | _ACEOF |
|
|
12521 | |
|
|
12522 | fi |
|
|
12523 | |
|
|
12524 | done |
|
|
12525 | |
|
|
12526 | |
|
|
12527 | |
|
|
12528 | |
|
|
12529 | |
|
|
12530 | |
|
|
12531 | |
|
|
12532 | |
|
|
12533 | |
|
|
12534 | |
|
|
12535 | |
|
|
12536 | for ac_func in \ |
|
|
12537 | revoke \ |
|
|
12538 | _getpty \ |
|
|
12539 | getpt \ |
|
|
12540 | posix_openpt \ |
|
|
12541 | isastream \ |
|
|
12542 | setuid \ |
|
|
12543 | seteuid \ |
|
|
12544 | setreuid \ |
|
|
12545 | setresuid \ |
|
|
12546 | |
|
|
12547 | do |
|
|
12548 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12549 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12550 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
12551 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
12552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12553 | else |
|
|
12554 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12555 | /* confdefs.h. */ |
|
|
12556 | _ACEOF |
|
|
12557 | cat confdefs.h >>conftest.$ac_ext |
|
|
12558 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12559 | /* end confdefs.h. */ |
|
|
12560 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12561 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12562 | #define $ac_func innocuous_$ac_func |
|
|
12563 | |
|
|
12564 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12565 | which can conflict with char $ac_func (); below. |
|
|
12566 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12567 | <limits.h> exists even on freestanding compilers. */ |
|
|
12568 | |
|
|
12569 | #ifdef __STDC__ |
|
|
12570 | # include <limits.h> |
|
|
12571 | #else |
|
|
12572 | # include <assert.h> |
|
|
12573 | #endif |
|
|
12574 | |
|
|
12575 | #undef $ac_func |
|
|
12576 | |
|
|
12577 | /* Override any GCC internal prototype to avoid an error. |
|
|
12578 | Use char because int might match the return type of a GCC |
|
|
12579 | builtin and then its argument prototype would still apply. */ |
|
|
12580 | #ifdef __cplusplus |
|
|
12581 | extern "C" |
|
|
12582 | #endif |
|
|
12583 | char $ac_func (); |
|
|
12584 | /* The GNU C library defines this for functions which it implements |
|
|
12585 | to always fail with ENOSYS. Some functions are actually named |
|
|
12586 | something starting with __ and the normal name is an alias. */ |
|
|
12587 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
12588 | choke me |
|
|
12589 | #endif |
|
|
12590 | |
|
|
12591 | int |
|
|
12592 | main () |
|
|
12593 | { |
|
|
12594 | return $ac_func (); |
|
|
12595 | ; |
|
|
12596 | return 0; |
|
|
12597 | } |
|
|
12598 | _ACEOF |
|
|
12599 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12600 | if { (ac_try="$ac_link" |
|
|
12601 | case "(($ac_try" in |
|
|
12602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12603 | *) ac_try_echo=$ac_try;; |
|
|
12604 | esac |
|
|
12605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12606 | (eval "$ac_link") 2>conftest.er1 |
|
|
12607 | ac_status=$? |
|
|
12608 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12609 | rm -f conftest.er1 |
|
|
12610 | cat conftest.err >&5 |
|
|
12611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12612 | (exit $ac_status); } && { |
|
|
12613 | test -z "$ac_cxx_werror_flag" || |
|
|
12614 | test ! -s conftest.err |
|
|
12615 | } && test -s conftest$ac_exeext && |
|
|
12616 | $as_test_x conftest$ac_exeext; then |
|
|
12617 | eval "$as_ac_var=yes" |
|
|
12618 | else |
|
|
12619 | echo "$as_me: failed program was:" >&5 |
|
|
12620 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12621 | |
|
|
12622 | eval "$as_ac_var=no" |
|
|
12623 | fi |
|
|
12624 | |
|
|
12625 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12626 | conftest$ac_exeext conftest.$ac_ext |
|
|
12627 | fi |
|
|
12628 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
12629 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
12630 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
12631 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12632 | cat >>confdefs.h <<_ACEOF |
|
|
12633 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12634 | _ACEOF |
|
|
12635 | |
|
|
12636 | fi |
|
|
12637 | done |
|
|
12638 | |
|
|
12639 | |
|
|
12640 | have_clone=no |
|
|
12641 | |
|
|
12642 | { echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 |
|
|
12643 | echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6; } |
|
|
12644 | if test -e /dev/ptym/clone; then |
|
|
12645 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12646 | echo "${ECHO_T}yes" >&6; } |
|
|
12647 | |
|
|
12648 | cat >>confdefs.h <<\_ACEOF |
|
|
12649 | #define HAVE_DEV_CLONE 1 |
|
|
12650 | _ACEOF |
|
|
12651 | |
|
|
12652 | |
|
|
12653 | cat >>confdefs.h <<\_ACEOF |
|
|
12654 | #define CLONE_DEVICE "/dev/ptym/clone" |
|
|
12655 | _ACEOF |
|
|
12656 | |
|
|
12657 | have_clone=yes |
|
|
12658 | else |
|
|
12659 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
12660 | echo "${ECHO_T}no" >&6; } |
|
|
12661 | fi |
|
|
12662 | |
|
|
12663 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
|
|
12664 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
|
|
12665 | if test -e /dev/ptc; then |
|
|
12666 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12667 | echo "${ECHO_T}yes" >&6; } |
|
|
12668 | |
|
|
12669 | cat >>confdefs.h <<\_ACEOF |
|
|
12670 | #define HAVE_DEV_PTC 1 |
|
|
12671 | _ACEOF |
|
|
12672 | |
|
|
12673 | |
|
|
12674 | cat >>confdefs.h <<\_ACEOF |
|
|
12675 | #define CLONE_DEVICE "/dev/ptc" |
|
|
12676 | _ACEOF |
|
|
12677 | |
|
|
12678 | have_clone=yes |
|
|
12679 | else |
|
|
12680 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
12681 | echo "${ECHO_T}no" >&6; } |
|
|
12682 | fi |
|
|
12683 | |
|
|
12684 | case $host in |
|
|
12685 | *-*-cygwin*) |
|
|
12686 | have_clone=yes |
|
|
12687 | |
|
|
12688 | cat >>confdefs.h <<\_ACEOF |
|
|
12689 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12690 | _ACEOF |
|
|
12691 | |
|
|
12692 | ;; |
|
|
12693 | *) |
|
|
12694 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
|
|
12695 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
|
|
12696 | if test -e /dev/ptmx; then |
|
|
12697 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12698 | echo "${ECHO_T}yes" >&6; } |
|
|
12699 | |
|
|
12700 | cat >>confdefs.h <<\_ACEOF |
|
|
12701 | #define HAVE_DEV_PTMX 1 |
|
|
12702 | _ACEOF |
|
|
12703 | |
|
|
12704 | |
|
|
12705 | cat >>confdefs.h <<\_ACEOF |
|
|
12706 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12707 | _ACEOF |
|
|
12708 | |
|
|
12709 | have_clone=yes |
|
|
12710 | else |
|
|
12711 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
12712 | echo "${ECHO_T}no" >&6; } |
|
|
12713 | fi |
|
|
12714 | ;; |
|
|
12715 | esac |
|
|
12716 | |
|
|
12717 | if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
|
|
12718 | { echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 |
|
|
12719 | echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6; } |
|
|
12720 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12721 | /* confdefs.h. */ |
|
|
12722 | _ACEOF |
|
|
12723 | cat confdefs.h >>conftest.$ac_ext |
|
|
12724 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12725 | /* end confdefs.h. */ |
|
|
12726 | #include <stdlib.h> |
|
|
12727 | int |
|
|
12728 | main () |
|
|
12729 | { |
|
|
12730 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
12731 | ; |
|
|
12732 | return 0; |
|
|
12733 | } |
|
|
12734 | _ACEOF |
|
|
12735 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12736 | if { (ac_try="$ac_link" |
|
|
12737 | case "(($ac_try" in |
|
|
12738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12739 | *) ac_try_echo=$ac_try;; |
|
|
12740 | esac |
|
|
12741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12742 | (eval "$ac_link") 2>conftest.er1 |
|
|
12743 | ac_status=$? |
|
|
12744 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12745 | rm -f conftest.er1 |
|
|
12746 | cat conftest.err >&5 |
|
|
12747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12748 | (exit $ac_status); } && { |
|
|
12749 | test -z "$ac_cxx_werror_flag" || |
|
|
12750 | test ! -s conftest.err |
|
|
12751 | } && test -s conftest$ac_exeext && |
|
|
12752 | $as_test_x conftest$ac_exeext; then |
|
|
12753 | unix98_pty=yes |
|
|
12754 | |
|
|
12755 | cat >>confdefs.h <<\_ACEOF |
|
|
12756 | #define UNIX98_PTY 1 |
|
|
12757 | _ACEOF |
|
|
12758 | |
|
|
12759 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12760 | echo "${ECHO_T}yes" >&6; } |
|
|
12761 | else |
|
|
12762 | echo "$as_me: failed program was:" >&5 |
|
|
12763 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12764 | |
|
|
12765 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
12766 | echo "${ECHO_T}no" >&6; } |
|
|
12767 | fi |
|
|
12768 | |
|
|
12769 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12770 | conftest$ac_exeext conftest.$ac_ext |
|
|
12771 | fi |
|
|
12772 | |
|
|
12773 | if test -z "$unix98_pty"; then |
|
|
12774 | |
|
|
12775 | for ac_func in openpty |
|
|
12776 | do |
|
|
12777 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12778 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12779 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
12780 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
12781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12782 | else |
|
|
12783 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12784 | /* confdefs.h. */ |
|
|
12785 | _ACEOF |
|
|
12786 | cat confdefs.h >>conftest.$ac_ext |
|
|
12787 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12788 | /* end confdefs.h. */ |
|
|
12789 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12790 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12791 | #define $ac_func innocuous_$ac_func |
|
|
12792 | |
|
|
12793 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12794 | which can conflict with char $ac_func (); below. |
|
|
12795 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12796 | <limits.h> exists even on freestanding compilers. */ |
|
|
12797 | |
|
|
12798 | #ifdef __STDC__ |
|
|
12799 | # include <limits.h> |
|
|
12800 | #else |
|
|
12801 | # include <assert.h> |
|
|
12802 | #endif |
|
|
12803 | |
|
|
12804 | #undef $ac_func |
|
|
12805 | |
|
|
12806 | /* Override any GCC internal prototype to avoid an error. |
|
|
12807 | Use char because int might match the return type of a GCC |
|
|
12808 | builtin and then its argument prototype would still apply. */ |
|
|
12809 | #ifdef __cplusplus |
|
|
12810 | extern "C" |
|
|
12811 | #endif |
|
|
12812 | char $ac_func (); |
|
|
12813 | /* The GNU C library defines this for functions which it implements |
|
|
12814 | to always fail with ENOSYS. Some functions are actually named |
|
|
12815 | something starting with __ and the normal name is an alias. */ |
|
|
12816 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
12817 | choke me |
|
|
12818 | #endif |
|
|
12819 | |
|
|
12820 | int |
|
|
12821 | main () |
|
|
12822 | { |
|
|
12823 | return $ac_func (); |
|
|
12824 | ; |
|
|
12825 | return 0; |
|
|
12826 | } |
|
|
12827 | _ACEOF |
|
|
12828 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12829 | if { (ac_try="$ac_link" |
|
|
12830 | case "(($ac_try" in |
|
|
12831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12832 | *) ac_try_echo=$ac_try;; |
|
|
12833 | esac |
|
|
12834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12835 | (eval "$ac_link") 2>conftest.er1 |
|
|
12836 | ac_status=$? |
|
|
12837 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12838 | rm -f conftest.er1 |
|
|
12839 | cat conftest.err >&5 |
|
|
12840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12841 | (exit $ac_status); } && { |
|
|
12842 | test -z "$ac_cxx_werror_flag" || |
|
|
12843 | test ! -s conftest.err |
|
|
12844 | } && test -s conftest$ac_exeext && |
|
|
12845 | $as_test_x conftest$ac_exeext; then |
|
|
12846 | eval "$as_ac_var=yes" |
|
|
12847 | else |
|
|
12848 | echo "$as_me: failed program was:" >&5 |
|
|
12849 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12850 | |
|
|
12851 | eval "$as_ac_var=no" |
|
|
12852 | fi |
|
|
12853 | |
|
|
12854 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12855 | conftest$ac_exeext conftest.$ac_ext |
|
|
12856 | fi |
|
|
12857 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
12858 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
12859 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
12860 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12861 | cat >>confdefs.h <<_ACEOF |
|
|
12862 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12863 | _ACEOF |
|
|
12864 | |
|
|
12865 | else |
|
|
12866 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
|
|
12867 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; } |
|
|
12868 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
|
|
12869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12870 | else |
|
|
12871 | ac_check_lib_save_LIBS=$LIBS |
|
|
12872 | LIBS="-lutil $LIBS" |
|
|
12873 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12874 | /* confdefs.h. */ |
|
|
12875 | _ACEOF |
|
|
12876 | cat confdefs.h >>conftest.$ac_ext |
|
|
12877 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12878 | /* end confdefs.h. */ |
|
|
12879 | |
|
|
12880 | /* Override any GCC internal prototype to avoid an error. |
|
|
12881 | Use char because int might match the return type of a GCC |
|
|
12882 | builtin and then its argument prototype would still apply. */ |
|
|
12883 | #ifdef __cplusplus |
|
|
12884 | extern "C" |
|
|
12885 | #endif |
|
|
12886 | char openpty (); |
|
|
12887 | int |
|
|
12888 | main () |
|
|
12889 | { |
|
|
12890 | return openpty (); |
|
|
12891 | ; |
|
|
12892 | return 0; |
|
|
12893 | } |
|
|
12894 | _ACEOF |
|
|
12895 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12896 | if { (ac_try="$ac_link" |
|
|
12897 | case "(($ac_try" in |
|
|
12898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12899 | *) ac_try_echo=$ac_try;; |
|
|
12900 | esac |
|
|
12901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12902 | (eval "$ac_link") 2>conftest.er1 |
|
|
12903 | ac_status=$? |
|
|
12904 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12905 | rm -f conftest.er1 |
|
|
12906 | cat conftest.err >&5 |
|
|
12907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12908 | (exit $ac_status); } && { |
|
|
12909 | test -z "$ac_cxx_werror_flag" || |
|
|
12910 | test ! -s conftest.err |
|
|
12911 | } && test -s conftest$ac_exeext && |
|
|
12912 | $as_test_x conftest$ac_exeext; then |
|
|
12913 | ac_cv_lib_util_openpty=yes |
|
|
12914 | else |
|
|
12915 | echo "$as_me: failed program was:" >&5 |
|
|
12916 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12917 | |
|
|
12918 | ac_cv_lib_util_openpty=no |
|
|
12919 | fi |
|
|
12920 | |
|
|
12921 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12922 | conftest$ac_exeext conftest.$ac_ext |
|
|
12923 | LIBS=$ac_check_lib_save_LIBS |
|
|
12924 | fi |
|
|
12925 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
12926 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
|
|
12927 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12928 | cat >>confdefs.h <<\_ACEOF |
|
|
12929 | #define HAVE_OPENPTY 1 |
|
|
12930 | _ACEOF |
|
|
12931 | LIBS="$LIBS -lutil" |
|
|
12932 | fi |
|
|
12933 | |
|
|
12934 | fi |
|
|
12935 | done |
|
|
12936 | |
|
|
12937 | fi |
|
|
12938 | |
|
|
12939 | |
|
|
12940 | |
|
|
12941 | { echo "$as_me:$LINENO: checking for tty group" >&5 |
|
|
12942 | echo $ECHO_N "checking for tty group... $ECHO_C" >&6; } |
|
|
12943 | if test "${tty_group+set}" = set; then |
|
|
12944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12945 | else |
|
|
12946 | if test "$cross_compiling" = yes; then |
|
|
12947 | tty_group=no |
|
|
12948 | else |
|
|
12949 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12950 | /* confdefs.h. */ |
|
|
12951 | _ACEOF |
|
|
12952 | cat confdefs.h >>conftest.$ac_ext |
|
|
12953 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12954 | /* end confdefs.h. */ |
|
|
12955 | |
|
|
12956 | #include <sys/types.h> |
|
|
12957 | #include <sys/stat.h> |
|
|
12958 | #include <unistd.h> |
|
|
12959 | #include <grp.h> |
|
|
12960 | |
|
|
12961 | main() |
|
|
12962 | { |
|
|
12963 | struct stat st; |
|
|
12964 | struct group *gr; |
|
|
12965 | char *tty; |
|
|
12966 | gr = getgrnam("tty"); |
|
|
12967 | tty = ttyname(0); |
|
|
12968 | if (gr != 0 |
|
|
12969 | && tty != 0 |
|
|
12970 | && (stat(tty, &st)) == 0 |
|
|
12971 | && st.st_gid == gr->gr_gid) |
|
|
12972 | return 0; |
|
|
12973 | else |
|
|
12974 | return 1; |
|
|
12975 | } |
|
|
12976 | _ACEOF |
|
|
12977 | rm -f conftest$ac_exeext |
|
|
12978 | if { (ac_try="$ac_link" |
|
|
12979 | case "(($ac_try" in |
|
|
12980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12981 | *) ac_try_echo=$ac_try;; |
|
|
12982 | esac |
|
|
12983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12984 | (eval "$ac_link") 2>&5 |
|
|
12985 | ac_status=$? |
|
|
12986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12987 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
12988 | { (case "(($ac_try" in |
|
|
12989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12990 | *) ac_try_echo=$ac_try;; |
|
|
12991 | esac |
|
|
12992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12993 | (eval "$ac_try") 2>&5 |
|
|
12994 | ac_status=$? |
|
|
12995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12996 | (exit $ac_status); }; }; then |
|
|
12997 | tty_group=yes |
|
|
12998 | else |
|
|
12999 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
13000 | echo "$as_me: failed program was:" >&5 |
|
|
13001 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13002 | |
|
|
13003 | ( exit $ac_status ) |
|
|
13004 | tty_group=no |
|
|
13005 | fi |
|
|
13006 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
13007 | fi |
|
|
13008 | |
|
|
13009 | |
|
|
13010 | fi |
|
|
13011 | { echo "$as_me:$LINENO: result: $tty_group" >&5 |
|
|
13012 | echo "${ECHO_T}$tty_group" >&6; } |
|
|
13013 | if test x$tty_group = xyes; then |
|
|
13014 | |
|
|
13015 | cat >>confdefs.h <<\_ACEOF |
|
|
13016 | #define TTY_GID_SUPPORT 1 |
|
|
13017 | _ACEOF |
|
|
13018 | |
|
|
13019 | fi |
|
|
13020 | |
|
|
13021 | if test x$support_xft = xyes; then |
|
|
13022 | # Extract the first word of "pkg-config", so it can be a program name with args. |
6740 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
13023 | set dummy pkg-config; ac_word=$2 |
6741 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
13024 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13025 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6743 | printf %s "checking for $ac_word... " >&6; } |
13026 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
6744 | if test ${ac_cv_path_PKG_CONFIG+y} |
13027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6745 | then : |
13028 | else |
6746 | printf %s "(cached) " >&6 |
|
|
6747 | else $as_nop |
13029 | case $PKG_CONFIG in |
6748 | case $PKG_CONFIG in |
13030 | [\\/]* | ?:[\\/]*) |
6749 | [\\/]* | ?:[\\/]*) |
13031 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
6750 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
13032 | ;; |
6751 | ;; |
13033 | *) |
6752 | *) |
13034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13035 | for as_dir in $PATH |
6754 | for as_dir in $PATH |
13036 | do |
6755 | do |
13037 | IFS=$as_save_IFS |
6756 | IFS=$as_save_IFS |
13038 | test -z "$as_dir" && as_dir=. |
6757 | case $as_dir in #((( |
|
|
6758 | '') as_dir=./ ;; |
|
|
6759 | */) ;; |
|
|
6760 | *) as_dir=$as_dir/ ;; |
|
|
6761 | esac |
13039 | for ac_exec_ext in '' $ac_executable_extensions; do |
6762 | for ac_exec_ext in '' $ac_executable_extensions; do |
13040 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6763 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
13041 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
6764 | ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
13042 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6765 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
13043 | break 2 |
6766 | break 2 |
13044 | fi |
6767 | fi |
13045 | done |
6768 | done |
13046 | done |
6769 | done |
13047 | IFS=$as_save_IFS |
6770 | IFS=$as_save_IFS |
13048 | |
6771 | |
13049 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
|
|
13050 | ;; |
6772 | ;; |
13051 | esac |
6773 | esac |
13052 | fi |
6774 | fi |
13053 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
6775 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
13054 | if test -n "$PKG_CONFIG"; then |
6776 | if test -n "$PKG_CONFIG"; then |
13055 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
6777 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
13056 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
6778 | printf "%s\n" "$PKG_CONFIG" >&6; } |
13057 | else |
6779 | else |
13058 | { echo "$as_me:$LINENO: result: no" >&5 |
6780 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13059 | echo "${ECHO_T}no" >&6; } |
6781 | printf "%s\n" "no" >&6; } |
13060 | fi |
6782 | fi |
13061 | |
6783 | |
13062 | |
6784 | |
13063 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
6785 | fi |
13064 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
6786 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
13065 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
6787 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
|
|
6788 | # Extract the first word of "pkg-config", so it can be a program name with args. |
|
|
6789 | set dummy pkg-config; ac_word=$2 |
|
|
6790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
6791 | printf %s "checking for $ac_word... " >&6; } |
|
|
6792 | if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} |
|
|
6793 | then : |
|
|
6794 | printf %s "(cached) " >&6 |
|
|
6795 | else $as_nop |
|
|
6796 | case $ac_pt_PKG_CONFIG in |
|
|
6797 | [\\/]* | ?:[\\/]*) |
|
|
6798 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
|
|
6799 | ;; |
|
|
6800 | *) |
|
|
6801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
6802 | for as_dir in $PATH |
|
|
6803 | do |
|
|
6804 | IFS=$as_save_IFS |
|
|
6805 | case $as_dir in #((( |
|
|
6806 | '') as_dir=./ ;; |
|
|
6807 | */) ;; |
|
|
6808 | *) as_dir=$as_dir/ ;; |
|
|
6809 | esac |
|
|
6810 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
6811 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
6812 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
|
|
6813 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
6814 | break 2 |
|
|
6815 | fi |
|
|
6816 | done |
|
|
6817 | done |
|
|
6818 | IFS=$as_save_IFS |
|
|
6819 | |
|
|
6820 | ;; |
|
|
6821 | esac |
|
|
6822 | fi |
|
|
6823 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
|
|
6824 | if test -n "$ac_pt_PKG_CONFIG"; then |
|
|
6825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
|
|
6826 | printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } |
|
|
6827 | else |
|
|
6828 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6829 | printf "%s\n" "no" >&6; } |
|
|
6830 | fi |
|
|
6831 | |
|
|
6832 | if test "x$ac_pt_PKG_CONFIG" = x; then |
|
|
6833 | PKG_CONFIG="no" |
13066 | else |
6834 | else |
|
|
6835 | case $cross_compiling:$ac_tool_warned in |
|
|
6836 | yes:) |
|
|
6837 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
|
6838 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
|
6839 | ac_tool_warned=yes ;; |
|
|
6840 | esac |
|
|
6841 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
|
|
6842 | fi |
|
|
6843 | else |
|
|
6844 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
|
|
6845 | fi |
|
|
6846 | |
|
|
6847 | |
|
|
6848 | |
|
|
6849 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libptytty (using pkg-config)" >&5 |
|
|
6850 | printf %s "checking for libptytty (using pkg-config)... " >&6; } |
|
|
6851 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libptytty; then |
|
|
6852 | PTYTTY_CFLAGS="`$PKG_CONFIG --cflags libptytty`" |
|
|
6853 | PTYTTY_LIBS="`$PKG_CONFIG --libs libptytty`" |
|
|
6854 | |
|
|
6855 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
6856 | printf "%s\n" "ok" >&6; } |
|
|
6857 | : |
|
|
6858 | else |
|
|
6859 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6860 | printf "%s\n" "no" >&6; } |
|
|
6861 | |
|
|
6862 | as_fn_error $? "unable to find libptytty" "$LINENO" 5 |
|
|
6863 | |
|
|
6864 | fi |
|
|
6865 | |
|
|
6866 | |
|
|
6867 | |
|
|
6868 | |
|
|
6869 | |
|
|
6870 | image_lib=none |
|
|
6871 | |
|
|
6872 | PIXBUF_CFLAGS= |
|
|
6873 | PIXBUF_LIBS= |
|
|
6874 | |
|
|
6875 | if test x$support_pixbuf = xyes; then |
|
|
6876 | |
|
|
6877 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0 (using pkg-config)" >&5 |
|
|
6878 | printf %s "checking for gdk-pixbuf-2.0 (using pkg-config)... " >&6; } |
|
|
6879 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
|
|
6880 | PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`" |
|
|
6881 | PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`" |
|
|
6882 | |
|
|
6883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
6884 | printf "%s\n" "ok" >&6; } |
|
|
6885 | |
|
|
6886 | image_lib=gdk-pixbuf |
|
|
6887 | |
|
|
6888 | printf "%s\n" "#define HAVE_PIXBUF 1" >>confdefs.h |
|
|
6889 | |
|
|
6890 | |
|
|
6891 | else |
|
|
6892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6893 | printf "%s\n" "no" >&6; } |
|
|
6894 | : |
|
|
6895 | fi |
|
|
6896 | |
|
|
6897 | fi |
|
|
6898 | |
|
|
6899 | |
|
|
6900 | |
|
|
6901 | |
|
|
6902 | STARTUP_NOTIFICATION_CFLAGS= |
|
|
6903 | STARTUP_NOTIFICATION_LIBS= |
|
|
6904 | |
|
|
6905 | if test x$support_startup_notification = xyes; then |
|
|
6906 | |
|
|
6907 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0 (using pkg-config)" >&5 |
|
|
6908 | printf %s "checking for libstartup-notification-1.0 (using pkg-config)... " >&6; } |
|
|
6909 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then |
|
|
6910 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`" |
|
|
6911 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`" |
|
|
6912 | |
|
|
6913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
6914 | printf "%s\n" "ok" >&6; } |
|
|
6915 | |
|
|
6916 | |
|
|
6917 | printf "%s\n" "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h |
|
|
6918 | |
|
|
6919 | |
|
|
6920 | else |
|
|
6921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6922 | printf "%s\n" "no" >&6; } |
|
|
6923 | : |
|
|
6924 | fi |
|
|
6925 | |
|
|
6926 | fi |
|
|
6927 | |
|
|
6928 | |
|
|
6929 | |
|
|
6930 | |
|
|
6931 | if test x$support_frills = xyes; then |
|
|
6932 | |
|
|
6933 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmu (using pkg-config)" >&5 |
|
|
6934 | printf %s "checking for xmu (using pkg-config)... " >&6; } |
|
|
6935 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then |
|
|
6936 | XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`" |
|
|
6937 | XMU_LIBS="`$PKG_CONFIG --libs xmu`" |
|
|
6938 | |
|
|
6939 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
6940 | printf "%s\n" "ok" >&6; } |
|
|
6941 | |
|
|
6942 | X_LIBS="$XMU_LIBS $X_LIBS" |
|
|
6943 | CPPFLAGS="$CPPFLAGS $XMU_CFLAGS" |
|
|
6944 | |
|
|
6945 | printf "%s\n" "#define HAVE_XMU 1" >>confdefs.h |
|
|
6946 | |
|
|
6947 | |
|
|
6948 | else |
|
|
6949 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6950 | printf "%s\n" "no" >&6; } |
|
|
6951 | : |
|
|
6952 | fi |
|
|
6953 | |
|
|
6954 | fi |
|
|
6955 | |
|
|
6956 | ac_fn_cxx_check_header_compile "$LINENO" "sys/byteorder.h" "ac_cv_header_sys_byteorder_h" "$ac_includes_default" |
|
|
6957 | if test "x$ac_cv_header_sys_byteorder_h" = xyes |
|
|
6958 | then : |
|
|
6959 | printf "%s\n" "#define HAVE_SYS_BYTEORDER_H 1" >>confdefs.h |
|
|
6960 | |
|
|
6961 | fi |
|
|
6962 | ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
|
|
6963 | if test "x$ac_cv_header_sys_ioctl_h" = xyes |
|
|
6964 | then : |
|
|
6965 | printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h |
|
|
6966 | |
|
|
6967 | fi |
|
|
6968 | ac_fn_cxx_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" |
|
|
6969 | if test "x$ac_cv_header_sys_sockio_h" = xyes |
|
|
6970 | then : |
|
|
6971 | printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h |
|
|
6972 | |
|
|
6973 | fi |
|
|
6974 | ac_fn_cxx_check_header_compile "$LINENO" "sys/strredir.h" "ac_cv_header_sys_strredir_h" "$ac_includes_default" |
|
|
6975 | if test "x$ac_cv_header_sys_strredir_h" = xyes |
|
|
6976 | then : |
|
|
6977 | printf "%s\n" "#define HAVE_SYS_STRREDIR_H 1" >>confdefs.h |
|
|
6978 | |
|
|
6979 | fi |
|
|
6980 | ac_fn_cxx_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
|
|
6981 | if test "x$ac_cv_header_stdint_h" = xyes |
|
|
6982 | then : |
|
|
6983 | printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h |
|
|
6984 | |
|
|
6985 | fi |
|
|
6986 | ac_fn_cxx_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
|
|
6987 | if test "x$ac_cv_header_wchar_h" = xyes |
|
|
6988 | then : |
|
|
6989 | printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h |
|
|
6990 | |
|
|
6991 | fi |
|
|
6992 | |
|
|
6993 | |
|
|
6994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5 |
|
|
6995 | printf %s "checking for XLIB_ILLEGAL_ACCESS... " >&6; } |
|
|
6996 | if test ${rxvt_cv_xlib_illegal_access+y} |
|
|
6997 | then : |
|
|
6998 | printf %s "(cached) " >&6 |
|
|
6999 | else $as_nop |
|
|
7000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7001 | /* end confdefs.h. */ |
|
|
7002 | |
|
|
7003 | #define XLIB_ILLEGAL_ACCESS |
|
|
7004 | #include <X11/Xlib.h> |
|
|
7005 | |
|
|
7006 | int |
|
|
7007 | main (void) |
|
|
7008 | { |
|
|
7009 | |
|
|
7010 | Display *dpy; |
|
|
7011 | dpy->xdefaults = (char *)0; |
|
|
7012 | |
|
|
7013 | ; |
|
|
7014 | return 0; |
|
|
7015 | } |
|
|
7016 | _ACEOF |
|
|
7017 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
7018 | then : |
|
|
7019 | rxvt_cv_xlib_illegal_access=yes |
|
|
7020 | else $as_nop |
|
|
7021 | rxvt_cv_xlib_illegal_access=no |
|
|
7022 | |
|
|
7023 | fi |
|
|
7024 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7025 | fi |
|
|
7026 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5 |
|
|
7027 | printf "%s\n" "$rxvt_cv_xlib_illegal_access" >&6; } |
|
|
7028 | if test x$rxvt_cv_xlib_illegal_access = xyes; then |
|
|
7029 | |
|
|
7030 | printf "%s\n" "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h |
|
|
7031 | |
|
|
7032 | fi |
|
|
7033 | |
|
|
7034 | ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
|
|
7035 | if test "x$ac_cv_type_mode_t" = xyes |
|
|
7036 | then : |
|
|
7037 | |
|
|
7038 | else $as_nop |
|
|
7039 | |
|
|
7040 | printf "%s\n" "#define mode_t int" >>confdefs.h |
|
|
7041 | |
|
|
7042 | fi |
|
|
7043 | |
|
|
7044 | |
|
|
7045 | ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default |
|
|
7046 | " |
|
|
7047 | if test "x$ac_cv_type_pid_t" = xyes |
|
|
7048 | then : |
|
|
7049 | |
|
|
7050 | else $as_nop |
|
|
7051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7052 | /* end confdefs.h. */ |
|
|
7053 | |
|
|
7054 | #if defined _WIN64 && !defined __CYGWIN__ |
|
|
7055 | LLP64 |
|
|
7056 | #endif |
|
|
7057 | |
|
|
7058 | int |
|
|
7059 | main (void) |
|
|
7060 | { |
|
|
7061 | |
|
|
7062 | ; |
|
|
7063 | return 0; |
|
|
7064 | } |
|
|
7065 | |
|
|
7066 | _ACEOF |
|
|
7067 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
7068 | then : |
|
|
7069 | ac_pid_type='int' |
|
|
7070 | else $as_nop |
|
|
7071 | ac_pid_type='__int64' |
|
|
7072 | fi |
|
|
7073 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7074 | |
|
|
7075 | printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h |
|
|
7076 | |
|
|
7077 | |
|
|
7078 | fi |
|
|
7079 | |
|
|
7080 | |
|
|
7081 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
|
|
7082 | printf %s "checking for grep that handles long lines and -e... " >&6; } |
|
|
7083 | if test ${ac_cv_path_GREP+y} |
|
|
7084 | then : |
|
|
7085 | printf %s "(cached) " >&6 |
|
|
7086 | else $as_nop |
|
|
7087 | if test -z "$GREP"; then |
|
|
7088 | ac_path_GREP_found=false |
|
|
7089 | # Loop through the user's path and test for each of PROGNAME-LIST |
|
|
7090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
7091 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
7092 | do |
|
|
7093 | IFS=$as_save_IFS |
|
|
7094 | case $as_dir in #((( |
|
|
7095 | '') as_dir=./ ;; |
|
|
7096 | */) ;; |
|
|
7097 | *) as_dir=$as_dir/ ;; |
|
|
7098 | esac |
|
|
7099 | for ac_prog in grep ggrep |
|
|
7100 | do |
|
|
7101 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
7102 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
|
|
7103 | as_fn_executable_p "$ac_path_GREP" || continue |
|
|
7104 | # Check for GNU ac_path_GREP and select it if it is found. |
|
|
7105 | # Check for GNU $ac_path_GREP |
|
|
7106 | case `"$ac_path_GREP" --version 2>&1` in |
|
|
7107 | *GNU*) |
|
|
7108 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
|
7109 | *) |
|
|
7110 | ac_count=0 |
|
|
7111 | printf %s 0123456789 >"conftest.in" |
|
|
7112 | while : |
|
|
7113 | do |
|
|
7114 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
|
7115 | mv "conftest.tmp" "conftest.in" |
|
|
7116 | cp "conftest.in" "conftest.nl" |
|
|
7117 | printf "%s\n" 'GREP' >> "conftest.nl" |
|
|
7118 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
|
7119 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
|
7120 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
|
7121 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|
|
7122 | # Best one so far, save it but keep looking for a better one |
|
|
7123 | ac_cv_path_GREP="$ac_path_GREP" |
|
|
7124 | ac_path_GREP_max=$ac_count |
|
|
7125 | fi |
|
|
7126 | # 10*(2^10) chars as input seems more than enough |
|
|
7127 | test $ac_count -gt 10 && break |
|
|
7128 | done |
|
|
7129 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
|
7130 | esac |
|
|
7131 | |
|
|
7132 | $ac_path_GREP_found && break 3 |
|
|
7133 | done |
|
|
7134 | done |
|
|
7135 | done |
|
|
7136 | IFS=$as_save_IFS |
|
|
7137 | if test -z "$ac_cv_path_GREP"; then |
|
|
7138 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
|
7139 | fi |
|
|
7140 | else |
|
|
7141 | ac_cv_path_GREP=$GREP |
|
|
7142 | fi |
|
|
7143 | |
|
|
7144 | fi |
|
|
7145 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
|
|
7146 | printf "%s\n" "$ac_cv_path_GREP" >&6; } |
|
|
7147 | GREP="$ac_cv_path_GREP" |
|
|
7148 | |
|
|
7149 | |
|
|
7150 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
|
|
7151 | printf %s "checking for egrep... " >&6; } |
|
|
7152 | if test ${ac_cv_path_EGREP+y} |
|
|
7153 | then : |
|
|
7154 | printf %s "(cached) " >&6 |
|
|
7155 | else $as_nop |
|
|
7156 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
|
7157 | then ac_cv_path_EGREP="$GREP -E" |
|
|
7158 | else |
|
|
7159 | if test -z "$EGREP"; then |
|
|
7160 | ac_path_EGREP_found=false |
|
|
7161 | # Loop through the user's path and test for each of PROGNAME-LIST |
|
|
7162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
7163 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
7164 | do |
|
|
7165 | IFS=$as_save_IFS |
|
|
7166 | case $as_dir in #((( |
|
|
7167 | '') as_dir=./ ;; |
|
|
7168 | */) ;; |
|
|
7169 | *) as_dir=$as_dir/ ;; |
|
|
7170 | esac |
|
|
7171 | for ac_prog in egrep |
|
|
7172 | do |
|
|
7173 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
7174 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
|
|
7175 | as_fn_executable_p "$ac_path_EGREP" || continue |
|
|
7176 | # Check for GNU ac_path_EGREP and select it if it is found. |
|
|
7177 | # Check for GNU $ac_path_EGREP |
|
|
7178 | case `"$ac_path_EGREP" --version 2>&1` in |
|
|
7179 | *GNU*) |
|
|
7180 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
|
7181 | *) |
|
|
7182 | ac_count=0 |
|
|
7183 | printf %s 0123456789 >"conftest.in" |
|
|
7184 | while : |
|
|
7185 | do |
|
|
7186 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
|
7187 | mv "conftest.tmp" "conftest.in" |
|
|
7188 | cp "conftest.in" "conftest.nl" |
|
|
7189 | printf "%s\n" 'EGREP' >> "conftest.nl" |
|
|
7190 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
|
7191 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
|
7192 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
|
7193 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|
|
7194 | # Best one so far, save it but keep looking for a better one |
|
|
7195 | ac_cv_path_EGREP="$ac_path_EGREP" |
|
|
7196 | ac_path_EGREP_max=$ac_count |
|
|
7197 | fi |
|
|
7198 | # 10*(2^10) chars as input seems more than enough |
|
|
7199 | test $ac_count -gt 10 && break |
|
|
7200 | done |
|
|
7201 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
|
7202 | esac |
|
|
7203 | |
|
|
7204 | $ac_path_EGREP_found && break 3 |
|
|
7205 | done |
|
|
7206 | done |
|
|
7207 | done |
|
|
7208 | IFS=$as_save_IFS |
|
|
7209 | if test -z "$ac_cv_path_EGREP"; then |
|
|
7210 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
|
7211 | fi |
|
|
7212 | else |
|
|
7213 | ac_cv_path_EGREP=$EGREP |
|
|
7214 | fi |
|
|
7215 | |
|
|
7216 | fi |
|
|
7217 | fi |
|
|
7218 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
|
|
7219 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
|
|
7220 | EGREP="$ac_cv_path_EGREP" |
|
|
7221 | |
|
|
7222 | |
|
|
7223 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
|
|
7224 | printf %s "checking for uid_t in sys/types.h... " >&6; } |
|
|
7225 | if test ${ac_cv_type_uid_t+y} |
|
|
7226 | then : |
|
|
7227 | printf %s "(cached) " >&6 |
|
|
7228 | else $as_nop |
|
|
7229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7230 | /* end confdefs.h. */ |
|
|
7231 | #include <sys/types.h> |
|
|
7232 | |
|
|
7233 | _ACEOF |
|
|
7234 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7235 | $EGREP "uid_t" >/dev/null 2>&1 |
|
|
7236 | then : |
|
|
7237 | ac_cv_type_uid_t=yes |
|
|
7238 | else $as_nop |
|
|
7239 | ac_cv_type_uid_t=no |
|
|
7240 | fi |
|
|
7241 | rm -rf conftest* |
|
|
7242 | |
|
|
7243 | fi |
|
|
7244 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
|
|
7245 | printf "%s\n" "$ac_cv_type_uid_t" >&6; } |
|
|
7246 | if test $ac_cv_type_uid_t = no; then |
|
|
7247 | |
|
|
7248 | printf "%s\n" "#define uid_t int" >>confdefs.h |
|
|
7249 | |
|
|
7250 | |
|
|
7251 | printf "%s\n" "#define gid_t int" >>confdefs.h |
|
|
7252 | |
|
|
7253 | fi |
|
|
7254 | |
|
|
7255 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
|
|
7256 | case $ac_cv_c_int16_t in #( |
|
|
7257 | no|yes) ;; #( |
|
|
7258 | *) |
|
|
7259 | |
|
|
7260 | printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h |
|
|
7261 | ;; |
|
|
7262 | esac |
|
|
7263 | |
|
|
7264 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
|
|
7265 | case $ac_cv_c_uint16_t in #( |
|
|
7266 | no|yes) ;; #( |
|
|
7267 | *) |
|
|
7268 | |
|
|
7269 | |
|
|
7270 | printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h |
|
|
7271 | ;; |
|
|
7272 | esac |
|
|
7273 | |
|
|
7274 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
|
|
7275 | case $ac_cv_c_int32_t in #( |
|
|
7276 | no|yes) ;; #( |
|
|
7277 | *) |
|
|
7278 | |
|
|
7279 | printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h |
|
|
7280 | ;; |
|
|
7281 | esac |
|
|
7282 | |
|
|
7283 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
|
|
7284 | case $ac_cv_c_uint32_t in #( |
|
|
7285 | no|yes) ;; #( |
|
|
7286 | *) |
|
|
7287 | |
|
|
7288 | printf "%s\n" "#define _UINT32_T 1" >>confdefs.h |
|
|
7289 | |
|
|
7290 | |
|
|
7291 | printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h |
|
|
7292 | ;; |
|
|
7293 | esac |
|
|
7294 | |
|
|
7295 | |
|
|
7296 | ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
|
|
7297 | if test "x$ac_cv_func_unsetenv" = xyes |
|
|
7298 | then : |
|
|
7299 | printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h |
|
|
7300 | |
|
|
7301 | fi |
|
|
7302 | |
|
|
7303 | |
|
|
7304 | |
|
|
7305 | |
|
|
7306 | save_LIBS=$LIBS |
|
|
7307 | save_CXXFLAGS=$CXXFLAGS |
|
|
7308 | CXXFLAGS="$CXXFLAGS $X_CFLAGS" |
|
|
7309 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
7310 | if test x$support_xim = xyes; then |
|
|
7311 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5 |
|
|
7312 | printf %s "checking for working Xlocale... " >&6; } |
|
|
7313 | if test ${rxvt_cv_func_xlocale+y} |
|
|
7314 | then : |
|
|
7315 | printf %s "(cached) " >&6 |
|
|
7316 | else $as_nop |
|
|
7317 | if test "$cross_compiling" = yes |
|
|
7318 | then : |
|
|
7319 | : |
|
|
7320 | else $as_nop |
|
|
7321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7322 | /* end confdefs.h. */ |
|
|
7323 | |
|
|
7324 | #include <X11/Xlib.h> |
|
|
7325 | #include <stdlib.h> |
|
|
7326 | int main() { |
|
|
7327 | char *p; |
|
|
7328 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
|
|
7329 | exit (XSupportsLocale() ? 0 : 1); |
|
|
7330 | else |
|
|
7331 | exit (1); |
|
|
7332 | } |
|
|
7333 | |
|
|
7334 | _ACEOF |
|
|
7335 | if ac_fn_cxx_try_run "$LINENO" |
|
|
7336 | then : |
|
|
7337 | rxvt_cv_func_xlocale=yes |
|
|
7338 | else $as_nop |
|
|
7339 | rxvt_cv_func_xlocale=no |
|
|
7340 | fi |
|
|
7341 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7342 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7343 | fi |
|
|
7344 | |
|
|
7345 | fi |
|
|
7346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5 |
|
|
7347 | printf "%s\n" "$rxvt_cv_func_xlocale" >&6; } |
|
|
7348 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
7349 | |
|
|
7350 | printf "%s\n" "#define USE_XIM 1" >>confdefs.h |
|
|
7351 | |
|
|
7352 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5 |
|
|
7353 | printf %s "checking for broken XIM callback... " >&6; } |
|
|
7354 | if test ${rxvt_cv_broken_ximcb+y} |
|
|
7355 | then : |
|
|
7356 | printf %s "(cached) " >&6 |
|
|
7357 | else $as_nop |
|
|
7358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7359 | /* end confdefs.h. */ |
|
|
7360 | |
|
|
7361 | #include <X11/Xlib.h> |
|
|
7362 | |
|
|
7363 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
7364 | |
|
|
7365 | void f() { |
|
|
7366 | XIMCallback cb; |
|
|
7367 | cb.callback = im_destroy_cb; |
|
|
7368 | } |
|
|
7369 | |
|
|
7370 | _ACEOF |
|
|
7371 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
7372 | then : |
|
|
7373 | rxvt_cv_broken_ximcb=yes |
|
|
7374 | else $as_nop |
|
|
7375 | rxvt_cv_broken_ximcb=no |
|
|
7376 | fi |
|
|
7377 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7378 | fi |
|
|
7379 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5 |
|
|
7380 | printf "%s\n" "$rxvt_cv_broken_ximcb" >&6; } |
|
|
7381 | |
|
|
7382 | if test x$rxvt_cv_broken_ximcb = xyes; then |
|
|
7383 | |
|
|
7384 | printf "%s\n" "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h |
|
|
7385 | |
|
|
7386 | fi |
|
|
7387 | fi |
|
|
7388 | fi |
|
|
7389 | |
|
|
7390 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5 |
|
|
7391 | printf %s "checking for working X setlocale... " >&6; } |
|
|
7392 | if test ${rxvt_cv_func_xsetlocale+y} |
|
|
7393 | then : |
|
|
7394 | printf %s "(cached) " >&6 |
|
|
7395 | else $as_nop |
|
|
7396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7397 | /* end confdefs.h. */ |
|
|
7398 | #define X_LOCALE 1 |
|
|
7399 | #include <X11/Xlocale.h> |
|
|
7400 | int |
|
|
7401 | main (void) |
|
|
7402 | { |
|
|
7403 | setlocale(LC_CTYPE, ""); |
|
|
7404 | ; |
|
|
7405 | return 0; |
|
|
7406 | } |
|
|
7407 | _ACEOF |
|
|
7408 | if ac_fn_cxx_try_link "$LINENO" |
|
|
7409 | then : |
|
|
7410 | rxvt_cv_func_xsetlocale=yes |
|
|
7411 | else $as_nop |
|
|
7412 | rxvt_cv_func_xsetlocale=no |
|
|
7413 | fi |
|
|
7414 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
7415 | conftest$ac_exeext conftest.$ac_ext |
|
|
7416 | fi |
|
|
7417 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5 |
|
|
7418 | printf "%s\n" "$rxvt_cv_func_xsetlocale" >&6; } |
|
|
7419 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
|
|
7420 | |
|
|
7421 | printf "%s\n" "#define HAVE_XSETLOCALE 1" >>confdefs.h |
|
|
7422 | |
|
|
7423 | fi |
|
|
7424 | LIBS=$save_LIBS |
|
|
7425 | CXXFLAGS=$save_CXXFLAGS |
|
|
7426 | |
|
|
7427 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5 |
|
|
7428 | printf %s "checking for working nl_langinfo... " >&6; } |
|
|
7429 | if test ${rxvt_cv_func_nl_langinfo+y} |
|
|
7430 | then : |
|
|
7431 | printf %s "(cached) " >&6 |
|
|
7432 | else $as_nop |
|
|
7433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7434 | /* end confdefs.h. */ |
|
|
7435 | #include <langinfo.h> |
|
|
7436 | int |
|
|
7437 | main (void) |
|
|
7438 | { |
|
|
7439 | nl_langinfo(CODESET); |
|
|
7440 | ; |
|
|
7441 | return 0; |
|
|
7442 | } |
|
|
7443 | _ACEOF |
|
|
7444 | if ac_fn_cxx_try_link "$LINENO" |
|
|
7445 | then : |
|
|
7446 | rxvt_cv_func_nl_langinfo=yes |
|
|
7447 | else $as_nop |
|
|
7448 | rxvt_cv_func_nl_langinfo=no |
|
|
7449 | fi |
|
|
7450 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
7451 | conftest$ac_exeext conftest.$ac_ext |
|
|
7452 | fi |
|
|
7453 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5 |
|
|
7454 | printf "%s\n" "$rxvt_cv_func_nl_langinfo" >&6; } |
|
|
7455 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
|
|
7456 | |
|
|
7457 | printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
|
|
7458 | |
|
|
7459 | fi |
|
|
7460 | |
|
|
7461 | support_image=no |
|
|
7462 | if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then |
|
|
7463 | support_image=yes |
|
|
7464 | fi |
|
|
7465 | if test x$support_xft = xyes || test x$support_image = xyes; then |
|
|
7466 | rxvt_have_xrender=no |
|
|
7467 | |
|
|
7468 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender (using pkg-config)" >&5 |
|
|
7469 | printf %s "checking for xrender (using pkg-config)... " >&6; } |
|
|
7470 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
|
|
7471 | XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`" |
|
|
7472 | XRENDER_LIBS="`$PKG_CONFIG --libs xrender`" |
|
|
7473 | |
|
|
7474 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
7475 | printf "%s\n" "ok" >&6; } |
|
|
7476 | |
|
|
7477 | X_LIBS="$XRENDER_LIBS $X_LIBS" |
|
|
7478 | CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS" |
|
|
7479 | rxvt_have_xrender=yes |
|
|
7480 | |
|
|
7481 | save_LIBS="$LIBS" |
|
|
7482 | LIBS="$LIBS $X_LIBS" |
|
|
7483 | ac_fn_cxx_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default" |
|
|
7484 | if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes |
|
|
7485 | then : |
|
|
7486 | |
|
|
7487 | else $as_nop |
|
|
7488 | rxvt_have_xrender=no |
|
|
7489 | fi |
|
|
7490 | |
|
|
7491 | ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat" |
|
|
7492 | if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes |
|
|
7493 | then : |
|
|
7494 | |
|
|
7495 | else $as_nop |
|
|
7496 | rxvt_have_xrender=no |
|
|
7497 | fi |
|
|
7498 | |
|
|
7499 | LIBS="$save_LIBS" |
|
|
7500 | |
|
|
7501 | else |
|
|
7502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7503 | printf "%s\n" "no" >&6; } |
|
|
7504 | : |
|
|
7505 | fi |
|
|
7506 | |
|
|
7507 | fi |
|
|
7508 | |
|
|
7509 | if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
|
|
7510 | |
|
|
7511 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft (using pkg-config)" >&5 |
|
|
7512 | printf %s "checking for fontconfig xft (using pkg-config)... " >&6; } |
|
|
7513 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then |
|
|
7514 | XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`" |
|
|
7515 | XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`" |
|
|
7516 | |
|
|
7517 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
7518 | printf "%s\n" "ok" >&6; } |
|
|
7519 | |
|
|
7520 | X_LIBS="$XFT_LIBS $X_LIBS" |
|
|
7521 | CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" |
|
|
7522 | |
|
|
7523 | else |
|
|
7524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7525 | printf "%s\n" "no" >&6; } |
|
|
7526 | |
13067 | # Extract the first word of "xft-config", so it can be a program name with args. |
7527 | # Extract the first word of "xft-config", so it can be a program name with args. |
13068 | set dummy xft-config; ac_word=$2 |
7528 | set dummy xft-config; ac_word=$2 |
13069 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7529 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13070 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7530 | printf %s "checking for $ac_word... " >&6; } |
13071 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then |
7531 | if test ${ac_cv_path_XFT_CONFIG+y} |
13072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7532 | then : |
13073 | else |
7533 | printf %s "(cached) " >&6 |
|
|
7534 | else $as_nop |
13074 | case $XFT_CONFIG in |
7535 | case $XFT_CONFIG in |
13075 | [\\/]* | ?:[\\/]*) |
7536 | [\\/]* | ?:[\\/]*) |
13076 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
7537 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
13077 | ;; |
7538 | ;; |
13078 | *) |
7539 | *) |
13079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13080 | for as_dir in $PATH |
7541 | for as_dir in $PATH |
13081 | do |
7542 | do |
13082 | IFS=$as_save_IFS |
7543 | IFS=$as_save_IFS |
13083 | test -z "$as_dir" && as_dir=. |
7544 | case $as_dir in #((( |
|
|
7545 | '') as_dir=./ ;; |
|
|
7546 | */) ;; |
|
|
7547 | *) as_dir=$as_dir/ ;; |
|
|
7548 | esac |
13084 | for ac_exec_ext in '' $ac_executable_extensions; do |
7549 | for ac_exec_ext in '' $ac_executable_extensions; do |
13085 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7550 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
13086 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7551 | ac_cv_path_XFT_CONFIG="$as_dir$ac_word$ac_exec_ext" |
13087 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7552 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
13088 | break 2 |
7553 | break 2 |
13089 | fi |
7554 | fi |
13090 | done |
7555 | done |
13091 | done |
7556 | done |
13092 | IFS=$as_save_IFS |
7557 | IFS=$as_save_IFS |
13093 | |
7558 | |
13094 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
7559 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
13095 | ;; |
7560 | ;; |
13096 | esac |
7561 | esac |
13097 | fi |
7562 | fi |
13098 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
7563 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
13099 | if test -n "$XFT_CONFIG"; then |
7564 | if test -n "$XFT_CONFIG"; then |
13100 | { echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 |
7565 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 |
13101 | echo "${ECHO_T}$XFT_CONFIG" >&6; } |
7566 | printf "%s\n" "$XFT_CONFIG" >&6; } |
13102 | else |
7567 | else |
13103 | { echo "$as_me:$LINENO: result: no" >&5 |
7568 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13104 | echo "${ECHO_T}no" >&6; } |
7569 | printf "%s\n" "no" >&6; } |
13105 | fi |
7570 | fi |
13106 | |
7571 | |
13107 | |
7572 | |
13108 | if test $XFT_CONFIG != no; then |
7573 | if test $XFT_CONFIG != no; then |
13109 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
7574 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
13110 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
7575 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
13111 | fi |
7576 | fi |
13112 | fi |
|
|
13113 | |
7577 | |
|
|
7578 | fi |
13114 | |
7579 | |
13115 | for ac_header in X11/Xft/Xft.h |
7580 | |
13116 | do |
7581 | save_LIBS="$LIBS" |
|
|
7582 | LIBS="$LIBS $X_LIBS" |
|
|
7583 | for ac_header in X11/Xft/Xft.h fontconfig/fontconfig.h |
|
|
7584 | do : |
13117 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7585 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` |
13118 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7586 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
13119 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7587 | if eval test \"x\$"$as_ac_Header"\" = x"yes" |
13120 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
7588 | then : |
13121 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7589 | cat >>confdefs.h <<_ACEOF |
13122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7590 | #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 |
13123 | fi |
|
|
13124 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
13125 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
13126 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
13127 | else |
|
|
13128 | # Is the header compilable? |
|
|
13129 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
13130 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
13131 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13132 | /* confdefs.h. */ |
|
|
13133 | _ACEOF |
7591 | _ACEOF |
|
|
7592 | |
|
|
7593 | else $as_nop |
|
|
7594 | support_xft=no |
|
|
7595 | fi |
|
|
7596 | |
|
|
7597 | done |
|
|
7598 | |
|
|
7599 | for ac_func in XftDrawString32 FcPatternGet |
|
|
7600 | do : |
|
|
7601 | as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
7602 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
7603 | if eval test \"x\$"$as_ac_var"\" = x"yes" |
|
|
7604 | then : |
|
|
7605 | cat >>confdefs.h <<_ACEOF |
|
|
7606 | #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
7607 | _ACEOF |
|
|
7608 | |
|
|
7609 | else $as_nop |
|
|
7610 | support_xft=no |
|
|
7611 | fi |
|
|
7612 | |
|
|
7613 | done |
|
|
7614 | LIBS="$save_LIBS" |
|
|
7615 | |
|
|
7616 | if test x$support_xft = xyes; then |
|
|
7617 | |
|
|
7618 | printf "%s\n" "#define XFT 1" >>confdefs.h |
|
|
7619 | |
|
|
7620 | fi |
|
|
7621 | fi |
|
|
7622 | |
|
|
7623 | if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then |
|
|
7624 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Render >= 0.11" >&5 |
|
|
7625 | printf %s "checking for Render >= 0.11... " >&6; } |
13134 | cat confdefs.h >>conftest.$ac_ext |
7626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13135 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13136 | /* end confdefs.h. */ |
7627 | /* end confdefs.h. */ |
13137 | $ac_includes_default |
|
|
13138 | #include <$ac_header> |
|
|
13139 | _ACEOF |
|
|
13140 | rm -f conftest.$ac_objext |
|
|
13141 | if { (ac_try="$ac_compile" |
|
|
13142 | case "(($ac_try" in |
|
|
13143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
13144 | *) ac_try_echo=$ac_try;; |
|
|
13145 | esac |
|
|
13146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
13147 | (eval "$ac_compile") 2>conftest.er1 |
|
|
13148 | ac_status=$? |
|
|
13149 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13150 | rm -f conftest.er1 |
|
|
13151 | cat conftest.err >&5 |
|
|
13152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13153 | (exit $ac_status); } && { |
|
|
13154 | test -z "$ac_cxx_werror_flag" || |
|
|
13155 | test ! -s conftest.err |
|
|
13156 | } && test -s conftest.$ac_objext; then |
|
|
13157 | ac_header_compiler=yes |
|
|
13158 | else |
|
|
13159 | echo "$as_me: failed program was:" >&5 |
|
|
13160 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13161 | |
7628 | |
13162 | ac_header_compiler=no |
7629 | #include <X11/extensions/Xrender.h> |
13163 | fi |
7630 | #if RENDER_MAJOR == 0 && RENDER_MINOR <= 10 |
13164 | |
7631 | error |
13165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13166 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
13167 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
13168 | |
|
|
13169 | # Is the header present? |
|
|
13170 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
13171 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
13172 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13173 | /* confdefs.h. */ |
|
|
13174 | _ACEOF |
|
|
13175 | cat confdefs.h >>conftest.$ac_ext |
|
|
13176 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13177 | /* end confdefs.h. */ |
|
|
13178 | #include <$ac_header> |
|
|
13179 | _ACEOF |
|
|
13180 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
13181 | case "(($ac_try" in |
|
|
13182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
13183 | *) ac_try_echo=$ac_try;; |
|
|
13184 | esac |
|
|
13185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
13186 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
13187 | ac_status=$? |
|
|
13188 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13189 | rm -f conftest.er1 |
|
|
13190 | cat conftest.err >&5 |
|
|
13191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13192 | (exit $ac_status); } >/dev/null && { |
|
|
13193 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
13194 | test ! -s conftest.err |
|
|
13195 | }; then |
|
|
13196 | ac_header_preproc=yes |
|
|
13197 | else |
|
|
13198 | echo "$as_me: failed program was:" >&5 |
|
|
13199 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13200 | |
|
|
13201 | ac_header_preproc=no |
|
|
13202 | fi |
|
|
13203 | |
|
|
13204 | rm -f conftest.err conftest.$ac_ext |
|
|
13205 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
13206 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
13207 | |
|
|
13208 | # So? What about this header? |
|
|
13209 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
13210 | yes:no: ) |
|
|
13211 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
13212 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
13213 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
13214 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
13215 | ac_header_preproc=yes |
|
|
13216 | ;; |
|
|
13217 | no:yes:* ) |
|
|
13218 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
13219 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
13220 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
13221 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
13222 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
13223 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
13224 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
13225 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
13226 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
13227 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
13228 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
13229 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
13230 | |
|
|
13231 | ;; |
|
|
13232 | esac |
|
|
13233 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
13234 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
13235 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
13236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13237 | else |
|
|
13238 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
13239 | fi |
|
|
13240 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
13241 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
13242 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
13243 | |
|
|
13244 | fi |
|
|
13245 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
13246 | cat >>confdefs.h <<_ACEOF |
|
|
13247 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
13248 | _ACEOF |
|
|
13249 | |
|
|
13250 | else |
|
|
13251 | support_xft=no |
|
|
13252 | fi |
|
|
13253 | |
|
|
13254 | done |
|
|
13255 | |
|
|
13256 | |
|
|
13257 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
|
|
13258 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
|
|
13259 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
|
|
13260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13261 | else |
|
|
13262 | ac_check_lib_save_LIBS=$LIBS |
|
|
13263 | LIBS="-lXft $LIBS" |
|
|
13264 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13265 | /* confdefs.h. */ |
|
|
13266 | _ACEOF |
|
|
13267 | cat confdefs.h >>conftest.$ac_ext |
|
|
13268 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13269 | /* end confdefs.h. */ |
|
|
13270 | |
|
|
13271 | /* Override any GCC internal prototype to avoid an error. |
|
|
13272 | Use char because int might match the return type of a GCC |
|
|
13273 | builtin and then its argument prototype would still apply. */ |
|
|
13274 | #ifdef __cplusplus |
|
|
13275 | extern "C" |
|
|
13276 | #endif |
7632 | #endif |
13277 | char XftDrawString32 (); |
7633 | |
13278 | int |
7634 | int |
13279 | main () |
7635 | main (void) |
13280 | { |
7636 | { |
13281 | return XftDrawString32 (); |
7637 | |
13282 | ; |
7638 | ; |
13283 | return 0; |
7639 | return 0; |
13284 | } |
7640 | } |
13285 | _ACEOF |
7641 | _ACEOF |
13286 | rm -f conftest.$ac_objext conftest$ac_exeext |
7642 | if ac_fn_cxx_try_compile "$LINENO" |
13287 | if { (ac_try="$ac_link" |
7643 | then : |
13288 | case "(($ac_try" in |
|
|
13289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
13290 | *) ac_try_echo=$ac_try;; |
|
|
13291 | esac |
|
|
13292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
13293 | (eval "$ac_link") 2>conftest.er1 |
|
|
13294 | ac_status=$? |
|
|
13295 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13296 | rm -f conftest.er1 |
|
|
13297 | cat conftest.err >&5 |
|
|
13298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13299 | (exit $ac_status); } && { |
|
|
13300 | test -z "$ac_cxx_werror_flag" || |
|
|
13301 | test ! -s conftest.err |
|
|
13302 | } && test -s conftest$ac_exeext && |
|
|
13303 | $as_test_x conftest$ac_exeext; then |
|
|
13304 | ac_cv_lib_Xft_XftDrawString32=yes |
|
|
13305 | else |
|
|
13306 | echo "$as_me: failed program was:" >&5 |
|
|
13307 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13308 | |
7644 | |
13309 | ac_cv_lib_Xft_XftDrawString32=no |
7645 | else $as_nop |
13310 | fi |
|
|
13311 | |
|
|
13312 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
13313 | conftest$ac_exeext conftest.$ac_ext |
|
|
13314 | LIBS=$ac_check_lib_save_LIBS |
|
|
13315 | fi |
|
|
13316 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
|
|
13317 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
|
|
13318 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
|
|
13319 | cat >>confdefs.h <<_ACEOF |
|
|
13320 | #define HAVE_LIBXFT 1 |
|
|
13321 | _ACEOF |
|
|
13322 | |
|
|
13323 | LIBS="-lXft $LIBS" |
|
|
13324 | |
|
|
13325 | else |
|
|
13326 | support_xft=no |
7646 | support_image=no |
13327 | fi |
7647 | fi |
13328 | |
7648 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
13329 | |
|
|
13330 | if test x$support_xft = xyes; then |
7649 | if test x$support_image = xyes; then |
|
|
7650 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
7651 | printf "%s\n" "ok" >&6; } |
|
|
7652 | LIBS="$LIBS -lm" |
13331 | |
7653 | |
13332 | cat >>confdefs.h <<\_ACEOF |
7654 | printf "%s\n" "#define XRENDER 1" >>confdefs.h |
13333 | #define XFT 1 |
|
|
13334 | _ACEOF |
|
|
13335 | |
7655 | |
|
|
7656 | |
|
|
7657 | if test x$support_inheritpixmap = xyes; then |
|
|
7658 | |
|
|
7659 | printf "%s\n" "#define ENABLE_TRANSPARENCY 1" >>confdefs.h |
|
|
7660 | |
13336 | fi |
7661 | fi |
|
|
7662 | else |
|
|
7663 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7664 | printf "%s\n" "no" >&6; } |
|
|
7665 | fi |
13337 | fi |
7666 | fi |
|
|
7667 | |
13338 | if test x$support_styles = xyes; then |
7668 | if test x$support_styles = xyes; then |
13339 | |
7669 | |
13340 | cat >>confdefs.h <<\_ACEOF |
7670 | printf "%s\n" "#define ENABLE_STYLES 1" >>confdefs.h |
13341 | #define ENABLE_STYLES 1 |
|
|
13342 | _ACEOF |
|
|
13343 | |
7671 | |
13344 | fi |
7672 | fi |
13345 | if test x$support_iso14755 = xyes; then |
7673 | if test x$support_iso14755 = xyes; then |
13346 | |
7674 | |
13347 | cat >>confdefs.h <<\_ACEOF |
7675 | printf "%s\n" "#define ISO_14755 1" >>confdefs.h |
13348 | #define ISO_14755 1 |
|
|
13349 | _ACEOF |
|
|
13350 | |
7676 | |
13351 | fi |
7677 | fi |
13352 | if test x$support_8bitctrls = xyes; then |
7678 | if test x$support_8bitctrls = xyes; then |
13353 | |
7679 | |
13354 | cat >>confdefs.h <<\_ACEOF |
7680 | printf "%s\n" "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h |
13355 | #define EIGHT_BIT_CONTROLS 1 |
|
|
13356 | _ACEOF |
|
|
13357 | |
7681 | |
13358 | fi |
7682 | fi |
13359 | if test x$support_fading = xyes; then |
7683 | if test x$support_fading = xyes; then |
13360 | |
7684 | |
13361 | cat >>confdefs.h <<\_ACEOF |
7685 | printf "%s\n" "#define OFF_FOCUS_FADING 1" >>confdefs.h |
13362 | #define OFF_FOCUS_FADING 1 |
|
|
13363 | _ACEOF |
|
|
13364 | |
|
|
13365 | fi |
|
|
13366 | if test x$support_tinting = xyes; then |
|
|
13367 | |
|
|
13368 | cat >>confdefs.h <<\_ACEOF |
|
|
13369 | #define TINTING 1 |
|
|
13370 | _ACEOF |
|
|
13371 | |
|
|
13372 | fi |
|
|
13373 | if test x$support_inheritpixmap = xyes; then |
|
|
13374 | |
|
|
13375 | cat >>confdefs.h <<\_ACEOF |
|
|
13376 | #define TRANSPARENT 1 |
|
|
13377 | _ACEOF |
|
|
13378 | |
7686 | |
13379 | fi |
7687 | fi |
13380 | if test x$support_keepscrolling = xno; then |
7688 | if test x$support_keepscrolling = xno; then |
13381 | |
7689 | |
13382 | cat >>confdefs.h <<\_ACEOF |
|
|
13383 | #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 |
7690 | printf "%s\n" "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h |
13384 | _ACEOF |
|
|
13385 | |
7691 | |
13386 | fi |
7692 | fi |
13387 | if test x$support_selectionscrolling = xyes; then |
7693 | if test x$support_selectionscrolling = xyes; then |
13388 | |
7694 | |
13389 | cat >>confdefs.h <<\_ACEOF |
7695 | printf "%s\n" "#define SELECTION_SCROLLING 1" >>confdefs.h |
13390 | #define SELECTION_SCROLLING 1 |
|
|
13391 | _ACEOF |
|
|
13392 | |
7696 | |
13393 | fi |
7697 | fi |
13394 | if test x$support_frills = xyes; then |
7698 | if test x$support_frills = xyes; then |
13395 | |
7699 | |
13396 | cat >>confdefs.h <<\_ACEOF |
7700 | printf "%s\n" "#define ENABLE_FRILLS 1" >>confdefs.h |
13397 | #define ENABLE_FRILLS 1 |
|
|
13398 | _ACEOF |
|
|
13399 | |
7701 | |
13400 | fi |
7702 | fi |
13401 | if test x$support_mousewheel = xyes; then |
7703 | if test x$support_mousewheel = xyes; then |
13402 | |
7704 | |
13403 | cat >>confdefs.h <<\_ACEOF |
7705 | printf "%s\n" "#define MOUSE_WHEEL 1" >>confdefs.h |
13404 | #define MOUSE_WHEEL 1 |
|
|
13405 | _ACEOF |
|
|
13406 | |
7706 | |
13407 | fi |
7707 | fi |
13408 | if test x$support_mouseslipwheel = xyes; then |
7708 | if test x$support_mouseslipwheel = xyes; then |
13409 | |
7709 | |
13410 | cat >>confdefs.h <<\_ACEOF |
7710 | printf "%s\n" "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h |
13411 | #define MOUSE_SLIP_WHEELING 1 |
|
|
13412 | _ACEOF |
|
|
13413 | |
7711 | |
13414 | fi |
7712 | fi |
13415 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
|
|
13416 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
13417 | |
7713 | |
13418 | cat >>confdefs.h <<\_ACEOF |
7714 | scrolltypes=plain |
13419 | #define USE_XIM 1 |
|
|
13420 | _ACEOF |
|
|
13421 | |
7715 | |
13422 | fi |
7716 | printf "%s\n" "#define PLAIN_SCROLLBAR 1" >>confdefs.h |
13423 | fi |
|
|
13424 | if test x$support_xpm = xyes; then |
|
|
13425 | |
7717 | |
13426 | cat >>confdefs.h <<\_ACEOF |
|
|
13427 | #define XPM_BACKGROUND 1 |
|
|
13428 | _ACEOF |
|
|
13429 | |
7718 | |
13430 | fi |
|
|
13431 | if test x$support_scroll_rxvt = xyes; then |
7719 | if test x$support_scroll_rxvt = xyes; then |
13432 | |
7720 | |
13433 | cat >>confdefs.h <<\_ACEOF |
7721 | printf "%s\n" "#define RXVT_SCROLLBAR 1" >>confdefs.h |
13434 | #define RXVT_SCROLLBAR 1 |
|
|
13435 | _ACEOF |
|
|
13436 | |
7722 | |
13437 | scrolltypes="rxvt" |
7723 | scrolltypes="$scrolltypes rxvt" |
13438 | fi |
7724 | fi |
13439 | if test x$support_scroll_next = xyes; then |
7725 | if test x$support_scroll_next = xyes; then |
13440 | |
7726 | |
13441 | cat >>confdefs.h <<\_ACEOF |
7727 | printf "%s\n" "#define NEXT_SCROLLBAR 1" >>confdefs.h |
13442 | #define NEXT_SCROLLBAR 1 |
|
|
13443 | _ACEOF |
|
|
13444 | |
7728 | |
13445 | scrolltypes="$scrolltypes next" |
7729 | scrolltypes="$scrolltypes next" |
13446 | fi |
7730 | fi |
13447 | if test x$support_scroll_xterm = xyes; then |
7731 | if test x$support_scroll_xterm = xyes; then |
13448 | |
7732 | |
13449 | cat >>confdefs.h <<\_ACEOF |
7733 | printf "%s\n" "#define XTERM_SCROLLBAR 1" >>confdefs.h |
13450 | #define XTERM_SCROLLBAR 1 |
|
|
13451 | _ACEOF |
|
|
13452 | |
7734 | |
13453 | scrolltypes="$scrolltypes xterm" |
7735 | scrolltypes="$scrolltypes xterm" |
13454 | fi |
7736 | fi |
13455 | if test x$support_scroll_plain = xyes; then |
|
|
13456 | |
|
|
13457 | cat >>confdefs.h <<\_ACEOF |
|
|
13458 | #define PLAIN_SCROLLBAR 1 |
|
|
13459 | _ACEOF |
|
|
13460 | |
|
|
13461 | scrolltypes="$scrolltypes plain" |
|
|
13462 | fi |
|
|
13463 | if test x$support_pointer_blank = xyes; then |
7737 | if test x$support_pointer_blank = xyes; then |
13464 | |
7738 | |
13465 | cat >>confdefs.h <<\_ACEOF |
7739 | printf "%s\n" "#define POINTER_BLANK 1" >>confdefs.h |
13466 | #define POINTER_BLANK 1 |
|
|
13467 | _ACEOF |
|
|
13468 | |
7740 | |
13469 | fi |
7741 | fi |
13470 | if test x$support_text_blink = xyes; then |
7742 | if test x$support_text_blink = xyes; then |
13471 | |
7743 | |
13472 | cat >>confdefs.h <<\_ACEOF |
7744 | printf "%s\n" "#define TEXT_BLINK 1" >>confdefs.h |
13473 | #define TEXT_BLINK 1 |
|
|
13474 | _ACEOF |
|
|
13475 | |
7745 | |
13476 | fi |
7746 | fi |
13477 | if test x$support_unicode3 = xyes; then |
7747 | if test x$support_unicode3 = xyes; then |
13478 | |
7748 | |
13479 | cat >>confdefs.h <<\_ACEOF |
7749 | printf "%s\n" "#define UNICODE_3 1" >>confdefs.h |
13480 | #define UNICODE_3 1 |
|
|
13481 | _ACEOF |
|
|
13482 | |
7750 | |
13483 | fi |
7751 | fi |
13484 | if test x$support_combining = xyes; then |
7752 | if test x$support_combining = xyes; then |
13485 | |
7753 | |
13486 | cat >>confdefs.h <<\_ACEOF |
7754 | printf "%s\n" "#define ENABLE_COMBINING 1" >>confdefs.h |
13487 | #define ENABLE_COMBINING 1 |
|
|
13488 | _ACEOF |
|
|
13489 | |
7755 | |
13490 | fi |
7756 | fi |
13491 | if test x$codesets = xall; then |
7757 | if test x$codesets = xall; then |
13492 | codesets=jp,jp-ext,kr,zh,zh-ext |
7758 | codesets=jp,jp-ext,kr,zh,zh-ext |
13493 | fi |
7759 | fi |
13494 | |
7760 | |
13495 | cat >>confdefs.h <<\_ACEOF |
7761 | printf "%s\n" "#define ENCODING_EU 1" >>confdefs.h |
13496 | #define ENCODING_EU 1 |
|
|
13497 | _ACEOF |
|
|
13498 | |
7762 | |
13499 | |
7763 | |
13500 | cat >>confdefs.h <<\_ACEOF |
7764 | printf "%s\n" "#define ENCODING_VN 1" >>confdefs.h |
13501 | #define ENCODING_VN 1 |
|
|
13502 | _ACEOF |
|
|
13503 | |
7765 | |
13504 | for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
7766 | for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
13505 | case "$codeset" in |
7767 | case "$codeset" in |
13506 | JP ) |
7768 | JP ) |
13507 | cat >>confdefs.h <<\_ACEOF |
7769 | printf "%s\n" "#define ENCODING_JP 1" >>confdefs.h |
13508 | #define ENCODING_JP 1 |
|
|
13509 | _ACEOF |
|
|
13510 | ;; |
7770 | ;; |
13511 | JP_EXT ) |
7771 | JP_EXT ) |
13512 | cat >>confdefs.h <<\_ACEOF |
7772 | printf "%s\n" "#define ENCODING_JP_EXT 1" >>confdefs.h |
13513 | #define ENCODING_JP_EXT 1 |
|
|
13514 | _ACEOF |
|
|
13515 | ;; |
7773 | ;; |
13516 | KR ) |
7774 | KR ) |
13517 | cat >>confdefs.h <<\_ACEOF |
7775 | printf "%s\n" "#define ENCODING_KR 1" >>confdefs.h |
13518 | #define ENCODING_KR 1 |
|
|
13519 | _ACEOF |
|
|
13520 | ;; |
7776 | ;; |
13521 | ZH ) |
7777 | ZH ) |
13522 | cat >>confdefs.h <<\_ACEOF |
7778 | printf "%s\n" "#define ENCODING_ZH 1" >>confdefs.h |
13523 | #define ENCODING_ZH 1 |
|
|
13524 | _ACEOF |
|
|
13525 | ;; |
7779 | ;; |
13526 | ZH_EXT ) |
7780 | ZH_EXT ) |
13527 | cat >>confdefs.h <<\_ACEOF |
7781 | printf "%s\n" "#define ENCODING_ZH_EXT 1" >>confdefs.h |
13528 | #define ENCODING_ZH_EXT 1 |
|
|
13529 | _ACEOF |
|
|
13530 | ;; |
7782 | ;; |
13531 | esac |
7783 | esac |
13532 | done |
7784 | done |
13533 | |
7785 | |
13534 | IF_PERL=\# |
7786 | IF_PERL=\# |
13535 | if test x$support_perl = xyes; then |
7787 | if test x$support_perl = xyes; then |
13536 | # Extract the first word of "perl5", so it can be a program name with args. |
7788 | # Extract the first word of "perl5", so it can be a program name with args. |
13537 | set dummy perl5; ac_word=$2 |
7789 | set dummy perl5; ac_word=$2 |
13538 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7791 | printf %s "checking for $ac_word... " >&6; } |
13540 | if test "${ac_cv_path_PERL+set}" = set; then |
7792 | if test ${ac_cv_path_PERL+y} |
13541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7793 | then : |
13542 | else |
7794 | printf %s "(cached) " >&6 |
|
|
7795 | else $as_nop |
13543 | case $PERL in |
7796 | case $PERL in |
13544 | [\\/]* | ?:[\\/]*) |
7797 | [\\/]* | ?:[\\/]*) |
13545 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
7798 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
13546 | ;; |
7799 | ;; |
13547 | *) |
7800 | *) |
13548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13549 | for as_dir in $PATH |
7802 | for as_dir in $PATH |
13550 | do |
7803 | do |
13551 | IFS=$as_save_IFS |
7804 | IFS=$as_save_IFS |
13552 | test -z "$as_dir" && as_dir=. |
7805 | case $as_dir in #((( |
|
|
7806 | '') as_dir=./ ;; |
|
|
7807 | */) ;; |
|
|
7808 | *) as_dir=$as_dir/ ;; |
|
|
7809 | esac |
13553 | for ac_exec_ext in '' $ac_executable_extensions; do |
7810 | for ac_exec_ext in '' $ac_executable_extensions; do |
13554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7811 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
13555 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
7812 | ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" |
13556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7813 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
13557 | break 2 |
7814 | break 2 |
13558 | fi |
7815 | fi |
13559 | done |
7816 | done |
13560 | done |
7817 | done |
13561 | IFS=$as_save_IFS |
7818 | IFS=$as_save_IFS |
13562 | |
7819 | |
|
|
7820 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
13563 | ;; |
7821 | ;; |
13564 | esac |
7822 | esac |
13565 | fi |
7823 | fi |
13566 | PERL=$ac_cv_path_PERL |
7824 | PERL=$ac_cv_path_PERL |
13567 | if test -n "$PERL"; then |
7825 | if test -n "$PERL"; then |
13568 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
7826 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
13569 | echo "${ECHO_T}$PERL" >&6; } |
7827 | printf "%s\n" "$PERL" >&6; } |
13570 | else |
7828 | else |
13571 | { echo "$as_me:$LINENO: result: no" >&5 |
7829 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13572 | echo "${ECHO_T}no" >&6; } |
7830 | printf "%s\n" "no" >&6; } |
13573 | fi |
7831 | fi |
13574 | |
7832 | |
13575 | |
7833 | |
13576 | # Extract the first word of "perl", so it can be a program name with args. |
7834 | |
13577 | set dummy perl; ac_word=$2 |
7835 | |
13578 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xext (using pkg-config)" >&5 |
13579 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7837 | printf %s "checking for xext (using pkg-config)... " >&6; } |
13580 | if test "${ac_cv_path_PERL+set}" = set; then |
7838 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xext; then |
13581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7839 | XEXT_CFLAGS="`$PKG_CONFIG --cflags xext`" |
|
|
7840 | XEXT_LIBS="`$PKG_CONFIG --libs xext`" |
|
|
7841 | |
|
|
7842 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
7843 | printf "%s\n" "ok" >&6; } |
|
|
7844 | : |
13582 | else |
7845 | else |
13583 | case $PERL in |
7846 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13584 | [\\/]* | ?:[\\/]*) |
7847 | printf "%s\n" "no" >&6; } |
13585 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
13586 | ;; |
|
|
13587 | *) |
|
|
13588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
13589 | for as_dir in $PATH |
|
|
13590 | do |
|
|
13591 | IFS=$as_save_IFS |
|
|
13592 | test -z "$as_dir" && as_dir=. |
|
|
13593 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
13594 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
13595 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
13596 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
13597 | break 2 |
|
|
13598 | fi |
|
|
13599 | done |
|
|
13600 | done |
|
|
13601 | IFS=$as_save_IFS |
|
|
13602 | |
7848 | |
13603 | ;; |
7849 | as_fn_error $? "unable to find xext, required for perl" "$LINENO" 5 |
13604 | esac |
|
|
13605 | fi |
|
|
13606 | PERL=$ac_cv_path_PERL |
|
|
13607 | if test -n "$PERL"; then |
|
|
13608 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
|
|
13609 | echo "${ECHO_T}$PERL" >&6; } |
|
|
13610 | else |
|
|
13611 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
13612 | echo "${ECHO_T}no" >&6; } |
|
|
13613 | fi |
|
|
13614 | |
7850 | |
|
|
7851 | fi |
13615 | |
7852 | |
13616 | |
7853 | |
|
|
7854 | X_LIBS="$XEXT_LIBS $X_LIBS" |
|
|
7855 | CPPFLAGS="$CPPFLAGS $XEXT_CFLAGS" |
|
|
7856 | |
13617 | { echo "$as_me:$LINENO: checking for $PERL suitability" >&5 |
7857 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5 |
13618 | echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6; } |
7858 | printf %s "checking for $PERL suitability... " >&6; } |
13619 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
7859 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
13620 | |
7860 | |
13621 | save_CXXFLAGS="$CXXFLAGS" |
7861 | save_CXXFLAGS="$CXXFLAGS" |
13622 | save_LIBS="$LIBS" |
7862 | save_LIBS="$LIBS" |
13623 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
7863 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
13624 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
7864 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
13625 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13626 | /* confdefs.h. */ |
|
|
13627 | _ACEOF |
|
|
13628 | cat confdefs.h >>conftest.$ac_ext |
7865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13629 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13630 | /* end confdefs.h. */ |
7866 | /* end confdefs.h. */ |
13631 | |
7867 | |
13632 | #include <EXTERN.h> |
7868 | #include <EXTERN.h> |
13633 | #include <perl.h> |
7869 | #include <perl.h> |
13634 | #include <XSUB.h> |
7870 | #include <XSUB.h> |
13635 | |
7871 | |
13636 | int |
7872 | int |
13637 | main () |
7873 | main (void) |
13638 | { |
7874 | { |
13639 | |
7875 | |
13640 | PerlInterpreter *perl = perl_alloc (); |
7876 | PerlInterpreter *perl = perl_alloc (); |
13641 | |
7877 | |
13642 | ; |
7878 | ; |
13643 | return 0; |
7879 | return 0; |
13644 | } |
7880 | } |
13645 | _ACEOF |
7881 | _ACEOF |
13646 | rm -f conftest.$ac_objext conftest$ac_exeext |
7882 | if ac_fn_cxx_try_link "$LINENO" |
13647 | if { (ac_try="$ac_link" |
7883 | then : |
13648 | case "(($ac_try" in |
|
|
13649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
13650 | *) ac_try_echo=$ac_try;; |
|
|
13651 | esac |
|
|
13652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
13653 | (eval "$ac_link") 2>conftest.er1 |
|
|
13654 | ac_status=$? |
|
|
13655 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13656 | rm -f conftest.er1 |
|
|
13657 | cat conftest.err >&5 |
|
|
13658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13659 | (exit $ac_status); } && { |
|
|
13660 | test -z "$ac_cxx_werror_flag" || |
|
|
13661 | test ! -s conftest.err |
|
|
13662 | } && test -s conftest$ac_exeext && |
|
|
13663 | $as_test_x conftest$ac_exeext; then |
|
|
13664 | rxvt_perl_link=yes |
7884 | rxvt_perl_link=yes |
13665 | else |
7885 | else $as_nop |
13666 | echo "$as_me: failed program was:" >&5 |
|
|
13667 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13668 | |
|
|
13669 | rxvt_perl_link=no |
7886 | rxvt_perl_link=no |
13670 | fi |
7887 | fi |
13671 | |
|
|
13672 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7888 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
13673 | conftest$ac_exeext conftest.$ac_ext |
7889 | conftest$ac_exeext conftest.$ac_ext |
13674 | CXXFLAGS="$save_CXXFLAGS" |
7890 | CXXFLAGS="$save_CXXFLAGS" |
13675 | LIBS="$save_LIBS" |
7891 | LIBS="$save_LIBS" |
13676 | |
7892 | |
13677 | if test x$rxvt_perl_link = xyes; then |
7893 | if test x$rxvt_perl_link = xyes; then |
13678 | { echo "$as_me:$LINENO: result: ok" >&5 |
7894 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
13679 | echo "${ECHO_T}ok" >&6; } |
7895 | printf "%s\n" "ok" >&6; } |
13680 | |
7896 | |
13681 | cat >>confdefs.h <<\_ACEOF |
7897 | printf "%s\n" "#define ENABLE_PERL 1" >>confdefs.h |
13682 | #define ENABLE_PERL 1 |
|
|
13683 | _ACEOF |
|
|
13684 | |
7898 | |
13685 | IF_PERL= |
7899 | IF_PERL= |
13686 | PERL_O=rxvtperl.o |
7900 | PERL_O=rxvtperl.o |
13687 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
7901 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
13688 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
7902 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
13689 | PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
7903 | PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
13690 | else |
7904 | else |
13691 | { { echo "$as_me:$LINENO: error: no, unable to link" >&5 |
7905 | as_fn_error $? "no, unable to link" "$LINENO" 5 |
13692 | echo "$as_me: error: no, unable to link" >&2;} |
|
|
13693 | { (exit 1); exit 1; }; } |
|
|
13694 | fi |
7906 | fi |
13695 | else |
7907 | else |
13696 | { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 |
7908 | as_fn_error $? "no working perl found, or perl not version >= 5.8" "$LINENO" 5 |
13697 | echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;} |
|
|
13698 | { (exit 1); exit 1; }; } |
|
|
13699 | fi |
7909 | fi |
13700 | fi |
7910 | fi |
13701 | |
7911 | |
13702 | |
7912 | |
13703 | |
7913 | |
13704 | |
7914 | |
13705 | |
7915 | |
13706 | |
7916 | |
13707 | |
7917 | |
13708 | if test x$support_perl = xyes; then |
|
|
13709 | support_frills=yes |
|
|
13710 | fi |
|
|
13711 | |
7918 | |
13712 | |
|
|
13713 | |
|
|
13714 | |
|
|
13715 | |
|
|
13716 | |
|
|
13717 | |
|
|
13718 | |
|
|
13719 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
13720 | DLIB=`echo $DLIB | sed "$R_TRANSLATE"` |
|
|
13721 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
13722 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
|
|
13723 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
|
|
13724 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
|
|
13725 | fi |
|
|
13726 | |
|
|
13727 | |
|
|
13728 | |
|
|
13729 | |
|
|
13730 | |
|
|
13731 | test "$program_prefix" != NONE && |
|
|
13732 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
|
|
13733 | # Use a double $ so make ignores it. |
|
|
13734 | test "$program_suffix" != NONE && |
|
|
13735 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
|
|
13736 | # Double any \ or $. echo might interpret backslashes. |
|
|
13737 | # By default was `s,x,x', remove it if useless. |
|
|
13738 | cat <<\_ACEOF >conftest.sed |
|
|
13739 | s/[\\$]/&&/g;s/;s,x,x,$// |
|
|
13740 | _ACEOF |
|
|
13741 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
|
|
13742 | rm -f conftest.sed |
|
|
13743 | |
|
|
13744 | |
|
|
13745 | |
|
|
13746 | |
|
|
13747 | |
|
|
13748 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13749 | include_stdint_h="#include <stdint.h>" |
|
|
13750 | else |
|
|
13751 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13752 | fi |
|
|
13753 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13754 | include_stdarg_h="#include <cstdarg>" |
|
|
13755 | else |
|
|
13756 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13757 | fi |
|
|
13758 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13759 | include_stdlib_h="#include <cstdlib>" |
|
|
13760 | else |
|
|
13761 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13762 | fi |
|
|
13763 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13764 | include_unistd_h="#include <unistd.h>" |
|
|
13765 | else |
|
|
13766 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13767 | fi |
|
|
13768 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13769 | include_string_h="#include <cstring>" |
|
|
13770 | else |
|
|
13771 | include_string_h="/* #include <cstring> */" |
|
|
13772 | fi |
|
|
13773 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13774 | include_fcntl_h="#include <fcntl.h>" |
|
|
13775 | else |
|
|
13776 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13777 | fi |
|
|
13778 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13779 | include_util_h="#include <util.h>" |
|
|
13780 | else |
|
|
13781 | include_util_h="/* #include <util.h> */" |
|
|
13782 | fi |
|
|
13783 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13784 | include_assert_h="#include <assert.h>" |
|
|
13785 | else |
|
|
13786 | include_assert_h="/* #include <assert.h> */" |
|
|
13787 | fi |
|
|
13788 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13789 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13790 | else |
|
|
13791 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13792 | fi |
|
|
13793 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13794 | include_sys_select_h="#include <sys/select.h>" |
|
|
13795 | else |
|
|
13796 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13797 | fi |
|
|
13798 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13799 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13800 | else |
|
|
13801 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13802 | fi |
|
|
13803 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13804 | include_sys_time_h="#include <sys/time.h>" |
|
|
13805 | else |
|
|
13806 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13807 | fi |
|
|
13808 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13809 | include_time_h="#include <time.h>" |
|
|
13810 | else |
|
|
13811 | include_time_h="/* #include <time.h> */" |
|
|
13812 | fi |
|
|
13813 | |
|
|
13814 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
7919 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
13815 | |
7920 | |
13816 | cat >confcache <<\_ACEOF |
7921 | cat >confcache <<\_ACEOF |
13817 | # This file is a shell script that caches the results of configure |
7922 | # This file is a shell script that caches the results of configure |
13818 | # tests run on this system so they can be shared between configure |
7923 | # tests run on this system so they can be shared between configure |
13819 | # scripts and configure runs, see configure's option --config-cache. |
7924 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
13838 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
7943 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
13839 | eval ac_val=\$$ac_var |
7944 | eval ac_val=\$$ac_var |
13840 | case $ac_val in #( |
7945 | case $ac_val in #( |
13841 | *${as_nl}*) |
7946 | *${as_nl}*) |
13842 | case $ac_var in #( |
7947 | case $ac_var in #( |
13843 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
7948 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
13844 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
7949 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
13845 | esac |
7950 | esac |
13846 | case $ac_var in #( |
7951 | case $ac_var in #( |
13847 | _ | IFS | as_nl) ;; #( |
7952 | _ | IFS | as_nl) ;; #( |
13848 | *) $as_unset $ac_var ;; |
7953 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
|
7954 | *) { eval $ac_var=; unset $ac_var;} ;; |
13849 | esac ;; |
7955 | esac ;; |
13850 | esac |
7956 | esac |
13851 | done |
7957 | done |
13852 | |
7958 | |
13853 | (set) 2>&1 | |
7959 | (set) 2>&1 | |
13854 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7960 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
13855 | *${as_nl}ac_space=\ *) |
7961 | *${as_nl}ac_space=\ *) |
13856 | # `set' does not quote correctly, so add quotes (double-quote |
7962 | # `set' does not quote correctly, so add quotes: double-quote |
13857 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
7963 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
13858 | sed -n \ |
7964 | sed -n \ |
13859 | "s/'/'\\\\''/g; |
7965 | "s/'/'\\\\''/g; |
13860 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
7966 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
13861 | ;; #( |
7967 | ;; #( |
13862 | *) |
7968 | *) |
… | |
… | |
13868 | ) | |
7974 | ) | |
13869 | sed ' |
7975 | sed ' |
13870 | /^ac_cv_env_/b end |
7976 | /^ac_cv_env_/b end |
13871 | t clear |
7977 | t clear |
13872 | :clear |
7978 | :clear |
13873 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7979 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
13874 | t end |
7980 | t end |
13875 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7981 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
13876 | :end' >>confcache |
7982 | :end' >>confcache |
13877 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
7983 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
13878 | if test -w "$cache_file"; then |
7984 | if test -w "$cache_file"; then |
13879 | test "x$cache_file" != "x/dev/null" && |
7985 | if test "x$cache_file" != "x/dev/null"; then |
13880 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
7986 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
13881 | echo "$as_me: updating cache $cache_file" >&6;} |
7987 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
|
|
7988 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
13882 | cat confcache >$cache_file |
7989 | cat confcache >"$cache_file" |
|
|
7990 | else |
|
|
7991 | case $cache_file in #( |
|
|
7992 | */* | ?:*) |
|
|
7993 | mv -f confcache "$cache_file"$$ && |
|
|
7994 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
|
|
7995 | *) |
|
|
7996 | mv -f confcache "$cache_file" ;; |
|
|
7997 | esac |
|
|
7998 | fi |
|
|
7999 | fi |
13883 | else |
8000 | else |
13884 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
8001 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
13885 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
8002 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
13886 | fi |
8003 | fi |
13887 | fi |
8004 | fi |
13888 | rm -f confcache |
8005 | rm -f confcache |
13889 | |
8006 | |
13890 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
8007 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
… | |
… | |
13893 | |
8010 | |
13894 | DEFS=-DHAVE_CONFIG_H |
8011 | DEFS=-DHAVE_CONFIG_H |
13895 | |
8012 | |
13896 | ac_libobjs= |
8013 | ac_libobjs= |
13897 | ac_ltlibobjs= |
8014 | ac_ltlibobjs= |
|
|
8015 | U= |
13898 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
8016 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
13899 | # 1. Remove the extension, and $U if already installed. |
8017 | # 1. Remove the extension, and $U if already installed. |
13900 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
8018 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
13901 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
8019 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
13902 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
8020 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
13903 | # will be set to the directory where LIBOBJS objects are built. |
8021 | # will be set to the directory where LIBOBJS objects are built. |
13904 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
8022 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
13905 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
8023 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
13906 | done |
8024 | done |
13907 | LIBOBJS=$ac_libobjs |
8025 | LIBOBJS=$ac_libobjs |
13908 | |
8026 | |
13909 | LTLIBOBJS=$ac_ltlibobjs |
8027 | LTLIBOBJS=$ac_ltlibobjs |
13910 | |
8028 | |
13911 | |
8029 | |
13912 | |
8030 | |
13913 | : ${CONFIG_STATUS=./config.status} |
8031 | : "${CONFIG_STATUS=./config.status}" |
|
|
8032 | ac_write_fail=0 |
13914 | ac_clean_files_save=$ac_clean_files |
8033 | ac_clean_files_save=$ac_clean_files |
13915 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
8034 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
13916 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
8035 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
13917 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
8036 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
13918 | cat >$CONFIG_STATUS <<_ACEOF |
8037 | as_write_fail=0 |
|
|
8038 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
13919 | #! $SHELL |
8039 | #! $SHELL |
13920 | # Generated by $as_me. |
8040 | # Generated by $as_me. |
13921 | # Run this file to recreate the current configuration. |
8041 | # Run this file to recreate the current configuration. |
13922 | # Compiler output produced by configure, useful for debugging |
8042 | # Compiler output produced by configure, useful for debugging |
13923 | # configure, is in config.log if it exists. |
8043 | # configure, is in config.log if it exists. |
13924 | |
8044 | |
13925 | debug=false |
8045 | debug=false |
13926 | ac_cs_recheck=false |
8046 | ac_cs_recheck=false |
13927 | ac_cs_silent=false |
8047 | ac_cs_silent=false |
|
|
8048 | |
13928 | SHELL=\${CONFIG_SHELL-$SHELL} |
8049 | SHELL=\${CONFIG_SHELL-$SHELL} |
|
|
8050 | export SHELL |
13929 | _ACEOF |
8051 | _ASEOF |
13930 | |
8052 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
13931 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
13932 | ## --------------------- ## |
8053 | ## -------------------- ## |
13933 | ## M4sh Initialization. ## |
8054 | ## M4sh Initialization. ## |
13934 | ## --------------------- ## |
8055 | ## -------------------- ## |
13935 | |
8056 | |
13936 | # Be more Bourne compatible |
8057 | # Be more Bourne compatible |
13937 | DUALCASE=1; export DUALCASE # for MKS sh |
8058 | DUALCASE=1; export DUALCASE # for MKS sh |
|
|
8059 | as_nop=: |
13938 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
8060 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
8061 | then : |
13939 | emulate sh |
8062 | emulate sh |
13940 | NULLCMD=: |
8063 | NULLCMD=: |
13941 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
8064 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
13942 | # is contrary to our usage. Disable this feature. |
8065 | # is contrary to our usage. Disable this feature. |
13943 | alias -g '${1+"$@"}'='"$@"' |
8066 | alias -g '${1+"$@"}'='"$@"' |
13944 | setopt NO_GLOB_SUBST |
8067 | setopt NO_GLOB_SUBST |
13945 | else |
8068 | else $as_nop |
13946 | case `(set -o) 2>/dev/null` in |
8069 | case `(set -o) 2>/dev/null` in #( |
13947 | *posix*) set -o posix ;; |
8070 | *posix*) : |
|
|
8071 | set -o posix ;; #( |
|
|
8072 | *) : |
|
|
8073 | ;; |
13948 | esac |
8074 | esac |
13949 | |
|
|
13950 | fi |
8075 | fi |
13951 | |
8076 | |
13952 | |
8077 | |
13953 | |
8078 | |
|
|
8079 | # Reset variables that may have inherited troublesome values from |
|
|
8080 | # the environment. |
13954 | |
8081 | |
13955 | # PATH needs CR |
|
|
13956 | # Avoid depending upon Character Ranges. |
|
|
13957 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
13958 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
13959 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
|
13960 | as_cr_digits='0123456789' |
|
|
13961 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
|
13962 | |
|
|
13963 | # The user is always right. |
|
|
13964 | if test "${PATH_SEPARATOR+set}" != set; then |
|
|
13965 | echo "#! /bin/sh" >conf$$.sh |
|
|
13966 | echo "exit 0" >>conf$$.sh |
|
|
13967 | chmod +x conf$$.sh |
|
|
13968 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
|
13969 | PATH_SEPARATOR=';' |
|
|
13970 | else |
|
|
13971 | PATH_SEPARATOR=: |
|
|
13972 | fi |
|
|
13973 | rm -f conf$$.sh |
|
|
13974 | fi |
|
|
13975 | |
|
|
13976 | # Support unset when possible. |
|
|
13977 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
|
13978 | as_unset=unset |
|
|
13979 | else |
|
|
13980 | as_unset=false |
|
|
13981 | fi |
|
|
13982 | |
|
|
13983 | |
|
|
13984 | # IFS |
|
|
13985 | # We need space, tab and new line, in precisely that order. Quoting is |
8082 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
|
|
8083 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
|
|
8084 | # side effect of setting IFS to empty, thus disabling word splitting.) |
13986 | # there to prevent editors from complaining about space-tab. |
8085 | # Quoting is to prevent editors from complaining about space-tab. |
13987 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
|
13988 | # splitting by setting IFS to empty value.) |
|
|
13989 | as_nl=' |
8086 | as_nl=' |
13990 | ' |
8087 | ' |
|
|
8088 | export as_nl |
13991 | IFS=" "" $as_nl" |
8089 | IFS=" "" $as_nl" |
13992 | |
8090 | |
|
|
8091 | PS1='$ ' |
|
|
8092 | PS2='> ' |
|
|
8093 | PS4='+ ' |
|
|
8094 | |
|
|
8095 | # Ensure predictable behavior from utilities with locale-dependent output. |
|
|
8096 | LC_ALL=C |
|
|
8097 | export LC_ALL |
|
|
8098 | LANGUAGE=C |
|
|
8099 | export LANGUAGE |
|
|
8100 | |
|
|
8101 | # We cannot yet rely on "unset" to work, but we need these variables |
|
|
8102 | # to be unset--not just set to an empty or harmless value--now, to |
|
|
8103 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
|
|
8104 | # also avoids known problems related to "unset" and subshell syntax |
|
|
8105 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
|
|
8106 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
|
|
8107 | do eval test \${$as_var+y} \ |
|
|
8108 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
|
8109 | done |
|
|
8110 | |
|
|
8111 | # Ensure that fds 0, 1, and 2 are open. |
|
|
8112 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
|
|
8113 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
|
|
8114 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
|
|
8115 | |
|
|
8116 | # The user is always right. |
|
|
8117 | if ${PATH_SEPARATOR+false} :; then |
|
|
8118 | PATH_SEPARATOR=: |
|
|
8119 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
|
8120 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
|
8121 | PATH_SEPARATOR=';' |
|
|
8122 | } |
|
|
8123 | fi |
|
|
8124 | |
|
|
8125 | |
13993 | # Find who we are. Look in the path if we contain no directory separator. |
8126 | # Find who we are. Look in the path if we contain no directory separator. |
|
|
8127 | as_myself= |
13994 | case $0 in |
8128 | case $0 in #(( |
13995 | *[\\/]* ) as_myself=$0 ;; |
8129 | *[\\/]* ) as_myself=$0 ;; |
13996 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8130 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13997 | for as_dir in $PATH |
8131 | for as_dir in $PATH |
13998 | do |
8132 | do |
13999 | IFS=$as_save_IFS |
8133 | IFS=$as_save_IFS |
14000 | test -z "$as_dir" && as_dir=. |
8134 | case $as_dir in #((( |
|
|
8135 | '') as_dir=./ ;; |
|
|
8136 | */) ;; |
|
|
8137 | *) as_dir=$as_dir/ ;; |
|
|
8138 | esac |
14001 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
8139 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
14002 | done |
8140 | done |
14003 | IFS=$as_save_IFS |
8141 | IFS=$as_save_IFS |
14004 | |
8142 | |
14005 | ;; |
8143 | ;; |
14006 | esac |
8144 | esac |
14007 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
8145 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
14008 | # in which case we are not to be found in the path. |
8146 | # in which case we are not to be found in the path. |
14009 | if test "x$as_myself" = x; then |
8147 | if test "x$as_myself" = x; then |
14010 | as_myself=$0 |
8148 | as_myself=$0 |
14011 | fi |
8149 | fi |
14012 | if test ! -f "$as_myself"; then |
8150 | if test ! -f "$as_myself"; then |
14013 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
8151 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
14014 | { (exit 1); exit 1; } |
8152 | exit 1 |
14015 | fi |
8153 | fi |
14016 | |
8154 | |
14017 | # Work around bugs in pre-3.0 UWIN ksh. |
|
|
14018 | for as_var in ENV MAIL MAILPATH |
|
|
14019 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
|
14020 | done |
|
|
14021 | PS1='$ ' |
|
|
14022 | PS2='> ' |
|
|
14023 | PS4='+ ' |
|
|
14024 | |
8155 | |
14025 | # NLS nuisances. |
|
|
14026 | for as_var in \ |
|
|
14027 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
|
14028 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
|
14029 | LC_TELEPHONE LC_TIME |
|
|
14030 | do |
|
|
14031 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
|
14032 | eval $as_var=C; export $as_var |
|
|
14033 | else |
|
|
14034 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
|
14035 | fi |
|
|
14036 | done |
|
|
14037 | |
8156 | |
14038 | # Required to use basename. |
8157 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
|
|
8158 | # ---------------------------------------- |
|
|
8159 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|
|
8160 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|
|
8161 | # script with STATUS, using 1 if that was 0. |
|
|
8162 | as_fn_error () |
|
|
8163 | { |
|
|
8164 | as_status=$1; test $as_status -eq 0 && as_status=1 |
|
|
8165 | if test "$4"; then |
|
|
8166 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
8167 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
|
|
8168 | fi |
|
|
8169 | printf "%s\n" "$as_me: error: $2" >&2 |
|
|
8170 | as_fn_exit $as_status |
|
|
8171 | } # as_fn_error |
|
|
8172 | |
|
|
8173 | |
|
|
8174 | |
|
|
8175 | # as_fn_set_status STATUS |
|
|
8176 | # ----------------------- |
|
|
8177 | # Set $? to STATUS, without forking. |
|
|
8178 | as_fn_set_status () |
|
|
8179 | { |
|
|
8180 | return $1 |
|
|
8181 | } # as_fn_set_status |
|
|
8182 | |
|
|
8183 | # as_fn_exit STATUS |
|
|
8184 | # ----------------- |
|
|
8185 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|
|
8186 | as_fn_exit () |
|
|
8187 | { |
|
|
8188 | set +e |
|
|
8189 | as_fn_set_status $1 |
|
|
8190 | exit $1 |
|
|
8191 | } # as_fn_exit |
|
|
8192 | |
|
|
8193 | # as_fn_unset VAR |
|
|
8194 | # --------------- |
|
|
8195 | # Portably unset VAR. |
|
|
8196 | as_fn_unset () |
|
|
8197 | { |
|
|
8198 | { eval $1=; unset $1;} |
|
|
8199 | } |
|
|
8200 | as_unset=as_fn_unset |
|
|
8201 | |
|
|
8202 | # as_fn_append VAR VALUE |
|
|
8203 | # ---------------------- |
|
|
8204 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
|
|
8205 | # advantage of any shell optimizations that allow amortized linear growth over |
|
|
8206 | # repeated appends, instead of the typical quadratic growth present in naive |
|
|
8207 | # implementations. |
|
|
8208 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
|
|
8209 | then : |
|
|
8210 | eval 'as_fn_append () |
|
|
8211 | { |
|
|
8212 | eval $1+=\$2 |
|
|
8213 | }' |
|
|
8214 | else $as_nop |
|
|
8215 | as_fn_append () |
|
|
8216 | { |
|
|
8217 | eval $1=\$$1\$2 |
|
|
8218 | } |
|
|
8219 | fi # as_fn_append |
|
|
8220 | |
|
|
8221 | # as_fn_arith ARG... |
|
|
8222 | # ------------------ |
|
|
8223 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
|
|
8224 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
|
|
8225 | # must be portable across $(()) and expr. |
|
|
8226 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
|
|
8227 | then : |
|
|
8228 | eval 'as_fn_arith () |
|
|
8229 | { |
|
|
8230 | as_val=$(( $* )) |
|
|
8231 | }' |
|
|
8232 | else $as_nop |
|
|
8233 | as_fn_arith () |
|
|
8234 | { |
|
|
8235 | as_val=`expr "$@" || test $? -eq 1` |
|
|
8236 | } |
|
|
8237 | fi # as_fn_arith |
|
|
8238 | |
|
|
8239 | |
14039 | if expr a : '\(a\)' >/dev/null 2>&1 && |
8240 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14040 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
8241 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
14041 | as_expr=expr |
8242 | as_expr=expr |
14042 | else |
8243 | else |
14043 | as_expr=false |
8244 | as_expr=false |
… | |
… | |
14047 | as_basename=basename |
8248 | as_basename=basename |
14048 | else |
8249 | else |
14049 | as_basename=false |
8250 | as_basename=false |
14050 | fi |
8251 | fi |
14051 | |
8252 | |
|
|
8253 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
|
8254 | as_dirname=dirname |
|
|
8255 | else |
|
|
8256 | as_dirname=false |
|
|
8257 | fi |
14052 | |
8258 | |
14053 | # Name of the executable. |
|
|
14054 | as_me=`$as_basename -- "$0" || |
8259 | as_me=`$as_basename -- "$0" || |
14055 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8260 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14056 | X"$0" : 'X\(//\)$' \| \ |
8261 | X"$0" : 'X\(//\)$' \| \ |
14057 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8262 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14058 | echo X/"$0" | |
8263 | printf "%s\n" X/"$0" | |
14059 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
8264 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
14060 | s//\1/ |
8265 | s//\1/ |
14061 | q |
8266 | q |
14062 | } |
8267 | } |
14063 | /^X\/\(\/\/\)$/{ |
8268 | /^X\/\(\/\/\)$/{ |
… | |
… | |
14068 | s//\1/ |
8273 | s//\1/ |
14069 | q |
8274 | q |
14070 | } |
8275 | } |
14071 | s/.*/./; q'` |
8276 | s/.*/./; q'` |
14072 | |
8277 | |
14073 | # CDPATH. |
8278 | # Avoid depending upon Character Ranges. |
14074 | $as_unset CDPATH |
8279 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
8280 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
8281 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
|
8282 | as_cr_digits='0123456789' |
|
|
8283 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
14075 | |
8284 | |
14076 | |
8285 | |
14077 | |
8286 | # Determine whether it's possible to make 'echo' print without a newline. |
14078 | as_lineno_1=$LINENO |
8287 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
14079 | as_lineno_2=$LINENO |
8288 | # for compatibility with existing Makefiles. |
14080 | test "x$as_lineno_1" != "x$as_lineno_2" && |
|
|
14081 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
|
|
14082 | |
|
|
14083 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
|
14084 | # uniformly replaced by the line number. The first 'sed' inserts a |
|
|
14085 | # line-number line after each line using $LINENO; the second 'sed' |
|
|
14086 | # does the real work. The second script uses 'N' to pair each |
|
|
14087 | # line-number line with the line containing $LINENO, and appends |
|
|
14088 | # trailing '-' during substitution so that $LINENO is not a special |
|
|
14089 | # case at line end. |
|
|
14090 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
|
14091 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
|
|
14092 | # E. McMahon (1931-1989) for sed's syntax. :-) |
|
|
14093 | sed -n ' |
|
|
14094 | p |
|
|
14095 | /[$]LINENO/= |
|
|
14096 | ' <$as_myself | |
|
|
14097 | sed ' |
|
|
14098 | s/[$]LINENO.*/&-/ |
|
|
14099 | t lineno |
|
|
14100 | b |
|
|
14101 | :lineno |
|
|
14102 | N |
|
|
14103 | :loop |
|
|
14104 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|
|
14105 | t loop |
|
|
14106 | s/-\n.*// |
|
|
14107 | ' >$as_me.lineno && |
|
|
14108 | chmod +x "$as_me.lineno" || |
|
|
14109 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
|
|
14110 | { (exit 1); exit 1; }; } |
|
|
14111 | |
|
|
14112 | # Don't try to exec as it changes $[0], causing all sort of problems |
|
|
14113 | # (the dirname of $[0] is not the place where we might find the |
|
|
14114 | # original and so on. Autoconf is especially sensitive to this). |
|
|
14115 | . "./$as_me.lineno" |
|
|
14116 | # Exit status is that of the last command. |
|
|
14117 | exit |
|
|
14118 | } |
|
|
14119 | |
|
|
14120 | |
|
|
14121 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
|
14122 | as_dirname=dirname |
|
|
14123 | else |
|
|
14124 | as_dirname=false |
|
|
14125 | fi |
|
|
14126 | |
|
|
14127 | ECHO_C= ECHO_N= ECHO_T= |
8289 | ECHO_C= ECHO_N= ECHO_T= |
14128 | case `echo -n x` in |
8290 | case `echo -n x` in #((((( |
14129 | -n*) |
8291 | -n*) |
14130 | case `echo 'x\c'` in |
8292 | case `echo 'xy\c'` in |
14131 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
8293 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
14132 | *) ECHO_C='\c';; |
8294 | xy) ECHO_C='\c';; |
|
|
8295 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|
|
8296 | ECHO_T=' ';; |
14133 | esac;; |
8297 | esac;; |
14134 | *) |
8298 | *) |
14135 | ECHO_N='-n';; |
8299 | ECHO_N='-n';; |
14136 | esac |
8300 | esac |
14137 | |
8301 | |
14138 | if expr a : '\(a\)' >/dev/null 2>&1 && |
8302 | # For backward compatibility with old third-party macros, we provide |
14139 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
8303 | # the shell variables $as_echo and $as_echo_n. New code should use |
14140 | as_expr=expr |
8304 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
14141 | else |
8305 | as_echo='printf %s\n' |
14142 | as_expr=false |
8306 | as_echo_n='printf %s' |
14143 | fi |
|
|
14144 | |
8307 | |
14145 | rm -f conf$$ conf$$.exe conf$$.file |
8308 | rm -f conf$$ conf$$.exe conf$$.file |
14146 | if test -d conf$$.dir; then |
8309 | if test -d conf$$.dir; then |
14147 | rm -f conf$$.dir/conf$$.file |
8310 | rm -f conf$$.dir/conf$$.file |
14148 | else |
8311 | else |
14149 | rm -f conf$$.dir |
8312 | rm -f conf$$.dir |
14150 | mkdir conf$$.dir |
8313 | mkdir conf$$.dir 2>/dev/null |
14151 | fi |
8314 | fi |
14152 | echo >conf$$.file |
8315 | if (echo >conf$$.file) 2>/dev/null; then |
14153 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
8316 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
14154 | as_ln_s='ln -s' |
8317 | as_ln_s='ln -s' |
14155 | # ... but there are two gotchas: |
8318 | # ... but there are two gotchas: |
14156 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
8319 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
14157 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
8320 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
14158 | # In both cases, we have to default to `cp -p'. |
8321 | # In both cases, we have to default to `cp -pR'. |
14159 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
8322 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
14160 | as_ln_s='cp -p' |
8323 | as_ln_s='cp -pR' |
14161 | elif ln conf$$.file conf$$ 2>/dev/null; then |
8324 | elif ln conf$$.file conf$$ 2>/dev/null; then |
14162 | as_ln_s=ln |
8325 | as_ln_s=ln |
|
|
8326 | else |
|
|
8327 | as_ln_s='cp -pR' |
|
|
8328 | fi |
14163 | else |
8329 | else |
14164 | as_ln_s='cp -p' |
8330 | as_ln_s='cp -pR' |
14165 | fi |
8331 | fi |
14166 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8332 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14167 | rmdir conf$$.dir 2>/dev/null |
8333 | rmdir conf$$.dir 2>/dev/null |
14168 | |
8334 | |
14169 | if mkdir -p . 2>/dev/null; then |
8335 | |
14170 | as_mkdir_p=: |
8336 | # as_fn_mkdir_p |
14171 | else |
8337 | # ------------- |
14172 | test -d ./-p && rmdir ./-p |
8338 | # Create "$as_dir" as a directory, including parents if necessary. |
14173 | as_mkdir_p=false |
8339 | as_fn_mkdir_p () |
14174 | fi |
|
|
14175 | |
|
|
14176 | if test -x / >/dev/null 2>&1; then |
|
|
14177 | as_test_x='test -x' |
|
|
14178 | else |
|
|
14179 | if ls -dL / >/dev/null 2>&1; then |
|
|
14180 | as_ls_L_option=L |
|
|
14181 | else |
|
|
14182 | as_ls_L_option= |
|
|
14183 | fi |
|
|
14184 | as_test_x=' |
|
|
14185 | eval sh -c '\'' |
|
|
14186 | if test -d "$1"; then |
|
|
14187 | test -d "$1/."; |
|
|
14188 | else |
|
|
14189 | case $1 in |
|
|
14190 | -*)set "./$1";; |
|
|
14191 | esac; |
|
|
14192 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
|
|
14193 | ???[sx]*):;;*)false;;esac;fi |
|
|
14194 | '\'' sh |
|
|
14195 | ' |
|
|
14196 | fi |
|
|
14197 | as_executable_p=$as_test_x |
|
|
14198 | |
|
|
14199 | # Sed expression to map a string onto a valid CPP name. |
|
|
14200 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
|
14201 | |
|
|
14202 | # Sed expression to map a string onto a valid variable name. |
|
|
14203 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
|
14204 | |
|
|
14205 | |
|
|
14206 | exec 6>&1 |
|
|
14207 | |
|
|
14208 | # Save the log message, to keep $[0] and so on meaningful, and to |
|
|
14209 | # report actual input values of CONFIG_FILES etc. instead of their |
|
|
14210 | # values after options handling. |
|
|
14211 | ac_log=" |
|
|
14212 | This file was extended by $as_me, which was |
|
|
14213 | generated by GNU Autoconf 2.61. Invocation command line was |
|
|
14214 | |
|
|
14215 | CONFIG_FILES = $CONFIG_FILES |
|
|
14216 | CONFIG_HEADERS = $CONFIG_HEADERS |
|
|
14217 | CONFIG_LINKS = $CONFIG_LINKS |
|
|
14218 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
|
14219 | $ $0 $@ |
|
|
14220 | |
|
|
14221 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
|
14222 | " |
|
|
14223 | |
|
|
14224 | _ACEOF |
|
|
14225 | |
|
|
14226 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14227 | # Files that config.status was made for. |
|
|
14228 | config_files="$ac_config_files" |
|
|
14229 | config_headers="$ac_config_headers" |
|
|
14230 | |
|
|
14231 | _ACEOF |
|
|
14232 | |
|
|
14233 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
14234 | ac_cs_usage="\ |
|
|
14235 | \`$as_me' instantiates files from templates according to the |
|
|
14236 | current configuration. |
|
|
14237 | |
|
|
14238 | Usage: $0 [OPTIONS] [FILE]... |
|
|
14239 | |
|
|
14240 | -h, --help print this help, then exit |
|
|
14241 | -V, --version print version number and configuration settings, then exit |
|
|
14242 | -q, --quiet do not print progress messages |
|
|
14243 | -d, --debug don't remove temporary files |
|
|
14244 | --recheck update $as_me by reconfiguring in the same conditions |
|
|
14245 | --file=FILE[:TEMPLATE] |
|
|
14246 | instantiate the configuration file FILE |
|
|
14247 | --header=FILE[:TEMPLATE] |
|
|
14248 | instantiate the configuration header FILE |
|
|
14249 | |
|
|
14250 | Configuration files: |
|
|
14251 | $config_files |
|
|
14252 | |
|
|
14253 | Configuration headers: |
|
|
14254 | $config_headers |
|
|
14255 | |
|
|
14256 | Report bugs to <bug-autoconf@gnu.org>." |
|
|
14257 | |
|
|
14258 | _ACEOF |
|
|
14259 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14260 | ac_cs_version="\\ |
|
|
14261 | config.status |
|
|
14262 | configured by $0, generated by GNU Autoconf 2.61, |
|
|
14263 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
|
|
14264 | |
|
|
14265 | Copyright (C) 2006 Free Software Foundation, Inc. |
|
|
14266 | This config.status script is free software; the Free Software Foundation |
|
|
14267 | gives unlimited permission to copy, distribute and modify it." |
|
|
14268 | |
|
|
14269 | ac_pwd='$ac_pwd' |
|
|
14270 | srcdir='$srcdir' |
|
|
14271 | INSTALL='$INSTALL' |
|
|
14272 | _ACEOF |
|
|
14273 | |
|
|
14274 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
14275 | # If no file are specified by the user, then we need to provide default |
|
|
14276 | # value. By we need to know if files were specified by the user. |
|
|
14277 | ac_need_defaults=: |
|
|
14278 | while test $# != 0 |
|
|
14279 | do |
|
|
14280 | case $1 in |
|
|
14281 | --*=*) |
|
|
14282 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
|
14283 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
|
|
14284 | ac_shift=: |
|
|
14285 | ;; |
|
|
14286 | *) |
|
|
14287 | ac_option=$1 |
|
|
14288 | ac_optarg=$2 |
|
|
14289 | ac_shift=shift |
|
|
14290 | ;; |
|
|
14291 | esac |
|
|
14292 | |
|
|
14293 | case $ac_option in |
|
|
14294 | # Handling of the options. |
|
|
14295 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
|
14296 | ac_cs_recheck=: ;; |
|
|
14297 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
|
|
14298 | echo "$ac_cs_version"; exit ;; |
|
|
14299 | --debug | --debu | --deb | --de | --d | -d ) |
|
|
14300 | debug=: ;; |
|
|
14301 | --file | --fil | --fi | --f ) |
|
|
14302 | $ac_shift |
|
|
14303 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
|
|
14304 | ac_need_defaults=false;; |
|
|
14305 | --header | --heade | --head | --hea ) |
|
|
14306 | $ac_shift |
|
|
14307 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
|
|
14308 | ac_need_defaults=false;; |
|
|
14309 | --he | --h) |
|
|
14310 | # Conflict between --help and --header |
|
|
14311 | { echo "$as_me: error: ambiguous option: $1 |
|
|
14312 | Try \`$0 --help' for more information." >&2 |
|
|
14313 | { (exit 1); exit 1; }; };; |
|
|
14314 | --help | --hel | -h ) |
|
|
14315 | echo "$ac_cs_usage"; exit ;; |
|
|
14316 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
|
14317 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
|
14318 | ac_cs_silent=: ;; |
|
|
14319 | |
|
|
14320 | # This is an error. |
|
|
14321 | -*) { echo "$as_me: error: unrecognized option: $1 |
|
|
14322 | Try \`$0 --help' for more information." >&2 |
|
|
14323 | { (exit 1); exit 1; }; } ;; |
|
|
14324 | |
|
|
14325 | *) ac_config_targets="$ac_config_targets $1" |
|
|
14326 | ac_need_defaults=false ;; |
|
|
14327 | |
|
|
14328 | esac |
|
|
14329 | shift |
|
|
14330 | done |
|
|
14331 | |
|
|
14332 | ac_configure_extra_args= |
|
|
14333 | |
|
|
14334 | if $ac_cs_silent; then |
|
|
14335 | exec 6>/dev/null |
|
|
14336 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
|
14337 | fi |
|
|
14338 | |
|
|
14339 | _ACEOF |
|
|
14340 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14341 | if \$ac_cs_recheck; then |
|
|
14342 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
|
|
14343 | CONFIG_SHELL=$SHELL |
|
|
14344 | export CONFIG_SHELL |
|
|
14345 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
|
14346 | fi |
|
|
14347 | |
|
|
14348 | _ACEOF |
|
|
14349 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
14350 | exec 5>>config.log |
|
|
14351 | { |
8340 | { |
14352 | echo |
|
|
14353 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
|
14354 | ## Running $as_me. ## |
|
|
14355 | _ASBOX |
|
|
14356 | echo "$ac_log" |
|
|
14357 | } >&5 |
|
|
14358 | |
8341 | |
14359 | _ACEOF |
|
|
14360 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14361 | _ACEOF |
|
|
14362 | |
|
|
14363 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
14364 | |
|
|
14365 | # Handling of arguments. |
|
|
14366 | for ac_config_target in $ac_config_targets |
|
|
14367 | do |
|
|
14368 | case $ac_config_target in |
|
|
14369 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
|
|
14370 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
|
14371 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
|
|
14372 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
|
|
14373 | "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
|
|
14374 | |
|
|
14375 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
|
|
14376 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
|
|
14377 | { (exit 1); exit 1; }; };; |
|
|
14378 | esac |
|
|
14379 | done |
|
|
14380 | |
|
|
14381 | |
|
|
14382 | # If the user did not use the arguments to specify the items to instantiate, |
|
|
14383 | # then the envvar interface is used. Set only those that are not. |
|
|
14384 | # We use the long form for the default assignment because of an extremely |
|
|
14385 | # bizarre bug on SunOS 4.1.3. |
|
|
14386 | if $ac_need_defaults; then |
|
|
14387 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
|
|
14388 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
|
|
14389 | fi |
|
|
14390 | |
|
|
14391 | # Have a temporary directory for convenience. Make it in the build tree |
|
|
14392 | # simply because there is no reason against having it here, and in addition, |
|
|
14393 | # creating and moving files from /tmp can sometimes cause problems. |
|
|
14394 | # Hook for its removal unless debugging. |
|
|
14395 | # Note that there is a small window in which the directory will not be cleaned: |
|
|
14396 | # after its creation but before its name has been assigned to `$tmp'. |
|
|
14397 | $debug || |
|
|
14398 | { |
|
|
14399 | tmp= |
|
|
14400 | trap 'exit_status=$? |
|
|
14401 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
|
|
14402 | ' 0 |
|
|
14403 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
|
|
14404 | } |
|
|
14405 | # Create a (secure) tmp directory for tmp files. |
|
|
14406 | |
|
|
14407 | { |
|
|
14408 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
|
|
14409 | test -n "$tmp" && test -d "$tmp" |
|
|
14410 | } || |
|
|
14411 | { |
|
|
14412 | tmp=./conf$$-$RANDOM |
|
|
14413 | (umask 077 && mkdir "$tmp") |
|
|
14414 | } || |
|
|
14415 | { |
|
|
14416 | echo "$me: cannot create a temporary directory in ." >&2 |
|
|
14417 | { (exit 1); exit 1; } |
|
|
14418 | } |
|
|
14419 | |
|
|
14420 | # |
|
|
14421 | # Set up the sed scripts for CONFIG_FILES section. |
|
|
14422 | # |
|
|
14423 | |
|
|
14424 | # No need to generate the scripts if there are no CONFIG_FILES. |
|
|
14425 | # This happens for instance when ./config.status config.h |
|
|
14426 | if test -n "$CONFIG_FILES"; then |
|
|
14427 | |
|
|
14428 | _ACEOF |
|
|
14429 | |
|
|
14430 | |
|
|
14431 | |
|
|
14432 | ac_delim='%!_!# ' |
|
|
14433 | for ac_last_try in false false false false false :; do |
|
|
14434 | cat >conf$$subs.sed <<_ACEOF |
|
|
14435 | SHELL!$SHELL$ac_delim |
|
|
14436 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
|
|
14437 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
|
|
14438 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
|
|
14439 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
|
|
14440 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
|
|
14441 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
|
|
14442 | exec_prefix!$exec_prefix$ac_delim |
|
|
14443 | prefix!$prefix$ac_delim |
|
|
14444 | program_transform_name!$program_transform_name$ac_delim |
|
|
14445 | bindir!$bindir$ac_delim |
|
|
14446 | sbindir!$sbindir$ac_delim |
|
|
14447 | libexecdir!$libexecdir$ac_delim |
|
|
14448 | datarootdir!$datarootdir$ac_delim |
|
|
14449 | datadir!$datadir$ac_delim |
|
|
14450 | sysconfdir!$sysconfdir$ac_delim |
|
|
14451 | sharedstatedir!$sharedstatedir$ac_delim |
|
|
14452 | localstatedir!$localstatedir$ac_delim |
|
|
14453 | includedir!$includedir$ac_delim |
|
|
14454 | oldincludedir!$oldincludedir$ac_delim |
|
|
14455 | docdir!$docdir$ac_delim |
|
|
14456 | infodir!$infodir$ac_delim |
|
|
14457 | htmldir!$htmldir$ac_delim |
|
|
14458 | dvidir!$dvidir$ac_delim |
|
|
14459 | pdfdir!$pdfdir$ac_delim |
|
|
14460 | psdir!$psdir$ac_delim |
|
|
14461 | libdir!$libdir$ac_delim |
|
|
14462 | localedir!$localedir$ac_delim |
|
|
14463 | mandir!$mandir$ac_delim |
|
|
14464 | DEFS!$DEFS$ac_delim |
|
|
14465 | ECHO_C!$ECHO_C$ac_delim |
|
|
14466 | ECHO_N!$ECHO_N$ac_delim |
|
|
14467 | ECHO_T!$ECHO_T$ac_delim |
|
|
14468 | LIBS!$LIBS$ac_delim |
|
|
14469 | build_alias!$build_alias$ac_delim |
|
|
14470 | host_alias!$host_alias$ac_delim |
|
|
14471 | target_alias!$target_alias$ac_delim |
|
|
14472 | build!$build$ac_delim |
|
|
14473 | build_cpu!$build_cpu$ac_delim |
|
|
14474 | build_vendor!$build_vendor$ac_delim |
|
|
14475 | build_os!$build_os$ac_delim |
|
|
14476 | host!$host$ac_delim |
|
|
14477 | host_cpu!$host_cpu$ac_delim |
|
|
14478 | host_vendor!$host_vendor$ac_delim |
|
|
14479 | host_os!$host_os$ac_delim |
|
|
14480 | VERSION!$VERSION$ac_delim |
|
|
14481 | DATE!$DATE$ac_delim |
|
|
14482 | LSMDATE!$LSMDATE$ac_delim |
|
|
14483 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
14484 | CC!$CC$ac_delim |
|
|
14485 | CFLAGS!$CFLAGS$ac_delim |
|
|
14486 | LDFLAGS!$LDFLAGS$ac_delim |
|
|
14487 | CPPFLAGS!$CPPFLAGS$ac_delim |
|
|
14488 | ac_ct_CC!$ac_ct_CC$ac_delim |
|
|
14489 | EXEEXT!$EXEEXT$ac_delim |
|
|
14490 | OBJEXT!$OBJEXT$ac_delim |
|
|
14491 | CXX!$CXX$ac_delim |
|
|
14492 | CXXFLAGS!$CXXFLAGS$ac_delim |
|
|
14493 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
|
|
14494 | CPP!$CPP$ac_delim |
|
|
14495 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
|
|
14496 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
|
|
14497 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
|
|
14498 | GREP!$GREP$ac_delim |
|
|
14499 | EGREP!$EGREP$ac_delim |
|
|
14500 | LINKER!$LINKER$ac_delim |
|
|
14501 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
14502 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
14503 | MV!$MV$ac_delim |
|
|
14504 | CP!$CP$ac_delim |
|
|
14505 | LN!$LN$ac_delim |
|
|
14506 | SED!$SED$ac_delim |
|
|
14507 | ECHO!$ECHO$ac_delim |
|
|
14508 | CMP!$CMP$ac_delim |
|
|
14509 | TIC!$TIC$ac_delim |
|
|
14510 | XMKMF!$XMKMF$ac_delim |
|
|
14511 | CXXCPP!$CXXCPP$ac_delim |
|
|
14512 | X_CFLAGS!$X_CFLAGS$ac_delim |
|
|
14513 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
|
|
14514 | X_LIBS!$X_LIBS$ac_delim |
|
|
14515 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
|
|
14516 | XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim |
|
|
14517 | XPM_CFLAGS!$XPM_CFLAGS$ac_delim |
|
|
14518 | XPM_LIBS!$XPM_LIBS$ac_delim |
|
|
14519 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
14520 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
14521 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
14522 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
14523 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
14524 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
14525 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
|
|
14526 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
|
|
14527 | PERL!$PERL$ac_delim |
|
|
14528 | PERLLIB!$PERLLIB$ac_delim |
|
|
14529 | PERLFLAGS!$PERLFLAGS$ac_delim |
|
|
14530 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
|
|
14531 | IF_PERL!$IF_PERL$ac_delim |
|
|
14532 | _ACEOF |
|
|
14533 | |
|
|
14534 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
|
|
14535 | break |
|
|
14536 | elif $ac_last_try; then |
|
|
14537 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
14538 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
14539 | { (exit 1); exit 1; }; } |
|
|
14540 | else |
|
|
14541 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
14542 | fi |
|
|
14543 | done |
|
|
14544 | |
|
|
14545 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
14546 | if test -n "$ac_eof"; then |
|
|
14547 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
14548 | ac_eof=`expr $ac_eof + 1` |
|
|
14549 | fi |
|
|
14550 | |
|
|
14551 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14552 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
|
|
14553 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
14554 | _ACEOF |
|
|
14555 | sed ' |
|
|
14556 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
14557 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
14558 | :n |
|
|
14559 | t n |
|
|
14560 | s/'"$ac_delim"'$/,g/; t |
|
|
14561 | s/$/\\/; p |
|
|
14562 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
14563 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
14564 | rm -f conf$$subs.sed |
|
|
14565 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14566 | CEOF$ac_eof |
|
|
14567 | _ACEOF |
|
|
14568 | |
|
|
14569 | |
|
|
14570 | ac_delim='%!_!# ' |
|
|
14571 | for ac_last_try in false false false false false :; do |
|
|
14572 | cat >conf$$subs.sed <<_ACEOF |
|
|
14573 | PERL_O!$PERL_O$ac_delim |
|
|
14574 | DEBUG!$DEBUG$ac_delim |
|
|
14575 | DINCLUDE!$DINCLUDE$ac_delim |
|
|
14576 | DLIB!$DLIB$ac_delim |
|
|
14577 | include_stdint_h!$include_stdint_h$ac_delim |
|
|
14578 | include_stdarg_h!$include_stdarg_h$ac_delim |
|
|
14579 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
14580 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
14581 | include_string_h!$include_string_h$ac_delim |
|
|
14582 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
14583 | include_util_h!$include_util_h$ac_delim |
|
|
14584 | include_assert_h!$include_assert_h$ac_delim |
|
|
14585 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
14586 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
14587 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
14588 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
14589 | include_time_h!$include_time_h$ac_delim |
|
|
14590 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
14591 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
14592 | _ACEOF |
|
|
14593 | |
|
|
14594 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then |
|
|
14595 | break |
|
|
14596 | elif $ac_last_try; then |
|
|
14597 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
14598 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
14599 | { (exit 1); exit 1; }; } |
|
|
14600 | else |
|
|
14601 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
14602 | fi |
|
|
14603 | done |
|
|
14604 | |
|
|
14605 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
14606 | if test -n "$ac_eof"; then |
|
|
14607 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
14608 | ac_eof=`expr $ac_eof + 1` |
|
|
14609 | fi |
|
|
14610 | |
|
|
14611 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14612 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
14613 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
|
|
14614 | _ACEOF |
|
|
14615 | sed ' |
|
|
14616 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
14617 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
14618 | :n |
|
|
14619 | t n |
|
|
14620 | s/'"$ac_delim"'$/,g/; t |
|
|
14621 | s/$/\\/; p |
|
|
14622 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
14623 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
14624 | rm -f conf$$subs.sed |
|
|
14625 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14626 | :end |
|
|
14627 | s/|#_!!_#|//g |
|
|
14628 | CEOF$ac_eof |
|
|
14629 | _ACEOF |
|
|
14630 | |
|
|
14631 | |
|
|
14632 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
|
|
14633 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
|
|
14634 | # trailing colons and then remove the whole line if VPATH becomes empty |
|
|
14635 | # (actually we leave an empty line to preserve line numbers). |
|
|
14636 | if test "x$srcdir" = x.; then |
|
|
14637 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
|
|
14638 | s/:*\$(srcdir):*/:/ |
|
|
14639 | s/:*\${srcdir}:*/:/ |
|
|
14640 | s/:*@srcdir@:*/:/ |
|
|
14641 | s/^\([^=]*=[ ]*\):*/\1/ |
|
|
14642 | s/:*$// |
|
|
14643 | s/^[^=]*=[ ]*$// |
|
|
14644 | }' |
|
|
14645 | fi |
|
|
14646 | |
|
|
14647 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
14648 | fi # test -n "$CONFIG_FILES" |
|
|
14649 | |
|
|
14650 | |
|
|
14651 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
|
|
14652 | do |
|
|
14653 | case $ac_tag in |
|
|
14654 | :[FHLC]) ac_mode=$ac_tag; continue;; |
|
|
14655 | esac |
|
|
14656 | case $ac_mode$ac_tag in |
|
|
14657 | :[FHL]*:*);; |
|
|
14658 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
|
|
14659 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
|
|
14660 | { (exit 1); exit 1; }; };; |
|
|
14661 | :[FH]-) ac_tag=-:-;; |
|
|
14662 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|
|
14663 | esac |
|
|
14664 | ac_save_IFS=$IFS |
|
|
14665 | IFS=: |
|
|
14666 | set x $ac_tag |
|
|
14667 | IFS=$ac_save_IFS |
|
|
14668 | shift |
|
|
14669 | ac_file=$1 |
|
|
14670 | shift |
|
|
14671 | |
|
|
14672 | case $ac_mode in |
|
|
14673 | :L) ac_source=$1;; |
|
|
14674 | :[FH]) |
|
|
14675 | ac_file_inputs= |
|
|
14676 | for ac_f |
|
|
14677 | do |
|
|
14678 | case $ac_f in |
|
|
14679 | -) ac_f="$tmp/stdin";; |
|
|
14680 | *) # Look for the file first in the build tree, then in the source tree |
|
|
14681 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
|
|
14682 | # because $ac_f cannot contain `:'. |
|
|
14683 | test -f "$ac_f" || |
|
|
14684 | case $ac_f in |
|
|
14685 | [\\/$]*) false;; |
|
|
14686 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|
|
14687 | esac || |
|
|
14688 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
|
|
14689 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
|
|
14690 | { (exit 1); exit 1; }; };; |
|
|
14691 | esac |
|
|
14692 | ac_file_inputs="$ac_file_inputs $ac_f" |
|
|
14693 | done |
|
|
14694 | |
|
|
14695 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
|
|
14696 | # use $as_me), people would be surprised to read: |
|
|
14697 | # /* config.h. Generated by config.status. */ |
|
|
14698 | configure_input="Generated from "`IFS=: |
|
|
14699 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
|
|
14700 | if test x"$ac_file" != x-; then |
|
|
14701 | configure_input="$ac_file. $configure_input" |
|
|
14702 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
|
14703 | echo "$as_me: creating $ac_file" >&6;} |
|
|
14704 | fi |
|
|
14705 | |
|
|
14706 | case $ac_tag in |
|
|
14707 | *:-:* | *:-) cat >"$tmp/stdin";; |
|
|
14708 | esac |
|
|
14709 | ;; |
|
|
14710 | esac |
|
|
14711 | |
|
|
14712 | ac_dir=`$as_dirname -- "$ac_file" || |
|
|
14713 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
14714 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
|
14715 | X"$ac_file" : 'X\(//\)$' \| \ |
|
|
14716 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
|
|
14717 | echo X"$ac_file" | |
|
|
14718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
|
14719 | s//\1/ |
|
|
14720 | q |
|
|
14721 | } |
|
|
14722 | /^X\(\/\/\)[^/].*/{ |
|
|
14723 | s//\1/ |
|
|
14724 | q |
|
|
14725 | } |
|
|
14726 | /^X\(\/\/\)$/{ |
|
|
14727 | s//\1/ |
|
|
14728 | q |
|
|
14729 | } |
|
|
14730 | /^X\(\/\).*/{ |
|
|
14731 | s//\1/ |
|
|
14732 | q |
|
|
14733 | } |
|
|
14734 | s/.*/./; q'` |
|
|
14735 | { as_dir="$ac_dir" |
|
|
14736 | case $as_dir in #( |
8342 | case $as_dir in #( |
14737 | -*) as_dir=./$as_dir;; |
8343 | -*) as_dir=./$as_dir;; |
14738 | esac |
8344 | esac |
14739 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
8345 | test -d "$as_dir" || eval $as_mkdir_p || { |
14740 | as_dirs= |
8346 | as_dirs= |
14741 | while :; do |
8347 | while :; do |
14742 | case $as_dir in #( |
8348 | case $as_dir in #( |
14743 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
8349 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
14744 | *) as_qdir=$as_dir;; |
8350 | *) as_qdir=$as_dir;; |
14745 | esac |
8351 | esac |
14746 | as_dirs="'$as_qdir' $as_dirs" |
8352 | as_dirs="'$as_qdir' $as_dirs" |
14747 | as_dir=`$as_dirname -- "$as_dir" || |
8353 | as_dir=`$as_dirname -- "$as_dir" || |
14748 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8354 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14749 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
8355 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
14750 | X"$as_dir" : 'X\(//\)$' \| \ |
8356 | X"$as_dir" : 'X\(//\)$' \| \ |
14751 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
8357 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
14752 | echo X"$as_dir" | |
8358 | printf "%s\n" X"$as_dir" | |
14753 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8359 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14754 | s//\1/ |
8360 | s//\1/ |
14755 | q |
8361 | q |
14756 | } |
8362 | } |
14757 | /^X\(\/\/\)[^/].*/{ |
8363 | /^X\(\/\/\)[^/].*/{ |
… | |
… | |
14768 | } |
8374 | } |
14769 | s/.*/./; q'` |
8375 | s/.*/./; q'` |
14770 | test -d "$as_dir" && break |
8376 | test -d "$as_dir" && break |
14771 | done |
8377 | done |
14772 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
8378 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
14773 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
8379 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
14774 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
8380 | |
14775 | { (exit 1); exit 1; }; }; } |
8381 | |
|
|
8382 | } # as_fn_mkdir_p |
|
|
8383 | if mkdir -p . 2>/dev/null; then |
|
|
8384 | as_mkdir_p='mkdir -p "$as_dir"' |
|
|
8385 | else |
|
|
8386 | test -d ./-p && rmdir ./-p |
|
|
8387 | as_mkdir_p=false |
|
|
8388 | fi |
|
|
8389 | |
|
|
8390 | |
|
|
8391 | # as_fn_executable_p FILE |
|
|
8392 | # ----------------------- |
|
|
8393 | # Test if FILE is an executable regular file. |
|
|
8394 | as_fn_executable_p () |
|
|
8395 | { |
|
|
8396 | test -f "$1" && test -x "$1" |
|
|
8397 | } # as_fn_executable_p |
|
|
8398 | as_test_x='test -x' |
|
|
8399 | as_executable_p=as_fn_executable_p |
|
|
8400 | |
|
|
8401 | # Sed expression to map a string onto a valid CPP name. |
|
|
8402 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
|
8403 | |
|
|
8404 | # Sed expression to map a string onto a valid variable name. |
|
|
8405 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
|
8406 | |
|
|
8407 | |
|
|
8408 | exec 6>&1 |
|
|
8409 | ## ----------------------------------- ## |
|
|
8410 | ## Main body of $CONFIG_STATUS script. ## |
|
|
8411 | ## ----------------------------------- ## |
|
|
8412 | _ASEOF |
|
|
8413 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
|
|
8414 | |
|
|
8415 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
8416 | # Save the log message, to keep $0 and so on meaningful, and to |
|
|
8417 | # report actual input values of CONFIG_FILES etc. instead of their |
|
|
8418 | # values after options handling. |
|
|
8419 | ac_log=" |
|
|
8420 | This file was extended by $as_me, which was |
|
|
8421 | generated by GNU Autoconf 2.71. Invocation command line was |
|
|
8422 | |
|
|
8423 | CONFIG_FILES = $CONFIG_FILES |
|
|
8424 | CONFIG_HEADERS = $CONFIG_HEADERS |
|
|
8425 | CONFIG_LINKS = $CONFIG_LINKS |
|
|
8426 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
|
8427 | $ $0 $@ |
|
|
8428 | |
|
|
8429 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
|
8430 | " |
|
|
8431 | |
|
|
8432 | _ACEOF |
|
|
8433 | |
|
|
8434 | case $ac_config_files in *" |
|
|
8435 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
|
|
8436 | esac |
|
|
8437 | |
|
|
8438 | case $ac_config_headers in *" |
|
|
8439 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
|
|
8440 | esac |
|
|
8441 | |
|
|
8442 | |
|
|
8443 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
8444 | # Files that config.status was made for. |
|
|
8445 | config_files="$ac_config_files" |
|
|
8446 | config_headers="$ac_config_headers" |
|
|
8447 | |
|
|
8448 | _ACEOF |
|
|
8449 | |
|
|
8450 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
8451 | ac_cs_usage="\ |
|
|
8452 | \`$as_me' instantiates files and other configuration actions |
|
|
8453 | from templates according to the current configuration. Unless the files |
|
|
8454 | and actions are specified as TAGs, all are instantiated by default. |
|
|
8455 | |
|
|
8456 | Usage: $0 [OPTION]... [TAG]... |
|
|
8457 | |
|
|
8458 | -h, --help print this help, then exit |
|
|
8459 | -V, --version print version number and configuration settings, then exit |
|
|
8460 | --config print configuration, then exit |
|
|
8461 | -q, --quiet, --silent |
|
|
8462 | do not print progress messages |
|
|
8463 | -d, --debug don't remove temporary files |
|
|
8464 | --recheck update $as_me by reconfiguring in the same conditions |
|
|
8465 | --file=FILE[:TEMPLATE] |
|
|
8466 | instantiate the configuration file FILE |
|
|
8467 | --header=FILE[:TEMPLATE] |
|
|
8468 | instantiate the configuration header FILE |
|
|
8469 | |
|
|
8470 | Configuration files: |
|
|
8471 | $config_files |
|
|
8472 | |
|
|
8473 | Configuration headers: |
|
|
8474 | $config_headers |
|
|
8475 | |
|
|
8476 | Report bugs to the package provider." |
|
|
8477 | |
|
|
8478 | _ACEOF |
|
|
8479 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
|
|
8480 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
|
|
8481 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
8482 | ac_cs_config='$ac_cs_config_escaped' |
|
|
8483 | ac_cs_version="\\ |
|
|
8484 | config.status |
|
|
8485 | configured by $0, generated by GNU Autoconf 2.71, |
|
|
8486 | with options \\"\$ac_cs_config\\" |
|
|
8487 | |
|
|
8488 | Copyright (C) 2021 Free Software Foundation, Inc. |
|
|
8489 | This config.status script is free software; the Free Software Foundation |
|
|
8490 | gives unlimited permission to copy, distribute and modify it." |
|
|
8491 | |
|
|
8492 | ac_pwd='$ac_pwd' |
|
|
8493 | srcdir='$srcdir' |
|
|
8494 | INSTALL='$INSTALL' |
|
|
8495 | test -n "\$AWK" || AWK=awk |
|
|
8496 | _ACEOF |
|
|
8497 | |
|
|
8498 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
8499 | # The default lists apply if the user does not specify any file. |
|
|
8500 | ac_need_defaults=: |
|
|
8501 | while test $# != 0 |
|
|
8502 | do |
|
|
8503 | case $1 in |
|
|
8504 | --*=?*) |
|
|
8505 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
|
8506 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
|
|
8507 | ac_shift=: |
|
|
8508 | ;; |
|
|
8509 | --*=) |
|
|
8510 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
|
8511 | ac_optarg= |
|
|
8512 | ac_shift=: |
|
|
8513 | ;; |
|
|
8514 | *) |
|
|
8515 | ac_option=$1 |
|
|
8516 | ac_optarg=$2 |
|
|
8517 | ac_shift=shift |
|
|
8518 | ;; |
|
|
8519 | esac |
|
|
8520 | |
|
|
8521 | case $ac_option in |
|
|
8522 | # Handling of the options. |
|
|
8523 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
|
8524 | ac_cs_recheck=: ;; |
|
|
8525 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
|
|
8526 | printf "%s\n" "$ac_cs_version"; exit ;; |
|
|
8527 | --config | --confi | --conf | --con | --co | --c ) |
|
|
8528 | printf "%s\n" "$ac_cs_config"; exit ;; |
|
|
8529 | --debug | --debu | --deb | --de | --d | -d ) |
|
|
8530 | debug=: ;; |
|
|
8531 | --file | --fil | --fi | --f ) |
|
|
8532 | $ac_shift |
|
|
8533 | case $ac_optarg in |
|
|
8534 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
|
8535 | '') as_fn_error $? "missing file argument" ;; |
|
|
8536 | esac |
|
|
8537 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
|
|
8538 | ac_need_defaults=false;; |
|
|
8539 | --header | --heade | --head | --hea ) |
|
|
8540 | $ac_shift |
|
|
8541 | case $ac_optarg in |
|
|
8542 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
|
8543 | esac |
|
|
8544 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
|
|
8545 | ac_need_defaults=false;; |
|
|
8546 | --he | --h) |
|
|
8547 | # Conflict between --help and --header |
|
|
8548 | as_fn_error $? "ambiguous option: \`$1' |
|
|
8549 | Try \`$0 --help' for more information.";; |
|
|
8550 | --help | --hel | -h ) |
|
|
8551 | printf "%s\n" "$ac_cs_usage"; exit ;; |
|
|
8552 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
|
8553 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
|
8554 | ac_cs_silent=: ;; |
|
|
8555 | |
|
|
8556 | # This is an error. |
|
|
8557 | -*) as_fn_error $? "unrecognized option: \`$1' |
|
|
8558 | Try \`$0 --help' for more information." ;; |
|
|
8559 | |
|
|
8560 | *) as_fn_append ac_config_targets " $1" |
|
|
8561 | ac_need_defaults=false ;; |
|
|
8562 | |
|
|
8563 | esac |
|
|
8564 | shift |
|
|
8565 | done |
|
|
8566 | |
|
|
8567 | ac_configure_extra_args= |
|
|
8568 | |
|
|
8569 | if $ac_cs_silent; then |
|
|
8570 | exec 6>/dev/null |
|
|
8571 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
|
8572 | fi |
|
|
8573 | |
|
|
8574 | _ACEOF |
|
|
8575 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
8576 | if \$ac_cs_recheck; then |
|
|
8577 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
|
8578 | shift |
|
|
8579 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
|
|
8580 | CONFIG_SHELL='$SHELL' |
|
|
8581 | export CONFIG_SHELL |
|
|
8582 | exec "\$@" |
|
|
8583 | fi |
|
|
8584 | |
|
|
8585 | _ACEOF |
|
|
8586 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
8587 | exec 5>>config.log |
|
|
8588 | { |
|
|
8589 | echo |
|
|
8590 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
|
8591 | ## Running $as_me. ## |
|
|
8592 | _ASBOX |
|
|
8593 | printf "%s\n" "$ac_log" |
|
|
8594 | } >&5 |
|
|
8595 | |
|
|
8596 | _ACEOF |
|
|
8597 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
8598 | _ACEOF |
|
|
8599 | |
|
|
8600 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
8601 | |
|
|
8602 | # Handling of arguments. |
|
|
8603 | for ac_config_target in $ac_config_targets |
|
|
8604 | do |
|
|
8605 | case $ac_config_target in |
|
|
8606 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
|
|
8607 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
|
8608 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
|
|
8609 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
|
|
8610 | |
|
|
8611 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
|
|
8612 | esac |
|
|
8613 | done |
|
|
8614 | |
|
|
8615 | |
|
|
8616 | # If the user did not use the arguments to specify the items to instantiate, |
|
|
8617 | # then the envvar interface is used. Set only those that are not. |
|
|
8618 | # We use the long form for the default assignment because of an extremely |
|
|
8619 | # bizarre bug on SunOS 4.1.3. |
|
|
8620 | if $ac_need_defaults; then |
|
|
8621 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
|
|
8622 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
|
|
8623 | fi |
|
|
8624 | |
|
|
8625 | # Have a temporary directory for convenience. Make it in the build tree |
|
|
8626 | # simply because there is no reason against having it here, and in addition, |
|
|
8627 | # creating and moving files from /tmp can sometimes cause problems. |
|
|
8628 | # Hook for its removal unless debugging. |
|
|
8629 | # Note that there is a small window in which the directory will not be cleaned: |
|
|
8630 | # after its creation but before its name has been assigned to `$tmp'. |
|
|
8631 | $debug || |
|
|
8632 | { |
|
|
8633 | tmp= ac_tmp= |
|
|
8634 | trap 'exit_status=$? |
|
|
8635 | : "${ac_tmp:=$tmp}" |
|
|
8636 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
|
|
8637 | ' 0 |
|
|
8638 | trap 'as_fn_exit 1' 1 2 13 15 |
|
|
8639 | } |
|
|
8640 | # Create a (secure) tmp directory for tmp files. |
|
|
8641 | |
|
|
8642 | { |
|
|
8643 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
|
|
8644 | test -d "$tmp" |
|
|
8645 | } || |
|
|
8646 | { |
|
|
8647 | tmp=./conf$$-$RANDOM |
|
|
8648 | (umask 077 && mkdir "$tmp") |
|
|
8649 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
|
|
8650 | ac_tmp=$tmp |
|
|
8651 | |
|
|
8652 | # Set up the scripts for CONFIG_FILES section. |
|
|
8653 | # No need to generate them if there are no CONFIG_FILES. |
|
|
8654 | # This happens for instance with `./config.status config.h'. |
|
|
8655 | if test -n "$CONFIG_FILES"; then |
|
|
8656 | |
|
|
8657 | |
|
|
8658 | ac_cr=`echo X | tr X '\015'` |
|
|
8659 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
|
|
8660 | # But we know of no other shell where ac_cr would be empty at this |
|
|
8661 | # point, so we can use a bashism as a fallback. |
|
|
8662 | if test "x$ac_cr" = x; then |
|
|
8663 | eval ac_cr=\$\'\\r\' |
|
|
8664 | fi |
|
|
8665 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
|
|
8666 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
|
|
8667 | ac_cs_awk_cr='\\r' |
|
|
8668 | else |
|
|
8669 | ac_cs_awk_cr=$ac_cr |
|
|
8670 | fi |
|
|
8671 | |
|
|
8672 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
|
|
8673 | _ACEOF |
|
|
8674 | |
|
|
8675 | |
|
|
8676 | { |
|
|
8677 | echo "cat >conf$$subs.awk <<_ACEOF" && |
|
|
8678 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
|
|
8679 | echo "_ACEOF" |
|
|
8680 | } >conf$$subs.sh || |
|
|
8681 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
|
8682 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
|
|
8683 | ac_delim='%!_!# ' |
|
|
8684 | for ac_last_try in false false false false false :; do |
|
|
8685 | . ./conf$$subs.sh || |
|
|
8686 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
|
8687 | |
|
|
8688 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
|
|
8689 | if test $ac_delim_n = $ac_delim_num; then |
|
|
8690 | break |
|
|
8691 | elif $ac_last_try; then |
|
|
8692 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
|
8693 | else |
|
|
8694 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
8695 | fi |
|
|
8696 | done |
|
|
8697 | rm -f conf$$subs.sh |
|
|
8698 | |
|
|
8699 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
8700 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
|
|
8701 | _ACEOF |
|
|
8702 | sed -n ' |
|
|
8703 | h |
|
|
8704 | s/^/S["/; s/!.*/"]=/ |
|
|
8705 | p |
|
|
8706 | g |
|
|
8707 | s/^[^!]*!// |
|
|
8708 | :repl |
|
|
8709 | t repl |
|
|
8710 | s/'"$ac_delim"'$// |
|
|
8711 | t delim |
|
|
8712 | :nl |
|
|
8713 | h |
|
|
8714 | s/\(.\{148\}\)..*/\1/ |
|
|
8715 | t more1 |
|
|
8716 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
|
|
8717 | p |
|
|
8718 | n |
|
|
8719 | b repl |
|
|
8720 | :more1 |
|
|
8721 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|
|
8722 | p |
|
|
8723 | g |
|
|
8724 | s/.\{148\}// |
|
|
8725 | t nl |
|
|
8726 | :delim |
|
|
8727 | h |
|
|
8728 | s/\(.\{148\}\)..*/\1/ |
|
|
8729 | t more2 |
|
|
8730 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
|
|
8731 | p |
|
|
8732 | b |
|
|
8733 | :more2 |
|
|
8734 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|
|
8735 | p |
|
|
8736 | g |
|
|
8737 | s/.\{148\}// |
|
|
8738 | t delim |
|
|
8739 | ' <conf$$subs.awk | sed ' |
|
|
8740 | /^[^""]/{ |
|
|
8741 | N |
|
|
8742 | s/\n// |
|
|
8743 | } |
|
|
8744 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
|
|
8745 | rm -f conf$$subs.awk |
|
|
8746 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
8747 | _ACAWK |
|
|
8748 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
|
|
8749 | for (key in S) S_is_set[key] = 1 |
|
|
8750 | FS = "" |
|
|
8751 | |
|
|
8752 | } |
|
|
8753 | { |
|
|
8754 | line = $ 0 |
|
|
8755 | nfields = split(line, field, "@") |
|
|
8756 | substed = 0 |
|
|
8757 | len = length(field[1]) |
|
|
8758 | for (i = 2; i < nfields; i++) { |
|
|
8759 | key = field[i] |
|
|
8760 | keylen = length(key) |
|
|
8761 | if (S_is_set[key]) { |
|
|
8762 | value = S[key] |
|
|
8763 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
|
|
8764 | len += length(value) + length(field[++i]) |
|
|
8765 | substed = 1 |
|
|
8766 | } else |
|
|
8767 | len += 1 + keylen |
|
|
8768 | } |
|
|
8769 | |
|
|
8770 | print line |
|
|
8771 | } |
|
|
8772 | |
|
|
8773 | _ACAWK |
|
|
8774 | _ACEOF |
|
|
8775 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
8776 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
|
|
8777 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
|
|
8778 | else |
|
|
8779 | cat |
|
|
8780 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
|
|
8781 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
|
|
8782 | _ACEOF |
|
|
8783 | |
|
|
8784 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
|
|
8785 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
|
|
8786 | # trailing colons and then remove the whole line if VPATH becomes empty |
|
|
8787 | # (actually we leave an empty line to preserve line numbers). |
|
|
8788 | if test "x$srcdir" = x.; then |
|
|
8789 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
|
|
8790 | h |
|
|
8791 | s/// |
|
|
8792 | s/^/:/ |
|
|
8793 | s/[ ]*$/:/ |
|
|
8794 | s/:\$(srcdir):/:/g |
|
|
8795 | s/:\${srcdir}:/:/g |
|
|
8796 | s/:@srcdir@:/:/g |
|
|
8797 | s/^:*// |
|
|
8798 | s/:*$// |
|
|
8799 | x |
|
|
8800 | s/\(=[ ]*\).*/\1/ |
|
|
8801 | G |
|
|
8802 | s/\n// |
|
|
8803 | s/^[^=]*=[ ]*$// |
|
|
8804 | }' |
|
|
8805 | fi |
|
|
8806 | |
|
|
8807 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
8808 | fi # test -n "$CONFIG_FILES" |
|
|
8809 | |
|
|
8810 | # Set up the scripts for CONFIG_HEADERS section. |
|
|
8811 | # No need to generate them if there are no CONFIG_HEADERS. |
|
|
8812 | # This happens for instance with `./config.status Makefile'. |
|
|
8813 | if test -n "$CONFIG_HEADERS"; then |
|
|
8814 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
|
|
8815 | BEGIN { |
|
|
8816 | _ACEOF |
|
|
8817 | |
|
|
8818 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
|
|
8819 | # here-document in config.status, that substitutes the proper values into |
|
|
8820 | # config.h.in to produce config.h. |
|
|
8821 | |
|
|
8822 | # Create a delimiter string that does not exist in confdefs.h, to ease |
|
|
8823 | # handling of long lines. |
|
|
8824 | ac_delim='%!_!# ' |
|
|
8825 | for ac_last_try in false false :; do |
|
|
8826 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
|
|
8827 | if test -z "$ac_tt"; then |
|
|
8828 | break |
|
|
8829 | elif $ac_last_try; then |
|
|
8830 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
|
|
8831 | else |
|
|
8832 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
8833 | fi |
|
|
8834 | done |
|
|
8835 | |
|
|
8836 | # For the awk script, D is an array of macro values keyed by name, |
|
|
8837 | # likewise P contains macro parameters if any. Preserve backslash |
|
|
8838 | # newline sequences. |
|
|
8839 | |
|
|
8840 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
|
|
8841 | sed -n ' |
|
|
8842 | s/.\{148\}/&'"$ac_delim"'/g |
|
|
8843 | t rset |
|
|
8844 | :rset |
|
|
8845 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
|
|
8846 | t def |
|
|
8847 | d |
|
|
8848 | :def |
|
|
8849 | s/\\$// |
|
|
8850 | t bsnl |
|
|
8851 | s/["\\]/\\&/g |
|
|
8852 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
|
|
8853 | D["\1"]=" \3"/p |
|
|
8854 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
|
|
8855 | d |
|
|
8856 | :bsnl |
|
|
8857 | s/["\\]/\\&/g |
|
|
8858 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
|
|
8859 | D["\1"]=" \3\\\\\\n"\\/p |
|
|
8860 | t cont |
|
|
8861 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
|
|
8862 | t cont |
|
|
8863 | d |
|
|
8864 | :cont |
|
|
8865 | n |
|
|
8866 | s/.\{148\}/&'"$ac_delim"'/g |
|
|
8867 | t clear |
|
|
8868 | :clear |
|
|
8869 | s/\\$// |
|
|
8870 | t bsnlc |
|
|
8871 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
|
|
8872 | d |
|
|
8873 | :bsnlc |
|
|
8874 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
|
|
8875 | b cont |
|
|
8876 | ' <confdefs.h | sed ' |
|
|
8877 | s/'"$ac_delim"'/"\\\ |
|
|
8878 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
|
|
8879 | |
|
|
8880 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
8881 | for (key in D) D_is_set[key] = 1 |
|
|
8882 | FS = "" |
|
|
8883 | } |
|
|
8884 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
|
|
8885 | line = \$ 0 |
|
|
8886 | split(line, arg, " ") |
|
|
8887 | if (arg[1] == "#") { |
|
|
8888 | defundef = arg[2] |
|
|
8889 | mac1 = arg[3] |
|
|
8890 | } else { |
|
|
8891 | defundef = substr(arg[1], 2) |
|
|
8892 | mac1 = arg[2] |
|
|
8893 | } |
|
|
8894 | split(mac1, mac2, "(") #) |
|
|
8895 | macro = mac2[1] |
|
|
8896 | prefix = substr(line, 1, index(line, defundef) - 1) |
|
|
8897 | if (D_is_set[macro]) { |
|
|
8898 | # Preserve the white space surrounding the "#". |
|
|
8899 | print prefix "define", macro P[macro] D[macro] |
|
|
8900 | next |
|
|
8901 | } else { |
|
|
8902 | # Replace #undef with comments. This is necessary, for example, |
|
|
8903 | # in the case of _POSIX_SOURCE, which is predefined and required |
|
|
8904 | # on some systems where configure will not decide to define it. |
|
|
8905 | if (defundef == "undef") { |
|
|
8906 | print "/*", prefix defundef, macro, "*/" |
|
|
8907 | next |
|
|
8908 | } |
|
|
8909 | } |
|
|
8910 | } |
|
|
8911 | { print } |
|
|
8912 | _ACAWK |
|
|
8913 | _ACEOF |
|
|
8914 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
8915 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
|
|
8916 | fi # test -n "$CONFIG_HEADERS" |
|
|
8917 | |
|
|
8918 | |
|
|
8919 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
|
|
8920 | shift |
|
|
8921 | for ac_tag |
|
|
8922 | do |
|
|
8923 | case $ac_tag in |
|
|
8924 | :[FHLC]) ac_mode=$ac_tag; continue;; |
|
|
8925 | esac |
|
|
8926 | case $ac_mode$ac_tag in |
|
|
8927 | :[FHL]*:*);; |
|
|
8928 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
|
|
8929 | :[FH]-) ac_tag=-:-;; |
|
|
8930 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|
|
8931 | esac |
|
|
8932 | ac_save_IFS=$IFS |
|
|
8933 | IFS=: |
|
|
8934 | set x $ac_tag |
|
|
8935 | IFS=$ac_save_IFS |
|
|
8936 | shift |
|
|
8937 | ac_file=$1 |
|
|
8938 | shift |
|
|
8939 | |
|
|
8940 | case $ac_mode in |
|
|
8941 | :L) ac_source=$1;; |
|
|
8942 | :[FH]) |
|
|
8943 | ac_file_inputs= |
|
|
8944 | for ac_f |
|
|
8945 | do |
|
|
8946 | case $ac_f in |
|
|
8947 | -) ac_f="$ac_tmp/stdin";; |
|
|
8948 | *) # Look for the file first in the build tree, then in the source tree |
|
|
8949 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
|
|
8950 | # because $ac_f cannot contain `:'. |
|
|
8951 | test -f "$ac_f" || |
|
|
8952 | case $ac_f in |
|
|
8953 | [\\/$]*) false;; |
|
|
8954 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|
|
8955 | esac || |
|
|
8956 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
|
|
8957 | esac |
|
|
8958 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
|
|
8959 | as_fn_append ac_file_inputs " '$ac_f'" |
|
|
8960 | done |
|
|
8961 | |
|
|
8962 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
|
|
8963 | # use $as_me), people would be surprised to read: |
|
|
8964 | # /* config.h. Generated by config.status. */ |
|
|
8965 | configure_input='Generated from '` |
|
|
8966 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
|
|
8967 | `' by configure.' |
|
|
8968 | if test x"$ac_file" != x-; then |
|
|
8969 | configure_input="$ac_file. $configure_input" |
|
|
8970 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
|
|
8971 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
|
|
8972 | fi |
|
|
8973 | # Neutralize special characters interpreted by sed in replacement strings. |
|
|
8974 | case $configure_input in #( |
|
|
8975 | *\&* | *\|* | *\\* ) |
|
|
8976 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
|
|
8977 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
|
|
8978 | *) ac_sed_conf_input=$configure_input;; |
|
|
8979 | esac |
|
|
8980 | |
|
|
8981 | case $ac_tag in |
|
|
8982 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
|
|
8983 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
|
|
8984 | esac |
|
|
8985 | ;; |
|
|
8986 | esac |
|
|
8987 | |
|
|
8988 | ac_dir=`$as_dirname -- "$ac_file" || |
|
|
8989 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
8990 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
|
8991 | X"$ac_file" : 'X\(//\)$' \| \ |
|
|
8992 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
|
|
8993 | printf "%s\n" X"$ac_file" | |
|
|
8994 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
|
8995 | s//\1/ |
|
|
8996 | q |
|
|
8997 | } |
|
|
8998 | /^X\(\/\/\)[^/].*/{ |
|
|
8999 | s//\1/ |
|
|
9000 | q |
|
|
9001 | } |
|
|
9002 | /^X\(\/\/\)$/{ |
|
|
9003 | s//\1/ |
|
|
9004 | q |
|
|
9005 | } |
|
|
9006 | /^X\(\/\).*/{ |
|
|
9007 | s//\1/ |
|
|
9008 | q |
|
|
9009 | } |
|
|
9010 | s/.*/./; q'` |
|
|
9011 | as_dir="$ac_dir"; as_fn_mkdir_p |
14776 | ac_builddir=. |
9012 | ac_builddir=. |
14777 | |
9013 | |
14778 | case "$ac_dir" in |
9014 | case "$ac_dir" in |
14779 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
9015 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
14780 | *) |
9016 | *) |
14781 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
9017 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
14782 | # A ".." for each directory in $ac_dir_suffix. |
9018 | # A ".." for each directory in $ac_dir_suffix. |
14783 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
9019 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
14784 | case $ac_top_builddir_sub in |
9020 | case $ac_top_builddir_sub in |
14785 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
9021 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
14786 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
9022 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
14787 | esac ;; |
9023 | esac ;; |
14788 | esac |
9024 | esac |
… | |
… | |
14818 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
9054 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
14819 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
9055 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
14820 | esac |
9056 | esac |
14821 | _ACEOF |
9057 | _ACEOF |
14822 | |
9058 | |
14823 | cat >>$CONFIG_STATUS <<\_ACEOF |
9059 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14824 | # If the template does not know about datarootdir, expand it. |
9060 | # If the template does not know about datarootdir, expand it. |
14825 | # FIXME: This hack should be removed a few years after 2.60. |
9061 | # FIXME: This hack should be removed a few years after 2.60. |
14826 | ac_datarootdir_hack=; ac_datarootdir_seen= |
9062 | ac_datarootdir_hack=; ac_datarootdir_seen= |
14827 | |
9063 | ac_sed_dataroot=' |
14828 | case `sed -n '/datarootdir/ { |
9064 | /datarootdir/ { |
14829 | p |
9065 | p |
14830 | q |
9066 | q |
14831 | } |
9067 | } |
14832 | /@datadir@/p |
9068 | /@datadir@/p |
14833 | /@docdir@/p |
9069 | /@docdir@/p |
14834 | /@infodir@/p |
9070 | /@infodir@/p |
14835 | /@localedir@/p |
9071 | /@localedir@/p |
14836 | /@mandir@/p |
9072 | /@mandir@/p' |
14837 | ' $ac_file_inputs` in |
9073 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
14838 | *datarootdir*) ac_datarootdir_seen=yes;; |
9074 | *datarootdir*) ac_datarootdir_seen=yes;; |
14839 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
9075 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
14840 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
9076 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
14841 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
9077 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
14842 | _ACEOF |
9078 | _ACEOF |
14843 | cat >>$CONFIG_STATUS <<_ACEOF |
9079 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14844 | ac_datarootdir_hack=' |
9080 | ac_datarootdir_hack=' |
14845 | s&@datadir@&$datadir&g |
9081 | s&@datadir@&$datadir&g |
14846 | s&@docdir@&$docdir&g |
9082 | s&@docdir@&$docdir&g |
14847 | s&@infodir@&$infodir&g |
9083 | s&@infodir@&$infodir&g |
14848 | s&@localedir@&$localedir&g |
9084 | s&@localedir@&$localedir&g |
14849 | s&@mandir@&$mandir&g |
9085 | s&@mandir@&$mandir&g |
14850 | s&\\\${datarootdir}&$datarootdir&g' ;; |
9086 | s&\\\${datarootdir}&$datarootdir&g' ;; |
14851 | esac |
9087 | esac |
14852 | _ACEOF |
9088 | _ACEOF |
14853 | |
9089 | |
14854 | # Neutralize VPATH when `$srcdir' = `.'. |
9090 | # Neutralize VPATH when `$srcdir' = `.'. |
14855 | # Shell code in configure.ac might set extrasub. |
9091 | # Shell code in configure.ac might set extrasub. |
14856 | # FIXME: do we really want to maintain this feature? |
9092 | # FIXME: do we really want to maintain this feature? |
14857 | cat >>$CONFIG_STATUS <<_ACEOF |
9093 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14858 | sed "$ac_vpsub |
9094 | ac_sed_extra="$ac_vpsub |
14859 | $extrasub |
9095 | $extrasub |
14860 | _ACEOF |
9096 | _ACEOF |
14861 | cat >>$CONFIG_STATUS <<\_ACEOF |
9097 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14862 | :t |
9098 | :t |
14863 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
9099 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
14864 | s&@configure_input@&$configure_input&;t t |
9100 | s|@configure_input@|$ac_sed_conf_input|;t t |
14865 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
9101 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
|
|
9102 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
14866 | s&@srcdir@&$ac_srcdir&;t t |
9103 | s&@srcdir@&$ac_srcdir&;t t |
14867 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
9104 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
14868 | s&@top_srcdir@&$ac_top_srcdir&;t t |
9105 | s&@top_srcdir@&$ac_top_srcdir&;t t |
14869 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
9106 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
14870 | s&@builddir@&$ac_builddir&;t t |
9107 | s&@builddir@&$ac_builddir&;t t |
14871 | s&@abs_builddir@&$ac_abs_builddir&;t t |
9108 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14872 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
9109 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14873 | s&@INSTALL@&$ac_INSTALL&;t t |
9110 | s&@INSTALL@&$ac_INSTALL&;t t |
14874 | $ac_datarootdir_hack |
9111 | $ac_datarootdir_hack |
14875 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
9112 | " |
|
|
9113 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
|
|
9114 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14876 | |
9115 | |
14877 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
9116 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14878 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
9117 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
14879 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
9118 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
|
|
9119 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
14880 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
9120 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
14881 | which seems to be undefined. Please make sure it is defined." >&5 |
9121 | which seems to be undefined. Please make sure it is defined" >&5 |
14882 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
9122 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
14883 | which seems to be undefined. Please make sure it is defined." >&2;} |
9123 | which seems to be undefined. Please make sure it is defined" >&2;} |
14884 | |
9124 | |
14885 | rm -f "$tmp/stdin" |
9125 | rm -f "$ac_tmp/stdin" |
14886 | case $ac_file in |
9126 | case $ac_file in |
14887 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
9127 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
14888 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
9128 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
14889 | esac |
9129 | esac \ |
|
|
9130 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14890 | ;; |
9131 | ;; |
14891 | :H) |
9132 | :H) |
14892 | # |
9133 | # |
14893 | # CONFIG_HEADER |
9134 | # CONFIG_HEADER |
14894 | # |
9135 | # |
14895 | _ACEOF |
|
|
14896 | |
|
|
14897 | # Transform confdefs.h into a sed script `conftest.defines', that |
|
|
14898 | # substitutes the proper values into config.h.in to produce config.h. |
|
|
14899 | rm -f conftest.defines conftest.tail |
|
|
14900 | # First, append a space to every undef/define line, to ease matching. |
|
|
14901 | echo 's/$/ /' >conftest.defines |
|
|
14902 | # Then, protect against being on the right side of a sed subst, or in |
|
|
14903 | # an unquoted here document, in config.status. If some macros were |
|
|
14904 | # called several times there might be several #defines for the same |
|
|
14905 | # symbol, which is useless. But do not sort them, since the last |
|
|
14906 | # AC_DEFINE must be honored. |
|
|
14907 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
|
|
14908 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
|
|
14909 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
|
|
14910 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
|
|
14911 | # just an empty string. |
|
|
14912 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
|
|
14913 | ac_dB='\\)[ (].*,\\1define\\2' |
|
|
14914 | ac_dC=' ' |
|
|
14915 | ac_dD=' ,' |
|
|
14916 | |
|
|
14917 | uniq confdefs.h | |
|
|
14918 | sed -n ' |
|
|
14919 | t rset |
|
|
14920 | :rset |
|
|
14921 | s/^[ ]*#[ ]*define[ ][ ]*// |
|
|
14922 | t ok |
|
|
14923 | d |
|
|
14924 | :ok |
|
|
14925 | s/[\\&,]/\\&/g |
|
|
14926 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
|
|
14927 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
|
|
14928 | ' >>conftest.defines |
|
|
14929 | |
|
|
14930 | # Remove the space that was appended to ease matching. |
|
|
14931 | # Then replace #undef with comments. This is necessary, for |
|
|
14932 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
|
|
14933 | # on some systems where configure will not decide to define it. |
|
|
14934 | # (The regexp can be short, since the line contains either #define or #undef.) |
|
|
14935 | echo 's/ $// |
|
|
14936 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
|
|
14937 | |
|
|
14938 | # Break up conftest.defines: |
|
|
14939 | ac_max_sed_lines=50 |
|
|
14940 | |
|
|
14941 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
|
|
14942 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
|
|
14943 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
|
|
14944 | # et cetera. |
|
|
14945 | ac_in='$ac_file_inputs' |
|
|
14946 | ac_out='"$tmp/out1"' |
|
|
14947 | ac_nxt='"$tmp/out2"' |
|
|
14948 | |
|
|
14949 | while : |
|
|
14950 | do |
|
|
14951 | # Write a here document: |
|
|
14952 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14953 | # First, check the format of the line: |
|
|
14954 | cat >"\$tmp/defines.sed" <<\\CEOF |
|
|
14955 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
|
|
14956 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
|
|
14957 | b |
|
|
14958 | :def |
|
|
14959 | _ACEOF |
|
|
14960 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
|
|
14961 | echo 'CEOF |
|
|
14962 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
|
|
14963 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
|
|
14964 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
|
|
14965 | grep . conftest.tail >/dev/null || break |
|
|
14966 | rm -f conftest.defines |
|
|
14967 | mv conftest.tail conftest.defines |
|
|
14968 | done |
|
|
14969 | rm -f conftest.defines conftest.tail |
|
|
14970 | |
|
|
14971 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
|
|
14972 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
14973 | if test x"$ac_file" != x-; then |
9136 | if test x"$ac_file" != x-; then |
14974 | echo "/* $configure_input */" >"$tmp/config.h" |
9137 | { |
14975 | cat "$ac_result" >>"$tmp/config.h" |
9138 | printf "%s\n" "/* $configure_input */" >&1 \ |
|
|
9139 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
|
|
9140 | } >"$ac_tmp/config.h" \ |
|
|
9141 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14976 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
9142 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
14977 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
9143 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
14978 | echo "$as_me: $ac_file is unchanged" >&6;} |
9144 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
14979 | else |
9145 | else |
14980 | rm -f $ac_file |
9146 | rm -f "$ac_file" |
14981 | mv "$tmp/config.h" $ac_file |
9147 | mv "$ac_tmp/config.h" "$ac_file" \ |
|
|
9148 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14982 | fi |
9149 | fi |
14983 | else |
9150 | else |
14984 | echo "/* $configure_input */" |
9151 | printf "%s\n" "/* $configure_input */" >&1 \ |
14985 | cat "$ac_result" |
9152 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
|
|
9153 | || as_fn_error $? "could not create -" "$LINENO" 5 |
14986 | fi |
9154 | fi |
14987 | rm -f "$tmp/out12" |
|
|
14988 | ;; |
9155 | ;; |
14989 | |
9156 | |
14990 | |
9157 | |
14991 | esac |
9158 | esac |
14992 | |
9159 | |
14993 | done # for ac_tag |
9160 | done # for ac_tag |
14994 | |
9161 | |
14995 | |
9162 | |
14996 | { (exit 0); exit 0; } |
9163 | as_fn_exit 0 |
14997 | _ACEOF |
9164 | _ACEOF |
14998 | chmod +x $CONFIG_STATUS |
|
|
14999 | ac_clean_files=$ac_clean_files_save |
9165 | ac_clean_files=$ac_clean_files_save |
|
|
9166 | |
|
|
9167 | test $ac_write_fail = 0 || |
|
|
9168 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
15000 | |
9169 | |
15001 | |
9170 | |
15002 | # configure is writing to config.log, and then calls config.status. |
9171 | # configure is writing to config.log, and then calls config.status. |
15003 | # config.status does its own redirection, appending to config.log. |
9172 | # config.status does its own redirection, appending to config.log. |
15004 | # Unfortunately, on DOS this fails, as config.log is still kept open |
9173 | # Unfortunately, on DOS this fails, as config.log is still kept open |
… | |
… | |
15015 | exec 5>/dev/null |
9184 | exec 5>/dev/null |
15016 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
9185 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
15017 | exec 5>>config.log |
9186 | exec 5>>config.log |
15018 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
9187 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
15019 | # would make configure fail if this is the last instruction. |
9188 | # would make configure fail if this is the last instruction. |
15020 | $ac_cs_success || { (exit 1); exit 1; } |
9189 | $ac_cs_success || as_fn_exit 1 |
|
|
9190 | fi |
|
|
9191 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
|
|
9192 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
|
|
9193 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
15021 | fi |
9194 | fi |
15022 | |
9195 | |
15023 | |
9196 | |
15024 | echo "Configuration: |
9197 | echo "Configuration: |
15025 | |
9198 | |
… | |
… | |
15028 | Install path: ${prefix}/bin |
9201 | Install path: ${prefix}/bin |
15029 | Compiler: $CXX |
9202 | Compiler: $CXX |
15030 | Compiler flags: $CXXFLAGS |
9203 | Compiler flags: $CXXFLAGS |
15031 | Linker: $LINKER" |
9204 | Linker: $LINKER" |
15032 | |
9205 | |
15033 | if test x$support_xpm = xyes; then |
|
|
15034 | echo " Xpm library: $XPM_LIBS" |
|
|
15035 | fi |
|
|
15036 | |
|
|
15037 | if test x$term != x; then |
9206 | if test x$term != x; then |
15038 | echo " set TERM to: $term" |
9207 | echo " set TERM to: $term" |
15039 | fi |
9208 | fi |
15040 | if test x$terminfo != x; then |
9209 | if test x$terminfo != x; then |
15041 | echo " set TERMINFO to: $terminfo" |
9210 | echo " set TERMINFO to: $terminfo" |
… | |
… | |
15045 | if test x$RESFALLBACK != x; then |
9214 | if test x$RESFALLBACK != x; then |
15046 | echo " resource class fallback: $RESFALLBACK" |
9215 | echo " resource class fallback: $RESFALLBACK" |
15047 | fi |
9216 | fi |
15048 | echo |
9217 | echo |
15049 | echo " embedded perl: $support_perl" |
9218 | echo " embedded perl: $support_perl" |
|
|
9219 | echo " image library: $image_lib" |
15050 | echo |
9220 | echo |
15051 | if test x$support_xpm = xneedsmanualspecification; then |
|
|
15052 | echo ".----------------------------------------------------------------." |
|
|
15053 | echo ". WARNING: --enable-xpm-background was specified however the ." |
|
|
15054 | echo ". XPM includes files and libraries could not be found. ." |
|
|
15055 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
|
|
15056 | echo ". to use them you should rerun configure with the ." |
|
|
15057 | echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ." |
|
|
15058 | echo ". and --with-xpm-library=/path/to/xpm/library lines. ." |
|
|
15059 | echo ".----------------------------------------------------------------." |
|
|
15060 | fi |
|
|
15061 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
9221 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
15062 | echo ".----------------------------------------------------------------." |
9222 | echo ".----------------------------------------------------------------." |
15063 | echo ". WARNING: --enable-xim was specified however the locale support ." |
9223 | echo ". WARNING: --enable-xim was specified however the locale support ." |
15064 | echo ". functions could not be found. ." |
9224 | echo ". functions could not be found. ." |
15065 | echo ". XIM is now being DISABLED! ." |
9225 | echo ". XIM is now being DISABLED! ." |
… | |
… | |
15067 | fi |
9227 | fi |
15068 | |
9228 | |
15069 | echo "*** Optionally check src/feature.h for further, rarely used options ***" |
9229 | echo "*** Optionally check src/feature.h for further, rarely used options ***" |
15070 | echo |
9230 | echo |
15071 | |
9231 | |
|
|
9232 | |