149
+ − 1 #! /bin/sh
+ − 2
+ − 3 #### Configuration script for XEmacs. Largely divergent from FSF.
+ − 4 #### Guess values for system-dependent variables and create Makefiles.
420
+ − 5 #### Generated automatically using autoconf version 2.13
460
+ − 6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
0
+ − 7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
149
+ − 8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
0
+ − 9 #### Copyright (C) 1995, 1996 Ben Wing.
460
+ − 10 #### Copyright (C) 2000, 2001 Martin Buchholz.
388
+ − 11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
0
+ − 12
+ − 13 ### Don't edit this script!
+ − 14 ### This script was automatically generated by the `autoconf' program
+ − 15 ### from the file `./configure.in'.
+ − 16 ### To rebuild it, execute the command
+ − 17 ### autoconf
442
+ − 18 ### in the this directory. You must have autoconf version 2.13 or later.
724
+ − 19 ### Note: this script has not yet been ported to autoconf version 2.5x.
0
+ − 20
+ − 21 ### This file is part of XEmacs.
+ − 22
+ − 23 ### XEmacs is free software; you can redistribute it and/or modify it
+ − 24 ### under the terms of the GNU General Public License as published by
+ − 25 ### the Free Software Foundation; either version 2, or (at your
+ − 26 ### option) any later version.
+ − 27
+ − 28 ### XEmacs is distributed in the hope that it will be useful, but
+ − 29 ### WITHOUT ANY WARRANTY; without even the implied warranty of
+ − 30 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ − 31 ### General Public License for more details.
+ − 32
+ − 33 ### You should have received a copy of the GNU General Public License
+ − 34 ### along with XEmacs; see the file COPYING. If not, write to the Free
+ − 35 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ − 36 ### 02111-1307, USA.
+ − 37
149
+ − 38 ### For usage, run `./configure --help'
+ − 39 ### For more detailed information on building and installing XEmacs,
+ − 40 ### read the file `INSTALL'.
0
+ − 41 ###
+ − 42 ### If configure succeeds, it leaves its status in config.status.
149
+ − 43 ### A log of configuration tests can be found in config.log.
0
+ − 44 ### If configure fails after disturbing the status quo,
+ − 45 ### config.status is removed.
+ − 46
149
+ − 47 ac_help="$ac_help
+ − 48 --with-x use the X Window System"
+ − 49
284
+ − 50
+ − 51
+ − 52 if test -n "$ZSH_VERSION"; then
+ − 53 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
+ − 54 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
+ − 55 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
+ − 56 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
+ − 57 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
+ − 58 elif test -n "$BASH_VERSION"; then
+ − 59 set -o posix
+ − 60 unset CDPATH
+ − 61 else
+ − 62 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
+ − 63 fi
+ − 64
149
+ − 65 exec_prefix=NONE
+ − 66 host=NONE
+ − 67 no_create=
+ − 68 nonopt=NONE
+ − 69 no_recursion=
+ − 70 prefix=NONE
+ − 71 program_prefix=NONE
+ − 72 program_suffix=NONE
+ − 73 program_transform_name=s,x,x,
+ − 74 silent=
+ − 75 site=
+ − 76 srcdir=
+ − 77 target=NONE
+ − 78 verbose=
+ − 79 x_includes=NONE
+ − 80 x_libraries=NONE
153
+ − 81
149
+ − 82 subdirs=
+ − 83 MFLAGS= MAKEFLAGS=
442
+ − 84 SHELL=${CONFIG_SHELL-/bin/sh}
149
+ − 85 ac_max_here_lines=12
+ − 86
+ − 87 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
+ − 88
+ − 89 # File descriptor usage:
+ − 90 # 0 standard input
+ − 91 # 1 file creation
+ − 92 # 2 errors and warnings
+ − 93 # 3 some systems may open it to /dev/tty
+ − 94 # 4 used on the Kubota Titan
+ − 95 # 6 checking for... messages and results
+ − 96 # 5 compiler messages saved in config.log
+ − 97 if test "$silent" = yes; then
+ − 98 exec 6>/dev/null
+ − 99 else
+ − 100 exec 6>&1
+ − 101 fi
+ − 102 exec 5>./config.log
+ − 103
+ − 104 echo "\
+ − 105 This file contains any messages produced by compilers while
+ − 106 running configure, to aid debugging if configure makes a mistake.
+ − 107 " 1>&5
+ − 108
+ − 109 # Strip out --no-create and --no-recursion so they do not pile up.
+ − 110 # Also quote any args containing shell metacharacters.
+ − 111 ac_configure_args=
+ − 112 for ac_arg
+ − 113 do
+ − 114 case "$ac_arg" in
+ − 115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ − 116 | --no-cr | --no-c) ;;
+ − 117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ − 118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
+ − 119 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
+ − 120 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
+ − 121 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
+ − 122 esac
+ − 123 done
+ − 124
+ − 125 # NLS nuisances.
+ − 126 # Only set these to C if already set. These must not be set unconditionally
+ − 127 # because not all systems understand e.g. LANG=C (notably SCO).
+ − 128 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
+ − 129 # Non-C LC_CTYPE values break the ctype check.
+ − 130 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
+ − 131 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
+ − 132 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
+ − 133 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
+ − 134
+ − 135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
+ − 136 rm -rf conftest* confdefs.h
+ − 137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
+ − 138 echo > confdefs.h
+ − 139
+ − 140 # A filename unique to this package, relative to the directory that
+ − 141 # configure is in, which we can look for to find out if srcdir is correct.
+ − 142 ac_unique_file=src/lisp.h
+ − 143
+ − 144 # Find the source files, if location was not specified.
+ − 145 if test -z "$srcdir"; then
+ − 146 ac_srcdir_defaulted=yes
+ − 147 # Try the directory containing this script, then its parent.
+ − 148 ac_prog=$0
+ − 149 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
+ − 150 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
+ − 151 srcdir=$ac_confdir
+ − 152 if test ! -r $srcdir/$ac_unique_file; then
+ − 153 srcdir=..
+ − 154 fi
+ − 155 else
+ − 156 ac_srcdir_defaulted=no
+ − 157 fi
+ − 158 if test ! -r $srcdir/$ac_unique_file; then
+ − 159 if test "$ac_srcdir_defaulted" = yes; then
+ − 160 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
+ − 161 else
+ − 162 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
+ − 163 fi
+ − 164 fi
+ − 165 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
+ − 166
+ − 167 # Prefer explicitly selected file to automatically selected ones.
+ − 168 if test -z "$CONFIG_SITE"; then
+ − 169 if test "x$prefix" != xNONE; then
+ − 170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
+ − 171 else
+ − 172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
+ − 173 fi
+ − 174 fi
+ − 175 for ac_site_file in $CONFIG_SITE; do
+ − 176 if test -r "$ac_site_file"; then
+ − 177 echo "loading site script $ac_site_file"
+ − 178 . "$ac_site_file"
+ − 179 fi
+ − 180 done
+ − 181
+ − 182
+ − 183 ac_ext=c
151
+ − 184 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 185 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 186 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
+ − 187 ac_cpp='$CPP '"$xe_cppflags"
151
+ − 188 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 189 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
+ − 190 cross_compiling=no
+ − 191
420
+ − 192 ac_exeext=
+ − 193 ac_objext=o
149
+ − 194 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
+ − 195 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
+ − 196 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
+ − 197 ac_n= ac_c='
+ − 198 ' ac_t=' '
+ − 199 else
+ − 200 ac_n=-n ac_c= ac_t=
+ − 201 fi
+ − 202 else
+ − 203 ac_n= ac_c='\c' ac_t=
+ − 204 fi
+ − 205
+ − 206
0
+ − 207 progname="`echo $0 | sed 's:^\./\./:\./:'`"
+ − 208
149
+ − 209
151
+ − 210 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
167
+ − 211 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
149
+ − 212
0
+ − 213 prefix='/usr/local'
+ − 214 exec_prefix='${prefix}'
+ − 215 bindir='${exec_prefix}/bin'
+ − 216 datadir='${prefix}/lib'
+ − 217 statedir='${prefix}/lib'
+ − 218 libdir='${exec_prefix}/lib'
+ − 219 mandir='${prefix}/man/man1'
422
+ − 220 inststaticdir='${PROGNAME}'
+ − 221 instvardir='${PROGNAME}-${version}'
+ − 222 infodir='${datadir}/${instvardir}/info'
274
+ − 223 infopath=''
276
+ − 224 install_pp=''
422
+ − 225 lispdir='${datadir}/${instvardir}/lisp'
670
+ − 226 moduledir='${libdir}/${instvardir}/${configuration}/modules'
422
+ − 227 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
670
+ − 228 sitemoduledir='${libdir}/${inststaticdir}/site-modules'
422
+ − 229 pkgdir='${datadir}/${instvardir}/lisp'
274
+ − 230 package_path=''
422
+ − 231 etcdir='${datadir}/${instvardir}/etc'
670
+ − 232 archlibdir='${libdir}/${instvardir}/${configuration}'
420
+ − 233 docdir='${archlibdir}'
462
+ − 234 with_netinstall="no"
420
+ − 235 with_prefix='yes'
269
+ − 236 with_site_lisp='no'
388
+ − 237 with_site_modules='yes'
0
+ − 238 with_menubars=''
+ − 239 with_scrollbars=''
420
+ − 240 with_widgets=''
0
+ − 241 with_dialogs=''
272
+ − 242 cpp='' cppflags='' libs='' ldflags=''
452
+ − 243 extra_includes=''
0
+ − 244 dynamic=''
+ − 245 with_x11=''
263
+ − 246 with_msw=''
0
+ − 247 rel_alloc='default'
181
+ − 248 with_system_malloc='default'
261
+ − 249 with_dlmalloc='default'
0
+ − 250 native_sound_lib=''
462
+ − 251 with_gtk='no'
+ − 252 with_gnome='no'
153
+ − 253 use_assertions="yes"
+ − 254 with_toolbars=""
157
+ − 255 with_tty=""
153
+ − 256 use_union_type="no"
+ − 257 with_dnet=""
424
+ − 258 pdump="no"
440
+ − 259 with_dragndrop="no"
708
+ − 260 with_ipv6_cname="no"
0
+ − 261
149
+ − 262
+ − 263
+ − 264
0
+ − 265 arguments="$@"
+ − 266
120
+ − 267 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
0
+ − 268 quoted_arguments=
+ − 269 for i in "$@"; do
120
+ − 270 case "$i" in
+ − 271 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ − 272 | --no-cr | --no-c) ;;
153
+ − 273 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ − 274 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
120
+ − 275 *)
159
+ − 276 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
120
+ − 277 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
+ − 278 esac
0
+ − 279 done
+ − 280
70
+ − 281 while test $# != 0; do
0
+ − 282 arg="$1"; shift
149
+ − 283 case "$arg" in
157
+ − 284 --no-create|--no-recursion) ;;
149
+ − 285 -* )
+ − 286 case "$arg" in
0
+ − 287 -*=*)
149
+ − 288 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
+ − 289 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
0
+ − 290 valomitted=no
+ − 291 ;;
149
+ − 292 -*)
+ − 293 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
243
+ − 294 val="yes" valomitted=yes
0
+ − 295 ;;
+ − 296 esac
+ − 297
274
+ − 298 optname="$opt"
+ − 299 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
+ − 300
243
+ − 301 case "${valomitted}-${opt}" in yes-without_* )
+ − 302 opt=`echo $opt | sed 's/without/with/'`
+ − 303 valomitted="no" val="no" ;;
+ − 304 esac
+ − 305
149
+ − 306 case "$opt" in
+ − 307
380
+ − 308 with_site_lisp | \
420
+ − 309 with_prefix | \
+ − 310 with_site_modules | \
70
+ − 311 with_x | \
+ − 312 with_x11 | \
462
+ − 313 with_gtk | \
+ − 314 with_gnome | \
263
+ − 315 with_msw | \
70
+ − 316 with_gcc | \
+ − 317 dynamic | \
149
+ − 318 with_ncurses | \
+ − 319 with_dnet | \
+ − 320 with_socks | \
282
+ − 321 with_dragndrop | \
70
+ − 322 with_cde | \
+ − 323 with_offix | \
149
+ − 324 with_gpm | \
+ − 325 with_xpm | \
+ − 326 with_xface | \
251
+ − 327 with_gif | \
+ − 328 with_jpeg | \
+ − 329 with_png | \
+ − 330 with_tiff | \
414
+ − 331 with_wmcommand | \
70
+ − 332 with_xmu | \
380
+ − 333 with_purify | \
149
+ − 334 with_quantify | \
70
+ − 335 with_toolbars | \
+ − 336 with_tty | \
215
+ − 337 with_xfs | \
70
+ − 338 with_i18n3 | \
+ − 339 with_mule | \
380
+ − 340 with_file_coding| \
70
+ − 341 with_canna | \
+ − 342 with_wnn | \
98
+ − 343 with_wnn6 | \
149
+ − 344 with_workshop | \
70
+ − 345 with_sparcworks | \
380
+ − 346 with_tooltalk | \
259
+ − 347 with_ldap | \
442
+ − 348 with_postgresql | \
118
+ − 349 with_pop | \
+ − 350 with_kerberos | \
+ − 351 with_hesiod | \
136
+ − 352 with_dnet | \
280
+ − 353 with_infodock | \
724
+ − 354 with_netinstall | \
+ − 355 with_ipv6_cname | \
70
+ − 356 external_widget | \
120
+ − 357 verbose | \
+ − 358 extra_verbose | \
380
+ − 359 usage_tracking | \
+ − 360 use_union_type | \
424
+ − 361 pdump | \
70
+ − 362 debug | \
+ − 363 use_assertions | \
+ − 364 memory_usage_stats | \
173
+ − 365 with_clash_detection | \
422
+ − 366 with_modules | \
442
+ − 367 quick_build )
149
+ − 368 case "$val" in
0
+ − 369 y | ye | yes ) val=yes ;;
380
+ − 370 n | no ) val=no ;;
149
+ − 371 * ) (echo "$progname: Usage error:"
+ − 372 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
+ − 373 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 374 esac
380
+ − 375 eval "$opt=\"$val\"" ;;
149
+ − 376
+ − 377
153
+ − 378 srcdir | \
70
+ − 379 compiler | \
596
+ − 380 xemacs_compiler | \
157
+ − 381 cflags | \
272
+ − 382 cpp | \
+ − 383 cppflags | \
+ − 384 libs | \
+ − 385 ldflags | \
153
+ − 386 cache_file | \
380
+ − 387 native_sound_lib| \
267
+ − 388 site_lisp | \
70
+ − 389 x_includes | \
+ − 390 x_libraries | \
+ − 391 site_includes | \
+ − 392 site_libraries | \
209
+ − 393 site_prefixes | \
149
+ − 394 site_runtime_libraries )
+ − 395 if test "$valomitted" = "yes" ; then
+ − 396 if test "$#" = 0 ; then
+ − 397 (echo "$progname: Usage error:"
+ − 398 echo " " "The \`--$optname' option requires a value."
+ − 399 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
0
+ − 400 fi
+ − 401 val="$1"; shift
+ − 402 fi
149
+ − 403 eval "$opt=\"$val\""
0
+ − 404 ;;
+ − 405
149
+ − 406 rel_alloc | \
261
+ − 407 with_dlmalloc | \
181
+ − 408 with_debug_malloc | use_debug_malloc | \
+ − 409 with_system_malloc | use_system_malloc )
149
+ − 410 case "$val" in
0
+ − 411 y | ye | yes ) val=yes ;;
+ − 412 n | no ) val=no ;;
181
+ − 413 d | de | def | defa | defau | defaul | default ) val=default ;;
149
+ − 414 * ) (echo "$progname: Usage error:"
+ − 415 echo " " "The \`--$optname' option requires one of these values:
120
+ − 416 \`yes', \`no', or \`default'."
149
+ − 417 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 418 esac
265
+ − 419 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
149
+ − 420 eval "$opt=\"$val\""
0
+ − 421 ;;
+ − 422
149
+ − 423 "with_database" )
120
+ − 424 with_database_berkdb=no
+ − 425 with_database_dbm=no
426
+ − 426 with_database_gdbm=no
300
+ − 427 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
149
+ − 428 case "$x" in
426
+ − 429 no ) ;;
+ − 430 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
+ − 431 d | db | dbm ) with_database_dbm=yes ;;
+ − 432 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
+ − 433 * ) (echo "$progname: Usage error:"
149
+ − 434 echo " " "The \`--$optname' option value
120
+ − 435 must be either \`no' or a comma-separated list
380
+ − 436 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
149
+ − 437 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
120
+ − 438 esac
+ − 439 done
426
+ − 440 if test "$with_database_dbm" = "yes" -a \
+ − 441 "$with_database_gdbm" = "yes"; then
149
+ − 442 (echo "$progname: Usage error:"
120
+ − 443 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
149
+ − 444 with the \`--$optname' option."
+ − 445 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
+ − 446 fi
70
+ − 447 ;;
0
+ − 448
149
+ − 449 "with_sound" )
426
+ − 450 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
+ − 451 case "$x" in
+ − 452 n | no | non | none ) new_sdefault=no ;;
+ − 453 a | al | all | both ) new_sdefault=yes ;;
+ − 454
+ − 455 native ) with_native_sound=yes ;;
+ − 456 nonative ) with_native_sound=no ;;
+ − 457
+ − 458 nas ) with_nas_sound=yes ;;
+ − 459 nonas ) with_nas_sound=no ;;
+ − 460
432
+ − 461 esd ) with_esd_sound=yes ;;
+ − 462 noesd ) with_esd_sound=no ;;
426
+ − 463
+ − 464 * ) bogus_sound=yes ;;
+ − 465 esac
+ − 466 if test "$bogus_sound" -o \
+ − 467 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
+ − 468 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
+ − 469 (echo "$progname: Usage error:"
+ − 470 echo " " "Valid types for the \`--$optname' option are:
+ − 471 $types.
724
+ − 472 Option \`all' or \`none' must be first in the list.
+ − 473 The default is to autodetect native and NAS sound support."
426
+ − 474 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 475 elif test -n "$new_sdefault" ; then
+ − 476 with_native_sound=$new_sdefault
+ − 477 with_nas_sound=$new_sdefault
432
+ − 478 with_esd_sound=$new_sdefault
426
+ − 479 new_sdefault= # reset this
+ − 480 fi
+ − 481 sound_notfirst=true
+ − 482 done
0
+ − 483 ;;
+ − 484
434
+ − 485 "with_athena" )
+ − 486 case "$val" in
+ − 487 xa | xaw ) val=xaw ;;
+ − 488 3 | 3d | xaw3d ) val=3d ;;
+ − 489 ne | nex | next | naxtaw) val=next ;;
+ − 490 9 | 95 | xaw95 ) val=95 ;;
+ − 491 xp | xpm | xawxpm ) val=xpm ;;
+ − 492 * ) (echo "$progname: Usage error:"
+ − 493 echo " " "The \`--$optname' option must have one of these values:
+ − 494 \`xaw', \`3d', \`next', \`95', or \`xpm'."
+ − 495 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
+ − 496 esac
+ − 497 eval "$opt=\"$val\""
+ − 498 ;;
+ − 499
149
+ − 500 "with_xim" )
+ − 501 case "$val" in
+ − 502 y | ye | yes ) val=yes ;;
+ − 503 n | no | non | none ) val=no ;;
+ − 504 x | xl | xli | xlib ) val=xlib ;;
+ − 505 m | mo | mot | moti | motif ) val=motif ;;
+ − 506 * ) (echo "$progname: Usage error:"
+ − 507 echo " " "The \`--$optname' option must have one of these values:
+ − 508 \`motif', \`xlib', \`yes', or \`no'."
+ − 509 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 510 esac
149
+ − 511 eval "$opt=\"$val\""
0
+ − 512 ;;
+ − 513
149
+ − 514 "mail_locking" )
+ − 515 case "$val" in
+ − 516 lockf ) val=lockf ;;
+ − 517 flock ) val=flock ;;
438
+ − 518 file | dot ) val=file ;;
+ − 519 locking ) val=locking ;;
149
+ − 520 * ) (echo "$progname: Usage error:"
+ − 521 echo " " "The \`--$optname' option must have one of these values:
438
+ − 522 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
149
+ − 523 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
+ − 524 esac
+ − 525 eval "$opt=\"$val\""
+ − 526 ;;
+ − 527
+ − 528 "error_checking" )
+ − 529
267
+ − 530 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
149
+ − 531 case "$x" in
+ − 532 n | no | non | none ) new_default=no ;;
0
+ − 533 a | al | all ) new_default=yes ;;
+ − 534
+ − 535 extents ) error_check_extents=yes ;;
+ − 536 noextents ) error_check_extents=no ;;
+ − 537
+ − 538 typecheck ) error_check_typecheck=yes ;;
+ − 539 notypecheck ) error_check_typecheck=no ;;
+ − 540
665
+ − 541 charbpos ) error_check_charbpos=yes ;;
+ − 542 nocharbpos ) error_check_charbpos=no ;;
0
+ − 543
+ − 544 gc ) error_check_gc=yes ;;
+ − 545 nogc ) error_check_gc=no ;;
+ − 546
+ − 547 malloc ) error_check_malloc=yes ;;
+ − 548 nomalloc ) error_check_malloc=no ;;
149
+ − 549
414
+ − 550 byte_code ) error_check_byte_code=yes ;;
+ − 551 nobyte_code ) error_check_byte_code=no ;;
+ − 552
442
+ − 553 glyphs ) error_check_glyphs=yes ;;
+ − 554 noglyphs ) error_check_glyphs=no ;;
+ − 555
0
+ − 556 * ) bogus_error_check=yes ;;
+ − 557 esac
70
+ − 558 if test "$bogus_error_check" -o \
+ − 559 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
267
+ − 560 if test "$error_check_default" = yes ; then
665
+ − 561 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nocharbpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
0
+ − 562 else
665
+ − 563 types="\`all', \`none' (default), \`extents', \`typecheck', \`charbpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
0
+ − 564 fi
149
+ − 565 (echo "$progname: Usage error:"
+ − 566 echo " " "Valid types for the \`--$optname' option are:
120
+ − 567 $types."
149
+ − 568 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
151
+ − 569 elif test -n "$new_default" ; then
0
+ − 570 error_check_extents=$new_default
+ − 571 error_check_typecheck=$new_default
665
+ − 572 error_check_charbpos=$new_default
0
+ − 573 error_check_gc=$new_default
+ − 574 error_check_malloc=$new_default
414
+ − 575 error_check_byte_code=$new_default
442
+ − 576 error_check_glyphs=$new_default
0
+ − 577 new_default= # reset this
+ − 578 fi
+ − 579 echeck_notfirst=true
+ − 580 done
+ − 581 ;;
+ − 582
149
+ − 583
+ − 584 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
442
+ − 585 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
380
+ − 586 archlibdir | docdir | package_path )
151
+ − 587 if test "$valomitted" = "yes"; then
+ − 588 if test "$#" = 0; then
149
+ − 589 (echo "$progname: Usage error:"
+ − 590 echo " " "The \`--$optname' option requires a value."
+ − 591 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
120
+ − 592 fi
+ − 593 val="$1"; shift
0
+ − 594 fi
149
+ − 595 eval "$opt=\"$val\""
+ − 596
278
+ − 597 case "$opt" in
420
+ − 598 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 599 Defining EXEC_PREFIX_USER_DEFINED
+ − 600 EOF
+ − 601 cat >> confdefs.h <<\EOF
+ − 602 #define EXEC_PREFIX_USER_DEFINED 1
+ − 603 EOF
+ − 604 }
+ − 605 ;;
274
+ − 606 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 607 Defining LISPDIR_USER_DEFINED
+ − 608 EOF
+ − 609 cat >> confdefs.h <<\EOF
+ − 610 #define LISPDIR_USER_DEFINED 1
+ − 611 EOF
+ − 612 }
+ − 613 ;;
388
+ − 614 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 615 Defining SITELISPDIR_USER_DEFINED
+ − 616 EOF
+ − 617 cat >> confdefs.h <<\EOF
+ − 618 #define SITELISPDIR_USER_DEFINED 1
+ − 619 EOF
+ − 620 }
+ − 621 ;;
+ − 622 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 623 Defining MODULEDIR_USER_DEFINED
+ − 624 EOF
+ − 625 cat >> confdefs.h <<\EOF
+ − 626 #define MODULEDIR_USER_DEFINED 1
+ − 627 EOF
+ − 628 }
+ − 629 ;;
274
+ − 630 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 631 Defining ETCDIR_USER_DEFINED
+ − 632 EOF
+ − 633 cat >> confdefs.h <<\EOF
+ − 634 #define ETCDIR_USER_DEFINED 1
+ − 635 EOF
+ − 636 }
+ − 637 ;;
+ − 638 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 639 Defining INFODIR_USER_DEFINED
+ − 640 EOF
+ − 641 cat >> confdefs.h <<\EOF
+ − 642 #define INFODIR_USER_DEFINED 1
+ − 643 EOF
+ − 644 }
+ − 645 ;;
+ − 646 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 647 Defining INFOPATH_USER_DEFINED
+ − 648 EOF
+ − 649 cat >> confdefs.h <<\EOF
+ − 650 #define INFOPATH_USER_DEFINED 1
+ − 651 EOF
+ − 652 }
+ − 653 ;;
+ − 654 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 655 Defining PACKAGE_PATH_USER_DEFINED
+ − 656 EOF
+ − 657 cat >> confdefs.h <<\EOF
+ − 658 #define PACKAGE_PATH_USER_DEFINED 1
+ − 659 EOF
+ − 660 }
+ − 661 ;;
278
+ − 662 datadir )
462
+ − 663 { test "$extra_verbose" = "yes" && cat << \EOF
278
+ − 664 Defining INFODIR_USER_DEFINED
+ − 665 EOF
+ − 666 cat >> confdefs.h <<\EOF
+ − 667 #define INFODIR_USER_DEFINED 1
+ − 668 EOF
+ − 669 }
+ − 670
462
+ − 671 { test "$extra_verbose" = "yes" && cat << \EOF
278
+ − 672 Defining LISPDIR_USER_DEFINED
+ − 673 EOF
+ − 674 cat >> confdefs.h <<\EOF
+ − 675 #define LISPDIR_USER_DEFINED 1
+ − 676 EOF
+ − 677 }
+ − 678
462
+ − 679 { test "$extra_verbose" = "yes" && cat << \EOF
388
+ − 680 Defining MODULEDIR_USER_DEFINED
+ − 681 EOF
+ − 682 cat >> confdefs.h <<\EOF
+ − 683 #define MODULEDIR_USER_DEFINED 1
+ − 684 EOF
+ − 685 }
+ − 686
278
+ − 687 { test "$extra_verbose" = "yes" && cat << \EOF
274
+ − 688 Defining ETCDIR_USER_DEFINED
+ − 689 EOF
+ − 690 cat >> confdefs.h <<\EOF
+ − 691 #define ETCDIR_USER_DEFINED 1
+ − 692 EOF
+ − 693 }
458
+ − 694
+ − 695 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 696 Defining DOCDIR_USER_DEFINED
+ − 697 EOF
+ − 698 cat >> confdefs.h <<\EOF
+ − 699 #define DOCDIR_USER_DEFINED 1
+ − 700 EOF
+ − 701 }
+ − 702
+ − 703 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 704 Defining ARCHLIBDIR_USER_DEFINED
+ − 705 EOF
+ − 706 cat >> confdefs.h <<\EOF
+ − 707 #define ARCHLIBDIR_USER_DEFINED 1
+ − 708 EOF
+ − 709 }
274
+ − 710 ;;
420
+ − 711 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 712 Defining DOCDIR_USER_DEFINED
+ − 713 EOF
+ − 714 cat >> confdefs.h <<\EOF
+ − 715 #define DOCDIR_USER_DEFINED 1
+ − 716 EOF
+ − 717 }
+ − 718 ;;
274
+ − 719 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 720 Defining ARCHLIBDIR_USER_DEFINED
+ − 721 EOF
+ − 722 cat >> confdefs.h <<\EOF
+ − 723 #define ARCHLIBDIR_USER_DEFINED 1
+ − 724 EOF
+ − 725 }
+ − 726 ;;
149
+ − 727 esac
0
+ − 728 ;;
+ − 729
149
+ − 730 "no_create" ) ;;
+ − 731
215
+ − 732 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
149
+ − 733
380
+ − 734 "with_menubars" | \
+ − 735 "with_scrollbars" | \
442
+ − 736 "with_dialogs" | \
420
+ − 737 "with_widgets" )
149
+ − 738 case "$val" in
0
+ − 739 l | lu | luc | luci | lucid ) val=lucid ;;
724
+ − 740 mo | mot | moti | motif ) val=motif ;;
0
+ − 741 a | at | ath | athe | athen | athena ) val=athena ;;
442
+ − 742 n | no | non | none ) val=no ;;
+ − 743 y | ye | yes ) val=yes ;;
726
+ − 744 "") val=yes ;;
462
+ − 745 g | gt | gtk ) val=gtk ;;
724
+ − 746 ms | msw ) val=msw ;;
149
+ − 747 * ) (echo "$progname: Usage error:"
+ − 748 echo " " "The \`--$optname' option must have one of these values:
585
+ − 749 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
149
+ − 750 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 751 esac
149
+ − 752 eval "$opt=\"$val\""
0
+ − 753 ;;
+ − 754
424
+ − 755 "use_minimal_tagbits" | \
+ − 756 "use_indexed_lrecord_implementation" | \
+ − 757 "run_in_place" | \
442
+ − 758 "const_is_losing" | \
380
+ − 759 "with_gnu_make" )
+ − 760 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
+ − 761 ;;
+ − 762
149
+ − 763 * ) (echo "$progname: Usage error:"
+ − 764 echo " " "Unrecognized option: $arg"
+ − 765 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 766
+ − 767 esac
+ − 768 ;;
+ − 769
243
+ − 770 *-*-*) configuration="$arg" ;;
+ − 771
+ − 772 *) (echo "$progname: Usage error:"
+ − 773 echo " " "Unrecognized argument: $arg"
+ − 774 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 775
+ − 776 esac
+ − 777 done
+ − 778
149
+ − 779
272
+ − 780 test -n "$cpp" && CPP="$cpp"
+ − 781 test -n "$cppflags" && CPPFLAGS="$cppflags"
+ − 782 test -n "$libs" && LIBS="$libs"
+ − 783 test -n "$ldflags" && LDFLAGS="$ldflags"
+ − 784
0
+ − 785 eval set x "$quoted_arguments"; shift
+ − 786
149
+ − 787 test "$extra_verbose" = "yes" && verbose=yes
+ − 788
+ − 789 test -n "$with_x" && with_x11="$with_x"
+ − 790
380
+ − 791 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
+ − 792 test "$with_system_malloc" = "default" && with_system_malloc=yes
+ − 793 fi
272
+ − 794
284
+ − 795
+ − 796
+ − 797 if test "$with_cde $with_tooltalk" = "yes no"; then
+ − 798 (echo "$progname: Usage error:"
+ − 799 echo " " "--with-cde requires --with-tooltalk"
+ − 800 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 801 elif test "$with_tooltalk" = "no" ; then with_cde=no
+ − 802 elif test "$with_cde" = "yes"; then with_tooltalk=yes
+ − 803 fi
+ − 804
+ − 805
149
+ − 806 case "$srcdir" in
+ − 807
+ − 808 "" )
70
+ − 809 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
120
+ − 810 if test -f "$dir/src/lisp.h" -a \
+ − 811 -f "$dir/lisp/version.el" ; then
149
+ − 812 srcdir="$dir"
70
+ − 813 break
+ − 814 fi
+ − 815 done
149
+ − 816 if test -z "$srcdir" ; then
+ − 817 (echo "$progname: Usage error:"
120
+ − 818 echo " " "Neither the current directory nor its parent seem to
+ − 819 contain the XEmacs sources. If you do not want to build XEmacs in its
149
+ − 820 source tree, you should run \`$progname' in the directory in which
120
+ − 821 you wish to build XEmacs, using the \`--srcdir' option to say where the
+ − 822 sources may be found."
149
+ − 823 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
120
+ − 824 fi
0
+ − 825 ;;
+ − 826
149
+ − 827 * )
243
+ − 828 if test ! -f "$srcdir/src/lisp.h" -o \
149
+ − 829 ! -f "$srcdir/lisp/version.el" ; then
+ − 830 (echo "$progname: Usage error:"
120
+ − 831 echo " " "The directory specified with the \`--srcdir' option,
149
+ − 832 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
+ − 833 either run the \`$progname' script at the top of the XEmacs source
120
+ − 834 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
149
+ − 835 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
+ − 836 fi
+ − 837 ;;
+ − 838 esac
+ − 839
243
+ − 840 if test -z "$configuration"; then
380
+ − 841 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
+ − 842 if test -z "$configuration"; then
243
+ − 843 (echo "$progname: Usage error:"
+ − 844 echo " " "XEmacs has not been ported to this host type.
+ − 845 Try explicitly specifying the CONFIGURATION when rerunning configure."
+ − 846 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 847 fi
+ − 848 fi
+ − 849
149
+ − 850 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
726
+ − 851 echo "configure:852: checking whether ln -s works" >&5
149
+ − 852
0
+ − 853 rm -f conftestdata
+ − 854 if ln -s X conftestdata 2>/dev/null
+ − 855 then
+ − 856 rm -f conftestdata
149
+ − 857 ac_cv_prog_LN_S="ln -s"
+ − 858 else
+ − 859 ac_cv_prog_LN_S=ln
+ − 860 fi
+ − 861 LN_S="$ac_cv_prog_LN_S"
+ − 862 if test "$ac_cv_prog_LN_S" = "ln -s"; then
+ − 863 echo "$ac_t""yes" 1>&6
+ − 864 else
+ − 865 echo "$ac_t""no" 1>&6
+ − 866 fi
+ − 867
+ − 868
438
+ − 869 for dir in lisp etc man info tests; do
149
+ − 870 if test ! -d "$dir" ; then
+ − 871 echo Making symbolic link to "$srcdir/$dir"
157
+ − 872 ${LN_S} "$srcdir/$dir" "$dir"
0
+ − 873 fi
+ − 874 done
+ − 875
392
+ − 876
181
+ − 877 absolute_pwd="`pwd`";
187
+ − 878 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
181
+ − 879 then blddir="$PWD"
392
+ − 880 else blddir="$absolute_pwd"; if test -d "/net"; then
+ − 881 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
+ − 882 blddir=`echo "$blddir" | \
+ − 883 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
+ − 884 fi
181
+ − 885 fi
+ − 886
+ − 887
149
+ − 888 case "$srcdir" in
0
+ − 889 /* ) ;;
181
+ − 890 . ) srcdir="$blddir" ;;
392
+ − 891 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
+ − 892 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
+ − 893 srcdir=`echo "$srcdir" | \
+ − 894 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
+ − 895 fi ;;
0
+ − 896 esac
+ − 897
149
+ − 898 if test `pwd` != `sh -c cd $srcdir && pwd` \
+ − 899 && test -f "$srcdir/src/config.h"; then
+ − 900 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
0
+ − 901 echo " as a build directory right now; it has been configured in its own"
+ − 902 echo " right. To configure in another directory as well, you MUST"
+ − 903 echo " use GNU make. If you do not have GNU make, then you must"
149
+ − 904 echo " now do \`make distclean' in $srcdir,"
+ − 905 echo " and then run $progname again.") >&2
0
+ − 906 extrasub='/^VPATH[ ]*=/c\
+ − 907 vpath %.c $(srcdir)\
+ − 908 vpath %.h $(srcdir)\
+ − 909 vpath %.y $(srcdir)\
+ − 910 vpath %.l $(srcdir)\
+ − 911 vpath %.s $(srcdir)\
+ − 912 vpath %.in $(srcdir)'
+ − 913 fi
+ − 914
171
+ − 915 . "$srcdir/version.sh" || exit 1;
414
+ − 916 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
173
+ − 917 : "${extra_verbose=$beta}"
171
+ − 918 version="${emacs_major_version}.${emacs_minor_version}"
+ − 919 { test "$extra_verbose" = "yes" && cat << EOF
+ − 920 Defining EMACS_MAJOR_VERSION = $emacs_major_version
+ − 921 EOF
+ − 922 cat >> confdefs.h <<EOF
+ − 923 #define EMACS_MAJOR_VERSION $emacs_major_version
+ − 924 EOF
+ − 925 }
+ − 926
+ − 927 { test "$extra_verbose" = "yes" && cat << EOF
+ − 928 Defining EMACS_MINOR_VERSION = $emacs_minor_version
+ − 929 EOF
+ − 930 cat >> confdefs.h <<EOF
+ − 931 #define EMACS_MINOR_VERSION $emacs_minor_version
+ − 932 EOF
+ − 933 }
+ − 934
414
+ − 935 if test -n "$emacs_beta_version" ; then
+ − 936 if test "$beta" = "yes"; then
+ − 937 version="${version}-b${emacs_beta_version}"
+ − 938 { test "$extra_verbose" = "yes" && cat << EOF
171
+ − 939 Defining EMACS_BETA_VERSION = $emacs_beta_version
+ − 940 EOF
+ − 941 cat >> confdefs.h <<EOF
+ − 942 #define EMACS_BETA_VERSION $emacs_beta_version
+ − 943 EOF
+ − 944 }
+ − 945
414
+ − 946 else
+ − 947 version="${version}.${emacs_beta_version}"
+ − 948 { test "$extra_verbose" = "yes" && cat << EOF
+ − 949 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
+ − 950 EOF
+ − 951 cat >> confdefs.h <<EOF
+ − 952 #define EMACS_PATCH_LEVEL $emacs_beta_version
+ − 953 EOF
+ − 954 }
+ − 955
+ − 956 fi
171
+ − 957 fi
+ − 958 { test "$extra_verbose" = "yes" && cat << EOF
+ − 959 Defining XEMACS_CODENAME = "$xemacs_codename"
+ − 960 EOF
+ − 961 cat >> confdefs.h <<EOF
+ − 962 #define XEMACS_CODENAME "$xemacs_codename"
+ − 963 EOF
+ − 964 }
+ − 965
+ − 966 { test "$extra_verbose" = "yes" && cat << EOF
+ − 967 Defining EMACS_VERSION = "$version"
+ − 968 EOF
+ − 969 cat >> confdefs.h <<EOF
+ − 970 #define EMACS_VERSION "$version"
+ − 971 EOF
+ − 972 }
+ − 973
+ − 974
280
+ − 975 if test "$with_infodock" = "yes"; then
420
+ − 976 if test ! -f ../../ID-INSTALL; then
280
+ − 977 echo "Cannot build InfoDock without InfoDock sources"
+ − 978 with_infodock=no
+ − 979 fi
+ − 980 fi
+ − 981
+ − 982 if test "$with_infodock" = "yes"; then
+ − 983 { test "$extra_verbose" = "yes" && cat << EOF
278
+ − 984 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
+ − 985 EOF
+ − 986 cat >> confdefs.h <<EOF
+ − 987 #define INFODOCK_MAJOR_VERSION $infodock_major_version
+ − 988 EOF
+ − 989 }
+ − 990
280
+ − 991 { test "$extra_verbose" = "yes" && cat << EOF
278
+ − 992 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
+ − 993 EOF
+ − 994 cat >> confdefs.h <<EOF
+ − 995 #define INFODOCK_MINOR_VERSION $infodock_minor_version
+ − 996 EOF
+ − 997 }
+ − 998
280
+ − 999 { test "$extra_verbose" = "yes" && cat << EOF
278
+ − 1000 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
+ − 1001 EOF
+ − 1002 cat >> confdefs.h <<EOF
+ − 1003 #define INFODOCK_BUILD_VERSION $infodock_build_version
+ − 1004 EOF
+ − 1005 }
+ − 1006
280
+ − 1007 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
+ − 1008 PROGNAME=infodock
+ − 1009 CPPFLAGS="$CPPFLAGS -DINFODOCK"
+ − 1010 else
+ − 1011 PROGNAME=xemacs
+ − 1012 fi
278
+ − 1013
442
+ − 1014 { test "$extra_verbose" = "yes" && cat << EOF
+ − 1015 Defining EMACS_PROGNAME = "$PROGNAME"
+ − 1016 EOF
+ − 1017 cat >> confdefs.h <<EOF
+ − 1018 #define EMACS_PROGNAME "$PROGNAME"
+ − 1019 EOF
+ − 1020 }
+ − 1021
+ − 1022
414
+ − 1023 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
171
+ − 1024 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1025 Defining ERROR_CHECK_EXTENTS
+ − 1026 EOF
+ − 1027 cat >> confdefs.h <<\EOF
+ − 1028 #define ERROR_CHECK_EXTENTS 1
+ − 1029 EOF
+ − 1030 }
+ − 1031
+ − 1032 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1033 Defining ERROR_CHECK_TYPECHECK
+ − 1034 EOF
+ − 1035 cat >> confdefs.h <<\EOF
+ − 1036 #define ERROR_CHECK_TYPECHECK 1
+ − 1037 EOF
+ − 1038 }
+ − 1039
665
+ − 1040 test "${error_check_charbpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1041 Defining ERROR_CHECK_CHARBPOS
+ − 1042 EOF
+ − 1043 cat >> confdefs.h <<\EOF
+ − 1044 #define ERROR_CHECK_CHARBPOS 1
171
+ − 1045 EOF
+ − 1046 }
+ − 1047
+ − 1048 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1049 Defining ERROR_CHECK_GC
+ − 1050 EOF
+ − 1051 cat >> confdefs.h <<\EOF
+ − 1052 #define ERROR_CHECK_GC 1
+ − 1053 EOF
+ − 1054 }
+ − 1055
+ − 1056 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1057 Defining ERROR_CHECK_MALLOC
+ − 1058 EOF
+ − 1059 cat >> confdefs.h <<\EOF
+ − 1060 #define ERROR_CHECK_MALLOC 1
+ − 1061 EOF
+ − 1062 }
+ − 1063
414
+ − 1064 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1065 Defining ERROR_CHECK_BYTE_CODE
+ − 1066 EOF
+ − 1067 cat >> confdefs.h <<\EOF
+ − 1068 #define ERROR_CHECK_BYTE_CODE 1
+ − 1069 EOF
+ − 1070 }
+ − 1071
442
+ − 1072 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1073 Defining ERROR_CHECK_GLYPHS
+ − 1074 EOF
+ − 1075 cat >> confdefs.h <<\EOF
+ − 1076 #define ERROR_CHECK_GLYPHS 1
+ − 1077 EOF
+ − 1078 }
+ − 1079
272
+ − 1080 if test "${debug:=$beta}" = "yes"; then
171
+ − 1081 use_assertions=yes memory_usage_stats=yes
+ − 1082 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
+ − 1083 echo " xemacs will be linked with \"debug.o\""
+ − 1084 fi
440
+ − 1085 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
+ − 1086 echo " xemacs will be linked with \"tests.o\""
+ − 1087 fi
171
+ − 1088 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1089 Defining DEBUG_XEMACS
+ − 1090 EOF
+ − 1091 cat >> confdefs.h <<\EOF
+ − 1092 #define DEBUG_XEMACS 1
+ − 1093 EOF
+ − 1094 }
+ − 1095
+ − 1096 fi
+ − 1097 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1098 Defining USE_ASSERTIONS
+ − 1099 EOF
+ − 1100 cat >> confdefs.h <<\EOF
+ − 1101 #define USE_ASSERTIONS 1
+ − 1102 EOF
+ − 1103 }
+ − 1104
+ − 1105 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1106 Defining MEMORY_USAGE_STATS
+ − 1107 EOF
+ − 1108 cat >> confdefs.h <<\EOF
+ − 1109 #define MEMORY_USAGE_STATS 1
+ − 1110 EOF
+ − 1111 }
+ − 1112
+ − 1113
149
+ − 1114
380
+ − 1115 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
726
+ − 1116 echo "configure:1117: checking "host system type"" >&5
217
+ − 1117 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
380
+ − 1118 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
+ − 1119 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
+ − 1120 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
+ − 1121 echo "$ac_t""$configuration" 1>&6
0
+ − 1122
149
+ − 1123
+ − 1124
+ − 1125
+ − 1126
151
+ − 1127 machine='' opsys=''
149
+ − 1128
+ − 1129 case "$canonical" in
+ − 1130 sparc-*-* ) machine=sparc ;;
373
+ − 1131 alpha*-*-* ) machine=alpha ;;
149
+ − 1132 vax-*-* ) machine=vax ;;
+ − 1133 mips-dec-* ) machine=pmax ;;
440
+ − 1134 mips-sgi-irix6* ) machine=iris6d ;;
149
+ − 1135 mips-sgi-* ) machine=iris4d ;;
424
+ − 1136 mips*-linux ) machine=mips ;;
149
+ − 1137 romp-ibm-* ) machine=ibmrt ;;
+ − 1138 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
+ − 1139 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
163
+ − 1140 powerpc*-* ) machine=powerpc ;;
149
+ − 1141 hppa-*-* ) machine=hp800 ;;
+ − 1142 m88k-dg-* ) machine=aviion ;;
+ − 1143 m68*-sony-* ) machine=news ;;
+ − 1144 mips-sony-* ) machine=news-risc ;;
+ − 1145 clipper-* ) machine=clipper ;;
442
+ − 1146 arm* ) machine=arm ;;
380
+ − 1147 ns32k-* ) machine=ns32000 ;;
149
+ − 1148 esac
+ − 1149
+ − 1150 case "$canonical" in
+ − 1151 *-*-linux* ) opsys=linux ;;
+ − 1152 *-*-netbsd* ) opsys=netbsd ;;
286
+ − 1153 *-*-openbsd* ) opsys=openbsd ;;
149
+ − 1154 *-*-nextstep* ) opsys=nextstep ;;
+ − 1155 *-*-vms ) opsys=vms ;;
+ − 1156
+ − 1157 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
+ − 1158 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
+ − 1159 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
+ − 1160 *-dec-osf3* ) opsys=decosf3-1 ;;
444
+ − 1161 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
149
+ − 1162
+ − 1163 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
+ − 1164 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
+ − 1165 *-*-ultrix* ) opsys=ultrix4-3 ;;
+ − 1166
+ − 1167 *-*-aix3.1* ) opsys=aix3-1 ;;
+ − 1168 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
+ − 1169 *-*-aix3* ) opsys=aix3-2 ;;
373
+ − 1170 *-*-aix4.0* ) opsys=aix4 ;;
149
+ − 1171 *-*-aix4.1* ) opsys=aix4-1 ;;
373
+ − 1172 *-*-aix4* ) opsys=aix4-2 ;;
149
+ − 1173
+ − 1174 *-gnu* ) opsys=gnu ;;
+ − 1175 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
+ − 1176 *-*-bsd4.2 ) opsys=bsd4-2 ;;
+ − 1177 *-*-bsd4.3 ) opsys=bsd4-3 ;;
+ − 1178 *-*-aos4.2 ) opsys=bsd4-2 ;;
+ − 1179 *-*-aos* ) opsys=bsd4-3 ;;
+ − 1180 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
+ − 1181 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
+ − 1182 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
+ − 1183 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
+ − 1184 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
+ − 1185 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
+ − 1186 if test -z "$NON_GNU_CPP" ; then
151
+ − 1187 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
+ − 1188 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
+ − 1189 done
149
+ − 1190 fi
+ − 1191 opsys=usg5-4-2 ;;
+ − 1192 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
+ − 1193 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
+ − 1194 esac
+ − 1195
+ − 1196 case "$canonical" in
+ − 1197
+ − 1198 *-*-netbsd* )
+ − 1199 case "$canonical" in
0
+ − 1200 i[3-9]86-*-netbsd*) machine=intel386 ;;
+ − 1201 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
149
+ − 1202 machine=hp9000s300 ;;
70
+ − 1203 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
+ − 1204 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
0
+ − 1205 esac
+ − 1206 ;;
+ − 1207
286
+ − 1208 *-*-openbsd* )
+ − 1209 case "${canonical}" in
+ − 1210 i386-*-openbsd*) machine=intel386 ;;
+ − 1211 m68k-*-openbsd*) machine=hp9000s300 ;;
+ − 1212 mipsel-*-openbsd*) machine=pmax ;;
+ − 1213 esac
+ − 1214 ;;
+ − 1215
149
+ − 1216 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
70
+ − 1217 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
0
+ − 1218
149
+ − 1219 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
70
+ − 1220 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
0
+ − 1221
149
+ − 1222 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
+ − 1223
+ − 1224 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
+ − 1225
+ − 1226 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
+ − 1227
+ − 1228 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
+ − 1229
+ − 1230 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
+ − 1231
+ − 1232 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
74
+ − 1233 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
+ − 1234 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
0
+ − 1235
149
+ − 1236
+ − 1237 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
+ − 1238
+ − 1239 *-convex-bsd* | *-convex-convexos* )
0
+ − 1240 machine=convex opsys=bsd4-3
+ − 1241 NON_GNU_CPP="cc -E -P"
+ − 1242 ;;
+ − 1243
149
+ − 1244 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
+ − 1245
+ − 1246 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
+ − 1247 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
+ − 1248 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
+ − 1249 m88k-dg-dgux* ) opsys=dgux ;;
+ − 1250
+ − 1251 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
0
+ − 1252 m88k-motorola-sysv4* )
149
+ − 1253 machine=delta88k opsys=usg5-4-2
0
+ − 1254 ;;
70
+ − 1255 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
0
+ − 1256
149
+ − 1257 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
70
+ − 1258 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
0
+ − 1259
149
+ − 1260 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
+ − 1261
+ − 1262 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
70
+ − 1263 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
+ − 1264 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
0
+ − 1265
149
+ − 1266 m88k-harris-cxux* )
+ − 1267 case "`uname -r`" in
74
+ − 1268 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
70
+ − 1269 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
0
+ − 1270 esac
+ − 1271 NON_GNU_CPP="/lib/cpp"
+ − 1272 ;;
149
+ − 1273 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
+ − 1274 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
+ − 1275
+ − 1276 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
+ − 1277
+ − 1278 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
+ − 1279
+ − 1280 *-hp-hpux* )
+ − 1281 case "$canonical" in
70
+ − 1282 m68* ) machine=hp9000s300 ;;
+ − 1283 hppa* ) machine=hp800 ;;
+ − 1284 esac
+ − 1285
149
+ − 1286 case "$canonical" in
+ − 1287 *-hp-hpux7* ) opsys=hpux ;;
+ − 1288 *-hp-hpux8* ) opsys=hpux8 ;;
+ − 1289 *-hp-hpux9* ) opsys=hpux9 ;;
+ − 1290 *-hp-hpux10* ) opsys=hpux10 ;;
269
+ − 1291 *-hp-hpux11* ) opsys=hpux11 ;;
151
+ − 1292 * ) opsys=hpux ;;
0
+ − 1293 esac
72
+ − 1294
151
+ − 1295 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
+ − 1296 echo " xemacs will be linked with \"strcat.o\""
+ − 1297 fi ;; esac
149
+ − 1298
269
+ − 1299 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
+ − 1300 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
149
+ − 1301 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
+ − 1302
+ − 1303 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
0
+ − 1304 ;;
+ − 1305
149
+ − 1306 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
70
+ − 1307 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
0
+ − 1308
149
+ − 1309 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
70
+ − 1310 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
+ − 1311 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
149
+ − 1312 romp-ibm-aos* ) opsys=bsd4-3 ;;
+ − 1313 romp-ibm-bsd* ) opsys=bsd4-3 ;;
+ − 1314 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
+ − 1315
+ − 1316 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
70
+ − 1317 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
0
+ − 1318
149
+ − 1319 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
+ − 1320
+ − 1321 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
+ − 1322
+ − 1323 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
+ − 1324
+ − 1325 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
+ − 1326
+ − 1327 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
+ − 1328
+ − 1329 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
+ − 1330
+ − 1331 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
+ − 1332
+ − 1333 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
+ − 1334
+ − 1335 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
+ − 1336
+ − 1337 mips-mips-usg* ) machine=mips4 ;;
70
+ − 1338 mips-mips-riscos4 )
+ − 1339 machine=mips4
0
+ − 1340 NON_GNU_CC="cc -systype bsd43"
+ − 1341 NON_GNU_CPP="cc -systype bsd43 -E"
149
+ − 1342 case "$canonical" in
70
+ − 1343 mips-mips-riscos4* ) opsys=bsd4-3 ;;
+ − 1344 mips-mips-riscos5* ) opsys=riscos5 ;;
+ − 1345 esac
0
+ − 1346 ;;
70
+ − 1347 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
+ − 1348 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
0
+ − 1349
149
+ − 1350 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
+ − 1351
+ − 1352 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
+ − 1353
+ − 1354 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
70
+ − 1355 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
0
+ − 1356
149
+ − 1357 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
+ − 1358
+ − 1359 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
+ − 1360
+ − 1361 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
+ − 1362
+ − 1363 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
+ − 1364
+ − 1365 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
70
+ − 1366 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
0
+ − 1367
149
+ − 1368 mips-siemens-sysv* | mips-sni-sysv*)
0
+ − 1369 machine=mips-siemens opsys=usg5-4
+ − 1370 NON_GNU_CC=/usr/ccs/bin/cc
+ − 1371 NON_GNU_CPP=/usr/ccs/lib/cpp
+ − 1372 ;;
+ − 1373
377
+ − 1374 mips-nec-sysv*)
+ − 1375 machine=mips-nec
+ − 1376 NON_GNU_CC=/usr/ccs/bin/cc
+ − 1377 NON_GNU_CPP=/usr/ccs/lib/cpp
+ − 1378 ;;
+ − 1379
149
+ − 1380 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
70
+ − 1381 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
149
+ − 1382 mips-sgi-irix3.* ) opsys=irix3-3 ;;
+ − 1383 mips-sgi-irix4.* ) opsys=irix4-0 ;;
207
+ − 1384 mips-sgi-irix6* ) opsys=irix6-0 ;;
149
+ − 1385 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
+ − 1386 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
+ − 1387 mips-sgi-irix5.* ) opsys=irix5-3 ;;
+ − 1388 mips-sgi-irix* ) opsys=irix5-0 ;;
+ − 1389
+ − 1390 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
+ − 1391 *-sony-news* ) opsys=newsos5 ;;
+ − 1392
+ − 1393 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
+ − 1394
+ − 1395 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
+ − 1396 case "$canonical" in
0
+ − 1397 m68*-sunos1* ) machine=sun1 ;;
+ − 1398 m68*-sunos2* ) machine=sun2 ;;
+ − 1399 m68* ) machine=sun3 ;;
163
+ − 1400 i*86*-sun-sunos[34]* ) machine=sun386 ;;
+ − 1401 i*86-*-* ) machine=intel386 ;;
0
+ − 1402 rs6000* ) machine=rs6000 ;;
+ − 1403 esac
149
+ − 1404
+ − 1405 case "$canonical" in *-sunos5*)
163
+ − 1406 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
0
+ − 1407 esac
+ − 1408
149
+ − 1409 case "$canonical" in
0
+ − 1410 *-sunos4* )
157
+ − 1411 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
+ − 1412 : ;;
70
+ − 1413 *-solaris2* )
157
+ − 1414 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
+ − 1415 RANLIB=':' ;;
151
+ − 1416 esac
149
+ − 1417
+ − 1418 case "$canonical" in
163
+ − 1419 *-solaris* )
+ − 1420 opsys=sol2
+ − 1421 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
+ − 1422 { test "$extra_verbose" = "yes" && cat << EOF
+ − 1423 Defining OS_RELEASE = $os_release
+ − 1424 EOF
+ − 1425 cat >> confdefs.h <<EOF
+ − 1426 #define OS_RELEASE $os_release
+ − 1427 EOF
+ − 1428 }
+ − 1429 ;;
+ − 1430
+ − 1431 i*86-*-sunos4* ) opsys=sunos4-0 ;;
74
+ − 1432 *-sunos4.0* ) opsys=sunos4-0 ;;
+ − 1433 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
110
+ − 1434 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
120
+ − 1435 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
74
+ − 1436 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
+ − 1437 *-mach* ) opsys=mach-bsd4-3 ;;
+ − 1438 * ) opsys=bsd4-2 ;;
0
+ − 1439 esac
70
+ − 1440
149
+ − 1441 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
+ − 1442
163
+ − 1443 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
0
+ − 1444 ;;
70
+ − 1445
149
+ − 1446 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
+ − 1447
+ − 1448 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
70
+ − 1449 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
0
+ − 1450
149
+ − 1451 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
+ − 1452
+ − 1453 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
+ − 1454
+ − 1455 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
+ − 1456 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
+ − 1457
+ − 1458 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
+ − 1459
+ − 1460 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
+ − 1461
+ − 1462 vax-dec-* )
+ − 1463 case "$canonical" in
+ − 1464 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
+ − 1465 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
+ − 1466 *-mach* ) opsys=mach-bsd4-3 ;;
0
+ − 1467 esac
+ − 1468 ;;
+ − 1469
149
+ − 1470 ns16k-whitechapel-* ) machine=mg1 ;;
+ − 1471
+ − 1472 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
+ − 1473
+ − 1474 i[3-9]86-*-* )
0
+ − 1475 machine=intel386
149
+ − 1476 case "$canonical" in
120
+ − 1477 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
0
+ − 1478 *-isc2.2* ) opsys=isc2-2 ;;
+ − 1479 *-isc4.0* ) opsys=isc4-0 ;;
+ − 1480 *-isc4.* ) opsys=isc4-1
+ − 1481 GCC_TEST_OPTIONS=-posix
+ − 1482 NON_GCC_TEST_OPTIONS=-Xp
+ − 1483 ;;
+ − 1484 *-isc* ) opsys=isc3-0 ;;
149
+ − 1485 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
0
+ − 1486 *-esix* ) opsys=esix ;;
+ − 1487 *-mach* ) opsys=mach-bsd4-3 ;;
+ − 1488 *-xenix* ) opsys=xenix ;;
149
+ − 1489 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
0
+ − 1490 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
392
+ − 1491 *-bsdi4* ) opsys=bsdos4 ;;
110
+ − 1492 *-bsdi3* ) opsys=bsdos3 ;;
0
+ − 1493 *-bsdi2.1* ) opsys=bsdos2-1 ;;
+ − 1494 *-bsdi2* ) opsys=bsdos2 ;;
460
+ − 1495 *-sco3.2v5* ) opsys=sco5 ;;
422
+ − 1496 *-sysv5* ) opsys=sco7 ;;
70
+ − 1497 *-386bsd* ) opsys=386bsd ;;
+ − 1498 *-freebsd* ) opsys=freebsd ;;
0
+ − 1499 *-nextstep* ) opsys=nextstep ;;
398
+ − 1500 *-pc-cygwin* ) opsys=cygwin32 ;;
+ − 1501 *-pc-mingw* ) opsys=mingw32 ;
+ − 1502 test -z "$with_tty" && with_tty="no";;
149
+ − 1503 esac
0
+ − 1504 ;;
+ − 1505
149
+ − 1506 m68k-*-linux* ) machine=m68k opsys=linux ;;
+ − 1507
0
+ − 1508 esac
+ − 1509
442
+ − 1510 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
505
+ − 1511
+ − 1512 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
442
+ − 1513
+ − 1514 if test -r "${srcdir}/src/m/${machine}.h"; then
+ − 1515 machfile="m/${machine}.h"
+ − 1516 { test "$extra_verbose" = "yes" && cat << EOF
+ − 1517 Defining config_machfile = "$machfile"
+ − 1518 EOF
+ − 1519 cat >> confdefs.h <<EOF
+ − 1520 #define config_machfile "$machfile"
+ − 1521 EOF
+ − 1522 }
+ − 1523
+ − 1524 else
+ − 1525 echo "XEmacs has no builtin knowledge of \`$machine' machines."
+ − 1526 echo "Using configure-time autodetection only."
+ − 1527 fi
+ − 1528
+ − 1529 if test -r "${srcdir}/src/s/${opsys}.h"; then
+ − 1530 opsysfile="s/${opsys}.h"
+ − 1531 { test "$extra_verbose" = "yes" && cat << EOF
+ − 1532 Defining config_opsysfile = "$opsysfile"
+ − 1533 EOF
+ − 1534 cat >> confdefs.h <<EOF
+ − 1535 #define config_opsysfile "$opsysfile"
+ − 1536 EOF
+ − 1537 }
+ − 1538
+ − 1539 else
+ − 1540 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
+ − 1541 echo "Using configure-time autodetection only."
+ − 1542 fi
+ − 1543
0
+ − 1544
173
+ − 1545 if test -z "$dynamic"; then
+ − 1546 case "$opsys" in
388
+ − 1547 hpux* | sunos4* ) dynamic=no ;;
173
+ − 1548 *) dynamic=yes ;;
+ − 1549 esac
+ − 1550 fi
+ − 1551 if test "$dynamic" = "yes"; then
149
+ − 1552 case "$opsys" in
72
+ − 1553 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
173
+ − 1554 decosf* ) ld_call_shared="-call_shared" ;;
0
+ − 1555 esac
173
+ − 1556 else case "$opsys" in
187
+ − 1557 sol2 )
173
+ − 1558 echo "Static linking is not supported on Solaris 2."
+ − 1559 echo "Rerun configure without specifying --dynamic=no."
+ − 1560 exit 1 ;;
+ − 1561 linux ) ld_call_shared="-Bstatic" ;;
+ − 1562 decosf* ) ld_call_shared="-non_shared" ;;
0
+ − 1563 esac
+ − 1564 fi
+ − 1565
207
+ − 1566 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
+ − 1567
280
+ − 1568 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
173
+ − 1569 { test "$extra_verbose" = "yes" && cat << EOF
177
+ − 1570 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
173
+ − 1571 EOF
+ − 1572 cat >> confdefs.h <<EOF
177
+ − 1573 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
173
+ − 1574 EOF
+ − 1575 }
+ − 1576
+ − 1577
0
+ − 1578
151
+ − 1579 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
284
+ − 1580 if test "$with_workshop $with_tooltalk" = "yes no"; then
+ − 1581 (echo "$progname: Usage error:"
+ − 1582 echo " " "--with-workshop requires --with-tooltalk"
+ − 1583 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 1584 elif test "$with_tooltalk" = "no" ; then with_workshop=no
+ − 1585 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
+ − 1586 fi
+ − 1587
151
+ − 1588 if test "$with_workshop" = "yes"; then
+ − 1589 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1590 Defining SUNPRO
+ − 1591 EOF
+ − 1592 cat >> confdefs.h <<\EOF
+ − 1593 #define SUNPRO 1
+ − 1594 EOF
+ − 1595 }
+ − 1596
+ − 1597 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
+ − 1598 echo " xemacs will be linked with \"sunpro.o\""
+ − 1599 fi
+ − 1600 fi
+ − 1601
442
+ − 1602 if test "$with_clash_detection" != "no"; then
175
+ − 1603 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1604 Defining CLASH_DETECTION
+ − 1605 EOF
+ − 1606 cat >> confdefs.h <<\EOF
+ − 1607 #define CLASH_DETECTION 1
+ − 1608 EOF
+ − 1609 }
+ − 1610
+ − 1611 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
+ − 1612 echo " xemacs will be linked with \"filelock.o\""
+ − 1613 fi
+ − 1614 fi
+ − 1615
169
+ − 1616 test -n "$compiler" && CC="$compiler"
+ − 1617 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
+ − 1618 fi
149
+ − 1619
272
+ − 1620 test "${cflags-unset}" != unset && CFLAGS="$cflags"
+ − 1621 if test "${CFLAGS-unset}" != unset
+ − 1622 then cflags_specified=yes;
+ − 1623 else cflags_specified=no;
+ − 1624 fi
+ − 1625
157
+ − 1626 xe_save_CFLAGS="$CFLAGS"
+ − 1627
149
+ − 1628 # Extract the first word of "gcc", so it can be a program name with args.
+ − 1629 set dummy gcc; ac_word=$2
+ − 1630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726
+ − 1631 echo "configure:1632: checking for $ac_word" >&5
149
+ − 1632
+ − 1633 if test -n "$CC"; then
+ − 1634 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1635 else
420
+ − 1636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 1637 ac_dummy="$PATH"
+ − 1638 for ac_dir in $ac_dummy; do
149
+ − 1639 test -z "$ac_dir" && ac_dir=.
+ − 1640 if test -f $ac_dir/$ac_word; then
+ − 1641 ac_cv_prog_CC="gcc"
+ − 1642 break
+ − 1643 fi
+ − 1644 done
+ − 1645 IFS="$ac_save_ifs"
+ − 1646 fi
+ − 1647 CC="$ac_cv_prog_CC"
+ − 1648 if test -n "$CC"; then
+ − 1649 echo "$ac_t""$CC" 1>&6
+ − 1650 else
+ − 1651 echo "$ac_t""no" 1>&6
+ − 1652 fi
+ − 1653
+ − 1654 if test -z "$CC"; then
+ − 1655 # Extract the first word of "cc", so it can be a program name with args.
+ − 1656 set dummy cc; ac_word=$2
+ − 1657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726
+ − 1658 echo "configure:1659: checking for $ac_word" >&5
149
+ − 1659
+ − 1660 if test -n "$CC"; then
+ − 1661 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1662 else
420
+ − 1663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
149
+ − 1664 ac_prog_rejected=no
420
+ − 1665 ac_dummy="$PATH"
+ − 1666 for ac_dir in $ac_dummy; do
149
+ − 1667 test -z "$ac_dir" && ac_dir=.
+ − 1668 if test -f $ac_dir/$ac_word; then
+ − 1669 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
+ − 1670 ac_prog_rejected=yes
+ − 1671 continue
+ − 1672 fi
+ − 1673 ac_cv_prog_CC="cc"
+ − 1674 break
+ − 1675 fi
+ − 1676 done
+ − 1677 IFS="$ac_save_ifs"
+ − 1678 if test $ac_prog_rejected = yes; then
+ − 1679 # We found a bogon in the path, so make sure we never use it.
+ − 1680 set dummy $ac_cv_prog_CC
+ − 1681 shift
+ − 1682 if test $# -gt 0; then
+ − 1683 # We chose a different compiler from the bogus one.
+ − 1684 # However, it has the same basename, so the bogon will be chosen
+ − 1685 # first if we set CC to just the basename; use the full file name.
+ − 1686 shift
+ − 1687 set dummy "$ac_dir/$ac_word" "$@"
+ − 1688 shift
+ − 1689 ac_cv_prog_CC="$@"
+ − 1690 fi
+ − 1691 fi
+ − 1692 fi
+ − 1693 CC="$ac_cv_prog_CC"
+ − 1694 if test -n "$CC"; then
+ − 1695 echo "$ac_t""$CC" 1>&6
+ − 1696 else
+ − 1697 echo "$ac_t""no" 1>&6
+ − 1698 fi
+ − 1699
420
+ − 1700 if test -z "$CC"; then
+ − 1701 case "`uname -s`" in
+ − 1702 *win32* | *WIN32*)
+ − 1703 # Extract the first word of "cl", so it can be a program name with args.
+ − 1704 set dummy cl; ac_word=$2
+ − 1705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726
+ − 1706 echo "configure:1707: checking for $ac_word" >&5
420
+ − 1707
+ − 1708 if test -n "$CC"; then
+ − 1709 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1710 else
+ − 1711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 1712 ac_dummy="$PATH"
+ − 1713 for ac_dir in $ac_dummy; do
+ − 1714 test -z "$ac_dir" && ac_dir=.
+ − 1715 if test -f $ac_dir/$ac_word; then
+ − 1716 ac_cv_prog_CC="cl"
+ − 1717 break
+ − 1718 fi
+ − 1719 done
+ − 1720 IFS="$ac_save_ifs"
+ − 1721 fi
+ − 1722 CC="$ac_cv_prog_CC"
+ − 1723 if test -n "$CC"; then
+ − 1724 echo "$ac_t""$CC" 1>&6
+ − 1725 else
+ − 1726 echo "$ac_t""no" 1>&6
+ − 1727 fi
+ − 1728 ;;
+ − 1729 esac
+ − 1730 fi
149
+ − 1731 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
+ − 1732 fi
+ − 1733
+ − 1734 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
726
+ − 1735 echo "configure:1736: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
70
+ − 1736
0
+ − 1737 ac_ext=c
151
+ − 1738 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 1739 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 1740 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
+ − 1741 ac_cpp='$CPP '"$xe_cppflags"
151
+ − 1742 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 1743 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
+ − 1744 cross_compiling=no
+ − 1745
420
+ − 1746 cat > conftest.$ac_ext << EOF
+ − 1747
726
+ − 1748 #line 1749 "configure"
420
+ − 1749 #include "confdefs.h"
+ − 1750
149
+ − 1751 main(){return(0);}
+ − 1752 EOF
726
+ − 1753 if { (eval echo configure:1754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 1754 ac_cv_prog_cc_works=yes
+ − 1755 # If we can't run a trivial program, we are probably using a cross compiler.
+ − 1756 if (./conftest; exit) 2>/dev/null; then
+ − 1757 ac_cv_prog_cc_cross=no
+ − 1758 else
+ − 1759 ac_cv_prog_cc_cross=yes
0
+ − 1760 fi
149
+ − 1761 else
+ − 1762 echo "configure: failed program was:" >&5
+ − 1763 cat conftest.$ac_ext >&5
+ − 1764 ac_cv_prog_cc_works=no
+ − 1765 fi
+ − 1766 rm -fr conftest*
420
+ − 1767 ac_ext=c
+ − 1768 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 1769 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 1770 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
420
+ − 1771 ac_cpp='$CPP '"$xe_cppflags"
+ − 1772 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 1773 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 1774 cross_compiling=no
149
+ − 1775
+ − 1776 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
+ − 1777 if test $ac_cv_prog_cc_works = no; then
+ − 1778 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
+ − 1779 fi
+ − 1780 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
726
+ − 1781 echo "configure:1782: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
149
+ − 1782 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
+ − 1783 cross_compiling=$ac_cv_prog_cc_cross
+ − 1784
+ − 1785 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
726
+ − 1786 echo "configure:1787: checking whether we are using GNU C" >&5
149
+ − 1787
+ − 1788 cat > conftest.c <<EOF
+ − 1789 #ifdef __GNUC__
+ − 1790 yes;
+ − 1791 #endif
+ − 1792 EOF
726
+ − 1793 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
149
+ − 1794 ac_cv_prog_gcc=yes
+ − 1795 else
+ − 1796 ac_cv_prog_gcc=no
+ − 1797 fi
+ − 1798
+ − 1799 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
+ − 1800
+ − 1801 if test $ac_cv_prog_gcc = yes; then
+ − 1802 GCC=yes
420
+ − 1803 else
+ − 1804 GCC=
+ − 1805 fi
+ − 1806
+ − 1807 ac_test_CFLAGS="${CFLAGS+set}"
+ − 1808 ac_save_CFLAGS="$CFLAGS"
+ − 1809 CFLAGS=
+ − 1810 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
726
+ − 1811 echo "configure:1812: checking whether ${CC-cc} accepts -g" >&5
149
+ − 1812
+ − 1813 echo 'void f(){}' > conftest.c
+ − 1814 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
+ − 1815 ac_cv_prog_cc_g=yes
+ − 1816 else
+ − 1817 ac_cv_prog_cc_g=no
+ − 1818 fi
+ − 1819 rm -f conftest*
+ − 1820
+ − 1821
+ − 1822 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
+ − 1823 if test "$ac_test_CFLAGS" = set; then
+ − 1824 CFLAGS="$ac_save_CFLAGS"
+ − 1825 elif test $ac_cv_prog_cc_g = yes; then
+ − 1826 if test "$GCC" = yes; then
149
+ − 1827 CFLAGS="-g -O2"
0
+ − 1828 else
420
+ − 1829 CFLAGS="-g"
+ − 1830 fi
+ − 1831 else
+ − 1832 if test "$GCC" = yes; then
149
+ − 1833 CFLAGS="-O2"
420
+ − 1834 else
+ − 1835 CFLAGS=
+ − 1836 fi
149
+ − 1837 fi
169
+ − 1838
+ − 1839 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
149
+ − 1840 CC=${NON_GNU_CC-cc}
+ − 1841 # Extract the first word of "gcc", so it can be a program name with args.
+ − 1842 set dummy gcc; ac_word=$2
+ − 1843 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726
+ − 1844 echo "configure:1845: checking for $ac_word" >&5
149
+ − 1845
+ − 1846 if test -n "$CC"; then
+ − 1847 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1848 else
420
+ − 1849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 1850 ac_dummy="$PATH"
+ − 1851 for ac_dir in $ac_dummy; do
0
+ − 1852 test -z "$ac_dir" && ac_dir=.
+ − 1853 if test -f $ac_dir/$ac_word; then
149
+ − 1854 ac_cv_prog_CC="gcc"
+ − 1855 break
+ − 1856 fi
+ − 1857 done
+ − 1858 IFS="$ac_save_ifs"
+ − 1859 fi
+ − 1860 CC="$ac_cv_prog_CC"
+ − 1861 if test -n "$CC"; then
+ − 1862 echo "$ac_t""$CC" 1>&6
+ − 1863 else
+ − 1864 echo "$ac_t""no" 1>&6
+ − 1865 fi
+ − 1866
+ − 1867 if test -z "$CC"; then
+ − 1868 # Extract the first word of "cc", so it can be a program name with args.
+ − 1869 set dummy cc; ac_word=$2
+ − 1870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726
+ − 1871 echo "configure:1872: checking for $ac_word" >&5
157
+ − 1872
+ − 1873 if test -n "$CC"; then
+ − 1874 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1875 else
420
+ − 1876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
157
+ − 1877 ac_prog_rejected=no
420
+ − 1878 ac_dummy="$PATH"
+ − 1879 for ac_dir in $ac_dummy; do
157
+ − 1880 test -z "$ac_dir" && ac_dir=.
+ − 1881 if test -f $ac_dir/$ac_word; then
+ − 1882 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
+ − 1883 ac_prog_rejected=yes
+ − 1884 continue
+ − 1885 fi
+ − 1886 ac_cv_prog_CC="cc"
+ − 1887 break
+ − 1888 fi
+ − 1889 done
+ − 1890 IFS="$ac_save_ifs"
+ − 1891 if test $ac_prog_rejected = yes; then
+ − 1892 # We found a bogon in the path, so make sure we never use it.
+ − 1893 set dummy $ac_cv_prog_CC
+ − 1894 shift
+ − 1895 if test $# -gt 0; then
+ − 1896 # We chose a different compiler from the bogus one.
+ − 1897 # However, it has the same basename, so the bogon will be chosen
+ − 1898 # first if we set CC to just the basename; use the full file name.
+ − 1899 shift
+ − 1900 set dummy "$ac_dir/$ac_word" "$@"
+ − 1901 shift
+ − 1902 ac_cv_prog_CC="$@"
+ − 1903 fi
+ − 1904 fi
+ − 1905 fi
+ − 1906 CC="$ac_cv_prog_CC"
+ − 1907 if test -n "$CC"; then
+ − 1908 echo "$ac_t""$CC" 1>&6
+ − 1909 else
+ − 1910 echo "$ac_t""no" 1>&6
+ − 1911 fi
+ − 1912
420
+ − 1913 if test -z "$CC"; then
+ − 1914 case "`uname -s`" in
+ − 1915 *win32* | *WIN32*)
+ − 1916 # Extract the first word of "cl", so it can be a program name with args.
+ − 1917 set dummy cl; ac_word=$2
+ − 1918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726
+ − 1919 echo "configure:1920: checking for $ac_word" >&5
420
+ − 1920
+ − 1921 if test -n "$CC"; then
+ − 1922 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1923 else
+ − 1924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 1925 ac_dummy="$PATH"
+ − 1926 for ac_dir in $ac_dummy; do
+ − 1927 test -z "$ac_dir" && ac_dir=.
+ − 1928 if test -f $ac_dir/$ac_word; then
+ − 1929 ac_cv_prog_CC="cl"
+ − 1930 break
+ − 1931 fi
+ − 1932 done
+ − 1933 IFS="$ac_save_ifs"
+ − 1934 fi
+ − 1935 CC="$ac_cv_prog_CC"
+ − 1936 if test -n "$CC"; then
+ − 1937 echo "$ac_t""$CC" 1>&6
+ − 1938 else
+ − 1939 echo "$ac_t""no" 1>&6
+ − 1940 fi
+ − 1941 ;;
+ − 1942 esac
+ − 1943 fi
157
+ − 1944 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
+ − 1945 fi
+ − 1946
+ − 1947 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
726
+ − 1948 echo "configure:1949: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
157
+ − 1949
+ − 1950 ac_ext=c
+ − 1951 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 1952 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 1953 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
157
+ − 1954 ac_cpp='$CPP '"$xe_cppflags"
+ − 1955 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 1956 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 1957 cross_compiling=no
+ − 1958
420
+ − 1959 cat > conftest.$ac_ext << EOF
+ − 1960
726
+ − 1961 #line 1962 "configure"
420
+ − 1962 #include "confdefs.h"
+ − 1963
157
+ − 1964 main(){return(0);}
+ − 1965 EOF
726
+ − 1966 if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
157
+ − 1967 ac_cv_prog_cc_works=yes
+ − 1968 # If we can't run a trivial program, we are probably using a cross compiler.
+ − 1969 if (./conftest; exit) 2>/dev/null; then
+ − 1970 ac_cv_prog_cc_cross=no
+ − 1971 else
+ − 1972 ac_cv_prog_cc_cross=yes
+ − 1973 fi
+ − 1974 else
+ − 1975 echo "configure: failed program was:" >&5
+ − 1976 cat conftest.$ac_ext >&5
+ − 1977 ac_cv_prog_cc_works=no
+ − 1978 fi
+ − 1979 rm -fr conftest*
420
+ − 1980 ac_ext=c
+ − 1981 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 1982 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 1983 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
420
+ − 1984 ac_cpp='$CPP '"$xe_cppflags"
+ − 1985 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 1986 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 1987 cross_compiling=no
157
+ − 1988
+ − 1989 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
+ − 1990 if test $ac_cv_prog_cc_works = no; then
+ − 1991 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
+ − 1992 fi
+ − 1993 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
726
+ − 1994 echo "configure:1995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
157
+ − 1995 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
+ − 1996 cross_compiling=$ac_cv_prog_cc_cross
+ − 1997
+ − 1998 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
726
+ − 1999 echo "configure:2000: checking whether we are using GNU C" >&5
157
+ − 2000
+ − 2001 cat > conftest.c <<EOF
+ − 2002 #ifdef __GNUC__
+ − 2003 yes;
+ − 2004 #endif
+ − 2005 EOF
726
+ − 2006 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
157
+ − 2007 ac_cv_prog_gcc=yes
+ − 2008 else
+ − 2009 ac_cv_prog_gcc=no
+ − 2010 fi
+ − 2011
+ − 2012 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
+ − 2013
+ − 2014 if test $ac_cv_prog_gcc = yes; then
+ − 2015 GCC=yes
420
+ − 2016 else
+ − 2017 GCC=
+ − 2018 fi
+ − 2019
+ − 2020 ac_test_CFLAGS="${CFLAGS+set}"
+ − 2021 ac_save_CFLAGS="$CFLAGS"
+ − 2022 CFLAGS=
+ − 2023 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
726
+ − 2024 echo "configure:2025: checking whether ${CC-cc} accepts -g" >&5
157
+ − 2025
+ − 2026 echo 'void f(){}' > conftest.c
+ − 2027 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
+ − 2028 ac_cv_prog_cc_g=yes
+ − 2029 else
+ − 2030 ac_cv_prog_cc_g=no
+ − 2031 fi
+ − 2032 rm -f conftest*
+ − 2033
+ − 2034
+ − 2035 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
+ − 2036 if test "$ac_test_CFLAGS" = set; then
+ − 2037 CFLAGS="$ac_save_CFLAGS"
+ − 2038 elif test $ac_cv_prog_cc_g = yes; then
+ − 2039 if test "$GCC" = yes; then
157
+ − 2040 CFLAGS="-g -O2"
+ − 2041 else
420
+ − 2042 CFLAGS="-g"
+ − 2043 fi
+ − 2044 else
+ − 2045 if test "$GCC" = yes; then
157
+ − 2046 CFLAGS="-O2"
420
+ − 2047 else
+ − 2048 CFLAGS=
+ − 2049 fi
157
+ − 2050 fi
+ − 2051
169
+ − 2052 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
157
+ − 2053 CC=gcc
+ − 2054 # Extract the first word of "gcc", so it can be a program name with args.
+ − 2055 set dummy gcc; ac_word=$2
+ − 2056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726
+ − 2057 echo "configure:2058: checking for $ac_word" >&5
157
+ − 2058
+ − 2059 if test -n "$CC"; then
+ − 2060 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 2061 else
420
+ − 2062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 2063 ac_dummy="$PATH"
+ − 2064 for ac_dir in $ac_dummy; do
157
+ − 2065 test -z "$ac_dir" && ac_dir=.
+ − 2066 if test -f $ac_dir/$ac_word; then
+ − 2067 ac_cv_prog_CC="gcc"
+ − 2068 break
+ − 2069 fi
+ − 2070 done
+ − 2071 IFS="$ac_save_ifs"
+ − 2072 fi
+ − 2073 CC="$ac_cv_prog_CC"
+ − 2074 if test -n "$CC"; then
+ − 2075 echo "$ac_t""$CC" 1>&6
+ − 2076 else
+ − 2077 echo "$ac_t""no" 1>&6
+ − 2078 fi
+ − 2079
+ − 2080 if test -z "$CC"; then
+ − 2081 # Extract the first word of "cc", so it can be a program name with args.
+ − 2082 set dummy cc; ac_word=$2
+ − 2083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726
+ − 2084 echo "configure:2085: checking for $ac_word" >&5
149
+ − 2085
+ − 2086 if test -n "$CC"; then
+ − 2087 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 2088 else
420
+ − 2089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
149
+ − 2090 ac_prog_rejected=no
420
+ − 2091 ac_dummy="$PATH"
+ − 2092 for ac_dir in $ac_dummy; do
149
+ − 2093 test -z "$ac_dir" && ac_dir=.
+ − 2094 if test -f $ac_dir/$ac_word; then
+ − 2095 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
+ − 2096 ac_prog_rejected=yes
+ − 2097 continue
+ − 2098 fi
+ − 2099 ac_cv_prog_CC="cc"
+ − 2100 break
+ − 2101 fi
+ − 2102 done
+ − 2103 IFS="$ac_save_ifs"
+ − 2104 if test $ac_prog_rejected = yes; then
+ − 2105 # We found a bogon in the path, so make sure we never use it.
+ − 2106 set dummy $ac_cv_prog_CC
+ − 2107 shift
+ − 2108 if test $# -gt 0; then
+ − 2109 # We chose a different compiler from the bogus one.
+ − 2110 # However, it has the same basename, so the bogon will be chosen
+ − 2111 # first if we set CC to just the basename; use the full file name.
+ − 2112 shift
+ − 2113 set dummy "$ac_dir/$ac_word" "$@"
+ − 2114 shift
+ − 2115 ac_cv_prog_CC="$@"
+ − 2116 fi
+ − 2117 fi
+ − 2118 fi
+ − 2119 CC="$ac_cv_prog_CC"
+ − 2120 if test -n "$CC"; then
+ − 2121 echo "$ac_t""$CC" 1>&6
+ − 2122 else
+ − 2123 echo "$ac_t""no" 1>&6
+ − 2124 fi
+ − 2125
420
+ − 2126 if test -z "$CC"; then
+ − 2127 case "`uname -s`" in
+ − 2128 *win32* | *WIN32*)
+ − 2129 # Extract the first word of "cl", so it can be a program name with args.
+ − 2130 set dummy cl; ac_word=$2
+ − 2131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726
+ − 2132 echo "configure:2133: checking for $ac_word" >&5
420
+ − 2133
+ − 2134 if test -n "$CC"; then
+ − 2135 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 2136 else
+ − 2137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 2138 ac_dummy="$PATH"
+ − 2139 for ac_dir in $ac_dummy; do
+ − 2140 test -z "$ac_dir" && ac_dir=.
+ − 2141 if test -f $ac_dir/$ac_word; then
+ − 2142 ac_cv_prog_CC="cl"
+ − 2143 break
+ − 2144 fi
+ − 2145 done
+ − 2146 IFS="$ac_save_ifs"
+ − 2147 fi
+ − 2148 CC="$ac_cv_prog_CC"
+ − 2149 if test -n "$CC"; then
+ − 2150 echo "$ac_t""$CC" 1>&6
+ − 2151 else
+ − 2152 echo "$ac_t""no" 1>&6
+ − 2153 fi
+ − 2154 ;;
+ − 2155 esac
+ − 2156 fi
149
+ − 2157 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
+ − 2158 fi
+ − 2159
+ − 2160 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
726
+ − 2161 echo "configure:2162: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
149
+ − 2162
+ − 2163 ac_ext=c
151
+ − 2164 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 2165 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 2166 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
+ − 2167 ac_cpp='$CPP '"$xe_cppflags"
151
+ − 2168 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 2169 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
+ − 2170 cross_compiling=no
+ − 2171
420
+ − 2172 cat > conftest.$ac_ext << EOF
+ − 2173
726
+ − 2174 #line 2175 "configure"
420
+ − 2175 #include "confdefs.h"
+ − 2176
149
+ − 2177 main(){return(0);}
+ − 2178 EOF
726
+ − 2179 if { (eval echo configure:2180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 2180 ac_cv_prog_cc_works=yes
+ − 2181 # If we can't run a trivial program, we are probably using a cross compiler.
+ − 2182 if (./conftest; exit) 2>/dev/null; then
+ − 2183 ac_cv_prog_cc_cross=no
+ − 2184 else
+ − 2185 ac_cv_prog_cc_cross=yes
+ − 2186 fi
+ − 2187 else
+ − 2188 echo "configure: failed program was:" >&5
+ − 2189 cat conftest.$ac_ext >&5
+ − 2190 ac_cv_prog_cc_works=no
+ − 2191 fi
+ − 2192 rm -fr conftest*
420
+ − 2193 ac_ext=c
+ − 2194 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 2195 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 2196 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
420
+ − 2197 ac_cpp='$CPP '"$xe_cppflags"
+ − 2198 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 2199 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 2200 cross_compiling=no
149
+ − 2201
+ − 2202 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
+ − 2203 if test $ac_cv_prog_cc_works = no; then
+ − 2204 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
+ − 2205 fi
+ − 2206 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
726
+ − 2207 echo "configure:2208: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
149
+ − 2208 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
+ − 2209 cross_compiling=$ac_cv_prog_cc_cross
+ − 2210
+ − 2211 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
726
+ − 2212 echo "configure:2213: checking whether we are using GNU C" >&5
149
+ − 2213
+ − 2214 cat > conftest.c <<EOF
+ − 2215 #ifdef __GNUC__
+ − 2216 yes;
+ − 2217 #endif
+ − 2218 EOF
726
+ − 2219 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
149
+ − 2220 ac_cv_prog_gcc=yes
+ − 2221 else
+ − 2222 ac_cv_prog_gcc=no
+ − 2223 fi
+ − 2224
+ − 2225 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
+ − 2226
+ − 2227 if test $ac_cv_prog_gcc = yes; then
+ − 2228 GCC=yes
420
+ − 2229 else
+ − 2230 GCC=
+ − 2231 fi
+ − 2232
+ − 2233 ac_test_CFLAGS="${CFLAGS+set}"
+ − 2234 ac_save_CFLAGS="$CFLAGS"
+ − 2235 CFLAGS=
+ − 2236 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
726
+ − 2237 echo "configure:2238: checking whether ${CC-cc} accepts -g" >&5
149
+ − 2238
+ − 2239 echo 'void f(){}' > conftest.c
+ − 2240 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
+ − 2241 ac_cv_prog_cc_g=yes
+ − 2242 else
+ − 2243 ac_cv_prog_cc_g=no
+ − 2244 fi
+ − 2245 rm -f conftest*
+ − 2246
+ − 2247
+ − 2248 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
+ − 2249 if test "$ac_test_CFLAGS" = set; then
+ − 2250 CFLAGS="$ac_save_CFLAGS"
+ − 2251 elif test $ac_cv_prog_cc_g = yes; then
+ − 2252 if test "$GCC" = yes; then
149
+ − 2253 CFLAGS="-g -O2"
+ − 2254 else
420
+ − 2255 CFLAGS="-g"
+ − 2256 fi
+ − 2257 else
+ − 2258 if test "$GCC" = yes; then
149
+ − 2259 CFLAGS="-O2"
420
+ − 2260 else
+ − 2261 CFLAGS=
+ − 2262 fi
149
+ − 2263 fi
+ − 2264
157
+ − 2265 fi
+ − 2266 CFLAGS="$xe_save_CFLAGS"
149
+ − 2267
171
+ − 2268
+ − 2269 test -n "$CPP" -a -d "$CPP" && CPP=
+ − 2270
169
+ − 2271 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
149
+ − 2272
+ − 2273 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
726
+ − 2274 echo "configure:2275: checking how to run the C preprocessor" >&5
149
+ − 2275 # On Suns, sometimes $CPP names a directory.
+ − 2276 if test -n "$CPP" && test -d "$CPP"; then
+ − 2277 CPP=
+ − 2278 fi
0
+ − 2279 if test -z "$CPP"; then
149
+ − 2280
0
+ − 2281 # This must be in double quotes, not single quotes, because CPP may get
149
+ − 2282 # substituted into the Makefile and "${CC-cc}" will confuse make.
0
+ − 2283 CPP="${CC-cc} -E"
149
+ − 2284 # On the NeXT, cc -E runs the code through the compiler's parser,
+ − 2285 # not just through cpp.
+ − 2286 cat > conftest.$ac_ext <<EOF
726
+ − 2287 #line 2288 "configure"
149
+ − 2288 #include "confdefs.h"
+ − 2289 #include <assert.h>
0
+ − 2290 Syntax Error
+ − 2291 EOF
149
+ − 2292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 2293 { (eval echo configure:2294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 2294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 2295 if test -z "$ac_err"; then
+ − 2296 :
+ − 2297 else
+ − 2298 echo "$ac_err" >&5
+ − 2299 echo "configure: failed program was:" >&5
+ − 2300 cat conftest.$ac_ext >&5
+ − 2301 rm -rf conftest*
+ − 2302 CPP="${CC-cc} -E -traditional-cpp"
+ − 2303 cat > conftest.$ac_ext <<EOF
726
+ − 2304 #line 2305 "configure"
149
+ − 2305 #include "confdefs.h"
+ − 2306 #include <assert.h>
+ − 2307 Syntax Error
+ − 2308 EOF
+ − 2309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 2310 { (eval echo configure:2311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 2311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 2312 if test -z "$ac_err"; then
+ − 2313 :
+ − 2314 else
+ − 2315 echo "$ac_err" >&5
+ − 2316 echo "configure: failed program was:" >&5
+ − 2317 cat conftest.$ac_ext >&5
+ − 2318 rm -rf conftest*
+ − 2319 CPP="${CC-cc} -nologo -E"
+ − 2320 cat > conftest.$ac_ext <<EOF
726
+ − 2321 #line 2322 "configure"
420
+ − 2322 #include "confdefs.h"
+ − 2323 #include <assert.h>
+ − 2324 Syntax Error
+ − 2325 EOF
+ − 2326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 2327 { (eval echo configure:2328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 2328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 2329 if test -z "$ac_err"; then
+ − 2330 :
+ − 2331 else
149
+ − 2332 echo "$ac_err" >&5
+ − 2333 echo "configure: failed program was:" >&5
+ − 2334 cat conftest.$ac_ext >&5
0
+ − 2335 rm -rf conftest*
+ − 2336 CPP=/lib/cpp
+ − 2337 fi
+ − 2338 rm -f conftest*
+ − 2339 fi
+ − 2340 rm -f conftest*
420
+ − 2341 fi
+ − 2342 rm -f conftest*
149
+ − 2343 ac_cv_prog_CPP="$CPP"
+ − 2344 CPP="$ac_cv_prog_CPP"
+ − 2345 else
+ − 2346 ac_cv_prog_CPP="$CPP"
+ − 2347 fi
+ − 2348 echo "$ac_t""$CPP" 1>&6
+ − 2349
+ − 2350
442
+ − 2351
157
+ − 2352 echo $ac_n "checking for AIX""... $ac_c" 1>&6
726
+ − 2353 echo "configure:2354: checking for AIX" >&5
+ − 2354 cat > conftest.$ac_ext <<EOF
+ − 2355 #line 2356 "configure"
157
+ − 2356 #include "confdefs.h"
+ − 2357 #ifdef _AIX
+ − 2358 yes
+ − 2359 #endif
+ − 2360
+ − 2361 EOF
+ − 2362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 2363 egrep "yes" >/dev/null 2>&1; then
+ − 2364 rm -rf conftest*
+ − 2365 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2366 Defining _ALL_SOURCE
+ − 2367 EOF
+ − 2368 cat >> confdefs.h <<\EOF
+ − 2369 #define _ALL_SOURCE 1
+ − 2370 EOF
+ − 2371 }
+ − 2372
+ − 2373 else
+ − 2374 rm -rf conftest*
+ − 2375 echo "$ac_t""no" 1>&6
+ − 2376 fi
+ − 2377 rm -f conftest*
+ − 2378
442
+ − 2379
410
+ − 2380
+ − 2381 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
726
+ − 2382 echo "configure:2383: checking for GNU libc" >&5
+ − 2383 cat > conftest.$ac_ext <<EOF
+ − 2384 #line 2385 "configure"
406
+ − 2385 #include "confdefs.h"
243
+ − 2386 #include <features.h>
+ − 2387 int main() {
+ − 2388
+ − 2389 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
+ − 2390 #error Not a GNU libc system :-(
+ − 2391 ******* ======= ******** &&&&&&&&
+ − 2392 #endif
+ − 2393
+ − 2394 ; return 0; }
+ − 2395 EOF
726
+ − 2396 if { (eval echo configure:2397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
243
+ − 2397 rm -rf conftest*
+ − 2398 have_glibc=yes
+ − 2399 else
+ − 2400 echo "configure: failed program was:" >&5
+ − 2401 cat conftest.$ac_ext >&5
+ − 2402 rm -rf conftest*
+ − 2403 have_glibc=no
+ − 2404 fi
+ − 2405 rm -f conftest*
+ − 2406 echo "$ac_t""$have_glibc" 1>&6
272
+ − 2407 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2408 Defining _GNU_SOURCE
+ − 2409 EOF
+ − 2410 cat >> confdefs.h <<\EOF
+ − 2411 #define _GNU_SOURCE 1
+ − 2412 EOF
+ − 2413 }
+ − 2414
243
+ − 2415
442
+ − 2416 case "$opsys" in
+ − 2417 sol2)
+ − 2418 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2419 Defining __EXTENSIONS__
+ − 2420 EOF
+ − 2421 cat >> confdefs.h <<\EOF
+ − 2422 #define __EXTENSIONS__ 1
+ − 2423 EOF
+ − 2424 }
+ − 2425
+ − 2426 if test "$os_release" -ge 55; then
+ − 2427 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2428 Defining _XOPEN_SOURCE = 500
+ − 2429 EOF
+ − 2430 cat >> confdefs.h <<\EOF
+ − 2431 #define _XOPEN_SOURCE 500
+ − 2432 EOF
+ − 2433 }
+ − 2434
+ − 2435 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2436 Defining _XOPEN_SOURCE_EXTENDED
+ − 2437 EOF
+ − 2438 cat >> confdefs.h <<\EOF
+ − 2439 #define _XOPEN_SOURCE_EXTENDED 1
+ − 2440 EOF
+ − 2441 }
+ − 2442
+ − 2443 fi ;;
+ − 2444 linux)
+ − 2445 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2446 Defining _POSIX_C_SOURCE = 199506L
+ − 2447 EOF
+ − 2448 cat >> confdefs.h <<\EOF
+ − 2449 #define _POSIX_C_SOURCE 199506L
+ − 2450 EOF
+ − 2451 }
+ − 2452
+ − 2453 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2454 Defining _XOPEN_SOURCE = 500
+ − 2455 EOF
+ − 2456 cat >> confdefs.h <<\EOF
+ − 2457 #define _XOPEN_SOURCE 500
+ − 2458 EOF
+ − 2459 }
+ − 2460
+ − 2461 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2462 Defining _XOPEN_SOURCE_EXTENDED
+ − 2463 EOF
+ − 2464 cat >> confdefs.h <<\EOF
+ − 2465 #define _XOPEN_SOURCE_EXTENDED 1
+ − 2466 EOF
+ − 2467 }
+ − 2468
+ − 2469 ;;
+ − 2470 esac
+ − 2471
+ − 2472 cat > conftest.$ac_ext <<EOF
726
+ − 2473 #line 2474 "configure"
373
+ − 2474 #include "confdefs.h"
+ − 2475 int main () {
+ − 2476 #if defined __SUNPRO_C
+ − 2477 return 11;
+ − 2478 #elif defined __DECC
+ − 2479 return 12;
442
+ − 2480 #elif defined __USLC__ && defined __SCO_VERSION__
+ − 2481 return 13;
373
+ − 2482 #else
+ − 2483 return 0;
+ − 2484 #endif
+ − 2485 }
+ − 2486 EOF
726
+ − 2487 if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
373
+ − 2488 then
+ − 2489 :
+ − 2490 else
+ − 2491 conftest_rc="$?"
+ − 2492 echo "configure: failed program was:" >&5
+ − 2493 cat conftest.$ac_ext >&5
+ − 2494 rm -fr conftest*
+ − 2495 case "$conftest_rc" in
+ − 2496 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
+ − 2497 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
442
+ − 2498 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
373
+ − 2499 esac
+ − 2500 fi
+ − 2501 rm -fr conftest*
+ − 2502
157
+ − 2503
0
+ − 2504
149
+ − 2505
+ − 2506 echo "Extracting information from the machine- and system-dependent headers..."
+ − 2507
+ − 2508 tempcname="conftest.c"
+ − 2509
+ − 2510
+ − 2511
442
+ − 2512 cat > $tempcname < confdefs.h
+ − 2513 cat >> $tempcname <<EOF
149
+ − 2514 #define NOT_C_CODE
+ − 2515 #define C_SWITCH_SITE
+ − 2516 #define C_SWITCH_X_SITE
+ − 2517 #define LD_SWITCH_SITE
+ − 2518 #define LD_SWITCH_X_SITE
+ − 2519 #define LD_SWITCH_X_SITE_AUX
284
+ − 2520 #define OS_RELEASE $os_release
442
+ − 2521
+ − 2522 #ifdef config_opsysfile
284
+ − 2523 #include "$srcdir/src/$opsysfile"
442
+ − 2524 #endif
+ − 2525
+ − 2526 #ifdef config_machfile
284
+ − 2527 #include "$srcdir/src/$machfile"
442
+ − 2528 #endif
149
+ − 2529
+ − 2530 #ifndef LIBS_MACHINE
151
+ − 2531 #define LIBS_MACHINE
149
+ − 2532 #endif
+ − 2533 configure___ libs_machine=LIBS_MACHINE
+ − 2534
+ − 2535 #ifndef LIBS_SYSTEM
151
+ − 2536 #define LIBS_SYSTEM
149
+ − 2537 #endif
+ − 2538 configure___ libs_system=LIBS_SYSTEM
+ − 2539
+ − 2540 #ifndef LIBS_TERMCAP
151
+ − 2541 #define LIBS_TERMCAP
149
+ − 2542 #endif
+ − 2543 configure___ libs_termcap=LIBS_TERMCAP
+ − 2544
+ − 2545 #ifndef LIB_STANDARD
151
+ − 2546 #define LIB_STANDARD
149
+ − 2547 #endif
+ − 2548 configure___ libs_standard=LIB_STANDARD
+ − 2549
+ − 2550
163
+ − 2551 #ifndef OBJECTS_MACHINE
+ − 2552 #define OBJECTS_MACHINE
+ − 2553 #endif
+ − 2554 configure___ objects_machine=OBJECTS_MACHINE
+ − 2555
+ − 2556 #ifndef OBJECTS_SYSTEM
+ − 2557 #define OBJECTS_SYSTEM
+ − 2558 #endif
+ − 2559 configure___ objects_system=OBJECTS_SYSTEM
+ − 2560
+ − 2561
149
+ − 2562 #ifndef C_SWITCH_MACHINE
151
+ − 2563 #define C_SWITCH_MACHINE
149
+ − 2564 #endif
+ − 2565 configure___ c_switch_machine=C_SWITCH_MACHINE
+ − 2566
157
+ − 2567 #ifndef C_SWITCH_SYSTEM
+ − 2568 #define C_SWITCH_SYSTEM
+ − 2569 #endif
+ − 2570 configure___ c_switch_system=C_SWITCH_SYSTEM
+ − 2571
+ − 2572
+ − 2573 #ifndef LD_SWITCH_MACHINE
+ − 2574 #define LD_SWITCH_MACHINE
+ − 2575 #endif
+ − 2576 configure___ ld_switch_machine=LD_SWITCH_MACHINE
+ − 2577
+ − 2578 #ifndef LD_SWITCH_SYSTEM
+ − 2579 #define LD_SWITCH_SYSTEM
+ − 2580 #endif
+ − 2581 configure___ ld_switch_system=LD_SWITCH_SYSTEM
+ − 2582
149
+ − 2583
+ − 2584 #ifndef UNEXEC
561
+ − 2585 #define UNEXEC
149
+ − 2586 #endif
+ − 2587 configure___ unexec=UNEXEC
+ − 2588
+ − 2589
561
+ − 2590 #ifndef SYSTEM_TYPE
+ − 2591 #define SYSTEM_TYPE
+ − 2592 #endif
+ − 2593 configure___ system_type=SYSTEM_TYPE
+ − 2594
+ − 2595
163
+ − 2596 #ifndef LD_SWITCH_SHARED
+ − 2597 #define LD_SWITCH_SHARED "-c"
+ − 2598 #endif
+ − 2599 configure___ ld_switch_shared=LD_SWITCH_SHARED
+ − 2600
+ − 2601
442
+ − 2602 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
+ − 2603 configure___ ordinary_ld=ORDINARY_LD
+ − 2604
163
+ − 2605 #ifdef ORDINARY_LINK
442
+ − 2606 #define LD ORDINARY_LD
163
+ − 2607 #else /* no ORDINARY LINK */
+ − 2608 #ifdef COFF_ENCAPSULATE
284
+ − 2609 #define LD "\$(CC) -nostdlib"
163
+ − 2610 #else /* not COFF_ENCAPSULATE */
+ − 2611 #ifdef LINKER
+ − 2612 #define LD LINKER
+ − 2613 #else /* ! defined (LINKER) */
+ − 2614 #define LD "ld"
+ − 2615 #endif /* ! defined (LINKER) */
+ − 2616 #endif /* ! defined (COFF_ENCAPSULATE) */
+ − 2617 #endif /* not ORDINARY_LINK */
+ − 2618 configure___ ld=LD
+ − 2619
+ − 2620 #ifndef LIB_GCC
+ − 2621 #define LIB_GCC
+ − 2622 #endif
+ − 2623 configure___ lib_gcc=LIB_GCC
+ − 2624
+ − 2625 #ifndef LD_TEXT_START_ADDR
+ − 2626 #define LD_TEXT_START_ADDR
+ − 2627 #endif
+ − 2628 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
+ − 2629
+ − 2630
+ − 2631 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
+ − 2632 #ifdef NO_REMAP
+ − 2633 #ifdef COFF_ENCAPSULATE
+ − 2634 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
+ − 2635 #else /* ! defined (COFF_ENCAPSULATE) */
+ − 2636 #define START_FILES "pre-crt0.o /lib/crt0.o"
+ − 2637 #endif /* ! defined (COFF_ENCAPSULATE) */
+ − 2638 #else /* ! defined (NO_REMAP) */
+ − 2639 #define START_FILES "ecrt0.o"
+ − 2640 #endif /* ! defined (NO_REMAP) */
+ − 2641 #endif /* no ORDINARY_LINK */
+ − 2642 #ifndef START_FILES
+ − 2643 #define START_FILES
+ − 2644 #endif
+ − 2645 configure___ start_files=START_FILES
+ − 2646
153
+ − 2647 #ifdef ORDINARY_LINK
+ − 2648 configure___ ordinary_link=yes
+ − 2649 #else
+ − 2650 configure___ ordinary_link=no
+ − 2651 #endif
+ − 2652
149
+ − 2653 #ifdef SYSTEM_MALLOC
+ − 2654 configure___ system_malloc=yes
+ − 2655 #else
+ − 2656 configure___ system_malloc=no
+ − 2657 #endif
+ − 2658
+ − 2659 #ifdef TERMINFO
+ − 2660 configure___ have_terminfo=yes
+ − 2661 #else
+ − 2662 configure___ have_terminfo=no
+ − 2663 #endif
+ − 2664
+ − 2665 #ifdef MAIL_USE_FLOCK
+ − 2666 configure___ mail_use_flock=yes
+ − 2667 #else
+ − 2668 configure___ mail_use_flock=no
+ − 2669 #endif
+ − 2670
+ − 2671 #ifdef MAIL_USE_LOCKF
+ − 2672 configure___ mail_use_lockf=yes
+ − 2673 #else
+ − 2674 configure___ mail_use_lockf=no
+ − 2675 #endif
+ − 2676
438
+ − 2677 #ifdef MAIL_USE_LOCKING
+ − 2678 configure___ mail_use_locking=yes
+ − 2679 #else
+ − 2680 configure___ mail_use_locking=no
+ − 2681 #endif
+ − 2682
398
+ − 2683 #ifdef HAVE_WIN32_PROCESSES
+ − 2684 configure___ win32_processes=yes
+ − 2685 #else
+ − 2686 configure___ win32_processes=no
+ − 2687 #endif
+ − 2688
284
+ − 2689 EOF
+ − 2690
380
+ − 2691 CPP=`eval "echo $CPP $CPPFLAGS"`
149
+ − 2692 eval `$CPP -Isrc $tempcname \
165
+ − 2693 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
153
+ − 2694
149
+ − 2695 rm $tempcname
+ − 2696
561
+ − 2697 test -z "$system_type" && \
+ − 2698 { test "$extra_verbose" = "yes" && cat << EOF
+ − 2699 Defining SYSTEM_TYPE = "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
+ − 2700 EOF
+ − 2701 cat >> confdefs.h <<EOF
+ − 2702 #define SYSTEM_TYPE "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
+ − 2703 EOF
+ − 2704 }
+ − 2705
+ − 2706
+ − 2707 test -z "$unexec" && pdump=yes
+ − 2708
442
+ − 2709 if test "$pdump" = "yes"; then
+ − 2710 ordinary_link="yes"
+ − 2711 ld="${ordinary_ld}"
+ − 2712 start_files=
+ − 2713 libs_standard=
+ − 2714 unexec=
+ − 2715 lib_gcc=
+ − 2716 fi
+ − 2717
163
+ − 2718 test "$extra_verbose" = "yes" && \
201
+ − 2719 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
163
+ − 2720
458
+ − 2721 case "$opsys" in mingw* | cygwin*)
452
+ − 2722 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
+ − 2723 cygwin_include=`eval "dirname $cygwin_include"` ;
+ − 2724 cygwin_include="-I$cygwin_include/../include" ;
462
+ − 2725 extra_includes="$cygwin_include/mingw $cygwin_include" ;
458
+ − 2726 case "$opsys" in mingw*)
452
+ − 2727 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
+ − 2728 esac
458
+ − 2729 ;;
438
+ − 2730 esac
+ − 2731
153
+ − 2732 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
+ − 2733
442
+ − 2734
+ − 2735 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
+ − 2736
+ − 2737 if test "$__USLC__" = yes; then
+ − 2738 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
726
+ − 2739 echo "configure:2740: checking for whether the -Kalloca compiler flag is needed" >&5
442
+ − 2740 need_kalloca=no
+ − 2741 cat > conftest.$ac_ext <<EOF
726
+ − 2742 #line 2743 "configure"
442
+ − 2743 #include "confdefs.h"
+ − 2744
+ − 2745 int main() {
+ − 2746 void *x = alloca(4);
+ − 2747 ; return 0; }
+ − 2748 EOF
726
+ − 2749 if { (eval echo configure:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 2750 rm -rf conftest*
+ − 2751 :
+ − 2752 else
+ − 2753 echo "configure: failed program was:" >&5
+ − 2754 cat conftest.$ac_ext >&5
+ − 2755 rm -rf conftest*
+ − 2756
+ − 2757 xe_save_c_switch_system="$c_switch_system"
+ − 2758 c_switch_system="$c_switch_system -Kalloca"
+ − 2759 cat > conftest.$ac_ext <<EOF
726
+ − 2760 #line 2761 "configure"
442
+ − 2761 #include "confdefs.h"
+ − 2762
+ − 2763 int main() {
+ − 2764 void *x = alloca(4);
+ − 2765 ; return 0; }
+ − 2766 EOF
726
+ − 2767 if { (eval echo configure:2768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 2768 rm -rf conftest*
+ − 2769 need_kalloca=yes
+ − 2770 else
+ − 2771 echo "configure: failed program was:" >&5
+ − 2772 cat conftest.$ac_ext >&5
+ − 2773 fi
+ − 2774 rm -f conftest*
+ − 2775 c_switch_system="$xe_save_c_switch_system"
+ − 2776 fi
+ − 2777 rm -f conftest*
+ − 2778 echo "$ac_t""$need_kalloca" 1>&6
+ − 2779 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi
+ − 2780 fi
373
+ − 2781
272
+ − 2782 if test "$cflags_specified" = "no"; then
157
+ − 2783 if test "$GCC" = "yes"; then
664
+ − 2784 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes"
464
+ − 2785 CFLAGS="$CFLAGS -Wsign-compare"
664
+ − 2786 if test "$xemacs_compiler" != "g++"; then
+ − 2787 CFLAGS="$CFLAGS -Wshadow"
+ − 2788 fi
458
+ − 2789 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
398
+ − 2790 elif test "$__SUNPRO_C" = "yes"; then
157
+ − 2791 case "$opsys" in
163
+ − 2792 sol2 ) CFLAGS="-v -xO4" ;;
+ − 2793 sunos4* ) CFLAGS="-xO2";;
157
+ − 2794 esac
373
+ − 2795 elif test "$__DECC" = "yes"; then
+ − 2796 CFLAGS="-O3"
207
+ − 2797 elif test "$CC" = "xlc"; then
373
+ − 2798 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
+ − 2799 else
+ − 2800 CFLAGS="-O" ; fi
272
+ − 2801 fi
+ − 2802
442
+ − 2803 if test "$GCC" = "yes"; then
+ − 2804 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
726
+ − 2805 echo "configure:2806: checking for buggy gcc versions" >&5
442
+ − 2806 GCC_VERSION=`$CC --version`
+ − 2807 case `uname -s`:`uname -m`:$GCC_VERSION in
+ − 2808 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
+ − 2809 case "$CFLAGS" in
+ − 2810 *-O2*|*-O3*)
+ − 2811 case "$CFLAGS" in
+ − 2812 *-fno-schedule-insns*) ;;
+ − 2813 *)
+ − 2814 echo "$ac_t""yes" 1>&6
+ − 2815 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
+ − 2816 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
+ − 2817 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
+ − 2818 ;;
+ − 2819 esac
+ − 2820 ;;
+ − 2821 esac
+ − 2822 ;;
+ − 2823 Linux:alpha:egcs-2.91.*)
+ − 2824 echo "$ac_t""yes" 1>&6
+ − 2825 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
+ − 2826 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
+ − 2827 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
+ − 2828 ;;
+ − 2829 *:i*86*:2.7.2*)
448
+ − 2830 case "$CFLAGS" in
+ − 2831 *-O2*|*-O3*)
+ − 2832 case "$GCC_VERSION" in
+ − 2833 2.7.2)
442
+ − 2834 case "$CFLAGS" in
+ − 2835 *-fno-strength-reduce*) ;;
+ − 2836 *)
+ − 2837 echo "$ac_t""yes" 1>&6
+ − 2838 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
+ − 2839 echo "configure: warning: -fno-strength-reduce." 1>&2
+ − 2840 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
+ − 2841 ;;
+ − 2842 esac
+ − 2843 ;;
+ − 2844 esac
448
+ − 2845 case "$CFLAGS" in
+ − 2846 *-fno-caller-saves*) ;;
+ − 2847 *)
+ − 2848 echo "$ac_t""yes" 1>&6
+ − 2849 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
+ − 2850 echo "configure: warning: -fno-caller-saves." 1>&2
+ − 2851 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
+ − 2852 ;;
+ − 2853 esac
442
+ − 2854 ;;
+ − 2855 esac
+ − 2856 ;;
+ − 2857 esac
+ − 2858 echo "$ac_t""no" 1>&6
+ − 2859 fi
+ − 2860
272
+ − 2861
+ − 2862 if test "$GCC" = "yes"; then
+ − 2863 set x $ld_switch_system; shift; ld_switch_system=""
+ − 2864 while test -n "$1"; do
+ − 2865 case $1 in
380
+ − 2866 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
+ − 2867 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
272
+ − 2868 -Xlinker* ) ;;
+ − 2869 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
+ − 2870 esac
+ − 2871 shift
+ − 2872 done
157
+ − 2873 fi
151
+ − 2874
163
+ − 2875 if test "$GCC" = "yes"; then
272
+ − 2876 set x $ld_switch_machine; shift; ld_switch_machine=""
+ − 2877 while test -n "$1"; do
+ − 2878 case $1 in
380
+ − 2879 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
+ − 2880 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
163
+ − 2881 -Xlinker* ) ;;
272
+ − 2882 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
163
+ − 2883 esac
272
+ − 2884 shift
163
+ − 2885 done
272
+ − 2886 fi
+ − 2887
+ − 2888 if test "$GCC" = "yes"; then
+ − 2889 set x $LDFLAGS; shift; LDFLAGS=""
+ − 2890 while test -n "$1"; do
+ − 2891 case $1 in
380
+ − 2892 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
+ − 2893 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
163
+ − 2894 -Xlinker* ) ;;
272
+ − 2895 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
163
+ − 2896 esac
272
+ − 2897 shift
163
+ − 2898 done
272
+ − 2899 fi
+ − 2900
+ − 2901 if test "$GCC" = "yes"; then
+ − 2902 set x $ld_call_shared; shift; ld_call_shared=""
+ − 2903 while test -n "$1"; do
+ − 2904 case $1 in
380
+ − 2905 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
+ − 2906 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
173
+ − 2907 -Xlinker* ) ;;
272
+ − 2908 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
173
+ − 2909 esac
272
+ − 2910 shift
173
+ − 2911 done
163
+ − 2912 fi
+ − 2913
+ − 2914 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
+ − 2915 echo " xemacs will be linked with \"$objects_machine\""
+ − 2916 fi
+ − 2917 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
+ − 2918 echo " xemacs will be linked with \"$objects_system\""
+ − 2919 fi
442
+ − 2920 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
151
+ − 2921 echo " xemacs will be linked with \"$unexec\""
+ − 2922 fi
442
+ − 2923 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
+ − 2924 echo " xemacs will be linked with \"dumper.o\""
+ − 2925 fi
151
+ − 2926
163
+ − 2927 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
726
+ − 2928 echo "configure:2929: checking for dynodump" >&5
163
+ − 2929 if test "$unexec" != "unexsol2.o"; then
+ − 2930 echo "$ac_t""no" 1>&6
+ − 2931 else
+ − 2932 echo "$ac_t""yes" 1>&6
+ − 2933 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2934 Defining DYNODUMP
+ − 2935 EOF
+ − 2936 cat >> confdefs.h <<\EOF
+ − 2937 #define DYNODUMP 1
+ − 2938 EOF
+ − 2939 }
+ − 2940
+ − 2941 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
175
+ − 2942 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
163
+ − 2943 case "$machine" in
+ − 2944 sparc ) dynodump_arch=sparc ;;
+ − 2945 *86* ) dynodump_arch=i386 ;;
+ − 2946 powerpc ) dynodump_arch=ppc ;;
+ − 2947 esac
+ − 2948 test "$GCC" = "yes" && ld_switch_site="$ld_switch_site -fno-gnu-linker" && if test "$extra_verbose" = "yes"; then echo " Appending \"-fno-gnu-linker\" to \$ld_switch_site"; fi
+ − 2949 fi
+ − 2950
+ − 2951
274
+ − 2952 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
272
+ − 2953
207
+ − 2954 if test "$unexec" = "unexaix.o"; then
219
+ − 2955 if test "$dynamic" = "no"; then
207
+ − 2956 start_flags="-Wl,-bnso,-bnodelcsect"
209
+ − 2957 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
272
+ − 2958 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
207
+ − 2959 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
+ − 2960 done
+ − 2961 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
+ − 2962 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
+ − 2963 done
294
+ − 2964
+ − 2965 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
726
+ − 2966 echo "configure:2967: checking for terminateAndUnload in -lC" >&5
294
+ − 2967 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
+ − 2968
+ − 2969 xe_check_libs=" -lC "
+ − 2970 cat > conftest.$ac_ext <<EOF
726
+ − 2971 #line 2972 "configure"
294
+ − 2972 #include "confdefs.h"
+ − 2973 /* Override any gcc2 internal prototype to avoid an error. */
+ − 2974 /* We use char because int might match the return type of a gcc2
+ − 2975 builtin and then its argument prototype would still apply. */
+ − 2976 char terminateAndUnload();
+ − 2977
+ − 2978 int main() {
+ − 2979 terminateAndUnload()
+ − 2980 ; return 0; }
+ − 2981 EOF
726
+ − 2982 if { (eval echo configure:2983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
294
+ − 2983 rm -rf conftest*
+ − 2984 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 2985 else
+ − 2986 echo "configure: failed program was:" >&5
+ − 2987 cat conftest.$ac_ext >&5
+ − 2988 rm -rf conftest*
+ − 2989 eval "ac_cv_lib_$ac_lib_var=no"
+ − 2990 fi
+ − 2991 rm -f conftest*
+ − 2992 xe_check_libs=""
+ − 2993
+ − 2994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 2995 echo "$ac_t""yes" 1>&6
+ − 2996 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
+ − 2997 else
+ − 2998 echo "$ac_t""no" 1>&6
+ − 2999 fi
+ − 3000
+ − 3001
272
+ − 3002 fi
207
+ − 3003 elif test -n "$ld_text_start_addr"; then
+ − 3004 start_flags="-T $ld_text_start_addr -e __start"
+ − 3005 fi
+ − 3006
+ − 3007
+ − 3008
163
+ − 3009
+ − 3010 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
+ − 3011 test -z "$linker" && linker='$(CC) -nostdlib'
175
+ − 3012 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
163
+ − 3013 fi
+ − 3014 test "$GCC" != "yes" && lib_gcc=
+ − 3015
+ − 3016
+ − 3017
151
+ − 3018
209
+ − 3019
380
+ − 3020 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
151
+ − 3021 if test -n "$site_libraries"; then
+ − 3022 for arg in $site_libraries; do
380
+ − 3023 case "$arg" in
+ − 3024 -* ) ;;
+ − 3025 * ) test -d "$arg" || \
384
+ − 3026 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
380
+ − 3027 arg="-L${arg}" ;;
+ − 3028 esac
151
+ − 3029 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
+ − 3030 done
+ − 3031 fi
+ − 3032
380
+ − 3033 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
272
+ − 3034 if test -n "$site_includes"; then
151
+ − 3035 for arg in $site_includes; do
380
+ − 3036 case "$arg" in
+ − 3037 -* ) ;;
+ − 3038 * ) test -d "$arg" || \
384
+ − 3039 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
380
+ − 3040 arg="-I${arg}" ;;
+ − 3041 esac
151
+ − 3042 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
+ − 3043 done
+ − 3044 fi
+ − 3045
380
+ − 3046 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
+ − 3047 if test -n "$site_prefixes"; then
+ − 3048 for dir in $site_prefixes; do
398
+ − 3049 lib_dir="${dir}/lib"
416
+ − 3050 inc_dir="${dir}/include"
380
+ − 3051 if test ! -d "$dir"; then
384
+ − 3052 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
380
+ − 3053 elif test ! -d "$lib_dir"; then
384
+ − 3054 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
380
+ − 3055 else
414
+ − 3056 if test -d "$inc_dir"; then
+ − 3057 c_switch_site="$c_switch_site "-I$inc_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-I$inc_dir"\" to \$c_switch_site"; fi
+ − 3058 fi
380
+ − 3059 ld_switch_site="$ld_switch_site "-L$lib_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-L$lib_dir"\" to \$ld_switch_site"; fi
+ − 3060 fi
+ − 3061 done
+ − 3062 fi
+ − 3063
157
+ − 3064
151
+ − 3065 for dir in "/usr/ccs/lib"; do
440
+ − 3066 test -d "$dir" && ld_switch_system="$ld_switch_system -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_system"; fi
151
+ − 3067 done
+ − 3068
380
+ − 3069 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
272
+ − 3070 if test -n "$site_runtime_libraries"; then
165
+ − 3071 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
151
+ − 3072 export LD_RUN_PATH
+ − 3073 fi
+ − 3074
+ − 3075
440
+ − 3076
+ − 3077
+ − 3078
+ − 3079 if test -n "$add_runtime_path"; then :;
+ − 3080 elif test "$dynamic" = "no"; then add_runtime_path=no
151
+ − 3081 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
163
+ − 3082 else case "$opsys" in
373
+ − 3083 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
151
+ − 3084 * ) add_runtime_path=no ;;
+ − 3085 esac
+ − 3086 fi
+ − 3087
+ − 3088 if test "$add_runtime_path" = "yes"; then
+ − 3089 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
726
+ − 3090 echo "configure:3091: checking "for runtime libraries flag"" >&5
373
+ − 3091 case "$opsys" in
377
+ − 3092 sol2 ) dash_r="-R" ;;
392
+ − 3093 decosf* | linux* | irix*) dash_r="-rpath " ;;
373
+ − 3094 *)
+ − 3095 dash_r=""
+ − 3096 for try_dash_r in "-R" "-R " "-rpath "; do
+ − 3097 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
+ − 3098
272
+ − 3099 if test "$GCC" = "yes"; then
+ − 3100 set x $xe_check_libs; shift; xe_check_libs=""
+ − 3101 while test -n "$1"; do
+ − 3102 case $1 in
380
+ − 3103 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
+ − 3104 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
272
+ − 3105 -Xlinker* ) ;;
+ − 3106 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
+ − 3107 esac
+ − 3108 shift
+ − 3109 done
+ − 3110 fi
373
+ − 3111 cat > conftest.$ac_ext <<EOF
726
+ − 3112 #line 3113 "configure"
+ − 3113 #include "confdefs.h"
+ − 3114
+ − 3115 int main() {
+ − 3116
+ − 3117 ; return 0; }
+ − 3118 EOF
+ − 3119 if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
+ − 3120 rm -rf conftest*
+ − 3121 dash_r="$try_dash_r"
+ − 3122 else
+ − 3123 echo "configure: failed program was:" >&5
+ − 3124 cat conftest.$ac_ext >&5
+ − 3125 fi
+ − 3126 rm -f conftest*
373
+ − 3127 xe_check_libs=""
+ − 3128 test -n "$dash_r" && break
+ − 3129 done ;;
+ − 3130 esac
151
+ − 3131 if test -n "$dash_r";
+ − 3132 then echo "$ac_t"""\"${dash_r}\""" 1>&6
+ − 3133 else echo "$ac_t""NONE" 1>&6
+ − 3134 fi
+ − 3135 fi
+ − 3136
163
+ − 3137 xe_add_unique_runpath_dir='
+ − 3138 xe_add_p=yes
+ − 3139 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
+ − 3140 done
+ − 3141 if test "$xe_add_p" = "yes"; then
+ − 3142 test -n "$runpath" && runpath="${runpath}:"
+ − 3143 runpath="${runpath}${xe_runpath_dir}"
+ − 3144 runpath_dirs="$runpath_dirs $xe_runpath_dir"
+ − 3145 fi'
+ − 3146
+ − 3147
151
+ − 3148
155
+ − 3149
151
+ − 3150 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
+ − 3151 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
+ − 3152 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
+ − 3153
163
+ − 3154 runpath="" runpath_dirs=""
155
+ − 3155 if test -n "$LD_RUN_PATH"; then
151
+ − 3156 runpath="$LD_RUN_PATH"
155
+ − 3157 elif test "$GCC" = "yes"; then
163
+ − 3158 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
+ − 3159 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
+ − 3160 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
+ − 3161 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
+ − 3162 case "$arg" in P,* | -L* | -R* )
159
+ − 3163 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
+ − 3164 {
155
+ − 3165 xe_runpath_dir="$dir"
163
+ − 3166 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 3167 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 3168 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 3169 eval "$xe_add_unique_runpath_dir"
+ − 3170 }
155
+ − 3171 done ;;
+ − 3172 esac
+ − 3173 done
163
+ − 3174 ld_switch_run="$ld_switch_run_save"
155
+ − 3175 rm -f conftest*
151
+ − 3176 else
155
+ − 3177 for arg in $ld_switch_site $ld_switch_x_site; do
163
+ − 3178 case "$arg" in -L*) {
159
+ − 3179 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
+ − 3180 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 3181 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 3182 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 3183 eval "$xe_add_unique_runpath_dir"
+ − 3184 };; esac
151
+ − 3185 done
163
+ − 3186 if test "$opsys $need_motif" = "sol2 yes"; then
+ − 3187 xe_runpath_dir="/opt/SUNWdt/lib";
+ − 3188 eval "$xe_add_unique_runpath_dir";
+ − 3189 fi
155
+ − 3190 fi
151
+ − 3191 if test -n "$runpath"; then
+ − 3192 ld_switch_run="${dash_r}${runpath}"
272
+ − 3193
+ − 3194 if test "$GCC" = "yes"; then
+ − 3195 set x $ld_switch_run; shift; ld_switch_run=""
+ − 3196 while test -n "$1"; do
+ − 3197 case $1 in
380
+ − 3198 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
+ − 3199 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
+ − 3200 -Xlinker* ) ;;
+ − 3201 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
+ − 3202 esac
+ − 3203 shift
+ − 3204 done
+ − 3205 fi
151
+ − 3206 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
+ − 3207 fi
+ − 3208 fi
+ − 3209
+ − 3210
149
+ − 3211
+ − 3212 GNU_MALLOC=yes
261
+ − 3213 if test "$with_dlmalloc" != "no"; then
+ − 3214 doug_lea_malloc=yes
+ − 3215 else
+ − 3216 doug_lea_malloc=no
+ − 3217 fi
259
+ − 3218 after_morecore_hook_exists=yes
255
+ − 3219 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
726
+ − 3220 echo "configure:3221: checking for malloc_set_state" >&5
+ − 3221
+ − 3222 cat > conftest.$ac_ext <<EOF
+ − 3223 #line 3224 "configure"
255
+ − 3224 #include "confdefs.h"
+ − 3225 /* System header to define __stub macros and hopefully few prototypes,
+ − 3226 which can conflict with char malloc_set_state(); below. */
+ − 3227 #include <assert.h>
+ − 3228 /* Override any gcc2 internal prototype to avoid an error. */
+ − 3229 /* We use char because int might match the return type of a gcc2
+ − 3230 builtin and then its argument prototype would still apply. */
+ − 3231 char malloc_set_state();
+ − 3232
+ − 3233 int main() {
+ − 3234
+ − 3235 /* The GNU C library defines this for functions which it implements
+ − 3236 to always fail with ENOSYS. Some functions are actually named
+ − 3237 something starting with __ and the normal name is an alias. */
+ − 3238 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
+ − 3239 choke me
+ − 3240 #else
+ − 3241 malloc_set_state();
+ − 3242 #endif
+ − 3243
+ − 3244 ; return 0; }
+ − 3245 EOF
726
+ − 3246 if { (eval echo configure:3247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
255
+ − 3247 rm -rf conftest*
+ − 3248 eval "ac_cv_func_malloc_set_state=yes"
+ − 3249 else
+ − 3250 echo "configure: failed program was:" >&5
+ − 3251 cat conftest.$ac_ext >&5
+ − 3252 rm -rf conftest*
+ − 3253 eval "ac_cv_func_malloc_set_state=no"
+ − 3254 fi
+ − 3255 rm -f conftest*
+ − 3256
+ − 3257 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
+ − 3258 echo "$ac_t""yes" 1>&6
+ − 3259 :
+ − 3260 else
+ − 3261 echo "$ac_t""no" 1>&6
+ − 3262 doug_lea_malloc=no
+ − 3263 fi
+ − 3264
+ − 3265 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
726
+ − 3266 echo "configure:3267: checking whether __after_morecore_hook exists" >&5
+ − 3267 cat > conftest.$ac_ext <<EOF
+ − 3268 #line 3269 "configure"
255
+ − 3269 #include "confdefs.h"
+ − 3270 extern void (* __after_morecore_hook)();
+ − 3271 int main() {
+ − 3272 __after_morecore_hook = 0
+ − 3273 ; return 0; }
+ − 3274 EOF
726
+ − 3275 if { (eval echo configure:3276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
+ − 3276 rm -rf conftest*
+ − 3277 echo "$ac_t""yes" 1>&6
+ − 3278 else
+ − 3279 echo "configure: failed program was:" >&5
+ − 3280 cat conftest.$ac_ext >&5
+ − 3281 rm -rf conftest*
+ − 3282 echo "$ac_t""no" 1>&6
+ − 3283 after_morecore_hook_exists=no
255
+ − 3284 fi
+ − 3285 rm -f conftest*
149
+ − 3286 if test "$system_malloc" = "yes" ; then
+ − 3287 GNU_MALLOC=no
+ − 3288 GNU_MALLOC_reason="
442
+ − 3289 - The GNU allocators don't work with this system configuration."
181
+ − 3290 elif test "$with_system_malloc" = "yes" ; then
149
+ − 3291 GNU_MALLOC=no
+ − 3292 GNU_MALLOC_reason="
442
+ − 3293 - User chose not to use GNU allocators."
181
+ − 3294 elif test "$with_debug_malloc" = "yes" ; then
177
+ − 3295 GNU_MALLOC=no
+ − 3296 GNU_MALLOC_reason="
442
+ − 3297 - User chose to use Debugging Malloc."
+ − 3298 fi
+ − 3299
+ − 3300 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
+ − 3301 GNU_MALLOC_reason="
+ − 3302 - Using Doug Lea's new malloc from the GNU C Library."
255
+ − 3303 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3304 Defining DOUG_LEA_MALLOC
+ − 3305 EOF
+ − 3306 cat >> confdefs.h <<\EOF
+ − 3307 #define DOUG_LEA_MALLOC 1
+ − 3308 EOF
+ − 3309 }
+ − 3310
259
+ − 3311 if test "$after_morecore_hook_exists" = "no" ; then
+ − 3312 GNU_MALLOC_reason="
442
+ − 3313 - Using Doug Lea's new malloc from the Linux C Library."
259
+ − 3314 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3315 Defining _NO_MALLOC_WARNING_
+ − 3316 EOF
+ − 3317 cat >> confdefs.h <<\EOF
+ − 3318 #define _NO_MALLOC_WARNING_ 1
+ − 3319 EOF
+ − 3320 }
+ − 3321
+ − 3322 fi
255
+ − 3323 fi
+ − 3324
149
+ − 3325
267
+ − 3326
+ − 3327
149
+ − 3328 # Extract the first word of "ranlib", so it can be a program name with args.
+ − 3329 set dummy ranlib; ac_word=$2
+ − 3330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726
+ − 3331 echo "configure:3332: checking for $ac_word" >&5
149
+ − 3332
+ − 3333 if test -n "$RANLIB"; then
+ − 3334 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+ − 3335 else
420
+ − 3336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 3337 ac_dummy="$PATH"
+ − 3338 for ac_dir in $ac_dummy; do
0
+ − 3339 test -z "$ac_dir" && ac_dir=.
+ − 3340 if test -f $ac_dir/$ac_word; then
149
+ − 3341 ac_cv_prog_RANLIB="ranlib"
0
+ − 3342 break
+ − 3343 fi
+ − 3344 done
+ − 3345 IFS="$ac_save_ifs"
149
+ − 3346 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
+ − 3347 fi
+ − 3348 RANLIB="$ac_cv_prog_RANLIB"
+ − 3349 if test -n "$RANLIB"; then
+ − 3350 echo "$ac_t""$RANLIB" 1>&6
+ − 3351 else
+ − 3352 echo "$ac_t""no" 1>&6
+ − 3353 fi
+ − 3354
+ − 3355 ac_aux_dir=
+ − 3356 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
+ − 3357 if test -f $ac_dir/install-sh; then
+ − 3358 ac_aux_dir=$ac_dir
+ − 3359 ac_install_sh="$ac_aux_dir/install-sh -c"
+ − 3360 break
+ − 3361 elif test -f $ac_dir/install.sh; then
+ − 3362 ac_aux_dir=$ac_dir
+ − 3363 ac_install_sh="$ac_aux_dir/install.sh -c"
+ − 3364 break
+ − 3365 fi
+ − 3366 done
+ − 3367 if test -z "$ac_aux_dir"; then
+ − 3368 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
+ − 3369 fi
+ − 3370 ac_config_guess=$ac_aux_dir/config.guess
+ − 3371 ac_config_sub=$ac_aux_dir/config.sub
+ − 3372 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
+ − 3373
+ − 3374 # Find a good install program. We prefer a C program (faster),
+ − 3375 # so one script is as good as another. But avoid the broken or
+ − 3376 # incompatible versions:
+ − 3377 # SysV /etc/install, /usr/sbin/install
+ − 3378 # SunOS /usr/etc/install
+ − 3379 # IRIX /sbin/install
+ − 3380 # AIX /bin/install
420
+ − 3381 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
149
+ − 3382 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
+ − 3383 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+ − 3384 # ./install, which can be erroneously created by make from ./install.sh.
+ − 3385 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
726
+ − 3386 echo "configure:3387: checking for a BSD compatible install" >&5
149
+ − 3387 if test -z "$INSTALL"; then
+ − 3388
420
+ − 3389 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
0
+ − 3390 for ac_dir in $PATH; do
149
+ − 3391 # Account for people who put trailing slashes in PATH elements.
+ − 3392 case "$ac_dir/" in
+ − 3393 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
0
+ − 3394 *)
+ − 3395 # OSF1 and SCO ODT 3.0 have their own names for install.
420
+ − 3396 # Don't use installbsd from OSF since it installs stuff as root
+ − 3397 # by default.
+ − 3398 for ac_prog in ginstall scoinst install; do
0
+ − 3399 if test -f $ac_dir/$ac_prog; then
+ − 3400 if test $ac_prog = install &&
+ − 3401 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
+ − 3402 # AIX install. It has an incompatible calling convention.
+ − 3403 :
+ − 3404 else
149
+ − 3405 ac_cv_path_install="$ac_dir/$ac_prog -c"
0
+ − 3406 break 2
+ − 3407 fi
+ − 3408 fi
+ − 3409 done
+ − 3410 ;;
+ − 3411 esac
+ − 3412 done
149
+ − 3413 IFS="$ac_save_IFS"
+ − 3414
+ − 3415 if test "${ac_cv_path_install+set}" = set; then
+ − 3416 INSTALL="$ac_cv_path_install"
+ − 3417 else
+ − 3418 # As a last resort, use the slow shell script. We don't cache a
+ − 3419 # path for INSTALL within a source directory, because that will
+ − 3420 # break other packages using the cache if that directory is
+ − 3421 # removed, or if the path is relative.
+ − 3422 INSTALL="$ac_install_sh"
+ − 3423 fi
+ − 3424 fi
+ − 3425 echo "$ac_t""$INSTALL" 1>&6
+ − 3426
+ − 3427 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
0
+ − 3428 # It thinks the first close brace ends the variable substitution.
+ − 3429 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+ − 3430
420
+ − 3431 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
+ − 3432
0
+ − 3433 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+ − 3434
+ − 3435 for ac_prog in 'bison -y' byacc
+ − 3436 do
149
+ − 3437 # Extract the first word of "$ac_prog", so it can be a program name with args.
+ − 3438 set dummy $ac_prog; ac_word=$2
+ − 3439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726
+ − 3440 echo "configure:3441: checking for $ac_word" >&5
149
+ − 3441
+ − 3442 if test -n "$YACC"; then
+ − 3443 ac_cv_prog_YACC="$YACC" # Let the user override the test.
+ − 3444 else
420
+ − 3445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 3446 ac_dummy="$PATH"
+ − 3447 for ac_dir in $ac_dummy; do
0
+ − 3448 test -z "$ac_dir" && ac_dir=.
+ − 3449 if test -f $ac_dir/$ac_word; then
149
+ − 3450 ac_cv_prog_YACC="$ac_prog"
0
+ − 3451 break
+ − 3452 fi
+ − 3453 done
+ − 3454 IFS="$ac_save_ifs"
+ − 3455 fi
149
+ − 3456 YACC="$ac_cv_prog_YACC"
+ − 3457 if test -n "$YACC"; then
+ − 3458 echo "$ac_t""$YACC" 1>&6
+ − 3459 else
+ − 3460 echo "$ac_t""no" 1>&6
+ − 3461 fi
0
+ − 3462
+ − 3463 test -n "$YACC" && break
+ − 3464 done
+ − 3465 test -n "$YACC" || YACC="yacc"
+ − 3466
+ − 3467
460
+ − 3468 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h
120
+ − 3469 do
149
+ − 3470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 3471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
726
+ − 3472 echo "configure:3473: checking for $ac_hdr" >&5
+ − 3473
+ − 3474 cat > conftest.$ac_ext <<EOF
+ − 3475 #line 3476 "configure"
149
+ − 3476 #include "confdefs.h"
+ − 3477 #include <$ac_hdr>
+ − 3478 EOF
+ − 3479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 3480 { (eval echo configure:3481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 3481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 3482 if test -z "$ac_err"; then
+ − 3483 rm -rf conftest*
149
+ − 3484 eval "ac_cv_header_$ac_safe=yes"
+ − 3485 else
+ − 3486 echo "$ac_err" >&5
+ − 3487 echo "configure: failed program was:" >&5
+ − 3488 cat conftest.$ac_ext >&5
+ − 3489 rm -rf conftest*
+ − 3490 eval "ac_cv_header_$ac_safe=no"
+ − 3491 fi
+ − 3492 rm -f conftest*
+ − 3493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 3494 echo "$ac_t""yes" 1>&6
+ − 3495 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 3496 { test "$extra_verbose" = "yes" && cat << EOF
+ − 3497 Defining $ac_tr_hdr
+ − 3498 EOF
+ − 3499 cat >> confdefs.h <<EOF
+ − 3500 #define $ac_tr_hdr 1
+ − 3501 EOF
+ − 3502 }
+ − 3503
+ − 3504 else
+ − 3505 echo "$ac_t""no" 1>&6
+ − 3506 fi
0
+ − 3507 done
+ − 3508
155
+ − 3509 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
726
+ − 3510 echo "configure:3511: checking for sys/wait.h that is POSIX.1 compatible" >&5
+ − 3511
+ − 3512 cat > conftest.$ac_ext <<EOF
+ − 3513 #line 3514 "configure"
155
+ − 3514 #include "confdefs.h"
+ − 3515 #include <sys/types.h>
+ − 3516 #include <sys/wait.h>
+ − 3517 #ifndef WEXITSTATUS
+ − 3518 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
+ − 3519 #endif
+ − 3520 #ifndef WIFEXITED
+ − 3521 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
+ − 3522 #endif
+ − 3523 int main() {
+ − 3524 int s;
+ − 3525 wait (&s);
+ − 3526 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
+ − 3527 ; return 0; }
+ − 3528 EOF
726
+ − 3529 if { (eval echo configure:3530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
155
+ − 3530 rm -rf conftest*
+ − 3531 ac_cv_header_sys_wait_h=yes
+ − 3532 else
+ − 3533 echo "configure: failed program was:" >&5
+ − 3534 cat conftest.$ac_ext >&5
+ − 3535 rm -rf conftest*
+ − 3536 ac_cv_header_sys_wait_h=no
+ − 3537 fi
+ − 3538 rm -f conftest*
+ − 3539
+ − 3540 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
+ − 3541 if test $ac_cv_header_sys_wait_h = yes; then
+ − 3542 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3543 Defining HAVE_SYS_WAIT_H
+ − 3544 EOF
+ − 3545 cat >> confdefs.h <<\EOF
+ − 3546 #define HAVE_SYS_WAIT_H 1
+ − 3547 EOF
+ − 3548 }
+ − 3549
+ − 3550 fi
+ − 3551
149
+ − 3552 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
726
+ − 3553 echo "configure:3554: checking for ANSI C header files" >&5
+ − 3554
+ − 3555 cat > conftest.$ac_ext <<EOF
+ − 3556 #line 3557 "configure"
0
+ − 3557 #include "confdefs.h"
+ − 3558 #include <stdlib.h>
+ − 3559 #include <stdarg.h>
+ − 3560 #include <string.h>
+ − 3561 #include <float.h>
+ − 3562 EOF
149
+ − 3563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 3564 { (eval echo configure:3565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 3565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 3566 if test -z "$ac_err"; then
+ − 3567 rm -rf conftest*
149
+ − 3568 ac_cv_header_stdc=yes
+ − 3569 else
+ − 3570 echo "$ac_err" >&5
+ − 3571 echo "configure: failed program was:" >&5
+ − 3572 cat conftest.$ac_ext >&5
+ − 3573 rm -rf conftest*
+ − 3574 ac_cv_header_stdc=no
+ − 3575 fi
+ − 3576 rm -f conftest*
+ − 3577
+ − 3578 if test $ac_cv_header_stdc = yes; then
0
+ − 3579 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
149
+ − 3580 cat > conftest.$ac_ext <<EOF
726
+ − 3581 #line 3582 "configure"
149
+ − 3582 #include "confdefs.h"
+ − 3583 #include <string.h>
+ − 3584 EOF
+ − 3585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 3586 egrep "memchr" >/dev/null 2>&1; then
+ − 3587 :
+ − 3588 else
+ − 3589 rm -rf conftest*
+ − 3590 ac_cv_header_stdc=no
+ − 3591 fi
+ − 3592 rm -f conftest*
+ − 3593
+ − 3594 fi
+ − 3595
+ − 3596 if test $ac_cv_header_stdc = yes; then
+ − 3597 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ − 3598 cat > conftest.$ac_ext <<EOF
726
+ − 3599 #line 3600 "configure"
149
+ − 3600 #include "confdefs.h"
+ − 3601 #include <stdlib.h>
+ − 3602 EOF
+ − 3603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 3604 egrep "free" >/dev/null 2>&1; then
+ − 3605 :
+ − 3606 else
+ − 3607 rm -rf conftest*
+ − 3608 ac_cv_header_stdc=no
+ − 3609 fi
+ − 3610 rm -f conftest*
+ − 3611
+ − 3612 fi
+ − 3613
+ − 3614 if test $ac_cv_header_stdc = yes; then
+ − 3615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ − 3616 cat > conftest.$ac_ext <<EOF
726
+ − 3617 #line 3618 "configure"
0
+ − 3618 #include "confdefs.h"
+ − 3619 #include <ctype.h>
+ − 3620 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ − 3621 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
149
+ − 3622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
0
+ − 3623 int main () { int i; for (i = 0; i < 256; i++)
+ − 3624 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
+ − 3625 exit (0); }
+ − 3626
+ − 3627 EOF
726
+ − 3628 if { (eval echo configure:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 3629 then
+ − 3630 :
+ − 3631 else
373
+ − 3632 conftest_rc="$?"
149
+ − 3633 echo "configure: failed program was:" >&5
+ − 3634 cat conftest.$ac_ext >&5
+ − 3635 rm -fr conftest*
+ − 3636 ac_cv_header_stdc=no
0
+ − 3637 fi
+ − 3638 rm -fr conftest*
149
+ − 3639 fi
+ − 3640
+ − 3641 echo "$ac_t""$ac_cv_header_stdc" 1>&6
+ − 3642 if test $ac_cv_header_stdc = yes; then
+ − 3643 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3644 Defining STDC_HEADERS
+ − 3645 EOF
+ − 3646 cat >> confdefs.h <<\EOF
+ − 3647 #define STDC_HEADERS 1
+ − 3648 EOF
+ − 3649 }
+ − 3650
+ − 3651 fi
+ − 3652
+ − 3653 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
726
+ − 3654 echo "configure:3655: checking whether time.h and sys/time.h may both be included" >&5
+ − 3655
+ − 3656 cat > conftest.$ac_ext <<EOF
+ − 3657 #line 3658 "configure"
0
+ − 3658 #include "confdefs.h"
+ − 3659 #include <sys/types.h>
+ − 3660 #include <sys/time.h>
+ − 3661 #include <time.h>
149
+ − 3662 int main() {
+ − 3663 struct tm *tp;
+ − 3664 ; return 0; }
+ − 3665 EOF
726
+ − 3666 if { (eval echo configure:3667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 3667 rm -rf conftest*
+ − 3668 ac_cv_header_time=yes
+ − 3669 else
+ − 3670 echo "configure: failed program was:" >&5
+ − 3671 cat conftest.$ac_ext >&5
+ − 3672 rm -rf conftest*
+ − 3673 ac_cv_header_time=no
+ − 3674 fi
+ − 3675 rm -f conftest*
+ − 3676
+ − 3677 echo "$ac_t""$ac_cv_header_time" 1>&6
+ − 3678 if test $ac_cv_header_time = yes; then
+ − 3679 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3680 Defining TIME_WITH_SYS_TIME
+ − 3681 EOF
+ − 3682 cat >> confdefs.h <<\EOF
+ − 3683 #define TIME_WITH_SYS_TIME 1
+ − 3684 EOF
+ − 3685 }
+ − 3686
+ − 3687 fi
+ − 3688
+ − 3689 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
726
+ − 3690 echo "configure:3691: checking for sys_siglist declaration in signal.h or unistd.h" >&5
+ − 3691
+ − 3692 cat > conftest.$ac_ext <<EOF
+ − 3693 #line 3694 "configure"
149
+ − 3694 #include "confdefs.h"
+ − 3695 #include <sys/types.h>
0
+ − 3696 #include <signal.h>
149
+ − 3697 /* NetBSD declares sys_siglist in unistd.h. */
0
+ − 3698 #ifdef HAVE_UNISTD_H
+ − 3699 #include <unistd.h>
+ − 3700 #endif
149
+ − 3701 int main() {
+ − 3702 char *msg = *(sys_siglist + 1);
+ − 3703 ; return 0; }
+ − 3704 EOF
726
+ − 3705 if { (eval echo configure:3706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 3706 rm -rf conftest*
+ − 3707 ac_cv_decl_sys_siglist=yes
+ − 3708 else
+ − 3709 echo "configure: failed program was:" >&5
+ − 3710 cat conftest.$ac_ext >&5
+ − 3711 rm -rf conftest*
+ − 3712 ac_cv_decl_sys_siglist=no
+ − 3713 fi
+ − 3714 rm -f conftest*
+ − 3715
+ − 3716 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
+ − 3717 if test $ac_cv_decl_sys_siglist = yes; then
+ − 3718 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3719 Defining SYS_SIGLIST_DECLARED
+ − 3720 EOF
+ − 3721 cat >> confdefs.h <<\EOF
+ − 3722 #define SYS_SIGLIST_DECLARED 1
+ − 3723 EOF
+ − 3724 }
+ − 3725
+ − 3726 fi
+ − 3727
+ − 3728
460
+ − 3729
+ − 3730 echo $ac_n "checking for utime""... $ac_c" 1>&6
726
+ − 3731 echo "configure:3732: checking for utime" >&5
+ − 3732 cat > conftest.$ac_ext <<EOF
+ − 3733 #line 3734 "configure"
460
+ − 3734 #include "confdefs.h"
+ − 3735 #include <sys/types.h>
0
+ − 3736 #include <utime.h>
460
+ − 3737 int main() {
+ − 3738 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
+ − 3739 ; return 0; }
+ − 3740 EOF
726
+ − 3741 if { (eval echo configure:3742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 3742 rm -rf conftest*
+ − 3743 echo "$ac_t""yes" 1>&6
+ − 3744 { test "$extra_verbose" = "yes" && cat << \EOF
460
+ − 3745 Defining HAVE_UTIME
+ − 3746 EOF
+ − 3747 cat >> confdefs.h <<\EOF
+ − 3748 #define HAVE_UTIME 1
+ − 3749 EOF
+ − 3750 }
+ − 3751
+ − 3752 else
+ − 3753 echo "configure: failed program was:" >&5
+ − 3754 cat conftest.$ac_ext >&5
+ − 3755 rm -rf conftest*
+ − 3756 echo "$ac_t""no" 1>&6
+ − 3757 for ac_func in utimes
+ − 3758 do
+ − 3759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
726
+ − 3760 echo "configure:3761: checking for $ac_func" >&5
+ − 3761
+ − 3762 cat > conftest.$ac_ext <<EOF
+ − 3763 #line 3764 "configure"
460
+ − 3764 #include "confdefs.h"
+ − 3765 /* System header to define __stub macros and hopefully few prototypes,
+ − 3766 which can conflict with char $ac_func(); below. */
+ − 3767 #include <assert.h>
+ − 3768 /* Override any gcc2 internal prototype to avoid an error. */
+ − 3769 /* We use char because int might match the return type of a gcc2
+ − 3770 builtin and then its argument prototype would still apply. */
+ − 3771 char $ac_func();
+ − 3772
+ − 3773 int main() {
+ − 3774
+ − 3775 /* The GNU C library defines this for functions which it implements
+ − 3776 to always fail with ENOSYS. Some functions are actually named
+ − 3777 something starting with __ and the normal name is an alias. */
+ − 3778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 3779 choke me
+ − 3780 #else
+ − 3781 $ac_func();
+ − 3782 #endif
+ − 3783
+ − 3784 ; return 0; }
+ − 3785 EOF
726
+ − 3786 if { (eval echo configure:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
460
+ − 3787 rm -rf conftest*
+ − 3788 eval "ac_cv_func_$ac_func=yes"
+ − 3789 else
+ − 3790 echo "configure: failed program was:" >&5
+ − 3791 cat conftest.$ac_ext >&5
+ − 3792 rm -rf conftest*
+ − 3793 eval "ac_cv_func_$ac_func=no"
+ − 3794 fi
+ − 3795 rm -f conftest*
+ − 3796
+ − 3797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 3798 echo "$ac_t""yes" 1>&6
+ − 3799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 3800 { test "$extra_verbose" = "yes" && cat << EOF
+ − 3801 Defining $ac_tr_func
+ − 3802 EOF
+ − 3803 cat >> confdefs.h <<EOF
+ − 3804 #define $ac_tr_func 1
+ − 3805 EOF
+ − 3806 }
+ − 3807
+ − 3808 else
+ − 3809 echo "$ac_t""no" 1>&6
+ − 3810 fi
+ − 3811 done
+ − 3812
+ − 3813 fi
+ − 3814 rm -f conftest*
+ − 3815
149
+ − 3816
+ − 3817 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
726
+ − 3818 echo "configure:3819: checking return type of signal handlers" >&5
+ − 3819
+ − 3820 cat > conftest.$ac_ext <<EOF
+ − 3821 #line 3822 "configure"
0
+ − 3822 #include "confdefs.h"
+ − 3823 #include <sys/types.h>
+ − 3824 #include <signal.h>
+ − 3825 #ifdef signal
+ − 3826 #undef signal
+ − 3827 #endif
149
+ − 3828 #ifdef __cplusplus
+ − 3829 extern "C" void (*signal (int, void (*)(int)))(int);
+ − 3830 #else
+ − 3831 void (*signal ()) ();
+ − 3832 #endif
+ − 3833
+ − 3834 int main() {
+ − 3835 int i;
+ − 3836 ; return 0; }
+ − 3837 EOF
726
+ − 3838 if { (eval echo configure:3839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 3839 rm -rf conftest*
+ − 3840 ac_cv_type_signal=void
+ − 3841 else
+ − 3842 echo "configure: failed program was:" >&5
+ − 3843 cat conftest.$ac_ext >&5
+ − 3844 rm -rf conftest*
+ − 3845 ac_cv_type_signal=int
+ − 3846 fi
+ − 3847 rm -f conftest*
+ − 3848
+ − 3849 echo "$ac_t""$ac_cv_type_signal" 1>&6
+ − 3850 { test "$extra_verbose" = "yes" && cat << EOF
+ − 3851 Defining RETSIGTYPE = $ac_cv_type_signal
+ − 3852 EOF
+ − 3853 cat >> confdefs.h <<EOF
+ − 3854 #define RETSIGTYPE $ac_cv_type_signal
+ − 3855 EOF
+ − 3856 }
+ − 3857
+ − 3858
163
+ − 3859 echo $ac_n "checking for size_t""... $ac_c" 1>&6
726
+ − 3860 echo "configure:3861: checking for size_t" >&5
+ − 3861
+ − 3862 cat > conftest.$ac_ext <<EOF
+ − 3863 #line 3864 "configure"
163
+ − 3864 #include "confdefs.h"
+ − 3865 #include <sys/types.h>
+ − 3866 #if STDC_HEADERS
+ − 3867 #include <stdlib.h>
+ − 3868 #include <stddef.h>
+ − 3869 #endif
+ − 3870 EOF
+ − 3871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
+ − 3872 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
+ − 3873 rm -rf conftest*
+ − 3874 ac_cv_type_size_t=yes
+ − 3875 else
+ − 3876 rm -rf conftest*
+ − 3877 ac_cv_type_size_t=no
+ − 3878 fi
+ − 3879 rm -f conftest*
+ − 3880
+ − 3881 echo "$ac_t""$ac_cv_type_size_t" 1>&6
+ − 3882 if test $ac_cv_type_size_t = no; then
+ − 3883 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3884 Defining size_t = unsigned
+ − 3885 EOF
+ − 3886 cat >> confdefs.h <<\EOF
+ − 3887 #define size_t unsigned
+ − 3888 EOF
+ − 3889 }
+ − 3890
+ − 3891 fi
+ − 3892
+ − 3893 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
726
+ − 3894 echo "configure:3895: checking for pid_t" >&5
+ − 3895
+ − 3896 cat > conftest.$ac_ext <<EOF
+ − 3897 #line 3898 "configure"
163
+ − 3898 #include "confdefs.h"
+ − 3899 #include <sys/types.h>
+ − 3900 #if STDC_HEADERS
+ − 3901 #include <stdlib.h>
+ − 3902 #include <stddef.h>
+ − 3903 #endif
+ − 3904 EOF
+ − 3905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
+ − 3906 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
+ − 3907 rm -rf conftest*
+ − 3908 ac_cv_type_pid_t=yes
+ − 3909 else
+ − 3910 rm -rf conftest*
+ − 3911 ac_cv_type_pid_t=no
+ − 3912 fi
+ − 3913 rm -f conftest*
+ − 3914
+ − 3915 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
+ − 3916 if test $ac_cv_type_pid_t = no; then
+ − 3917 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3918 Defining pid_t = int
+ − 3919 EOF
+ − 3920 cat >> confdefs.h <<\EOF
+ − 3921 #define pid_t int
+ − 3922 EOF
+ − 3923 }
+ − 3924
+ − 3925 fi
+ − 3926
+ − 3927 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
726
+ − 3928 echo "configure:3929: checking for uid_t in sys/types.h" >&5
+ − 3929
+ − 3930 cat > conftest.$ac_ext <<EOF
+ − 3931 #line 3932 "configure"
163
+ − 3932 #include "confdefs.h"
+ − 3933 #include <sys/types.h>
+ − 3934 EOF
+ − 3935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 3936 egrep "uid_t" >/dev/null 2>&1; then
+ − 3937 rm -rf conftest*
+ − 3938 ac_cv_type_uid_t=yes
+ − 3939 else
+ − 3940 rm -rf conftest*
+ − 3941 ac_cv_type_uid_t=no
+ − 3942 fi
+ − 3943 rm -f conftest*
+ − 3944
+ − 3945
+ − 3946 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
+ − 3947 if test $ac_cv_type_uid_t = no; then
+ − 3948 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3949 Defining uid_t = int
+ − 3950 EOF
+ − 3951 cat >> confdefs.h <<\EOF
+ − 3952 #define uid_t int
+ − 3953 EOF
+ − 3954 }
+ − 3955
+ − 3956 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3957 Defining gid_t = int
+ − 3958 EOF
+ − 3959 cat >> confdefs.h <<\EOF
+ − 3960 #define gid_t int
+ − 3961 EOF
+ − 3962 }
+ − 3963
+ − 3964 fi
+ − 3965
+ − 3966 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
726
+ − 3967 echo "configure:3968: checking for mode_t" >&5
+ − 3968
+ − 3969 cat > conftest.$ac_ext <<EOF
+ − 3970 #line 3971 "configure"
163
+ − 3971 #include "confdefs.h"
+ − 3972 #include <sys/types.h>
+ − 3973 #if STDC_HEADERS
+ − 3974 #include <stdlib.h>
+ − 3975 #include <stddef.h>
+ − 3976 #endif
+ − 3977 EOF
+ − 3978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
+ − 3979 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
+ − 3980 rm -rf conftest*
+ − 3981 ac_cv_type_mode_t=yes
+ − 3982 else
+ − 3983 rm -rf conftest*
+ − 3984 ac_cv_type_mode_t=no
+ − 3985 fi
+ − 3986 rm -f conftest*
+ − 3987
+ − 3988 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
+ − 3989 if test $ac_cv_type_mode_t = no; then
+ − 3990 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3991 Defining mode_t = int
+ − 3992 EOF
+ − 3993 cat >> confdefs.h <<\EOF
+ − 3994 #define mode_t int
+ − 3995 EOF
+ − 3996 }
+ − 3997
+ − 3998 fi
+ − 3999
+ − 4000 echo $ac_n "checking for off_t""... $ac_c" 1>&6
726
+ − 4001 echo "configure:4002: checking for off_t" >&5
+ − 4002
+ − 4003 cat > conftest.$ac_ext <<EOF
+ − 4004 #line 4005 "configure"
163
+ − 4005 #include "confdefs.h"
+ − 4006 #include <sys/types.h>
+ − 4007 #if STDC_HEADERS
+ − 4008 #include <stdlib.h>
+ − 4009 #include <stddef.h>
+ − 4010 #endif
+ − 4011 EOF
+ − 4012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
+ − 4013 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
+ − 4014 rm -rf conftest*
+ − 4015 ac_cv_type_off_t=yes
+ − 4016 else
+ − 4017 rm -rf conftest*
+ − 4018 ac_cv_type_off_t=no
+ − 4019 fi
+ − 4020 rm -f conftest*
+ − 4021
+ − 4022 echo "$ac_t""$ac_cv_type_off_t" 1>&6
+ − 4023 if test $ac_cv_type_off_t = no; then
+ − 4024 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4025 Defining off_t = long
+ − 4026 EOF
+ − 4027 cat >> confdefs.h <<\EOF
+ − 4028 #define off_t long
+ − 4029 EOF
+ − 4030 }
+ − 4031
+ − 4032 fi
+ − 4033
426
+ − 4034 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
726
+ − 4035 echo "configure:4036: checking for ssize_t" >&5
+ − 4036
+ − 4037 cat > conftest.$ac_ext <<EOF
+ − 4038 #line 4039 "configure"
426
+ − 4039 #include "confdefs.h"
+ − 4040 #include <sys/types.h>
+ − 4041 #if STDC_HEADERS
+ − 4042 #include <stdlib.h>
+ − 4043 #include <stddef.h>
+ − 4044 #endif
+ − 4045 EOF
+ − 4046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 4047 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
+ − 4048 rm -rf conftest*
+ − 4049 ac_cv_type_ssize_t=yes
+ − 4050 else
+ − 4051 rm -rf conftest*
+ − 4052 ac_cv_type_ssize_t=no
+ − 4053 fi
+ − 4054 rm -f conftest*
+ − 4055
+ − 4056 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
+ − 4057 if test $ac_cv_type_ssize_t = no; then
+ − 4058 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4059 Defining ssize_t = int
+ − 4060 EOF
+ − 4061 cat >> confdefs.h <<\EOF
+ − 4062 #define ssize_t int
+ − 4063 EOF
+ − 4064 }
+ − 4065
+ − 4066 fi
+ − 4067
410
+ − 4068
442
+ − 4069 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
726
+ − 4070 echo "configure:4071: checking for socklen_t" >&5
+ − 4071 cat > conftest.$ac_ext <<EOF
+ − 4072 #line 4073 "configure"
442
+ − 4073 #include "confdefs.h"
+ − 4074 #include <sys/socket.h>
+ − 4075 socklen_t x;
+ − 4076
+ − 4077 int main() {
+ − 4078
+ − 4079 ; return 0; }
+ − 4080 EOF
726
+ − 4081 if { (eval echo configure:4082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
+ − 4082 rm -rf conftest*
+ − 4083 echo "$ac_t""yes" 1>&6
+ − 4084 else
+ − 4085 echo "configure: failed program was:" >&5
+ − 4086 cat conftest.$ac_ext >&5
+ − 4087 rm -rf conftest*
+ − 4088
+ − 4089 cat > conftest.$ac_ext <<EOF
726
+ − 4090 #line 4091 "configure"
442
+ − 4091 #include "confdefs.h"
+ − 4092 #include <sys/socket.h>
+ − 4093 int accept (int, struct sockaddr *, size_t *);
+ − 4094
+ − 4095 int main() {
+ − 4096
+ − 4097 ; return 0; }
+ − 4098 EOF
726
+ − 4099 if { (eval echo configure:4100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
+ − 4100 rm -rf conftest*
+ − 4101
+ − 4102 echo "$ac_t""size_t" 1>&6
+ − 4103 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4104 Defining socklen_t = size_t
+ − 4105 EOF
+ − 4106 cat >> confdefs.h <<\EOF
+ − 4107 #define socklen_t size_t
+ − 4108 EOF
+ − 4109 }
+ − 4110
+ − 4111 else
+ − 4112 echo "configure: failed program was:" >&5
+ − 4113 cat conftest.$ac_ext >&5
+ − 4114 rm -rf conftest*
+ − 4115
+ − 4116 echo "$ac_t""int" 1>&6
+ − 4117 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4118 Defining socklen_t = int
+ − 4119 EOF
+ − 4120 cat >> confdefs.h <<\EOF
+ − 4121 #define socklen_t int
+ − 4122 EOF
+ − 4123 }
+ − 4124
+ − 4125 fi
+ − 4126 rm -f conftest*
+ − 4127 fi
+ − 4128 rm -f conftest*
+ − 4129
149
+ − 4130 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
726
+ − 4131 echo "configure:4132: checking for struct timeval" >&5
+ − 4132 cat > conftest.$ac_ext <<EOF
+ − 4133 #line 4134 "configure"
0
+ − 4134 #include "confdefs.h"
+ − 4135 #ifdef TIME_WITH_SYS_TIME
+ − 4136 #include <sys/time.h>
+ − 4137 #include <time.h>
+ − 4138 #else
+ − 4139 #ifdef HAVE_SYS_TIME_H
+ − 4140 #include <sys/time.h>
+ − 4141 #else
+ − 4142 #include <time.h>
+ − 4143 #endif
+ − 4144 #endif
149
+ − 4145 int main() {
+ − 4146 static struct timeval x; x.tv_sec = x.tv_usec;
+ − 4147 ; return 0; }
+ − 4148 EOF
726
+ − 4149 if { (eval echo configure:4150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4150 rm -rf conftest*
+ − 4151 echo "$ac_t""yes" 1>&6
0
+ − 4152 HAVE_TIMEVAL=yes
149
+ − 4153 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4154 Defining HAVE_TIMEVAL
+ − 4155 EOF
+ − 4156 cat >> confdefs.h <<\EOF
+ − 4157 #define HAVE_TIMEVAL 1
+ − 4158 EOF
+ − 4159 }
+ − 4160
+ − 4161 else
+ − 4162 echo "configure: failed program was:" >&5
+ − 4163 cat conftest.$ac_ext >&5
+ − 4164 rm -rf conftest*
+ − 4165 echo "$ac_t""no" 1>&6
+ − 4166 HAVE_TIMEVAL=no
+ − 4167 fi
+ − 4168 rm -f conftest*
+ − 4169
+ − 4170 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
726
+ − 4171 echo "configure:4172: checking whether struct tm is in sys/time.h or time.h" >&5
+ − 4172
+ − 4173 cat > conftest.$ac_ext <<EOF
+ − 4174 #line 4175 "configure"
0
+ − 4175 #include "confdefs.h"
+ − 4176 #include <sys/types.h>
+ − 4177 #include <time.h>
149
+ − 4178 int main() {
+ − 4179 struct tm *tp; tp->tm_sec;
+ − 4180 ; return 0; }
+ − 4181 EOF
726
+ − 4182 if { (eval echo configure:4183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4183 rm -rf conftest*
+ − 4184 ac_cv_struct_tm=time.h
+ − 4185 else
+ − 4186 echo "configure: failed program was:" >&5
+ − 4187 cat conftest.$ac_ext >&5
+ − 4188 rm -rf conftest*
+ − 4189 ac_cv_struct_tm=sys/time.h
+ − 4190 fi
+ − 4191 rm -f conftest*
+ − 4192
+ − 4193 echo "$ac_t""$ac_cv_struct_tm" 1>&6
+ − 4194 if test $ac_cv_struct_tm = sys/time.h; then
+ − 4195 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4196 Defining TM_IN_SYS_TIME
+ − 4197 EOF
+ − 4198 cat >> confdefs.h <<\EOF
+ − 4199 #define TM_IN_SYS_TIME 1
+ − 4200 EOF
+ − 4201 }
+ − 4202
+ − 4203 fi
+ − 4204
+ − 4205 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
726
+ − 4206 echo "configure:4207: checking for tm_zone in struct tm" >&5
+ − 4207
+ − 4208 cat > conftest.$ac_ext <<EOF
+ − 4209 #line 4210 "configure"
149
+ − 4210 #include "confdefs.h"
+ − 4211 #include <sys/types.h>
+ − 4212 #include <$ac_cv_struct_tm>
+ − 4213 int main() {
+ − 4214 struct tm tm; tm.tm_zone;
+ − 4215 ; return 0; }
+ − 4216 EOF
726
+ − 4217 if { (eval echo configure:4218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4218 rm -rf conftest*
+ − 4219 ac_cv_struct_tm_zone=yes
+ − 4220 else
+ − 4221 echo "configure: failed program was:" >&5
+ − 4222 cat conftest.$ac_ext >&5
+ − 4223 rm -rf conftest*
+ − 4224 ac_cv_struct_tm_zone=no
+ − 4225 fi
+ − 4226 rm -f conftest*
+ − 4227
+ − 4228 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
+ − 4229 if test "$ac_cv_struct_tm_zone" = yes; then
+ − 4230 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4231 Defining HAVE_TM_ZONE
+ − 4232 EOF
+ − 4233 cat >> confdefs.h <<\EOF
+ − 4234 #define HAVE_TM_ZONE 1
+ − 4235 EOF
+ − 4236 }
+ − 4237
+ − 4238 else
+ − 4239 echo $ac_n "checking for tzname""... $ac_c" 1>&6
726
+ − 4240 echo "configure:4241: checking for tzname" >&5
+ − 4241
+ − 4242 cat > conftest.$ac_ext <<EOF
+ − 4243 #line 4244 "configure"
0
+ − 4244 #include "confdefs.h"
+ − 4245 #include <time.h>
+ − 4246 #ifndef tzname /* For SGI. */
149
+ − 4247 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
0
+ − 4248 #endif
149
+ − 4249 int main() {
+ − 4250 atoi(*tzname);
+ − 4251 ; return 0; }
+ − 4252 EOF
726
+ − 4253 if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 4254 rm -rf conftest*
+ − 4255 ac_cv_var_tzname=yes
+ − 4256 else
+ − 4257 echo "configure: failed program was:" >&5
+ − 4258 cat conftest.$ac_ext >&5
+ − 4259 rm -rf conftest*
+ − 4260 ac_cv_var_tzname=no
+ − 4261 fi
+ − 4262 rm -f conftest*
+ − 4263
+ − 4264 echo "$ac_t""$ac_cv_var_tzname" 1>&6
+ − 4265 if test $ac_cv_var_tzname = yes; then
+ − 4266 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4267 Defining HAVE_TZNAME
+ − 4268 EOF
+ − 4269 cat >> confdefs.h <<\EOF
+ − 4270 #define HAVE_TZNAME 1
+ − 4271 EOF
+ − 4272 }
+ − 4273
+ − 4274 fi
+ − 4275 fi
+ − 4276
+ − 4277
+ − 4278 echo $ac_n "checking for working const""... $ac_c" 1>&6
726
+ − 4279 echo "configure:4280: checking for working const" >&5
+ − 4280
+ − 4281 cat > conftest.$ac_ext <<EOF
+ − 4282 #line 4283 "configure"
149
+ − 4283 #include "confdefs.h"
+ − 4284
+ − 4285 int main() {
+ − 4286
+ − 4287 /* Ultrix mips cc rejects this. */
726
+ − 4288 typedef int charset[2]; const charset x = {0,0};
0
+ − 4289 /* SunOS 4.1.1 cc rejects this. */
+ − 4290 char const *const *ccp;
+ − 4291 char **p;
149
+ − 4292 /* NEC SVR4.0.2 mips cc rejects this. */
+ − 4293 struct point {int x, y;};
+ − 4294 static struct point const zero = {0,0};
0
+ − 4295 /* AIX XL C 1.02.0.0 rejects this.
+ − 4296 It does not let you subtract one const X* pointer from another in an arm
+ − 4297 of an if-expression whose if-part is not a constant expression */
+ − 4298 const char *g = "string";
+ − 4299 ccp = &g + (g ? g-g : 0);
+ − 4300 /* HPUX 7.0 cc rejects these. */
+ − 4301 ++ccp;
+ − 4302 p = (char**) ccp;
+ − 4303 ccp = (char const *const *) p;
+ − 4304 { /* SCO 3.2v4 cc rejects this. */
+ − 4305 char *t;
+ − 4306 char const *s = 0 ? (char *) 0 : (char const *) 0;
+ − 4307
+ − 4308 *t++ = 0;
+ − 4309 }
+ − 4310 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
149
+ − 4311 int x[] = {25, 17};
0
+ − 4312 const int *foo = &x[0];
+ − 4313 ++foo;
+ − 4314 }
+ − 4315 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
+ − 4316 typedef const int *iptr;
+ − 4317 iptr p = 0;
+ − 4318 ++p;
+ − 4319 }
+ − 4320 { /* AIX XL C 1.02.0.0 rejects this saying
+ − 4321 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
+ − 4322 struct s { int j; const int *ap[3]; };
+ − 4323 struct s *b; b->j = 5;
+ − 4324 }
+ − 4325 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
+ − 4326 const int foo = 10;
149
+ − 4327 }
+ − 4328
+ − 4329 ; return 0; }
+ − 4330 EOF
726
+ − 4331 if { (eval echo configure:4332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4332 rm -rf conftest*
+ − 4333 ac_cv_c_const=yes
+ − 4334 else
+ − 4335 echo "configure: failed program was:" >&5
+ − 4336 cat conftest.$ac_ext >&5
+ − 4337 rm -rf conftest*
+ − 4338 ac_cv_c_const=no
+ − 4339 fi
+ − 4340 rm -f conftest*
+ − 4341
+ − 4342 echo "$ac_t""$ac_cv_c_const" 1>&6
+ − 4343 if test $ac_cv_c_const = no; then
+ − 4344 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4345 Defining const =
+ − 4346 EOF
+ − 4347 cat >> confdefs.h <<\EOF
+ − 4348 #define const
+ − 4349 EOF
+ − 4350 }
+ − 4351
+ − 4352 fi
+ − 4353
+ − 4354
+ − 4355 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
726
+ − 4356 echo "configure:4357: checking whether ${MAKE-make} sets \${MAKE}" >&5
149
+ − 4357 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
+ − 4358
+ − 4359 cat > conftestmake <<\EOF
0
+ − 4360 all:
+ − 4361 @echo 'ac_maketemp="${MAKE}"'
+ − 4362 EOF
+ − 4363 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+ − 4364 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
149
+ − 4365 if test -n "$ac_maketemp"; then
+ − 4366 eval ac_cv_prog_make_${ac_make}_set=yes
+ − 4367 else
+ − 4368 eval ac_cv_prog_make_${ac_make}_set=no
+ − 4369 fi
0
+ − 4370 rm -f conftestmake
149
+ − 4371 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
+ − 4372 echo "$ac_t""yes" 1>&6
+ − 4373 SET_MAKE=
+ − 4374 else
+ − 4375 echo "$ac_t""no" 1>&6
+ − 4376 SET_MAKE="MAKE=${MAKE-make}"
+ − 4377 fi
+ − 4378
+ − 4379
+ − 4380 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
726
+ − 4381 echo "configure:4382: checking whether byte ordering is bigendian" >&5
149
+ − 4382
+ − 4383 ac_cv_c_bigendian=unknown
+ − 4384 # See if sys/param.h defines the BYTE_ORDER macro.
+ − 4385 cat > conftest.$ac_ext <<EOF
726
+ − 4386 #line 4387 "configure"
149
+ − 4387 #include "confdefs.h"
+ − 4388 #include <sys/types.h>
+ − 4389 #include <sys/param.h>
+ − 4390 int main() {
+ − 4391
+ − 4392 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
+ − 4393 bogus endian macros
+ − 4394 #endif
+ − 4395 ; return 0; }
+ − 4396 EOF
726
+ − 4397 if { (eval echo configure:4398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4398 rm -rf conftest*
+ − 4399 # It does; now see whether it defined to BIG_ENDIAN or not.
+ − 4400 cat > conftest.$ac_ext <<EOF
726
+ − 4401 #line 4402 "configure"
149
+ − 4402 #include "confdefs.h"
+ − 4403 #include <sys/types.h>
+ − 4404 #include <sys/param.h>
+ − 4405 int main() {
+ − 4406
+ − 4407 #if BYTE_ORDER != BIG_ENDIAN
+ − 4408 not big endian
+ − 4409 #endif
+ − 4410 ; return 0; }
+ − 4411 EOF
726
+ − 4412 if { (eval echo configure:4413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4413 rm -rf conftest*
+ − 4414 ac_cv_c_bigendian=yes
+ − 4415 else
+ − 4416 echo "configure: failed program was:" >&5
+ − 4417 cat conftest.$ac_ext >&5
+ − 4418 rm -rf conftest*
+ − 4419 ac_cv_c_bigendian=no
+ − 4420 fi
+ − 4421 rm -f conftest*
+ − 4422 else
+ − 4423 echo "configure: failed program was:" >&5
+ − 4424 cat conftest.$ac_ext >&5
+ − 4425 fi
+ − 4426 rm -f conftest*
+ − 4427 if test $ac_cv_c_bigendian = unknown; then
+ − 4428 cat > conftest.$ac_ext <<EOF
726
+ − 4429 #line 4430 "configure"
0
+ − 4430 #include "confdefs.h"
+ − 4431 main () {
+ − 4432 /* Are we little or big endian? From Harbison&Steele. */
+ − 4433 union
+ − 4434 {
+ − 4435 long l;
+ − 4436 char c[sizeof (long)];
+ − 4437 } u;
+ − 4438 u.l = 1;
+ − 4439 exit (u.c[sizeof (long) - 1] == 1);
+ − 4440 }
+ − 4441 EOF
726
+ − 4442 if { (eval echo configure:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 4443 then
+ − 4444 ac_cv_c_bigendian=no
+ − 4445 else
373
+ − 4446 conftest_rc="$?"
149
+ − 4447 echo "configure: failed program was:" >&5
+ − 4448 cat conftest.$ac_ext >&5
+ − 4449 rm -fr conftest*
+ − 4450 ac_cv_c_bigendian=yes
0
+ − 4451 fi
+ − 4452 rm -fr conftest*
149
+ − 4453 fi
+ − 4454
+ − 4455 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
+ − 4456 if test $ac_cv_c_bigendian = yes; then
+ − 4457 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4458 Defining WORDS_BIGENDIAN
+ − 4459 EOF
+ − 4460 cat >> confdefs.h <<\EOF
+ − 4461 #define WORDS_BIGENDIAN 1
+ − 4462 EOF
+ − 4463 }
+ − 4464
+ − 4465 fi
+ − 4466
+ − 4467
151
+ − 4468 echo $ac_n "checking size of short""... $ac_c" 1>&6
726
+ − 4469 echo "configure:4470: checking size of short" >&5
+ − 4470
+ − 4471 cat > conftest.$ac_ext <<EOF
+ − 4472 #line 4473 "configure"
151
+ − 4473 #include "confdefs.h"
+ − 4474 #include <stdio.h>
+ − 4475 main()
+ − 4476 {
+ − 4477 FILE *f=fopen("conftestval", "w");
+ − 4478 if (!f) exit(1);
+ − 4479 fprintf(f, "%d\n", sizeof(short));
+ − 4480 exit(0);
+ − 4481 }
+ − 4482 EOF
724
+ − 4483 if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
+ − 4484 then
+ − 4485 ac_cv_sizeof_short=`cat conftestval`
+ − 4486 else
373
+ − 4487 conftest_rc="$?"
151
+ − 4488 echo "configure: failed program was:" >&5
+ − 4489 cat conftest.$ac_ext >&5
+ − 4490 rm -fr conftest*
+ − 4491 ac_cv_sizeof_short=0
+ − 4492 fi
+ − 4493 rm -fr conftest*
+ − 4494 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
+ − 4495 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4496 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
+ − 4497 EOF
+ − 4498 cat >> confdefs.h <<EOF
+ − 4499 #define SIZEOF_SHORT $ac_cv_sizeof_short
+ − 4500 EOF
+ − 4501 }
+ − 4502
+ − 4503
163
+ − 4504 if test "$ac_cv_sizeof_short" = 0; then
+ − 4505 echo ""
+ − 4506 echo "*** PANIC *** Configure tests are not working - compiler is broken."
+ − 4507 echo "*** PANIC *** Please examine config.log for compilation errors."
+ − 4508 exit 1
+ − 4509 fi
151
+ − 4510 echo $ac_n "checking size of int""... $ac_c" 1>&6
724
+ − 4511 echo "configure:4512: checking size of int" >&5
+ − 4512
+ − 4513 cat > conftest.$ac_ext <<EOF
+ − 4514 #line 4515 "configure"
151
+ − 4515 #include "confdefs.h"
+ − 4516 #include <stdio.h>
+ − 4517 main()
+ − 4518 {
+ − 4519 FILE *f=fopen("conftestval", "w");
+ − 4520 if (!f) exit(1);
+ − 4521 fprintf(f, "%d\n", sizeof(int));
+ − 4522 exit(0);
+ − 4523 }
+ − 4524 EOF
726
+ − 4525 if { (eval echo configure:4526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
+ − 4526 then
+ − 4527 ac_cv_sizeof_int=`cat conftestval`
+ − 4528 else
373
+ − 4529 conftest_rc="$?"
151
+ − 4530 echo "configure: failed program was:" >&5
+ − 4531 cat conftest.$ac_ext >&5
+ − 4532 rm -fr conftest*
+ − 4533 ac_cv_sizeof_int=0
+ − 4534 fi
+ − 4535 rm -fr conftest*
+ − 4536 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
+ − 4537 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4538 Defining SIZEOF_INT = $ac_cv_sizeof_int
+ − 4539 EOF
+ − 4540 cat >> confdefs.h <<EOF
+ − 4541 #define SIZEOF_INT $ac_cv_sizeof_int
+ − 4542 EOF
+ − 4543 }
+ − 4544
+ − 4545
+ − 4546 echo $ac_n "checking size of long""... $ac_c" 1>&6
726
+ − 4547 echo "configure:4548: checking size of long" >&5
+ − 4548
+ − 4549 cat > conftest.$ac_ext <<EOF
+ − 4550 #line 4551 "configure"
151
+ − 4551 #include "confdefs.h"
+ − 4552 #include <stdio.h>
+ − 4553 main()
+ − 4554 {
+ − 4555 FILE *f=fopen("conftestval", "w");
+ − 4556 if (!f) exit(1);
+ − 4557 fprintf(f, "%d\n", sizeof(long));
+ − 4558 exit(0);
+ − 4559 }
+ − 4560 EOF
726
+ − 4561 if { (eval echo configure:4562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
+ − 4562 then
+ − 4563 ac_cv_sizeof_long=`cat conftestval`
+ − 4564 else
373
+ − 4565 conftest_rc="$?"
151
+ − 4566 echo "configure: failed program was:" >&5
+ − 4567 cat conftest.$ac_ext >&5
+ − 4568 rm -fr conftest*
+ − 4569 ac_cv_sizeof_long=0
+ − 4570 fi
+ − 4571 rm -fr conftest*
+ − 4572 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
+ − 4573 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4574 Defining SIZEOF_LONG = $ac_cv_sizeof_long
+ − 4575 EOF
+ − 4576 cat >> confdefs.h <<EOF
+ − 4577 #define SIZEOF_LONG $ac_cv_sizeof_long
+ − 4578 EOF
+ − 4579 }
+ − 4580
+ − 4581
163
+ − 4582 echo $ac_n "checking size of long long""... $ac_c" 1>&6
726
+ − 4583 echo "configure:4584: checking size of long long" >&5
+ − 4584
+ − 4585 cat > conftest.$ac_ext <<EOF
+ − 4586 #line 4587 "configure"
163
+ − 4587 #include "confdefs.h"
+ − 4588 #include <stdio.h>
+ − 4589 main()
+ − 4590 {
+ − 4591 FILE *f=fopen("conftestval", "w");
+ − 4592 if (!f) exit(1);
+ − 4593 fprintf(f, "%d\n", sizeof(long long));
+ − 4594 exit(0);
+ − 4595 }
+ − 4596 EOF
726
+ − 4597 if { (eval echo configure:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
+ − 4598 then
+ − 4599 ac_cv_sizeof_long_long=`cat conftestval`
+ − 4600 else
373
+ − 4601 conftest_rc="$?"
163
+ − 4602 echo "configure: failed program was:" >&5
+ − 4603 cat conftest.$ac_ext >&5
+ − 4604 rm -fr conftest*
+ − 4605 ac_cv_sizeof_long_long=0
+ − 4606 fi
+ − 4607 rm -fr conftest*
+ − 4608 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
+ − 4609 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4610 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
+ − 4611 EOF
+ − 4612 cat >> confdefs.h <<EOF
+ − 4613 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
+ − 4614 EOF
+ − 4615 }
+ − 4616
+ − 4617
+ − 4618 echo $ac_n "checking size of void *""... $ac_c" 1>&6
726
+ − 4619 echo "configure:4620: checking size of void *" >&5
+ − 4620
+ − 4621 cat > conftest.$ac_ext <<EOF
+ − 4622 #line 4623 "configure"
163
+ − 4623 #include "confdefs.h"
+ − 4624 #include <stdio.h>
+ − 4625 main()
+ − 4626 {
+ − 4627 FILE *f=fopen("conftestval", "w");
+ − 4628 if (!f) exit(1);
+ − 4629 fprintf(f, "%d\n", sizeof(void *));
+ − 4630 exit(0);
+ − 4631 }
+ − 4632 EOF
726
+ − 4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
+ − 4634 then
+ − 4635 ac_cv_sizeof_void_p=`cat conftestval`
+ − 4636 else
373
+ − 4637 conftest_rc="$?"
163
+ − 4638 echo "configure: failed program was:" >&5
+ − 4639 cat conftest.$ac_ext >&5
+ − 4640 rm -fr conftest*
+ − 4641 ac_cv_sizeof_void_p=0
+ − 4642 fi
+ − 4643 rm -fr conftest*
+ − 4644 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
+ − 4645 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4646 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
+ − 4647 EOF
+ − 4648 cat >> confdefs.h <<EOF
+ − 4649 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
+ − 4650 EOF
+ − 4651 }
+ − 4652
+ − 4653
151
+ − 4654
149
+ − 4655 echo $ac_n "checking for long file names""... $ac_c" 1>&6
726
+ − 4656 echo "configure:4657: checking for long file names" >&5
149
+ − 4657
+ − 4658 ac_cv_sys_long_file_names=yes
0
+ − 4659 # Test for long file names in all the places we know might matter:
+ − 4660 # . the current directory, where building will happen
149
+ − 4661 # $prefix/lib where we will be installing things
+ − 4662 # $exec_prefix/lib likewise
+ − 4663 # eval it to expand exec_prefix.
+ − 4664 # $TMPDIR if set, where it might want to write temporary files
+ − 4665 # if $TMPDIR is not set:
0
+ − 4666 # /tmp where it might want to write temporary files
+ − 4667 # /var/tmp likewise
+ − 4668 # /usr/tmp likewise
149
+ − 4669 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
+ − 4670 ac_tmpdirs="$TMPDIR"
+ − 4671 else
+ − 4672 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
+ − 4673 fi
+ − 4674 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
0
+ − 4675 test -d $ac_dir || continue
149
+ − 4676 test -w $ac_dir || continue # It is less confusing to not echo anything here.
0
+ − 4677 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
+ − 4678 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
+ − 4679 val=`cat $ac_dir/conftest9012345 2>/dev/null`
149
+ − 4680 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
+ − 4681 ac_cv_sys_long_file_names=no
+ − 4682 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
+ − 4683 break
0
+ − 4684 fi
149
+ − 4685 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
+ − 4686 done
+ − 4687
+ − 4688 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
+ − 4689 if test $ac_cv_sys_long_file_names = yes; then
+ − 4690 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4691 Defining HAVE_LONG_FILE_NAMES
+ − 4692 EOF
+ − 4693 cat >> confdefs.h <<\EOF
+ − 4694 #define HAVE_LONG_FILE_NAMES 1
+ − 4695 EOF
+ − 4696 }
+ − 4697
+ − 4698 fi
+ − 4699
+ − 4700
398
+ − 4701 echo $ac_n "checking for sin""... $ac_c" 1>&6
726
+ − 4702 echo "configure:4703: checking for sin" >&5
+ − 4703
+ − 4704 cat > conftest.$ac_ext <<EOF
+ − 4705 #line 4706 "configure"
398
+ − 4706 #include "confdefs.h"
+ − 4707 /* System header to define __stub macros and hopefully few prototypes,
+ − 4708 which can conflict with char sin(); below. */
+ − 4709 #include <assert.h>
+ − 4710 /* Override any gcc2 internal prototype to avoid an error. */
+ − 4711 /* We use char because int might match the return type of a gcc2
+ − 4712 builtin and then its argument prototype would still apply. */
+ − 4713 char sin();
+ − 4714
+ − 4715 int main() {
+ − 4716
+ − 4717 /* The GNU C library defines this for functions which it implements
+ − 4718 to always fail with ENOSYS. Some functions are actually named
+ − 4719 something starting with __ and the normal name is an alias. */
+ − 4720 #if defined (__stub_sin) || defined (__stub___sin)
+ − 4721 choke me
+ − 4722 #else
+ − 4723 sin();
+ − 4724 #endif
+ − 4725
+ − 4726 ; return 0; }
+ − 4727 EOF
726
+ − 4728 if { (eval echo configure:4729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
+ − 4729 rm -rf conftest*
+ − 4730 eval "ac_cv_func_sin=yes"
+ − 4731 else
+ − 4732 echo "configure: failed program was:" >&5
+ − 4733 cat conftest.$ac_ext >&5
+ − 4734 rm -rf conftest*
+ − 4735 eval "ac_cv_func_sin=no"
+ − 4736 fi
+ − 4737 rm -f conftest*
+ − 4738
+ − 4739 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
+ − 4740 echo "$ac_t""yes" 1>&6
+ − 4741 :
+ − 4742 else
+ − 4743 echo "$ac_t""no" 1>&6
149
+ − 4744
207
+ − 4745 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
726
+ − 4746 echo "configure:4747: checking for sin in -lm" >&5
207
+ − 4747 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
149
+ − 4748
+ − 4749 xe_check_libs=" -lm "
+ − 4750 cat > conftest.$ac_ext <<EOF
726
+ − 4751 #line 4752 "configure"
149
+ − 4752 #include "confdefs.h"
+ − 4753 /* Override any gcc2 internal prototype to avoid an error. */
+ − 4754 /* We use char because int might match the return type of a gcc2
+ − 4755 builtin and then its argument prototype would still apply. */
207
+ − 4756 char sin();
149
+ − 4757
+ − 4758 int main() {
207
+ − 4759 sin()
149
+ − 4760 ; return 0; }
+ − 4761 EOF
726
+ − 4762 if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 4763 rm -rf conftest*
+ − 4764 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 4765 else
+ − 4766 echo "configure: failed program was:" >&5
+ − 4767 cat conftest.$ac_ext >&5
+ − 4768 rm -rf conftest*
+ − 4769 eval "ac_cv_lib_$ac_lib_var=no"
+ − 4770 fi
+ − 4771 rm -f conftest*
+ − 4772 xe_check_libs=""
+ − 4773
151
+ − 4774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 4775 echo "$ac_t""yes" 1>&6
398
+ − 4776 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
149
+ − 4777 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 4778 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4779 Defining $ac_tr_lib
+ − 4780 EOF
+ − 4781 cat >> confdefs.h <<EOF
+ − 4782 #define $ac_tr_lib 1
+ − 4783 EOF
+ − 4784 }
+ − 4785
151
+ − 4786 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
+ − 4787
+ − 4788 else
+ − 4789 echo "$ac_t""no" 1>&6
+ − 4790 fi
+ − 4791
+ − 4792
398
+ − 4793 fi
+ − 4794
151
+ − 4795
+ − 4796 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4797 Defining LISP_FLOAT_TYPE
+ − 4798 EOF
+ − 4799 cat >> confdefs.h <<\EOF
+ − 4800 #define LISP_FLOAT_TYPE 1
+ − 4801 EOF
+ − 4802 }
149
+ − 4803
+ − 4804
243
+ − 4805 cat > conftest.$ac_ext <<EOF
726
+ − 4806 #line 4807 "configure"
243
+ − 4807 #include "confdefs.h"
+ − 4808 #include <math.h>
+ − 4809 int main() {
+ − 4810 return atanh(1.0) + asinh(1.0) + acosh(1.0);
+ − 4811 ; return 0; }
+ − 4812 EOF
726
+ − 4813 if { (eval echo configure:4814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
243
+ − 4814 rm -rf conftest*
+ − 4815 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4816 Defining HAVE_INVERSE_HYPERBOLIC
+ − 4817 EOF
+ − 4818 cat >> confdefs.h <<\EOF
+ − 4819 #define HAVE_INVERSE_HYPERBOLIC 1
+ − 4820 EOF
+ − 4821 }
+ − 4822
+ − 4823 else
+ − 4824 echo "configure: failed program was:" >&5
+ − 4825 cat conftest.$ac_ext >&5
+ − 4826 fi
+ − 4827 rm -f conftest*
+ − 4828
567
+ − 4829 for ac_func in mkstemp
438
+ − 4830 do
+ − 4831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
726
+ − 4832 echo "configure:4833: checking for $ac_func" >&5
+ − 4833
+ − 4834 cat > conftest.$ac_ext <<EOF
+ − 4835 #line 4836 "configure"
438
+ − 4836 #include "confdefs.h"
+ − 4837 /* System header to define __stub macros and hopefully few prototypes,
+ − 4838 which can conflict with char $ac_func(); below. */
+ − 4839 #include <assert.h>
+ − 4840 /* Override any gcc2 internal prototype to avoid an error. */
+ − 4841 /* We use char because int might match the return type of a gcc2
+ − 4842 builtin and then its argument prototype would still apply. */
+ − 4843 char $ac_func();
+ − 4844
+ − 4845 int main() {
+ − 4846
+ − 4847 /* The GNU C library defines this for functions which it implements
+ − 4848 to always fail with ENOSYS. Some functions are actually named
+ − 4849 something starting with __ and the normal name is an alias. */
+ − 4850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 4851 choke me
+ − 4852 #else
+ − 4853 $ac_func();
+ − 4854 #endif
+ − 4855
+ − 4856 ; return 0; }
+ − 4857 EOF
726
+ − 4858 if { (eval echo configure:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
567
+ − 4859 rm -rf conftest*
+ − 4860 eval "ac_cv_func_$ac_func=yes"
+ − 4861 else
+ − 4862 echo "configure: failed program was:" >&5
+ − 4863 cat conftest.$ac_ext >&5
+ − 4864 rm -rf conftest*
+ − 4865 eval "ac_cv_func_$ac_func=no"
+ − 4866 fi
+ − 4867 rm -f conftest*
+ − 4868
+ − 4869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 4870 echo "$ac_t""yes" 1>&6
+ − 4871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 4872 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4873 Defining $ac_tr_func
+ − 4874 EOF
+ − 4875 cat >> confdefs.h <<EOF
+ − 4876 #define $ac_tr_func 1
+ − 4877 EOF
+ − 4878 }
+ − 4879
+ − 4880 else
+ − 4881 echo "$ac_t""no" 1>&6
+ − 4882 fi
+ − 4883 done
+ − 4884
+ − 4885
+ − 4886 echo "checking type of mail spool file locking" 1>&6
726
+ − 4887 echo "configure:4888: checking type of mail spool file locking" >&5
567
+ − 4888 for ac_func in lockf flock
+ − 4889 do
+ − 4890 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
726
+ − 4891 echo "configure:4892: checking for $ac_func" >&5
+ − 4892
+ − 4893 cat > conftest.$ac_ext <<EOF
+ − 4894 #line 4895 "configure"
567
+ − 4895 #include "confdefs.h"
+ − 4896 /* System header to define __stub macros and hopefully few prototypes,
+ − 4897 which can conflict with char $ac_func(); below. */
+ − 4898 #include <assert.h>
+ − 4899 /* Override any gcc2 internal prototype to avoid an error. */
+ − 4900 /* We use char because int might match the return type of a gcc2
+ − 4901 builtin and then its argument prototype would still apply. */
+ − 4902 char $ac_func();
+ − 4903
+ − 4904 int main() {
+ − 4905
+ − 4906 /* The GNU C library defines this for functions which it implements
+ − 4907 to always fail with ENOSYS. Some functions are actually named
+ − 4908 something starting with __ and the normal name is an alias. */
+ − 4909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 4910 choke me
+ − 4911 #else
+ − 4912 $ac_func();
+ − 4913 #endif
+ − 4914
+ − 4915 ; return 0; }
+ − 4916 EOF
726
+ − 4917 if { (eval echo configure:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
438
+ − 4918 rm -rf conftest*
+ − 4919 eval "ac_cv_func_$ac_func=yes"
+ − 4920 else
+ − 4921 echo "configure: failed program was:" >&5
+ − 4922 cat conftest.$ac_ext >&5
+ − 4923 rm -rf conftest*
+ − 4924 eval "ac_cv_func_$ac_func=no"
+ − 4925 fi
+ − 4926 rm -f conftest*
+ − 4927
+ − 4928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 4929 echo "$ac_t""yes" 1>&6
+ − 4930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 4931 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4932 Defining $ac_tr_func
+ − 4933 EOF
+ − 4934 cat >> confdefs.h <<EOF
+ − 4935 #define $ac_tr_func 1
+ − 4936 EOF
+ − 4937 }
+ − 4938
+ − 4939 else
+ − 4940 echo "$ac_t""no" 1>&6
+ − 4941 fi
+ − 4942 done
+ − 4943
149
+ − 4944 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
+ − 4945 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
438
+ − 4946 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
442
+ − 4947 if test -z "$mail_locking"; then
+ − 4948 case "$opsys" in cygwin* | mingw*)
+ − 4949 mail_locking=pop ;;
+ − 4950 esac
+ − 4951 fi
+ − 4952
149
+ − 4953 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
438
+ − 4954 Defining MAIL_LOCK_LOCKF
+ − 4955 EOF
+ − 4956 cat >> confdefs.h <<\EOF
+ − 4957 #define MAIL_LOCK_LOCKF 1
149
+ − 4958 EOF
+ − 4959 }
+ − 4960
+ − 4961 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
438
+ − 4962 Defining MAIL_LOCK_FLOCK
+ − 4963 EOF
+ − 4964 cat >> confdefs.h <<\EOF
+ − 4965 #define MAIL_LOCK_FLOCK 1
+ − 4966 EOF
+ − 4967 }
+ − 4968
+ − 4969 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4970 Defining MAIL_LOCK_LOCKING
+ − 4971 EOF
+ − 4972 cat >> confdefs.h <<\EOF
+ − 4973 #define MAIL_LOCK_LOCKING 1
+ − 4974 EOF
+ − 4975 }
+ − 4976
442
+ − 4977 elif test "$mail_locking" = "pop"; then
+ − 4978 with_pop=yes
+ − 4979 mail_locking=
438
+ − 4980 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4981 Defining MAIL_LOCK_DOT
+ − 4982 EOF
+ − 4983 cat >> confdefs.h <<\EOF
+ − 4984 #define MAIL_LOCK_DOT 1
+ − 4985 EOF
+ − 4986 }
+ − 4987
+ − 4988 fi
+ − 4989 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
+ − 4990 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
+ − 4991 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
+ − 4992 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
+ − 4993 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
+ − 4994 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
151
+ − 4995
278
+ − 4996 case "$opsys" in decosf*)
+ − 4997
151
+ − 4998 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
726
+ − 4999 echo "configure:5000: checking for cma_open in -lpthreads" >&5
151
+ − 5000 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
+ − 5001
+ − 5002 xe_check_libs=" -lpthreads "
+ − 5003 cat > conftest.$ac_ext <<EOF
726
+ − 5004 #line 5005 "configure"
151
+ − 5005 #include "confdefs.h"
+ − 5006 /* Override any gcc2 internal prototype to avoid an error. */
+ − 5007 /* We use char because int might match the return type of a gcc2
+ − 5008 builtin and then its argument prototype would still apply. */
+ − 5009 char cma_open();
+ − 5010
+ − 5011 int main() {
+ − 5012 cma_open()
+ − 5013 ; return 0; }
+ − 5014 EOF
726
+ − 5015 if { (eval echo configure:5016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
+ − 5016 rm -rf conftest*
+ − 5017 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5018 else
+ − 5019 echo "configure: failed program was:" >&5
+ − 5020 cat conftest.$ac_ext >&5
+ − 5021 rm -rf conftest*
+ − 5022 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5023 fi
+ − 5024 rm -f conftest*
+ − 5025 xe_check_libs=""
+ − 5026
+ − 5027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5028 echo "$ac_t""yes" 1>&6
+ − 5029 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 5030 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 5031 { test "$extra_verbose" = "yes" && cat << EOF
+ − 5032 Defining $ac_tr_lib
+ − 5033 EOF
+ − 5034 cat >> confdefs.h <<EOF
+ − 5035 #define $ac_tr_lib 1
+ − 5036 EOF
+ − 5037 }
+ − 5038
+ − 5039 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
+ − 5040
+ − 5041 else
+ − 5042 echo "$ac_t""no" 1>&6
+ − 5043 fi
+ − 5044
+ − 5045
278
+ − 5046 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
+ − 5047 c_switch_site="$c_switch_site -threads" ;;
+ − 5048 esac
151
+ − 5049
708
+ − 5050
151
+ − 5051 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
726
+ − 5052 echo "configure:5053: checking whether the -xildoff compiler flag is required" >&5
151
+ − 5053 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
+ − 5054 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
+ − 5055 then echo "$ac_t""no" 1>&6;
+ − 5056 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
+ − 5057 fi
+ − 5058 else echo "$ac_t""no" 1>&6
+ − 5059 fi
+ − 5060
442
+ − 5061 if test "$opsys" = "sol2"; then
+ − 5062 if test "$os_release" -ge 56; then
+ − 5063 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
726
+ − 5064 echo "configure:5065: checking for \"-z ignore\" linker flag" >&5
442
+ − 5065 case "`ld -h 2>&1`" in
+ − 5066 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
+ − 5067 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
+ − 5068 *) echo "$ac_t""no" 1>&6 ;;
+ − 5069 esac
+ − 5070 fi
163
+ − 5071 fi
155
+ − 5072
708
+ − 5073 if test "$pdump" != "yes"; then
+ − 5074 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
726
+ − 5075 echo "configure:5076: checking for \"-z nocombreloc\" linker flag" >&5
708
+ − 5076 case "`ld --help 2>&1`" in
+ − 5077 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
+ − 5078 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
+ − 5079 *) echo "$ac_t""no" 1>&6 ;;
+ − 5080 esac
+ − 5081 fi
+ − 5082
149
+ − 5083
+ − 5084 echo "checking "for specified window system"" 1>&6
726
+ − 5085 echo "configure:5086: checking "for specified window system"" >&5
462
+ − 5086
+ − 5087
+ − 5088 GNOME_CONFIG=no
+ − 5089 GTK_CONFIG=no
+ − 5090
+ − 5091 if test "$with_gnome" != "no"; then
+ − 5092 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
726
+ − 5093 echo "configure:5094: checking for GNOME configuration script" >&5
462
+ − 5094 for possible in gnome-config
+ − 5095 do
+ − 5096 possible_version=`${possible} --version 2> /dev/null`
+ − 5097 if test "x${possible_version}" != "x"; then
+ − 5098 GNOME_CONFIG="${possible}"
+ − 5099 with_gnome=yes
+ − 5100 with_gtk=yes
+ − 5101 break
+ − 5102 fi
+ − 5103 done
+ − 5104 echo "$ac_t""${GNOME_CONFIG}" 1>&6
+ − 5105 fi
+ − 5106
+ − 5107 if test "${GNOME_CONFIG}" != "no"; then
+ − 5108 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
+ − 5109 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
+ − 5110 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 5111 Defining HAVE_GNOME
+ − 5112 EOF
+ − 5113 cat >> confdefs.h <<\EOF
+ − 5114 #define HAVE_GNOME 1
+ − 5115 EOF
+ − 5116 }
+ − 5117
+ − 5118 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
+ − 5119 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
+ − 5120 fi
+ − 5121
+ − 5122 if test "$with_gtk" != "no";then
+ − 5123 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
726
+ − 5124 echo "configure:5125: checking for GTK configuration script" >&5
462
+ − 5125 for possible in gtk12-config gtk14-config gtk-config
+ − 5126 do
+ − 5127 possible_version=`${possible} --version 2> /dev/null`
+ − 5128 if test "x${possible_version}" != "x"; then
+ − 5129 GTK_CONFIG="${possible}"
527
+ − 5130 case "${possible_version}" in
+ − 5131 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
+ − 5132 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
+ − 5133 1.2.*)
+ − 5134 with_gtk=yes
+ − 5135 break
+ − 5136 ;;
+ − 5137 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
+ − 5138 esac
462
+ − 5139 fi
+ − 5140 done
+ − 5141 echo "$ac_t""${GTK_CONFIG}" 1>&6
+ − 5142 fi
+ − 5143
+ − 5144 if test "${GTK_CONFIG}" != "no"; then
+ − 5145 echo $ac_n "checking gtk version""... $ac_c" 1>&6
726
+ − 5146 echo "configure:5147: checking gtk version" >&5
462
+ − 5147 GTK_VERSION=`${GTK_CONFIG} --version`
+ − 5148 echo "$ac_t""${GTK_VERSION}" 1>&6
+ − 5149
+ − 5150 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
726
+ − 5151 echo "configure:5152: checking gtk libs" >&5
462
+ − 5152 GTK_LIBS=`${GTK_CONFIG} --libs`
+ − 5153 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
+ − 5154 echo "$ac_t""${GTK_LIBS}" 1>&6
+ − 5155
+ − 5156 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
726
+ − 5157 echo "configure:5158: checking gtk cflags" >&5
462
+ − 5158 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
720
+ − 5159 if test "$GCC" = "yes"; then
+ − 5160 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
+ − 5161 fi
462
+ − 5162 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
+ − 5163 echo "$ac_t""${GTK_CFLAGS}" 1>&6
+ − 5164
+ − 5165
+ − 5166 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
726
+ − 5167 echo "configure:5168: checking for main in -lgdk_imlib" >&5
462
+ − 5168 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
+ − 5169
+ − 5170 xe_check_libs=" -lgdk_imlib "
+ − 5171 cat > conftest.$ac_ext <<EOF
726
+ − 5172 #line 5173 "configure"
462
+ − 5173 #include "confdefs.h"
+ − 5174
+ − 5175 int main() {
+ − 5176 main()
+ − 5177 ; return 0; }
+ − 5178 EOF
726
+ − 5179 if { (eval echo configure:5180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5180 rm -rf conftest*
+ − 5181 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5182 else
+ − 5183 echo "configure: failed program was:" >&5
+ − 5184 cat conftest.$ac_ext >&5
+ − 5185 rm -rf conftest*
+ − 5186 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5187 fi
+ − 5188 rm -f conftest*
+ − 5189 xe_check_libs=""
+ − 5190
+ − 5191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5192 echo "$ac_t""yes" 1>&6
+ − 5193 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
+ − 5194 else
+ − 5195 echo "$ac_t""no" 1>&6
+ − 5196 fi
+ − 5197
+ − 5198
+ − 5199
+ − 5200 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
726
+ − 5201 echo "configure:5202: checking for Imlib_init in -lImlib" >&5
462
+ − 5202 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
+ − 5203
+ − 5204 xe_check_libs=" -lImlib "
+ − 5205 cat > conftest.$ac_ext <<EOF
726
+ − 5206 #line 5207 "configure"
462
+ − 5207 #include "confdefs.h"
+ − 5208 /* Override any gcc2 internal prototype to avoid an error. */
+ − 5209 /* We use char because int might match the return type of a gcc2
+ − 5210 builtin and then its argument prototype would still apply. */
+ − 5211 char Imlib_init();
+ − 5212
+ − 5213 int main() {
+ − 5214 Imlib_init()
+ − 5215 ; return 0; }
+ − 5216 EOF
726
+ − 5217 if { (eval echo configure:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5218 rm -rf conftest*
+ − 5219 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5220 else
+ − 5221 echo "configure: failed program was:" >&5
+ − 5222 cat conftest.$ac_ext >&5
+ − 5223 rm -rf conftest*
+ − 5224 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5225 fi
+ − 5226 rm -f conftest*
+ − 5227 xe_check_libs=""
+ − 5228
+ − 5229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5230 echo "$ac_t""yes" 1>&6
+ − 5231 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
+ − 5232 else
+ − 5233 echo "$ac_t""no" 1>&6
+ − 5234 fi
+ − 5235
+ − 5236
+ − 5237 for ac_func in gdk_imlib_init
+ − 5238 do
+ − 5239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
726
+ − 5240 echo "configure:5241: checking for $ac_func" >&5
+ − 5241
+ − 5242 cat > conftest.$ac_ext <<EOF
+ − 5243 #line 5244 "configure"
462
+ − 5244 #include "confdefs.h"
+ − 5245 /* System header to define __stub macros and hopefully few prototypes,
+ − 5246 which can conflict with char $ac_func(); below. */
+ − 5247 #include <assert.h>
+ − 5248 /* Override any gcc2 internal prototype to avoid an error. */
+ − 5249 /* We use char because int might match the return type of a gcc2
+ − 5250 builtin and then its argument prototype would still apply. */
+ − 5251 char $ac_func();
+ − 5252
+ − 5253 int main() {
+ − 5254
+ − 5255 /* The GNU C library defines this for functions which it implements
+ − 5256 to always fail with ENOSYS. Some functions are actually named
+ − 5257 something starting with __ and the normal name is an alias. */
+ − 5258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 5259 choke me
+ − 5260 #else
+ − 5261 $ac_func();
+ − 5262 #endif
+ − 5263
+ − 5264 ; return 0; }
+ − 5265 EOF
726
+ − 5266 if { (eval echo configure:5267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5267 rm -rf conftest*
+ − 5268 eval "ac_cv_func_$ac_func=yes"
+ − 5269 else
+ − 5270 echo "configure: failed program was:" >&5
+ − 5271 cat conftest.$ac_ext >&5
+ − 5272 rm -rf conftest*
+ − 5273 eval "ac_cv_func_$ac_func=no"
+ − 5274 fi
+ − 5275 rm -f conftest*
+ − 5276
+ − 5277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 5278 echo "$ac_t""yes" 1>&6
+ − 5279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 5280 { test "$extra_verbose" = "yes" && cat << EOF
+ − 5281 Defining $ac_tr_func
+ − 5282 EOF
+ − 5283 cat >> confdefs.h <<EOF
+ − 5284 #define $ac_tr_func 1
+ − 5285 EOF
+ − 5286 }
+ − 5287
+ − 5288 else
+ − 5289 echo "$ac_t""no" 1>&6
+ − 5290 fi
+ − 5291 done
+ − 5292
+ − 5293
+ − 5294 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 5295 Defining HAVE_XPM
+ − 5296 EOF
+ − 5297 cat >> confdefs.h <<\EOF
+ − 5298 #define HAVE_XPM 1
+ − 5299 EOF
+ − 5300 }
+ − 5301
+ − 5302 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 5303 Defining HAVE_GTK
+ − 5304 EOF
+ − 5305 cat >> confdefs.h <<\EOF
+ − 5306 #define HAVE_GTK 1
+ − 5307 EOF
+ − 5308 }
+ − 5309
+ − 5310
+ − 5311
+ − 5312 window_system=gtk
+ − 5313 with_gtk=yes
+ − 5314 with_x11=no
+ − 5315
+ − 5316 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
+ − 5317 test "${with_toolbars}" != no && with_toolbars=gtk
+ − 5318 test "${with_menubars}" != "no" && with_menubars=gtk
+ − 5319 test "${with_dialogs}" != "no" && with_dialogs=gtk
+ − 5320 test "${with_widgets}" != "no" && with_widgets=gtk
+ − 5321
+ − 5322 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 5323 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
+ − 5324 fi
+ − 5325 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 5326 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
+ − 5327 fi
+ − 5328 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 5329 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
+ − 5330 fi
+ − 5331 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 5332 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
+ − 5333 fi
+ − 5334
+ − 5335 OLD_CFLAGS="${CFLAGS}"
724
+ − 5336 OLD_CPPFLAGS="${CPPFLAGS}"
462
+ − 5337 OLD_LDFLAGS="${LDFLAGS}"
+ − 5338 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
724
+ − 5339 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
462
+ − 5340 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
+ − 5341 for ac_hdr in glade/glade.h glade.h
+ − 5342 do
+ − 5343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 5344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
726
+ − 5345 echo "configure:5346: checking for $ac_hdr" >&5
+ − 5346
+ − 5347 cat > conftest.$ac_ext <<EOF
+ − 5348 #line 5349 "configure"
462
+ − 5349 #include "confdefs.h"
+ − 5350 #include <$ac_hdr>
+ − 5351 EOF
+ − 5352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 5353 { (eval echo configure:5354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
462
+ − 5354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 5355 if test -z "$ac_err"; then
+ − 5356 rm -rf conftest*
+ − 5357 eval "ac_cv_header_$ac_safe=yes"
+ − 5358 else
+ − 5359 echo "$ac_err" >&5
+ − 5360 echo "configure: failed program was:" >&5
+ − 5361 cat conftest.$ac_ext >&5
+ − 5362 rm -rf conftest*
+ − 5363 eval "ac_cv_header_$ac_safe=no"
+ − 5364 fi
+ − 5365 rm -f conftest*
+ − 5366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 5367 echo "$ac_t""yes" 1>&6
+ − 5368 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 5369 { test "$extra_verbose" = "yes" && cat << EOF
+ − 5370 Defining $ac_tr_hdr
+ − 5371 EOF
+ − 5372 cat >> confdefs.h <<EOF
+ − 5373 #define $ac_tr_hdr 1
+ − 5374 EOF
+ − 5375 }
+ − 5376
+ − 5377 else
+ − 5378 echo "$ac_t""no" 1>&6
+ − 5379 fi
+ − 5380 done
+ − 5381
+ − 5382
+ − 5383 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
726
+ − 5384 echo "configure:5385: checking for main in -lxml" >&5
462
+ − 5385 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
+ − 5386
+ − 5387 xe_check_libs=" -lxml "
+ − 5388 cat > conftest.$ac_ext <<EOF
726
+ − 5389 #line 5390 "configure"
462
+ − 5390 #include "confdefs.h"
+ − 5391
+ − 5392 int main() {
+ − 5393 main()
+ − 5394 ; return 0; }
+ − 5395 EOF
726
+ − 5396 if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5397 rm -rf conftest*
+ − 5398 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5399 else
+ − 5400 echo "configure: failed program was:" >&5
+ − 5401 cat conftest.$ac_ext >&5
+ − 5402 rm -rf conftest*
+ − 5403 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5404 fi
+ − 5405 rm -f conftest*
+ − 5406 xe_check_libs=""
+ − 5407
+ − 5408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5409 echo "$ac_t""yes" 1>&6
+ − 5410 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
+ − 5411 else
+ − 5412 echo "$ac_t""no" 1>&6
+ − 5413 fi
+ − 5414
+ − 5415
+ − 5416
+ − 5417 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
726
+ − 5418 echo "configure:5419: checking for main in -lglade" >&5
462
+ − 5419 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
+ − 5420
+ − 5421 xe_check_libs=" -lglade "
+ − 5422 cat > conftest.$ac_ext <<EOF
726
+ − 5423 #line 5424 "configure"
462
+ − 5424 #include "confdefs.h"
+ − 5425
+ − 5426 int main() {
+ − 5427 main()
+ − 5428 ; return 0; }
+ − 5429 EOF
726
+ − 5430 if { (eval echo configure:5431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5431 rm -rf conftest*
+ − 5432 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5433 else
+ − 5434 echo "configure: failed program was:" >&5
+ − 5435 cat conftest.$ac_ext >&5
+ − 5436 rm -rf conftest*
+ − 5437 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5438 fi
+ − 5439 rm -f conftest*
+ − 5440 xe_check_libs=""
+ − 5441
+ − 5442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5443 echo "$ac_t""yes" 1>&6
+ − 5444 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
+ − 5445 else
+ − 5446 echo "$ac_t""no" 1>&6
+ − 5447 fi
+ − 5448
+ − 5449
+ − 5450
+ − 5451 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
726
+ − 5452 echo "configure:5453: checking for main in -lglade-gnome" >&5
462
+ − 5453 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
+ − 5454
+ − 5455 xe_check_libs=" -lglade-gnome "
+ − 5456 cat > conftest.$ac_ext <<EOF
726
+ − 5457 #line 5458 "configure"
462
+ − 5458 #include "confdefs.h"
+ − 5459
+ − 5460 int main() {
+ − 5461 main()
+ − 5462 ; return 0; }
+ − 5463 EOF
726
+ − 5464 if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5465 rm -rf conftest*
+ − 5466 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5467 else
+ − 5468 echo "configure: failed program was:" >&5
+ − 5469 cat conftest.$ac_ext >&5
+ − 5470 rm -rf conftest*
+ − 5471 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5472 fi
+ − 5473 rm -f conftest*
+ − 5474 xe_check_libs=""
+ − 5475
+ − 5476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5477 echo "$ac_t""yes" 1>&6
+ − 5478 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
+ − 5479 else
+ − 5480 echo "$ac_t""no" 1>&6
+ − 5481 fi
+ − 5482
+ − 5483
+ − 5484 cat > conftest.$ac_ext <<EOF
726
+ − 5485 #line 5486 "configure"
462
+ − 5486 #include "confdefs.h"
+ − 5487 #include <glade/glade-xml.h>
+ − 5488 EOF
+ − 5489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 5490 egrep "char \*txtdomain;" >/dev/null 2>&1; then
+ − 5491 rm -rf conftest*
+ − 5492 echo "$ac_t""yes" 1>&6
+ − 5493 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 5494 Defining LIBGLADE_XML_TXTDOMAIN = 1
+ − 5495 EOF
+ − 5496 cat >> confdefs.h <<\EOF
+ − 5497 #define LIBGLADE_XML_TXTDOMAIN 1
+ − 5498 EOF
+ − 5499 }
+ − 5500
+ − 5501 else
+ − 5502 rm -rf conftest*
+ − 5503 echo "$ac_t""no" 1>&6
+ − 5504 fi
+ − 5505 rm -f conftest*
+ − 5506
+ − 5507 CFLAGS="${OLD_CFLAGS}"
724
+ − 5508 CPPFLAGS="${OLD_CPPFLAGS}"
462
+ − 5509 LDFLAGS="${OLD_LDFLAGS}"
+ − 5510 fi
+ − 5511
149
+ − 5512
187
+ − 5513 if test "$with_x11" != "no"; then
+ − 5514 test "$x_includes $x_libraries" != "NONE NONE" && \
+ − 5515 window_system=x11 with_x11=yes
+ − 5516
272
+ − 5517
+ − 5518 if test "$x_includes $x_libraries" = "NONE NONE" \
+ − 5519 -a -n "$OPENWINHOME" \
+ − 5520 -a "$OPENWINHOME" != "/usr/openwin" \
+ − 5521 -a -d "$OPENWINHOME"; then
187
+ − 5522 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
+ − 5523 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
+ − 5524 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
272
+ − 5525 fi
+ − 5526
+ − 5527 if test "$x_includes" = "NONE"; then
+ − 5528 for dir in "/usr/X11" "/usr/X11R6"; do
+ − 5529 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
+ − 5530 done
+ − 5531 fi
+ − 5532
+ − 5533 if test "$x_libraries" = "NONE"; then
+ − 5534 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
+ − 5535 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
+ − 5536 done
149
+ − 5537 fi
187
+ − 5538
149
+ − 5539 # If we find X, set shell vars x_includes and x_libraries to the
+ − 5540 # paths, otherwise set no_x=yes.
+ − 5541 # Uses ac_ vars as temps to allow command line to override cache and checks.
+ − 5542 # --without-x overrides everything else, but does not touch the cache.
+ − 5543 echo $ac_n "checking for X""... $ac_c" 1>&6
726
+ − 5544 echo "configure:5545: checking for X" >&5
149
+ − 5545
+ − 5546 # Check whether --with-x or --without-x was given.
+ − 5547 if test "${with_x+set}" = set; then
+ − 5548 withval="$with_x"
+ − 5549 :
+ − 5550 fi
+ − 5551
+ − 5552 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
+ − 5553 if test "x$with_x" = xno; then
+ − 5554 # The user explicitly disabled X.
+ − 5555 have_x=disabled
+ − 5556 else
+ − 5557 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
+ − 5558 # Both variables are already set.
+ − 5559 have_x=yes
+ − 5560 else
+ − 5561
+ − 5562 # One or both of the vars are not set, and there is no cached value.
+ − 5563 ac_x_includes=NO ac_x_libraries=NO
0
+ − 5564 rm -fr conftestdir
+ − 5565 if mkdir conftestdir; then
+ − 5566 cd conftestdir
+ − 5567 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
+ − 5568 cat > Imakefile <<'EOF'
+ − 5569 acfindx:
+ − 5570 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
+ − 5571 EOF
+ − 5572 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
+ − 5573 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
149
+ − 5574 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
0
+ − 5575 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
149
+ − 5576 for ac_extension in a so sl; do
+ − 5577 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
+ − 5578 test -f $ac_im_libdir/libX11.$ac_extension; then
+ − 5579 ac_im_usrlibdir=$ac_im_libdir; break
+ − 5580 fi
+ − 5581 done
+ − 5582 # Screen out bogus values from the imake configuration. They are
+ − 5583 # bogus both because they are the default anyway, and because
+ − 5584 # using them would break gcc on systems where it needs fixed includes.
0
+ − 5585 case "$ac_im_incroot" in
+ − 5586 /usr/include) ;;
149
+ − 5587 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
0
+ − 5588 esac
+ − 5589 case "$ac_im_usrlibdir" in
+ − 5590 /usr/lib | /lib) ;;
149
+ − 5591 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
0
+ − 5592 esac
+ − 5593 fi
+ − 5594 cd ..
+ − 5595 rm -fr conftestdir
+ − 5596 fi
+ − 5597
149
+ − 5598 if test "$ac_x_includes" = NO; then
+ − 5599 # Guess where to find include files, by looking for this one X11 .h file.
+ − 5600 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
+ − 5601
+ − 5602 # First, try using that file with no special directory specified.
+ − 5603 cat > conftest.$ac_ext <<EOF
726
+ − 5604 #line 5605 "configure"
0
+ − 5605 #include "confdefs.h"
+ − 5606 #include <$x_direct_test_include>
+ − 5607 EOF
149
+ − 5608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 5609 { (eval echo configure:5610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 5610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 5611 if test -z "$ac_err"; then
+ − 5612 rm -rf conftest*
149
+ − 5613 # We can compile using X headers with no special include directory.
+ − 5614 ac_x_includes=
+ − 5615 else
+ − 5616 echo "$ac_err" >&5
+ − 5617 echo "configure: failed program was:" >&5
+ − 5618 cat conftest.$ac_ext >&5
+ − 5619 rm -rf conftest*
+ − 5620 # Look for the header file in a standard set of common directories.
+ − 5621 # Check X11 before X11Rn because it is often a symlink to the current release.
0
+ − 5622 for ac_dir in \
149
+ − 5623 /usr/X11/include \
0
+ − 5624 /usr/X11R6/include \
+ − 5625 /usr/X11R5/include \
+ − 5626 /usr/X11R4/include \
+ − 5627 \
149
+ − 5628 /usr/include/X11 \
0
+ − 5629 /usr/include/X11R6 \
+ − 5630 /usr/include/X11R5 \
+ − 5631 /usr/include/X11R4 \
+ − 5632 \
149
+ − 5633 /usr/local/X11/include \
0
+ − 5634 /usr/local/X11R6/include \
+ − 5635 /usr/local/X11R5/include \
+ − 5636 /usr/local/X11R4/include \
+ − 5637 \
149
+ − 5638 /usr/local/include/X11 \
0
+ − 5639 /usr/local/include/X11R6 \
+ − 5640 /usr/local/include/X11R5 \
+ − 5641 /usr/local/include/X11R4 \
+ − 5642 \
+ − 5643 /usr/X386/include \
+ − 5644 /usr/x386/include \
+ − 5645 /usr/XFree86/include/X11 \
+ − 5646 \
+ − 5647 /usr/include \
+ − 5648 /usr/local/include \
+ − 5649 /usr/unsupported/include \
+ − 5650 /usr/athena/include \
+ − 5651 /usr/local/x11r5/include \
+ − 5652 /usr/lpp/Xamples/include \
+ − 5653 \
+ − 5654 /usr/openwin/include \
+ − 5655 /usr/openwin/share/include \
+ − 5656 ; \
+ − 5657 do
+ − 5658 if test -r "$ac_dir/$x_direct_test_include"; then
149
+ − 5659 ac_x_includes=$ac_dir
0
+ − 5660 break
+ − 5661 fi
+ − 5662 done
+ − 5663 fi
+ − 5664 rm -f conftest*
149
+ − 5665 fi # $ac_x_includes = NO
+ − 5666
+ − 5667 if test "$ac_x_libraries" = NO; then
+ − 5668 # Check for the libraries.
+ − 5669
+ − 5670 test -z "$x_direct_test_library" && x_direct_test_library=Xt
+ − 5671 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
+ − 5672
+ − 5673 # See if we find them without any special options.
+ − 5674 # Don't add to $LIBS permanently.
+ − 5675 ac_save_LIBS="$LIBS"
+ − 5676 LIBS="-l$x_direct_test_library $LIBS"
+ − 5677 cat > conftest.$ac_ext <<EOF
726
+ − 5678 #line 5679 "configure"
149
+ − 5679 #include "confdefs.h"
+ − 5680
+ − 5681 int main() {
+ − 5682 ${x_direct_test_function}()
+ − 5683 ; return 0; }
+ − 5684 EOF
726
+ − 5685 if { (eval echo configure:5686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 5686 rm -rf conftest*
+ − 5687 LIBS="$ac_save_LIBS"
+ − 5688 # We can link X programs with no special library path.
+ − 5689 ac_x_libraries=
+ − 5690 else
+ − 5691 echo "configure: failed program was:" >&5
+ − 5692 cat conftest.$ac_ext >&5
+ − 5693 rm -rf conftest*
+ − 5694 LIBS="$ac_save_LIBS"
+ − 5695 # First see if replacing the include by lib works.
+ − 5696 # Check X11 before X11Rn because it is often a symlink to the current release.
+ − 5697 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
+ − 5698 /usr/X11/lib \
0
+ − 5699 /usr/X11R6/lib \
+ − 5700 /usr/X11R5/lib \
+ − 5701 /usr/X11R4/lib \
+ − 5702 \
149
+ − 5703 /usr/lib/X11 \
0
+ − 5704 /usr/lib/X11R6 \
+ − 5705 /usr/lib/X11R5 \
+ − 5706 /usr/lib/X11R4 \
+ − 5707 \
149
+ − 5708 /usr/local/X11/lib \
0
+ − 5709 /usr/local/X11R6/lib \
+ − 5710 /usr/local/X11R5/lib \
+ − 5711 /usr/local/X11R4/lib \
+ − 5712 \
149
+ − 5713 /usr/local/lib/X11 \
0
+ − 5714 /usr/local/lib/X11R6 \
+ − 5715 /usr/local/lib/X11R5 \
+ − 5716 /usr/local/lib/X11R4 \
+ − 5717 \
+ − 5718 /usr/X386/lib \
+ − 5719 /usr/x386/lib \
+ − 5720 /usr/XFree86/lib/X11 \
+ − 5721 \
+ − 5722 /usr/lib \
+ − 5723 /usr/local/lib \
+ − 5724 /usr/unsupported/lib \
+ − 5725 /usr/athena/lib \
+ − 5726 /usr/local/x11r5/lib \
+ − 5727 /usr/lpp/Xamples/lib \
149
+ − 5728 /lib/usr/lib/X11 \
0
+ − 5729 \
+ − 5730 /usr/openwin/lib \
+ − 5731 /usr/openwin/share/lib \
+ − 5732 ; \
+ − 5733 do
+ − 5734 for ac_extension in a so sl; do
+ − 5735 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
149
+ − 5736 ac_x_libraries=$ac_dir
0
+ − 5737 break 2
+ − 5738 fi
+ − 5739 done
+ − 5740 done
+ − 5741 fi
149
+ − 5742 rm -f conftest*
+ − 5743 fi # $ac_x_libraries = NO
+ − 5744
+ − 5745 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
+ − 5746 # Didn't find X anywhere. Cache the known absence of X.
+ − 5747 ac_cv_have_x="have_x=no"
+ − 5748 else
+ − 5749 # Record where we found X for the cache.
+ − 5750 ac_cv_have_x="have_x=yes \
+ − 5751 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
+ − 5752 fi
+ − 5753 fi
+ − 5754 eval "$ac_cv_have_x"
+ − 5755 fi # $with_x != no
+ − 5756
+ − 5757 if test "$have_x" != yes; then
+ − 5758 echo "$ac_t""$have_x" 1>&6
+ − 5759 no_x=yes
+ − 5760 else
+ − 5761 # If each of the values was on the command line, it overrides each guess.
+ − 5762 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
+ − 5763 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
+ − 5764 # Update the cache value to reflect the command line values.
+ − 5765 ac_cv_have_x="have_x=yes \
+ − 5766 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
+ − 5767 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
+ − 5768 fi
+ − 5769
+ − 5770 if test "$no_x" = yes; then
+ − 5771 # Not all programs may use this symbol, but it does not hurt to define it.
+ − 5772 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 5773 Defining X_DISPLAY_MISSING
+ − 5774 EOF
+ − 5775 cat >> confdefs.h <<\EOF
+ − 5776 #define X_DISPLAY_MISSING 1
+ − 5777 EOF
+ − 5778 }
+ − 5779
+ − 5780 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
+ − 5781 else
+ − 5782 if test -n "$x_includes"; then
+ − 5783 X_CFLAGS="$X_CFLAGS -I$x_includes"
+ − 5784 fi
+ − 5785
+ − 5786 # It would also be nice to do this for all -L options, not just this one.
+ − 5787 if test -n "$x_libraries"; then
+ − 5788 X_LIBS="$X_LIBS -L$x_libraries"
+ − 5789 # For Solaris; some versions of Sun CC require a space after -R and
+ − 5790 # others require no space. Words are not sufficient . . . .
+ − 5791 case "`(uname -sr) 2>/dev/null`" in
+ − 5792 "SunOS 5"*)
+ − 5793 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
726
+ − 5794 echo "configure:5795: checking whether -R must be followed by a space" >&5
149
+ − 5795 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
+ − 5796 cat > conftest.$ac_ext <<EOF
726
+ − 5797 #line 5798 "configure"
+ − 5798 #include "confdefs.h"
+ − 5799
+ − 5800 int main() {
+ − 5801
+ − 5802 ; return 0; }
+ − 5803 EOF
+ − 5804 if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 5805 rm -rf conftest*
+ − 5806 ac_R_nospace=yes
+ − 5807 else
+ − 5808 echo "configure: failed program was:" >&5
+ − 5809 cat conftest.$ac_ext >&5
+ − 5810 rm -rf conftest*
+ − 5811 ac_R_nospace=no
+ − 5812 fi
+ − 5813 rm -f conftest*
+ − 5814 if test $ac_R_nospace = yes; then
+ − 5815 echo "$ac_t""no" 1>&6
+ − 5816 X_LIBS="$X_LIBS -R$x_libraries"
+ − 5817 else
+ − 5818 LIBS="$ac_xsave_LIBS -R $x_libraries"
+ − 5819 cat > conftest.$ac_ext <<EOF
726
+ − 5820 #line 5821 "configure"
+ − 5821 #include "confdefs.h"
+ − 5822
+ − 5823 int main() {
+ − 5824
+ − 5825 ; return 0; }
+ − 5826 EOF
+ − 5827 if { (eval echo configure:5828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 5828 rm -rf conftest*
+ − 5829 ac_R_space=yes
+ − 5830 else
+ − 5831 echo "configure: failed program was:" >&5
+ − 5832 cat conftest.$ac_ext >&5
+ − 5833 rm -rf conftest*
+ − 5834 ac_R_space=no
+ − 5835 fi
+ − 5836 rm -f conftest*
+ − 5837 if test $ac_R_space = yes; then
+ − 5838 echo "$ac_t""yes" 1>&6
+ − 5839 X_LIBS="$X_LIBS -R $x_libraries"
+ − 5840 else
+ − 5841 echo "$ac_t""neither works" 1>&6
+ − 5842 fi
+ − 5843 fi
+ − 5844 LIBS="$ac_xsave_LIBS"
+ − 5845 esac
+ − 5846 fi
+ − 5847
+ − 5848 # Check for system-dependent libraries X programs must link with.
+ − 5849 # Do this before checking for the system-independent R6 libraries
+ − 5850 # (-lICE), since we may need -lsocket or whatever for X linking.
+ − 5851
+ − 5852 if test "$ISC" = yes; then
+ − 5853 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
+ − 5854 else
+ − 5855 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
+ − 5856 # libraries were built with DECnet support. And karl@cs.umb.edu says
+ − 5857 # the Alpha needs dnet_stub (dnet does not exist).
151
+ − 5858 if test "$with_dnet" = "no" ; then
149
+ − 5859 ac_cv_lib_dnet_dnet_ntoa=no
+ − 5860 else
+ − 5861
+ − 5862 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
726
+ − 5863 echo "configure:5864: checking for dnet_ntoa in -ldnet" >&5
149
+ − 5864 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
+ − 5865
+ − 5866 xe_check_libs=" -ldnet "
+ − 5867 cat > conftest.$ac_ext <<EOF
726
+ − 5868 #line 5869 "configure"
149
+ − 5869 #include "confdefs.h"
+ − 5870 /* Override any gcc2 internal prototype to avoid an error. */
+ − 5871 /* We use char because int might match the return type of a gcc2
+ − 5872 builtin and then its argument prototype would still apply. */
+ − 5873 char dnet_ntoa();
+ − 5874
+ − 5875 int main() {
+ − 5876 dnet_ntoa()
+ − 5877 ; return 0; }
+ − 5878 EOF
726
+ − 5879 if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 5880 rm -rf conftest*
+ − 5881 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5882 else
+ − 5883 echo "configure: failed program was:" >&5
+ − 5884 cat conftest.$ac_ext >&5
+ − 5885 rm -rf conftest*
+ − 5886 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5887 fi
+ − 5888 rm -f conftest*
+ − 5889 xe_check_libs=""
+ − 5890
151
+ − 5891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 5892 echo "$ac_t""yes" 1>&6
+ − 5893 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
+ − 5894 else
+ − 5895 echo "$ac_t""no" 1>&6
+ − 5896 fi
+ − 5897
+ − 5898 fi
+ − 5899
+ − 5900 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
+ − 5901
+ − 5902 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
726
+ − 5903 echo "configure:5904: checking for dnet_ntoa in -ldnet_stub" >&5
149
+ − 5904 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
+ − 5905
+ − 5906 xe_check_libs=" -ldnet_stub "
+ − 5907 cat > conftest.$ac_ext <<EOF
726
+ − 5908 #line 5909 "configure"
149
+ − 5909 #include "confdefs.h"
+ − 5910 /* Override any gcc2 internal prototype to avoid an error. */
+ − 5911 /* We use char because int might match the return type of a gcc2
+ − 5912 builtin and then its argument prototype would still apply. */
+ − 5913 char dnet_ntoa();
+ − 5914
+ − 5915 int main() {
+ − 5916 dnet_ntoa()
+ − 5917 ; return 0; }
+ − 5918 EOF
726
+ − 5919 if { (eval echo configure:5920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 5920 rm -rf conftest*
+ − 5921 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5922 else
+ − 5923 echo "configure: failed program was:" >&5
+ − 5924 cat conftest.$ac_ext >&5
+ − 5925 rm -rf conftest*
+ − 5926 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5927 fi
+ − 5928 rm -f conftest*
+ − 5929 xe_check_libs=""
+ − 5930
151
+ − 5931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 5932 echo "$ac_t""yes" 1>&6
+ − 5933 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
+ − 5934 else
+ − 5935 echo "$ac_t""no" 1>&6
+ − 5936 fi
+ − 5937
+ − 5938
+ − 5939 fi
+ − 5940
+ − 5941 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
+ − 5942 # to get the SysV transport functions.
+ − 5943 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
+ − 5944 # needs -lnsl.
+ − 5945 # The nsl library prevents programs from opening the X display
+ − 5946 # on Irix 5.2, according to dickey@clark.net.
+ − 5947 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
726
+ − 5948 echo "configure:5949: checking for gethostbyname" >&5
+ − 5949
+ − 5950 cat > conftest.$ac_ext <<EOF
+ − 5951 #line 5952 "configure"
149
+ − 5952 #include "confdefs.h"
+ − 5953 /* System header to define __stub macros and hopefully few prototypes,
+ − 5954 which can conflict with char gethostbyname(); below. */
+ − 5955 #include <assert.h>
+ − 5956 /* Override any gcc2 internal prototype to avoid an error. */
+ − 5957 /* We use char because int might match the return type of a gcc2
+ − 5958 builtin and then its argument prototype would still apply. */
+ − 5959 char gethostbyname();
+ − 5960
+ − 5961 int main() {
+ − 5962
+ − 5963 /* The GNU C library defines this for functions which it implements
+ − 5964 to always fail with ENOSYS. Some functions are actually named
+ − 5965 something starting with __ and the normal name is an alias. */
+ − 5966 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
+ − 5967 choke me
+ − 5968 #else
+ − 5969 gethostbyname();
+ − 5970 #endif
+ − 5971
+ − 5972 ; return 0; }
+ − 5973 EOF
726
+ − 5974 if { (eval echo configure:5975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 5975 rm -rf conftest*
+ − 5976 eval "ac_cv_func_gethostbyname=yes"
+ − 5977 else
+ − 5978 echo "configure: failed program was:" >&5
+ − 5979 cat conftest.$ac_ext >&5
+ − 5980 rm -rf conftest*
+ − 5981 eval "ac_cv_func_gethostbyname=no"
+ − 5982 fi
+ − 5983 rm -f conftest*
+ − 5984
+ − 5985 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
+ − 5986 echo "$ac_t""yes" 1>&6
+ − 5987 :
+ − 5988 else
+ − 5989 echo "$ac_t""no" 1>&6
+ − 5990 fi
+ − 5991
+ − 5992 if test $ac_cv_func_gethostbyname = no; then
+ − 5993
+ − 5994 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
726
+ − 5995 echo "configure:5996: checking for gethostbyname in -lnsl" >&5
149
+ − 5996 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
+ − 5997
+ − 5998 xe_check_libs=" -lnsl "
+ − 5999 cat > conftest.$ac_ext <<EOF
726
+ − 6000 #line 6001 "configure"
149
+ − 6001 #include "confdefs.h"
+ − 6002 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6003 /* We use char because int might match the return type of a gcc2
+ − 6004 builtin and then its argument prototype would still apply. */
+ − 6005 char gethostbyname();
+ − 6006
+ − 6007 int main() {
+ − 6008 gethostbyname()
+ − 6009 ; return 0; }
+ − 6010 EOF
726
+ − 6011 if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6012 rm -rf conftest*
+ − 6013 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6014 else
+ − 6015 echo "configure: failed program was:" >&5
+ − 6016 cat conftest.$ac_ext >&5
+ − 6017 rm -rf conftest*
+ − 6018 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6019 fi
+ − 6020 rm -f conftest*
+ − 6021 xe_check_libs=""
+ − 6022
151
+ − 6023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6024 echo "$ac_t""yes" 1>&6
+ − 6025 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
+ − 6026 else
+ − 6027 echo "$ac_t""no" 1>&6
+ − 6028 fi
+ − 6029
+ − 6030
+ − 6031 fi
+ − 6032
+ − 6033 # lieder@skyler.mavd.honeywell.com says without -lsocket,
+ − 6034 # socket/setsockopt and other routines are undefined under SCO ODT
+ − 6035 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
+ − 6036 # on later versions), says simon@lia.di.epfl.ch: it contains
+ − 6037 # gethostby* variants that don't use the nameserver (or something).
+ − 6038 # -lsocket must be given before -lnsl if both are needed.
+ − 6039 # We assume that if connect needs -lnsl, so does gethostbyname.
+ − 6040 echo $ac_n "checking for connect""... $ac_c" 1>&6
726
+ − 6041 echo "configure:6042: checking for connect" >&5
+ − 6042
+ − 6043 cat > conftest.$ac_ext <<EOF
+ − 6044 #line 6045 "configure"
149
+ − 6045 #include "confdefs.h"
+ − 6046 /* System header to define __stub macros and hopefully few prototypes,
+ − 6047 which can conflict with char connect(); below. */
+ − 6048 #include <assert.h>
+ − 6049 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6050 /* We use char because int might match the return type of a gcc2
+ − 6051 builtin and then its argument prototype would still apply. */
+ − 6052 char connect();
+ − 6053
+ − 6054 int main() {
+ − 6055
+ − 6056 /* The GNU C library defines this for functions which it implements
+ − 6057 to always fail with ENOSYS. Some functions are actually named
+ − 6058 something starting with __ and the normal name is an alias. */
+ − 6059 #if defined (__stub_connect) || defined (__stub___connect)
+ − 6060 choke me
+ − 6061 #else
+ − 6062 connect();
+ − 6063 #endif
+ − 6064
+ − 6065 ; return 0; }
+ − 6066 EOF
726
+ − 6067 if { (eval echo configure:6068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6068 rm -rf conftest*
+ − 6069 eval "ac_cv_func_connect=yes"
+ − 6070 else
+ − 6071 echo "configure: failed program was:" >&5
+ − 6072 cat conftest.$ac_ext >&5
+ − 6073 rm -rf conftest*
+ − 6074 eval "ac_cv_func_connect=no"
+ − 6075 fi
+ − 6076 rm -f conftest*
+ − 6077
+ − 6078 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
+ − 6079 echo "$ac_t""yes" 1>&6
+ − 6080 :
+ − 6081 else
+ − 6082 echo "$ac_t""no" 1>&6
+ − 6083 fi
+ − 6084
+ − 6085 if test $ac_cv_func_connect = no; then
+ − 6086
+ − 6087 xe_msg_checking="for connect in -lsocket"
+ − 6088 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
+ − 6089 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
726
+ − 6090 echo "configure:6091: checking "$xe_msg_checking"" >&5
149
+ − 6091 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
+ − 6092
+ − 6093 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
+ − 6094 cat > conftest.$ac_ext <<EOF
726
+ − 6095 #line 6096 "configure"
149
+ − 6096 #include "confdefs.h"
+ − 6097 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6098 /* We use char because int might match the return type of a gcc2
+ − 6099 builtin and then its argument prototype would still apply. */
+ − 6100 char connect();
+ − 6101
+ − 6102 int main() {
+ − 6103 connect()
+ − 6104 ; return 0; }
+ − 6105 EOF
726
+ − 6106 if { (eval echo configure:6107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6107 rm -rf conftest*
+ − 6108 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6109 else
+ − 6110 echo "configure: failed program was:" >&5
+ − 6111 cat conftest.$ac_ext >&5
+ − 6112 rm -rf conftest*
+ − 6113 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6114 fi
+ − 6115 rm -f conftest*
+ − 6116 xe_check_libs=""
+ − 6117
151
+ − 6118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6119 echo "$ac_t""yes" 1>&6
+ − 6120 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
+ − 6121 else
+ − 6122 echo "$ac_t""no" 1>&6
+ − 6123 fi
+ − 6124
+ − 6125
+ − 6126 fi
+ − 6127
+ − 6128 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
+ − 6129 echo $ac_n "checking for remove""... $ac_c" 1>&6
726
+ − 6130 echo "configure:6131: checking for remove" >&5
+ − 6131
+ − 6132 cat > conftest.$ac_ext <<EOF
+ − 6133 #line 6134 "configure"
149
+ − 6134 #include "confdefs.h"
+ − 6135 /* System header to define __stub macros and hopefully few prototypes,
+ − 6136 which can conflict with char remove(); below. */
+ − 6137 #include <assert.h>
+ − 6138 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6139 /* We use char because int might match the return type of a gcc2
+ − 6140 builtin and then its argument prototype would still apply. */
+ − 6141 char remove();
+ − 6142
+ − 6143 int main() {
+ − 6144
+ − 6145 /* The GNU C library defines this for functions which it implements
+ − 6146 to always fail with ENOSYS. Some functions are actually named
+ − 6147 something starting with __ and the normal name is an alias. */
+ − 6148 #if defined (__stub_remove) || defined (__stub___remove)
+ − 6149 choke me
+ − 6150 #else
+ − 6151 remove();
+ − 6152 #endif
+ − 6153
+ − 6154 ; return 0; }
+ − 6155 EOF
726
+ − 6156 if { (eval echo configure:6157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6157 rm -rf conftest*
+ − 6158 eval "ac_cv_func_remove=yes"
+ − 6159 else
+ − 6160 echo "configure: failed program was:" >&5
+ − 6161 cat conftest.$ac_ext >&5
+ − 6162 rm -rf conftest*
+ − 6163 eval "ac_cv_func_remove=no"
+ − 6164 fi
+ − 6165 rm -f conftest*
+ − 6166
+ − 6167 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
+ − 6168 echo "$ac_t""yes" 1>&6
+ − 6169 :
+ − 6170 else
+ − 6171 echo "$ac_t""no" 1>&6
+ − 6172 fi
+ − 6173
+ − 6174 if test $ac_cv_func_remove = no; then
+ − 6175
+ − 6176 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
726
+ − 6177 echo "configure:6178: checking for remove in -lposix" >&5
149
+ − 6178 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
+ − 6179
+ − 6180 xe_check_libs=" -lposix "
+ − 6181 cat > conftest.$ac_ext <<EOF
726
+ − 6182 #line 6183 "configure"
149
+ − 6183 #include "confdefs.h"
+ − 6184 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6185 /* We use char because int might match the return type of a gcc2
+ − 6186 builtin and then its argument prototype would still apply. */
+ − 6187 char remove();
+ − 6188
+ − 6189 int main() {
+ − 6190 remove()
+ − 6191 ; return 0; }
+ − 6192 EOF
726
+ − 6193 if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6194 rm -rf conftest*
+ − 6195 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6196 else
+ − 6197 echo "configure: failed program was:" >&5
+ − 6198 cat conftest.$ac_ext >&5
+ − 6199 rm -rf conftest*
+ − 6200 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6201 fi
+ − 6202 rm -f conftest*
+ − 6203 xe_check_libs=""
+ − 6204
151
+ − 6205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6206 echo "$ac_t""yes" 1>&6
+ − 6207 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
+ − 6208 else
+ − 6209 echo "$ac_t""no" 1>&6
+ − 6210 fi
+ − 6211
+ − 6212
+ − 6213 fi
+ − 6214
+ − 6215 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
+ − 6216 echo $ac_n "checking for shmat""... $ac_c" 1>&6
726
+ − 6217 echo "configure:6218: checking for shmat" >&5
+ − 6218
+ − 6219 cat > conftest.$ac_ext <<EOF
+ − 6220 #line 6221 "configure"
149
+ − 6221 #include "confdefs.h"
+ − 6222 /* System header to define __stub macros and hopefully few prototypes,
+ − 6223 which can conflict with char shmat(); below. */
+ − 6224 #include <assert.h>
+ − 6225 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6226 /* We use char because int might match the return type of a gcc2
+ − 6227 builtin and then its argument prototype would still apply. */
+ − 6228 char shmat();
+ − 6229
+ − 6230 int main() {
+ − 6231
+ − 6232 /* The GNU C library defines this for functions which it implements
+ − 6233 to always fail with ENOSYS. Some functions are actually named
+ − 6234 something starting with __ and the normal name is an alias. */
+ − 6235 #if defined (__stub_shmat) || defined (__stub___shmat)
+ − 6236 choke me
+ − 6237 #else
+ − 6238 shmat();
+ − 6239 #endif
+ − 6240
+ − 6241 ; return 0; }
+ − 6242 EOF
726
+ − 6243 if { (eval echo configure:6244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6244 rm -rf conftest*
+ − 6245 eval "ac_cv_func_shmat=yes"
+ − 6246 else
+ − 6247 echo "configure: failed program was:" >&5
+ − 6248 cat conftest.$ac_ext >&5
+ − 6249 rm -rf conftest*
+ − 6250 eval "ac_cv_func_shmat=no"
+ − 6251 fi
+ − 6252 rm -f conftest*
+ − 6253
+ − 6254 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
+ − 6255 echo "$ac_t""yes" 1>&6
+ − 6256 :
+ − 6257 else
+ − 6258 echo "$ac_t""no" 1>&6
+ − 6259 fi
+ − 6260
+ − 6261 if test $ac_cv_func_shmat = no; then
+ − 6262
+ − 6263 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
726
+ − 6264 echo "configure:6265: checking for shmat in -lipc" >&5
149
+ − 6265 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
+ − 6266
+ − 6267 xe_check_libs=" -lipc "
+ − 6268 cat > conftest.$ac_ext <<EOF
726
+ − 6269 #line 6270 "configure"
149
+ − 6270 #include "confdefs.h"
+ − 6271 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6272 /* We use char because int might match the return type of a gcc2
+ − 6273 builtin and then its argument prototype would still apply. */
+ − 6274 char shmat();
+ − 6275
+ − 6276 int main() {
+ − 6277 shmat()
+ − 6278 ; return 0; }
+ − 6279 EOF
726
+ − 6280 if { (eval echo configure:6281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6281 rm -rf conftest*
+ − 6282 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6283 else
+ − 6284 echo "configure: failed program was:" >&5
+ − 6285 cat conftest.$ac_ext >&5
+ − 6286 rm -rf conftest*
+ − 6287 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6288 fi
+ − 6289 rm -f conftest*
+ − 6290 xe_check_libs=""
+ − 6291
151
+ − 6292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6293 echo "$ac_t""yes" 1>&6
+ − 6294 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
+ − 6295 else
+ − 6296 echo "$ac_t""no" 1>&6
+ − 6297 fi
+ − 6298
0
+ − 6299
+ − 6300 fi
149
+ − 6301 fi
+ − 6302
+ − 6303 # Check for libraries that X11R6 Xt/Xaw programs need.
+ − 6304 ac_save_LDFLAGS="$LDFLAGS"
+ − 6305 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
+ − 6306 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
+ − 6307 # check for ICE first), but we must link in the order -lSM -lICE or
+ − 6308 # we get undefined symbols. So assume we have SM if we have ICE.
+ − 6309 # These have to be linked with before -lX11, unlike the other
+ − 6310 # libraries we check for below, so use a different variable.
+ − 6311 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
+ − 6312
420
+ − 6313 xe_msg_checking="for IceConnectionNumber in -lICE"
+ − 6314 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
+ − 6315 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
726
+ − 6316 echo "configure:6317: checking "$xe_msg_checking"" >&5
149
+ − 6317 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
+ − 6318
420
+ − 6319 xe_check_libs=" -lICE $X_EXTRA_LIBS"
+ − 6320 cat > conftest.$ac_ext <<EOF
726
+ − 6321 #line 6322 "configure"
149
+ − 6322 #include "confdefs.h"
+ − 6323 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6324 /* We use char because int might match the return type of a gcc2
+ − 6325 builtin and then its argument prototype would still apply. */
+ − 6326 char IceConnectionNumber();
+ − 6327
+ − 6328 int main() {
+ − 6329 IceConnectionNumber()
+ − 6330 ; return 0; }
+ − 6331 EOF
726
+ − 6332 if { (eval echo configure:6333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6333 rm -rf conftest*
+ − 6334 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6335 else
+ − 6336 echo "configure: failed program was:" >&5
+ − 6337 cat conftest.$ac_ext >&5
+ − 6338 rm -rf conftest*
+ − 6339 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6340 fi
+ − 6341 rm -f conftest*
+ − 6342 xe_check_libs=""
+ − 6343
151
+ − 6344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6345 echo "$ac_t""yes" 1>&6
+ − 6346 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
+ − 6347 else
+ − 6348 echo "$ac_t""no" 1>&6
+ − 6349 fi
+ − 6350
+ − 6351
+ − 6352 LDFLAGS="$ac_save_LDFLAGS"
+ − 6353
+ − 6354 fi
+ − 6355 # Autoconf claims to find X library and include dirs for us.
+ − 6356 if test "$no_x" = "yes"
+ − 6357 then with_x11=no window_system=none HAVE_X_WINDOWS=no
+ − 6358 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
+ − 6359 fi
+ − 6360 fi
+ − 6361
0
+ − 6362
149
+ − 6363 if test "$with_x11" = "yes"; then
+ − 6364 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 6365 Defining HAVE_X_WINDOWS
+ − 6366 EOF
+ − 6367 cat >> confdefs.h <<\EOF
+ − 6368 #define HAVE_X_WINDOWS 1
+ − 6369 EOF
+ − 6370 }
+ − 6371
151
+ − 6372 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
175
+ − 6373 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
149
+ − 6374
278
+ − 6375 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
159
+ − 6376 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
149
+ − 6377 if test -d "$lib_dir" -a -d "$inc_dir"; then
151
+ − 6378 case "$x_libraries" in *"$lib_dir"* ) ;; *)
+ − 6379 x_libraries="$lib_dir $x_libraries"
+ − 6380 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
149
+ − 6381 esac
151
+ − 6382 case "$x_includes" in "$inc_dir"* ) ;; *)
+ − 6383 x_includes="$inc_dir $x_includes"
+ − 6384 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
149
+ − 6385 esac
+ − 6386 break; fi
+ − 6387 done
+ − 6388
+ − 6389 for rel in "X11R6" "X11R5" "X11R4"; do
+ − 6390 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
+ − 6391 if test -d "$lib_dir" -a -d "$inc_dir"; then
151
+ − 6392 case "$x_libraries" in *"$lib_dir"* ) ;; *)
+ − 6393 x_libraries="$x_libraries $lib_dir"
+ − 6394 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
149
+ − 6395 esac
151
+ − 6396 case "$x_includes" in "$inc_dir"* ) ;; *)
+ − 6397 x_includes="$x_includes $inc_dir"
+ − 6398 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
149
+ − 6399 esac
+ − 6400 break; fi
+ − 6401 done
+ − 6402
442
+ − 6403 case "$opsys" in
+ − 6404 decosf*) if test "$GCC" = yes -a -d /usr/shlib; then X_LIBS="$X_LIBS -L/usr/shlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L/usr/shlib\" to \$X_LIBS"; fi; fi ;;
+ − 6405 esac
373
+ − 6406
149
+ − 6407 ld_switch_x_site="$X_LIBS"
+ − 6408
151
+ − 6409
+ − 6410 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
+ − 6411 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
+ − 6412 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
+ − 6413
163
+ − 6414 runpath="" runpath_dirs=""
155
+ − 6415 if test -n "$LD_RUN_PATH"; then
151
+ − 6416 runpath="$LD_RUN_PATH"
155
+ − 6417 elif test "$GCC" = "yes"; then
163
+ − 6418 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
+ − 6419 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
+ − 6420 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
+ − 6421 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
+ − 6422 case "$arg" in P,* | -L* | -R* )
159
+ − 6423 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
+ − 6424 {
155
+ − 6425 xe_runpath_dir="$dir"
163
+ − 6426 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 6427 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 6428 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 6429 eval "$xe_add_unique_runpath_dir"
+ − 6430 }
155
+ − 6431 done ;;
+ − 6432 esac
+ − 6433 done
163
+ − 6434 ld_switch_run="$ld_switch_run_save"
155
+ − 6435 rm -f conftest*
151
+ − 6436 else
155
+ − 6437 for arg in $ld_switch_site $ld_switch_x_site; do
163
+ − 6438 case "$arg" in -L*) {
159
+ − 6439 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
+ − 6440 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 6441 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 6442 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 6443 eval "$xe_add_unique_runpath_dir"
+ − 6444 };; esac
151
+ − 6445 done
163
+ − 6446 if test "$opsys $need_motif" = "sol2 yes"; then
+ − 6447 xe_runpath_dir="/opt/SUNWdt/lib";
+ − 6448 eval "$xe_add_unique_runpath_dir";
+ − 6449 fi
155
+ − 6450 fi
151
+ − 6451 if test -n "$runpath"; then
+ − 6452 ld_switch_run="${dash_r}${runpath}"
272
+ − 6453
+ − 6454 if test "$GCC" = "yes"; then
+ − 6455 set x $ld_switch_run; shift; ld_switch_run=""
+ − 6456 while test -n "$1"; do
+ − 6457 case $1 in
380
+ − 6458 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
+ − 6459 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
+ − 6460 -Xlinker* ) ;;
+ − 6461 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
+ − 6462 esac
+ − 6463 shift
+ − 6464 done
+ − 6465 fi
151
+ − 6466 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
+ − 6467 fi
+ − 6468 fi
+ − 6469
+ − 6470
149
+ − 6471 if test "$extra_verbose" = "yes"; then
+ − 6472 echo; echo "X11 compilation variables:"
163
+ − 6473 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
149
+ − 6474 echo
+ − 6475 fi
+ − 6476
265
+ − 6477 bitmapdirs=
+ − 6478 if test "$x_includes" != NONE; then
+ − 6479 for i in $x_includes; do
+ − 6480 if test -d "$i/bitmaps"; then
+ − 6481 bitmapdirs="$i/bitmaps:$bitmapdirs"
+ − 6482 fi
+ − 6483 if test -d "$i/X11/bitmaps"; then
+ − 6484 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
+ − 6485 fi
+ − 6486 done
+ − 6487 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
+ − 6488 fi
+ − 6489 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
+ − 6490 Defining BITMAPDIR = "$bitmapdirs"
+ − 6491 EOF
+ − 6492 cat >> confdefs.h <<EOF
+ − 6493 #define BITMAPDIR "$bitmapdirs"
+ − 6494 EOF
+ − 6495 }
+ − 6496
+ − 6497
163
+ − 6498 echo "checking for X defines extracted by xmkmf" 1>&6
726
+ − 6499 echo "configure:6500: checking for X defines extracted by xmkmf" >&5
163
+ − 6500 rm -fr conftestdir
+ − 6501 if mkdir conftestdir; then
+ − 6502 cd conftestdir
+ − 6503 cat > Imakefile <<'EOF'
+ − 6504 xetest:
+ − 6505 @echo ${PROTO_DEFINES} ${STD_DEFINES}
+ − 6506 EOF
+ − 6507 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
+ − 6508 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+ − 6509 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
+ − 6510 fi
+ − 6511 cd ..
+ − 6512 rm -fr conftestdir
+ − 6513 for word in $xmkmf_defines; do
535
+ − 6514 case "$word" in
473
+ − 6515 -D__STDC__*) ;;
+ − 6516 -D* )
442
+ − 6517 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
+ − 6518 case "$word" in
+ − 6519 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
+ − 6520 * ) val=1 ;;
+ − 6521 esac
+ − 6522 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
+ − 6523 if test "$val" = "1"
+ − 6524 then { test "$extra_verbose" = "yes" && cat << EOF
+ − 6525 Defining $sym
+ − 6526 EOF
+ − 6527 cat >> confdefs.h <<EOF
+ − 6528 #define $sym 1
+ − 6529 EOF
+ − 6530 }
+ − 6531
+ − 6532 else { test "$extra_verbose" = "yes" && cat << EOF
+ − 6533 Defining $sym = $val
+ − 6534 EOF
+ − 6535 cat >> confdefs.h <<EOF
+ − 6536 #define $sym $val
+ − 6537 EOF
+ − 6538 }
+ − 6539
+ − 6540 fi
+ − 6541 fi ;;
163
+ − 6542 esac
+ − 6543 done
+ − 6544 fi
+ − 6545
149
+ − 6546 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
+ − 6547 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
726
+ − 6548 echo "configure:6549: checking for X11/Intrinsic.h" >&5
+ − 6549
+ − 6550 cat > conftest.$ac_ext <<EOF
+ − 6551 #line 6552 "configure"
149
+ − 6552 #include "confdefs.h"
+ − 6553 #include <X11/Intrinsic.h>
+ − 6554 EOF
+ − 6555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 6556 { (eval echo configure:6557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 6557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 6558 if test -z "$ac_err"; then
+ − 6559 rm -rf conftest*
+ − 6560 eval "ac_cv_header_$ac_safe=yes"
+ − 6561 else
+ − 6562 echo "$ac_err" >&5
+ − 6563 echo "configure: failed program was:" >&5
+ − 6564 cat conftest.$ac_ext >&5
+ − 6565 rm -rf conftest*
+ − 6566 eval "ac_cv_header_$ac_safe=no"
+ − 6567 fi
+ − 6568 rm -f conftest*
+ − 6569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 6570 echo "$ac_t""yes" 1>&6
+ − 6571 :
+ − 6572 else
+ − 6573 echo "$ac_t""no" 1>&6
561
+ − 6574 { echo "configure: error: Unable to find X11 header files." 1>&2; exit 1; }
149
+ − 6575 fi
+ − 6576
+ − 6577
+ − 6578
+ − 6579 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
726
+ − 6580 echo "configure:6581: checking for XOpenDisplay in -lX11" >&5
149
+ − 6581 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
+ − 6582
+ − 6583 xe_check_libs=" -lX11 "
+ − 6584 cat > conftest.$ac_ext <<EOF
726
+ − 6585 #line 6586 "configure"
149
+ − 6586 #include "confdefs.h"
+ − 6587 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6588 /* We use char because int might match the return type of a gcc2
+ − 6589 builtin and then its argument prototype would still apply. */
+ − 6590 char XOpenDisplay();
+ − 6591
+ − 6592 int main() {
+ − 6593 XOpenDisplay()
+ − 6594 ; return 0; }
+ − 6595 EOF
726
+ − 6596 if { (eval echo configure:6597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6597 rm -rf conftest*
+ − 6598 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6599 else
+ − 6600 echo "configure: failed program was:" >&5
+ − 6601 cat conftest.$ac_ext >&5
+ − 6602 rm -rf conftest*
+ − 6603 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6604 fi
+ − 6605 rm -f conftest*
+ − 6606 xe_check_libs=""
+ − 6607
151
+ − 6608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6609 echo "$ac_t""yes" 1>&6
+ − 6610 have_lib_x11=yes
+ − 6611 else
+ − 6612 echo "$ac_t""no" 1>&6
+ − 6613 fi
+ − 6614
+ − 6615
+ − 6616 if test "$have_lib_x11" != "yes"; then
+ − 6617
+ − 6618 xe_msg_checking="for XGetFontProperty in -lX11"
+ − 6619 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
+ − 6620 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
726
+ − 6621 echo "configure:6622: checking "$xe_msg_checking"" >&5
149
+ − 6622 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
+ − 6623
+ − 6624 xe_check_libs=" -lX11 -b i486-linuxaout"
+ − 6625 cat > conftest.$ac_ext <<EOF
726
+ − 6626 #line 6627 "configure"
149
+ − 6627 #include "confdefs.h"
+ − 6628 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6629 /* We use char because int might match the return type of a gcc2
+ − 6630 builtin and then its argument prototype would still apply. */
+ − 6631 char XGetFontProperty();
+ − 6632
+ − 6633 int main() {
+ − 6634 XGetFontProperty()
+ − 6635 ; return 0; }
+ − 6636 EOF
726
+ − 6637 if { (eval echo configure:6638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6638 rm -rf conftest*
+ − 6639 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6640 else
+ − 6641 echo "configure: failed program was:" >&5
+ − 6642 cat conftest.$ac_ext >&5
+ − 6643 rm -rf conftest*
+ − 6644 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6645 fi
+ − 6646 rm -f conftest*
+ − 6647 xe_check_libs=""
+ − 6648
151
+ − 6649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6650 echo "$ac_t""yes" 1>&6
+ − 6651 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
+ − 6652 else
+ − 6653 echo "$ac_t""no" 1>&6
561
+ − 6654 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
149
+ − 6655 fi
+ − 6656
+ − 6657
0
+ − 6658 fi
149
+ − 6659 libs_x="-lX11"
151
+ − 6660 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
149
+ − 6661
153
+ − 6662
+ − 6663 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
726
+ − 6664 echo "configure:6665: checking for XShapeSelectInput in -lXext" >&5
153
+ − 6665 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
+ − 6666
+ − 6667 xe_check_libs=" -lXext "
+ − 6668 cat > conftest.$ac_ext <<EOF
726
+ − 6669 #line 6670 "configure"
153
+ − 6670 #include "confdefs.h"
+ − 6671 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6672 /* We use char because int might match the return type of a gcc2
+ − 6673 builtin and then its argument prototype would still apply. */
+ − 6674 char XShapeSelectInput();
+ − 6675
+ − 6676 int main() {
+ − 6677 XShapeSelectInput()
+ − 6678 ; return 0; }
+ − 6679 EOF
726
+ − 6680 if { (eval echo configure:6681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
153
+ − 6681 rm -rf conftest*
+ − 6682 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6683 else
+ − 6684 echo "configure: failed program was:" >&5
+ − 6685 cat conftest.$ac_ext >&5
+ − 6686 rm -rf conftest*
+ − 6687 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6688 fi
+ − 6689 rm -f conftest*
+ − 6690 xe_check_libs=""
+ − 6691
+ − 6692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 6693 echo "$ac_t""yes" 1>&6
+ − 6694 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
+ − 6695 else
+ − 6696 echo "$ac_t""no" 1>&6
+ − 6697 fi
+ − 6698
+ − 6699
+ − 6700
169
+ − 6701
149
+ − 6702 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
726
+ − 6703 echo "configure:6704: checking for XtOpenDisplay in -lXt" >&5
149
+ − 6704 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
+ − 6705
+ − 6706 xe_check_libs=" -lXt "
+ − 6707 cat > conftest.$ac_ext <<EOF
726
+ − 6708 #line 6709 "configure"
149
+ − 6709 #include "confdefs.h"
+ − 6710 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6711 /* We use char because int might match the return type of a gcc2
+ − 6712 builtin and then its argument prototype would still apply. */
+ − 6713 char XtOpenDisplay();
+ − 6714
+ − 6715 int main() {
+ − 6716 XtOpenDisplay()
+ − 6717 ; return 0; }
+ − 6718 EOF
726
+ − 6719 if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6720 rm -rf conftest*
+ − 6721 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6722 else
+ − 6723 echo "configure: failed program was:" >&5
+ − 6724 cat conftest.$ac_ext >&5
+ − 6725 rm -rf conftest*
+ − 6726 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6727 fi
+ − 6728 rm -f conftest*
+ − 6729 xe_check_libs=""
+ − 6730
151
+ − 6731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 6732 echo "$ac_t""yes" 1>&6
+ − 6733 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
149
+ − 6734 else
+ − 6735 echo "$ac_t""no" 1>&6
561
+ − 6736 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
149
+ − 6737 fi
+ − 6738
169
+ − 6739
149
+ − 6740
+ − 6741 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
726
+ − 6742 echo "configure:6743: checking the version of X11 being used" >&5
149
+ − 6743 cat > conftest.$ac_ext <<EOF
726
+ − 6744 #line 6745 "configure"
149
+ − 6745 #include "confdefs.h"
+ − 6746 #include <X11/Intrinsic.h>
272
+ − 6747 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
+ − 6748 EOF
726
+ − 6749 if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 6750 then
151
+ − 6751 ./conftest foobar; x11_release=$?
149
+ − 6752 else
373
+ − 6753 conftest_rc="$?"
149
+ − 6754 echo "configure: failed program was:" >&5
+ − 6755 cat conftest.$ac_ext >&5
+ − 6756 rm -fr conftest*
151
+ − 6757 x11_release=4
149
+ − 6758 fi
+ − 6759 rm -fr conftest*
151
+ − 6760 echo "$ac_t""R${x11_release}" 1>&6
149
+ − 6761 { test "$extra_verbose" = "yes" && cat << EOF
151
+ − 6762 Defining THIS_IS_X11R${x11_release}
149
+ − 6763 EOF
+ − 6764 cat >> confdefs.h <<EOF
151
+ − 6765 #define THIS_IS_X11R${x11_release} 1
149
+ − 6766 EOF
+ − 6767 }
+ − 6768
+ − 6769
442
+ − 6770 if test "${x11_release}" = "4"; then
+ − 6771 case "$with_widgets" in
+ − 6772 "" | "no") with_widgets=no ;;
+ − 6773 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
+ − 6774 esac
+ − 6775 fi
+ − 6776
+ − 6777 for ac_func in XConvertCase
+ − 6778 do
+ − 6779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
726
+ − 6780 echo "configure:6781: checking for $ac_func" >&5
+ − 6781
+ − 6782 cat > conftest.$ac_ext <<EOF
+ − 6783 #line 6784 "configure"
442
+ − 6784 #include "confdefs.h"
+ − 6785 /* System header to define __stub macros and hopefully few prototypes,
+ − 6786 which can conflict with char $ac_func(); below. */
+ − 6787 #include <assert.h>
+ − 6788 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6789 /* We use char because int might match the return type of a gcc2
+ − 6790 builtin and then its argument prototype would still apply. */
+ − 6791 char $ac_func();
+ − 6792
+ − 6793 int main() {
+ − 6794
+ − 6795 /* The GNU C library defines this for functions which it implements
+ − 6796 to always fail with ENOSYS. Some functions are actually named
+ − 6797 something starting with __ and the normal name is an alias. */
+ − 6798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 6799 choke me
+ − 6800 #else
+ − 6801 $ac_func();
+ − 6802 #endif
+ − 6803
+ − 6804 ; return 0; }
+ − 6805 EOF
726
+ − 6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 6807 rm -rf conftest*
+ − 6808 eval "ac_cv_func_$ac_func=yes"
+ − 6809 else
+ − 6810 echo "configure: failed program was:" >&5
+ − 6811 cat conftest.$ac_ext >&5
+ − 6812 rm -rf conftest*
+ − 6813 eval "ac_cv_func_$ac_func=no"
+ − 6814 fi
+ − 6815 rm -f conftest*
+ − 6816
+ − 6817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 6818 echo "$ac_t""yes" 1>&6
+ − 6819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 6820 { test "$extra_verbose" = "yes" && cat << EOF
+ − 6821 Defining $ac_tr_func
+ − 6822 EOF
+ − 6823 cat >> confdefs.h <<EOF
+ − 6824 #define $ac_tr_func 1
+ − 6825 EOF
+ − 6826 }
+ − 6827
+ − 6828 else
+ − 6829 echo "$ac_t""no" 1>&6
+ − 6830 fi
+ − 6831 done
+ − 6832
+ − 6833
149
+ − 6834 for ac_hdr in X11/Xlocale.h
+ − 6835 do
+ − 6836 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 6837 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
726
+ − 6838 echo "configure:6839: checking for $ac_hdr" >&5
+ − 6839
+ − 6840 cat > conftest.$ac_ext <<EOF
+ − 6841 #line 6842 "configure"
149
+ − 6842 #include "confdefs.h"
+ − 6843 #include <$ac_hdr>
+ − 6844 EOF
+ − 6845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 6846 { (eval echo configure:6847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 6847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 6848 if test -z "$ac_err"; then
+ − 6849 rm -rf conftest*
+ − 6850 eval "ac_cv_header_$ac_safe=yes"
+ − 6851 else
+ − 6852 echo "$ac_err" >&5
+ − 6853 echo "configure: failed program was:" >&5
+ − 6854 cat conftest.$ac_ext >&5
+ − 6855 rm -rf conftest*
+ − 6856 eval "ac_cv_header_$ac_safe=no"
+ − 6857 fi
+ − 6858 rm -f conftest*
+ − 6859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 6860 echo "$ac_t""yes" 1>&6
+ − 6861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 6862 { test "$extra_verbose" = "yes" && cat << EOF
+ − 6863 Defining $ac_tr_hdr
+ − 6864 EOF
+ − 6865 cat >> confdefs.h <<EOF
+ − 6866 #define $ac_tr_hdr 1
+ − 6867 EOF
+ − 6868 }
+ − 6869
+ − 6870 else
+ − 6871 echo "$ac_t""no" 1>&6
+ − 6872 fi
+ − 6873 done
+ − 6874
+ − 6875
444
+ − 6876 for ac_func in XRegisterIMInstantiateCallback
+ − 6877 do
+ − 6878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
726
+ − 6879 echo "configure:6880: checking for $ac_func" >&5
+ − 6880
+ − 6881 cat > conftest.$ac_ext <<EOF
+ − 6882 #line 6883 "configure"
444
+ − 6883 #include "confdefs.h"
+ − 6884 /* System header to define __stub macros and hopefully few prototypes,
+ − 6885 which can conflict with char $ac_func(); below. */
+ − 6886 #include <assert.h>
+ − 6887 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6888 /* We use char because int might match the return type of a gcc2
+ − 6889 builtin and then its argument prototype would still apply. */
+ − 6890 char $ac_func();
+ − 6891
+ − 6892 int main() {
+ − 6893
+ − 6894 /* The GNU C library defines this for functions which it implements
+ − 6895 to always fail with ENOSYS. Some functions are actually named
+ − 6896 something starting with __ and the normal name is an alias. */
+ − 6897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 6898 choke me
+ − 6899 #else
+ − 6900 $ac_func();
+ − 6901 #endif
+ − 6902
+ − 6903 ; return 0; }
+ − 6904 EOF
726
+ − 6905 if { (eval echo configure:6906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
444
+ − 6906 rm -rf conftest*
+ − 6907 eval "ac_cv_func_$ac_func=yes"
+ − 6908 else
+ − 6909 echo "configure: failed program was:" >&5
+ − 6910 cat conftest.$ac_ext >&5
+ − 6911 rm -rf conftest*
+ − 6912 eval "ac_cv_func_$ac_func=no"
+ − 6913 fi
+ − 6914 rm -f conftest*
+ − 6915
+ − 6916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 6917 echo "$ac_t""yes" 1>&6
+ − 6918 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 6919 { test "$extra_verbose" = "yes" && cat << EOF
+ − 6920 Defining $ac_tr_func
+ − 6921 EOF
+ − 6922 cat >> confdefs.h <<EOF
+ − 6923 #define $ac_tr_func 1
+ − 6924 EOF
+ − 6925 }
+ − 6926
+ − 6927 else
+ − 6928 echo "$ac_t""no" 1>&6
+ − 6929 fi
+ − 6930 done
+ − 6931
+ − 6932 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
726
+ − 6933 echo "configure:6934: checking for standard XRegisterIMInstantiateCallback prototype" >&5
444
+ − 6934 cat > conftest.$ac_ext <<EOF
726
+ − 6935 #line 6936 "configure"
444
+ − 6936 #include "confdefs.h"
+ − 6937
+ − 6938 #define NeedFunctionPrototypes 1
+ − 6939 #include <X11/Xlib.h>
+ − 6940 extern Bool XRegisterIMInstantiateCallback(
+ − 6941 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
+ − 6942
+ − 6943 int main() {
+ − 6944
+ − 6945 ; return 0; }
+ − 6946 EOF
726
+ − 6947 if { (eval echo configure:6948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
444
+ − 6948 rm -rf conftest*
+ − 6949 echo "$ac_t""yes" 1>&6
+ − 6950 else
+ − 6951 echo "configure: failed program was:" >&5
+ − 6952 cat conftest.$ac_ext >&5
+ − 6953 rm -rf conftest*
+ − 6954 echo "$ac_t""no" 1>&6
+ − 6955 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 6956 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
+ − 6957 EOF
+ − 6958 cat >> confdefs.h <<\EOF
+ − 6959 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
+ − 6960 EOF
+ − 6961 }
+ − 6962
+ − 6963 fi
+ − 6964 rm -f conftest*
149
+ − 6965
169
+ − 6966 test -z "$with_xmu" && {
+ − 6967 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
726
+ − 6968 echo "configure:6969: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
169
+ − 6969 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
149
+ − 6970
+ − 6971 xe_check_libs=" -lXmu "
+ − 6972 cat > conftest.$ac_ext <<EOF
726
+ − 6973 #line 6974 "configure"
149
+ − 6974 #include "confdefs.h"
+ − 6975 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6976 /* We use char because int might match the return type of a gcc2
+ − 6977 builtin and then its argument prototype would still apply. */
169
+ − 6978 char XmuReadBitmapDataFromFile();
149
+ − 6979
+ − 6980 int main() {
169
+ − 6981 XmuReadBitmapDataFromFile()
149
+ − 6982 ; return 0; }
+ − 6983 EOF
726
+ − 6984 if { (eval echo configure:6985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6985 rm -rf conftest*
+ − 6986 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6987 else
+ − 6988 echo "configure: failed program was:" >&5
+ − 6989 cat conftest.$ac_ext >&5
+ − 6990 rm -rf conftest*
+ − 6991 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6992 fi
+ − 6993 rm -f conftest*
+ − 6994 xe_check_libs=""
+ − 6995
151
+ − 6996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 6997 echo "$ac_t""yes" 1>&6
+ − 6998 with_xmu=yes
+ − 6999 else
+ − 7000 echo "$ac_t""no" 1>&6
+ − 7001 with_xmu=no
+ − 7002 fi
+ − 7003
169
+ − 7004 }
185
+ − 7005 if test "$with_xmu" = "no"; then
+ − 7006 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
151
+ − 7007 echo " xemacs will be linked with \"xmu.o\""
+ − 7008 fi
187
+ − 7009 else
185
+ − 7010 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
+ − 7011 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7012 Defining HAVE_XMU
+ − 7013 EOF
+ − 7014 cat >> confdefs.h <<\EOF
+ − 7015 #define HAVE_XMU 1
+ − 7016 EOF
+ − 7017 }
+ − 7018
169
+ − 7019 fi
151
+ − 7020
+ − 7021
+ − 7022 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
726
+ − 7023 echo "configure:7024: checking for main in -lXbsd" >&5
151
+ − 7024 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
+ − 7025
+ − 7026 xe_check_libs=" -lXbsd "
+ − 7027 cat > conftest.$ac_ext <<EOF
726
+ − 7028 #line 7029 "configure"
151
+ − 7029 #include "confdefs.h"
149
+ − 7030
+ − 7031 int main() {
151
+ − 7032 main()
149
+ − 7033 ; return 0; }
+ − 7034 EOF
726
+ − 7035 if { (eval echo configure:7036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 7036 rm -rf conftest*
+ − 7037 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7038 else
+ − 7039 echo "configure: failed program was:" >&5
+ − 7040 cat conftest.$ac_ext >&5
+ − 7041 rm -rf conftest*
+ − 7042 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7043 fi
+ − 7044 rm -f conftest*
+ − 7045 xe_check_libs=""
+ − 7046
151
+ − 7047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 7048 echo "$ac_t""yes" 1>&6
+ − 7049 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
+ − 7050 else
+ − 7051 echo "$ac_t""no" 1>&6
+ − 7052 fi
+ − 7053
149
+ − 7054
+ − 7055
243
+ − 7056 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
274
+ − 7057 if test "$GCC" = "yes"; then
+ − 7058 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
+ − 7059 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
+ − 7060 else
+ − 7061 case "$CC" in
+ − 7062 "xlc" ) CC="xlc_r" ;;
+ − 7063 "xlC" ) CC="xlC_r" ;;
+ − 7064 "cc" ) CC="cc_r" ;;
+ − 7065 esac
+ − 7066 fi
243
+ − 7067 fi
+ − 7068
149
+ − 7069 fi
265
+ − 7070 if test "$with_msw" != "no"; then
+ − 7071 echo "checking for MS-Windows" 1>&6
726
+ − 7072 echo "configure:7073: checking for MS-Windows" >&5
265
+ − 7073
+ − 7074 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
726
+ − 7075 echo "configure:7076: checking for main in -lgdi32" >&5
265
+ − 7076 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
+ − 7077
+ − 7078 xe_check_libs=" -lgdi32 "
+ − 7079 cat > conftest.$ac_ext <<EOF
726
+ − 7080 #line 7081 "configure"
265
+ − 7081 #include "confdefs.h"
+ − 7082
+ − 7083 int main() {
+ − 7084 main()
+ − 7085 ; return 0; }
+ − 7086 EOF
726
+ − 7087 if { (eval echo configure:7088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
265
+ − 7088 rm -rf conftest*
+ − 7089 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7090 else
+ − 7091 echo "configure: failed program was:" >&5
+ − 7092 cat conftest.$ac_ext >&5
+ − 7093 rm -rf conftest*
+ − 7094 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7095 fi
+ − 7096 rm -f conftest*
+ − 7097 xe_check_libs=""
+ − 7098
+ − 7099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 7100 echo "$ac_t""yes" 1>&6
+ − 7101 with_msw=yes
+ − 7102 else
+ − 7103 echo "$ac_t""no" 1>&6
+ − 7104 fi
+ − 7105
+ − 7106
+ − 7107 if test "$with_msw" = "yes"; then
+ − 7108 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7109 Defining HAVE_MS_WINDOWS
+ − 7110 EOF
+ − 7111 cat >> confdefs.h <<\EOF
+ − 7112 #define HAVE_MS_WINDOWS 1
+ − 7113 EOF
+ − 7114 }
+ − 7115
448
+ − 7116
462
+ − 7117 if test "$with_netinstall" = "yes"; then
+ − 7118 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
+ − 7119 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
+ − 7120 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
+ − 7121 fi
458
+ − 7122
276
+ − 7123 install_pp="$blddir/lib-src/installexe.sh"
442
+ − 7124 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
375
+ − 7125 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
265
+ − 7126 if test "$window_system" != x11; then
+ − 7127 window_system=msw
+ − 7128 test "$with_scrollbars" != "no" && with_scrollbars=msw \
+ − 7129 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
+ − 7130 echo " xemacs will be linked with \"scrollbar-msw.o\""
+ − 7131 fi
+ − 7132 test "$with_menubars" != "no" && with_menubars=msw \
+ − 7133 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
+ − 7134 echo " xemacs will be linked with \"menubar-msw.o\""
+ − 7135 fi
276
+ − 7136 test "$with_toolbars" != "no" && with_toolbars=msw \
+ − 7137 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
+ − 7138 echo " xemacs will be linked with \"toolbar-msw.o\""
+ − 7139 fi
288
+ − 7140 test "$with_dialogs" != "no" && with_dialogs=msw \
+ − 7141 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
+ − 7142 echo " xemacs will be linked with \"dialog-msw.o\""
+ − 7143 fi
422
+ − 7144 test "$with_widgets" != "no" && with_widgets=msw
265
+ − 7145 else
380
+ − 7146 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
265
+ − 7147 echo " xemacs will be linked with \"scrollbar-msw.o\""
+ − 7148 fi
+ − 7149 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
+ − 7150 echo " xemacs will be linked with \"menubar-msw.o\""
+ − 7151 fi
276
+ − 7152 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
+ − 7153 echo " xemacs will be linked with \"toolbar-msw.o\""
+ − 7154 fi
380
+ − 7155 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
288
+ − 7156 echo " xemacs will be linked with \"dialog-msw.o\""
+ − 7157 fi
265
+ − 7158 fi
278
+ − 7159 cat > conftest.$ac_ext <<EOF
726
+ − 7160 #line 7161 "configure"
278
+ − 7161 #include "confdefs.h"
+ − 7162 #include <fcntl.h>
+ − 7163 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
+ − 7164 EOF
726
+ − 7165 if { (eval echo configure:7166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
278
+ − 7166 then
664
+ − 7167 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF
278
+ − 7168 Defining HAVE_MSG_SELECT
+ − 7169 EOF
+ − 7170 cat >> confdefs.h <<\EOF
+ − 7171 #define HAVE_MSG_SELECT 1
+ − 7172 EOF
+ − 7173 }
+ − 7174
+ − 7175 else
373
+ − 7176 conftest_rc="$?"
278
+ − 7177 echo "configure: failed program was:" >&5
+ − 7178 cat conftest.$ac_ext >&5
+ − 7179 fi
+ − 7180 rm -fr conftest*
265
+ − 7181 with_file_coding=yes
384
+ − 7182 extra_objs="$extra_objs console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o" && if test "$extra_verbose" = "yes"; then
+ − 7183 echo " xemacs will be linked with \"console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o\""
265
+ − 7184 fi
+ − 7185 fi
+ − 7186 fi
+ − 7187
276
+ − 7188
+ − 7189
149
+ − 7190 test -z "$window_system" && window_system="none"
+ − 7191
272
+ − 7192 if test "$window_system" = "none"; then
388
+ − 7193 for feature in menubars scrollbars toolbars dialogs dragndrop xface
272
+ − 7194 do
+ − 7195 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
+ − 7196 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
+ − 7197 fi
+ − 7198 eval "with_${feature}=no"
+ − 7199 done
+ − 7200 else
+ − 7201 test -z "$with_toolbars" && with_toolbars=yes
+ − 7202 fi
+ − 7203
+ − 7204 if test "$with_msw" != "yes"; then
+ − 7205 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
+ − 7206 do
+ − 7207 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
+ − 7208 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
+ − 7209 fi
+ − 7210 eval "with_${feature}=no"
+ − 7211 done
+ − 7212 else
+ − 7213 :
+ − 7214 fi
+ − 7215
+ − 7216 if test "$with_x11" != "yes"; then
434
+ − 7217 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
70
+ − 7218 do
149
+ − 7219 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
+ − 7220 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
70
+ − 7221 fi
149
+ − 7222 eval "with_${feature}=no"
70
+ − 7223 done
149
+ − 7224 fi
+ − 7225
442
+ − 7226 if test "$with_x11" = "yes"; then
+ − 7227 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
+ − 7228 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
726
+ − 7229 echo "configure:7230: checking for X11/extensions/shape.h" >&5
+ − 7230
+ − 7231 cat > conftest.$ac_ext <<EOF
+ − 7232 #line 7233 "configure"
442
+ − 7233 #include "confdefs.h"
+ − 7234 #include <X11/extensions/shape.h>
+ − 7235 EOF
+ − 7236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 7237 { (eval echo configure:7238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 7238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 7239 if test -z "$ac_err"; then
+ − 7240 rm -rf conftest*
+ − 7241 eval "ac_cv_header_$ac_safe=yes"
+ − 7242 else
+ − 7243 echo "$ac_err" >&5
+ − 7244 echo "configure: failed program was:" >&5
+ − 7245 cat conftest.$ac_ext >&5
+ − 7246 rm -rf conftest*
+ − 7247 eval "ac_cv_header_$ac_safe=no"
+ − 7248 fi
+ − 7249 rm -f conftest*
+ − 7250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 7251 echo "$ac_t""yes" 1>&6
+ − 7252
+ − 7253 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7254 Defining HAVE_BALLOON_HELP
+ − 7255 EOF
+ − 7256 cat >> confdefs.h <<\EOF
+ − 7257 #define HAVE_BALLOON_HELP 1
+ − 7258 EOF
+ − 7259 }
+ − 7260
+ − 7261 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
+ − 7262 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
+ − 7263 fi
+ − 7264 else
+ − 7265 echo "$ac_t""no" 1>&6
+ − 7266 fi
+ − 7267
+ − 7268 fi
+ − 7269
0
+ − 7270 bitmapdir=
+ − 7271
149
+ − 7272 case "$window_system" in
70
+ − 7273 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
272
+ − 7274 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
462
+ − 7275 gtk )
+ − 7276 HAVE_X_WINDOWS=no
+ − 7277 test "$with_gnome" = "yes" && echo " Using GNOME."
+ − 7278 test "$with_gnome" = "no" && echo " Using GTK."
+ − 7279 ;;
70
+ − 7280 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
0
+ − 7281 esac
+ − 7282
149
+ − 7283 case "$x_libraries" in *X11R4* )
+ − 7284 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
+ − 7285 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
+ − 7286 esac
+ − 7287
414
+ − 7288 echo "checking for WM_COMMAND option" 1>&6
726
+ − 7289 echo "configure:7290: checking for WM_COMMAND option" >&5;
414
+ − 7290 if test "$with_wmcommand" != "no"; then
+ − 7291 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7292 Defining HAVE_WMCOMMAND
+ − 7293 EOF
+ − 7294 cat >> confdefs.h <<\EOF
+ − 7295 #define HAVE_WMCOMMAND 1
177
+ − 7296 EOF
+ − 7297 }
+ − 7298
+ − 7299 fi
+ − 7300
149
+ − 7301 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
+ − 7302 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
+ − 7303 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
726
+ − 7304 echo "configure:7305: checking for X11/Xauth.h" >&5
+ − 7305
+ − 7306 cat > conftest.$ac_ext <<EOF
+ − 7307 #line 7308 "configure"
149
+ − 7308 #include "confdefs.h"
+ − 7309 #include <X11/Xauth.h>
+ − 7310 EOF
+ − 7311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 7312 { (eval echo configure:7313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 7313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 7314 if test -z "$ac_err"; then
+ − 7315 rm -rf conftest*
+ − 7316 eval "ac_cv_header_$ac_safe=yes"
+ − 7317 else
+ − 7318 echo "$ac_err" >&5
+ − 7319 echo "configure: failed program was:" >&5
+ − 7320 cat conftest.$ac_ext >&5
+ − 7321 rm -rf conftest*
+ − 7322 eval "ac_cv_header_$ac_safe=no"
+ − 7323 fi
+ − 7324 rm -f conftest*
+ − 7325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 7326 echo "$ac_t""yes" 1>&6
+ − 7327 :
+ − 7328 else
+ − 7329 echo "$ac_t""no" 1>&6
+ − 7330 with_xauth=no
+ − 7331 fi
+ − 7332 }
+ − 7333 test -z "$with_xauth" && {
+ − 7334 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
726
+ − 7335 echo "configure:7336: checking for XauGetAuthByAddr in -lXau" >&5
149
+ − 7336 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
+ − 7337
+ − 7338 xe_check_libs=" -lXau "
+ − 7339 cat > conftest.$ac_ext <<EOF
726
+ − 7340 #line 7341 "configure"
149
+ − 7341 #include "confdefs.h"
+ − 7342 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7343 /* We use char because int might match the return type of a gcc2
+ − 7344 builtin and then its argument prototype would still apply. */
+ − 7345 char XauGetAuthByAddr();
+ − 7346
+ − 7347 int main() {
+ − 7348 XauGetAuthByAddr()
+ − 7349 ; return 0; }
+ − 7350 EOF
726
+ − 7351 if { (eval echo configure:7352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 7352 rm -rf conftest*
+ − 7353 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7354 else
+ − 7355 echo "configure: failed program was:" >&5
+ − 7356 cat conftest.$ac_ext >&5
+ − 7357 rm -rf conftest*
+ − 7358 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7359 fi
+ − 7360 rm -f conftest*
+ − 7361 xe_check_libs=""
+ − 7362
151
+ − 7363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 7364 echo "$ac_t""yes" 1>&6
+ − 7365 :
+ − 7366 else
+ − 7367 echo "$ac_t""no" 1>&6
+ − 7368 with_xauth=no
+ − 7369 fi
+ − 7370
+ − 7371 }
+ − 7372 test -z "$with_xauth" && with_xauth=yes
+ − 7373 if test "$with_xauth" = "yes"; then
+ − 7374 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7375 Defining HAVE_XAUTH
+ − 7376 EOF
+ − 7377 cat >> confdefs.h <<\EOF
+ − 7378 #define HAVE_XAUTH 1
+ − 7379 EOF
+ − 7380 }
+ − 7381
159
+ − 7382
+ − 7383 T=""
462
+ − 7384 for W in $GTK_LIBS $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
159
+ − 7385 libs_xauth="$T"
+ − 7386
+ − 7387 fi
+ − 7388
149
+ − 7389
274
+ − 7390
149
+ − 7391
+ − 7392 if test "$with_tooltalk" != "no" ; then
+ − 7393 for dir in "" "Tt/" "desktop/" ; do
+ − 7394 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
+ − 7395 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
726
+ − 7396 echo "configure:7397: checking for ${dir}tt_c.h" >&5
+ − 7397
+ − 7398 cat > conftest.$ac_ext <<EOF
+ − 7399 #line 7400 "configure"
149
+ − 7400 #include "confdefs.h"
+ − 7401 #include <${dir}tt_c.h>
+ − 7402 EOF
+ − 7403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 7404 { (eval echo configure:7405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 7405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 7406 if test -z "$ac_err"; then
+ − 7407 rm -rf conftest*
+ − 7408 eval "ac_cv_header_$ac_safe=yes"
+ − 7409 else
+ − 7410 echo "$ac_err" >&5
+ − 7411 echo "configure: failed program was:" >&5
+ − 7412 cat conftest.$ac_ext >&5
+ − 7413 rm -rf conftest*
+ − 7414 eval "ac_cv_header_$ac_safe=no"
+ − 7415 fi
+ − 7416 rm -f conftest*
+ − 7417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 7418 echo "$ac_t""yes" 1>&6
442
+ − 7419 tt_c_h_file="${dir}tt_c.h"; break
149
+ − 7420 else
+ − 7421 echo "$ac_t""no" 1>&6
+ − 7422 fi
+ − 7423
+ − 7424 done
442
+ − 7425 if test -z "$tt_c_h_file"; then
284
+ − 7426 if test "$with_tooltalk" = "yes"; then
+ − 7427 (echo "$progname: Usage error:"
+ − 7428 echo " " "Unable to find required tooltalk header files."
+ − 7429 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 7430 fi
+ − 7431 with_tooltalk=no
+ − 7432 fi
149
+ − 7433 fi
+ − 7434 if test "$with_tooltalk" != "no" ; then
+ − 7435 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
+ − 7436
+ − 7437 xe_msg_checking="for tt_message_create in -ltt"
+ − 7438 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
+ − 7439 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
726
+ − 7440 echo "configure:7441: checking "$xe_msg_checking"" >&5
149
+ − 7441 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
+ − 7442
+ − 7443 xe_check_libs=" -ltt $extra_libs"
+ − 7444 cat > conftest.$ac_ext <<EOF
726
+ − 7445 #line 7446 "configure"
149
+ − 7446 #include "confdefs.h"
+ − 7447 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7448 /* We use char because int might match the return type of a gcc2
+ − 7449 builtin and then its argument prototype would still apply. */
+ − 7450 char tt_message_create();
+ − 7451
+ − 7452 int main() {
+ − 7453 tt_message_create()
+ − 7454 ; return 0; }
+ − 7455 EOF
726
+ − 7456 if { (eval echo configure:7457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 7457 rm -rf conftest*
+ − 7458 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7459 else
+ − 7460 echo "configure: failed program was:" >&5
+ − 7461 cat conftest.$ac_ext >&5
+ − 7462 rm -rf conftest*
+ − 7463 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7464 fi
+ − 7465 rm -f conftest*
+ − 7466 xe_check_libs=""
+ − 7467
151
+ − 7468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 7469 echo "$ac_t""yes" 1>&6
284
+ − 7470 tt_libs="-ltt $extra_libs"; break
149
+ − 7471 else
+ − 7472 echo "$ac_t""no" 1>&6
+ − 7473 :
+ − 7474 fi
+ − 7475
+ − 7476
+ − 7477 done
284
+ − 7478 if test -z "$tt_libs"; then
+ − 7479 if test "$with_tooltalk" = "yes"; then
+ − 7480 (echo "$progname: Usage error:"
+ − 7481 echo " " "Unable to find required tooltalk libraries."
+ − 7482 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 7483 fi
+ − 7484 with_tooltalk=no
+ − 7485 fi
+ − 7486 fi
+ − 7487 test -z "$with_tooltalk" && with_tooltalk=yes
149
+ − 7488 if test "$with_tooltalk" = "yes"; then
+ − 7489 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7490 Defining TOOLTALK
+ − 7491 EOF
+ − 7492 cat >> confdefs.h <<\EOF
+ − 7493 #define TOOLTALK 1
+ − 7494 EOF
+ − 7495 }
+ − 7496
+ − 7497 { test "$extra_verbose" = "yes" && cat << EOF
442
+ − 7498 Defining TT_C_H_FILE = "$tt_c_h_file"
+ − 7499 EOF
+ − 7500 cat >> confdefs.h <<EOF
+ − 7501 #define TT_C_H_FILE "$tt_c_h_file"
149
+ − 7502 EOF
+ − 7503 }
+ − 7504
151
+ − 7505 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
+ − 7506 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
+ − 7507 echo " xemacs will be linked with \"tooltalk.o\""
+ − 7508 fi
149
+ − 7509 fi
+ − 7510
+ − 7511 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
+ − 7512 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
726
+ − 7513 echo "configure:7514: checking for Dt/Dt.h" >&5
+ − 7514
+ − 7515 cat > conftest.$ac_ext <<EOF
+ − 7516 #line 7517 "configure"
149
+ − 7517 #include "confdefs.h"
+ − 7518 #include <Dt/Dt.h>
+ − 7519 EOF
+ − 7520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 7521 { (eval echo configure:7522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 7522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 7523 if test -z "$ac_err"; then
+ − 7524 rm -rf conftest*
+ − 7525 eval "ac_cv_header_$ac_safe=yes"
+ − 7526 else
+ − 7527 echo "$ac_err" >&5
+ − 7528 echo "configure: failed program was:" >&5
+ − 7529 cat conftest.$ac_ext >&5
+ − 7530 rm -rf conftest*
+ − 7531 eval "ac_cv_header_$ac_safe=no"
+ − 7532 fi
+ − 7533 rm -f conftest*
+ − 7534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 7535 echo "$ac_t""yes" 1>&6
+ − 7536 :
+ − 7537 else
+ − 7538 echo "$ac_t""no" 1>&6
+ − 7539 with_cde=no
136
+ − 7540 fi
+ − 7541 }
149
+ − 7542 test -z "$with_cde" && {
+ − 7543 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
726
+ − 7544 echo "configure:7545: checking for DtDndDragStart in -lDtSvc" >&5
149
+ − 7545 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
+ − 7546
+ − 7547 xe_check_libs=" -lDtSvc "
+ − 7548 cat > conftest.$ac_ext <<EOF
726
+ − 7549 #line 7550 "configure"
149
+ − 7550 #include "confdefs.h"
+ − 7551 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7552 /* We use char because int might match the return type of a gcc2
+ − 7553 builtin and then its argument prototype would still apply. */
+ − 7554 char DtDndDragStart();
+ − 7555
+ − 7556 int main() {
+ − 7557 DtDndDragStart()
+ − 7558 ; return 0; }
+ − 7559 EOF
726
+ − 7560 if { (eval echo configure:7561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 7561 rm -rf conftest*
+ − 7562 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7563 else
+ − 7564 echo "configure: failed program was:" >&5
+ − 7565 cat conftest.$ac_ext >&5
+ − 7566 rm -rf conftest*
+ − 7567 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7568 fi
+ − 7569 rm -f conftest*
+ − 7570 xe_check_libs=""
+ − 7571
151
+ − 7572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 7573 echo "$ac_t""yes" 1>&6
+ − 7574 :
+ − 7575 else
+ − 7576 echo "$ac_t""no" 1>&6
+ − 7577 with_cde=no
+ − 7578 fi
+ − 7579
+ − 7580 }
582
+ − 7581 if test "$with_dragndrop" = "no" ; then
+ − 7582 if test "$with_cde" = "yes" ; then
+ − 7583 echo "configure: warning: --with-cde forced to \`no'; no generic Drag'n'Drop support" 1>&2
+ − 7584 fi
+ − 7585 with_cde=no
+ − 7586 fi
149
+ − 7587 test -z "$with_cde" && with_cde=yes
+ − 7588 if test "$with_cde" = "yes" ; then
+ − 7589 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7590 Defining HAVE_CDE
+ − 7591 EOF
+ − 7592 cat >> confdefs.h <<\EOF
+ − 7593 #define HAVE_CDE 1
+ − 7594 EOF
+ − 7595 }
+ − 7596
151
+ − 7597 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
282
+ − 7598 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
149
+ − 7599 with_tooltalk=yes # CDE requires Tooltalk
167
+ − 7600 need_motif=yes # CDE requires Motif
149
+ − 7601 fi
+ − 7602
288
+ − 7603 test "$window_system" != "x11" && with_offix=no
+ − 7604 if test "$with_xmu" != yes -a "$with_x11" = yes; then
582
+ − 7605 if test "$with_offix" = "yes" ; then
+ − 7606 echo "configure: warning: --with-offix forced to \`no'; no real Xmu support" 1>&2
+ − 7607 fi
288
+ − 7608 with_offix=no
+ − 7609 fi
+ − 7610 if test "$with_dragndrop" = no; then
582
+ − 7611 if test "$with_offix" = "yes" ; then
+ − 7612 echo "configure: warning: --with-offix forced to \`no'; no generic Drag'n'Drop support" 1>&2
+ − 7613 fi
288
+ − 7614 with_offix=no
+ − 7615 fi
+ − 7616 if test "$with_cde" = yes; then
582
+ − 7617 if test "$with_offix" = "yes" ; then
+ − 7618 echo "configure: warning: --with-offix forced to \`no'; CDE already found" 1>&2
+ − 7619 fi
288
+ − 7620 with_offix=no
+ − 7621 fi
300
+ − 7622 test -z "$with_offix" && with_offix=no
288
+ − 7623 if test "$with_offix" = "yes"; then
+ − 7624 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7625 Defining HAVE_OFFIX_DND
+ − 7626 EOF
+ − 7627 cat >> confdefs.h <<\EOF
+ − 7628 #define HAVE_OFFIX_DND 1
+ − 7629 EOF
+ − 7630 }
+ − 7631
+ − 7632 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
+ − 7633 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
+ − 7634 fi
462
+ − 7635 if test "$with_gtk" = "yes"; then
+ − 7636 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
+ − 7637 fi
288
+ − 7638
282
+ − 7639 if test "$with_dragndrop" != "no" ; then
446
+ − 7640 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
726
+ − 7641 echo "configure:7642: checking if drag and drop API is needed" >&5
282
+ − 7642 if test -n "$dragndrop_proto" ; then
+ − 7643 with_dragndrop=yes
+ − 7644 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
+ − 7645 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7646 Defining HAVE_DRAGNDROP
+ − 7647 EOF
+ − 7648 cat >> confdefs.h <<\EOF
+ − 7649 #define HAVE_DRAGNDROP 1
+ − 7650 EOF
+ − 7651 }
+ − 7652
+ − 7653 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
+ − 7654 else
+ − 7655 with_dragndrop=no
+ − 7656 echo "$ac_t""no" 1>&6
+ − 7657 fi
+ − 7658 fi
+ − 7659
259
+ − 7660 echo "checking for LDAP" 1>&6
726
+ − 7661 echo "configure:7662: checking for LDAP" >&5
259
+ − 7662 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
+ − 7663 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
726
+ − 7664 echo "configure:7665: checking for ldap.h" >&5
+ − 7665
+ − 7666 cat > conftest.$ac_ext <<EOF
+ − 7667 #line 7668 "configure"
259
+ − 7668 #include "confdefs.h"
+ − 7669 #include <ldap.h>
+ − 7670 EOF
+ − 7671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 7672 { (eval echo configure:7673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 7673 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
259
+ − 7674 if test -z "$ac_err"; then
+ − 7675 rm -rf conftest*
+ − 7676 eval "ac_cv_header_$ac_safe=yes"
+ − 7677 else
+ − 7678 echo "$ac_err" >&5
+ − 7679 echo "configure: failed program was:" >&5
+ − 7680 cat conftest.$ac_ext >&5
+ − 7681 rm -rf conftest*
+ − 7682 eval "ac_cv_header_$ac_safe=no"
+ − 7683 fi
+ − 7684 rm -f conftest*
+ − 7685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 7686 echo "$ac_t""yes" 1>&6
+ − 7687 :
+ − 7688 else
+ − 7689 echo "$ac_t""no" 1>&6
+ − 7690 with_ldap=no
+ − 7691 fi
+ − 7692 }
+ − 7693 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
+ − 7694 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
726
+ − 7695 echo "configure:7696: checking for lber.h" >&5
+ − 7696
+ − 7697 cat > conftest.$ac_ext <<EOF
+ − 7698 #line 7699 "configure"
259
+ − 7699 #include "confdefs.h"
+ − 7700 #include <lber.h>
+ − 7701 EOF
+ − 7702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 7703 { (eval echo configure:7704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 7704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
259
+ − 7705 if test -z "$ac_err"; then
+ − 7706 rm -rf conftest*
+ − 7707 eval "ac_cv_header_$ac_safe=yes"
+ − 7708 else
+ − 7709 echo "$ac_err" >&5
+ − 7710 echo "configure: failed program was:" >&5
+ − 7711 cat conftest.$ac_ext >&5
+ − 7712 rm -rf conftest*
+ − 7713 eval "ac_cv_header_$ac_safe=no"
+ − 7714 fi
+ − 7715 rm -f conftest*
+ − 7716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 7717 echo "$ac_t""yes" 1>&6
+ − 7718 :
+ − 7719 else
+ − 7720 echo "$ac_t""no" 1>&6
+ − 7721 with_ldap=no
+ − 7722 fi
+ − 7723 }
272
+ − 7724 if test "$with_ldap" != "no"; then
418
+ − 7725
+ − 7726 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
726
+ − 7727 echo "configure:7728: checking for ldap_search in -lldap" >&5
418
+ − 7728 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
+ − 7729
+ − 7730 xe_check_libs=" -lldap "
+ − 7731 cat > conftest.$ac_ext <<EOF
726
+ − 7732 #line 7733 "configure"
418
+ − 7733 #include "confdefs.h"
+ − 7734 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7735 /* We use char because int might match the return type of a gcc2
+ − 7736 builtin and then its argument prototype would still apply. */
+ − 7737 char ldap_search();
+ − 7738
+ − 7739 int main() {
+ − 7740 ldap_search()
+ − 7741 ; return 0; }
+ − 7742 EOF
726
+ − 7743 if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
+ − 7744 rm -rf conftest*
+ − 7745 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7746 else
+ − 7747 echo "configure: failed program was:" >&5
+ − 7748 cat conftest.$ac_ext >&5
+ − 7749 rm -rf conftest*
+ − 7750 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7751 fi
+ − 7752 rm -f conftest*
+ − 7753 xe_check_libs=""
+ − 7754
+ − 7755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 7756 echo "$ac_t""yes" 1>&6
418
+ − 7757 with_ldap_nolber=yes
+ − 7758 else
+ − 7759 echo "$ac_t""no" 1>&6
+ − 7760 with_ldap_nolber=no
+ − 7761 fi
+ − 7762
+ − 7763
+ − 7764 test "$with_ldap_nolber" = "no" && {
+ − 7765 xe_msg_checking="for ldap_open in -lldap"
+ − 7766 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
+ − 7767 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
726
+ − 7768 echo "configure:7769: checking "$xe_msg_checking"" >&5
418
+ − 7769 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
+ − 7770
+ − 7771 xe_check_libs=" -lldap -llber"
+ − 7772 cat > conftest.$ac_ext <<EOF
726
+ − 7773 #line 7774 "configure"
418
+ − 7774 #include "confdefs.h"
+ − 7775 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7776 /* We use char because int might match the return type of a gcc2
+ − 7777 builtin and then its argument prototype would still apply. */
+ − 7778 char ldap_open();
+ − 7779
+ − 7780 int main() {
+ − 7781 ldap_open()
+ − 7782 ; return 0; }
+ − 7783 EOF
726
+ − 7784 if { (eval echo configure:7785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
+ − 7785 rm -rf conftest*
+ − 7786 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7787 else
+ − 7788 echo "configure: failed program was:" >&5
+ − 7789 cat conftest.$ac_ext >&5
+ − 7790 rm -rf conftest*
+ − 7791 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7792 fi
+ − 7793 rm -f conftest*
+ − 7794 xe_check_libs=""
+ − 7795
+ − 7796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 7797 echo "$ac_t""yes" 1>&6
418
+ − 7798 with_ldap_lber=yes
+ − 7799 else
+ − 7800 echo "$ac_t""no" 1>&6
+ − 7801 with_ldap_lber=no
259
+ − 7802 fi
+ − 7803
+ − 7804 }
422
+ − 7805 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
+ − 7806 xe_msg_checking="for ldap_open in -lldap"
+ − 7807 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
+ − 7808 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
726
+ − 7809 echo "configure:7810: checking "$xe_msg_checking"" >&5
422
+ − 7810 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
+ − 7811
+ − 7812 xe_check_libs=" -lldap -llber -lkrb"
+ − 7813 cat > conftest.$ac_ext <<EOF
726
+ − 7814 #line 7815 "configure"
422
+ − 7815 #include "confdefs.h"
+ − 7816 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7817 /* We use char because int might match the return type of a gcc2
+ − 7818 builtin and then its argument prototype would still apply. */
+ − 7819 char ldap_open();
+ − 7820
+ − 7821 int main() {
+ − 7822 ldap_open()
+ − 7823 ; return 0; }
+ − 7824 EOF
726
+ − 7825 if { (eval echo configure:7826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422
+ − 7826 rm -rf conftest*
+ − 7827 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7828 else
+ − 7829 echo "configure: failed program was:" >&5
+ − 7830 cat conftest.$ac_ext >&5
+ − 7831 rm -rf conftest*
+ − 7832 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7833 fi
+ − 7834 rm -f conftest*
+ − 7835 xe_check_libs=""
+ − 7836
+ − 7837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 7838 echo "$ac_t""yes" 1>&6
+ − 7839 with_ldap_krb=yes
+ − 7840 else
+ − 7841 echo "$ac_t""no" 1>&6
+ − 7842 with_ldap_krb=no
+ − 7843 fi
+ − 7844
+ − 7845 }
+ − 7846 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
+ − 7847 xe_msg_checking="for ldap_open in -lldap"
+ − 7848 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
+ − 7849 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
726
+ − 7850 echo "configure:7851: checking "$xe_msg_checking"" >&5
422
+ − 7851 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
+ − 7852
+ − 7853 xe_check_libs=" -lldap -llber -lkrb -ldes"
+ − 7854 cat > conftest.$ac_ext <<EOF
726
+ − 7855 #line 7856 "configure"
422
+ − 7856 #include "confdefs.h"
+ − 7857 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7858 /* We use char because int might match the return type of a gcc2
+ − 7859 builtin and then its argument prototype would still apply. */
+ − 7860 char ldap_open();
+ − 7861
+ − 7862 int main() {
+ − 7863 ldap_open()
+ − 7864 ; return 0; }
+ − 7865 EOF
726
+ − 7866 if { (eval echo configure:7867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422
+ − 7867 rm -rf conftest*
+ − 7868 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7869 else
+ − 7870 echo "configure: failed program was:" >&5
+ − 7871 cat conftest.$ac_ext >&5
+ − 7872 rm -rf conftest*
+ − 7873 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7874 fi
+ − 7875 rm -f conftest*
+ − 7876 xe_check_libs=""
+ − 7877
+ − 7878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 7879 echo "$ac_t""yes" 1>&6
+ − 7880 with_ldap_krbdes=yes
+ − 7881 else
+ − 7882 echo "$ac_t""no" 1>&6
+ − 7883 with_ldap_krbdes=no
+ − 7884 fi
+ − 7885
+ − 7886 }
+ − 7887 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
272
+ − 7888 fi
+ − 7889 if test "$with_ldap" = "yes"; then
259
+ − 7890 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7891 Defining HAVE_LDAP
+ − 7892 EOF
+ − 7893 cat >> confdefs.h <<\EOF
+ − 7894 #define HAVE_LDAP 1
+ − 7895 EOF
+ − 7896 }
+ − 7897
272
+ − 7898 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
+ − 7899 echo " xemacs will be linked with \"eldap.o\""
+ − 7900 fi
418
+ − 7901 if test "$with_ldap_nolber" = "yes" ; then
+ − 7902 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
+ − 7903 else
422
+ − 7904 if test "$with_ldap_krb" = "yes" ; then
+ − 7905 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
+ − 7906 fi
+ − 7907 if test "$with_ldap_krbdes" = "yes" ; then
+ − 7908 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
+ − 7909 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
+ − 7910 fi
272
+ − 7911 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
+ − 7912 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
418
+ − 7913 fi
+ − 7914 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
+ − 7915 do
+ − 7916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
726
+ − 7917 echo "configure:7918: checking for $ac_func" >&5
+ − 7918
+ − 7919 cat > conftest.$ac_ext <<EOF
+ − 7920 #line 7921 "configure"
418
+ − 7921 #include "confdefs.h"
+ − 7922 /* System header to define __stub macros and hopefully few prototypes,
+ − 7923 which can conflict with char $ac_func(); below. */
+ − 7924 #include <assert.h>
+ − 7925 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7926 /* We use char because int might match the return type of a gcc2
+ − 7927 builtin and then its argument prototype would still apply. */
+ − 7928 char $ac_func();
+ − 7929
+ − 7930 int main() {
+ − 7931
+ − 7932 /* The GNU C library defines this for functions which it implements
+ − 7933 to always fail with ENOSYS. Some functions are actually named
+ − 7934 something starting with __ and the normal name is an alias. */
+ − 7935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 7936 choke me
+ − 7937 #else
+ − 7938 $ac_func();
+ − 7939 #endif
+ − 7940
+ − 7941 ; return 0; }
+ − 7942 EOF
726
+ − 7943 if { (eval echo configure:7944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
418
+ − 7944 rm -rf conftest*
+ − 7945 eval "ac_cv_func_$ac_func=yes"
+ − 7946 else
+ − 7947 echo "configure: failed program was:" >&5
+ − 7948 cat conftest.$ac_ext >&5
+ − 7949 rm -rf conftest*
+ − 7950 eval "ac_cv_func_$ac_func=no"
+ − 7951 fi
+ − 7952 rm -f conftest*
+ − 7953
+ − 7954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 7955 echo "$ac_t""yes" 1>&6
+ − 7956 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 7957 { test "$extra_verbose" = "yes" && cat << EOF
+ − 7958 Defining $ac_tr_func
+ − 7959 EOF
+ − 7960 cat >> confdefs.h <<EOF
+ − 7961 #define $ac_tr_func 1
+ − 7962 EOF
+ − 7963 }
+ − 7964
+ − 7965 else
+ − 7966 echo "$ac_t""no" 1>&6
+ − 7967 fi
+ − 7968 done
+ − 7969
404
+ − 7970 fi
+ − 7971
442
+ − 7972 if test "$with_postgresql" != "no"; then
+ − 7973 echo "checking for PostgreSQL" 1>&6
726
+ − 7974 echo "configure:7975: checking for PostgreSQL" >&5
442
+ − 7975
+ − 7976 for header_dir in "" "pgsql/" "postgresql/"; do
+ − 7977 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
+ − 7978 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
726
+ − 7979 echo "configure:7980: checking for ${header_dir}libpq-fe.h" >&5
+ − 7980
+ − 7981 cat > conftest.$ac_ext <<EOF
+ − 7982 #line 7983 "configure"
442
+ − 7983 #include "confdefs.h"
+ − 7984 #include <${header_dir}libpq-fe.h>
+ − 7985 EOF
+ − 7986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 7987 { (eval echo configure:7988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 7988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 7989 if test -z "$ac_err"; then
+ − 7990 rm -rf conftest*
+ − 7991 eval "ac_cv_header_$ac_safe=yes"
+ − 7992 else
+ − 7993 echo "$ac_err" >&5
+ − 7994 echo "configure: failed program was:" >&5
+ − 7995 cat conftest.$ac_ext >&5
+ − 7996 rm -rf conftest*
+ − 7997 eval "ac_cv_header_$ac_safe=no"
+ − 7998 fi
+ − 7999 rm -f conftest*
+ − 8000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 8001 echo "$ac_t""yes" 1>&6
+ − 8002 libpq_fe_h_file=${header_dir}libpq-fe.h; break
+ − 8003 else
+ − 8004 echo "$ac_t""no" 1>&6
+ − 8005 fi
+ − 8006
+ − 8007 done
+ − 8008
+ − 8009 test -n "$libpq_fe_h_file" && {
+ − 8010 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
726
+ − 8011 echo "configure:8012: checking for PQconnectdb in -lpq" >&5
442
+ − 8012 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
+ − 8013
+ − 8014 xe_check_libs=" -lpq "
+ − 8015 cat > conftest.$ac_ext <<EOF
726
+ − 8016 #line 8017 "configure"
442
+ − 8017 #include "confdefs.h"
+ − 8018 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8019 /* We use char because int might match the return type of a gcc2
+ − 8020 builtin and then its argument prototype would still apply. */
+ − 8021 char PQconnectdb();
+ − 8022
+ − 8023 int main() {
+ − 8024 PQconnectdb()
+ − 8025 ; return 0; }
+ − 8026 EOF
726
+ − 8027 if { (eval echo configure:8028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 8028 rm -rf conftest*
+ − 8029 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8030 else
+ − 8031 echo "configure: failed program was:" >&5
+ − 8032 cat conftest.$ac_ext >&5
+ − 8033 rm -rf conftest*
+ − 8034 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8035 fi
+ − 8036 rm -f conftest*
+ − 8037 xe_check_libs=""
+ − 8038
+ − 8039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8040 echo "$ac_t""yes" 1>&6
+ − 8041 have_libpq=yes
+ − 8042 else
+ − 8043 echo "$ac_t""no" 1>&6
+ − 8044 fi
+ − 8045
+ − 8046 }
+ − 8047
+ − 8048 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
+ − 8049 with_postgresql=yes
+ − 8050 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8051 Defining HAVE_POSTGRESQL
+ − 8052 EOF
+ − 8053 cat >> confdefs.h <<\EOF
+ − 8054 #define HAVE_POSTGRESQL 1
+ − 8055 EOF
+ − 8056 }
+ − 8057
+ − 8058
+ − 8059 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
726
+ − 8060 echo "configure:8061: checking for PQconnectStart in -lpq" >&5
442
+ − 8061 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
+ − 8062
+ − 8063 xe_check_libs=" -lpq "
+ − 8064 cat > conftest.$ac_ext <<EOF
726
+ − 8065 #line 8066 "configure"
442
+ − 8066 #include "confdefs.h"
+ − 8067 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8068 /* We use char because int might match the return type of a gcc2
+ − 8069 builtin and then its argument prototype would still apply. */
+ − 8070 char PQconnectStart();
+ − 8071
+ − 8072 int main() {
+ − 8073 PQconnectStart()
+ − 8074 ; return 0; }
+ − 8075 EOF
726
+ − 8076 if { (eval echo configure:8077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 8077 rm -rf conftest*
+ − 8078 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8079 else
+ − 8080 echo "configure: failed program was:" >&5
+ − 8081 cat conftest.$ac_ext >&5
+ − 8082 rm -rf conftest*
+ − 8083 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8084 fi
+ − 8085 rm -f conftest*
+ − 8086 xe_check_libs=""
+ − 8087
+ − 8088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8089 echo "$ac_t""yes" 1>&6
+ − 8090 with_postgresqlv7=yes;
+ − 8091 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8092 Defining HAVE_POSTGRESQLV7
+ − 8093 EOF
+ − 8094 cat >> confdefs.h <<\EOF
+ − 8095 #define HAVE_POSTGRESQLV7 1
+ − 8096 EOF
+ − 8097 }
+ − 8098
+ − 8099 else
+ − 8100 echo "$ac_t""no" 1>&6
+ − 8101 fi
+ − 8102
+ − 8103
+ − 8104 { test "$extra_verbose" = "yes" && cat << EOF
+ − 8105 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
+ − 8106 EOF
+ − 8107 cat >> confdefs.h <<EOF
+ − 8108 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
+ − 8109 EOF
+ − 8110 }
+ − 8111
+ − 8112 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
+ − 8113 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
+ − 8114 echo " xemacs will be linked with \"postgresql.o\""
+ − 8115 fi
+ − 8116 elif test "$with_postgresql" = "yes"; then
+ − 8117 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
+ − 8118 fi
+ − 8119 fi
+ − 8120
149
+ − 8121
278
+ − 8122 if test "$window_system" != "none"; then
+ − 8123 echo "checking for graphics libraries" 1>&6
726
+ − 8124 echo "configure:8125: checking for graphics libraries" >&5
724
+ − 8125
+ − 8126 libpath_xpm=
+ − 8127 incpath_xpm=
+ − 8128 case "$opsys" in
+ − 8129 cygwin*)
+ − 8130 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
+ − 8131 cygwin_top=`eval "dirname ${cygwin_top}"`;
+ − 8132 cygwin_top="${cygwin_top}/..";
+ − 8133 case "$window_system" in
+ − 8134 x11) ;;
+ − 8135 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
+ − 8136 incpath_xpm="-I${cygwin_top}/include/noX"
+ − 8137 ;;
+ − 8138 gtk) ;;
+ − 8139 none) ;;
+ − 8140 *) ;;
+ − 8141 esac
+ − 8142 ;;
+ − 8143 *) ;;
+ − 8144 esac
373
+ − 8145 xpm_problem=""
+ − 8146 if test -z "$with_xpm"; then
724
+ − 8147 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
+ − 8148 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
193
+ − 8149 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
726
+ − 8150 echo "configure:8151: checking for Xpm - no older than 3.4f" >&5
272
+ − 8151 xe_check_libs=-lXpm
+ − 8152 cat > conftest.$ac_ext <<EOF
726
+ − 8153 #line 8154 "configure"
442
+ − 8154 #include "confdefs.h"
+ − 8155 #define XPM_NUMBERS
149
+ − 8156 #include <X11/xpm.h>
272
+ − 8157 int main(int c, char **v) {
+ − 8158 return c == 1 ? 0 :
+ − 8159 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
+ − 8160 XpmIncludeVersion < 30406 ? 2 : 0 ;}
+ − 8161 EOF
726
+ − 8162 if { (eval echo configure:8163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
159
+ − 8163 then
272
+ − 8164 ./conftest dummy_arg; xpm_status=$?;
373
+ − 8165 if test "$xpm_status" = "0"; then
272
+ − 8166 with_xpm=yes;
+ − 8167 else
+ − 8168 with_xpm=no;
373
+ − 8169 if test "$xpm_status" = "1"; then
272
+ − 8170 xpm_problem="Xpm library version and header file version don't match!"
373
+ − 8171 elif test "$xpm_status" = "2"; then
272
+ − 8172 xpm_problem="Xpm library version is too old!"
+ − 8173 else
+ − 8174 xpm_problem="Internal xpm detection logic error!"
+ − 8175 fi
+ − 8176 echo "
373
+ − 8177 *** WARNING *** $xpm_problem
278
+ − 8178 I'm not touching that with a 10-foot pole!
+ − 8179 If you really want to use the installed version of Xpm, rerun
373
+ − 8180 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
278
+ − 8181 fi
159
+ − 8182 else
373
+ − 8183 conftest_rc="$?"
159
+ − 8184 echo "configure: failed program was:" >&5
+ − 8185 cat conftest.$ac_ext >&5
+ − 8186 rm -fr conftest*
+ − 8187 with_xpm=no
+ − 8188 fi
+ − 8189 rm -fr conftest*
272
+ − 8190 xe_check_libs=
+ − 8191 echo "$ac_t""$with_xpm" 1>&6
193
+ − 8192 fi
+ − 8193 if test "$with_xpm" = "yes"; then
458
+ − 8194 { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 8195 Defining HAVE_XPM
+ − 8196 EOF
+ − 8197 cat >> confdefs.h <<\EOF
+ − 8198 #define HAVE_XPM 1
+ − 8199 EOF
+ − 8200 }
+ − 8201
724
+ − 8202 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
193
+ − 8203 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
724
+ − 8204 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
278
+ − 8205 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
726
+ − 8206 echo "configure:8207: checking for \"FOR_MSW\" xpm" >&5
278
+ − 8207 xe_check_libs=-lXpm
+ − 8208 cat > conftest.$ac_ext <<EOF
726
+ − 8209 #line 8210 "configure"
278
+ − 8210 #include "confdefs.h"
+ − 8211
+ − 8212 int main() {
+ − 8213 XpmCreatePixmapFromData()
+ − 8214 ; return 0; }
+ − 8215 EOF
726
+ − 8216 if { (eval echo configure:8217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
+ − 8217 rm -rf conftest*
+ − 8218 xpm_for_msw=no
+ − 8219 else
+ − 8220 echo "configure: failed program was:" >&5
+ − 8221 cat conftest.$ac_ext >&5
+ − 8222 rm -rf conftest*
+ − 8223 xpm_for_msw=yes
+ − 8224 fi
+ − 8225 rm -f conftest*
+ − 8226 xe_check_libs=
+ − 8227 echo "$ac_t""$xpm_for_msw" 1>&6
+ − 8228 if test "$xpm_for_msw" = "yes"; then
+ − 8229 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8230 Defining FOR_MSW
+ − 8231 EOF
+ − 8232 cat >> confdefs.h <<\EOF
+ − 8233 #define FOR_MSW 1
+ − 8234 EOF
+ − 8235 }
+ − 8236
+ − 8237 fi
+ − 8238 fi
+ − 8239
388
+ − 8240 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
+ − 8241 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
726
+ − 8242 echo "configure:8243: checking for compface.h" >&5
+ − 8243
+ − 8244 cat > conftest.$ac_ext <<EOF
+ − 8245 #line 8246 "configure"
388
+ − 8246 #include "confdefs.h"
+ − 8247 #include <compface.h>
+ − 8248 EOF
+ − 8249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 8250 { (eval echo configure:8251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 8251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
388
+ − 8252 if test -z "$ac_err"; then
+ − 8253 rm -rf conftest*
+ − 8254 eval "ac_cv_header_$ac_safe=yes"
+ − 8255 else
+ − 8256 echo "$ac_err" >&5
+ − 8257 echo "configure: failed program was:" >&5
+ − 8258 cat conftest.$ac_ext >&5
+ − 8259 rm -rf conftest*
+ − 8260 eval "ac_cv_header_$ac_safe=no"
+ − 8261 fi
+ − 8262 rm -f conftest*
+ − 8263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 8264 echo "$ac_t""yes" 1>&6
+ − 8265 :
+ − 8266 else
+ − 8267 echo "$ac_t""no" 1>&6
+ − 8268 with_xface=no
+ − 8269 fi
+ − 8270 }
+ − 8271 test -z "$with_xface" && {
+ − 8272 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
726
+ − 8273 echo "configure:8274: checking for UnGenFace in -lcompface" >&5
388
+ − 8274 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
+ − 8275
+ − 8276 xe_check_libs=" -lcompface "
+ − 8277 cat > conftest.$ac_ext <<EOF
726
+ − 8278 #line 8279 "configure"
388
+ − 8279 #include "confdefs.h"
+ − 8280 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8281 /* We use char because int might match the return type of a gcc2
+ − 8282 builtin and then its argument prototype would still apply. */
+ − 8283 char UnGenFace();
+ − 8284
+ − 8285 int main() {
+ − 8286 UnGenFace()
+ − 8287 ; return 0; }
+ − 8288 EOF
726
+ − 8289 if { (eval echo configure:8290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
388
+ − 8290 rm -rf conftest*
+ − 8291 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8292 else
+ − 8293 echo "configure: failed program was:" >&5
+ − 8294 cat conftest.$ac_ext >&5
+ − 8295 rm -rf conftest*
+ − 8296 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8297 fi
+ − 8298 rm -f conftest*
+ − 8299 xe_check_libs=""
+ − 8300
+ − 8301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8302 echo "$ac_t""yes" 1>&6
+ − 8303 :
+ − 8304 else
+ − 8305 echo "$ac_t""no" 1>&6
+ − 8306 with_xface=no
+ − 8307 fi
+ − 8308
+ − 8309 }
+ − 8310 test -z "$with_xface" && with_xface=yes
+ − 8311 if test "$with_xface" = "yes"; then
+ − 8312 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8313 Defining HAVE_XFACE
+ − 8314 EOF
+ − 8315 cat >> confdefs.h <<\EOF
+ − 8316 #define HAVE_XFACE 1
+ − 8317 EOF
+ − 8318 }
+ − 8319
+ − 8320 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
+ − 8321 fi
+ − 8322
373
+ − 8323 if test "$with_gif" != "no"; then
+ − 8324 with_gif="yes"
+ − 8325 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8326 Defining HAVE_GIF
+ − 8327 EOF
+ − 8328 cat >> confdefs.h <<\EOF
+ − 8329 #define HAVE_GIF 1
+ − 8330 EOF
+ − 8331 }
+ − 8332
+ − 8333 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
+ − 8334 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
+ − 8335 fi
+ − 8336 fi
+ − 8337
278
+ − 8338 if test "$with_png $with_tiff" != "no no"; then
+ − 8339
+ − 8340 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
726
+ − 8341 echo "configure:8342: checking for inflate in -lc" >&5
278
+ − 8342 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
+ − 8343
+ − 8344 xe_check_libs=" -lc "
+ − 8345 cat > conftest.$ac_ext <<EOF
726
+ − 8346 #line 8347 "configure"
149
+ − 8347 #include "confdefs.h"
+ − 8348 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8349 /* We use char because int might match the return type of a gcc2
+ − 8350 builtin and then its argument prototype would still apply. */
278
+ − 8351 char inflate();
+ − 8352
+ − 8353 int main() {
+ − 8354 inflate()
+ − 8355 ; return 0; }
+ − 8356 EOF
726
+ − 8357 if { (eval echo configure:8358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 8358 rm -rf conftest*
+ − 8359 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8360 else
+ − 8361 echo "configure: failed program was:" >&5
+ − 8362 cat conftest.$ac_ext >&5
+ − 8363 rm -rf conftest*
+ − 8364 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8365 fi
+ − 8366 rm -f conftest*
+ − 8367 xe_check_libs=""
+ − 8368
151
+ − 8369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 8370 echo "$ac_t""yes" 1>&6
278
+ − 8371 :
+ − 8372 else
+ − 8373 echo "$ac_t""no" 1>&6
+ − 8374
+ − 8375 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
726
+ − 8376 echo "configure:8377: checking for inflate in -lz" >&5
278
+ − 8377 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
+ − 8378
+ − 8379 xe_check_libs=" -lz "
+ − 8380 cat > conftest.$ac_ext <<EOF
726
+ − 8381 #line 8382 "configure"
278
+ − 8382 #include "confdefs.h"
+ − 8383 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8384 /* We use char because int might match the return type of a gcc2
+ − 8385 builtin and then its argument prototype would still apply. */
+ − 8386 char inflate();
+ − 8387
+ − 8388 int main() {
+ − 8389 inflate()
+ − 8390 ; return 0; }
+ − 8391 EOF
726
+ − 8392 if { (eval echo configure:8393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
+ − 8393 rm -rf conftest*
+ − 8394 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8395 else
+ − 8396 echo "configure: failed program was:" >&5
+ − 8397 cat conftest.$ac_ext >&5
+ − 8398 rm -rf conftest*
+ − 8399 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8400 fi
+ − 8401 rm -f conftest*
+ − 8402 xe_check_libs=""
+ − 8403
+ − 8404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8405 echo "$ac_t""yes" 1>&6
+ − 8406 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
+ − 8407 else
+ − 8408 echo "$ac_t""no" 1>&6
+ − 8409
+ − 8410 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
726
+ − 8411 echo "configure:8412: checking for inflate in -lgz" >&5
278
+ − 8412 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
+ − 8413
+ − 8414 xe_check_libs=" -lgz "
+ − 8415 cat > conftest.$ac_ext <<EOF
726
+ − 8416 #line 8417 "configure"
278
+ − 8417 #include "confdefs.h"
+ − 8418 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8419 /* We use char because int might match the return type of a gcc2
+ − 8420 builtin and then its argument prototype would still apply. */
+ − 8421 char inflate();
+ − 8422
+ − 8423 int main() {
+ − 8424 inflate()
+ − 8425 ; return 0; }
+ − 8426 EOF
726
+ − 8427 if { (eval echo configure:8428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
+ − 8428 rm -rf conftest*
+ − 8429 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8430 else
+ − 8431 echo "configure: failed program was:" >&5
+ − 8432 cat conftest.$ac_ext >&5
+ − 8433 rm -rf conftest*
+ − 8434 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8435 fi
+ − 8436 rm -f conftest*
+ − 8437 xe_check_libs=""
+ − 8438
+ − 8439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8440 echo "$ac_t""yes" 1>&6
+ − 8441 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
+ − 8442 else
+ − 8443 echo "$ac_t""no" 1>&6
+ − 8444 fi
+ − 8445
+ − 8446
+ − 8447 fi
+ − 8448
+ − 8449
+ − 8450 fi
+ − 8451
+ − 8452
193
+ − 8453 fi
+ − 8454
251
+ − 8455 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
+ − 8456 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
726
+ − 8457 echo "configure:8458: checking for jpeglib.h" >&5
+ − 8458
+ − 8459 cat > conftest.$ac_ext <<EOF
+ − 8460 #line 8461 "configure"
251
+ − 8461 #include "confdefs.h"
+ − 8462 #include <jpeglib.h>
0
+ − 8463 EOF
149
+ − 8464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 8465 { (eval echo configure:8466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 8466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
251
+ − 8467 if test -z "$ac_err"; then
+ − 8468 rm -rf conftest*
+ − 8469 eval "ac_cv_header_$ac_safe=yes"
+ − 8470 else
+ − 8471 echo "$ac_err" >&5
+ − 8472 echo "configure: failed program was:" >&5
+ − 8473 cat conftest.$ac_ext >&5
+ − 8474 rm -rf conftest*
+ − 8475 eval "ac_cv_header_$ac_safe=no"
+ − 8476 fi
+ − 8477 rm -f conftest*
+ − 8478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 8479 echo "$ac_t""yes" 1>&6
+ − 8480 :
+ − 8481 else
+ − 8482 echo "$ac_t""no" 1>&6
+ − 8483 with_jpeg=no
+ − 8484 fi
+ − 8485 }
+ − 8486 test -z "$with_jpeg" && {
+ − 8487 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
726
+ − 8488 echo "configure:8489: checking for jpeg_destroy_decompress in -ljpeg" >&5
251
+ − 8489 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
+ − 8490
+ − 8491 xe_check_libs=" -ljpeg "
+ − 8492 cat > conftest.$ac_ext <<EOF
726
+ − 8493 #line 8494 "configure"
251
+ − 8494 #include "confdefs.h"
+ − 8495 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8496 /* We use char because int might match the return type of a gcc2
+ − 8497 builtin and then its argument prototype would still apply. */
+ − 8498 char jpeg_destroy_decompress();
+ − 8499
+ − 8500 int main() {
+ − 8501 jpeg_destroy_decompress()
+ − 8502 ; return 0; }
+ − 8503 EOF
726
+ − 8504 if { (eval echo configure:8505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
251
+ − 8505 rm -rf conftest*
+ − 8506 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8507 else
+ − 8508 echo "configure: failed program was:" >&5
+ − 8509 cat conftest.$ac_ext >&5
+ − 8510 rm -rf conftest*
+ − 8511 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8512 fi
+ − 8513 rm -f conftest*
+ − 8514 xe_check_libs=""
+ − 8515
+ − 8516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8517 echo "$ac_t""yes" 1>&6
+ − 8518 :
+ − 8519 else
+ − 8520 echo "$ac_t""no" 1>&6
+ − 8521 with_jpeg=no
+ − 8522 fi
+ − 8523
+ − 8524 }
+ − 8525 test -z "$with_jpeg" && with_jpeg=yes
+ − 8526 if test "$with_jpeg" = "yes"; then
+ − 8527 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8528 Defining HAVE_JPEG
+ − 8529 EOF
+ − 8530 cat >> confdefs.h <<\EOF
+ − 8531 #define HAVE_JPEG 1
+ − 8532 EOF
+ − 8533 }
+ − 8534
+ − 8535 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
+ − 8536 fi
+ − 8537
373
+ − 8538 png_problem=""
251
+ − 8539 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
726
+ − 8540 echo "configure:8541: checking for pow" >&5
+ − 8541
+ − 8542 cat > conftest.$ac_ext <<EOF
+ − 8543 #line 8544 "configure"
251
+ − 8544 #include "confdefs.h"
+ − 8545 /* System header to define __stub macros and hopefully few prototypes,
+ − 8546 which can conflict with char pow(); below. */
+ − 8547 #include <assert.h>
243
+ − 8548 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8549 /* We use char because int might match the return type of a gcc2
+ − 8550 builtin and then its argument prototype would still apply. */
251
+ − 8551 char pow();
243
+ − 8552
+ − 8553 int main() {
251
+ − 8554
+ − 8555 /* The GNU C library defines this for functions which it implements
+ − 8556 to always fail with ENOSYS. Some functions are actually named
+ − 8557 something starting with __ and the normal name is an alias. */
+ − 8558 #if defined (__stub_pow) || defined (__stub___pow)
+ − 8559 choke me
+ − 8560 #else
+ − 8561 pow();
+ − 8562 #endif
+ − 8563
243
+ − 8564 ; return 0; }
+ − 8565 EOF
726
+ − 8566 if { (eval echo configure:8567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
251
+ − 8567 rm -rf conftest*
+ − 8568 eval "ac_cv_func_pow=yes"
+ − 8569 else
+ − 8570 echo "configure: failed program was:" >&5
+ − 8571 cat conftest.$ac_ext >&5
+ − 8572 rm -rf conftest*
+ − 8573 eval "ac_cv_func_pow=no"
+ − 8574 fi
+ − 8575 rm -f conftest*
+ − 8576
+ − 8577 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
+ − 8578 echo "$ac_t""yes" 1>&6
+ − 8579 :
+ − 8580 else
+ − 8581 echo "$ac_t""no" 1>&6
+ − 8582 with_png=no
+ − 8583 fi
+ − 8584 }
373
+ − 8585 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
+ − 8586 echo $ac_n "checking for png.h""... $ac_c" 1>&6
726
+ − 8587 echo "configure:8588: checking for png.h" >&5
+ − 8588
+ − 8589 cat > conftest.$ac_ext <<EOF
+ − 8590 #line 8591 "configure"
373
+ − 8591 #include "confdefs.h"
+ − 8592 #include <png.h>
+ − 8593 EOF
+ − 8594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 8595 { (eval echo configure:8596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 8596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
373
+ − 8597 if test -z "$ac_err"; then
+ − 8598 rm -rf conftest*
+ − 8599 eval "ac_cv_header_$ac_safe=yes"
+ − 8600 else
+ − 8601 echo "$ac_err" >&5
+ − 8602 echo "configure: failed program was:" >&5
+ − 8603 cat conftest.$ac_ext >&5
+ − 8604 rm -rf conftest*
+ − 8605 eval "ac_cv_header_$ac_safe=no"
+ − 8606 fi
+ − 8607 rm -f conftest*
+ − 8608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 8609 echo "$ac_t""yes" 1>&6
+ − 8610 :
+ − 8611 else
+ − 8612 echo "$ac_t""no" 1>&6
+ − 8613 with_png=no
+ − 8614 fi
+ − 8615 }
272
+ − 8616 test -z "$with_png" && {
+ − 8617 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
726
+ − 8618 echo "configure:8619: checking for png_read_image in -lpng" >&5
272
+ − 8619 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
+ − 8620
+ − 8621 xe_check_libs=" -lpng "
+ − 8622 cat > conftest.$ac_ext <<EOF
726
+ − 8623 #line 8624 "configure"
243
+ − 8624 #include "confdefs.h"
+ − 8625 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8626 /* We use char because int might match the return type of a gcc2
+ − 8627 builtin and then its argument prototype would still apply. */
272
+ − 8628 char png_read_image();
+ − 8629
+ − 8630 int main() {
+ − 8631 png_read_image()
+ − 8632 ; return 0; }
+ − 8633 EOF
726
+ − 8634 if { (eval echo configure:8635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
217
+ − 8635 rm -rf conftest*
+ − 8636 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8637 else
+ − 8638 echo "configure: failed program was:" >&5
+ − 8639 cat conftest.$ac_ext >&5
+ − 8640 rm -rf conftest*
+ − 8641 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8642 fi
+ − 8643 rm -f conftest*
+ − 8644 xe_check_libs=""
+ − 8645
+ − 8646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8647 echo "$ac_t""yes" 1>&6
272
+ − 8648 :
+ − 8649 else
+ − 8650 echo "$ac_t""no" 1>&6
+ − 8651 with_png=no
+ − 8652 fi
+ − 8653
+ − 8654 }
373
+ − 8655 if test -z "$with_png"; then
+ − 8656 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
726
+ − 8657 echo "configure:8658: checking for workable png version information" >&5
373
+ − 8658 xe_check_libs="-lpng -lz"
+ − 8659 cat > conftest.$ac_ext <<EOF
726
+ − 8660 #line 8661 "configure"
373
+ − 8661 #include "confdefs.h"
+ − 8662 #include <png.h>
+ − 8663 int main(int c, char **v) {
+ − 8664 if (c == 1) return 0;
+ − 8665 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
+ − 8666 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
+ − 8667 EOF
726
+ − 8668 if { (eval echo configure:8669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
373
+ − 8669 then
+ − 8670 ./conftest dummy_arg; png_status=$?;
+ − 8671 if test "$png_status" = "0"; then
+ − 8672 with_png=yes;
+ − 8673 else
+ − 8674 with_png=no;
+ − 8675 if test "$png_status" = "1"; then
+ − 8676 png_problem="PNG library version and header file don't match!"
+ − 8677 elif test "$png_status" = "2"; then
+ − 8678 png_problem="PNG library version too old (pre 1.0.2)!"
+ − 8679 fi
+ − 8680 echo "
+ − 8681 *** WARNING *** $png_problem
+ − 8682 I'm not touching that with a 10-foot pole!
+ − 8683 If you really want to use the installed version of libPNG, rerun
+ − 8684 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
+ − 8685 fi
+ − 8686 else
+ − 8687 conftest_rc="$?"
+ − 8688 echo "configure: failed program was:" >&5
+ − 8689 cat conftest.$ac_ext >&5
+ − 8690 rm -fr conftest*
+ − 8691 with_png=no
+ − 8692 fi
+ − 8693 rm -fr conftest*
+ − 8694 xe_check_libs=
+ − 8695 echo "$ac_t""$with_png" 1>&6
+ − 8696 fi
251
+ − 8697 if test "$with_png" = "yes"; then
+ − 8698 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8699 Defining HAVE_PNG
+ − 8700 EOF
+ − 8701 cat >> confdefs.h <<\EOF
+ − 8702 #define HAVE_PNG 1
+ − 8703 EOF
+ − 8704 }
+ − 8705
272
+ − 8706 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
251
+ − 8707 fi
+ − 8708
272
+ − 8709 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
+ − 8710 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
726
+ − 8711 echo "configure:8712: checking for tiffio.h" >&5
+ − 8712
+ − 8713 cat > conftest.$ac_ext <<EOF
+ − 8714 #line 8715 "configure"
272
+ − 8715 #include "confdefs.h"
+ − 8716 #include <tiffio.h>
+ − 8717 EOF
+ − 8718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 8719 { (eval echo configure:8720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 8720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
272
+ − 8721 if test -z "$ac_err"; then
+ − 8722 rm -rf conftest*
+ − 8723 eval "ac_cv_header_$ac_safe=yes"
+ − 8724 else
+ − 8725 echo "$ac_err" >&5
+ − 8726 echo "configure: failed program was:" >&5
+ − 8727 cat conftest.$ac_ext >&5
+ − 8728 rm -rf conftest*
+ − 8729 eval "ac_cv_header_$ac_safe=no"
+ − 8730 fi
+ − 8731 rm -f conftest*
+ − 8732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 8733 echo "$ac_t""yes" 1>&6
+ − 8734 :
+ − 8735 else
+ − 8736 echo "$ac_t""no" 1>&6
+ − 8737 with_tiff=no
+ − 8738 fi
+ − 8739 }
+ − 8740 test -z "$with_tiff" && {
286
+ − 8741 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
726
+ − 8742 echo "configure:8743: checking for TIFFClientOpen in -ltiff" >&5
286
+ − 8743 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
251
+ − 8744
272
+ − 8745 xe_check_libs=" -ltiff "
+ − 8746 cat > conftest.$ac_ext <<EOF
726
+ − 8747 #line 8748 "configure"
217
+ − 8748 #include "confdefs.h"
+ − 8749 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8750 /* We use char because int might match the return type of a gcc2
+ − 8751 builtin and then its argument prototype would still apply. */
286
+ − 8752 char TIFFClientOpen();
+ − 8753
+ − 8754 int main() {
+ − 8755 TIFFClientOpen()
+ − 8756 ; return 0; }
+ − 8757 EOF
726
+ − 8758 if { (eval echo configure:8759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
217
+ − 8759 rm -rf conftest*
+ − 8760 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8761 else
+ − 8762 echo "configure: failed program was:" >&5
+ − 8763 cat conftest.$ac_ext >&5
+ − 8764 rm -rf conftest*
+ − 8765 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8766 fi
+ − 8767 rm -f conftest*
+ − 8768 xe_check_libs=""
+ − 8769
+ − 8770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8771 echo "$ac_t""yes" 1>&6
272
+ − 8772 :
+ − 8773 else
+ − 8774 echo "$ac_t""no" 1>&6
+ − 8775 with_tiff=no
+ − 8776 fi
+ − 8777
+ − 8778 }
+ − 8779 test -z "$with_tiff" && with_tiff=yes
251
+ − 8780 if test "$with_tiff" = "yes"; then
+ − 8781 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8782 Defining HAVE_TIFF
+ − 8783 EOF
+ − 8784 cat >> confdefs.h <<\EOF
+ − 8785 #define HAVE_TIFF 1
+ − 8786 EOF
+ − 8787 }
+ − 8788
272
+ − 8789 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
251
+ − 8790 fi
278
+ − 8791 fi
+ − 8792
+ − 8793
462
+ − 8794 if test "$with_gtk" = "yes"; then
+ − 8795 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
+ − 8796 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
726
+ − 8797 echo "configure:8798: checking for compface.h" >&5
+ − 8798
+ − 8799 cat > conftest.$ac_ext <<EOF
+ − 8800 #line 8801 "configure"
462
+ − 8801 #include "confdefs.h"
+ − 8802 #include <compface.h>
+ − 8803 EOF
+ − 8804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 8805 { (eval echo configure:8806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
462
+ − 8806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 8807 if test -z "$ac_err"; then
+ − 8808 rm -rf conftest*
+ − 8809 eval "ac_cv_header_$ac_safe=yes"
+ − 8810 else
+ − 8811 echo "$ac_err" >&5
+ − 8812 echo "configure: failed program was:" >&5
+ − 8813 cat conftest.$ac_ext >&5
+ − 8814 rm -rf conftest*
+ − 8815 eval "ac_cv_header_$ac_safe=no"
+ − 8816 fi
+ − 8817 rm -f conftest*
+ − 8818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 8819 echo "$ac_t""yes" 1>&6
+ − 8820 :
+ − 8821 else
+ − 8822 echo "$ac_t""no" 1>&6
+ − 8823 with_xface=no
+ − 8824 fi
+ − 8825 }
+ − 8826 test -z "$with_xface" && {
+ − 8827 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
726
+ − 8828 echo "configure:8829: checking for UnGenFace in -lcompface" >&5
462
+ − 8829 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
+ − 8830
+ − 8831 xe_check_libs=" -lcompface "
+ − 8832 cat > conftest.$ac_ext <<EOF
726
+ − 8833 #line 8834 "configure"
462
+ − 8834 #include "confdefs.h"
+ − 8835 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8836 /* We use char because int might match the return type of a gcc2
+ − 8837 builtin and then its argument prototype would still apply. */
+ − 8838 char UnGenFace();
+ − 8839
+ − 8840 int main() {
+ − 8841 UnGenFace()
+ − 8842 ; return 0; }
+ − 8843 EOF
726
+ − 8844 if { (eval echo configure:8845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 8845 rm -rf conftest*
+ − 8846 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8847 else
+ − 8848 echo "configure: failed program was:" >&5
+ − 8849 cat conftest.$ac_ext >&5
+ − 8850 rm -rf conftest*
+ − 8851 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8852 fi
+ − 8853 rm -f conftest*
+ − 8854 xe_check_libs=""
+ − 8855
+ − 8856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8857 echo "$ac_t""yes" 1>&6
+ − 8858 :
+ − 8859 else
+ − 8860 echo "$ac_t""no" 1>&6
+ − 8861 with_xface=no
+ − 8862 fi
+ − 8863
+ − 8864 }
+ − 8865 test -z "$with_xface" && with_xface=yes
+ − 8866 if test "$with_xface" = "yes"; then
+ − 8867 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8868 Defining HAVE_XFACE
+ − 8869 EOF
+ − 8870 cat >> confdefs.h <<\EOF
+ − 8871 #define HAVE_XFACE 1
+ − 8872 EOF
+ − 8873 }
+ − 8874
+ − 8875 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
+ − 8876 fi
+ − 8877 fi
+ − 8878
+ − 8879
+ − 8880
278
+ − 8881 if test "$with_x11" = "yes"; then
+ − 8882 echo "checking for X11 graphics libraries" 1>&6
726
+ − 8883 echo "configure:8884: checking for X11 graphics libraries" >&5
+ − 8884 fi
+ − 8885
+ − 8886 case "$with_widgets" in
+ − 8887 "yes" | "athena") detect_athena=yes ;;
+ − 8888 *) detect_athena=no ;;
+ − 8889 esac
+ − 8890
+ − 8891 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
434
+ − 8892 echo "checking for the Athena widgets" 1>&6
726
+ − 8893 echo "configure:8894: checking for the Athena widgets" >&5
434
+ − 8894
+ − 8895 case "$with_athena" in
+ − 8896 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
+ − 8897 "3d") athena_variant=Xaw3d athena_3d=yes ;;
+ − 8898 "next") athena_variant=neXtaw athena_3d=yes ;;
+ − 8899 "95") athena_variant=Xaw95 athena_3d=yes ;;
+ − 8900 "xpm") athena_variant=XawXpm athena_3d=yes ;;
+ − 8901 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
+ − 8902 esac
+ − 8903
+ − 8904 if test "$athena_3d" = "no"; then
193
+ − 8905
434
+ − 8906 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
726
+ − 8907 echo "configure:8908: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
434
+ − 8908 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
+ − 8909
+ − 8910 xe_check_libs=" -l$athena_variant "
+ − 8911 cat > conftest.$ac_ext <<EOF
726
+ − 8912 #line 8913 "configure"
193
+ − 8913 #include "confdefs.h"
+ − 8914 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8915 /* We use char because int might match the return type of a gcc2
+ − 8916 builtin and then its argument prototype would still apply. */
+ − 8917 char XawScrollbarSetThumb();
+ − 8918
+ − 8919 int main() {
+ − 8920 XawScrollbarSetThumb()
+ − 8921 ; return 0; }
+ − 8922 EOF
726
+ − 8923 if { (eval echo configure:8924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
434
+ − 8924 rm -rf conftest*
+ − 8925 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8926 else
+ − 8927 echo "configure: failed program was:" >&5
+ − 8928 cat conftest.$ac_ext >&5
+ − 8929 rm -rf conftest*
+ − 8930 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8931 fi
+ − 8932 rm -f conftest*
+ − 8933 xe_check_libs=""
+ − 8934
+ − 8935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8936 echo "$ac_t""yes" 1>&6
+ − 8937
+ − 8938 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
726
+ − 8939 echo "configure:8940: checking for threeDClassRec in -l$athena_variant" >&5
434
+ − 8940 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
+ − 8941
+ − 8942 xe_check_libs=" -l$athena_variant "
+ − 8943 cat > conftest.$ac_ext <<EOF
726
+ − 8944 #line 8945 "configure"
434
+ − 8945 #include "confdefs.h"
+ − 8946 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8947 /* We use char because int might match the return type of a gcc2
+ − 8948 builtin and then its argument prototype would still apply. */
+ − 8949 char threeDClassRec();
+ − 8950
+ − 8951 int main() {
+ − 8952 threeDClassRec()
+ − 8953 ; return 0; }
+ − 8954 EOF
726
+ − 8955 if { (eval echo configure:8956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
561
+ − 8956 rm -rf conftest*
+ − 8957 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8958 else
+ − 8959 echo "configure: failed program was:" >&5
+ − 8960 cat conftest.$ac_ext >&5
+ − 8961 rm -rf conftest*
+ − 8962 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8963 fi
+ − 8964 rm -f conftest*
+ − 8965 xe_check_libs=""
+ − 8966
+ − 8967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8968 echo "$ac_t""yes" 1>&6
+ − 8969 echo "configure: warning: Could not find a non-3d Athena widget library." 1>&2
434
+ − 8970 else
+ − 8971 echo "$ac_t""no" 1>&6
+ − 8972 athena_lib=$athena_variant
+ − 8973 fi
+ − 8974
+ − 8975
+ − 8976
+ − 8977 else
+ − 8978 echo "$ac_t""no" 1>&6
561
+ − 8979 echo "configure: warning: Could not find an Athena widget library." 1>&2
434
+ − 8980 fi
+ − 8981
+ − 8982
+ − 8983 else
+ − 8984
+ − 8985 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
726
+ − 8986 echo "configure:8987: checking for threeDClassRec in -l$athena_variant" >&5
434
+ − 8987 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
+ − 8988
+ − 8989 xe_check_libs=" -l$athena_variant "
+ − 8990 cat > conftest.$ac_ext <<EOF
726
+ − 8991 #line 8992 "configure"
434
+ − 8992 #include "confdefs.h"
+ − 8993 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8994 /* We use char because int might match the return type of a gcc2
+ − 8995 builtin and then its argument prototype would still apply. */
+ − 8996 char threeDClassRec();
+ − 8997
+ − 8998 int main() {
+ − 8999 threeDClassRec()
+ − 9000 ; return 0; }
+ − 9001 EOF
726
+ − 9002 if { (eval echo configure:9003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
434
+ − 9003 rm -rf conftest*
+ − 9004 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9005 else
+ − 9006 echo "configure: failed program was:" >&5
+ − 9007 cat conftest.$ac_ext >&5
+ − 9008 rm -rf conftest*
+ − 9009 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9010 fi
+ − 9011 rm -f conftest*
+ − 9012 xe_check_libs=""
+ − 9013
+ − 9014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 9015 echo "$ac_t""yes" 1>&6
+ − 9016 athena_lib=$athena_variant
+ − 9017 else
+ − 9018 echo "$ac_t""no" 1>&6
+ − 9019 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
726
+ − 9020 echo "configure:9021: checking for threeDClassRec in -lXaw" >&5
434
+ − 9021 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
+ − 9022
+ − 9023 xe_check_libs=" -lXaw "
+ − 9024 cat > conftest.$ac_ext <<EOF
726
+ − 9025 #line 9026 "configure"
434
+ − 9026 #include "confdefs.h"
+ − 9027 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9028 /* We use char because int might match the return type of a gcc2
+ − 9029 builtin and then its argument prototype would still apply. */
+ − 9030 char threeDClassRec();
+ − 9031
+ − 9032 int main() {
+ − 9033 threeDClassRec()
+ − 9034 ; return 0; }
+ − 9035 EOF
726
+ − 9036 if { (eval echo configure:9037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
193
+ − 9037 rm -rf conftest*
+ − 9038 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9039 else
+ − 9040 echo "configure: failed program was:" >&5
+ − 9041 cat conftest.$ac_ext >&5
+ − 9042 rm -rf conftest*
+ − 9043 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9044 fi
+ − 9045 rm -f conftest*
+ − 9046 xe_check_libs=""
+ − 9047
+ − 9048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 9049 echo "$ac_t""yes" 1>&6
438
+ − 9050 athena_lib=Xaw;
561
+ − 9051 echo "configure: warning: Assuming that libXaw is actually $athena_variant." 1>&2;
434
+ − 9052
+ − 9053 else
+ − 9054 echo "$ac_t""no" 1>&6
561
+ − 9055 echo "configure: warning: Could not find a 3d Athena widget library that looked like $athena_variant." 1>&2
434
+ − 9056 fi
+ − 9057
+ − 9058
+ − 9059 fi
+ − 9060
+ − 9061
+ − 9062 fi
+ − 9063
+ − 9064 if test "$athena_3d" = "no"; then
+ − 9065 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 9066 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
726
+ − 9067 echo "configure:9068: checking for X11/Xaw/ThreeD.h" >&5
+ − 9068
+ − 9069 cat > conftest.$ac_ext <<EOF
+ − 9070 #line 9071 "configure"
434
+ − 9071 #include "confdefs.h"
+ − 9072 #include <X11/Xaw/ThreeD.h>
+ − 9073 EOF
+ − 9074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 9075 { (eval echo configure:9076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
561
+ − 9076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9077 if test -z "$ac_err"; then
+ − 9078 rm -rf conftest*
+ − 9079 eval "ac_cv_header_$ac_safe=yes"
+ − 9080 else
+ − 9081 echo "$ac_err" >&5
+ − 9082 echo "configure: failed program was:" >&5
+ − 9083 cat conftest.$ac_ext >&5
+ − 9084 rm -rf conftest*
+ − 9085 eval "ac_cv_header_$ac_safe=no"
+ − 9086 fi
+ − 9087 rm -f conftest*
+ − 9088 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9089 echo "$ac_t""yes" 1>&6
+ − 9090 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
434
+ − 9091 else
+ − 9092 echo "$ac_t""no" 1>&6
+ − 9093 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
+ − 9094 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
726
+ − 9095 echo "configure:9096: checking for X11/Xaw/XawInit.h" >&5
+ − 9096
+ − 9097 cat > conftest.$ac_ext <<EOF
+ − 9098 #line 9099 "configure"
434
+ − 9099 #include "confdefs.h"
+ − 9100 #include <X11/Xaw/XawInit.h>
+ − 9101 EOF
+ − 9102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 9103 { (eval echo configure:9104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 9104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9105 if test -z "$ac_err"; then
+ − 9106 rm -rf conftest*
+ − 9107 eval "ac_cv_header_$ac_safe=yes"
+ − 9108 else
+ − 9109 echo "$ac_err" >&5
+ − 9110 echo "configure: failed program was:" >&5
+ − 9111 cat conftest.$ac_ext >&5
+ − 9112 rm -rf conftest*
+ − 9113 eval "ac_cv_header_$ac_safe=no"
+ − 9114 fi
+ − 9115 rm -f conftest*
+ − 9116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9117 echo "$ac_t""yes" 1>&6
+ − 9118 athena_h_path=X11/Xaw
+ − 9119 else
+ − 9120 echo "$ac_t""no" 1>&6
561
+ − 9121 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
434
+ − 9122 fi
+ − 9123
+ − 9124 fi
+ − 9125
+ − 9126 else
+ − 9127 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
+ − 9128 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
726
+ − 9129 echo "configure:9130: checking for X11/$athena_variant/XawInit.h" >&5
+ − 9130
+ − 9131 cat > conftest.$ac_ext <<EOF
+ − 9132 #line 9133 "configure"
434
+ − 9133 #include "confdefs.h"
+ − 9134 #include <X11/$athena_variant/XawInit.h>
+ − 9135 EOF
+ − 9136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 9137 { (eval echo configure:9138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 9138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9139 if test -z "$ac_err"; then
+ − 9140 rm -rf conftest*
+ − 9141 eval "ac_cv_header_$ac_safe=yes"
+ − 9142 else
+ − 9143 echo "$ac_err" >&5
+ − 9144 echo "configure: failed program was:" >&5
+ − 9145 cat conftest.$ac_ext >&5
+ − 9146 rm -rf conftest*
+ − 9147 eval "ac_cv_header_$ac_safe=no"
+ − 9148 fi
+ − 9149 rm -f conftest*
+ − 9150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9151 echo "$ac_t""yes" 1>&6
+ − 9152 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 9153 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
726
+ − 9154 echo "configure:9155: checking for X11/$athena_variant/ThreeD.h" >&5
+ − 9155
+ − 9156 cat > conftest.$ac_ext <<EOF
+ − 9157 #line 9158 "configure"
434
+ − 9158 #include "confdefs.h"
+ − 9159 #include <X11/$athena_variant/ThreeD.h>
+ − 9160 EOF
+ − 9161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 9162 { (eval echo configure:9163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 9163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9164 if test -z "$ac_err"; then
+ − 9165 rm -rf conftest*
+ − 9166 eval "ac_cv_header_$ac_safe=yes"
+ − 9167 else
+ − 9168 echo "$ac_err" >&5
+ − 9169 echo "configure: failed program was:" >&5
+ − 9170 cat conftest.$ac_ext >&5
+ − 9171 rm -rf conftest*
+ − 9172 eval "ac_cv_header_$ac_safe=no"
+ − 9173 fi
+ − 9174 rm -f conftest*
+ − 9175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9176 echo "$ac_t""yes" 1>&6
+ − 9177 athena_h_path=X11/$athena_variant
+ − 9178 else
+ − 9179 echo "$ac_t""no" 1>&6
+ − 9180 fi
+ − 9181
+ − 9182 else
+ − 9183 echo "$ac_t""no" 1>&6
+ − 9184 fi
+ − 9185
+ − 9186
440
+ − 9187 if test -z "$athena_h_path"; then
+ − 9188 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
+ − 9189 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
726
+ − 9190 echo "configure:9191: checking for $athena_variant/XawInit.h" >&5
+ − 9191
+ − 9192 cat > conftest.$ac_ext <<EOF
+ − 9193 #line 9194 "configure"
440
+ − 9194 #include "confdefs.h"
+ − 9195 #include <$athena_variant/XawInit.h>
+ − 9196 EOF
+ − 9197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 9198 { (eval echo configure:9199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
+ − 9199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9200 if test -z "$ac_err"; then
+ − 9201 rm -rf conftest*
+ − 9202 eval "ac_cv_header_$ac_safe=yes"
+ − 9203 else
+ − 9204 echo "$ac_err" >&5
+ − 9205 echo "configure: failed program was:" >&5
+ − 9206 cat conftest.$ac_ext >&5
+ − 9207 rm -rf conftest*
+ − 9208 eval "ac_cv_header_$ac_safe=no"
+ − 9209 fi
+ − 9210 rm -f conftest*
+ − 9211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9212 echo "$ac_t""yes" 1>&6
+ − 9213 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 9214 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
726
+ − 9215 echo "configure:9216: checking for $athena_variant/ThreeD.h" >&5
+ − 9216
+ − 9217 cat > conftest.$ac_ext <<EOF
+ − 9218 #line 9219 "configure"
440
+ − 9219 #include "confdefs.h"
+ − 9220 #include <$athena_variant/ThreeD.h>
+ − 9221 EOF
+ − 9222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 9223 { (eval echo configure:9224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
+ − 9224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9225 if test -z "$ac_err"; then
+ − 9226 rm -rf conftest*
+ − 9227 eval "ac_cv_header_$ac_safe=yes"
+ − 9228 else
+ − 9229 echo "$ac_err" >&5
+ − 9230 echo "configure: failed program was:" >&5
+ − 9231 cat conftest.$ac_ext >&5
+ − 9232 rm -rf conftest*
+ − 9233 eval "ac_cv_header_$ac_safe=no"
+ − 9234 fi
+ − 9235 rm -f conftest*
+ − 9236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9237 echo "$ac_t""yes" 1>&6
+ − 9238 athena_h_path=$athena_variant
+ − 9239 else
+ − 9240 echo "$ac_t""no" 1>&6
+ − 9241 fi
+ − 9242
+ − 9243 else
+ − 9244 echo "$ac_t""no" 1>&6
+ − 9245 fi
+ − 9246
+ − 9247 fi
+ − 9248
434
+ − 9249 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
+ − 9250 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
+ − 9251 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
726
+ − 9252 echo "configure:9253: checking for X11/Xaw3d/XawInit.h" >&5
+ − 9253
+ − 9254 cat > conftest.$ac_ext <<EOF
+ − 9255 #line 9256 "configure"
434
+ − 9256 #include "confdefs.h"
+ − 9257 #include <X11/Xaw3d/XawInit.h>
+ − 9258 EOF
+ − 9259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 9260 { (eval echo configure:9261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 9261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9262 if test -z "$ac_err"; then
+ − 9263 rm -rf conftest*
+ − 9264 eval "ac_cv_header_$ac_safe=yes"
+ − 9265 else
+ − 9266 echo "$ac_err" >&5
+ − 9267 echo "configure: failed program was:" >&5
+ − 9268 cat conftest.$ac_ext >&5
+ − 9269 rm -rf conftest*
+ − 9270 eval "ac_cv_header_$ac_safe=no"
+ − 9271 fi
+ − 9272 rm -f conftest*
+ − 9273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9274 echo "$ac_t""yes" 1>&6
+ − 9275 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 9276 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
726
+ − 9277 echo "configure:9278: checking for X11/Xaw3d/ThreeD.h" >&5
+ − 9278
+ − 9279 cat > conftest.$ac_ext <<EOF
+ − 9280 #line 9281 "configure"
434
+ − 9281 #include "confdefs.h"
+ − 9282 #include <X11/Xaw3d/ThreeD.h>
+ − 9283 EOF
+ − 9284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 9285 { (eval echo configure:9286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 9286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9287 if test -z "$ac_err"; then
+ − 9288 rm -rf conftest*
+ − 9289 eval "ac_cv_header_$ac_safe=yes"
+ − 9290 else
+ − 9291 echo "$ac_err" >&5
+ − 9292 echo "configure: failed program was:" >&5
+ − 9293 cat conftest.$ac_ext >&5
+ − 9294 rm -rf conftest*
+ − 9295 eval "ac_cv_header_$ac_safe=no"
+ − 9296 fi
+ − 9297 rm -f conftest*
+ − 9298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9299 echo "$ac_t""yes" 1>&6
+ − 9300
561
+ − 9301 echo "configure: warning: Assuming that X11/Xaw3d headers are suitable for $athena_variant." 1>&2
434
+ − 9302 athena_h_path=X11/Xaw3d
+ − 9303
+ − 9304 else
+ − 9305 echo "$ac_t""no" 1>&6
+ − 9306 fi
+ − 9307
+ − 9308 else
+ − 9309 echo "$ac_t""no" 1>&6
+ − 9310 fi
+ − 9311
+ − 9312 fi
+ − 9313
440
+ − 9314 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
+ − 9315 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
+ − 9316 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
726
+ − 9317 echo "configure:9318: checking for Xaw3d/XawInit.h" >&5
+ − 9318
+ − 9319 cat > conftest.$ac_ext <<EOF
+ − 9320 #line 9321 "configure"
440
+ − 9321 #include "confdefs.h"
+ − 9322 #include <Xaw3d/XawInit.h>
+ − 9323 EOF
+ − 9324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 9325 { (eval echo configure:9326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
+ − 9326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9327 if test -z "$ac_err"; then
+ − 9328 rm -rf conftest*
+ − 9329 eval "ac_cv_header_$ac_safe=yes"
+ − 9330 else
+ − 9331 echo "$ac_err" >&5
+ − 9332 echo "configure: failed program was:" >&5
+ − 9333 cat conftest.$ac_ext >&5
+ − 9334 rm -rf conftest*
+ − 9335 eval "ac_cv_header_$ac_safe=no"
+ − 9336 fi
+ − 9337 rm -f conftest*
+ − 9338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9339 echo "$ac_t""yes" 1>&6
+ − 9340 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 9341 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
726
+ − 9342 echo "configure:9343: checking for Xaw3d/ThreeD.h" >&5
+ − 9343
+ − 9344 cat > conftest.$ac_ext <<EOF
+ − 9345 #line 9346 "configure"
440
+ − 9346 #include "confdefs.h"
+ − 9347 #include <Xaw3d/ThreeD.h>
+ − 9348 EOF
+ − 9349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 9350 { (eval echo configure:9351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
+ − 9351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9352 if test -z "$ac_err"; then
+ − 9353 rm -rf conftest*
+ − 9354 eval "ac_cv_header_$ac_safe=yes"
+ − 9355 else
+ − 9356 echo "$ac_err" >&5
+ − 9357 echo "configure: failed program was:" >&5
+ − 9358 cat conftest.$ac_ext >&5
+ − 9359 rm -rf conftest*
+ − 9360 eval "ac_cv_header_$ac_safe=no"
+ − 9361 fi
+ − 9362 rm -f conftest*
+ − 9363 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9364 echo "$ac_t""yes" 1>&6
+ − 9365
561
+ − 9366 echo "configure: warning: Assuming that Xaw3d headers are suitable for $athena_variant." 1>&2
440
+ − 9367 athena_h_path=Xaw3d
+ − 9368
+ − 9369 else
+ − 9370 echo "$ac_t""no" 1>&6
+ − 9371 fi
+ − 9372
+ − 9373 else
+ − 9374 echo "$ac_t""no" 1>&6
+ − 9375 fi
+ − 9376
+ − 9377 fi
+ − 9378
434
+ − 9379 if test -z "$athena_h_path"; then
+ − 9380 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 9381 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
726
+ − 9382 echo "configure:9383: checking for X11/Xaw/ThreeD.h" >&5
+ − 9383
+ − 9384 cat > conftest.$ac_ext <<EOF
+ − 9385 #line 9386 "configure"
434
+ − 9386 #include "confdefs.h"
+ − 9387 #include <X11/Xaw/ThreeD.h>
+ − 9388 EOF
+ − 9389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 9390 { (eval echo configure:9391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 9391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9392 if test -z "$ac_err"; then
+ − 9393 rm -rf conftest*
+ − 9394 eval "ac_cv_header_$ac_safe=yes"
+ − 9395 else
+ − 9396 echo "$ac_err" >&5
+ − 9397 echo "configure: failed program was:" >&5
+ − 9398 cat conftest.$ac_ext >&5
+ − 9399 rm -rf conftest*
+ − 9400 eval "ac_cv_header_$ac_safe=no"
+ − 9401 fi
+ − 9402 rm -f conftest*
+ − 9403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9404 echo "$ac_t""yes" 1>&6
+ − 9405
561
+ − 9406 echo "configure: warning: Assuming that X11/Xaw headers are suitable for $athena_variant." 1>&2
434
+ − 9407 athena_h_path=X11/Xaw
+ − 9408
+ − 9409 else
+ − 9410 echo "$ac_t""no" 1>&6
561
+ − 9411 echo "configure: warning: Could not find a suitable 3d Athena header set." 1>&2
434
+ − 9412 fi
+ − 9413
+ − 9414 fi
+ − 9415 fi
+ − 9416
+ − 9417 if test -n "$athena_lib" -a -n "$athena_h_path"; then
+ − 9418 have_xaw=yes
+ − 9419 else
+ − 9420 have_xaw=no
+ − 9421 fi
424
+ − 9422
724
+ − 9423 else
+ − 9424 have_xaw=no
+ − 9425 fi
+ − 9426 if test "$with_x11" = "yes"; then
193
+ − 9427 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
151
+ − 9428 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
726
+ − 9429 echo "configure:9430: checking for Xm/Xm.h" >&5
+ − 9430
+ − 9431 cat > conftest.$ac_ext <<EOF
+ − 9432 #line 9433 "configure"
151
+ − 9433 #include "confdefs.h"
+ − 9434 #include <Xm/Xm.h>
+ − 9435 EOF
+ − 9436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 9437 { (eval echo configure:9438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 9438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
151
+ − 9439 if test -z "$ac_err"; then
+ − 9440 rm -rf conftest*
+ − 9441 eval "ac_cv_header_$ac_safe=yes"
+ − 9442 else
+ − 9443 echo "$ac_err" >&5
+ − 9444 echo "configure: failed program was:" >&5
+ − 9445 cat conftest.$ac_ext >&5
+ − 9446 rm -rf conftest*
+ − 9447 eval "ac_cv_header_$ac_safe=no"
+ − 9448 fi
+ − 9449 rm -f conftest*
+ − 9450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9451 echo "$ac_t""yes" 1>&6
+ − 9452
+ − 9453 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
726
+ − 9454 echo "configure:9455: checking for XmStringFree in -lXm" >&5
151
+ − 9455 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
+ − 9456
+ − 9457 xe_check_libs=" -lXm "
+ − 9458 cat > conftest.$ac_ext <<EOF
726
+ − 9459 #line 9460 "configure"
151
+ − 9460 #include "confdefs.h"
+ − 9461 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9462 /* We use char because int might match the return type of a gcc2
+ − 9463 builtin and then its argument prototype would still apply. */
+ − 9464 char XmStringFree();
+ − 9465
+ − 9466 int main() {
+ − 9467 XmStringFree()
+ − 9468 ; return 0; }
+ − 9469 EOF
726
+ − 9470 if { (eval echo configure:9471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
+ − 9471 rm -rf conftest*
+ − 9472 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9473 else
+ − 9474 echo "configure: failed program was:" >&5
+ − 9475 cat conftest.$ac_ext >&5
+ − 9476 rm -rf conftest*
+ − 9477 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9478 fi
+ − 9479 rm -f conftest*
+ − 9480 xe_check_libs=""
+ − 9481
+ − 9482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 9483 echo "$ac_t""yes" 1>&6
+ − 9484 have_motif=yes
+ − 9485 else
+ − 9486 echo "$ac_t""no" 1>&6
+ − 9487 have_motif=no
+ − 9488 fi
+ − 9489
+ − 9490
+ − 9491 else
+ − 9492 echo "$ac_t""no" 1>&6
+ − 9493 have_motif=no
+ − 9494 fi
+ − 9495
149
+ − 9496
272
+ − 9497 if test "$have_motif" = "yes"; then
+ − 9498 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
726
+ − 9499 echo "configure:9500: checking for Lesstif" >&5
272
+ − 9500 cat > conftest.$ac_ext <<EOF
726
+ − 9501 #line 9502 "configure"
272
+ − 9502 #include "confdefs.h"
+ − 9503 #include <Xm/Xm.h>
+ − 9504 #ifdef LESSTIF_VERSION
+ − 9505 yes
+ − 9506 #endif
+ − 9507
+ − 9508 EOF
+ − 9509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 9510 egrep "yes" >/dev/null 2>&1; then
+ − 9511 rm -rf conftest*
+ − 9512 have_lesstif=yes
+ − 9513 else
+ − 9514 rm -rf conftest*
+ − 9515 have_lesstif=no
+ − 9516 fi
+ − 9517 rm -f conftest*
+ − 9518
+ − 9519 echo "$ac_t""$have_lesstif" 1>&6
+ − 9520 fi
+ − 9521
193
+ − 9522 fi
149
+ − 9523
434
+ − 9524 case "$with_menubars" in "" | "yes" | "athena" )
149
+ − 9525 with_menubars="lucid" ;;
+ − 9526 esac
243
+ − 9527 case "$with_dialogs" in "" | "yes" | "lucid" )
434
+ − 9528 if test "$have_motif" = "yes"; then with_dialogs="motif"
+ − 9529 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
149
+ − 9530 else with_dialogs=no
+ − 9531 fi ;;
+ − 9532 esac
+ − 9533 case "$with_scrollbars" in "" | "yes" )
+ − 9534 with_scrollbars="lucid" ;;
+ − 9535 esac
424
+ − 9536 case "$with_widgets" in "" | "yes" | "lucid")
420
+ − 9537 if test "$have_motif" = "yes"; then with_widgets="motif"
424
+ − 9538 elif test "$have_xaw" = "yes"; then with_widgets="athena"
420
+ − 9539 else with_widgets=no
+ − 9540 fi ;;
+ − 9541 esac
+ − 9542
+ − 9543 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
412
+ − 9544
424
+ − 9545 case "$all_widgets" in
434
+ − 9546 *athena* )
+ − 9547 if test "$have_xaw" != "yes"; then
+ − 9548 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
+ − 9549 fi
+ − 9550
+ − 9551 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
+ − 9552
+ − 9553 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
+ − 9554
442
+ − 9555 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9556 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
+ − 9557 EOF
+ − 9558 cat >> confdefs.h <<EOF
+ − 9559 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
+ − 9560 EOF
+ − 9561 }
+ − 9562
+ − 9563 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9564 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
+ − 9565 EOF
+ − 9566 cat >> confdefs.h <<EOF
+ − 9567 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
+ − 9568 EOF
+ − 9569 }
+ − 9570
+ − 9571 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9572 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
+ − 9573 EOF
+ − 9574 cat >> confdefs.h <<EOF
+ − 9575 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
+ − 9576 EOF
+ − 9577 }
+ − 9578
+ − 9579 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9580 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
+ − 9581 EOF
+ − 9582 cat >> confdefs.h <<EOF
+ − 9583 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
+ − 9584 EOF
+ − 9585 }
+ − 9586
+ − 9587 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9588 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
+ − 9589 EOF
+ − 9590 cat >> confdefs.h <<EOF
+ − 9591 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
+ − 9592 EOF
+ − 9593 }
+ − 9594
+ − 9595 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9596 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
+ − 9597 EOF
+ − 9598 cat >> confdefs.h <<EOF
+ − 9599 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
+ − 9600 EOF
+ − 9601 }
+ − 9602
+ − 9603 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9604 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
+ − 9605 EOF
+ − 9606 cat >> confdefs.h <<EOF
+ − 9607 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
+ − 9608 EOF
+ − 9609 }
+ − 9610
+ − 9611 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9612 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
+ − 9613 EOF
+ − 9614 cat >> confdefs.h <<EOF
+ − 9615 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
+ − 9616 EOF
+ − 9617 }
+ − 9618
+ − 9619 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9620 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
+ − 9621 EOF
+ − 9622 cat >> confdefs.h <<EOF
+ − 9623 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
+ − 9624 EOF
+ − 9625 }
+ − 9626
+ − 9627 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9628 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
+ − 9629 EOF
+ − 9630 cat >> confdefs.h <<EOF
+ − 9631 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
434
+ − 9632 EOF
+ − 9633 }
+ − 9634
+ − 9635
+ − 9636 { test "$extra_verbose" = "yes" && cat << \EOF
424
+ − 9637 Defining LWLIB_USES_ATHENA
+ − 9638 EOF
+ − 9639 cat >> confdefs.h <<\EOF
+ − 9640 #define LWLIB_USES_ATHENA 1
+ − 9641 EOF
+ − 9642 }
+ − 9643
434
+ − 9644 { test "$extra_verbose" = "yes" && cat << \EOF
424
+ − 9645 Defining NEED_ATHENA
+ − 9646 EOF
+ − 9647 cat >> confdefs.h <<\EOF
+ − 9648 #define NEED_ATHENA 1
+ − 9649 EOF
+ − 9650 }
+ − 9651
442
+ − 9652 need_athena="yes"
434
+ − 9653
+ − 9654 if test "$athena_3d" = "yes"; then
+ − 9655 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9656 Defining HAVE_ATHENA_3D
+ − 9657 EOF
+ − 9658 cat >> confdefs.h <<\EOF
+ − 9659 #define HAVE_ATHENA_3D 1
+ − 9660 EOF
+ − 9661 }
+ − 9662
+ − 9663 fi
+ − 9664 ;;
149
+ − 9665 esac
+ − 9666
+ − 9667 case "$all_widgets" in *motif* )
+ − 9668 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9669 Defining LWLIB_USES_MOTIF
+ − 9670 EOF
+ − 9671 cat >> confdefs.h <<\EOF
+ − 9672 #define LWLIB_USES_MOTIF 1
+ − 9673 EOF
+ − 9674 }
+ − 9675
157
+ − 9676 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9677 Defining NEED_MOTIF
+ − 9678 EOF
+ − 9679 cat >> confdefs.h <<\EOF
+ − 9680 #define NEED_MOTIF 1
+ − 9681 EOF
+ − 9682 }
+ − 9683
+ − 9684 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
149
+ − 9685 need_motif=yes ;;
70
+ − 9686 esac
+ − 9687
157
+ − 9688 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
219
+ − 9689 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
157
+ − 9690 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
424
+ − 9691 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
+ − 9692 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
+ − 9693 case "$with_widgets" in athena* )
+ − 9694 lwlib_objs="$lwlib_objs xlwradio.o xlwcheckbox.o xlwgauge.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwradio.o xlwcheckbox.o xlwgauge.o\" to \$lwlib_objs"; fi;;
+ − 9695 esac
157
+ − 9696 case "$all_widgets" in *lucid* )
+ − 9697 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9698 Defining NEED_LUCID
+ − 9699 EOF
+ − 9700 cat >> confdefs.h <<\EOF
+ − 9701 #define NEED_LUCID 1
+ − 9702 EOF
+ − 9703 }
+ − 9704
+ − 9705 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
+ − 9706 esac
+ − 9707
+ − 9708
+ − 9709
434
+ − 9710 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 9711 Defining LWLIB_SCROLLBARS_ATHENA
+ − 9712 EOF
+ − 9713 cat >> confdefs.h <<\EOF
+ − 9714 #define LWLIB_SCROLLBARS_ATHENA 1
+ − 9715 EOF
+ − 9716 }
434
+ − 9717
+ − 9718 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 9719 Defining LWLIB_DIALOGS_ATHENA
+ − 9720 EOF
+ − 9721 cat >> confdefs.h <<\EOF
+ − 9722 #define LWLIB_DIALOGS_ATHENA 1
+ − 9723 EOF
+ − 9724 }
434
+ − 9725
+ − 9726
+ − 9727 if test "$athena_3d" = "yes"; then
+ − 9728 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 9729 Defining LWLIB_SCROLLBARS_ATHENA3D
+ − 9730 EOF
+ − 9731 cat >> confdefs.h <<\EOF
+ − 9732 #define LWLIB_SCROLLBARS_ATHENA3D 1
+ − 9733 EOF
+ − 9734 }
+ − 9735
434
+ − 9736 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 9737 Defining LWLIB_DIALOGS_ATHENA3D
+ − 9738 EOF
+ − 9739 cat >> confdefs.h <<\EOF
+ − 9740 #define LWLIB_DIALOGS_ATHENA3D 1
+ − 9741 EOF
+ − 9742 }
+ − 9743
434
+ − 9744 fi
+ − 9745
424
+ − 9746 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9747 Defining LWLIB_WIDGETS_ATHENA
+ − 9748 EOF
+ − 9749 cat >> confdefs.h <<\EOF
+ − 9750 #define LWLIB_WIDGETS_ATHENA 1
+ − 9751 EOF
+ − 9752 }
+ − 9753 ;; esac
+ − 9754 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
+ − 9755 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9756 Defining LWLIB_TABS_LUCID
+ − 9757 EOF
+ − 9758 cat >> confdefs.h <<\EOF
+ − 9759 #define LWLIB_TABS_LUCID 1
+ − 9760 EOF
+ − 9761 }
+ − 9762
149
+ − 9763
+ − 9764 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9765 Defining HAVE_MENUBARS
+ − 9766 EOF
+ − 9767 cat >> confdefs.h <<\EOF
+ − 9768 #define HAVE_MENUBARS 1
+ − 9769 EOF
+ − 9770 }
+ − 9771
+ − 9772 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9773 Defining HAVE_SCROLLBARS
+ − 9774 EOF
+ − 9775 cat >> confdefs.h <<\EOF
+ − 9776 #define HAVE_SCROLLBARS 1
+ − 9777 EOF
+ − 9778 }
+ − 9779
+ − 9780 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9781 Defining HAVE_DIALOGS
+ − 9782 EOF
+ − 9783 cat >> confdefs.h <<\EOF
+ − 9784 #define HAVE_DIALOGS 1
+ − 9785 EOF
+ − 9786 }
+ − 9787
+ − 9788 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9789 Defining HAVE_TOOLBARS
+ − 9790 EOF
+ − 9791 cat >> confdefs.h <<\EOF
+ − 9792 #define HAVE_TOOLBARS 1
+ − 9793 EOF
+ − 9794 }
+ − 9795
440
+ − 9796 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
424
+ − 9797 Defining HAVE_WIDGETS
+ − 9798 EOF
+ − 9799 cat >> confdefs.h <<\EOF
+ − 9800 #define HAVE_WIDGETS 1
+ − 9801 EOF
+ − 9802 }
+ − 9803
149
+ − 9804
+ − 9805 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9806 Defining LWLIB_MENUBARS_LUCID
+ − 9807 EOF
+ − 9808 cat >> confdefs.h <<\EOF
+ − 9809 #define LWLIB_MENUBARS_LUCID 1
+ − 9810 EOF
+ − 9811 }
+ − 9812
+ − 9813 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9814 Defining LWLIB_SCROLLBARS_LUCID
+ − 9815 EOF
+ − 9816 cat >> confdefs.h <<\EOF
+ − 9817 #define LWLIB_SCROLLBARS_LUCID 1
+ − 9818 EOF
+ − 9819 }
+ − 9820
+ − 9821
+ − 9822 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9823 Defining LWLIB_MENUBARS_MOTIF
+ − 9824 EOF
+ − 9825 cat >> confdefs.h <<\EOF
+ − 9826 #define LWLIB_MENUBARS_MOTIF 1
+ − 9827 EOF
+ − 9828 }
+ − 9829
+ − 9830 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9831 Defining LWLIB_SCROLLBARS_MOTIF
+ − 9832 EOF
+ − 9833 cat >> confdefs.h <<\EOF
+ − 9834 #define LWLIB_SCROLLBARS_MOTIF 1
+ − 9835 EOF
+ − 9836 }
+ − 9837
+ − 9838 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9839 Defining LWLIB_DIALOGS_MOTIF
+ − 9840 EOF
+ − 9841 cat >> confdefs.h <<\EOF
+ − 9842 #define LWLIB_DIALOGS_MOTIF 1
+ − 9843 EOF
+ − 9844 }
+ − 9845
424
+ − 9846 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9847 Defining LWLIB_WIDGETS_MOTIF
+ − 9848 EOF
+ − 9849 cat >> confdefs.h <<\EOF
+ − 9850 #define LWLIB_WIDGETS_MOTIF 1
+ − 9851 EOF
+ − 9852 }
+ − 9853
412
+ − 9854
440
+ − 9855 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9856 echo " xemacs will be linked with \"menubar.o\""
+ − 9857 fi
440
+ − 9858 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9859 echo " xemacs will be linked with \"scrollbar.o\""
+ − 9860 fi
440
+ − 9861 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9862 echo " xemacs will be linked with \"dialog.o\""
+ − 9863 fi
440
+ − 9864 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9865 echo " xemacs will be linked with \"toolbar.o\""
+ − 9866 fi
149
+ − 9867
462
+ − 9868 if test "$with_gtk" = "yes"; then
+ − 9869 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 9870 echo " xemacs will be linked with \"menubar-gtk.o\""
+ − 9871 fi
+ − 9872 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 9873 echo " xemacs will be linked with \"scrollbar-gtk.o\""
+ − 9874 fi
+ − 9875 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 9876 echo " xemacs will be linked with \"dialog-gtk.o\""
+ − 9877 fi
720
+ − 9878 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-common.o toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 9879 echo " xemacs will be linked with \"toolbar-common.o toolbar-gtk.o\""
462
+ − 9880 fi
+ − 9881 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 9882 echo " xemacs will be linked with \"gui-gtk.o\""
+ − 9883 fi
+ − 9884 fi
+ − 9885
149
+ − 9886 if test "$with_x11" = "yes"; then
440
+ − 9887 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9888 echo " xemacs will be linked with \"menubar-x.o\""
+ − 9889 fi
440
+ − 9890 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9891 echo " xemacs will be linked with \"scrollbar-x.o\""
+ − 9892 fi
440
+ − 9893 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9894 echo " xemacs will be linked with \"dialog-x.o\""
+ − 9895 fi
440
+ − 9896 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9897 echo " xemacs will be linked with \"toolbar-x.o\""
+ − 9898 fi
420
+ − 9899 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9900 echo " xemacs will be linked with \"gui-x.o\""
+ − 9901 fi
398
+ − 9902 fi
272
+ − 9903
+ − 9904
+ − 9905 test -z "$with_mule" && with_mule=no
561
+ − 9906
+ − 9907
+ − 9908 if test "$with_file_coding" = "no" && test "$with_mule" = "yes"; then
+ − 9909 echo "configure: warning: --with-file-coding forced to \`yes': Required for Mule support" 1>&2
+ − 9910 with_file_coding=yes
+ − 9911 fi
259
+ − 9912
+ − 9913 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
251
+ − 9914 { test "$extra_verbose" = "yes" && cat << \EOF
259
+ − 9915 Defining FILE_CODING
+ − 9916 EOF
+ − 9917 cat >> confdefs.h <<\EOF
+ − 9918 #define FILE_CODING 1
+ − 9919 EOF
+ − 9920 }
+ − 9921
+ − 9922 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
+ − 9923 echo " xemacs will be linked with \"file-coding.o\""
251
+ − 9924 fi
+ − 9925 fi
207
+ − 9926
594
+ − 9927 test -z "$with_file_coding" && with_file_coding=no
+ − 9928
149
+ − 9929 if test "$with_mule" = "yes" ; then
151
+ − 9930 echo "checking for Mule-related features" 1>&6
726
+ − 9931 echo "configure:9932: checking for Mule-related features" >&5
149
+ − 9932 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9933 Defining MULE
+ − 9934 EOF
+ − 9935 cat >> confdefs.h <<\EOF
+ − 9936 #define MULE 1
+ − 9937 EOF
+ − 9938 }
+ − 9939
251
+ − 9940 { test "$extra_verbose" = "yes" && cat << \EOF
259
+ − 9941 Defining FILE_CODING
+ − 9942 EOF
+ − 9943 cat >> confdefs.h <<\EOF
+ − 9944 #define FILE_CODING 1
+ − 9945 EOF
+ − 9946 }
+ − 9947
398
+ − 9948 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
+ − 9949 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
151
+ − 9950 fi
149
+ − 9951
155
+ − 9952 for ac_hdr in libintl.h
+ − 9953 do
+ − 9954 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 9955 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
726
+ − 9956 echo "configure:9957: checking for $ac_hdr" >&5
+ − 9957
+ − 9958 cat > conftest.$ac_ext <<EOF
+ − 9959 #line 9960 "configure"
155
+ − 9960 #include "confdefs.h"
+ − 9961 #include <$ac_hdr>
+ − 9962 EOF
+ − 9963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 9964 { (eval echo configure:9965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 9965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
+ − 9966 if test -z "$ac_err"; then
+ − 9967 rm -rf conftest*
+ − 9968 eval "ac_cv_header_$ac_safe=yes"
+ − 9969 else
+ − 9970 echo "$ac_err" >&5
+ − 9971 echo "configure: failed program was:" >&5
+ − 9972 cat conftest.$ac_ext >&5
+ − 9973 rm -rf conftest*
+ − 9974 eval "ac_cv_header_$ac_safe=no"
+ − 9975 fi
+ − 9976 rm -f conftest*
+ − 9977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9978 echo "$ac_t""yes" 1>&6
+ − 9979 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 9980 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9981 Defining $ac_tr_hdr
+ − 9982 EOF
+ − 9983 cat >> confdefs.h <<EOF
+ − 9984 #define $ac_tr_hdr 1
+ − 9985 EOF
+ − 9986 }
+ − 9987
+ − 9988 else
+ − 9989 echo "$ac_t""no" 1>&6
+ − 9990 fi
+ − 9991 done
+ − 9992
+ − 9993
149
+ − 9994 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
726
+ − 9995 echo "configure:9996: checking for strerror in -lintl" >&5
149
+ − 9996 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
+ − 9997
+ − 9998 xe_check_libs=" -lintl "
+ − 9999 cat > conftest.$ac_ext <<EOF
726
+ − 10000 #line 10001 "configure"
149
+ − 10001 #include "confdefs.h"
+ − 10002 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10003 /* We use char because int might match the return type of a gcc2
+ − 10004 builtin and then its argument prototype would still apply. */
+ − 10005 char strerror();
+ − 10006
+ − 10007 int main() {
+ − 10008 strerror()
+ − 10009 ; return 0; }
+ − 10010 EOF
726
+ − 10011 if { (eval echo configure:10012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 10012 rm -rf conftest*
+ − 10013 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10014 else
+ − 10015 echo "configure: failed program was:" >&5
+ − 10016 cat conftest.$ac_ext >&5
+ − 10017 rm -rf conftest*
+ − 10018 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10019 fi
+ − 10020 rm -f conftest*
+ − 10021 xe_check_libs=""
+ − 10022
151
+ − 10023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 10024 echo "$ac_t""yes" 1>&6
+ − 10025 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 10026 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 10027 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10028 Defining $ac_tr_lib
+ − 10029 EOF
+ − 10030 cat >> confdefs.h <<EOF
+ − 10031 #define $ac_tr_lib 1
+ − 10032 EOF
+ − 10033 }
+ − 10034
151
+ − 10035 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
149
+ − 10036
+ − 10037 else
+ − 10038 echo "$ac_t""no" 1>&6
+ − 10039 fi
+ − 10040
+ − 10041
+ − 10042
+ − 10043 echo "checking for Mule input methods" 1>&6
726
+ − 10044 echo "configure:10045: checking for Mule input methods" >&5
272
+ − 10045 case "$with_xim" in "" | "yes" )
149
+ − 10046 echo "checking for XIM" 1>&6
726
+ − 10047 echo "configure:10048: checking for XIM" >&5
392
+ − 10048
+ − 10049 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
726
+ − 10050 echo "configure:10051: checking for XOpenIM in -lX11" >&5
392
+ − 10051 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
+ − 10052
+ − 10053 xe_check_libs=" -lX11 "
+ − 10054 cat > conftest.$ac_ext <<EOF
726
+ − 10055 #line 10056 "configure"
392
+ − 10056 #include "confdefs.h"
+ − 10057 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10058 /* We use char because int might match the return type of a gcc2
+ − 10059 builtin and then its argument prototype would still apply. */
+ − 10060 char XOpenIM();
+ − 10061
+ − 10062 int main() {
+ − 10063 XOpenIM()
+ − 10064 ; return 0; }
+ − 10065 EOF
726
+ − 10066 if { (eval echo configure:10067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
392
+ − 10067 rm -rf conftest*
+ − 10068 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10069 else
+ − 10070 echo "configure: failed program was:" >&5
+ − 10071 cat conftest.$ac_ext >&5
+ − 10072 rm -rf conftest*
+ − 10073 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10074 fi
+ − 10075 rm -f conftest*
+ − 10076 xe_check_libs=""
+ − 10077
+ − 10078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 10079 echo "$ac_t""yes" 1>&6
+ − 10080 with_xim=xlib
+ − 10081 else
+ − 10082 echo "$ac_t""no" 1>&6
+ − 10083 with_xim=no
+ − 10084 fi
+ − 10085
+ − 10086
+ − 10087 if test "$have_motif $have_lesstif" = "yes no"; then
+ − 10088
149
+ − 10089 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
726
+ − 10090 echo "configure:10091: checking for XmImMbLookupString in -lXm" >&5
149
+ − 10091 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
+ − 10092
+ − 10093 xe_check_libs=" -lXm "
+ − 10094 cat > conftest.$ac_ext <<EOF
726
+ − 10095 #line 10096 "configure"
149
+ − 10096 #include "confdefs.h"
+ − 10097 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10098 /* We use char because int might match the return type of a gcc2
+ − 10099 builtin and then its argument prototype would still apply. */
+ − 10100 char XmImMbLookupString();
+ − 10101
+ − 10102 int main() {
+ − 10103 XmImMbLookupString()
+ − 10104 ; return 0; }
+ − 10105 EOF
726
+ − 10106 if { (eval echo configure:10107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 10107 rm -rf conftest*
+ − 10108 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10109 else
+ − 10110 echo "configure: failed program was:" >&5
+ − 10111 cat conftest.$ac_ext >&5
+ − 10112 rm -rf conftest*
+ − 10113 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10114 fi
+ − 10115 rm -f conftest*
+ − 10116 xe_check_libs=""
+ − 10117
151
+ − 10118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 10119 echo "$ac_t""yes" 1>&6
+ − 10120 with_xim=motif
+ − 10121 else
+ − 10122 echo "$ac_t""no" 1>&6
392
+ − 10123 fi
+ − 10124
+ − 10125
+ − 10126 fi ;;
149
+ − 10127 esac
272
+ − 10128 if test "$with_xim" != "no"; then
149
+ − 10129 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10130 Defining HAVE_XIM
+ − 10131 EOF
+ − 10132 cat >> confdefs.h <<\EOF
+ − 10133 #define HAVE_XIM 1
+ − 10134 EOF
+ − 10135 }
+ − 10136
+ − 10137 if test "$with_xim" = "xlib"; then
+ − 10138 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10139 Defining XIM_XLIB
+ − 10140 EOF
+ − 10141 cat >> confdefs.h <<\EOF
+ − 10142 #define XIM_XLIB 1
+ − 10143 EOF
+ − 10144 }
+ − 10145
151
+ − 10146 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
+ − 10147 echo " xemacs will be linked with \"input-method-xlib.o\""
+ − 10148 fi
+ − 10149 fi
149
+ − 10150 if test "$with_xim" = "motif"; then
+ − 10151 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10152 Defining XIM_MOTIF
+ − 10153 EOF
+ − 10154 cat >> confdefs.h <<\EOF
+ − 10155 #define XIM_MOTIF 1
+ − 10156 EOF
+ − 10157 }
+ − 10158
+ − 10159 need_motif=yes
151
+ − 10160 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
+ − 10161 echo " xemacs will be linked with \"input-method-motif.o\""
+ − 10162 fi
149
+ − 10163 fi
215
+ − 10164 if test "$with_xim" = "motif"; then
177
+ − 10165 with_xfs=no
+ − 10166 fi
215
+ − 10167 fi
+ − 10168
+ − 10169 if test "$with_xfs" = "yes" ; then
+ − 10170 echo "checking for XFontSet" 1>&6
726
+ − 10171 echo "configure:10172: checking for XFontSet" >&5
215
+ − 10172
177
+ − 10173 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
726
+ − 10174 echo "configure:10175: checking for XmbDrawString in -lX11" >&5
177
+ − 10175 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
+ − 10176
+ − 10177 xe_check_libs=" -lX11 "
+ − 10178 cat > conftest.$ac_ext <<EOF
726
+ − 10179 #line 10180 "configure"
177
+ − 10180 #include "confdefs.h"
+ − 10181 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10182 /* We use char because int might match the return type of a gcc2
+ − 10183 builtin and then its argument prototype would still apply. */
+ − 10184 char XmbDrawString();
+ − 10185
+ − 10186 int main() {
+ − 10187 XmbDrawString()
+ − 10188 ; return 0; }
+ − 10189 EOF
726
+ − 10190 if { (eval echo configure:10191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
177
+ − 10191 rm -rf conftest*
+ − 10192 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10193 else
+ − 10194 echo "configure: failed program was:" >&5
+ − 10195 cat conftest.$ac_ext >&5
+ − 10196 rm -rf conftest*
+ − 10197 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10198 fi
+ − 10199 rm -f conftest*
+ − 10200 xe_check_libs=""
+ − 10201
+ − 10202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 10203 echo "$ac_t""yes" 1>&6
+ − 10204 :
+ − 10205 else
+ − 10206 echo "$ac_t""no" 1>&6
+ − 10207 with_xfs=no
+ − 10208 fi
+ − 10209
+ − 10210
+ − 10211 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
+ − 10212 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10213 Defining USE_XFONTSET
+ − 10214 EOF
+ − 10215 cat >> confdefs.h <<\EOF
+ − 10216 #define USE_XFONTSET 1
+ − 10217 EOF
+ − 10218 }
+ − 10219
215
+ − 10220 if test "$with_xim" = "no" ; then
450
+ − 10221 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
+ − 10222 echo " xemacs will be linked with \"input-method-xlib.o\""
177
+ − 10223 fi
215
+ − 10224 fi
177
+ − 10225 fi
151
+ − 10226 fi
149
+ − 10227 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
151
+ − 10228 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
+ − 10229 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
726
+ − 10230 echo "configure:10231: checking for wnn/jllib.h" >&5
+ − 10231
+ − 10232 cat > conftest.$ac_ext <<EOF
+ − 10233 #line 10234 "configure"
151
+ − 10234 #include "confdefs.h"
+ − 10235 #include <wnn/jllib.h>
149
+ − 10236 EOF
+ − 10237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 10238 { (eval echo configure:10239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
458
+ − 10239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 10240 if test -z "$ac_err"; then
+ − 10241 rm -rf conftest*
+ − 10242 eval "ac_cv_header_$ac_safe=yes"
+ − 10243 else
+ − 10244 echo "$ac_err" >&5
+ − 10245 echo "configure: failed program was:" >&5
+ − 10246 cat conftest.$ac_ext >&5
+ − 10247 rm -rf conftest*
+ − 10248 eval "ac_cv_header_$ac_safe=no"
+ − 10249 fi
+ − 10250 rm -f conftest*
+ − 10251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10252 echo "$ac_t""yes" 1>&6
+ − 10253 :
+ − 10254 else
+ − 10255 echo "$ac_t""no" 1>&6
+ − 10256 with_wnn=no
+ − 10257 fi
+ − 10258 }
+ − 10259 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
+ − 10260 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
726
+ − 10261 echo "configure:10262: checking for wnn/commonhd.h" >&5
+ − 10262
+ − 10263 cat > conftest.$ac_ext <<EOF
+ − 10264 #line 10265 "configure"
458
+ − 10265 #include "confdefs.h"
+ − 10266 #include <wnn/commonhd.h>
+ − 10267 EOF
+ − 10268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 10269 { (eval echo configure:10270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 10270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 10271 if test -z "$ac_err"; then
+ − 10272 rm -rf conftest*
+ − 10273 eval "ac_cv_header_$ac_safe=yes"
+ − 10274 else
+ − 10275 echo "$ac_err" >&5
+ − 10276 echo "configure: failed program was:" >&5
+ − 10277 cat conftest.$ac_ext >&5
+ − 10278 rm -rf conftest*
+ − 10279 eval "ac_cv_header_$ac_safe=no"
+ − 10280 fi
+ − 10281 rm -f conftest*
+ − 10282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10283 echo "$ac_t""yes" 1>&6
+ − 10284 :
+ − 10285 else
+ − 10286 echo "$ac_t""no" 1>&6
+ − 10287 with_wnn=no
+ − 10288 fi
+ − 10289 }
167
+ − 10290 if test "$with_wnn" != "no"; then
+ − 10291 for ac_func in crypt
+ − 10292 do
+ − 10293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
726
+ − 10294 echo "configure:10295: checking for $ac_func" >&5
+ − 10295
+ − 10296 cat > conftest.$ac_ext <<EOF
+ − 10297 #line 10298 "configure"
167
+ − 10298 #include "confdefs.h"
+ − 10299 /* System header to define __stub macros and hopefully few prototypes,
+ − 10300 which can conflict with char $ac_func(); below. */
+ − 10301 #include <assert.h>
+ − 10302 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10303 /* We use char because int might match the return type of a gcc2
+ − 10304 builtin and then its argument prototype would still apply. */
+ − 10305 char $ac_func();
+ − 10306
+ − 10307 int main() {
+ − 10308
+ − 10309 /* The GNU C library defines this for functions which it implements
+ − 10310 to always fail with ENOSYS. Some functions are actually named
+ − 10311 something starting with __ and the normal name is an alias. */
+ − 10312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 10313 choke me
+ − 10314 #else
+ − 10315 $ac_func();
+ − 10316 #endif
+ − 10317
+ − 10318 ; return 0; }
+ − 10319 EOF
726
+ − 10320 if { (eval echo configure:10321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
167
+ − 10321 rm -rf conftest*
+ − 10322 eval "ac_cv_func_$ac_func=yes"
+ − 10323 else
+ − 10324 echo "configure: failed program was:" >&5
+ − 10325 cat conftest.$ac_ext >&5
+ − 10326 rm -rf conftest*
+ − 10327 eval "ac_cv_func_$ac_func=no"
+ − 10328 fi
+ − 10329 rm -f conftest*
+ − 10330
+ − 10331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 10332 echo "$ac_t""yes" 1>&6
+ − 10333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 10334 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10335 Defining $ac_tr_func
+ − 10336 EOF
+ − 10337 cat >> confdefs.h <<EOF
+ − 10338 #define $ac_tr_func 1
+ − 10339 EOF
+ − 10340 }
+ − 10341
+ − 10342 else
+ − 10343 echo "$ac_t""no" 1>&6
+ − 10344 fi
+ − 10345 done
+ − 10346
+ − 10347 test "$ac_cv_func_crypt" != "yes" && {
+ − 10348 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
726
+ − 10349 echo "configure:10350: checking for crypt in -lcrypt" >&5
167
+ − 10350 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
+ − 10351
+ − 10352 xe_check_libs=" -lcrypt "
+ − 10353 cat > conftest.$ac_ext <<EOF
726
+ − 10354 #line 10355 "configure"
167
+ − 10355 #include "confdefs.h"
+ − 10356 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10357 /* We use char because int might match the return type of a gcc2
+ − 10358 builtin and then its argument prototype would still apply. */
+ − 10359 char crypt();
+ − 10360
+ − 10361 int main() {
+ − 10362 crypt()
+ − 10363 ; return 0; }
+ − 10364 EOF
726
+ − 10365 if { (eval echo configure:10366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
167
+ − 10366 rm -rf conftest*
+ − 10367 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10368 else
+ − 10369 echo "configure: failed program was:" >&5
+ − 10370 cat conftest.$ac_ext >&5
+ − 10371 rm -rf conftest*
+ − 10372 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10373 fi
+ − 10374 rm -f conftest*
+ − 10375 xe_check_libs=""
+ − 10376
+ − 10377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 10378 echo "$ac_t""yes" 1>&6
+ − 10379 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 10380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 10381 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10382 Defining $ac_tr_lib
+ − 10383 EOF
+ − 10384 cat >> confdefs.h <<EOF
+ − 10385 #define $ac_tr_lib 1
+ − 10386 EOF
+ − 10387 }
+ − 10388
+ − 10389 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
+ − 10390
+ − 10391 else
+ − 10392 echo "$ac_t""no" 1>&6
+ − 10393 fi
+ − 10394
+ − 10395 }
+ − 10396 fi
377
+ − 10397 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
+ − 10398
159
+ − 10399 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
726
+ − 10400 echo "configure:10401: checking for jl_dic_list_e in -lwnn" >&5
155
+ − 10401 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
149
+ − 10402
159
+ − 10403 xe_check_libs=" -lwnn "
+ − 10404 cat > conftest.$ac_ext <<EOF
726
+ − 10405 #line 10406 "configure"
149
+ − 10406 #include "confdefs.h"
+ − 10407 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10408 /* We use char because int might match the return type of a gcc2
+ − 10409 builtin and then its argument prototype would still apply. */
155
+ − 10410 char jl_dic_list_e();
149
+ − 10411
+ − 10412 int main() {
155
+ − 10413 jl_dic_list_e()
149
+ − 10414 ; return 0; }
+ − 10415 EOF
726
+ − 10416 if { (eval echo configure:10417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
+ − 10417 rm -rf conftest*
+ − 10418 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10419 else
+ − 10420 echo "configure: failed program was:" >&5
+ − 10421 cat conftest.$ac_ext >&5
+ − 10422 rm -rf conftest*
+ − 10423 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10424 fi
+ − 10425 rm -f conftest*
+ − 10426 xe_check_libs=""
+ − 10427
+ − 10428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 10429 echo "$ac_t""yes" 1>&6
+ − 10430 libwnn=wnn
+ − 10431 else
+ − 10432 echo "$ac_t""no" 1>&6
+ − 10433 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
726
+ − 10434 echo "configure:10435: checking for jl_dic_list_e in -lwnn4" >&5
377
+ − 10435 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
+ − 10436
+ − 10437 xe_check_libs=" -lwnn4 "
+ − 10438 cat > conftest.$ac_ext <<EOF
726
+ − 10439 #line 10440 "configure"
377
+ − 10440 #include "confdefs.h"
+ − 10441 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10442 /* We use char because int might match the return type of a gcc2
+ − 10443 builtin and then its argument prototype would still apply. */
+ − 10444 char jl_dic_list_e();
+ − 10445
+ − 10446 int main() {
+ − 10447 jl_dic_list_e()
+ − 10448 ; return 0; }
+ − 10449 EOF
726
+ − 10450 if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 10451 rm -rf conftest*
+ − 10452 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10453 else
+ − 10454 echo "configure: failed program was:" >&5
+ − 10455 cat conftest.$ac_ext >&5
+ − 10456 rm -rf conftest*
+ − 10457 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10458 fi
+ − 10459 rm -f conftest*
+ − 10460 xe_check_libs=""
+ − 10461
151
+ − 10462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 10463 echo "$ac_t""yes" 1>&6
377
+ − 10464 libwnn=wnn4
+ − 10465 else
+ − 10466 echo "$ac_t""no" 1>&6
+ − 10467 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
726
+ − 10468 echo "configure:10469: checking for jl_dic_list_e in -lwnn6" >&5
377
+ − 10469 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
+ − 10470
+ − 10471 xe_check_libs=" -lwnn6 "
+ − 10472 cat > conftest.$ac_ext <<EOF
726
+ − 10473 #line 10474 "configure"
377
+ − 10474 #include "confdefs.h"
+ − 10475 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10476 /* We use char because int might match the return type of a gcc2
+ − 10477 builtin and then its argument prototype would still apply. */
+ − 10478 char jl_dic_list_e();
+ − 10479
+ − 10480 int main() {
+ − 10481 jl_dic_list_e()
+ − 10482 ; return 0; }
+ − 10483 EOF
726
+ − 10484 if { (eval echo configure:10485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
+ − 10485 rm -rf conftest*
+ − 10486 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10487 else
+ − 10488 echo "configure: failed program was:" >&5
+ − 10489 cat conftest.$ac_ext >&5
+ − 10490 rm -rf conftest*
+ − 10491 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10492 fi
+ − 10493 rm -f conftest*
+ − 10494 xe_check_libs=""
+ − 10495
+ − 10496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 10497 echo "$ac_t""yes" 1>&6
+ − 10498 libwnn=wnn6
+ − 10499 else
+ − 10500 echo "$ac_t""no" 1>&6
+ − 10501 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
726
+ − 10502 echo "configure:10503: checking for dic_list_e in -lwnn6_fromsrc" >&5
377
+ − 10503 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
+ − 10504
+ − 10505 xe_check_libs=" -lwnn6_fromsrc "
+ − 10506 cat > conftest.$ac_ext <<EOF
726
+ − 10507 #line 10508 "configure"
377
+ − 10508 #include "confdefs.h"
+ − 10509 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10510 /* We use char because int might match the return type of a gcc2
+ − 10511 builtin and then its argument prototype would still apply. */
+ − 10512 char dic_list_e();
+ − 10513
+ − 10514 int main() {
+ − 10515 dic_list_e()
+ − 10516 ; return 0; }
+ − 10517 EOF
726
+ − 10518 if { (eval echo configure:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
+ − 10519 rm -rf conftest*
+ − 10520 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10521 else
+ − 10522 echo "configure: failed program was:" >&5
+ − 10523 cat conftest.$ac_ext >&5
+ − 10524 rm -rf conftest*
+ − 10525 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10526 fi
+ − 10527 rm -f conftest*
+ − 10528 xe_check_libs=""
+ − 10529
+ − 10530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 10531 echo "$ac_t""yes" 1>&6
+ − 10532 libwnn=wnn6_fromsrc
159
+ − 10533 else
+ − 10534 echo "$ac_t""no" 1>&6
+ − 10535 with_wnn=no
149
+ − 10536 fi
+ − 10537
377
+ − 10538
+ − 10539 fi
+ − 10540
+ − 10541
+ − 10542 fi
+ − 10543
+ − 10544
+ − 10545 fi
+ − 10546
+ − 10547
+ − 10548 fi
149
+ − 10549 test -z "$with_wnn" && with_wnn=yes
+ − 10550 if test "$with_wnn" = "yes"; then
+ − 10551 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10552 Defining HAVE_WNN
+ − 10553 EOF
+ − 10554 cat >> confdefs.h <<\EOF
+ − 10555 #define HAVE_WNN 1
+ − 10556 EOF
+ − 10557 }
+ − 10558
377
+ − 10559 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
151
+ − 10560 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
+ − 10561 echo " xemacs will be linked with \"mule-wnnfns.o\""
+ − 10562 fi
284
+ − 10563 if test "$with_wnn6" != "no"; then
+ − 10564
377
+ − 10565 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
726
+ − 10566 echo "configure:10567: checking for jl_fi_dic_list in -l$libwnn" >&5
377
+ − 10567 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
+ − 10568
+ − 10569 xe_check_libs=" -l$libwnn "
+ − 10570 cat > conftest.$ac_ext <<EOF
726
+ − 10571 #line 10572 "configure"
149
+ − 10572 #include "confdefs.h"
+ − 10573 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10574 /* We use char because int might match the return type of a gcc2
+ − 10575 builtin and then its argument prototype would still apply. */
+ − 10576 char jl_fi_dic_list();
+ − 10577
+ − 10578 int main() {
+ − 10579 jl_fi_dic_list()
+ − 10580 ; return 0; }
+ − 10581 EOF
726
+ − 10582 if { (eval echo configure:10583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 10583 rm -rf conftest*
+ − 10584 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10585 else
+ − 10586 echo "configure: failed program was:" >&5
+ − 10587 cat conftest.$ac_ext >&5
+ − 10588 rm -rf conftest*
+ − 10589 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10590 fi
+ − 10591 rm -f conftest*
+ − 10592 xe_check_libs=""
+ − 10593
151
+ − 10594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 10595 echo "$ac_t""yes" 1>&6
+ − 10596 with_wnn6=yes
+ − 10597 else
+ − 10598 echo "$ac_t""no" 1>&6
+ − 10599 fi
+ − 10600
+ − 10601
284
+ − 10602 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
151
+ − 10603 Defining WNN6
+ − 10604 EOF
+ − 10605 cat >> confdefs.h <<\EOF
+ − 10606 #define WNN6 1
+ − 10607 EOF
+ − 10608 }
+ − 10609
284
+ − 10610 fi
151
+ − 10611 fi
149
+ − 10612
267
+ − 10613 canna_includes_found=no
+ − 10614 if test "$with_canna" != "no"; then
+ − 10615 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
+ − 10616 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
726
+ − 10617 echo "configure:10618: checking for canna/jrkanji.h" >&5
+ − 10618
+ − 10619 cat > conftest.$ac_ext <<EOF
+ − 10620 #line 10621 "configure"
267
+ − 10621 #include "confdefs.h"
+ − 10622 #include <canna/jrkanji.h>
+ − 10623 EOF
+ − 10624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 10625 { (eval echo configure:10626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 10626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
267
+ − 10627 if test -z "$ac_err"; then
+ − 10628 rm -rf conftest*
+ − 10629 eval "ac_cv_header_$ac_safe=yes"
+ − 10630 else
+ − 10631 echo "$ac_err" >&5
+ − 10632 echo "configure: failed program was:" >&5
+ − 10633 cat conftest.$ac_ext >&5
+ − 10634 rm -rf conftest*
+ − 10635 eval "ac_cv_header_$ac_safe=no"
+ − 10636 fi
+ − 10637 rm -f conftest*
+ − 10638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10639 echo "$ac_t""yes" 1>&6
+ − 10640 canna_includes_found=yes
+ − 10641 else
+ − 10642 echo "$ac_t""no" 1>&6
+ − 10643 fi
+ − 10644
+ − 10645 fi
+ − 10646 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
+ − 10647 -d "/usr/local/canna/include"; then
+ − 10648 save_c_switch_site="$c_switch_site"
+ − 10649 c_switch_site="$c_switch_site -I/usr/local/canna/include"
+ − 10650 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
+ − 10651 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
726
+ − 10652 echo "configure:10653: checking for canna/jrkanji.h" >&5
+ − 10653
+ − 10654 cat > conftest.$ac_ext <<EOF
+ − 10655 #line 10656 "configure"
267
+ − 10656 #include "confdefs.h"
+ − 10657 #include <canna/jrkanji.h>
+ − 10658 EOF
+ − 10659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 10660 { (eval echo configure:10661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 10661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
267
+ − 10662 if test -z "$ac_err"; then
+ − 10663 rm -rf conftest*
+ − 10664 eval "ac_cv_header_$ac_safe=yes"
+ − 10665 else
+ − 10666 echo "$ac_err" >&5
+ − 10667 echo "configure: failed program was:" >&5
+ − 10668 cat conftest.$ac_ext >&5
+ − 10669 rm -rf conftest*
+ − 10670 eval "ac_cv_header_$ac_safe=no"
+ − 10671 fi
+ − 10672 rm -f conftest*
+ − 10673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10674 echo "$ac_t""yes" 1>&6
+ − 10675 canna_includes_found=yes
+ − 10676 else
+ − 10677 echo "$ac_t""no" 1>&6
+ − 10678 fi
+ − 10679
+ − 10680 if test "$canna_includes_found" != "yes"; then
+ − 10681 c_switch_site="$save_c_switch_site"
+ − 10682 with_canna="no"
+ − 10683 fi
+ − 10684 fi
+ − 10685
+ − 10686 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
149
+ − 10687 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
726
+ − 10688 echo "configure:10689: checking for canna/RK.h" >&5
+ − 10689
+ − 10690 cat > conftest.$ac_ext <<EOF
+ − 10691 #line 10692 "configure"
149
+ − 10692 #include "confdefs.h"
+ − 10693 #include <canna/RK.h>
+ − 10694 EOF
+ − 10695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 10696 { (eval echo configure:10697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 10697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 10698 if test -z "$ac_err"; then
+ − 10699 rm -rf conftest*
+ − 10700 eval "ac_cv_header_$ac_safe=yes"
+ − 10701 else
+ − 10702 echo "$ac_err" >&5
+ − 10703 echo "configure: failed program was:" >&5
+ − 10704 cat conftest.$ac_ext >&5
+ − 10705 rm -rf conftest*
+ − 10706 eval "ac_cv_header_$ac_safe=no"
+ − 10707 fi
+ − 10708 rm -f conftest*
+ − 10709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10710 echo "$ac_t""yes" 1>&6
+ − 10711 :
+ − 10712 else
+ − 10713 echo "$ac_t""no" 1>&6
+ − 10714 with_canna=no
+ − 10715 fi
+ − 10716 }
+ − 10717 test -z "$with_canna" && {
+ − 10718 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
726
+ − 10719 echo "configure:10720: checking for RkBgnBun in -lRKC" >&5
149
+ − 10720 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
+ − 10721
+ − 10722 xe_check_libs=" -lRKC "
+ − 10723 cat > conftest.$ac_ext <<EOF
726
+ − 10724 #line 10725 "configure"
149
+ − 10725 #include "confdefs.h"
+ − 10726 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10727 /* We use char because int might match the return type of a gcc2
+ − 10728 builtin and then its argument prototype would still apply. */
+ − 10729 char RkBgnBun();
+ − 10730
+ − 10731 int main() {
+ − 10732 RkBgnBun()
+ − 10733 ; return 0; }
+ − 10734 EOF
726
+ − 10735 if { (eval echo configure:10736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 10736 rm -rf conftest*
+ − 10737 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10738 else
+ − 10739 echo "configure: failed program was:" >&5
+ − 10740 cat conftest.$ac_ext >&5
+ − 10741 rm -rf conftest*
+ − 10742 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10743 fi
+ − 10744 rm -f conftest*
+ − 10745 xe_check_libs=""
+ − 10746
151
+ − 10747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 10748 echo "$ac_t""yes" 1>&6
+ − 10749 :
+ − 10750 else
+ − 10751 echo "$ac_t""no" 1>&6
+ − 10752 with_canna=no
+ − 10753 fi
+ − 10754
+ − 10755 }
+ − 10756 test -z "$with_canna" && {
+ − 10757 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
726
+ − 10758 echo "configure:10759: checking for jrKanjiControl in -lcanna" >&5
149
+ − 10759 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
+ − 10760
+ − 10761 xe_check_libs=" -lcanna "
+ − 10762 cat > conftest.$ac_ext <<EOF
726
+ − 10763 #line 10764 "configure"
149
+ − 10764 #include "confdefs.h"
+ − 10765 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10766 /* We use char because int might match the return type of a gcc2
+ − 10767 builtin and then its argument prototype would still apply. */
+ − 10768 char jrKanjiControl();
+ − 10769
+ − 10770 int main() {
+ − 10771 jrKanjiControl()
+ − 10772 ; return 0; }
+ − 10773 EOF
726
+ − 10774 if { (eval echo configure:10775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 10775 rm -rf conftest*
+ − 10776 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10777 else
+ − 10778 echo "configure: failed program was:" >&5
+ − 10779 cat conftest.$ac_ext >&5
+ − 10780 rm -rf conftest*
+ − 10781 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10782 fi
+ − 10783 rm -f conftest*
+ − 10784 xe_check_libs=""
+ − 10785
151
+ − 10786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 10787 echo "$ac_t""yes" 1>&6
+ − 10788 :
+ − 10789 else
+ − 10790 echo "$ac_t""no" 1>&6
+ − 10791 with_canna=no
+ − 10792 fi
+ − 10793
+ − 10794 }
+ − 10795 test -z "$with_canna" && with_canna=yes
+ − 10796 if test "$with_canna" = "yes"; then
+ − 10797 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10798 Defining HAVE_CANNA
+ − 10799 EOF
+ − 10800 cat >> confdefs.h <<\EOF
+ − 10801 #define HAVE_CANNA 1
+ − 10802 EOF
+ − 10803 }
+ − 10804
151
+ − 10805 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
+ − 10806 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
+ − 10807 echo " xemacs will be linked with \"mule-canna.o\""
+ − 10808 fi
+ − 10809 fi
155
+ − 10810
151
+ − 10811 else for feature in xim canna wnn; do
149
+ − 10812 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
561
+ − 10813 echo "configure: warning: --with-${feature} ignored: Not valid without Mule support" 1>&2
149
+ − 10814 fi
+ − 10815 eval "with_${feature}=no"
+ − 10816 done
151
+ − 10817 fi
+ − 10818
+ − 10819 if test "$need_motif" = "yes" ; then
+ − 10820 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
207
+ − 10821
+ − 10822 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
726
+ − 10823 echo "configure:10824: checking for layout_object_getvalue in -li18n" >&5
207
+ − 10824 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
+ − 10825
+ − 10826 xe_check_libs=" -li18n "
+ − 10827 cat > conftest.$ac_ext <<EOF
726
+ − 10828 #line 10829 "configure"
207
+ − 10829 #include "confdefs.h"
+ − 10830 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10831 /* We use char because int might match the return type of a gcc2
+ − 10832 builtin and then its argument prototype would still apply. */
+ − 10833 char layout_object_getvalue();
+ − 10834
+ − 10835 int main() {
+ − 10836 layout_object_getvalue()
+ − 10837 ; return 0; }
+ − 10838 EOF
726
+ − 10839 if { (eval echo configure:10840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
207
+ − 10840 rm -rf conftest*
+ − 10841 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10842 else
+ − 10843 echo "configure: failed program was:" >&5
+ − 10844 cat conftest.$ac_ext >&5
+ − 10845 rm -rf conftest*
+ − 10846 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10847 fi
+ − 10848 rm -f conftest*
+ − 10849 xe_check_libs=""
+ − 10850
+ − 10851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 10852 echo "$ac_t""yes" 1>&6
+ − 10853 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
+ − 10854 else
+ − 10855 echo "$ac_t""no" 1>&6
+ − 10856 fi
+ − 10857
+ − 10858
151
+ − 10859
+ − 10860 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
+ − 10861 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
+ − 10862 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
+ − 10863
163
+ − 10864 runpath="" runpath_dirs=""
155
+ − 10865 if test -n "$LD_RUN_PATH"; then
151
+ − 10866 runpath="$LD_RUN_PATH"
155
+ − 10867 elif test "$GCC" = "yes"; then
163
+ − 10868 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
+ − 10869 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
+ − 10870 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
+ − 10871 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
+ − 10872 case "$arg" in P,* | -L* | -R* )
159
+ − 10873 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
+ − 10874 {
155
+ − 10875 xe_runpath_dir="$dir"
163
+ − 10876 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 10877 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 10878 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 10879 eval "$xe_add_unique_runpath_dir"
+ − 10880 }
155
+ − 10881 done ;;
+ − 10882 esac
+ − 10883 done
163
+ − 10884 ld_switch_run="$ld_switch_run_save"
155
+ − 10885 rm -f conftest*
151
+ − 10886 else
155
+ − 10887 for arg in $ld_switch_site $ld_switch_x_site; do
163
+ − 10888 case "$arg" in -L*) {
159
+ − 10889 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
+ − 10890 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 10891 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 10892 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 10893 eval "$xe_add_unique_runpath_dir"
+ − 10894 };; esac
151
+ − 10895 done
163
+ − 10896 if test "$opsys $need_motif" = "sol2 yes"; then
+ − 10897 xe_runpath_dir="/opt/SUNWdt/lib";
+ − 10898 eval "$xe_add_unique_runpath_dir";
+ − 10899 fi
155
+ − 10900 fi
151
+ − 10901 if test -n "$runpath"; then
+ − 10902 ld_switch_run="${dash_r}${runpath}"
272
+ − 10903
+ − 10904 if test "$GCC" = "yes"; then
+ − 10905 set x $ld_switch_run; shift; ld_switch_run=""
+ − 10906 while test -n "$1"; do
+ − 10907 case $1 in
380
+ − 10908 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
+ − 10909 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
+ − 10910 -Xlinker* ) ;;
+ − 10911 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
+ − 10912 esac
+ − 10913 shift
+ − 10914 done
+ − 10915 fi
151
+ − 10916 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
+ − 10917 fi
+ − 10918 fi
+ − 10919
+ − 10920 fi
+ − 10921
460
+ − 10922 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask
149
+ − 10923 do
+ − 10924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
726
+ − 10925 echo "configure:10926: checking for $ac_func" >&5
+ − 10926
+ − 10927 cat > conftest.$ac_ext <<EOF
+ − 10928 #line 10929 "configure"
410
+ − 10929 #include "confdefs.h"
+ − 10930 /* System header to define __stub macros and hopefully few prototypes,
+ − 10931 which can conflict with char $ac_func(); below. */
+ − 10932 #include <assert.h>
+ − 10933 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10934 /* We use char because int might match the return type of a gcc2
+ − 10935 builtin and then its argument prototype would still apply. */
+ − 10936 char $ac_func();
+ − 10937
+ − 10938 int main() {
+ − 10939
+ − 10940 /* The GNU C library defines this for functions which it implements
+ − 10941 to always fail with ENOSYS. Some functions are actually named
+ − 10942 something starting with __ and the normal name is an alias. */
+ − 10943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 10944 choke me
+ − 10945 #else
+ − 10946 $ac_func();
+ − 10947 #endif
+ − 10948
+ − 10949 ; return 0; }
+ − 10950 EOF
726
+ − 10951 if { (eval echo configure:10952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 10952 rm -rf conftest*
+ − 10953 eval "ac_cv_func_$ac_func=yes"
+ − 10954 else
+ − 10955 echo "configure: failed program was:" >&5
+ − 10956 cat conftest.$ac_ext >&5
+ − 10957 rm -rf conftest*
+ − 10958 eval "ac_cv_func_$ac_func=no"
+ − 10959 fi
+ − 10960 rm -f conftest*
+ − 10961
+ − 10962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 10963 echo "$ac_t""yes" 1>&6
+ − 10964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 10965 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10966 Defining $ac_tr_func
+ − 10967 EOF
+ − 10968 cat >> confdefs.h <<EOF
+ − 10969 #define $ac_tr_func 1
+ − 10970 EOF
+ − 10971 }
+ − 10972
+ − 10973 else
+ − 10974 echo "$ac_t""no" 1>&6
+ − 10975 fi
+ − 10976 done
+ − 10977
+ − 10978
458
+ − 10979
444
+ − 10980 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
442
+ − 10981 do
+ − 10982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
726
+ − 10983 echo "configure:10984: checking for $ac_func" >&5
+ − 10984
+ − 10985 cat > conftest.$ac_ext <<EOF
+ − 10986 #line 10987 "configure"
442
+ − 10987 #include "confdefs.h"
+ − 10988 /* System header to define __stub macros and hopefully few prototypes,
+ − 10989 which can conflict with char $ac_func(); below. */
+ − 10990 #include <assert.h>
+ − 10991 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10992 /* We use char because int might match the return type of a gcc2
+ − 10993 builtin and then its argument prototype would still apply. */
+ − 10994 char $ac_func();
+ − 10995
+ − 10996 int main() {
+ − 10997
+ − 10998 /* The GNU C library defines this for functions which it implements
+ − 10999 to always fail with ENOSYS. Some functions are actually named
+ − 11000 something starting with __ and the normal name is an alias. */
+ − 11001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 11002 choke me
+ − 11003 #else
+ − 11004 $ac_func();
+ − 11005 #endif
+ − 11006
+ − 11007 ; return 0; }
+ − 11008 EOF
726
+ − 11009 if { (eval echo configure:11010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
410
+ − 11010 rm -rf conftest*
+ − 11011 eval "ac_cv_func_$ac_func=yes"
+ − 11012 else
+ − 11013 echo "configure: failed program was:" >&5
+ − 11014 cat conftest.$ac_ext >&5
+ − 11015 rm -rf conftest*
+ − 11016 eval "ac_cv_func_$ac_func=no"
+ − 11017 fi
+ − 11018 rm -f conftest*
+ − 11019
+ − 11020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 11021 echo "$ac_t""yes" 1>&6
+ − 11022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 11023 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11024 Defining $ac_tr_func
+ − 11025 EOF
+ − 11026 cat >> confdefs.h <<EOF
+ − 11027 #define $ac_tr_func 1
+ − 11028 EOF
+ − 11029 }
+ − 11030
+ − 11031 else
+ − 11032 echo "$ac_t""no" 1>&6
+ − 11033 fi
+ − 11034 done
+ − 11035
+ − 11036
442
+ − 11037 echo $ac_n "checking for openpty""... $ac_c" 1>&6
726
+ − 11038 echo "configure:11039: checking for openpty" >&5
+ − 11039
+ − 11040 cat > conftest.$ac_ext <<EOF
+ − 11041 #line 11042 "configure"
442
+ − 11042 #include "confdefs.h"
+ − 11043 /* System header to define __stub macros and hopefully few prototypes,
+ − 11044 which can conflict with char openpty(); below. */
+ − 11045 #include <assert.h>
+ − 11046 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11047 /* We use char because int might match the return type of a gcc2
+ − 11048 builtin and then its argument prototype would still apply. */
+ − 11049 char openpty();
+ − 11050
+ − 11051 int main() {
+ − 11052
+ − 11053 /* The GNU C library defines this for functions which it implements
+ − 11054 to always fail with ENOSYS. Some functions are actually named
+ − 11055 something starting with __ and the normal name is an alias. */
+ − 11056 #if defined (__stub_openpty) || defined (__stub___openpty)
+ − 11057 choke me
+ − 11058 #else
+ − 11059 openpty();
+ − 11060 #endif
+ − 11061
+ − 11062 ; return 0; }
+ − 11063 EOF
726
+ − 11064 if { (eval echo configure:11065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 11065 rm -rf conftest*
+ − 11066 eval "ac_cv_func_openpty=yes"
+ − 11067 else
+ − 11068 echo "configure: failed program was:" >&5
+ − 11069 cat conftest.$ac_ext >&5
+ − 11070 rm -rf conftest*
+ − 11071 eval "ac_cv_func_openpty=no"
+ − 11072 fi
+ − 11073 rm -f conftest*
+ − 11074
+ − 11075 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
+ − 11076 echo "$ac_t""yes" 1>&6
+ − 11077 have_openpty=yes
+ − 11078 else
+ − 11079 echo "$ac_t""no" 1>&6
+ − 11080
+ − 11081
+ − 11082 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
726
+ − 11083 echo "configure:11084: checking for openpty in -lutil" >&5
442
+ − 11084 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
+ − 11085
+ − 11086 xe_check_libs=" -lutil "
+ − 11087 cat > conftest.$ac_ext <<EOF
726
+ − 11088 #line 11089 "configure"
442
+ − 11089 #include "confdefs.h"
+ − 11090 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11091 /* We use char because int might match the return type of a gcc2
+ − 11092 builtin and then its argument prototype would still apply. */
+ − 11093 char openpty();
+ − 11094
+ − 11095 int main() {
+ − 11096 openpty()
+ − 11097 ; return 0; }
+ − 11098 EOF
726
+ − 11099 if { (eval echo configure:11100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 11100 rm -rf conftest*
+ − 11101 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 11102 else
+ − 11103 echo "configure: failed program was:" >&5
+ − 11104 cat conftest.$ac_ext >&5
+ − 11105 rm -rf conftest*
+ − 11106 eval "ac_cv_lib_$ac_lib_var=no"
+ − 11107 fi
+ − 11108 rm -f conftest*
+ − 11109 xe_check_libs=""
+ − 11110
+ − 11111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 11112 echo "$ac_t""yes" 1>&6
+ − 11113 have_openpty=yes need_libutil=yes
+ − 11114 else
+ − 11115 echo "$ac_t""no" 1>&6
+ − 11116 fi
+ − 11117
+ − 11118
+ − 11119 fi
+ − 11120
+ − 11121 if test "$have_openpty" = "yes"; then
+ − 11122 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11123 Defining HAVE_OPENPTY
+ − 11124 EOF
+ − 11125 cat >> confdefs.h <<\EOF
+ − 11126 #define HAVE_OPENPTY 1
+ − 11127 EOF
+ − 11128 }
+ − 11129
535
+ − 11130 for ac_hdr in libutil.h util.h
442
+ − 11131 do
+ − 11132 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 11133 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
726
+ − 11134 echo "configure:11135: checking for $ac_hdr" >&5
+ − 11135
+ − 11136 cat > conftest.$ac_ext <<EOF
+ − 11137 #line 11138 "configure"
442
+ − 11138 #include "confdefs.h"
+ − 11139 #include <$ac_hdr>
+ − 11140 EOF
+ − 11141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 11142 { (eval echo configure:11143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 11143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 11144 if test -z "$ac_err"; then
+ − 11145 rm -rf conftest*
+ − 11146 eval "ac_cv_header_$ac_safe=yes"
+ − 11147 else
+ − 11148 echo "$ac_err" >&5
+ − 11149 echo "configure: failed program was:" >&5
+ − 11150 cat conftest.$ac_ext >&5
+ − 11151 rm -rf conftest*
+ − 11152 eval "ac_cv_header_$ac_safe=no"
+ − 11153 fi
+ − 11154 rm -f conftest*
+ − 11155 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11156 echo "$ac_t""yes" 1>&6
+ − 11157 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 11158 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11159 Defining $ac_tr_hdr
+ − 11160 EOF
+ − 11161 cat >> confdefs.h <<EOF
+ − 11162 #define $ac_tr_hdr 1
+ − 11163 EOF
+ − 11164 }
458
+ − 11165 break
442
+ − 11166 else
+ − 11167 echo "$ac_t""no" 1>&6
+ − 11168 fi
+ − 11169 done
+ − 11170
+ − 11171 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
+ − 11172 fi
+ − 11173
535
+ − 11174 case "$opsys" in
+ − 11175 hpux*) for ac_hdr in sys/ptyio.h
+ − 11176 do
+ − 11177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 11178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
726
+ − 11179 echo "configure:11180: checking for $ac_hdr" >&5
+ − 11180
+ − 11181 cat > conftest.$ac_ext <<EOF
+ − 11182 #line 11183 "configure"
535
+ − 11183 #include "confdefs.h"
+ − 11184 #include <$ac_hdr>
+ − 11185 EOF
+ − 11186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 11187 { (eval echo configure:11188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
535
+ − 11188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 11189 if test -z "$ac_err"; then
+ − 11190 rm -rf conftest*
+ − 11191 eval "ac_cv_header_$ac_safe=yes"
+ − 11192 else
+ − 11193 echo "$ac_err" >&5
+ − 11194 echo "configure: failed program was:" >&5
+ − 11195 cat conftest.$ac_ext >&5
+ − 11196 rm -rf conftest*
+ − 11197 eval "ac_cv_header_$ac_safe=no"
+ − 11198 fi
+ − 11199 rm -f conftest*
+ − 11200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11201 echo "$ac_t""yes" 1>&6
+ − 11202 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 11203 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11204 Defining $ac_tr_hdr
+ − 11205 EOF
+ − 11206 cat >> confdefs.h <<EOF
+ − 11207 #define $ac_tr_hdr 1
+ − 11208 EOF
+ − 11209 }
+ − 11210
+ − 11211 else
+ − 11212 echo "$ac_t""no" 1>&6
+ − 11213 fi
+ − 11214 done
+ − 11215 ;;
+ − 11216 *) for ac_hdr in pty.h
+ − 11217 do
+ − 11218 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 11219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
726
+ − 11220 echo "configure:11221: checking for $ac_hdr" >&5
+ − 11221
+ − 11222 cat > conftest.$ac_ext <<EOF
+ − 11223 #line 11224 "configure"
535
+ − 11224 #include "confdefs.h"
+ − 11225 #include <$ac_hdr>
+ − 11226 EOF
+ − 11227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 11228 { (eval echo configure:11229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
535
+ − 11229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 11230 if test -z "$ac_err"; then
+ − 11231 rm -rf conftest*
+ − 11232 eval "ac_cv_header_$ac_safe=yes"
+ − 11233 else
+ − 11234 echo "$ac_err" >&5
+ − 11235 echo "configure: failed program was:" >&5
+ − 11236 cat conftest.$ac_ext >&5
+ − 11237 rm -rf conftest*
+ − 11238 eval "ac_cv_header_$ac_safe=no"
+ − 11239 fi
+ − 11240 rm -f conftest*
+ − 11241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11242 echo "$ac_t""yes" 1>&6
+ − 11243 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 11244 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11245 Defining $ac_tr_hdr
+ − 11246 EOF
+ − 11247 cat >> confdefs.h <<EOF
+ − 11248 #define $ac_tr_hdr 1
+ − 11249 EOF
+ − 11250 }
+ − 11251
+ − 11252 else
+ − 11253 echo "$ac_t""no" 1>&6
+ − 11254 fi
+ − 11255 done
+ − 11256
+ − 11257 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
+ − 11258 do
+ − 11259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 11260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
726
+ − 11261 echo "configure:11262: checking for $ac_hdr" >&5
+ − 11262
+ − 11263 cat > conftest.$ac_ext <<EOF
+ − 11264 #line 11265 "configure"
535
+ − 11265 #include "confdefs.h"
+ − 11266 #include <$ac_hdr>
+ − 11267 EOF
+ − 11268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 11269 { (eval echo configure:11270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
535
+ − 11270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 11271 if test -z "$ac_err"; then
+ − 11272 rm -rf conftest*
+ − 11273 eval "ac_cv_header_$ac_safe=yes"
+ − 11274 else
+ − 11275 echo "$ac_err" >&5
+ − 11276 echo "configure: failed program was:" >&5
+ − 11277 cat conftest.$ac_ext >&5
+ − 11278 rm -rf conftest*
+ − 11279 eval "ac_cv_header_$ac_safe=no"
+ − 11280 fi
+ − 11281 rm -f conftest*
+ − 11282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11283 echo "$ac_t""yes" 1>&6
+ − 11284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 11285 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11286 Defining $ac_tr_hdr
+ − 11287 EOF
+ − 11288 cat >> confdefs.h <<EOF
+ − 11289 #define $ac_tr_hdr 1
+ − 11290 EOF
+ − 11291 }
+ − 11292
+ − 11293 else
+ − 11294 echo "$ac_t""no" 1>&6
+ − 11295 fi
+ − 11296 done
+ − 11297
+ − 11298 ;;
+ − 11299 esac
+ − 11300
444
+ − 11301 for ac_hdr in stropts.h
442
+ − 11302 do
+ − 11303 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 11304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
726
+ − 11305 echo "configure:11306: checking for $ac_hdr" >&5
+ − 11306
+ − 11307 cat > conftest.$ac_ext <<EOF
+ − 11308 #line 11309 "configure"
442
+ − 11309 #include "confdefs.h"
+ − 11310 #include <$ac_hdr>
+ − 11311 EOF
+ − 11312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 11313 { (eval echo configure:11314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 11314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 11315 if test -z "$ac_err"; then
+ − 11316 rm -rf conftest*
+ − 11317 eval "ac_cv_header_$ac_safe=yes"
+ − 11318 else
+ − 11319 echo "$ac_err" >&5
+ − 11320 echo "configure: failed program was:" >&5
+ − 11321 cat conftest.$ac_ext >&5
+ − 11322 rm -rf conftest*
+ − 11323 eval "ac_cv_header_$ac_safe=no"
+ − 11324 fi
+ − 11325 rm -f conftest*
+ − 11326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11327 echo "$ac_t""yes" 1>&6
+ − 11328 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 11329 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11330 Defining $ac_tr_hdr
+ − 11331 EOF
+ − 11332 cat >> confdefs.h <<EOF
+ − 11333 #define $ac_tr_hdr 1
+ − 11334 EOF
+ − 11335 }
+ − 11336
+ − 11337 else
+ − 11338 echo "$ac_t""no" 1>&6
+ − 11339 fi
+ − 11340 done
+ − 11341
444
+ − 11342 if test "$ac_cv_header_stropts_h" = "yes"; then
442
+ − 11343 for ac_func in isastream
410
+ − 11344 do
+ − 11345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
726
+ − 11346 echo "configure:11347: checking for $ac_func" >&5
+ − 11347
+ − 11348 cat > conftest.$ac_ext <<EOF
+ − 11349 #line 11350 "configure"
149
+ − 11350 #include "confdefs.h"
+ − 11351 /* System header to define __stub macros and hopefully few prototypes,
+ − 11352 which can conflict with char $ac_func(); below. */
+ − 11353 #include <assert.h>
+ − 11354 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11355 /* We use char because int might match the return type of a gcc2
+ − 11356 builtin and then its argument prototype would still apply. */
+ − 11357 char $ac_func();
+ − 11358
+ − 11359 int main() {
+ − 11360
70
+ − 11361 /* The GNU C library defines this for functions which it implements
+ − 11362 to always fail with ENOSYS. Some functions are actually named
+ − 11363 something starting with __ and the normal name is an alias. */
149
+ − 11364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70
+ − 11365 choke me
+ − 11366 #else
149
+ − 11367 $ac_func();
70
+ − 11368 #endif
149
+ − 11369
70
+ − 11370 ; return 0; }
+ − 11371 EOF
726
+ − 11372 if { (eval echo configure:11373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
+ − 11373 rm -rf conftest*
+ − 11374 eval "ac_cv_func_$ac_func=yes"
+ − 11375 else
+ − 11376 echo "configure: failed program was:" >&5
+ − 11377 cat conftest.$ac_ext >&5
+ − 11378 rm -rf conftest*
+ − 11379 eval "ac_cv_func_$ac_func=no"
+ − 11380 fi
+ − 11381 rm -f conftest*
+ − 11382
+ − 11383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 11384 echo "$ac_t""yes" 1>&6
+ − 11385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 11386 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11387 Defining $ac_tr_func
+ − 11388 EOF
+ − 11389 cat >> confdefs.h <<EOF
+ − 11390 #define $ac_tr_func 1
+ − 11391 EOF
+ − 11392 }
+ − 11393
+ − 11394 else
+ − 11395 echo "$ac_t""no" 1>&6
+ − 11396 fi
+ − 11397 done
+ − 11398
444
+ − 11399 for ac_hdr in strtio.h
442
+ − 11400 do
+ − 11401 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 11402 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
726
+ − 11403 echo "configure:11404: checking for $ac_hdr" >&5
+ − 11404
+ − 11405 cat > conftest.$ac_ext <<EOF
+ − 11406 #line 11407 "configure"
442
+ − 11407 #include "confdefs.h"
+ − 11408 #include <$ac_hdr>
+ − 11409 EOF
+ − 11410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 11411 { (eval echo configure:11412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 11412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 11413 if test -z "$ac_err"; then
+ − 11414 rm -rf conftest*
+ − 11415 eval "ac_cv_header_$ac_safe=yes"
+ − 11416 else
+ − 11417 echo "$ac_err" >&5
+ − 11418 echo "configure: failed program was:" >&5
+ − 11419 cat conftest.$ac_ext >&5
+ − 11420 rm -rf conftest*
+ − 11421 eval "ac_cv_header_$ac_safe=no"
+ − 11422 fi
+ − 11423 rm -f conftest*
+ − 11424 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11425 echo "$ac_t""yes" 1>&6
+ − 11426 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 11427 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11428 Defining $ac_tr_hdr
+ − 11429 EOF
+ − 11430 cat >> confdefs.h <<EOF
+ − 11431 #define $ac_tr_hdr 1
+ − 11432 EOF
+ − 11433 }
+ − 11434
+ − 11435 else
+ − 11436 echo "$ac_t""no" 1>&6
+ − 11437 fi
+ − 11438 done
+ − 11439 fi
+ − 11440
+ − 11441 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
+ − 11442 echo " xemacs will be linked with \"realpath.o\""
+ − 11443 fi
+ − 11444
+ − 11445 for ac_func in getloadavg
+ − 11446 do
+ − 11447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
726
+ − 11448 echo "configure:11449: checking for $ac_func" >&5
+ − 11449
+ − 11450 cat > conftest.$ac_ext <<EOF
+ − 11451 #line 11452 "configure"
442
+ − 11452 #include "confdefs.h"
+ − 11453 /* System header to define __stub macros and hopefully few prototypes,
+ − 11454 which can conflict with char $ac_func(); below. */
+ − 11455 #include <assert.h>
+ − 11456 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11457 /* We use char because int might match the return type of a gcc2
+ − 11458 builtin and then its argument prototype would still apply. */
+ − 11459 char $ac_func();
+ − 11460
+ − 11461 int main() {
+ − 11462
+ − 11463 /* The GNU C library defines this for functions which it implements
+ − 11464 to always fail with ENOSYS. Some functions are actually named
+ − 11465 something starting with __ and the normal name is an alias. */
+ − 11466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 11467 choke me
+ − 11468 #else
+ − 11469 $ac_func();
+ − 11470 #endif
+ − 11471
+ − 11472 ; return 0; }
+ − 11473 EOF
726
+ − 11474 if { (eval echo configure:11475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 11475 rm -rf conftest*
+ − 11476 eval "ac_cv_func_$ac_func=yes"
+ − 11477 else
+ − 11478 echo "configure: failed program was:" >&5
+ − 11479 cat conftest.$ac_ext >&5
+ − 11480 rm -rf conftest*
+ − 11481 eval "ac_cv_func_$ac_func=no"
+ − 11482 fi
+ − 11483 rm -f conftest*
+ − 11484
+ − 11485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 11486 echo "$ac_t""yes" 1>&6
+ − 11487 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 11488 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11489 Defining $ac_tr_func
+ − 11490 EOF
+ − 11491 cat >> confdefs.h <<EOF
+ − 11492 #define $ac_tr_func 1
+ − 11493 EOF
+ − 11494 }
+ − 11495
+ − 11496 else
+ − 11497 echo "$ac_t""no" 1>&6
+ − 11498 fi
+ − 11499 done
+ − 11500
+ − 11501
+ − 11502 if test "$ac_cv_func_getloadavg" = "yes"; then
+ − 11503 for ac_hdr in sys/loadavg.h
+ − 11504 do
+ − 11505 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 11506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
726
+ − 11507 echo "configure:11508: checking for $ac_hdr" >&5
+ − 11508
+ − 11509 cat > conftest.$ac_ext <<EOF
+ − 11510 #line 11511 "configure"
442
+ − 11511 #include "confdefs.h"
+ − 11512 #include <$ac_hdr>
+ − 11513 EOF
+ − 11514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 11515 { (eval echo configure:11516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 11516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 11517 if test -z "$ac_err"; then
+ − 11518 rm -rf conftest*
+ − 11519 eval "ac_cv_header_$ac_safe=yes"
+ − 11520 else
+ − 11521 echo "$ac_err" >&5
+ − 11522 echo "configure: failed program was:" >&5
+ − 11523 cat conftest.$ac_ext >&5
+ − 11524 rm -rf conftest*
+ − 11525 eval "ac_cv_header_$ac_safe=no"
+ − 11526 fi
+ − 11527 rm -f conftest*
+ − 11528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11529 echo "$ac_t""yes" 1>&6
+ − 11530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 11531 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11532 Defining $ac_tr_hdr
+ − 11533 EOF
+ − 11534 cat >> confdefs.h <<EOF
+ − 11535 #define $ac_tr_hdr 1
+ − 11536 EOF
+ − 11537 }
+ − 11538
+ − 11539 else
+ − 11540 echo "$ac_t""no" 1>&6
+ − 11541 fi
+ − 11542 done
+ − 11543
+ − 11544 else
+ − 11545 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
398
+ − 11546 echo " xemacs will be linked with \"getloadavg.o\""
+ − 11547 fi
+ − 11548
+ − 11549
+ − 11550 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
726
+ − 11551 echo "configure:11552: checking for kstat_open in -lkstat" >&5
398
+ − 11552 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
+ − 11553
+ − 11554 xe_check_libs=" -lkstat "
+ − 11555 cat > conftest.$ac_ext <<EOF
726
+ − 11556 #line 11557 "configure"
398
+ − 11557 #include "confdefs.h"
+ − 11558 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11559 /* We use char because int might match the return type of a gcc2
+ − 11560 builtin and then its argument prototype would still apply. */
+ − 11561 char kstat_open();
+ − 11562
+ − 11563 int main() {
+ − 11564 kstat_open()
+ − 11565 ; return 0; }
+ − 11566 EOF
726
+ − 11567 if { (eval echo configure:11568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
+ − 11568 rm -rf conftest*
+ − 11569 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 11570 else
+ − 11571 echo "configure: failed program was:" >&5
+ − 11572 cat conftest.$ac_ext >&5
+ − 11573 rm -rf conftest*
+ − 11574 eval "ac_cv_lib_$ac_lib_var=no"
+ − 11575 fi
+ − 11576 rm -f conftest*
+ − 11577 xe_check_libs=""
+ − 11578
+ − 11579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 11580 echo "$ac_t""yes" 1>&6
+ − 11581 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 11582 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
369
+ − 11583 { test "$extra_verbose" = "yes" && cat << EOF
398
+ − 11584 Defining $ac_tr_lib
369
+ − 11585 EOF
+ − 11586 cat >> confdefs.h <<EOF
398
+ − 11587 #define $ac_tr_lib 1
+ − 11588 EOF
+ − 11589 }
+ − 11590
+ − 11591 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
+ − 11592
+ − 11593 else
+ − 11594 echo "$ac_t""no" 1>&6
+ − 11595 fi
+ − 11596
+ − 11597
442
+ − 11598 for ac_hdr in kstat.h
+ − 11599 do
+ − 11600 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 11601 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
726
+ − 11602 echo "configure:11603: checking for $ac_hdr" >&5
+ − 11603
+ − 11604 cat > conftest.$ac_ext <<EOF
+ − 11605 #line 11606 "configure"
442
+ − 11606 #include "confdefs.h"
+ − 11607 #include <$ac_hdr>
+ − 11608 EOF
+ − 11609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 11610 { (eval echo configure:11611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 11611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 11612 if test -z "$ac_err"; then
+ − 11613 rm -rf conftest*
+ − 11614 eval "ac_cv_header_$ac_safe=yes"
+ − 11615 else
+ − 11616 echo "$ac_err" >&5
+ − 11617 echo "configure: failed program was:" >&5
+ − 11618 cat conftest.$ac_ext >&5
+ − 11619 rm -rf conftest*
+ − 11620 eval "ac_cv_header_$ac_safe=no"
+ − 11621 fi
+ − 11622 rm -f conftest*
+ − 11623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11624 echo "$ac_t""yes" 1>&6
+ − 11625 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 11626 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11627 Defining $ac_tr_hdr
+ − 11628 EOF
+ − 11629 cat >> confdefs.h <<EOF
+ − 11630 #define $ac_tr_hdr 1
+ − 11631 EOF
+ − 11632 }
+ − 11633
+ − 11634 else
+ − 11635 echo "$ac_t""no" 1>&6
+ − 11636 fi
+ − 11637 done
+ − 11638
398
+ − 11639
+ − 11640
+ − 11641 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
726
+ − 11642 echo "configure:11643: checking for kvm_read in -lkvm" >&5
398
+ − 11643 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
+ − 11644
+ − 11645 xe_check_libs=" -lkvm "
+ − 11646 cat > conftest.$ac_ext <<EOF
726
+ − 11647 #line 11648 "configure"
398
+ − 11648 #include "confdefs.h"
+ − 11649 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11650 /* We use char because int might match the return type of a gcc2
+ − 11651 builtin and then its argument prototype would still apply. */
+ − 11652 char kvm_read();
+ − 11653
+ − 11654 int main() {
+ − 11655 kvm_read()
+ − 11656 ; return 0; }
+ − 11657 EOF
726
+ − 11658 if { (eval echo configure:11659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
+ − 11659 rm -rf conftest*
+ − 11660 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 11661 else
+ − 11662 echo "configure: failed program was:" >&5
+ − 11663 cat conftest.$ac_ext >&5
+ − 11664 rm -rf conftest*
+ − 11665 eval "ac_cv_lib_$ac_lib_var=no"
+ − 11666 fi
+ − 11667 rm -f conftest*
+ − 11668 xe_check_libs=""
+ − 11669
+ − 11670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 11671 echo "$ac_t""yes" 1>&6
+ − 11672 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 11673 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 11674 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11675 Defining $ac_tr_lib
+ − 11676 EOF
+ − 11677 cat >> confdefs.h <<EOF
+ − 11678 #define $ac_tr_lib 1
+ − 11679 EOF
+ − 11680 }
+ − 11681
+ − 11682 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
+ − 11683
+ − 11684 else
+ − 11685 echo "$ac_t""no" 1>&6
+ − 11686 fi
+ − 11687
+ − 11688
+ − 11689 fi
151
+ − 11690
149
+ − 11691 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
726
+ − 11692 echo "configure:11693: checking whether netdb declares h_errno" >&5
+ − 11693 cat > conftest.$ac_ext <<EOF
+ − 11694 #line 11695 "configure"
0
+ − 11695 #include "confdefs.h"
+ − 11696 #include <netdb.h>
149
+ − 11697 int main() {
+ − 11698 return h_errno;
+ − 11699 ; return 0; }
+ − 11700 EOF
726
+ − 11701 if { (eval echo configure:11702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 11702 rm -rf conftest*
+ − 11703 echo "$ac_t""yes" 1>&6
+ − 11704 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11705 Defining HAVE_H_ERRNO
+ − 11706 EOF
+ − 11707 cat >> confdefs.h <<\EOF
+ − 11708 #define HAVE_H_ERRNO 1
+ − 11709 EOF
+ − 11710 }
+ − 11711
+ − 11712 else
+ − 11713 echo "configure: failed program was:" >&5
+ − 11714 cat conftest.$ac_ext >&5
+ − 11715 rm -rf conftest*
+ − 11716 echo "$ac_t""no" 1>&6
+ − 11717 fi
+ − 11718 rm -f conftest*
+ − 11719
+ − 11720 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
726
+ − 11721 echo "configure:11722: checking for sigsetjmp" >&5
+ − 11722 cat > conftest.$ac_ext <<EOF
+ − 11723 #line 11724 "configure"
0
+ − 11724 #include "confdefs.h"
+ − 11725 #include <setjmp.h>
149
+ − 11726 int main() {
+ − 11727 sigjmp_buf bar; sigsetjmp (bar, 0);
+ − 11728 ; return 0; }
+ − 11729 EOF
726
+ − 11730 if { (eval echo configure:11731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 11731 rm -rf conftest*
+ − 11732 echo "$ac_t""yes" 1>&6
+ − 11733 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11734 Defining HAVE_SIGSETJMP
+ − 11735 EOF
+ − 11736 cat >> confdefs.h <<\EOF
+ − 11737 #define HAVE_SIGSETJMP 1
+ − 11738 EOF
+ − 11739 }
+ − 11740
+ − 11741 else
+ − 11742 echo "configure: failed program was:" >&5
+ − 11743 cat conftest.$ac_ext >&5
+ − 11744 rm -rf conftest*
+ − 11745 echo "$ac_t""no" 1>&6
+ − 11746 fi
+ − 11747 rm -f conftest*
+ − 11748
+ − 11749 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
726
+ − 11750 echo "configure:11751: checking whether localtime caches TZ" >&5
149
+ − 11751
+ − 11752 if test "$ac_cv_func_tzset" = "yes"; then
+ − 11753 cat > conftest.$ac_ext <<EOF
726
+ − 11754 #line 11755 "configure"
0
+ − 11755 #include "confdefs.h"
+ − 11756 #include <time.h>
149
+ − 11757 #if STDC_HEADERS
0
+ − 11758 # include <stdlib.h>
+ − 11759 #endif
+ − 11760 extern char **environ;
+ − 11761 unset_TZ ()
+ − 11762 {
+ − 11763 char **from, **to;
+ − 11764 for (to = from = environ; (*to = *from); from++)
+ − 11765 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
+ − 11766 to++;
+ − 11767 }
149
+ − 11768 char TZ_GMT0[] = "TZ=GMT0";
+ − 11769 char TZ_PST8[] = "TZ=PST8";
0
+ − 11770 main()
+ − 11771 {
+ − 11772 time_t now = time ((time_t *) 0);
+ − 11773 int hour_GMT0, hour_unset;
149
+ − 11774 if (putenv (TZ_GMT0) != 0)
0
+ − 11775 exit (1);
+ − 11776 hour_GMT0 = localtime (&now)->tm_hour;
+ − 11777 unset_TZ ();
+ − 11778 hour_unset = localtime (&now)->tm_hour;
149
+ − 11779 if (putenv (TZ_PST8) != 0)
0
+ − 11780 exit (1);
+ − 11781 if (localtime (&now)->tm_hour == hour_GMT0)
+ − 11782 exit (1);
+ − 11783 unset_TZ ();
+ − 11784 if (localtime (&now)->tm_hour != hour_unset)
+ − 11785 exit (1);
+ − 11786 exit (0);
+ − 11787 }
+ − 11788 EOF
726
+ − 11789 if { (eval echo configure:11790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 11790 then
0
+ − 11791 emacs_cv_localtime_cache=no
149
+ − 11792 else
373
+ − 11793 conftest_rc="$?"
149
+ − 11794 echo "configure: failed program was:" >&5
+ − 11795 cat conftest.$ac_ext >&5
+ − 11796 rm -fr conftest*
0
+ − 11797 emacs_cv_localtime_cache=yes
+ − 11798 fi
+ − 11799 rm -fr conftest*
149
+ − 11800 else
+ − 11801 # If we lack tzset, report that localtime does not cache TZ,
+ − 11802 # since we can't invalidate the cache if we don't have tzset.
+ − 11803 emacs_cv_localtime_cache=no
+ − 11804 fi
+ − 11805 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
+ − 11806 if test $emacs_cv_localtime_cache = yes; then
+ − 11807 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11808 Defining LOCALTIME_CACHE
+ − 11809 EOF
+ − 11810 cat >> confdefs.h <<\EOF
+ − 11811 #define LOCALTIME_CACHE 1
+ − 11812 EOF
+ − 11813 }
+ − 11814
+ − 11815 fi
+ − 11816
+ − 11817 if test "$HAVE_TIMEVAL" = "yes"; then
274
+ − 11818 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
726
+ − 11819 echo "configure:11820: checking whether gettimeofday accepts one or two arguments" >&5
+ − 11820 cat > conftest.$ac_ext <<EOF
+ − 11821 #line 11822 "configure"
0
+ − 11822 #include "confdefs.h"
+ − 11823
+ − 11824 #ifdef TIME_WITH_SYS_TIME
+ − 11825 #include <sys/time.h>
+ − 11826 #include <time.h>
+ − 11827 #else
+ − 11828 #ifdef HAVE_SYS_TIME_H
+ − 11829 #include <sys/time.h>
+ − 11830 #else
+ − 11831 #include <time.h>
+ − 11832 #endif
+ − 11833 #endif
+ − 11834
149
+ − 11835 int main() {
+ − 11836
0
+ − 11837 struct timeval time;
442
+ − 11838 gettimeofday (&time, 0);
+ − 11839
+ − 11840 ; return 0; }
+ − 11841 EOF
726
+ − 11842 if { (eval echo configure:11843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
274
+ − 11843 rm -rf conftest*
+ − 11844 echo "$ac_t""two" 1>&6
+ − 11845 else
+ − 11846 echo "configure: failed program was:" >&5
+ − 11847 cat conftest.$ac_ext >&5
+ − 11848 rm -rf conftest*
+ − 11849 echo "$ac_t""one" 1>&6
149
+ − 11850 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11851 Defining GETTIMEOFDAY_ONE_ARGUMENT
+ − 11852 EOF
+ − 11853 cat >> confdefs.h <<\EOF
+ − 11854 #define GETTIMEOFDAY_ONE_ARGUMENT 1
+ − 11855 EOF
+ − 11856 }
+ − 11857
+ − 11858 fi
+ − 11859 rm -f conftest*
+ − 11860 fi
+ − 11861
+ − 11862
+ − 11863 echo $ac_n "checking for inline""... $ac_c" 1>&6
726
+ − 11864 echo "configure:11865: checking for inline" >&5
149
+ − 11865
+ − 11866 ac_cv_c_inline=no
+ − 11867 for ac_kw in inline __inline__ __inline; do
+ − 11868 cat > conftest.$ac_ext <<EOF
726
+ − 11869 #line 11870 "configure"
+ − 11870 #include "confdefs.h"
+ − 11871
+ − 11872 int main() {
+ − 11873 } int $ac_kw foo() {
+ − 11874 ; return 0; }
+ − 11875 EOF
+ − 11876 if { (eval echo configure:11877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 11877 rm -rf conftest*
+ − 11878 ac_cv_c_inline=$ac_kw; break
+ − 11879 else
+ − 11880 echo "configure: failed program was:" >&5
+ − 11881 cat conftest.$ac_ext >&5
+ − 11882 fi
+ − 11883 rm -f conftest*
+ − 11884 done
+ − 11885
+ − 11886
+ − 11887 echo "$ac_t""$ac_cv_c_inline" 1>&6
+ − 11888 case "$ac_cv_c_inline" in
+ − 11889 inline | yes) ;;
+ − 11890 no) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11891 Defining inline =
+ − 11892 EOF
+ − 11893 cat >> confdefs.h <<\EOF
+ − 11894 #define inline
+ − 11895 EOF
+ − 11896 }
+ − 11897 ;;
+ − 11898 *) { test "$extra_verbose" = "yes" && cat << EOF
+ − 11899 Defining inline = $ac_cv_c_inline
+ − 11900 EOF
+ − 11901 cat >> confdefs.h <<EOF
+ − 11902 #define inline $ac_cv_c_inline
+ − 11903 EOF
+ − 11904 }
+ − 11905 ;;
+ − 11906 esac
+ − 11907
442
+ − 11908 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
155
+ − 11909 echo " xemacs will be linked with \"inline.o\""
+ − 11910 fi
149
+ − 11911
+ − 11912
444
+ − 11913 if test "$__DECC" != "yes"; then
+ − 11914 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
0
+ − 11915 # for constant arguments. Useless!
149
+ − 11916 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
726
+ − 11917 echo "configure:11918: checking for working alloca.h" >&5
+ − 11918
+ − 11919 cat > conftest.$ac_ext <<EOF
+ − 11920 #line 11921 "configure"
0
+ − 11921 #include "confdefs.h"
+ − 11922 #include <alloca.h>
149
+ − 11923 int main() {
726
+ − 11924 void *p = alloca(2 * sizeof(int));
+ − 11925 ; return 0; }
+ − 11926 EOF
+ − 11927 if { (eval echo configure:11928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 11928 rm -rf conftest*
+ − 11929 ac_cv_header_alloca_h=yes
+ − 11930 else
+ − 11931 echo "configure: failed program was:" >&5
+ − 11932 cat conftest.$ac_ext >&5
+ − 11933 rm -rf conftest*
+ − 11934 ac_cv_header_alloca_h=no
+ − 11935 fi
+ − 11936 rm -f conftest*
+ − 11937
+ − 11938 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
+ − 11939 if test $ac_cv_header_alloca_h = yes; then
+ − 11940 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11941 Defining HAVE_ALLOCA_H
+ − 11942 EOF
+ − 11943 cat >> confdefs.h <<\EOF
+ − 11944 #define HAVE_ALLOCA_H 1
+ − 11945 EOF
+ − 11946 }
+ − 11947
+ − 11948 fi
+ − 11949
+ − 11950 echo $ac_n "checking for alloca""... $ac_c" 1>&6
726
+ − 11951 echo "configure:11952: checking for alloca" >&5
+ − 11952
+ − 11953 cat > conftest.$ac_ext <<EOF
+ − 11954 #line 11955 "configure"
149
+ − 11955 #include "confdefs.h"
+ − 11956
+ − 11957 #ifdef __GNUC__
+ − 11958 # define alloca __builtin_alloca
0
+ − 11959 #else
420
+ − 11960 # ifdef _MSC_VER
+ − 11961 # include <malloc.h>
+ − 11962 # define alloca _alloca
149
+ − 11963 # else
420
+ − 11964 # if HAVE_ALLOCA_H
+ − 11965 # include <alloca.h>
149
+ − 11966 # else
420
+ − 11967 # ifdef _AIX
+ − 11968 #pragma alloca
+ − 11969 # else
+ − 11970 # ifndef alloca /* predefined by HP cc +Olibcalls */
149
+ − 11971 char *alloca ();
420
+ − 11972 # endif
149
+ − 11973 # endif
+ − 11974 # endif
+ − 11975 # endif
0
+ − 11976 #endif
149
+ − 11977
+ − 11978 int main() {
+ − 11979 char *p = (char *) alloca(1);
0
+ − 11980 ; return 0; }
+ − 11981 EOF
726
+ − 11982 if { (eval echo configure:11983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 11983 rm -rf conftest*
+ − 11984 ac_cv_func_alloca_works=yes
+ − 11985 else
+ − 11986 echo "configure: failed program was:" >&5
+ − 11987 cat conftest.$ac_ext >&5
+ − 11988 rm -rf conftest*
+ − 11989 ac_cv_func_alloca_works=no
+ − 11990 fi
+ − 11991 rm -f conftest*
+ − 11992
+ − 11993 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
+ − 11994 if test $ac_cv_func_alloca_works = yes; then
+ − 11995 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11996 Defining HAVE_ALLOCA
+ − 11997 EOF
+ − 11998 cat >> confdefs.h <<\EOF
+ − 11999 #define HAVE_ALLOCA 1
+ − 12000 EOF
+ − 12001 }
+ − 12002
+ − 12003 fi
+ − 12004
+ − 12005 if test $ac_cv_func_alloca_works = no; then
0
+ − 12006 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
+ − 12007 # that cause trouble. Some versions do not even contain alloca or
+ − 12008 # contain a buggy version. If you still want to use their alloca,
+ − 12009 # use ar to extract alloca.o from them instead of compiling alloca.c.
420
+ − 12010 ALLOCA=alloca.${ac_objext}
149
+ − 12011 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12012 Defining C_ALLOCA
+ − 12013 EOF
+ − 12014 cat >> confdefs.h <<\EOF
+ − 12015 #define C_ALLOCA 1
+ − 12016 EOF
+ − 12017 }
+ − 12018
+ − 12019
+ − 12020 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
726
+ − 12021 echo "configure:12022: checking whether alloca needs Cray hooks" >&5
+ − 12022
+ − 12023 cat > conftest.$ac_ext <<EOF
+ − 12024 #line 12025 "configure"
149
+ − 12025 #include "confdefs.h"
+ − 12026 #if defined(CRAY) && ! defined(CRAY2)
+ − 12027 webecray
+ − 12028 #else
+ − 12029 wenotbecray
+ − 12030 #endif
+ − 12031
+ − 12032 EOF
+ − 12033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 12034 egrep "webecray" >/dev/null 2>&1; then
+ − 12035 rm -rf conftest*
+ − 12036 ac_cv_os_cray=yes
+ − 12037 else
+ − 12038 rm -rf conftest*
+ − 12039 ac_cv_os_cray=no
+ − 12040 fi
+ − 12041 rm -f conftest*
+ − 12042
+ − 12043
+ − 12044 echo "$ac_t""$ac_cv_os_cray" 1>&6
+ − 12045 if test $ac_cv_os_cray = yes; then
+ − 12046 for ac_func in _getb67 GETB67 getb67; do
+ − 12047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
726
+ − 12048 echo "configure:12049: checking for $ac_func" >&5
+ − 12049
+ − 12050 cat > conftest.$ac_ext <<EOF
+ − 12051 #line 12052 "configure"
149
+ − 12052 #include "confdefs.h"
+ − 12053 /* System header to define __stub macros and hopefully few prototypes,
+ − 12054 which can conflict with char $ac_func(); below. */
+ − 12055 #include <assert.h>
+ − 12056 /* Override any gcc2 internal prototype to avoid an error. */
+ − 12057 /* We use char because int might match the return type of a gcc2
+ − 12058 builtin and then its argument prototype would still apply. */
+ − 12059 char $ac_func();
+ − 12060
+ − 12061 int main() {
+ − 12062
+ − 12063 /* The GNU C library defines this for functions which it implements
+ − 12064 to always fail with ENOSYS. Some functions are actually named
+ − 12065 something starting with __ and the normal name is an alias. */
+ − 12066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 12067 choke me
+ − 12068 #else
+ − 12069 $ac_func();
+ − 12070 #endif
+ − 12071
+ − 12072 ; return 0; }
+ − 12073 EOF
726
+ − 12074 if { (eval echo configure:12075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 12075 rm -rf conftest*
+ − 12076 eval "ac_cv_func_$ac_func=yes"
+ − 12077 else
+ − 12078 echo "configure: failed program was:" >&5
+ − 12079 cat conftest.$ac_ext >&5
+ − 12080 rm -rf conftest*
+ − 12081 eval "ac_cv_func_$ac_func=no"
+ − 12082 fi
+ − 12083 rm -f conftest*
+ − 12084
+ − 12085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 12086 echo "$ac_t""yes" 1>&6
+ − 12087 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12088 Defining CRAY_STACKSEG_END = $ac_func
+ − 12089 EOF
+ − 12090 cat >> confdefs.h <<EOF
+ − 12091 #define CRAY_STACKSEG_END $ac_func
+ − 12092 EOF
+ − 12093 }
+ − 12094
+ − 12095 break
+ − 12096 else
+ − 12097 echo "$ac_t""no" 1>&6
+ − 12098 fi
+ − 12099
+ − 12100 done
+ − 12101 fi
+ − 12102
+ − 12103 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
726
+ − 12104 echo "configure:12105: checking stack direction for C alloca" >&5
+ − 12105
+ − 12106 cat > conftest.$ac_ext <<EOF
+ − 12107 #line 12108 "configure"
0
+ − 12108 #include "confdefs.h"
+ − 12109 find_stack_direction ()
+ − 12110 {
+ − 12111 static char *addr = 0;
+ − 12112 auto char dummy;
+ − 12113 if (addr == 0)
+ − 12114 {
+ − 12115 addr = &dummy;
+ − 12116 return find_stack_direction ();
+ − 12117 }
+ − 12118 else
+ − 12119 return (&dummy > addr) ? 1 : -1;
+ − 12120 }
+ − 12121 main ()
+ − 12122 {
+ − 12123 exit (find_stack_direction() < 0);
+ − 12124 }
+ − 12125 EOF
726
+ − 12126 if { (eval echo configure:12127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 12127 then
+ − 12128 ac_cv_c_stack_direction=1
+ − 12129 else
373
+ − 12130 conftest_rc="$?"
149
+ − 12131 echo "configure: failed program was:" >&5
+ − 12132 cat conftest.$ac_ext >&5
+ − 12133 rm -fr conftest*
+ − 12134 ac_cv_c_stack_direction=-1
0
+ − 12135 fi
+ − 12136 rm -fr conftest*
149
+ − 12137
+ − 12138 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
+ − 12139 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12140 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
+ − 12141 EOF
+ − 12142 cat >> confdefs.h <<EOF
+ − 12143 #define STACK_DIRECTION $ac_cv_c_stack_direction
+ − 12144 EOF
+ − 12145 }
+ − 12146
+ − 12147 fi
+ − 12148
444
+ − 12149 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
151
+ − 12150 echo " xemacs will be linked with \"$ALLOCA\""
+ − 12151 fi
444
+ − 12152 fi
149
+ − 12153
+ − 12154 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
+ − 12155 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
726
+ − 12156 echo "configure:12157: checking for vfork.h" >&5
+ − 12157
+ − 12158 cat > conftest.$ac_ext <<EOF
+ − 12159 #line 12160 "configure"
0
+ − 12160 #include "confdefs.h"
+ − 12161 #include <vfork.h>
+ − 12162 EOF
149
+ − 12163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 12164 { (eval echo configure:12165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 12165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 12166 if test -z "$ac_err"; then
+ − 12167 rm -rf conftest*
149
+ − 12168 eval "ac_cv_header_$ac_safe=yes"
+ − 12169 else
+ − 12170 echo "$ac_err" >&5
+ − 12171 echo "configure: failed program was:" >&5
+ − 12172 cat conftest.$ac_ext >&5
+ − 12173 rm -rf conftest*
+ − 12174 eval "ac_cv_header_$ac_safe=no"
+ − 12175 fi
+ − 12176 rm -f conftest*
+ − 12177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12178 echo "$ac_t""yes" 1>&6
+ − 12179 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12180 Defining HAVE_VFORK_H
+ − 12181 EOF
+ − 12182 cat >> confdefs.h <<\EOF
+ − 12183 #define HAVE_VFORK_H 1
+ − 12184 EOF
+ − 12185 }
+ − 12186
+ − 12187 else
+ − 12188 echo "$ac_t""no" 1>&6
+ − 12189 fi
+ − 12190
+ − 12191 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
726
+ − 12192 echo "configure:12193: checking for working vfork" >&5
+ − 12193
+ − 12194 cat > conftest.$ac_ext <<EOF
+ − 12195 #line 12196 "configure"
0
+ − 12196 #include "confdefs.h"
+ − 12197 /* Thanks to Paul Eggert for this test. */
+ − 12198 #include <stdio.h>
+ − 12199 #include <sys/types.h>
+ − 12200 #include <sys/stat.h>
+ − 12201 #ifdef HAVE_UNISTD_H
+ − 12202 #include <unistd.h>
+ − 12203 #endif
+ − 12204 #ifdef HAVE_VFORK_H
+ − 12205 #include <vfork.h>
+ − 12206 #endif
149
+ − 12207 /* On some sparc systems, changes by the child to local and incoming
+ − 12208 argument registers are propagated back to the parent.
+ − 12209 The compiler is told about this with #include <vfork.h>,
+ − 12210 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
+ − 12211 Test for this by using a static variable whose address
+ − 12212 is put into a register that is clobbered by the vfork. */
+ − 12213 static
+ − 12214 #ifdef __cplusplus
+ − 12215 sparc_address_test (int arg)
+ − 12216 #else
+ − 12217 sparc_address_test (arg) int arg;
+ − 12218 #endif
+ − 12219 {
+ − 12220 static pid_t child;
+ − 12221 if (!child) {
+ − 12222 child = vfork ();
+ − 12223 if (child < 0) {
+ − 12224 perror ("vfork");
+ − 12225 _exit(2);
+ − 12226 }
+ − 12227 if (!child) {
+ − 12228 arg = getpid();
+ − 12229 write(-1, "", 0);
+ − 12230 _exit (arg);
+ − 12231 }
+ − 12232 }
+ − 12233 }
0
+ − 12234 main() {
+ − 12235 pid_t parent = getpid ();
+ − 12236 pid_t child;
+ − 12237
149
+ − 12238 sparc_address_test ();
0
+ − 12239
+ − 12240 child = vfork ();
+ − 12241
+ − 12242 if (child == 0) {
149
+ − 12243 /* Here is another test for sparc vfork register problems.
+ − 12244 This test uses lots of local variables, at least
0
+ − 12245 as many local variables as main has allocated so far
+ − 12246 including compiler temporaries. 4 locals are enough for
149
+ − 12247 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
0
+ − 12248 A buggy compiler should reuse the register of parent
+ − 12249 for one of the local variables, since it will think that
+ − 12250 parent can't possibly be used any more in this routine.
+ − 12251 Assigning to the local variable will thus munge parent
+ − 12252 in the parent process. */
+ − 12253 pid_t
+ − 12254 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
+ − 12255 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
+ − 12256 /* Convince the compiler that p..p7 are live; otherwise, it might
+ − 12257 use the same hardware register for all 8 local variables. */
+ − 12258 if (p != p1 || p != p2 || p != p3 || p != p4
+ − 12259 || p != p5 || p != p6 || p != p7)
+ − 12260 _exit(1);
+ − 12261
+ − 12262 /* On some systems (e.g. IRIX 3.3),
+ − 12263 vfork doesn't separate parent from child file descriptors.
+ − 12264 If the child closes a descriptor before it execs or exits,
+ − 12265 this munges the parent's descriptor as well.
+ − 12266 Test for this by closing stdout in the child. */
+ − 12267 _exit(close(fileno(stdout)) != 0);
+ − 12268 } else {
+ − 12269 int status;
+ − 12270 struct stat st;
+ − 12271
+ − 12272 while (wait(&status) != child)
+ − 12273 ;
+ − 12274 exit(
+ − 12275 /* Was there some problem with vforking? */
+ − 12276 child < 0
+ − 12277
+ − 12278 /* Did the child fail? (This shouldn't happen.) */
+ − 12279 || status
+ − 12280
+ − 12281 /* Did the vfork/compiler bug occur? */
+ − 12282 || parent != getpid()
+ − 12283
+ − 12284 /* Did the file descriptor bug occur? */
+ − 12285 || fstat(fileno(stdout), &st) != 0
+ − 12286 );
+ − 12287 }
+ − 12288 }
+ − 12289 EOF
726
+ − 12290 if { (eval echo configure:12291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 12291 then
+ − 12292 ac_cv_func_vfork_works=yes
+ − 12293 else
373
+ − 12294 conftest_rc="$?"
149
+ − 12295 echo "configure: failed program was:" >&5
+ − 12296 cat conftest.$ac_ext >&5
+ − 12297 rm -fr conftest*
+ − 12298 ac_cv_func_vfork_works=no
0
+ − 12299 fi
+ − 12300 rm -fr conftest*
+ − 12301
149
+ − 12302 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
+ − 12303 if test $ac_cv_func_vfork_works = no; then
+ − 12304 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12305 Defining vfork = fork
+ − 12306 EOF
+ − 12307 cat >> confdefs.h <<\EOF
+ − 12308 #define vfork fork
+ − 12309 EOF
+ − 12310 }
+ − 12311
+ − 12312 fi
+ − 12313
+ − 12314
+ − 12315 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
726
+ − 12316 echo "configure:12317: checking for working strcoll" >&5
+ − 12317
+ − 12318 cat > conftest.$ac_ext <<EOF
+ − 12319 #line 12320 "configure"
0
+ − 12320 #include "confdefs.h"
+ − 12321 #include <string.h>
+ − 12322 main ()
+ − 12323 {
+ − 12324 exit (strcoll ("abc", "def") >= 0 ||
+ − 12325 strcoll ("ABC", "DEF") >= 0 ||
+ − 12326 strcoll ("123", "456") >= 0);
+ − 12327 }
+ − 12328 EOF
726
+ − 12329 if { (eval echo configure:12330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 12330 then
+ − 12331 ac_cv_func_strcoll_works=yes
+ − 12332 else
373
+ − 12333 conftest_rc="$?"
149
+ − 12334 echo "configure: failed program was:" >&5
+ − 12335 cat conftest.$ac_ext >&5
+ − 12336 rm -fr conftest*
+ − 12337 ac_cv_func_strcoll_works=no
0
+ − 12338 fi
+ − 12339 rm -fr conftest*
+ − 12340
149
+ − 12341 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
+ − 12342 if test $ac_cv_func_strcoll_works = yes; then
+ − 12343 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12344 Defining HAVE_STRCOLL
+ − 12345 EOF
+ − 12346 cat >> confdefs.h <<\EOF
+ − 12347 #define HAVE_STRCOLL 1
+ − 12348 EOF
+ − 12349 }
+ − 12350
+ − 12351 fi
+ − 12352
+ − 12353
163
+ − 12354 for ac_func in getpgrp
+ − 12355 do
+ − 12356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
726
+ − 12357 echo "configure:12358: checking for $ac_func" >&5
+ − 12358
+ − 12359 cat > conftest.$ac_ext <<EOF
+ − 12360 #line 12361 "configure"
163
+ − 12361 #include "confdefs.h"
+ − 12362 /* System header to define __stub macros and hopefully few prototypes,
+ − 12363 which can conflict with char $ac_func(); below. */
+ − 12364 #include <assert.h>
+ − 12365 /* Override any gcc2 internal prototype to avoid an error. */
+ − 12366 /* We use char because int might match the return type of a gcc2
+ − 12367 builtin and then its argument prototype would still apply. */
+ − 12368 char $ac_func();
+ − 12369
+ − 12370 int main() {
+ − 12371
+ − 12372 /* The GNU C library defines this for functions which it implements
+ − 12373 to always fail with ENOSYS. Some functions are actually named
+ − 12374 something starting with __ and the normal name is an alias. */
+ − 12375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 12376 choke me
+ − 12377 #else
+ − 12378 $ac_func();
+ − 12379 #endif
+ − 12380
+ − 12381 ; return 0; }
+ − 12382 EOF
726
+ − 12383 if { (eval echo configure:12384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
163
+ − 12384 rm -rf conftest*
+ − 12385 eval "ac_cv_func_$ac_func=yes"
+ − 12386 else
+ − 12387 echo "configure: failed program was:" >&5
+ − 12388 cat conftest.$ac_ext >&5
+ − 12389 rm -rf conftest*
+ − 12390 eval "ac_cv_func_$ac_func=no"
+ − 12391 fi
+ − 12392 rm -f conftest*
+ − 12393
+ − 12394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 12395 echo "$ac_t""yes" 1>&6
+ − 12396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 12397 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12398 Defining $ac_tr_func
+ − 12399 EOF
+ − 12400 cat >> confdefs.h <<EOF
+ − 12401 #define $ac_tr_func 1
+ − 12402 EOF
+ − 12403 }
+ − 12404
+ − 12405 else
+ − 12406 echo "$ac_t""no" 1>&6
+ − 12407 fi
+ − 12408 done
+ − 12409
+ − 12410 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
726
+ − 12411 echo "configure:12412: checking whether getpgrp takes no argument" >&5
+ − 12412
+ − 12413 cat > conftest.$ac_ext <<EOF
+ − 12414 #line 12415 "configure"
163
+ − 12415 #include "confdefs.h"
+ − 12416
+ − 12417 /*
+ − 12418 * If this system has a BSD-style getpgrp(),
+ − 12419 * which takes a pid argument, exit unsuccessfully.
+ − 12420 *
+ − 12421 * Snarfed from Chet Ramey's bash pgrp.c test program
+ − 12422 */
+ − 12423 #include <stdio.h>
+ − 12424 #include <sys/types.h>
+ − 12425
+ − 12426 int pid;
+ − 12427 int pg1, pg2, pg3, pg4;
+ − 12428 int ng, np, s, child;
+ − 12429
+ − 12430 main()
+ − 12431 {
+ − 12432 pid = getpid();
+ − 12433 pg1 = getpgrp(0);
+ − 12434 pg2 = getpgrp();
+ − 12435 pg3 = getpgrp(pid);
+ − 12436 pg4 = getpgrp(1);
+ − 12437
+ − 12438 /*
+ − 12439 * If all of these values are the same, it's pretty sure that
+ − 12440 * we're on a system that ignores getpgrp's first argument.
+ − 12441 */
+ − 12442 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
+ − 12443 exit(0);
+ − 12444
+ − 12445 child = fork();
+ − 12446 if (child < 0)
+ − 12447 exit(1);
+ − 12448 else if (child == 0) {
+ − 12449 np = getpid();
+ − 12450 /*
+ − 12451 * If this is Sys V, this will not work; pgrp will be
+ − 12452 * set to np because setpgrp just changes a pgrp to be
+ − 12453 * the same as the pid.
+ − 12454 */
+ − 12455 setpgrp(np, pg1);
+ − 12456 ng = getpgrp(0); /* Same result for Sys V and BSD */
+ − 12457 if (ng == pg1) {
+ − 12458 exit(1);
+ − 12459 } else {
+ − 12460 exit(0);
+ − 12461 }
+ − 12462 } else {
+ − 12463 wait(&s);
+ − 12464 exit(s>>8);
+ − 12465 }
+ − 12466 }
+ − 12467
+ − 12468 EOF
726
+ − 12469 if { (eval echo configure:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
+ − 12470 then
+ − 12471 ac_cv_func_getpgrp_void=yes
+ − 12472 else
373
+ − 12473 conftest_rc="$?"
163
+ − 12474 echo "configure: failed program was:" >&5
+ − 12475 cat conftest.$ac_ext >&5
+ − 12476 rm -fr conftest*
+ − 12477 ac_cv_func_getpgrp_void=no
+ − 12478 fi
+ − 12479 rm -fr conftest*
+ − 12480
+ − 12481
+ − 12482 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
+ − 12483 if test $ac_cv_func_getpgrp_void = yes; then
+ − 12484 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12485 Defining GETPGRP_VOID
+ − 12486 EOF
+ − 12487 cat >> confdefs.h <<\EOF
+ − 12488 #define GETPGRP_VOID 1
+ − 12489 EOF
+ − 12490 }
+ − 12491
+ − 12492 fi
+ − 12493
+ − 12494
149
+ − 12495 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
726
+ − 12496 echo "configure:12497: checking for working mmap" >&5
155
+ − 12497 case "$opsys" in ultrix* ) have_mmap=no ;; *)
+ − 12498 cat > conftest.$ac_ext <<EOF
726
+ − 12499 #line 12500 "configure"
153
+ − 12500 #include "confdefs.h"
+ − 12501 #include <stdio.h>
+ − 12502 #include <unistd.h>
149
+ − 12503 #include <fcntl.h>
+ − 12504 #include <sys/mman.h>
+ − 12505
153
+ − 12506 #ifndef MAP_VARIABLE
+ − 12507 #define MAP_VARIABLE 0
0
+ − 12508 #endif
149
+ − 12509
153
+ − 12510 #ifndef MAP_FAILED
+ − 12511 #define MAP_FAILED -1
+ − 12512 #endif
+ − 12513
+ − 12514 int main (int argc, char *argv[])
0
+ − 12515 {
153
+ − 12516 int fd = -1;
+ − 12517 caddr_t p;
+ − 12518 #ifndef MAP_ANONYMOUS
+ − 12519 fd = open ("/dev/zero", O_RDWR);
+ − 12520 if (fd < 0)
+ − 12521 return 1;
+ − 12522 #define MAP_ANONYMOUS 0
+ − 12523 #endif
+ − 12524 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
+ − 12525 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
+ − 12526 fd, 0) != (void *) MAP_FAILED)
+ − 12527 return 0;
+ − 12528 perror ("conftest: mmap failed");
+ − 12529 return 1;
+ − 12530 }
+ − 12531 EOF
726
+ − 12532 if { (eval echo configure:12533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 12533 then
153
+ − 12534 have_mmap=yes
149
+ − 12535 else
373
+ − 12536 conftest_rc="$?"
149
+ − 12537 echo "configure: failed program was:" >&5
+ − 12538 cat conftest.$ac_ext >&5
+ − 12539 rm -fr conftest*
153
+ − 12540 have_mmap=no
149
+ − 12541 fi
155
+ − 12542 rm -fr conftest* ;;
+ − 12543 esac
153
+ − 12544 echo "$ac_t""$have_mmap" 1>&6
+ − 12545 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 12546 Defining HAVE_MMAP
+ − 12547 EOF
+ − 12548 cat >> confdefs.h <<\EOF
+ − 12549 #define HAVE_MMAP 1
+ − 12550 EOF
+ − 12551 }
+ − 12552
412
+ − 12553
535
+ − 12554 case "$opsys" in cygwin*)
462
+ − 12555 test "$rel_alloc" = "default" && rel_alloc=no ;;
+ − 12556 esac
442
+ − 12557 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
+ − 12558 if test "$rel_alloc $have_mmap" = "default yes"; then
+ − 12559 if test "$doug_lea_malloc" = "yes"; then
+ − 12560 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
726
+ − 12561 echo "configure:12562: checking for M_MMAP_THRESHOLD" >&5
442
+ − 12562 cat > conftest.$ac_ext <<EOF
726
+ − 12563 #line 12564 "configure"
442
+ − 12564 #include "confdefs.h"
+ − 12565 #include <malloc.h>
+ − 12566 int main() {
+ − 12567
+ − 12568 #ifndef M_MMAP_THRESHOLD
+ − 12569 #error No M_MMAP_THRESHOLD :-(
+ − 12570 !@+$%^&*_)(_ - unlikely to compile...
+ − 12571 #endif
+ − 12572
+ − 12573 ; return 0; }
+ − 12574 EOF
726
+ − 12575 if { (eval echo configure:12576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
+ − 12576 rm -rf conftest*
+ − 12577 rel_alloc=no; echo "$ac_t""yes" 1>&6;
+ − 12578 else
+ − 12579 echo "configure: failed program was:" >&5
+ − 12580 cat conftest.$ac_ext >&5
+ − 12581 rm -rf conftest*
+ − 12582 rel_alloc=yes; echo "$ac_t""no" 1>&6;
+ − 12583 fi
+ − 12584 rm -f conftest*
+ − 12585 else
+ − 12586 rel_alloc=yes
+ − 12587 fi
+ − 12588 fi
149
+ − 12589 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12590 Defining REL_ALLOC
+ − 12591 EOF
+ − 12592 cat >> confdefs.h <<\EOF
+ − 12593 #define REL_ALLOC 1
+ − 12594 EOF
+ − 12595 }
+ − 12596
+ − 12597
175
+ − 12598 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
+ − 12599 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
726
+ − 12600 echo "configure:12601: checking for termios.h" >&5
+ − 12601
+ − 12602 cat > conftest.$ac_ext <<EOF
+ − 12603 #line 12604 "configure"
175
+ − 12604 #include "confdefs.h"
+ − 12605 #include <termios.h>
+ − 12606 EOF
+ − 12607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 12608 { (eval echo configure:12609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 12609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
175
+ − 12610 if test -z "$ac_err"; then
+ − 12611 rm -rf conftest*
+ − 12612 eval "ac_cv_header_$ac_safe=yes"
+ − 12613 else
+ − 12614 echo "$ac_err" >&5
+ − 12615 echo "configure: failed program was:" >&5
+ − 12616 cat conftest.$ac_ext >&5
+ − 12617 rm -rf conftest*
+ − 12618 eval "ac_cv_header_$ac_safe=no"
+ − 12619 fi
+ − 12620 rm -f conftest*
+ − 12621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12622 echo "$ac_t""yes" 1>&6
+ − 12623 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12624 Defining HAVE_TERMIOS
+ − 12625 EOF
+ − 12626 cat >> confdefs.h <<\EOF
+ − 12627 #define HAVE_TERMIOS 1
+ − 12628 EOF
+ − 12629 }
+ − 12630
+ − 12631 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12632 Defining SIGNALS_VIA_CHARACTERS
+ − 12633 EOF
+ − 12634 cat >> confdefs.h <<\EOF
+ − 12635 #define SIGNALS_VIA_CHARACTERS 1
+ − 12636 EOF
+ − 12637 }
+ − 12638
+ − 12639 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12640 Defining NO_TERMIO
+ − 12641 EOF
+ − 12642 cat >> confdefs.h <<\EOF
+ − 12643 #define NO_TERMIO 1
+ − 12644 EOF
+ − 12645 }
+ − 12646
+ − 12647 else
+ − 12648 echo "$ac_t""no" 1>&6
+ − 12649 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
+ − 12650 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
726
+ − 12651 echo "configure:12652: checking for termio.h" >&5
+ − 12652
+ − 12653 cat > conftest.$ac_ext <<EOF
+ − 12654 #line 12655 "configure"
175
+ − 12655 #include "confdefs.h"
+ − 12656 #include <termio.h>
+ − 12657 EOF
+ − 12658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 12659 { (eval echo configure:12660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 12660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
175
+ − 12661 if test -z "$ac_err"; then
+ − 12662 rm -rf conftest*
+ − 12663 eval "ac_cv_header_$ac_safe=yes"
+ − 12664 else
+ − 12665 echo "$ac_err" >&5
+ − 12666 echo "configure: failed program was:" >&5
+ − 12667 cat conftest.$ac_ext >&5
+ − 12668 rm -rf conftest*
+ − 12669 eval "ac_cv_header_$ac_safe=no"
+ − 12670 fi
+ − 12671 rm -f conftest*
+ − 12672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12673 echo "$ac_t""yes" 1>&6
+ − 12674 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12675 Defining HAVE_TERMIO
+ − 12676 EOF
+ − 12677 cat >> confdefs.h <<\EOF
+ − 12678 #define HAVE_TERMIO 1
+ − 12679 EOF
+ − 12680 }
+ − 12681
+ − 12682 else
+ − 12683 echo "$ac_t""no" 1>&6
+ − 12684 fi
+ − 12685
+ − 12686 fi
+ − 12687
+ − 12688
+ − 12689
149
+ − 12690 echo $ac_n "checking for socket""... $ac_c" 1>&6
726
+ − 12691 echo "configure:12692: checking for socket" >&5
+ − 12692
+ − 12693 cat > conftest.$ac_ext <<EOF
+ − 12694 #line 12695 "configure"
149
+ − 12695 #include "confdefs.h"
+ − 12696 /* System header to define __stub macros and hopefully few prototypes,
+ − 12697 which can conflict with char socket(); below. */
+ − 12698 #include <assert.h>
+ − 12699 /* Override any gcc2 internal prototype to avoid an error. */
+ − 12700 /* We use char because int might match the return type of a gcc2
+ − 12701 builtin and then its argument prototype would still apply. */
+ − 12702 char socket();
+ − 12703
+ − 12704 int main() {
+ − 12705
0
+ − 12706 /* The GNU C library defines this for functions which it implements
+ − 12707 to always fail with ENOSYS. Some functions are actually named
+ − 12708 something starting with __ and the normal name is an alias. */
+ − 12709 #if defined (__stub_socket) || defined (__stub___socket)
+ − 12710 choke me
+ − 12711 #else
149
+ − 12712 socket();
0
+ − 12713 #endif
149
+ − 12714
0
+ − 12715 ; return 0; }
+ − 12716 EOF
726
+ − 12717 if { (eval echo configure:12718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 12718 rm -rf conftest*
+ − 12719 eval "ac_cv_func_socket=yes"
+ − 12720 else
+ − 12721 echo "configure: failed program was:" >&5
+ − 12722 cat conftest.$ac_ext >&5
+ − 12723 rm -rf conftest*
+ − 12724 eval "ac_cv_func_socket=no"
+ − 12725 fi
+ − 12726 rm -f conftest*
+ − 12727
+ − 12728 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
+ − 12729 echo "$ac_t""yes" 1>&6
+ − 12730 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
+ − 12731 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
726
+ − 12732 echo "configure:12733: checking for netinet/in.h" >&5
+ − 12733
+ − 12734 cat > conftest.$ac_ext <<EOF
+ − 12735 #line 12736 "configure"
0
+ − 12736 #include "confdefs.h"
+ − 12737 #include <netinet/in.h>
+ − 12738 EOF
149
+ − 12739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 12740 { (eval echo configure:12741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 12741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 12742 if test -z "$ac_err"; then
149
+ − 12743 rm -rf conftest*
+ − 12744 eval "ac_cv_header_$ac_safe=yes"
+ − 12745 else
+ − 12746 echo "$ac_err" >&5
+ − 12747 echo "configure: failed program was:" >&5
+ − 12748 cat conftest.$ac_ext >&5
+ − 12749 rm -rf conftest*
+ − 12750 eval "ac_cv_header_$ac_safe=no"
+ − 12751 fi
+ − 12752 rm -f conftest*
+ − 12753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12754 echo "$ac_t""yes" 1>&6
+ − 12755 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
+ − 12756 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
726
+ − 12757 echo "configure:12758: checking for arpa/inet.h" >&5
+ − 12758
+ − 12759 cat > conftest.$ac_ext <<EOF
+ − 12760 #line 12761 "configure"
0
+ − 12761 #include "confdefs.h"
+ − 12762 #include <arpa/inet.h>
+ − 12763 EOF
149
+ − 12764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 12765 { (eval echo configure:12766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 12766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 12767 if test -z "$ac_err"; then
149
+ − 12768 rm -rf conftest*
+ − 12769 eval "ac_cv_header_$ac_safe=yes"
+ − 12770 else
+ − 12771 echo "$ac_err" >&5
+ − 12772 echo "configure: failed program was:" >&5
+ − 12773 cat conftest.$ac_ext >&5
+ − 12774 rm -rf conftest*
+ − 12775 eval "ac_cv_header_$ac_safe=no"
+ − 12776 fi
+ − 12777 rm -f conftest*
+ − 12778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12779 echo "$ac_t""yes" 1>&6
0
+ − 12780
149
+ − 12781 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12782 Defining HAVE_SOCKETS
+ − 12783 EOF
+ − 12784 cat >> confdefs.h <<\EOF
+ − 12785 #define HAVE_SOCKETS 1
+ − 12786 EOF
+ − 12787 }
+ − 12788
+ − 12789 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
726
+ − 12790 echo "configure:12791: checking "for sun_len member in struct sockaddr_un"" >&5
149
+ − 12791 cat > conftest.$ac_ext <<EOF
726
+ − 12792 #line 12793 "configure"
149
+ − 12793 #include "confdefs.h"
+ − 12794
0
+ − 12795 #include <sys/types.h>
149
+ − 12796 #include <sys/socket.h>
+ − 12797 #include <sys/un.h>
+ − 12798
+ − 12799 int main() {
+ − 12800 static struct sockaddr_un x; x.sun_len = 1;
+ − 12801 ; return 0; }
+ − 12802 EOF
726
+ − 12803 if { (eval echo configure:12804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 12804 rm -rf conftest*
+ − 12805 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12806 Defining HAVE_SOCKADDR_SUN_LEN
+ − 12807 EOF
+ − 12808 cat >> confdefs.h <<\EOF
+ − 12809 #define HAVE_SOCKADDR_SUN_LEN 1
+ − 12810 EOF
+ − 12811 }
+ − 12812
+ − 12813 else
+ − 12814 echo "configure: failed program was:" >&5
+ − 12815 cat conftest.$ac_ext >&5
+ − 12816 rm -rf conftest*
+ − 12817 echo "$ac_t""no" 1>&6
+ − 12818 fi
+ − 12819 rm -f conftest*
259
+ − 12820 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
726
+ − 12821 echo "configure:12822: checking "for ip_mreq struct in netinet/in.h"" >&5
259
+ − 12822 cat > conftest.$ac_ext <<EOF
726
+ − 12823 #line 12824 "configure"
284
+ − 12824 #include "confdefs.h"
+ − 12825
+ − 12826 #include <sys/types.h>
259
+ − 12827 #include <netinet/in.h>
+ − 12828
+ − 12829 int main() {
+ − 12830 static struct ip_mreq x;
+ − 12831 ; return 0; }
+ − 12832 EOF
726
+ − 12833 if { (eval echo configure:12834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
+ − 12834 rm -rf conftest*
+ − 12835 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12836 Defining HAVE_MULTICAST
+ − 12837 EOF
+ − 12838 cat >> confdefs.h <<\EOF
+ − 12839 #define HAVE_MULTICAST 1
+ − 12840 EOF
+ − 12841 }
+ − 12842
+ − 12843 else
+ − 12844 echo "configure: failed program was:" >&5
+ − 12845 cat conftest.$ac_ext >&5
+ − 12846 rm -rf conftest*
+ − 12847 echo "$ac_t""no" 1>&6
+ − 12848 fi
+ − 12849 rm -f conftest*
149
+ − 12850 else
+ − 12851 echo "$ac_t""no" 1>&6
+ − 12852 fi
+ − 12853
+ − 12854 else
+ − 12855 echo "$ac_t""no" 1>&6
+ − 12856 fi
+ − 12857
+ − 12858 else
+ − 12859 echo "$ac_t""no" 1>&6
+ − 12860 fi
+ − 12861
+ − 12862
+ − 12863 echo $ac_n "checking for msgget""... $ac_c" 1>&6
726
+ − 12864 echo "configure:12865: checking for msgget" >&5
+ − 12865
+ − 12866 cat > conftest.$ac_ext <<EOF
+ − 12867 #line 12868 "configure"
149
+ − 12868 #include "confdefs.h"
+ − 12869 /* System header to define __stub macros and hopefully few prototypes,
+ − 12870 which can conflict with char msgget(); below. */
+ − 12871 #include <assert.h>
+ − 12872 /* Override any gcc2 internal prototype to avoid an error. */
+ − 12873 /* We use char because int might match the return type of a gcc2
+ − 12874 builtin and then its argument prototype would still apply. */
+ − 12875 char msgget();
+ − 12876
+ − 12877 int main() {
+ − 12878
0
+ − 12879 /* The GNU C library defines this for functions which it implements
+ − 12880 to always fail with ENOSYS. Some functions are actually named
+ − 12881 something starting with __ and the normal name is an alias. */
+ − 12882 #if defined (__stub_msgget) || defined (__stub___msgget)
+ − 12883 choke me
+ − 12884 #else
149
+ − 12885 msgget();
0
+ − 12886 #endif
149
+ − 12887
0
+ − 12888 ; return 0; }
+ − 12889 EOF
726
+ − 12890 if { (eval echo configure:12891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 12891 rm -rf conftest*
+ − 12892 eval "ac_cv_func_msgget=yes"
+ − 12893 else
+ − 12894 echo "configure: failed program was:" >&5
+ − 12895 cat conftest.$ac_ext >&5
+ − 12896 rm -rf conftest*
+ − 12897 eval "ac_cv_func_msgget=no"
+ − 12898 fi
+ − 12899 rm -f conftest*
+ − 12900
+ − 12901 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
+ − 12902 echo "$ac_t""yes" 1>&6
+ − 12903 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
+ − 12904 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
726
+ − 12905 echo "configure:12906: checking for sys/ipc.h" >&5
+ − 12906
+ − 12907 cat > conftest.$ac_ext <<EOF
+ − 12908 #line 12909 "configure"
0
+ − 12909 #include "confdefs.h"
+ − 12910 #include <sys/ipc.h>
+ − 12911 EOF
149
+ − 12912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 12913 { (eval echo configure:12914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 12914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 12915 if test -z "$ac_err"; then
149
+ − 12916 rm -rf conftest*
+ − 12917 eval "ac_cv_header_$ac_safe=yes"
+ − 12918 else
+ − 12919 echo "$ac_err" >&5
+ − 12920 echo "configure: failed program was:" >&5
+ − 12921 cat conftest.$ac_ext >&5
+ − 12922 rm -rf conftest*
+ − 12923 eval "ac_cv_header_$ac_safe=no"
+ − 12924 fi
+ − 12925 rm -f conftest*
+ − 12926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12927 echo "$ac_t""yes" 1>&6
+ − 12928 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
+ − 12929 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
726
+ − 12930 echo "configure:12931: checking for sys/msg.h" >&5
+ − 12931
+ − 12932 cat > conftest.$ac_ext <<EOF
+ − 12933 #line 12934 "configure"
0
+ − 12934 #include "confdefs.h"
+ − 12935 #include <sys/msg.h>
+ − 12936 EOF
149
+ − 12937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 12938 { (eval echo configure:12939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 12939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 12940 if test -z "$ac_err"; then
149
+ − 12941 rm -rf conftest*
+ − 12942 eval "ac_cv_header_$ac_safe=yes"
+ − 12943 else
+ − 12944 echo "$ac_err" >&5
+ − 12945 echo "configure: failed program was:" >&5
+ − 12946 cat conftest.$ac_ext >&5
+ − 12947 rm -rf conftest*
+ − 12948 eval "ac_cv_header_$ac_safe=no"
+ − 12949 fi
+ − 12950 rm -f conftest*
+ − 12951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12952 echo "$ac_t""yes" 1>&6
+ − 12953 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12954 Defining HAVE_SYSVIPC
+ − 12955 EOF
+ − 12956 cat >> confdefs.h <<\EOF
+ − 12957 #define HAVE_SYSVIPC 1
+ − 12958 EOF
+ − 12959 }
+ − 12960
+ − 12961 else
+ − 12962 echo "$ac_t""no" 1>&6
+ − 12963 fi
+ − 12964
+ − 12965 else
+ − 12966 echo "$ac_t""no" 1>&6
+ − 12967 fi
+ − 12968
+ − 12969 else
+ − 12970 echo "$ac_t""no" 1>&6
+ − 12971 fi
+ − 12972
+ − 12973
+ − 12974 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
+ − 12975 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
726
+ − 12976 echo "configure:12977: checking for dirent.h" >&5
+ − 12977
+ − 12978 cat > conftest.$ac_ext <<EOF
+ − 12979 #line 12980 "configure"
0
+ − 12980 #include "confdefs.h"
+ − 12981 #include <dirent.h>
+ − 12982 EOF
149
+ − 12983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 12984 { (eval echo configure:12985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 12985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 12986 if test -z "$ac_err"; then
+ − 12987 rm -rf conftest*
149
+ − 12988 eval "ac_cv_header_$ac_safe=yes"
+ − 12989 else
+ − 12990 echo "$ac_err" >&5
+ − 12991 echo "configure: failed program was:" >&5
+ − 12992 cat conftest.$ac_ext >&5
+ − 12993 rm -rf conftest*
+ − 12994 eval "ac_cv_header_$ac_safe=no"
+ − 12995 fi
+ − 12996 rm -f conftest*
+ − 12997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12998 echo "$ac_t""yes" 1>&6
+ − 12999 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13000 Defining SYSV_SYSTEM_DIR
+ − 13001 EOF
+ − 13002 cat >> confdefs.h <<\EOF
+ − 13003 #define SYSV_SYSTEM_DIR 1
+ − 13004 EOF
+ − 13005 }
+ − 13006
+ − 13007 else
+ − 13008 echo "$ac_t""no" 1>&6
+ − 13009 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
+ − 13010 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
726
+ − 13011 echo "configure:13012: checking for sys/dir.h" >&5
+ − 13012
+ − 13013 cat > conftest.$ac_ext <<EOF
+ − 13014 #line 13015 "configure"
0
+ − 13015 #include "confdefs.h"
+ − 13016 #include <sys/dir.h>
+ − 13017 EOF
149
+ − 13018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 13019 { (eval echo configure:13020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 13021 if test -z "$ac_err"; then
149
+ − 13022 rm -rf conftest*
+ − 13023 eval "ac_cv_header_$ac_safe=yes"
+ − 13024 else
+ − 13025 echo "$ac_err" >&5
+ − 13026 echo "configure: failed program was:" >&5
+ − 13027 cat conftest.$ac_ext >&5
+ − 13028 rm -rf conftest*
+ − 13029 eval "ac_cv_header_$ac_safe=no"
+ − 13030 fi
+ − 13031 rm -f conftest*
+ − 13032 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13033 echo "$ac_t""yes" 1>&6
0
+ − 13034 :
+ − 13035 else
149
+ − 13036 echo "$ac_t""no" 1>&6
+ − 13037 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13038 Defining NONSYSTEM_DIR_LIBRARY
+ − 13039 EOF
+ − 13040 cat >> confdefs.h <<\EOF
+ − 13041 #define NONSYSTEM_DIR_LIBRARY 1
+ − 13042 EOF
+ − 13043 }
+ − 13044
+ − 13045 fi
+ − 13046
+ − 13047 fi
+ − 13048
+ − 13049
+ − 13050 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
+ − 13051 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
726
+ − 13052 echo "configure:13053: checking for nlist.h" >&5
+ − 13053
+ − 13054 cat > conftest.$ac_ext <<EOF
+ − 13055 #line 13056 "configure"
0
+ − 13056 #include "confdefs.h"
+ − 13057 #include <nlist.h>
+ − 13058 EOF
149
+ − 13059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 13060 { (eval echo configure:13061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 13062 if test -z "$ac_err"; then
+ − 13063 rm -rf conftest*
149
+ − 13064 eval "ac_cv_header_$ac_safe=yes"
+ − 13065 else
+ − 13066 echo "$ac_err" >&5
+ − 13067 echo "configure: failed program was:" >&5
+ − 13068 cat conftest.$ac_ext >&5
+ − 13069 rm -rf conftest*
+ − 13070 eval "ac_cv_header_$ac_safe=no"
+ − 13071 fi
+ − 13072 rm -f conftest*
+ − 13073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13074 echo "$ac_t""yes" 1>&6
+ − 13075 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13076 Defining NLIST_STRUCT
+ − 13077 EOF
+ − 13078 cat >> confdefs.h <<\EOF
+ − 13079 #define NLIST_STRUCT 1
+ − 13080 EOF
+ − 13081 }
+ − 13082
+ − 13083 else
+ − 13084 echo "$ac_t""no" 1>&6
+ − 13085 fi
+ − 13086
+ − 13087
0
+ − 13088
149
+ − 13089 echo "checking "for sound support"" 1>&6
726
+ − 13090 echo "configure:13091: checking "for sound support"" >&5
155
+ − 13091 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
+ − 13092
149
+ − 13093 if test "$with_native_sound" != "no"; then
155
+ − 13094 if test -n "$native_sound_lib"; then
+ − 13095 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
+ − 13096 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
726
+ − 13097 echo "configure:13098: checking for multimedia/audio_device.h" >&5
+ − 13098
+ − 13099 cat > conftest.$ac_ext <<EOF
+ − 13100 #line 13101 "configure"
155
+ − 13101 #include "confdefs.h"
+ − 13102 #include <multimedia/audio_device.h>
+ − 13103 EOF
+ − 13104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 13105 { (eval echo configure:13106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
+ − 13107 if test -z "$ac_err"; then
+ − 13108 rm -rf conftest*
+ − 13109 eval "ac_cv_header_$ac_safe=yes"
+ − 13110 else
+ − 13111 echo "$ac_err" >&5
+ − 13112 echo "configure: failed program was:" >&5
+ − 13113 cat conftest.$ac_ext >&5
+ − 13114 rm -rf conftest*
+ − 13115 eval "ac_cv_header_$ac_safe=no"
+ − 13116 fi
+ − 13117 rm -f conftest*
+ − 13118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13119 echo "$ac_t""yes" 1>&6
+ − 13120 sound_found=yes sound_cflags=""
+ − 13121 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
+ − 13122 echo " xemacs will be linked with \"sunplay.o\""
+ − 13123 fi
+ − 13124 else
+ − 13125 echo "$ac_t""no" 1>&6
+ − 13126 fi
+ − 13127
+ − 13128 fi
+ − 13129
+ − 13130 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
+ − 13131 sound_found=yes
151
+ − 13132 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
+ − 13133 echo " xemacs will be linked with \"sunplay.o\""
+ − 13134 fi
149
+ − 13135 if test -d "/usr/demo/SOUND/include"
+ − 13136 then sound_cflags="-I/usr/demo/SOUND/include"
+ − 13137 else sound_cflags="-I/usr/demo/SOUND"
+ − 13138 fi
+ − 13139 if test -z "$native_sound_lib" ; then
+ − 13140 if test -r "/usr/demo/SOUND/lib/libaudio.a"
+ − 13141 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
+ − 13142 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
+ − 13143 fi
+ − 13144 fi
155
+ − 13145 fi
+ − 13146
+ − 13147 if test -z "$sound_found"; then
+ − 13148 case "$canonical" in
149
+ − 13149 *-sgi-* )
155
+ − 13150 if test -z "$native_sound_lib"; then
+ − 13151
149
+ − 13152 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
726
+ − 13153 echo "configure:13154: checking for ALopenport in -laudio" >&5
149
+ − 13154 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
+ − 13155
+ − 13156 xe_check_libs=" -laudio "
+ − 13157 cat > conftest.$ac_ext <<EOF
726
+ − 13158 #line 13159 "configure"
149
+ − 13159 #include "confdefs.h"
+ − 13160 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13161 /* We use char because int might match the return type of a gcc2
+ − 13162 builtin and then its argument prototype would still apply. */
+ − 13163 char ALopenport();
+ − 13164
+ − 13165 int main() {
+ − 13166 ALopenport()
+ − 13167 ; return 0; }
+ − 13168 EOF
726
+ − 13169 if { (eval echo configure:13170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 13170 rm -rf conftest*
+ − 13171 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13172 else
+ − 13173 echo "configure: failed program was:" >&5
+ − 13174 cat conftest.$ac_ext >&5
+ − 13175 rm -rf conftest*
+ − 13176 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13177 fi
+ − 13178 rm -f conftest*
+ − 13179 xe_check_libs=""
+ − 13180
151
+ − 13181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 13182 echo "$ac_t""yes" 1>&6
+ − 13183 native_sound_lib="-laudio"
+ − 13184 else
+ − 13185 echo "$ac_t""no" 1>&6
+ − 13186 fi
+ − 13187
+ − 13188
155
+ − 13189 fi
+ − 13190 if test -n "$native_sound_lib"; then
+ − 13191 sound_found=yes sound_cflags=""
151
+ − 13192 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
+ − 13193 echo " xemacs will be linked with \"sgiplay.o\""
+ − 13194 fi
149
+ − 13195 fi ;;
+ − 13196 hppa*-hp-hpux* )
155
+ − 13197 if test -z "$native_sound_lib"; then
+ − 13198
149
+ − 13199 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
726
+ − 13200 echo "configure:13201: checking for AOpenAudio in -lAlib" >&5
149
+ − 13201 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
+ − 13202
+ − 13203 xe_check_libs=" -lAlib "
+ − 13204 cat > conftest.$ac_ext <<EOF
726
+ − 13205 #line 13206 "configure"
149
+ − 13206 #include "confdefs.h"
+ − 13207 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13208 /* We use char because int might match the return type of a gcc2
+ − 13209 builtin and then its argument prototype would still apply. */
+ − 13210 char AOpenAudio();
+ − 13211
+ − 13212 int main() {
+ − 13213 AOpenAudio()
+ − 13214 ; return 0; }
+ − 13215 EOF
726
+ − 13216 if { (eval echo configure:13217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 13217 rm -rf conftest*
+ − 13218 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13219 else
+ − 13220 echo "configure: failed program was:" >&5
+ − 13221 cat conftest.$ac_ext >&5
+ − 13222 rm -rf conftest*
+ − 13223 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13224 fi
+ − 13225 rm -f conftest*
+ − 13226 xe_check_libs=""
+ − 13227
151
+ − 13228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 13229 echo "$ac_t""yes" 1>&6
+ − 13230 native_sound_lib="-lAlib"
+ − 13231 else
+ − 13232 echo "$ac_t""no" 1>&6
+ − 13233 fi
+ − 13234
+ − 13235
155
+ − 13236 fi
+ − 13237 if test -n "$native_sound_lib"; then
+ − 13238 sound_found=yes
151
+ − 13239 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
+ − 13240 echo " xemacs will be linked with \"hpplay.o\""
+ − 13241 fi
169
+ − 13242 if test "$GCC" = "yes" # Kludge city
149
+ − 13243 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
+ − 13244 else sound_cflags="+e -I/usr/audio/examples"
+ − 13245 fi
+ − 13246 fi ;;
0
+ − 13247 esac
+ − 13248 fi
149
+ − 13249
155
+ − 13250 if test -z "$sound_found"; then
553
+ − 13251 if test "$with_msw" = "yes"; then
594
+ − 13252 sound_found=yes
+ − 13253 native_sound_lib=
+ − 13254 extra_objs="$extra_objs ntplay.o" && if test "$extra_verbose" = "yes"; then
+ − 13255 echo " xemacs will be linked with \"ntplay.o\""
+ − 13256 fi
553
+ − 13257 fi
+ − 13258 fi
+ − 13259
+ − 13260 if test -z "$sound_found"; then
149
+ − 13261 for dir in "machine" "sys" "linux"; do
+ − 13262 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
+ − 13263 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
726
+ − 13264 echo "configure:13265: checking for ${dir}/soundcard.h" >&5
+ − 13265
+ − 13266 cat > conftest.$ac_ext <<EOF
+ − 13267 #line 13268 "configure"
149
+ − 13268 #include "confdefs.h"
+ − 13269 #include <${dir}/soundcard.h>
+ − 13270 EOF
+ − 13271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 13272 { (eval echo configure:13273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13273 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 13274 if test -z "$ac_err"; then
+ − 13275 rm -rf conftest*
+ − 13276 eval "ac_cv_header_$ac_safe=yes"
+ − 13277 else
+ − 13278 echo "$ac_err" >&5
+ − 13279 echo "configure: failed program was:" >&5
+ − 13280 cat conftest.$ac_ext >&5
+ − 13281 rm -rf conftest*
+ − 13282 eval "ac_cv_header_$ac_safe=no"
+ − 13283 fi
+ − 13284 rm -f conftest*
+ − 13285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13286 echo "$ac_t""yes" 1>&6
+ − 13287 sound_found=yes
426
+ − 13288 need_miscplay=yes
151
+ − 13289 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
+ − 13290 echo " xemacs will be linked with \"linuxplay.o\""
+ − 13291 fi
149
+ − 13292 { test "$extra_verbose" = "yes" && cat << EOF
442
+ − 13293 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
+ − 13294 EOF
+ − 13295 cat >> confdefs.h <<EOF
+ − 13296 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
149
+ − 13297 EOF
+ − 13298 }
+ − 13299
+ − 13300 break
+ − 13301 else
+ − 13302 echo "$ac_t""no" 1>&6
+ − 13303 fi
+ − 13304
+ − 13305 done
100
+ − 13306 fi
149
+ − 13307
+ − 13308 test "$sound_found" = "yes" && with_native_sound=yes
+ − 13309 fi
+ − 13310
+ − 13311 if test "$with_native_sound" = "yes"; then
+ − 13312 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13313 Defining HAVE_NATIVE_SOUND
+ − 13314 EOF
+ − 13315 cat >> confdefs.h <<\EOF
+ − 13316 #define HAVE_NATIVE_SOUND 1
+ − 13317 EOF
+ − 13318 }
+ − 13319
151
+ − 13320 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
149
+ − 13321 fi
+ − 13322
432
+ − 13323 if test "$with_nas_sound" != "no"; then
+ − 13324 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
+ − 13325 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
726
+ − 13326 echo "configure:13327: checking for audio/audiolib.h" >&5
+ − 13327
+ − 13328 cat > conftest.$ac_ext <<EOF
+ − 13329 #line 13330 "configure"
432
+ − 13330 #include "confdefs.h"
+ − 13331 #include <audio/audiolib.h>
+ − 13332 EOF
+ − 13333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 13334 { (eval echo configure:13335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
432
+ − 13335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 13336 if test -z "$ac_err"; then
+ − 13337 rm -rf conftest*
+ − 13338 eval "ac_cv_header_$ac_safe=yes"
+ − 13339 else
+ − 13340 echo "$ac_err" >&5
+ − 13341 echo "configure: failed program was:" >&5
+ − 13342 cat conftest.$ac_ext >&5
+ − 13343 rm -rf conftest*
+ − 13344 eval "ac_cv_header_$ac_safe=no"
+ − 13345 fi
+ − 13346 rm -f conftest*
+ − 13347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13348 echo "$ac_t""yes" 1>&6
+ − 13349
+ − 13350
+ − 13351 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
726
+ − 13352 echo "configure:13353: checking for AuOpenServer in -laudio" >&5
432
+ − 13353 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
+ − 13354
+ − 13355 xe_check_libs=" -laudio "
+ − 13356 cat > conftest.$ac_ext <<EOF
726
+ − 13357 #line 13358 "configure"
432
+ − 13358 #include "confdefs.h"
+ − 13359 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13360 /* We use char because int might match the return type of a gcc2
+ − 13361 builtin and then its argument prototype would still apply. */
+ − 13362 char AuOpenServer();
+ − 13363
+ − 13364 int main() {
+ − 13365 AuOpenServer()
+ − 13366 ; return 0; }
+ − 13367 EOF
726
+ − 13368 if { (eval echo configure:13369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
432
+ − 13369 rm -rf conftest*
+ − 13370 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13371 else
+ − 13372 echo "configure: failed program was:" >&5
+ − 13373 cat conftest.$ac_ext >&5
+ − 13374 rm -rf conftest*
+ − 13375 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13376 fi
+ − 13377 rm -f conftest*
+ − 13378 xe_check_libs=""
+ − 13379
+ − 13380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 13381 echo "$ac_t""yes" 1>&6
+ − 13382 have_nas_sound=yes
+ − 13383 else
+ − 13384 echo "$ac_t""no" 1>&6
+ − 13385 fi
+ − 13386
+ − 13387
+ − 13388 else
+ − 13389 echo "$ac_t""no" 1>&6
+ − 13390 fi
+ − 13391
+ − 13392 if test "$have_nas_sound" = "yes"; then
+ − 13393 with_nas_sound=yes
+ − 13394 { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 13395 Defining HAVE_NAS_SOUND
+ − 13396 EOF
+ − 13397 cat >> confdefs.h <<\EOF
+ − 13398 #define HAVE_NAS_SOUND 1
+ − 13399 EOF
+ − 13400 }
+ − 13401
432
+ − 13402 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
151
+ − 13403 echo " xemacs will be linked with \"nas.o\""
+ − 13404 fi
432
+ − 13405 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
+ − 13406 cat > conftest.$ac_ext <<EOF
726
+ − 13407 #line 13408 "configure"
149
+ − 13408 #include "confdefs.h"
+ − 13409 #include <audio/Xtutil.h>
+ − 13410 EOF
+ − 13411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 13412 egrep "AuXtErrorJump" >/dev/null 2>&1; then
+ − 13413 :
+ − 13414 else
+ − 13415 rm -rf conftest*
432
+ − 13416 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 13417 Defining NAS_NO_ERROR_JUMP
+ − 13418 EOF
+ − 13419 cat >> confdefs.h <<\EOF
+ − 13420 #define NAS_NO_ERROR_JUMP 1
+ − 13421 EOF
+ − 13422 }
+ − 13423
+ − 13424 fi
+ − 13425 rm -f conftest*
+ − 13426
432
+ − 13427 else
+ − 13428 test "$with_nas_sound" = "yes" && \
+ − 13429 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
+ − 13430 with_nas_sound=no
+ − 13431 fi
+ − 13432 fi
+ − 13433
+ − 13434 if test "$with_esd_sound" != "no"; then
+ − 13435 # Extract the first word of "esd-config", so it can be a program name with args.
426
+ − 13436 set dummy esd-config; ac_word=$2
+ − 13437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726
+ − 13438 echo "configure:13439: checking for $ac_word" >&5
426
+ − 13439
+ − 13440 if test -n "$have_esd_config"; then
+ − 13441 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
+ − 13442 else
+ − 13443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 13444 ac_dummy="$PATH"
+ − 13445 for ac_dir in $ac_dummy; do
+ − 13446 test -z "$ac_dir" && ac_dir=.
+ − 13447 if test -f $ac_dir/$ac_word; then
+ − 13448 ac_cv_prog_have_esd_config="yes"
+ − 13449 break
+ − 13450 fi
+ − 13451 done
+ − 13452 IFS="$ac_save_ifs"
+ − 13453 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
+ − 13454 fi
+ − 13455 have_esd_config="$ac_cv_prog_have_esd_config"
+ − 13456 if test -n "$have_esd_config"; then
+ − 13457 echo "$ac_t""$have_esd_config" 1>&6
+ − 13458 else
+ − 13459 echo "$ac_t""no" 1>&6
+ − 13460 fi
+ − 13461
432
+ − 13462 if test "$have_esd_config" = "yes"; then
+ − 13463 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
+ − 13464 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi
+ − 13465 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
+ − 13466 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
726
+ − 13467 echo "configure:13468: checking for esd_play_stream" >&5
+ − 13468
+ − 13469 cat > conftest.$ac_ext <<EOF
+ − 13470 #line 13471 "configure"
432
+ − 13471 #include "confdefs.h"
+ − 13472 /* System header to define __stub macros and hopefully few prototypes,
+ − 13473 which can conflict with char esd_play_stream(); below. */
+ − 13474 #include <assert.h>
+ − 13475 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13476 /* We use char because int might match the return type of a gcc2
+ − 13477 builtin and then its argument prototype would still apply. */
+ − 13478 char esd_play_stream();
+ − 13479
+ − 13480 int main() {
+ − 13481
+ − 13482 /* The GNU C library defines this for functions which it implements
+ − 13483 to always fail with ENOSYS. Some functions are actually named
+ − 13484 something starting with __ and the normal name is an alias. */
+ − 13485 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
+ − 13486 choke me
+ − 13487 #else
+ − 13488 esd_play_stream();
+ − 13489 #endif
+ − 13490
+ − 13491 ; return 0; }
+ − 13492 EOF
726
+ − 13493 if { (eval echo configure:13494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
432
+ − 13494 rm -rf conftest*
+ − 13495 eval "ac_cv_func_esd_play_stream=yes"
+ − 13496 else
+ − 13497 echo "configure: failed program was:" >&5
+ − 13498 cat conftest.$ac_ext >&5
+ − 13499 rm -rf conftest*
+ − 13500 eval "ac_cv_func_esd_play_stream=no"
+ − 13501 fi
+ − 13502 rm -f conftest*
+ − 13503
+ − 13504 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
+ − 13505 echo "$ac_t""yes" 1>&6
+ − 13506 have_esd_sound=yes
+ − 13507 else
+ − 13508 echo "$ac_t""no" 1>&6
+ − 13509 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
+ − 13510 fi
+ − 13511
+ − 13512 fi
+ − 13513
+ − 13514 if test "$have_esd_sound" = "yes"; then
+ − 13515 with_esd_sound=yes
+ − 13516 need_miscplay=yes
+ − 13517 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
+ − 13518 echo " xemacs will be linked with \"esd.o\""
+ − 13519 fi
426
+ − 13520 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13521 Defining HAVE_ESD_SOUND
+ − 13522 EOF
+ − 13523 cat >> confdefs.h <<\EOF
+ − 13524 #define HAVE_ESD_SOUND 1
+ − 13525 EOF
+ − 13526 }
+ − 13527
432
+ − 13528 else
+ − 13529 test "$with_esd_sound" = "yes" && \
+ − 13530 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
+ − 13531 with_esd_sound=no
+ − 13532 fi
+ − 13533 fi
+ − 13534
+ − 13535 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
426
+ − 13536 echo " xemacs will be linked with \"miscplay.o\""
+ − 13537 fi
149
+ − 13538
+ − 13539
+ − 13540 test -z "$with_tty" && with_tty=yes
+ − 13541
+ − 13542 if test "$with_tty" = "yes" ; then
151
+ − 13543 echo "checking for TTY-related features" 1>&6
726
+ − 13544 echo "configure:13545: checking for TTY-related features" >&5
149
+ − 13545 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13546 Defining HAVE_TTY
+ − 13547 EOF
+ − 13548 cat >> confdefs.h <<\EOF
+ − 13549 #define HAVE_TTY 1
+ − 13550 EOF
+ − 13551 }
+ − 13552
151
+ − 13553 extra_objs="$extra_objs console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o" && if test "$extra_verbose" = "yes"; then
+ − 13554 echo " xemacs will be linked with \"console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o\""
+ − 13555 fi
149
+ − 13556
+ − 13557 if test -z "$with_ncurses"; then
70
+ − 13558
151
+ − 13559 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
726
+ − 13560 echo "configure:13561: checking for tgetent in -lncurses" >&5
151
+ − 13561 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
149
+ − 13562
+ − 13563 xe_check_libs=" -lncurses "
+ − 13564 cat > conftest.$ac_ext <<EOF
726
+ − 13565 #line 13566 "configure"
149
+ − 13566 #include "confdefs.h"
+ − 13567 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13568 /* We use char because int might match the return type of a gcc2
+ − 13569 builtin and then its argument prototype would still apply. */
151
+ − 13570 char tgetent();
149
+ − 13571
+ − 13572 int main() {
151
+ − 13573 tgetent()
149
+ − 13574 ; return 0; }
+ − 13575 EOF
726
+ − 13576 if { (eval echo configure:13577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 13577 rm -rf conftest*
+ − 13578 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13579 else
+ − 13580 echo "configure: failed program was:" >&5
+ − 13581 cat conftest.$ac_ext >&5
+ − 13582 rm -rf conftest*
+ − 13583 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13584 fi
+ − 13585 rm -f conftest*
+ − 13586 xe_check_libs=""
+ − 13587
151
+ − 13588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 13589 echo "$ac_t""yes" 1>&6
+ − 13590 with_ncurses=yes
+ − 13591 else
+ − 13592 echo "$ac_t""no" 1>&6
+ − 13593 with_ncurses=no
+ − 13594 fi
+ − 13595
+ − 13596
+ − 13597 fi
+ − 13598 if test "$with_ncurses" = "yes"; then
+ − 13599 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13600 Defining HAVE_NCURSES
+ − 13601 EOF
+ − 13602 cat >> confdefs.h <<\EOF
+ − 13603 #define HAVE_NCURSES 1
+ − 13604 EOF
+ − 13605 }
+ − 13606
+ − 13607 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
+ − 13608 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
726
+ − 13609 echo "configure:13610: checking for ncurses/curses.h" >&5
+ − 13610
+ − 13611 cat > conftest.$ac_ext <<EOF
+ − 13612 #line 13613 "configure"
149
+ − 13613 #include "confdefs.h"
+ − 13614 #include <ncurses/curses.h>
+ − 13615 EOF
+ − 13616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 13617 { (eval echo configure:13618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 13619 if test -z "$ac_err"; then
+ − 13620 rm -rf conftest*
+ − 13621 eval "ac_cv_header_$ac_safe=yes"
+ − 13622 else
+ − 13623 echo "$ac_err" >&5
+ − 13624 echo "configure: failed program was:" >&5
+ − 13625 cat conftest.$ac_ext >&5
+ − 13626 rm -rf conftest*
+ − 13627 eval "ac_cv_header_$ac_safe=no"
+ − 13628 fi
+ − 13629 rm -f conftest*
+ − 13630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13631 echo "$ac_t""yes" 1>&6
442
+ − 13632 curses_h_file=ncurses/curses.h
149
+ − 13633 else
+ − 13634 echo "$ac_t""no" 1>&6
+ − 13635 fi
+ − 13636
+ − 13637 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
+ − 13638 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
726
+ − 13639 echo "configure:13640: checking for ncurses/term.h" >&5
+ − 13640
+ − 13641 cat > conftest.$ac_ext <<EOF
+ − 13642 #line 13643 "configure"
0
+ − 13643 #include "confdefs.h"
+ − 13644 #include <ncurses/term.h>
+ − 13645 EOF
149
+ − 13646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 13647 { (eval echo configure:13648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 13649 if test -z "$ac_err"; then
+ − 13650 rm -rf conftest*
149
+ − 13651 eval "ac_cv_header_$ac_safe=yes"
+ − 13652 else
+ − 13653 echo "$ac_err" >&5
+ − 13654 echo "configure: failed program was:" >&5
+ − 13655 cat conftest.$ac_ext >&5
+ − 13656 rm -rf conftest*
+ − 13657 eval "ac_cv_header_$ac_safe=no"
+ − 13658 fi
+ − 13659 rm -f conftest*
+ − 13660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13661 echo "$ac_t""yes" 1>&6
442
+ − 13662 term_h_file=ncurses/term.h
149
+ − 13663 else
+ − 13664 echo "$ac_t""no" 1>&6
+ − 13665 fi
+ − 13666
151
+ − 13667 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
+ − 13668 echo " xemacs will be linked with \"terminfo.o\""
+ − 13669 fi
+ − 13670 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
149
+ − 13671
153
+ − 13672 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
149
+ − 13673 save_c_switch_site="$c_switch_site"
+ − 13674 c_switch_site="$c_switch_site -I/usr/include/ncurses"
+ − 13675 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
+ − 13676 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
726
+ − 13677 echo "configure:13678: checking for ncurses/curses.h" >&5
+ − 13678
+ − 13679 cat > conftest.$ac_ext <<EOF
+ − 13680 #line 13681 "configure"
0
+ − 13681 #include "confdefs.h"
+ − 13682 #include <ncurses/curses.h>
+ − 13683 EOF
149
+ − 13684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 13685 { (eval echo configure:13686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 13687 if test -z "$ac_err"; then
+ − 13688 rm -rf conftest*
149
+ − 13689 eval "ac_cv_header_$ac_safe=yes"
+ − 13690 else
+ − 13691 echo "$ac_err" >&5
+ − 13692 echo "configure: failed program was:" >&5
+ − 13693 cat conftest.$ac_ext >&5
+ − 13694 rm -rf conftest*
+ − 13695 eval "ac_cv_header_$ac_safe=no"
+ − 13696 fi
+ − 13697 rm -f conftest*
+ − 13698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13699 echo "$ac_t""yes" 1>&6
442
+ − 13700 curses_h_file=ncurses/curses.h
149
+ − 13701 else
+ − 13702 echo "$ac_t""no" 1>&6
+ − 13703 fi
+ − 13704
153
+ − 13705 if test "$ac_cv_header_ncurses_curses_h" = "yes"
561
+ − 13706 then echo "configure: warning: Your system has the bogus ncurses include bug." 1>&2
149
+ − 13707 else c_switch_site="$save_c_switch_site"
+ − 13708 fi
+ − 13709 fi
151
+ − 13710 else if test "$have_terminfo" = "yes"; then
+ − 13711 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
+ − 13712 echo " xemacs will be linked with \"terminfo.o\""
+ − 13713 fi
+ − 13714 if test -n "$libs_termcap"; then
+ − 13715 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
+ − 13716 else
+ − 13717 for lib in curses termlib termcap; do
+ − 13718
+ − 13719 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
726
+ − 13720 echo "configure:13721: checking for tgetent in -l$lib" >&5
151
+ − 13721 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
+ − 13722
+ − 13723 xe_check_libs=" -l$lib "
+ − 13724 cat > conftest.$ac_ext <<EOF
726
+ − 13725 #line 13726 "configure"
149
+ − 13726 #include "confdefs.h"
+ − 13727 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13728 /* We use char because int might match the return type of a gcc2
+ − 13729 builtin and then its argument prototype would still apply. */
151
+ − 13730 char tgetent();
149
+ − 13731
+ − 13732 int main() {
151
+ − 13733 tgetent()
149
+ − 13734 ; return 0; }
+ − 13735 EOF
726
+ − 13736 if { (eval echo configure:13737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 13737 rm -rf conftest*
+ − 13738 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13739 else
+ − 13740 echo "configure: failed program was:" >&5
+ − 13741 cat conftest.$ac_ext >&5
+ − 13742 rm -rf conftest*
+ − 13743 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13744 fi
+ − 13745 rm -f conftest*
+ − 13746 xe_check_libs=""
+ − 13747
151
+ − 13748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 13749 echo "$ac_t""yes" 1>&6
+ − 13750 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
+ − 13751 else
+ − 13752 echo "$ac_t""no" 1>&6
+ − 13753 fi
+ − 13754
+ − 13755
+ − 13756 done
+ − 13757 fi
+ − 13758 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
+ − 13759 echo " xemacs will be linked with \"tparam.o\""
+ − 13760 fi
+ − 13761 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
+ − 13762 if test -n "$libs_termcap"; then
+ − 13763 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
+ − 13764 else
+ − 13765
+ − 13766 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
726
+ − 13767 echo "configure:13768: checking for tgetent in -lcurses" >&5
151
+ − 13768 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
+ − 13769
+ − 13770 xe_check_libs=" -lcurses "
+ − 13771 cat > conftest.$ac_ext <<EOF
726
+ − 13772 #line 13773 "configure"
149
+ − 13773 #include "confdefs.h"
+ − 13774 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13775 /* We use char because int might match the return type of a gcc2
+ − 13776 builtin and then its argument prototype would still apply. */
151
+ − 13777 char tgetent();
149
+ − 13778
+ − 13779 int main() {
151
+ − 13780 tgetent()
149
+ − 13781 ; return 0; }
+ − 13782 EOF
726
+ − 13783 if { (eval echo configure:13784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 13784 rm -rf conftest*
+ − 13785 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13786 else
+ − 13787 echo "configure: failed program was:" >&5
+ − 13788 cat conftest.$ac_ext >&5
+ − 13789 rm -rf conftest*
+ − 13790 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13791 fi
+ − 13792 rm -f conftest*
+ − 13793 xe_check_libs=""
+ − 13794
151
+ − 13795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 13796 echo "$ac_t""yes" 1>&6
+ − 13797 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
+ − 13798 else
+ − 13799 echo "$ac_t""no" 1>&6
+ − 13800 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
726
+ − 13801 echo "configure:13802: checking for tgetent in -ltermcap" >&5
151
+ − 13802 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
+ − 13803
+ − 13804 xe_check_libs=" -ltermcap "
+ − 13805 cat > conftest.$ac_ext <<EOF
726
+ − 13806 #line 13807 "configure"
149
+ − 13807 #include "confdefs.h"
+ − 13808 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13809 /* We use char because int might match the return type of a gcc2
+ − 13810 builtin and then its argument prototype would still apply. */
151
+ − 13811 char tgetent();
149
+ − 13812
+ − 13813 int main() {
151
+ − 13814 tgetent()
149
+ − 13815 ; return 0; }
+ − 13816 EOF
726
+ − 13817 if { (eval echo configure:13818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 13818 rm -rf conftest*
+ − 13819 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13820 else
+ − 13821 echo "configure: failed program was:" >&5
+ − 13822 cat conftest.$ac_ext >&5
+ − 13823 rm -rf conftest*
+ − 13824 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13825 fi
+ − 13826 rm -f conftest*
+ − 13827 xe_check_libs=""
+ − 13828
151
+ − 13829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 13830 echo "$ac_t""yes" 1>&6
+ − 13831 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
+ − 13832 else
+ − 13833 echo "$ac_t""no" 1>&6
+ − 13834 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
+ − 13835 echo " xemacs will be linked with \"termcap.o\""
+ − 13836 fi
+ − 13837 fi
+ − 13838
+ − 13839
+ − 13840 fi
+ − 13841
+ − 13842
0
+ − 13843 fi
+ − 13844 fi
149
+ − 13845 fi
+ − 13846 { test "$extra_verbose" = "yes" && cat << EOF
442
+ − 13847 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
+ − 13848 EOF
+ − 13849 cat >> confdefs.h <<EOF
+ − 13850 #define CURSES_H_FILE "${curses_h_file-curses.h}"
149
+ − 13851 EOF
+ − 13852 }
+ − 13853
+ − 13854 { test "$extra_verbose" = "yes" && cat << EOF
442
+ − 13855 Defining TERM_H_FILE = "${term_h_file-term.h}"
+ − 13856 EOF
+ − 13857 cat >> confdefs.h <<EOF
+ − 13858 #define TERM_H_FILE "${term_h_file-term.h}"
149
+ − 13859 EOF
+ − 13860 }
+ − 13861
155
+ − 13862
+ − 13863 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
+ − 13864 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
726
+ − 13865 echo "configure:13866: checking for gpm.h" >&5
+ − 13866
+ − 13867 cat > conftest.$ac_ext <<EOF
+ − 13868 #line 13869 "configure"
155
+ − 13869 #include "confdefs.h"
+ − 13870 #include <gpm.h>
+ − 13871 EOF
+ − 13872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 13873 { (eval echo configure:13874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
+ − 13875 if test -z "$ac_err"; then
+ − 13876 rm -rf conftest*
+ − 13877 eval "ac_cv_header_$ac_safe=yes"
+ − 13878 else
+ − 13879 echo "$ac_err" >&5
+ − 13880 echo "configure: failed program was:" >&5
+ − 13881 cat conftest.$ac_ext >&5
+ − 13882 rm -rf conftest*
+ − 13883 eval "ac_cv_header_$ac_safe=no"
+ − 13884 fi
+ − 13885 rm -f conftest*
+ − 13886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13887 echo "$ac_t""yes" 1>&6
+ − 13888 :
+ − 13889 else
+ − 13890 echo "$ac_t""no" 1>&6
+ − 13891 with_gpm=no
+ − 13892 fi
+ − 13893 }
+ − 13894 test -z "$with_gpm" && {
+ − 13895 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
726
+ − 13896 echo "configure:13897: checking for Gpm_Open in -lgpm" >&5
155
+ − 13897 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
+ − 13898
+ − 13899 xe_check_libs=" -lgpm "
+ − 13900 cat > conftest.$ac_ext <<EOF
726
+ − 13901 #line 13902 "configure"
155
+ − 13902 #include "confdefs.h"
+ − 13903 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13904 /* We use char because int might match the return type of a gcc2
+ − 13905 builtin and then its argument prototype would still apply. */
+ − 13906 char Gpm_Open();
+ − 13907
+ − 13908 int main() {
+ − 13909 Gpm_Open()
+ − 13910 ; return 0; }
+ − 13911 EOF
726
+ − 13912 if { (eval echo configure:13913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
155
+ − 13913 rm -rf conftest*
+ − 13914 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13915 else
+ − 13916 echo "configure: failed program was:" >&5
+ − 13917 cat conftest.$ac_ext >&5
+ − 13918 rm -rf conftest*
+ − 13919 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13920 fi
+ − 13921 rm -f conftest*
+ − 13922 xe_check_libs=""
+ − 13923
+ − 13924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 13925 echo "$ac_t""yes" 1>&6
+ − 13926 with_gpm=yes
+ − 13927 else
+ − 13928 echo "$ac_t""no" 1>&6
+ − 13929 with_gpm=no
+ − 13930 fi
+ − 13931
+ − 13932 }
+ − 13933 if test "$with_gpm" = "yes"; then
+ − 13934 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13935 Defining HAVE_GPM
+ − 13936 EOF
+ − 13937 cat >> confdefs.h <<\EOF
+ − 13938 #define HAVE_GPM 1
+ − 13939 EOF
+ − 13940 }
+ − 13941
+ − 13942 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
+ − 13943 echo " xemacs will be linked with \"gpmevent.o\""
+ − 13944 fi
+ − 13945 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
+ − 13946 fi
+ − 13947
151
+ − 13948 else for feature in ncurses gpm; do
149
+ − 13949 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
561
+ − 13950 echo "configure: warning: --with-${feature} ignored: Not valid without TTY support" 1>&2
149
+ − 13951 fi
+ − 13952 eval "with_${feature}=no"
+ − 13953 done
151
+ − 13954 fi
664
+ − 13955 test "$with_x11" = "yes" -o "$with_tty" = "yes" -o "$need_event_unixoid" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
163
+ − 13956 echo " xemacs will be linked with \"event-unixoid.o\""
+ − 13957 fi
+ − 13958
149
+ − 13959
426
+ − 13960 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
384
+ − 13961 != "no no no" && echo "checking for database support" 1>&6
726
+ − 13962 echo "configure:13963: checking for database support" >&5
426
+ − 13963
+ − 13964 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
384
+ − 13965 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
+ − 13966 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
726
+ − 13967 echo "configure:13968: checking for ndbm.h" >&5
+ − 13968
+ − 13969 cat > conftest.$ac_ext <<EOF
+ − 13970 #line 13971 "configure"
384
+ − 13971 #include "confdefs.h"
+ − 13972 #include <ndbm.h>
265
+ − 13973 EOF
+ − 13974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 13975 { (eval echo configure:13976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
265
+ − 13977 if test -z "$ac_err"; then
+ − 13978 rm -rf conftest*
+ − 13979 eval "ac_cv_header_$ac_safe=yes"
+ − 13980 else
+ − 13981 echo "$ac_err" >&5
+ − 13982 echo "configure: failed program was:" >&5
+ − 13983 cat conftest.$ac_ext >&5
+ − 13984 rm -rf conftest*
+ − 13985 eval "ac_cv_header_$ac_safe=no"
+ − 13986 fi
+ − 13987 rm -f conftest*
+ − 13988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13989 echo "$ac_t""yes" 1>&6
384
+ − 13990 :
+ − 13991 else
+ − 13992 echo "$ac_t""no" 1>&6
+ − 13993
426
+ − 13994 test "$with_database_gdbm" = "yes" -o \
+ − 13995 "$with_database_dbm" = "yes" && \
384
+ − 13996 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
426
+ − 13997 with_database_gdbm=no with_database_dbm=no
+ − 13998 fi
+ − 13999
+ − 14000 fi
+ − 14001
+ − 14002 if test "$with_database_gdbm" != "no"; then
384
+ − 14003
149
+ − 14004 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
726
+ − 14005 echo "configure:14006: checking for dbm_open in -lgdbm" >&5
149
+ − 14006 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
+ − 14007
+ − 14008 xe_check_libs=" -lgdbm "
+ − 14009 cat > conftest.$ac_ext <<EOF
726
+ − 14010 #line 14011 "configure"
149
+ − 14011 #include "confdefs.h"
+ − 14012 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14013 /* We use char because int might match the return type of a gcc2
+ − 14014 builtin and then its argument prototype would still apply. */
+ − 14015 char dbm_open();
+ − 14016
+ − 14017 int main() {
+ − 14018 dbm_open()
+ − 14019 ; return 0; }
+ − 14020 EOF
726
+ − 14021 if { (eval echo configure:14022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 14022 rm -rf conftest*
+ − 14023 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14024 else
+ − 14025 echo "configure: failed program was:" >&5
+ − 14026 cat conftest.$ac_ext >&5
+ − 14027 rm -rf conftest*
+ − 14028 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14029 fi
+ − 14030 rm -f conftest*
+ − 14031 xe_check_libs=""
+ − 14032
151
+ − 14033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 14034 echo "$ac_t""yes" 1>&6
426
+ − 14035 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
+ − 14036 else
+ − 14037 echo "$ac_t""no" 1>&6
+ − 14038 if test "$with_database_gdbm" = "yes"; then
384
+ − 14039 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
+ − 14040 fi
426
+ − 14041 with_database_gdbm=no
384
+ − 14042 fi
+ − 14043
+ − 14044
149
+ − 14045 fi
+ − 14046
151
+ − 14047 if test "$with_database_dbm" != "no"; then
149
+ − 14048 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
726
+ − 14049 echo "configure:14050: checking for dbm_open" >&5
+ − 14050
+ − 14051 cat > conftest.$ac_ext <<EOF
+ − 14052 #line 14053 "configure"
149
+ − 14053 #include "confdefs.h"
+ − 14054 /* System header to define __stub macros and hopefully few prototypes,
+ − 14055 which can conflict with char dbm_open(); below. */
+ − 14056 #include <assert.h>
+ − 14057 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14058 /* We use char because int might match the return type of a gcc2
+ − 14059 builtin and then its argument prototype would still apply. */
+ − 14060 char dbm_open();
+ − 14061
+ − 14062 int main() {
+ − 14063
+ − 14064 /* The GNU C library defines this for functions which it implements
+ − 14065 to always fail with ENOSYS. Some functions are actually named
+ − 14066 something starting with __ and the normal name is an alias. */
+ − 14067 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
+ − 14068 choke me
+ − 14069 #else
+ − 14070 dbm_open();
+ − 14071 #endif
+ − 14072
+ − 14073 ; return 0; }
+ − 14074 EOF
726
+ − 14075 if { (eval echo configure:14076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 14076 rm -rf conftest*
+ − 14077 eval "ac_cv_func_dbm_open=yes"
+ − 14078 else
+ − 14079 echo "configure: failed program was:" >&5
+ − 14080 cat conftest.$ac_ext >&5
+ − 14081 rm -rf conftest*
+ − 14082 eval "ac_cv_func_dbm_open=no"
+ − 14083 fi
+ − 14084 rm -f conftest*
+ − 14085
+ − 14086 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
+ − 14087 echo "$ac_t""yes" 1>&6
384
+ − 14088 with_database_dbm=yes libdbm=
+ − 14089 else
+ − 14090 echo "$ac_t""no" 1>&6
+ − 14091
149
+ − 14092
+ − 14093 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
726
+ − 14094 echo "configure:14095: checking for dbm_open in -ldbm" >&5
149
+ − 14095 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
+ − 14096
+ − 14097 xe_check_libs=" -ldbm "
+ − 14098 cat > conftest.$ac_ext <<EOF
726
+ − 14099 #line 14100 "configure"
149
+ − 14100 #include "confdefs.h"
+ − 14101 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14102 /* We use char because int might match the return type of a gcc2
+ − 14103 builtin and then its argument prototype would still apply. */
+ − 14104 char dbm_open();
+ − 14105
+ − 14106 int main() {
+ − 14107 dbm_open()
+ − 14108 ; return 0; }
+ − 14109 EOF
726
+ − 14110 if { (eval echo configure:14111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 14111 rm -rf conftest*
+ − 14112 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14113 else
+ − 14114 echo "configure: failed program was:" >&5
+ − 14115 cat conftest.$ac_ext >&5
+ − 14116 rm -rf conftest*
+ − 14117 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14118 fi
+ − 14119 rm -f conftest*
+ − 14120 xe_check_libs=""
+ − 14121
151
+ − 14122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 14123 echo "$ac_t""yes" 1>&6
384
+ − 14124 with_database_dbm=yes libdbm=-ldbm
+ − 14125 else
+ − 14126 echo "$ac_t""no" 1>&6
+ − 14127 test "$with_database_dbm" = "yes" && \
+ − 14128 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
+ − 14129 with_database_dbm=no
+ − 14130 fi
+ − 14131
+ − 14132
+ − 14133 fi
+ − 14134
+ − 14135 fi
+ − 14136
+ − 14137 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
426
+ − 14138 test "$with_database_gdbm" = "yes" -o \
+ − 14139 "$with_database_dbm" = "yes" && \
384
+ − 14140 { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 14141 Defining HAVE_DBM
+ − 14142 EOF
+ − 14143 cat >> confdefs.h <<\EOF
+ − 14144 #define HAVE_DBM 1
+ − 14145 EOF
+ − 14146 }
+ − 14147
+ − 14148
+ − 14149 if test "$with_database_berkdb" != "no"; then
298
+ − 14150 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
726
+ − 14151 echo "configure:14152: checking for Berkeley db.h" >&5
442
+ − 14152 for header in "db/db.h" "db.h"; do
298
+ − 14153 cat > conftest.$ac_ext <<EOF
726
+ − 14154 #line 14155 "configure"
442
+ − 14155 #include "confdefs.h"
+ − 14156
+ − 14157 #include <stdlib.h>
+ − 14158 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
298
+ − 14159 #ifdef HAVE_INTTYPES_H
+ − 14160 #define __BIT_TYPES_DEFINED__
+ − 14161 #include <inttypes.h>
+ − 14162 typedef uint8_t u_int8_t;
+ − 14163 typedef uint16_t u_int16_t;
+ − 14164 typedef uint32_t u_int32_t;
+ − 14165 #ifdef WE_DONT_NEED_QUADS
+ − 14166 typedef uint64_t u_int64_t;
+ − 14167 #endif
+ − 14168 #endif
442
+ − 14169 #endif
+ − 14170 #include <$header>
+ − 14171
+ − 14172 int main() {
+ − 14173
+ − 14174 ; return 0; }
+ − 14175 EOF
726
+ − 14176 if { (eval echo configure:14177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
+ − 14177 rm -rf conftest*
+ − 14178 db_h_file="$header"; break
298
+ − 14179 else
+ − 14180 echo "configure: failed program was:" >&5
+ − 14181 cat conftest.$ac_ext >&5
+ − 14182 fi
+ − 14183 rm -f conftest*
+ − 14184 done
442
+ − 14185 if test -z "$db_h_file"
298
+ − 14186 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
442
+ − 14187 else echo "$ac_t""$db_h_file" 1>&6
298
+ − 14188 fi
+ − 14189
+ − 14190 if test "$with_database_berkdb" != "no"; then
+ − 14191 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
726
+ − 14192 echo "configure:14193: checking for Berkeley DB version" >&5
298
+ − 14193 cat > conftest.$ac_ext <<EOF
726
+ − 14194 #line 14195 "configure"
442
+ − 14195 #include "confdefs.h"
+ − 14196 #include <$db_h_file>
298
+ − 14197 #if DB_VERSION_MAJOR > 1
+ − 14198 yes
+ − 14199 #endif
+ − 14200
+ − 14201 EOF
+ − 14202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 14203 egrep "yes" >/dev/null 2>&1; then
+ − 14204 rm -rf conftest*
448
+ − 14205 cat > conftest.$ac_ext <<EOF
726
+ − 14206 #line 14207 "configure"
448
+ − 14207 #include "confdefs.h"
+ − 14208 #include <$db_h_file>
+ − 14209 #if DB_VERSION_MAJOR > 2
+ − 14210 yes
+ − 14211 #endif
+ − 14212
+ − 14213 EOF
+ − 14214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 14215 egrep "yes" >/dev/null 2>&1; then
+ − 14216 rm -rf conftest*
+ − 14217 echo "$ac_t""3" 1>&6; dbfunc=db_create
+ − 14218 else
+ − 14219 rm -rf conftest*
+ − 14220
+ − 14221 echo "$ac_t""2" 1>&6; dbfunc=db_open
+ − 14222 fi
+ − 14223 rm -f conftest*
+ − 14224
+ − 14225 else
+ − 14226 rm -rf conftest*
+ − 14227
+ − 14228 echo "$ac_t""1" 1>&6; dbfunc=dbopen
298
+ − 14229 fi
+ − 14230 rm -f conftest*
+ − 14231
+ − 14232 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
726
+ − 14233 echo "configure:14234: checking for $dbfunc" >&5
+ − 14234
+ − 14235 cat > conftest.$ac_ext <<EOF
+ − 14236 #line 14237 "configure"
298
+ − 14237 #include "confdefs.h"
149
+ − 14238 /* System header to define __stub macros and hopefully few prototypes,
298
+ − 14239 which can conflict with char $dbfunc(); below. */
149
+ − 14240 #include <assert.h>
+ − 14241 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14242 /* We use char because int might match the return type of a gcc2
+ − 14243 builtin and then its argument prototype would still apply. */
298
+ − 14244 char $dbfunc();
149
+ − 14245
+ − 14246 int main() {
+ − 14247
0
+ − 14248 /* The GNU C library defines this for functions which it implements
+ − 14249 to always fail with ENOSYS. Some functions are actually named
+ − 14250 something starting with __ and the normal name is an alias. */
298
+ − 14251 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
0
+ − 14252 choke me
+ − 14253 #else
298
+ − 14254 $dbfunc();
0
+ − 14255 #endif
149
+ − 14256
0
+ − 14257 ; return 0; }
+ − 14258 EOF
726
+ − 14259 if { (eval echo configure:14260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
298
+ − 14260 rm -rf conftest*
+ − 14261 eval "ac_cv_func_$dbfunc=yes"
+ − 14262 else
+ − 14263 echo "configure: failed program was:" >&5
+ − 14264 cat conftest.$ac_ext >&5
+ − 14265 rm -rf conftest*
+ − 14266 eval "ac_cv_func_$dbfunc=no"
+ − 14267 fi
+ − 14268 rm -f conftest*
+ − 14269
+ − 14270 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
149
+ − 14271 echo "$ac_t""yes" 1>&6
+ − 14272 with_database_berkdb=yes need_libdb=no
+ − 14273 else
+ − 14274 echo "$ac_t""no" 1>&6
298
+ − 14275
+ − 14276
+ − 14277 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
726
+ − 14278 echo "configure:14279: checking for $dbfunc in -ldb" >&5
298
+ − 14279 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
149
+ − 14280
+ − 14281 xe_check_libs=" -ldb "
+ − 14282 cat > conftest.$ac_ext <<EOF
726
+ − 14283 #line 14284 "configure"
149
+ − 14284 #include "confdefs.h"
0
+ − 14285 /* Override any gcc2 internal prototype to avoid an error. */
149
+ − 14286 /* We use char because int might match the return type of a gcc2
+ − 14287 builtin and then its argument prototype would still apply. */
298
+ − 14288 char $dbfunc();
+ − 14289
+ − 14290 int main() {
+ − 14291 $dbfunc()
+ − 14292 ; return 0; }
+ − 14293 EOF
726
+ − 14294 if { (eval echo configure:14295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 14295 rm -rf conftest*
+ − 14296 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14297 else
+ − 14298 echo "configure: failed program was:" >&5
+ − 14299 cat conftest.$ac_ext >&5
+ − 14300 rm -rf conftest*
+ − 14301 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14302 fi
+ − 14303 rm -f conftest*
+ − 14304 xe_check_libs=""
+ − 14305
151
+ − 14306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 14307 echo "$ac_t""yes" 1>&6
+ − 14308 with_database_berkdb=yes need_libdb=yes
+ − 14309 else
+ − 14310 echo "$ac_t""no" 1>&6
298
+ − 14311 fi
+ − 14312
+ − 14313
+ − 14314 fi
+ − 14315
+ − 14316 fi
+ − 14317
149
+ − 14318 if test "$with_database_berkdb" = "yes"; then
+ − 14319 { test "$extra_verbose" = "yes" && cat << EOF
442
+ − 14320 Defining DB_H_FILE = "$db_h_file"
+ − 14321 EOF
+ − 14322 cat >> confdefs.h <<EOF
+ − 14323 #define DB_H_FILE "$db_h_file"
149
+ − 14324 EOF
+ − 14325 }
+ − 14326
+ − 14327 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 14328 Defining HAVE_BERKELEY_DB
+ − 14329 EOF
+ − 14330 cat >> confdefs.h <<\EOF
+ − 14331 #define HAVE_BERKELEY_DB 1
+ − 14332 EOF
+ − 14333 }
+ − 14334
151
+ − 14335 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
149
+ − 14336 else with_database_berkdb=no
+ − 14337 fi
+ − 14338 fi
+ − 14339
426
+ − 14340 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
272
+ − 14341 != "no no no"; then
149
+ − 14342 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 14343 Defining HAVE_DATABASE
+ − 14344 EOF
+ − 14345 cat >> confdefs.h <<\EOF
+ − 14346 #define HAVE_DATABASE 1
+ − 14347 EOF
+ − 14348 }
+ − 14349
151
+ − 14350 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
+ − 14351 echo " xemacs will be linked with \"database.o\""
+ − 14352 fi
149
+ − 14353 fi
+ − 14354
+ − 14355 if test "$with_socks" = "yes"; then
+ − 14356
+ − 14357 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
726
+ − 14358 echo "configure:14359: checking for SOCKSinit in -lsocks" >&5
149
+ − 14359 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
+ − 14360
+ − 14361 xe_check_libs=" -lsocks "
+ − 14362 cat > conftest.$ac_ext <<EOF
726
+ − 14363 #line 14364 "configure"
149
+ − 14364 #include "confdefs.h"
+ − 14365 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14366 /* We use char because int might match the return type of a gcc2
+ − 14367 builtin and then its argument prototype would still apply. */
+ − 14368 char SOCKSinit();
+ − 14369
+ − 14370 int main() {
+ − 14371 SOCKSinit()
+ − 14372 ; return 0; }
+ − 14373 EOF
726
+ − 14374 if { (eval echo configure:14375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 14375 rm -rf conftest*
+ − 14376 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14377 else
+ − 14378 echo "configure: failed program was:" >&5
+ − 14379 cat conftest.$ac_ext >&5
+ − 14380 rm -rf conftest*
+ − 14381 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14382 fi
+ − 14383 rm -f conftest*
+ − 14384 xe_check_libs=""
+ − 14385
151
+ − 14386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 14387 echo "$ac_t""yes" 1>&6
+ − 14388 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 14389 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 14390 { test "$extra_verbose" = "yes" && cat << EOF
+ − 14391 Defining $ac_tr_lib
+ − 14392 EOF
+ − 14393 cat >> confdefs.h <<EOF
+ − 14394 #define $ac_tr_lib 1
+ − 14395 EOF
+ − 14396 }
+ − 14397
151
+ − 14398 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
149
+ − 14399
+ − 14400 else
+ − 14401 echo "$ac_t""no" 1>&6
+ − 14402 fi
+ − 14403
+ − 14404
+ − 14405 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 14406 Defining HAVE_SOCKS
+ − 14407 EOF
+ − 14408 cat >> confdefs.h <<\EOF
+ − 14409 #define HAVE_SOCKS 1
+ − 14410 EOF
+ − 14411 }
+ − 14412
+ − 14413 fi
+ − 14414
+ − 14415 if test "$usage_tracking" = "yes"; then
+ − 14416 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 14417 Defining USAGE_TRACKING
+ − 14418 EOF
+ − 14419 cat >> confdefs.h <<\EOF
+ − 14420 #define USAGE_TRACKING 1
+ − 14421 EOF
+ − 14422 }
+ − 14423
151
+ − 14424 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
149
+ − 14425 fi
+ − 14426
430
+ − 14427 if test "$with_modules" != "no"; then
+ − 14428 echo "checking for module support" 1>&6
726
+ − 14429 echo "configure:14430: checking for module support" >&5
442
+ − 14430
+ − 14431 if test "$with_msw" = "yes"; then
+ − 14432 have_dl=yes;
+ − 14433 else
+ − 14434 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
430
+ − 14435 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
726
+ − 14436 echo "configure:14437: checking for dlfcn.h" >&5
+ − 14437
+ − 14438 cat > conftest.$ac_ext <<EOF
+ − 14439 #line 14440 "configure"
430
+ − 14440 #include "confdefs.h"
+ − 14441 #include <dlfcn.h>
261
+ − 14442 EOF
+ − 14443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726
+ − 14444 { (eval echo configure:14445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 14445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
261
+ − 14446 if test -z "$ac_err"; then
+ − 14447 rm -rf conftest*
+ − 14448 eval "ac_cv_header_$ac_safe=yes"
+ − 14449 else
+ − 14450 echo "$ac_err" >&5
+ − 14451 echo "configure: failed program was:" >&5
+ − 14452 cat conftest.$ac_ext >&5
+ − 14453 rm -rf conftest*
+ − 14454 eval "ac_cv_header_$ac_safe=no"
+ − 14455 fi
+ − 14456 rm -f conftest*
+ − 14457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 14458 echo "$ac_t""yes" 1>&6
430
+ − 14459
452
+ − 14460 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
726
+ − 14461 echo "configure:14462: checking for dlopen in -lc" >&5
452
+ − 14462 cat > conftest.$ac_ext <<EOF
726
+ − 14463 #line 14464 "configure"
452
+ − 14464 #include "confdefs.h"
+ − 14465 #include <dlfcn.h>
+ − 14466 int main() {
+ − 14467 dlopen ("", 0);
+ − 14468 ; return 0; }
+ − 14469 EOF
726
+ − 14470 if { (eval echo configure:14471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
452
+ − 14471 rm -rf conftest*
+ − 14472 have_dl=yes
+ − 14473 else
+ − 14474 echo "configure: failed program was:" >&5
+ − 14475 cat conftest.$ac_ext >&5
+ − 14476 rm -rf conftest*
+ − 14477
+ − 14478 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
726
+ − 14479 echo "configure:14480: checking for dlopen in -ldl" >&5
452
+ − 14480 ac_save_LIBS="$LIBS"
+ − 14481 LIBS="-ldl $LIBS"
+ − 14482 cat > conftest.$ac_ext <<EOF
726
+ − 14483 #line 14484 "configure"
452
+ − 14484 #include "confdefs.h"
+ − 14485 #include <dlfcn.h>
+ − 14486 int main() {
+ − 14487 dlopen ("", 0);
+ − 14488 ; return 0; }
+ − 14489 EOF
726
+ − 14490 if { (eval echo configure:14491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
452
+ − 14491 rm -rf conftest*
+ − 14492 have_dl=yes
+ − 14493 else
+ − 14494 echo "configure: failed program was:" >&5
+ − 14495 cat conftest.$ac_ext >&5
+ − 14496 rm -rf conftest*
+ − 14497 LIBS="$ac_save_LIBS"
+ − 14498 fi
+ − 14499 rm -f conftest*
+ − 14500 ac_save_LIBS=
+ − 14501 fi
+ − 14502 rm -f conftest*
430
+ − 14503 else
+ − 14504 echo "$ac_t""no" 1>&6
+ − 14505 fi
+ − 14506
442
+ − 14507 if test -n "$have_dl"; then
+ − 14508 { test "$extra_verbose" = "yes" && cat << \EOF
265
+ − 14509 Defining HAVE_DLOPEN
+ − 14510 EOF
+ − 14511 cat >> confdefs.h <<\EOF
+ − 14512 #define HAVE_DLOPEN 1
+ − 14513 EOF
+ − 14514 }
430
+ − 14515
442
+ − 14516 else
+ − 14517
430
+ − 14518 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
726
+ − 14519 echo "configure:14520: checking for shl_load in -ldld" >&5
430
+ − 14520 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
+ − 14521
+ − 14522 xe_check_libs=" -ldld "
+ − 14523 cat > conftest.$ac_ext <<EOF
726
+ − 14524 #line 14525 "configure"
430
+ − 14525 #include "confdefs.h"
+ − 14526 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14527 /* We use char because int might match the return type of a gcc2
+ − 14528 builtin and then its argument prototype would still apply. */
+ − 14529 char shl_load();
+ − 14530
+ − 14531 int main() {
+ − 14532 shl_load()
+ − 14533 ; return 0; }
+ − 14534 EOF
726
+ − 14535 if { (eval echo configure:14536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
261
+ − 14536 rm -rf conftest*
+ − 14537 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14538 else
+ − 14539 echo "configure: failed program was:" >&5
+ − 14540 cat conftest.$ac_ext >&5
+ − 14541 rm -rf conftest*
+ − 14542 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14543 fi
+ − 14544 rm -f conftest*
+ − 14545 xe_check_libs=""
+ − 14546
+ − 14547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 14548 echo "$ac_t""yes" 1>&6
430
+ − 14549 libdl=dld have_dl=yes;
442
+ − 14550 { test "$extra_verbose" = "yes" && cat << \EOF
430
+ − 14551 Defining HAVE_SHL_LOAD
+ − 14552 EOF
+ − 14553 cat >> confdefs.h <<\EOF
+ − 14554 #define HAVE_SHL_LOAD 1
+ − 14555 EOF
+ − 14556 }
+ − 14557
+ − 14558 else
+ − 14559 echo "$ac_t""no" 1>&6
+ − 14560
+ − 14561 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
726
+ − 14562 echo "configure:14563: checking for dld_init in -ldld" >&5
430
+ − 14563 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
265
+ − 14564
+ − 14565 xe_check_libs=" -ldld "
+ − 14566 cat > conftest.$ac_ext <<EOF
726
+ − 14567 #line 14568 "configure"
430
+ − 14568 #include "confdefs.h"
+ − 14569 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14570 /* We use char because int might match the return type of a gcc2
+ − 14571 builtin and then its argument prototype would still apply. */
+ − 14572 char dld_init();
+ − 14573
+ − 14574 int main() {
+ − 14575 dld_init()
+ − 14576 ; return 0; }
+ − 14577 EOF
726
+ − 14578 if { (eval echo configure:14579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
265
+ − 14579 rm -rf conftest*
+ − 14580 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14581 else
+ − 14582 echo "configure: failed program was:" >&5
+ − 14583 cat conftest.$ac_ext >&5
+ − 14584 rm -rf conftest*
+ − 14585 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14586 fi
+ − 14587 rm -f conftest*
+ − 14588 xe_check_libs=""
+ − 14589
+ − 14590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 14591 echo "$ac_t""yes" 1>&6
430
+ − 14592 libdl=dld have_dl=yes;
442
+ − 14593 { test "$extra_verbose" = "yes" && cat << \EOF
265
+ − 14594 Defining HAVE_DLD_INIT
+ − 14595 EOF
+ − 14596 cat >> confdefs.h <<\EOF
+ − 14597 #define HAVE_DLD_INIT 1
+ − 14598 EOF
+ − 14599 }
430
+ − 14600
+ − 14601 else
+ − 14602 echo "$ac_t""no" 1>&6
+ − 14603 fi
+ − 14604
+ − 14605
+ − 14606 fi
+ − 14607
+ − 14608
442
+ − 14609 fi
+ − 14610 fi
430
+ − 14611 if test -n "$have_dl"; then
+ − 14612
388
+ − 14613 dll_ld=
+ − 14614 dll_ldflags=
+ − 14615 dll_cflags=
+ − 14616 dll_post=
+ − 14617 dll_ldo="-o"
+ − 14618 ld_dynamic_link_flags=
+ − 14619 xehost=$canonical
+ − 14620 xealias=$internal_configuration
+ − 14621
+ − 14622 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
726
+ − 14623 echo "configure:14624: checking how to build dynamic libraries for ${xehost}" >&5
388
+ − 14624 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
+ − 14625 case "$xehost" in
+ − 14626 *-*-linux-gnu*) ;;
+ − 14627 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
+ − 14628 esac
+ − 14629
+ − 14630 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+ − 14631 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+ − 14632 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+ − 14633
+ − 14634 case "$xehost_os" in
+ − 14635 aix3*)
+ − 14636 # AIX sometimes has problems with the GCC collect2 program. For some
+ − 14637 # reason, if we set the COLLECT_NAMES environment variable, the problems
+ − 14638 # vanish in a puff of smoke.
+ − 14639 if test "${COLLECT_NAMES+set}" != set; then
+ − 14640 COLLECT_NAMES=
+ − 14641 export COLLECT_NAMES
+ − 14642 fi
+ − 14643 ;;
+ − 14644 esac
+ − 14645
+ − 14646 # Now see if the compiler is really GCC.
+ − 14647 if test "$GCC" = "yes"; then
+ − 14648 XEGCC=yes
+ − 14649 else
+ − 14650 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
726
+ − 14651 echo "configure:14652: checking checking whether we are using GNU C" >&5
388
+ − 14652 cat > conftest.$ac_ext <<EOF
726
+ − 14653 #line 14654 "configure"
388
+ − 14654 #include "confdefs.h"
+ − 14655
+ − 14656 #ifdef __GNUC__
+ − 14657 yes;
+ − 14658 #endif
+ − 14659
+ − 14660 EOF
+ − 14661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 14662 egrep "yes" >/dev/null 2>&1; then
+ − 14663 rm -rf conftest*
+ − 14664 XEGCC=yes
+ − 14665 else
+ − 14666 rm -rf conftest*
+ − 14667 XEGCC=no
+ − 14668 fi
+ − 14669 rm -f conftest*
+ − 14670
+ − 14671 echo "$ac_t""${XEGCC}" 1>&6
+ − 14672 fi
+ − 14673
+ − 14674 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
726
+ − 14675 echo "configure:14676: checking how to produce PIC code" >&5
388
+ − 14676 wl=
+ − 14677
+ − 14678 can_build_shared=yes
+ − 14679 if test "$XEGCC" = yes; then
+ − 14680 wl='-Wl,'
+ − 14681
+ − 14682 case "$xehost_os" in
460
+ − 14683 aix[3-9]* | irix[5-9]* | osf[3-9])
388
+ − 14684 # PIC is the default for these OSes.
+ − 14685 ;;
+ − 14686
460
+ − 14687 os2*)
388
+ − 14688 # We can build DLLs from non-PIC.
+ − 14689 ;;
+ − 14690 amigaos*)
+ − 14691 # FIXME: we need at least 68020 code to build shared libraries, but
+ − 14692 # adding the `-m68020' flag to GCC prevents building anything better,
+ − 14693 # like `-m68040'.
+ − 14694 dll_cflags='-m68020 -resident32 -malways-restore-a4'
+ − 14695 ;;
442
+ − 14696 *cygwin* | *mingw* )
+ − 14697 # PIC is the default
+ − 14698 ;;
388
+ − 14699 *)
+ − 14700 dll_cflags='-fPIC'
+ − 14701 ;;
+ − 14702 esac
+ − 14703 else
+ − 14704 # PORTME Check for PIC flags for the system compiler.
+ − 14705 case "$xehost_os" in
430
+ − 14706 hpux9* | hpux1[0-9]*)
388
+ − 14707 # Is there a better link_static_flag that works with the bundled CC?
+ − 14708 wl='-Wl,'
+ − 14709 dll_cflags='+Z'
+ − 14710 ;;
+ − 14711
460
+ − 14712 irix[5-9]*)
388
+ − 14713 wl='-Wl,'
+ − 14714 # PIC (with -KPIC) is the default.
+ − 14715 ;;
+ − 14716
+ − 14717 os2*)
+ − 14718 # We can build DLLs from non-PIC.
+ − 14719 ;;
+ − 14720
460
+ − 14721 osf[3-9]*)
388
+ − 14722 # All OSF/1 code is PIC.
+ − 14723 wl='-Wl,'
+ − 14724 ;;
+ − 14725
460
+ − 14726 aix[3-9]*)
+ − 14727 # All AIX code is PIC.
+ − 14728 wl='-Wl,'
+ − 14729 ;;
+ − 14730
388
+ − 14731 sco3.2v5*)
+ − 14732 dll_cflags='-belf -Kpic'
+ − 14733 wl='-Wl,'
+ − 14734 ;;
+ − 14735
+ − 14736 unixware*)
+ − 14737 dll_cflags="-KPIC"
+ − 14738 wl="-Wl,"
+ − 14739 ;;
+ − 14740
+ − 14741 sysv4*)
+ − 14742 dll_cflags="-KPIC"
+ − 14743 wl="-Wl,"
+ − 14744 ;;
+ − 14745
+ − 14746 sysv5*)
+ − 14747 dll_cflags="-KPIC"
+ − 14748 wl="-Wl,"
+ − 14749 ;;
+ − 14750
+ − 14751 solaris2*)
+ − 14752 dll_cflags='-KPIC'
+ − 14753 wl='-Wl,'
+ − 14754 ;;
+ − 14755
+ − 14756 sunos4*)
+ − 14757 dll_cflags='-PIC'
+ − 14758 wl='-Qoption ld '
+ − 14759 ;;
+ − 14760
+ − 14761 uts4*)
+ − 14762 dll_cflags='-pic'
+ − 14763 ;;
+ − 14764
+ − 14765 *)
+ − 14766 can_build_shared=no
+ − 14767 ;;
+ − 14768 esac
+ − 14769 fi
+ − 14770
+ − 14771 if test -n "$dll_cflags"; then
+ − 14772 echo "$ac_t""${dll_cflags}" 1>&6
442
+ − 14773
388
+ − 14774 # Check to make sure the dll_cflags actually works.
+ − 14775 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
726
+ − 14776 echo "configure:14777: checking if PIC flag ${dll_cflags} really works" >&5
388
+ − 14777 save_CFLAGS="$CFLAGS"
+ − 14778 CFLAGS="$CFLAGS $dll_cflags -DPIC"
+ − 14779 cat > conftest.$ac_ext <<EOF
726
+ − 14780 #line 14781 "configure"
388
+ − 14781 #include "confdefs.h"
+ − 14782
+ − 14783 int main() {
+ − 14784 int x=0;
+ − 14785 ; return 0; }
+ − 14786 EOF
726
+ − 14787 if { (eval echo configure:14788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
388
+ − 14788 rm -rf conftest*
+ − 14789
+ − 14790 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
+ − 14791 # reports no error. So, we need to grep stderr for (Bundled).
+ − 14792 if grep '(Bundled)' config.log >/dev/null; then
+ − 14793 echo "$ac_t""no" 1>&6
+ − 14794 can_build_shared=no
+ − 14795 dll_cflags=
+ − 14796 else
+ − 14797 echo "$ac_t""yes" 1>&6
+ − 14798 fi
+ − 14799 else
+ − 14800 echo "configure: failed program was:" >&5
+ − 14801 cat conftest.$ac_ext >&5
+ − 14802 rm -rf conftest*
+ − 14803 echo "$ac_t""no" 1>&6
+ − 14804 can_build_shared=no
+ − 14805 dll_cflags=
+ − 14806 fi
+ − 14807 rm -f conftest*
+ − 14808 CFLAGS="$save_CFLAGS"
+ − 14809 else
+ − 14810 echo "$ac_t""none" 1>&6
+ − 14811 fi
+ − 14812
+ − 14813 if test "$can_build_shared" = "yes"; then
+ − 14814 cc_produces_so=no
+ − 14815 xldf=
+ − 14816 xcldf=
+ − 14817 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
726
+ − 14818 echo "configure:14819: checking if C compiler can produce shared libraries" >&5
388
+ − 14819 if test "$XEGCC" = yes; then
+ − 14820 xcldf="-shared"
+ − 14821 xldf="-shared"
+ − 14822 else # Not using GCC
+ − 14823 case "$xehost_os" in
460
+ − 14824 aix[3-9]*)
388
+ − 14825 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
+ − 14826 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
+ − 14827 ;;
+ − 14828
+ − 14829 freebsd2* | netbsd* | openbsd*)
+ − 14830 xldf="-Bshareable"
+ − 14831 xcldf="${wl}-Bshareable"
+ − 14832 ;;
+ − 14833
+ − 14834 freebsd3*)
+ − 14835 xcldf="-shared"
+ − 14836 ;;
+ − 14837
+ − 14838 hpux*)
+ − 14839 xldf="-b +s"
+ − 14840 xcldf="${wl}-b ${wl}+s"
+ − 14841 ;;
+ − 14842
460
+ − 14843 irix[5-9]* | osf[3-9]*)
388
+ − 14844 xcldf="${wl}-shared"
+ − 14845 xldf="-shared"
+ − 14846 ;;
+ − 14847
+ − 14848 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
+ − 14849 xcldf="-G"
+ − 14850 xldf="-G"
+ − 14851 ;;
+ − 14852
+ − 14853 sunos4*)
+ − 14854 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
+ − 14855 xldf="-assert pure-text -Bstatic"
+ − 14856 ;;
+ − 14857 esac
+ − 14858 fi # End if if we are using gcc
+ − 14859
+ − 14860 if test -n "$xcldf"; then
+ − 14861 save_LDFLAGS=$LDFLAGS
+ − 14862 save_LIBS=$LIBS
+ − 14863 save_xe_libs=$xe_libs
+ − 14864 LDFLAGS="$xcldf $LDFLAGS"
+ − 14865 LIBS=
+ − 14866 xe_libs=
+ − 14867 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 14868 cat > conftest.$ac_ext <<EOF
726
+ − 14869 #line 14870 "configure"
388
+ − 14870 #include "confdefs.h"
+ − 14871
+ − 14872 int main() {
+ − 14873 int x=0;
+ − 14874 ; return 0; }
+ − 14875 EOF
726
+ − 14876 if { (eval echo configure:14877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
388
+ − 14877 rm -rf conftest*
+ − 14878 cc_produces_so=yes
+ − 14879 else
+ − 14880 echo "configure: failed program was:" >&5
+ − 14881 cat conftest.$ac_ext >&5
+ − 14882 rm -rf conftest*
+ − 14883 cc_produces_so=no
+ − 14884 fi
+ − 14885 rm -f conftest*
+ − 14886 LDFLAGS=$save_LDFLAGS
+ − 14887 LIBS=$save_LIBS
+ − 14888 xe_libs=$save_xe_libs
+ − 14889 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 14890 else
+ − 14891 cc_produces_so=no
+ − 14892 fi
+ − 14893 echo "$ac_t""${cc_produces_so}" 1>&6
+ − 14894
+ − 14895 LTLD=$LD
+ − 14896 if test -z "$LTLD"; then
+ − 14897 ac_prog=ld
+ − 14898 if test "$XEGCC" = yes; then
+ − 14899 # Check if gcc -print-prog-name=ld gives a path.
+ − 14900 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
726
+ − 14901 echo "configure:14902: checking for ld used by GCC" >&5
388
+ − 14902 ac_prog=`($CC -print-prog-name=ld) 2>&5`
+ − 14903 case "$ac_prog" in
+ − 14904 # Accept absolute paths.
+ − 14905 /*)
+ − 14906 if test -z "$LTLD"; then
724
+ − 14907 # case "$ac_prog" in
+ − 14908 # *gcc-lib*) LTLD="$CC"
+ − 14909 # ;;
+ − 14910 # *)
+ − 14911 LTLD="$ac_prog"
+ − 14912 # ;;
+ − 14913 # esac
388
+ − 14914 fi
+ − 14915 ;;
+ − 14916 "")
+ − 14917 # If it fails, then pretend we aren't using GCC.
+ − 14918 ac_prog=ld
+ − 14919 ;;
+ − 14920 *)
+ − 14921 # If it is relative, then search for the first ld in PATH.
+ − 14922 with_gnu_ld=unknown
+ − 14923 ;;
+ − 14924 esac
+ − 14925 else
+ − 14926 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
726
+ − 14927 echo "configure:14928: checking for GNU ld" >&5
388
+ − 14928 fi
+ − 14929
+ − 14930 if test -z "$LTLD"; then
+ − 14931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
+ − 14932 for ac_dir in $PATH; do
+ − 14933 test -z "$ac_dir" && ac_dir=.
+ − 14934 if test -f "$ac_dir/$ac_prog"; then
+ − 14935 LTLD="$ac_dir/$ac_prog"
+ − 14936 # Check to see if the program is GNU ld. I'd rather use --version,
+ − 14937 # but apparently some GNU ld's only accept -v.
+ − 14938 # Break only if it was the GNU/non-GNU ld that we prefer.
+ − 14939 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
+ − 14940 xe_gnu_ld=yes
+ − 14941 else
+ − 14942 xe_gnu_ld=no
+ − 14943 fi
+ − 14944 fi
+ − 14945 done
+ − 14946 IFS="$ac_save_ifs"
+ − 14947 fi
+ − 14948
+ − 14949 if test -n "$LTLD"; then
+ − 14950 echo "$ac_t""${LTLD}" 1>&6
+ − 14951 else
+ − 14952 echo "$ac_t""no" 1>&6
+ − 14953 fi
+ − 14954
+ − 14955 if test -z "$LTLD" -a "$cc_produces_so" = no; then
+ − 14956 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
+ − 14957 exit 1
+ − 14958 fi
+ − 14959 fi
+ − 14960
+ − 14961 ld_dynamic_link_flags=
+ − 14962
+ − 14963 # Check to see if it really is or isn't GNU ld.
+ − 14964 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
726
+ − 14965 echo "configure:14966: checking if the linker is GNU ld" >&5
388
+ − 14966 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
+ − 14967 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
+ − 14968 xe_gnu_ld=yes
+ − 14969 else
+ − 14970 xe_gnu_ld=no
+ − 14971 fi
+ − 14972 echo "$ac_t""${xe_gnu_ld}" 1>&6
+ − 14973
+ − 14974 case "$xehost_os" in
+ − 14975 amigaos* | sunos4*)
+ − 14976 # On these operating systems, we should treat GNU ld like the system ld.
+ − 14977 gnu_ld_acts_native=yes
+ − 14978 ;;
+ − 14979 *)
+ − 14980 gnu_ld_acts_native=no
+ − 14981 ;;
+ − 14982 esac
+ − 14983
+ − 14984 if test "$cc_produces_so" = "yes"; then
+ − 14985 dll_ld=$CC
+ − 14986 dll_ldflags=$xcldf
+ − 14987 can_build_shared=yes
442
+ − 14988 ld_shlibs=yes
388
+ − 14989 else
+ − 14990 # OK - only NOW do we futz about with ld.
+ − 14991 # See if the linker supports building shared libraries.
+ − 14992 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
726
+ − 14993 echo "configure:14994: checking whether the linker supports shared libraries" >&5
388
+ − 14994 dll_ld=$CC
+ − 14995 dll_ldflags=$LDFLAGS
+ − 14996 ld_shlibs=yes
+ − 14997 can_build_shared=yes
+ − 14998 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
+ − 14999 # See if GNU ld supports shared libraries.
+ − 15000 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+ − 15001 dll_ld=$CC
+ − 15002 dll_ldflags="-shared"
+ − 15003 ld_shlibs=yes
+ − 15004 else
+ − 15005 ld_shlibs=no
+ − 15006 fi
+ − 15007 else
+ − 15008 # PORTME fill in a description of your system's linker (not GNU ld)
+ − 15009 case "$xehost_os" in
+ − 15010 aix3*)
+ − 15011 dll_ld=$LTLD
+ − 15012 dll_ldflags=$xldf
+ − 15013 ;;
+ − 15014
460
+ − 15015 aix[4-9]*)
388
+ − 15016 dll_ldflags=$xcldf
+ − 15017 ;;
+ − 15018
+ − 15019 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+ − 15020 # support. Future versions do this automatically, but an explicit c++rt0.o
+ − 15021 # doesn't break anything, and helps significantly (at the cost of a little
+ − 15022 # extra space).
+ − 15023 freebsd2.2*)
+ − 15024 dll_ld=$LTLD
+ − 15025 dll_ldflags=$xldf
+ − 15026 dll_post="/usr/lib/c++rt0.o"
+ − 15027 ;;
+ − 15028
+ − 15029 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
+ − 15030 freebsd2*)
+ − 15031 dll_ld=$LTLD
+ − 15032 dll_ldflags="-Bshareable"
+ − 15033 ;;
+ − 15034
+ − 15035 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
+ − 15036 freebsd3*)
+ − 15037 dll_ldflags="-shared"
+ − 15038 ;;
+ − 15039
+ − 15040 hpux*)
+ − 15041 dll_ld=$LTLD
+ − 15042 dll_ldflags=$xldf
+ − 15043 ;;
+ − 15044
460
+ − 15045 irix[5-9]*)
388
+ − 15046 dll_ld=$LTLD
+ − 15047 dll_ldflags=$xldf
+ − 15048 ;;
+ − 15049
+ − 15050 netbsd*)
+ − 15051 # Tested with NetBSD 1.2 ld
+ − 15052 dll_ld=$LTLD
+ − 15053 dll_ldflags=$xldf
+ − 15054 ;;
+ − 15055
+ − 15056 openbsd*)
+ − 15057 dll_ld=$LTLD
+ − 15058 dll_ldflags=$xldf
+ − 15059 ;;
+ − 15060
+ − 15061 osf3* | osf4*)
+ − 15062 dll_ld=$LTLD
+ − 15063 dll_ldflags=$xldf
+ − 15064 ;;
+ − 15065
+ − 15066 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
+ − 15067 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
+ − 15068 dll_ld=$LTLD
+ − 15069 case "$dll_ld" in
+ − 15070 *gcc*) dll_ldflags="-shared"
+ − 15071 dll_ld=$CC
+ − 15072 ;;
+ − 15073 *) dll_ldflags="-G"
+ − 15074 ;;
+ − 15075 esac
+ − 15076 ;;
+ − 15077
+ − 15078 sunos4*)
+ − 15079 if test "$XEGCC" = yes; then
+ − 15080 dll_ld=$CC
+ − 15081 else
+ − 15082 dll_ld=$LTLD
+ − 15083 fi
+ − 15084 dll_ldflags=$xldf
+ − 15085 ;;
+ − 15086
+ − 15087 uts4*)
+ − 15088 dll_ld=$LTLD
+ − 15089 dll_ldflags="-G"
+ − 15090 ;;
+ − 15091
+ − 15092 bsdi*)
+ − 15093 dll_ldflags="-r"
+ − 15094 dll_ld="shlicc2"
+ − 15095 ;;
+ − 15096
+ − 15097 *)
+ − 15098 ld_shlibs=no
+ − 15099 can_build_shared=no
+ − 15100 ;;
+ − 15101 esac
+ − 15102 fi
+ − 15103 echo "$ac_t""${ld_shlibs}" 1>&6
+ − 15104 if test "$ld_shlibs" = "no"; then
+ − 15105 can_build_shared=no
+ − 15106 fi
+ − 15107 fi # End of if cc_produces_so = no
+ − 15108
+ − 15109
+ − 15110 if test "$xe_gnu_ld" = yes; then
+ − 15111 if test "$ld_shlibs" = yes; then
+ − 15112 ld_dynamic_link_flags="${wl}-export-dynamic"
+ − 15113 fi
+ − 15114 fi
+ − 15115
+ − 15116 if test -z "$ld_dynamic_link_flags"; then
+ − 15117 case "$xehost_os" in
460
+ − 15118 aix[3-9]*)
388
+ − 15119 ld_dynamic_link_flags=
+ − 15120 ;;
+ − 15121
+ − 15122 freebsd2.2*)
+ − 15123 ld_dynamic_link_flags=
+ − 15124 ;;
+ − 15125
+ − 15126 freebsd2*)
+ − 15127 ld_dynamic_link_flags=
+ − 15128 ;;
+ − 15129
+ − 15130 freebsd3*)
+ − 15131 ld_dynamic_link_flags=
+ − 15132 ;;
+ − 15133
+ − 15134 hpux*)
+ − 15135 ld_dynamic_link_flags="${wl}-E"
+ − 15136 ;;
+ − 15137
460
+ − 15138 irix[5-9]*)
388
+ − 15139 ld_dynamic_link_flags=
+ − 15140 ;;
+ − 15141
+ − 15142 netbsd*)
+ − 15143 ld_dynamic_link_flags=
+ − 15144 ;;
+ − 15145
+ − 15146 openbsd*)
+ − 15147 ld_dynamic_link_flags=
+ − 15148 ;;
+ − 15149
+ − 15150 osf3* | osf4*)
+ − 15151 ld_dynamic_link_flags=
+ − 15152 ;;
+ − 15153
398
+ − 15154 solaris2* | solaris7*)
426
+ − 15155 ld_dynamic_link_flags=
398
+ − 15156 ;;
+ − 15157
+ − 15158 sco3.2v5* | unixware* | sysv5* | sysv4*)
388
+ − 15159 ld_dynamic_link_flags="${wl}-Bexport"
+ − 15160 ;;
+ − 15161
+ − 15162 sunos4*)
+ − 15163 ld_dynamic_link_flags=
+ − 15164 ;;
+ − 15165
+ − 15166 uts4*)
+ − 15167 ld_dynamic_link_flags=
+ − 15168 ;;
+ − 15169
+ − 15170 bsdi*)
+ − 15171 ld_dynamic_link_flags=
+ − 15172 ;;
+ − 15173
+ − 15174 esac
+ − 15175 fi # End of if -z ld_dynamic_link_flags
+ − 15176 fi # End of if test "$can_build_shared" = "yes"
+ − 15177
+ − 15178
+ − 15179
+ − 15180
+ − 15181
+ − 15182
+ − 15183
+ − 15184
430
+ − 15185 fi
+ − 15186
388
+ − 15187 if test "$can_build_shared" = "yes"; then
+ − 15188 { test "$extra_verbose" = "yes" && cat << \EOF
261
+ − 15189 Defining HAVE_SHLIB
+ − 15190 EOF
+ − 15191 cat >> confdefs.h <<\EOF
+ − 15192 #define HAVE_SHLIB 1
+ − 15193 EOF
+ − 15194 }
+ − 15195
430
+ − 15196 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
+ − 15197 echo " xemacs will be linked with \"sysdll.o emodules.o\""
261
+ − 15198 fi
388
+ − 15199 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
430
+ − 15200 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
388
+ − 15201 for ac_func in dlerror _dlerror
276
+ − 15202 do
+ − 15203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
726
+ − 15204 echo "configure:15205: checking for $ac_func" >&5
+ − 15205
+ − 15206 cat > conftest.$ac_ext <<EOF
+ − 15207 #line 15208 "configure"
276
+ − 15208 #include "confdefs.h"
+ − 15209 /* System header to define __stub macros and hopefully few prototypes,
+ − 15210 which can conflict with char $ac_func(); below. */
+ − 15211 #include <assert.h>
+ − 15212 /* Override any gcc2 internal prototype to avoid an error. */
+ − 15213 /* We use char because int might match the return type of a gcc2
+ − 15214 builtin and then its argument prototype would still apply. */
+ − 15215 char $ac_func();
+ − 15216
+ − 15217 int main() {
+ − 15218
+ − 15219 /* The GNU C library defines this for functions which it implements
+ − 15220 to always fail with ENOSYS. Some functions are actually named
+ − 15221 something starting with __ and the normal name is an alias. */
+ − 15222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 15223 choke me
+ − 15224 #else
+ − 15225 $ac_func();
+ − 15226 #endif
+ − 15227
+ − 15228 ; return 0; }
+ − 15229 EOF
726
+ − 15230 if { (eval echo configure:15231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
276
+ − 15231 rm -rf conftest*
+ − 15232 eval "ac_cv_func_$ac_func=yes"
+ − 15233 else
+ − 15234 echo "configure: failed program was:" >&5
+ − 15235 cat conftest.$ac_ext >&5
+ − 15236 rm -rf conftest*
+ − 15237 eval "ac_cv_func_$ac_func=no"
+ − 15238 fi
+ − 15239 rm -f conftest*
+ − 15240
+ − 15241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 15242 echo "$ac_t""yes" 1>&6
+ − 15243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 15244 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15245 Defining $ac_tr_func
+ − 15246 EOF
+ − 15247 cat >> confdefs.h <<EOF
+ − 15248 #define $ac_tr_func 1
+ − 15249 EOF
+ − 15250 }
+ − 15251
+ − 15252 else
+ − 15253 echo "$ac_t""no" 1>&6
+ − 15254 fi
+ − 15255 done
+ − 15256
430
+ − 15257 with_modules=yes
388
+ − 15258 else
430
+ − 15259 if test "$with_modules" = "yes"; then
+ − 15260 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
+ − 15261 else
582
+ − 15262 echo " No module support."
430
+ − 15263 fi
422
+ − 15264 with_modules=no
+ − 15265 fi
+ − 15266 fi
+ − 15267
+ − 15268 cat > conftest.$ac_ext <<EOF
726
+ − 15269 #line 15270 "configure"
272
+ − 15270 #include "confdefs.h"
+ − 15271 int main(int c,char *v[]){return 0;}
+ − 15272 EOF
726
+ − 15273 if { (eval echo configure:15274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
272
+ − 15274 then
+ − 15275 :
+ − 15276 else
373
+ − 15277 conftest_rc="$?"
272
+ − 15278 echo "configure: failed program was:" >&5
+ − 15279 cat conftest.$ac_ext >&5
+ − 15280 rm -fr conftest*
+ − 15281
+ − 15282 echo ""
+ − 15283 echo "*** PANIC *** The C compiler can no longer build working executables."
+ − 15284 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
+ − 15285 echo "*** PANIC *** The most likely reason for this problem is that configure"
+ − 15286 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
+ − 15287 echo "*** PANIC *** found at run time."
+ − 15288 echo "*** PANIC ***"
+ − 15289 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
+ − 15290 echo "*** PANIC *** On other systems, try telling configure where to find the"
+ − 15291 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
+ − 15292 echo "*** PANIC ***"
+ − 15293 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
+ − 15294 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
+ − 15295 echo "*** PANIC *** on your system. Don't do that."
+ − 15296 exit 1
+ − 15297 fi
+ − 15298 rm -fr conftest*
+ − 15299
398
+ − 15300 if test "$win32_processes" = "yes"; then
+ − 15301 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
+ − 15302 echo " xemacs will be linked with \"process-nt.o\""
+ − 15303 fi
+ − 15304 else
+ − 15305 { test "$extra_verbose" = "yes" && cat << \EOF
263
+ − 15306 Defining HAVE_UNIX_PROCESSES
+ − 15307 EOF
+ − 15308 cat >> confdefs.h <<\EOF
+ − 15309 #define HAVE_UNIX_PROCESSES 1
+ − 15310 EOF
+ − 15311 }
+ − 15312
398
+ − 15313 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
263
+ − 15314 echo " xemacs will be linked with \"process-unix.o\""
+ − 15315 fi
398
+ − 15316 fi
261
+ − 15317
155
+ − 15318
+ − 15319
+ − 15320 T=""
175
+ − 15321 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15322 CFLAGS="$T"
+ − 15323
+ − 15324
+ − 15325 T=""
155
+ − 15326 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15327 extra_objs="$T"
+ − 15328
+ − 15329
+ − 15330 T=""
+ − 15331 for W in -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15332 c_switch_general="$T"
+ − 15333
+ − 15334
+ − 15335 T=""
462
+ − 15336 for W in $c_switch_x_site $c_switch_gtk $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
155
+ − 15337 c_switch_window_system="$T"
+ − 15338
+ − 15339
+ − 15340 T=""
+ − 15341 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15342 c_switch_all="$T"
+ − 15343
+ − 15344
+ − 15345 T=""
+ − 15346 for W in $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_run; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15347 ld_switch_general="$T"
+ − 15348
+ − 15349
+ − 15350 T=""
+ − 15351 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15352 ld_switch_window_system="$T"
+ − 15353
+ − 15354
+ − 15355 T=""
+ − 15356 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15357 ld_switch_all="$T"
+ − 15358
+ − 15359
+ − 15360 T=""
+ − 15361 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15362 ld_libs_general="$T"
+ − 15363
+ − 15364
+ − 15365 T=""
462
+ − 15366 for W in $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
155
+ − 15367 ld_libs_window_system="$T"
+ − 15368
+ − 15369
+ − 15370 T=""
+ − 15371 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15372 ld_libs_all="$T"
+ − 15373
149
+ − 15374
151
+ − 15375
+ − 15376 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
380
+ − 15377 internal_makefile_list="Makefile.in"
149
+ − 15378 SUBDIR_MAKEFILES=''
151
+ − 15379 test -d lock || mkdir lock
149
+ − 15380 for dir in $MAKE_SUBDIR; do
167
+ − 15381 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
+ − 15382 test -d "$d" || mkdir "$d"; cd "$d"
+ − 15383 done ) ;;
+ − 15384 * ) test -d "$dir" || mkdir "$dir" ;;
+ − 15385 esac
155
+ − 15386
+ − 15387 T=""
384
+ − 15388 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
155
+ − 15389 SUBDIR_MAKEFILES="$T"
+ − 15390
+ − 15391
+ − 15392 T=""
+ − 15393 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15394 internal_makefile_list="$T"
+ − 15395
149
+ − 15396 done
+ − 15397
+ − 15398
+ − 15399
167
+ − 15400
157
+ − 15401 for dir in src/s src/m; do
+ − 15402 if test ! -d "$dir" ; then
+ − 15403 echo Making symbolic link to "$srcdir/$dir"
+ − 15404 ${LN_S} "$srcdir/$dir" "$dir"
+ − 15405 fi
+ − 15406 done
+ − 15407
149
+ − 15408 if test "$extra_verbose" = "yes"; then
151
+ − 15409 echo ""
163
+ − 15410 for var in extra_objs c_switch_general c_switch_window_system c_switch_all ld_switch_general ld_switch_window_system ld_switch_all ld_libs_general ld_libs_window_system ld_libs_all; do eval "echo \"$var = '\$$var'\""; done
149
+ − 15411 echo ""
+ − 15412 fi
+ − 15413
438
+ − 15414
+ − 15415 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
+ − 15416 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
+ − 15417 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
+ − 15418 fi
+ − 15419
+ − 15420 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
+ − 15421 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
+ − 15422 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
+ − 15423 fi
+ − 15424
+ − 15425 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
+ − 15426 test "$extra_verbose" = "yes" && echo "creating TAGS"
+ − 15427 echo "
+ − 15428 $srcdir/TAGS,include" > "TAGS"
151
+ − 15429 fi
+ − 15430
373
+ − 15431 if test "$__SUNPRO_C" = "yes"; then
438
+ − 15432 test "$extra_verbose" = "yes" && echo "creating .sbinit"
157
+ − 15433 ( echo "# For use with Sun WorkShop's Source browser."
+ − 15434 echo "# See sbquery(1) and sbinit(4) for more information"
+ − 15435 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
+ − 15436 ) > .sbinit
+ − 15437 fi
151
+ − 15438
+ − 15439 rm -f core
+ − 15440
149
+ − 15441
+ − 15442
+ − 15443
+ − 15444
+ − 15445
+ − 15446
+ − 15447
+ − 15448
+ − 15449
+ − 15450
+ − 15451
+ − 15452
+ − 15453
+ − 15454
280
+ − 15455
420
+ − 15456
422
+ − 15457
+ − 15458
452
+ − 15459
278
+ − 15460 PREFIX=$prefix
+ − 15461 while true; do
+ − 15462 case "$PREFIX" in
+ − 15463 *\$* ) eval "PREFIX=$PREFIX" ;;
+ − 15464 *) break ;;
+ − 15465 esac
+ − 15466 done
+ − 15467
+ − 15468
+ − 15469
420
+ − 15470
278
+ − 15471 EXEC_PREFIX=$exec_prefix
+ − 15472 while true; do
+ − 15473 case "$EXEC_PREFIX" in
+ − 15474 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
+ − 15475 *) break ;;
+ − 15476 esac
+ − 15477 done
+ − 15478
149
+ − 15479
+ − 15480
+ − 15481
274
+ − 15482 INFODIR=$infodir
+ − 15483 while true; do
+ − 15484 case "$INFODIR" in
+ − 15485 *\$* ) eval "INFODIR=$INFODIR" ;;
+ − 15486 *) break ;;
+ − 15487 esac
+ − 15488 done
+ − 15489
+ − 15490
+ − 15491
+ − 15492
+ − 15493 INFOPATH=$infopath
+ − 15494 while true; do
+ − 15495 case "$INFOPATH" in
+ − 15496 *\$* ) eval "INFOPATH=$INFOPATH" ;;
+ − 15497 *) break ;;
+ − 15498 esac
+ − 15499 done
+ − 15500
+ − 15501
+ − 15502
+ − 15503
+ − 15504 PACKAGE_PATH=$package_path
+ − 15505 while true; do
+ − 15506 case "$PACKAGE_PATH" in
+ − 15507 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
+ − 15508 *) break ;;
+ − 15509 esac
+ − 15510 done
+ − 15511
+ − 15512
+ − 15513
+ − 15514
+ − 15515 LISPDIR=$lispdir
+ − 15516 while true; do
+ − 15517 case "$LISPDIR" in
+ − 15518 *\$* ) eval "LISPDIR=$LISPDIR" ;;
+ − 15519 *) break ;;
+ − 15520 esac
+ − 15521 done
+ − 15522
+ − 15523
+ − 15524
+ − 15525
388
+ − 15526 MODULEDIR=$moduledir
+ − 15527 while true; do
+ − 15528 case "$MODULEDIR" in
+ − 15529 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
+ − 15530 *) break ;;
+ − 15531 esac
+ − 15532 done
+ − 15533
+ − 15534
+ − 15535
+ − 15536
+ − 15537 SITELISPDIR=$sitelispdir
+ − 15538 while true; do
+ − 15539 case "$SITELISPDIR" in
+ − 15540 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
+ − 15541 *) break ;;
+ − 15542 esac
+ − 15543 done
+ − 15544
+ − 15545
+ − 15546
+ − 15547
+ − 15548 SITEMODULEDIR=$sitemoduledir
+ − 15549 while true; do
+ − 15550 case "$SITEMODULEDIR" in
+ − 15551 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
+ − 15552 *) break ;;
+ − 15553 esac
+ − 15554 done
+ − 15555
+ − 15556
+ − 15557
274
+ − 15558
+ − 15559 ETCDIR=$etcdir
+ − 15560 while true; do
+ − 15561 case "$ETCDIR" in
+ − 15562 *\$* ) eval "ETCDIR=$ETCDIR" ;;
+ − 15563 *) break ;;
+ − 15564 esac
+ − 15565 done
+ − 15566
+ − 15567
+ − 15568
+ − 15569
420
+ − 15570 DOCDIR=$docdir
+ − 15571 while true; do
+ − 15572 case "$DOCDIR" in
+ − 15573 *\$* ) eval "DOCDIR=$DOCDIR" ;;
+ − 15574 *) break ;;
+ − 15575 esac
+ − 15576 done
+ − 15577
+ − 15578
+ − 15579
+ − 15580
274
+ − 15581 ARCHLIBDIR=$archlibdir
+ − 15582 while true; do
+ − 15583 case "$ARCHLIBDIR" in
+ − 15584 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
+ − 15585 *) break ;;
+ − 15586 esac
+ − 15587 done
149
+ − 15588
+ − 15589
+ − 15590
+ − 15591
+ − 15592
+ − 15593
+ − 15594
+ − 15595
+ − 15596
+ − 15597
+ − 15598
+ − 15599
+ − 15600
+ − 15601
+ − 15602
+ − 15603
203
+ − 15604
207
+ − 15605
263
+ − 15606
267
+ − 15607
173
+ − 15608 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
+ − 15609
+ − 15610
+ − 15611
+ − 15612
+ − 15613
+ − 15614
+ − 15615
594
+ − 15616
+ − 15617 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler"
+ − 15618 : ${XEMACS_CC:="$CC"}
380
+ − 15619
+ − 15620
420
+ − 15621 if test "$with_prefix" = "yes"; then
+ − 15622 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15623 Defining PREFIX_USER_DEFINED
+ − 15624 EOF
+ − 15625 cat >> confdefs.h <<\EOF
+ − 15626 #define PREFIX_USER_DEFINED 1
+ − 15627 EOF
+ − 15628 }
+ − 15629
+ − 15630 fi
380
+ − 15631
267
+ − 15632 if test "$with_site_lisp" = "no"; then
+ − 15633 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15634 Defining INHIBIT_SITE_LISP
+ − 15635 EOF
+ − 15636 cat >> confdefs.h <<\EOF
+ − 15637 #define INHIBIT_SITE_LISP 1
+ − 15638 EOF
+ − 15639 }
+ − 15640
+ − 15641 fi
388
+ − 15642 if test "$with_site_modules" = "no"; then
+ − 15643 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15644 Defining INHIBIT_SITE_MODULES
+ − 15645 EOF
+ − 15646 cat >> confdefs.h <<\EOF
+ − 15647 #define INHIBIT_SITE_MODULES 1
+ − 15648 EOF
+ − 15649 }
+ − 15650
+ − 15651 fi
155
+ − 15652
207
+ − 15653
+ − 15654 T=""
+ − 15655 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15656 ac_configure_args="$T"
+ − 15657
149
+ − 15658 { test "$extra_verbose" = "yes" && cat << EOF
424
+ − 15659 Defining EMACS_CONFIGURATION = "$configuration"
149
+ − 15660 EOF
+ − 15661 cat >> confdefs.h <<EOF
424
+ − 15662 #define EMACS_CONFIGURATION "$configuration"
149
+ − 15663 EOF
+ − 15664 }
+ − 15665
+ − 15666 { test "$extra_verbose" = "yes" && cat << EOF
207
+ − 15667 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
173
+ − 15668 EOF
+ − 15669 cat >> confdefs.h <<EOF
207
+ − 15670 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
173
+ − 15671 EOF
+ − 15672 }
+ − 15673
149
+ − 15674
+ − 15675
+ − 15676 null_string=""
+ − 15677 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15678 Defining LD_SWITCH_X_SITE = $null_string
+ − 15679 EOF
+ − 15680 cat >> confdefs.h <<EOF
+ − 15681 #define LD_SWITCH_X_SITE $null_string
+ − 15682 EOF
+ − 15683 }
+ − 15684
+ − 15685 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15686 Defining LD_SWITCH_X_SITE_AUX = $null_string
+ − 15687 EOF
+ − 15688 cat >> confdefs.h <<EOF
+ − 15689 #define LD_SWITCH_X_SITE_AUX $null_string
+ − 15690 EOF
+ − 15691 }
+ − 15692
+ − 15693 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15694 Defining C_SWITCH_X_SITE = $null_string
+ − 15695 EOF
+ − 15696 cat >> confdefs.h <<EOF
+ − 15697 #define C_SWITCH_X_SITE $null_string
+ − 15698 EOF
+ − 15699 }
+ − 15700
+ − 15701 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15702 Defining LD_SWITCH_SITE = $null_string
+ − 15703 EOF
+ − 15704 cat >> confdefs.h <<EOF
+ − 15705 #define LD_SWITCH_SITE $null_string
+ − 15706 EOF
+ − 15707 }
+ − 15708
+ − 15709 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15710 Defining C_SWITCH_SITE = $null_string
+ − 15711 EOF
+ − 15712 cat >> confdefs.h <<EOF
+ − 15713 #define C_SWITCH_SITE $null_string
+ − 15714 EOF
+ − 15715 }
+ − 15716
+ − 15717
+ − 15718
181
+ − 15719 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 15720 Defining GNU_MALLOC
+ − 15721 EOF
+ − 15722 cat >> confdefs.h <<\EOF
+ − 15723 #define GNU_MALLOC 1
+ − 15724 EOF
+ − 15725 }
+ − 15726
181
+ − 15727 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 15728 Defining USE_SYSTEM_MALLOC
+ − 15729 EOF
+ − 15730 cat >> confdefs.h <<\EOF
+ − 15731 #define USE_SYSTEM_MALLOC 1
+ − 15732 EOF
+ − 15733 }
+ − 15734
181
+ − 15735 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
177
+ − 15736 Defining USE_DEBUG_MALLOC
+ − 15737 EOF
+ − 15738 cat >> confdefs.h <<\EOF
+ − 15739 #define USE_DEBUG_MALLOC 1
+ − 15740 EOF
+ − 15741 }
+ − 15742
181
+ − 15743 { test "$extra_verbose" = "yes" && cat << \EOF
177
+ − 15744 Defining USE_SYSTEM_MALLOC
+ − 15745 EOF
+ − 15746 cat >> confdefs.h <<\EOF
+ − 15747 #define USE_SYSTEM_MALLOC 1
+ − 15748 EOF
+ − 15749 }
+ − 15750
149
+ − 15751 fi
+ − 15752 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15753 Defining I18N3
+ − 15754 EOF
+ − 15755 cat >> confdefs.h <<\EOF
+ − 15756 #define I18N3 1
+ − 15757 EOF
+ − 15758 }
+ − 15759
169
+ − 15760 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 15761 Defining USE_GCC
+ − 15762 EOF
+ − 15763 cat >> confdefs.h <<\EOF
+ − 15764 #define USE_GCC 1
+ − 15765 EOF
+ − 15766 }
+ − 15767
+ − 15768 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15769 Defining EXTERNAL_WIDGET
+ − 15770 EOF
+ − 15771 cat >> confdefs.h <<\EOF
+ − 15772 #define EXTERNAL_WIDGET 1
+ − 15773 EOF
+ − 15774 }
+ − 15775
442
+ − 15776 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15777 Defining QUICK_BUILD
+ − 15778 EOF
+ − 15779 cat >> confdefs.h <<\EOF
+ − 15780 #define QUICK_BUILD 1
149
+ − 15781 EOF
+ − 15782 }
+ − 15783
380
+ − 15784 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15785 Defining PURIFY
+ − 15786 EOF
+ − 15787 cat >> confdefs.h <<\EOF
+ − 15788 #define PURIFY 1
+ − 15789 EOF
+ − 15790 }
+ − 15791
149
+ − 15792 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15793 Defining QUANTIFY
+ − 15794 EOF
+ − 15795 cat >> confdefs.h <<\EOF
+ − 15796 #define QUANTIFY 1
+ − 15797 EOF
+ − 15798 }
+ − 15799
+ − 15800 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15801 Defining MAIL_USE_POP
+ − 15802 EOF
+ − 15803 cat >> confdefs.h <<\EOF
+ − 15804 #define MAIL_USE_POP 1
+ − 15805 EOF
+ − 15806 }
+ − 15807
+ − 15808 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15809 Defining KERBEROS
+ − 15810 EOF
+ − 15811 cat >> confdefs.h <<\EOF
+ − 15812 #define KERBEROS 1
+ − 15813 EOF
+ − 15814 }
+ − 15815
+ − 15816 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15817 Defining HESIOD
+ − 15818 EOF
+ − 15819 cat >> confdefs.h <<\EOF
+ − 15820 #define HESIOD 1
+ − 15821 EOF
+ − 15822 }
+ − 15823
272
+ − 15824 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15825 Defining USE_UNION_TYPE
+ − 15826 EOF
+ − 15827 cat >> confdefs.h <<\EOF
+ − 15828 #define USE_UNION_TYPE 1
149
+ − 15829 EOF
0
+ − 15830 }
70
+ − 15831
424
+ − 15832 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15833 Defining PDUMP
+ − 15834 EOF
+ − 15835 cat >> confdefs.h <<\EOF
+ − 15836 #define PDUMP 1
+ − 15837 EOF
+ − 15838 }
+ − 15839
724
+ − 15840 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15841 Defining IPV6_CANONICALIZE
+ − 15842 EOF
+ − 15843 cat >> confdefs.h <<\EOF
+ − 15844 #define IPV6_CANONICALIZE 1
+ − 15845 EOF
+ − 15846 }
+ − 15847
70
+ − 15848
0
+ − 15849
118
+ − 15850 (
149
+ − 15851 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
+ − 15852 else
+ − 15853 echo "uname -a: `uname -a`"
+ − 15854 fi
+ − 15855 echo ""
+ − 15856 echo "$0 $quoted_arguments"
261
+ − 15857 ) > Installation
+ − 15858
414
+ − 15859 if test ! -z ${emacs_beta_version} ; then
+ − 15860 if test -z "${emacs_is_beta}" ; then
+ − 15861 xemacs_betaname=".${emacs_beta_version}"
+ − 15862 else
+ − 15863 xemacs_betaname="-b${emacs_beta_version}"
+ − 15864 fi
+ − 15865 else
430
+ − 15866 xemacs_betaname=""
414
+ − 15867 fi
149
+ − 15868
116
+ − 15869 (
0
+ − 15870 echo "
+ − 15871
261
+ − 15872 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
442
+ − 15873 "
+ − 15874 echo "
+ − 15875 Compilation / Installation:"
+ − 15876 echo " Source code location: $srcdir"
+ − 15877 echo " Installation prefix: $prefix"
70
+ − 15878 if test -n "$site_includes"; then
442
+ − 15879 echo " Additional header files: $site_includes"
149
+ − 15880 fi
+ − 15881 if test -n "$site_libraries"; then
442
+ − 15882 echo " Additional libraries: $site_libraries"
149
+ − 15883 fi
209
+ − 15884 if test -n "$site_prefixes"; then
442
+ − 15885 echo " Additional prefixes: $site_prefixes"
209
+ − 15886 fi
149
+ − 15887 if test -n "$runpath"; then
442
+ − 15888 echo " Runtime library search path: $runpath"
+ − 15889 fi
+ − 15890
+ − 15891 if test -n "$opsysfile"
+ − 15892 then echo " Operating system description file: \`$opsysfile'"
+ − 15893 else echo " Not using any operating system description file"
+ − 15894 fi
+ − 15895 if test -n "$machfile"
+ − 15896 then echo " Machine description file: \`$machfile'"
+ − 15897 else echo " Not using any machine description file"
+ − 15898 fi
+ − 15899
+ − 15900 echo " Compiler: $CC $CFLAGS"
+ − 15901 echo " Relocating allocator for buffers: $rel_alloc"
+ − 15902 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
708
+ − 15903 case "$ld_switch_site" in
+ − 15904 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
+ − 15905 - Consider configuring with --pdump." ;;
+ − 15906 esac
442
+ − 15907
+ − 15908 echo "
+ − 15909 Window System:"
+ − 15910 if test "$with_msw" = "yes"; then
+ − 15911 echo " Compiling in support for the Microsoft window system."
+ − 15912 fi
+ − 15913 if test "$with_x11" = "yes"; then
+ − 15914 echo " Compiling in support for the X window system:"
+ − 15915 echo " - X Windows headers location: $x_includes"
+ − 15916 echo " - X Windows libraries location: $x_libraries"
+ − 15917 if test "$with_xauth" != yes; then
+ − 15918 echo " - Xau (X authority) not available."
+ − 15919 fi
+ − 15920 if test "$with_xmu" != yes; then
+ − 15921 echo " - Xmu library not available; substituting equivalent routines."
+ − 15922 fi
+ − 15923 if test "$with_wmcommand" != no; then
+ − 15924 echo " - Handling WM_COMMAND properly."
+ − 15925 fi
+ − 15926 fi
+ − 15927 if test "$need_athena" = "yes"; then
+ − 15928 echo " Compiling in support for the Athena widget set:"
+ − 15929 echo " - Athena headers location: $athena_h_path"
+ − 15930 echo " - Athena library to link: $athena_lib"
+ − 15931 fi
+ − 15932 case "$with_menubars" in
462
+ − 15933 gtk ) echo " Using GTK menubars." ;;
442
+ − 15934 lucid ) echo " Using Lucid menubars." ;;
+ − 15935 motif ) echo " Using Motif menubars."
+ − 15936 echo " *WARNING* The Motif menubar implementation is currently buggy."
+ − 15937 echo " We recommend using the Lucid menubar instead."
+ − 15938 echo " Re-run configure with --with-menubars='lucid'." ;;
+ − 15939 msw ) echo " Using MS-Windows menubars." ;;
+ − 15940 esac
+ − 15941 case "$with_scrollbars" in
462
+ − 15942 gtk ) echo " Using GTK scrollbars." ;;
442
+ − 15943 lucid ) echo " Using Lucid scrollbars." ;;
+ − 15944 motif ) echo " Using Motif scrollbars." ;;
+ − 15945 athena ) echo " Using Athena scrollbars." ;;
+ − 15946 msw ) echo " Using MS-Windows scrollbars." ;;
+ − 15947 esac
+ − 15948 case "$with_dialogs" in
462
+ − 15949 gtk ) echo " Using GTK dialog boxes." ;;
442
+ − 15950 motif ) echo " Using Motif dialog boxes."
+ − 15951 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
+ − 15952 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
+ − 15953 echo " We recommend using the Athena dialog boxes instead."
+ − 15954 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
+ − 15955 echo " Read the PROBLEMS file for more information."
+ − 15956 fi; fi ;;
+ − 15957 athena ) echo " Using Athena dialog boxes." ;;
+ − 15958 msw ) echo " Using MS-Windows dialog boxes." ;;
+ − 15959 esac
+ − 15960 case "$with_widgets" in
462
+ − 15961 gtk ) echo " Using GTK native widgets." ;;
442
+ − 15962 motif ) echo " Using Motif native widgets." ;;
+ − 15963 athena ) echo " Using Athena native widgets." ;;
+ − 15964 msw ) echo " Using MS-Windows native widgets." ;;
+ − 15965 esac
+ − 15966 if test "$with_dragndrop" = yes; then
+ − 15967 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
+ − 15968 echo " - Drag'n'Drop prototype: $dragndrop_proto."
+ − 15969 fi
+ − 15970
+ − 15971 echo "
+ − 15972 TTY:"
+ − 15973 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
+ − 15974 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
+ − 15975
+ − 15976 echo "
+ − 15977 Images:"
+ − 15978 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
153
+ − 15979 if test "$with_xpm" = yes; then
442
+ − 15980 echo " Compiling in support for XPM images."
175
+ − 15981 elif test "$with_x11" = yes; then
442
+ − 15982 echo " WARNING: -----------------------------------------------------------"
+ − 15983 echo " WARNING: Compiling without XPM image support."
373
+ − 15984 if test "$xpm_problem" != ""; then
+ − 15985 echo " Reason: $xpm_problem"
+ − 15986 fi
+ − 15987 echo " WARNING: You should strongly consider installing XPM."
151
+ − 15988 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
373
+ − 15989 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
442
+ − 15990 echo " WARNING: -----------------------------------------------------------"
371
+ − 15991 fi
373
+ − 15992 if test "$with_png" = yes; then
442
+ − 15993 echo " Compiling in support for PNG images."
373
+ − 15994 elif test "$window_system" != "none"; then
442
+ − 15995 echo " WARNING: -----------------------------------------------------------"
373
+ − 15996 echo " WARNING: Compiling without PNG image support."
+ − 15997 if test "$png_problem" != ""; then
+ − 15998 echo " Reason: $png_problem"
+ − 15999 fi
+ − 16000 echo " WARNING: You should strongly consider installing the PNG libraries."
+ − 16001 echo " WARNING: Otherwise certain images and glyphs may not display."
+ − 16002 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
442
+ − 16003 echo " WARNING: -----------------------------------------------------------"
+ − 16004 fi
+ − 16005 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
+ − 16006 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
310
+ − 16007 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
432
+ − 16008
442
+ − 16009 echo "
+ − 16010 Sound:"
+ − 16011 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
+ − 16012 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
+ − 16013 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
+ − 16014 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
+ − 16015
+ − 16016 echo "
+ − 16017 Databases:"
+ − 16018 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
116
+ − 16019 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
426
+ − 16020 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
442
+ − 16021 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
+ − 16022 if test "$with_postgresql" = yes; then
+ − 16023 echo " Compiling in support for PostgreSQL."
+ − 16024 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
+ − 16025 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
+ − 16026 fi
+ − 16027
+ − 16028 echo "
+ − 16029 Internationalization:"
+ − 16030 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
+ − 16031 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
+ − 16032 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
+ − 16033 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
+ − 16034 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
+ − 16035 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
+ − 16036 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
120
+ − 16037 if test "$with_wnn" = yes; then
+ − 16038 echo " Compiling in support for the WNN input method on Mule."
442
+ − 16039 test "$with_wnn6" = yes && echo " - Using WNN version 6."
+ − 16040 fi
+ − 16041 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
+ − 16042
+ − 16043 echo "
+ − 16044 Mail:"
+ − 16045 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
+ − 16046 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
+ − 16047 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
+ − 16048 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
+ − 16049
+ − 16050 echo "
+ − 16051 Other Features:"
708
+ − 16052 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
116
+ − 16053 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
149
+ − 16054 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
442
+ − 16055 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
+ − 16056 test "$with_dnet" = yes && echo " Compiling in support for DNET."
+ − 16057 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
+ − 16058 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
+ − 16059 test "$pdump" = yes && echo " Using the new portable dumper."
+ − 16060 test "$debug" = yes && echo " Compiling in support for extra debugging code."
+ − 16061 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
665
+ − 16062 if test "$error_check_extents $error_check_typecheck $error_check_charbpos $error_check_gc $error_check_malloc $error_check_glyphs" \
442
+ − 16063 != "no no no no no no"; then
151
+ − 16064 echo " WARNING: ---------------------------------------------------------"
+ − 16065 echo " WARNING: Compiling in support for runtime error checking."
+ − 16066 echo " WARNING: XEmacs will run noticeably more slowly as a result."
+ − 16067 echo " WARNING: Error checking is on by default for XEmacs beta releases."
+ − 16068 echo " WARNING: ---------------------------------------------------------"
+ − 16069 fi
118
+ − 16070 echo ""
116
+ − 16071 ) | tee -a Installation
118
+ − 16072 echo ""
+ − 16073
70
+ − 16074
0
+ − 16075 # Remove any trailing slashes in these variables.
149
+ − 16076 test -n "$prefix" &&
159
+ − 16077 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
+ − 16078 test -n "$exec_prefix" &&
159
+ − 16079 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
+ − 16080
+ − 16081
272
+ − 16082 for file in $internal_makefile_list; do
+ − 16083 test "$file" = src/Makefile.in && \
+ − 16084 file="src/Makefile.in:src/Makefile.in.in:src/depend"
430
+ − 16085 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
272
+ − 16086 done
276
+ − 16087 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
430
+ − 16088 test "$with_modules" = "yes" && ac_output_files="$ac_output_files lib-src/ellcc.h" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src/ellcc.h\" to \$ac_output_files"; fi
272
+ − 16089
149
+ − 16090 trap '' 1 2 15
+ − 16091
+ − 16092 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
+ − 16093
+ − 16094 test "x$prefix" = xNONE && prefix=$ac_default_prefix
+ − 16095 # Let make expand exec_prefix.
+ − 16096 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
0
+ − 16097
+ − 16098 # Any assignment to VPATH causes Sun make to only execute
+ − 16099 # the first set of double-colon rules, so remove it if not needed.
+ − 16100 # If there is a colon in the path, we need to keep it.
+ − 16101 if test "x$srcdir" = x.; then
+ − 16102 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
+ − 16103 fi
+ − 16104
149
+ − 16105 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
+ − 16106
+ − 16107 DEFS=-DHAVE_CONFIG_H
+ − 16108
+ − 16109 # Without the "./", some shells look in PATH for config.status.
+ − 16110 : ${CONFIG_STATUS=./config.status}
+ − 16111
+ − 16112 echo creating $CONFIG_STATUS
+ − 16113 rm -f $CONFIG_STATUS
+ − 16114 cat > $CONFIG_STATUS <<EOF
+ − 16115 #! /bin/sh
0
+ − 16116 # Generated automatically by configure.
+ − 16117 # Run this file to recreate the current configuration.
+ − 16118 # This directory was configured as follows,
+ − 16119 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+ − 16120 #
149
+ − 16121 # $0 $ac_configure_args
+ − 16122 #
+ − 16123 # Compiler output produced by configure, useful for debugging
+ − 16124 # configure, is in ./config.log if it exists.
+ − 16125
+ − 16126 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
0
+ − 16127 for ac_option
+ − 16128 do
+ − 16129 case "\$ac_option" in
+ − 16130 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
149
+ − 16131 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
+ − 16132 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
0
+ − 16133 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
420
+ − 16134 echo "$CONFIG_STATUS generated by autoconf version 2.13"
0
+ − 16135 exit 0 ;;
+ − 16136 -help | --help | --hel | --he | --h)
+ − 16137 echo "\$ac_cs_usage"; exit 0 ;;
+ − 16138 *) echo "\$ac_cs_usage"; exit 1 ;;
+ − 16139 esac
+ − 16140 done
+ − 16141
+ − 16142 ac_given_srcdir=$srcdir
149
+ − 16143 ac_given_INSTALL="$INSTALL"
+ − 16144
276
+ − 16145 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
149
+ − 16146 EOF
+ − 16147 cat >> $CONFIG_STATUS <<EOF
+ − 16148
+ − 16149 # Protect against being on the right side of a sed subst in config.status.
+ − 16150 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
+ − 16151 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
0
+ − 16152 $ac_vpsub
+ − 16153 $extrasub
420
+ − 16154 s%@SHELL@%$SHELL%g
149
+ − 16155 s%@CFLAGS@%$CFLAGS%g
+ − 16156 s%@CPPFLAGS@%$CPPFLAGS%g
+ − 16157 s%@CXXFLAGS@%$CXXFLAGS%g
420
+ − 16158 s%@FFLAGS@%$FFLAGS%g
149
+ − 16159 s%@DEFS@%$DEFS%g
+ − 16160 s%@LDFLAGS@%$LDFLAGS%g
+ − 16161 s%@LIBS@%$LIBS%g
+ − 16162 s%@exec_prefix@%$exec_prefix%g
+ − 16163 s%@prefix@%$prefix%g
+ − 16164 s%@program_transform_name@%$program_transform_name%g
+ − 16165 s%@bindir@%$bindir%g
+ − 16166 s%@sbindir@%$sbindir%g
+ − 16167 s%@libexecdir@%$libexecdir%g
+ − 16168 s%@datadir@%$datadir%g
+ − 16169 s%@sysconfdir@%$sysconfdir%g
+ − 16170 s%@sharedstatedir@%$sharedstatedir%g
+ − 16171 s%@localstatedir@%$localstatedir%g
+ − 16172 s%@libdir@%$libdir%g
+ − 16173 s%@includedir@%$includedir%g
+ − 16174 s%@oldincludedir@%$oldincludedir%g
+ − 16175 s%@infodir@%$infodir%g
+ − 16176 s%@mandir@%$mandir%g
0
+ − 16177 s%@LN_S@%$LN_S%g
181
+ − 16178 s%@blddir@%$blddir%g
0
+ − 16179 s%@CC@%$CC%g
+ − 16180 s%@CPP@%$CPP%g
207
+ − 16181 s%@start_flags@%$start_flags%g
163
+ − 16182 s%@ld_switch_shared@%$ld_switch_shared%g
+ − 16183 s%@start_files@%$start_files%g
+ − 16184 s%@ld@%$ld%g
+ − 16185 s%@lib_gcc@%$lib_gcc%g
0
+ − 16186 s%@RANLIB@%$RANLIB%g
+ − 16187 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
420
+ − 16188 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
0
+ − 16189 s%@INSTALL_DATA@%$INSTALL_DATA%g
+ − 16190 s%@YACC@%$YACC%g
+ − 16191 s%@SET_MAKE@%$SET_MAKE%g
462
+ − 16192 s%@GTK_CONFIG@%$GTK_CONFIG%g
149
+ − 16193 s%@X_CFLAGS@%$X_CFLAGS%g
+ − 16194 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
+ − 16195 s%@X_LIBS@%$X_LIBS%g
+ − 16196 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
276
+ − 16197 s%@install_pp@%$install_pp%g
159
+ − 16198 s%@libs_xauth@%$libs_xauth%g
274
+ − 16199 s%@dnd_objs@%$dnd_objs%g
157
+ − 16200 s%@lwlib_objs@%$lwlib_objs%g
0
+ − 16201 s%@ALLOCA@%$ALLOCA%g
426
+ − 16202 s%@have_esd_config@%$have_esd_config%g
265
+ − 16203 s%@dll_ld@%$dll_ld%g
+ − 16204 s%@dll_cflags@%$dll_cflags%g
388
+ − 16205 s%@dll_ldflags@%$dll_ldflags%g
+ − 16206 s%@dll_post@%$dll_post%g
+ − 16207 s%@dll_ldo@%$dll_ldo%g
+ − 16208 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
151
+ − 16209 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
167
+ − 16210 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
149
+ − 16211 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
+ − 16212 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
280
+ − 16213 s%@PROGNAME@%$PROGNAME%g
0
+ − 16214 s%@version@%$version%g
+ − 16215 s%@configuration@%$configuration%g
+ − 16216 s%@canonical@%$canonical%g
422
+ − 16217 s%@inststaticdir@%$inststaticdir%g
+ − 16218 s%@instvardir@%$instvardir%g
0
+ − 16219 s%@srcdir@%$srcdir%g
155
+ − 16220 s%@pkgdir@%$pkgdir%g
0
+ − 16221 s%@statedir@%$statedir%g
452
+ − 16222 s%@extra_includes@%$extra_includes%g
420
+ − 16223 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
278
+ − 16224 s%@PREFIX@%$PREFIX%g
420
+ − 16225 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
278
+ − 16226 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
274
+ − 16227 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
+ − 16228 s%@INFODIR@%$INFODIR%g
203
+ − 16229 s%@infopath@%$infopath%g
274
+ − 16230 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
+ − 16231 s%@INFOPATH@%$INFOPATH%g
269
+ − 16232 s%@package_path@%$package_path%g
274
+ − 16233 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
+ − 16234 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
0
+ − 16235 s%@lispdir@%$lispdir%g
274
+ − 16236 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
+ − 16237 s%@LISPDIR@%$LISPDIR%g
388
+ − 16238 s%@moduledir@%$moduledir%g
+ − 16239 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
+ − 16240 s%@MODULEDIR@%$MODULEDIR%g
+ − 16241 s%@sitelispdir@%$sitelispdir%g
+ − 16242 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
+ − 16243 s%@SITELISPDIR@%$SITELISPDIR%g
+ − 16244 s%@sitemoduledir@%$sitemoduledir%g
+ − 16245 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
+ − 16246 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
0
+ − 16247 s%@etcdir@%$etcdir%g
274
+ − 16248 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
+ − 16249 s%@ETCDIR@%$ETCDIR%g
420
+ − 16250 s%@docdir@%$docdir%g
+ − 16251 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
+ − 16252 s%@DOCDIR@%$DOCDIR%g
0
+ − 16253 s%@archlibdir@%$archlibdir%g
274
+ − 16254 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
+ − 16255 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
0
+ − 16256 s%@bitmapdir@%$bitmapdir%g
149
+ − 16257 s%@extra_objs@%$extra_objs%g
0
+ − 16258 s%@machfile@%$machfile%g
+ − 16259 s%@opsysfile@%$opsysfile%g
149
+ − 16260 s%@c_switch_general@%$c_switch_general%g
+ − 16261 s%@c_switch_window_system@%$c_switch_window_system%g
+ − 16262 s%@c_switch_all@%$c_switch_all%g
+ − 16263 s%@ld_switch_general@%$ld_switch_general%g
+ − 16264 s%@ld_switch_window_system@%$ld_switch_window_system%g
+ − 16265 s%@ld_switch_all@%$ld_switch_all%g
+ − 16266 s%@ld_libs_general@%$ld_libs_general%g
+ − 16267 s%@ld_libs_window_system@%$ld_libs_window_system%g
+ − 16268 s%@ld_libs_all@%$ld_libs_all%g
173
+ − 16269 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
149
+ − 16270 s%@native_sound_lib@%$native_sound_lib%g
+ − 16271 s%@sound_cflags@%$sound_cflags%g
0
+ − 16272 s%@dynodump_arch@%$dynodump_arch%g
380
+ − 16273 s%@XEMACS_CC@%$XEMACS_CC%g
0
+ − 16274 s%@internal_makefile_list@%$internal_makefile_list%g
149
+ − 16275
+ − 16276 CEOF
+ − 16277 EOF
+ − 16278
+ − 16279 cat >> $CONFIG_STATUS <<\EOF
+ − 16280
+ − 16281 # Split the substitutions into bite-sized pieces for seds with
+ − 16282 # small command number limits, like on Digital OSF/1 and HP-UX.
+ − 16283 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
+ − 16284 ac_file=1 # Number of current file.
+ − 16285 ac_beg=1 # First line for current file.
+ − 16286 ac_end=$ac_max_sed_cmds # Line after last line for current file.
+ − 16287 ac_more_lines=:
+ − 16288 ac_sed_cmds=""
+ − 16289 while $ac_more_lines; do
+ − 16290 if test $ac_beg -gt 1; then
+ − 16291 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
+ − 16292 else
+ − 16293 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
+ − 16294 fi
+ − 16295 if test ! -s conftest.s$ac_file; then
+ − 16296 ac_more_lines=false
+ − 16297 rm -f conftest.s$ac_file
+ − 16298 else
+ − 16299 if test -z "$ac_sed_cmds"; then
+ − 16300 ac_sed_cmds="sed -f conftest.s$ac_file"
+ − 16301 else
+ − 16302 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
+ − 16303 fi
+ − 16304 ac_file=`expr $ac_file + 1`
+ − 16305 ac_beg=$ac_end
+ − 16306 ac_end=`expr $ac_end + $ac_max_sed_cmds`
+ − 16307 fi
+ − 16308 done
+ − 16309 if test -z "$ac_sed_cmds"; then
+ − 16310 ac_sed_cmds=cat
+ − 16311 fi
+ − 16312 EOF
+ − 16313
+ − 16314 cat >> $CONFIG_STATUS <<EOF
+ − 16315
272
+ − 16316 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
149
+ − 16317 EOF
+ − 16318 cat >> $CONFIG_STATUS <<\EOF
+ − 16319 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
+ − 16320 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+ − 16321 case "$ac_file" in
+ − 16322 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
+ − 16323 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
+ − 16324 *) ac_file_in="${ac_file}.in" ;;
+ − 16325 esac
+ − 16326
+ − 16327 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
+ − 16328
+ − 16329 # Remove last slash and all that follows it. Not all systems have dirname.
+ − 16330 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
+ − 16331 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
+ − 16332 # The file is in a subdirectory.
+ − 16333 test ! -d "$ac_dir" && mkdir "$ac_dir"
+ − 16334 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
+ − 16335 # A "../" for each directory in $ac_dir_suffix.
+ − 16336 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
+ − 16337 else
+ − 16338 ac_dir_suffix= ac_dots=
+ − 16339 fi
+ − 16340
+ − 16341 case "$ac_given_srcdir" in
+ − 16342 .) srcdir=.
+ − 16343 if test -z "$ac_dots"; then top_srcdir=.
+ − 16344 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
+ − 16345 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
+ − 16346 *) # Relative path.
+ − 16347 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
+ − 16348 top_srcdir="$ac_dots$ac_given_srcdir" ;;
+ − 16349 esac
+ − 16350
+ − 16351 case "$ac_given_INSTALL" in
+ − 16352 [/$]*) INSTALL="$ac_given_INSTALL" ;;
+ − 16353 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
+ − 16354 esac
+ − 16355
+ − 16356 echo creating "$ac_file"
+ − 16357 rm -f "$ac_file"
+ − 16358 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
+ − 16359 case "$ac_file" in
+ − 16360 *Makefile*) ac_comsub="1i\\
+ − 16361 # $configure_input" ;;
+ − 16362 *) ac_comsub= ;;
+ − 16363 esac
+ − 16364
+ − 16365 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
+ − 16366 sed -e "$ac_comsub
+ − 16367 s%@configure_input@%$configure_input%g
+ − 16368 s%@srcdir@%$srcdir%g
0
+ − 16369 s%@top_srcdir@%$top_srcdir%g
149
+ − 16370 s%@INSTALL@%$INSTALL%g
+ − 16371 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
0
+ − 16372 fi; done
149
+ − 16373 rm -f conftest.s*
+ − 16374
+ − 16375 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
+ − 16376 # NAME is the cpp macro being defined and VALUE is the value it is being given.
0
+ − 16377 #
+ − 16378 # ac_d sets the value in "#define NAME VALUE" lines.
149
+ − 16379 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
+ − 16380 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
0
+ − 16381 ac_dC='\3'
149
+ − 16382 ac_dD='%g'
0
+ − 16383 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
149
+ − 16384 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
+ − 16385 ac_uB='\([ ]\)%\1#\2define\3'
0
+ − 16386 ac_uC=' '
149
+ − 16387 ac_uD='\4%g'
0
+ − 16388 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
149
+ − 16389 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
+ − 16390 ac_eB='$%\1#\2define\3'
0
+ − 16391 ac_eC=' '
149
+ − 16392 ac_eD='%g'
+ − 16393
+ − 16394 if test "${CONFIG_HEADERS+set}" != set; then
+ − 16395 EOF
+ − 16396 cat >> $CONFIG_STATUS <<EOF
276
+ − 16397 CONFIG_HEADERS="src/config.h lwlib/config.h"
149
+ − 16398 EOF
+ − 16399 cat >> $CONFIG_STATUS <<\EOF
+ − 16400 fi
+ − 16401 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
+ − 16402 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+ − 16403 case "$ac_file" in
+ − 16404 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
+ − 16405 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
+ − 16406 *) ac_file_in="${ac_file}.in" ;;
+ − 16407 esac
+ − 16408
+ − 16409 echo creating $ac_file
+ − 16410
+ − 16411 rm -f conftest.frag conftest.in conftest.out
+ − 16412 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
+ − 16413 cat $ac_file_inputs > conftest.in
+ − 16414
+ − 16415 EOF
+ − 16416
+ − 16417 # Transform confdefs.h into a sed script conftest.vals that substitutes
+ − 16418 # the proper values into config.h.in to produce config.h. And first:
+ − 16419 # Protect against being on the right side of a sed subst in config.status.
+ − 16420 # Protect against being in an unquoted here document in config.status.
+ − 16421 rm -f conftest.vals
+ − 16422 cat > conftest.hdr <<\EOF
+ − 16423 s/[\\&%]/\\&/g
+ − 16424 s%[\\$`]%\\&%g
+ − 16425 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
+ − 16426 s%ac_d%ac_u%gp
+ − 16427 s%ac_u%ac_e%gp
+ − 16428 EOF
+ − 16429 sed -n -f conftest.hdr confdefs.h > conftest.vals
+ − 16430 rm -f conftest.hdr
+ − 16431
+ − 16432 # This sed command replaces #undef with comments. This is necessary, for
+ − 16433 # example, in the case of _POSIX_SOURCE, which is predefined and required
+ − 16434 # on some systems where configure will not decide to define it.
+ − 16435 cat >> conftest.vals <<\EOF
+ − 16436 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
+ − 16437 EOF
+ − 16438
+ − 16439 # Break up conftest.vals because some shells have a limit on
+ − 16440 # the size of here documents, and old seds have small limits too.
+ − 16441
+ − 16442 rm -f conftest.tail
0
+ − 16443 while :
+ − 16444 do
149
+ − 16445 ac_lines=`grep -c . conftest.vals`
+ − 16446 # grep -c gives empty output for an empty file on some AIX systems.
0
+ − 16447 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
149
+ − 16448 # Write a limited-size here document to conftest.frag.
+ − 16449 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
+ − 16450 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
+ − 16451 echo 'CEOF
+ − 16452 sed -f conftest.frag conftest.in > conftest.out
+ − 16453 rm -f conftest.in
+ − 16454 mv conftest.out conftest.in
+ − 16455 ' >> $CONFIG_STATUS
+ − 16456 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
+ − 16457 rm -f conftest.vals
+ − 16458 mv conftest.tail conftest.vals
0
+ − 16459 done
149
+ − 16460 rm -f conftest.vals
+ − 16461
+ − 16462 cat >> $CONFIG_STATUS <<\EOF
+ − 16463 rm -f conftest.frag conftest.h
0
+ − 16464 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
149
+ − 16465 cat conftest.in >> conftest.h
+ − 16466 rm -f conftest.in
0
+ − 16467 if cmp -s $ac_file conftest.h 2>/dev/null; then
+ − 16468 echo "$ac_file is unchanged"
+ − 16469 rm -f conftest.h
+ − 16470 else
149
+ − 16471 # Remove last slash and all that follows it. Not all systems have dirname.
+ − 16472 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
+ − 16473 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
+ − 16474 # The file is in a subdirectory.
+ − 16475 test ! -d "$ac_dir" && mkdir "$ac_dir"
+ − 16476 fi
0
+ − 16477 rm -f $ac_file
+ − 16478 mv conftest.h $ac_file
+ − 16479 fi
+ − 16480 fi; done
149
+ − 16481
+ − 16482 EOF
+ − 16483 cat >> $CONFIG_STATUS <<EOF
+ − 16484 CPP="$CPP"
+ − 16485 top_srcdir="$srcdir"
+ − 16486 MAKE_SUBDIR="$MAKE_SUBDIR"
+ − 16487
+ − 16488 EOF
+ − 16489 cat >> $CONFIG_STATUS <<\EOF
380
+ − 16490 for dir in . $MAKE_SUBDIR; do
151
+ − 16491 (
149
+ − 16492 cd $dir
+ − 16493 rm -f junk.c
163
+ − 16494 < Makefile.in \
165
+ − 16495 sed -e '/^# Generated/d' \
163
+ − 16496 -e 's%/\*\*/#.*%%' \
165
+ − 16497 -e 's/^ *# */#/' \
163
+ − 16498 -e '/^##/d' \
+ − 16499 -e '/^#/ {
+ − 16500 p
+ − 16501 d
380
+ − 16502 }' \
+ − 16503 -e '/./ {
163
+ − 16504 s/\([\"]\)/\\\1/g
+ − 16505 s/^/"/
+ − 16506 s/$/"/
+ − 16507 }' > junk.c;
380
+ − 16508
+ − 16509
+ − 16510
+ − 16511 echo creating $dir/Makefile
+ − 16512 $CPP -I. -I${top_srcdir}/src junk.c \
+ − 16513 | sed -e 's/^\#.*//' \
+ − 16514 -e 's/^[ ][ ]*$//'\
+ − 16515 -e 's/^ / /' \
442
+ − 16516 -e '/^[ ]*$/d' \
+ − 16517 -e '/^\"/ {
380
+ − 16518 s/\\\([\"]\)/\1/g
+ − 16519 s/^[ ]*\"//
+ − 16520 s/\"[ ]*$//
+ − 16521 }' > Makefile.new
149
+ − 16522 chmod 444 Makefile.new
+ − 16523 mv -f Makefile.new Makefile
380
+ − 16524
+ − 16525 echo creating $dir/GNUmakefile
+ − 16526 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
+ − 16527 | sed -e 's/^\#.*//' \
+ − 16528 -e 's/^[ ][ ]*$//'\
+ − 16529 -e 's/^ / /' \
442
+ − 16530 -e '/^[ ]*$/d' \
+ − 16531 -e '/^\"/ {
380
+ − 16532 s/\\\([\"]\)/\1/g
+ − 16533 s/^[ ]*\"//
+ − 16534 s/\"[ ]*$//
+ − 16535 }' > Makefile.new
+ − 16536 chmod 444 Makefile.new
+ − 16537 mv -f Makefile.new GNUmakefile
+ − 16538
+ − 16539 rm -f junk.c
+ − 16540 )
149
+ − 16541 done
0
+ − 16542
181
+ − 16543 sed < config.status >> lib-src/config.values \
+ − 16544 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
+ − 16545 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
+ − 16546 -e 's/^\([^ ]*\) $/\1 ""/' \
+ − 16547 -e 's/ 1$/ t/'
175
+ − 16548
+ − 16549
0
+ − 16550 exit 0
+ − 16551 EOF
149
+ − 16552 chmod +x $CONFIG_STATUS
+ − 16553 rm -fr confdefs* $ac_clean_files
+ − 16554 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1