diff options
| author | Jan D | 2010-08-06 12:12:41 +0200 |
|---|---|---|
| committer | Jan D | 2010-08-06 12:12:41 +0200 |
| commit | 3d608a86503ae057e0d2e721a9d9718eae22bf89 (patch) | |
| tree | 01ae2c34b91e9357f41bda331a8ed4e3422683bf | |
| parent | 0613f5d515c2f7fe7930ad5f7d3e177e1fd3b44c (diff) | |
| download | emacs-3d608a86503ae057e0d2e721a9d9718eae22bf89.tar.gz emacs-3d608a86503ae057e0d2e721a9d9718eae22bf89.zip | |
Fix missing prototypes for HAVE_NS (caused crash) and vrious warnings.
* configure.in: Check for util.h.
* src/bidi.c (bidi_dump_cached_states): Fix fprintf warning.
* src/emacs.c: Include src/nsterm.h if HAVE_NS.
* src/image.c (xpm_scan, xpm_make_color_table_v)
(xpm_put_color_table_v, xpm_get_color_table_v)
(xpm_make_color_table_h, xpm_put_color_table_h)
(xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
(xpm_load): Convert to ANSI C prototypes.
* src/lisp.h (fmod_float): Declare.
* src/menu.h (x_set_menu_bar_line): Declare.
(free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
* src/window.c: Include menu.h.
* src/nsfns.m (have_menus_p, ns_display_info_for_name)
(x_set_cursor_type, ns_appkit_version_str)
(ns_appkit_version_int, ns_do_applescript)
(x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
(syms_of_nsfns): Convert to ANSI C prototypes.
* src/nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
prototypes.
* src/nsimage.m (ns_load_image): Move NSTRACE after declarations.
* src/nsmenu.m (popup_activated, name_is_separator)
(syms_of_nsmenu): Convert to ANSI C prototypes.
(runMenuAt): Prototypes and move declarations before code.
* src/nsterm.h : Include sysselect.h.
(x_sync, x_get_focus_frame, x_set_mouse_position)
(x_set_mouse_pixel_position, x_make_frame_visible)
(x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
(x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
(x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
(syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
Declare
* src/process.c: Check HAVE_UTIL_H. Include src/nsterm.h if HAVE_NS.
* src/nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
(ns_ring_bell, ns_defined_color, hide_hourglass)
(x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
Convert to ANSI C prototypes.
(x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
before code.
* src/sysdep.c: Check HAVE_TERM_H
* src/term.c: Check HAVE_SYS_IOCTL_H.
* src/unexmacosx.c (print_region_list, print_regions)
(build_region_list, find_emacs_zone_regions)
(unexec_regions_merge, read_load_commands, dump_it)
(unexec_init_emacs_zone): Convert to ANSI C prototypes.
* src/xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rwxr-xr-x | configure | 417 | ||||
| -rw-r--r-- | configure.in | 2 | ||||
| -rw-r--r-- | src/ChangeLog | 63 | ||||
| -rw-r--r-- | src/bidi.c | 2 | ||||
| -rw-r--r-- | src/config.in | 3 | ||||
| -rw-r--r-- | src/emacs.c | 4 | ||||
| -rw-r--r-- | src/image.c | 75 | ||||
| -rw-r--r-- | src/lisp.h | 1 | ||||
| -rw-r--r-- | src/menu.h | 7 | ||||
| -rw-r--r-- | src/nsfns.m | 36 | ||||
| -rw-r--r-- | src/nsfont.m | 4 | ||||
| -rw-r--r-- | src/nsimage.m | 4 | ||||
| -rw-r--r-- | src/nsmenu.m | 31 | ||||
| -rw-r--r-- | src/nsterm.h | 32 | ||||
| -rw-r--r-- | src/nsterm.m | 43 | ||||
| -rw-r--r-- | src/process.c | 8 | ||||
| -rw-r--r-- | src/sysdep.c | 3 | ||||
| -rw-r--r-- | src/term.c | 3 | ||||
| -rw-r--r-- | src/unexmacosx.c | 20 | ||||
| -rw-r--r-- | src/window.c | 1 | ||||
| -rw-r--r-- | src/xfaces.c | 11 |
22 files changed, 444 insertions, 330 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-08-06 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * configure.in: Check for util.h. | ||
| 4 | |||
| 1 | 2010-08-05 Eli Zaretskii <eliz@gnu.org> | 5 | 2010-08-05 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * configure.in (UNEXEC_OBJ): Rename unexec.o => unexcoff.o. | 7 | * configure.in (UNEXEC_OBJ): Rename unexec.o => unexcoff.o. |
| @@ -1,11 +1,11 @@ | |||
| 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.66 for emacs 24.0.50. | 3 | # Generated by GNU Autoconf 2.65 for emacs 24.0.50. |
| 4 | # | 4 | # |
| 5 | # | 5 | # |
| 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 8 | # Foundation, Inc. | 8 | # Inc. |
| 9 | # | 9 | # |
| 10 | # | 10 | # |
| 11 | # This configure script is free software; the Free Software Foundation | 11 | # This configure script is free software; the Free Software Foundation |
| @@ -316,7 +316,7 @@ $as_echo X"$as_dir" | | |||
| 316 | test -d "$as_dir" && break | 316 | test -d "$as_dir" && break |
| 317 | done | 317 | done |
| 318 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 318 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 319 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 319 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 320 | 320 | ||
| 321 | 321 | ||
| 322 | } # as_fn_mkdir_p | 322 | } # as_fn_mkdir_p |
| @@ -356,19 +356,19 @@ else | |||
| 356 | fi # as_fn_arith | 356 | fi # as_fn_arith |
| 357 | 357 | ||
| 358 | 358 | ||
| 359 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 359 | # as_fn_error ERROR [LINENO LOG_FD] |
| 360 | # ---------------------------------------- | 360 | # --------------------------------- |
| 361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 363 | # script with STATUS, using 1 if that was 0. | 363 | # script with status $?, using 1 if that was 0. |
| 364 | as_fn_error () | 364 | as_fn_error () |
| 365 | { | 365 | { |
| 366 | as_status=$1; test $as_status -eq 0 && as_status=1 | 366 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 367 | if test "$4"; then | 367 | if test "$3"; then |
| 368 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 368 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 370 | fi | 370 | fi |
| 371 | $as_echo "$as_me: error: $2" >&2 | 371 | $as_echo "$as_me: error: $1" >&2 |
| 372 | as_fn_exit $as_status | 372 | as_fn_exit $as_status |
| 373 | } # as_fn_error | 373 | } # as_fn_error |
| 374 | 374 | ||
| @@ -530,7 +530,7 @@ test -n "$DJDIR" || exec 7<&0 </dev/null | |||
| 530 | exec 6>&1 | 530 | exec 6>&1 |
| 531 | 531 | ||
| 532 | # Name of the host. | 532 | # Name of the host. |
| 533 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | 533 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 534 | # so uname gets run too. | 534 | # so uname gets run too. |
| 535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 536 | 536 | ||
| @@ -950,7 +950,7 @@ do | |||
| 950 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 950 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 951 | # Reject names that are not valid shell variable names. | 951 | # Reject names that are not valid shell variable names. |
| 952 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 952 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 953 | as_fn_error $? "invalid feature name: $ac_useropt" | 953 | as_fn_error "invalid feature name: $ac_useropt" |
| 954 | ac_useropt_orig=$ac_useropt | 954 | ac_useropt_orig=$ac_useropt |
| 955 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 955 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 956 | case $ac_user_opts in | 956 | case $ac_user_opts in |
| @@ -976,7 +976,7 @@ do | |||
| 976 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 976 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 977 | # Reject names that are not valid shell variable names. | 977 | # Reject names that are not valid shell variable names. |
| 978 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 978 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 979 | as_fn_error $? "invalid feature name: $ac_useropt" | 979 | as_fn_error "invalid feature name: $ac_useropt" |
| 980 | ac_useropt_orig=$ac_useropt | 980 | ac_useropt_orig=$ac_useropt |
| 981 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 981 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 982 | case $ac_user_opts in | 982 | case $ac_user_opts in |
| @@ -1180,7 +1180,7 @@ do | |||
| 1180 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 1180 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1181 | # Reject names that are not valid shell variable names. | 1181 | # Reject names that are not valid shell variable names. |
| 1182 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 1182 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1183 | as_fn_error $? "invalid package name: $ac_useropt" | 1183 | as_fn_error "invalid package name: $ac_useropt" |
| 1184 | ac_useropt_orig=$ac_useropt | 1184 | ac_useropt_orig=$ac_useropt |
| 1185 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 1185 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1186 | case $ac_user_opts in | 1186 | case $ac_user_opts in |
| @@ -1196,7 +1196,7 @@ do | |||
| 1196 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 1196 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1197 | # Reject names that are not valid shell variable names. | 1197 | # Reject names that are not valid shell variable names. |
| 1198 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 1198 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1199 | as_fn_error $? "invalid package name: $ac_useropt" | 1199 | as_fn_error "invalid package name: $ac_useropt" |
| 1200 | ac_useropt_orig=$ac_useropt | 1200 | ac_useropt_orig=$ac_useropt |
| 1201 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 1201 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1202 | case $ac_user_opts in | 1202 | case $ac_user_opts in |
| @@ -1226,8 +1226,8 @@ do | |||
| 1226 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 1226 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1227 | x_libraries=$ac_optarg ;; | 1227 | x_libraries=$ac_optarg ;; |
| 1228 | 1228 | ||
| 1229 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | 1229 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1230 | Try \`$0 --help' for more information" | 1230 | Try \`$0 --help' for more information." |
| 1231 | ;; | 1231 | ;; |
| 1232 | 1232 | ||
| 1233 | *=*) | 1233 | *=*) |
| @@ -1235,7 +1235,7 @@ Try \`$0 --help' for more information" | |||
| 1235 | # Reject names that are not valid shell variable names. | 1235 | # Reject names that are not valid shell variable names. |
| 1236 | case $ac_envvar in #( | 1236 | case $ac_envvar in #( |
| 1237 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | 1237 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1238 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 1238 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1239 | esac | 1239 | esac |
| 1240 | eval $ac_envvar=\$ac_optarg | 1240 | eval $ac_envvar=\$ac_optarg |
| 1241 | export $ac_envvar ;; | 1241 | export $ac_envvar ;; |
| @@ -1253,13 +1253,13 @@ done | |||
| 1253 | 1253 | ||
| 1254 | if test -n "$ac_prev"; then | 1254 | if test -n "$ac_prev"; then |
| 1255 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 1255 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1256 | as_fn_error $? "missing argument to $ac_option" | 1256 | as_fn_error "missing argument to $ac_option" |
| 1257 | fi | 1257 | fi |
| 1258 | 1258 | ||
| 1259 | if test -n "$ac_unrecognized_opts"; then | 1259 | if test -n "$ac_unrecognized_opts"; then |
| 1260 | case $enable_option_checking in | 1260 | case $enable_option_checking in |
| 1261 | no) ;; | 1261 | no) ;; |
| 1262 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 1262 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1263 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 1263 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1264 | esac | 1264 | esac |
| 1265 | fi | 1265 | fi |
| @@ -1282,7 +1282,7 @@ do | |||
| 1282 | [\\/$]* | ?:[\\/]* ) continue;; | 1282 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1283 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 1283 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1284 | esac | 1284 | esac |
| 1285 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | 1285 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
| 1286 | done | 1286 | done |
| 1287 | 1287 | ||
| 1288 | # There might be people who depend on the old broken behavior: `$host' | 1288 | # There might be people who depend on the old broken behavior: `$host' |
| @@ -1296,8 +1296,8 @@ target=$target_alias | |||
| 1296 | if test "x$host_alias" != x; then | 1296 | if test "x$host_alias" != x; then |
| 1297 | if test "x$build_alias" = x; then | 1297 | if test "x$build_alias" = x; then |
| 1298 | cross_compiling=maybe | 1298 | cross_compiling=maybe |
| 1299 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | 1299 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1300 | If a cross compiler is detected then cross compile mode will be used" >&2 | 1300 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1301 | elif test "x$build_alias" != "x$host_alias"; then | 1301 | elif test "x$build_alias" != "x$host_alias"; then |
| 1302 | cross_compiling=yes | 1302 | cross_compiling=yes |
| 1303 | fi | 1303 | fi |
| @@ -1312,9 +1312,9 @@ test "$silent" = yes && exec 6>/dev/null | |||
| 1312 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 1312 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1313 | ac_ls_di=`ls -di .` && | 1313 | ac_ls_di=`ls -di .` && |
| 1314 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 1314 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1315 | as_fn_error $? "working directory cannot be determined" | 1315 | as_fn_error "working directory cannot be determined" |
| 1316 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 1316 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1317 | as_fn_error $? "pwd does not report name of working directory" | 1317 | as_fn_error "pwd does not report name of working directory" |
| 1318 | 1318 | ||
| 1319 | 1319 | ||
| 1320 | # Find the source files, if location was not specified. | 1320 | # Find the source files, if location was not specified. |
| @@ -1353,11 +1353,11 @@ else | |||
| 1353 | fi | 1353 | fi |
| 1354 | if test ! -r "$srcdir/$ac_unique_file"; then | 1354 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1355 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 1355 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1356 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 1356 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
| 1357 | fi | 1357 | fi |
| 1358 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 1358 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1359 | ac_abs_confdir=`( | 1359 | ac_abs_confdir=`( |
| 1360 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 1360 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
| 1361 | pwd)` | 1361 | pwd)` |
| 1362 | # When building in place, set srcdir=. | 1362 | # When building in place, set srcdir=. |
| 1363 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 1363 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| @@ -1397,7 +1397,7 @@ Configuration: | |||
| 1397 | --help=short display options specific to this package | 1397 | --help=short display options specific to this package |
| 1398 | --help=recursive display the short help of all the included packages | 1398 | --help=recursive display the short help of all the included packages |
| 1399 | -V, --version display version information and exit | 1399 | -V, --version display version information and exit |
| 1400 | -q, --quiet, --silent do not print \`checking ...' messages | 1400 | -q, --quiet, --silent do not print \`checking...' messages |
| 1401 | --cache-file=FILE cache test results in FILE [disabled] | 1401 | --cache-file=FILE cache test results in FILE [disabled] |
| 1402 | -C, --config-cache alias for \`--cache-file=config.cache' | 1402 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1403 | -n, --no-create do not create output files | 1403 | -n, --no-create do not create output files |
| @@ -1613,9 +1613,9 @@ test -n "$ac_init_help" && exit $ac_status | |||
| 1613 | if $ac_init_version; then | 1613 | if $ac_init_version; then |
| 1614 | cat <<\_ACEOF | 1614 | cat <<\_ACEOF |
| 1615 | emacs configure 24.0.50 | 1615 | emacs configure 24.0.50 |
| 1616 | generated by GNU Autoconf 2.66 | 1616 | generated by GNU Autoconf 2.65 |
| 1617 | 1617 | ||
| 1618 | Copyright (C) 2010 Free Software Foundation, Inc. | 1618 | Copyright (C) 2009 Free Software Foundation, Inc. |
| 1619 | This configure script is free software; the Free Software Foundation | 1619 | This configure script is free software; the Free Software Foundation |
| 1620 | gives unlimited permission to copy, distribute and modify it. | 1620 | gives unlimited permission to copy, distribute and modify it. |
| 1621 | _ACEOF | 1621 | _ACEOF |
| @@ -1755,10 +1755,10 @@ fi | |||
| 1755 | ac_fn_c_check_header_mongrel () | 1755 | ac_fn_c_check_header_mongrel () |
| 1756 | { | 1756 | { |
| 1757 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1757 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1758 | if eval "test \"\${$3+set}\"" = set; then : | 1758 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 1759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1760 | $as_echo_n "checking for $2... " >&6; } | 1760 | $as_echo_n "checking for $2... " >&6; } |
| 1761 | if eval "test \"\${$3+set}\"" = set; then : | 1761 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1762 | $as_echo_n "(cached) " >&6 | 1762 | $as_echo_n "(cached) " >&6 |
| 1763 | fi | 1763 | fi |
| 1764 | eval ac_res=\$$3 | 1764 | eval ac_res=\$$3 |
| @@ -1821,7 +1821,7 @@ $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |||
| 1821 | esac | 1821 | esac |
| 1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1823 | $as_echo_n "checking for $2... " >&6; } | 1823 | $as_echo_n "checking for $2... " >&6; } |
| 1824 | if eval "test \"\${$3+set}\"" = set; then : | 1824 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1825 | $as_echo_n "(cached) " >&6 | 1825 | $as_echo_n "(cached) " >&6 |
| 1826 | else | 1826 | else |
| 1827 | eval "$3=\$ac_header_compiler" | 1827 | eval "$3=\$ac_header_compiler" |
| @@ -1885,7 +1885,7 @@ ac_fn_c_check_header_compile () | |||
| 1885 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1885 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 1886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1887 | $as_echo_n "checking for $2... " >&6; } | 1887 | $as_echo_n "checking for $2... " >&6; } |
| 1888 | if eval "test \"\${$3+set}\"" = set; then : | 1888 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1889 | $as_echo_n "(cached) " >&6 | 1889 | $as_echo_n "(cached) " >&6 |
| 1890 | else | 1890 | else |
| 1891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 1891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| @@ -1907,18 +1907,15 @@ $as_echo "$ac_res" >&6; } | |||
| 1907 | 1907 | ||
| 1908 | } # ac_fn_c_check_header_compile | 1908 | } # ac_fn_c_check_header_compile |
| 1909 | 1909 | ||
| 1910 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 1910 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
| 1911 | # --------------------------------------------- | 1911 | # ------------------------------------ |
| 1912 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 1912 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 1913 | # accordingly. | ||
| 1914 | ac_fn_c_check_decl () | 1913 | ac_fn_c_check_decl () |
| 1915 | { | 1914 | { |
| 1916 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1915 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1917 | as_decl_name=`echo $2|sed 's/ *(.*//'` | 1916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 |
| 1918 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 1917 | $as_echo_n "checking whether $2 is declared... " >&6; } |
| 1919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 1918 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1920 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||
| 1921 | if eval "test \"\${$3+set}\"" = set; then : | ||
| 1922 | $as_echo_n "(cached) " >&6 | 1919 | $as_echo_n "(cached) " >&6 |
| 1923 | else | 1920 | else |
| 1924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 1921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| @@ -1927,12 +1924,8 @@ $4 | |||
| 1927 | int | 1924 | int |
| 1928 | main () | 1925 | main () |
| 1929 | { | 1926 | { |
| 1930 | #ifndef $as_decl_name | 1927 | #ifndef $2 |
| 1931 | #ifdef __cplusplus | 1928 | (void) $2; |
| 1932 | (void) $as_decl_use; | ||
| 1933 | #else | ||
| 1934 | (void) $as_decl_name; | ||
| 1935 | #endif | ||
| 1936 | #endif | 1929 | #endif |
| 1937 | 1930 | ||
| 1938 | ; | 1931 | ; |
| @@ -1961,7 +1954,7 @@ ac_fn_c_check_header_preproc () | |||
| 1961 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1954 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 1955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1963 | $as_echo_n "checking for $2... " >&6; } | 1956 | $as_echo_n "checking for $2... " >&6; } |
| 1964 | if eval "test \"\${$3+set}\"" = set; then : | 1957 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1965 | $as_echo_n "(cached) " >&6 | 1958 | $as_echo_n "(cached) " >&6 |
| 1966 | else | 1959 | else |
| 1967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 1960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| @@ -1991,7 +1984,7 @@ ac_fn_c_check_member () | |||
| 1991 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1984 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 1985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 1993 | $as_echo_n "checking for $2.$3... " >&6; } | 1986 | $as_echo_n "checking for $2.$3... " >&6; } |
| 1994 | if eval "test \"\${$4+set}\"" = set; then : | 1987 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1995 | $as_echo_n "(cached) " >&6 | 1988 | $as_echo_n "(cached) " >&6 |
| 1996 | else | 1989 | else |
| 1997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 1990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| @@ -2047,7 +2040,7 @@ ac_fn_c_check_func () | |||
| 2047 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 2040 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 2041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2049 | $as_echo_n "checking for $2... " >&6; } | 2042 | $as_echo_n "checking for $2... " >&6; } |
| 2050 | if eval "test \"\${$3+set}\"" = set; then : | 2043 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2051 | $as_echo_n "(cached) " >&6 | 2044 | $as_echo_n "(cached) " >&6 |
| 2052 | else | 2045 | else |
| 2053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 2046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| @@ -2115,7 +2108,7 @@ ac_fn_c_check_type () | |||
| 2115 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 2108 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 2109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2117 | $as_echo_n "checking for $2... " >&6; } | 2110 | $as_echo_n "checking for $2... " >&6; } |
| 2118 | if eval "test \"\${$3+set}\"" = set; then : | 2111 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2119 | $as_echo_n "(cached) " >&6 | 2112 | $as_echo_n "(cached) " >&6 |
| 2120 | else | 2113 | else |
| 2121 | eval "$3=no" | 2114 | eval "$3=no" |
| @@ -2164,7 +2157,7 @@ This file contains any messages produced by compilers while | |||
| 2164 | running configure, to aid debugging if configure makes a mistake. | 2157 | running configure, to aid debugging if configure makes a mistake. |
| 2165 | 2158 | ||
| 2166 | It was created by emacs $as_me 24.0.50, which was | 2159 | It was created by emacs $as_me 24.0.50, which was |
| 2167 | generated by GNU Autoconf 2.66. Invocation command line was | 2160 | generated by GNU Autoconf 2.65. Invocation command line was |
| 2168 | 2161 | ||
| 2169 | $ $0 $@ | 2162 | $ $0 $@ |
| 2170 | 2163 | ||
| @@ -2274,9 +2267,11 @@ trap 'exit_status=$? | |||
| 2274 | { | 2267 | { |
| 2275 | echo | 2268 | echo |
| 2276 | 2269 | ||
| 2277 | $as_echo "## ---------------- ## | 2270 | cat <<\_ASBOX |
| 2271 | ## ---------------- ## | ||
| 2278 | ## Cache variables. ## | 2272 | ## Cache variables. ## |
| 2279 | ## ---------------- ##" | 2273 | ## ---------------- ## |
| 2274 | _ASBOX | ||
| 2280 | echo | 2275 | echo |
| 2281 | # The following way of writing the cache mishandles newlines in values, | 2276 | # The following way of writing the cache mishandles newlines in values, |
| 2282 | ( | 2277 | ( |
| @@ -2310,9 +2305,11 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |||
| 2310 | ) | 2305 | ) |
| 2311 | echo | 2306 | echo |
| 2312 | 2307 | ||
| 2313 | $as_echo "## ----------------- ## | 2308 | cat <<\_ASBOX |
| 2309 | ## ----------------- ## | ||
| 2314 | ## Output variables. ## | 2310 | ## Output variables. ## |
| 2315 | ## ----------------- ##" | 2311 | ## ----------------- ## |
| 2312 | _ASBOX | ||
| 2316 | echo | 2313 | echo |
| 2317 | for ac_var in $ac_subst_vars | 2314 | for ac_var in $ac_subst_vars |
| 2318 | do | 2315 | do |
| @@ -2325,9 +2322,11 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |||
| 2325 | echo | 2322 | echo |
| 2326 | 2323 | ||
| 2327 | if test -n "$ac_subst_files"; then | 2324 | if test -n "$ac_subst_files"; then |
| 2328 | $as_echo "## ------------------- ## | 2325 | cat <<\_ASBOX |
| 2326 | ## ------------------- ## | ||
| 2329 | ## File substitutions. ## | 2327 | ## File substitutions. ## |
| 2330 | ## ------------------- ##" | 2328 | ## ------------------- ## |
| 2329 | _ASBOX | ||
| 2331 | echo | 2330 | echo |
| 2332 | for ac_var in $ac_subst_files | 2331 | for ac_var in $ac_subst_files |
| 2333 | do | 2332 | do |
| @@ -2341,9 +2340,11 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |||
| 2341 | fi | 2340 | fi |
| 2342 | 2341 | ||
| 2343 | if test -s confdefs.h; then | 2342 | if test -s confdefs.h; then |
| 2344 | $as_echo "## ----------- ## | 2343 | cat <<\_ASBOX |
| 2344 | ## ----------- ## | ||
| 2345 | ## confdefs.h. ## | 2345 | ## confdefs.h. ## |
| 2346 | ## ----------- ##" | 2346 | ## ----------- ## |
| 2347 | _ASBOX | ||
| 2347 | echo | 2348 | echo |
| 2348 | cat confdefs.h | 2349 | cat confdefs.h |
| 2349 | echo | 2350 | echo |
| @@ -2398,12 +2399,7 @@ _ACEOF | |||
| 2398 | ac_site_file1=NONE | 2399 | ac_site_file1=NONE |
| 2399 | ac_site_file2=NONE | 2400 | ac_site_file2=NONE |
| 2400 | if test -n "$CONFIG_SITE"; then | 2401 | if test -n "$CONFIG_SITE"; then |
| 2401 | # We do not want a PATH search for config.site. | 2402 | ac_site_file1=$CONFIG_SITE |
| 2402 | case $CONFIG_SITE in #(( | ||
| 2403 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
| 2404 | */*) ac_site_file1=$CONFIG_SITE;; | ||
| 2405 | *) ac_site_file1=./$CONFIG_SITE;; | ||
| 2406 | esac | ||
| 2407 | elif test "x$prefix" != xNONE; then | 2403 | elif test "x$prefix" != xNONE; then |
| 2408 | ac_site_file1=$prefix/share/config.site | 2404 | ac_site_file1=$prefix/share/config.site |
| 2409 | ac_site_file2=$prefix/etc/config.site | 2405 | ac_site_file2=$prefix/etc/config.site |
| @@ -2418,11 +2414,7 @@ do | |||
| 2418 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 2414 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2419 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | 2415 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2420 | sed 's/^/| /' "$ac_site_file" >&5 | 2416 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2421 | . "$ac_site_file" \ | 2417 | . "$ac_site_file" |
| 2422 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
| 2423 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
| 2424 | as_fn_error $? "failed to load site script $ac_site_file | ||
| 2425 | See \`config.log' for more details" "$LINENO" 5; } | ||
| 2426 | fi | 2418 | fi |
| 2427 | done | 2419 | done |
| 2428 | 2420 | ||
| @@ -2503,7 +2495,7 @@ if $ac_cache_corrupted; then | |||
| 2503 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 2495 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2504 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2505 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 2497 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2506 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | 2498 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2507 | fi | 2499 | fi |
| 2508 | ## -------------------- ## | 2500 | ## -------------------- ## |
| 2509 | ## Main body of script. ## | 2501 | ## Main body of script. ## |
| @@ -2677,7 +2669,7 @@ if test "${with_x_toolkit+set}" = set; then : | |||
| 2677 | g | gt | gtk ) val=gtk ;; | 2669 | g | gt | gtk ) val=gtk ;; |
| 2678 | gtk3 ) val=gtk3 ;; | 2670 | gtk3 ) val=gtk3 ;; |
| 2679 | * ) | 2671 | * ) |
| 2680 | as_fn_error $? "\`--with-x-toolkit=$withval' is invalid; | 2672 | as_fn_error "\`--with-x-toolkit=$withval' is invalid; |
| 2681 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or | 2673 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or |
| 2682 | \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5 | 2674 | \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5 |
| 2683 | ;; | 2675 | ;; |
| @@ -2956,7 +2948,7 @@ do | |||
| 2956 | stringfreelist) ac_gc_check_string_free_list=1 ;; | 2948 | stringfreelist) ac_gc_check_string_free_list=1 ;; |
| 2957 | xmallocoverrun) ac_xmalloc_overrun=1 ;; | 2949 | xmallocoverrun) ac_xmalloc_overrun=1 ;; |
| 2958 | conslist) ac_gc_check_cons_list=1 ;; | 2950 | conslist) ac_gc_check_cons_list=1 ;; |
| 2959 | *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;; | 2951 | *) as_fn_error "unknown check category $check" "$LINENO" 5 ;; |
| 2960 | esac | 2952 | esac |
| 2961 | done | 2953 | done |
| 2962 | IFS="$ac_save_IFS" | 2954 | IFS="$ac_save_IFS" |
| @@ -3074,22 +3066,16 @@ fi | |||
| 3074 | 3066 | ||
| 3075 | ac_aux_dir= | 3067 | ac_aux_dir= |
| 3076 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 3068 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 3077 | if test -f "$ac_dir/install-sh"; then | 3069 | for ac_t in install-sh install.sh shtool; do |
| 3078 | ac_aux_dir=$ac_dir | 3070 | if test -f "$ac_dir/$ac_t"; then |
| 3079 | ac_install_sh="$ac_aux_dir/install-sh -c" | 3071 | ac_aux_dir=$ac_dir |
| 3080 | break | 3072 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 3081 | elif test -f "$ac_dir/install.sh"; then | 3073 | break 2 |
| 3082 | ac_aux_dir=$ac_dir | 3074 | fi |
| 3083 | ac_install_sh="$ac_aux_dir/install.sh -c" | 3075 | done |
| 3084 | break | ||
| 3085 | elif test -f "$ac_dir/shtool"; then | ||
| 3086 | ac_aux_dir=$ac_dir | ||
| 3087 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
| 3088 | break | ||
| 3089 | fi | ||
| 3090 | done | 3076 | done |
| 3091 | if test -z "$ac_aux_dir"; then | 3077 | if test -z "$ac_aux_dir"; then |
| 3092 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 3078 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 3093 | fi | 3079 | fi |
| 3094 | 3080 | ||
| 3095 | # These three variables are undocumented and unsupported, | 3081 | # These three variables are undocumented and unsupported, |
| @@ -3103,7 +3089,7 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |||
| 3103 | 3089 | ||
| 3104 | # Make sure we can run config.sub. | 3090 | # Make sure we can run config.sub. |
| 3105 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 3091 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3106 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 3092 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 3107 | 3093 | ||
| 3108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 3109 | $as_echo_n "checking build system type... " >&6; } | 3095 | $as_echo_n "checking build system type... " >&6; } |
| @@ -3114,16 +3100,16 @@ else | |||
| 3114 | test "x$ac_build_alias" = x && | 3100 | test "x$ac_build_alias" = x && |
| 3115 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 3101 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3116 | test "x$ac_build_alias" = x && | 3102 | test "x$ac_build_alias" = x && |
| 3117 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 3103 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
| 3118 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 3104 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 3119 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | 3105 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 3120 | 3106 | ||
| 3121 | fi | 3107 | fi |
| 3122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 3108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 3123 | $as_echo "$ac_cv_build" >&6; } | 3109 | $as_echo "$ac_cv_build" >&6; } |
| 3124 | case $ac_cv_build in | 3110 | case $ac_cv_build in |
| 3125 | *-*-*) ;; | 3111 | *-*-*) ;; |
| 3126 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 3112 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
| 3127 | esac | 3113 | esac |
| 3128 | build=$ac_cv_build | 3114 | build=$ac_cv_build |
| 3129 | ac_save_IFS=$IFS; IFS='-' | 3115 | ac_save_IFS=$IFS; IFS='-' |
| @@ -3148,7 +3134,7 @@ else | |||
| 3148 | ac_cv_host=$ac_cv_build | 3134 | ac_cv_host=$ac_cv_build |
| 3149 | else | 3135 | else |
| 3150 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 3136 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3151 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | 3137 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 3152 | fi | 3138 | fi |
| 3153 | 3139 | ||
| 3154 | fi | 3140 | fi |
| @@ -3156,7 +3142,7 @@ fi | |||
| 3156 | $as_echo "$ac_cv_host" >&6; } | 3142 | $as_echo "$ac_cv_host" >&6; } |
| 3157 | case $ac_cv_host in | 3143 | case $ac_cv_host in |
| 3158 | *-*-*) ;; | 3144 | *-*-*) ;; |
| 3159 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 3145 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
| 3160 | esac | 3146 | esac |
| 3161 | host=$ac_cv_host | 3147 | host=$ac_cv_host |
| 3162 | ac_save_IFS=$IFS; IFS='-' | 3148 | ac_save_IFS=$IFS; IFS='-' |
| @@ -3450,7 +3436,7 @@ fi | |||
| 3450 | 3436 | ||
| 3451 | 3437 | ||
| 3452 | if test $unported = yes; then | 3438 | if test $unported = yes; then |
| 3453 | as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems. | 3439 | as_fn_error "Emacs hasn't been ported to \`${canonical}' systems. |
| 3454 | Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 | 3440 | Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 |
| 3455 | fi | 3441 | fi |
| 3456 | 3442 | ||
| @@ -3764,8 +3750,8 @@ fi | |||
| 3764 | 3750 | ||
| 3765 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 3751 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3766 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 3752 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3767 | as_fn_error $? "no acceptable C compiler found in \$PATH | 3753 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3768 | See \`config.log' for more details" "$LINENO" 5; } | 3754 | See \`config.log' for more details." "$LINENO" 5; } |
| 3769 | 3755 | ||
| 3770 | # Provide some information about the compiler. | 3756 | # Provide some information about the compiler. |
| 3771 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 3757 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| @@ -3879,8 +3865,9 @@ sed 's/^/| /' conftest.$ac_ext >&5 | |||
| 3879 | 3865 | ||
| 3880 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 3866 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3881 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 3867 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3882 | as_fn_error 77 "C compiler cannot create executables | 3868 | { as_fn_set_status 77 |
| 3883 | See \`config.log' for more details" "$LINENO" 5; } | 3869 | as_fn_error "C compiler cannot create executables |
| 3870 | See \`config.log' for more details." "$LINENO" 5; }; } | ||
| 3884 | else | 3871 | else |
| 3885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 3872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3886 | $as_echo "yes" >&6; } | 3873 | $as_echo "yes" >&6; } |
| @@ -3922,8 +3909,8 @@ done | |||
| 3922 | else | 3909 | else |
| 3923 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 3910 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3924 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 3911 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3925 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 3912 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3926 | See \`config.log' for more details" "$LINENO" 5; } | 3913 | See \`config.log' for more details." "$LINENO" 5; } |
| 3927 | fi | 3914 | fi |
| 3928 | rm -f conftest conftest$ac_cv_exeext | 3915 | rm -f conftest conftest$ac_cv_exeext |
| 3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 3916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| @@ -3980,9 +3967,9 @@ $as_echo "$ac_try_echo"; } >&5 | |||
| 3980 | else | 3967 | else |
| 3981 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 3968 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3982 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 3969 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3983 | as_fn_error $? "cannot run C compiled programs. | 3970 | as_fn_error "cannot run C compiled programs. |
| 3984 | If you meant to cross compile, use \`--host'. | 3971 | If you meant to cross compile, use \`--host'. |
| 3985 | See \`config.log' for more details" "$LINENO" 5; } | 3972 | See \`config.log' for more details." "$LINENO" 5; } |
| 3986 | fi | 3973 | fi |
| 3987 | fi | 3974 | fi |
| 3988 | fi | 3975 | fi |
| @@ -4033,8 +4020,8 @@ sed 's/^/| /' conftest.$ac_ext >&5 | |||
| 4033 | 4020 | ||
| 4034 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 4021 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4035 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 4022 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4036 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 4023 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 4037 | See \`config.log' for more details" "$LINENO" 5; } | 4024 | See \`config.log' for more details." "$LINENO" 5; } |
| 4038 | fi | 4025 | fi |
| 4039 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 4026 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 4040 | fi | 4027 | fi |
| @@ -4451,8 +4438,8 @@ if $ac_preproc_ok; then : | |||
| 4451 | else | 4438 | else |
| 4452 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 4439 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4453 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 4440 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4454 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 4441 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4455 | See \`config.log' for more details" "$LINENO" 5; } | 4442 | See \`config.log' for more details." "$LINENO" 5; } |
| 4456 | fi | 4443 | fi |
| 4457 | 4444 | ||
| 4458 | ac_ext=c | 4445 | ac_ext=c |
| @@ -4513,7 +4500,7 @@ esac | |||
| 4513 | done | 4500 | done |
| 4514 | IFS=$as_save_IFS | 4501 | IFS=$as_save_IFS |
| 4515 | if test -z "$ac_cv_path_GREP"; then | 4502 | if test -z "$ac_cv_path_GREP"; then |
| 4516 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 4503 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4517 | fi | 4504 | fi |
| 4518 | else | 4505 | else |
| 4519 | ac_cv_path_GREP=$GREP | 4506 | ac_cv_path_GREP=$GREP |
| @@ -4579,7 +4566,7 @@ esac | |||
| 4579 | done | 4566 | done |
| 4580 | IFS=$as_save_IFS | 4567 | IFS=$as_save_IFS |
| 4581 | if test -z "$ac_cv_path_EGREP"; then | 4568 | if test -z "$ac_cv_path_EGREP"; then |
| 4582 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 4569 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4583 | fi | 4570 | fi |
| 4584 | else | 4571 | else |
| 4585 | ac_cv_path_EGREP=$EGREP | 4572 | ac_cv_path_EGREP=$EGREP |
| @@ -4711,7 +4698,8 @@ do : | |||
| 4711 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 4698 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4712 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 4699 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4713 | " | 4700 | " |
| 4714 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 4701 | eval as_val=\$$as_ac_Header |
| 4702 | if test "x$as_val" = x""yes; then : | ||
| 4715 | cat >>confdefs.h <<_ACEOF | 4703 | cat >>confdefs.h <<_ACEOF |
| 4716 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 4704 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4717 | _ACEOF | 4705 | _ACEOF |
| @@ -5008,8 +4996,8 @@ if $ac_preproc_ok; then : | |||
| 5008 | else | 4996 | else |
| 5009 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 4997 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5010 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 4998 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5011 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 4999 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 5012 | See \`config.log' for more details" "$LINENO" 5; } | 5000 | See \`config.log' for more details." "$LINENO" 5; } |
| 5013 | fi | 5001 | fi |
| 5014 | 5002 | ||
| 5015 | ac_ext=c | 5003 | ac_ext=c |
| @@ -5446,7 +5434,7 @@ if test "$MAKEINFO" = "no"; then | |||
| 5446 | if test "x${with_makeinfo}" = "xno"; then | 5434 | if test "x${with_makeinfo}" = "xno"; then |
| 5447 | MAKEINFO=off | 5435 | MAKEINFO=off |
| 5448 | elif test ! -e $srcdir/info/emacs; then | 5436 | elif test ! -e $srcdir/info/emacs; then |
| 5449 | as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your | 5437 | as_fn_error "You do not seem to have makeinfo >= 4.6, and your |
| 5450 | source tree does not seem to have pre-built manuals in the \`info' directory. | 5438 | source tree does not seem to have pre-built manuals in the \`info' directory. |
| 5451 | Either install a suitable version of makeinfo, or re-run configure | 5439 | Either install a suitable version of makeinfo, or re-run configure |
| 5452 | with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 | 5440 | with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 |
| @@ -5600,7 +5588,7 @@ fi | |||
| 5600 | if test "x$GCC" = "xyes"; then | 5588 | if test "x$GCC" = "xyes"; then |
| 5601 | C_SWITCH_MACHINE="-fno-common" | 5589 | C_SWITCH_MACHINE="-fno-common" |
| 5602 | else | 5590 | else |
| 5603 | as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5 | 5591 | as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5 |
| 5604 | fi | 5592 | fi |
| 5605 | else | 5593 | else |
| 5606 | UNEXEC_OBJ=unexalpha.o | 5594 | UNEXEC_OBJ=unexalpha.o |
| @@ -5878,7 +5866,7 @@ else | |||
| 5878 | ## Some platforms don't use any of these files, so it is not | 5866 | ## Some platforms don't use any of these files, so it is not |
| 5879 | ## appropriate to put this test outside the if block. | 5867 | ## appropriate to put this test outside the if block. |
| 5880 | test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ | 5868 | test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ |
| 5881 | as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5 | 5869 | as_fn_error "crt*.o not found in specified location." "$LINENO" 5 |
| 5882 | 5870 | ||
| 5883 | fi | 5871 | fi |
| 5884 | 5872 | ||
| @@ -5933,7 +5921,8 @@ if test "${with_sound}" != "no"; then | |||
| 5933 | do : | 5921 | do : |
| 5934 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 5922 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5935 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 5923 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 5936 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 5924 | eval as_val=\$$as_ac_Header |
| 5925 | if test "x$as_val" = x""yes; then : | ||
| 5937 | cat >>confdefs.h <<_ACEOF | 5926 | cat >>confdefs.h <<_ACEOF |
| 5938 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 5927 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5939 | _ACEOF | 5928 | _ACEOF |
| @@ -6124,7 +6113,7 @@ else | |||
| 6124 | fi | 6113 | fi |
| 6125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6126 | if test "$emacs_alsa_subdir" != yes; then | 6115 | if test "$emacs_alsa_subdir" != yes; then |
| 6127 | as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 | 6116 | as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 |
| 6128 | fi | 6117 | fi |
| 6129 | ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" | 6118 | ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" |
| 6130 | fi | 6119 | fi |
| @@ -6155,11 +6144,12 @@ for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | |||
| 6155 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | 6144 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
| 6156 | stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ | 6145 | stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ |
| 6157 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ | 6146 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ |
| 6158 | sys/utsname.h pwd.h utmp.h dirent.h | 6147 | sys/utsname.h pwd.h utmp.h dirent.h util.h |
| 6159 | do : | 6148 | do : |
| 6160 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 6149 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6161 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 6150 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 6162 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 6151 | eval as_val=\$$as_ac_Header |
| 6152 | if test "x$as_val" = x""yes; then : | ||
| 6163 | cat >>confdefs.h <<_ACEOF | 6153 | cat >>confdefs.h <<_ACEOF |
| 6164 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 6154 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6165 | _ACEOF | 6155 | _ACEOF |
| @@ -7001,7 +6991,7 @@ fi | |||
| 7001 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | 6991 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 7002 | set x ${MAKE-make} | 6992 | set x ${MAKE-make} |
| 7003 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | 6993 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 7004 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | 6994 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 7005 | $as_echo_n "(cached) " >&6 | 6995 | $as_echo_n "(cached) " >&6 |
| 7006 | else | 6996 | else |
| 7007 | cat >conftest.make <<\_ACEOF | 6997 | cat >conftest.make <<\_ACEOF |
| @@ -7009,7 +6999,7 @@ SHELL = /bin/sh | |||
| 7009 | all: | 6999 | all: |
| 7010 | @echo '@@@%%%=$(MAKE)=@@@%%%' | 7000 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 7011 | _ACEOF | 7001 | _ACEOF |
| 7012 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | 7002 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 7013 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | 7003 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 7014 | *@@@%%%=?*=@@@%%%*) | 7004 | *@@@%%%=?*=@@@%%%*) |
| 7015 | eval ac_cv_prog_make_${ac_make}_set=yes;; | 7005 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| @@ -7145,7 +7135,7 @@ if test "x$with_x" = xno; then | |||
| 7145 | have_x=disabled | 7135 | have_x=disabled |
| 7146 | else | 7136 | else |
| 7147 | case $x_includes,$x_libraries in #( | 7137 | case $x_includes,$x_libraries in #( |
| 7148 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( | 7138 | *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( |
| 7149 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : | 7139 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : |
| 7150 | $as_echo_n "(cached) " >&6 | 7140 | $as_echo_n "(cached) " >&6 |
| 7151 | else | 7141 | else |
| @@ -7163,7 +7153,7 @@ libdir: | |||
| 7163 | @echo libdir='${LIBDIR}' | 7153 | @echo libdir='${LIBDIR}' |
| 7164 | _ACEOF | 7154 | _ACEOF |
| 7165 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | 7155 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
| 7166 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | 7156 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 7167 | for ac_var in incroot usrlibdir libdir; do | 7157 | for ac_var in incroot usrlibdir libdir; do |
| 7168 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | 7158 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 7169 | done | 7159 | done |
| @@ -7432,7 +7422,7 @@ if test "${with_ns}" != no; then | |||
| 7432 | if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : | 7422 | if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : |
| 7433 | HAVE_NS=yes | 7423 | HAVE_NS=yes |
| 7434 | else | 7424 | else |
| 7435 | as_fn_error $? "\`--with-ns' was specified, but the include | 7425 | as_fn_error "\`--with-ns' was specified, but the include |
| 7436 | files are missing or cannot be compiled." "$LINENO" 5 | 7426 | files are missing or cannot be compiled." "$LINENO" 5 |
| 7437 | fi | 7427 | fi |
| 7438 | 7428 | ||
| @@ -7548,7 +7538,7 @@ fi | |||
| 7548 | if test "$HAVE_XSERVER" = true || | 7538 | if test "$HAVE_XSERVER" = true || |
| 7549 | test -n "$DISPLAY" || | 7539 | test -n "$DISPLAY" || |
| 7550 | test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then | 7540 | test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then |
| 7551 | as_fn_error $? "You seem to be running X, but no X development libraries | 7541 | as_fn_error "You seem to be running X, but no X development libraries |
| 7552 | were found. You should install the relevant development files for X | 7542 | were found. You should install the relevant development files for X |
| 7553 | and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make | 7543 | and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make |
| 7554 | sure you have development files for image handling, i.e. | 7544 | sure you have development files for image handling, i.e. |
| @@ -7671,7 +7661,8 @@ do : | |||
| 7671 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 7661 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7672 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 7662 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7673 | " | 7663 | " |
| 7674 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 7664 | eval as_val=\$$as_ac_Header |
| 7665 | if test "x$as_val" = x""yes; then : | ||
| 7675 | cat >>confdefs.h <<_ACEOF | 7666 | cat >>confdefs.h <<_ACEOF |
| 7676 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 7667 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7677 | _ACEOF | 7668 | _ACEOF |
| @@ -7777,7 +7768,6 @@ int | |||
| 7777 | main () | 7768 | main () |
| 7778 | { | 7769 | { |
| 7779 | char *data, *data2, *data3; | 7770 | char *data, *data2, *data3; |
| 7780 | const char *cdata2; | ||
| 7781 | int i, pagesize; | 7771 | int i, pagesize; |
| 7782 | int fd, fd2; | 7772 | int fd, fd2; |
| 7783 | 7773 | ||
| @@ -7802,10 +7792,10 @@ main () | |||
| 7802 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | 7792 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 7803 | if (fd2 < 0) | 7793 | if (fd2 < 0) |
| 7804 | return 4; | 7794 | return 4; |
| 7805 | cdata2 = ""; | 7795 | data2 = ""; |
| 7806 | if (write (fd2, cdata2, 1) != 1) | 7796 | if (write (fd2, data2, 1) != 1) |
| 7807 | return 5; | 7797 | return 5; |
| 7808 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | 7798 | data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 7809 | if (data2 == MAP_FAILED) | 7799 | if (data2 == MAP_FAILED) |
| 7810 | return 6; | 7800 | return 6; |
| 7811 | for (i = 0; i < pagesize; ++i) | 7801 | for (i = 0; i < pagesize; ++i) |
| @@ -8178,7 +8168,8 @@ XScreenNumberOfScreen XSetWMProtocols | |||
| 8178 | do : | 8168 | do : |
| 8179 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 8169 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8180 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 8170 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 8181 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 8171 | eval as_val=\$$as_ac_var |
| 8172 | if test "x$as_val" = x""yes; then : | ||
| 8182 | cat >>confdefs.h <<_ACEOF | 8173 | cat >>confdefs.h <<_ACEOF |
| 8183 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 8174 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8184 | _ACEOF | 8175 | _ACEOF |
| @@ -8459,7 +8450,7 @@ $as_echo "no" >&6; } | |||
| 8459 | fi | 8450 | fi |
| 8460 | 8451 | ||
| 8461 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then | 8452 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then |
| 8462 | as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5 | 8453 | as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 |
| 8463 | fi | 8454 | fi |
| 8464 | fi | 8455 | fi |
| 8465 | 8456 | ||
| @@ -8565,7 +8556,7 @@ $as_echo "no" >&6; } | |||
| 8565 | fi | 8556 | fi |
| 8566 | 8557 | ||
| 8567 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then | 8558 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then |
| 8568 | as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5 | 8559 | as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 |
| 8569 | fi | 8560 | fi |
| 8570 | fi | 8561 | fi |
| 8571 | fi | 8562 | fi |
| @@ -8592,7 +8583,7 @@ done | |||
| 8592 | 8583 | ||
| 8593 | if test "${GTK_COMPILES}" != "yes"; then | 8584 | if test "${GTK_COMPILES}" != "yes"; then |
| 8594 | if test "$USE_X_TOOLKIT" != "maybe"; then | 8585 | if test "$USE_X_TOOLKIT" != "maybe"; then |
| 8595 | as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; | 8586 | as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; |
| 8596 | fi | 8587 | fi |
| 8597 | else | 8588 | else |
| 8598 | HAVE_GTK=yes | 8589 | HAVE_GTK=yes |
| @@ -8722,7 +8713,8 @@ $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h | |||
| 8722 | do : | 8713 | do : |
| 8723 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 8714 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8724 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 8715 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 8725 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 8716 | eval as_val=\$$as_ac_var |
| 8717 | if test "x$as_val" = x""yes; then : | ||
| 8726 | cat >>confdefs.h <<_ACEOF | 8718 | cat >>confdefs.h <<_ACEOF |
| 8727 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 8719 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8728 | _ACEOF | 8720 | _ACEOF |
| @@ -9087,7 +9079,7 @@ $as_echo "yes; using Lucid toolkit" >&6; } | |||
| 9087 | USE_X_TOOLKIT=LUCID | 9079 | USE_X_TOOLKIT=LUCID |
| 9088 | LUCID_LIBW=-lXaw | 9080 | LUCID_LIBW=-lXaw |
| 9089 | elif test x"${USE_X_TOOLKIT}" = xLUCID; then | 9081 | elif test x"${USE_X_TOOLKIT}" = xLUCID; then |
| 9090 | as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 | 9082 | as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 |
| 9091 | else | 9083 | else |
| 9092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5 | 9084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5 |
| 9093 | $as_echo "no; do not use toolkit by default" >&6; } | 9085 | $as_echo "no; do not use toolkit by default" >&6; } |
| @@ -10264,7 +10256,8 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 10264 | do : | 10256 | do : |
| 10265 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 10257 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10266 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 10258 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 10267 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 10259 | eval as_val=\$$as_ac_Header |
| 10260 | if test "x$as_val" = x""yes; then : | ||
| 10268 | cat >>confdefs.h <<_ACEOF | 10261 | cat >>confdefs.h <<_ACEOF |
| 10269 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 10262 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10270 | _ACEOF | 10263 | _ACEOF |
| @@ -10516,7 +10509,7 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 10516 | MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" | 10509 | MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" |
| 10517 | 10510 | ||
| 10518 | if test "X${MISSING}" != X; then | 10511 | if test "X${MISSING}" != X; then |
| 10519 | as_fn_error $? "The following required libraries were not found: | 10512 | as_fn_error "The following required libraries were not found: |
| 10520 | $MISSING | 10513 | $MISSING |
| 10521 | Maybe some development libraries/packages are missing? | 10514 | Maybe some development libraries/packages are missing? |
| 10522 | If you don't want to link with them give | 10515 | If you don't want to link with them give |
| @@ -10851,7 +10844,8 @@ if test $ac_cv_os_cray = yes; then | |||
| 10851 | for ac_func in _getb67 GETB67 getb67; do | 10844 | for ac_func in _getb67 GETB67 getb67; do |
| 10852 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 10845 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10853 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 10846 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10854 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 10847 | eval as_val=\$$as_ac_var |
| 10848 | if test "x$as_val" = x""yes; then : | ||
| 10855 | 10849 | ||
| 10856 | cat >>confdefs.h <<_ACEOF | 10850 | cat >>confdefs.h <<_ACEOF |
| 10857 | #define CRAY_STACKSEG_END $ac_func | 10851 | #define CRAY_STACKSEG_END $ac_func |
| @@ -10915,7 +10909,7 @@ fi | |||
| 10915 | 10909 | ||
| 10916 | 10910 | ||
| 10917 | if test x"$ac_cv_func_alloca_works" != xyes; then | 10911 | if test x"$ac_cv_func_alloca_works" != xyes; then |
| 10918 | as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5 | 10912 | as_fn_error "a system implementation of alloca is required " "$LINENO" 5 |
| 10919 | fi | 10913 | fi |
| 10920 | 10914 | ||
| 10921 | # fmod, logb, and frexp are found in -lm on most systems. | 10915 | # fmod, logb, and frexp are found in -lm on most systems. |
| @@ -11111,7 +11105,7 @@ fi | |||
| 11111 | 11105 | ||
| 11112 | 11106 | ||
| 11113 | if test $ac_cv_prog_liblockfile = yes; then | 11107 | if test $ac_cv_prog_liblockfile = yes; then |
| 11114 | as_fn_error $? "Shared liblockfile found but can't link against it. | 11108 | as_fn_error "Shared liblockfile found but can't link against it. |
| 11115 | This probably means that movemail could lose mail. | 11109 | This probably means that movemail could lose mail. |
| 11116 | There may be a \`development' package to install containing liblockfile." "$LINENO" 5 | 11110 | There may be a \`development' package to install containing liblockfile." "$LINENO" 5 |
| 11117 | fi | 11111 | fi |
| @@ -11200,7 +11194,8 @@ cfmakeraw cfsetspeed isnan copysign __executable_start | |||
| 11200 | do : | 11194 | do : |
| 11201 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11195 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11202 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 11196 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11203 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 11197 | eval as_val=\$$as_ac_var |
| 11198 | if test "x$as_val" = x""yes; then : | ||
| 11204 | cat >>confdefs.h <<_ACEOF | 11199 | cat >>confdefs.h <<_ACEOF |
| 11205 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 11200 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11206 | _ACEOF | 11201 | _ACEOF |
| @@ -11231,7 +11226,8 @@ done | |||
| 11231 | do : | 11226 | do : |
| 11232 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11227 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11233 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 11228 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11234 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 11229 | eval as_val=\$$as_ac_var |
| 11230 | if test "x$as_val" = x""yes; then : | ||
| 11235 | cat >>confdefs.h <<_ACEOF | 11231 | cat >>confdefs.h <<_ACEOF |
| 11236 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 11232 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11237 | _ACEOF | 11233 | _ACEOF |
| @@ -11283,8 +11279,8 @@ static time_t time_t_max; | |||
| 11283 | static time_t time_t_min; | 11279 | static time_t time_t_min; |
| 11284 | 11280 | ||
| 11285 | /* Values we'll use to set the TZ environment variable. */ | 11281 | /* Values we'll use to set the TZ environment variable. */ |
| 11286 | static const char *tz_strings[] = { | 11282 | static char *tz_strings[] = { |
| 11287 | (const char *) 0, "TZ=GMT0", "TZ=JST-9", | 11283 | (char *) 0, "TZ=GMT0", "TZ=JST-9", |
| 11288 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | 11284 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
| 11289 | }; | 11285 | }; |
| 11290 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | 11286 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) |
| @@ -11301,7 +11297,7 @@ spring_forward_gap () | |||
| 11301 | instead of "TZ=America/Vancouver" in order to detect the bug even | 11297 | instead of "TZ=America/Vancouver" in order to detect the bug even |
| 11302 | on systems that don't support the Olson extension, or don't have the | 11298 | on systems that don't support the Olson extension, or don't have the |
| 11303 | full zoneinfo tables installed. */ | 11299 | full zoneinfo tables installed. */ |
| 11304 | putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); | 11300 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); |
| 11305 | 11301 | ||
| 11306 | tm.tm_year = 98; | 11302 | tm.tm_year = 98; |
| 11307 | tm.tm_mon = 3; | 11303 | tm.tm_mon = 3; |
| @@ -11314,14 +11310,16 @@ spring_forward_gap () | |||
| 11314 | } | 11310 | } |
| 11315 | 11311 | ||
| 11316 | static int | 11312 | static int |
| 11317 | mktime_test1 (time_t now) | 11313 | mktime_test1 (now) |
| 11314 | time_t now; | ||
| 11318 | { | 11315 | { |
| 11319 | struct tm *lt; | 11316 | struct tm *lt; |
| 11320 | return ! (lt = localtime (&now)) || mktime (lt) == now; | 11317 | return ! (lt = localtime (&now)) || mktime (lt) == now; |
| 11321 | } | 11318 | } |
| 11322 | 11319 | ||
| 11323 | static int | 11320 | static int |
| 11324 | mktime_test (time_t now) | 11321 | mktime_test (now) |
| 11322 | time_t now; | ||
| 11325 | { | 11323 | { |
| 11326 | return (mktime_test1 (now) | 11324 | return (mktime_test1 (now) |
| 11327 | && mktime_test1 ((time_t) (time_t_max - now)) | 11325 | && mktime_test1 ((time_t) (time_t_max - now)) |
| @@ -11345,7 +11343,8 @@ irix_6_4_bug () | |||
| 11345 | } | 11343 | } |
| 11346 | 11344 | ||
| 11347 | static int | 11345 | static int |
| 11348 | bigtime_test (int j) | 11346 | bigtime_test (j) |
| 11347 | int j; | ||
| 11349 | { | 11348 | { |
| 11350 | struct tm tm; | 11349 | struct tm tm; |
| 11351 | time_t now; | 11350 | time_t now; |
| @@ -11389,7 +11388,7 @@ year_2050_test () | |||
| 11389 | instead of "TZ=America/Vancouver" in order to detect the bug even | 11388 | instead of "TZ=America/Vancouver" in order to detect the bug even |
| 11390 | on systems that don't support the Olson extension, or don't have the | 11389 | on systems that don't support the Olson extension, or don't have the |
| 11391 | full zoneinfo tables installed. */ | 11390 | full zoneinfo tables installed. */ |
| 11392 | putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); | 11391 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); |
| 11393 | 11392 | ||
| 11394 | t = mktime (&tm); | 11393 | t = mktime (&tm); |
| 11395 | 11394 | ||
| @@ -11424,7 +11423,7 @@ main () | |||
| 11424 | for (i = 0; i < N_STRINGS; i++) | 11423 | for (i = 0; i < N_STRINGS; i++) |
| 11425 | { | 11424 | { |
| 11426 | if (tz_strings[i]) | 11425 | if (tz_strings[i]) |
| 11427 | putenv ((char*) tz_strings[i]); | 11426 | putenv (tz_strings[i]); |
| 11428 | 11427 | ||
| 11429 | for (t = 0; t <= time_t_max - delta; t += delta) | 11428 | for (t = 0; t <= time_t_max - delta; t += delta) |
| 11430 | if (! mktime_test (t)) | 11429 | if (! mktime_test (t)) |
| @@ -11476,7 +11475,7 @@ ac_have_func=no # yes means we've found a way to get the load average. | |||
| 11476 | 11475 | ||
| 11477 | # Make sure getloadavg.c is where it belongs, at configure-time. | 11476 | # Make sure getloadavg.c is where it belongs, at configure-time. |
| 11478 | test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || | 11477 | test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || |
| 11479 | as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5 | 11478 | as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5 |
| 11480 | 11479 | ||
| 11481 | ac_save_LIBS=$LIBS | 11480 | ac_save_LIBS=$LIBS |
| 11482 | 11481 | ||
| @@ -12345,7 +12344,7 @@ else | |||
| 12345 | fi | 12344 | fi |
| 12346 | 12345 | ||
| 12347 | if test "$have_tputs_et_al" != true; then | 12346 | if test "$have_tputs_et_al" != true; then |
| 12348 | as_fn_error $? "I couldn't find termcap functions (tputs and friends). | 12347 | as_fn_error "I couldn't find termcap functions (tputs and friends). |
| 12349 | Maybe some development libraries/packages are missing? Try installing | 12348 | Maybe some development libraries/packages are missing? Try installing |
| 12350 | libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5 | 12349 | libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5 |
| 12351 | fi | 12350 | fi |
| @@ -13492,7 +13491,8 @@ for ac_func in fork vfork | |||
| 13492 | do : | 13491 | do : |
| 13493 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 13492 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13494 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 13493 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 13495 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 13494 | eval as_val=\$$as_ac_var |
| 13495 | if test "x$as_val" = x""yes; then : | ||
| 13496 | cat >>confdefs.h <<_ACEOF | 13496 | cat >>confdefs.h <<_ACEOF |
| 13497 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 13497 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13498 | _ACEOF | 13498 | _ACEOF |
| @@ -13866,14 +13866,14 @@ if test "x$GCC" = xyes \ | |||
| 13866 | && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \ | 13866 | && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \ |
| 13867 | && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \ | 13867 | && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \ |
| 13868 | && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then | 13868 | && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then |
| 13869 | as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5 | 13869 | as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5 |
| 13870 | fi | 13870 | fi |
| 13871 | 13871 | ||
| 13872 | #### Find out which version of Emacs this is. | 13872 | #### Find out which version of Emacs this is. |
| 13873 | version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \ | 13873 | version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \ |
| 13874 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | 13874 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` |
| 13875 | if test x"${version}" = x; then | 13875 | if test x"${version}" = x; then |
| 13876 | as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5 | 13876 | as_fn_error "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5 |
| 13877 | fi | 13877 | fi |
| 13878 | if test x"${version}" != x"$PACKAGE_VERSION"; then | 13878 | if test x"${version}" != x"$PACKAGE_VERSION"; then |
| 13879 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5 | 13879 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5 |
| @@ -14431,7 +14431,6 @@ DEFS=-DHAVE_CONFIG_H | |||
| 14431 | 14431 | ||
| 14432 | ac_libobjs= | 14432 | ac_libobjs= |
| 14433 | ac_ltlibobjs= | 14433 | ac_ltlibobjs= |
| 14434 | U= | ||
| 14435 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 14434 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 14436 | # 1. Remove the extension, and $U if already installed. | 14435 | # 1. Remove the extension, and $U if already installed. |
| 14437 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 14436 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| @@ -14593,19 +14592,19 @@ export LANGUAGE | |||
| 14593 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 14592 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 14594 | 14593 | ||
| 14595 | 14594 | ||
| 14596 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 14595 | # as_fn_error ERROR [LINENO LOG_FD] |
| 14597 | # ---------------------------------------- | 14596 | # --------------------------------- |
| 14598 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 14597 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 14599 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 14598 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 14600 | # script with STATUS, using 1 if that was 0. | 14599 | # script with status $?, using 1 if that was 0. |
| 14601 | as_fn_error () | 14600 | as_fn_error () |
| 14602 | { | 14601 | { |
| 14603 | as_status=$1; test $as_status -eq 0 && as_status=1 | 14602 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 14604 | if test "$4"; then | 14603 | if test "$3"; then |
| 14605 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 14604 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 14606 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 14605 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 14607 | fi | 14606 | fi |
| 14608 | $as_echo "$as_me: error: $2" >&2 | 14607 | $as_echo "$as_me: error: $1" >&2 |
| 14609 | as_fn_exit $as_status | 14608 | as_fn_exit $as_status |
| 14610 | } # as_fn_error | 14609 | } # as_fn_error |
| 14611 | 14610 | ||
| @@ -14801,7 +14800,7 @@ $as_echo X"$as_dir" | | |||
| 14801 | test -d "$as_dir" && break | 14800 | test -d "$as_dir" && break |
| 14802 | done | 14801 | done |
| 14803 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 14802 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 14804 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 14803 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 14805 | 14804 | ||
| 14806 | 14805 | ||
| 14807 | } # as_fn_mkdir_p | 14806 | } # as_fn_mkdir_p |
| @@ -14855,7 +14854,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |||
| 14855 | # values after options handling. | 14854 | # values after options handling. |
| 14856 | ac_log=" | 14855 | ac_log=" |
| 14857 | This file was extended by emacs $as_me 24.0.50, which was | 14856 | This file was extended by emacs $as_me 24.0.50, which was |
| 14858 | generated by GNU Autoconf 2.66. Invocation command line was | 14857 | generated by GNU Autoconf 2.65. Invocation command line was |
| 14859 | 14858 | ||
| 14860 | CONFIG_FILES = $CONFIG_FILES | 14859 | CONFIG_FILES = $CONFIG_FILES |
| 14861 | CONFIG_HEADERS = $CONFIG_HEADERS | 14860 | CONFIG_HEADERS = $CONFIG_HEADERS |
| @@ -14921,10 +14920,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |||
| 14921 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 14920 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 14922 | ac_cs_version="\\ | 14921 | ac_cs_version="\\ |
| 14923 | emacs config.status 24.0.50 | 14922 | emacs config.status 24.0.50 |
| 14924 | configured by $0, generated by GNU Autoconf 2.66, | 14923 | configured by $0, generated by GNU Autoconf 2.65, |
| 14925 | with options \\"\$ac_cs_config\\" | 14924 | with options \\"\$ac_cs_config\\" |
| 14926 | 14925 | ||
| 14927 | Copyright (C) 2010 Free Software Foundation, Inc. | 14926 | Copyright (C) 2009 Free Software Foundation, Inc. |
| 14928 | This config.status script is free software; the Free Software Foundation | 14927 | This config.status script is free software; the Free Software Foundation |
| 14929 | gives unlimited permission to copy, distribute and modify it." | 14928 | gives unlimited permission to copy, distribute and modify it." |
| 14930 | 14929 | ||
| @@ -14978,7 +14977,7 @@ do | |||
| 14978 | ac_need_defaults=false;; | 14977 | ac_need_defaults=false;; |
| 14979 | --he | --h) | 14978 | --he | --h) |
| 14980 | # Conflict between --help and --header | 14979 | # Conflict between --help and --header |
| 14981 | as_fn_error $? "ambiguous option: \`$1' | 14980 | as_fn_error "ambiguous option: \`$1' |
| 14982 | Try \`$0 --help' for more information.";; | 14981 | Try \`$0 --help' for more information.";; |
| 14983 | --help | --hel | -h ) | 14982 | --help | --hel | -h ) |
| 14984 | $as_echo "$ac_cs_usage"; exit ;; | 14983 | $as_echo "$ac_cs_usage"; exit ;; |
| @@ -14987,7 +14986,7 @@ Try \`$0 --help' for more information.";; | |||
| 14987 | ac_cs_silent=: ;; | 14986 | ac_cs_silent=: ;; |
| 14988 | 14987 | ||
| 14989 | # This is an error. | 14988 | # This is an error. |
| 14990 | -*) as_fn_error $? "unrecognized option: \`$1' | 14989 | -*) as_fn_error "unrecognized option: \`$1' |
| 14991 | Try \`$0 --help' for more information." ;; | 14990 | Try \`$0 --help' for more information." ;; |
| 14992 | 14991 | ||
| 14993 | *) as_fn_append ac_config_targets " $1" | 14992 | *) as_fn_append ac_config_targets " $1" |
| @@ -15055,7 +15054,7 @@ do | |||
| 15055 | "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; | 15054 | "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
| 15056 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | 15055 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 15057 | 15056 | ||
| 15058 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 15057 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 15059 | esac | 15058 | esac |
| 15060 | done | 15059 | done |
| 15061 | 15060 | ||
| @@ -15093,7 +15092,7 @@ $debug || | |||
| 15093 | { | 15092 | { |
| 15094 | tmp=./conf$$-$RANDOM | 15093 | tmp=./conf$$-$RANDOM |
| 15095 | (umask 077 && mkdir "$tmp") | 15094 | (umask 077 && mkdir "$tmp") |
| 15096 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 15095 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
| 15097 | 15096 | ||
| 15098 | # Set up the scripts for CONFIG_FILES section. | 15097 | # Set up the scripts for CONFIG_FILES section. |
| 15099 | # No need to generate them if there are no CONFIG_FILES. | 15098 | # No need to generate them if there are no CONFIG_FILES. |
| @@ -15127,7 +15126,7 @@ if test "x$ac_cr" = x; then | |||
| 15127 | fi | 15126 | fi |
| 15128 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 15127 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 15129 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 15128 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 15130 | ac_cs_awk_cr='\\r' | 15129 | ac_cs_awk_cr='\r' |
| 15131 | else | 15130 | else |
| 15132 | ac_cs_awk_cr=$ac_cr | 15131 | ac_cs_awk_cr=$ac_cr |
| 15133 | fi | 15132 | fi |
| @@ -15144,7 +15143,7 @@ _ACEOF | |||
| 15144 | echo "_ACEOF" | 15143 | echo "_ACEOF" |
| 15145 | } >conf$$files.sh && | 15144 | } >conf$$files.sh && |
| 15146 | . ./conf$$files.sh || | 15145 | . ./conf$$files.sh || |
| 15147 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 15146 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 15148 | rm -f conf$$files.sh | 15147 | rm -f conf$$files.sh |
| 15149 | 15148 | ||
| 15150 | { | 15149 | { |
| @@ -15152,18 +15151,18 @@ rm -f conf$$files.sh | |||
| 15152 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 15151 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 15153 | echo "_ACEOF" | 15152 | echo "_ACEOF" |
| 15154 | } >conf$$subs.sh || | 15153 | } >conf$$subs.sh || |
| 15155 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 15154 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 15156 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 15155 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 15157 | ac_delim='%!_!# ' | 15156 | ac_delim='%!_!# ' |
| 15158 | for ac_last_try in false false false false false :; do | 15157 | for ac_last_try in false false false false false :; do |
| 15159 | . ./conf$$subs.sh || | 15158 | . ./conf$$subs.sh || |
| 15160 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 15159 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 15161 | 15160 | ||
| 15162 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 15161 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 15163 | if test $ac_delim_n = $ac_delim_num; then | 15162 | if test $ac_delim_n = $ac_delim_num; then |
| 15164 | break | 15163 | break |
| 15165 | elif $ac_last_try; then | 15164 | elif $ac_last_try; then |
| 15166 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 15165 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 15167 | else | 15166 | else |
| 15168 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 15167 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 15169 | fi | 15168 | fi |
| @@ -15258,28 +15257,20 @@ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |||
| 15258 | else | 15257 | else |
| 15259 | cat | 15258 | cat |
| 15260 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | 15259 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 15261 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 15260 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
| 15262 | _ACEOF | 15261 | _ACEOF |
| 15263 | 15262 | ||
| 15264 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 15263 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15265 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 15264 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15266 | # trailing colons and then remove the whole line if VPATH becomes empty | 15265 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15267 | # (actually we leave an empty line to preserve line numbers). | 15266 | # (actually we leave an empty line to preserve line numbers). |
| 15268 | if test "x$srcdir" = x.; then | 15267 | if test "x$srcdir" = x.; then |
| 15269 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | 15268 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15270 | h | 15269 | s/:*\$(srcdir):*/:/ |
| 15271 | s/// | 15270 | s/:*\${srcdir}:*/:/ |
| 15272 | s/^/:/ | 15271 | s/:*@srcdir@:*/:/ |
| 15273 | s/[ ]*$/:/ | 15272 | s/^\([^=]*=[ ]*\):*/\1/ |
| 15274 | s/:\$(srcdir):/:/g | ||
| 15275 | s/:\${srcdir}:/:/g | ||
| 15276 | s/:@srcdir@:/:/g | ||
| 15277 | s/^:*// | ||
| 15278 | s/:*$// | 15273 | s/:*$// |
| 15279 | x | ||
| 15280 | s/\(=[ ]*\).*/\1/ | ||
| 15281 | G | ||
| 15282 | s/\n// | ||
| 15283 | s/^[^=]*=[ ]*$// | 15274 | s/^[^=]*=[ ]*$// |
| 15284 | }' | 15275 | }' |
| 15285 | fi | 15276 | fi |
| @@ -15307,7 +15298,7 @@ for ac_last_try in false false :; do | |||
| 15307 | if test -z "$ac_t"; then | 15298 | if test -z "$ac_t"; then |
| 15308 | break | 15299 | break |
| 15309 | elif $ac_last_try; then | 15300 | elif $ac_last_try; then |
| 15310 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 15301 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 15311 | else | 15302 | else |
| 15312 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 15303 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 15313 | fi | 15304 | fi |
| @@ -15392,7 +15383,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |||
| 15392 | _ACAWK | 15383 | _ACAWK |
| 15393 | _ACEOF | 15384 | _ACEOF |
| 15394 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 15385 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15395 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 15386 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 15396 | fi # test -n "$CONFIG_HEADERS" | 15387 | fi # test -n "$CONFIG_HEADERS" |
| 15397 | 15388 | ||
| 15398 | 15389 | ||
| @@ -15405,7 +15396,7 @@ do | |||
| 15405 | esac | 15396 | esac |
| 15406 | case $ac_mode$ac_tag in | 15397 | case $ac_mode$ac_tag in |
| 15407 | :[FHL]*:*);; | 15398 | :[FHL]*:*);; |
| 15408 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 15399 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 15409 | :[FH]-) ac_tag=-:-;; | 15400 | :[FH]-) ac_tag=-:-;; |
| 15410 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 15401 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 15411 | esac | 15402 | esac |
| @@ -15433,7 +15424,7 @@ do | |||
| 15433 | [\\/$]*) false;; | 15424 | [\\/$]*) false;; |
| 15434 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 15425 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 15435 | esac || | 15426 | esac || |
| 15436 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 15427 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 15437 | esac | 15428 | esac |
| 15438 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 15429 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 15439 | as_fn_append ac_file_inputs " '$ac_f'" | 15430 | as_fn_append ac_file_inputs " '$ac_f'" |
| @@ -15460,7 +15451,7 @@ $as_echo "$as_me: creating $ac_file" >&6;} | |||
| 15460 | 15451 | ||
| 15461 | case $ac_tag in | 15452 | case $ac_tag in |
| 15462 | *:-:* | *:-) cat >"$tmp/stdin" \ | 15453 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 15463 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 15454 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
| 15464 | esac | 15455 | esac |
| 15465 | ;; | 15456 | ;; |
| 15466 | esac | 15457 | esac |
| @@ -15596,22 +15587,22 @@ if $ac_cs_awk_getline; then | |||
| 15596 | else | 15587 | else |
| 15597 | $AWK -f "$tmp/subs.awk" | $SHELL | 15588 | $AWK -f "$tmp/subs.awk" | $SHELL |
| 15598 | fi >$tmp/out \ | 15589 | fi >$tmp/out \ |
| 15599 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 15590 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 15600 | 15591 | ||
| 15601 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 15592 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 15602 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | 15593 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 15603 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | 15594 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 15604 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 15595 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 15605 | which seems to be undefined. Please make sure it is defined" >&5 | 15596 | which seems to be undefined. Please make sure it is defined." >&5 |
| 15606 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 15597 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 15607 | which seems to be undefined. Please make sure it is defined" >&2;} | 15598 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 15608 | 15599 | ||
| 15609 | rm -f "$tmp/stdin" | 15600 | rm -f "$tmp/stdin" |
| 15610 | case $ac_file in | 15601 | case $ac_file in |
| 15611 | -) cat "$tmp/out" && rm -f "$tmp/out";; | 15602 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 15612 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | 15603 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 15613 | esac \ | 15604 | esac \ |
| 15614 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 15605 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 15615 | ;; | 15606 | ;; |
| 15616 | :H) | 15607 | :H) |
| 15617 | # | 15608 | # |
| @@ -15622,19 +15613,19 @@ which seems to be undefined. Please make sure it is defined" >&2;} | |||
| 15622 | $as_echo "/* $configure_input */" \ | 15613 | $as_echo "/* $configure_input */" \ |
| 15623 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | 15614 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 15624 | } >"$tmp/config.h" \ | 15615 | } >"$tmp/config.h" \ |
| 15625 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 15616 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 15626 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | 15617 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 15627 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 15618 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 15628 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 15619 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 15629 | else | 15620 | else |
| 15630 | rm -f "$ac_file" | 15621 | rm -f "$ac_file" |
| 15631 | mv "$tmp/config.h" "$ac_file" \ | 15622 | mv "$tmp/config.h" "$ac_file" \ |
| 15632 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 15623 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 15633 | fi | 15624 | fi |
| 15634 | else | 15625 | else |
| 15635 | $as_echo "/* $configure_input */" \ | 15626 | $as_echo "/* $configure_input */" \ |
| 15636 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | 15627 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 15637 | || as_fn_error $? "could not create -" "$LINENO" 5 | 15628 | || as_fn_error "could not create -" "$LINENO" 5 |
| 15638 | fi | 15629 | fi |
| 15639 | ;; | 15630 | ;; |
| 15640 | 15631 | ||
| @@ -15671,7 +15662,7 @@ _ACEOF | |||
| 15671 | ac_clean_files=$ac_clean_files_save | 15662 | ac_clean_files=$ac_clean_files_save |
| 15672 | 15663 | ||
| 15673 | test $ac_write_fail = 0 || | 15664 | test $ac_write_fail = 0 || |
| 15674 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 15665 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 15675 | 15666 | ||
| 15676 | 15667 | ||
| 15677 | # configure is writing to config.log, and then calls config.status. | 15668 | # configure is writing to config.log, and then calls config.status. |
| @@ -15692,7 +15683,7 @@ if test "$no_create" != yes; then | |||
| 15692 | exec 5>>config.log | 15683 | exec 5>>config.log |
| 15693 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 15684 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15694 | # would make configure fail if this is the last instruction. | 15685 | # would make configure fail if this is the last instruction. |
| 15695 | $ac_cs_success || as_fn_exit 1 | 15686 | $ac_cs_success || as_fn_exit $? |
| 15696 | fi | 15687 | fi |
| 15697 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 15688 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 15698 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 15689 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
diff --git a/configure.in b/configure.in index 7a4aaf4ea24..92d2e9d00a2 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1210,7 +1210,7 @@ AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | |||
| 1210 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | 1210 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
| 1211 | stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ | 1211 | stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ |
| 1212 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ | 1212 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ |
| 1213 | sys/utsname.h pwd.h utmp.h dirent.h) | 1213 | sys/utsname.h pwd.h utmp.h dirent.h util.h) |
| 1214 | 1214 | ||
| 1215 | AC_MSG_CHECKING(if personality LINUX32 can be set) | 1215 | AC_MSG_CHECKING(if personality LINUX32 can be set) |
| 1216 | AC_TRY_COMPILE([#include <sys/personality.h>], [personality (PER_LINUX32)], | 1216 | AC_TRY_COMPILE([#include <sys/personality.h>], [personality (PER_LINUX32)], |
diff --git a/src/ChangeLog b/src/ChangeLog index feda54defd8..c0f618630a8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,66 @@ | |||
| 1 | 2010-08-06 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes. | ||
| 4 | |||
| 5 | * window.c: Include menu.h. | ||
| 6 | |||
| 7 | * unexmacosx.c (print_region_list, print_regions) | ||
| 8 | (build_region_list, find_emacs_zone_regions) | ||
| 9 | (unexec_regions_merge, read_load_commands, dump_it) | ||
| 10 | (unexec_init_emacs_zone): Convert to ANSI C prototypes. | ||
| 11 | |||
| 12 | * term.c: Check HAVE_SYS_IOCTL_H. | ||
| 13 | |||
| 14 | * sysdep.c: Check HAVE_TERM_H | ||
| 15 | |||
| 16 | * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS. | ||
| 17 | |||
| 18 | * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool) | ||
| 19 | (ns_ring_bell, ns_defined_color, hide_hourglass) | ||
| 20 | (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm): | ||
| 21 | Convert to ANSI C prototypes. | ||
| 22 | (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations | ||
| 23 | before code. | ||
| 24 | |||
| 25 | * nsterm.h : Include sysselect.h. | ||
| 26 | (x_sync, x_get_focus_frame, x_set_mouse_position) | ||
| 27 | (x_set_mouse_pixel_position, x_make_frame_visible) | ||
| 28 | (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height) | ||
| 29 | (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines) | ||
| 30 | (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select) | ||
| 31 | (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect): | ||
| 32 | Declare | ||
| 33 | |||
| 34 | * nsmenu.m (popup_activated, name_is_separator) | ||
| 35 | (syms_of_nsmenu): Convert to ANSI C prototypes. | ||
| 36 | (runMenuAt): Prototypes and move declarations before code. | ||
| 37 | |||
| 38 | * nsimage.m (ns_load_image): Move NSTRACE after declarations. | ||
| 39 | |||
| 40 | * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C | ||
| 41 | prototypes. | ||
| 42 | |||
| 43 | * nsfns.m (have_menus_p, ns_display_info_for_name) | ||
| 44 | (x_set_cursor_type, ns_appkit_version_str) | ||
| 45 | (ns_appkit_version_int, ns_do_applescript) | ||
| 46 | (x_set_scroll_bar_default_width, x_sync, compute_tip_xy) | ||
| 47 | (syms_of_nsfns): Convert to ANSI C prototypes. | ||
| 48 | |||
| 49 | * menu.h (x_set_menu_bar_line): Declare. | ||
| 50 | (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions. | ||
| 51 | |||
| 52 | * lisp.h (fmod_float): Declare. | ||
| 53 | |||
| 54 | * image.c (xpm_scan, xpm_make_color_table_v) | ||
| 55 | (xpm_put_color_table_v, xpm_get_color_table_v) | ||
| 56 | (xpm_make_color_table_h, xpm_put_color_table_h) | ||
| 57 | (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image) | ||
| 58 | (xpm_load): Convert to ANSI C prototypes. | ||
| 59 | |||
| 60 | * emacs.c: Include nsterm.h if HAVE_NS. | ||
| 61 | |||
| 62 | * bidi.c (bidi_dump_cached_states): Fix fprintf warning. | ||
| 63 | |||
| 1 | 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu> | 64 | 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 65 | ||
| 3 | * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef | 66 | * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef |
diff --git a/src/bidi.c b/src/bidi.c index e17676ea6d7..b31de597688 100644 --- a/src/bidi.c +++ b/src/bidi.c | |||
| @@ -1774,6 +1774,6 @@ bidi_dump_cached_states (void) | |||
| 1774 | fputs ("\n", stderr); | 1774 | fputs ("\n", stderr); |
| 1775 | fputs ("pos ", stderr); | 1775 | fputs ("pos ", stderr); |
| 1776 | for (i = 0; i < bidi_cache_idx; i++) | 1776 | for (i = 0; i < bidi_cache_idx; i++) |
| 1777 | fprintf (stderr, "%*d", ndigits, bidi_cache[i].charpos); | 1777 | fprintf (stderr, "%*ld", ndigits, (long)bidi_cache[i].charpos); |
| 1778 | fputs ("\n", stderr); | 1778 | fputs ("\n", stderr); |
| 1779 | } | 1779 | } |
diff --git a/src/config.in b/src/config.in index e6e67319bdd..19ed94376c1 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -731,6 +731,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 731 | /* Define to 1 if you have the <unistd.h> header file. */ | 731 | /* Define to 1 if you have the <unistd.h> header file. */ |
| 732 | #undef HAVE_UNISTD_H | 732 | #undef HAVE_UNISTD_H |
| 733 | 733 | ||
| 734 | /* Define to 1 if you have the <util.h> header file. */ | ||
| 735 | #undef HAVE_UTIL_H | ||
| 736 | |||
| 734 | /* Define to 1 if you have the `utimes' function. */ | 737 | /* Define to 1 if you have the `utimes' function. */ |
| 735 | #undef HAVE_UTIMES | 738 | #undef HAVE_UTIMES |
| 736 | 739 | ||
diff --git a/src/emacs.c b/src/emacs.c index c9a4ae5d0db..216ab884aa1 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -63,6 +63,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 63 | #include "keyboard.h" | 63 | #include "keyboard.h" |
| 64 | #include "keymap.h" | 64 | #include "keymap.h" |
| 65 | 65 | ||
| 66 | #ifdef HAVE_NS | ||
| 67 | #include "nsterm.h" | ||
| 68 | #endif | ||
| 69 | |||
| 66 | #ifdef HAVE_SETLOCALE | 70 | #ifdef HAVE_SETLOCALE |
| 67 | #include <locale.h> | 71 | #include <locale.h> |
| 68 | #endif | 72 | #endif |
diff --git a/src/image.c b/src/image.c index f6282f6619b..2b8eb1830bc 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -3658,9 +3658,10 @@ enum xpm_token | |||
| 3658 | length of the corresponding token, respectively. */ | 3658 | length of the corresponding token, respectively. */ |
| 3659 | 3659 | ||
| 3660 | static int | 3660 | static int |
| 3661 | xpm_scan (s, end, beg, len) | 3661 | xpm_scan (const unsigned char **s, |
| 3662 | const unsigned char **s, *end, **beg; | 3662 | const unsigned char *end, |
| 3663 | int *len; | 3663 | const unsigned char **beg, |
| 3664 | int *len) | ||
| 3664 | { | 3665 | { |
| 3665 | int c; | 3666 | int c; |
| 3666 | 3667 | ||
| @@ -3724,9 +3725,13 @@ xpm_scan (s, end, beg, len) | |||
| 3724 | hash table is used. */ | 3725 | hash table is used. */ |
| 3725 | 3726 | ||
| 3726 | static Lisp_Object | 3727 | static Lisp_Object |
| 3727 | xpm_make_color_table_v (put_func, get_func) | 3728 | xpm_make_color_table_v (void (**put_func) (Lisp_Object, |
| 3728 | void (**put_func) (Lisp_Object, const unsigned char *, int, Lisp_Object); | 3729 | const unsigned char *, |
| 3729 | Lisp_Object (**get_func) (Lisp_Object, const unsigned char *, int); | 3730 | int, |
| 3731 | Lisp_Object), | ||
| 3732 | Lisp_Object (**get_func) (Lisp_Object, | ||
| 3733 | const unsigned char *, | ||
| 3734 | int)) | ||
| 3730 | { | 3735 | { |
| 3731 | *put_func = xpm_put_color_table_v; | 3736 | *put_func = xpm_put_color_table_v; |
| 3732 | *get_func = xpm_get_color_table_v; | 3737 | *get_func = xpm_get_color_table_v; |
| @@ -3734,28 +3739,30 @@ xpm_make_color_table_v (put_func, get_func) | |||
| 3734 | } | 3739 | } |
| 3735 | 3740 | ||
| 3736 | static void | 3741 | static void |
| 3737 | xpm_put_color_table_v (color_table, chars_start, chars_len, color) | 3742 | xpm_put_color_table_v (Lisp_Object color_table, |
| 3738 | Lisp_Object color_table; | 3743 | const unsigned char *chars_start, |
| 3739 | const unsigned char *chars_start; | 3744 | int chars_len, |
| 3740 | int chars_len; | 3745 | Lisp_Object color) |
| 3741 | Lisp_Object color; | ||
| 3742 | { | 3746 | { |
| 3743 | XVECTOR (color_table)->contents[*chars_start] = color; | 3747 | XVECTOR (color_table)->contents[*chars_start] = color; |
| 3744 | } | 3748 | } |
| 3745 | 3749 | ||
| 3746 | static Lisp_Object | 3750 | static Lisp_Object |
| 3747 | xpm_get_color_table_v (color_table, chars_start, chars_len) | 3751 | xpm_get_color_table_v (Lisp_Object color_table, |
| 3748 | Lisp_Object color_table; | 3752 | const unsigned char *chars_start, |
| 3749 | const unsigned char *chars_start; | 3753 | int chars_len) |
| 3750 | int chars_len; | ||
| 3751 | { | 3754 | { |
| 3752 | return XVECTOR (color_table)->contents[*chars_start]; | 3755 | return XVECTOR (color_table)->contents[*chars_start]; |
| 3753 | } | 3756 | } |
| 3754 | 3757 | ||
| 3755 | static Lisp_Object | 3758 | static Lisp_Object |
| 3756 | xpm_make_color_table_h (put_func, get_func) | 3759 | xpm_make_color_table_h (void (**put_func) (Lisp_Object, |
| 3757 | void (**put_func) (Lisp_Object, const unsigned char *, int, Lisp_Object); | 3760 | const unsigned char *, |
| 3758 | Lisp_Object (**get_func) (Lisp_Object, const unsigned char *, int); | 3761 | int, |
| 3762 | Lisp_Object), | ||
| 3763 | Lisp_Object (**get_func) (Lisp_Object, | ||
| 3764 | const unsigned char *, | ||
| 3765 | int)) | ||
| 3759 | { | 3766 | { |
| 3760 | *put_func = xpm_put_color_table_h; | 3767 | *put_func = xpm_put_color_table_h; |
| 3761 | *get_func = xpm_get_color_table_h; | 3768 | *get_func = xpm_get_color_table_h; |
| @@ -3766,11 +3773,10 @@ xpm_make_color_table_h (put_func, get_func) | |||
| 3766 | } | 3773 | } |
| 3767 | 3774 | ||
| 3768 | static void | 3775 | static void |
| 3769 | xpm_put_color_table_h (color_table, chars_start, chars_len, color) | 3776 | xpm_put_color_table_h (Lisp_Object color_table, |
| 3770 | Lisp_Object color_table; | 3777 | const unsigned char *chars_start, |
| 3771 | const unsigned char *chars_start; | 3778 | int chars_len, |
| 3772 | int chars_len; | 3779 | Lisp_Object color) |
| 3773 | Lisp_Object color; | ||
| 3774 | { | 3780 | { |
| 3775 | struct Lisp_Hash_Table *table = XHASH_TABLE (color_table); | 3781 | struct Lisp_Hash_Table *table = XHASH_TABLE (color_table); |
| 3776 | unsigned hash_code; | 3782 | unsigned hash_code; |
| @@ -3781,10 +3787,9 @@ xpm_put_color_table_h (color_table, chars_start, chars_len, color) | |||
| 3781 | } | 3787 | } |
| 3782 | 3788 | ||
| 3783 | static Lisp_Object | 3789 | static Lisp_Object |
| 3784 | xpm_get_color_table_h (color_table, chars_start, chars_len) | 3790 | xpm_get_color_table_h (Lisp_Object color_table, |
| 3785 | Lisp_Object color_table; | 3791 | const unsigned char *chars_start, |
| 3786 | const unsigned char *chars_start; | 3792 | int chars_len) |
| 3787 | int chars_len; | ||
| 3788 | { | 3793 | { |
| 3789 | struct Lisp_Hash_Table *table = XHASH_TABLE (color_table); | 3794 | struct Lisp_Hash_Table *table = XHASH_TABLE (color_table); |
| 3790 | int i = hash_lookup (table, make_unibyte_string (chars_start, chars_len), | 3795 | int i = hash_lookup (table, make_unibyte_string (chars_start, chars_len), |
| @@ -3804,8 +3809,7 @@ enum xpm_color_key { | |||
| 3804 | static const char xpm_color_key_strings[][4] = {"s", "m", "g4", "g", "c"}; | 3809 | static const char xpm_color_key_strings[][4] = {"s", "m", "g4", "g", "c"}; |
| 3805 | 3810 | ||
| 3806 | static int | 3811 | static int |
| 3807 | xpm_str_to_color_key (s) | 3812 | xpm_str_to_color_key (const char *s) |
| 3808 | const char *s; | ||
| 3809 | { | 3813 | { |
| 3810 | int i; | 3814 | int i; |
| 3811 | 3815 | ||
| @@ -3818,10 +3822,10 @@ xpm_str_to_color_key (s) | |||
| 3818 | } | 3822 | } |
| 3819 | 3823 | ||
| 3820 | static int | 3824 | static int |
| 3821 | xpm_load_image (f, img, contents, end) | 3825 | xpm_load_image (struct frame *f, |
| 3822 | struct frame *f; | 3826 | struct image *img, |
| 3823 | struct image *img; | 3827 | const unsigned char *contents, |
| 3824 | const unsigned char *contents, *end; | 3828 | const unsigned char *end) |
| 3825 | { | 3829 | { |
| 3826 | const unsigned char *s = contents, *beg, *str; | 3830 | const unsigned char *s = contents, *beg, *str; |
| 3827 | unsigned char buffer[BUFSIZ]; | 3831 | unsigned char buffer[BUFSIZ]; |
| @@ -4053,9 +4057,8 @@ xpm_load_image (f, img, contents, end) | |||
| 4053 | } | 4057 | } |
| 4054 | 4058 | ||
| 4055 | static int | 4059 | static int |
| 4056 | xpm_load (f, img) | 4060 | xpm_load (struct frame *f, |
| 4057 | struct frame *f; | 4061 | struct image *img) |
| 4058 | struct image *img; | ||
| 4059 | { | 4062 | { |
| 4060 | int success_p = 0; | 4063 | int success_p = 0; |
| 4061 | Lisp_Object file_name; | 4064 | Lisp_Object file_name; |
diff --git a/src/lisp.h b/src/lisp.h index abed671bce0..ef6b2fa8c2d 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -2548,6 +2548,7 @@ EXFUN (Ffloat, 1); | |||
| 2548 | EXFUN (Ftruncate, 2); | 2548 | EXFUN (Ftruncate, 2); |
| 2549 | extern void init_floatfns (void); | 2549 | extern void init_floatfns (void); |
| 2550 | extern void syms_of_floatfns (void); | 2550 | extern void syms_of_floatfns (void); |
| 2551 | extern Lisp_Object fmod_float (Lisp_Object x, Lisp_Object y); | ||
| 2551 | 2552 | ||
| 2552 | /* Defined in fringe.c */ | 2553 | /* Defined in fringe.c */ |
| 2553 | extern void syms_of_fringe (void); | 2554 | extern void syms_of_fringe (void); |
diff --git a/src/menu.h b/src/menu.h index 99ae43fe452..c8691169ccb 100644 --- a/src/menu.h +++ b/src/menu.h | |||
| @@ -21,13 +21,18 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | 21 | ||
| 22 | extern Lisp_Object Vmenu_updating_frame; | 22 | extern Lisp_Object Vmenu_updating_frame; |
| 23 | 23 | ||
| 24 | extern void x_set_menu_bar_lines (struct frame *f, | ||
| 25 | Lisp_Object value, | ||
| 26 | Lisp_Object oldval); | ||
| 27 | |||
| 24 | extern void init_menu_items (void); | 28 | extern void init_menu_items (void); |
| 25 | extern void finish_menu_items (void); | 29 | extern void finish_menu_items (void); |
| 26 | extern void discard_menu_items (void); | 30 | extern void discard_menu_items (void); |
| 27 | extern void save_menu_items (void); | 31 | extern void save_menu_items (void); |
| 28 | extern int parse_single_submenu (Lisp_Object, Lisp_Object, Lisp_Object); | 32 | extern int parse_single_submenu (Lisp_Object, Lisp_Object, Lisp_Object); |
| 29 | extern void list_of_panes (Lisp_Object); | 33 | extern void list_of_panes (Lisp_Object); |
| 30 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) || defined (HAVE_NTGUI) | 34 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) || defined (HAVE_NTGUI) \ |
| 35 | || defined (HAVE_NS) | ||
| 31 | extern void free_menubar_widget_value_tree (widget_value *); | 36 | extern void free_menubar_widget_value_tree (widget_value *); |
| 32 | extern void update_submenu_strings (widget_value *); | 37 | extern void update_submenu_strings (widget_value *); |
| 33 | extern void find_and_call_menu_selection (FRAME_PTR, int, | 38 | extern void find_and_call_menu_selection (FRAME_PTR, int, |
diff --git a/src/nsfns.m b/src/nsfns.m index fd0ec1a965c..aac2ef0ed3a 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -125,7 +125,7 @@ check_ns (void) | |||
| 125 | 125 | ||
| 126 | /* Nonzero if we can use mouse menus. */ | 126 | /* Nonzero if we can use mouse menus. */ |
| 127 | int | 127 | int |
| 128 | have_menus_p () | 128 | have_menus_p (void) |
| 129 | { | 129 | { |
| 130 | return NSApp != nil; | 130 | return NSApp != nil; |
| 131 | } | 131 | } |
| @@ -240,8 +240,7 @@ ns_get_screen (Lisp_Object screen) | |||
| 240 | /* Return the X display structure for the display named NAME. | 240 | /* Return the X display structure for the display named NAME. |
| 241 | Open a new connection if necessary. */ | 241 | Open a new connection if necessary. */ |
| 242 | struct ns_display_info * | 242 | struct ns_display_info * |
| 243 | ns_display_info_for_name (name) | 243 | ns_display_info_for_name (Lisp_Object name) |
| 244 | Lisp_Object name; | ||
| 245 | { | 244 | { |
| 246 | Lisp_Object names; | 245 | Lisp_Object names; |
| 247 | struct ns_display_info *dpyinfo; | 246 | struct ns_display_info *dpyinfo; |
| @@ -925,9 +924,7 @@ ns_cursor_type_to_lisp (int arg) | |||
| 925 | 924 | ||
| 926 | /* This is the same as the xfns.c definition. */ | 925 | /* This is the same as the xfns.c definition. */ |
| 927 | void | 926 | void |
| 928 | x_set_cursor_type (f, arg, oldval) | 927 | x_set_cursor_type (FRAME_PTR f, Lisp_Object arg, Lisp_Object oldval) |
| 929 | FRAME_PTR f; | ||
| 930 | Lisp_Object arg, oldval; | ||
| 931 | { | 928 | { |
| 932 | set_frame_cursor_types (f, arg); | 929 | set_frame_cursor_types (f, arg); |
| 933 | 930 | ||
| @@ -949,7 +946,7 @@ x_set_mouse_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 949 | #define Xstr(x) Str(x) | 946 | #define Xstr(x) Str(x) |
| 950 | 947 | ||
| 951 | static Lisp_Object | 948 | static Lisp_Object |
| 952 | ns_appkit_version_str () | 949 | ns_appkit_version_str (void) |
| 953 | { | 950 | { |
| 954 | char tmp[80]; | 951 | char tmp[80]; |
| 955 | 952 | ||
| @@ -968,7 +965,7 @@ ns_appkit_version_str () | |||
| 968 | have into a single int. For a better picture of the implementation | 965 | have into a single int. For a better picture of the implementation |
| 969 | running, use ns_appkit_version_str.*/ | 966 | running, use ns_appkit_version_str.*/ |
| 970 | static int | 967 | static int |
| 971 | ns_appkit_version_int () | 968 | ns_appkit_version_int (void) |
| 972 | { | 969 | { |
| 973 | #ifdef NS_IMPL_GNUSTEP | 970 | #ifdef NS_IMPL_GNUSTEP |
| 974 | return GNUSTEP_GUI_MAJOR_VERSION * 100 + GNUSTEP_GUI_MINOR_VERSION; | 971 | return GNUSTEP_GUI_MAJOR_VERSION * 100 + GNUSTEP_GUI_MINOR_VERSION; |
| @@ -2004,8 +2001,7 @@ DEFUN ("ns-convert-utf8-nfd-to-nfc", Fns_convert_utf8_nfd_to_nfc, | |||
| 2004 | string or a number containing the resulting script value. Otherwise, | 2001 | string or a number containing the resulting script value. Otherwise, |
| 2005 | 1 is returned. */ | 2002 | 1 is returned. */ |
| 2006 | static int | 2003 | static int |
| 2007 | ns_do_applescript (script, result) | 2004 | ns_do_applescript (Lisp_Object script, Lisp_Object *result) |
| 2008 | Lisp_Object script, *result; | ||
| 2009 | { | 2005 | { |
| 2010 | NSAppleEventDescriptor *desc; | 2006 | NSAppleEventDescriptor *desc; |
| 2011 | NSDictionary* errorDict; | 2007 | NSDictionary* errorDict; |
| @@ -2108,8 +2104,7 @@ check_x_display_info (Lisp_Object frame) | |||
| 2108 | 2104 | ||
| 2109 | 2105 | ||
| 2110 | void | 2106 | void |
| 2111 | x_set_scroll_bar_default_width (f) | 2107 | x_set_scroll_bar_default_width (struct frame *f) |
| 2112 | struct frame *f; | ||
| 2113 | { | 2108 | { |
| 2114 | int wid = FRAME_COLUMN_WIDTH (f); | 2109 | int wid = FRAME_COLUMN_WIDTH (f); |
| 2115 | FRAME_CONFIG_SCROLL_BAR_WIDTH (f) = NS_SCROLL_BAR_WIDTH_DEFAULT; | 2110 | FRAME_CONFIG_SCROLL_BAR_WIDTH (f) = NS_SCROLL_BAR_WIDTH_DEFAULT; |
| @@ -2189,7 +2184,7 @@ x_screen_planes (struct frame *f) | |||
| 2189 | 2184 | ||
| 2190 | 2185 | ||
| 2191 | void | 2186 | void |
| 2192 | x_sync (Lisp_Object frame) | 2187 | x_sync (struct frame *f) |
| 2193 | { | 2188 | { |
| 2194 | /* XXX Not implemented XXX */ | 2189 | /* XXX Not implemented XXX */ |
| 2195 | return; | 2190 | return; |
| @@ -2367,11 +2362,14 @@ Lisp_Object tip_frame; | |||
| 2367 | 2362 | ||
| 2368 | /* TODO: move to xdisp or similar */ | 2363 | /* TODO: move to xdisp or similar */ |
| 2369 | static void | 2364 | static void |
| 2370 | compute_tip_xy (f, parms, dx, dy, width, height, root_x, root_y) | 2365 | compute_tip_xy (struct frame *f, |
| 2371 | struct frame *f; | 2366 | Lisp_Object parms, |
| 2372 | Lisp_Object parms, dx, dy; | 2367 | Lisp_Object dx, |
| 2373 | int width, height; | 2368 | Lisp_Object dy, |
| 2374 | int *root_x, *root_y; | 2369 | int width, |
| 2370 | int height, | ||
| 2371 | int *root_x, | ||
| 2372 | int *root_y) | ||
| 2375 | { | 2373 | { |
| 2376 | Lisp_Object left, top; | 2374 | Lisp_Object left, top; |
| 2377 | EmacsView *view = FRAME_NS_VIEW (f); | 2375 | EmacsView *view = FRAME_NS_VIEW (f); |
| @@ -2595,7 +2593,7 @@ Value is t if tooltip was open, nil otherwise. */) | |||
| 2595 | 2593 | ||
| 2596 | 2594 | ||
| 2597 | void | 2595 | void |
| 2598 | syms_of_nsfns () | 2596 | syms_of_nsfns (void) |
| 2599 | { | 2597 | { |
| 2600 | int i; | 2598 | int i; |
| 2601 | 2599 | ||
diff --git a/src/nsfont.m b/src/nsfont.m index 3cc1f7fb076..aaa5999e048 100644 --- a/src/nsfont.m +++ b/src/nsfont.m | |||
| @@ -223,7 +223,7 @@ ns_descriptor_to_entity (NSFontDescriptor *desc, Lisp_Object extra, char *style) | |||
| 223 | 223 | ||
| 224 | /* Default font entity. */ | 224 | /* Default font entity. */ |
| 225 | static Lisp_Object | 225 | static Lisp_Object |
| 226 | ns_fallback_entity () | 226 | ns_fallback_entity (void) |
| 227 | { | 227 | { |
| 228 | return ns_descriptor_to_entity ([[NSFont userFixedPitchFontOfSize: 0] | 228 | return ns_descriptor_to_entity ([[NSFont userFixedPitchFontOfSize: 0] |
| 229 | fontDescriptor], Qnil, NULL); | 229 | fontDescriptor], Qnil, NULL); |
| @@ -1510,7 +1510,7 @@ ns_dump_glyphstring (struct glyph_string *s) | |||
| 1510 | 1510 | ||
| 1511 | 1511 | ||
| 1512 | void | 1512 | void |
| 1513 | syms_of_nsfont () | 1513 | syms_of_nsfont (void) |
| 1514 | { | 1514 | { |
| 1515 | nsfont_driver.type = Qns; | 1515 | nsfont_driver.type = Qns; |
| 1516 | register_font_driver (&nsfont_driver, NULL); | 1516 | register_font_driver (&nsfont_driver, NULL); |
diff --git a/src/nsimage.m b/src/nsimage.m index 6912156eb99..13761ba5f71 100644 --- a/src/nsimage.m +++ b/src/nsimage.m | |||
| @@ -83,11 +83,11 @@ int | |||
| 83 | ns_load_image (struct frame *f, struct image *img, | 83 | ns_load_image (struct frame *f, struct image *img, |
| 84 | Lisp_Object spec_file, Lisp_Object spec_data) | 84 | Lisp_Object spec_file, Lisp_Object spec_data) |
| 85 | { | 85 | { |
| 86 | NSTRACE (ns_load_image); | ||
| 87 | |||
| 88 | EmacsImage *eImg; | 86 | EmacsImage *eImg; |
| 89 | NSSize size; | 87 | NSSize size; |
| 90 | 88 | ||
| 89 | NSTRACE (ns_load_image); | ||
| 90 | |||
| 91 | if (NILP (spec_data)) | 91 | if (NILP (spec_data)) |
| 92 | { | 92 | { |
| 93 | eImg = [EmacsImage allocInitFromFile: spec_file]; | 93 | eImg = [EmacsImage allocInitFromFile: spec_file]; |
diff --git a/src/nsmenu.m b/src/nsmenu.m index e5b9379258f..c7ea6bb90fd 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m | |||
| @@ -105,7 +105,7 @@ free_frame_menubar (struct frame *f) | |||
| 105 | 105 | ||
| 106 | 106 | ||
| 107 | int | 107 | int |
| 108 | popup_activated () | 108 | popup_activated (void) |
| 109 | { | 109 | { |
| 110 | return popup_activated_flag; | 110 | return popup_activated_flag; |
| 111 | } | 111 | } |
| @@ -509,8 +509,7 @@ set_frame_menubar (struct frame *f, int first_time, int deep_p) | |||
| 509 | 509 | ||
| 510 | /* Utility (from macmenu.c): is this item a separator? */ | 510 | /* Utility (from macmenu.c): is this item a separator? */ |
| 511 | static int | 511 | static int |
| 512 | name_is_separator (name) | 512 | name_is_separator ( const char *name) |
| 513 | const char *name; | ||
| 514 | { | 513 | { |
| 515 | const char *start = name; | 514 | const char *start = name; |
| 516 | 515 | ||
| @@ -737,19 +736,21 @@ name_is_separator (name) | |||
| 737 | keymaps: (int)keymaps | 736 | keymaps: (int)keymaps |
| 738 | { | 737 | { |
| 739 | EmacsView *view = FRAME_NS_VIEW (f); | 738 | EmacsView *view = FRAME_NS_VIEW (f); |
| 739 | NSEvent *e, *event; | ||
| 740 | long retVal; | ||
| 741 | |||
| 740 | /* p = [view convertPoint:p fromView: nil]; */ | 742 | /* p = [view convertPoint:p fromView: nil]; */ |
| 741 | p.y = NSHeight ([view frame]) - p.y; | 743 | p.y = NSHeight ([view frame]) - p.y; |
| 742 | NSEvent *e = [[view window] currentEvent]; | 744 | e = [[view window] currentEvent]; |
| 743 | NSEvent *event = [NSEvent mouseEventWithType: NSRightMouseDown | 745 | event = [NSEvent mouseEventWithType: NSRightMouseDown |
| 744 | location: p | 746 | location: p |
| 745 | modifierFlags: 0 | 747 | modifierFlags: 0 |
| 746 | timestamp: [e timestamp] | 748 | timestamp: [e timestamp] |
| 747 | windowNumber: [[view window] windowNumber] | 749 | windowNumber: [[view window] windowNumber] |
| 748 | context: [e context] | 750 | context: [e context] |
| 749 | eventNumber: 0/*[e eventNumber] */ | 751 | eventNumber: 0/*[e eventNumber] */ |
| 750 | clickCount: 1 | 752 | clickCount: 1 |
| 751 | pressure: 0]; | 753 | pressure: 0]; |
| 752 | long retVal; | ||
| 753 | 754 | ||
| 754 | context_menu_value = -1; | 755 | context_menu_value = -1; |
| 755 | [NSMenu popUpContextMenu: self withEvent: event forView: view]; | 756 | [NSMenu popUpContextMenu: self withEvent: event forView: view]; |
| @@ -1801,7 +1802,7 @@ DEFUN ("menu-or-popup-active-p", Fmenu_or_popup_active_p, Smenu_or_popup_active_ | |||
| 1801 | ========================================================================== */ | 1802 | ========================================================================== */ |
| 1802 | 1803 | ||
| 1803 | void | 1804 | void |
| 1804 | syms_of_nsmenu () | 1805 | syms_of_nsmenu (void) |
| 1805 | { | 1806 | { |
| 1806 | defsubr (&Sx_popup_dialog); | 1807 | defsubr (&Sx_popup_dialog); |
| 1807 | defsubr (&Sns_reset_menu); | 1808 | defsubr (&Sns_reset_menu); |
diff --git a/src/nsterm.h b/src/nsterm.h index bc0e6e286c2..541b7e13daf 100644 --- a/src/nsterm.h +++ b/src/nsterm.h | |||
| @@ -21,6 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | #include "frame.h" | 21 | #include "frame.h" |
| 22 | #include "character.h" | 22 | #include "character.h" |
| 23 | #include "font.h" | 23 | #include "font.h" |
| 24 | #include "sysselect.h" | ||
| 24 | 25 | ||
| 25 | #ifdef HAVE_NS | 26 | #ifdef HAVE_NS |
| 26 | 27 | ||
| @@ -712,7 +713,9 @@ extern void ns_set_name_as_filename (struct frame *f); | |||
| 712 | extern void ns_set_doc_edited (struct frame *f, Lisp_Object arg); | 713 | extern void ns_set_doc_edited (struct frame *f, Lisp_Object arg); |
| 713 | 714 | ||
| 714 | extern int | 715 | extern int |
| 715 | ns_defined_color (struct frame *f, char *name, XColor *color_def, int alloc, | 716 | ns_defined_color (struct frame *f, |
| 717 | const char *name, | ||
| 718 | XColor *color_def, int alloc, | ||
| 716 | char makeIndex); | 719 | char makeIndex); |
| 717 | extern void | 720 | extern void |
| 718 | ns_query_color (void *col, XColor *color_def, int setPixel); | 721 | ns_query_color (void *col, XColor *color_def, int setPixel); |
| @@ -742,10 +745,33 @@ extern Lisp_Object find_and_return_menu_selection (FRAME_PTR f, | |||
| 742 | extern Lisp_Object ns_popup_dialog (Lisp_Object position, Lisp_Object contents, | 745 | extern Lisp_Object ns_popup_dialog (Lisp_Object position, Lisp_Object contents, |
| 743 | Lisp_Object header); | 746 | Lisp_Object header); |
| 744 | 747 | ||
| 745 | /* two more prototypes that should be moved to a more general include file */ | 748 | /* More prototypes that should be moved to a more general include file */ |
| 746 | extern void set_frame_menubar (struct frame *f, int first_time, int deep_p); | 749 | extern void set_frame_menubar (struct frame *f, int first_time, int deep_p); |
| 747 | extern void x_set_window_size (struct frame *f, int change_grav, | 750 | extern void x_set_window_size (struct frame *f, int change_grav, |
| 748 | int cols, int rows); | 751 | int cols, int rows); |
| 752 | extern void x_sync (struct frame *); | ||
| 753 | extern Lisp_Object x_get_focus_frame (struct frame *); | ||
| 754 | extern void x_set_mouse_position (struct frame *f, int h, int v); | ||
| 755 | extern void x_set_mouse_pixel_position (struct frame *f, int pix_x, int pix_y); | ||
| 756 | extern void x_make_frame_visible (struct frame *f); | ||
| 757 | extern void x_make_frame_invisible (struct frame *f); | ||
| 758 | extern void x_iconify_frame (struct frame *f); | ||
| 759 | extern int x_char_width (struct frame *f); | ||
| 760 | extern int x_char_height (struct frame *f); | ||
| 761 | extern int x_pixel_width (struct frame *f); | ||
| 762 | extern int x_pixel_height (struct frame *f); | ||
| 763 | extern void x_set_frame_alpha (struct frame *f); | ||
| 764 | extern void x_set_tool_bar_lines (struct frame *f, | ||
| 765 | Lisp_Object value, | ||
| 766 | Lisp_Object oldval); | ||
| 767 | extern void x_activate_menubar (struct frame *); | ||
| 768 | extern void free_frame_menubar (struct frame *); | ||
| 769 | |||
| 770 | extern void ns_init_paths (void); | ||
| 771 | extern void syms_of_nsterm (void); | ||
| 772 | extern void syms_of_nsfns (void); | ||
| 773 | extern void syms_of_nsmenu (void); | ||
| 774 | extern void syms_of_nsselect (void); | ||
| 749 | 775 | ||
| 750 | /* From nsimage.m, needed in image.c */ | 776 | /* From nsimage.m, needed in image.c */ |
| 751 | struct image; | 777 | struct image; |
| @@ -764,6 +790,8 @@ extern int x_display_pixel_height (struct ns_display_info *); | |||
| 764 | extern int x_display_pixel_width (struct ns_display_info *); | 790 | extern int x_display_pixel_width (struct ns_display_info *); |
| 765 | 791 | ||
| 766 | /* This in nsterm.m */ | 792 | /* This in nsterm.m */ |
| 793 | extern int ns_select (int nfds, fd_set *readfds, fd_set *writefds, | ||
| 794 | fd_set *exceptfds, struct timeval *timeout); | ||
| 767 | extern unsigned long ns_get_rgb_color (struct frame *f, | 795 | extern unsigned long ns_get_rgb_color (struct frame *f, |
| 768 | float r, float g, float b, float a); | 796 | float r, float g, float b, float a); |
| 769 | extern NSPoint last_mouse_motion_position; | 797 | extern NSPoint last_mouse_motion_position; |
diff --git a/src/nsterm.m b/src/nsterm.m index 58245f4aebf..88d47d41972 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -296,7 +296,7 @@ append2 (Lisp_Object list, Lisp_Object item) | |||
| 296 | 296 | ||
| 297 | 297 | ||
| 298 | void | 298 | void |
| 299 | ns_init_paths () | 299 | ns_init_paths (void) |
| 300 | /* -------------------------------------------------------------------------- | 300 | /* -------------------------------------------------------------------------- |
| 301 | Used to allow emacs to find its resources under Emacs.app | 301 | Used to allow emacs to find its resources under Emacs.app |
| 302 | Called from emacs.c at startup. | 302 | Called from emacs.c at startup. |
| @@ -479,7 +479,7 @@ ns_retain_object (void *obj) | |||
| 479 | 479 | ||
| 480 | 480 | ||
| 481 | void * | 481 | void * |
| 482 | ns_alloc_autorelease_pool () | 482 | ns_alloc_autorelease_pool (void) |
| 483 | /* -------------------------------------------------------------------------- | 483 | /* -------------------------------------------------------------------------- |
| 484 | Allocate a pool for temporary objects (callable from C) | 484 | Allocate a pool for temporary objects (callable from C) |
| 485 | -------------------------------------------------------------------------- */ | 485 | -------------------------------------------------------------------------- */ |
| @@ -790,7 +790,7 @@ ns_clip_to_row (struct window *w, struct glyph_row *row, int area, BOOL gc) | |||
| 790 | 790 | ||
| 791 | 791 | ||
| 792 | static void | 792 | static void |
| 793 | ns_ring_bell () | 793 | ns_ring_bell (struct frame *f) |
| 794 | /* -------------------------------------------------------------------------- | 794 | /* -------------------------------------------------------------------------- |
| 795 | "Beep" routine | 795 | "Beep" routine |
| 796 | -------------------------------------------------------------------------- */ | 796 | -------------------------------------------------------------------------- */ |
| @@ -1186,12 +1186,14 @@ x_set_window_size (struct frame *f, int change_grav, int cols, int rows) | |||
| 1186 | difference between the real width and Emacs' imagined one. For | 1186 | difference between the real width and Emacs' imagined one. For |
| 1187 | right-hand bars, don't worry about it since the extra is never used. | 1187 | right-hand bars, don't worry about it since the extra is never used. |
| 1188 | (Obviously doesn't work for vertically split windows tho..) */ | 1188 | (Obviously doesn't work for vertically split windows tho..) */ |
| 1189 | NSPoint origin = FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f) | 1189 | { |
| 1190 | ? NSMakePoint (FRAME_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f) | 1190 | NSPoint origin = FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f) |
| 1191 | - NS_SCROLL_BAR_WIDTH (f), 0) | 1191 | ? NSMakePoint (FRAME_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f) |
| 1192 | : NSMakePoint (0, 0); | 1192 | - NS_SCROLL_BAR_WIDTH (f), 0) |
| 1193 | [view setFrame: NSMakeRect (0, 0, pixelwidth, pixelheight)]; | 1193 | : NSMakePoint (0, 0); |
| 1194 | [view setBoundsOrigin: origin]; | 1194 | [view setFrame: NSMakeRect (0, 0, pixelwidth, pixelheight)]; |
| 1195 | [view setBoundsOrigin: origin]; | ||
| 1196 | } | ||
| 1195 | 1197 | ||
| 1196 | change_frame_size (f, rows, cols, 0, 1, 0); /* pretend, delay, safe */ | 1198 | change_frame_size (f, rows, cols, 0, 1, 0); /* pretend, delay, safe */ |
| 1197 | FRAME_PIXEL_WIDTH (f) = pixelwidth; | 1199 | FRAME_PIXEL_WIDTH (f) = pixelwidth; |
| @@ -1507,7 +1509,10 @@ ns_query_color(void *col, XColor *color_def, int setPixel) | |||
| 1507 | 1509 | ||
| 1508 | 1510 | ||
| 1509 | int | 1511 | int |
| 1510 | ns_defined_color (struct frame *f, char *name, XColor *color_def, int alloc, | 1512 | ns_defined_color (struct frame *f, |
| 1513 | const char *name, | ||
| 1514 | XColor *color_def, | ||
| 1515 | int alloc, | ||
| 1511 | char makeIndex) | 1516 | char makeIndex) |
| 1512 | /* -------------------------------------------------------------------------- | 1517 | /* -------------------------------------------------------------------------- |
| 1513 | Return 1 if named color found, and set color_def rgb accordingly. | 1518 | Return 1 if named color found, and set color_def rgb accordingly. |
| @@ -2184,9 +2189,8 @@ ns_draw_fringe_bitmap (struct window *w, struct glyph_row *row, | |||
| 2184 | int yAdjust = rowY - FRAME_INTERNAL_BORDER_WIDTH (f) < 5 ? | 2189 | int yAdjust = rowY - FRAME_INTERNAL_BORDER_WIDTH (f) < 5 ? |
| 2185 | -FRAME_INTERNAL_BORDER_WIDTH (f) : 0; | 2190 | -FRAME_INTERNAL_BORDER_WIDTH (f) : 0; |
| 2186 | int yIncr = FRAME_PIXEL_HEIGHT (f) - (p->by+yAdjust + p->ny) < 5 ? | 2191 | int yIncr = FRAME_PIXEL_HEIGHT (f) - (p->by+yAdjust + p->ny) < 5 ? |
| 2187 | FRAME_INTERNAL_BORDER_WIDTH (f) : 0; | 2192 | FRAME_INTERNAL_BORDER_WIDTH (f) : 0 |
| 2188 | if (yAdjust) | 2193 | + (yAdjust ? FRAME_INTERNAL_BORDER_WIDTH (f) : 0); |
| 2189 | yIncr += FRAME_INTERNAL_BORDER_WIDTH (f); | ||
| 2190 | NSRect r = NSMakeRect (p->bx+xAdjust, p->by+yAdjust, p->nx, p->ny+yIncr); | 2194 | NSRect r = NSMakeRect (p->bx+xAdjust, p->by+yAdjust, p->nx, p->ny+yIncr); |
| 2191 | NSRectClip (r); | 2195 | NSRectClip (r); |
| 2192 | [ns_lookup_indexed_color(face->background, f) set]; | 2196 | [ns_lookup_indexed_color(face->background, f) set]; |
| @@ -2375,7 +2379,7 @@ show_hourglass (struct atimer *timer) | |||
| 2375 | 2379 | ||
| 2376 | 2380 | ||
| 2377 | void | 2381 | void |
| 2378 | hide_hourglass () | 2382 | hide_hourglass (void) |
| 2379 | { | 2383 | { |
| 2380 | if (!hourglass_shown_p) | 2384 | if (!hourglass_shown_p) |
| 2381 | return; | 2385 | return; |
| @@ -3406,16 +3410,14 @@ x_wm_set_icon_position (struct frame *f, int icon_x, int icon_y) | |||
| 3406 | ========================================================================== */ | 3410 | ========================================================================== */ |
| 3407 | 3411 | ||
| 3408 | int | 3412 | int |
| 3409 | x_display_pixel_height (dpyinfo) | 3413 | x_display_pixel_height (struct ns_display_info *dpyinfo) |
| 3410 | struct ns_display_info *dpyinfo; | ||
| 3411 | { | 3414 | { |
| 3412 | NSScreen *screen = [NSScreen mainScreen]; | 3415 | NSScreen *screen = [NSScreen mainScreen]; |
| 3413 | return [screen frame].size.height; | 3416 | return [screen frame].size.height; |
| 3414 | } | 3417 | } |
| 3415 | 3418 | ||
| 3416 | int | 3419 | int |
| 3417 | x_display_pixel_width (dpyinfo) | 3420 | x_display_pixel_width (struct ns_display_info *dpyinfo) |
| 3418 | struct ns_display_info *dpyinfo; | ||
| 3419 | { | 3421 | { |
| 3420 | NSScreen *screen = [NSScreen mainScreen]; | 3422 | NSScreen *screen = [NSScreen mainScreen]; |
| 3421 | return [screen frame].size.width; | 3423 | return [screen frame].size.width; |
| @@ -5743,9 +5745,10 @@ ns_term_shutdown (int sig) | |||
| 5743 | NSTRACE (judge); | 5745 | NSTRACE (judge); |
| 5744 | if (condemned) | 5746 | if (condemned) |
| 5745 | { | 5747 | { |
| 5748 | EmacsView *view; | ||
| 5746 | BLOCK_INPUT; | 5749 | BLOCK_INPUT; |
| 5747 | /* ensure other scrollbar updates after deletion */ | 5750 | /* ensure other scrollbar updates after deletion */ |
| 5748 | EmacsView *view = (EmacsView *)FRAME_NS_VIEW (frame); | 5751 | view = (EmacsView *)FRAME_NS_VIEW (frame); |
| 5749 | if (view != nil) | 5752 | if (view != nil) |
| 5750 | view->scrollbarsNeedingUpdate++; | 5753 | view->scrollbarsNeedingUpdate++; |
| 5751 | [self removeFromSuperview]; | 5754 | [self removeFromSuperview]; |
| @@ -6122,7 +6125,7 @@ ns_xlfd_to_fontname (const char *xlfd) | |||
| 6122 | 6125 | ||
| 6123 | 6126 | ||
| 6124 | void | 6127 | void |
| 6125 | syms_of_nsterm () | 6128 | syms_of_nsterm (void) |
| 6126 | { | 6129 | { |
| 6127 | NSTRACE (syms_of_nsterm); | 6130 | NSTRACE (syms_of_nsterm); |
| 6128 | 6131 | ||
diff --git a/src/process.c b/src/process.c index cccf7f75fe0..24786d0e777 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -89,6 +89,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 89 | #include <resolv.h> | 89 | #include <resolv.h> |
| 90 | #endif | 90 | #endif |
| 91 | 91 | ||
| 92 | #ifdef HAVE_UTIL_H | ||
| 93 | #include <util.h> | ||
| 94 | #endif | ||
| 95 | |||
| 92 | #endif /* subprocesses */ | 96 | #endif /* subprocesses */ |
| 93 | 97 | ||
| 94 | #include "lisp.h" | 98 | #include "lisp.h" |
| @@ -116,7 +120,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 116 | #if defined (USE_GTK) || defined (HAVE_GCONF) | 120 | #if defined (USE_GTK) || defined (HAVE_GCONF) |
| 117 | #include "xgselect.h" | 121 | #include "xgselect.h" |
| 118 | #endif /* defined (USE_GTK) || defined (HAVE_GCONF) */ | 122 | #endif /* defined (USE_GTK) || defined (HAVE_GCONF) */ |
| 119 | 123 | #ifdef HAVE_NS | |
| 124 | #include "nsterm.h" | ||
| 125 | #endif | ||
| 120 | extern int timers_run; | 126 | extern int timers_run; |
| 121 | 127 | ||
| 122 | Lisp_Object Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname, Qtpgid; | 128 | Lisp_Object Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname, Qtpgid; |
diff --git a/src/sysdep.c b/src/sysdep.c index d8ae46f19be..678f4a6faea 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -33,6 +33,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 33 | #ifdef HAVE_UNISTD_H | 33 | #ifdef HAVE_UNISTD_H |
| 34 | #include <unistd.h> | 34 | #include <unistd.h> |
| 35 | #endif | 35 | #endif |
| 36 | #ifdef HAVE_TERM_H | ||
| 37 | #include <term.h> | ||
| 38 | #endif | ||
| 36 | 39 | ||
| 37 | #include "lisp.h" | 40 | #include "lisp.h" |
| 38 | /* Including stdlib.h isn't necessarily enough to get srandom | 41 | /* Including stdlib.h isn't necessarily enough to get srandom |
diff --git a/src/term.c b/src/term.c index 5fdc4caeb2f..6fb26c77851 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -34,6 +34,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 34 | #if HAVE_TERMIOS_H | 34 | #if HAVE_TERMIOS_H |
| 35 | #include <termios.h> /* For TIOCNOTTY. */ | 35 | #include <termios.h> /* For TIOCNOTTY. */ |
| 36 | #endif | 36 | #endif |
| 37 | #ifdef HAVE_SYS_IOCTL_H | ||
| 38 | #include <sys/ioctl.h> | ||
| 39 | #endif | ||
| 37 | 40 | ||
| 38 | #include <signal.h> | 41 | #include <signal.h> |
| 39 | #include <stdarg.h> | 42 | #include <stdarg.h> |
diff --git a/src/unexmacosx.c b/src/unexmacosx.c index 1acc009ba90..ef43e9bef12 100644 --- a/src/unexmacosx.c +++ b/src/unexmacosx.c | |||
| @@ -305,7 +305,7 @@ print_region (vm_address_t address, vm_size_t size, vm_prot_t prot, | |||
| 305 | } | 305 | } |
| 306 | 306 | ||
| 307 | static void | 307 | static void |
| 308 | print_region_list () | 308 | print_region_list (void) |
| 309 | { | 309 | { |
| 310 | struct region_t *r; | 310 | struct region_t *r; |
| 311 | 311 | ||
| @@ -316,7 +316,7 @@ print_region_list () | |||
| 316 | } | 316 | } |
| 317 | 317 | ||
| 318 | static void | 318 | static void |
| 319 | print_regions () | 319 | print_regions (void) |
| 320 | { | 320 | { |
| 321 | task_t target_task = mach_task_self (); | 321 | task_t target_task = mach_task_self (); |
| 322 | vm_address_t address = (vm_address_t) 0; | 322 | vm_address_t address = (vm_address_t) 0; |
| @@ -346,7 +346,7 @@ print_regions () | |||
| 346 | cannot be omitted because they some regions created at run time are | 346 | cannot be omitted because they some regions created at run time are |
| 347 | read-only. */ | 347 | read-only. */ |
| 348 | static void | 348 | static void |
| 349 | build_region_list () | 349 | build_region_list (void) |
| 350 | { | 350 | { |
| 351 | task_t target_task = mach_task_self (); | 351 | task_t target_task = mach_task_self (); |
| 352 | vm_address_t address = (vm_address_t) 0; | 352 | vm_address_t address = (vm_address_t) 0; |
| @@ -465,7 +465,7 @@ unexec_reader (task_t task, vm_address_t address, vm_size_t size, void **ptr) | |||
| 465 | } | 465 | } |
| 466 | 466 | ||
| 467 | static void | 467 | static void |
| 468 | find_emacs_zone_regions () | 468 | find_emacs_zone_regions (void) |
| 469 | { | 469 | { |
| 470 | num_unexec_regions = 0; | 470 | num_unexec_regions = 0; |
| 471 | 471 | ||
| @@ -495,7 +495,7 @@ unexec_regions_sort_compare (const void *a, const void *b) | |||
| 495 | } | 495 | } |
| 496 | 496 | ||
| 497 | static void | 497 | static void |
| 498 | unexec_regions_merge () | 498 | unexec_regions_merge (void) |
| 499 | { | 499 | { |
| 500 | int i, n; | 500 | int i, n; |
| 501 | unexec_region_info r; | 501 | unexec_region_info r; |
| @@ -627,7 +627,7 @@ print_load_command (struct load_command *lc) | |||
| 627 | the global array lca. Store the total number of load commands in | 627 | the global array lca. Store the total number of load commands in |
| 628 | global variable nlc. */ | 628 | global variable nlc. */ |
| 629 | static void | 629 | static void |
| 630 | read_load_commands () | 630 | read_load_commands (void) |
| 631 | { | 631 | { |
| 632 | int i; | 632 | int i; |
| 633 | 633 | ||
| @@ -684,8 +684,8 @@ read_load_commands () | |||
| 684 | } | 684 | } |
| 685 | } | 685 | } |
| 686 | 686 | ||
| 687 | printf ("Highest address of load commands in input file: %#8x\n", | 687 | printf ("Highest address of load commands in input file: %#8lx\n", |
| 688 | infile_lc_highest_addr); | 688 | (unsigned long)infile_lc_highest_addr); |
| 689 | 689 | ||
| 690 | printf ("Lowest offset of all sections in __TEXT segment: %#8lx\n", | 690 | printf ("Lowest offset of all sections in __TEXT segment: %#8lx\n", |
| 691 | text_seg_lowest_offset); | 691 | text_seg_lowest_offset); |
| @@ -1143,7 +1143,7 @@ copy_other (struct load_command *lc) | |||
| 1143 | /* Loop through all load commands and dump them. Then write the Mach | 1143 | /* Loop through all load commands and dump them. Then write the Mach |
| 1144 | header. */ | 1144 | header. */ |
| 1145 | static void | 1145 | static void |
| 1146 | dump_it () | 1146 | dump_it (void) |
| 1147 | { | 1147 | { |
| 1148 | int i; | 1148 | int i; |
| 1149 | long linkedit_delta = 0; | 1149 | long linkedit_delta = 0; |
| @@ -1253,7 +1253,7 @@ unexec (char *outfile, char *infile, void *start_data, void *start_bss, | |||
| 1253 | 1253 | ||
| 1254 | 1254 | ||
| 1255 | void | 1255 | void |
| 1256 | unexec_init_emacs_zone () | 1256 | unexec_init_emacs_zone (void) |
| 1257 | { | 1257 | { |
| 1258 | emacs_zone = malloc_create_zone (0, 0); | 1258 | emacs_zone = malloc_create_zone (0, 0); |
| 1259 | malloc_set_zone_name (emacs_zone, "EmacsZone"); | 1259 | malloc_set_zone_name (emacs_zone, "EmacsZone"); |
diff --git a/src/window.c b/src/window.c index 60da49175e3..29be829005d 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -37,6 +37,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 37 | #include "blockinput.h" | 37 | #include "blockinput.h" |
| 38 | #include "intervals.h" | 38 | #include "intervals.h" |
| 39 | #include "termhooks.h" /* For FRAME_TERMINAL. */ | 39 | #include "termhooks.h" /* For FRAME_TERMINAL. */ |
| 40 | #include "menu.h" | ||
| 40 | 41 | ||
| 41 | #ifdef HAVE_X_WINDOWS | 42 | #ifdef HAVE_X_WINDOWS |
| 42 | #include "xterm.h" | 43 | #include "xterm.h" |
diff --git a/src/xfaces.c b/src/xfaces.c index a7a88f5940d..21adb948c91 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -742,10 +742,9 @@ x_free_gc (struct frame *f, GC gc) | |||
| 742 | /* NS emulation of GCs */ | 742 | /* NS emulation of GCs */ |
| 743 | 743 | ||
| 744 | static INLINE GC | 744 | static INLINE GC |
| 745 | x_create_gc (f, mask, xgcv) | 745 | x_create_gc (struct frame *f, |
| 746 | struct frame *f; | 746 | unsigned long mask, |
| 747 | unsigned long mask; | 747 | XGCValues *xgcv) |
| 748 | XGCValues *xgcv; | ||
| 749 | { | 748 | { |
| 750 | GC gc = xmalloc (sizeof (*gc)); | 749 | GC gc = xmalloc (sizeof (*gc)); |
| 751 | if (gc) | 750 | if (gc) |
| @@ -754,9 +753,7 @@ x_create_gc (f, mask, xgcv) | |||
| 754 | } | 753 | } |
| 755 | 754 | ||
| 756 | static INLINE void | 755 | static INLINE void |
| 757 | x_free_gc (f, gc) | 756 | x_free_gc (struct frame *f, GC gc) |
| 758 | struct frame *f; | ||
| 759 | GC gc; | ||
| 760 | { | 757 | { |
| 761 | xfree (gc); | 758 | xfree (gc); |
| 762 | } | 759 | } |