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.
0
+ − 19
+ − 20 ### This file is part of XEmacs.
+ − 21
+ − 22 ### XEmacs is free software; you can redistribute it and/or modify it
+ − 23 ### under the terms of the GNU General Public License as published by
+ − 24 ### the Free Software Foundation; either version 2, or (at your
+ − 25 ### option) any later version.
+ − 26
+ − 27 ### XEmacs is distributed in the hope that it will be useful, but
+ − 28 ### WITHOUT ANY WARRANTY; without even the implied warranty of
+ − 29 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ − 30 ### General Public License for more details.
+ − 31
+ − 32 ### You should have received a copy of the GNU General Public License
+ − 33 ### along with XEmacs; see the file COPYING. If not, write to the Free
+ − 34 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ − 35 ### 02111-1307, USA.
+ − 36
149
+ − 37 ### For usage, run `./configure --help'
+ − 38 ### For more detailed information on building and installing XEmacs,
+ − 39 ### read the file `INSTALL'.
0
+ − 40 ###
+ − 41 ### If configure succeeds, it leaves its status in config.status.
149
+ − 42 ### A log of configuration tests can be found in config.log.
0
+ − 43 ### If configure fails after disturbing the status quo,
+ − 44 ### config.status is removed.
+ − 45
149
+ − 46 ac_help="$ac_help
+ − 47 --with-x use the X Window System"
+ − 48
284
+ − 49
+ − 50
+ − 51 if test -n "$ZSH_VERSION"; then
+ − 52 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
+ − 53 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
+ − 54 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
+ − 55 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
+ − 56 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
+ − 57 elif test -n "$BASH_VERSION"; then
+ − 58 set -o posix
+ − 59 unset CDPATH
+ − 60 else
+ − 61 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
+ − 62 fi
+ − 63
149
+ − 64 exec_prefix=NONE
+ − 65 host=NONE
+ − 66 no_create=
+ − 67 nonopt=NONE
+ − 68 no_recursion=
+ − 69 prefix=NONE
+ − 70 program_prefix=NONE
+ − 71 program_suffix=NONE
+ − 72 program_transform_name=s,x,x,
+ − 73 silent=
+ − 74 site=
+ − 75 srcdir=
+ − 76 target=NONE
+ − 77 verbose=
+ − 78 x_includes=NONE
+ − 79 x_libraries=NONE
153
+ − 80
149
+ − 81 subdirs=
+ − 82 MFLAGS= MAKEFLAGS=
442
+ − 83 SHELL=${CONFIG_SHELL-/bin/sh}
149
+ − 84 ac_max_here_lines=12
+ − 85
+ − 86 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
+ − 87
+ − 88 # File descriptor usage:
+ − 89 # 0 standard input
+ − 90 # 1 file creation
+ − 91 # 2 errors and warnings
+ − 92 # 3 some systems may open it to /dev/tty
+ − 93 # 4 used on the Kubota Titan
+ − 94 # 6 checking for... messages and results
+ − 95 # 5 compiler messages saved in config.log
+ − 96 if test "$silent" = yes; then
+ − 97 exec 6>/dev/null
+ − 98 else
+ − 99 exec 6>&1
+ − 100 fi
+ − 101 exec 5>./config.log
+ − 102
+ − 103 echo "\
+ − 104 This file contains any messages produced by compilers while
+ − 105 running configure, to aid debugging if configure makes a mistake.
+ − 106 " 1>&5
+ − 107
+ − 108 # Strip out --no-create and --no-recursion so they do not pile up.
+ − 109 # Also quote any args containing shell metacharacters.
+ − 110 ac_configure_args=
+ − 111 for ac_arg
+ − 112 do
+ − 113 case "$ac_arg" in
+ − 114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ − 115 | --no-cr | --no-c) ;;
+ − 116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ − 117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
+ − 118 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
+ − 119 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
+ − 120 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
+ − 121 esac
+ − 122 done
+ − 123
+ − 124 # NLS nuisances.
+ − 125 # Only set these to C if already set. These must not be set unconditionally
+ − 126 # because not all systems understand e.g. LANG=C (notably SCO).
+ − 127 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
+ − 128 # Non-C LC_CTYPE values break the ctype check.
+ − 129 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
+ − 130 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
+ − 131 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
+ − 132 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
+ − 133
+ − 134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
+ − 135 rm -rf conftest* confdefs.h
+ − 136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
+ − 137 echo > confdefs.h
+ − 138
+ − 139 # A filename unique to this package, relative to the directory that
+ − 140 # configure is in, which we can look for to find out if srcdir is correct.
+ − 141 ac_unique_file=src/lisp.h
+ − 142
+ − 143 # Find the source files, if location was not specified.
+ − 144 if test -z "$srcdir"; then
+ − 145 ac_srcdir_defaulted=yes
+ − 146 # Try the directory containing this script, then its parent.
+ − 147 ac_prog=$0
+ − 148 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
+ − 149 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
+ − 150 srcdir=$ac_confdir
+ − 151 if test ! -r $srcdir/$ac_unique_file; then
+ − 152 srcdir=..
+ − 153 fi
+ − 154 else
+ − 155 ac_srcdir_defaulted=no
+ − 156 fi
+ − 157 if test ! -r $srcdir/$ac_unique_file; then
+ − 158 if test "$ac_srcdir_defaulted" = yes; then
+ − 159 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
+ − 160 else
+ − 161 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
+ − 162 fi
+ − 163 fi
+ − 164 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
+ − 165
+ − 166 # Prefer explicitly selected file to automatically selected ones.
+ − 167 if test -z "$CONFIG_SITE"; then
+ − 168 if test "x$prefix" != xNONE; then
+ − 169 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
+ − 170 else
+ − 171 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
+ − 172 fi
+ − 173 fi
+ − 174 for ac_site_file in $CONFIG_SITE; do
+ − 175 if test -r "$ac_site_file"; then
+ − 176 echo "loading site script $ac_site_file"
+ − 177 . "$ac_site_file"
+ − 178 fi
+ − 179 done
+ − 180
+ − 181
+ − 182 ac_ext=c
151
+ − 183 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 184 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 185 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
+ − 186 ac_cpp='$CPP '"$xe_cppflags"
151
+ − 187 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 188 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
+ − 189 cross_compiling=no
+ − 190
420
+ − 191 ac_exeext=
+ − 192 ac_objext=o
149
+ − 193 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
+ − 194 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
+ − 195 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
+ − 196 ac_n= ac_c='
+ − 197 ' ac_t=' '
+ − 198 else
+ − 199 ac_n=-n ac_c= ac_t=
+ − 200 fi
+ − 201 else
+ − 202 ac_n= ac_c='\c' ac_t=
+ − 203 fi
+ − 204
+ − 205
0
+ − 206 progname="`echo $0 | sed 's:^\./\./:\./:'`"
+ − 207
149
+ − 208
151
+ − 209 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
167
+ − 210 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
+ − 211
0
+ − 212 prefix='/usr/local'
+ − 213 exec_prefix='${prefix}'
+ − 214 bindir='${exec_prefix}/bin'
+ − 215 datadir='${prefix}/lib'
+ − 216 statedir='${prefix}/lib'
+ − 217 libdir='${exec_prefix}/lib'
+ − 218 mandir='${prefix}/man/man1'
422
+ − 219 inststaticdir='${PROGNAME}'
+ − 220 instvardir='${PROGNAME}-${version}'
+ − 221 infodir='${datadir}/${instvardir}/info'
274
+ − 222 infopath=''
276
+ − 223 install_pp=''
422
+ − 224 lispdir='${datadir}/${instvardir}/lisp'
+ − 225 moduledir='${datadir}/${instvardir}/${configuration}/modules'
+ − 226 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
+ − 227 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
+ − 228 pkgdir='${datadir}/${instvardir}/lisp'
274
+ − 229 package_path=''
422
+ − 230 etcdir='${datadir}/${instvardir}/etc'
+ − 231 archlibdir='${datadir}/${instvardir}/${configuration}'
420
+ − 232 docdir='${archlibdir}'
462
+ − 233 with_netinstall="no"
420
+ − 234 with_prefix='yes'
269
+ − 235 with_site_lisp='no'
388
+ − 236 with_site_modules='yes'
0
+ − 237 with_menubars=''
+ − 238 with_scrollbars=''
420
+ − 239 with_widgets=''
0
+ − 240 with_dialogs=''
272
+ − 241 cpp='' cppflags='' libs='' ldflags=''
452
+ − 242 extra_includes=''
0
+ − 243 dynamic=''
+ − 244 with_x11=''
263
+ − 245 with_msw=''
0
+ − 246 rel_alloc='default'
181
+ − 247 with_system_malloc='default'
261
+ − 248 with_dlmalloc='default'
0
+ − 249 native_sound_lib=''
462
+ − 250 with_gtk='no'
+ − 251 with_gnome='no'
153
+ − 252 use_assertions="yes"
+ − 253 with_toolbars=""
157
+ − 254 with_tty=""
153
+ − 255 use_union_type="no"
+ − 256 with_dnet=""
424
+ − 257 pdump="no"
440
+ − 258 with_dragndrop="no"
0
+ − 259
149
+ − 260
+ − 261
+ − 262
0
+ − 263 arguments="$@"
+ − 264
120
+ − 265 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
0
+ − 266 quoted_arguments=
+ − 267 for i in "$@"; do
120
+ − 268 case "$i" in
+ − 269 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ − 270 | --no-cr | --no-c) ;;
153
+ − 271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ − 272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
120
+ − 273 *)
159
+ − 274 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
120
+ − 275 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
+ − 276 esac
0
+ − 277 done
+ − 278
70
+ − 279 while test $# != 0; do
0
+ − 280 arg="$1"; shift
149
+ − 281 case "$arg" in
157
+ − 282 --no-create|--no-recursion) ;;
149
+ − 283 -* )
+ − 284 case "$arg" in
0
+ − 285 -*=*)
149
+ − 286 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
+ − 287 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
0
+ − 288 valomitted=no
+ − 289 ;;
149
+ − 290 -*)
+ − 291 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
243
+ − 292 val="yes" valomitted=yes
0
+ − 293 ;;
+ − 294 esac
+ − 295
274
+ − 296 optname="$opt"
+ − 297 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
+ − 298
243
+ − 299 case "${valomitted}-${opt}" in yes-without_* )
+ − 300 opt=`echo $opt | sed 's/without/with/'`
+ − 301 valomitted="no" val="no" ;;
+ − 302 esac
+ − 303
149
+ − 304 case "$opt" in
+ − 305
380
+ − 306 with_site_lisp | \
420
+ − 307 with_prefix | \
+ − 308 with_site_modules | \
70
+ − 309 with_x | \
+ − 310 with_x11 | \
462
+ − 311 with_gtk | \
+ − 312 with_gnome | \
263
+ − 313 with_msw | \
70
+ − 314 with_gcc | \
+ − 315 dynamic | \
149
+ − 316 with_ncurses | \
+ − 317 with_dnet | \
+ − 318 with_socks | \
282
+ − 319 with_dragndrop | \
70
+ − 320 with_cde | \
+ − 321 with_offix | \
149
+ − 322 with_gpm | \
+ − 323 with_xpm | \
+ − 324 with_xface | \
251
+ − 325 with_gif | \
+ − 326 with_jpeg | \
+ − 327 with_png | \
+ − 328 with_tiff | \
414
+ − 329 with_wmcommand | \
70
+ − 330 with_xmu | \
380
+ − 331 with_purify | \
149
+ − 332 with_quantify | \
70
+ − 333 with_toolbars | \
+ − 334 with_tty | \
215
+ − 335 with_xfs | \
70
+ − 336 with_i18n3 | \
+ − 337 with_mule | \
380
+ − 338 with_file_coding| \
70
+ − 339 with_canna | \
+ − 340 with_wnn | \
98
+ − 341 with_wnn6 | \
149
+ − 342 with_workshop | \
70
+ − 343 with_sparcworks | \
380
+ − 344 with_tooltalk | \
259
+ − 345 with_ldap | \
442
+ − 346 with_postgresql | \
118
+ − 347 with_pop | \
+ − 348 with_kerberos | \
+ − 349 with_hesiod | \
136
+ − 350 with_dnet | \
280
+ − 351 with_infodock | \
462
+ − 352 with_netinstall | \
70
+ − 353 external_widget | \
120
+ − 354 verbose | \
+ − 355 extra_verbose | \
380
+ − 356 usage_tracking | \
+ − 357 use_union_type | \
424
+ − 358 pdump | \
70
+ − 359 debug | \
+ − 360 use_assertions | \
+ − 361 memory_usage_stats | \
173
+ − 362 with_clash_detection | \
422
+ − 363 with_modules | \
442
+ − 364 quick_build )
149
+ − 365 case "$val" in
0
+ − 366 y | ye | yes ) val=yes ;;
380
+ − 367 n | no ) val=no ;;
149
+ − 368 * ) (echo "$progname: Usage error:"
+ − 369 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
+ − 370 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 371 esac
380
+ − 372 eval "$opt=\"$val\"" ;;
149
+ − 373
+ − 374
153
+ − 375 srcdir | \
70
+ − 376 compiler | \
594
+ − 377 xemacs_compiler | \
157
+ − 378 cflags | \
272
+ − 379 cpp | \
+ − 380 cppflags | \
+ − 381 libs | \
+ − 382 ldflags | \
153
+ − 383 cache_file | \
380
+ − 384 native_sound_lib| \
267
+ − 385 site_lisp | \
70
+ − 386 x_includes | \
+ − 387 x_libraries | \
+ − 388 site_includes | \
+ − 389 site_libraries | \
209
+ − 390 site_prefixes | \
149
+ − 391 site_runtime_libraries )
+ − 392 if test "$valomitted" = "yes" ; then
+ − 393 if test "$#" = 0 ; then
+ − 394 (echo "$progname: Usage error:"
+ − 395 echo " " "The \`--$optname' option requires a value."
+ − 396 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
0
+ − 397 fi
+ − 398 val="$1"; shift
+ − 399 fi
149
+ − 400 eval "$opt=\"$val\""
0
+ − 401 ;;
+ − 402
149
+ − 403 rel_alloc | \
261
+ − 404 with_dlmalloc | \
181
+ − 405 with_debug_malloc | use_debug_malloc | \
+ − 406 with_system_malloc | use_system_malloc )
149
+ − 407 case "$val" in
0
+ − 408 y | ye | yes ) val=yes ;;
+ − 409 n | no ) val=no ;;
181
+ − 410 d | de | def | defa | defau | defaul | default ) val=default ;;
149
+ − 411 * ) (echo "$progname: Usage error:"
+ − 412 echo " " "The \`--$optname' option requires one of these values:
120
+ − 413 \`yes', \`no', or \`default'."
149
+ − 414 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 415 esac
265
+ − 416 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
149
+ − 417 eval "$opt=\"$val\""
0
+ − 418 ;;
+ − 419
149
+ − 420 "with_database" )
120
+ − 421 with_database_berkdb=no
+ − 422 with_database_dbm=no
426
+ − 423 with_database_gdbm=no
300
+ − 424 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
149
+ − 425 case "$x" in
426
+ − 426 no ) ;;
+ − 427 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
+ − 428 d | db | dbm ) with_database_dbm=yes ;;
+ − 429 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
+ − 430 * ) (echo "$progname: Usage error:"
149
+ − 431 echo " " "The \`--$optname' option value
120
+ − 432 must be either \`no' or a comma-separated list
380
+ − 433 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
149
+ − 434 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
120
+ − 435 esac
+ − 436 done
426
+ − 437 if test "$with_database_dbm" = "yes" -a \
+ − 438 "$with_database_gdbm" = "yes"; then
149
+ − 439 (echo "$progname: Usage error:"
120
+ − 440 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
149
+ − 441 with the \`--$optname' option."
+ − 442 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
+ − 443 fi
70
+ − 444 ;;
0
+ − 445
149
+ − 446 "with_sound" )
426
+ − 447 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
+ − 448 case "$x" in
+ − 449 n | no | non | none ) new_sdefault=no ;;
+ − 450 a | al | all | both ) new_sdefault=yes ;;
+ − 451
+ − 452 native ) with_native_sound=yes ;;
+ − 453 nonative ) with_native_sound=no ;;
+ − 454
+ − 455 nas ) with_nas_sound=yes ;;
+ − 456 nonas ) with_nas_sound=no ;;
+ − 457
432
+ − 458 esd ) with_esd_sound=yes ;;
+ − 459 noesd ) with_esd_sound=no ;;
426
+ − 460
+ − 461 * ) bogus_sound=yes ;;
+ − 462 esac
+ − 463 if test "$bogus_sound" -o \
+ − 464 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
+ − 465 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
+ − 466 (echo "$progname: Usage error:"
+ − 467 echo " " "Valid types for the \`--$optname' option are:
+ − 468 $types.
432
+ − 469 The default is to autodetect all sound support."
426
+ − 470 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 471 elif test -n "$new_sdefault" ; then
+ − 472 with_native_sound=$new_sdefault
+ − 473 with_nas_sound=$new_sdefault
432
+ − 474 with_esd_sound=$new_sdefault
426
+ − 475 new_sdefault= # reset this
+ − 476 fi
+ − 477 sound_notfirst=true
+ − 478 done
0
+ − 479 ;;
+ − 480
434
+ − 481 "with_athena" )
+ − 482 case "$val" in
+ − 483 xa | xaw ) val=xaw ;;
+ − 484 3 | 3d | xaw3d ) val=3d ;;
+ − 485 ne | nex | next | naxtaw) val=next ;;
+ − 486 9 | 95 | xaw95 ) val=95 ;;
+ − 487 xp | xpm | xawxpm ) val=xpm ;;
+ − 488 * ) (echo "$progname: Usage error:"
+ − 489 echo " " "The \`--$optname' option must have one of these values:
+ − 490 \`xaw', \`3d', \`next', \`95', or \`xpm'."
+ − 491 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
+ − 492 esac
+ − 493 eval "$opt=\"$val\""
+ − 494 ;;
+ − 495
149
+ − 496 "with_xim" )
+ − 497 case "$val" in
+ − 498 y | ye | yes ) val=yes ;;
+ − 499 n | no | non | none ) val=no ;;
+ − 500 x | xl | xli | xlib ) val=xlib ;;
+ − 501 m | mo | mot | moti | motif ) val=motif ;;
+ − 502 * ) (echo "$progname: Usage error:"
+ − 503 echo " " "The \`--$optname' option must have one of these values:
+ − 504 \`motif', \`xlib', \`yes', or \`no'."
+ − 505 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 506 esac
149
+ − 507 eval "$opt=\"$val\""
0
+ − 508 ;;
+ − 509
149
+ − 510 "mail_locking" )
+ − 511 case "$val" in
+ − 512 lockf ) val=lockf ;;
+ − 513 flock ) val=flock ;;
438
+ − 514 file | dot ) val=file ;;
+ − 515 locking ) val=locking ;;
149
+ − 516 * ) (echo "$progname: Usage error:"
+ − 517 echo " " "The \`--$optname' option must have one of these values:
438
+ − 518 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
149
+ − 519 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
+ − 520 esac
+ − 521 eval "$opt=\"$val\""
+ − 522 ;;
+ − 523
+ − 524 "error_checking" )
+ − 525
267
+ − 526 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
149
+ − 527 case "$x" in
+ − 528 n | no | non | none ) new_default=no ;;
0
+ − 529 a | al | all ) new_default=yes ;;
+ − 530
+ − 531 extents ) error_check_extents=yes ;;
+ − 532 noextents ) error_check_extents=no ;;
+ − 533
+ − 534 typecheck ) error_check_typecheck=yes ;;
+ − 535 notypecheck ) error_check_typecheck=no ;;
+ − 536
+ − 537 bufpos ) error_check_bufpos=yes ;;
+ − 538 nobufpos ) error_check_bufpos=no ;;
+ − 539
+ − 540 gc ) error_check_gc=yes ;;
+ − 541 nogc ) error_check_gc=no ;;
+ − 542
+ − 543 malloc ) error_check_malloc=yes ;;
+ − 544 nomalloc ) error_check_malloc=no ;;
149
+ − 545
414
+ − 546 byte_code ) error_check_byte_code=yes ;;
+ − 547 nobyte_code ) error_check_byte_code=no ;;
+ − 548
442
+ − 549 glyphs ) error_check_glyphs=yes ;;
+ − 550 noglyphs ) error_check_glyphs=no ;;
+ − 551
0
+ − 552 * ) bogus_error_check=yes ;;
+ − 553 esac
70
+ − 554 if test "$bogus_error_check" -o \
+ − 555 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
267
+ − 556 if test "$error_check_default" = yes ; then
442
+ − 557 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
0
+ − 558 else
442
+ − 559 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
0
+ − 560 fi
149
+ − 561 (echo "$progname: Usage error:"
+ − 562 echo " " "Valid types for the \`--$optname' option are:
120
+ − 563 $types."
149
+ − 564 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
151
+ − 565 elif test -n "$new_default" ; then
0
+ − 566 error_check_extents=$new_default
+ − 567 error_check_typecheck=$new_default
+ − 568 error_check_bufpos=$new_default
+ − 569 error_check_gc=$new_default
+ − 570 error_check_malloc=$new_default
414
+ − 571 error_check_byte_code=$new_default
442
+ − 572 error_check_glyphs=$new_default
0
+ − 573 new_default= # reset this
+ − 574 fi
+ − 575 echeck_notfirst=true
+ − 576 done
+ − 577 ;;
+ − 578
149
+ − 579
+ − 580 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
442
+ − 581 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
380
+ − 582 archlibdir | docdir | package_path )
151
+ − 583 if test "$valomitted" = "yes"; then
+ − 584 if test "$#" = 0; then
149
+ − 585 (echo "$progname: Usage error:"
+ − 586 echo " " "The \`--$optname' option requires a value."
+ − 587 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
120
+ − 588 fi
+ − 589 val="$1"; shift
0
+ − 590 fi
149
+ − 591 eval "$opt=\"$val\""
+ − 592
278
+ − 593 case "$opt" in
420
+ − 594 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 595 Defining EXEC_PREFIX_USER_DEFINED
+ − 596 EOF
+ − 597 cat >> confdefs.h <<\EOF
+ − 598 #define EXEC_PREFIX_USER_DEFINED 1
+ − 599 EOF
+ − 600 }
+ − 601 ;;
274
+ − 602 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 603 Defining LISPDIR_USER_DEFINED
+ − 604 EOF
+ − 605 cat >> confdefs.h <<\EOF
+ − 606 #define LISPDIR_USER_DEFINED 1
+ − 607 EOF
+ − 608 }
+ − 609 ;;
388
+ − 610 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 611 Defining SITELISPDIR_USER_DEFINED
+ − 612 EOF
+ − 613 cat >> confdefs.h <<\EOF
+ − 614 #define SITELISPDIR_USER_DEFINED 1
+ − 615 EOF
+ − 616 }
+ − 617 ;;
+ − 618 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 619 Defining MODULEDIR_USER_DEFINED
+ − 620 EOF
+ − 621 cat >> confdefs.h <<\EOF
+ − 622 #define MODULEDIR_USER_DEFINED 1
+ − 623 EOF
+ − 624 }
+ − 625 ;;
274
+ − 626 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 627 Defining ETCDIR_USER_DEFINED
+ − 628 EOF
+ − 629 cat >> confdefs.h <<\EOF
+ − 630 #define ETCDIR_USER_DEFINED 1
+ − 631 EOF
+ − 632 }
+ − 633 ;;
+ − 634 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 635 Defining INFODIR_USER_DEFINED
+ − 636 EOF
+ − 637 cat >> confdefs.h <<\EOF
+ − 638 #define INFODIR_USER_DEFINED 1
+ − 639 EOF
+ − 640 }
+ − 641 ;;
+ − 642 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 643 Defining INFOPATH_USER_DEFINED
+ − 644 EOF
+ − 645 cat >> confdefs.h <<\EOF
+ − 646 #define INFOPATH_USER_DEFINED 1
+ − 647 EOF
+ − 648 }
+ − 649 ;;
+ − 650 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 651 Defining PACKAGE_PATH_USER_DEFINED
+ − 652 EOF
+ − 653 cat >> confdefs.h <<\EOF
+ − 654 #define PACKAGE_PATH_USER_DEFINED 1
+ − 655 EOF
+ − 656 }
+ − 657 ;;
278
+ − 658 datadir )
462
+ − 659 { test "$extra_verbose" = "yes" && cat << \EOF
278
+ − 660 Defining INFODIR_USER_DEFINED
+ − 661 EOF
+ − 662 cat >> confdefs.h <<\EOF
+ − 663 #define INFODIR_USER_DEFINED 1
+ − 664 EOF
+ − 665 }
+ − 666
462
+ − 667 { test "$extra_verbose" = "yes" && cat << \EOF
278
+ − 668 Defining LISPDIR_USER_DEFINED
+ − 669 EOF
+ − 670 cat >> confdefs.h <<\EOF
+ − 671 #define LISPDIR_USER_DEFINED 1
+ − 672 EOF
+ − 673 }
+ − 674
462
+ − 675 { test "$extra_verbose" = "yes" && cat << \EOF
388
+ − 676 Defining MODULEDIR_USER_DEFINED
+ − 677 EOF
+ − 678 cat >> confdefs.h <<\EOF
+ − 679 #define MODULEDIR_USER_DEFINED 1
+ − 680 EOF
+ − 681 }
+ − 682
278
+ − 683 { test "$extra_verbose" = "yes" && cat << \EOF
274
+ − 684 Defining ETCDIR_USER_DEFINED
+ − 685 EOF
+ − 686 cat >> confdefs.h <<\EOF
+ − 687 #define ETCDIR_USER_DEFINED 1
+ − 688 EOF
+ − 689 }
458
+ − 690
+ − 691 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 692 Defining DOCDIR_USER_DEFINED
+ − 693 EOF
+ − 694 cat >> confdefs.h <<\EOF
+ − 695 #define DOCDIR_USER_DEFINED 1
+ − 696 EOF
+ − 697 }
+ − 698
+ − 699 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 700 Defining ARCHLIBDIR_USER_DEFINED
+ − 701 EOF
+ − 702 cat >> confdefs.h <<\EOF
+ − 703 #define ARCHLIBDIR_USER_DEFINED 1
+ − 704 EOF
+ − 705 }
274
+ − 706 ;;
420
+ − 707 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 708 Defining DOCDIR_USER_DEFINED
+ − 709 EOF
+ − 710 cat >> confdefs.h <<\EOF
+ − 711 #define DOCDIR_USER_DEFINED 1
+ − 712 EOF
+ − 713 }
+ − 714 ;;
274
+ − 715 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 716 Defining ARCHLIBDIR_USER_DEFINED
+ − 717 EOF
+ − 718 cat >> confdefs.h <<\EOF
+ − 719 #define ARCHLIBDIR_USER_DEFINED 1
+ − 720 EOF
+ − 721 }
+ − 722 ;;
149
+ − 723 esac
0
+ − 724 ;;
+ − 725
149
+ − 726 "no_create" ) ;;
+ − 727
215
+ − 728 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
149
+ − 729
380
+ − 730 "with_menubars" | \
+ − 731 "with_scrollbars" | \
442
+ − 732 "with_dialogs" | \
420
+ − 733 "with_widgets" )
149
+ − 734 case "$val" in
0
+ − 735 l | lu | luc | luci | lucid ) val=lucid ;;
+ − 736 m | mo | mot | moti | motif ) val=motif ;;
+ − 737 a | at | ath | athe | athen | athena ) val=athena ;;
442
+ − 738 n | no | non | none ) val=no ;;
+ − 739 y | ye | yes ) val=yes ;;
462
+ − 740 g | gt | gtk ) val=gtk ;;
+ − 741 m | ms | msw ) val=msw ;;
149
+ − 742 * ) (echo "$progname: Usage error:"
+ − 743 echo " " "The \`--$optname' option must have one of these values:
585
+ − 744 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
149
+ − 745 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 746 esac
149
+ − 747 eval "$opt=\"$val\""
0
+ − 748 ;;
+ − 749
424
+ − 750 "use_minimal_tagbits" | \
+ − 751 "use_indexed_lrecord_implementation" | \
+ − 752 "run_in_place" | \
442
+ − 753 "const_is_losing" | \
380
+ − 754 "with_gnu_make" )
+ − 755 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
+ − 756 ;;
+ − 757
149
+ − 758 * ) (echo "$progname: Usage error:"
+ − 759 echo " " "Unrecognized option: $arg"
+ − 760 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 761
+ − 762 esac
+ − 763 ;;
+ − 764
243
+ − 765 *-*-*) configuration="$arg" ;;
+ − 766
+ − 767 *) (echo "$progname: Usage error:"
+ − 768 echo " " "Unrecognized argument: $arg"
+ − 769 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
+ − 770
+ − 771 esac
+ − 772 done
+ − 773
149
+ − 774
272
+ − 775 test -n "$cpp" && CPP="$cpp"
+ − 776 test -n "$cppflags" && CPPFLAGS="$cppflags"
+ − 777 test -n "$libs" && LIBS="$libs"
+ − 778 test -n "$ldflags" && LDFLAGS="$ldflags"
+ − 779
0
+ − 780 eval set x "$quoted_arguments"; shift
+ − 781
149
+ − 782 test "$extra_verbose" = "yes" && verbose=yes
+ − 783
+ − 784 test -n "$with_x" && with_x11="$with_x"
+ − 785
380
+ − 786 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
+ − 787 test "$with_system_malloc" = "default" && with_system_malloc=yes
+ − 788 fi
272
+ − 789
284
+ − 790
+ − 791
+ − 792 if test "$with_cde $with_tooltalk" = "yes no"; then
+ − 793 (echo "$progname: Usage error:"
+ − 794 echo " " "--with-cde requires --with-tooltalk"
+ − 795 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 796 elif test "$with_tooltalk" = "no" ; then with_cde=no
+ − 797 elif test "$with_cde" = "yes"; then with_tooltalk=yes
+ − 798 fi
+ − 799
+ − 800
149
+ − 801 case "$srcdir" in
+ − 802
+ − 803 "" )
70
+ − 804 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
120
+ − 805 if test -f "$dir/src/lisp.h" -a \
+ − 806 -f "$dir/lisp/version.el" ; then
149
+ − 807 srcdir="$dir"
70
+ − 808 break
+ − 809 fi
+ − 810 done
149
+ − 811 if test -z "$srcdir" ; then
+ − 812 (echo "$progname: Usage error:"
120
+ − 813 echo " " "Neither the current directory nor its parent seem to
+ − 814 contain the XEmacs sources. If you do not want to build XEmacs in its
149
+ − 815 source tree, you should run \`$progname' in the directory in which
120
+ − 816 you wish to build XEmacs, using the \`--srcdir' option to say where the
+ − 817 sources may be found."
149
+ − 818 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
120
+ − 819 fi
0
+ − 820 ;;
+ − 821
149
+ − 822 * )
243
+ − 823 if test ! -f "$srcdir/src/lisp.h" -o \
149
+ − 824 ! -f "$srcdir/lisp/version.el" ; then
+ − 825 (echo "$progname: Usage error:"
120
+ − 826 echo " " "The directory specified with the \`--srcdir' option,
149
+ − 827 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
+ − 828 either run the \`$progname' script at the top of the XEmacs source
120
+ − 829 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
149
+ − 830 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
+ − 831 fi
+ − 832 ;;
+ − 833 esac
+ − 834
243
+ − 835 if test -z "$configuration"; then
380
+ − 836 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
+ − 837 if test -z "$configuration"; then
243
+ − 838 (echo "$progname: Usage error:"
+ − 839 echo " " "XEmacs has not been ported to this host type.
+ − 840 Try explicitly specifying the CONFIGURATION when rerunning configure."
+ − 841 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 842 fi
+ − 843 fi
+ − 844
149
+ − 845 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
462
+ − 846 echo "configure:847: checking whether ln -s works" >&5
149
+ − 847
0
+ − 848 rm -f conftestdata
+ − 849 if ln -s X conftestdata 2>/dev/null
+ − 850 then
+ − 851 rm -f conftestdata
149
+ − 852 ac_cv_prog_LN_S="ln -s"
+ − 853 else
+ − 854 ac_cv_prog_LN_S=ln
+ − 855 fi
+ − 856 LN_S="$ac_cv_prog_LN_S"
+ − 857 if test "$ac_cv_prog_LN_S" = "ln -s"; then
+ − 858 echo "$ac_t""yes" 1>&6
+ − 859 else
+ − 860 echo "$ac_t""no" 1>&6
+ − 861 fi
+ − 862
+ − 863
438
+ − 864 for dir in lisp etc man info tests; do
149
+ − 865 if test ! -d "$dir" ; then
+ − 866 echo Making symbolic link to "$srcdir/$dir"
157
+ − 867 ${LN_S} "$srcdir/$dir" "$dir"
0
+ − 868 fi
+ − 869 done
+ − 870
392
+ − 871
181
+ − 872 absolute_pwd="`pwd`";
187
+ − 873 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
181
+ − 874 then blddir="$PWD"
392
+ − 875 else blddir="$absolute_pwd"; if test -d "/net"; then
+ − 876 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
+ − 877 blddir=`echo "$blddir" | \
+ − 878 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
+ − 879 fi
181
+ − 880 fi
+ − 881
+ − 882
149
+ − 883 case "$srcdir" in
0
+ − 884 /* ) ;;
181
+ − 885 . ) srcdir="$blddir" ;;
392
+ − 886 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
+ − 887 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
+ − 888 srcdir=`echo "$srcdir" | \
+ − 889 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
+ − 890 fi ;;
0
+ − 891 esac
+ − 892
149
+ − 893 if test `pwd` != `sh -c cd $srcdir && pwd` \
+ − 894 && test -f "$srcdir/src/config.h"; then
+ − 895 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
0
+ − 896 echo " as a build directory right now; it has been configured in its own"
+ − 897 echo " right. To configure in another directory as well, you MUST"
+ − 898 echo " use GNU make. If you do not have GNU make, then you must"
149
+ − 899 echo " now do \`make distclean' in $srcdir,"
+ − 900 echo " and then run $progname again.") >&2
0
+ − 901 extrasub='/^VPATH[ ]*=/c\
+ − 902 vpath %.c $(srcdir)\
+ − 903 vpath %.h $(srcdir)\
+ − 904 vpath %.y $(srcdir)\
+ − 905 vpath %.l $(srcdir)\
+ − 906 vpath %.s $(srcdir)\
+ − 907 vpath %.in $(srcdir)'
+ − 908 fi
+ − 909
171
+ − 910 . "$srcdir/version.sh" || exit 1;
414
+ − 911 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
173
+ − 912 : "${extra_verbose=$beta}"
171
+ − 913 version="${emacs_major_version}.${emacs_minor_version}"
+ − 914 { test "$extra_verbose" = "yes" && cat << EOF
+ − 915 Defining EMACS_MAJOR_VERSION = $emacs_major_version
+ − 916 EOF
+ − 917 cat >> confdefs.h <<EOF
+ − 918 #define EMACS_MAJOR_VERSION $emacs_major_version
+ − 919 EOF
+ − 920 }
+ − 921
+ − 922 { test "$extra_verbose" = "yes" && cat << EOF
+ − 923 Defining EMACS_MINOR_VERSION = $emacs_minor_version
+ − 924 EOF
+ − 925 cat >> confdefs.h <<EOF
+ − 926 #define EMACS_MINOR_VERSION $emacs_minor_version
+ − 927 EOF
+ − 928 }
+ − 929
414
+ − 930 if test -n "$emacs_beta_version" ; then
+ − 931 if test "$beta" = "yes"; then
+ − 932 version="${version}-b${emacs_beta_version}"
+ − 933 { test "$extra_verbose" = "yes" && cat << EOF
171
+ − 934 Defining EMACS_BETA_VERSION = $emacs_beta_version
+ − 935 EOF
+ − 936 cat >> confdefs.h <<EOF
+ − 937 #define EMACS_BETA_VERSION $emacs_beta_version
+ − 938 EOF
+ − 939 }
+ − 940
414
+ − 941 else
+ − 942 version="${version}.${emacs_beta_version}"
+ − 943 { test "$extra_verbose" = "yes" && cat << EOF
+ − 944 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
+ − 945 EOF
+ − 946 cat >> confdefs.h <<EOF
+ − 947 #define EMACS_PATCH_LEVEL $emacs_beta_version
+ − 948 EOF
+ − 949 }
+ − 950
+ − 951 fi
171
+ − 952 fi
+ − 953 { test "$extra_verbose" = "yes" && cat << EOF
+ − 954 Defining XEMACS_CODENAME = "$xemacs_codename"
+ − 955 EOF
+ − 956 cat >> confdefs.h <<EOF
+ − 957 #define XEMACS_CODENAME "$xemacs_codename"
+ − 958 EOF
+ − 959 }
+ − 960
+ − 961 { test "$extra_verbose" = "yes" && cat << EOF
+ − 962 Defining EMACS_VERSION = "$version"
+ − 963 EOF
+ − 964 cat >> confdefs.h <<EOF
+ − 965 #define EMACS_VERSION "$version"
+ − 966 EOF
+ − 967 }
+ − 968
+ − 969
280
+ − 970 if test "$with_infodock" = "yes"; then
420
+ − 971 if test ! -f ../../ID-INSTALL; then
280
+ − 972 echo "Cannot build InfoDock without InfoDock sources"
+ − 973 with_infodock=no
+ − 974 fi
+ − 975 fi
+ − 976
+ − 977 if test "$with_infodock" = "yes"; then
+ − 978 { test "$extra_verbose" = "yes" && cat << EOF
278
+ − 979 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
+ − 980 EOF
+ − 981 cat >> confdefs.h <<EOF
+ − 982 #define INFODOCK_MAJOR_VERSION $infodock_major_version
+ − 983 EOF
+ − 984 }
+ − 985
280
+ − 986 { test "$extra_verbose" = "yes" && cat << EOF
278
+ − 987 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
+ − 988 EOF
+ − 989 cat >> confdefs.h <<EOF
+ − 990 #define INFODOCK_MINOR_VERSION $infodock_minor_version
+ − 991 EOF
+ − 992 }
+ − 993
280
+ − 994 { test "$extra_verbose" = "yes" && cat << EOF
278
+ − 995 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
+ − 996 EOF
+ − 997 cat >> confdefs.h <<EOF
+ − 998 #define INFODOCK_BUILD_VERSION $infodock_build_version
+ − 999 EOF
+ − 1000 }
+ − 1001
280
+ − 1002 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
+ − 1003 PROGNAME=infodock
+ − 1004 CPPFLAGS="$CPPFLAGS -DINFODOCK"
+ − 1005 else
+ − 1006 PROGNAME=xemacs
+ − 1007 fi
278
+ − 1008
442
+ − 1009 { test "$extra_verbose" = "yes" && cat << EOF
+ − 1010 Defining EMACS_PROGNAME = "$PROGNAME"
+ − 1011 EOF
+ − 1012 cat >> confdefs.h <<EOF
+ − 1013 #define EMACS_PROGNAME "$PROGNAME"
+ − 1014 EOF
+ − 1015 }
+ − 1016
+ − 1017
414
+ − 1018 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
171
+ − 1019 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1020 Defining ERROR_CHECK_EXTENTS
+ − 1021 EOF
+ − 1022 cat >> confdefs.h <<\EOF
+ − 1023 #define ERROR_CHECK_EXTENTS 1
+ − 1024 EOF
+ − 1025 }
+ − 1026
+ − 1027 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1028 Defining ERROR_CHECK_TYPECHECK
+ − 1029 EOF
+ − 1030 cat >> confdefs.h <<\EOF
+ − 1031 #define ERROR_CHECK_TYPECHECK 1
+ − 1032 EOF
+ − 1033 }
+ − 1034
+ − 1035 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1036 Defining ERROR_CHECK_BUFPOS
+ − 1037 EOF
+ − 1038 cat >> confdefs.h <<\EOF
+ − 1039 #define ERROR_CHECK_BUFPOS 1
+ − 1040 EOF
+ − 1041 }
+ − 1042
+ − 1043 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1044 Defining ERROR_CHECK_GC
+ − 1045 EOF
+ − 1046 cat >> confdefs.h <<\EOF
+ − 1047 #define ERROR_CHECK_GC 1
+ − 1048 EOF
+ − 1049 }
+ − 1050
+ − 1051 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1052 Defining ERROR_CHECK_MALLOC
+ − 1053 EOF
+ − 1054 cat >> confdefs.h <<\EOF
+ − 1055 #define ERROR_CHECK_MALLOC 1
+ − 1056 EOF
+ − 1057 }
+ − 1058
414
+ − 1059 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1060 Defining ERROR_CHECK_BYTE_CODE
+ − 1061 EOF
+ − 1062 cat >> confdefs.h <<\EOF
+ − 1063 #define ERROR_CHECK_BYTE_CODE 1
+ − 1064 EOF
+ − 1065 }
+ − 1066
442
+ − 1067 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1068 Defining ERROR_CHECK_GLYPHS
+ − 1069 EOF
+ − 1070 cat >> confdefs.h <<\EOF
+ − 1071 #define ERROR_CHECK_GLYPHS 1
+ − 1072 EOF
+ − 1073 }
+ − 1074
272
+ − 1075 if test "${debug:=$beta}" = "yes"; then
171
+ − 1076 use_assertions=yes memory_usage_stats=yes
+ − 1077 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
+ − 1078 echo " xemacs will be linked with \"debug.o\""
+ − 1079 fi
440
+ − 1080 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
+ − 1081 echo " xemacs will be linked with \"tests.o\""
+ − 1082 fi
171
+ − 1083 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1084 Defining DEBUG_XEMACS
+ − 1085 EOF
+ − 1086 cat >> confdefs.h <<\EOF
+ − 1087 #define DEBUG_XEMACS 1
+ − 1088 EOF
+ − 1089 }
+ − 1090
+ − 1091 fi
+ − 1092 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1093 Defining USE_ASSERTIONS
+ − 1094 EOF
+ − 1095 cat >> confdefs.h <<\EOF
+ − 1096 #define USE_ASSERTIONS 1
+ − 1097 EOF
+ − 1098 }
+ − 1099
+ − 1100 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1101 Defining MEMORY_USAGE_STATS
+ − 1102 EOF
+ − 1103 cat >> confdefs.h <<\EOF
+ − 1104 #define MEMORY_USAGE_STATS 1
+ − 1105 EOF
+ − 1106 }
+ − 1107
+ − 1108
149
+ − 1109
380
+ − 1110 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
462
+ − 1111 echo "configure:1112: checking "host system type"" >&5
217
+ − 1112 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
380
+ − 1113 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
+ − 1114 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
+ − 1115 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
+ − 1116 echo "$ac_t""$configuration" 1>&6
0
+ − 1117
149
+ − 1118
+ − 1119
+ − 1120
+ − 1121
151
+ − 1122 machine='' opsys=''
149
+ − 1123
+ − 1124 case "$canonical" in
+ − 1125 sparc-*-* ) machine=sparc ;;
373
+ − 1126 alpha*-*-* ) machine=alpha ;;
149
+ − 1127 vax-*-* ) machine=vax ;;
+ − 1128 mips-dec-* ) machine=pmax ;;
440
+ − 1129 mips-sgi-irix6* ) machine=iris6d ;;
149
+ − 1130 mips-sgi-* ) machine=iris4d ;;
424
+ − 1131 mips*-linux ) machine=mips ;;
149
+ − 1132 romp-ibm-* ) machine=ibmrt ;;
+ − 1133 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
+ − 1134 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
163
+ − 1135 powerpc*-* ) machine=powerpc ;;
149
+ − 1136 hppa-*-* ) machine=hp800 ;;
+ − 1137 m88k-dg-* ) machine=aviion ;;
+ − 1138 m68*-sony-* ) machine=news ;;
+ − 1139 mips-sony-* ) machine=news-risc ;;
+ − 1140 clipper-* ) machine=clipper ;;
442
+ − 1141 arm* ) machine=arm ;;
380
+ − 1142 ns32k-* ) machine=ns32000 ;;
149
+ − 1143 esac
+ − 1144
+ − 1145 case "$canonical" in
+ − 1146 *-*-linux* ) opsys=linux ;;
+ − 1147 *-*-netbsd* ) opsys=netbsd ;;
286
+ − 1148 *-*-openbsd* ) opsys=openbsd ;;
149
+ − 1149 *-*-nextstep* ) opsys=nextstep ;;
+ − 1150 *-*-vms ) opsys=vms ;;
+ − 1151
+ − 1152 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
+ − 1153 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
+ − 1154 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
+ − 1155 *-dec-osf3* ) opsys=decosf3-1 ;;
444
+ − 1156 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
149
+ − 1157
+ − 1158 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
+ − 1159 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
+ − 1160 *-*-ultrix* ) opsys=ultrix4-3 ;;
+ − 1161
+ − 1162 *-*-aix3.1* ) opsys=aix3-1 ;;
+ − 1163 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
+ − 1164 *-*-aix3* ) opsys=aix3-2 ;;
373
+ − 1165 *-*-aix4.0* ) opsys=aix4 ;;
149
+ − 1166 *-*-aix4.1* ) opsys=aix4-1 ;;
373
+ − 1167 *-*-aix4* ) opsys=aix4-2 ;;
149
+ − 1168
+ − 1169 *-gnu* ) opsys=gnu ;;
+ − 1170 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
+ − 1171 *-*-bsd4.2 ) opsys=bsd4-2 ;;
+ − 1172 *-*-bsd4.3 ) opsys=bsd4-3 ;;
+ − 1173 *-*-aos4.2 ) opsys=bsd4-2 ;;
+ − 1174 *-*-aos* ) opsys=bsd4-3 ;;
+ − 1175 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
+ − 1176 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
+ − 1177 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
+ − 1178 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
+ − 1179 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
+ − 1180 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
+ − 1181 if test -z "$NON_GNU_CPP" ; then
151
+ − 1182 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
+ − 1183 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
+ − 1184 done
149
+ − 1185 fi
+ − 1186 opsys=usg5-4-2 ;;
+ − 1187 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
+ − 1188 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
+ − 1189 esac
+ − 1190
+ − 1191 case "$canonical" in
+ − 1192
+ − 1193 *-*-netbsd* )
+ − 1194 case "$canonical" in
0
+ − 1195 i[3-9]86-*-netbsd*) machine=intel386 ;;
+ − 1196 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
149
+ − 1197 machine=hp9000s300 ;;
70
+ − 1198 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
+ − 1199 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
0
+ − 1200 esac
+ − 1201 ;;
+ − 1202
286
+ − 1203 *-*-openbsd* )
+ − 1204 case "${canonical}" in
+ − 1205 i386-*-openbsd*) machine=intel386 ;;
+ − 1206 m68k-*-openbsd*) machine=hp9000s300 ;;
+ − 1207 mipsel-*-openbsd*) machine=pmax ;;
+ − 1208 esac
+ − 1209 ;;
+ − 1210
149
+ − 1211 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
70
+ − 1212 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
0
+ − 1213
149
+ − 1214 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
70
+ − 1215 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
0
+ − 1216
149
+ − 1217 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
+ − 1218
+ − 1219 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
+ − 1220
+ − 1221 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
+ − 1222
+ − 1223 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
+ − 1224
+ − 1225 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
+ − 1226
+ − 1227 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
74
+ − 1228 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
+ − 1229 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
0
+ − 1230
149
+ − 1231
+ − 1232 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
+ − 1233
+ − 1234 *-convex-bsd* | *-convex-convexos* )
0
+ − 1235 machine=convex opsys=bsd4-3
+ − 1236 NON_GNU_CPP="cc -E -P"
+ − 1237 ;;
+ − 1238
149
+ − 1239 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
+ − 1240
+ − 1241 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
+ − 1242 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
+ − 1243 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
+ − 1244 m88k-dg-dgux* ) opsys=dgux ;;
+ − 1245
+ − 1246 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
0
+ − 1247 m88k-motorola-sysv4* )
149
+ − 1248 machine=delta88k opsys=usg5-4-2
0
+ − 1249 ;;
70
+ − 1250 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
0
+ − 1251
149
+ − 1252 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
70
+ − 1253 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
0
+ − 1254
149
+ − 1255 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
+ − 1256
+ − 1257 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
70
+ − 1258 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
+ − 1259 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
0
+ − 1260
149
+ − 1261 m88k-harris-cxux* )
+ − 1262 case "`uname -r`" in
74
+ − 1263 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
70
+ − 1264 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
0
+ − 1265 esac
+ − 1266 NON_GNU_CPP="/lib/cpp"
+ − 1267 ;;
149
+ − 1268 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
+ − 1269 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
+ − 1270
+ − 1271 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
+ − 1272
+ − 1273 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
+ − 1274
+ − 1275 *-hp-hpux* )
+ − 1276 case "$canonical" in
70
+ − 1277 m68* ) machine=hp9000s300 ;;
+ − 1278 hppa* ) machine=hp800 ;;
+ − 1279 esac
+ − 1280
149
+ − 1281 case "$canonical" in
+ − 1282 *-hp-hpux7* ) opsys=hpux ;;
+ − 1283 *-hp-hpux8* ) opsys=hpux8 ;;
+ − 1284 *-hp-hpux9* ) opsys=hpux9 ;;
+ − 1285 *-hp-hpux10* ) opsys=hpux10 ;;
269
+ − 1286 *-hp-hpux11* ) opsys=hpux11 ;;
151
+ − 1287 * ) opsys=hpux ;;
0
+ − 1288 esac
72
+ − 1289
151
+ − 1290 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
+ − 1291 echo " xemacs will be linked with \"strcat.o\""
+ − 1292 fi ;; esac
149
+ − 1293
269
+ − 1294 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
+ − 1295 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
149
+ − 1296 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
+ − 1297
+ − 1298 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
0
+ − 1299 ;;
+ − 1300
149
+ − 1301 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
70
+ − 1302 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
0
+ − 1303
149
+ − 1304 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
70
+ − 1305 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
+ − 1306 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
149
+ − 1307 romp-ibm-aos* ) opsys=bsd4-3 ;;
+ − 1308 romp-ibm-bsd* ) opsys=bsd4-3 ;;
+ − 1309 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
+ − 1310
+ − 1311 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
70
+ − 1312 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
0
+ − 1313
149
+ − 1314 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
+ − 1315
+ − 1316 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
+ − 1317
+ − 1318 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
+ − 1319
+ − 1320 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
+ − 1321
+ − 1322 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
+ − 1323
+ − 1324 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
+ − 1325
+ − 1326 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
+ − 1327
+ − 1328 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
+ − 1329
+ − 1330 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
+ − 1331
+ − 1332 mips-mips-usg* ) machine=mips4 ;;
70
+ − 1333 mips-mips-riscos4 )
+ − 1334 machine=mips4
0
+ − 1335 NON_GNU_CC="cc -systype bsd43"
+ − 1336 NON_GNU_CPP="cc -systype bsd43 -E"
149
+ − 1337 case "$canonical" in
70
+ − 1338 mips-mips-riscos4* ) opsys=bsd4-3 ;;
+ − 1339 mips-mips-riscos5* ) opsys=riscos5 ;;
+ − 1340 esac
0
+ − 1341 ;;
70
+ − 1342 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
+ − 1343 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
0
+ − 1344
149
+ − 1345 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
+ − 1346
+ − 1347 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
+ − 1348
+ − 1349 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
70
+ − 1350 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
0
+ − 1351
149
+ − 1352 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
+ − 1353
+ − 1354 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
+ − 1355
+ − 1356 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
+ − 1357
+ − 1358 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
+ − 1359
+ − 1360 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
70
+ − 1361 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
0
+ − 1362
149
+ − 1363 mips-siemens-sysv* | mips-sni-sysv*)
0
+ − 1364 machine=mips-siemens opsys=usg5-4
+ − 1365 NON_GNU_CC=/usr/ccs/bin/cc
+ − 1366 NON_GNU_CPP=/usr/ccs/lib/cpp
+ − 1367 ;;
+ − 1368
377
+ − 1369 mips-nec-sysv*)
+ − 1370 machine=mips-nec
+ − 1371 NON_GNU_CC=/usr/ccs/bin/cc
+ − 1372 NON_GNU_CPP=/usr/ccs/lib/cpp
+ − 1373 ;;
+ − 1374
149
+ − 1375 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
70
+ − 1376 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
149
+ − 1377 mips-sgi-irix3.* ) opsys=irix3-3 ;;
+ − 1378 mips-sgi-irix4.* ) opsys=irix4-0 ;;
207
+ − 1379 mips-sgi-irix6* ) opsys=irix6-0 ;;
149
+ − 1380 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
+ − 1381 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
+ − 1382 mips-sgi-irix5.* ) opsys=irix5-3 ;;
+ − 1383 mips-sgi-irix* ) opsys=irix5-0 ;;
+ − 1384
+ − 1385 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
+ − 1386 *-sony-news* ) opsys=newsos5 ;;
+ − 1387
+ − 1388 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
+ − 1389
+ − 1390 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
+ − 1391 case "$canonical" in
0
+ − 1392 m68*-sunos1* ) machine=sun1 ;;
+ − 1393 m68*-sunos2* ) machine=sun2 ;;
+ − 1394 m68* ) machine=sun3 ;;
163
+ − 1395 i*86*-sun-sunos[34]* ) machine=sun386 ;;
+ − 1396 i*86-*-* ) machine=intel386 ;;
0
+ − 1397 rs6000* ) machine=rs6000 ;;
+ − 1398 esac
149
+ − 1399
+ − 1400 case "$canonical" in *-sunos5*)
163
+ − 1401 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
0
+ − 1402 esac
+ − 1403
149
+ − 1404 case "$canonical" in
0
+ − 1405 *-sunos4* )
157
+ − 1406 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
+ − 1407 : ;;
70
+ − 1408 *-solaris2* )
157
+ − 1409 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
+ − 1410 RANLIB=':' ;;
151
+ − 1411 esac
149
+ − 1412
+ − 1413 case "$canonical" in
163
+ − 1414 *-solaris* )
+ − 1415 opsys=sol2
+ − 1416 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
+ − 1417 { test "$extra_verbose" = "yes" && cat << EOF
+ − 1418 Defining OS_RELEASE = $os_release
+ − 1419 EOF
+ − 1420 cat >> confdefs.h <<EOF
+ − 1421 #define OS_RELEASE $os_release
+ − 1422 EOF
+ − 1423 }
+ − 1424 ;;
+ − 1425
+ − 1426 i*86-*-sunos4* ) opsys=sunos4-0 ;;
74
+ − 1427 *-sunos4.0* ) opsys=sunos4-0 ;;
+ − 1428 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
110
+ − 1429 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
120
+ − 1430 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
74
+ − 1431 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
+ − 1432 *-mach* ) opsys=mach-bsd4-3 ;;
+ − 1433 * ) opsys=bsd4-2 ;;
0
+ − 1434 esac
70
+ − 1435
149
+ − 1436 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
+ − 1437
163
+ − 1438 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
0
+ − 1439 ;;
70
+ − 1440
149
+ − 1441 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
+ − 1442
+ − 1443 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
70
+ − 1444 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
0
+ − 1445
149
+ − 1446 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
+ − 1447
+ − 1448 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
+ − 1449
+ − 1450 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
+ − 1451 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
+ − 1452
+ − 1453 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
+ − 1454
+ − 1455 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
+ − 1456
+ − 1457 vax-dec-* )
+ − 1458 case "$canonical" in
+ − 1459 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
+ − 1460 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
+ − 1461 *-mach* ) opsys=mach-bsd4-3 ;;
0
+ − 1462 esac
+ − 1463 ;;
+ − 1464
149
+ − 1465 ns16k-whitechapel-* ) machine=mg1 ;;
+ − 1466
+ − 1467 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
+ − 1468
+ − 1469 i[3-9]86-*-* )
0
+ − 1470 machine=intel386
149
+ − 1471 case "$canonical" in
120
+ − 1472 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
0
+ − 1473 *-isc2.2* ) opsys=isc2-2 ;;
+ − 1474 *-isc4.0* ) opsys=isc4-0 ;;
+ − 1475 *-isc4.* ) opsys=isc4-1
+ − 1476 GCC_TEST_OPTIONS=-posix
+ − 1477 NON_GCC_TEST_OPTIONS=-Xp
+ − 1478 ;;
+ − 1479 *-isc* ) opsys=isc3-0 ;;
149
+ − 1480 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
0
+ − 1481 *-esix* ) opsys=esix ;;
+ − 1482 *-mach* ) opsys=mach-bsd4-3 ;;
+ − 1483 *-xenix* ) opsys=xenix ;;
149
+ − 1484 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
0
+ − 1485 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
392
+ − 1486 *-bsdi4* ) opsys=bsdos4 ;;
110
+ − 1487 *-bsdi3* ) opsys=bsdos3 ;;
0
+ − 1488 *-bsdi2.1* ) opsys=bsdos2-1 ;;
+ − 1489 *-bsdi2* ) opsys=bsdos2 ;;
460
+ − 1490 *-sco3.2v5* ) opsys=sco5 ;;
422
+ − 1491 *-sysv5* ) opsys=sco7 ;;
70
+ − 1492 *-386bsd* ) opsys=386bsd ;;
+ − 1493 *-freebsd* ) opsys=freebsd ;;
0
+ − 1494 *-nextstep* ) opsys=nextstep ;;
398
+ − 1495 *-pc-cygwin* ) opsys=cygwin32 ;;
+ − 1496 *-pc-mingw* ) opsys=mingw32 ;
+ − 1497 test -z "$with_tty" && with_tty="no";;
149
+ − 1498 esac
0
+ − 1499 ;;
+ − 1500
149
+ − 1501 m68k-*-linux* ) machine=m68k opsys=linux ;;
+ − 1502
0
+ − 1503 esac
+ − 1504
442
+ − 1505 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
505
+ − 1506
+ − 1507 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
442
+ − 1508
+ − 1509 if test -r "${srcdir}/src/m/${machine}.h"; then
+ − 1510 machfile="m/${machine}.h"
+ − 1511 { test "$extra_verbose" = "yes" && cat << EOF
+ − 1512 Defining config_machfile = "$machfile"
+ − 1513 EOF
+ − 1514 cat >> confdefs.h <<EOF
+ − 1515 #define config_machfile "$machfile"
+ − 1516 EOF
+ − 1517 }
+ − 1518
+ − 1519 else
+ − 1520 echo "XEmacs has no builtin knowledge of \`$machine' machines."
+ − 1521 echo "Using configure-time autodetection only."
+ − 1522 fi
+ − 1523
+ − 1524 if test -r "${srcdir}/src/s/${opsys}.h"; then
+ − 1525 opsysfile="s/${opsys}.h"
+ − 1526 { test "$extra_verbose" = "yes" && cat << EOF
+ − 1527 Defining config_opsysfile = "$opsysfile"
+ − 1528 EOF
+ − 1529 cat >> confdefs.h <<EOF
+ − 1530 #define config_opsysfile "$opsysfile"
+ − 1531 EOF
+ − 1532 }
+ − 1533
+ − 1534 else
+ − 1535 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
+ − 1536 echo "Using configure-time autodetection only."
+ − 1537 fi
+ − 1538
0
+ − 1539
173
+ − 1540 if test -z "$dynamic"; then
+ − 1541 case "$opsys" in
388
+ − 1542 hpux* | sunos4* ) dynamic=no ;;
173
+ − 1543 *) dynamic=yes ;;
+ − 1544 esac
+ − 1545 fi
+ − 1546 if test "$dynamic" = "yes"; then
149
+ − 1547 case "$opsys" in
72
+ − 1548 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
173
+ − 1549 decosf* ) ld_call_shared="-call_shared" ;;
0
+ − 1550 esac
173
+ − 1551 else case "$opsys" in
187
+ − 1552 sol2 )
173
+ − 1553 echo "Static linking is not supported on Solaris 2."
+ − 1554 echo "Rerun configure without specifying --dynamic=no."
+ − 1555 exit 1 ;;
+ − 1556 linux ) ld_call_shared="-Bstatic" ;;
+ − 1557 decosf* ) ld_call_shared="-non_shared" ;;
0
+ − 1558 esac
+ − 1559 fi
+ − 1560
207
+ − 1561 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
+ − 1562
280
+ − 1563 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
173
+ − 1564 { test "$extra_verbose" = "yes" && cat << EOF
177
+ − 1565 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
173
+ − 1566 EOF
+ − 1567 cat >> confdefs.h <<EOF
177
+ − 1568 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
173
+ − 1569 EOF
+ − 1570 }
+ − 1571
+ − 1572
0
+ − 1573
151
+ − 1574 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
284
+ − 1575 if test "$with_workshop $with_tooltalk" = "yes no"; then
+ − 1576 (echo "$progname: Usage error:"
+ − 1577 echo " " "--with-workshop requires --with-tooltalk"
+ − 1578 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 1579 elif test "$with_tooltalk" = "no" ; then with_workshop=no
+ − 1580 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
+ − 1581 fi
+ − 1582
151
+ − 1583 if test "$with_workshop" = "yes"; then
+ − 1584 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1585 Defining SUNPRO
+ − 1586 EOF
+ − 1587 cat >> confdefs.h <<\EOF
+ − 1588 #define SUNPRO 1
+ − 1589 EOF
+ − 1590 }
+ − 1591
+ − 1592 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
+ − 1593 echo " xemacs will be linked with \"sunpro.o\""
+ − 1594 fi
+ − 1595 fi
+ − 1596
442
+ − 1597 if test "$with_clash_detection" != "no"; then
175
+ − 1598 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 1599 Defining CLASH_DETECTION
+ − 1600 EOF
+ − 1601 cat >> confdefs.h <<\EOF
+ − 1602 #define CLASH_DETECTION 1
+ − 1603 EOF
+ − 1604 }
+ − 1605
+ − 1606 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
+ − 1607 echo " xemacs will be linked with \"filelock.o\""
+ − 1608 fi
+ − 1609 fi
+ − 1610
169
+ − 1611 test -n "$compiler" && CC="$compiler"
+ − 1612 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
+ − 1613 fi
149
+ − 1614
272
+ − 1615 test "${cflags-unset}" != unset && CFLAGS="$cflags"
+ − 1616 if test "${CFLAGS-unset}" != unset
+ − 1617 then cflags_specified=yes;
+ − 1618 else cflags_specified=no;
+ − 1619 fi
+ − 1620
157
+ − 1621 xe_save_CFLAGS="$CFLAGS"
+ − 1622
149
+ − 1623 # Extract the first word of "gcc", so it can be a program name with args.
+ − 1624 set dummy gcc; ac_word=$2
+ − 1625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
+ − 1626 echo "configure:1627: checking for $ac_word" >&5
149
+ − 1627
+ − 1628 if test -n "$CC"; then
+ − 1629 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1630 else
420
+ − 1631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 1632 ac_dummy="$PATH"
+ − 1633 for ac_dir in $ac_dummy; do
149
+ − 1634 test -z "$ac_dir" && ac_dir=.
+ − 1635 if test -f $ac_dir/$ac_word; then
+ − 1636 ac_cv_prog_CC="gcc"
+ − 1637 break
+ − 1638 fi
+ − 1639 done
+ − 1640 IFS="$ac_save_ifs"
+ − 1641 fi
+ − 1642 CC="$ac_cv_prog_CC"
+ − 1643 if test -n "$CC"; then
+ − 1644 echo "$ac_t""$CC" 1>&6
+ − 1645 else
+ − 1646 echo "$ac_t""no" 1>&6
+ − 1647 fi
+ − 1648
+ − 1649 if test -z "$CC"; then
+ − 1650 # Extract the first word of "cc", so it can be a program name with args.
+ − 1651 set dummy cc; ac_word=$2
+ − 1652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
+ − 1653 echo "configure:1654: checking for $ac_word" >&5
149
+ − 1654
+ − 1655 if test -n "$CC"; then
+ − 1656 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1657 else
420
+ − 1658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
149
+ − 1659 ac_prog_rejected=no
420
+ − 1660 ac_dummy="$PATH"
+ − 1661 for ac_dir in $ac_dummy; do
149
+ − 1662 test -z "$ac_dir" && ac_dir=.
+ − 1663 if test -f $ac_dir/$ac_word; then
+ − 1664 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
+ − 1665 ac_prog_rejected=yes
+ − 1666 continue
+ − 1667 fi
+ − 1668 ac_cv_prog_CC="cc"
+ − 1669 break
+ − 1670 fi
+ − 1671 done
+ − 1672 IFS="$ac_save_ifs"
+ − 1673 if test $ac_prog_rejected = yes; then
+ − 1674 # We found a bogon in the path, so make sure we never use it.
+ − 1675 set dummy $ac_cv_prog_CC
+ − 1676 shift
+ − 1677 if test $# -gt 0; then
+ − 1678 # We chose a different compiler from the bogus one.
+ − 1679 # However, it has the same basename, so the bogon will be chosen
+ − 1680 # first if we set CC to just the basename; use the full file name.
+ − 1681 shift
+ − 1682 set dummy "$ac_dir/$ac_word" "$@"
+ − 1683 shift
+ − 1684 ac_cv_prog_CC="$@"
+ − 1685 fi
+ − 1686 fi
+ − 1687 fi
+ − 1688 CC="$ac_cv_prog_CC"
+ − 1689 if test -n "$CC"; then
+ − 1690 echo "$ac_t""$CC" 1>&6
+ − 1691 else
+ − 1692 echo "$ac_t""no" 1>&6
+ − 1693 fi
+ − 1694
420
+ − 1695 if test -z "$CC"; then
+ − 1696 case "`uname -s`" in
+ − 1697 *win32* | *WIN32*)
+ − 1698 # Extract the first word of "cl", so it can be a program name with args.
+ − 1699 set dummy cl; ac_word=$2
+ − 1700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
+ − 1701 echo "configure:1702: checking for $ac_word" >&5
420
+ − 1702
+ − 1703 if test -n "$CC"; then
+ − 1704 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1705 else
+ − 1706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 1707 ac_dummy="$PATH"
+ − 1708 for ac_dir in $ac_dummy; do
+ − 1709 test -z "$ac_dir" && ac_dir=.
+ − 1710 if test -f $ac_dir/$ac_word; then
+ − 1711 ac_cv_prog_CC="cl"
+ − 1712 break
+ − 1713 fi
+ − 1714 done
+ − 1715 IFS="$ac_save_ifs"
+ − 1716 fi
+ − 1717 CC="$ac_cv_prog_CC"
+ − 1718 if test -n "$CC"; then
+ − 1719 echo "$ac_t""$CC" 1>&6
+ − 1720 else
+ − 1721 echo "$ac_t""no" 1>&6
+ − 1722 fi
+ − 1723 ;;
+ − 1724 esac
+ − 1725 fi
149
+ − 1726 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
+ − 1727 fi
+ − 1728
+ − 1729 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
505
+ − 1730 echo "configure:1731: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
70
+ − 1731
0
+ − 1732 ac_ext=c
151
+ − 1733 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 1734 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 1735 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
+ − 1736 ac_cpp='$CPP '"$xe_cppflags"
151
+ − 1737 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 1738 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
+ − 1739 cross_compiling=no
+ − 1740
420
+ − 1741 cat > conftest.$ac_ext << EOF
+ − 1742
505
+ − 1743 #line 1744 "configure"
420
+ − 1744 #include "confdefs.h"
+ − 1745
149
+ − 1746 main(){return(0);}
+ − 1747 EOF
505
+ − 1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 1749 ac_cv_prog_cc_works=yes
+ − 1750 # If we can't run a trivial program, we are probably using a cross compiler.
+ − 1751 if (./conftest; exit) 2>/dev/null; then
+ − 1752 ac_cv_prog_cc_cross=no
+ − 1753 else
+ − 1754 ac_cv_prog_cc_cross=yes
0
+ − 1755 fi
149
+ − 1756 else
+ − 1757 echo "configure: failed program was:" >&5
+ − 1758 cat conftest.$ac_ext >&5
+ − 1759 ac_cv_prog_cc_works=no
+ − 1760 fi
+ − 1761 rm -fr conftest*
420
+ − 1762 ac_ext=c
+ − 1763 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 1764 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 1765 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
+ − 1766 ac_cpp='$CPP '"$xe_cppflags"
+ − 1767 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 1768 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 1769 cross_compiling=no
149
+ − 1770
+ − 1771 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
+ − 1772 if test $ac_cv_prog_cc_works = no; then
+ − 1773 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
+ − 1774 fi
+ − 1775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
505
+ − 1776 echo "configure:1777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
149
+ − 1777 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
+ − 1778 cross_compiling=$ac_cv_prog_cc_cross
+ − 1779
+ − 1780 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
505
+ − 1781 echo "configure:1782: checking whether we are using GNU C" >&5
149
+ − 1782
+ − 1783 cat > conftest.c <<EOF
+ − 1784 #ifdef __GNUC__
+ − 1785 yes;
+ − 1786 #endif
+ − 1787 EOF
505
+ − 1788 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
149
+ − 1789 ac_cv_prog_gcc=yes
+ − 1790 else
+ − 1791 ac_cv_prog_gcc=no
+ − 1792 fi
+ − 1793
+ − 1794 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
+ − 1795
+ − 1796 if test $ac_cv_prog_gcc = yes; then
+ − 1797 GCC=yes
420
+ − 1798 else
+ − 1799 GCC=
+ − 1800 fi
+ − 1801
+ − 1802 ac_test_CFLAGS="${CFLAGS+set}"
+ − 1803 ac_save_CFLAGS="$CFLAGS"
+ − 1804 CFLAGS=
+ − 1805 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
505
+ − 1806 echo "configure:1807: checking whether ${CC-cc} accepts -g" >&5
149
+ − 1807
+ − 1808 echo 'void f(){}' > conftest.c
+ − 1809 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
+ − 1810 ac_cv_prog_cc_g=yes
+ − 1811 else
+ − 1812 ac_cv_prog_cc_g=no
+ − 1813 fi
+ − 1814 rm -f conftest*
+ − 1815
+ − 1816
+ − 1817 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
+ − 1818 if test "$ac_test_CFLAGS" = set; then
+ − 1819 CFLAGS="$ac_save_CFLAGS"
+ − 1820 elif test $ac_cv_prog_cc_g = yes; then
+ − 1821 if test "$GCC" = yes; then
149
+ − 1822 CFLAGS="-g -O2"
0
+ − 1823 else
420
+ − 1824 CFLAGS="-g"
+ − 1825 fi
+ − 1826 else
+ − 1827 if test "$GCC" = yes; then
149
+ − 1828 CFLAGS="-O2"
420
+ − 1829 else
+ − 1830 CFLAGS=
+ − 1831 fi
149
+ − 1832 fi
169
+ − 1833
+ − 1834 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
149
+ − 1835 CC=${NON_GNU_CC-cc}
+ − 1836 # Extract the first word of "gcc", so it can be a program name with args.
+ − 1837 set dummy gcc; ac_word=$2
+ − 1838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
+ − 1839 echo "configure:1840: checking for $ac_word" >&5
149
+ − 1840
+ − 1841 if test -n "$CC"; then
+ − 1842 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1843 else
420
+ − 1844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 1845 ac_dummy="$PATH"
+ − 1846 for ac_dir in $ac_dummy; do
0
+ − 1847 test -z "$ac_dir" && ac_dir=.
+ − 1848 if test -f $ac_dir/$ac_word; then
149
+ − 1849 ac_cv_prog_CC="gcc"
+ − 1850 break
+ − 1851 fi
+ − 1852 done
+ − 1853 IFS="$ac_save_ifs"
+ − 1854 fi
+ − 1855 CC="$ac_cv_prog_CC"
+ − 1856 if test -n "$CC"; then
+ − 1857 echo "$ac_t""$CC" 1>&6
+ − 1858 else
+ − 1859 echo "$ac_t""no" 1>&6
+ − 1860 fi
+ − 1861
+ − 1862 if test -z "$CC"; then
+ − 1863 # Extract the first word of "cc", so it can be a program name with args.
+ − 1864 set dummy cc; ac_word=$2
+ − 1865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
+ − 1866 echo "configure:1867: checking for $ac_word" >&5
157
+ − 1867
+ − 1868 if test -n "$CC"; then
+ − 1869 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1870 else
420
+ − 1871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
157
+ − 1872 ac_prog_rejected=no
420
+ − 1873 ac_dummy="$PATH"
+ − 1874 for ac_dir in $ac_dummy; do
157
+ − 1875 test -z "$ac_dir" && ac_dir=.
+ − 1876 if test -f $ac_dir/$ac_word; then
+ − 1877 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
+ − 1878 ac_prog_rejected=yes
+ − 1879 continue
+ − 1880 fi
+ − 1881 ac_cv_prog_CC="cc"
+ − 1882 break
+ − 1883 fi
+ − 1884 done
+ − 1885 IFS="$ac_save_ifs"
+ − 1886 if test $ac_prog_rejected = yes; then
+ − 1887 # We found a bogon in the path, so make sure we never use it.
+ − 1888 set dummy $ac_cv_prog_CC
+ − 1889 shift
+ − 1890 if test $# -gt 0; then
+ − 1891 # We chose a different compiler from the bogus one.
+ − 1892 # However, it has the same basename, so the bogon will be chosen
+ − 1893 # first if we set CC to just the basename; use the full file name.
+ − 1894 shift
+ − 1895 set dummy "$ac_dir/$ac_word" "$@"
+ − 1896 shift
+ − 1897 ac_cv_prog_CC="$@"
+ − 1898 fi
+ − 1899 fi
+ − 1900 fi
+ − 1901 CC="$ac_cv_prog_CC"
+ − 1902 if test -n "$CC"; then
+ − 1903 echo "$ac_t""$CC" 1>&6
+ − 1904 else
+ − 1905 echo "$ac_t""no" 1>&6
+ − 1906 fi
+ − 1907
420
+ − 1908 if test -z "$CC"; then
+ − 1909 case "`uname -s`" in
+ − 1910 *win32* | *WIN32*)
+ − 1911 # Extract the first word of "cl", so it can be a program name with args.
+ − 1912 set dummy cl; ac_word=$2
+ − 1913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
+ − 1914 echo "configure:1915: checking for $ac_word" >&5
420
+ − 1915
+ − 1916 if test -n "$CC"; then
+ − 1917 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 1918 else
+ − 1919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 1920 ac_dummy="$PATH"
+ − 1921 for ac_dir in $ac_dummy; do
+ − 1922 test -z "$ac_dir" && ac_dir=.
+ − 1923 if test -f $ac_dir/$ac_word; then
+ − 1924 ac_cv_prog_CC="cl"
+ − 1925 break
+ − 1926 fi
+ − 1927 done
+ − 1928 IFS="$ac_save_ifs"
+ − 1929 fi
+ − 1930 CC="$ac_cv_prog_CC"
+ − 1931 if test -n "$CC"; then
+ − 1932 echo "$ac_t""$CC" 1>&6
+ − 1933 else
+ − 1934 echo "$ac_t""no" 1>&6
+ − 1935 fi
+ − 1936 ;;
+ − 1937 esac
+ − 1938 fi
157
+ − 1939 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
+ − 1940 fi
+ − 1941
+ − 1942 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
505
+ − 1943 echo "configure:1944: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
157
+ − 1944
+ − 1945 ac_ext=c
+ − 1946 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 1947 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 1948 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
+ − 1949 ac_cpp='$CPP '"$xe_cppflags"
+ − 1950 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 1951 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 1952 cross_compiling=no
+ − 1953
420
+ − 1954 cat > conftest.$ac_ext << EOF
+ − 1955
505
+ − 1956 #line 1957 "configure"
420
+ − 1957 #include "confdefs.h"
+ − 1958
157
+ − 1959 main(){return(0);}
+ − 1960 EOF
505
+ − 1961 if { (eval echo configure:1962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
157
+ − 1962 ac_cv_prog_cc_works=yes
+ − 1963 # If we can't run a trivial program, we are probably using a cross compiler.
+ − 1964 if (./conftest; exit) 2>/dev/null; then
+ − 1965 ac_cv_prog_cc_cross=no
+ − 1966 else
+ − 1967 ac_cv_prog_cc_cross=yes
+ − 1968 fi
+ − 1969 else
+ − 1970 echo "configure: failed program was:" >&5
+ − 1971 cat conftest.$ac_ext >&5
+ − 1972 ac_cv_prog_cc_works=no
+ − 1973 fi
+ − 1974 rm -fr conftest*
420
+ − 1975 ac_ext=c
+ − 1976 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 1977 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 1978 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
+ − 1979 ac_cpp='$CPP '"$xe_cppflags"
+ − 1980 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 1981 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 1982 cross_compiling=no
157
+ − 1983
+ − 1984 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
+ − 1985 if test $ac_cv_prog_cc_works = no; then
+ − 1986 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
+ − 1987 fi
+ − 1988 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
505
+ − 1989 echo "configure:1990: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
157
+ − 1990 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
+ − 1991 cross_compiling=$ac_cv_prog_cc_cross
+ − 1992
+ − 1993 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
505
+ − 1994 echo "configure:1995: checking whether we are using GNU C" >&5
157
+ − 1995
+ − 1996 cat > conftest.c <<EOF
+ − 1997 #ifdef __GNUC__
+ − 1998 yes;
+ − 1999 #endif
+ − 2000 EOF
505
+ − 2001 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
157
+ − 2002 ac_cv_prog_gcc=yes
+ − 2003 else
+ − 2004 ac_cv_prog_gcc=no
+ − 2005 fi
+ − 2006
+ − 2007 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
+ − 2008
+ − 2009 if test $ac_cv_prog_gcc = yes; then
+ − 2010 GCC=yes
420
+ − 2011 else
+ − 2012 GCC=
+ − 2013 fi
+ − 2014
+ − 2015 ac_test_CFLAGS="${CFLAGS+set}"
+ − 2016 ac_save_CFLAGS="$CFLAGS"
+ − 2017 CFLAGS=
+ − 2018 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
505
+ − 2019 echo "configure:2020: checking whether ${CC-cc} accepts -g" >&5
157
+ − 2020
+ − 2021 echo 'void f(){}' > conftest.c
+ − 2022 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
+ − 2023 ac_cv_prog_cc_g=yes
+ − 2024 else
+ − 2025 ac_cv_prog_cc_g=no
+ − 2026 fi
+ − 2027 rm -f conftest*
+ − 2028
+ − 2029
+ − 2030 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
+ − 2031 if test "$ac_test_CFLAGS" = set; then
+ − 2032 CFLAGS="$ac_save_CFLAGS"
+ − 2033 elif test $ac_cv_prog_cc_g = yes; then
+ − 2034 if test "$GCC" = yes; then
157
+ − 2035 CFLAGS="-g -O2"
+ − 2036 else
420
+ − 2037 CFLAGS="-g"
+ − 2038 fi
+ − 2039 else
+ − 2040 if test "$GCC" = yes; then
157
+ − 2041 CFLAGS="-O2"
420
+ − 2042 else
+ − 2043 CFLAGS=
+ − 2044 fi
157
+ − 2045 fi
+ − 2046
169
+ − 2047 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
157
+ − 2048 CC=gcc
+ − 2049 # Extract the first word of "gcc", so it can be a program name with args.
+ − 2050 set dummy gcc; ac_word=$2
+ − 2051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
+ − 2052 echo "configure:2053: checking for $ac_word" >&5
157
+ − 2053
+ − 2054 if test -n "$CC"; then
+ − 2055 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 2056 else
420
+ − 2057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 2058 ac_dummy="$PATH"
+ − 2059 for ac_dir in $ac_dummy; do
157
+ − 2060 test -z "$ac_dir" && ac_dir=.
+ − 2061 if test -f $ac_dir/$ac_word; then
+ − 2062 ac_cv_prog_CC="gcc"
+ − 2063 break
+ − 2064 fi
+ − 2065 done
+ − 2066 IFS="$ac_save_ifs"
+ − 2067 fi
+ − 2068 CC="$ac_cv_prog_CC"
+ − 2069 if test -n "$CC"; then
+ − 2070 echo "$ac_t""$CC" 1>&6
+ − 2071 else
+ − 2072 echo "$ac_t""no" 1>&6
+ − 2073 fi
+ − 2074
+ − 2075 if test -z "$CC"; then
+ − 2076 # Extract the first word of "cc", so it can be a program name with args.
+ − 2077 set dummy cc; ac_word=$2
+ − 2078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
+ − 2079 echo "configure:2080: checking for $ac_word" >&5
149
+ − 2080
+ − 2081 if test -n "$CC"; then
+ − 2082 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 2083 else
420
+ − 2084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
149
+ − 2085 ac_prog_rejected=no
420
+ − 2086 ac_dummy="$PATH"
+ − 2087 for ac_dir in $ac_dummy; do
149
+ − 2088 test -z "$ac_dir" && ac_dir=.
+ − 2089 if test -f $ac_dir/$ac_word; then
+ − 2090 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
+ − 2091 ac_prog_rejected=yes
+ − 2092 continue
+ − 2093 fi
+ − 2094 ac_cv_prog_CC="cc"
+ − 2095 break
+ − 2096 fi
+ − 2097 done
+ − 2098 IFS="$ac_save_ifs"
+ − 2099 if test $ac_prog_rejected = yes; then
+ − 2100 # We found a bogon in the path, so make sure we never use it.
+ − 2101 set dummy $ac_cv_prog_CC
+ − 2102 shift
+ − 2103 if test $# -gt 0; then
+ − 2104 # We chose a different compiler from the bogus one.
+ − 2105 # However, it has the same basename, so the bogon will be chosen
+ − 2106 # first if we set CC to just the basename; use the full file name.
+ − 2107 shift
+ − 2108 set dummy "$ac_dir/$ac_word" "$@"
+ − 2109 shift
+ − 2110 ac_cv_prog_CC="$@"
+ − 2111 fi
+ − 2112 fi
+ − 2113 fi
+ − 2114 CC="$ac_cv_prog_CC"
+ − 2115 if test -n "$CC"; then
+ − 2116 echo "$ac_t""$CC" 1>&6
+ − 2117 else
+ − 2118 echo "$ac_t""no" 1>&6
+ − 2119 fi
+ − 2120
420
+ − 2121 if test -z "$CC"; then
+ − 2122 case "`uname -s`" in
+ − 2123 *win32* | *WIN32*)
+ − 2124 # Extract the first word of "cl", so it can be a program name with args.
+ − 2125 set dummy cl; ac_word=$2
+ − 2126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
+ − 2127 echo "configure:2128: checking for $ac_word" >&5
420
+ − 2128
+ − 2129 if test -n "$CC"; then
+ − 2130 ac_cv_prog_CC="$CC" # Let the user override the test.
+ − 2131 else
+ − 2132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 2133 ac_dummy="$PATH"
+ − 2134 for ac_dir in $ac_dummy; do
+ − 2135 test -z "$ac_dir" && ac_dir=.
+ − 2136 if test -f $ac_dir/$ac_word; then
+ − 2137 ac_cv_prog_CC="cl"
+ − 2138 break
+ − 2139 fi
+ − 2140 done
+ − 2141 IFS="$ac_save_ifs"
+ − 2142 fi
+ − 2143 CC="$ac_cv_prog_CC"
+ − 2144 if test -n "$CC"; then
+ − 2145 echo "$ac_t""$CC" 1>&6
+ − 2146 else
+ − 2147 echo "$ac_t""no" 1>&6
+ − 2148 fi
+ − 2149 ;;
+ − 2150 esac
+ − 2151 fi
149
+ − 2152 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
+ − 2153 fi
+ − 2154
+ − 2155 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
505
+ − 2156 echo "configure:2157: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
149
+ − 2157
+ − 2158 ac_ext=c
151
+ − 2159 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 2160 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 2161 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
+ − 2162 ac_cpp='$CPP '"$xe_cppflags"
151
+ − 2163 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 2164 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
+ − 2165 cross_compiling=no
+ − 2166
420
+ − 2167 cat > conftest.$ac_ext << EOF
+ − 2168
505
+ − 2169 #line 2170 "configure"
420
+ − 2170 #include "confdefs.h"
+ − 2171
149
+ − 2172 main(){return(0);}
+ − 2173 EOF
505
+ − 2174 if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 2175 ac_cv_prog_cc_works=yes
+ − 2176 # If we can't run a trivial program, we are probably using a cross compiler.
+ − 2177 if (./conftest; exit) 2>/dev/null; then
+ − 2178 ac_cv_prog_cc_cross=no
+ − 2179 else
+ − 2180 ac_cv_prog_cc_cross=yes
+ − 2181 fi
+ − 2182 else
+ − 2183 echo "configure: failed program was:" >&5
+ − 2184 cat conftest.$ac_ext >&5
+ − 2185 ac_cv_prog_cc_works=no
+ − 2186 fi
+ − 2187 rm -fr conftest*
420
+ − 2188 ac_ext=c
+ − 2189 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
+ − 2190 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
+ − 2191 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
+ − 2192 ac_cpp='$CPP '"$xe_cppflags"
+ − 2193 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
+ − 2194 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 2195 cross_compiling=no
149
+ − 2196
+ − 2197 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
+ − 2198 if test $ac_cv_prog_cc_works = no; then
+ − 2199 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
+ − 2200 fi
+ − 2201 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
505
+ − 2202 echo "configure:2203: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
149
+ − 2203 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
+ − 2204 cross_compiling=$ac_cv_prog_cc_cross
+ − 2205
+ − 2206 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
505
+ − 2207 echo "configure:2208: checking whether we are using GNU C" >&5
149
+ − 2208
+ − 2209 cat > conftest.c <<EOF
+ − 2210 #ifdef __GNUC__
+ − 2211 yes;
+ − 2212 #endif
+ − 2213 EOF
505
+ − 2214 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
149
+ − 2215 ac_cv_prog_gcc=yes
+ − 2216 else
+ − 2217 ac_cv_prog_gcc=no
+ − 2218 fi
+ − 2219
+ − 2220 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
+ − 2221
+ − 2222 if test $ac_cv_prog_gcc = yes; then
+ − 2223 GCC=yes
420
+ − 2224 else
+ − 2225 GCC=
+ − 2226 fi
+ − 2227
+ − 2228 ac_test_CFLAGS="${CFLAGS+set}"
+ − 2229 ac_save_CFLAGS="$CFLAGS"
+ − 2230 CFLAGS=
+ − 2231 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
505
+ − 2232 echo "configure:2233: checking whether ${CC-cc} accepts -g" >&5
149
+ − 2233
+ − 2234 echo 'void f(){}' > conftest.c
+ − 2235 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
+ − 2236 ac_cv_prog_cc_g=yes
+ − 2237 else
+ − 2238 ac_cv_prog_cc_g=no
+ − 2239 fi
+ − 2240 rm -f conftest*
+ − 2241
+ − 2242
+ − 2243 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
+ − 2244 if test "$ac_test_CFLAGS" = set; then
+ − 2245 CFLAGS="$ac_save_CFLAGS"
+ − 2246 elif test $ac_cv_prog_cc_g = yes; then
+ − 2247 if test "$GCC" = yes; then
149
+ − 2248 CFLAGS="-g -O2"
+ − 2249 else
420
+ − 2250 CFLAGS="-g"
+ − 2251 fi
+ − 2252 else
+ − 2253 if test "$GCC" = yes; then
149
+ − 2254 CFLAGS="-O2"
420
+ − 2255 else
+ − 2256 CFLAGS=
+ − 2257 fi
149
+ − 2258 fi
+ − 2259
157
+ − 2260 fi
+ − 2261 CFLAGS="$xe_save_CFLAGS"
149
+ − 2262
171
+ − 2263
+ − 2264 test -n "$CPP" -a -d "$CPP" && CPP=
+ − 2265
169
+ − 2266 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
149
+ − 2267
+ − 2268 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
505
+ − 2269 echo "configure:2270: checking how to run the C preprocessor" >&5
149
+ − 2270 # On Suns, sometimes $CPP names a directory.
+ − 2271 if test -n "$CPP" && test -d "$CPP"; then
+ − 2272 CPP=
+ − 2273 fi
0
+ − 2274 if test -z "$CPP"; then
149
+ − 2275
0
+ − 2276 # This must be in double quotes, not single quotes, because CPP may get
149
+ − 2277 # substituted into the Makefile and "${CC-cc}" will confuse make.
0
+ − 2278 CPP="${CC-cc} -E"
149
+ − 2279 # On the NeXT, cc -E runs the code through the compiler's parser,
+ − 2280 # not just through cpp.
+ − 2281 cat > conftest.$ac_ext <<EOF
505
+ − 2282 #line 2283 "configure"
149
+ − 2283 #include "confdefs.h"
+ − 2284 #include <assert.h>
0
+ − 2285 Syntax Error
+ − 2286 EOF
149
+ − 2287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
505
+ − 2288 { (eval echo configure:2289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 2289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 2290 if test -z "$ac_err"; then
+ − 2291 :
+ − 2292 else
+ − 2293 echo "$ac_err" >&5
+ − 2294 echo "configure: failed program was:" >&5
+ − 2295 cat conftest.$ac_ext >&5
+ − 2296 rm -rf conftest*
+ − 2297 CPP="${CC-cc} -E -traditional-cpp"
+ − 2298 cat > conftest.$ac_ext <<EOF
505
+ − 2299 #line 2300 "configure"
149
+ − 2300 #include "confdefs.h"
+ − 2301 #include <assert.h>
+ − 2302 Syntax Error
+ − 2303 EOF
+ − 2304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
505
+ − 2305 { (eval echo configure:2306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 2306 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 2307 if test -z "$ac_err"; then
+ − 2308 :
+ − 2309 else
+ − 2310 echo "$ac_err" >&5
+ − 2311 echo "configure: failed program was:" >&5
+ − 2312 cat conftest.$ac_ext >&5
+ − 2313 rm -rf conftest*
+ − 2314 CPP="${CC-cc} -nologo -E"
+ − 2315 cat > conftest.$ac_ext <<EOF
505
+ − 2316 #line 2317 "configure"
420
+ − 2317 #include "confdefs.h"
+ − 2318 #include <assert.h>
+ − 2319 Syntax Error
+ − 2320 EOF
+ − 2321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
505
+ − 2322 { (eval echo configure:2323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 2323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 2324 if test -z "$ac_err"; then
+ − 2325 :
+ − 2326 else
149
+ − 2327 echo "$ac_err" >&5
+ − 2328 echo "configure: failed program was:" >&5
+ − 2329 cat conftest.$ac_ext >&5
0
+ − 2330 rm -rf conftest*
+ − 2331 CPP=/lib/cpp
+ − 2332 fi
+ − 2333 rm -f conftest*
+ − 2334 fi
+ − 2335 rm -f conftest*
420
+ − 2336 fi
+ − 2337 rm -f conftest*
149
+ − 2338 ac_cv_prog_CPP="$CPP"
+ − 2339 CPP="$ac_cv_prog_CPP"
+ − 2340 else
+ − 2341 ac_cv_prog_CPP="$CPP"
+ − 2342 fi
+ − 2343 echo "$ac_t""$CPP" 1>&6
+ − 2344
+ − 2345
442
+ − 2346
157
+ − 2347 echo $ac_n "checking for AIX""... $ac_c" 1>&6
505
+ − 2348 echo "configure:2349: checking for AIX" >&5
+ − 2349 cat > conftest.$ac_ext <<EOF
+ − 2350 #line 2351 "configure"
157
+ − 2351 #include "confdefs.h"
+ − 2352 #ifdef _AIX
+ − 2353 yes
+ − 2354 #endif
+ − 2355
+ − 2356 EOF
+ − 2357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 2358 egrep "yes" >/dev/null 2>&1; then
+ − 2359 rm -rf conftest*
+ − 2360 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2361 Defining _ALL_SOURCE
+ − 2362 EOF
+ − 2363 cat >> confdefs.h <<\EOF
+ − 2364 #define _ALL_SOURCE 1
+ − 2365 EOF
+ − 2366 }
+ − 2367
+ − 2368 else
+ − 2369 rm -rf conftest*
+ − 2370 echo "$ac_t""no" 1>&6
+ − 2371 fi
+ − 2372 rm -f conftest*
+ − 2373
442
+ − 2374
410
+ − 2375
+ − 2376 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
505
+ − 2377 echo "configure:2378: checking for GNU libc" >&5
+ − 2378 cat > conftest.$ac_ext <<EOF
+ − 2379 #line 2380 "configure"
406
+ − 2380 #include "confdefs.h"
243
+ − 2381 #include <features.h>
+ − 2382 int main() {
+ − 2383
+ − 2384 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
+ − 2385 #error Not a GNU libc system :-(
+ − 2386 ******* ======= ******** &&&&&&&&
+ − 2387 #endif
+ − 2388
+ − 2389 ; return 0; }
+ − 2390 EOF
505
+ − 2391 if { (eval echo configure:2392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
243
+ − 2392 rm -rf conftest*
+ − 2393 have_glibc=yes
+ − 2394 else
+ − 2395 echo "configure: failed program was:" >&5
+ − 2396 cat conftest.$ac_ext >&5
+ − 2397 rm -rf conftest*
+ − 2398 have_glibc=no
+ − 2399 fi
+ − 2400 rm -f conftest*
+ − 2401 echo "$ac_t""$have_glibc" 1>&6
272
+ − 2402 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2403 Defining _GNU_SOURCE
+ − 2404 EOF
+ − 2405 cat >> confdefs.h <<\EOF
+ − 2406 #define _GNU_SOURCE 1
+ − 2407 EOF
+ − 2408 }
+ − 2409
243
+ − 2410
442
+ − 2411 case "$opsys" in
+ − 2412 sol2)
+ − 2413 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2414 Defining __EXTENSIONS__
+ − 2415 EOF
+ − 2416 cat >> confdefs.h <<\EOF
+ − 2417 #define __EXTENSIONS__ 1
+ − 2418 EOF
+ − 2419 }
+ − 2420
+ − 2421 if test "$os_release" -ge 55; then
+ − 2422 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2423 Defining _XOPEN_SOURCE = 500
+ − 2424 EOF
+ − 2425 cat >> confdefs.h <<\EOF
+ − 2426 #define _XOPEN_SOURCE 500
+ − 2427 EOF
+ − 2428 }
+ − 2429
+ − 2430 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2431 Defining _XOPEN_SOURCE_EXTENDED
+ − 2432 EOF
+ − 2433 cat >> confdefs.h <<\EOF
+ − 2434 #define _XOPEN_SOURCE_EXTENDED 1
+ − 2435 EOF
+ − 2436 }
+ − 2437
+ − 2438 fi ;;
+ − 2439 linux)
+ − 2440 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2441 Defining _POSIX_C_SOURCE = 199506L
+ − 2442 EOF
+ − 2443 cat >> confdefs.h <<\EOF
+ − 2444 #define _POSIX_C_SOURCE 199506L
+ − 2445 EOF
+ − 2446 }
+ − 2447
+ − 2448 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2449 Defining _XOPEN_SOURCE = 500
+ − 2450 EOF
+ − 2451 cat >> confdefs.h <<\EOF
+ − 2452 #define _XOPEN_SOURCE 500
+ − 2453 EOF
+ − 2454 }
+ − 2455
+ − 2456 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2457 Defining _XOPEN_SOURCE_EXTENDED
+ − 2458 EOF
+ − 2459 cat >> confdefs.h <<\EOF
+ − 2460 #define _XOPEN_SOURCE_EXTENDED 1
+ − 2461 EOF
+ − 2462 }
+ − 2463
+ − 2464 ;;
+ − 2465 esac
+ − 2466
+ − 2467 cat > conftest.$ac_ext <<EOF
505
+ − 2468 #line 2469 "configure"
373
+ − 2469 #include "confdefs.h"
+ − 2470 int main () {
+ − 2471 #if defined __SUNPRO_C
+ − 2472 return 11;
+ − 2473 #elif defined __DECC
+ − 2474 return 12;
442
+ − 2475 #elif defined __USLC__ && defined __SCO_VERSION__
+ − 2476 return 13;
373
+ − 2477 #else
+ − 2478 return 0;
+ − 2479 #endif
+ − 2480 }
+ − 2481 EOF
505
+ − 2482 if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
373
+ − 2483 then
+ − 2484 :
+ − 2485 else
+ − 2486 conftest_rc="$?"
+ − 2487 echo "configure: failed program was:" >&5
+ − 2488 cat conftest.$ac_ext >&5
+ − 2489 rm -fr conftest*
+ − 2490 case "$conftest_rc" in
+ − 2491 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
+ − 2492 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
442
+ − 2493 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
373
+ − 2494 esac
+ − 2495 fi
+ − 2496 rm -fr conftest*
+ − 2497
157
+ − 2498
0
+ − 2499
149
+ − 2500
+ − 2501 echo "Extracting information from the machine- and system-dependent headers..."
+ − 2502
+ − 2503 tempcname="conftest.c"
+ − 2504
+ − 2505
+ − 2506
442
+ − 2507 cat > $tempcname < confdefs.h
+ − 2508 cat >> $tempcname <<EOF
149
+ − 2509 #define NOT_C_CODE
+ − 2510 #define C_SWITCH_SITE
+ − 2511 #define C_SWITCH_X_SITE
+ − 2512 #define LD_SWITCH_SITE
+ − 2513 #define LD_SWITCH_X_SITE
+ − 2514 #define LD_SWITCH_X_SITE_AUX
284
+ − 2515 #define OS_RELEASE $os_release
442
+ − 2516
+ − 2517 #ifdef config_opsysfile
284
+ − 2518 #include "$srcdir/src/$opsysfile"
442
+ − 2519 #endif
+ − 2520
+ − 2521 #ifdef config_machfile
284
+ − 2522 #include "$srcdir/src/$machfile"
442
+ − 2523 #endif
149
+ − 2524
+ − 2525 #ifndef LIBS_MACHINE
151
+ − 2526 #define LIBS_MACHINE
149
+ − 2527 #endif
+ − 2528 configure___ libs_machine=LIBS_MACHINE
+ − 2529
+ − 2530 #ifndef LIBS_SYSTEM
151
+ − 2531 #define LIBS_SYSTEM
149
+ − 2532 #endif
+ − 2533 configure___ libs_system=LIBS_SYSTEM
+ − 2534
+ − 2535 #ifndef LIBS_TERMCAP
151
+ − 2536 #define LIBS_TERMCAP
149
+ − 2537 #endif
+ − 2538 configure___ libs_termcap=LIBS_TERMCAP
+ − 2539
+ − 2540 #ifndef LIB_STANDARD
151
+ − 2541 #define LIB_STANDARD
149
+ − 2542 #endif
+ − 2543 configure___ libs_standard=LIB_STANDARD
+ − 2544
+ − 2545
163
+ − 2546 #ifndef OBJECTS_MACHINE
+ − 2547 #define OBJECTS_MACHINE
+ − 2548 #endif
+ − 2549 configure___ objects_machine=OBJECTS_MACHINE
+ − 2550
+ − 2551 #ifndef OBJECTS_SYSTEM
+ − 2552 #define OBJECTS_SYSTEM
+ − 2553 #endif
+ − 2554 configure___ objects_system=OBJECTS_SYSTEM
+ − 2555
+ − 2556
149
+ − 2557 #ifndef C_SWITCH_MACHINE
151
+ − 2558 #define C_SWITCH_MACHINE
149
+ − 2559 #endif
+ − 2560 configure___ c_switch_machine=C_SWITCH_MACHINE
+ − 2561
157
+ − 2562 #ifndef C_SWITCH_SYSTEM
+ − 2563 #define C_SWITCH_SYSTEM
+ − 2564 #endif
+ − 2565 configure___ c_switch_system=C_SWITCH_SYSTEM
+ − 2566
+ − 2567
+ − 2568 #ifndef LD_SWITCH_MACHINE
+ − 2569 #define LD_SWITCH_MACHINE
+ − 2570 #endif
+ − 2571 configure___ ld_switch_machine=LD_SWITCH_MACHINE
+ − 2572
+ − 2573 #ifndef LD_SWITCH_SYSTEM
+ − 2574 #define LD_SWITCH_SYSTEM
+ − 2575 #endif
+ − 2576 configure___ ld_switch_system=LD_SWITCH_SYSTEM
+ − 2577
149
+ − 2578
+ − 2579 #ifndef UNEXEC
561
+ − 2580 #define UNEXEC
149
+ − 2581 #endif
+ − 2582 configure___ unexec=UNEXEC
+ − 2583
+ − 2584
561
+ − 2585 #ifndef SYSTEM_TYPE
+ − 2586 #define SYSTEM_TYPE
+ − 2587 #endif
+ − 2588 configure___ system_type=SYSTEM_TYPE
+ − 2589
+ − 2590
163
+ − 2591 #ifndef LD_SWITCH_SHARED
+ − 2592 #define LD_SWITCH_SHARED "-c"
+ − 2593 #endif
+ − 2594 configure___ ld_switch_shared=LD_SWITCH_SHARED
+ − 2595
+ − 2596
442
+ − 2597 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
+ − 2598 configure___ ordinary_ld=ORDINARY_LD
+ − 2599
163
+ − 2600 #ifdef ORDINARY_LINK
442
+ − 2601 #define LD ORDINARY_LD
163
+ − 2602 #else /* no ORDINARY LINK */
+ − 2603 #ifdef COFF_ENCAPSULATE
284
+ − 2604 #define LD "\$(CC) -nostdlib"
163
+ − 2605 #else /* not COFF_ENCAPSULATE */
+ − 2606 #ifdef LINKER
+ − 2607 #define LD LINKER
+ − 2608 #else /* ! defined (LINKER) */
+ − 2609 #define LD "ld"
+ − 2610 #endif /* ! defined (LINKER) */
+ − 2611 #endif /* ! defined (COFF_ENCAPSULATE) */
+ − 2612 #endif /* not ORDINARY_LINK */
+ − 2613 configure___ ld=LD
+ − 2614
+ − 2615 #ifndef LIB_GCC
+ − 2616 #define LIB_GCC
+ − 2617 #endif
+ − 2618 configure___ lib_gcc=LIB_GCC
+ − 2619
+ − 2620 #ifndef LD_TEXT_START_ADDR
+ − 2621 #define LD_TEXT_START_ADDR
+ − 2622 #endif
+ − 2623 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
+ − 2624
+ − 2625
+ − 2626 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
+ − 2627 #ifdef NO_REMAP
+ − 2628 #ifdef COFF_ENCAPSULATE
+ − 2629 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
+ − 2630 #else /* ! defined (COFF_ENCAPSULATE) */
+ − 2631 #define START_FILES "pre-crt0.o /lib/crt0.o"
+ − 2632 #endif /* ! defined (COFF_ENCAPSULATE) */
+ − 2633 #else /* ! defined (NO_REMAP) */
+ − 2634 #define START_FILES "ecrt0.o"
+ − 2635 #endif /* ! defined (NO_REMAP) */
+ − 2636 #endif /* no ORDINARY_LINK */
+ − 2637 #ifndef START_FILES
+ − 2638 #define START_FILES
+ − 2639 #endif
+ − 2640 configure___ start_files=START_FILES
+ − 2641
153
+ − 2642 #ifdef ORDINARY_LINK
+ − 2643 configure___ ordinary_link=yes
+ − 2644 #else
+ − 2645 configure___ ordinary_link=no
+ − 2646 #endif
+ − 2647
149
+ − 2648 #ifdef SYSTEM_MALLOC
+ − 2649 configure___ system_malloc=yes
+ − 2650 #else
+ − 2651 configure___ system_malloc=no
+ − 2652 #endif
+ − 2653
+ − 2654 #ifdef TERMINFO
+ − 2655 configure___ have_terminfo=yes
+ − 2656 #else
+ − 2657 configure___ have_terminfo=no
+ − 2658 #endif
+ − 2659
+ − 2660 #ifdef MAIL_USE_FLOCK
+ − 2661 configure___ mail_use_flock=yes
+ − 2662 #else
+ − 2663 configure___ mail_use_flock=no
+ − 2664 #endif
+ − 2665
+ − 2666 #ifdef MAIL_USE_LOCKF
+ − 2667 configure___ mail_use_lockf=yes
+ − 2668 #else
+ − 2669 configure___ mail_use_lockf=no
+ − 2670 #endif
+ − 2671
438
+ − 2672 #ifdef MAIL_USE_LOCKING
+ − 2673 configure___ mail_use_locking=yes
+ − 2674 #else
+ − 2675 configure___ mail_use_locking=no
+ − 2676 #endif
+ − 2677
398
+ − 2678 #ifdef HAVE_WIN32_PROCESSES
+ − 2679 configure___ win32_processes=yes
+ − 2680 #else
+ − 2681 configure___ win32_processes=no
+ − 2682 #endif
+ − 2683
284
+ − 2684 EOF
+ − 2685
380
+ − 2686 CPP=`eval "echo $CPP $CPPFLAGS"`
149
+ − 2687 eval `$CPP -Isrc $tempcname \
165
+ − 2688 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
153
+ − 2689
149
+ − 2690 rm $tempcname
+ − 2691
561
+ − 2692 test -z "$system_type" && \
+ − 2693 { test "$extra_verbose" = "yes" && cat << EOF
+ − 2694 Defining SYSTEM_TYPE = "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
+ − 2695 EOF
+ − 2696 cat >> confdefs.h <<EOF
+ − 2697 #define SYSTEM_TYPE "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
+ − 2698 EOF
+ − 2699 }
+ − 2700
+ − 2701
+ − 2702 test -z "$unexec" && pdump=yes
+ − 2703
442
+ − 2704 if test "$pdump" = "yes"; then
+ − 2705 ordinary_link="yes"
+ − 2706 ld="${ordinary_ld}"
+ − 2707 start_files=
+ − 2708 libs_standard=
+ − 2709 unexec=
+ − 2710 lib_gcc=
+ − 2711 fi
+ − 2712
163
+ − 2713 test "$extra_verbose" = "yes" && \
201
+ − 2714 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
+ − 2715
458
+ − 2716 case "$opsys" in mingw* | cygwin*)
452
+ − 2717 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
+ − 2718 cygwin_include=`eval "dirname $cygwin_include"` ;
+ − 2719 cygwin_include="-I$cygwin_include/../include" ;
462
+ − 2720 extra_includes="$cygwin_include/mingw $cygwin_include" ;
458
+ − 2721 case "$opsys" in mingw*)
452
+ − 2722 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
+ − 2723 esac
458
+ − 2724 ;;
438
+ − 2725 esac
+ − 2726
153
+ − 2727 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
+ − 2728
442
+ − 2729
+ − 2730 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
+ − 2731
+ − 2732 if test "$__USLC__" = yes; then
+ − 2733 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
561
+ − 2734 echo "configure:2735: checking for whether the -Kalloca compiler flag is needed" >&5
442
+ − 2735 need_kalloca=no
+ − 2736 cat > conftest.$ac_ext <<EOF
561
+ − 2737 #line 2738 "configure"
442
+ − 2738 #include "confdefs.h"
+ − 2739
+ − 2740 int main() {
+ − 2741 void *x = alloca(4);
+ − 2742 ; return 0; }
+ − 2743 EOF
561
+ − 2744 if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 2745 rm -rf conftest*
+ − 2746 :
+ − 2747 else
+ − 2748 echo "configure: failed program was:" >&5
+ − 2749 cat conftest.$ac_ext >&5
+ − 2750 rm -rf conftest*
+ − 2751
+ − 2752 xe_save_c_switch_system="$c_switch_system"
+ − 2753 c_switch_system="$c_switch_system -Kalloca"
+ − 2754 cat > conftest.$ac_ext <<EOF
561
+ − 2755 #line 2756 "configure"
442
+ − 2756 #include "confdefs.h"
+ − 2757
+ − 2758 int main() {
+ − 2759 void *x = alloca(4);
+ − 2760 ; return 0; }
+ − 2761 EOF
561
+ − 2762 if { (eval echo configure:2763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 2763 rm -rf conftest*
+ − 2764 need_kalloca=yes
+ − 2765 else
+ − 2766 echo "configure: failed program was:" >&5
+ − 2767 cat conftest.$ac_ext >&5
+ − 2768 fi
+ − 2769 rm -f conftest*
+ − 2770 c_switch_system="$xe_save_c_switch_system"
+ − 2771 fi
+ − 2772 rm -f conftest*
+ − 2773 echo "$ac_t""$need_kalloca" 1>&6
+ − 2774 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
+ − 2775 fi
373
+ − 2776
272
+ − 2777 if test "$cflags_specified" = "no"; then
157
+ − 2778 if test "$GCC" = "yes"; then
458
+ − 2779 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow"
464
+ − 2780 CFLAGS="$CFLAGS -Wsign-compare"
458
+ − 2781 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
398
+ − 2782 elif test "$__SUNPRO_C" = "yes"; then
157
+ − 2783 case "$opsys" in
163
+ − 2784 sol2 ) CFLAGS="-v -xO4" ;;
+ − 2785 sunos4* ) CFLAGS="-xO2";;
157
+ − 2786 esac
373
+ − 2787 elif test "$__DECC" = "yes"; then
+ − 2788 CFLAGS="-O3"
207
+ − 2789 elif test "$CC" = "xlc"; then
373
+ − 2790 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
+ − 2791 else
+ − 2792 CFLAGS="-O" ; fi
272
+ − 2793 fi
+ − 2794
442
+ − 2795 if test "$GCC" = "yes"; then
+ − 2796 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
561
+ − 2797 echo "configure:2798: checking for buggy gcc versions" >&5
442
+ − 2798 GCC_VERSION=`$CC --version`
+ − 2799 case `uname -s`:`uname -m`:$GCC_VERSION in
+ − 2800 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
+ − 2801 case "$CFLAGS" in
+ − 2802 *-O2*|*-O3*)
+ − 2803 case "$CFLAGS" in
+ − 2804 *-fno-schedule-insns*) ;;
+ − 2805 *)
+ − 2806 echo "$ac_t""yes" 1>&6
+ − 2807 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
+ − 2808 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
+ − 2809 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
+ − 2810 ;;
+ − 2811 esac
+ − 2812 ;;
+ − 2813 esac
+ − 2814 ;;
+ − 2815 Linux:alpha:egcs-2.91.*)
+ − 2816 echo "$ac_t""yes" 1>&6
+ − 2817 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
+ − 2818 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
+ − 2819 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
+ − 2820 ;;
+ − 2821 *:i*86*:2.7.2*)
448
+ − 2822 case "$CFLAGS" in
+ − 2823 *-O2*|*-O3*)
+ − 2824 case "$GCC_VERSION" in
+ − 2825 2.7.2)
442
+ − 2826 case "$CFLAGS" in
+ − 2827 *-fno-strength-reduce*) ;;
+ − 2828 *)
+ − 2829 echo "$ac_t""yes" 1>&6
+ − 2830 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
+ − 2831 echo "configure: warning: -fno-strength-reduce." 1>&2
+ − 2832 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
+ − 2833 ;;
+ − 2834 esac
+ − 2835 ;;
+ − 2836 esac
448
+ − 2837 case "$CFLAGS" in
+ − 2838 *-fno-caller-saves*) ;;
+ − 2839 *)
+ − 2840 echo "$ac_t""yes" 1>&6
+ − 2841 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
+ − 2842 echo "configure: warning: -fno-caller-saves." 1>&2
+ − 2843 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
+ − 2844 ;;
+ − 2845 esac
442
+ − 2846 ;;
+ − 2847 esac
+ − 2848 ;;
+ − 2849 esac
+ − 2850 echo "$ac_t""no" 1>&6
+ − 2851 fi
+ − 2852
272
+ − 2853
+ − 2854 if test "$GCC" = "yes"; then
+ − 2855 set x $ld_switch_system; shift; ld_switch_system=""
+ − 2856 while test -n "$1"; do
+ − 2857 case $1 in
380
+ − 2858 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
+ − 2859 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
272
+ − 2860 -Xlinker* ) ;;
+ − 2861 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
+ − 2862 esac
+ − 2863 shift
+ − 2864 done
157
+ − 2865 fi
151
+ − 2866
163
+ − 2867 if test "$GCC" = "yes"; then
272
+ − 2868 set x $ld_switch_machine; shift; ld_switch_machine=""
+ − 2869 while test -n "$1"; do
+ − 2870 case $1 in
380
+ − 2871 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
+ − 2872 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
163
+ − 2873 -Xlinker* ) ;;
272
+ − 2874 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
163
+ − 2875 esac
272
+ − 2876 shift
163
+ − 2877 done
272
+ − 2878 fi
+ − 2879
+ − 2880 if test "$GCC" = "yes"; then
+ − 2881 set x $LDFLAGS; shift; LDFLAGS=""
+ − 2882 while test -n "$1"; do
+ − 2883 case $1 in
380
+ − 2884 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
+ − 2885 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
163
+ − 2886 -Xlinker* ) ;;
272
+ − 2887 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
163
+ − 2888 esac
272
+ − 2889 shift
163
+ − 2890 done
272
+ − 2891 fi
+ − 2892
+ − 2893 if test "$GCC" = "yes"; then
+ − 2894 set x $ld_call_shared; shift; ld_call_shared=""
+ − 2895 while test -n "$1"; do
+ − 2896 case $1 in
380
+ − 2897 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
+ − 2898 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
173
+ − 2899 -Xlinker* ) ;;
272
+ − 2900 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
173
+ − 2901 esac
272
+ − 2902 shift
173
+ − 2903 done
163
+ − 2904 fi
+ − 2905
+ − 2906 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
+ − 2907 echo " xemacs will be linked with \"$objects_machine\""
+ − 2908 fi
+ − 2909 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
+ − 2910 echo " xemacs will be linked with \"$objects_system\""
+ − 2911 fi
442
+ − 2912 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
151
+ − 2913 echo " xemacs will be linked with \"$unexec\""
+ − 2914 fi
442
+ − 2915 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
+ − 2916 echo " xemacs will be linked with \"dumper.o\""
+ − 2917 fi
151
+ − 2918
163
+ − 2919 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
561
+ − 2920 echo "configure:2921: checking for dynodump" >&5
163
+ − 2921 if test "$unexec" != "unexsol2.o"; then
+ − 2922 echo "$ac_t""no" 1>&6
+ − 2923 else
+ − 2924 echo "$ac_t""yes" 1>&6
+ − 2925 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 2926 Defining DYNODUMP
+ − 2927 EOF
+ − 2928 cat >> confdefs.h <<\EOF
+ − 2929 #define DYNODUMP 1
+ − 2930 EOF
+ − 2931 }
+ − 2932
+ − 2933 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
175
+ − 2934 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
163
+ − 2935 case "$machine" in
+ − 2936 sparc ) dynodump_arch=sparc ;;
+ − 2937 *86* ) dynodump_arch=i386 ;;
+ − 2938 powerpc ) dynodump_arch=ppc ;;
+ − 2939 esac
+ − 2940 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
+ − 2941 fi
+ − 2942
+ − 2943
274
+ − 2944 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
272
+ − 2945
207
+ − 2946 if test "$unexec" = "unexaix.o"; then
219
+ − 2947 if test "$dynamic" = "no"; then
207
+ − 2948 start_flags="-Wl,-bnso,-bnodelcsect"
209
+ − 2949 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
272
+ − 2950 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
207
+ − 2951 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
+ − 2952 done
+ − 2953 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
+ − 2954 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
+ − 2955 done
294
+ − 2956
+ − 2957 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
561
+ − 2958 echo "configure:2959: checking for terminateAndUnload in -lC" >&5
294
+ − 2959 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
+ − 2960
+ − 2961 xe_check_libs=" -lC "
+ − 2962 cat > conftest.$ac_ext <<EOF
561
+ − 2963 #line 2964 "configure"
294
+ − 2964 #include "confdefs.h"
+ − 2965 /* Override any gcc2 internal prototype to avoid an error. */
+ − 2966 /* We use char because int might match the return type of a gcc2
+ − 2967 builtin and then its argument prototype would still apply. */
+ − 2968 char terminateAndUnload();
+ − 2969
+ − 2970 int main() {
+ − 2971 terminateAndUnload()
+ − 2972 ; return 0; }
+ − 2973 EOF
561
+ − 2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
294
+ − 2975 rm -rf conftest*
+ − 2976 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 2977 else
+ − 2978 echo "configure: failed program was:" >&5
+ − 2979 cat conftest.$ac_ext >&5
+ − 2980 rm -rf conftest*
+ − 2981 eval "ac_cv_lib_$ac_lib_var=no"
+ − 2982 fi
+ − 2983 rm -f conftest*
+ − 2984 xe_check_libs=""
+ − 2985
+ − 2986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 2987 echo "$ac_t""yes" 1>&6
+ − 2988 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
+ − 2989 else
+ − 2990 echo "$ac_t""no" 1>&6
+ − 2991 fi
+ − 2992
+ − 2993
272
+ − 2994 fi
207
+ − 2995 elif test -n "$ld_text_start_addr"; then
+ − 2996 start_flags="-T $ld_text_start_addr -e __start"
+ − 2997 fi
+ − 2998
+ − 2999
+ − 3000
163
+ − 3001
+ − 3002 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
+ − 3003 test -z "$linker" && linker='$(CC) -nostdlib'
175
+ − 3004 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
163
+ − 3005 fi
+ − 3006 test "$GCC" != "yes" && lib_gcc=
+ − 3007
+ − 3008
+ − 3009
151
+ − 3010
209
+ − 3011
380
+ − 3012 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
151
+ − 3013 if test -n "$site_libraries"; then
+ − 3014 for arg in $site_libraries; do
380
+ − 3015 case "$arg" in
+ − 3016 -* ) ;;
+ − 3017 * ) test -d "$arg" || \
384
+ − 3018 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
380
+ − 3019 arg="-L${arg}" ;;
+ − 3020 esac
151
+ − 3021 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
+ − 3022 done
+ − 3023 fi
+ − 3024
380
+ − 3025 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
272
+ − 3026 if test -n "$site_includes"; then
151
+ − 3027 for arg in $site_includes; do
380
+ − 3028 case "$arg" in
+ − 3029 -* ) ;;
+ − 3030 * ) test -d "$arg" || \
384
+ − 3031 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
380
+ − 3032 arg="-I${arg}" ;;
+ − 3033 esac
151
+ − 3034 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
+ − 3035 done
+ − 3036 fi
+ − 3037
380
+ − 3038 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
+ − 3039 if test -n "$site_prefixes"; then
+ − 3040 for dir in $site_prefixes; do
398
+ − 3041 lib_dir="${dir}/lib"
416
+ − 3042 inc_dir="${dir}/include"
380
+ − 3043 if test ! -d "$dir"; then
384
+ − 3044 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
380
+ − 3045 elif test ! -d "$lib_dir"; then
384
+ − 3046 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
380
+ − 3047 else
414
+ − 3048 if test -d "$inc_dir"; then
+ − 3049 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
+ − 3050 fi
380
+ − 3051 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
+ − 3052 fi
+ − 3053 done
+ − 3054 fi
+ − 3055
157
+ − 3056
151
+ − 3057 for dir in "/usr/ccs/lib"; do
440
+ − 3058 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
+ − 3059 done
+ − 3060
380
+ − 3061 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
272
+ − 3062 if test -n "$site_runtime_libraries"; then
165
+ − 3063 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
151
+ − 3064 export LD_RUN_PATH
+ − 3065 fi
+ − 3066
+ − 3067
440
+ − 3068
+ − 3069
+ − 3070
+ − 3071 if test -n "$add_runtime_path"; then :;
+ − 3072 elif test "$dynamic" = "no"; then add_runtime_path=no
151
+ − 3073 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
163
+ − 3074 else case "$opsys" in
373
+ − 3075 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
151
+ − 3076 * ) add_runtime_path=no ;;
+ − 3077 esac
+ − 3078 fi
+ − 3079
+ − 3080 if test "$add_runtime_path" = "yes"; then
+ − 3081 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
561
+ − 3082 echo "configure:3083: checking "for runtime libraries flag"" >&5
373
+ − 3083 case "$opsys" in
377
+ − 3084 sol2 ) dash_r="-R" ;;
392
+ − 3085 decosf* | linux* | irix*) dash_r="-rpath " ;;
373
+ − 3086 *)
+ − 3087 dash_r=""
+ − 3088 for try_dash_r in "-R" "-R " "-rpath "; do
+ − 3089 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
+ − 3090
272
+ − 3091 if test "$GCC" = "yes"; then
+ − 3092 set x $xe_check_libs; shift; xe_check_libs=""
+ − 3093 while test -n "$1"; do
+ − 3094 case $1 in
380
+ − 3095 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
+ − 3096 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
272
+ − 3097 -Xlinker* ) ;;
+ − 3098 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
+ − 3099 esac
+ − 3100 shift
+ − 3101 done
+ − 3102 fi
373
+ − 3103 cat > conftest.$ac_ext <<EOF
561
+ − 3104 #line 3105 "configure"
+ − 3105 #include "confdefs.h"
+ − 3106
+ − 3107 int main() {
+ − 3108
+ − 3109 ; return 0; }
+ − 3110 EOF
+ − 3111 if { (eval echo configure:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
+ − 3112 rm -rf conftest*
+ − 3113 dash_r="$try_dash_r"
+ − 3114 else
+ − 3115 echo "configure: failed program was:" >&5
+ − 3116 cat conftest.$ac_ext >&5
+ − 3117 fi
+ − 3118 rm -f conftest*
373
+ − 3119 xe_check_libs=""
+ − 3120 test -n "$dash_r" && break
+ − 3121 done ;;
+ − 3122 esac
151
+ − 3123 if test -n "$dash_r";
+ − 3124 then echo "$ac_t"""\"${dash_r}\""" 1>&6
+ − 3125 else echo "$ac_t""NONE" 1>&6
+ − 3126 fi
+ − 3127 fi
+ − 3128
163
+ − 3129 xe_add_unique_runpath_dir='
+ − 3130 xe_add_p=yes
+ − 3131 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
+ − 3132 done
+ − 3133 if test "$xe_add_p" = "yes"; then
+ − 3134 test -n "$runpath" && runpath="${runpath}:"
+ − 3135 runpath="${runpath}${xe_runpath_dir}"
+ − 3136 runpath_dirs="$runpath_dirs $xe_runpath_dir"
+ − 3137 fi'
+ − 3138
+ − 3139
151
+ − 3140
155
+ − 3141
151
+ − 3142 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
+ − 3143 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
+ − 3144 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
+ − 3145
163
+ − 3146 runpath="" runpath_dirs=""
155
+ − 3147 if test -n "$LD_RUN_PATH"; then
151
+ − 3148 runpath="$LD_RUN_PATH"
155
+ − 3149 elif test "$GCC" = "yes"; then
163
+ − 3150 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
+ − 3151 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
+ − 3152 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
+ − 3153 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
+ − 3154 case "$arg" in P,* | -L* | -R* )
159
+ − 3155 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
+ − 3156 {
155
+ − 3157 xe_runpath_dir="$dir"
163
+ − 3158 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 3159 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 3160 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 3161 eval "$xe_add_unique_runpath_dir"
+ − 3162 }
155
+ − 3163 done ;;
+ − 3164 esac
+ − 3165 done
163
+ − 3166 ld_switch_run="$ld_switch_run_save"
155
+ − 3167 rm -f conftest*
151
+ − 3168 else
155
+ − 3169 for arg in $ld_switch_site $ld_switch_x_site; do
163
+ − 3170 case "$arg" in -L*) {
159
+ − 3171 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
+ − 3172 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 3173 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 3174 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 3175 eval "$xe_add_unique_runpath_dir"
+ − 3176 };; esac
151
+ − 3177 done
163
+ − 3178 if test "$opsys $need_motif" = "sol2 yes"; then
+ − 3179 xe_runpath_dir="/opt/SUNWdt/lib";
+ − 3180 eval "$xe_add_unique_runpath_dir";
+ − 3181 fi
155
+ − 3182 fi
151
+ − 3183 if test -n "$runpath"; then
+ − 3184 ld_switch_run="${dash_r}${runpath}"
272
+ − 3185
+ − 3186 if test "$GCC" = "yes"; then
+ − 3187 set x $ld_switch_run; shift; ld_switch_run=""
+ − 3188 while test -n "$1"; do
+ − 3189 case $1 in
380
+ − 3190 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
+ − 3191 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
+ − 3192 -Xlinker* ) ;;
+ − 3193 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
+ − 3194 esac
+ − 3195 shift
+ − 3196 done
+ − 3197 fi
151
+ − 3198 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
+ − 3199 fi
+ − 3200 fi
+ − 3201
+ − 3202
149
+ − 3203
+ − 3204 GNU_MALLOC=yes
261
+ − 3205 if test "$with_dlmalloc" != "no"; then
+ − 3206 doug_lea_malloc=yes
+ − 3207 else
+ − 3208 doug_lea_malloc=no
+ − 3209 fi
259
+ − 3210 after_morecore_hook_exists=yes
255
+ − 3211 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
561
+ − 3212 echo "configure:3213: checking for malloc_set_state" >&5
+ − 3213
+ − 3214 cat > conftest.$ac_ext <<EOF
+ − 3215 #line 3216 "configure"
255
+ − 3216 #include "confdefs.h"
+ − 3217 /* System header to define __stub macros and hopefully few prototypes,
+ − 3218 which can conflict with char malloc_set_state(); below. */
+ − 3219 #include <assert.h>
+ − 3220 /* Override any gcc2 internal prototype to avoid an error. */
+ − 3221 /* We use char because int might match the return type of a gcc2
+ − 3222 builtin and then its argument prototype would still apply. */
+ − 3223 char malloc_set_state();
+ − 3224
+ − 3225 int main() {
+ − 3226
+ − 3227 /* The GNU C library defines this for functions which it implements
+ − 3228 to always fail with ENOSYS. Some functions are actually named
+ − 3229 something starting with __ and the normal name is an alias. */
+ − 3230 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
+ − 3231 choke me
+ − 3232 #else
+ − 3233 malloc_set_state();
+ − 3234 #endif
+ − 3235
+ − 3236 ; return 0; }
+ − 3237 EOF
561
+ − 3238 if { (eval echo configure:3239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
255
+ − 3239 rm -rf conftest*
+ − 3240 eval "ac_cv_func_malloc_set_state=yes"
+ − 3241 else
+ − 3242 echo "configure: failed program was:" >&5
+ − 3243 cat conftest.$ac_ext >&5
+ − 3244 rm -rf conftest*
+ − 3245 eval "ac_cv_func_malloc_set_state=no"
+ − 3246 fi
+ − 3247 rm -f conftest*
+ − 3248
+ − 3249 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
+ − 3250 echo "$ac_t""yes" 1>&6
+ − 3251 :
+ − 3252 else
+ − 3253 echo "$ac_t""no" 1>&6
+ − 3254 doug_lea_malloc=no
+ − 3255 fi
+ − 3256
+ − 3257 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
561
+ − 3258 echo "configure:3259: checking whether __after_morecore_hook exists" >&5
+ − 3259 cat > conftest.$ac_ext <<EOF
+ − 3260 #line 3261 "configure"
255
+ − 3261 #include "confdefs.h"
+ − 3262 extern void (* __after_morecore_hook)();
+ − 3263 int main() {
+ − 3264 __after_morecore_hook = 0
+ − 3265 ; return 0; }
+ − 3266 EOF
561
+ − 3267 if { (eval echo configure:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
+ − 3268 rm -rf conftest*
+ − 3269 echo "$ac_t""yes" 1>&6
+ − 3270 else
+ − 3271 echo "configure: failed program was:" >&5
+ − 3272 cat conftest.$ac_ext >&5
+ − 3273 rm -rf conftest*
+ − 3274 echo "$ac_t""no" 1>&6
+ − 3275 after_morecore_hook_exists=no
255
+ − 3276 fi
+ − 3277 rm -f conftest*
149
+ − 3278 if test "$system_malloc" = "yes" ; then
+ − 3279 GNU_MALLOC=no
+ − 3280 GNU_MALLOC_reason="
442
+ − 3281 - The GNU allocators don't work with this system configuration."
181
+ − 3282 elif test "$with_system_malloc" = "yes" ; then
149
+ − 3283 GNU_MALLOC=no
+ − 3284 GNU_MALLOC_reason="
442
+ − 3285 - User chose not to use GNU allocators."
181
+ − 3286 elif test "$with_debug_malloc" = "yes" ; then
177
+ − 3287 GNU_MALLOC=no
+ − 3288 GNU_MALLOC_reason="
442
+ − 3289 - User chose to use Debugging Malloc."
+ − 3290 fi
+ − 3291
+ − 3292 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
+ − 3293 GNU_MALLOC_reason="
+ − 3294 - Using Doug Lea's new malloc from the GNU C Library."
255
+ − 3295 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3296 Defining DOUG_LEA_MALLOC
+ − 3297 EOF
+ − 3298 cat >> confdefs.h <<\EOF
+ − 3299 #define DOUG_LEA_MALLOC 1
+ − 3300 EOF
+ − 3301 }
+ − 3302
259
+ − 3303 if test "$after_morecore_hook_exists" = "no" ; then
+ − 3304 GNU_MALLOC_reason="
442
+ − 3305 - Using Doug Lea's new malloc from the Linux C Library."
259
+ − 3306 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3307 Defining _NO_MALLOC_WARNING_
+ − 3308 EOF
+ − 3309 cat >> confdefs.h <<\EOF
+ − 3310 #define _NO_MALLOC_WARNING_ 1
+ − 3311 EOF
+ − 3312 }
+ − 3313
+ − 3314 fi
255
+ − 3315 fi
+ − 3316
149
+ − 3317
267
+ − 3318
+ − 3319
149
+ − 3320 # Extract the first word of "ranlib", so it can be a program name with args.
+ − 3321 set dummy ranlib; ac_word=$2
+ − 3322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
561
+ − 3323 echo "configure:3324: checking for $ac_word" >&5
149
+ − 3324
+ − 3325 if test -n "$RANLIB"; then
+ − 3326 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+ − 3327 else
420
+ − 3328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 3329 ac_dummy="$PATH"
+ − 3330 for ac_dir in $ac_dummy; do
0
+ − 3331 test -z "$ac_dir" && ac_dir=.
+ − 3332 if test -f $ac_dir/$ac_word; then
149
+ − 3333 ac_cv_prog_RANLIB="ranlib"
0
+ − 3334 break
+ − 3335 fi
+ − 3336 done
+ − 3337 IFS="$ac_save_ifs"
149
+ − 3338 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
+ − 3339 fi
+ − 3340 RANLIB="$ac_cv_prog_RANLIB"
+ − 3341 if test -n "$RANLIB"; then
+ − 3342 echo "$ac_t""$RANLIB" 1>&6
+ − 3343 else
+ − 3344 echo "$ac_t""no" 1>&6
+ − 3345 fi
+ − 3346
+ − 3347 ac_aux_dir=
+ − 3348 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
+ − 3349 if test -f $ac_dir/install-sh; then
+ − 3350 ac_aux_dir=$ac_dir
+ − 3351 ac_install_sh="$ac_aux_dir/install-sh -c"
+ − 3352 break
+ − 3353 elif test -f $ac_dir/install.sh; then
+ − 3354 ac_aux_dir=$ac_dir
+ − 3355 ac_install_sh="$ac_aux_dir/install.sh -c"
+ − 3356 break
+ − 3357 fi
+ − 3358 done
+ − 3359 if test -z "$ac_aux_dir"; then
+ − 3360 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
+ − 3361 fi
+ − 3362 ac_config_guess=$ac_aux_dir/config.guess
+ − 3363 ac_config_sub=$ac_aux_dir/config.sub
+ − 3364 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
+ − 3365
+ − 3366 # Find a good install program. We prefer a C program (faster),
+ − 3367 # so one script is as good as another. But avoid the broken or
+ − 3368 # incompatible versions:
+ − 3369 # SysV /etc/install, /usr/sbin/install
+ − 3370 # SunOS /usr/etc/install
+ − 3371 # IRIX /sbin/install
+ − 3372 # AIX /bin/install
420
+ − 3373 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
149
+ − 3374 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
+ − 3375 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+ − 3376 # ./install, which can be erroneously created by make from ./install.sh.
+ − 3377 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
561
+ − 3378 echo "configure:3379: checking for a BSD compatible install" >&5
149
+ − 3379 if test -z "$INSTALL"; then
+ − 3380
420
+ − 3381 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
0
+ − 3382 for ac_dir in $PATH; do
149
+ − 3383 # Account for people who put trailing slashes in PATH elements.
+ − 3384 case "$ac_dir/" in
+ − 3385 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
0
+ − 3386 *)
+ − 3387 # OSF1 and SCO ODT 3.0 have their own names for install.
420
+ − 3388 # Don't use installbsd from OSF since it installs stuff as root
+ − 3389 # by default.
+ − 3390 for ac_prog in ginstall scoinst install; do
0
+ − 3391 if test -f $ac_dir/$ac_prog; then
+ − 3392 if test $ac_prog = install &&
+ − 3393 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
+ − 3394 # AIX install. It has an incompatible calling convention.
+ − 3395 :
+ − 3396 else
149
+ − 3397 ac_cv_path_install="$ac_dir/$ac_prog -c"
0
+ − 3398 break 2
+ − 3399 fi
+ − 3400 fi
+ − 3401 done
+ − 3402 ;;
+ − 3403 esac
+ − 3404 done
149
+ − 3405 IFS="$ac_save_IFS"
+ − 3406
+ − 3407 if test "${ac_cv_path_install+set}" = set; then
+ − 3408 INSTALL="$ac_cv_path_install"
+ − 3409 else
+ − 3410 # As a last resort, use the slow shell script. We don't cache a
+ − 3411 # path for INSTALL within a source directory, because that will
+ − 3412 # break other packages using the cache if that directory is
+ − 3413 # removed, or if the path is relative.
+ − 3414 INSTALL="$ac_install_sh"
+ − 3415 fi
+ − 3416 fi
+ − 3417 echo "$ac_t""$INSTALL" 1>&6
+ − 3418
+ − 3419 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
0
+ − 3420 # It thinks the first close brace ends the variable substitution.
+ − 3421 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+ − 3422
420
+ − 3423 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
+ − 3424
0
+ − 3425 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+ − 3426
+ − 3427 for ac_prog in 'bison -y' byacc
+ − 3428 do
149
+ − 3429 # Extract the first word of "$ac_prog", so it can be a program name with args.
+ − 3430 set dummy $ac_prog; ac_word=$2
+ − 3431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
561
+ − 3432 echo "configure:3433: checking for $ac_word" >&5
149
+ − 3433
+ − 3434 if test -n "$YACC"; then
+ − 3435 ac_cv_prog_YACC="$YACC" # Let the user override the test.
+ − 3436 else
420
+ − 3437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 3438 ac_dummy="$PATH"
+ − 3439 for ac_dir in $ac_dummy; do
0
+ − 3440 test -z "$ac_dir" && ac_dir=.
+ − 3441 if test -f $ac_dir/$ac_word; then
149
+ − 3442 ac_cv_prog_YACC="$ac_prog"
0
+ − 3443 break
+ − 3444 fi
+ − 3445 done
+ − 3446 IFS="$ac_save_ifs"
+ − 3447 fi
149
+ − 3448 YACC="$ac_cv_prog_YACC"
+ − 3449 if test -n "$YACC"; then
+ − 3450 echo "$ac_t""$YACC" 1>&6
+ − 3451 else
+ − 3452 echo "$ac_t""no" 1>&6
+ − 3453 fi
0
+ − 3454
+ − 3455 test -n "$YACC" && break
+ − 3456 done
+ − 3457 test -n "$YACC" || YACC="yacc"
+ − 3458
+ − 3459
460
+ − 3460 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
+ − 3461 do
149
+ − 3462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 3463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
561
+ − 3464 echo "configure:3465: checking for $ac_hdr" >&5
+ − 3465
+ − 3466 cat > conftest.$ac_ext <<EOF
+ − 3467 #line 3468 "configure"
149
+ − 3468 #include "confdefs.h"
+ − 3469 #include <$ac_hdr>
+ − 3470 EOF
+ − 3471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
561
+ − 3472 { (eval echo configure:3473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 3473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 3474 if test -z "$ac_err"; then
+ − 3475 rm -rf conftest*
149
+ − 3476 eval "ac_cv_header_$ac_safe=yes"
+ − 3477 else
+ − 3478 echo "$ac_err" >&5
+ − 3479 echo "configure: failed program was:" >&5
+ − 3480 cat conftest.$ac_ext >&5
+ − 3481 rm -rf conftest*
+ − 3482 eval "ac_cv_header_$ac_safe=no"
+ − 3483 fi
+ − 3484 rm -f conftest*
+ − 3485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 3486 echo "$ac_t""yes" 1>&6
+ − 3487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 3488 { test "$extra_verbose" = "yes" && cat << EOF
+ − 3489 Defining $ac_tr_hdr
+ − 3490 EOF
+ − 3491 cat >> confdefs.h <<EOF
+ − 3492 #define $ac_tr_hdr 1
+ − 3493 EOF
+ − 3494 }
+ − 3495
+ − 3496 else
+ − 3497 echo "$ac_t""no" 1>&6
+ − 3498 fi
0
+ − 3499 done
+ − 3500
155
+ − 3501 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
561
+ − 3502 echo "configure:3503: checking for sys/wait.h that is POSIX.1 compatible" >&5
+ − 3503
+ − 3504 cat > conftest.$ac_ext <<EOF
+ − 3505 #line 3506 "configure"
155
+ − 3506 #include "confdefs.h"
+ − 3507 #include <sys/types.h>
+ − 3508 #include <sys/wait.h>
+ − 3509 #ifndef WEXITSTATUS
+ − 3510 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
+ − 3511 #endif
+ − 3512 #ifndef WIFEXITED
+ − 3513 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
+ − 3514 #endif
+ − 3515 int main() {
+ − 3516 int s;
+ − 3517 wait (&s);
+ − 3518 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
+ − 3519 ; return 0; }
+ − 3520 EOF
561
+ − 3521 if { (eval echo configure:3522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
155
+ − 3522 rm -rf conftest*
+ − 3523 ac_cv_header_sys_wait_h=yes
+ − 3524 else
+ − 3525 echo "configure: failed program was:" >&5
+ − 3526 cat conftest.$ac_ext >&5
+ − 3527 rm -rf conftest*
+ − 3528 ac_cv_header_sys_wait_h=no
+ − 3529 fi
+ − 3530 rm -f conftest*
+ − 3531
+ − 3532 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
+ − 3533 if test $ac_cv_header_sys_wait_h = yes; then
+ − 3534 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3535 Defining HAVE_SYS_WAIT_H
+ − 3536 EOF
+ − 3537 cat >> confdefs.h <<\EOF
+ − 3538 #define HAVE_SYS_WAIT_H 1
+ − 3539 EOF
+ − 3540 }
+ − 3541
+ − 3542 fi
+ − 3543
149
+ − 3544 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
561
+ − 3545 echo "configure:3546: checking for ANSI C header files" >&5
+ − 3546
+ − 3547 cat > conftest.$ac_ext <<EOF
+ − 3548 #line 3549 "configure"
0
+ − 3549 #include "confdefs.h"
+ − 3550 #include <stdlib.h>
+ − 3551 #include <stdarg.h>
+ − 3552 #include <string.h>
+ − 3553 #include <float.h>
+ − 3554 EOF
149
+ − 3555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
561
+ − 3556 { (eval echo configure:3557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 3557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 3558 if test -z "$ac_err"; then
+ − 3559 rm -rf conftest*
149
+ − 3560 ac_cv_header_stdc=yes
+ − 3561 else
+ − 3562 echo "$ac_err" >&5
+ − 3563 echo "configure: failed program was:" >&5
+ − 3564 cat conftest.$ac_ext >&5
+ − 3565 rm -rf conftest*
+ − 3566 ac_cv_header_stdc=no
+ − 3567 fi
+ − 3568 rm -f conftest*
+ − 3569
+ − 3570 if test $ac_cv_header_stdc = yes; then
0
+ − 3571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
149
+ − 3572 cat > conftest.$ac_ext <<EOF
561
+ − 3573 #line 3574 "configure"
149
+ − 3574 #include "confdefs.h"
+ − 3575 #include <string.h>
+ − 3576 EOF
+ − 3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 3578 egrep "memchr" >/dev/null 2>&1; then
+ − 3579 :
+ − 3580 else
+ − 3581 rm -rf conftest*
+ − 3582 ac_cv_header_stdc=no
+ − 3583 fi
+ − 3584 rm -f conftest*
+ − 3585
+ − 3586 fi
+ − 3587
+ − 3588 if test $ac_cv_header_stdc = yes; then
+ − 3589 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ − 3590 cat > conftest.$ac_ext <<EOF
561
+ − 3591 #line 3592 "configure"
149
+ − 3592 #include "confdefs.h"
+ − 3593 #include <stdlib.h>
+ − 3594 EOF
+ − 3595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 3596 egrep "free" >/dev/null 2>&1; then
+ − 3597 :
+ − 3598 else
+ − 3599 rm -rf conftest*
+ − 3600 ac_cv_header_stdc=no
+ − 3601 fi
+ − 3602 rm -f conftest*
+ − 3603
+ − 3604 fi
+ − 3605
+ − 3606 if test $ac_cv_header_stdc = yes; then
+ − 3607 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ − 3608 cat > conftest.$ac_ext <<EOF
561
+ − 3609 #line 3610 "configure"
0
+ − 3610 #include "confdefs.h"
+ − 3611 #include <ctype.h>
+ − 3612 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ − 3613 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
149
+ − 3614 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
0
+ − 3615 int main () { int i; for (i = 0; i < 256; i++)
+ − 3616 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
+ − 3617 exit (0); }
+ − 3618
+ − 3619 EOF
561
+ − 3620 if { (eval echo configure:3621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 3621 then
+ − 3622 :
+ − 3623 else
373
+ − 3624 conftest_rc="$?"
149
+ − 3625 echo "configure: failed program was:" >&5
+ − 3626 cat conftest.$ac_ext >&5
+ − 3627 rm -fr conftest*
+ − 3628 ac_cv_header_stdc=no
0
+ − 3629 fi
+ − 3630 rm -fr conftest*
149
+ − 3631 fi
+ − 3632
+ − 3633 echo "$ac_t""$ac_cv_header_stdc" 1>&6
+ − 3634 if test $ac_cv_header_stdc = yes; then
+ − 3635 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3636 Defining STDC_HEADERS
+ − 3637 EOF
+ − 3638 cat >> confdefs.h <<\EOF
+ − 3639 #define STDC_HEADERS 1
+ − 3640 EOF
+ − 3641 }
+ − 3642
+ − 3643 fi
+ − 3644
+ − 3645 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
561
+ − 3646 echo "configure:3647: checking whether time.h and sys/time.h may both be included" >&5
+ − 3647
+ − 3648 cat > conftest.$ac_ext <<EOF
+ − 3649 #line 3650 "configure"
0
+ − 3650 #include "confdefs.h"
+ − 3651 #include <sys/types.h>
+ − 3652 #include <sys/time.h>
+ − 3653 #include <time.h>
149
+ − 3654 int main() {
+ − 3655 struct tm *tp;
+ − 3656 ; return 0; }
+ − 3657 EOF
561
+ − 3658 if { (eval echo configure:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 3659 rm -rf conftest*
+ − 3660 ac_cv_header_time=yes
+ − 3661 else
+ − 3662 echo "configure: failed program was:" >&5
+ − 3663 cat conftest.$ac_ext >&5
+ − 3664 rm -rf conftest*
+ − 3665 ac_cv_header_time=no
+ − 3666 fi
+ − 3667 rm -f conftest*
+ − 3668
+ − 3669 echo "$ac_t""$ac_cv_header_time" 1>&6
+ − 3670 if test $ac_cv_header_time = yes; then
+ − 3671 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3672 Defining TIME_WITH_SYS_TIME
+ − 3673 EOF
+ − 3674 cat >> confdefs.h <<\EOF
+ − 3675 #define TIME_WITH_SYS_TIME 1
+ − 3676 EOF
+ − 3677 }
+ − 3678
+ − 3679 fi
+ − 3680
+ − 3681 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
561
+ − 3682 echo "configure:3683: checking for sys_siglist declaration in signal.h or unistd.h" >&5
+ − 3683
+ − 3684 cat > conftest.$ac_ext <<EOF
+ − 3685 #line 3686 "configure"
149
+ − 3686 #include "confdefs.h"
+ − 3687 #include <sys/types.h>
0
+ − 3688 #include <signal.h>
149
+ − 3689 /* NetBSD declares sys_siglist in unistd.h. */
0
+ − 3690 #ifdef HAVE_UNISTD_H
+ − 3691 #include <unistd.h>
+ − 3692 #endif
149
+ − 3693 int main() {
+ − 3694 char *msg = *(sys_siglist + 1);
+ − 3695 ; return 0; }
+ − 3696 EOF
561
+ − 3697 if { (eval echo configure:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 3698 rm -rf conftest*
+ − 3699 ac_cv_decl_sys_siglist=yes
+ − 3700 else
+ − 3701 echo "configure: failed program was:" >&5
+ − 3702 cat conftest.$ac_ext >&5
+ − 3703 rm -rf conftest*
+ − 3704 ac_cv_decl_sys_siglist=no
+ − 3705 fi
+ − 3706 rm -f conftest*
+ − 3707
+ − 3708 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
+ − 3709 if test $ac_cv_decl_sys_siglist = yes; then
+ − 3710 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3711 Defining SYS_SIGLIST_DECLARED
+ − 3712 EOF
+ − 3713 cat >> confdefs.h <<\EOF
+ − 3714 #define SYS_SIGLIST_DECLARED 1
+ − 3715 EOF
+ − 3716 }
+ − 3717
+ − 3718 fi
+ − 3719
+ − 3720
460
+ − 3721
+ − 3722 echo $ac_n "checking for utime""... $ac_c" 1>&6
561
+ − 3723 echo "configure:3724: checking for utime" >&5
+ − 3724 cat > conftest.$ac_ext <<EOF
+ − 3725 #line 3726 "configure"
460
+ − 3726 #include "confdefs.h"
+ − 3727 #include <sys/types.h>
0
+ − 3728 #include <utime.h>
460
+ − 3729 int main() {
+ − 3730 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
+ − 3731 ; return 0; }
+ − 3732 EOF
561
+ − 3733 if { (eval echo configure:3734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 3734 rm -rf conftest*
+ − 3735 echo "$ac_t""yes" 1>&6
+ − 3736 { test "$extra_verbose" = "yes" && cat << \EOF
460
+ − 3737 Defining HAVE_UTIME
+ − 3738 EOF
+ − 3739 cat >> confdefs.h <<\EOF
+ − 3740 #define HAVE_UTIME 1
+ − 3741 EOF
+ − 3742 }
+ − 3743
+ − 3744 else
+ − 3745 echo "configure: failed program was:" >&5
+ − 3746 cat conftest.$ac_ext >&5
+ − 3747 rm -rf conftest*
+ − 3748 echo "$ac_t""no" 1>&6
+ − 3749 for ac_func in utimes
+ − 3750 do
+ − 3751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
561
+ − 3752 echo "configure:3753: checking for $ac_func" >&5
+ − 3753
+ − 3754 cat > conftest.$ac_ext <<EOF
+ − 3755 #line 3756 "configure"
460
+ − 3756 #include "confdefs.h"
+ − 3757 /* System header to define __stub macros and hopefully few prototypes,
+ − 3758 which can conflict with char $ac_func(); below. */
+ − 3759 #include <assert.h>
+ − 3760 /* Override any gcc2 internal prototype to avoid an error. */
+ − 3761 /* We use char because int might match the return type of a gcc2
+ − 3762 builtin and then its argument prototype would still apply. */
+ − 3763 char $ac_func();
+ − 3764
+ − 3765 int main() {
+ − 3766
+ − 3767 /* The GNU C library defines this for functions which it implements
+ − 3768 to always fail with ENOSYS. Some functions are actually named
+ − 3769 something starting with __ and the normal name is an alias. */
+ − 3770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 3771 choke me
+ − 3772 #else
+ − 3773 $ac_func();
+ − 3774 #endif
+ − 3775
+ − 3776 ; return 0; }
+ − 3777 EOF
561
+ − 3778 if { (eval echo configure:3779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
460
+ − 3779 rm -rf conftest*
+ − 3780 eval "ac_cv_func_$ac_func=yes"
+ − 3781 else
+ − 3782 echo "configure: failed program was:" >&5
+ − 3783 cat conftest.$ac_ext >&5
+ − 3784 rm -rf conftest*
+ − 3785 eval "ac_cv_func_$ac_func=no"
+ − 3786 fi
+ − 3787 rm -f conftest*
+ − 3788
+ − 3789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 3790 echo "$ac_t""yes" 1>&6
+ − 3791 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 3792 { test "$extra_verbose" = "yes" && cat << EOF
+ − 3793 Defining $ac_tr_func
+ − 3794 EOF
+ − 3795 cat >> confdefs.h <<EOF
+ − 3796 #define $ac_tr_func 1
+ − 3797 EOF
+ − 3798 }
+ − 3799
+ − 3800 else
+ − 3801 echo "$ac_t""no" 1>&6
+ − 3802 fi
+ − 3803 done
+ − 3804
+ − 3805 fi
+ − 3806 rm -f conftest*
+ − 3807
149
+ − 3808
+ − 3809 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
561
+ − 3810 echo "configure:3811: checking return type of signal handlers" >&5
+ − 3811
+ − 3812 cat > conftest.$ac_ext <<EOF
+ − 3813 #line 3814 "configure"
0
+ − 3814 #include "confdefs.h"
+ − 3815 #include <sys/types.h>
+ − 3816 #include <signal.h>
+ − 3817 #ifdef signal
+ − 3818 #undef signal
+ − 3819 #endif
149
+ − 3820 #ifdef __cplusplus
+ − 3821 extern "C" void (*signal (int, void (*)(int)))(int);
+ − 3822 #else
+ − 3823 void (*signal ()) ();
+ − 3824 #endif
+ − 3825
+ − 3826 int main() {
+ − 3827 int i;
+ − 3828 ; return 0; }
+ − 3829 EOF
561
+ − 3830 if { (eval echo configure:3831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 3831 rm -rf conftest*
+ − 3832 ac_cv_type_signal=void
+ − 3833 else
+ − 3834 echo "configure: failed program was:" >&5
+ − 3835 cat conftest.$ac_ext >&5
+ − 3836 rm -rf conftest*
+ − 3837 ac_cv_type_signal=int
+ − 3838 fi
+ − 3839 rm -f conftest*
+ − 3840
+ − 3841 echo "$ac_t""$ac_cv_type_signal" 1>&6
+ − 3842 { test "$extra_verbose" = "yes" && cat << EOF
+ − 3843 Defining RETSIGTYPE = $ac_cv_type_signal
+ − 3844 EOF
+ − 3845 cat >> confdefs.h <<EOF
+ − 3846 #define RETSIGTYPE $ac_cv_type_signal
+ − 3847 EOF
+ − 3848 }
+ − 3849
+ − 3850
163
+ − 3851 echo $ac_n "checking for size_t""... $ac_c" 1>&6
561
+ − 3852 echo "configure:3853: checking for size_t" >&5
+ − 3853
+ − 3854 cat > conftest.$ac_ext <<EOF
+ − 3855 #line 3856 "configure"
163
+ − 3856 #include "confdefs.h"
+ − 3857 #include <sys/types.h>
+ − 3858 #if STDC_HEADERS
+ − 3859 #include <stdlib.h>
+ − 3860 #include <stddef.h>
+ − 3861 #endif
+ − 3862 EOF
+ − 3863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
+ − 3864 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
+ − 3865 rm -rf conftest*
+ − 3866 ac_cv_type_size_t=yes
+ − 3867 else
+ − 3868 rm -rf conftest*
+ − 3869 ac_cv_type_size_t=no
+ − 3870 fi
+ − 3871 rm -f conftest*
+ − 3872
+ − 3873 echo "$ac_t""$ac_cv_type_size_t" 1>&6
+ − 3874 if test $ac_cv_type_size_t = no; then
+ − 3875 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3876 Defining size_t = unsigned
+ − 3877 EOF
+ − 3878 cat >> confdefs.h <<\EOF
+ − 3879 #define size_t unsigned
+ − 3880 EOF
+ − 3881 }
+ − 3882
+ − 3883 fi
+ − 3884
+ − 3885 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
561
+ − 3886 echo "configure:3887: checking for pid_t" >&5
+ − 3887
+ − 3888 cat > conftest.$ac_ext <<EOF
+ − 3889 #line 3890 "configure"
163
+ − 3890 #include "confdefs.h"
+ − 3891 #include <sys/types.h>
+ − 3892 #if STDC_HEADERS
+ − 3893 #include <stdlib.h>
+ − 3894 #include <stddef.h>
+ − 3895 #endif
+ − 3896 EOF
+ − 3897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
+ − 3898 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
+ − 3899 rm -rf conftest*
+ − 3900 ac_cv_type_pid_t=yes
+ − 3901 else
+ − 3902 rm -rf conftest*
+ − 3903 ac_cv_type_pid_t=no
+ − 3904 fi
+ − 3905 rm -f conftest*
+ − 3906
+ − 3907 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
+ − 3908 if test $ac_cv_type_pid_t = no; then
+ − 3909 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3910 Defining pid_t = int
+ − 3911 EOF
+ − 3912 cat >> confdefs.h <<\EOF
+ − 3913 #define pid_t int
+ − 3914 EOF
+ − 3915 }
+ − 3916
+ − 3917 fi
+ − 3918
+ − 3919 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
561
+ − 3920 echo "configure:3921: checking for uid_t in sys/types.h" >&5
+ − 3921
+ − 3922 cat > conftest.$ac_ext <<EOF
+ − 3923 #line 3924 "configure"
163
+ − 3924 #include "confdefs.h"
+ − 3925 #include <sys/types.h>
+ − 3926 EOF
+ − 3927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 3928 egrep "uid_t" >/dev/null 2>&1; then
+ − 3929 rm -rf conftest*
+ − 3930 ac_cv_type_uid_t=yes
+ − 3931 else
+ − 3932 rm -rf conftest*
+ − 3933 ac_cv_type_uid_t=no
+ − 3934 fi
+ − 3935 rm -f conftest*
+ − 3936
+ − 3937
+ − 3938 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
+ − 3939 if test $ac_cv_type_uid_t = no; then
+ − 3940 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3941 Defining uid_t = int
+ − 3942 EOF
+ − 3943 cat >> confdefs.h <<\EOF
+ − 3944 #define uid_t int
+ − 3945 EOF
+ − 3946 }
+ − 3947
+ − 3948 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3949 Defining gid_t = int
+ − 3950 EOF
+ − 3951 cat >> confdefs.h <<\EOF
+ − 3952 #define gid_t int
+ − 3953 EOF
+ − 3954 }
+ − 3955
+ − 3956 fi
+ − 3957
+ − 3958 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
561
+ − 3959 echo "configure:3960: checking for mode_t" >&5
+ − 3960
+ − 3961 cat > conftest.$ac_ext <<EOF
+ − 3962 #line 3963 "configure"
163
+ − 3963 #include "confdefs.h"
+ − 3964 #include <sys/types.h>
+ − 3965 #if STDC_HEADERS
+ − 3966 #include <stdlib.h>
+ − 3967 #include <stddef.h>
+ − 3968 #endif
+ − 3969 EOF
+ − 3970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
+ − 3971 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
+ − 3972 rm -rf conftest*
+ − 3973 ac_cv_type_mode_t=yes
+ − 3974 else
+ − 3975 rm -rf conftest*
+ − 3976 ac_cv_type_mode_t=no
+ − 3977 fi
+ − 3978 rm -f conftest*
+ − 3979
+ − 3980 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
+ − 3981 if test $ac_cv_type_mode_t = no; then
+ − 3982 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 3983 Defining mode_t = int
+ − 3984 EOF
+ − 3985 cat >> confdefs.h <<\EOF
+ − 3986 #define mode_t int
+ − 3987 EOF
+ − 3988 }
+ − 3989
+ − 3990 fi
+ − 3991
+ − 3992 echo $ac_n "checking for off_t""... $ac_c" 1>&6
561
+ − 3993 echo "configure:3994: checking for off_t" >&5
+ − 3994
+ − 3995 cat > conftest.$ac_ext <<EOF
+ − 3996 #line 3997 "configure"
163
+ − 3997 #include "confdefs.h"
+ − 3998 #include <sys/types.h>
+ − 3999 #if STDC_HEADERS
+ − 4000 #include <stdlib.h>
+ − 4001 #include <stddef.h>
+ − 4002 #endif
+ − 4003 EOF
+ − 4004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
+ − 4005 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
+ − 4006 rm -rf conftest*
+ − 4007 ac_cv_type_off_t=yes
+ − 4008 else
+ − 4009 rm -rf conftest*
+ − 4010 ac_cv_type_off_t=no
+ − 4011 fi
+ − 4012 rm -f conftest*
+ − 4013
+ − 4014 echo "$ac_t""$ac_cv_type_off_t" 1>&6
+ − 4015 if test $ac_cv_type_off_t = no; then
+ − 4016 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4017 Defining off_t = long
+ − 4018 EOF
+ − 4019 cat >> confdefs.h <<\EOF
+ − 4020 #define off_t long
+ − 4021 EOF
+ − 4022 }
+ − 4023
+ − 4024 fi
+ − 4025
426
+ − 4026 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
561
+ − 4027 echo "configure:4028: checking for ssize_t" >&5
+ − 4028
+ − 4029 cat > conftest.$ac_ext <<EOF
+ − 4030 #line 4031 "configure"
426
+ − 4031 #include "confdefs.h"
+ − 4032 #include <sys/types.h>
+ − 4033 #if STDC_HEADERS
+ − 4034 #include <stdlib.h>
+ − 4035 #include <stddef.h>
+ − 4036 #endif
+ − 4037 EOF
+ − 4038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 4039 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
+ − 4040 rm -rf conftest*
+ − 4041 ac_cv_type_ssize_t=yes
+ − 4042 else
+ − 4043 rm -rf conftest*
+ − 4044 ac_cv_type_ssize_t=no
+ − 4045 fi
+ − 4046 rm -f conftest*
+ − 4047
+ − 4048 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
+ − 4049 if test $ac_cv_type_ssize_t = no; then
+ − 4050 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4051 Defining ssize_t = int
+ − 4052 EOF
+ − 4053 cat >> confdefs.h <<\EOF
+ − 4054 #define ssize_t int
+ − 4055 EOF
+ − 4056 }
+ − 4057
+ − 4058 fi
+ − 4059
410
+ − 4060
442
+ − 4061 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
561
+ − 4062 echo "configure:4063: checking for socklen_t" >&5
+ − 4063 cat > conftest.$ac_ext <<EOF
+ − 4064 #line 4065 "configure"
442
+ − 4065 #include "confdefs.h"
+ − 4066 #include <sys/socket.h>
+ − 4067 socklen_t x;
+ − 4068
+ − 4069 int main() {
+ − 4070
+ − 4071 ; return 0; }
+ − 4072 EOF
561
+ − 4073 if { (eval echo configure:4074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
+ − 4074 rm -rf conftest*
+ − 4075 echo "$ac_t""yes" 1>&6
+ − 4076 else
+ − 4077 echo "configure: failed program was:" >&5
+ − 4078 cat conftest.$ac_ext >&5
+ − 4079 rm -rf conftest*
+ − 4080
+ − 4081 cat > conftest.$ac_ext <<EOF
561
+ − 4082 #line 4083 "configure"
442
+ − 4083 #include "confdefs.h"
+ − 4084 #include <sys/socket.h>
+ − 4085 int accept (int, struct sockaddr *, size_t *);
+ − 4086
+ − 4087 int main() {
+ − 4088
+ − 4089 ; return 0; }
+ − 4090 EOF
561
+ − 4091 if { (eval echo configure:4092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
+ − 4092 rm -rf conftest*
+ − 4093
+ − 4094 echo "$ac_t""size_t" 1>&6
+ − 4095 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4096 Defining socklen_t = size_t
+ − 4097 EOF
+ − 4098 cat >> confdefs.h <<\EOF
+ − 4099 #define socklen_t size_t
+ − 4100 EOF
+ − 4101 }
+ − 4102
+ − 4103 else
+ − 4104 echo "configure: failed program was:" >&5
+ − 4105 cat conftest.$ac_ext >&5
+ − 4106 rm -rf conftest*
+ − 4107
+ − 4108 echo "$ac_t""int" 1>&6
+ − 4109 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4110 Defining socklen_t = int
+ − 4111 EOF
+ − 4112 cat >> confdefs.h <<\EOF
+ − 4113 #define socklen_t int
+ − 4114 EOF
+ − 4115 }
+ − 4116
+ − 4117 fi
+ − 4118 rm -f conftest*
+ − 4119 fi
+ − 4120 rm -f conftest*
+ − 4121
149
+ − 4122 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
561
+ − 4123 echo "configure:4124: checking for struct timeval" >&5
+ − 4124 cat > conftest.$ac_ext <<EOF
+ − 4125 #line 4126 "configure"
0
+ − 4126 #include "confdefs.h"
+ − 4127 #ifdef TIME_WITH_SYS_TIME
+ − 4128 #include <sys/time.h>
+ − 4129 #include <time.h>
+ − 4130 #else
+ − 4131 #ifdef HAVE_SYS_TIME_H
+ − 4132 #include <sys/time.h>
+ − 4133 #else
+ − 4134 #include <time.h>
+ − 4135 #endif
+ − 4136 #endif
149
+ − 4137 int main() {
+ − 4138 static struct timeval x; x.tv_sec = x.tv_usec;
+ − 4139 ; return 0; }
+ − 4140 EOF
561
+ − 4141 if { (eval echo configure:4142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4142 rm -rf conftest*
+ − 4143 echo "$ac_t""yes" 1>&6
0
+ − 4144 HAVE_TIMEVAL=yes
149
+ − 4145 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4146 Defining HAVE_TIMEVAL
+ − 4147 EOF
+ − 4148 cat >> confdefs.h <<\EOF
+ − 4149 #define HAVE_TIMEVAL 1
+ − 4150 EOF
+ − 4151 }
+ − 4152
+ − 4153 else
+ − 4154 echo "configure: failed program was:" >&5
+ − 4155 cat conftest.$ac_ext >&5
+ − 4156 rm -rf conftest*
+ − 4157 echo "$ac_t""no" 1>&6
+ − 4158 HAVE_TIMEVAL=no
+ − 4159 fi
+ − 4160 rm -f conftest*
+ − 4161
+ − 4162 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
561
+ − 4163 echo "configure:4164: checking whether struct tm is in sys/time.h or time.h" >&5
+ − 4164
+ − 4165 cat > conftest.$ac_ext <<EOF
+ − 4166 #line 4167 "configure"
0
+ − 4167 #include "confdefs.h"
+ − 4168 #include <sys/types.h>
+ − 4169 #include <time.h>
149
+ − 4170 int main() {
+ − 4171 struct tm *tp; tp->tm_sec;
+ − 4172 ; return 0; }
+ − 4173 EOF
561
+ − 4174 if { (eval echo configure:4175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4175 rm -rf conftest*
+ − 4176 ac_cv_struct_tm=time.h
+ − 4177 else
+ − 4178 echo "configure: failed program was:" >&5
+ − 4179 cat conftest.$ac_ext >&5
+ − 4180 rm -rf conftest*
+ − 4181 ac_cv_struct_tm=sys/time.h
+ − 4182 fi
+ − 4183 rm -f conftest*
+ − 4184
+ − 4185 echo "$ac_t""$ac_cv_struct_tm" 1>&6
+ − 4186 if test $ac_cv_struct_tm = sys/time.h; then
+ − 4187 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4188 Defining TM_IN_SYS_TIME
+ − 4189 EOF
+ − 4190 cat >> confdefs.h <<\EOF
+ − 4191 #define TM_IN_SYS_TIME 1
+ − 4192 EOF
+ − 4193 }
+ − 4194
+ − 4195 fi
+ − 4196
+ − 4197 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
561
+ − 4198 echo "configure:4199: checking for tm_zone in struct tm" >&5
+ − 4199
+ − 4200 cat > conftest.$ac_ext <<EOF
+ − 4201 #line 4202 "configure"
149
+ − 4202 #include "confdefs.h"
+ − 4203 #include <sys/types.h>
+ − 4204 #include <$ac_cv_struct_tm>
+ − 4205 int main() {
+ − 4206 struct tm tm; tm.tm_zone;
+ − 4207 ; return 0; }
+ − 4208 EOF
561
+ − 4209 if { (eval echo configure:4210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4210 rm -rf conftest*
+ − 4211 ac_cv_struct_tm_zone=yes
+ − 4212 else
+ − 4213 echo "configure: failed program was:" >&5
+ − 4214 cat conftest.$ac_ext >&5
+ − 4215 rm -rf conftest*
+ − 4216 ac_cv_struct_tm_zone=no
+ − 4217 fi
+ − 4218 rm -f conftest*
+ − 4219
+ − 4220 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
+ − 4221 if test "$ac_cv_struct_tm_zone" = yes; then
+ − 4222 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4223 Defining HAVE_TM_ZONE
+ − 4224 EOF
+ − 4225 cat >> confdefs.h <<\EOF
+ − 4226 #define HAVE_TM_ZONE 1
+ − 4227 EOF
+ − 4228 }
+ − 4229
+ − 4230 else
+ − 4231 echo $ac_n "checking for tzname""... $ac_c" 1>&6
561
+ − 4232 echo "configure:4233: checking for tzname" >&5
+ − 4233
+ − 4234 cat > conftest.$ac_ext <<EOF
+ − 4235 #line 4236 "configure"
0
+ − 4236 #include "confdefs.h"
+ − 4237 #include <time.h>
+ − 4238 #ifndef tzname /* For SGI. */
149
+ − 4239 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
0
+ − 4240 #endif
149
+ − 4241 int main() {
+ − 4242 atoi(*tzname);
+ − 4243 ; return 0; }
+ − 4244 EOF
561
+ − 4245 if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 4246 rm -rf conftest*
+ − 4247 ac_cv_var_tzname=yes
+ − 4248 else
+ − 4249 echo "configure: failed program was:" >&5
+ − 4250 cat conftest.$ac_ext >&5
+ − 4251 rm -rf conftest*
+ − 4252 ac_cv_var_tzname=no
+ − 4253 fi
+ − 4254 rm -f conftest*
+ − 4255
+ − 4256 echo "$ac_t""$ac_cv_var_tzname" 1>&6
+ − 4257 if test $ac_cv_var_tzname = yes; then
+ − 4258 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4259 Defining HAVE_TZNAME
+ − 4260 EOF
+ − 4261 cat >> confdefs.h <<\EOF
+ − 4262 #define HAVE_TZNAME 1
+ − 4263 EOF
+ − 4264 }
+ − 4265
+ − 4266 fi
+ − 4267 fi
+ − 4268
+ − 4269
+ − 4270 echo $ac_n "checking for working const""... $ac_c" 1>&6
561
+ − 4271 echo "configure:4272: checking for working const" >&5
+ − 4272
+ − 4273 cat > conftest.$ac_ext <<EOF
+ − 4274 #line 4275 "configure"
149
+ − 4275 #include "confdefs.h"
+ − 4276
+ − 4277 int main() {
+ − 4278
+ − 4279 /* Ultrix mips cc rejects this. */
0
+ − 4280 typedef int charset[2]; const charset x;
+ − 4281 /* SunOS 4.1.1 cc rejects this. */
+ − 4282 char const *const *ccp;
+ − 4283 char **p;
149
+ − 4284 /* NEC SVR4.0.2 mips cc rejects this. */
+ − 4285 struct point {int x, y;};
+ − 4286 static struct point const zero = {0,0};
0
+ − 4287 /* AIX XL C 1.02.0.0 rejects this.
+ − 4288 It does not let you subtract one const X* pointer from another in an arm
+ − 4289 of an if-expression whose if-part is not a constant expression */
+ − 4290 const char *g = "string";
+ − 4291 ccp = &g + (g ? g-g : 0);
+ − 4292 /* HPUX 7.0 cc rejects these. */
+ − 4293 ++ccp;
+ − 4294 p = (char**) ccp;
+ − 4295 ccp = (char const *const *) p;
+ − 4296 { /* SCO 3.2v4 cc rejects this. */
+ − 4297 char *t;
+ − 4298 char const *s = 0 ? (char *) 0 : (char const *) 0;
+ − 4299
+ − 4300 *t++ = 0;
+ − 4301 }
+ − 4302 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
149
+ − 4303 int x[] = {25, 17};
0
+ − 4304 const int *foo = &x[0];
+ − 4305 ++foo;
+ − 4306 }
+ − 4307 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
+ − 4308 typedef const int *iptr;
+ − 4309 iptr p = 0;
+ − 4310 ++p;
+ − 4311 }
+ − 4312 { /* AIX XL C 1.02.0.0 rejects this saying
+ − 4313 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
+ − 4314 struct s { int j; const int *ap[3]; };
+ − 4315 struct s *b; b->j = 5;
+ − 4316 }
+ − 4317 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
+ − 4318 const int foo = 10;
149
+ − 4319 }
+ − 4320
+ − 4321 ; return 0; }
+ − 4322 EOF
561
+ − 4323 if { (eval echo configure:4324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4324 rm -rf conftest*
+ − 4325 ac_cv_c_const=yes
+ − 4326 else
+ − 4327 echo "configure: failed program was:" >&5
+ − 4328 cat conftest.$ac_ext >&5
+ − 4329 rm -rf conftest*
+ − 4330 ac_cv_c_const=no
+ − 4331 fi
+ − 4332 rm -f conftest*
+ − 4333
+ − 4334 echo "$ac_t""$ac_cv_c_const" 1>&6
+ − 4335 if test $ac_cv_c_const = no; then
+ − 4336 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4337 Defining const =
+ − 4338 EOF
+ − 4339 cat >> confdefs.h <<\EOF
+ − 4340 #define const
+ − 4341 EOF
+ − 4342 }
+ − 4343
+ − 4344 fi
+ − 4345
+ − 4346
+ − 4347 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
561
+ − 4348 echo "configure:4349: checking whether ${MAKE-make} sets \${MAKE}" >&5
149
+ − 4349 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
+ − 4350
+ − 4351 cat > conftestmake <<\EOF
0
+ − 4352 all:
+ − 4353 @echo 'ac_maketemp="${MAKE}"'
+ − 4354 EOF
+ − 4355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+ − 4356 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
149
+ − 4357 if test -n "$ac_maketemp"; then
+ − 4358 eval ac_cv_prog_make_${ac_make}_set=yes
+ − 4359 else
+ − 4360 eval ac_cv_prog_make_${ac_make}_set=no
+ − 4361 fi
0
+ − 4362 rm -f conftestmake
149
+ − 4363 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
+ − 4364 echo "$ac_t""yes" 1>&6
+ − 4365 SET_MAKE=
+ − 4366 else
+ − 4367 echo "$ac_t""no" 1>&6
+ − 4368 SET_MAKE="MAKE=${MAKE-make}"
+ − 4369 fi
+ − 4370
+ − 4371
+ − 4372 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
561
+ − 4373 echo "configure:4374: checking whether byte ordering is bigendian" >&5
149
+ − 4374
+ − 4375 ac_cv_c_bigendian=unknown
+ − 4376 # See if sys/param.h defines the BYTE_ORDER macro.
+ − 4377 cat > conftest.$ac_ext <<EOF
561
+ − 4378 #line 4379 "configure"
149
+ − 4379 #include "confdefs.h"
+ − 4380 #include <sys/types.h>
+ − 4381 #include <sys/param.h>
+ − 4382 int main() {
+ − 4383
+ − 4384 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
+ − 4385 bogus endian macros
+ − 4386 #endif
+ − 4387 ; return 0; }
+ − 4388 EOF
561
+ − 4389 if { (eval echo configure:4390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4390 rm -rf conftest*
+ − 4391 # It does; now see whether it defined to BIG_ENDIAN or not.
+ − 4392 cat > conftest.$ac_ext <<EOF
561
+ − 4393 #line 4394 "configure"
149
+ − 4394 #include "confdefs.h"
+ − 4395 #include <sys/types.h>
+ − 4396 #include <sys/param.h>
+ − 4397 int main() {
+ − 4398
+ − 4399 #if BYTE_ORDER != BIG_ENDIAN
+ − 4400 not big endian
+ − 4401 #endif
+ − 4402 ; return 0; }
+ − 4403 EOF
561
+ − 4404 if { (eval echo configure:4405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 4405 rm -rf conftest*
+ − 4406 ac_cv_c_bigendian=yes
+ − 4407 else
+ − 4408 echo "configure: failed program was:" >&5
+ − 4409 cat conftest.$ac_ext >&5
+ − 4410 rm -rf conftest*
+ − 4411 ac_cv_c_bigendian=no
+ − 4412 fi
+ − 4413 rm -f conftest*
+ − 4414 else
+ − 4415 echo "configure: failed program was:" >&5
+ − 4416 cat conftest.$ac_ext >&5
+ − 4417 fi
+ − 4418 rm -f conftest*
+ − 4419 if test $ac_cv_c_bigendian = unknown; then
+ − 4420 cat > conftest.$ac_ext <<EOF
561
+ − 4421 #line 4422 "configure"
0
+ − 4422 #include "confdefs.h"
+ − 4423 main () {
+ − 4424 /* Are we little or big endian? From Harbison&Steele. */
+ − 4425 union
+ − 4426 {
+ − 4427 long l;
+ − 4428 char c[sizeof (long)];
+ − 4429 } u;
+ − 4430 u.l = 1;
+ − 4431 exit (u.c[sizeof (long) - 1] == 1);
+ − 4432 }
+ − 4433 EOF
561
+ − 4434 if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 4435 then
+ − 4436 ac_cv_c_bigendian=no
+ − 4437 else
373
+ − 4438 conftest_rc="$?"
149
+ − 4439 echo "configure: failed program was:" >&5
+ − 4440 cat conftest.$ac_ext >&5
+ − 4441 rm -fr conftest*
+ − 4442 ac_cv_c_bigendian=yes
0
+ − 4443 fi
+ − 4444 rm -fr conftest*
149
+ − 4445 fi
+ − 4446
+ − 4447 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
+ − 4448 if test $ac_cv_c_bigendian = yes; then
+ − 4449 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4450 Defining WORDS_BIGENDIAN
+ − 4451 EOF
+ − 4452 cat >> confdefs.h <<\EOF
+ − 4453 #define WORDS_BIGENDIAN 1
+ − 4454 EOF
+ − 4455 }
+ − 4456
+ − 4457 fi
+ − 4458
+ − 4459
151
+ − 4460 echo $ac_n "checking size of short""... $ac_c" 1>&6
561
+ − 4461 echo "configure:4462: checking size of short" >&5
+ − 4462
+ − 4463 cat > conftest.$ac_ext <<EOF
+ − 4464 #line 4465 "configure"
151
+ − 4465 #include "confdefs.h"
+ − 4466 #include <stdio.h>
+ − 4467 main()
+ − 4468 {
+ − 4469 FILE *f=fopen("conftestval", "w");
+ − 4470 if (!f) exit(1);
+ − 4471 fprintf(f, "%d\n", sizeof(short));
+ − 4472 exit(0);
+ − 4473 }
+ − 4474 EOF
561
+ − 4475 if { (eval echo configure:4476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
+ − 4476 then
+ − 4477 ac_cv_sizeof_short=`cat conftestval`
+ − 4478 else
373
+ − 4479 conftest_rc="$?"
151
+ − 4480 echo "configure: failed program was:" >&5
+ − 4481 cat conftest.$ac_ext >&5
+ − 4482 rm -fr conftest*
+ − 4483 ac_cv_sizeof_short=0
+ − 4484 fi
+ − 4485 rm -fr conftest*
+ − 4486 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
+ − 4487 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4488 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
+ − 4489 EOF
+ − 4490 cat >> confdefs.h <<EOF
+ − 4491 #define SIZEOF_SHORT $ac_cv_sizeof_short
+ − 4492 EOF
+ − 4493 }
+ − 4494
+ − 4495
163
+ − 4496 if test "$ac_cv_sizeof_short" = 0; then
+ − 4497 echo ""
+ − 4498 echo "*** PANIC *** Configure tests are not working - compiler is broken."
+ − 4499 echo "*** PANIC *** Please examine config.log for compilation errors."
+ − 4500 exit 1
+ − 4501 fi
151
+ − 4502 echo $ac_n "checking size of int""... $ac_c" 1>&6
561
+ − 4503 echo "configure:4504: checking size of int" >&5
+ − 4504
+ − 4505 cat > conftest.$ac_ext <<EOF
+ − 4506 #line 4507 "configure"
151
+ − 4507 #include "confdefs.h"
+ − 4508 #include <stdio.h>
+ − 4509 main()
+ − 4510 {
+ − 4511 FILE *f=fopen("conftestval", "w");
+ − 4512 if (!f) exit(1);
+ − 4513 fprintf(f, "%d\n", sizeof(int));
+ − 4514 exit(0);
+ − 4515 }
+ − 4516 EOF
561
+ − 4517 if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
+ − 4518 then
+ − 4519 ac_cv_sizeof_int=`cat conftestval`
+ − 4520 else
373
+ − 4521 conftest_rc="$?"
151
+ − 4522 echo "configure: failed program was:" >&5
+ − 4523 cat conftest.$ac_ext >&5
+ − 4524 rm -fr conftest*
+ − 4525 ac_cv_sizeof_int=0
+ − 4526 fi
+ − 4527 rm -fr conftest*
+ − 4528 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
+ − 4529 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4530 Defining SIZEOF_INT = $ac_cv_sizeof_int
+ − 4531 EOF
+ − 4532 cat >> confdefs.h <<EOF
+ − 4533 #define SIZEOF_INT $ac_cv_sizeof_int
+ − 4534 EOF
+ − 4535 }
+ − 4536
+ − 4537
+ − 4538 echo $ac_n "checking size of long""... $ac_c" 1>&6
561
+ − 4539 echo "configure:4540: checking size of long" >&5
+ − 4540
+ − 4541 cat > conftest.$ac_ext <<EOF
+ − 4542 #line 4543 "configure"
151
+ − 4543 #include "confdefs.h"
+ − 4544 #include <stdio.h>
+ − 4545 main()
+ − 4546 {
+ − 4547 FILE *f=fopen("conftestval", "w");
+ − 4548 if (!f) exit(1);
+ − 4549 fprintf(f, "%d\n", sizeof(long));
+ − 4550 exit(0);
+ − 4551 }
+ − 4552 EOF
561
+ − 4553 if { (eval echo configure:4554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
+ − 4554 then
+ − 4555 ac_cv_sizeof_long=`cat conftestval`
+ − 4556 else
373
+ − 4557 conftest_rc="$?"
151
+ − 4558 echo "configure: failed program was:" >&5
+ − 4559 cat conftest.$ac_ext >&5
+ − 4560 rm -fr conftest*
+ − 4561 ac_cv_sizeof_long=0
+ − 4562 fi
+ − 4563 rm -fr conftest*
+ − 4564 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
+ − 4565 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4566 Defining SIZEOF_LONG = $ac_cv_sizeof_long
+ − 4567 EOF
+ − 4568 cat >> confdefs.h <<EOF
+ − 4569 #define SIZEOF_LONG $ac_cv_sizeof_long
+ − 4570 EOF
+ − 4571 }
+ − 4572
+ − 4573
163
+ − 4574 echo $ac_n "checking size of long long""... $ac_c" 1>&6
561
+ − 4575 echo "configure:4576: checking size of long long" >&5
+ − 4576
+ − 4577 cat > conftest.$ac_ext <<EOF
+ − 4578 #line 4579 "configure"
163
+ − 4579 #include "confdefs.h"
+ − 4580 #include <stdio.h>
+ − 4581 main()
+ − 4582 {
+ − 4583 FILE *f=fopen("conftestval", "w");
+ − 4584 if (!f) exit(1);
+ − 4585 fprintf(f, "%d\n", sizeof(long long));
+ − 4586 exit(0);
+ − 4587 }
+ − 4588 EOF
561
+ − 4589 if { (eval echo configure:4590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
+ − 4590 then
+ − 4591 ac_cv_sizeof_long_long=`cat conftestval`
+ − 4592 else
373
+ − 4593 conftest_rc="$?"
163
+ − 4594 echo "configure: failed program was:" >&5
+ − 4595 cat conftest.$ac_ext >&5
+ − 4596 rm -fr conftest*
+ − 4597 ac_cv_sizeof_long_long=0
+ − 4598 fi
+ − 4599 rm -fr conftest*
+ − 4600 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
+ − 4601 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4602 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
+ − 4603 EOF
+ − 4604 cat >> confdefs.h <<EOF
+ − 4605 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
+ − 4606 EOF
+ − 4607 }
+ − 4608
+ − 4609
+ − 4610 echo $ac_n "checking size of void *""... $ac_c" 1>&6
561
+ − 4611 echo "configure:4612: checking size of void *" >&5
+ − 4612
+ − 4613 cat > conftest.$ac_ext <<EOF
+ − 4614 #line 4615 "configure"
163
+ − 4615 #include "confdefs.h"
+ − 4616 #include <stdio.h>
+ − 4617 main()
+ − 4618 {
+ − 4619 FILE *f=fopen("conftestval", "w");
+ − 4620 if (!f) exit(1);
+ − 4621 fprintf(f, "%d\n", sizeof(void *));
+ − 4622 exit(0);
+ − 4623 }
+ − 4624 EOF
561
+ − 4625 if { (eval echo configure:4626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
+ − 4626 then
+ − 4627 ac_cv_sizeof_void_p=`cat conftestval`
+ − 4628 else
373
+ − 4629 conftest_rc="$?"
163
+ − 4630 echo "configure: failed program was:" >&5
+ − 4631 cat conftest.$ac_ext >&5
+ − 4632 rm -fr conftest*
+ − 4633 ac_cv_sizeof_void_p=0
+ − 4634 fi
+ − 4635 rm -fr conftest*
+ − 4636 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
+ − 4637 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4638 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
+ − 4639 EOF
+ − 4640 cat >> confdefs.h <<EOF
+ − 4641 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
+ − 4642 EOF
+ − 4643 }
+ − 4644
+ − 4645
151
+ − 4646
149
+ − 4647 echo $ac_n "checking for long file names""... $ac_c" 1>&6
561
+ − 4648 echo "configure:4649: checking for long file names" >&5
149
+ − 4649
+ − 4650 ac_cv_sys_long_file_names=yes
0
+ − 4651 # Test for long file names in all the places we know might matter:
+ − 4652 # . the current directory, where building will happen
149
+ − 4653 # $prefix/lib where we will be installing things
+ − 4654 # $exec_prefix/lib likewise
+ − 4655 # eval it to expand exec_prefix.
+ − 4656 # $TMPDIR if set, where it might want to write temporary files
+ − 4657 # if $TMPDIR is not set:
0
+ − 4658 # /tmp where it might want to write temporary files
+ − 4659 # /var/tmp likewise
+ − 4660 # /usr/tmp likewise
149
+ − 4661 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
+ − 4662 ac_tmpdirs="$TMPDIR"
+ − 4663 else
+ − 4664 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
+ − 4665 fi
+ − 4666 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
0
+ − 4667 test -d $ac_dir || continue
149
+ − 4668 test -w $ac_dir || continue # It is less confusing to not echo anything here.
0
+ − 4669 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
+ − 4670 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
+ − 4671 val=`cat $ac_dir/conftest9012345 2>/dev/null`
149
+ − 4672 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
+ − 4673 ac_cv_sys_long_file_names=no
+ − 4674 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
+ − 4675 break
0
+ − 4676 fi
149
+ − 4677 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
+ − 4678 done
+ − 4679
+ − 4680 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
+ − 4681 if test $ac_cv_sys_long_file_names = yes; then
+ − 4682 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4683 Defining HAVE_LONG_FILE_NAMES
+ − 4684 EOF
+ − 4685 cat >> confdefs.h <<\EOF
+ − 4686 #define HAVE_LONG_FILE_NAMES 1
+ − 4687 EOF
+ − 4688 }
+ − 4689
+ − 4690 fi
+ − 4691
+ − 4692
398
+ − 4693 echo $ac_n "checking for sin""... $ac_c" 1>&6
561
+ − 4694 echo "configure:4695: checking for sin" >&5
+ − 4695
+ − 4696 cat > conftest.$ac_ext <<EOF
+ − 4697 #line 4698 "configure"
398
+ − 4698 #include "confdefs.h"
+ − 4699 /* System header to define __stub macros and hopefully few prototypes,
+ − 4700 which can conflict with char sin(); below. */
+ − 4701 #include <assert.h>
+ − 4702 /* Override any gcc2 internal prototype to avoid an error. */
+ − 4703 /* We use char because int might match the return type of a gcc2
+ − 4704 builtin and then its argument prototype would still apply. */
+ − 4705 char sin();
+ − 4706
+ − 4707 int main() {
+ − 4708
+ − 4709 /* The GNU C library defines this for functions which it implements
+ − 4710 to always fail with ENOSYS. Some functions are actually named
+ − 4711 something starting with __ and the normal name is an alias. */
+ − 4712 #if defined (__stub_sin) || defined (__stub___sin)
+ − 4713 choke me
+ − 4714 #else
+ − 4715 sin();
+ − 4716 #endif
+ − 4717
+ − 4718 ; return 0; }
+ − 4719 EOF
561
+ − 4720 if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
+ − 4721 rm -rf conftest*
+ − 4722 eval "ac_cv_func_sin=yes"
+ − 4723 else
+ − 4724 echo "configure: failed program was:" >&5
+ − 4725 cat conftest.$ac_ext >&5
+ − 4726 rm -rf conftest*
+ − 4727 eval "ac_cv_func_sin=no"
+ − 4728 fi
+ − 4729 rm -f conftest*
+ − 4730
+ − 4731 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
+ − 4732 echo "$ac_t""yes" 1>&6
+ − 4733 :
+ − 4734 else
+ − 4735 echo "$ac_t""no" 1>&6
149
+ − 4736
207
+ − 4737 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
561
+ − 4738 echo "configure:4739: checking for sin in -lm" >&5
207
+ − 4739 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
149
+ − 4740
+ − 4741 xe_check_libs=" -lm "
+ − 4742 cat > conftest.$ac_ext <<EOF
561
+ − 4743 #line 4744 "configure"
149
+ − 4744 #include "confdefs.h"
+ − 4745 /* Override any gcc2 internal prototype to avoid an error. */
+ − 4746 /* We use char because int might match the return type of a gcc2
+ − 4747 builtin and then its argument prototype would still apply. */
207
+ − 4748 char sin();
149
+ − 4749
+ − 4750 int main() {
207
+ − 4751 sin()
149
+ − 4752 ; return 0; }
+ − 4753 EOF
561
+ − 4754 if { (eval echo configure:4755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 4755 rm -rf conftest*
+ − 4756 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 4757 else
+ − 4758 echo "configure: failed program was:" >&5
+ − 4759 cat conftest.$ac_ext >&5
+ − 4760 rm -rf conftest*
+ − 4761 eval "ac_cv_lib_$ac_lib_var=no"
+ − 4762 fi
+ − 4763 rm -f conftest*
+ − 4764 xe_check_libs=""
+ − 4765
151
+ − 4766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 4767 echo "$ac_t""yes" 1>&6
398
+ − 4768 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
149
+ − 4769 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 4770 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4771 Defining $ac_tr_lib
+ − 4772 EOF
+ − 4773 cat >> confdefs.h <<EOF
+ − 4774 #define $ac_tr_lib 1
+ − 4775 EOF
+ − 4776 }
+ − 4777
151
+ − 4778 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
+ − 4779
+ − 4780 else
+ − 4781 echo "$ac_t""no" 1>&6
+ − 4782 fi
+ − 4783
+ − 4784
398
+ − 4785 fi
+ − 4786
151
+ − 4787
+ − 4788 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4789 Defining LISP_FLOAT_TYPE
+ − 4790 EOF
+ − 4791 cat >> confdefs.h <<\EOF
+ − 4792 #define LISP_FLOAT_TYPE 1
+ − 4793 EOF
+ − 4794 }
149
+ − 4795
+ − 4796
243
+ − 4797 cat > conftest.$ac_ext <<EOF
561
+ − 4798 #line 4799 "configure"
243
+ − 4799 #include "confdefs.h"
+ − 4800 #include <math.h>
+ − 4801 int main() {
+ − 4802 return atanh(1.0) + asinh(1.0) + acosh(1.0);
+ − 4803 ; return 0; }
+ − 4804 EOF
561
+ − 4805 if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
243
+ − 4806 rm -rf conftest*
+ − 4807 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4808 Defining HAVE_INVERSE_HYPERBOLIC
+ − 4809 EOF
+ − 4810 cat >> confdefs.h <<\EOF
+ − 4811 #define HAVE_INVERSE_HYPERBOLIC 1
+ − 4812 EOF
+ − 4813 }
+ − 4814
+ − 4815 else
+ − 4816 echo "configure: failed program was:" >&5
+ − 4817 cat conftest.$ac_ext >&5
+ − 4818 fi
+ − 4819 rm -f conftest*
+ − 4820
567
+ − 4821 for ac_func in mkstemp
438
+ − 4822 do
+ − 4823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
567
+ − 4824 echo "configure:4825: checking for $ac_func" >&5
+ − 4825
+ − 4826 cat > conftest.$ac_ext <<EOF
+ − 4827 #line 4828 "configure"
438
+ − 4828 #include "confdefs.h"
+ − 4829 /* System header to define __stub macros and hopefully few prototypes,
+ − 4830 which can conflict with char $ac_func(); below. */
+ − 4831 #include <assert.h>
+ − 4832 /* Override any gcc2 internal prototype to avoid an error. */
+ − 4833 /* We use char because int might match the return type of a gcc2
+ − 4834 builtin and then its argument prototype would still apply. */
+ − 4835 char $ac_func();
+ − 4836
+ − 4837 int main() {
+ − 4838
+ − 4839 /* The GNU C library defines this for functions which it implements
+ − 4840 to always fail with ENOSYS. Some functions are actually named
+ − 4841 something starting with __ and the normal name is an alias. */
+ − 4842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 4843 choke me
+ − 4844 #else
+ − 4845 $ac_func();
+ − 4846 #endif
+ − 4847
+ − 4848 ; return 0; }
+ − 4849 EOF
567
+ − 4850 if { (eval echo configure:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ − 4851 rm -rf conftest*
+ − 4852 eval "ac_cv_func_$ac_func=yes"
+ − 4853 else
+ − 4854 echo "configure: failed program was:" >&5
+ − 4855 cat conftest.$ac_ext >&5
+ − 4856 rm -rf conftest*
+ − 4857 eval "ac_cv_func_$ac_func=no"
+ − 4858 fi
+ − 4859 rm -f conftest*
+ − 4860
+ − 4861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 4862 echo "$ac_t""yes" 1>&6
+ − 4863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 4864 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4865 Defining $ac_tr_func
+ − 4866 EOF
+ − 4867 cat >> confdefs.h <<EOF
+ − 4868 #define $ac_tr_func 1
+ − 4869 EOF
+ − 4870 }
+ − 4871
+ − 4872 else
+ − 4873 echo "$ac_t""no" 1>&6
+ − 4874 fi
+ − 4875 done
+ − 4876
+ − 4877
+ − 4878 echo "checking type of mail spool file locking" 1>&6
+ − 4879 echo "configure:4880: checking type of mail spool file locking" >&5
+ − 4880 for ac_func in lockf flock
+ − 4881 do
+ − 4882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ − 4883 echo "configure:4884: checking for $ac_func" >&5
+ − 4884
+ − 4885 cat > conftest.$ac_ext <<EOF
+ − 4886 #line 4887 "configure"
+ − 4887 #include "confdefs.h"
+ − 4888 /* System header to define __stub macros and hopefully few prototypes,
+ − 4889 which can conflict with char $ac_func(); below. */
+ − 4890 #include <assert.h>
+ − 4891 /* Override any gcc2 internal prototype to avoid an error. */
+ − 4892 /* We use char because int might match the return type of a gcc2
+ − 4893 builtin and then its argument prototype would still apply. */
+ − 4894 char $ac_func();
+ − 4895
+ − 4896 int main() {
+ − 4897
+ − 4898 /* The GNU C library defines this for functions which it implements
+ − 4899 to always fail with ENOSYS. Some functions are actually named
+ − 4900 something starting with __ and the normal name is an alias. */
+ − 4901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 4902 choke me
+ − 4903 #else
+ − 4904 $ac_func();
+ − 4905 #endif
+ − 4906
+ − 4907 ; return 0; }
+ − 4908 EOF
+ − 4909 if { (eval echo configure:4910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
438
+ − 4910 rm -rf conftest*
+ − 4911 eval "ac_cv_func_$ac_func=yes"
+ − 4912 else
+ − 4913 echo "configure: failed program was:" >&5
+ − 4914 cat conftest.$ac_ext >&5
+ − 4915 rm -rf conftest*
+ − 4916 eval "ac_cv_func_$ac_func=no"
+ − 4917 fi
+ − 4918 rm -f conftest*
+ − 4919
+ − 4920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 4921 echo "$ac_t""yes" 1>&6
+ − 4922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 4923 { test "$extra_verbose" = "yes" && cat << EOF
+ − 4924 Defining $ac_tr_func
+ − 4925 EOF
+ − 4926 cat >> confdefs.h <<EOF
+ − 4927 #define $ac_tr_func 1
+ − 4928 EOF
+ − 4929 }
+ − 4930
+ − 4931 else
+ − 4932 echo "$ac_t""no" 1>&6
+ − 4933 fi
+ − 4934 done
+ − 4935
149
+ − 4936 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
+ − 4937 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
438
+ − 4938 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
442
+ − 4939 if test -z "$mail_locking"; then
+ − 4940 case "$opsys" in cygwin* | mingw*)
+ − 4941 mail_locking=pop ;;
+ − 4942 esac
+ − 4943 fi
+ − 4944
149
+ − 4945 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
438
+ − 4946 Defining MAIL_LOCK_LOCKF
+ − 4947 EOF
+ − 4948 cat >> confdefs.h <<\EOF
+ − 4949 #define MAIL_LOCK_LOCKF 1
149
+ − 4950 EOF
+ − 4951 }
+ − 4952
+ − 4953 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
438
+ − 4954 Defining MAIL_LOCK_FLOCK
+ − 4955 EOF
+ − 4956 cat >> confdefs.h <<\EOF
+ − 4957 #define MAIL_LOCK_FLOCK 1
+ − 4958 EOF
+ − 4959 }
+ − 4960
+ − 4961 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4962 Defining MAIL_LOCK_LOCKING
+ − 4963 EOF
+ − 4964 cat >> confdefs.h <<\EOF
+ − 4965 #define MAIL_LOCK_LOCKING 1
+ − 4966 EOF
+ − 4967 }
+ − 4968
442
+ − 4969 elif test "$mail_locking" = "pop"; then
+ − 4970 with_pop=yes
+ − 4971 mail_locking=
438
+ − 4972 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
+ − 4973 Defining MAIL_LOCK_DOT
+ − 4974 EOF
+ − 4975 cat >> confdefs.h <<\EOF
+ − 4976 #define MAIL_LOCK_DOT 1
+ − 4977 EOF
+ − 4978 }
+ − 4979
+ − 4980 fi
+ − 4981 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
+ − 4982 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
+ − 4983 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
+ − 4984 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
+ − 4985 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
+ − 4986 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
151
+ − 4987
278
+ − 4988 case "$opsys" in decosf*)
+ − 4989
151
+ − 4990 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
567
+ − 4991 echo "configure:4992: checking for cma_open in -lpthreads" >&5
151
+ − 4992 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
+ − 4993
+ − 4994 xe_check_libs=" -lpthreads "
+ − 4995 cat > conftest.$ac_ext <<EOF
567
+ − 4996 #line 4997 "configure"
151
+ − 4997 #include "confdefs.h"
+ − 4998 /* Override any gcc2 internal prototype to avoid an error. */
+ − 4999 /* We use char because int might match the return type of a gcc2
+ − 5000 builtin and then its argument prototype would still apply. */
+ − 5001 char cma_open();
+ − 5002
+ − 5003 int main() {
+ − 5004 cma_open()
+ − 5005 ; return 0; }
+ − 5006 EOF
567
+ − 5007 if { (eval echo configure:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
+ − 5008 rm -rf conftest*
+ − 5009 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5010 else
+ − 5011 echo "configure: failed program was:" >&5
+ − 5012 cat conftest.$ac_ext >&5
+ − 5013 rm -rf conftest*
+ − 5014 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5015 fi
+ − 5016 rm -f conftest*
+ − 5017 xe_check_libs=""
+ − 5018
+ − 5019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5020 echo "$ac_t""yes" 1>&6
+ − 5021 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 5022 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 5023 { test "$extra_verbose" = "yes" && cat << EOF
+ − 5024 Defining $ac_tr_lib
+ − 5025 EOF
+ − 5026 cat >> confdefs.h <<EOF
+ − 5027 #define $ac_tr_lib 1
+ − 5028 EOF
+ − 5029 }
+ − 5030
+ − 5031 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
+ − 5032
+ − 5033 else
+ − 5034 echo "$ac_t""no" 1>&6
+ − 5035 fi
+ − 5036
+ − 5037
278
+ − 5038 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
+ − 5039 c_switch_site="$c_switch_site -threads" ;;
+ − 5040 esac
151
+ − 5041
+ − 5042 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
567
+ − 5043 echo "configure:5044: checking whether the -xildoff compiler flag is required" >&5
151
+ − 5044 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
+ − 5045 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
+ − 5046 then echo "$ac_t""no" 1>&6;
+ − 5047 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
+ − 5048 fi
+ − 5049 else echo "$ac_t""no" 1>&6
+ − 5050 fi
+ − 5051
442
+ − 5052 if test "$opsys" = "sol2"; then
+ − 5053 if test "$os_release" -ge 56; then
+ − 5054 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
567
+ − 5055 echo "configure:5056: checking for \"-z ignore\" linker flag" >&5
442
+ − 5056 case "`ld -h 2>&1`" in
+ − 5057 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
+ − 5058 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
+ − 5059 *) echo "$ac_t""no" 1>&6 ;;
+ − 5060 esac
+ − 5061 fi
163
+ − 5062 fi
155
+ − 5063
149
+ − 5064
+ − 5065 echo "checking "for specified window system"" 1>&6
567
+ − 5066 echo "configure:5067: checking "for specified window system"" >&5
462
+ − 5067
+ − 5068
+ − 5069 GNOME_CONFIG=no
+ − 5070 GTK_CONFIG=no
+ − 5071
+ − 5072 if test "$with_gnome" != "no"; then
+ − 5073 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
567
+ − 5074 echo "configure:5075: checking for GNOME configuration script" >&5
462
+ − 5075 for possible in gnome-config
+ − 5076 do
+ − 5077 possible_version=`${possible} --version 2> /dev/null`
+ − 5078 if test "x${possible_version}" != "x"; then
+ − 5079 GNOME_CONFIG="${possible}"
+ − 5080 with_gnome=yes
+ − 5081 with_gtk=yes
+ − 5082 break
+ − 5083 fi
+ − 5084 done
+ − 5085 echo "$ac_t""${GNOME_CONFIG}" 1>&6
+ − 5086 fi
+ − 5087
+ − 5088 if test "${GNOME_CONFIG}" != "no"; then
+ − 5089 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
+ − 5090 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
+ − 5091 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 5092 Defining HAVE_GNOME
+ − 5093 EOF
+ − 5094 cat >> confdefs.h <<\EOF
+ − 5095 #define HAVE_GNOME 1
+ − 5096 EOF
+ − 5097 }
+ − 5098
+ − 5099 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
+ − 5100 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
+ − 5101 fi
+ − 5102
+ − 5103 if test "$with_gtk" != "no";then
+ − 5104 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
567
+ − 5105 echo "configure:5106: checking for GTK configuration script" >&5
462
+ − 5106 for possible in gtk12-config gtk14-config gtk-config
+ − 5107 do
+ − 5108 possible_version=`${possible} --version 2> /dev/null`
+ − 5109 if test "x${possible_version}" != "x"; then
+ − 5110 GTK_CONFIG="${possible}"
527
+ − 5111 case "${possible_version}" in
+ − 5112 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
+ − 5113 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
+ − 5114 1.2.*)
+ − 5115 with_gtk=yes
+ − 5116 break
+ − 5117 ;;
+ − 5118 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
+ − 5119 esac
462
+ − 5120 fi
+ − 5121 done
+ − 5122 echo "$ac_t""${GTK_CONFIG}" 1>&6
+ − 5123 fi
+ − 5124
+ − 5125 if test "${GTK_CONFIG}" != "no"; then
+ − 5126 echo $ac_n "checking gtk version""... $ac_c" 1>&6
567
+ − 5127 echo "configure:5128: checking gtk version" >&5
462
+ − 5128 GTK_VERSION=`${GTK_CONFIG} --version`
+ − 5129 echo "$ac_t""${GTK_VERSION}" 1>&6
+ − 5130
+ − 5131 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
567
+ − 5132 echo "configure:5133: checking gtk libs" >&5
462
+ − 5133 GTK_LIBS=`${GTK_CONFIG} --libs`
+ − 5134 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
+ − 5135 echo "$ac_t""${GTK_LIBS}" 1>&6
+ − 5136
+ − 5137 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
567
+ − 5138 echo "configure:5139: checking gtk cflags" >&5
462
+ − 5139 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
+ − 5140 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
+ − 5141 echo "$ac_t""${GTK_CFLAGS}" 1>&6
+ − 5142
+ − 5143
+ − 5144 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
567
+ − 5145 echo "configure:5146: checking for main in -lgdk_imlib" >&5
462
+ − 5146 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
+ − 5147
+ − 5148 xe_check_libs=" -lgdk_imlib "
+ − 5149 cat > conftest.$ac_ext <<EOF
567
+ − 5150 #line 5151 "configure"
462
+ − 5151 #include "confdefs.h"
+ − 5152
+ − 5153 int main() {
+ − 5154 main()
+ − 5155 ; return 0; }
+ − 5156 EOF
567
+ − 5157 if { (eval echo configure:5158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5158 rm -rf conftest*
+ − 5159 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5160 else
+ − 5161 echo "configure: failed program was:" >&5
+ − 5162 cat conftest.$ac_ext >&5
+ − 5163 rm -rf conftest*
+ − 5164 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5165 fi
+ − 5166 rm -f conftest*
+ − 5167 xe_check_libs=""
+ − 5168
+ − 5169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5170 echo "$ac_t""yes" 1>&6
+ − 5171 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
+ − 5172 else
+ − 5173 echo "$ac_t""no" 1>&6
+ − 5174 fi
+ − 5175
+ − 5176
+ − 5177
+ − 5178 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
567
+ − 5179 echo "configure:5180: checking for Imlib_init in -lImlib" >&5
462
+ − 5180 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
+ − 5181
+ − 5182 xe_check_libs=" -lImlib "
+ − 5183 cat > conftest.$ac_ext <<EOF
567
+ − 5184 #line 5185 "configure"
462
+ − 5185 #include "confdefs.h"
+ − 5186 /* Override any gcc2 internal prototype to avoid an error. */
+ − 5187 /* We use char because int might match the return type of a gcc2
+ − 5188 builtin and then its argument prototype would still apply. */
+ − 5189 char Imlib_init();
+ − 5190
+ − 5191 int main() {
+ − 5192 Imlib_init()
+ − 5193 ; return 0; }
+ − 5194 EOF
567
+ − 5195 if { (eval echo configure:5196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5196 rm -rf conftest*
+ − 5197 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5198 else
+ − 5199 echo "configure: failed program was:" >&5
+ − 5200 cat conftest.$ac_ext >&5
+ − 5201 rm -rf conftest*
+ − 5202 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5203 fi
+ − 5204 rm -f conftest*
+ − 5205 xe_check_libs=""
+ − 5206
+ − 5207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5208 echo "$ac_t""yes" 1>&6
+ − 5209 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
+ − 5210 else
+ − 5211 echo "$ac_t""no" 1>&6
+ − 5212 fi
+ − 5213
+ − 5214
+ − 5215 for ac_func in gdk_imlib_init
+ − 5216 do
+ − 5217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
567
+ − 5218 echo "configure:5219: checking for $ac_func" >&5
+ − 5219
+ − 5220 cat > conftest.$ac_ext <<EOF
+ − 5221 #line 5222 "configure"
462
+ − 5222 #include "confdefs.h"
+ − 5223 /* System header to define __stub macros and hopefully few prototypes,
+ − 5224 which can conflict with char $ac_func(); below. */
+ − 5225 #include <assert.h>
+ − 5226 /* Override any gcc2 internal prototype to avoid an error. */
+ − 5227 /* We use char because int might match the return type of a gcc2
+ − 5228 builtin and then its argument prototype would still apply. */
+ − 5229 char $ac_func();
+ − 5230
+ − 5231 int main() {
+ − 5232
+ − 5233 /* The GNU C library defines this for functions which it implements
+ − 5234 to always fail with ENOSYS. Some functions are actually named
+ − 5235 something starting with __ and the normal name is an alias. */
+ − 5236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 5237 choke me
+ − 5238 #else
+ − 5239 $ac_func();
+ − 5240 #endif
+ − 5241
+ − 5242 ; return 0; }
+ − 5243 EOF
567
+ − 5244 if { (eval echo configure:5245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5245 rm -rf conftest*
+ − 5246 eval "ac_cv_func_$ac_func=yes"
+ − 5247 else
+ − 5248 echo "configure: failed program was:" >&5
+ − 5249 cat conftest.$ac_ext >&5
+ − 5250 rm -rf conftest*
+ − 5251 eval "ac_cv_func_$ac_func=no"
+ − 5252 fi
+ − 5253 rm -f conftest*
+ − 5254
+ − 5255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 5256 echo "$ac_t""yes" 1>&6
+ − 5257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 5258 { test "$extra_verbose" = "yes" && cat << EOF
+ − 5259 Defining $ac_tr_func
+ − 5260 EOF
+ − 5261 cat >> confdefs.h <<EOF
+ − 5262 #define $ac_tr_func 1
+ − 5263 EOF
+ − 5264 }
+ − 5265
+ − 5266 else
+ − 5267 echo "$ac_t""no" 1>&6
+ − 5268 fi
+ − 5269 done
+ − 5270
+ − 5271
+ − 5272 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 5273 Defining HAVE_XPM
+ − 5274 EOF
+ − 5275 cat >> confdefs.h <<\EOF
+ − 5276 #define HAVE_XPM 1
+ − 5277 EOF
+ − 5278 }
+ − 5279
+ − 5280 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 5281 Defining HAVE_GTK
+ − 5282 EOF
+ − 5283 cat >> confdefs.h <<\EOF
+ − 5284 #define HAVE_GTK 1
+ − 5285 EOF
+ − 5286 }
+ − 5287
+ − 5288
+ − 5289
+ − 5290 window_system=gtk
+ − 5291 with_gtk=yes
+ − 5292 with_x11=no
+ − 5293
+ − 5294 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
+ − 5295 test "${with_toolbars}" != no && with_toolbars=gtk
+ − 5296 test "${with_menubars}" != "no" && with_menubars=gtk
+ − 5297 test "${with_dialogs}" != "no" && with_dialogs=gtk
+ − 5298 test "${with_widgets}" != "no" && with_widgets=gtk
+ − 5299
+ − 5300 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 5301 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
+ − 5302 fi
+ − 5303 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 5304 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
+ − 5305 fi
+ − 5306 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 5307 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
+ − 5308 fi
+ − 5309 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 5310 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
+ − 5311 fi
+ − 5312
+ − 5313 OLD_CFLAGS="${CFLAGS}"
+ − 5314 OLD_LDFLAGS="${LDFLAGS}"
+ − 5315 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
+ − 5316 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
+ − 5317 for ac_hdr in glade/glade.h glade.h
+ − 5318 do
+ − 5319 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 5320 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
567
+ − 5321 echo "configure:5322: checking for $ac_hdr" >&5
+ − 5322
+ − 5323 cat > conftest.$ac_ext <<EOF
+ − 5324 #line 5325 "configure"
462
+ − 5325 #include "confdefs.h"
+ − 5326 #include <$ac_hdr>
+ − 5327 EOF
+ − 5328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
567
+ − 5329 { (eval echo configure:5330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
462
+ − 5330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 5331 if test -z "$ac_err"; then
+ − 5332 rm -rf conftest*
+ − 5333 eval "ac_cv_header_$ac_safe=yes"
+ − 5334 else
+ − 5335 echo "$ac_err" >&5
+ − 5336 echo "configure: failed program was:" >&5
+ − 5337 cat conftest.$ac_ext >&5
+ − 5338 rm -rf conftest*
+ − 5339 eval "ac_cv_header_$ac_safe=no"
+ − 5340 fi
+ − 5341 rm -f conftest*
+ − 5342 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 5343 echo "$ac_t""yes" 1>&6
+ − 5344 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 5345 { test "$extra_verbose" = "yes" && cat << EOF
+ − 5346 Defining $ac_tr_hdr
+ − 5347 EOF
+ − 5348 cat >> confdefs.h <<EOF
+ − 5349 #define $ac_tr_hdr 1
+ − 5350 EOF
+ − 5351 }
+ − 5352
+ − 5353 else
+ − 5354 echo "$ac_t""no" 1>&6
+ − 5355 fi
+ − 5356 done
+ − 5357
+ − 5358
+ − 5359 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
567
+ − 5360 echo "configure:5361: checking for main in -lxml" >&5
462
+ − 5361 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
+ − 5362
+ − 5363 xe_check_libs=" -lxml "
+ − 5364 cat > conftest.$ac_ext <<EOF
567
+ − 5365 #line 5366 "configure"
462
+ − 5366 #include "confdefs.h"
+ − 5367
+ − 5368 int main() {
+ − 5369 main()
+ − 5370 ; return 0; }
+ − 5371 EOF
567
+ − 5372 if { (eval echo configure:5373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5373 rm -rf conftest*
+ − 5374 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5375 else
+ − 5376 echo "configure: failed program was:" >&5
+ − 5377 cat conftest.$ac_ext >&5
+ − 5378 rm -rf conftest*
+ − 5379 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5380 fi
+ − 5381 rm -f conftest*
+ − 5382 xe_check_libs=""
+ − 5383
+ − 5384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5385 echo "$ac_t""yes" 1>&6
+ − 5386 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
+ − 5387 else
+ − 5388 echo "$ac_t""no" 1>&6
+ − 5389 fi
+ − 5390
+ − 5391
+ − 5392
+ − 5393 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
567
+ − 5394 echo "configure:5395: checking for main in -lglade" >&5
462
+ − 5395 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
+ − 5396
+ − 5397 xe_check_libs=" -lglade "
+ − 5398 cat > conftest.$ac_ext <<EOF
567
+ − 5399 #line 5400 "configure"
462
+ − 5400 #include "confdefs.h"
+ − 5401
+ − 5402 int main() {
+ − 5403 main()
+ − 5404 ; return 0; }
+ − 5405 EOF
567
+ − 5406 if { (eval echo configure:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5407 rm -rf conftest*
+ − 5408 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5409 else
+ − 5410 echo "configure: failed program was:" >&5
+ − 5411 cat conftest.$ac_ext >&5
+ − 5412 rm -rf conftest*
+ − 5413 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5414 fi
+ − 5415 rm -f conftest*
+ − 5416 xe_check_libs=""
+ − 5417
+ − 5418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5419 echo "$ac_t""yes" 1>&6
+ − 5420 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
+ − 5421 else
+ − 5422 echo "$ac_t""no" 1>&6
+ − 5423 fi
+ − 5424
+ − 5425
+ − 5426
+ − 5427 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
567
+ − 5428 echo "configure:5429: checking for main in -lglade-gnome" >&5
462
+ − 5429 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
+ − 5430
+ − 5431 xe_check_libs=" -lglade-gnome "
+ − 5432 cat > conftest.$ac_ext <<EOF
567
+ − 5433 #line 5434 "configure"
462
+ − 5434 #include "confdefs.h"
+ − 5435
+ − 5436 int main() {
+ − 5437 main()
+ − 5438 ; return 0; }
+ − 5439 EOF
567
+ − 5440 if { (eval echo configure:5441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 5441 rm -rf conftest*
+ − 5442 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5443 else
+ − 5444 echo "configure: failed program was:" >&5
+ − 5445 cat conftest.$ac_ext >&5
+ − 5446 rm -rf conftest*
+ − 5447 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5448 fi
+ − 5449 rm -f conftest*
+ − 5450 xe_check_libs=""
+ − 5451
+ − 5452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 5453 echo "$ac_t""yes" 1>&6
+ − 5454 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
+ − 5455 else
+ − 5456 echo "$ac_t""no" 1>&6
+ − 5457 fi
+ − 5458
+ − 5459
+ − 5460 cat > conftest.$ac_ext <<EOF
567
+ − 5461 #line 5462 "configure"
462
+ − 5462 #include "confdefs.h"
+ − 5463 #include <glade/glade-xml.h>
+ − 5464 EOF
+ − 5465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 5466 egrep "char \*txtdomain;" >/dev/null 2>&1; then
+ − 5467 rm -rf conftest*
+ − 5468 echo "$ac_t""yes" 1>&6
+ − 5469 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 5470 Defining LIBGLADE_XML_TXTDOMAIN = 1
+ − 5471 EOF
+ − 5472 cat >> confdefs.h <<\EOF
+ − 5473 #define LIBGLADE_XML_TXTDOMAIN 1
+ − 5474 EOF
+ − 5475 }
+ − 5476
+ − 5477 else
+ − 5478 rm -rf conftest*
+ − 5479 echo "$ac_t""no" 1>&6
+ − 5480 fi
+ − 5481 rm -f conftest*
+ − 5482
+ − 5483 CFLAGS="${OLD_CFLAGS}"
+ − 5484 LDFLAGS="${OLD_LDFLAGS}"
+ − 5485 fi
+ − 5486
149
+ − 5487
187
+ − 5488 if test "$with_x11" != "no"; then
+ − 5489 test "$x_includes $x_libraries" != "NONE NONE" && \
+ − 5490 window_system=x11 with_x11=yes
+ − 5491
272
+ − 5492
+ − 5493 if test "$x_includes $x_libraries" = "NONE NONE" \
+ − 5494 -a -n "$OPENWINHOME" \
+ − 5495 -a "$OPENWINHOME" != "/usr/openwin" \
+ − 5496 -a -d "$OPENWINHOME"; then
187
+ − 5497 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
+ − 5498 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
+ − 5499 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
272
+ − 5500 fi
+ − 5501
+ − 5502 if test "$x_includes" = "NONE"; then
+ − 5503 for dir in "/usr/X11" "/usr/X11R6"; do
+ − 5504 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
+ − 5505 done
+ − 5506 fi
+ − 5507
+ − 5508 if test "$x_libraries" = "NONE"; then
+ − 5509 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
+ − 5510 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
+ − 5511 done
149
+ − 5512 fi
187
+ − 5513
149
+ − 5514 # If we find X, set shell vars x_includes and x_libraries to the
+ − 5515 # paths, otherwise set no_x=yes.
+ − 5516 # Uses ac_ vars as temps to allow command line to override cache and checks.
+ − 5517 # --without-x overrides everything else, but does not touch the cache.
+ − 5518 echo $ac_n "checking for X""... $ac_c" 1>&6
567
+ − 5519 echo "configure:5520: checking for X" >&5
149
+ − 5520
+ − 5521 # Check whether --with-x or --without-x was given.
+ − 5522 if test "${with_x+set}" = set; then
+ − 5523 withval="$with_x"
+ − 5524 :
+ − 5525 fi
+ − 5526
+ − 5527 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
+ − 5528 if test "x$with_x" = xno; then
+ − 5529 # The user explicitly disabled X.
+ − 5530 have_x=disabled
+ − 5531 else
+ − 5532 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
+ − 5533 # Both variables are already set.
+ − 5534 have_x=yes
+ − 5535 else
+ − 5536
+ − 5537 # One or both of the vars are not set, and there is no cached value.
+ − 5538 ac_x_includes=NO ac_x_libraries=NO
0
+ − 5539 rm -fr conftestdir
+ − 5540 if mkdir conftestdir; then
+ − 5541 cd conftestdir
+ − 5542 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
+ − 5543 cat > Imakefile <<'EOF'
+ − 5544 acfindx:
+ − 5545 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
+ − 5546 EOF
+ − 5547 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
+ − 5548 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
149
+ − 5549 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
0
+ − 5550 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
149
+ − 5551 for ac_extension in a so sl; do
+ − 5552 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
+ − 5553 test -f $ac_im_libdir/libX11.$ac_extension; then
+ − 5554 ac_im_usrlibdir=$ac_im_libdir; break
+ − 5555 fi
+ − 5556 done
+ − 5557 # Screen out bogus values from the imake configuration. They are
+ − 5558 # bogus both because they are the default anyway, and because
+ − 5559 # using them would break gcc on systems where it needs fixed includes.
0
+ − 5560 case "$ac_im_incroot" in
+ − 5561 /usr/include) ;;
149
+ − 5562 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
0
+ − 5563 esac
+ − 5564 case "$ac_im_usrlibdir" in
+ − 5565 /usr/lib | /lib) ;;
149
+ − 5566 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
0
+ − 5567 esac
+ − 5568 fi
+ − 5569 cd ..
+ − 5570 rm -fr conftestdir
+ − 5571 fi
+ − 5572
149
+ − 5573 if test "$ac_x_includes" = NO; then
+ − 5574 # Guess where to find include files, by looking for this one X11 .h file.
+ − 5575 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
+ − 5576
+ − 5577 # First, try using that file with no special directory specified.
+ − 5578 cat > conftest.$ac_ext <<EOF
567
+ − 5579 #line 5580 "configure"
0
+ − 5580 #include "confdefs.h"
+ − 5581 #include <$x_direct_test_include>
+ − 5582 EOF
149
+ − 5583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
567
+ − 5584 { (eval echo configure:5585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 5585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 5586 if test -z "$ac_err"; then
+ − 5587 rm -rf conftest*
149
+ − 5588 # We can compile using X headers with no special include directory.
+ − 5589 ac_x_includes=
+ − 5590 else
+ − 5591 echo "$ac_err" >&5
+ − 5592 echo "configure: failed program was:" >&5
+ − 5593 cat conftest.$ac_ext >&5
+ − 5594 rm -rf conftest*
+ − 5595 # Look for the header file in a standard set of common directories.
+ − 5596 # Check X11 before X11Rn because it is often a symlink to the current release.
0
+ − 5597 for ac_dir in \
149
+ − 5598 /usr/X11/include \
0
+ − 5599 /usr/X11R6/include \
+ − 5600 /usr/X11R5/include \
+ − 5601 /usr/X11R4/include \
+ − 5602 \
149
+ − 5603 /usr/include/X11 \
0
+ − 5604 /usr/include/X11R6 \
+ − 5605 /usr/include/X11R5 \
+ − 5606 /usr/include/X11R4 \
+ − 5607 \
149
+ − 5608 /usr/local/X11/include \
0
+ − 5609 /usr/local/X11R6/include \
+ − 5610 /usr/local/X11R5/include \
+ − 5611 /usr/local/X11R4/include \
+ − 5612 \
149
+ − 5613 /usr/local/include/X11 \
0
+ − 5614 /usr/local/include/X11R6 \
+ − 5615 /usr/local/include/X11R5 \
+ − 5616 /usr/local/include/X11R4 \
+ − 5617 \
+ − 5618 /usr/X386/include \
+ − 5619 /usr/x386/include \
+ − 5620 /usr/XFree86/include/X11 \
+ − 5621 \
+ − 5622 /usr/include \
+ − 5623 /usr/local/include \
+ − 5624 /usr/unsupported/include \
+ − 5625 /usr/athena/include \
+ − 5626 /usr/local/x11r5/include \
+ − 5627 /usr/lpp/Xamples/include \
+ − 5628 \
+ − 5629 /usr/openwin/include \
+ − 5630 /usr/openwin/share/include \
+ − 5631 ; \
+ − 5632 do
+ − 5633 if test -r "$ac_dir/$x_direct_test_include"; then
149
+ − 5634 ac_x_includes=$ac_dir
0
+ − 5635 break
+ − 5636 fi
+ − 5637 done
+ − 5638 fi
+ − 5639 rm -f conftest*
149
+ − 5640 fi # $ac_x_includes = NO
+ − 5641
+ − 5642 if test "$ac_x_libraries" = NO; then
+ − 5643 # Check for the libraries.
+ − 5644
+ − 5645 test -z "$x_direct_test_library" && x_direct_test_library=Xt
+ − 5646 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
+ − 5647
+ − 5648 # See if we find them without any special options.
+ − 5649 # Don't add to $LIBS permanently.
+ − 5650 ac_save_LIBS="$LIBS"
+ − 5651 LIBS="-l$x_direct_test_library $LIBS"
+ − 5652 cat > conftest.$ac_ext <<EOF
567
+ − 5653 #line 5654 "configure"
149
+ − 5654 #include "confdefs.h"
+ − 5655
+ − 5656 int main() {
+ − 5657 ${x_direct_test_function}()
+ − 5658 ; return 0; }
+ − 5659 EOF
567
+ − 5660 if { (eval echo configure:5661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 5661 rm -rf conftest*
+ − 5662 LIBS="$ac_save_LIBS"
+ − 5663 # We can link X programs with no special library path.
+ − 5664 ac_x_libraries=
+ − 5665 else
+ − 5666 echo "configure: failed program was:" >&5
+ − 5667 cat conftest.$ac_ext >&5
+ − 5668 rm -rf conftest*
+ − 5669 LIBS="$ac_save_LIBS"
+ − 5670 # First see if replacing the include by lib works.
+ − 5671 # Check X11 before X11Rn because it is often a symlink to the current release.
+ − 5672 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
+ − 5673 /usr/X11/lib \
0
+ − 5674 /usr/X11R6/lib \
+ − 5675 /usr/X11R5/lib \
+ − 5676 /usr/X11R4/lib \
+ − 5677 \
149
+ − 5678 /usr/lib/X11 \
0
+ − 5679 /usr/lib/X11R6 \
+ − 5680 /usr/lib/X11R5 \
+ − 5681 /usr/lib/X11R4 \
+ − 5682 \
149
+ − 5683 /usr/local/X11/lib \
0
+ − 5684 /usr/local/X11R6/lib \
+ − 5685 /usr/local/X11R5/lib \
+ − 5686 /usr/local/X11R4/lib \
+ − 5687 \
149
+ − 5688 /usr/local/lib/X11 \
0
+ − 5689 /usr/local/lib/X11R6 \
+ − 5690 /usr/local/lib/X11R5 \
+ − 5691 /usr/local/lib/X11R4 \
+ − 5692 \
+ − 5693 /usr/X386/lib \
+ − 5694 /usr/x386/lib \
+ − 5695 /usr/XFree86/lib/X11 \
+ − 5696 \
+ − 5697 /usr/lib \
+ − 5698 /usr/local/lib \
+ − 5699 /usr/unsupported/lib \
+ − 5700 /usr/athena/lib \
+ − 5701 /usr/local/x11r5/lib \
+ − 5702 /usr/lpp/Xamples/lib \
149
+ − 5703 /lib/usr/lib/X11 \
0
+ − 5704 \
+ − 5705 /usr/openwin/lib \
+ − 5706 /usr/openwin/share/lib \
+ − 5707 ; \
+ − 5708 do
+ − 5709 for ac_extension in a so sl; do
+ − 5710 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
149
+ − 5711 ac_x_libraries=$ac_dir
0
+ − 5712 break 2
+ − 5713 fi
+ − 5714 done
+ − 5715 done
+ − 5716 fi
149
+ − 5717 rm -f conftest*
+ − 5718 fi # $ac_x_libraries = NO
+ − 5719
+ − 5720 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
+ − 5721 # Didn't find X anywhere. Cache the known absence of X.
+ − 5722 ac_cv_have_x="have_x=no"
+ − 5723 else
+ − 5724 # Record where we found X for the cache.
+ − 5725 ac_cv_have_x="have_x=yes \
+ − 5726 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
+ − 5727 fi
+ − 5728 fi
+ − 5729 eval "$ac_cv_have_x"
+ − 5730 fi # $with_x != no
+ − 5731
+ − 5732 if test "$have_x" != yes; then
+ − 5733 echo "$ac_t""$have_x" 1>&6
+ − 5734 no_x=yes
+ − 5735 else
+ − 5736 # If each of the values was on the command line, it overrides each guess.
+ − 5737 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
+ − 5738 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
+ − 5739 # Update the cache value to reflect the command line values.
+ − 5740 ac_cv_have_x="have_x=yes \
+ − 5741 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
+ − 5742 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
+ − 5743 fi
+ − 5744
+ − 5745 if test "$no_x" = yes; then
+ − 5746 # Not all programs may use this symbol, but it does not hurt to define it.
+ − 5747 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 5748 Defining X_DISPLAY_MISSING
+ − 5749 EOF
+ − 5750 cat >> confdefs.h <<\EOF
+ − 5751 #define X_DISPLAY_MISSING 1
+ − 5752 EOF
+ − 5753 }
+ − 5754
+ − 5755 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
+ − 5756 else
+ − 5757 if test -n "$x_includes"; then
+ − 5758 X_CFLAGS="$X_CFLAGS -I$x_includes"
+ − 5759 fi
+ − 5760
+ − 5761 # It would also be nice to do this for all -L options, not just this one.
+ − 5762 if test -n "$x_libraries"; then
+ − 5763 X_LIBS="$X_LIBS -L$x_libraries"
+ − 5764 # For Solaris; some versions of Sun CC require a space after -R and
+ − 5765 # others require no space. Words are not sufficient . . . .
+ − 5766 case "`(uname -sr) 2>/dev/null`" in
+ − 5767 "SunOS 5"*)
+ − 5768 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
567
+ − 5769 echo "configure:5770: checking whether -R must be followed by a space" >&5
149
+ − 5770 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
+ − 5771 cat > conftest.$ac_ext <<EOF
567
+ − 5772 #line 5773 "configure"
+ − 5773 #include "confdefs.h"
+ − 5774
+ − 5775 int main() {
+ − 5776
+ − 5777 ; return 0; }
+ − 5778 EOF
+ − 5779 if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 5780 rm -rf conftest*
+ − 5781 ac_R_nospace=yes
+ − 5782 else
+ − 5783 echo "configure: failed program was:" >&5
+ − 5784 cat conftest.$ac_ext >&5
+ − 5785 rm -rf conftest*
+ − 5786 ac_R_nospace=no
+ − 5787 fi
+ − 5788 rm -f conftest*
+ − 5789 if test $ac_R_nospace = yes; then
+ − 5790 echo "$ac_t""no" 1>&6
+ − 5791 X_LIBS="$X_LIBS -R$x_libraries"
+ − 5792 else
+ − 5793 LIBS="$ac_xsave_LIBS -R $x_libraries"
+ − 5794 cat > conftest.$ac_ext <<EOF
567
+ − 5795 #line 5796 "configure"
+ − 5796 #include "confdefs.h"
+ − 5797
+ − 5798 int main() {
+ − 5799
+ − 5800 ; return 0; }
+ − 5801 EOF
+ − 5802 if { (eval echo configure:5803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 5803 rm -rf conftest*
+ − 5804 ac_R_space=yes
+ − 5805 else
+ − 5806 echo "configure: failed program was:" >&5
+ − 5807 cat conftest.$ac_ext >&5
+ − 5808 rm -rf conftest*
+ − 5809 ac_R_space=no
+ − 5810 fi
+ − 5811 rm -f conftest*
+ − 5812 if test $ac_R_space = yes; then
+ − 5813 echo "$ac_t""yes" 1>&6
+ − 5814 X_LIBS="$X_LIBS -R $x_libraries"
+ − 5815 else
+ − 5816 echo "$ac_t""neither works" 1>&6
+ − 5817 fi
+ − 5818 fi
+ − 5819 LIBS="$ac_xsave_LIBS"
+ − 5820 esac
+ − 5821 fi
+ − 5822
+ − 5823 # Check for system-dependent libraries X programs must link with.
+ − 5824 # Do this before checking for the system-independent R6 libraries
+ − 5825 # (-lICE), since we may need -lsocket or whatever for X linking.
+ − 5826
+ − 5827 if test "$ISC" = yes; then
+ − 5828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
+ − 5829 else
+ − 5830 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
+ − 5831 # libraries were built with DECnet support. And karl@cs.umb.edu says
+ − 5832 # the Alpha needs dnet_stub (dnet does not exist).
151
+ − 5833 if test "$with_dnet" = "no" ; then
149
+ − 5834 ac_cv_lib_dnet_dnet_ntoa=no
+ − 5835 else
+ − 5836
+ − 5837 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
567
+ − 5838 echo "configure:5839: checking for dnet_ntoa in -ldnet" >&5
149
+ − 5839 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
+ − 5840
+ − 5841 xe_check_libs=" -ldnet "
+ − 5842 cat > conftest.$ac_ext <<EOF
567
+ − 5843 #line 5844 "configure"
149
+ − 5844 #include "confdefs.h"
+ − 5845 /* Override any gcc2 internal prototype to avoid an error. */
+ − 5846 /* We use char because int might match the return type of a gcc2
+ − 5847 builtin and then its argument prototype would still apply. */
+ − 5848 char dnet_ntoa();
+ − 5849
+ − 5850 int main() {
+ − 5851 dnet_ntoa()
+ − 5852 ; return 0; }
+ − 5853 EOF
567
+ − 5854 if { (eval echo configure:5855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 5855 rm -rf conftest*
+ − 5856 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5857 else
+ − 5858 echo "configure: failed program was:" >&5
+ − 5859 cat conftest.$ac_ext >&5
+ − 5860 rm -rf conftest*
+ − 5861 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5862 fi
+ − 5863 rm -f conftest*
+ − 5864 xe_check_libs=""
+ − 5865
151
+ − 5866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 5867 echo "$ac_t""yes" 1>&6
+ − 5868 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
+ − 5869 else
+ − 5870 echo "$ac_t""no" 1>&6
+ − 5871 fi
+ − 5872
+ − 5873 fi
+ − 5874
+ − 5875 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
+ − 5876
+ − 5877 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
567
+ − 5878 echo "configure:5879: checking for dnet_ntoa in -ldnet_stub" >&5
149
+ − 5879 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
+ − 5880
+ − 5881 xe_check_libs=" -ldnet_stub "
+ − 5882 cat > conftest.$ac_ext <<EOF
567
+ − 5883 #line 5884 "configure"
149
+ − 5884 #include "confdefs.h"
+ − 5885 /* Override any gcc2 internal prototype to avoid an error. */
+ − 5886 /* We use char because int might match the return type of a gcc2
+ − 5887 builtin and then its argument prototype would still apply. */
+ − 5888 char dnet_ntoa();
+ − 5889
+ − 5890 int main() {
+ − 5891 dnet_ntoa()
+ − 5892 ; return 0; }
+ − 5893 EOF
567
+ − 5894 if { (eval echo configure:5895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 5895 rm -rf conftest*
+ − 5896 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5897 else
+ − 5898 echo "configure: failed program was:" >&5
+ − 5899 cat conftest.$ac_ext >&5
+ − 5900 rm -rf conftest*
+ − 5901 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5902 fi
+ − 5903 rm -f conftest*
+ − 5904 xe_check_libs=""
+ − 5905
151
+ − 5906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 5907 echo "$ac_t""yes" 1>&6
+ − 5908 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
+ − 5909 else
+ − 5910 echo "$ac_t""no" 1>&6
+ − 5911 fi
+ − 5912
+ − 5913
+ − 5914 fi
+ − 5915
+ − 5916 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
+ − 5917 # to get the SysV transport functions.
+ − 5918 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
+ − 5919 # needs -lnsl.
+ − 5920 # The nsl library prevents programs from opening the X display
+ − 5921 # on Irix 5.2, according to dickey@clark.net.
+ − 5922 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
567
+ − 5923 echo "configure:5924: checking for gethostbyname" >&5
+ − 5924
+ − 5925 cat > conftest.$ac_ext <<EOF
+ − 5926 #line 5927 "configure"
149
+ − 5927 #include "confdefs.h"
+ − 5928 /* System header to define __stub macros and hopefully few prototypes,
+ − 5929 which can conflict with char gethostbyname(); below. */
+ − 5930 #include <assert.h>
+ − 5931 /* Override any gcc2 internal prototype to avoid an error. */
+ − 5932 /* We use char because int might match the return type of a gcc2
+ − 5933 builtin and then its argument prototype would still apply. */
+ − 5934 char gethostbyname();
+ − 5935
+ − 5936 int main() {
+ − 5937
+ − 5938 /* The GNU C library defines this for functions which it implements
+ − 5939 to always fail with ENOSYS. Some functions are actually named
+ − 5940 something starting with __ and the normal name is an alias. */
+ − 5941 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
+ − 5942 choke me
+ − 5943 #else
+ − 5944 gethostbyname();
+ − 5945 #endif
+ − 5946
+ − 5947 ; return 0; }
+ − 5948 EOF
567
+ − 5949 if { (eval echo configure:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 5950 rm -rf conftest*
+ − 5951 eval "ac_cv_func_gethostbyname=yes"
+ − 5952 else
+ − 5953 echo "configure: failed program was:" >&5
+ − 5954 cat conftest.$ac_ext >&5
+ − 5955 rm -rf conftest*
+ − 5956 eval "ac_cv_func_gethostbyname=no"
+ − 5957 fi
+ − 5958 rm -f conftest*
+ − 5959
+ − 5960 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
+ − 5961 echo "$ac_t""yes" 1>&6
+ − 5962 :
+ − 5963 else
+ − 5964 echo "$ac_t""no" 1>&6
+ − 5965 fi
+ − 5966
+ − 5967 if test $ac_cv_func_gethostbyname = no; then
+ − 5968
+ − 5969 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
567
+ − 5970 echo "configure:5971: checking for gethostbyname in -lnsl" >&5
149
+ − 5971 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
+ − 5972
+ − 5973 xe_check_libs=" -lnsl "
+ − 5974 cat > conftest.$ac_ext <<EOF
567
+ − 5975 #line 5976 "configure"
149
+ − 5976 #include "confdefs.h"
+ − 5977 /* Override any gcc2 internal prototype to avoid an error. */
+ − 5978 /* We use char because int might match the return type of a gcc2
+ − 5979 builtin and then its argument prototype would still apply. */
+ − 5980 char gethostbyname();
+ − 5981
+ − 5982 int main() {
+ − 5983 gethostbyname()
+ − 5984 ; return 0; }
+ − 5985 EOF
567
+ − 5986 if { (eval echo configure:5987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 5987 rm -rf conftest*
+ − 5988 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 5989 else
+ − 5990 echo "configure: failed program was:" >&5
+ − 5991 cat conftest.$ac_ext >&5
+ − 5992 rm -rf conftest*
+ − 5993 eval "ac_cv_lib_$ac_lib_var=no"
+ − 5994 fi
+ − 5995 rm -f conftest*
+ − 5996 xe_check_libs=""
+ − 5997
151
+ − 5998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 5999 echo "$ac_t""yes" 1>&6
+ − 6000 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
+ − 6001 else
+ − 6002 echo "$ac_t""no" 1>&6
+ − 6003 fi
+ − 6004
+ − 6005
+ − 6006 fi
+ − 6007
+ − 6008 # lieder@skyler.mavd.honeywell.com says without -lsocket,
+ − 6009 # socket/setsockopt and other routines are undefined under SCO ODT
+ − 6010 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
+ − 6011 # on later versions), says simon@lia.di.epfl.ch: it contains
+ − 6012 # gethostby* variants that don't use the nameserver (or something).
+ − 6013 # -lsocket must be given before -lnsl if both are needed.
+ − 6014 # We assume that if connect needs -lnsl, so does gethostbyname.
+ − 6015 echo $ac_n "checking for connect""... $ac_c" 1>&6
567
+ − 6016 echo "configure:6017: checking for connect" >&5
+ − 6017
+ − 6018 cat > conftest.$ac_ext <<EOF
+ − 6019 #line 6020 "configure"
149
+ − 6020 #include "confdefs.h"
+ − 6021 /* System header to define __stub macros and hopefully few prototypes,
+ − 6022 which can conflict with char connect(); below. */
+ − 6023 #include <assert.h>
+ − 6024 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6025 /* We use char because int might match the return type of a gcc2
+ − 6026 builtin and then its argument prototype would still apply. */
+ − 6027 char connect();
+ − 6028
+ − 6029 int main() {
+ − 6030
+ − 6031 /* The GNU C library defines this for functions which it implements
+ − 6032 to always fail with ENOSYS. Some functions are actually named
+ − 6033 something starting with __ and the normal name is an alias. */
+ − 6034 #if defined (__stub_connect) || defined (__stub___connect)
+ − 6035 choke me
+ − 6036 #else
+ − 6037 connect();
+ − 6038 #endif
+ − 6039
+ − 6040 ; return 0; }
+ − 6041 EOF
567
+ − 6042 if { (eval echo configure:6043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6043 rm -rf conftest*
+ − 6044 eval "ac_cv_func_connect=yes"
+ − 6045 else
+ − 6046 echo "configure: failed program was:" >&5
+ − 6047 cat conftest.$ac_ext >&5
+ − 6048 rm -rf conftest*
+ − 6049 eval "ac_cv_func_connect=no"
+ − 6050 fi
+ − 6051 rm -f conftest*
+ − 6052
+ − 6053 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
+ − 6054 echo "$ac_t""yes" 1>&6
+ − 6055 :
+ − 6056 else
+ − 6057 echo "$ac_t""no" 1>&6
+ − 6058 fi
+ − 6059
+ − 6060 if test $ac_cv_func_connect = no; then
+ − 6061
+ − 6062 xe_msg_checking="for connect in -lsocket"
+ − 6063 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
+ − 6064 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
567
+ − 6065 echo "configure:6066: checking "$xe_msg_checking"" >&5
149
+ − 6066 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
+ − 6067
+ − 6068 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
+ − 6069 cat > conftest.$ac_ext <<EOF
567
+ − 6070 #line 6071 "configure"
149
+ − 6071 #include "confdefs.h"
+ − 6072 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6073 /* We use char because int might match the return type of a gcc2
+ − 6074 builtin and then its argument prototype would still apply. */
+ − 6075 char connect();
+ − 6076
+ − 6077 int main() {
+ − 6078 connect()
+ − 6079 ; return 0; }
+ − 6080 EOF
567
+ − 6081 if { (eval echo configure:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6082 rm -rf conftest*
+ − 6083 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6084 else
+ − 6085 echo "configure: failed program was:" >&5
+ − 6086 cat conftest.$ac_ext >&5
+ − 6087 rm -rf conftest*
+ − 6088 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6089 fi
+ − 6090 rm -f conftest*
+ − 6091 xe_check_libs=""
+ − 6092
151
+ − 6093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6094 echo "$ac_t""yes" 1>&6
+ − 6095 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
+ − 6096 else
+ − 6097 echo "$ac_t""no" 1>&6
+ − 6098 fi
+ − 6099
+ − 6100
+ − 6101 fi
+ − 6102
+ − 6103 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
+ − 6104 echo $ac_n "checking for remove""... $ac_c" 1>&6
567
+ − 6105 echo "configure:6106: checking for remove" >&5
+ − 6106
+ − 6107 cat > conftest.$ac_ext <<EOF
+ − 6108 #line 6109 "configure"
149
+ − 6109 #include "confdefs.h"
+ − 6110 /* System header to define __stub macros and hopefully few prototypes,
+ − 6111 which can conflict with char remove(); below. */
+ − 6112 #include <assert.h>
+ − 6113 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6114 /* We use char because int might match the return type of a gcc2
+ − 6115 builtin and then its argument prototype would still apply. */
+ − 6116 char remove();
+ − 6117
+ − 6118 int main() {
+ − 6119
+ − 6120 /* The GNU C library defines this for functions which it implements
+ − 6121 to always fail with ENOSYS. Some functions are actually named
+ − 6122 something starting with __ and the normal name is an alias. */
+ − 6123 #if defined (__stub_remove) || defined (__stub___remove)
+ − 6124 choke me
+ − 6125 #else
+ − 6126 remove();
+ − 6127 #endif
+ − 6128
+ − 6129 ; return 0; }
+ − 6130 EOF
567
+ − 6131 if { (eval echo configure:6132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6132 rm -rf conftest*
+ − 6133 eval "ac_cv_func_remove=yes"
+ − 6134 else
+ − 6135 echo "configure: failed program was:" >&5
+ − 6136 cat conftest.$ac_ext >&5
+ − 6137 rm -rf conftest*
+ − 6138 eval "ac_cv_func_remove=no"
+ − 6139 fi
+ − 6140 rm -f conftest*
+ − 6141
+ − 6142 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
+ − 6143 echo "$ac_t""yes" 1>&6
+ − 6144 :
+ − 6145 else
+ − 6146 echo "$ac_t""no" 1>&6
+ − 6147 fi
+ − 6148
+ − 6149 if test $ac_cv_func_remove = no; then
+ − 6150
+ − 6151 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
567
+ − 6152 echo "configure:6153: checking for remove in -lposix" >&5
149
+ − 6153 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
+ − 6154
+ − 6155 xe_check_libs=" -lposix "
+ − 6156 cat > conftest.$ac_ext <<EOF
567
+ − 6157 #line 6158 "configure"
149
+ − 6158 #include "confdefs.h"
+ − 6159 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6160 /* We use char because int might match the return type of a gcc2
+ − 6161 builtin and then its argument prototype would still apply. */
+ − 6162 char remove();
+ − 6163
+ − 6164 int main() {
+ − 6165 remove()
+ − 6166 ; return 0; }
+ − 6167 EOF
567
+ − 6168 if { (eval echo configure:6169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6169 rm -rf conftest*
+ − 6170 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6171 else
+ − 6172 echo "configure: failed program was:" >&5
+ − 6173 cat conftest.$ac_ext >&5
+ − 6174 rm -rf conftest*
+ − 6175 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6176 fi
+ − 6177 rm -f conftest*
+ − 6178 xe_check_libs=""
+ − 6179
151
+ − 6180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6181 echo "$ac_t""yes" 1>&6
+ − 6182 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
+ − 6183 else
+ − 6184 echo "$ac_t""no" 1>&6
+ − 6185 fi
+ − 6186
+ − 6187
+ − 6188 fi
+ − 6189
+ − 6190 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
+ − 6191 echo $ac_n "checking for shmat""... $ac_c" 1>&6
567
+ − 6192 echo "configure:6193: checking for shmat" >&5
+ − 6193
+ − 6194 cat > conftest.$ac_ext <<EOF
+ − 6195 #line 6196 "configure"
149
+ − 6196 #include "confdefs.h"
+ − 6197 /* System header to define __stub macros and hopefully few prototypes,
+ − 6198 which can conflict with char shmat(); below. */
+ − 6199 #include <assert.h>
+ − 6200 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6201 /* We use char because int might match the return type of a gcc2
+ − 6202 builtin and then its argument prototype would still apply. */
+ − 6203 char shmat();
+ − 6204
+ − 6205 int main() {
+ − 6206
+ − 6207 /* The GNU C library defines this for functions which it implements
+ − 6208 to always fail with ENOSYS. Some functions are actually named
+ − 6209 something starting with __ and the normal name is an alias. */
+ − 6210 #if defined (__stub_shmat) || defined (__stub___shmat)
+ − 6211 choke me
+ − 6212 #else
+ − 6213 shmat();
+ − 6214 #endif
+ − 6215
+ − 6216 ; return 0; }
+ − 6217 EOF
567
+ − 6218 if { (eval echo configure:6219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6219 rm -rf conftest*
+ − 6220 eval "ac_cv_func_shmat=yes"
+ − 6221 else
+ − 6222 echo "configure: failed program was:" >&5
+ − 6223 cat conftest.$ac_ext >&5
+ − 6224 rm -rf conftest*
+ − 6225 eval "ac_cv_func_shmat=no"
+ − 6226 fi
+ − 6227 rm -f conftest*
+ − 6228
+ − 6229 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
+ − 6230 echo "$ac_t""yes" 1>&6
+ − 6231 :
+ − 6232 else
+ − 6233 echo "$ac_t""no" 1>&6
+ − 6234 fi
+ − 6235
+ − 6236 if test $ac_cv_func_shmat = no; then
+ − 6237
+ − 6238 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
567
+ − 6239 echo "configure:6240: checking for shmat in -lipc" >&5
149
+ − 6240 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
+ − 6241
+ − 6242 xe_check_libs=" -lipc "
+ − 6243 cat > conftest.$ac_ext <<EOF
567
+ − 6244 #line 6245 "configure"
149
+ − 6245 #include "confdefs.h"
+ − 6246 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6247 /* We use char because int might match the return type of a gcc2
+ − 6248 builtin and then its argument prototype would still apply. */
+ − 6249 char shmat();
+ − 6250
+ − 6251 int main() {
+ − 6252 shmat()
+ − 6253 ; return 0; }
+ − 6254 EOF
567
+ − 6255 if { (eval echo configure:6256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6256 rm -rf conftest*
+ − 6257 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6258 else
+ − 6259 echo "configure: failed program was:" >&5
+ − 6260 cat conftest.$ac_ext >&5
+ − 6261 rm -rf conftest*
+ − 6262 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6263 fi
+ − 6264 rm -f conftest*
+ − 6265 xe_check_libs=""
+ − 6266
151
+ − 6267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6268 echo "$ac_t""yes" 1>&6
+ − 6269 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
+ − 6270 else
+ − 6271 echo "$ac_t""no" 1>&6
+ − 6272 fi
+ − 6273
0
+ − 6274
+ − 6275 fi
149
+ − 6276 fi
+ − 6277
+ − 6278 # Check for libraries that X11R6 Xt/Xaw programs need.
+ − 6279 ac_save_LDFLAGS="$LDFLAGS"
+ − 6280 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
+ − 6281 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
+ − 6282 # check for ICE first), but we must link in the order -lSM -lICE or
+ − 6283 # we get undefined symbols. So assume we have SM if we have ICE.
+ − 6284 # These have to be linked with before -lX11, unlike the other
+ − 6285 # libraries we check for below, so use a different variable.
+ − 6286 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
+ − 6287
420
+ − 6288 xe_msg_checking="for IceConnectionNumber in -lICE"
+ − 6289 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
+ − 6290 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
567
+ − 6291 echo "configure:6292: checking "$xe_msg_checking"" >&5
149
+ − 6292 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
+ − 6293
420
+ − 6294 xe_check_libs=" -lICE $X_EXTRA_LIBS"
+ − 6295 cat > conftest.$ac_ext <<EOF
567
+ − 6296 #line 6297 "configure"
149
+ − 6297 #include "confdefs.h"
+ − 6298 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6299 /* We use char because int might match the return type of a gcc2
+ − 6300 builtin and then its argument prototype would still apply. */
+ − 6301 char IceConnectionNumber();
+ − 6302
+ − 6303 int main() {
+ − 6304 IceConnectionNumber()
+ − 6305 ; return 0; }
+ − 6306 EOF
567
+ − 6307 if { (eval echo configure:6308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6308 rm -rf conftest*
+ − 6309 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6310 else
+ − 6311 echo "configure: failed program was:" >&5
+ − 6312 cat conftest.$ac_ext >&5
+ − 6313 rm -rf conftest*
+ − 6314 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6315 fi
+ − 6316 rm -f conftest*
+ − 6317 xe_check_libs=""
+ − 6318
151
+ − 6319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6320 echo "$ac_t""yes" 1>&6
+ − 6321 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
+ − 6322 else
+ − 6323 echo "$ac_t""no" 1>&6
+ − 6324 fi
+ − 6325
+ − 6326
+ − 6327 LDFLAGS="$ac_save_LDFLAGS"
+ − 6328
+ − 6329 fi
+ − 6330 # Autoconf claims to find X library and include dirs for us.
+ − 6331 if test "$no_x" = "yes"
+ − 6332 then with_x11=no window_system=none HAVE_X_WINDOWS=no
+ − 6333 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
+ − 6334 fi
+ − 6335 fi
+ − 6336
0
+ − 6337
149
+ − 6338 if test "$with_x11" = "yes"; then
+ − 6339 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 6340 Defining HAVE_X_WINDOWS
+ − 6341 EOF
+ − 6342 cat >> confdefs.h <<\EOF
+ − 6343 #define HAVE_X_WINDOWS 1
+ − 6344 EOF
+ − 6345 }
+ − 6346
151
+ − 6347 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
175
+ − 6348 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
149
+ − 6349
278
+ − 6350 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
159
+ − 6351 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
149
+ − 6352 if test -d "$lib_dir" -a -d "$inc_dir"; then
151
+ − 6353 case "$x_libraries" in *"$lib_dir"* ) ;; *)
+ − 6354 x_libraries="$lib_dir $x_libraries"
+ − 6355 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
149
+ − 6356 esac
151
+ − 6357 case "$x_includes" in "$inc_dir"* ) ;; *)
+ − 6358 x_includes="$inc_dir $x_includes"
+ − 6359 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
149
+ − 6360 esac
+ − 6361 break; fi
+ − 6362 done
+ − 6363
+ − 6364 for rel in "X11R6" "X11R5" "X11R4"; do
+ − 6365 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
+ − 6366 if test -d "$lib_dir" -a -d "$inc_dir"; then
151
+ − 6367 case "$x_libraries" in *"$lib_dir"* ) ;; *)
+ − 6368 x_libraries="$x_libraries $lib_dir"
+ − 6369 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
149
+ − 6370 esac
151
+ − 6371 case "$x_includes" in "$inc_dir"* ) ;; *)
+ − 6372 x_includes="$x_includes $inc_dir"
+ − 6373 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
149
+ − 6374 esac
+ − 6375 break; fi
+ − 6376 done
+ − 6377
442
+ − 6378 case "$opsys" in
+ − 6379 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 ;;
+ − 6380 esac
373
+ − 6381
149
+ − 6382 ld_switch_x_site="$X_LIBS"
+ − 6383
151
+ − 6384
+ − 6385 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
+ − 6386 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
+ − 6387 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
+ − 6388
163
+ − 6389 runpath="" runpath_dirs=""
155
+ − 6390 if test -n "$LD_RUN_PATH"; then
151
+ − 6391 runpath="$LD_RUN_PATH"
155
+ − 6392 elif test "$GCC" = "yes"; then
163
+ − 6393 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
+ − 6394 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
+ − 6395 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
+ − 6396 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
+ − 6397 case "$arg" in P,* | -L* | -R* )
159
+ − 6398 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
+ − 6399 {
155
+ − 6400 xe_runpath_dir="$dir"
163
+ − 6401 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 6402 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 6403 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 6404 eval "$xe_add_unique_runpath_dir"
+ − 6405 }
155
+ − 6406 done ;;
+ − 6407 esac
+ − 6408 done
163
+ − 6409 ld_switch_run="$ld_switch_run_save"
155
+ − 6410 rm -f conftest*
151
+ − 6411 else
155
+ − 6412 for arg in $ld_switch_site $ld_switch_x_site; do
163
+ − 6413 case "$arg" in -L*) {
159
+ − 6414 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
+ − 6415 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 6416 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 6417 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 6418 eval "$xe_add_unique_runpath_dir"
+ − 6419 };; esac
151
+ − 6420 done
163
+ − 6421 if test "$opsys $need_motif" = "sol2 yes"; then
+ − 6422 xe_runpath_dir="/opt/SUNWdt/lib";
+ − 6423 eval "$xe_add_unique_runpath_dir";
+ − 6424 fi
155
+ − 6425 fi
151
+ − 6426 if test -n "$runpath"; then
+ − 6427 ld_switch_run="${dash_r}${runpath}"
272
+ − 6428
+ − 6429 if test "$GCC" = "yes"; then
+ − 6430 set x $ld_switch_run; shift; ld_switch_run=""
+ − 6431 while test -n "$1"; do
+ − 6432 case $1 in
380
+ − 6433 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
+ − 6434 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
+ − 6435 -Xlinker* ) ;;
+ − 6436 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
+ − 6437 esac
+ − 6438 shift
+ − 6439 done
+ − 6440 fi
151
+ − 6441 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
+ − 6442 fi
+ − 6443 fi
+ − 6444
+ − 6445
149
+ − 6446 if test "$extra_verbose" = "yes"; then
+ − 6447 echo; echo "X11 compilation variables:"
163
+ − 6448 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
149
+ − 6449 echo
+ − 6450 fi
+ − 6451
265
+ − 6452 bitmapdirs=
+ − 6453 if test "$x_includes" != NONE; then
+ − 6454 for i in $x_includes; do
+ − 6455 if test -d "$i/bitmaps"; then
+ − 6456 bitmapdirs="$i/bitmaps:$bitmapdirs"
+ − 6457 fi
+ − 6458 if test -d "$i/X11/bitmaps"; then
+ − 6459 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
+ − 6460 fi
+ − 6461 done
+ − 6462 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
+ − 6463 fi
+ − 6464 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
+ − 6465 Defining BITMAPDIR = "$bitmapdirs"
+ − 6466 EOF
+ − 6467 cat >> confdefs.h <<EOF
+ − 6468 #define BITMAPDIR "$bitmapdirs"
+ − 6469 EOF
+ − 6470 }
+ − 6471
+ − 6472
163
+ − 6473 echo "checking for X defines extracted by xmkmf" 1>&6
567
+ − 6474 echo "configure:6475: checking for X defines extracted by xmkmf" >&5
163
+ − 6475 rm -fr conftestdir
+ − 6476 if mkdir conftestdir; then
+ − 6477 cd conftestdir
+ − 6478 cat > Imakefile <<'EOF'
+ − 6479 xetest:
+ − 6480 @echo ${PROTO_DEFINES} ${STD_DEFINES}
+ − 6481 EOF
+ − 6482 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
+ − 6483 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+ − 6484 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
+ − 6485 fi
+ − 6486 cd ..
+ − 6487 rm -fr conftestdir
+ − 6488 for word in $xmkmf_defines; do
535
+ − 6489 case "$word" in
473
+ − 6490 -D__STDC__*) ;;
+ − 6491 -D* )
442
+ − 6492 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
+ − 6493 case "$word" in
+ − 6494 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
+ − 6495 * ) val=1 ;;
+ − 6496 esac
+ − 6497 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
+ − 6498 if test "$val" = "1"
+ − 6499 then { test "$extra_verbose" = "yes" && cat << EOF
+ − 6500 Defining $sym
+ − 6501 EOF
+ − 6502 cat >> confdefs.h <<EOF
+ − 6503 #define $sym 1
+ − 6504 EOF
+ − 6505 }
+ − 6506
+ − 6507 else { test "$extra_verbose" = "yes" && cat << EOF
+ − 6508 Defining $sym = $val
+ − 6509 EOF
+ − 6510 cat >> confdefs.h <<EOF
+ − 6511 #define $sym $val
+ − 6512 EOF
+ − 6513 }
+ − 6514
+ − 6515 fi
+ − 6516 fi ;;
163
+ − 6517 esac
+ − 6518 done
+ − 6519 fi
+ − 6520
149
+ − 6521 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
+ − 6522 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
567
+ − 6523 echo "configure:6524: checking for X11/Intrinsic.h" >&5
+ − 6524
+ − 6525 cat > conftest.$ac_ext <<EOF
+ − 6526 #line 6527 "configure"
149
+ − 6527 #include "confdefs.h"
+ − 6528 #include <X11/Intrinsic.h>
+ − 6529 EOF
+ − 6530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
567
+ − 6531 { (eval echo configure:6532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 6532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 6533 if test -z "$ac_err"; then
+ − 6534 rm -rf conftest*
+ − 6535 eval "ac_cv_header_$ac_safe=yes"
+ − 6536 else
+ − 6537 echo "$ac_err" >&5
+ − 6538 echo "configure: failed program was:" >&5
+ − 6539 cat conftest.$ac_ext >&5
+ − 6540 rm -rf conftest*
+ − 6541 eval "ac_cv_header_$ac_safe=no"
+ − 6542 fi
+ − 6543 rm -f conftest*
+ − 6544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 6545 echo "$ac_t""yes" 1>&6
+ − 6546 :
+ − 6547 else
+ − 6548 echo "$ac_t""no" 1>&6
561
+ − 6549 { echo "configure: error: Unable to find X11 header files." 1>&2; exit 1; }
149
+ − 6550 fi
+ − 6551
+ − 6552
+ − 6553
+ − 6554 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
567
+ − 6555 echo "configure:6556: checking for XOpenDisplay in -lX11" >&5
149
+ − 6556 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
+ − 6557
+ − 6558 xe_check_libs=" -lX11 "
+ − 6559 cat > conftest.$ac_ext <<EOF
567
+ − 6560 #line 6561 "configure"
149
+ − 6561 #include "confdefs.h"
+ − 6562 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6563 /* We use char because int might match the return type of a gcc2
+ − 6564 builtin and then its argument prototype would still apply. */
+ − 6565 char XOpenDisplay();
+ − 6566
+ − 6567 int main() {
+ − 6568 XOpenDisplay()
+ − 6569 ; return 0; }
+ − 6570 EOF
567
+ − 6571 if { (eval echo configure:6572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6572 rm -rf conftest*
+ − 6573 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6574 else
+ − 6575 echo "configure: failed program was:" >&5
+ − 6576 cat conftest.$ac_ext >&5
+ − 6577 rm -rf conftest*
+ − 6578 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6579 fi
+ − 6580 rm -f conftest*
+ − 6581 xe_check_libs=""
+ − 6582
151
+ − 6583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6584 echo "$ac_t""yes" 1>&6
+ − 6585 have_lib_x11=yes
+ − 6586 else
+ − 6587 echo "$ac_t""no" 1>&6
+ − 6588 fi
+ − 6589
+ − 6590
+ − 6591 if test "$have_lib_x11" != "yes"; then
+ − 6592
+ − 6593 xe_msg_checking="for XGetFontProperty in -lX11"
+ − 6594 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
+ − 6595 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
567
+ − 6596 echo "configure:6597: checking "$xe_msg_checking"" >&5
149
+ − 6597 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
+ − 6598
+ − 6599 xe_check_libs=" -lX11 -b i486-linuxaout"
+ − 6600 cat > conftest.$ac_ext <<EOF
567
+ − 6601 #line 6602 "configure"
149
+ − 6602 #include "confdefs.h"
+ − 6603 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6604 /* We use char because int might match the return type of a gcc2
+ − 6605 builtin and then its argument prototype would still apply. */
+ − 6606 char XGetFontProperty();
+ − 6607
+ − 6608 int main() {
+ − 6609 XGetFontProperty()
+ − 6610 ; return 0; }
+ − 6611 EOF
567
+ − 6612 if { (eval echo configure:6613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6613 rm -rf conftest*
+ − 6614 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6615 else
+ − 6616 echo "configure: failed program was:" >&5
+ − 6617 cat conftest.$ac_ext >&5
+ − 6618 rm -rf conftest*
+ − 6619 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6620 fi
+ − 6621 rm -f conftest*
+ − 6622 xe_check_libs=""
+ − 6623
151
+ − 6624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 6625 echo "$ac_t""yes" 1>&6
+ − 6626 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
+ − 6627 else
+ − 6628 echo "$ac_t""no" 1>&6
561
+ − 6629 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
149
+ − 6630 fi
+ − 6631
+ − 6632
0
+ − 6633 fi
149
+ − 6634 libs_x="-lX11"
151
+ − 6635 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
149
+ − 6636
153
+ − 6637
+ − 6638 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
567
+ − 6639 echo "configure:6640: checking for XShapeSelectInput in -lXext" >&5
153
+ − 6640 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
+ − 6641
+ − 6642 xe_check_libs=" -lXext "
+ − 6643 cat > conftest.$ac_ext <<EOF
567
+ − 6644 #line 6645 "configure"
153
+ − 6645 #include "confdefs.h"
+ − 6646 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6647 /* We use char because int might match the return type of a gcc2
+ − 6648 builtin and then its argument prototype would still apply. */
+ − 6649 char XShapeSelectInput();
+ − 6650
+ − 6651 int main() {
+ − 6652 XShapeSelectInput()
+ − 6653 ; return 0; }
+ − 6654 EOF
567
+ − 6655 if { (eval echo configure:6656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
153
+ − 6656 rm -rf conftest*
+ − 6657 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6658 else
+ − 6659 echo "configure: failed program was:" >&5
+ − 6660 cat conftest.$ac_ext >&5
+ − 6661 rm -rf conftest*
+ − 6662 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6663 fi
+ − 6664 rm -f conftest*
+ − 6665 xe_check_libs=""
+ − 6666
+ − 6667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 6668 echo "$ac_t""yes" 1>&6
+ − 6669 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
+ − 6670 else
+ − 6671 echo "$ac_t""no" 1>&6
+ − 6672 fi
+ − 6673
+ − 6674
+ − 6675
169
+ − 6676
149
+ − 6677 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
567
+ − 6678 echo "configure:6679: checking for XtOpenDisplay in -lXt" >&5
149
+ − 6679 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
+ − 6680
+ − 6681 xe_check_libs=" -lXt "
+ − 6682 cat > conftest.$ac_ext <<EOF
567
+ − 6683 #line 6684 "configure"
149
+ − 6684 #include "confdefs.h"
+ − 6685 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6686 /* We use char because int might match the return type of a gcc2
+ − 6687 builtin and then its argument prototype would still apply. */
+ − 6688 char XtOpenDisplay();
+ − 6689
+ − 6690 int main() {
+ − 6691 XtOpenDisplay()
+ − 6692 ; return 0; }
+ − 6693 EOF
567
+ − 6694 if { (eval echo configure:6695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6695 rm -rf conftest*
+ − 6696 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6697 else
+ − 6698 echo "configure: failed program was:" >&5
+ − 6699 cat conftest.$ac_ext >&5
+ − 6700 rm -rf conftest*
+ − 6701 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6702 fi
+ − 6703 rm -f conftest*
+ − 6704 xe_check_libs=""
+ − 6705
151
+ − 6706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 6707 echo "$ac_t""yes" 1>&6
+ − 6708 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
149
+ − 6709 else
+ − 6710 echo "$ac_t""no" 1>&6
561
+ − 6711 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
149
+ − 6712 fi
+ − 6713
169
+ − 6714
149
+ − 6715
+ − 6716 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
567
+ − 6717 echo "configure:6718: checking the version of X11 being used" >&5
149
+ − 6718 cat > conftest.$ac_ext <<EOF
567
+ − 6719 #line 6720 "configure"
149
+ − 6720 #include "confdefs.h"
+ − 6721 #include <X11/Intrinsic.h>
272
+ − 6722 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
+ − 6723 EOF
567
+ − 6724 if { (eval echo configure:6725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 6725 then
151
+ − 6726 ./conftest foobar; x11_release=$?
149
+ − 6727 else
373
+ − 6728 conftest_rc="$?"
149
+ − 6729 echo "configure: failed program was:" >&5
+ − 6730 cat conftest.$ac_ext >&5
+ − 6731 rm -fr conftest*
151
+ − 6732 x11_release=4
149
+ − 6733 fi
+ − 6734 rm -fr conftest*
151
+ − 6735 echo "$ac_t""R${x11_release}" 1>&6
149
+ − 6736 { test "$extra_verbose" = "yes" && cat << EOF
151
+ − 6737 Defining THIS_IS_X11R${x11_release}
149
+ − 6738 EOF
+ − 6739 cat >> confdefs.h <<EOF
151
+ − 6740 #define THIS_IS_X11R${x11_release} 1
149
+ − 6741 EOF
+ − 6742 }
+ − 6743
+ − 6744
442
+ − 6745 if test "${x11_release}" = "4"; then
+ − 6746 case "$with_widgets" in
+ − 6747 "" | "no") with_widgets=no ;;
+ − 6748 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
+ − 6749 esac
+ − 6750 fi
+ − 6751
+ − 6752 for ac_func in XConvertCase
+ − 6753 do
+ − 6754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
567
+ − 6755 echo "configure:6756: checking for $ac_func" >&5
+ − 6756
+ − 6757 cat > conftest.$ac_ext <<EOF
+ − 6758 #line 6759 "configure"
442
+ − 6759 #include "confdefs.h"
+ − 6760 /* System header to define __stub macros and hopefully few prototypes,
+ − 6761 which can conflict with char $ac_func(); below. */
+ − 6762 #include <assert.h>
+ − 6763 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6764 /* We use char because int might match the return type of a gcc2
+ − 6765 builtin and then its argument prototype would still apply. */
+ − 6766 char $ac_func();
+ − 6767
+ − 6768 int main() {
+ − 6769
+ − 6770 /* The GNU C library defines this for functions which it implements
+ − 6771 to always fail with ENOSYS. Some functions are actually named
+ − 6772 something starting with __ and the normal name is an alias. */
+ − 6773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 6774 choke me
+ − 6775 #else
+ − 6776 $ac_func();
+ − 6777 #endif
+ − 6778
+ − 6779 ; return 0; }
+ − 6780 EOF
567
+ − 6781 if { (eval echo configure:6782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 6782 rm -rf conftest*
+ − 6783 eval "ac_cv_func_$ac_func=yes"
+ − 6784 else
+ − 6785 echo "configure: failed program was:" >&5
+ − 6786 cat conftest.$ac_ext >&5
+ − 6787 rm -rf conftest*
+ − 6788 eval "ac_cv_func_$ac_func=no"
+ − 6789 fi
+ − 6790 rm -f conftest*
+ − 6791
+ − 6792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 6793 echo "$ac_t""yes" 1>&6
+ − 6794 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 6795 { test "$extra_verbose" = "yes" && cat << EOF
+ − 6796 Defining $ac_tr_func
+ − 6797 EOF
+ − 6798 cat >> confdefs.h <<EOF
+ − 6799 #define $ac_tr_func 1
+ − 6800 EOF
+ − 6801 }
+ − 6802
+ − 6803 else
+ − 6804 echo "$ac_t""no" 1>&6
+ − 6805 fi
+ − 6806 done
+ − 6807
+ − 6808
149
+ − 6809 for ac_hdr in X11/Xlocale.h
+ − 6810 do
+ − 6811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 6812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
567
+ − 6813 echo "configure:6814: checking for $ac_hdr" >&5
+ − 6814
+ − 6815 cat > conftest.$ac_ext <<EOF
+ − 6816 #line 6817 "configure"
149
+ − 6817 #include "confdefs.h"
+ − 6818 #include <$ac_hdr>
+ − 6819 EOF
+ − 6820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
567
+ − 6821 { (eval echo configure:6822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 6822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 6823 if test -z "$ac_err"; then
+ − 6824 rm -rf conftest*
+ − 6825 eval "ac_cv_header_$ac_safe=yes"
+ − 6826 else
+ − 6827 echo "$ac_err" >&5
+ − 6828 echo "configure: failed program was:" >&5
+ − 6829 cat conftest.$ac_ext >&5
+ − 6830 rm -rf conftest*
+ − 6831 eval "ac_cv_header_$ac_safe=no"
+ − 6832 fi
+ − 6833 rm -f conftest*
+ − 6834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 6835 echo "$ac_t""yes" 1>&6
+ − 6836 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 6837 { test "$extra_verbose" = "yes" && cat << EOF
+ − 6838 Defining $ac_tr_hdr
+ − 6839 EOF
+ − 6840 cat >> confdefs.h <<EOF
+ − 6841 #define $ac_tr_hdr 1
+ − 6842 EOF
+ − 6843 }
+ − 6844
+ − 6845 else
+ − 6846 echo "$ac_t""no" 1>&6
+ − 6847 fi
+ − 6848 done
+ − 6849
+ − 6850
444
+ − 6851 for ac_func in XRegisterIMInstantiateCallback
+ − 6852 do
+ − 6853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
567
+ − 6854 echo "configure:6855: checking for $ac_func" >&5
+ − 6855
+ − 6856 cat > conftest.$ac_ext <<EOF
+ − 6857 #line 6858 "configure"
444
+ − 6858 #include "confdefs.h"
+ − 6859 /* System header to define __stub macros and hopefully few prototypes,
+ − 6860 which can conflict with char $ac_func(); below. */
+ − 6861 #include <assert.h>
+ − 6862 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6863 /* We use char because int might match the return type of a gcc2
+ − 6864 builtin and then its argument prototype would still apply. */
+ − 6865 char $ac_func();
+ − 6866
+ − 6867 int main() {
+ − 6868
+ − 6869 /* The GNU C library defines this for functions which it implements
+ − 6870 to always fail with ENOSYS. Some functions are actually named
+ − 6871 something starting with __ and the normal name is an alias. */
+ − 6872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 6873 choke me
+ − 6874 #else
+ − 6875 $ac_func();
+ − 6876 #endif
+ − 6877
+ − 6878 ; return 0; }
+ − 6879 EOF
567
+ − 6880 if { (eval echo configure:6881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
444
+ − 6881 rm -rf conftest*
+ − 6882 eval "ac_cv_func_$ac_func=yes"
+ − 6883 else
+ − 6884 echo "configure: failed program was:" >&5
+ − 6885 cat conftest.$ac_ext >&5
+ − 6886 rm -rf conftest*
+ − 6887 eval "ac_cv_func_$ac_func=no"
+ − 6888 fi
+ − 6889 rm -f conftest*
+ − 6890
+ − 6891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 6892 echo "$ac_t""yes" 1>&6
+ − 6893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 6894 { test "$extra_verbose" = "yes" && cat << EOF
+ − 6895 Defining $ac_tr_func
+ − 6896 EOF
+ − 6897 cat >> confdefs.h <<EOF
+ − 6898 #define $ac_tr_func 1
+ − 6899 EOF
+ − 6900 }
+ − 6901
+ − 6902 else
+ − 6903 echo "$ac_t""no" 1>&6
+ − 6904 fi
+ − 6905 done
+ − 6906
+ − 6907 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
567
+ − 6908 echo "configure:6909: checking for standard XRegisterIMInstantiateCallback prototype" >&5
444
+ − 6909 cat > conftest.$ac_ext <<EOF
567
+ − 6910 #line 6911 "configure"
444
+ − 6911 #include "confdefs.h"
+ − 6912
+ − 6913 #define NeedFunctionPrototypes 1
+ − 6914 #include <X11/Xlib.h>
+ − 6915 extern Bool XRegisterIMInstantiateCallback(
+ − 6916 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
+ − 6917
+ − 6918 int main() {
+ − 6919
+ − 6920 ; return 0; }
+ − 6921 EOF
567
+ − 6922 if { (eval echo configure:6923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
444
+ − 6923 rm -rf conftest*
+ − 6924 echo "$ac_t""yes" 1>&6
+ − 6925 else
+ − 6926 echo "configure: failed program was:" >&5
+ − 6927 cat conftest.$ac_ext >&5
+ − 6928 rm -rf conftest*
+ − 6929 echo "$ac_t""no" 1>&6
+ − 6930 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 6931 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
+ − 6932 EOF
+ − 6933 cat >> confdefs.h <<\EOF
+ − 6934 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
+ − 6935 EOF
+ − 6936 }
+ − 6937
+ − 6938 fi
+ − 6939 rm -f conftest*
149
+ − 6940
169
+ − 6941 test -z "$with_xmu" && {
+ − 6942 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
567
+ − 6943 echo "configure:6944: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
169
+ − 6944 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
149
+ − 6945
+ − 6946 xe_check_libs=" -lXmu "
+ − 6947 cat > conftest.$ac_ext <<EOF
567
+ − 6948 #line 6949 "configure"
149
+ − 6949 #include "confdefs.h"
+ − 6950 /* Override any gcc2 internal prototype to avoid an error. */
+ − 6951 /* We use char because int might match the return type of a gcc2
+ − 6952 builtin and then its argument prototype would still apply. */
169
+ − 6953 char XmuReadBitmapDataFromFile();
149
+ − 6954
+ − 6955 int main() {
169
+ − 6956 XmuReadBitmapDataFromFile()
149
+ − 6957 ; return 0; }
+ − 6958 EOF
567
+ − 6959 if { (eval echo configure:6960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 6960 rm -rf conftest*
+ − 6961 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 6962 else
+ − 6963 echo "configure: failed program was:" >&5
+ − 6964 cat conftest.$ac_ext >&5
+ − 6965 rm -rf conftest*
+ − 6966 eval "ac_cv_lib_$ac_lib_var=no"
+ − 6967 fi
+ − 6968 rm -f conftest*
+ − 6969 xe_check_libs=""
+ − 6970
151
+ − 6971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 6972 echo "$ac_t""yes" 1>&6
+ − 6973 with_xmu=yes
+ − 6974 else
+ − 6975 echo "$ac_t""no" 1>&6
+ − 6976 with_xmu=no
+ − 6977 fi
+ − 6978
169
+ − 6979 }
185
+ − 6980 if test "$with_xmu" = "no"; then
+ − 6981 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
151
+ − 6982 echo " xemacs will be linked with \"xmu.o\""
+ − 6983 fi
187
+ − 6984 else
185
+ − 6985 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
+ − 6986 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 6987 Defining HAVE_XMU
+ − 6988 EOF
+ − 6989 cat >> confdefs.h <<\EOF
+ − 6990 #define HAVE_XMU 1
+ − 6991 EOF
+ − 6992 }
+ − 6993
169
+ − 6994 fi
151
+ − 6995
+ − 6996
+ − 6997 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
567
+ − 6998 echo "configure:6999: checking for main in -lXbsd" >&5
151
+ − 6999 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
+ − 7000
+ − 7001 xe_check_libs=" -lXbsd "
+ − 7002 cat > conftest.$ac_ext <<EOF
567
+ − 7003 #line 7004 "configure"
151
+ − 7004 #include "confdefs.h"
149
+ − 7005
+ − 7006 int main() {
151
+ − 7007 main()
149
+ − 7008 ; return 0; }
+ − 7009 EOF
567
+ − 7010 if { (eval echo configure:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 7011 rm -rf conftest*
+ − 7012 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7013 else
+ − 7014 echo "configure: failed program was:" >&5
+ − 7015 cat conftest.$ac_ext >&5
+ − 7016 rm -rf conftest*
+ − 7017 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7018 fi
+ − 7019 rm -f conftest*
+ − 7020 xe_check_libs=""
+ − 7021
151
+ − 7022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 7023 echo "$ac_t""yes" 1>&6
+ − 7024 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
+ − 7025 else
+ − 7026 echo "$ac_t""no" 1>&6
+ − 7027 fi
+ − 7028
149
+ − 7029
+ − 7030
243
+ − 7031 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
274
+ − 7032 if test "$GCC" = "yes"; then
+ − 7033 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
+ − 7034 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
+ − 7035 else
+ − 7036 case "$CC" in
+ − 7037 "xlc" ) CC="xlc_r" ;;
+ − 7038 "xlC" ) CC="xlC_r" ;;
+ − 7039 "cc" ) CC="cc_r" ;;
+ − 7040 esac
+ − 7041 fi
243
+ − 7042 fi
+ − 7043
149
+ − 7044 fi
265
+ − 7045 if test "$with_msw" != "no"; then
+ − 7046 echo "checking for MS-Windows" 1>&6
567
+ − 7047 echo "configure:7048: checking for MS-Windows" >&5
265
+ − 7048
+ − 7049 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
567
+ − 7050 echo "configure:7051: checking for main in -lgdi32" >&5
265
+ − 7051 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
+ − 7052
+ − 7053 xe_check_libs=" -lgdi32 "
+ − 7054 cat > conftest.$ac_ext <<EOF
567
+ − 7055 #line 7056 "configure"
265
+ − 7056 #include "confdefs.h"
+ − 7057
+ − 7058 int main() {
+ − 7059 main()
+ − 7060 ; return 0; }
+ − 7061 EOF
567
+ − 7062 if { (eval echo configure:7063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
265
+ − 7063 rm -rf conftest*
+ − 7064 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7065 else
+ − 7066 echo "configure: failed program was:" >&5
+ − 7067 cat conftest.$ac_ext >&5
+ − 7068 rm -rf conftest*
+ − 7069 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7070 fi
+ − 7071 rm -f conftest*
+ − 7072 xe_check_libs=""
+ − 7073
+ − 7074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 7075 echo "$ac_t""yes" 1>&6
+ − 7076 with_msw=yes
+ − 7077 else
+ − 7078 echo "$ac_t""no" 1>&6
+ − 7079 fi
+ − 7080
+ − 7081
+ − 7082 if test "$with_msw" = "yes"; then
+ − 7083 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7084 Defining HAVE_MS_WINDOWS
+ − 7085 EOF
+ − 7086 cat >> confdefs.h <<\EOF
+ − 7087 #define HAVE_MS_WINDOWS 1
+ − 7088 EOF
+ − 7089 }
+ − 7090
448
+ − 7091
462
+ − 7092 if test "$with_netinstall" = "yes"; then
+ − 7093 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
+ − 7094 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
+ − 7095 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
+ − 7096 fi
458
+ − 7097
276
+ − 7098 install_pp="$blddir/lib-src/installexe.sh"
442
+ − 7099 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
+ − 7100 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
265
+ − 7101 if test "$window_system" != x11; then
+ − 7102 window_system=msw
+ − 7103 test "$with_scrollbars" != "no" && with_scrollbars=msw \
+ − 7104 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
+ − 7105 echo " xemacs will be linked with \"scrollbar-msw.o\""
+ − 7106 fi
+ − 7107 test "$with_menubars" != "no" && with_menubars=msw \
+ − 7108 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
+ − 7109 echo " xemacs will be linked with \"menubar-msw.o\""
+ − 7110 fi
276
+ − 7111 test "$with_toolbars" != "no" && with_toolbars=msw \
+ − 7112 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
+ − 7113 echo " xemacs will be linked with \"toolbar-msw.o\""
+ − 7114 fi
288
+ − 7115 test "$with_dialogs" != "no" && with_dialogs=msw \
+ − 7116 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
+ − 7117 echo " xemacs will be linked with \"dialog-msw.o\""
+ − 7118 fi
422
+ − 7119 test "$with_widgets" != "no" && with_widgets=msw
265
+ − 7120 else
380
+ − 7121 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
265
+ − 7122 echo " xemacs will be linked with \"scrollbar-msw.o\""
+ − 7123 fi
+ − 7124 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
+ − 7125 echo " xemacs will be linked with \"menubar-msw.o\""
+ − 7126 fi
276
+ − 7127 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
+ − 7128 echo " xemacs will be linked with \"toolbar-msw.o\""
+ − 7129 fi
380
+ − 7130 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
288
+ − 7131 echo " xemacs will be linked with \"dialog-msw.o\""
+ − 7132 fi
265
+ − 7133 fi
278
+ − 7134 cat > conftest.$ac_ext <<EOF
567
+ − 7135 #line 7136 "configure"
278
+ − 7136 #include "confdefs.h"
+ − 7137 #include <fcntl.h>
+ − 7138 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
+ − 7139 EOF
567
+ − 7140 if { (eval echo configure:7141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
278
+ − 7141 then
+ − 7142 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7143 Defining HAVE_MSG_SELECT
+ − 7144 EOF
+ − 7145 cat >> confdefs.h <<\EOF
+ − 7146 #define HAVE_MSG_SELECT 1
+ − 7147 EOF
+ − 7148 }
+ − 7149
+ − 7150 else
373
+ − 7151 conftest_rc="$?"
278
+ − 7152 echo "configure: failed program was:" >&5
+ − 7153 cat conftest.$ac_ext >&5
+ − 7154 fi
+ − 7155 rm -fr conftest*
265
+ − 7156 with_file_coding=yes
384
+ − 7157 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
+ − 7158 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
+ − 7159 fi
+ − 7160 fi
+ − 7161 fi
+ − 7162
276
+ − 7163
+ − 7164
149
+ − 7165 test -z "$window_system" && window_system="none"
+ − 7166
272
+ − 7167 if test "$window_system" = "none"; then
388
+ − 7168 for feature in menubars scrollbars toolbars dialogs dragndrop xface
272
+ − 7169 do
+ − 7170 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
+ − 7171 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
+ − 7172 fi
+ − 7173 eval "with_${feature}=no"
+ − 7174 done
+ − 7175 else
+ − 7176 test -z "$with_toolbars" && with_toolbars=yes
+ − 7177 fi
+ − 7178
+ − 7179 if test "$with_msw" != "yes"; then
+ − 7180 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
+ − 7181 do
+ − 7182 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
+ − 7183 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
+ − 7184 fi
+ − 7185 eval "with_${feature}=no"
+ − 7186 done
+ − 7187 else
+ − 7188 :
+ − 7189 fi
+ − 7190
+ − 7191 if test "$with_x11" != "yes"; then
434
+ − 7192 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
70
+ − 7193 do
149
+ − 7194 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
+ − 7195 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
70
+ − 7196 fi
149
+ − 7197 eval "with_${feature}=no"
70
+ − 7198 done
149
+ − 7199 fi
+ − 7200
442
+ − 7201 if test "$with_x11" = "yes"; then
+ − 7202 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
+ − 7203 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
567
+ − 7204 echo "configure:7205: checking for X11/extensions/shape.h" >&5
+ − 7205
+ − 7206 cat > conftest.$ac_ext <<EOF
+ − 7207 #line 7208 "configure"
442
+ − 7208 #include "confdefs.h"
+ − 7209 #include <X11/extensions/shape.h>
+ − 7210 EOF
+ − 7211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
567
+ − 7212 { (eval echo configure:7213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 7213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 7214 if test -z "$ac_err"; then
+ − 7215 rm -rf conftest*
+ − 7216 eval "ac_cv_header_$ac_safe=yes"
+ − 7217 else
+ − 7218 echo "$ac_err" >&5
+ − 7219 echo "configure: failed program was:" >&5
+ − 7220 cat conftest.$ac_ext >&5
+ − 7221 rm -rf conftest*
+ − 7222 eval "ac_cv_header_$ac_safe=no"
+ − 7223 fi
+ − 7224 rm -f conftest*
+ − 7225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 7226 echo "$ac_t""yes" 1>&6
+ − 7227
+ − 7228 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7229 Defining HAVE_BALLOON_HELP
+ − 7230 EOF
+ − 7231 cat >> confdefs.h <<\EOF
+ − 7232 #define HAVE_BALLOON_HELP 1
+ − 7233 EOF
+ − 7234 }
+ − 7235
+ − 7236 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
+ − 7237 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
+ − 7238 fi
+ − 7239 else
+ − 7240 echo "$ac_t""no" 1>&6
+ − 7241 fi
+ − 7242
+ − 7243 fi
+ − 7244
0
+ − 7245 bitmapdir=
+ − 7246
149
+ − 7247 case "$window_system" in
70
+ − 7248 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
272
+ − 7249 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
462
+ − 7250 gtk )
+ − 7251 HAVE_X_WINDOWS=no
+ − 7252 test "$with_gnome" = "yes" && echo " Using GNOME."
+ − 7253 test "$with_gnome" = "no" && echo " Using GTK."
+ − 7254 ;;
70
+ − 7255 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
0
+ − 7256 esac
+ − 7257
149
+ − 7258 case "$x_libraries" in *X11R4* )
+ − 7259 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
+ − 7260 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
+ − 7261 esac
+ − 7262
414
+ − 7263 echo "checking for WM_COMMAND option" 1>&6
567
+ − 7264 echo "configure:7265: checking for WM_COMMAND option" >&5;
414
+ − 7265 if test "$with_wmcommand" != "no"; then
+ − 7266 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7267 Defining HAVE_WMCOMMAND
+ − 7268 EOF
+ − 7269 cat >> confdefs.h <<\EOF
+ − 7270 #define HAVE_WMCOMMAND 1
177
+ − 7271 EOF
+ − 7272 }
+ − 7273
+ − 7274 fi
+ − 7275
149
+ − 7276 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
+ − 7277 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
+ − 7278 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
567
+ − 7279 echo "configure:7280: checking for X11/Xauth.h" >&5
+ − 7280
+ − 7281 cat > conftest.$ac_ext <<EOF
+ − 7282 #line 7283 "configure"
149
+ − 7283 #include "confdefs.h"
+ − 7284 #include <X11/Xauth.h>
+ − 7285 EOF
+ − 7286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
567
+ − 7287 { (eval echo configure:7288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 7288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 7289 if test -z "$ac_err"; then
+ − 7290 rm -rf conftest*
+ − 7291 eval "ac_cv_header_$ac_safe=yes"
+ − 7292 else
+ − 7293 echo "$ac_err" >&5
+ − 7294 echo "configure: failed program was:" >&5
+ − 7295 cat conftest.$ac_ext >&5
+ − 7296 rm -rf conftest*
+ − 7297 eval "ac_cv_header_$ac_safe=no"
+ − 7298 fi
+ − 7299 rm -f conftest*
+ − 7300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 7301 echo "$ac_t""yes" 1>&6
+ − 7302 :
+ − 7303 else
+ − 7304 echo "$ac_t""no" 1>&6
+ − 7305 with_xauth=no
+ − 7306 fi
+ − 7307 }
+ − 7308 test -z "$with_xauth" && {
+ − 7309 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
567
+ − 7310 echo "configure:7311: checking for XauGetAuthByAddr in -lXau" >&5
149
+ − 7311 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
+ − 7312
+ − 7313 xe_check_libs=" -lXau "
+ − 7314 cat > conftest.$ac_ext <<EOF
567
+ − 7315 #line 7316 "configure"
149
+ − 7316 #include "confdefs.h"
+ − 7317 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7318 /* We use char because int might match the return type of a gcc2
+ − 7319 builtin and then its argument prototype would still apply. */
+ − 7320 char XauGetAuthByAddr();
+ − 7321
+ − 7322 int main() {
+ − 7323 XauGetAuthByAddr()
+ − 7324 ; return 0; }
+ − 7325 EOF
567
+ − 7326 if { (eval echo configure:7327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 7327 rm -rf conftest*
+ − 7328 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7329 else
+ − 7330 echo "configure: failed program was:" >&5
+ − 7331 cat conftest.$ac_ext >&5
+ − 7332 rm -rf conftest*
+ − 7333 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7334 fi
+ − 7335 rm -f conftest*
+ − 7336 xe_check_libs=""
+ − 7337
151
+ − 7338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 7339 echo "$ac_t""yes" 1>&6
+ − 7340 :
+ − 7341 else
+ − 7342 echo "$ac_t""no" 1>&6
+ − 7343 with_xauth=no
+ − 7344 fi
+ − 7345
+ − 7346 }
+ − 7347 test -z "$with_xauth" && with_xauth=yes
+ − 7348 if test "$with_xauth" = "yes"; then
+ − 7349 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7350 Defining HAVE_XAUTH
+ − 7351 EOF
+ − 7352 cat >> confdefs.h <<\EOF
+ − 7353 #define HAVE_XAUTH 1
+ − 7354 EOF
+ − 7355 }
+ − 7356
159
+ − 7357
+ − 7358 T=""
462
+ − 7359 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
+ − 7360 libs_xauth="$T"
+ − 7361
+ − 7362 fi
+ − 7363
149
+ − 7364
274
+ − 7365
149
+ − 7366
+ − 7367 if test "$with_tooltalk" != "no" ; then
+ − 7368 for dir in "" "Tt/" "desktop/" ; do
+ − 7369 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
+ − 7370 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
567
+ − 7371 echo "configure:7372: checking for ${dir}tt_c.h" >&5
+ − 7372
+ − 7373 cat > conftest.$ac_ext <<EOF
+ − 7374 #line 7375 "configure"
149
+ − 7375 #include "confdefs.h"
+ − 7376 #include <${dir}tt_c.h>
+ − 7377 EOF
+ − 7378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
567
+ − 7379 { (eval echo configure:7380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 7380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 7381 if test -z "$ac_err"; then
+ − 7382 rm -rf conftest*
+ − 7383 eval "ac_cv_header_$ac_safe=yes"
+ − 7384 else
+ − 7385 echo "$ac_err" >&5
+ − 7386 echo "configure: failed program was:" >&5
+ − 7387 cat conftest.$ac_ext >&5
+ − 7388 rm -rf conftest*
+ − 7389 eval "ac_cv_header_$ac_safe=no"
+ − 7390 fi
+ − 7391 rm -f conftest*
+ − 7392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 7393 echo "$ac_t""yes" 1>&6
442
+ − 7394 tt_c_h_file="${dir}tt_c.h"; break
149
+ − 7395 else
+ − 7396 echo "$ac_t""no" 1>&6
+ − 7397 fi
+ − 7398
+ − 7399 done
442
+ − 7400 if test -z "$tt_c_h_file"; then
284
+ − 7401 if test "$with_tooltalk" = "yes"; then
+ − 7402 (echo "$progname: Usage error:"
+ − 7403 echo " " "Unable to find required tooltalk header files."
+ − 7404 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 7405 fi
+ − 7406 with_tooltalk=no
+ − 7407 fi
149
+ − 7408 fi
+ − 7409 if test "$with_tooltalk" != "no" ; then
+ − 7410 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
+ − 7411
+ − 7412 xe_msg_checking="for tt_message_create in -ltt"
+ − 7413 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
+ − 7414 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
567
+ − 7415 echo "configure:7416: checking "$xe_msg_checking"" >&5
149
+ − 7416 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
+ − 7417
+ − 7418 xe_check_libs=" -ltt $extra_libs"
+ − 7419 cat > conftest.$ac_ext <<EOF
567
+ − 7420 #line 7421 "configure"
149
+ − 7421 #include "confdefs.h"
+ − 7422 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7423 /* We use char because int might match the return type of a gcc2
+ − 7424 builtin and then its argument prototype would still apply. */
+ − 7425 char tt_message_create();
+ − 7426
+ − 7427 int main() {
+ − 7428 tt_message_create()
+ − 7429 ; return 0; }
+ − 7430 EOF
567
+ − 7431 if { (eval echo configure:7432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 7432 rm -rf conftest*
+ − 7433 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7434 else
+ − 7435 echo "configure: failed program was:" >&5
+ − 7436 cat conftest.$ac_ext >&5
+ − 7437 rm -rf conftest*
+ − 7438 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7439 fi
+ − 7440 rm -f conftest*
+ − 7441 xe_check_libs=""
+ − 7442
151
+ − 7443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 7444 echo "$ac_t""yes" 1>&6
284
+ − 7445 tt_libs="-ltt $extra_libs"; break
149
+ − 7446 else
+ − 7447 echo "$ac_t""no" 1>&6
+ − 7448 :
+ − 7449 fi
+ − 7450
+ − 7451
+ − 7452 done
284
+ − 7453 if test -z "$tt_libs"; then
+ − 7454 if test "$with_tooltalk" = "yes"; then
+ − 7455 (echo "$progname: Usage error:"
+ − 7456 echo " " "Unable to find required tooltalk libraries."
+ − 7457 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
+ − 7458 fi
+ − 7459 with_tooltalk=no
+ − 7460 fi
+ − 7461 fi
+ − 7462 test -z "$with_tooltalk" && with_tooltalk=yes
149
+ − 7463 if test "$with_tooltalk" = "yes"; then
+ − 7464 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7465 Defining TOOLTALK
+ − 7466 EOF
+ − 7467 cat >> confdefs.h <<\EOF
+ − 7468 #define TOOLTALK 1
+ − 7469 EOF
+ − 7470 }
+ − 7471
+ − 7472 { test "$extra_verbose" = "yes" && cat << EOF
442
+ − 7473 Defining TT_C_H_FILE = "$tt_c_h_file"
+ − 7474 EOF
+ − 7475 cat >> confdefs.h <<EOF
+ − 7476 #define TT_C_H_FILE "$tt_c_h_file"
149
+ − 7477 EOF
+ − 7478 }
+ − 7479
151
+ − 7480 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
+ − 7481 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
+ − 7482 echo " xemacs will be linked with \"tooltalk.o\""
+ − 7483 fi
149
+ − 7484 fi
+ − 7485
+ − 7486 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
+ − 7487 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
567
+ − 7488 echo "configure:7489: checking for Dt/Dt.h" >&5
+ − 7489
+ − 7490 cat > conftest.$ac_ext <<EOF
+ − 7491 #line 7492 "configure"
149
+ − 7492 #include "confdefs.h"
+ − 7493 #include <Dt/Dt.h>
+ − 7494 EOF
+ − 7495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
567
+ − 7496 { (eval echo configure:7497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 7497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 7498 if test -z "$ac_err"; then
+ − 7499 rm -rf conftest*
+ − 7500 eval "ac_cv_header_$ac_safe=yes"
+ − 7501 else
+ − 7502 echo "$ac_err" >&5
+ − 7503 echo "configure: failed program was:" >&5
+ − 7504 cat conftest.$ac_ext >&5
+ − 7505 rm -rf conftest*
+ − 7506 eval "ac_cv_header_$ac_safe=no"
+ − 7507 fi
+ − 7508 rm -f conftest*
+ − 7509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 7510 echo "$ac_t""yes" 1>&6
+ − 7511 :
+ − 7512 else
+ − 7513 echo "$ac_t""no" 1>&6
+ − 7514 with_cde=no
136
+ − 7515 fi
+ − 7516 }
149
+ − 7517 test -z "$with_cde" && {
+ − 7518 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
567
+ − 7519 echo "configure:7520: checking for DtDndDragStart in -lDtSvc" >&5
149
+ − 7520 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
+ − 7521
+ − 7522 xe_check_libs=" -lDtSvc "
+ − 7523 cat > conftest.$ac_ext <<EOF
567
+ − 7524 #line 7525 "configure"
149
+ − 7525 #include "confdefs.h"
+ − 7526 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7527 /* We use char because int might match the return type of a gcc2
+ − 7528 builtin and then its argument prototype would still apply. */
+ − 7529 char DtDndDragStart();
+ − 7530
+ − 7531 int main() {
+ − 7532 DtDndDragStart()
+ − 7533 ; return 0; }
+ − 7534 EOF
567
+ − 7535 if { (eval echo configure:7536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 7536 rm -rf conftest*
+ − 7537 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7538 else
+ − 7539 echo "configure: failed program was:" >&5
+ − 7540 cat conftest.$ac_ext >&5
+ − 7541 rm -rf conftest*
+ − 7542 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7543 fi
+ − 7544 rm -f conftest*
+ − 7545 xe_check_libs=""
+ − 7546
151
+ − 7547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 7548 echo "$ac_t""yes" 1>&6
+ − 7549 :
+ − 7550 else
+ − 7551 echo "$ac_t""no" 1>&6
+ − 7552 with_cde=no
+ − 7553 fi
+ − 7554
+ − 7555 }
582
+ − 7556 if test "$with_dragndrop" = "no" ; then
+ − 7557 if test "$with_cde" = "yes" ; then
+ − 7558 echo "configure: warning: --with-cde forced to \`no'; no generic Drag'n'Drop support" 1>&2
+ − 7559 fi
+ − 7560 with_cde=no
+ − 7561 fi
149
+ − 7562 test -z "$with_cde" && with_cde=yes
+ − 7563 if test "$with_cde" = "yes" ; then
+ − 7564 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7565 Defining HAVE_CDE
+ − 7566 EOF
+ − 7567 cat >> confdefs.h <<\EOF
+ − 7568 #define HAVE_CDE 1
+ − 7569 EOF
+ − 7570 }
+ − 7571
151
+ − 7572 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
282
+ − 7573 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
149
+ − 7574 with_tooltalk=yes # CDE requires Tooltalk
167
+ − 7575 need_motif=yes # CDE requires Motif
149
+ − 7576 fi
+ − 7577
288
+ − 7578 test "$window_system" != "x11" && with_offix=no
+ − 7579 if test "$with_xmu" != yes -a "$with_x11" = yes; then
582
+ − 7580 if test "$with_offix" = "yes" ; then
+ − 7581 echo "configure: warning: --with-offix forced to \`no'; no real Xmu support" 1>&2
+ − 7582 fi
288
+ − 7583 with_offix=no
+ − 7584 fi
+ − 7585 if test "$with_dragndrop" = no; then
582
+ − 7586 if test "$with_offix" = "yes" ; then
+ − 7587 echo "configure: warning: --with-offix forced to \`no'; no generic Drag'n'Drop support" 1>&2
+ − 7588 fi
288
+ − 7589 with_offix=no
+ − 7590 fi
+ − 7591 if test "$with_cde" = yes; then
582
+ − 7592 if test "$with_offix" = "yes" ; then
+ − 7593 echo "configure: warning: --with-offix forced to \`no'; CDE already found" 1>&2
+ − 7594 fi
288
+ − 7595 with_offix=no
+ − 7596 fi
300
+ − 7597 test -z "$with_offix" && with_offix=no
288
+ − 7598 if test "$with_offix" = "yes"; then
+ − 7599 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7600 Defining HAVE_OFFIX_DND
+ − 7601 EOF
+ − 7602 cat >> confdefs.h <<\EOF
+ − 7603 #define HAVE_OFFIX_DND 1
+ − 7604 EOF
+ − 7605 }
+ − 7606
+ − 7607 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
+ − 7608 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
+ − 7609 fi
462
+ − 7610 if test "$with_gtk" = "yes"; then
+ − 7611 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
+ − 7612 fi
288
+ − 7613
282
+ − 7614 if test "$with_dragndrop" != "no" ; then
446
+ − 7615 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
582
+ − 7616 echo "configure:7617: checking if drag and drop API is needed" >&5
282
+ − 7617 if test -n "$dragndrop_proto" ; then
+ − 7618 with_dragndrop=yes
+ − 7619 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
+ − 7620 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7621 Defining HAVE_DRAGNDROP
+ − 7622 EOF
+ − 7623 cat >> confdefs.h <<\EOF
+ − 7624 #define HAVE_DRAGNDROP 1
+ − 7625 EOF
+ − 7626 }
+ − 7627
+ − 7628 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
+ − 7629 else
+ − 7630 with_dragndrop=no
+ − 7631 echo "$ac_t""no" 1>&6
+ − 7632 fi
+ − 7633 fi
+ − 7634
259
+ − 7635 echo "checking for LDAP" 1>&6
582
+ − 7636 echo "configure:7637: checking for LDAP" >&5
259
+ − 7637 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
+ − 7638 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
582
+ − 7639 echo "configure:7640: checking for ldap.h" >&5
+ − 7640
+ − 7641 cat > conftest.$ac_ext <<EOF
+ − 7642 #line 7643 "configure"
259
+ − 7643 #include "confdefs.h"
+ − 7644 #include <ldap.h>
+ − 7645 EOF
+ − 7646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 7647 { (eval echo configure:7648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 7648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
259
+ − 7649 if test -z "$ac_err"; then
+ − 7650 rm -rf conftest*
+ − 7651 eval "ac_cv_header_$ac_safe=yes"
+ − 7652 else
+ − 7653 echo "$ac_err" >&5
+ − 7654 echo "configure: failed program was:" >&5
+ − 7655 cat conftest.$ac_ext >&5
+ − 7656 rm -rf conftest*
+ − 7657 eval "ac_cv_header_$ac_safe=no"
+ − 7658 fi
+ − 7659 rm -f conftest*
+ − 7660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 7661 echo "$ac_t""yes" 1>&6
+ − 7662 :
+ − 7663 else
+ − 7664 echo "$ac_t""no" 1>&6
+ − 7665 with_ldap=no
+ − 7666 fi
+ − 7667 }
+ − 7668 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
+ − 7669 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
582
+ − 7670 echo "configure:7671: checking for lber.h" >&5
+ − 7671
+ − 7672 cat > conftest.$ac_ext <<EOF
+ − 7673 #line 7674 "configure"
259
+ − 7674 #include "confdefs.h"
+ − 7675 #include <lber.h>
+ − 7676 EOF
+ − 7677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 7678 { (eval echo configure:7679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 7679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
259
+ − 7680 if test -z "$ac_err"; then
+ − 7681 rm -rf conftest*
+ − 7682 eval "ac_cv_header_$ac_safe=yes"
+ − 7683 else
+ − 7684 echo "$ac_err" >&5
+ − 7685 echo "configure: failed program was:" >&5
+ − 7686 cat conftest.$ac_ext >&5
+ − 7687 rm -rf conftest*
+ − 7688 eval "ac_cv_header_$ac_safe=no"
+ − 7689 fi
+ − 7690 rm -f conftest*
+ − 7691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 7692 echo "$ac_t""yes" 1>&6
+ − 7693 :
+ − 7694 else
+ − 7695 echo "$ac_t""no" 1>&6
+ − 7696 with_ldap=no
+ − 7697 fi
+ − 7698 }
272
+ − 7699 if test "$with_ldap" != "no"; then
418
+ − 7700
+ − 7701 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
582
+ − 7702 echo "configure:7703: checking for ldap_search in -lldap" >&5
418
+ − 7703 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
+ − 7704
+ − 7705 xe_check_libs=" -lldap "
+ − 7706 cat > conftest.$ac_ext <<EOF
582
+ − 7707 #line 7708 "configure"
418
+ − 7708 #include "confdefs.h"
+ − 7709 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7710 /* We use char because int might match the return type of a gcc2
+ − 7711 builtin and then its argument prototype would still apply. */
+ − 7712 char ldap_search();
+ − 7713
+ − 7714 int main() {
+ − 7715 ldap_search()
+ − 7716 ; return 0; }
+ − 7717 EOF
582
+ − 7718 if { (eval echo configure:7719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
+ − 7719 rm -rf conftest*
+ − 7720 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7721 else
+ − 7722 echo "configure: failed program was:" >&5
+ − 7723 cat conftest.$ac_ext >&5
+ − 7724 rm -rf conftest*
+ − 7725 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7726 fi
+ − 7727 rm -f conftest*
+ − 7728 xe_check_libs=""
+ − 7729
+ − 7730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 7731 echo "$ac_t""yes" 1>&6
418
+ − 7732 with_ldap_nolber=yes
+ − 7733 else
+ − 7734 echo "$ac_t""no" 1>&6
+ − 7735 with_ldap_nolber=no
+ − 7736 fi
+ − 7737
+ − 7738
+ − 7739 test "$with_ldap_nolber" = "no" && {
+ − 7740 xe_msg_checking="for ldap_open in -lldap"
+ − 7741 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
+ − 7742 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
582
+ − 7743 echo "configure:7744: checking "$xe_msg_checking"" >&5
418
+ − 7744 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
+ − 7745
+ − 7746 xe_check_libs=" -lldap -llber"
+ − 7747 cat > conftest.$ac_ext <<EOF
582
+ − 7748 #line 7749 "configure"
418
+ − 7749 #include "confdefs.h"
+ − 7750 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7751 /* We use char because int might match the return type of a gcc2
+ − 7752 builtin and then its argument prototype would still apply. */
+ − 7753 char ldap_open();
+ − 7754
+ − 7755 int main() {
+ − 7756 ldap_open()
+ − 7757 ; return 0; }
+ − 7758 EOF
582
+ − 7759 if { (eval echo configure:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
+ − 7760 rm -rf conftest*
+ − 7761 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7762 else
+ − 7763 echo "configure: failed program was:" >&5
+ − 7764 cat conftest.$ac_ext >&5
+ − 7765 rm -rf conftest*
+ − 7766 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7767 fi
+ − 7768 rm -f conftest*
+ − 7769 xe_check_libs=""
+ − 7770
+ − 7771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 7772 echo "$ac_t""yes" 1>&6
418
+ − 7773 with_ldap_lber=yes
+ − 7774 else
+ − 7775 echo "$ac_t""no" 1>&6
+ − 7776 with_ldap_lber=no
259
+ − 7777 fi
+ − 7778
+ − 7779 }
422
+ − 7780 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
+ − 7781 xe_msg_checking="for ldap_open in -lldap"
+ − 7782 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
+ − 7783 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
582
+ − 7784 echo "configure:7785: checking "$xe_msg_checking"" >&5
422
+ − 7785 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
+ − 7786
+ − 7787 xe_check_libs=" -lldap -llber -lkrb"
+ − 7788 cat > conftest.$ac_ext <<EOF
582
+ − 7789 #line 7790 "configure"
422
+ − 7790 #include "confdefs.h"
+ − 7791 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7792 /* We use char because int might match the return type of a gcc2
+ − 7793 builtin and then its argument prototype would still apply. */
+ − 7794 char ldap_open();
+ − 7795
+ − 7796 int main() {
+ − 7797 ldap_open()
+ − 7798 ; return 0; }
+ − 7799 EOF
582
+ − 7800 if { (eval echo configure:7801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422
+ − 7801 rm -rf conftest*
+ − 7802 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7803 else
+ − 7804 echo "configure: failed program was:" >&5
+ − 7805 cat conftest.$ac_ext >&5
+ − 7806 rm -rf conftest*
+ − 7807 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7808 fi
+ − 7809 rm -f conftest*
+ − 7810 xe_check_libs=""
+ − 7811
+ − 7812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 7813 echo "$ac_t""yes" 1>&6
+ − 7814 with_ldap_krb=yes
+ − 7815 else
+ − 7816 echo "$ac_t""no" 1>&6
+ − 7817 with_ldap_krb=no
+ − 7818 fi
+ − 7819
+ − 7820 }
+ − 7821 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
+ − 7822 xe_msg_checking="for ldap_open in -lldap"
+ − 7823 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
+ − 7824 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
582
+ − 7825 echo "configure:7826: checking "$xe_msg_checking"" >&5
422
+ − 7826 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
+ − 7827
+ − 7828 xe_check_libs=" -lldap -llber -lkrb -ldes"
+ − 7829 cat > conftest.$ac_ext <<EOF
582
+ − 7830 #line 7831 "configure"
422
+ − 7831 #include "confdefs.h"
+ − 7832 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7833 /* We use char because int might match the return type of a gcc2
+ − 7834 builtin and then its argument prototype would still apply. */
+ − 7835 char ldap_open();
+ − 7836
+ − 7837 int main() {
+ − 7838 ldap_open()
+ − 7839 ; return 0; }
+ − 7840 EOF
582
+ − 7841 if { (eval echo configure:7842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422
+ − 7842 rm -rf conftest*
+ − 7843 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 7844 else
+ − 7845 echo "configure: failed program was:" >&5
+ − 7846 cat conftest.$ac_ext >&5
+ − 7847 rm -rf conftest*
+ − 7848 eval "ac_cv_lib_$ac_lib_var=no"
+ − 7849 fi
+ − 7850 rm -f conftest*
+ − 7851 xe_check_libs=""
+ − 7852
+ − 7853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 7854 echo "$ac_t""yes" 1>&6
+ − 7855 with_ldap_krbdes=yes
+ − 7856 else
+ − 7857 echo "$ac_t""no" 1>&6
+ − 7858 with_ldap_krbdes=no
+ − 7859 fi
+ − 7860
+ − 7861 }
+ − 7862 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
+ − 7863 fi
+ − 7864 if test "$with_ldap" = "yes"; then
259
+ − 7865 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 7866 Defining HAVE_LDAP
+ − 7867 EOF
+ − 7868 cat >> confdefs.h <<\EOF
+ − 7869 #define HAVE_LDAP 1
+ − 7870 EOF
+ − 7871 }
+ − 7872
272
+ − 7873 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
+ − 7874 echo " xemacs will be linked with \"eldap.o\""
+ − 7875 fi
418
+ − 7876 if test "$with_ldap_nolber" = "yes" ; then
+ − 7877 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
+ − 7878 else
422
+ − 7879 if test "$with_ldap_krb" = "yes" ; then
+ − 7880 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
+ − 7881 fi
+ − 7882 if test "$with_ldap_krbdes" = "yes" ; then
+ − 7883 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
+ − 7884 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
+ − 7885 fi
272
+ − 7886 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
+ − 7887 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
418
+ − 7888 fi
+ − 7889 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
+ − 7890 do
+ − 7891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
582
+ − 7892 echo "configure:7893: checking for $ac_func" >&5
+ − 7893
+ − 7894 cat > conftest.$ac_ext <<EOF
+ − 7895 #line 7896 "configure"
418
+ − 7896 #include "confdefs.h"
+ − 7897 /* System header to define __stub macros and hopefully few prototypes,
+ − 7898 which can conflict with char $ac_func(); below. */
+ − 7899 #include <assert.h>
+ − 7900 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7901 /* We use char because int might match the return type of a gcc2
+ − 7902 builtin and then its argument prototype would still apply. */
+ − 7903 char $ac_func();
+ − 7904
+ − 7905 int main() {
+ − 7906
+ − 7907 /* The GNU C library defines this for functions which it implements
+ − 7908 to always fail with ENOSYS. Some functions are actually named
+ − 7909 something starting with __ and the normal name is an alias. */
+ − 7910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 7911 choke me
+ − 7912 #else
+ − 7913 $ac_func();
+ − 7914 #endif
+ − 7915
+ − 7916 ; return 0; }
+ − 7917 EOF
582
+ − 7918 if { (eval echo configure:7919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
418
+ − 7919 rm -rf conftest*
+ − 7920 eval "ac_cv_func_$ac_func=yes"
+ − 7921 else
+ − 7922 echo "configure: failed program was:" >&5
+ − 7923 cat conftest.$ac_ext >&5
+ − 7924 rm -rf conftest*
+ − 7925 eval "ac_cv_func_$ac_func=no"
+ − 7926 fi
+ − 7927 rm -f conftest*
+ − 7928
+ − 7929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 7930 echo "$ac_t""yes" 1>&6
+ − 7931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 7932 { test "$extra_verbose" = "yes" && cat << EOF
+ − 7933 Defining $ac_tr_func
+ − 7934 EOF
+ − 7935 cat >> confdefs.h <<EOF
+ − 7936 #define $ac_tr_func 1
+ − 7937 EOF
+ − 7938 }
+ − 7939
+ − 7940 else
+ − 7941 echo "$ac_t""no" 1>&6
+ − 7942 fi
+ − 7943 done
+ − 7944
404
+ − 7945 fi
+ − 7946
442
+ − 7947 if test "$with_postgresql" != "no"; then
+ − 7948 echo "checking for PostgreSQL" 1>&6
582
+ − 7949 echo "configure:7950: checking for PostgreSQL" >&5
442
+ − 7950
+ − 7951 for header_dir in "" "pgsql/" "postgresql/"; do
+ − 7952 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
+ − 7953 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
582
+ − 7954 echo "configure:7955: checking for ${header_dir}libpq-fe.h" >&5
+ − 7955
+ − 7956 cat > conftest.$ac_ext <<EOF
+ − 7957 #line 7958 "configure"
442
+ − 7958 #include "confdefs.h"
+ − 7959 #include <${header_dir}libpq-fe.h>
+ − 7960 EOF
+ − 7961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 7962 { (eval echo configure:7963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 7963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 7964 if test -z "$ac_err"; then
+ − 7965 rm -rf conftest*
+ − 7966 eval "ac_cv_header_$ac_safe=yes"
+ − 7967 else
+ − 7968 echo "$ac_err" >&5
+ − 7969 echo "configure: failed program was:" >&5
+ − 7970 cat conftest.$ac_ext >&5
+ − 7971 rm -rf conftest*
+ − 7972 eval "ac_cv_header_$ac_safe=no"
+ − 7973 fi
+ − 7974 rm -f conftest*
+ − 7975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 7976 echo "$ac_t""yes" 1>&6
+ − 7977 libpq_fe_h_file=${header_dir}libpq-fe.h; break
+ − 7978 else
+ − 7979 echo "$ac_t""no" 1>&6
+ − 7980 fi
+ − 7981
+ − 7982 done
+ − 7983
+ − 7984 test -n "$libpq_fe_h_file" && {
+ − 7985 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
582
+ − 7986 echo "configure:7987: checking for PQconnectdb in -lpq" >&5
442
+ − 7987 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
+ − 7988
+ − 7989 xe_check_libs=" -lpq "
+ − 7990 cat > conftest.$ac_ext <<EOF
582
+ − 7991 #line 7992 "configure"
442
+ − 7992 #include "confdefs.h"
+ − 7993 /* Override any gcc2 internal prototype to avoid an error. */
+ − 7994 /* We use char because int might match the return type of a gcc2
+ − 7995 builtin and then its argument prototype would still apply. */
+ − 7996 char PQconnectdb();
+ − 7997
+ − 7998 int main() {
+ − 7999 PQconnectdb()
+ − 8000 ; return 0; }
+ − 8001 EOF
582
+ − 8002 if { (eval echo configure:8003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 8003 rm -rf conftest*
+ − 8004 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8005 else
+ − 8006 echo "configure: failed program was:" >&5
+ − 8007 cat conftest.$ac_ext >&5
+ − 8008 rm -rf conftest*
+ − 8009 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8010 fi
+ − 8011 rm -f conftest*
+ − 8012 xe_check_libs=""
+ − 8013
+ − 8014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8015 echo "$ac_t""yes" 1>&6
+ − 8016 have_libpq=yes
+ − 8017 else
+ − 8018 echo "$ac_t""no" 1>&6
+ − 8019 fi
+ − 8020
+ − 8021 }
+ − 8022
+ − 8023 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
+ − 8024 with_postgresql=yes
+ − 8025 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8026 Defining HAVE_POSTGRESQL
+ − 8027 EOF
+ − 8028 cat >> confdefs.h <<\EOF
+ − 8029 #define HAVE_POSTGRESQL 1
+ − 8030 EOF
+ − 8031 }
+ − 8032
+ − 8033
+ − 8034 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
582
+ − 8035 echo "configure:8036: checking for PQconnectStart in -lpq" >&5
442
+ − 8036 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
+ − 8037
+ − 8038 xe_check_libs=" -lpq "
+ − 8039 cat > conftest.$ac_ext <<EOF
582
+ − 8040 #line 8041 "configure"
442
+ − 8041 #include "confdefs.h"
+ − 8042 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8043 /* We use char because int might match the return type of a gcc2
+ − 8044 builtin and then its argument prototype would still apply. */
+ − 8045 char PQconnectStart();
+ − 8046
+ − 8047 int main() {
+ − 8048 PQconnectStart()
+ − 8049 ; return 0; }
+ − 8050 EOF
582
+ − 8051 if { (eval echo configure:8052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 8052 rm -rf conftest*
+ − 8053 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8054 else
+ − 8055 echo "configure: failed program was:" >&5
+ − 8056 cat conftest.$ac_ext >&5
+ − 8057 rm -rf conftest*
+ − 8058 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8059 fi
+ − 8060 rm -f conftest*
+ − 8061 xe_check_libs=""
+ − 8062
+ − 8063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8064 echo "$ac_t""yes" 1>&6
+ − 8065 with_postgresqlv7=yes;
+ − 8066 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8067 Defining HAVE_POSTGRESQLV7
+ − 8068 EOF
+ − 8069 cat >> confdefs.h <<\EOF
+ − 8070 #define HAVE_POSTGRESQLV7 1
+ − 8071 EOF
+ − 8072 }
+ − 8073
+ − 8074 else
+ − 8075 echo "$ac_t""no" 1>&6
+ − 8076 fi
+ − 8077
+ − 8078
+ − 8079 { test "$extra_verbose" = "yes" && cat << EOF
+ − 8080 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
+ − 8081 EOF
+ − 8082 cat >> confdefs.h <<EOF
+ − 8083 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
+ − 8084 EOF
+ − 8085 }
+ − 8086
+ − 8087 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
+ − 8088 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
+ − 8089 echo " xemacs will be linked with \"postgresql.o\""
+ − 8090 fi
+ − 8091 elif test "$with_postgresql" = "yes"; then
+ − 8092 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
+ − 8093 fi
+ − 8094 fi
+ − 8095
149
+ − 8096
278
+ − 8097 if test "$window_system" != "none"; then
+ − 8098 echo "checking for graphics libraries" 1>&6
582
+ − 8099 echo "configure:8100: checking for graphics libraries" >&5
373
+ − 8100
+ − 8101 xpm_problem=""
+ − 8102 if test -z "$with_xpm"; then
193
+ − 8103 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
582
+ − 8104 echo "configure:8105: checking for Xpm - no older than 3.4f" >&5
272
+ − 8105 xe_check_libs=-lXpm
+ − 8106 cat > conftest.$ac_ext <<EOF
582
+ − 8107 #line 8108 "configure"
442
+ − 8108 #include "confdefs.h"
+ − 8109 #define XPM_NUMBERS
149
+ − 8110 #include <X11/xpm.h>
272
+ − 8111 int main(int c, char **v) {
+ − 8112 return c == 1 ? 0 :
+ − 8113 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
+ − 8114 XpmIncludeVersion < 30406 ? 2 : 0 ;}
+ − 8115 EOF
582
+ − 8116 if { (eval echo configure:8117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
159
+ − 8117 then
272
+ − 8118 ./conftest dummy_arg; xpm_status=$?;
373
+ − 8119 if test "$xpm_status" = "0"; then
272
+ − 8120 with_xpm=yes;
+ − 8121 else
+ − 8122 with_xpm=no;
373
+ − 8123 if test "$xpm_status" = "1"; then
272
+ − 8124 xpm_problem="Xpm library version and header file version don't match!"
373
+ − 8125 elif test "$xpm_status" = "2"; then
272
+ − 8126 xpm_problem="Xpm library version is too old!"
+ − 8127 else
+ − 8128 xpm_problem="Internal xpm detection logic error!"
+ − 8129 fi
+ − 8130 echo "
373
+ − 8131 *** WARNING *** $xpm_problem
278
+ − 8132 I'm not touching that with a 10-foot pole!
+ − 8133 If you really want to use the installed version of Xpm, rerun
373
+ − 8134 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
278
+ − 8135 fi
159
+ − 8136 else
373
+ − 8137 conftest_rc="$?"
159
+ − 8138 echo "configure: failed program was:" >&5
+ − 8139 cat conftest.$ac_ext >&5
+ − 8140 rm -fr conftest*
+ − 8141 with_xpm=no
+ − 8142 fi
+ − 8143 rm -fr conftest*
272
+ − 8144 xe_check_libs=
+ − 8145 echo "$ac_t""$with_xpm" 1>&6
193
+ − 8146 fi
+ − 8147 if test "$with_xpm" = "yes"; then
458
+ − 8148 { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 8149 Defining HAVE_XPM
+ − 8150 EOF
+ − 8151 cat >> confdefs.h <<\EOF
+ − 8152 #define HAVE_XPM 1
+ − 8153 EOF
+ − 8154 }
+ − 8155
193
+ − 8156 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
278
+ − 8157 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
582
+ − 8158 echo "configure:8159: checking for \"FOR_MSW\" xpm" >&5
278
+ − 8159 xe_check_libs=-lXpm
+ − 8160 cat > conftest.$ac_ext <<EOF
582
+ − 8161 #line 8162 "configure"
278
+ − 8162 #include "confdefs.h"
+ − 8163
+ − 8164 int main() {
+ − 8165 XpmCreatePixmapFromData()
+ − 8166 ; return 0; }
+ − 8167 EOF
582
+ − 8168 if { (eval echo configure:8169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
+ − 8169 rm -rf conftest*
+ − 8170 xpm_for_msw=no
+ − 8171 else
+ − 8172 echo "configure: failed program was:" >&5
+ − 8173 cat conftest.$ac_ext >&5
+ − 8174 rm -rf conftest*
+ − 8175 xpm_for_msw=yes
+ − 8176 fi
+ − 8177 rm -f conftest*
+ − 8178 xe_check_libs=
+ − 8179 echo "$ac_t""$xpm_for_msw" 1>&6
+ − 8180 if test "$xpm_for_msw" = "yes"; then
+ − 8181 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8182 Defining FOR_MSW
+ − 8183 EOF
+ − 8184 cat >> confdefs.h <<\EOF
+ − 8185 #define FOR_MSW 1
+ − 8186 EOF
+ − 8187 }
+ − 8188
+ − 8189 fi
+ − 8190 fi
+ − 8191
388
+ − 8192 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
+ − 8193 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
582
+ − 8194 echo "configure:8195: checking for compface.h" >&5
+ − 8195
+ − 8196 cat > conftest.$ac_ext <<EOF
+ − 8197 #line 8198 "configure"
388
+ − 8198 #include "confdefs.h"
+ − 8199 #include <compface.h>
+ − 8200 EOF
+ − 8201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 8202 { (eval echo configure:8203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 8203 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
388
+ − 8204 if test -z "$ac_err"; then
+ − 8205 rm -rf conftest*
+ − 8206 eval "ac_cv_header_$ac_safe=yes"
+ − 8207 else
+ − 8208 echo "$ac_err" >&5
+ − 8209 echo "configure: failed program was:" >&5
+ − 8210 cat conftest.$ac_ext >&5
+ − 8211 rm -rf conftest*
+ − 8212 eval "ac_cv_header_$ac_safe=no"
+ − 8213 fi
+ − 8214 rm -f conftest*
+ − 8215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 8216 echo "$ac_t""yes" 1>&6
+ − 8217 :
+ − 8218 else
+ − 8219 echo "$ac_t""no" 1>&6
+ − 8220 with_xface=no
+ − 8221 fi
+ − 8222 }
+ − 8223 test -z "$with_xface" && {
+ − 8224 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
582
+ − 8225 echo "configure:8226: checking for UnGenFace in -lcompface" >&5
388
+ − 8226 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
+ − 8227
+ − 8228 xe_check_libs=" -lcompface "
+ − 8229 cat > conftest.$ac_ext <<EOF
582
+ − 8230 #line 8231 "configure"
388
+ − 8231 #include "confdefs.h"
+ − 8232 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8233 /* We use char because int might match the return type of a gcc2
+ − 8234 builtin and then its argument prototype would still apply. */
+ − 8235 char UnGenFace();
+ − 8236
+ − 8237 int main() {
+ − 8238 UnGenFace()
+ − 8239 ; return 0; }
+ − 8240 EOF
582
+ − 8241 if { (eval echo configure:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
388
+ − 8242 rm -rf conftest*
+ − 8243 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8244 else
+ − 8245 echo "configure: failed program was:" >&5
+ − 8246 cat conftest.$ac_ext >&5
+ − 8247 rm -rf conftest*
+ − 8248 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8249 fi
+ − 8250 rm -f conftest*
+ − 8251 xe_check_libs=""
+ − 8252
+ − 8253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8254 echo "$ac_t""yes" 1>&6
+ − 8255 :
+ − 8256 else
+ − 8257 echo "$ac_t""no" 1>&6
+ − 8258 with_xface=no
+ − 8259 fi
+ − 8260
+ − 8261 }
+ − 8262 test -z "$with_xface" && with_xface=yes
+ − 8263 if test "$with_xface" = "yes"; then
+ − 8264 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8265 Defining HAVE_XFACE
+ − 8266 EOF
+ − 8267 cat >> confdefs.h <<\EOF
+ − 8268 #define HAVE_XFACE 1
+ − 8269 EOF
+ − 8270 }
+ − 8271
+ − 8272 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
+ − 8273 fi
+ − 8274
373
+ − 8275 if test "$with_gif" != "no"; then
+ − 8276 with_gif="yes"
+ − 8277 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8278 Defining HAVE_GIF
+ − 8279 EOF
+ − 8280 cat >> confdefs.h <<\EOF
+ − 8281 #define HAVE_GIF 1
+ − 8282 EOF
+ − 8283 }
+ − 8284
+ − 8285 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
+ − 8286 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
+ − 8287 fi
+ − 8288 fi
+ − 8289
278
+ − 8290 if test "$with_png $with_tiff" != "no no"; then
+ − 8291
+ − 8292 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
582
+ − 8293 echo "configure:8294: checking for inflate in -lc" >&5
278
+ − 8294 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
+ − 8295
+ − 8296 xe_check_libs=" -lc "
+ − 8297 cat > conftest.$ac_ext <<EOF
582
+ − 8298 #line 8299 "configure"
149
+ − 8299 #include "confdefs.h"
+ − 8300 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8301 /* We use char because int might match the return type of a gcc2
+ − 8302 builtin and then its argument prototype would still apply. */
278
+ − 8303 char inflate();
+ − 8304
+ − 8305 int main() {
+ − 8306 inflate()
+ − 8307 ; return 0; }
+ − 8308 EOF
582
+ − 8309 if { (eval echo configure:8310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 8310 rm -rf conftest*
+ − 8311 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8312 else
+ − 8313 echo "configure: failed program was:" >&5
+ − 8314 cat conftest.$ac_ext >&5
+ − 8315 rm -rf conftest*
+ − 8316 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8317 fi
+ − 8318 rm -f conftest*
+ − 8319 xe_check_libs=""
+ − 8320
151
+ − 8321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 8322 echo "$ac_t""yes" 1>&6
278
+ − 8323 :
+ − 8324 else
+ − 8325 echo "$ac_t""no" 1>&6
+ − 8326
+ − 8327 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
582
+ − 8328 echo "configure:8329: checking for inflate in -lz" >&5
278
+ − 8329 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
+ − 8330
+ − 8331 xe_check_libs=" -lz "
+ − 8332 cat > conftest.$ac_ext <<EOF
582
+ − 8333 #line 8334 "configure"
278
+ − 8334 #include "confdefs.h"
+ − 8335 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8336 /* We use char because int might match the return type of a gcc2
+ − 8337 builtin and then its argument prototype would still apply. */
+ − 8338 char inflate();
+ − 8339
+ − 8340 int main() {
+ − 8341 inflate()
+ − 8342 ; return 0; }
+ − 8343 EOF
582
+ − 8344 if { (eval echo configure:8345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
+ − 8345 rm -rf conftest*
+ − 8346 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8347 else
+ − 8348 echo "configure: failed program was:" >&5
+ − 8349 cat conftest.$ac_ext >&5
+ − 8350 rm -rf conftest*
+ − 8351 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8352 fi
+ − 8353 rm -f conftest*
+ − 8354 xe_check_libs=""
+ − 8355
+ − 8356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8357 echo "$ac_t""yes" 1>&6
+ − 8358 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
+ − 8359 else
+ − 8360 echo "$ac_t""no" 1>&6
+ − 8361
+ − 8362 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
582
+ − 8363 echo "configure:8364: checking for inflate in -lgz" >&5
278
+ − 8364 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
+ − 8365
+ − 8366 xe_check_libs=" -lgz "
+ − 8367 cat > conftest.$ac_ext <<EOF
582
+ − 8368 #line 8369 "configure"
278
+ − 8369 #include "confdefs.h"
+ − 8370 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8371 /* We use char because int might match the return type of a gcc2
+ − 8372 builtin and then its argument prototype would still apply. */
+ − 8373 char inflate();
+ − 8374
+ − 8375 int main() {
+ − 8376 inflate()
+ − 8377 ; return 0; }
+ − 8378 EOF
582
+ − 8379 if { (eval echo configure:8380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
+ − 8380 rm -rf conftest*
+ − 8381 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8382 else
+ − 8383 echo "configure: failed program was:" >&5
+ − 8384 cat conftest.$ac_ext >&5
+ − 8385 rm -rf conftest*
+ − 8386 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8387 fi
+ − 8388 rm -f conftest*
+ − 8389 xe_check_libs=""
+ − 8390
+ − 8391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8392 echo "$ac_t""yes" 1>&6
+ − 8393 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
+ − 8394 else
+ − 8395 echo "$ac_t""no" 1>&6
+ − 8396 fi
+ − 8397
+ − 8398
+ − 8399 fi
+ − 8400
+ − 8401
+ − 8402 fi
+ − 8403
+ − 8404
193
+ − 8405 fi
+ − 8406
251
+ − 8407 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
+ − 8408 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
582
+ − 8409 echo "configure:8410: checking for jpeglib.h" >&5
+ − 8410
+ − 8411 cat > conftest.$ac_ext <<EOF
+ − 8412 #line 8413 "configure"
251
+ − 8413 #include "confdefs.h"
+ − 8414 #include <jpeglib.h>
0
+ − 8415 EOF
149
+ − 8416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 8417 { (eval echo configure:8418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 8418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
251
+ − 8419 if test -z "$ac_err"; then
+ − 8420 rm -rf conftest*
+ − 8421 eval "ac_cv_header_$ac_safe=yes"
+ − 8422 else
+ − 8423 echo "$ac_err" >&5
+ − 8424 echo "configure: failed program was:" >&5
+ − 8425 cat conftest.$ac_ext >&5
+ − 8426 rm -rf conftest*
+ − 8427 eval "ac_cv_header_$ac_safe=no"
+ − 8428 fi
+ − 8429 rm -f conftest*
+ − 8430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 8431 echo "$ac_t""yes" 1>&6
+ − 8432 :
+ − 8433 else
+ − 8434 echo "$ac_t""no" 1>&6
+ − 8435 with_jpeg=no
+ − 8436 fi
+ − 8437 }
+ − 8438 test -z "$with_jpeg" && {
+ − 8439 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
582
+ − 8440 echo "configure:8441: checking for jpeg_destroy_decompress in -ljpeg" >&5
251
+ − 8441 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
+ − 8442
+ − 8443 xe_check_libs=" -ljpeg "
+ − 8444 cat > conftest.$ac_ext <<EOF
582
+ − 8445 #line 8446 "configure"
251
+ − 8446 #include "confdefs.h"
+ − 8447 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8448 /* We use char because int might match the return type of a gcc2
+ − 8449 builtin and then its argument prototype would still apply. */
+ − 8450 char jpeg_destroy_decompress();
+ − 8451
+ − 8452 int main() {
+ − 8453 jpeg_destroy_decompress()
+ − 8454 ; return 0; }
+ − 8455 EOF
582
+ − 8456 if { (eval echo configure:8457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
251
+ − 8457 rm -rf conftest*
+ − 8458 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8459 else
+ − 8460 echo "configure: failed program was:" >&5
+ − 8461 cat conftest.$ac_ext >&5
+ − 8462 rm -rf conftest*
+ − 8463 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8464 fi
+ − 8465 rm -f conftest*
+ − 8466 xe_check_libs=""
+ − 8467
+ − 8468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8469 echo "$ac_t""yes" 1>&6
+ − 8470 :
+ − 8471 else
+ − 8472 echo "$ac_t""no" 1>&6
+ − 8473 with_jpeg=no
+ − 8474 fi
+ − 8475
+ − 8476 }
+ − 8477 test -z "$with_jpeg" && with_jpeg=yes
+ − 8478 if test "$with_jpeg" = "yes"; then
+ − 8479 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8480 Defining HAVE_JPEG
+ − 8481 EOF
+ − 8482 cat >> confdefs.h <<\EOF
+ − 8483 #define HAVE_JPEG 1
+ − 8484 EOF
+ − 8485 }
+ − 8486
+ − 8487 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
+ − 8488 fi
+ − 8489
373
+ − 8490 png_problem=""
251
+ − 8491 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
582
+ − 8492 echo "configure:8493: checking for pow" >&5
+ − 8493
+ − 8494 cat > conftest.$ac_ext <<EOF
+ − 8495 #line 8496 "configure"
251
+ − 8496 #include "confdefs.h"
+ − 8497 /* System header to define __stub macros and hopefully few prototypes,
+ − 8498 which can conflict with char pow(); below. */
+ − 8499 #include <assert.h>
243
+ − 8500 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8501 /* We use char because int might match the return type of a gcc2
+ − 8502 builtin and then its argument prototype would still apply. */
251
+ − 8503 char pow();
243
+ − 8504
+ − 8505 int main() {
251
+ − 8506
+ − 8507 /* The GNU C library defines this for functions which it implements
+ − 8508 to always fail with ENOSYS. Some functions are actually named
+ − 8509 something starting with __ and the normal name is an alias. */
+ − 8510 #if defined (__stub_pow) || defined (__stub___pow)
+ − 8511 choke me
+ − 8512 #else
+ − 8513 pow();
+ − 8514 #endif
+ − 8515
243
+ − 8516 ; return 0; }
+ − 8517 EOF
582
+ − 8518 if { (eval echo configure:8519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
251
+ − 8519 rm -rf conftest*
+ − 8520 eval "ac_cv_func_pow=yes"
+ − 8521 else
+ − 8522 echo "configure: failed program was:" >&5
+ − 8523 cat conftest.$ac_ext >&5
+ − 8524 rm -rf conftest*
+ − 8525 eval "ac_cv_func_pow=no"
+ − 8526 fi
+ − 8527 rm -f conftest*
+ − 8528
+ − 8529 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
+ − 8530 echo "$ac_t""yes" 1>&6
+ − 8531 :
+ − 8532 else
+ − 8533 echo "$ac_t""no" 1>&6
+ − 8534 with_png=no
+ − 8535 fi
+ − 8536 }
373
+ − 8537 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
+ − 8538 echo $ac_n "checking for png.h""... $ac_c" 1>&6
582
+ − 8539 echo "configure:8540: checking for png.h" >&5
+ − 8540
+ − 8541 cat > conftest.$ac_ext <<EOF
+ − 8542 #line 8543 "configure"
373
+ − 8543 #include "confdefs.h"
+ − 8544 #include <png.h>
+ − 8545 EOF
+ − 8546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 8547 { (eval echo configure:8548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 8548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
373
+ − 8549 if test -z "$ac_err"; then
+ − 8550 rm -rf conftest*
+ − 8551 eval "ac_cv_header_$ac_safe=yes"
+ − 8552 else
+ − 8553 echo "$ac_err" >&5
+ − 8554 echo "configure: failed program was:" >&5
+ − 8555 cat conftest.$ac_ext >&5
+ − 8556 rm -rf conftest*
+ − 8557 eval "ac_cv_header_$ac_safe=no"
+ − 8558 fi
+ − 8559 rm -f conftest*
+ − 8560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 8561 echo "$ac_t""yes" 1>&6
+ − 8562 :
+ − 8563 else
+ − 8564 echo "$ac_t""no" 1>&6
+ − 8565 with_png=no
+ − 8566 fi
+ − 8567 }
272
+ − 8568 test -z "$with_png" && {
+ − 8569 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
582
+ − 8570 echo "configure:8571: checking for png_read_image in -lpng" >&5
272
+ − 8571 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
+ − 8572
+ − 8573 xe_check_libs=" -lpng "
+ − 8574 cat > conftest.$ac_ext <<EOF
582
+ − 8575 #line 8576 "configure"
243
+ − 8576 #include "confdefs.h"
+ − 8577 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8578 /* We use char because int might match the return type of a gcc2
+ − 8579 builtin and then its argument prototype would still apply. */
272
+ − 8580 char png_read_image();
+ − 8581
+ − 8582 int main() {
+ − 8583 png_read_image()
+ − 8584 ; return 0; }
+ − 8585 EOF
582
+ − 8586 if { (eval echo configure:8587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
217
+ − 8587 rm -rf conftest*
+ − 8588 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8589 else
+ − 8590 echo "configure: failed program was:" >&5
+ − 8591 cat conftest.$ac_ext >&5
+ − 8592 rm -rf conftest*
+ − 8593 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8594 fi
+ − 8595 rm -f conftest*
+ − 8596 xe_check_libs=""
+ − 8597
+ − 8598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8599 echo "$ac_t""yes" 1>&6
272
+ − 8600 :
+ − 8601 else
+ − 8602 echo "$ac_t""no" 1>&6
+ − 8603 with_png=no
+ − 8604 fi
+ − 8605
+ − 8606 }
373
+ − 8607 if test -z "$with_png"; then
+ − 8608 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
582
+ − 8609 echo "configure:8610: checking for workable png version information" >&5
373
+ − 8610 xe_check_libs="-lpng -lz"
+ − 8611 cat > conftest.$ac_ext <<EOF
582
+ − 8612 #line 8613 "configure"
373
+ − 8613 #include "confdefs.h"
+ − 8614 #include <png.h>
+ − 8615 int main(int c, char **v) {
+ − 8616 if (c == 1) return 0;
+ − 8617 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
+ − 8618 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
+ − 8619 EOF
582
+ − 8620 if { (eval echo configure:8621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
373
+ − 8621 then
+ − 8622 ./conftest dummy_arg; png_status=$?;
+ − 8623 if test "$png_status" = "0"; then
+ − 8624 with_png=yes;
+ − 8625 else
+ − 8626 with_png=no;
+ − 8627 if test "$png_status" = "1"; then
+ − 8628 png_problem="PNG library version and header file don't match!"
+ − 8629 elif test "$png_status" = "2"; then
+ − 8630 png_problem="PNG library version too old (pre 1.0.2)!"
+ − 8631 fi
+ − 8632 echo "
+ − 8633 *** WARNING *** $png_problem
+ − 8634 I'm not touching that with a 10-foot pole!
+ − 8635 If you really want to use the installed version of libPNG, rerun
+ − 8636 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
+ − 8637 fi
+ − 8638 else
+ − 8639 conftest_rc="$?"
+ − 8640 echo "configure: failed program was:" >&5
+ − 8641 cat conftest.$ac_ext >&5
+ − 8642 rm -fr conftest*
+ − 8643 with_png=no
+ − 8644 fi
+ − 8645 rm -fr conftest*
+ − 8646 xe_check_libs=
+ − 8647 echo "$ac_t""$with_png" 1>&6
+ − 8648 fi
251
+ − 8649 if test "$with_png" = "yes"; then
+ − 8650 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8651 Defining HAVE_PNG
+ − 8652 EOF
+ − 8653 cat >> confdefs.h <<\EOF
+ − 8654 #define HAVE_PNG 1
+ − 8655 EOF
+ − 8656 }
+ − 8657
272
+ − 8658 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
251
+ − 8659 fi
+ − 8660
272
+ − 8661 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
+ − 8662 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
582
+ − 8663 echo "configure:8664: checking for tiffio.h" >&5
+ − 8664
+ − 8665 cat > conftest.$ac_ext <<EOF
+ − 8666 #line 8667 "configure"
272
+ − 8667 #include "confdefs.h"
+ − 8668 #include <tiffio.h>
+ − 8669 EOF
+ − 8670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 8671 { (eval echo configure:8672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 8672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
272
+ − 8673 if test -z "$ac_err"; then
+ − 8674 rm -rf conftest*
+ − 8675 eval "ac_cv_header_$ac_safe=yes"
+ − 8676 else
+ − 8677 echo "$ac_err" >&5
+ − 8678 echo "configure: failed program was:" >&5
+ − 8679 cat conftest.$ac_ext >&5
+ − 8680 rm -rf conftest*
+ − 8681 eval "ac_cv_header_$ac_safe=no"
+ − 8682 fi
+ − 8683 rm -f conftest*
+ − 8684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 8685 echo "$ac_t""yes" 1>&6
+ − 8686 :
+ − 8687 else
+ − 8688 echo "$ac_t""no" 1>&6
+ − 8689 with_tiff=no
+ − 8690 fi
+ − 8691 }
+ − 8692 test -z "$with_tiff" && {
286
+ − 8693 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
582
+ − 8694 echo "configure:8695: checking for TIFFClientOpen in -ltiff" >&5
286
+ − 8695 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
251
+ − 8696
272
+ − 8697 xe_check_libs=" -ltiff "
+ − 8698 cat > conftest.$ac_ext <<EOF
582
+ − 8699 #line 8700 "configure"
217
+ − 8700 #include "confdefs.h"
+ − 8701 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8702 /* We use char because int might match the return type of a gcc2
+ − 8703 builtin and then its argument prototype would still apply. */
286
+ − 8704 char TIFFClientOpen();
+ − 8705
+ − 8706 int main() {
+ − 8707 TIFFClientOpen()
+ − 8708 ; return 0; }
+ − 8709 EOF
582
+ − 8710 if { (eval echo configure:8711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
217
+ − 8711 rm -rf conftest*
+ − 8712 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8713 else
+ − 8714 echo "configure: failed program was:" >&5
+ − 8715 cat conftest.$ac_ext >&5
+ − 8716 rm -rf conftest*
+ − 8717 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8718 fi
+ − 8719 rm -f conftest*
+ − 8720 xe_check_libs=""
+ − 8721
+ − 8722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8723 echo "$ac_t""yes" 1>&6
272
+ − 8724 :
+ − 8725 else
+ − 8726 echo "$ac_t""no" 1>&6
+ − 8727 with_tiff=no
+ − 8728 fi
+ − 8729
+ − 8730 }
+ − 8731 test -z "$with_tiff" && with_tiff=yes
251
+ − 8732 if test "$with_tiff" = "yes"; then
+ − 8733 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8734 Defining HAVE_TIFF
+ − 8735 EOF
+ − 8736 cat >> confdefs.h <<\EOF
+ − 8737 #define HAVE_TIFF 1
+ − 8738 EOF
+ − 8739 }
+ − 8740
272
+ − 8741 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
251
+ − 8742 fi
278
+ − 8743 fi
+ − 8744
+ − 8745
462
+ − 8746 if test "$with_gtk" = "yes"; then
+ − 8747 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
+ − 8748 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
582
+ − 8749 echo "configure:8750: checking for compface.h" >&5
+ − 8750
+ − 8751 cat > conftest.$ac_ext <<EOF
+ − 8752 #line 8753 "configure"
462
+ − 8753 #include "confdefs.h"
+ − 8754 #include <compface.h>
+ − 8755 EOF
+ − 8756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 8757 { (eval echo configure:8758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
462
+ − 8758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 8759 if test -z "$ac_err"; then
+ − 8760 rm -rf conftest*
+ − 8761 eval "ac_cv_header_$ac_safe=yes"
+ − 8762 else
+ − 8763 echo "$ac_err" >&5
+ − 8764 echo "configure: failed program was:" >&5
+ − 8765 cat conftest.$ac_ext >&5
+ − 8766 rm -rf conftest*
+ − 8767 eval "ac_cv_header_$ac_safe=no"
+ − 8768 fi
+ − 8769 rm -f conftest*
+ − 8770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 8771 echo "$ac_t""yes" 1>&6
+ − 8772 :
+ − 8773 else
+ − 8774 echo "$ac_t""no" 1>&6
+ − 8775 with_xface=no
+ − 8776 fi
+ − 8777 }
+ − 8778 test -z "$with_xface" && {
+ − 8779 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
582
+ − 8780 echo "configure:8781: checking for UnGenFace in -lcompface" >&5
462
+ − 8781 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
+ − 8782
+ − 8783 xe_check_libs=" -lcompface "
+ − 8784 cat > conftest.$ac_ext <<EOF
582
+ − 8785 #line 8786 "configure"
462
+ − 8786 #include "confdefs.h"
+ − 8787 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8788 /* We use char because int might match the return type of a gcc2
+ − 8789 builtin and then its argument prototype would still apply. */
+ − 8790 char UnGenFace();
+ − 8791
+ − 8792 int main() {
+ − 8793 UnGenFace()
+ − 8794 ; return 0; }
+ − 8795 EOF
582
+ − 8796 if { (eval echo configure:8797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
+ − 8797 rm -rf conftest*
+ − 8798 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8799 else
+ − 8800 echo "configure: failed program was:" >&5
+ − 8801 cat conftest.$ac_ext >&5
+ − 8802 rm -rf conftest*
+ − 8803 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8804 fi
+ − 8805 rm -f conftest*
+ − 8806 xe_check_libs=""
+ − 8807
+ − 8808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8809 echo "$ac_t""yes" 1>&6
+ − 8810 :
+ − 8811 else
+ − 8812 echo "$ac_t""no" 1>&6
+ − 8813 with_xface=no
+ − 8814 fi
+ − 8815
+ − 8816 }
+ − 8817 test -z "$with_xface" && with_xface=yes
+ − 8818 if test "$with_xface" = "yes"; then
+ − 8819 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 8820 Defining HAVE_XFACE
+ − 8821 EOF
+ − 8822 cat >> confdefs.h <<\EOF
+ − 8823 #define HAVE_XFACE 1
+ − 8824 EOF
+ − 8825 }
+ − 8826
+ − 8827 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
+ − 8828 fi
+ − 8829 fi
+ − 8830
+ − 8831
+ − 8832
278
+ − 8833 if test "$with_x11" = "yes"; then
+ − 8834
+ − 8835 echo "checking for X11 graphics libraries" 1>&6
582
+ − 8836 echo "configure:8837: checking for X11 graphics libraries" >&5
434
+ − 8837
+ − 8838 echo "checking for the Athena widgets" 1>&6
582
+ − 8839 echo "configure:8840: checking for the Athena widgets" >&5
434
+ − 8840
+ − 8841 case "$with_athena" in
+ − 8842 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
+ − 8843 "3d") athena_variant=Xaw3d athena_3d=yes ;;
+ − 8844 "next") athena_variant=neXtaw athena_3d=yes ;;
+ − 8845 "95") athena_variant=Xaw95 athena_3d=yes ;;
+ − 8846 "xpm") athena_variant=XawXpm athena_3d=yes ;;
+ − 8847 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
+ − 8848 esac
+ − 8849
+ − 8850 if test "$athena_3d" = "no"; then
193
+ − 8851
434
+ − 8852 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
582
+ − 8853 echo "configure:8854: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
434
+ − 8854 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
+ − 8855
+ − 8856 xe_check_libs=" -l$athena_variant "
+ − 8857 cat > conftest.$ac_ext <<EOF
582
+ − 8858 #line 8859 "configure"
193
+ − 8859 #include "confdefs.h"
+ − 8860 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8861 /* We use char because int might match the return type of a gcc2
+ − 8862 builtin and then its argument prototype would still apply. */
+ − 8863 char XawScrollbarSetThumb();
+ − 8864
+ − 8865 int main() {
+ − 8866 XawScrollbarSetThumb()
+ − 8867 ; return 0; }
+ − 8868 EOF
582
+ − 8869 if { (eval echo configure:8870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
434
+ − 8870 rm -rf conftest*
+ − 8871 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8872 else
+ − 8873 echo "configure: failed program was:" >&5
+ − 8874 cat conftest.$ac_ext >&5
+ − 8875 rm -rf conftest*
+ − 8876 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8877 fi
+ − 8878 rm -f conftest*
+ − 8879 xe_check_libs=""
+ − 8880
+ − 8881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8882 echo "$ac_t""yes" 1>&6
+ − 8883
+ − 8884 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
582
+ − 8885 echo "configure:8886: checking for threeDClassRec in -l$athena_variant" >&5
434
+ − 8886 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
+ − 8887
+ − 8888 xe_check_libs=" -l$athena_variant "
+ − 8889 cat > conftest.$ac_ext <<EOF
582
+ − 8890 #line 8891 "configure"
434
+ − 8891 #include "confdefs.h"
+ − 8892 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8893 /* We use char because int might match the return type of a gcc2
+ − 8894 builtin and then its argument prototype would still apply. */
+ − 8895 char threeDClassRec();
+ − 8896
+ − 8897 int main() {
+ − 8898 threeDClassRec()
+ − 8899 ; return 0; }
+ − 8900 EOF
582
+ − 8901 if { (eval echo configure:8902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
561
+ − 8902 rm -rf conftest*
+ − 8903 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8904 else
+ − 8905 echo "configure: failed program was:" >&5
+ − 8906 cat conftest.$ac_ext >&5
+ − 8907 rm -rf conftest*
+ − 8908 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8909 fi
+ − 8910 rm -f conftest*
+ − 8911 xe_check_libs=""
+ − 8912
+ − 8913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8914 echo "$ac_t""yes" 1>&6
+ − 8915 echo "configure: warning: Could not find a non-3d Athena widget library." 1>&2
434
+ − 8916 else
+ − 8917 echo "$ac_t""no" 1>&6
+ − 8918 athena_lib=$athena_variant
+ − 8919 fi
+ − 8920
+ − 8921
+ − 8922
+ − 8923 else
+ − 8924 echo "$ac_t""no" 1>&6
561
+ − 8925 echo "configure: warning: Could not find an Athena widget library." 1>&2
434
+ − 8926 fi
+ − 8927
+ − 8928
+ − 8929 else
+ − 8930
+ − 8931 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
582
+ − 8932 echo "configure:8933: checking for threeDClassRec in -l$athena_variant" >&5
434
+ − 8933 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
+ − 8934
+ − 8935 xe_check_libs=" -l$athena_variant "
+ − 8936 cat > conftest.$ac_ext <<EOF
582
+ − 8937 #line 8938 "configure"
434
+ − 8938 #include "confdefs.h"
+ − 8939 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8940 /* We use char because int might match the return type of a gcc2
+ − 8941 builtin and then its argument prototype would still apply. */
+ − 8942 char threeDClassRec();
+ − 8943
+ − 8944 int main() {
+ − 8945 threeDClassRec()
+ − 8946 ; return 0; }
+ − 8947 EOF
582
+ − 8948 if { (eval echo configure:8949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
434
+ − 8949 rm -rf conftest*
+ − 8950 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8951 else
+ − 8952 echo "configure: failed program was:" >&5
+ − 8953 cat conftest.$ac_ext >&5
+ − 8954 rm -rf conftest*
+ − 8955 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8956 fi
+ − 8957 rm -f conftest*
+ − 8958 xe_check_libs=""
+ − 8959
+ − 8960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8961 echo "$ac_t""yes" 1>&6
+ − 8962 athena_lib=$athena_variant
+ − 8963 else
+ − 8964 echo "$ac_t""no" 1>&6
+ − 8965 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
582
+ − 8966 echo "configure:8967: checking for threeDClassRec in -lXaw" >&5
434
+ − 8967 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
+ − 8968
+ − 8969 xe_check_libs=" -lXaw "
+ − 8970 cat > conftest.$ac_ext <<EOF
582
+ − 8971 #line 8972 "configure"
434
+ − 8972 #include "confdefs.h"
+ − 8973 /* Override any gcc2 internal prototype to avoid an error. */
+ − 8974 /* We use char because int might match the return type of a gcc2
+ − 8975 builtin and then its argument prototype would still apply. */
+ − 8976 char threeDClassRec();
+ − 8977
+ − 8978 int main() {
+ − 8979 threeDClassRec()
+ − 8980 ; return 0; }
+ − 8981 EOF
582
+ − 8982 if { (eval echo configure:8983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
193
+ − 8983 rm -rf conftest*
+ − 8984 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 8985 else
+ − 8986 echo "configure: failed program was:" >&5
+ − 8987 cat conftest.$ac_ext >&5
+ − 8988 rm -rf conftest*
+ − 8989 eval "ac_cv_lib_$ac_lib_var=no"
+ − 8990 fi
+ − 8991 rm -f conftest*
+ − 8992 xe_check_libs=""
+ − 8993
+ − 8994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 8995 echo "$ac_t""yes" 1>&6
438
+ − 8996 athena_lib=Xaw;
561
+ − 8997 echo "configure: warning: Assuming that libXaw is actually $athena_variant." 1>&2;
434
+ − 8998
+ − 8999 else
+ − 9000 echo "$ac_t""no" 1>&6
561
+ − 9001 echo "configure: warning: Could not find a 3d Athena widget library that looked like $athena_variant." 1>&2
434
+ − 9002 fi
+ − 9003
+ − 9004
+ − 9005 fi
+ − 9006
+ − 9007
+ − 9008 fi
+ − 9009
+ − 9010 if test "$athena_3d" = "no"; then
+ − 9011 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 9012 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
582
+ − 9013 echo "configure:9014: checking for X11/Xaw/ThreeD.h" >&5
+ − 9014
+ − 9015 cat > conftest.$ac_ext <<EOF
+ − 9016 #line 9017 "configure"
434
+ − 9017 #include "confdefs.h"
+ − 9018 #include <X11/Xaw/ThreeD.h>
+ − 9019 EOF
+ − 9020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 9021 { (eval echo configure:9022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
561
+ − 9022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9023 if test -z "$ac_err"; then
+ − 9024 rm -rf conftest*
+ − 9025 eval "ac_cv_header_$ac_safe=yes"
+ − 9026 else
+ − 9027 echo "$ac_err" >&5
+ − 9028 echo "configure: failed program was:" >&5
+ − 9029 cat conftest.$ac_ext >&5
+ − 9030 rm -rf conftest*
+ − 9031 eval "ac_cv_header_$ac_safe=no"
+ − 9032 fi
+ − 9033 rm -f conftest*
+ − 9034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9035 echo "$ac_t""yes" 1>&6
+ − 9036 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
434
+ − 9037 else
+ − 9038 echo "$ac_t""no" 1>&6
+ − 9039 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
+ − 9040 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
582
+ − 9041 echo "configure:9042: checking for X11/Xaw/XawInit.h" >&5
+ − 9042
+ − 9043 cat > conftest.$ac_ext <<EOF
+ − 9044 #line 9045 "configure"
434
+ − 9045 #include "confdefs.h"
+ − 9046 #include <X11/Xaw/XawInit.h>
+ − 9047 EOF
+ − 9048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 9049 { (eval echo configure:9050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 9050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9051 if test -z "$ac_err"; then
+ − 9052 rm -rf conftest*
+ − 9053 eval "ac_cv_header_$ac_safe=yes"
+ − 9054 else
+ − 9055 echo "$ac_err" >&5
+ − 9056 echo "configure: failed program was:" >&5
+ − 9057 cat conftest.$ac_ext >&5
+ − 9058 rm -rf conftest*
+ − 9059 eval "ac_cv_header_$ac_safe=no"
+ − 9060 fi
+ − 9061 rm -f conftest*
+ − 9062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9063 echo "$ac_t""yes" 1>&6
+ − 9064 athena_h_path=X11/Xaw
+ − 9065 else
+ − 9066 echo "$ac_t""no" 1>&6
561
+ − 9067 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
434
+ − 9068 fi
+ − 9069
+ − 9070 fi
+ − 9071
+ − 9072 else
+ − 9073 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
+ − 9074 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
582
+ − 9075 echo "configure:9076: checking for X11/$athena_variant/XawInit.h" >&5
+ − 9076
+ − 9077 cat > conftest.$ac_ext <<EOF
+ − 9078 #line 9079 "configure"
434
+ − 9079 #include "confdefs.h"
+ − 9080 #include <X11/$athena_variant/XawInit.h>
+ − 9081 EOF
+ − 9082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 9083 { (eval echo configure:9084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 9084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9085 if test -z "$ac_err"; then
+ − 9086 rm -rf conftest*
+ − 9087 eval "ac_cv_header_$ac_safe=yes"
+ − 9088 else
+ − 9089 echo "$ac_err" >&5
+ − 9090 echo "configure: failed program was:" >&5
+ − 9091 cat conftest.$ac_ext >&5
+ − 9092 rm -rf conftest*
+ − 9093 eval "ac_cv_header_$ac_safe=no"
+ − 9094 fi
+ − 9095 rm -f conftest*
+ − 9096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9097 echo "$ac_t""yes" 1>&6
+ − 9098 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 9099 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
582
+ − 9100 echo "configure:9101: checking for X11/$athena_variant/ThreeD.h" >&5
+ − 9101
+ − 9102 cat > conftest.$ac_ext <<EOF
+ − 9103 #line 9104 "configure"
434
+ − 9104 #include "confdefs.h"
+ − 9105 #include <X11/$athena_variant/ThreeD.h>
+ − 9106 EOF
+ − 9107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 9108 { (eval echo configure:9109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 9109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9110 if test -z "$ac_err"; then
+ − 9111 rm -rf conftest*
+ − 9112 eval "ac_cv_header_$ac_safe=yes"
+ − 9113 else
+ − 9114 echo "$ac_err" >&5
+ − 9115 echo "configure: failed program was:" >&5
+ − 9116 cat conftest.$ac_ext >&5
+ − 9117 rm -rf conftest*
+ − 9118 eval "ac_cv_header_$ac_safe=no"
+ − 9119 fi
+ − 9120 rm -f conftest*
+ − 9121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9122 echo "$ac_t""yes" 1>&6
+ − 9123 athena_h_path=X11/$athena_variant
+ − 9124 else
+ − 9125 echo "$ac_t""no" 1>&6
+ − 9126 fi
+ − 9127
+ − 9128 else
+ − 9129 echo "$ac_t""no" 1>&6
+ − 9130 fi
+ − 9131
+ − 9132
440
+ − 9133 if test -z "$athena_h_path"; then
+ − 9134 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
+ − 9135 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
582
+ − 9136 echo "configure:9137: checking for $athena_variant/XawInit.h" >&5
+ − 9137
+ − 9138 cat > conftest.$ac_ext <<EOF
+ − 9139 #line 9140 "configure"
440
+ − 9140 #include "confdefs.h"
+ − 9141 #include <$athena_variant/XawInit.h>
+ − 9142 EOF
+ − 9143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 9144 { (eval echo configure:9145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
+ − 9145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9146 if test -z "$ac_err"; then
+ − 9147 rm -rf conftest*
+ − 9148 eval "ac_cv_header_$ac_safe=yes"
+ − 9149 else
+ − 9150 echo "$ac_err" >&5
+ − 9151 echo "configure: failed program was:" >&5
+ − 9152 cat conftest.$ac_ext >&5
+ − 9153 rm -rf conftest*
+ − 9154 eval "ac_cv_header_$ac_safe=no"
+ − 9155 fi
+ − 9156 rm -f conftest*
+ − 9157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9158 echo "$ac_t""yes" 1>&6
+ − 9159 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 9160 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
582
+ − 9161 echo "configure:9162: checking for $athena_variant/ThreeD.h" >&5
+ − 9162
+ − 9163 cat > conftest.$ac_ext <<EOF
+ − 9164 #line 9165 "configure"
440
+ − 9165 #include "confdefs.h"
+ − 9166 #include <$athena_variant/ThreeD.h>
+ − 9167 EOF
+ − 9168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 9169 { (eval echo configure:9170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
+ − 9170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9171 if test -z "$ac_err"; then
+ − 9172 rm -rf conftest*
+ − 9173 eval "ac_cv_header_$ac_safe=yes"
+ − 9174 else
+ − 9175 echo "$ac_err" >&5
+ − 9176 echo "configure: failed program was:" >&5
+ − 9177 cat conftest.$ac_ext >&5
+ − 9178 rm -rf conftest*
+ − 9179 eval "ac_cv_header_$ac_safe=no"
+ − 9180 fi
+ − 9181 rm -f conftest*
+ − 9182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9183 echo "$ac_t""yes" 1>&6
+ − 9184 athena_h_path=$athena_variant
+ − 9185 else
+ − 9186 echo "$ac_t""no" 1>&6
+ − 9187 fi
+ − 9188
+ − 9189 else
+ − 9190 echo "$ac_t""no" 1>&6
+ − 9191 fi
+ − 9192
+ − 9193 fi
+ − 9194
434
+ − 9195 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
+ − 9196 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
+ − 9197 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
582
+ − 9198 echo "configure:9199: checking for X11/Xaw3d/XawInit.h" >&5
+ − 9199
+ − 9200 cat > conftest.$ac_ext <<EOF
+ − 9201 #line 9202 "configure"
434
+ − 9202 #include "confdefs.h"
+ − 9203 #include <X11/Xaw3d/XawInit.h>
+ − 9204 EOF
+ − 9205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 9206 { (eval echo configure:9207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 9207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9208 if test -z "$ac_err"; then
+ − 9209 rm -rf conftest*
+ − 9210 eval "ac_cv_header_$ac_safe=yes"
+ − 9211 else
+ − 9212 echo "$ac_err" >&5
+ − 9213 echo "configure: failed program was:" >&5
+ − 9214 cat conftest.$ac_ext >&5
+ − 9215 rm -rf conftest*
+ − 9216 eval "ac_cv_header_$ac_safe=no"
+ − 9217 fi
+ − 9218 rm -f conftest*
+ − 9219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9220 echo "$ac_t""yes" 1>&6
+ − 9221 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 9222 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
582
+ − 9223 echo "configure:9224: checking for X11/Xaw3d/ThreeD.h" >&5
+ − 9224
+ − 9225 cat > conftest.$ac_ext <<EOF
+ − 9226 #line 9227 "configure"
434
+ − 9227 #include "confdefs.h"
+ − 9228 #include <X11/Xaw3d/ThreeD.h>
+ − 9229 EOF
+ − 9230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 9231 { (eval echo configure:9232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 9232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9233 if test -z "$ac_err"; then
+ − 9234 rm -rf conftest*
+ − 9235 eval "ac_cv_header_$ac_safe=yes"
+ − 9236 else
+ − 9237 echo "$ac_err" >&5
+ − 9238 echo "configure: failed program was:" >&5
+ − 9239 cat conftest.$ac_ext >&5
+ − 9240 rm -rf conftest*
+ − 9241 eval "ac_cv_header_$ac_safe=no"
+ − 9242 fi
+ − 9243 rm -f conftest*
+ − 9244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9245 echo "$ac_t""yes" 1>&6
+ − 9246
561
+ − 9247 echo "configure: warning: Assuming that X11/Xaw3d headers are suitable for $athena_variant." 1>&2
434
+ − 9248 athena_h_path=X11/Xaw3d
+ − 9249
+ − 9250 else
+ − 9251 echo "$ac_t""no" 1>&6
+ − 9252 fi
+ − 9253
+ − 9254 else
+ − 9255 echo "$ac_t""no" 1>&6
+ − 9256 fi
+ − 9257
+ − 9258 fi
+ − 9259
440
+ − 9260 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
+ − 9261 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
+ − 9262 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
582
+ − 9263 echo "configure:9264: checking for Xaw3d/XawInit.h" >&5
+ − 9264
+ − 9265 cat > conftest.$ac_ext <<EOF
+ − 9266 #line 9267 "configure"
440
+ − 9267 #include "confdefs.h"
+ − 9268 #include <Xaw3d/XawInit.h>
+ − 9269 EOF
+ − 9270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 9271 { (eval echo configure:9272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
+ − 9272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9273 if test -z "$ac_err"; then
+ − 9274 rm -rf conftest*
+ − 9275 eval "ac_cv_header_$ac_safe=yes"
+ − 9276 else
+ − 9277 echo "$ac_err" >&5
+ − 9278 echo "configure: failed program was:" >&5
+ − 9279 cat conftest.$ac_ext >&5
+ − 9280 rm -rf conftest*
+ − 9281 eval "ac_cv_header_$ac_safe=no"
+ − 9282 fi
+ − 9283 rm -f conftest*
+ − 9284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9285 echo "$ac_t""yes" 1>&6
+ − 9286 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 9287 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
582
+ − 9288 echo "configure:9289: checking for Xaw3d/ThreeD.h" >&5
+ − 9289
+ − 9290 cat > conftest.$ac_ext <<EOF
+ − 9291 #line 9292 "configure"
440
+ − 9292 #include "confdefs.h"
+ − 9293 #include <Xaw3d/ThreeD.h>
+ − 9294 EOF
+ − 9295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 9296 { (eval echo configure:9297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
+ − 9297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9298 if test -z "$ac_err"; then
+ − 9299 rm -rf conftest*
+ − 9300 eval "ac_cv_header_$ac_safe=yes"
+ − 9301 else
+ − 9302 echo "$ac_err" >&5
+ − 9303 echo "configure: failed program was:" >&5
+ − 9304 cat conftest.$ac_ext >&5
+ − 9305 rm -rf conftest*
+ − 9306 eval "ac_cv_header_$ac_safe=no"
+ − 9307 fi
+ − 9308 rm -f conftest*
+ − 9309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9310 echo "$ac_t""yes" 1>&6
+ − 9311
561
+ − 9312 echo "configure: warning: Assuming that Xaw3d headers are suitable for $athena_variant." 1>&2
440
+ − 9313 athena_h_path=Xaw3d
+ − 9314
+ − 9315 else
+ − 9316 echo "$ac_t""no" 1>&6
+ − 9317 fi
+ − 9318
+ − 9319 else
+ − 9320 echo "$ac_t""no" 1>&6
+ − 9321 fi
+ − 9322
+ − 9323 fi
+ − 9324
434
+ − 9325 if test -z "$athena_h_path"; then
+ − 9326 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
+ − 9327 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
582
+ − 9328 echo "configure:9329: checking for X11/Xaw/ThreeD.h" >&5
+ − 9329
+ − 9330 cat > conftest.$ac_ext <<EOF
+ − 9331 #line 9332 "configure"
434
+ − 9332 #include "confdefs.h"
+ − 9333 #include <X11/Xaw/ThreeD.h>
+ − 9334 EOF
+ − 9335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 9336 { (eval echo configure:9337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
+ − 9337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 9338 if test -z "$ac_err"; then
+ − 9339 rm -rf conftest*
+ − 9340 eval "ac_cv_header_$ac_safe=yes"
+ − 9341 else
+ − 9342 echo "$ac_err" >&5
+ − 9343 echo "configure: failed program was:" >&5
+ − 9344 cat conftest.$ac_ext >&5
+ − 9345 rm -rf conftest*
+ − 9346 eval "ac_cv_header_$ac_safe=no"
+ − 9347 fi
+ − 9348 rm -f conftest*
+ − 9349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9350 echo "$ac_t""yes" 1>&6
+ − 9351
561
+ − 9352 echo "configure: warning: Assuming that X11/Xaw headers are suitable for $athena_variant." 1>&2
434
+ − 9353 athena_h_path=X11/Xaw
+ − 9354
+ − 9355 else
+ − 9356 echo "$ac_t""no" 1>&6
561
+ − 9357 echo "configure: warning: Could not find a suitable 3d Athena header set." 1>&2
434
+ − 9358 fi
+ − 9359
+ − 9360 fi
+ − 9361 fi
+ − 9362
+ − 9363 if test -n "$athena_lib" -a -n "$athena_h_path"; then
+ − 9364 have_xaw=yes
+ − 9365 else
+ − 9366 have_xaw=no
+ − 9367 fi
424
+ − 9368
193
+ − 9369 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
151
+ − 9370 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
582
+ − 9371 echo "configure:9372: checking for Xm/Xm.h" >&5
+ − 9372
+ − 9373 cat > conftest.$ac_ext <<EOF
+ − 9374 #line 9375 "configure"
151
+ − 9375 #include "confdefs.h"
+ − 9376 #include <Xm/Xm.h>
+ − 9377 EOF
+ − 9378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
+ − 9379 { (eval echo configure:9380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 9380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
151
+ − 9381 if test -z "$ac_err"; then
+ − 9382 rm -rf conftest*
+ − 9383 eval "ac_cv_header_$ac_safe=yes"
+ − 9384 else
+ − 9385 echo "$ac_err" >&5
+ − 9386 echo "configure: failed program was:" >&5
+ − 9387 cat conftest.$ac_ext >&5
+ − 9388 rm -rf conftest*
+ − 9389 eval "ac_cv_header_$ac_safe=no"
+ − 9390 fi
+ − 9391 rm -f conftest*
+ − 9392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9393 echo "$ac_t""yes" 1>&6
+ − 9394
+ − 9395 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
582
+ − 9396 echo "configure:9397: checking for XmStringFree in -lXm" >&5
151
+ − 9397 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
+ − 9398
+ − 9399 xe_check_libs=" -lXm "
+ − 9400 cat > conftest.$ac_ext <<EOF
582
+ − 9401 #line 9402 "configure"
151
+ − 9402 #include "confdefs.h"
+ − 9403 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9404 /* We use char because int might match the return type of a gcc2
+ − 9405 builtin and then its argument prototype would still apply. */
+ − 9406 char XmStringFree();
+ − 9407
+ − 9408 int main() {
+ − 9409 XmStringFree()
+ − 9410 ; return 0; }
+ − 9411 EOF
582
+ − 9412 if { (eval echo configure:9413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
+ − 9413 rm -rf conftest*
+ − 9414 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9415 else
+ − 9416 echo "configure: failed program was:" >&5
+ − 9417 cat conftest.$ac_ext >&5
+ − 9418 rm -rf conftest*
+ − 9419 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9420 fi
+ − 9421 rm -f conftest*
+ − 9422 xe_check_libs=""
+ − 9423
+ − 9424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 9425 echo "$ac_t""yes" 1>&6
+ − 9426 have_motif=yes
+ − 9427 else
+ − 9428 echo "$ac_t""no" 1>&6
+ − 9429 have_motif=no
+ − 9430 fi
+ − 9431
+ − 9432
+ − 9433 else
+ − 9434 echo "$ac_t""no" 1>&6
+ − 9435 have_motif=no
+ − 9436 fi
+ − 9437
149
+ − 9438
272
+ − 9439 if test "$have_motif" = "yes"; then
+ − 9440 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
582
+ − 9441 echo "configure:9442: checking for Lesstif" >&5
272
+ − 9442 cat > conftest.$ac_ext <<EOF
582
+ − 9443 #line 9444 "configure"
272
+ − 9444 #include "confdefs.h"
+ − 9445 #include <Xm/Xm.h>
+ − 9446 #ifdef LESSTIF_VERSION
+ − 9447 yes
+ − 9448 #endif
+ − 9449
+ − 9450 EOF
+ − 9451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 9452 egrep "yes" >/dev/null 2>&1; then
+ − 9453 rm -rf conftest*
+ − 9454 have_lesstif=yes
+ − 9455 else
+ − 9456 rm -rf conftest*
+ − 9457 have_lesstif=no
+ − 9458 fi
+ − 9459 rm -f conftest*
+ − 9460
+ − 9461 echo "$ac_t""$have_lesstif" 1>&6
+ − 9462 fi
+ − 9463
193
+ − 9464 fi
149
+ − 9465
434
+ − 9466 case "$with_menubars" in "" | "yes" | "athena" )
149
+ − 9467 with_menubars="lucid" ;;
+ − 9468 esac
243
+ − 9469 case "$with_dialogs" in "" | "yes" | "lucid" )
434
+ − 9470 if test "$have_motif" = "yes"; then with_dialogs="motif"
+ − 9471 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
149
+ − 9472 else with_dialogs=no
+ − 9473 fi ;;
+ − 9474 esac
+ − 9475 case "$with_scrollbars" in "" | "yes" )
+ − 9476 with_scrollbars="lucid" ;;
+ − 9477 esac
424
+ − 9478 case "$with_widgets" in "" | "yes" | "lucid")
420
+ − 9479 if test "$have_motif" = "yes"; then with_widgets="motif"
424
+ − 9480 elif test "$have_xaw" = "yes"; then with_widgets="athena"
420
+ − 9481 else with_widgets=no
+ − 9482 fi ;;
+ − 9483 esac
+ − 9484
+ − 9485 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
412
+ − 9486
424
+ − 9487 case "$all_widgets" in
434
+ − 9488 *athena* )
+ − 9489 if test "$have_xaw" != "yes"; then
+ − 9490 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
+ − 9491 fi
+ − 9492
+ − 9493 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
+ − 9494
+ − 9495 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
+ − 9496
442
+ − 9497 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9498 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
+ − 9499 EOF
+ − 9500 cat >> confdefs.h <<EOF
+ − 9501 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
+ − 9502 EOF
+ − 9503 }
+ − 9504
+ − 9505 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9506 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
+ − 9507 EOF
+ − 9508 cat >> confdefs.h <<EOF
+ − 9509 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
+ − 9510 EOF
+ − 9511 }
+ − 9512
+ − 9513 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9514 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
+ − 9515 EOF
+ − 9516 cat >> confdefs.h <<EOF
+ − 9517 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
+ − 9518 EOF
+ − 9519 }
+ − 9520
+ − 9521 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9522 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
+ − 9523 EOF
+ − 9524 cat >> confdefs.h <<EOF
+ − 9525 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
+ − 9526 EOF
+ − 9527 }
+ − 9528
+ − 9529 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9530 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
+ − 9531 EOF
+ − 9532 cat >> confdefs.h <<EOF
+ − 9533 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
+ − 9534 EOF
+ − 9535 }
+ − 9536
+ − 9537 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9538 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
+ − 9539 EOF
+ − 9540 cat >> confdefs.h <<EOF
+ − 9541 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
+ − 9542 EOF
+ − 9543 }
+ − 9544
+ − 9545 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9546 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
+ − 9547 EOF
+ − 9548 cat >> confdefs.h <<EOF
+ − 9549 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
+ − 9550 EOF
+ − 9551 }
+ − 9552
+ − 9553 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9554 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
+ − 9555 EOF
+ − 9556 cat >> confdefs.h <<EOF
+ − 9557 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
+ − 9558 EOF
+ − 9559 }
+ − 9560
+ − 9561 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9562 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
+ − 9563 EOF
+ − 9564 cat >> confdefs.h <<EOF
+ − 9565 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
+ − 9566 EOF
+ − 9567 }
+ − 9568
+ − 9569 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9570 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
+ − 9571 EOF
+ − 9572 cat >> confdefs.h <<EOF
+ − 9573 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
434
+ − 9574 EOF
+ − 9575 }
+ − 9576
+ − 9577
+ − 9578 { test "$extra_verbose" = "yes" && cat << \EOF
424
+ − 9579 Defining LWLIB_USES_ATHENA
+ − 9580 EOF
+ − 9581 cat >> confdefs.h <<\EOF
+ − 9582 #define LWLIB_USES_ATHENA 1
+ − 9583 EOF
+ − 9584 }
+ − 9585
434
+ − 9586 { test "$extra_verbose" = "yes" && cat << \EOF
424
+ − 9587 Defining NEED_ATHENA
+ − 9588 EOF
+ − 9589 cat >> confdefs.h <<\EOF
+ − 9590 #define NEED_ATHENA 1
+ − 9591 EOF
+ − 9592 }
+ − 9593
442
+ − 9594 need_athena="yes"
434
+ − 9595
+ − 9596 if test "$athena_3d" = "yes"; then
+ − 9597 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9598 Defining HAVE_ATHENA_3D
+ − 9599 EOF
+ − 9600 cat >> confdefs.h <<\EOF
+ − 9601 #define HAVE_ATHENA_3D 1
+ − 9602 EOF
+ − 9603 }
+ − 9604
+ − 9605 fi
+ − 9606 ;;
149
+ − 9607 esac
+ − 9608
+ − 9609 case "$all_widgets" in *motif* )
+ − 9610 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9611 Defining LWLIB_USES_MOTIF
+ − 9612 EOF
+ − 9613 cat >> confdefs.h <<\EOF
+ − 9614 #define LWLIB_USES_MOTIF 1
+ − 9615 EOF
+ − 9616 }
+ − 9617
157
+ − 9618 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9619 Defining NEED_MOTIF
+ − 9620 EOF
+ − 9621 cat >> confdefs.h <<\EOF
+ − 9622 #define NEED_MOTIF 1
+ − 9623 EOF
+ − 9624 }
+ − 9625
+ − 9626 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
149
+ − 9627 need_motif=yes ;;
70
+ − 9628 esac
+ − 9629
157
+ − 9630 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
+ − 9631 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
+ − 9632 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
+ − 9633 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
+ − 9634 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
+ − 9635 case "$with_widgets" in athena* )
+ − 9636 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;;
+ − 9637 esac
157
+ − 9638 case "$all_widgets" in *lucid* )
+ − 9639 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9640 Defining NEED_LUCID
+ − 9641 EOF
+ − 9642 cat >> confdefs.h <<\EOF
+ − 9643 #define NEED_LUCID 1
+ − 9644 EOF
+ − 9645 }
+ − 9646
+ − 9647 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
+ − 9648 esac
+ − 9649
+ − 9650
+ − 9651
434
+ − 9652 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 9653 Defining LWLIB_SCROLLBARS_ATHENA
+ − 9654 EOF
+ − 9655 cat >> confdefs.h <<\EOF
+ − 9656 #define LWLIB_SCROLLBARS_ATHENA 1
+ − 9657 EOF
+ − 9658 }
434
+ − 9659
+ − 9660 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 9661 Defining LWLIB_DIALOGS_ATHENA
+ − 9662 EOF
+ − 9663 cat >> confdefs.h <<\EOF
+ − 9664 #define LWLIB_DIALOGS_ATHENA 1
+ − 9665 EOF
+ − 9666 }
434
+ − 9667
+ − 9668
+ − 9669 if test "$athena_3d" = "yes"; then
+ − 9670 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 9671 Defining LWLIB_SCROLLBARS_ATHENA3D
+ − 9672 EOF
+ − 9673 cat >> confdefs.h <<\EOF
+ − 9674 #define LWLIB_SCROLLBARS_ATHENA3D 1
+ − 9675 EOF
+ − 9676 }
+ − 9677
434
+ − 9678 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 9679 Defining LWLIB_DIALOGS_ATHENA3D
+ − 9680 EOF
+ − 9681 cat >> confdefs.h <<\EOF
+ − 9682 #define LWLIB_DIALOGS_ATHENA3D 1
+ − 9683 EOF
+ − 9684 }
+ − 9685
434
+ − 9686 fi
+ − 9687
424
+ − 9688 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9689 Defining LWLIB_WIDGETS_ATHENA
+ − 9690 EOF
+ − 9691 cat >> confdefs.h <<\EOF
+ − 9692 #define LWLIB_WIDGETS_ATHENA 1
+ − 9693 EOF
+ − 9694 }
+ − 9695 ;; esac
+ − 9696 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
+ − 9697 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9698 Defining LWLIB_TABS_LUCID
+ − 9699 EOF
+ − 9700 cat >> confdefs.h <<\EOF
+ − 9701 #define LWLIB_TABS_LUCID 1
+ − 9702 EOF
+ − 9703 }
+ − 9704
149
+ − 9705
+ − 9706 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9707 Defining HAVE_MENUBARS
+ − 9708 EOF
+ − 9709 cat >> confdefs.h <<\EOF
+ − 9710 #define HAVE_MENUBARS 1
+ − 9711 EOF
+ − 9712 }
+ − 9713
+ − 9714 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9715 Defining HAVE_SCROLLBARS
+ − 9716 EOF
+ − 9717 cat >> confdefs.h <<\EOF
+ − 9718 #define HAVE_SCROLLBARS 1
+ − 9719 EOF
+ − 9720 }
+ − 9721
+ − 9722 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9723 Defining HAVE_DIALOGS
+ − 9724 EOF
+ − 9725 cat >> confdefs.h <<\EOF
+ − 9726 #define HAVE_DIALOGS 1
+ − 9727 EOF
+ − 9728 }
+ − 9729
+ − 9730 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9731 Defining HAVE_TOOLBARS
+ − 9732 EOF
+ − 9733 cat >> confdefs.h <<\EOF
+ − 9734 #define HAVE_TOOLBARS 1
+ − 9735 EOF
+ − 9736 }
+ − 9737
440
+ − 9738 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
424
+ − 9739 Defining HAVE_WIDGETS
+ − 9740 EOF
+ − 9741 cat >> confdefs.h <<\EOF
+ − 9742 #define HAVE_WIDGETS 1
+ − 9743 EOF
+ − 9744 }
+ − 9745
149
+ − 9746
+ − 9747 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9748 Defining LWLIB_MENUBARS_LUCID
+ − 9749 EOF
+ − 9750 cat >> confdefs.h <<\EOF
+ − 9751 #define LWLIB_MENUBARS_LUCID 1
+ − 9752 EOF
+ − 9753 }
+ − 9754
+ − 9755 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9756 Defining LWLIB_SCROLLBARS_LUCID
+ − 9757 EOF
+ − 9758 cat >> confdefs.h <<\EOF
+ − 9759 #define LWLIB_SCROLLBARS_LUCID 1
+ − 9760 EOF
+ − 9761 }
+ − 9762
+ − 9763
+ − 9764 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9765 Defining LWLIB_MENUBARS_MOTIF
+ − 9766 EOF
+ − 9767 cat >> confdefs.h <<\EOF
+ − 9768 #define LWLIB_MENUBARS_MOTIF 1
+ − 9769 EOF
+ − 9770 }
+ − 9771
+ − 9772 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9773 Defining LWLIB_SCROLLBARS_MOTIF
+ − 9774 EOF
+ − 9775 cat >> confdefs.h <<\EOF
+ − 9776 #define LWLIB_SCROLLBARS_MOTIF 1
+ − 9777 EOF
+ − 9778 }
+ − 9779
+ − 9780 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9781 Defining LWLIB_DIALOGS_MOTIF
+ − 9782 EOF
+ − 9783 cat >> confdefs.h <<\EOF
+ − 9784 #define LWLIB_DIALOGS_MOTIF 1
+ − 9785 EOF
+ − 9786 }
+ − 9787
424
+ − 9788 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9789 Defining LWLIB_WIDGETS_MOTIF
+ − 9790 EOF
+ − 9791 cat >> confdefs.h <<\EOF
+ − 9792 #define LWLIB_WIDGETS_MOTIF 1
+ − 9793 EOF
+ − 9794 }
+ − 9795
412
+ − 9796
440
+ − 9797 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9798 echo " xemacs will be linked with \"menubar.o\""
+ − 9799 fi
440
+ − 9800 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9801 echo " xemacs will be linked with \"scrollbar.o\""
+ − 9802 fi
440
+ − 9803 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9804 echo " xemacs will be linked with \"dialog.o\""
+ − 9805 fi
440
+ − 9806 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9807 echo " xemacs will be linked with \"toolbar.o\""
+ − 9808 fi
149
+ − 9809
462
+ − 9810 if test "$with_gtk" = "yes"; then
+ − 9811 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 9812 echo " xemacs will be linked with \"menubar-gtk.o\""
+ − 9813 fi
+ − 9814 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 9815 echo " xemacs will be linked with \"scrollbar-gtk.o\""
+ − 9816 fi
+ − 9817 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 9818 echo " xemacs will be linked with \"dialog-gtk.o\""
+ − 9819 fi
+ − 9820 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 9821 echo " xemacs will be linked with \"toolbar-gtk.o\""
+ − 9822 fi
+ − 9823 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
+ − 9824 echo " xemacs will be linked with \"gui-gtk.o\""
+ − 9825 fi
+ − 9826 fi
+ − 9827
149
+ − 9828 if test "$with_x11" = "yes"; then
440
+ − 9829 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9830 echo " xemacs will be linked with \"menubar-x.o\""
+ − 9831 fi
440
+ − 9832 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9833 echo " xemacs will be linked with \"scrollbar-x.o\""
+ − 9834 fi
440
+ − 9835 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9836 echo " xemacs will be linked with \"dialog-x.o\""
+ − 9837 fi
440
+ − 9838 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9839 echo " xemacs will be linked with \"toolbar-x.o\""
+ − 9840 fi
420
+ − 9841 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
151
+ − 9842 echo " xemacs will be linked with \"gui-x.o\""
+ − 9843 fi
398
+ − 9844 fi
272
+ − 9845
+ − 9846
+ − 9847 test -z "$with_mule" && with_mule=no
561
+ − 9848
+ − 9849
+ − 9850 if test "$with_file_coding" = "no" && test "$with_mule" = "yes"; then
+ − 9851 echo "configure: warning: --with-file-coding forced to \`yes': Required for Mule support" 1>&2
+ − 9852 with_file_coding=yes
+ − 9853 fi
259
+ − 9854
+ − 9855 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
251
+ − 9856 { test "$extra_verbose" = "yes" && cat << \EOF
259
+ − 9857 Defining FILE_CODING
+ − 9858 EOF
+ − 9859 cat >> confdefs.h <<\EOF
+ − 9860 #define FILE_CODING 1
+ − 9861 EOF
+ − 9862 }
+ − 9863
+ − 9864 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
+ − 9865 echo " xemacs will be linked with \"file-coding.o\""
251
+ − 9866 fi
+ − 9867 fi
207
+ − 9868
594
+ − 9869 test -z "$with_file_coding" && with_file_coding=no
+ − 9870
149
+ − 9871 if test "$with_mule" = "yes" ; then
151
+ − 9872 echo "checking for Mule-related features" 1>&6
594
+ − 9873 echo "configure:9874: checking for Mule-related features" >&5
149
+ − 9874 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 9875 Defining MULE
+ − 9876 EOF
+ − 9877 cat >> confdefs.h <<\EOF
+ − 9878 #define MULE 1
+ − 9879 EOF
+ − 9880 }
+ − 9881
251
+ − 9882 { test "$extra_verbose" = "yes" && cat << \EOF
259
+ − 9883 Defining FILE_CODING
+ − 9884 EOF
+ − 9885 cat >> confdefs.h <<\EOF
+ − 9886 #define FILE_CODING 1
+ − 9887 EOF
+ − 9888 }
+ − 9889
398
+ − 9890 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
+ − 9891 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
151
+ − 9892 fi
149
+ − 9893
155
+ − 9894 for ac_hdr in libintl.h
+ − 9895 do
+ − 9896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 9897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
+ − 9898 echo "configure:9899: checking for $ac_hdr" >&5
+ − 9899
+ − 9900 cat > conftest.$ac_ext <<EOF
+ − 9901 #line 9902 "configure"
155
+ − 9902 #include "confdefs.h"
+ − 9903 #include <$ac_hdr>
+ − 9904 EOF
+ − 9905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 9906 { (eval echo configure:9907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 9907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
+ − 9908 if test -z "$ac_err"; then
+ − 9909 rm -rf conftest*
+ − 9910 eval "ac_cv_header_$ac_safe=yes"
+ − 9911 else
+ − 9912 echo "$ac_err" >&5
+ − 9913 echo "configure: failed program was:" >&5
+ − 9914 cat conftest.$ac_ext >&5
+ − 9915 rm -rf conftest*
+ − 9916 eval "ac_cv_header_$ac_safe=no"
+ − 9917 fi
+ − 9918 rm -f conftest*
+ − 9919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 9920 echo "$ac_t""yes" 1>&6
+ − 9921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 9922 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9923 Defining $ac_tr_hdr
+ − 9924 EOF
+ − 9925 cat >> confdefs.h <<EOF
+ − 9926 #define $ac_tr_hdr 1
+ − 9927 EOF
+ − 9928 }
+ − 9929
+ − 9930 else
+ − 9931 echo "$ac_t""no" 1>&6
+ − 9932 fi
+ − 9933 done
+ − 9934
+ − 9935
149
+ − 9936 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
594
+ − 9937 echo "configure:9938: checking for strerror in -lintl" >&5
149
+ − 9938 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
+ − 9939
+ − 9940 xe_check_libs=" -lintl "
+ − 9941 cat > conftest.$ac_ext <<EOF
594
+ − 9942 #line 9943 "configure"
149
+ − 9943 #include "confdefs.h"
+ − 9944 /* Override any gcc2 internal prototype to avoid an error. */
+ − 9945 /* We use char because int might match the return type of a gcc2
+ − 9946 builtin and then its argument prototype would still apply. */
+ − 9947 char strerror();
+ − 9948
+ − 9949 int main() {
+ − 9950 strerror()
+ − 9951 ; return 0; }
+ − 9952 EOF
594
+ − 9953 if { (eval echo configure:9954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 9954 rm -rf conftest*
+ − 9955 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 9956 else
+ − 9957 echo "configure: failed program was:" >&5
+ − 9958 cat conftest.$ac_ext >&5
+ − 9959 rm -rf conftest*
+ − 9960 eval "ac_cv_lib_$ac_lib_var=no"
+ − 9961 fi
+ − 9962 rm -f conftest*
+ − 9963 xe_check_libs=""
+ − 9964
151
+ − 9965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 9966 echo "$ac_t""yes" 1>&6
+ − 9967 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 9968 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 9969 { test "$extra_verbose" = "yes" && cat << EOF
+ − 9970 Defining $ac_tr_lib
+ − 9971 EOF
+ − 9972 cat >> confdefs.h <<EOF
+ − 9973 #define $ac_tr_lib 1
+ − 9974 EOF
+ − 9975 }
+ − 9976
151
+ − 9977 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
149
+ − 9978
+ − 9979 else
+ − 9980 echo "$ac_t""no" 1>&6
+ − 9981 fi
+ − 9982
+ − 9983
+ − 9984
+ − 9985 echo "checking for Mule input methods" 1>&6
594
+ − 9986 echo "configure:9987: checking for Mule input methods" >&5
272
+ − 9987 case "$with_xim" in "" | "yes" )
149
+ − 9988 echo "checking for XIM" 1>&6
594
+ − 9989 echo "configure:9990: checking for XIM" >&5
392
+ − 9990
+ − 9991 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
594
+ − 9992 echo "configure:9993: checking for XOpenIM in -lX11" >&5
392
+ − 9993 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
+ − 9994
+ − 9995 xe_check_libs=" -lX11 "
+ − 9996 cat > conftest.$ac_ext <<EOF
594
+ − 9997 #line 9998 "configure"
392
+ − 9998 #include "confdefs.h"
+ − 9999 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10000 /* We use char because int might match the return type of a gcc2
+ − 10001 builtin and then its argument prototype would still apply. */
+ − 10002 char XOpenIM();
+ − 10003
+ − 10004 int main() {
+ − 10005 XOpenIM()
+ − 10006 ; return 0; }
+ − 10007 EOF
594
+ − 10008 if { (eval echo configure:10009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
392
+ − 10009 rm -rf conftest*
+ − 10010 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10011 else
+ − 10012 echo "configure: failed program was:" >&5
+ − 10013 cat conftest.$ac_ext >&5
+ − 10014 rm -rf conftest*
+ − 10015 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10016 fi
+ − 10017 rm -f conftest*
+ − 10018 xe_check_libs=""
+ − 10019
+ − 10020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 10021 echo "$ac_t""yes" 1>&6
+ − 10022 with_xim=xlib
+ − 10023 else
+ − 10024 echo "$ac_t""no" 1>&6
+ − 10025 with_xim=no
+ − 10026 fi
+ − 10027
+ − 10028
+ − 10029 if test "$have_motif $have_lesstif" = "yes no"; then
+ − 10030
149
+ − 10031 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
594
+ − 10032 echo "configure:10033: checking for XmImMbLookupString in -lXm" >&5
149
+ − 10033 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
+ − 10034
+ − 10035 xe_check_libs=" -lXm "
+ − 10036 cat > conftest.$ac_ext <<EOF
594
+ − 10037 #line 10038 "configure"
149
+ − 10038 #include "confdefs.h"
+ − 10039 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10040 /* We use char because int might match the return type of a gcc2
+ − 10041 builtin and then its argument prototype would still apply. */
+ − 10042 char XmImMbLookupString();
+ − 10043
+ − 10044 int main() {
+ − 10045 XmImMbLookupString()
+ − 10046 ; return 0; }
+ − 10047 EOF
594
+ − 10048 if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 10049 rm -rf conftest*
+ − 10050 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10051 else
+ − 10052 echo "configure: failed program was:" >&5
+ − 10053 cat conftest.$ac_ext >&5
+ − 10054 rm -rf conftest*
+ − 10055 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10056 fi
+ − 10057 rm -f conftest*
+ − 10058 xe_check_libs=""
+ − 10059
151
+ − 10060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 10061 echo "$ac_t""yes" 1>&6
+ − 10062 with_xim=motif
+ − 10063 else
+ − 10064 echo "$ac_t""no" 1>&6
392
+ − 10065 fi
+ − 10066
+ − 10067
+ − 10068 fi ;;
149
+ − 10069 esac
272
+ − 10070 if test "$with_xim" != "no"; then
149
+ − 10071 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10072 Defining HAVE_XIM
+ − 10073 EOF
+ − 10074 cat >> confdefs.h <<\EOF
+ − 10075 #define HAVE_XIM 1
+ − 10076 EOF
+ − 10077 }
+ − 10078
+ − 10079 if test "$with_xim" = "xlib"; then
+ − 10080 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10081 Defining XIM_XLIB
+ − 10082 EOF
+ − 10083 cat >> confdefs.h <<\EOF
+ − 10084 #define XIM_XLIB 1
+ − 10085 EOF
+ − 10086 }
+ − 10087
151
+ − 10088 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
+ − 10089 echo " xemacs will be linked with \"input-method-xlib.o\""
+ − 10090 fi
+ − 10091 fi
149
+ − 10092 if test "$with_xim" = "motif"; then
+ − 10093 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10094 Defining XIM_MOTIF
+ − 10095 EOF
+ − 10096 cat >> confdefs.h <<\EOF
+ − 10097 #define XIM_MOTIF 1
+ − 10098 EOF
+ − 10099 }
+ − 10100
+ − 10101 need_motif=yes
151
+ − 10102 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
+ − 10103 echo " xemacs will be linked with \"input-method-motif.o\""
+ − 10104 fi
149
+ − 10105 fi
215
+ − 10106 if test "$with_xim" = "motif"; then
177
+ − 10107 with_xfs=no
+ − 10108 fi
215
+ − 10109 fi
+ − 10110
+ − 10111 if test "$with_xfs" = "yes" ; then
+ − 10112 echo "checking for XFontSet" 1>&6
594
+ − 10113 echo "configure:10114: checking for XFontSet" >&5
215
+ − 10114
177
+ − 10115 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
594
+ − 10116 echo "configure:10117: checking for XmbDrawString in -lX11" >&5
177
+ − 10117 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
+ − 10118
+ − 10119 xe_check_libs=" -lX11 "
+ − 10120 cat > conftest.$ac_ext <<EOF
594
+ − 10121 #line 10122 "configure"
177
+ − 10122 #include "confdefs.h"
+ − 10123 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10124 /* We use char because int might match the return type of a gcc2
+ − 10125 builtin and then its argument prototype would still apply. */
+ − 10126 char XmbDrawString();
+ − 10127
+ − 10128 int main() {
+ − 10129 XmbDrawString()
+ − 10130 ; return 0; }
+ − 10131 EOF
594
+ − 10132 if { (eval echo configure:10133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
177
+ − 10133 rm -rf conftest*
+ − 10134 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10135 else
+ − 10136 echo "configure: failed program was:" >&5
+ − 10137 cat conftest.$ac_ext >&5
+ − 10138 rm -rf conftest*
+ − 10139 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10140 fi
+ − 10141 rm -f conftest*
+ − 10142 xe_check_libs=""
+ − 10143
+ − 10144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 10145 echo "$ac_t""yes" 1>&6
+ − 10146 :
+ − 10147 else
+ − 10148 echo "$ac_t""no" 1>&6
+ − 10149 with_xfs=no
+ − 10150 fi
+ − 10151
+ − 10152
+ − 10153 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
+ − 10154 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10155 Defining USE_XFONTSET
+ − 10156 EOF
+ − 10157 cat >> confdefs.h <<\EOF
+ − 10158 #define USE_XFONTSET 1
+ − 10159 EOF
+ − 10160 }
+ − 10161
215
+ − 10162 if test "$with_xim" = "no" ; then
450
+ − 10163 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
+ − 10164 echo " xemacs will be linked with \"input-method-xlib.o\""
177
+ − 10165 fi
215
+ − 10166 fi
177
+ − 10167 fi
151
+ − 10168 fi
149
+ − 10169 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
151
+ − 10170 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
+ − 10171 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
594
+ − 10172 echo "configure:10173: checking for wnn/jllib.h" >&5
+ − 10173
+ − 10174 cat > conftest.$ac_ext <<EOF
+ − 10175 #line 10176 "configure"
151
+ − 10176 #include "confdefs.h"
+ − 10177 #include <wnn/jllib.h>
149
+ − 10178 EOF
+ − 10179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 10180 { (eval echo configure:10181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
458
+ − 10181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 10182 if test -z "$ac_err"; then
+ − 10183 rm -rf conftest*
+ − 10184 eval "ac_cv_header_$ac_safe=yes"
+ − 10185 else
+ − 10186 echo "$ac_err" >&5
+ − 10187 echo "configure: failed program was:" >&5
+ − 10188 cat conftest.$ac_ext >&5
+ − 10189 rm -rf conftest*
+ − 10190 eval "ac_cv_header_$ac_safe=no"
+ − 10191 fi
+ − 10192 rm -f conftest*
+ − 10193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10194 echo "$ac_t""yes" 1>&6
+ − 10195 :
+ − 10196 else
+ − 10197 echo "$ac_t""no" 1>&6
+ − 10198 with_wnn=no
+ − 10199 fi
+ − 10200 }
+ − 10201 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
+ − 10202 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
594
+ − 10203 echo "configure:10204: checking for wnn/commonhd.h" >&5
+ − 10204
+ − 10205 cat > conftest.$ac_ext <<EOF
+ − 10206 #line 10207 "configure"
458
+ − 10207 #include "confdefs.h"
+ − 10208 #include <wnn/commonhd.h>
+ − 10209 EOF
+ − 10210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 10211 { (eval echo configure:10212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 10212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 10213 if test -z "$ac_err"; then
+ − 10214 rm -rf conftest*
+ − 10215 eval "ac_cv_header_$ac_safe=yes"
+ − 10216 else
+ − 10217 echo "$ac_err" >&5
+ − 10218 echo "configure: failed program was:" >&5
+ − 10219 cat conftest.$ac_ext >&5
+ − 10220 rm -rf conftest*
+ − 10221 eval "ac_cv_header_$ac_safe=no"
+ − 10222 fi
+ − 10223 rm -f conftest*
+ − 10224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10225 echo "$ac_t""yes" 1>&6
+ − 10226 :
+ − 10227 else
+ − 10228 echo "$ac_t""no" 1>&6
+ − 10229 with_wnn=no
+ − 10230 fi
+ − 10231 }
167
+ − 10232 if test "$with_wnn" != "no"; then
+ − 10233 for ac_func in crypt
+ − 10234 do
+ − 10235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
594
+ − 10236 echo "configure:10237: checking for $ac_func" >&5
+ − 10237
+ − 10238 cat > conftest.$ac_ext <<EOF
+ − 10239 #line 10240 "configure"
167
+ − 10240 #include "confdefs.h"
+ − 10241 /* System header to define __stub macros and hopefully few prototypes,
+ − 10242 which can conflict with char $ac_func(); below. */
+ − 10243 #include <assert.h>
+ − 10244 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10245 /* We use char because int might match the return type of a gcc2
+ − 10246 builtin and then its argument prototype would still apply. */
+ − 10247 char $ac_func();
+ − 10248
+ − 10249 int main() {
+ − 10250
+ − 10251 /* The GNU C library defines this for functions which it implements
+ − 10252 to always fail with ENOSYS. Some functions are actually named
+ − 10253 something starting with __ and the normal name is an alias. */
+ − 10254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 10255 choke me
+ − 10256 #else
+ − 10257 $ac_func();
+ − 10258 #endif
+ − 10259
+ − 10260 ; return 0; }
+ − 10261 EOF
594
+ − 10262 if { (eval echo configure:10263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
167
+ − 10263 rm -rf conftest*
+ − 10264 eval "ac_cv_func_$ac_func=yes"
+ − 10265 else
+ − 10266 echo "configure: failed program was:" >&5
+ − 10267 cat conftest.$ac_ext >&5
+ − 10268 rm -rf conftest*
+ − 10269 eval "ac_cv_func_$ac_func=no"
+ − 10270 fi
+ − 10271 rm -f conftest*
+ − 10272
+ − 10273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 10274 echo "$ac_t""yes" 1>&6
+ − 10275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 10276 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10277 Defining $ac_tr_func
+ − 10278 EOF
+ − 10279 cat >> confdefs.h <<EOF
+ − 10280 #define $ac_tr_func 1
+ − 10281 EOF
+ − 10282 }
+ − 10283
+ − 10284 else
+ − 10285 echo "$ac_t""no" 1>&6
+ − 10286 fi
+ − 10287 done
+ − 10288
+ − 10289 test "$ac_cv_func_crypt" != "yes" && {
+ − 10290 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
594
+ − 10291 echo "configure:10292: checking for crypt in -lcrypt" >&5
167
+ − 10292 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
+ − 10293
+ − 10294 xe_check_libs=" -lcrypt "
+ − 10295 cat > conftest.$ac_ext <<EOF
594
+ − 10296 #line 10297 "configure"
167
+ − 10297 #include "confdefs.h"
+ − 10298 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10299 /* We use char because int might match the return type of a gcc2
+ − 10300 builtin and then its argument prototype would still apply. */
+ − 10301 char crypt();
+ − 10302
+ − 10303 int main() {
+ − 10304 crypt()
+ − 10305 ; return 0; }
+ − 10306 EOF
594
+ − 10307 if { (eval echo configure:10308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
167
+ − 10308 rm -rf conftest*
+ − 10309 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10310 else
+ − 10311 echo "configure: failed program was:" >&5
+ − 10312 cat conftest.$ac_ext >&5
+ − 10313 rm -rf conftest*
+ − 10314 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10315 fi
+ − 10316 rm -f conftest*
+ − 10317 xe_check_libs=""
+ − 10318
+ − 10319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 10320 echo "$ac_t""yes" 1>&6
+ − 10321 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 10322 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 10323 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10324 Defining $ac_tr_lib
+ − 10325 EOF
+ − 10326 cat >> confdefs.h <<EOF
+ − 10327 #define $ac_tr_lib 1
+ − 10328 EOF
+ − 10329 }
+ − 10330
+ − 10331 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
+ − 10332
+ − 10333 else
+ − 10334 echo "$ac_t""no" 1>&6
+ − 10335 fi
+ − 10336
+ − 10337 }
+ − 10338 fi
377
+ − 10339 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
+ − 10340
159
+ − 10341 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
594
+ − 10342 echo "configure:10343: checking for jl_dic_list_e in -lwnn" >&5
155
+ − 10343 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
149
+ − 10344
159
+ − 10345 xe_check_libs=" -lwnn "
+ − 10346 cat > conftest.$ac_ext <<EOF
594
+ − 10347 #line 10348 "configure"
149
+ − 10348 #include "confdefs.h"
+ − 10349 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10350 /* We use char because int might match the return type of a gcc2
+ − 10351 builtin and then its argument prototype would still apply. */
155
+ − 10352 char jl_dic_list_e();
149
+ − 10353
+ − 10354 int main() {
155
+ − 10355 jl_dic_list_e()
149
+ − 10356 ; return 0; }
+ − 10357 EOF
594
+ − 10358 if { (eval echo configure:10359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
+ − 10359 rm -rf conftest*
+ − 10360 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10361 else
+ − 10362 echo "configure: failed program was:" >&5
+ − 10363 cat conftest.$ac_ext >&5
+ − 10364 rm -rf conftest*
+ − 10365 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10366 fi
+ − 10367 rm -f conftest*
+ − 10368 xe_check_libs=""
+ − 10369
+ − 10370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 10371 echo "$ac_t""yes" 1>&6
+ − 10372 libwnn=wnn
+ − 10373 else
+ − 10374 echo "$ac_t""no" 1>&6
+ − 10375 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
594
+ − 10376 echo "configure:10377: checking for jl_dic_list_e in -lwnn4" >&5
377
+ − 10377 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
+ − 10378
+ − 10379 xe_check_libs=" -lwnn4 "
+ − 10380 cat > conftest.$ac_ext <<EOF
594
+ − 10381 #line 10382 "configure"
377
+ − 10382 #include "confdefs.h"
+ − 10383 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10384 /* We use char because int might match the return type of a gcc2
+ − 10385 builtin and then its argument prototype would still apply. */
+ − 10386 char jl_dic_list_e();
+ − 10387
+ − 10388 int main() {
+ − 10389 jl_dic_list_e()
+ − 10390 ; return 0; }
+ − 10391 EOF
594
+ − 10392 if { (eval echo configure:10393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 10393 rm -rf conftest*
+ − 10394 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10395 else
+ − 10396 echo "configure: failed program was:" >&5
+ − 10397 cat conftest.$ac_ext >&5
+ − 10398 rm -rf conftest*
+ − 10399 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10400 fi
+ − 10401 rm -f conftest*
+ − 10402 xe_check_libs=""
+ − 10403
151
+ − 10404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 10405 echo "$ac_t""yes" 1>&6
377
+ − 10406 libwnn=wnn4
+ − 10407 else
+ − 10408 echo "$ac_t""no" 1>&6
+ − 10409 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
594
+ − 10410 echo "configure:10411: checking for jl_dic_list_e in -lwnn6" >&5
377
+ − 10411 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
+ − 10412
+ − 10413 xe_check_libs=" -lwnn6 "
+ − 10414 cat > conftest.$ac_ext <<EOF
594
+ − 10415 #line 10416 "configure"
377
+ − 10416 #include "confdefs.h"
+ − 10417 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10418 /* We use char because int might match the return type of a gcc2
+ − 10419 builtin and then its argument prototype would still apply. */
+ − 10420 char jl_dic_list_e();
+ − 10421
+ − 10422 int main() {
+ − 10423 jl_dic_list_e()
+ − 10424 ; return 0; }
+ − 10425 EOF
594
+ − 10426 if { (eval echo configure:10427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
+ − 10427 rm -rf conftest*
+ − 10428 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10429 else
+ − 10430 echo "configure: failed program was:" >&5
+ − 10431 cat conftest.$ac_ext >&5
+ − 10432 rm -rf conftest*
+ − 10433 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10434 fi
+ − 10435 rm -f conftest*
+ − 10436 xe_check_libs=""
+ − 10437
+ − 10438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 10439 echo "$ac_t""yes" 1>&6
+ − 10440 libwnn=wnn6
+ − 10441 else
+ − 10442 echo "$ac_t""no" 1>&6
+ − 10443 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
594
+ − 10444 echo "configure:10445: checking for dic_list_e in -lwnn6_fromsrc" >&5
377
+ − 10445 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
+ − 10446
+ − 10447 xe_check_libs=" -lwnn6_fromsrc "
+ − 10448 cat > conftest.$ac_ext <<EOF
594
+ − 10449 #line 10450 "configure"
377
+ − 10450 #include "confdefs.h"
+ − 10451 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10452 /* We use char because int might match the return type of a gcc2
+ − 10453 builtin and then its argument prototype would still apply. */
+ − 10454 char dic_list_e();
+ − 10455
+ − 10456 int main() {
+ − 10457 dic_list_e()
+ − 10458 ; return 0; }
+ − 10459 EOF
594
+ − 10460 if { (eval echo configure:10461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
+ − 10461 rm -rf conftest*
+ − 10462 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10463 else
+ − 10464 echo "configure: failed program was:" >&5
+ − 10465 cat conftest.$ac_ext >&5
+ − 10466 rm -rf conftest*
+ − 10467 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10468 fi
+ − 10469 rm -f conftest*
+ − 10470 xe_check_libs=""
+ − 10471
+ − 10472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 10473 echo "$ac_t""yes" 1>&6
+ − 10474 libwnn=wnn6_fromsrc
159
+ − 10475 else
+ − 10476 echo "$ac_t""no" 1>&6
+ − 10477 with_wnn=no
149
+ − 10478 fi
+ − 10479
377
+ − 10480
+ − 10481 fi
+ − 10482
+ − 10483
+ − 10484 fi
+ − 10485
+ − 10486
+ − 10487 fi
+ − 10488
+ − 10489
+ − 10490 fi
149
+ − 10491 test -z "$with_wnn" && with_wnn=yes
+ − 10492 if test "$with_wnn" = "yes"; then
+ − 10493 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10494 Defining HAVE_WNN
+ − 10495 EOF
+ − 10496 cat >> confdefs.h <<\EOF
+ − 10497 #define HAVE_WNN 1
+ − 10498 EOF
+ − 10499 }
+ − 10500
377
+ − 10501 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
151
+ − 10502 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
+ − 10503 echo " xemacs will be linked with \"mule-wnnfns.o\""
+ − 10504 fi
284
+ − 10505 if test "$with_wnn6" != "no"; then
+ − 10506
377
+ − 10507 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
594
+ − 10508 echo "configure:10509: checking for jl_fi_dic_list in -l$libwnn" >&5
377
+ − 10509 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
+ − 10510
+ − 10511 xe_check_libs=" -l$libwnn "
+ − 10512 cat > conftest.$ac_ext <<EOF
594
+ − 10513 #line 10514 "configure"
149
+ − 10514 #include "confdefs.h"
+ − 10515 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10516 /* We use char because int might match the return type of a gcc2
+ − 10517 builtin and then its argument prototype would still apply. */
+ − 10518 char jl_fi_dic_list();
+ − 10519
+ − 10520 int main() {
+ − 10521 jl_fi_dic_list()
+ − 10522 ; return 0; }
+ − 10523 EOF
594
+ − 10524 if { (eval echo configure:10525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 10525 rm -rf conftest*
+ − 10526 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10527 else
+ − 10528 echo "configure: failed program was:" >&5
+ − 10529 cat conftest.$ac_ext >&5
+ − 10530 rm -rf conftest*
+ − 10531 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10532 fi
+ − 10533 rm -f conftest*
+ − 10534 xe_check_libs=""
+ − 10535
151
+ − 10536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 10537 echo "$ac_t""yes" 1>&6
+ − 10538 with_wnn6=yes
+ − 10539 else
+ − 10540 echo "$ac_t""no" 1>&6
+ − 10541 fi
+ − 10542
+ − 10543
284
+ − 10544 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
151
+ − 10545 Defining WNN6
+ − 10546 EOF
+ − 10547 cat >> confdefs.h <<\EOF
+ − 10548 #define WNN6 1
+ − 10549 EOF
+ − 10550 }
+ − 10551
284
+ − 10552 fi
151
+ − 10553 fi
149
+ − 10554
267
+ − 10555 canna_includes_found=no
+ − 10556 if test "$with_canna" != "no"; then
+ − 10557 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
+ − 10558 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
594
+ − 10559 echo "configure:10560: checking for canna/jrkanji.h" >&5
+ − 10560
+ − 10561 cat > conftest.$ac_ext <<EOF
+ − 10562 #line 10563 "configure"
267
+ − 10563 #include "confdefs.h"
+ − 10564 #include <canna/jrkanji.h>
+ − 10565 EOF
+ − 10566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 10567 { (eval echo configure:10568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 10568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
267
+ − 10569 if test -z "$ac_err"; then
+ − 10570 rm -rf conftest*
+ − 10571 eval "ac_cv_header_$ac_safe=yes"
+ − 10572 else
+ − 10573 echo "$ac_err" >&5
+ − 10574 echo "configure: failed program was:" >&5
+ − 10575 cat conftest.$ac_ext >&5
+ − 10576 rm -rf conftest*
+ − 10577 eval "ac_cv_header_$ac_safe=no"
+ − 10578 fi
+ − 10579 rm -f conftest*
+ − 10580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10581 echo "$ac_t""yes" 1>&6
+ − 10582 canna_includes_found=yes
+ − 10583 else
+ − 10584 echo "$ac_t""no" 1>&6
+ − 10585 fi
+ − 10586
+ − 10587 fi
+ − 10588 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
+ − 10589 -d "/usr/local/canna/include"; then
+ − 10590 save_c_switch_site="$c_switch_site"
+ − 10591 c_switch_site="$c_switch_site -I/usr/local/canna/include"
+ − 10592 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
+ − 10593 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
594
+ − 10594 echo "configure:10595: checking for canna/jrkanji.h" >&5
+ − 10595
+ − 10596 cat > conftest.$ac_ext <<EOF
+ − 10597 #line 10598 "configure"
267
+ − 10598 #include "confdefs.h"
+ − 10599 #include <canna/jrkanji.h>
+ − 10600 EOF
+ − 10601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 10602 { (eval echo configure:10603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 10603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
267
+ − 10604 if test -z "$ac_err"; then
+ − 10605 rm -rf conftest*
+ − 10606 eval "ac_cv_header_$ac_safe=yes"
+ − 10607 else
+ − 10608 echo "$ac_err" >&5
+ − 10609 echo "configure: failed program was:" >&5
+ − 10610 cat conftest.$ac_ext >&5
+ − 10611 rm -rf conftest*
+ − 10612 eval "ac_cv_header_$ac_safe=no"
+ − 10613 fi
+ − 10614 rm -f conftest*
+ − 10615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10616 echo "$ac_t""yes" 1>&6
+ − 10617 canna_includes_found=yes
+ − 10618 else
+ − 10619 echo "$ac_t""no" 1>&6
+ − 10620 fi
+ − 10621
+ − 10622 if test "$canna_includes_found" != "yes"; then
+ − 10623 c_switch_site="$save_c_switch_site"
+ − 10624 with_canna="no"
+ − 10625 fi
+ − 10626 fi
+ − 10627
+ − 10628 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
149
+ − 10629 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
594
+ − 10630 echo "configure:10631: checking for canna/RK.h" >&5
+ − 10631
+ − 10632 cat > conftest.$ac_ext <<EOF
+ − 10633 #line 10634 "configure"
149
+ − 10634 #include "confdefs.h"
+ − 10635 #include <canna/RK.h>
+ − 10636 EOF
+ − 10637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 10638 { (eval echo configure:10639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 10639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 10640 if test -z "$ac_err"; then
+ − 10641 rm -rf conftest*
+ − 10642 eval "ac_cv_header_$ac_safe=yes"
+ − 10643 else
+ − 10644 echo "$ac_err" >&5
+ − 10645 echo "configure: failed program was:" >&5
+ − 10646 cat conftest.$ac_ext >&5
+ − 10647 rm -rf conftest*
+ − 10648 eval "ac_cv_header_$ac_safe=no"
+ − 10649 fi
+ − 10650 rm -f conftest*
+ − 10651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 10652 echo "$ac_t""yes" 1>&6
+ − 10653 :
+ − 10654 else
+ − 10655 echo "$ac_t""no" 1>&6
+ − 10656 with_canna=no
+ − 10657 fi
+ − 10658 }
+ − 10659 test -z "$with_canna" && {
+ − 10660 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
594
+ − 10661 echo "configure:10662: checking for RkBgnBun in -lRKC" >&5
149
+ − 10662 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
+ − 10663
+ − 10664 xe_check_libs=" -lRKC "
+ − 10665 cat > conftest.$ac_ext <<EOF
594
+ − 10666 #line 10667 "configure"
149
+ − 10667 #include "confdefs.h"
+ − 10668 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10669 /* We use char because int might match the return type of a gcc2
+ − 10670 builtin and then its argument prototype would still apply. */
+ − 10671 char RkBgnBun();
+ − 10672
+ − 10673 int main() {
+ − 10674 RkBgnBun()
+ − 10675 ; return 0; }
+ − 10676 EOF
594
+ − 10677 if { (eval echo configure:10678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 10678 rm -rf conftest*
+ − 10679 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10680 else
+ − 10681 echo "configure: failed program was:" >&5
+ − 10682 cat conftest.$ac_ext >&5
+ − 10683 rm -rf conftest*
+ − 10684 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10685 fi
+ − 10686 rm -f conftest*
+ − 10687 xe_check_libs=""
+ − 10688
151
+ − 10689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 10690 echo "$ac_t""yes" 1>&6
+ − 10691 :
+ − 10692 else
+ − 10693 echo "$ac_t""no" 1>&6
+ − 10694 with_canna=no
+ − 10695 fi
+ − 10696
+ − 10697 }
+ − 10698 test -z "$with_canna" && {
+ − 10699 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
594
+ − 10700 echo "configure:10701: checking for jrKanjiControl in -lcanna" >&5
149
+ − 10701 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
+ − 10702
+ − 10703 xe_check_libs=" -lcanna "
+ − 10704 cat > conftest.$ac_ext <<EOF
594
+ − 10705 #line 10706 "configure"
149
+ − 10706 #include "confdefs.h"
+ − 10707 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10708 /* We use char because int might match the return type of a gcc2
+ − 10709 builtin and then its argument prototype would still apply. */
+ − 10710 char jrKanjiControl();
+ − 10711
+ − 10712 int main() {
+ − 10713 jrKanjiControl()
+ − 10714 ; return 0; }
+ − 10715 EOF
594
+ − 10716 if { (eval echo configure:10717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 10717 rm -rf conftest*
+ − 10718 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10719 else
+ − 10720 echo "configure: failed program was:" >&5
+ − 10721 cat conftest.$ac_ext >&5
+ − 10722 rm -rf conftest*
+ − 10723 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10724 fi
+ − 10725 rm -f conftest*
+ − 10726 xe_check_libs=""
+ − 10727
151
+ − 10728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 10729 echo "$ac_t""yes" 1>&6
+ − 10730 :
+ − 10731 else
+ − 10732 echo "$ac_t""no" 1>&6
+ − 10733 with_canna=no
+ − 10734 fi
+ − 10735
+ − 10736 }
+ − 10737 test -z "$with_canna" && with_canna=yes
+ − 10738 if test "$with_canna" = "yes"; then
+ − 10739 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 10740 Defining HAVE_CANNA
+ − 10741 EOF
+ − 10742 cat >> confdefs.h <<\EOF
+ − 10743 #define HAVE_CANNA 1
+ − 10744 EOF
+ − 10745 }
+ − 10746
151
+ − 10747 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
+ − 10748 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
+ − 10749 echo " xemacs will be linked with \"mule-canna.o\""
+ − 10750 fi
+ − 10751 fi
155
+ − 10752
151
+ − 10753 else for feature in xim canna wnn; do
149
+ − 10754 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
561
+ − 10755 echo "configure: warning: --with-${feature} ignored: Not valid without Mule support" 1>&2
149
+ − 10756 fi
+ − 10757 eval "with_${feature}=no"
+ − 10758 done
151
+ − 10759 fi
+ − 10760
+ − 10761 if test "$need_motif" = "yes" ; then
+ − 10762 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
207
+ − 10763
+ − 10764 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
594
+ − 10765 echo "configure:10766: checking for layout_object_getvalue in -li18n" >&5
207
+ − 10766 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
+ − 10767
+ − 10768 xe_check_libs=" -li18n "
+ − 10769 cat > conftest.$ac_ext <<EOF
594
+ − 10770 #line 10771 "configure"
207
+ − 10771 #include "confdefs.h"
+ − 10772 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10773 /* We use char because int might match the return type of a gcc2
+ − 10774 builtin and then its argument prototype would still apply. */
+ − 10775 char layout_object_getvalue();
+ − 10776
+ − 10777 int main() {
+ − 10778 layout_object_getvalue()
+ − 10779 ; return 0; }
+ − 10780 EOF
594
+ − 10781 if { (eval echo configure:10782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
207
+ − 10782 rm -rf conftest*
+ − 10783 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 10784 else
+ − 10785 echo "configure: failed program was:" >&5
+ − 10786 cat conftest.$ac_ext >&5
+ − 10787 rm -rf conftest*
+ − 10788 eval "ac_cv_lib_$ac_lib_var=no"
+ − 10789 fi
+ − 10790 rm -f conftest*
+ − 10791 xe_check_libs=""
+ − 10792
+ − 10793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 10794 echo "$ac_t""yes" 1>&6
+ − 10795 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
+ − 10796 else
+ − 10797 echo "$ac_t""no" 1>&6
+ − 10798 fi
+ − 10799
+ − 10800
151
+ − 10801
+ − 10802 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
+ − 10803 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
+ − 10804 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
+ − 10805
163
+ − 10806 runpath="" runpath_dirs=""
155
+ − 10807 if test -n "$LD_RUN_PATH"; then
151
+ − 10808 runpath="$LD_RUN_PATH"
155
+ − 10809 elif test "$GCC" = "yes"; then
163
+ − 10810 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
+ − 10811 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
+ − 10812 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
+ − 10813 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
+ − 10814 case "$arg" in P,* | -L* | -R* )
159
+ − 10815 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
+ − 10816 {
155
+ − 10817 xe_runpath_dir="$dir"
163
+ − 10818 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 10819 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 10820 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 10821 eval "$xe_add_unique_runpath_dir"
+ − 10822 }
155
+ − 10823 done ;;
+ − 10824 esac
+ − 10825 done
163
+ − 10826 ld_switch_run="$ld_switch_run_save"
155
+ − 10827 rm -f conftest*
151
+ − 10828 else
155
+ − 10829 for arg in $ld_switch_site $ld_switch_x_site; do
163
+ − 10830 case "$arg" in -L*) {
159
+ − 10831 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
+ − 10832 test "$xe_runpath_dir" != "/lib" -a \
155
+ − 10833 "$xe_runpath_dir" != "/usr/lib" -a \
371
+ − 10834 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
+ − 10835 eval "$xe_add_unique_runpath_dir"
+ − 10836 };; esac
151
+ − 10837 done
163
+ − 10838 if test "$opsys $need_motif" = "sol2 yes"; then
+ − 10839 xe_runpath_dir="/opt/SUNWdt/lib";
+ − 10840 eval "$xe_add_unique_runpath_dir";
+ − 10841 fi
155
+ − 10842 fi
151
+ − 10843 if test -n "$runpath"; then
+ − 10844 ld_switch_run="${dash_r}${runpath}"
272
+ − 10845
+ − 10846 if test "$GCC" = "yes"; then
+ − 10847 set x $ld_switch_run; shift; ld_switch_run=""
+ − 10848 while test -n "$1"; do
+ − 10849 case $1 in
380
+ − 10850 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
+ − 10851 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
+ − 10852 -Xlinker* ) ;;
+ − 10853 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
+ − 10854 esac
+ − 10855 shift
+ − 10856 done
+ − 10857 fi
151
+ − 10858 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
+ − 10859 fi
+ − 10860 fi
+ − 10861
+ − 10862 fi
+ − 10863
460
+ − 10864 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
+ − 10865 do
+ − 10866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
594
+ − 10867 echo "configure:10868: checking for $ac_func" >&5
+ − 10868
+ − 10869 cat > conftest.$ac_ext <<EOF
+ − 10870 #line 10871 "configure"
410
+ − 10871 #include "confdefs.h"
+ − 10872 /* System header to define __stub macros and hopefully few prototypes,
+ − 10873 which can conflict with char $ac_func(); below. */
+ − 10874 #include <assert.h>
+ − 10875 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10876 /* We use char because int might match the return type of a gcc2
+ − 10877 builtin and then its argument prototype would still apply. */
+ − 10878 char $ac_func();
+ − 10879
+ − 10880 int main() {
+ − 10881
+ − 10882 /* The GNU C library defines this for functions which it implements
+ − 10883 to always fail with ENOSYS. Some functions are actually named
+ − 10884 something starting with __ and the normal name is an alias. */
+ − 10885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 10886 choke me
+ − 10887 #else
+ − 10888 $ac_func();
+ − 10889 #endif
+ − 10890
+ − 10891 ; return 0; }
+ − 10892 EOF
594
+ − 10893 if { (eval echo configure:10894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 10894 rm -rf conftest*
+ − 10895 eval "ac_cv_func_$ac_func=yes"
+ − 10896 else
+ − 10897 echo "configure: failed program was:" >&5
+ − 10898 cat conftest.$ac_ext >&5
+ − 10899 rm -rf conftest*
+ − 10900 eval "ac_cv_func_$ac_func=no"
+ − 10901 fi
+ − 10902 rm -f conftest*
+ − 10903
+ − 10904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 10905 echo "$ac_t""yes" 1>&6
+ − 10906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 10907 { test "$extra_verbose" = "yes" && cat << EOF
+ − 10908 Defining $ac_tr_func
+ − 10909 EOF
+ − 10910 cat >> confdefs.h <<EOF
+ − 10911 #define $ac_tr_func 1
+ − 10912 EOF
+ − 10913 }
+ − 10914
+ − 10915 else
+ − 10916 echo "$ac_t""no" 1>&6
+ − 10917 fi
+ − 10918 done
+ − 10919
+ − 10920
458
+ − 10921
444
+ − 10922 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
442
+ − 10923 do
+ − 10924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
594
+ − 10925 echo "configure:10926: checking for $ac_func" >&5
+ − 10926
+ − 10927 cat > conftest.$ac_ext <<EOF
+ − 10928 #line 10929 "configure"
442
+ − 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
594
+ − 10951 if { (eval echo configure:10952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
410
+ − 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
442
+ − 10979 echo $ac_n "checking for openpty""... $ac_c" 1>&6
594
+ − 10980 echo "configure:10981: checking for openpty" >&5
+ − 10981
+ − 10982 cat > conftest.$ac_ext <<EOF
+ − 10983 #line 10984 "configure"
442
+ − 10984 #include "confdefs.h"
+ − 10985 /* System header to define __stub macros and hopefully few prototypes,
+ − 10986 which can conflict with char openpty(); below. */
+ − 10987 #include <assert.h>
+ − 10988 /* Override any gcc2 internal prototype to avoid an error. */
+ − 10989 /* We use char because int might match the return type of a gcc2
+ − 10990 builtin and then its argument prototype would still apply. */
+ − 10991 char openpty();
+ − 10992
+ − 10993 int main() {
+ − 10994
+ − 10995 /* The GNU C library defines this for functions which it implements
+ − 10996 to always fail with ENOSYS. Some functions are actually named
+ − 10997 something starting with __ and the normal name is an alias. */
+ − 10998 #if defined (__stub_openpty) || defined (__stub___openpty)
+ − 10999 choke me
+ − 11000 #else
+ − 11001 openpty();
+ − 11002 #endif
+ − 11003
+ − 11004 ; return 0; }
+ − 11005 EOF
594
+ − 11006 if { (eval echo configure:11007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 11007 rm -rf conftest*
+ − 11008 eval "ac_cv_func_openpty=yes"
+ − 11009 else
+ − 11010 echo "configure: failed program was:" >&5
+ − 11011 cat conftest.$ac_ext >&5
+ − 11012 rm -rf conftest*
+ − 11013 eval "ac_cv_func_openpty=no"
+ − 11014 fi
+ − 11015 rm -f conftest*
+ − 11016
+ − 11017 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
+ − 11018 echo "$ac_t""yes" 1>&6
+ − 11019 have_openpty=yes
+ − 11020 else
+ − 11021 echo "$ac_t""no" 1>&6
+ − 11022
+ − 11023
+ − 11024 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
594
+ − 11025 echo "configure:11026: checking for openpty in -lutil" >&5
442
+ − 11026 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
+ − 11027
+ − 11028 xe_check_libs=" -lutil "
+ − 11029 cat > conftest.$ac_ext <<EOF
594
+ − 11030 #line 11031 "configure"
442
+ − 11031 #include "confdefs.h"
+ − 11032 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11033 /* We use char because int might match the return type of a gcc2
+ − 11034 builtin and then its argument prototype would still apply. */
+ − 11035 char openpty();
+ − 11036
+ − 11037 int main() {
+ − 11038 openpty()
+ − 11039 ; return 0; }
+ − 11040 EOF
594
+ − 11041 if { (eval echo configure:11042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 11042 rm -rf conftest*
+ − 11043 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 11044 else
+ − 11045 echo "configure: failed program was:" >&5
+ − 11046 cat conftest.$ac_ext >&5
+ − 11047 rm -rf conftest*
+ − 11048 eval "ac_cv_lib_$ac_lib_var=no"
+ − 11049 fi
+ − 11050 rm -f conftest*
+ − 11051 xe_check_libs=""
+ − 11052
+ − 11053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 11054 echo "$ac_t""yes" 1>&6
+ − 11055 have_openpty=yes need_libutil=yes
+ − 11056 else
+ − 11057 echo "$ac_t""no" 1>&6
+ − 11058 fi
+ − 11059
+ − 11060
+ − 11061 fi
+ − 11062
+ − 11063 if test "$have_openpty" = "yes"; then
+ − 11064 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11065 Defining HAVE_OPENPTY
+ − 11066 EOF
+ − 11067 cat >> confdefs.h <<\EOF
+ − 11068 #define HAVE_OPENPTY 1
+ − 11069 EOF
+ − 11070 }
+ − 11071
535
+ − 11072 for ac_hdr in libutil.h util.h
442
+ − 11073 do
+ − 11074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 11075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
+ − 11076 echo "configure:11077: checking for $ac_hdr" >&5
+ − 11077
+ − 11078 cat > conftest.$ac_ext <<EOF
+ − 11079 #line 11080 "configure"
442
+ − 11080 #include "confdefs.h"
+ − 11081 #include <$ac_hdr>
+ − 11082 EOF
+ − 11083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 11084 { (eval echo configure:11085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 11085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 11086 if test -z "$ac_err"; then
+ − 11087 rm -rf conftest*
+ − 11088 eval "ac_cv_header_$ac_safe=yes"
+ − 11089 else
+ − 11090 echo "$ac_err" >&5
+ − 11091 echo "configure: failed program was:" >&5
+ − 11092 cat conftest.$ac_ext >&5
+ − 11093 rm -rf conftest*
+ − 11094 eval "ac_cv_header_$ac_safe=no"
+ − 11095 fi
+ − 11096 rm -f conftest*
+ − 11097 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11098 echo "$ac_t""yes" 1>&6
+ − 11099 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 11100 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11101 Defining $ac_tr_hdr
+ − 11102 EOF
+ − 11103 cat >> confdefs.h <<EOF
+ − 11104 #define $ac_tr_hdr 1
+ − 11105 EOF
+ − 11106 }
458
+ − 11107 break
442
+ − 11108 else
+ − 11109 echo "$ac_t""no" 1>&6
+ − 11110 fi
+ − 11111 done
+ − 11112
+ − 11113 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
+ − 11114 fi
+ − 11115
535
+ − 11116 case "$opsys" in
+ − 11117 hpux*) for ac_hdr in sys/ptyio.h
+ − 11118 do
+ − 11119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 11120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
+ − 11121 echo "configure:11122: checking for $ac_hdr" >&5
+ − 11122
+ − 11123 cat > conftest.$ac_ext <<EOF
+ − 11124 #line 11125 "configure"
535
+ − 11125 #include "confdefs.h"
+ − 11126 #include <$ac_hdr>
+ − 11127 EOF
+ − 11128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 11129 { (eval echo configure:11130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
535
+ − 11130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 11131 if test -z "$ac_err"; then
+ − 11132 rm -rf conftest*
+ − 11133 eval "ac_cv_header_$ac_safe=yes"
+ − 11134 else
+ − 11135 echo "$ac_err" >&5
+ − 11136 echo "configure: failed program was:" >&5
+ − 11137 cat conftest.$ac_ext >&5
+ − 11138 rm -rf conftest*
+ − 11139 eval "ac_cv_header_$ac_safe=no"
+ − 11140 fi
+ − 11141 rm -f conftest*
+ − 11142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11143 echo "$ac_t""yes" 1>&6
+ − 11144 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 11145 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11146 Defining $ac_tr_hdr
+ − 11147 EOF
+ − 11148 cat >> confdefs.h <<EOF
+ − 11149 #define $ac_tr_hdr 1
+ − 11150 EOF
+ − 11151 }
+ − 11152
+ − 11153 else
+ − 11154 echo "$ac_t""no" 1>&6
+ − 11155 fi
+ − 11156 done
+ − 11157 ;;
+ − 11158 *) for ac_hdr in pty.h
+ − 11159 do
+ − 11160 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 11161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
+ − 11162 echo "configure:11163: checking for $ac_hdr" >&5
+ − 11163
+ − 11164 cat > conftest.$ac_ext <<EOF
+ − 11165 #line 11166 "configure"
535
+ − 11166 #include "confdefs.h"
+ − 11167 #include <$ac_hdr>
+ − 11168 EOF
+ − 11169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 11170 { (eval echo configure:11171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
535
+ − 11171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 11172 if test -z "$ac_err"; then
+ − 11173 rm -rf conftest*
+ − 11174 eval "ac_cv_header_$ac_safe=yes"
+ − 11175 else
+ − 11176 echo "$ac_err" >&5
+ − 11177 echo "configure: failed program was:" >&5
+ − 11178 cat conftest.$ac_ext >&5
+ − 11179 rm -rf conftest*
+ − 11180 eval "ac_cv_header_$ac_safe=no"
+ − 11181 fi
+ − 11182 rm -f conftest*
+ − 11183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11184 echo "$ac_t""yes" 1>&6
+ − 11185 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 11186 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11187 Defining $ac_tr_hdr
+ − 11188 EOF
+ − 11189 cat >> confdefs.h <<EOF
+ − 11190 #define $ac_tr_hdr 1
+ − 11191 EOF
+ − 11192 }
+ − 11193
+ − 11194 else
+ − 11195 echo "$ac_t""no" 1>&6
+ − 11196 fi
+ − 11197 done
+ − 11198
+ − 11199 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
+ − 11200 do
+ − 11201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 11202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
+ − 11203 echo "configure:11204: checking for $ac_hdr" >&5
+ − 11204
+ − 11205 cat > conftest.$ac_ext <<EOF
+ − 11206 #line 11207 "configure"
535
+ − 11207 #include "confdefs.h"
+ − 11208 #include <$ac_hdr>
+ − 11209 EOF
+ − 11210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 11211 { (eval echo configure:11212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
535
+ − 11212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 11213 if test -z "$ac_err"; then
+ − 11214 rm -rf conftest*
+ − 11215 eval "ac_cv_header_$ac_safe=yes"
+ − 11216 else
+ − 11217 echo "$ac_err" >&5
+ − 11218 echo "configure: failed program was:" >&5
+ − 11219 cat conftest.$ac_ext >&5
+ − 11220 rm -rf conftest*
+ − 11221 eval "ac_cv_header_$ac_safe=no"
+ − 11222 fi
+ − 11223 rm -f conftest*
+ − 11224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11225 echo "$ac_t""yes" 1>&6
+ − 11226 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 11227 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11228 Defining $ac_tr_hdr
+ − 11229 EOF
+ − 11230 cat >> confdefs.h <<EOF
+ − 11231 #define $ac_tr_hdr 1
+ − 11232 EOF
+ − 11233 }
+ − 11234
+ − 11235 else
+ − 11236 echo "$ac_t""no" 1>&6
+ − 11237 fi
+ − 11238 done
+ − 11239
+ − 11240 ;;
+ − 11241 esac
+ − 11242
444
+ − 11243 for ac_hdr in stropts.h
442
+ − 11244 do
+ − 11245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 11246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
+ − 11247 echo "configure:11248: checking for $ac_hdr" >&5
+ − 11248
+ − 11249 cat > conftest.$ac_ext <<EOF
+ − 11250 #line 11251 "configure"
442
+ − 11251 #include "confdefs.h"
+ − 11252 #include <$ac_hdr>
+ − 11253 EOF
+ − 11254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 11255 { (eval echo configure:11256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 11256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 11257 if test -z "$ac_err"; then
+ − 11258 rm -rf conftest*
+ − 11259 eval "ac_cv_header_$ac_safe=yes"
+ − 11260 else
+ − 11261 echo "$ac_err" >&5
+ − 11262 echo "configure: failed program was:" >&5
+ − 11263 cat conftest.$ac_ext >&5
+ − 11264 rm -rf conftest*
+ − 11265 eval "ac_cv_header_$ac_safe=no"
+ − 11266 fi
+ − 11267 rm -f conftest*
+ − 11268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11269 echo "$ac_t""yes" 1>&6
+ − 11270 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 11271 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11272 Defining $ac_tr_hdr
+ − 11273 EOF
+ − 11274 cat >> confdefs.h <<EOF
+ − 11275 #define $ac_tr_hdr 1
+ − 11276 EOF
+ − 11277 }
+ − 11278
+ − 11279 else
+ − 11280 echo "$ac_t""no" 1>&6
+ − 11281 fi
+ − 11282 done
+ − 11283
444
+ − 11284 if test "$ac_cv_header_stropts_h" = "yes"; then
442
+ − 11285 for ac_func in isastream
410
+ − 11286 do
+ − 11287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
594
+ − 11288 echo "configure:11289: checking for $ac_func" >&5
+ − 11289
+ − 11290 cat > conftest.$ac_ext <<EOF
+ − 11291 #line 11292 "configure"
149
+ − 11292 #include "confdefs.h"
+ − 11293 /* System header to define __stub macros and hopefully few prototypes,
+ − 11294 which can conflict with char $ac_func(); below. */
+ − 11295 #include <assert.h>
+ − 11296 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11297 /* We use char because int might match the return type of a gcc2
+ − 11298 builtin and then its argument prototype would still apply. */
+ − 11299 char $ac_func();
+ − 11300
+ − 11301 int main() {
+ − 11302
70
+ − 11303 /* The GNU C library defines this for functions which it implements
+ − 11304 to always fail with ENOSYS. Some functions are actually named
+ − 11305 something starting with __ and the normal name is an alias. */
149
+ − 11306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70
+ − 11307 choke me
+ − 11308 #else
149
+ − 11309 $ac_func();
70
+ − 11310 #endif
149
+ − 11311
70
+ − 11312 ; return 0; }
+ − 11313 EOF
594
+ − 11314 if { (eval echo configure:11315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
+ − 11315 rm -rf conftest*
+ − 11316 eval "ac_cv_func_$ac_func=yes"
+ − 11317 else
+ − 11318 echo "configure: failed program was:" >&5
+ − 11319 cat conftest.$ac_ext >&5
+ − 11320 rm -rf conftest*
+ − 11321 eval "ac_cv_func_$ac_func=no"
+ − 11322 fi
+ − 11323 rm -f conftest*
+ − 11324
+ − 11325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 11326 echo "$ac_t""yes" 1>&6
+ − 11327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 11328 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11329 Defining $ac_tr_func
+ − 11330 EOF
+ − 11331 cat >> confdefs.h <<EOF
+ − 11332 #define $ac_tr_func 1
+ − 11333 EOF
+ − 11334 }
+ − 11335
+ − 11336 else
+ − 11337 echo "$ac_t""no" 1>&6
+ − 11338 fi
+ − 11339 done
+ − 11340
444
+ − 11341 for ac_hdr in strtio.h
442
+ − 11342 do
+ − 11343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 11344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
+ − 11345 echo "configure:11346: checking for $ac_hdr" >&5
+ − 11346
+ − 11347 cat > conftest.$ac_ext <<EOF
+ − 11348 #line 11349 "configure"
442
+ − 11349 #include "confdefs.h"
+ − 11350 #include <$ac_hdr>
+ − 11351 EOF
+ − 11352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 11353 { (eval echo configure:11354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 11354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 11355 if test -z "$ac_err"; then
+ − 11356 rm -rf conftest*
+ − 11357 eval "ac_cv_header_$ac_safe=yes"
+ − 11358 else
+ − 11359 echo "$ac_err" >&5
+ − 11360 echo "configure: failed program was:" >&5
+ − 11361 cat conftest.$ac_ext >&5
+ − 11362 rm -rf conftest*
+ − 11363 eval "ac_cv_header_$ac_safe=no"
+ − 11364 fi
+ − 11365 rm -f conftest*
+ − 11366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11367 echo "$ac_t""yes" 1>&6
+ − 11368 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 11369 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11370 Defining $ac_tr_hdr
+ − 11371 EOF
+ − 11372 cat >> confdefs.h <<EOF
+ − 11373 #define $ac_tr_hdr 1
+ − 11374 EOF
+ − 11375 }
+ − 11376
+ − 11377 else
+ − 11378 echo "$ac_t""no" 1>&6
+ − 11379 fi
+ − 11380 done
+ − 11381 fi
+ − 11382
+ − 11383 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
+ − 11384 echo " xemacs will be linked with \"realpath.o\""
+ − 11385 fi
+ − 11386
+ − 11387 for ac_func in getloadavg
+ − 11388 do
+ − 11389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
594
+ − 11390 echo "configure:11391: checking for $ac_func" >&5
+ − 11391
+ − 11392 cat > conftest.$ac_ext <<EOF
+ − 11393 #line 11394 "configure"
442
+ − 11394 #include "confdefs.h"
+ − 11395 /* System header to define __stub macros and hopefully few prototypes,
+ − 11396 which can conflict with char $ac_func(); below. */
+ − 11397 #include <assert.h>
+ − 11398 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11399 /* We use char because int might match the return type of a gcc2
+ − 11400 builtin and then its argument prototype would still apply. */
+ − 11401 char $ac_func();
+ − 11402
+ − 11403 int main() {
+ − 11404
+ − 11405 /* The GNU C library defines this for functions which it implements
+ − 11406 to always fail with ENOSYS. Some functions are actually named
+ − 11407 something starting with __ and the normal name is an alias. */
+ − 11408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 11409 choke me
+ − 11410 #else
+ − 11411 $ac_func();
+ − 11412 #endif
+ − 11413
+ − 11414 ; return 0; }
+ − 11415 EOF
594
+ − 11416 if { (eval echo configure:11417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
+ − 11417 rm -rf conftest*
+ − 11418 eval "ac_cv_func_$ac_func=yes"
+ − 11419 else
+ − 11420 echo "configure: failed program was:" >&5
+ − 11421 cat conftest.$ac_ext >&5
+ − 11422 rm -rf conftest*
+ − 11423 eval "ac_cv_func_$ac_func=no"
+ − 11424 fi
+ − 11425 rm -f conftest*
+ − 11426
+ − 11427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 11428 echo "$ac_t""yes" 1>&6
+ − 11429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 11430 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11431 Defining $ac_tr_func
+ − 11432 EOF
+ − 11433 cat >> confdefs.h <<EOF
+ − 11434 #define $ac_tr_func 1
+ − 11435 EOF
+ − 11436 }
+ − 11437
+ − 11438 else
+ − 11439 echo "$ac_t""no" 1>&6
+ − 11440 fi
+ − 11441 done
+ − 11442
+ − 11443
+ − 11444 if test "$ac_cv_func_getloadavg" = "yes"; then
+ − 11445 for ac_hdr in sys/loadavg.h
+ − 11446 do
+ − 11447 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 11448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
+ − 11449 echo "configure:11450: checking for $ac_hdr" >&5
+ − 11450
+ − 11451 cat > conftest.$ac_ext <<EOF
+ − 11452 #line 11453 "configure"
442
+ − 11453 #include "confdefs.h"
+ − 11454 #include <$ac_hdr>
+ − 11455 EOF
+ − 11456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 11457 { (eval echo configure:11458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 11458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 11459 if test -z "$ac_err"; then
+ − 11460 rm -rf conftest*
+ − 11461 eval "ac_cv_header_$ac_safe=yes"
+ − 11462 else
+ − 11463 echo "$ac_err" >&5
+ − 11464 echo "configure: failed program was:" >&5
+ − 11465 cat conftest.$ac_ext >&5
+ − 11466 rm -rf conftest*
+ − 11467 eval "ac_cv_header_$ac_safe=no"
+ − 11468 fi
+ − 11469 rm -f conftest*
+ − 11470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11471 echo "$ac_t""yes" 1>&6
+ − 11472 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 11473 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11474 Defining $ac_tr_hdr
+ − 11475 EOF
+ − 11476 cat >> confdefs.h <<EOF
+ − 11477 #define $ac_tr_hdr 1
+ − 11478 EOF
+ − 11479 }
+ − 11480
+ − 11481 else
+ − 11482 echo "$ac_t""no" 1>&6
+ − 11483 fi
+ − 11484 done
+ − 11485
+ − 11486 else
+ − 11487 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
398
+ − 11488 echo " xemacs will be linked with \"getloadavg.o\""
+ − 11489 fi
+ − 11490
+ − 11491
+ − 11492 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
594
+ − 11493 echo "configure:11494: checking for kstat_open in -lkstat" >&5
398
+ − 11494 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
+ − 11495
+ − 11496 xe_check_libs=" -lkstat "
+ − 11497 cat > conftest.$ac_ext <<EOF
594
+ − 11498 #line 11499 "configure"
398
+ − 11499 #include "confdefs.h"
+ − 11500 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11501 /* We use char because int might match the return type of a gcc2
+ − 11502 builtin and then its argument prototype would still apply. */
+ − 11503 char kstat_open();
+ − 11504
+ − 11505 int main() {
+ − 11506 kstat_open()
+ − 11507 ; return 0; }
+ − 11508 EOF
594
+ − 11509 if { (eval echo configure:11510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
+ − 11510 rm -rf conftest*
+ − 11511 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 11512 else
+ − 11513 echo "configure: failed program was:" >&5
+ − 11514 cat conftest.$ac_ext >&5
+ − 11515 rm -rf conftest*
+ − 11516 eval "ac_cv_lib_$ac_lib_var=no"
+ − 11517 fi
+ − 11518 rm -f conftest*
+ − 11519 xe_check_libs=""
+ − 11520
+ − 11521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 11522 echo "$ac_t""yes" 1>&6
+ − 11523 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 11524 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
369
+ − 11525 { test "$extra_verbose" = "yes" && cat << EOF
398
+ − 11526 Defining $ac_tr_lib
369
+ − 11527 EOF
+ − 11528 cat >> confdefs.h <<EOF
398
+ − 11529 #define $ac_tr_lib 1
+ − 11530 EOF
+ − 11531 }
+ − 11532
+ − 11533 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
+ − 11534
+ − 11535 else
+ − 11536 echo "$ac_t""no" 1>&6
+ − 11537 fi
+ − 11538
+ − 11539
442
+ − 11540 for ac_hdr in kstat.h
+ − 11541 do
+ − 11542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ − 11543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
+ − 11544 echo "configure:11545: checking for $ac_hdr" >&5
+ − 11545
+ − 11546 cat > conftest.$ac_ext <<EOF
+ − 11547 #line 11548 "configure"
442
+ − 11548 #include "confdefs.h"
+ − 11549 #include <$ac_hdr>
+ − 11550 EOF
+ − 11551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 11552 { (eval echo configure:11553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
+ − 11553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 11554 if test -z "$ac_err"; then
+ − 11555 rm -rf conftest*
+ − 11556 eval "ac_cv_header_$ac_safe=yes"
+ − 11557 else
+ − 11558 echo "$ac_err" >&5
+ − 11559 echo "configure: failed program was:" >&5
+ − 11560 cat conftest.$ac_ext >&5
+ − 11561 rm -rf conftest*
+ − 11562 eval "ac_cv_header_$ac_safe=no"
+ − 11563 fi
+ − 11564 rm -f conftest*
+ − 11565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 11566 echo "$ac_t""yes" 1>&6
+ − 11567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ − 11568 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11569 Defining $ac_tr_hdr
+ − 11570 EOF
+ − 11571 cat >> confdefs.h <<EOF
+ − 11572 #define $ac_tr_hdr 1
+ − 11573 EOF
+ − 11574 }
+ − 11575
+ − 11576 else
+ − 11577 echo "$ac_t""no" 1>&6
+ − 11578 fi
+ − 11579 done
+ − 11580
398
+ − 11581
+ − 11582
+ − 11583 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
594
+ − 11584 echo "configure:11585: checking for kvm_read in -lkvm" >&5
398
+ − 11585 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
+ − 11586
+ − 11587 xe_check_libs=" -lkvm "
+ − 11588 cat > conftest.$ac_ext <<EOF
594
+ − 11589 #line 11590 "configure"
398
+ − 11590 #include "confdefs.h"
+ − 11591 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11592 /* We use char because int might match the return type of a gcc2
+ − 11593 builtin and then its argument prototype would still apply. */
+ − 11594 char kvm_read();
+ − 11595
+ − 11596 int main() {
+ − 11597 kvm_read()
+ − 11598 ; return 0; }
+ − 11599 EOF
594
+ − 11600 if { (eval echo configure:11601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
+ − 11601 rm -rf conftest*
+ − 11602 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 11603 else
+ − 11604 echo "configure: failed program was:" >&5
+ − 11605 cat conftest.$ac_ext >&5
+ − 11606 rm -rf conftest*
+ − 11607 eval "ac_cv_lib_$ac_lib_var=no"
+ − 11608 fi
+ − 11609 rm -f conftest*
+ − 11610 xe_check_libs=""
+ − 11611
+ − 11612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 11613 echo "$ac_t""yes" 1>&6
+ − 11614 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 11615 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 11616 { test "$extra_verbose" = "yes" && cat << EOF
+ − 11617 Defining $ac_tr_lib
+ − 11618 EOF
+ − 11619 cat >> confdefs.h <<EOF
+ − 11620 #define $ac_tr_lib 1
+ − 11621 EOF
+ − 11622 }
+ − 11623
+ − 11624 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
+ − 11625
+ − 11626 else
+ − 11627 echo "$ac_t""no" 1>&6
+ − 11628 fi
+ − 11629
+ − 11630
+ − 11631 fi
151
+ − 11632
149
+ − 11633 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
594
+ − 11634 echo "configure:11635: checking whether netdb declares h_errno" >&5
+ − 11635 cat > conftest.$ac_ext <<EOF
+ − 11636 #line 11637 "configure"
0
+ − 11637 #include "confdefs.h"
+ − 11638 #include <netdb.h>
149
+ − 11639 int main() {
+ − 11640 return h_errno;
+ − 11641 ; return 0; }
+ − 11642 EOF
594
+ − 11643 if { (eval echo configure:11644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 11644 rm -rf conftest*
+ − 11645 echo "$ac_t""yes" 1>&6
+ − 11646 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11647 Defining HAVE_H_ERRNO
+ − 11648 EOF
+ − 11649 cat >> confdefs.h <<\EOF
+ − 11650 #define HAVE_H_ERRNO 1
+ − 11651 EOF
+ − 11652 }
+ − 11653
+ − 11654 else
+ − 11655 echo "configure: failed program was:" >&5
+ − 11656 cat conftest.$ac_ext >&5
+ − 11657 rm -rf conftest*
+ − 11658 echo "$ac_t""no" 1>&6
+ − 11659 fi
+ − 11660 rm -f conftest*
+ − 11661
+ − 11662 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
594
+ − 11663 echo "configure:11664: checking for sigsetjmp" >&5
+ − 11664 cat > conftest.$ac_ext <<EOF
+ − 11665 #line 11666 "configure"
0
+ − 11666 #include "confdefs.h"
+ − 11667 #include <setjmp.h>
149
+ − 11668 int main() {
+ − 11669 sigjmp_buf bar; sigsetjmp (bar, 0);
+ − 11670 ; return 0; }
+ − 11671 EOF
594
+ − 11672 if { (eval echo configure:11673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 11673 rm -rf conftest*
+ − 11674 echo "$ac_t""yes" 1>&6
+ − 11675 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11676 Defining HAVE_SIGSETJMP
+ − 11677 EOF
+ − 11678 cat >> confdefs.h <<\EOF
+ − 11679 #define HAVE_SIGSETJMP 1
+ − 11680 EOF
+ − 11681 }
+ − 11682
+ − 11683 else
+ − 11684 echo "configure: failed program was:" >&5
+ − 11685 cat conftest.$ac_ext >&5
+ − 11686 rm -rf conftest*
+ − 11687 echo "$ac_t""no" 1>&6
+ − 11688 fi
+ − 11689 rm -f conftest*
+ − 11690
+ − 11691 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
594
+ − 11692 echo "configure:11693: checking whether localtime caches TZ" >&5
149
+ − 11693
+ − 11694 if test "$ac_cv_func_tzset" = "yes"; then
+ − 11695 cat > conftest.$ac_ext <<EOF
594
+ − 11696 #line 11697 "configure"
0
+ − 11697 #include "confdefs.h"
+ − 11698 #include <time.h>
149
+ − 11699 #if STDC_HEADERS
0
+ − 11700 # include <stdlib.h>
+ − 11701 #endif
+ − 11702 extern char **environ;
+ − 11703 unset_TZ ()
+ − 11704 {
+ − 11705 char **from, **to;
+ − 11706 for (to = from = environ; (*to = *from); from++)
+ − 11707 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
+ − 11708 to++;
+ − 11709 }
149
+ − 11710 char TZ_GMT0[] = "TZ=GMT0";
+ − 11711 char TZ_PST8[] = "TZ=PST8";
0
+ − 11712 main()
+ − 11713 {
+ − 11714 time_t now = time ((time_t *) 0);
+ − 11715 int hour_GMT0, hour_unset;
149
+ − 11716 if (putenv (TZ_GMT0) != 0)
0
+ − 11717 exit (1);
+ − 11718 hour_GMT0 = localtime (&now)->tm_hour;
+ − 11719 unset_TZ ();
+ − 11720 hour_unset = localtime (&now)->tm_hour;
149
+ − 11721 if (putenv (TZ_PST8) != 0)
0
+ − 11722 exit (1);
+ − 11723 if (localtime (&now)->tm_hour == hour_GMT0)
+ − 11724 exit (1);
+ − 11725 unset_TZ ();
+ − 11726 if (localtime (&now)->tm_hour != hour_unset)
+ − 11727 exit (1);
+ − 11728 exit (0);
+ − 11729 }
+ − 11730 EOF
594
+ − 11731 if { (eval echo configure:11732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 11732 then
0
+ − 11733 emacs_cv_localtime_cache=no
149
+ − 11734 else
373
+ − 11735 conftest_rc="$?"
149
+ − 11736 echo "configure: failed program was:" >&5
+ − 11737 cat conftest.$ac_ext >&5
+ − 11738 rm -fr conftest*
0
+ − 11739 emacs_cv_localtime_cache=yes
+ − 11740 fi
+ − 11741 rm -fr conftest*
149
+ − 11742 else
+ − 11743 # If we lack tzset, report that localtime does not cache TZ,
+ − 11744 # since we can't invalidate the cache if we don't have tzset.
+ − 11745 emacs_cv_localtime_cache=no
+ − 11746 fi
+ − 11747 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
+ − 11748 if test $emacs_cv_localtime_cache = yes; then
+ − 11749 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11750 Defining LOCALTIME_CACHE
+ − 11751 EOF
+ − 11752 cat >> confdefs.h <<\EOF
+ − 11753 #define LOCALTIME_CACHE 1
+ − 11754 EOF
+ − 11755 }
+ − 11756
+ − 11757 fi
+ − 11758
+ − 11759 if test "$HAVE_TIMEVAL" = "yes"; then
274
+ − 11760 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
594
+ − 11761 echo "configure:11762: checking whether gettimeofday accepts one or two arguments" >&5
+ − 11762 cat > conftest.$ac_ext <<EOF
+ − 11763 #line 11764 "configure"
0
+ − 11764 #include "confdefs.h"
+ − 11765
+ − 11766 #ifdef TIME_WITH_SYS_TIME
+ − 11767 #include <sys/time.h>
+ − 11768 #include <time.h>
+ − 11769 #else
+ − 11770 #ifdef HAVE_SYS_TIME_H
+ − 11771 #include <sys/time.h>
+ − 11772 #else
+ − 11773 #include <time.h>
+ − 11774 #endif
+ − 11775 #endif
+ − 11776
149
+ − 11777 int main() {
+ − 11778
0
+ − 11779 struct timeval time;
442
+ − 11780 gettimeofday (&time, 0);
+ − 11781
+ − 11782 ; return 0; }
+ − 11783 EOF
594
+ − 11784 if { (eval echo configure:11785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
274
+ − 11785 rm -rf conftest*
+ − 11786 echo "$ac_t""two" 1>&6
+ − 11787 else
+ − 11788 echo "configure: failed program was:" >&5
+ − 11789 cat conftest.$ac_ext >&5
+ − 11790 rm -rf conftest*
+ − 11791 echo "$ac_t""one" 1>&6
149
+ − 11792 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11793 Defining GETTIMEOFDAY_ONE_ARGUMENT
+ − 11794 EOF
+ − 11795 cat >> confdefs.h <<\EOF
+ − 11796 #define GETTIMEOFDAY_ONE_ARGUMENT 1
+ − 11797 EOF
+ − 11798 }
+ − 11799
+ − 11800 fi
+ − 11801 rm -f conftest*
+ − 11802 fi
+ − 11803
+ − 11804
+ − 11805 echo $ac_n "checking for inline""... $ac_c" 1>&6
594
+ − 11806 echo "configure:11807: checking for inline" >&5
149
+ − 11807
+ − 11808 ac_cv_c_inline=no
+ − 11809 for ac_kw in inline __inline__ __inline; do
+ − 11810 cat > conftest.$ac_ext <<EOF
594
+ − 11811 #line 11812 "configure"
149
+ − 11812 #include "confdefs.h"
+ − 11813
+ − 11814 int main() {
+ − 11815 } $ac_kw foo() {
0
+ − 11816 ; return 0; }
+ − 11817 EOF
594
+ − 11818 if { (eval echo configure:11819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
+ − 11819 rm -rf conftest*
+ − 11820 ac_cv_c_inline=$ac_kw; break
+ − 11821 else
+ − 11822 echo "configure: failed program was:" >&5
+ − 11823 cat conftest.$ac_ext >&5
+ − 11824 fi
+ − 11825 rm -f conftest*
+ − 11826 done
+ − 11827
+ − 11828
+ − 11829 echo "$ac_t""$ac_cv_c_inline" 1>&6
+ − 11830 case "$ac_cv_c_inline" in
+ − 11831 inline | yes) ;;
+ − 11832 no) { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11833 Defining inline =
+ − 11834 EOF
+ − 11835 cat >> confdefs.h <<\EOF
+ − 11836 #define inline
+ − 11837 EOF
+ − 11838 }
+ − 11839 ;;
+ − 11840 *) { test "$extra_verbose" = "yes" && cat << EOF
+ − 11841 Defining inline = $ac_cv_c_inline
+ − 11842 EOF
+ − 11843 cat >> confdefs.h <<EOF
+ − 11844 #define inline $ac_cv_c_inline
+ − 11845 EOF
+ − 11846 }
+ − 11847 ;;
+ − 11848 esac
+ − 11849
442
+ − 11850 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
155
+ − 11851 echo " xemacs will be linked with \"inline.o\""
+ − 11852 fi
149
+ − 11853
+ − 11854
444
+ − 11855 if test "$__DECC" != "yes"; then
+ − 11856 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
0
+ − 11857 # for constant arguments. Useless!
149
+ − 11858 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
594
+ − 11859 echo "configure:11860: checking for working alloca.h" >&5
+ − 11860
+ − 11861 cat > conftest.$ac_ext <<EOF
+ − 11862 #line 11863 "configure"
0
+ − 11863 #include "confdefs.h"
+ − 11864 #include <alloca.h>
149
+ − 11865 int main() {
+ − 11866 char *p = alloca(2 * sizeof(int));
0
+ − 11867 ; return 0; }
+ − 11868 EOF
594
+ − 11869 if { (eval echo configure:11870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 11870 rm -rf conftest*
+ − 11871 ac_cv_header_alloca_h=yes
+ − 11872 else
+ − 11873 echo "configure: failed program was:" >&5
+ − 11874 cat conftest.$ac_ext >&5
+ − 11875 rm -rf conftest*
+ − 11876 ac_cv_header_alloca_h=no
+ − 11877 fi
+ − 11878 rm -f conftest*
+ − 11879
+ − 11880 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
+ − 11881 if test $ac_cv_header_alloca_h = yes; then
+ − 11882 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11883 Defining HAVE_ALLOCA_H
+ − 11884 EOF
+ − 11885 cat >> confdefs.h <<\EOF
+ − 11886 #define HAVE_ALLOCA_H 1
+ − 11887 EOF
+ − 11888 }
+ − 11889
+ − 11890 fi
+ − 11891
+ − 11892 echo $ac_n "checking for alloca""... $ac_c" 1>&6
594
+ − 11893 echo "configure:11894: checking for alloca" >&5
+ − 11894
+ − 11895 cat > conftest.$ac_ext <<EOF
+ − 11896 #line 11897 "configure"
149
+ − 11897 #include "confdefs.h"
+ − 11898
+ − 11899 #ifdef __GNUC__
+ − 11900 # define alloca __builtin_alloca
0
+ − 11901 #else
420
+ − 11902 # ifdef _MSC_VER
+ − 11903 # include <malloc.h>
+ − 11904 # define alloca _alloca
149
+ − 11905 # else
420
+ − 11906 # if HAVE_ALLOCA_H
+ − 11907 # include <alloca.h>
149
+ − 11908 # else
420
+ − 11909 # ifdef _AIX
+ − 11910 #pragma alloca
+ − 11911 # else
+ − 11912 # ifndef alloca /* predefined by HP cc +Olibcalls */
149
+ − 11913 char *alloca ();
420
+ − 11914 # endif
149
+ − 11915 # endif
+ − 11916 # endif
+ − 11917 # endif
0
+ − 11918 #endif
149
+ − 11919
+ − 11920 int main() {
+ − 11921 char *p = (char *) alloca(1);
0
+ − 11922 ; return 0; }
+ − 11923 EOF
594
+ − 11924 if { (eval echo configure:11925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 11925 rm -rf conftest*
+ − 11926 ac_cv_func_alloca_works=yes
+ − 11927 else
+ − 11928 echo "configure: failed program was:" >&5
+ − 11929 cat conftest.$ac_ext >&5
+ − 11930 rm -rf conftest*
+ − 11931 ac_cv_func_alloca_works=no
+ − 11932 fi
+ − 11933 rm -f conftest*
+ − 11934
+ − 11935 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
+ − 11936 if test $ac_cv_func_alloca_works = yes; then
+ − 11937 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11938 Defining HAVE_ALLOCA
+ − 11939 EOF
+ − 11940 cat >> confdefs.h <<\EOF
+ − 11941 #define HAVE_ALLOCA 1
+ − 11942 EOF
+ − 11943 }
+ − 11944
+ − 11945 fi
+ − 11946
+ − 11947 if test $ac_cv_func_alloca_works = no; then
0
+ − 11948 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
+ − 11949 # that cause trouble. Some versions do not even contain alloca or
+ − 11950 # contain a buggy version. If you still want to use their alloca,
+ − 11951 # use ar to extract alloca.o from them instead of compiling alloca.c.
420
+ − 11952 ALLOCA=alloca.${ac_objext}
149
+ − 11953 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 11954 Defining C_ALLOCA
+ − 11955 EOF
+ − 11956 cat >> confdefs.h <<\EOF
+ − 11957 #define C_ALLOCA 1
+ − 11958 EOF
+ − 11959 }
+ − 11960
+ − 11961
+ − 11962 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
594
+ − 11963 echo "configure:11964: checking whether alloca needs Cray hooks" >&5
+ − 11964
+ − 11965 cat > conftest.$ac_ext <<EOF
+ − 11966 #line 11967 "configure"
149
+ − 11967 #include "confdefs.h"
+ − 11968 #if defined(CRAY) && ! defined(CRAY2)
+ − 11969 webecray
+ − 11970 #else
+ − 11971 wenotbecray
+ − 11972 #endif
+ − 11973
+ − 11974 EOF
+ − 11975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 11976 egrep "webecray" >/dev/null 2>&1; then
+ − 11977 rm -rf conftest*
+ − 11978 ac_cv_os_cray=yes
+ − 11979 else
+ − 11980 rm -rf conftest*
+ − 11981 ac_cv_os_cray=no
+ − 11982 fi
+ − 11983 rm -f conftest*
+ − 11984
+ − 11985
+ − 11986 echo "$ac_t""$ac_cv_os_cray" 1>&6
+ − 11987 if test $ac_cv_os_cray = yes; then
+ − 11988 for ac_func in _getb67 GETB67 getb67; do
+ − 11989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
594
+ − 11990 echo "configure:11991: checking for $ac_func" >&5
+ − 11991
+ − 11992 cat > conftest.$ac_ext <<EOF
+ − 11993 #line 11994 "configure"
149
+ − 11994 #include "confdefs.h"
+ − 11995 /* System header to define __stub macros and hopefully few prototypes,
+ − 11996 which can conflict with char $ac_func(); below. */
+ − 11997 #include <assert.h>
+ − 11998 /* Override any gcc2 internal prototype to avoid an error. */
+ − 11999 /* We use char because int might match the return type of a gcc2
+ − 12000 builtin and then its argument prototype would still apply. */
+ − 12001 char $ac_func();
+ − 12002
+ − 12003 int main() {
+ − 12004
+ − 12005 /* The GNU C library defines this for functions which it implements
+ − 12006 to always fail with ENOSYS. Some functions are actually named
+ − 12007 something starting with __ and the normal name is an alias. */
+ − 12008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 12009 choke me
+ − 12010 #else
+ − 12011 $ac_func();
+ − 12012 #endif
+ − 12013
+ − 12014 ; return 0; }
+ − 12015 EOF
594
+ − 12016 if { (eval echo configure:12017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 12017 rm -rf conftest*
+ − 12018 eval "ac_cv_func_$ac_func=yes"
+ − 12019 else
+ − 12020 echo "configure: failed program was:" >&5
+ − 12021 cat conftest.$ac_ext >&5
+ − 12022 rm -rf conftest*
+ − 12023 eval "ac_cv_func_$ac_func=no"
+ − 12024 fi
+ − 12025 rm -f conftest*
+ − 12026
+ − 12027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 12028 echo "$ac_t""yes" 1>&6
+ − 12029 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12030 Defining CRAY_STACKSEG_END = $ac_func
+ − 12031 EOF
+ − 12032 cat >> confdefs.h <<EOF
+ − 12033 #define CRAY_STACKSEG_END $ac_func
+ − 12034 EOF
+ − 12035 }
+ − 12036
+ − 12037 break
+ − 12038 else
+ − 12039 echo "$ac_t""no" 1>&6
+ − 12040 fi
+ − 12041
+ − 12042 done
+ − 12043 fi
+ − 12044
+ − 12045 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
594
+ − 12046 echo "configure:12047: checking stack direction for C alloca" >&5
+ − 12047
+ − 12048 cat > conftest.$ac_ext <<EOF
+ − 12049 #line 12050 "configure"
0
+ − 12050 #include "confdefs.h"
+ − 12051 find_stack_direction ()
+ − 12052 {
+ − 12053 static char *addr = 0;
+ − 12054 auto char dummy;
+ − 12055 if (addr == 0)
+ − 12056 {
+ − 12057 addr = &dummy;
+ − 12058 return find_stack_direction ();
+ − 12059 }
+ − 12060 else
+ − 12061 return (&dummy > addr) ? 1 : -1;
+ − 12062 }
+ − 12063 main ()
+ − 12064 {
+ − 12065 exit (find_stack_direction() < 0);
+ − 12066 }
+ − 12067 EOF
594
+ − 12068 if { (eval echo configure:12069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 12069 then
+ − 12070 ac_cv_c_stack_direction=1
+ − 12071 else
373
+ − 12072 conftest_rc="$?"
149
+ − 12073 echo "configure: failed program was:" >&5
+ − 12074 cat conftest.$ac_ext >&5
+ − 12075 rm -fr conftest*
+ − 12076 ac_cv_c_stack_direction=-1
0
+ − 12077 fi
+ − 12078 rm -fr conftest*
149
+ − 12079
+ − 12080 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
+ − 12081 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12082 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
+ − 12083 EOF
+ − 12084 cat >> confdefs.h <<EOF
+ − 12085 #define STACK_DIRECTION $ac_cv_c_stack_direction
+ − 12086 EOF
+ − 12087 }
+ − 12088
+ − 12089 fi
+ − 12090
444
+ − 12091 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
151
+ − 12092 echo " xemacs will be linked with \"$ALLOCA\""
+ − 12093 fi
444
+ − 12094 fi
149
+ − 12095
+ − 12096 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
+ − 12097 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
594
+ − 12098 echo "configure:12099: checking for vfork.h" >&5
+ − 12099
+ − 12100 cat > conftest.$ac_ext <<EOF
+ − 12101 #line 12102 "configure"
0
+ − 12102 #include "confdefs.h"
+ − 12103 #include <vfork.h>
+ − 12104 EOF
149
+ − 12105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 12106 { (eval echo configure:12107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 12107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 12108 if test -z "$ac_err"; then
+ − 12109 rm -rf conftest*
149
+ − 12110 eval "ac_cv_header_$ac_safe=yes"
+ − 12111 else
+ − 12112 echo "$ac_err" >&5
+ − 12113 echo "configure: failed program was:" >&5
+ − 12114 cat conftest.$ac_ext >&5
+ − 12115 rm -rf conftest*
+ − 12116 eval "ac_cv_header_$ac_safe=no"
+ − 12117 fi
+ − 12118 rm -f conftest*
+ − 12119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12120 echo "$ac_t""yes" 1>&6
+ − 12121 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12122 Defining HAVE_VFORK_H
+ − 12123 EOF
+ − 12124 cat >> confdefs.h <<\EOF
+ − 12125 #define HAVE_VFORK_H 1
+ − 12126 EOF
+ − 12127 }
+ − 12128
+ − 12129 else
+ − 12130 echo "$ac_t""no" 1>&6
+ − 12131 fi
+ − 12132
+ − 12133 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
594
+ − 12134 echo "configure:12135: checking for working vfork" >&5
+ − 12135
+ − 12136 cat > conftest.$ac_ext <<EOF
+ − 12137 #line 12138 "configure"
0
+ − 12138 #include "confdefs.h"
+ − 12139 /* Thanks to Paul Eggert for this test. */
+ − 12140 #include <stdio.h>
+ − 12141 #include <sys/types.h>
+ − 12142 #include <sys/stat.h>
+ − 12143 #ifdef HAVE_UNISTD_H
+ − 12144 #include <unistd.h>
+ − 12145 #endif
+ − 12146 #ifdef HAVE_VFORK_H
+ − 12147 #include <vfork.h>
+ − 12148 #endif
149
+ − 12149 /* On some sparc systems, changes by the child to local and incoming
+ − 12150 argument registers are propagated back to the parent.
+ − 12151 The compiler is told about this with #include <vfork.h>,
+ − 12152 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
+ − 12153 Test for this by using a static variable whose address
+ − 12154 is put into a register that is clobbered by the vfork. */
+ − 12155 static
+ − 12156 #ifdef __cplusplus
+ − 12157 sparc_address_test (int arg)
+ − 12158 #else
+ − 12159 sparc_address_test (arg) int arg;
+ − 12160 #endif
+ − 12161 {
+ − 12162 static pid_t child;
+ − 12163 if (!child) {
+ − 12164 child = vfork ();
+ − 12165 if (child < 0) {
+ − 12166 perror ("vfork");
+ − 12167 _exit(2);
+ − 12168 }
+ − 12169 if (!child) {
+ − 12170 arg = getpid();
+ − 12171 write(-1, "", 0);
+ − 12172 _exit (arg);
+ − 12173 }
+ − 12174 }
+ − 12175 }
0
+ − 12176 main() {
+ − 12177 pid_t parent = getpid ();
+ − 12178 pid_t child;
+ − 12179
149
+ − 12180 sparc_address_test ();
0
+ − 12181
+ − 12182 child = vfork ();
+ − 12183
+ − 12184 if (child == 0) {
149
+ − 12185 /* Here is another test for sparc vfork register problems.
+ − 12186 This test uses lots of local variables, at least
0
+ − 12187 as many local variables as main has allocated so far
+ − 12188 including compiler temporaries. 4 locals are enough for
149
+ − 12189 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
0
+ − 12190 A buggy compiler should reuse the register of parent
+ − 12191 for one of the local variables, since it will think that
+ − 12192 parent can't possibly be used any more in this routine.
+ − 12193 Assigning to the local variable will thus munge parent
+ − 12194 in the parent process. */
+ − 12195 pid_t
+ − 12196 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
+ − 12197 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
+ − 12198 /* Convince the compiler that p..p7 are live; otherwise, it might
+ − 12199 use the same hardware register for all 8 local variables. */
+ − 12200 if (p != p1 || p != p2 || p != p3 || p != p4
+ − 12201 || p != p5 || p != p6 || p != p7)
+ − 12202 _exit(1);
+ − 12203
+ − 12204 /* On some systems (e.g. IRIX 3.3),
+ − 12205 vfork doesn't separate parent from child file descriptors.
+ − 12206 If the child closes a descriptor before it execs or exits,
+ − 12207 this munges the parent's descriptor as well.
+ − 12208 Test for this by closing stdout in the child. */
+ − 12209 _exit(close(fileno(stdout)) != 0);
+ − 12210 } else {
+ − 12211 int status;
+ − 12212 struct stat st;
+ − 12213
+ − 12214 while (wait(&status) != child)
+ − 12215 ;
+ − 12216 exit(
+ − 12217 /* Was there some problem with vforking? */
+ − 12218 child < 0
+ − 12219
+ − 12220 /* Did the child fail? (This shouldn't happen.) */
+ − 12221 || status
+ − 12222
+ − 12223 /* Did the vfork/compiler bug occur? */
+ − 12224 || parent != getpid()
+ − 12225
+ − 12226 /* Did the file descriptor bug occur? */
+ − 12227 || fstat(fileno(stdout), &st) != 0
+ − 12228 );
+ − 12229 }
+ − 12230 }
+ − 12231 EOF
594
+ − 12232 if { (eval echo configure:12233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 12233 then
+ − 12234 ac_cv_func_vfork_works=yes
+ − 12235 else
373
+ − 12236 conftest_rc="$?"
149
+ − 12237 echo "configure: failed program was:" >&5
+ − 12238 cat conftest.$ac_ext >&5
+ − 12239 rm -fr conftest*
+ − 12240 ac_cv_func_vfork_works=no
0
+ − 12241 fi
+ − 12242 rm -fr conftest*
+ − 12243
149
+ − 12244 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
+ − 12245 if test $ac_cv_func_vfork_works = no; then
+ − 12246 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12247 Defining vfork = fork
+ − 12248 EOF
+ − 12249 cat >> confdefs.h <<\EOF
+ − 12250 #define vfork fork
+ − 12251 EOF
+ − 12252 }
+ − 12253
+ − 12254 fi
+ − 12255
+ − 12256
+ − 12257 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
594
+ − 12258 echo "configure:12259: checking for working strcoll" >&5
+ − 12259
+ − 12260 cat > conftest.$ac_ext <<EOF
+ − 12261 #line 12262 "configure"
0
+ − 12262 #include "confdefs.h"
+ − 12263 #include <string.h>
+ − 12264 main ()
+ − 12265 {
+ − 12266 exit (strcoll ("abc", "def") >= 0 ||
+ − 12267 strcoll ("ABC", "DEF") >= 0 ||
+ − 12268 strcoll ("123", "456") >= 0);
+ − 12269 }
+ − 12270 EOF
594
+ − 12271 if { (eval echo configure:12272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 12272 then
+ − 12273 ac_cv_func_strcoll_works=yes
+ − 12274 else
373
+ − 12275 conftest_rc="$?"
149
+ − 12276 echo "configure: failed program was:" >&5
+ − 12277 cat conftest.$ac_ext >&5
+ − 12278 rm -fr conftest*
+ − 12279 ac_cv_func_strcoll_works=no
0
+ − 12280 fi
+ − 12281 rm -fr conftest*
+ − 12282
149
+ − 12283 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
+ − 12284 if test $ac_cv_func_strcoll_works = yes; then
+ − 12285 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12286 Defining HAVE_STRCOLL
+ − 12287 EOF
+ − 12288 cat >> confdefs.h <<\EOF
+ − 12289 #define HAVE_STRCOLL 1
+ − 12290 EOF
+ − 12291 }
+ − 12292
+ − 12293 fi
+ − 12294
+ − 12295
163
+ − 12296 for ac_func in getpgrp
+ − 12297 do
+ − 12298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
594
+ − 12299 echo "configure:12300: checking for $ac_func" >&5
+ − 12300
+ − 12301 cat > conftest.$ac_ext <<EOF
+ − 12302 #line 12303 "configure"
163
+ − 12303 #include "confdefs.h"
+ − 12304 /* System header to define __stub macros and hopefully few prototypes,
+ − 12305 which can conflict with char $ac_func(); below. */
+ − 12306 #include <assert.h>
+ − 12307 /* Override any gcc2 internal prototype to avoid an error. */
+ − 12308 /* We use char because int might match the return type of a gcc2
+ − 12309 builtin and then its argument prototype would still apply. */
+ − 12310 char $ac_func();
+ − 12311
+ − 12312 int main() {
+ − 12313
+ − 12314 /* The GNU C library defines this for functions which it implements
+ − 12315 to always fail with ENOSYS. Some functions are actually named
+ − 12316 something starting with __ and the normal name is an alias. */
+ − 12317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 12318 choke me
+ − 12319 #else
+ − 12320 $ac_func();
+ − 12321 #endif
+ − 12322
+ − 12323 ; return 0; }
+ − 12324 EOF
594
+ − 12325 if { (eval echo configure:12326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
163
+ − 12326 rm -rf conftest*
+ − 12327 eval "ac_cv_func_$ac_func=yes"
+ − 12328 else
+ − 12329 echo "configure: failed program was:" >&5
+ − 12330 cat conftest.$ac_ext >&5
+ − 12331 rm -rf conftest*
+ − 12332 eval "ac_cv_func_$ac_func=no"
+ − 12333 fi
+ − 12334 rm -f conftest*
+ − 12335
+ − 12336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 12337 echo "$ac_t""yes" 1>&6
+ − 12338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 12339 { test "$extra_verbose" = "yes" && cat << EOF
+ − 12340 Defining $ac_tr_func
+ − 12341 EOF
+ − 12342 cat >> confdefs.h <<EOF
+ − 12343 #define $ac_tr_func 1
+ − 12344 EOF
+ − 12345 }
+ − 12346
+ − 12347 else
+ − 12348 echo "$ac_t""no" 1>&6
+ − 12349 fi
+ − 12350 done
+ − 12351
+ − 12352 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
594
+ − 12353 echo "configure:12354: checking whether getpgrp takes no argument" >&5
+ − 12354
+ − 12355 cat > conftest.$ac_ext <<EOF
+ − 12356 #line 12357 "configure"
163
+ − 12357 #include "confdefs.h"
+ − 12358
+ − 12359 /*
+ − 12360 * If this system has a BSD-style getpgrp(),
+ − 12361 * which takes a pid argument, exit unsuccessfully.
+ − 12362 *
+ − 12363 * Snarfed from Chet Ramey's bash pgrp.c test program
+ − 12364 */
+ − 12365 #include <stdio.h>
+ − 12366 #include <sys/types.h>
+ − 12367
+ − 12368 int pid;
+ − 12369 int pg1, pg2, pg3, pg4;
+ − 12370 int ng, np, s, child;
+ − 12371
+ − 12372 main()
+ − 12373 {
+ − 12374 pid = getpid();
+ − 12375 pg1 = getpgrp(0);
+ − 12376 pg2 = getpgrp();
+ − 12377 pg3 = getpgrp(pid);
+ − 12378 pg4 = getpgrp(1);
+ − 12379
+ − 12380 /*
+ − 12381 * If all of these values are the same, it's pretty sure that
+ − 12382 * we're on a system that ignores getpgrp's first argument.
+ − 12383 */
+ − 12384 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
+ − 12385 exit(0);
+ − 12386
+ − 12387 child = fork();
+ − 12388 if (child < 0)
+ − 12389 exit(1);
+ − 12390 else if (child == 0) {
+ − 12391 np = getpid();
+ − 12392 /*
+ − 12393 * If this is Sys V, this will not work; pgrp will be
+ − 12394 * set to np because setpgrp just changes a pgrp to be
+ − 12395 * the same as the pid.
+ − 12396 */
+ − 12397 setpgrp(np, pg1);
+ − 12398 ng = getpgrp(0); /* Same result for Sys V and BSD */
+ − 12399 if (ng == pg1) {
+ − 12400 exit(1);
+ − 12401 } else {
+ − 12402 exit(0);
+ − 12403 }
+ − 12404 } else {
+ − 12405 wait(&s);
+ − 12406 exit(s>>8);
+ − 12407 }
+ − 12408 }
+ − 12409
+ − 12410 EOF
594
+ − 12411 if { (eval echo configure:12412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
+ − 12412 then
+ − 12413 ac_cv_func_getpgrp_void=yes
+ − 12414 else
373
+ − 12415 conftest_rc="$?"
163
+ − 12416 echo "configure: failed program was:" >&5
+ − 12417 cat conftest.$ac_ext >&5
+ − 12418 rm -fr conftest*
+ − 12419 ac_cv_func_getpgrp_void=no
+ − 12420 fi
+ − 12421 rm -fr conftest*
+ − 12422
+ − 12423
+ − 12424 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
+ − 12425 if test $ac_cv_func_getpgrp_void = yes; then
+ − 12426 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12427 Defining GETPGRP_VOID
+ − 12428 EOF
+ − 12429 cat >> confdefs.h <<\EOF
+ − 12430 #define GETPGRP_VOID 1
+ − 12431 EOF
+ − 12432 }
+ − 12433
+ − 12434 fi
+ − 12435
+ − 12436
149
+ − 12437 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
594
+ − 12438 echo "configure:12439: checking for working mmap" >&5
155
+ − 12439 case "$opsys" in ultrix* ) have_mmap=no ;; *)
+ − 12440 cat > conftest.$ac_ext <<EOF
594
+ − 12441 #line 12442 "configure"
153
+ − 12442 #include "confdefs.h"
+ − 12443 #include <stdio.h>
+ − 12444 #include <unistd.h>
149
+ − 12445 #include <fcntl.h>
+ − 12446 #include <sys/mman.h>
+ − 12447
153
+ − 12448 #ifndef MAP_VARIABLE
+ − 12449 #define MAP_VARIABLE 0
0
+ − 12450 #endif
149
+ − 12451
153
+ − 12452 #ifndef MAP_FAILED
+ − 12453 #define MAP_FAILED -1
+ − 12454 #endif
+ − 12455
+ − 12456 int main (int argc, char *argv[])
0
+ − 12457 {
153
+ − 12458 int fd = -1;
+ − 12459 caddr_t p;
+ − 12460 #ifndef MAP_ANONYMOUS
+ − 12461 fd = open ("/dev/zero", O_RDWR);
+ − 12462 if (fd < 0)
+ − 12463 return 1;
+ − 12464 #define MAP_ANONYMOUS 0
+ − 12465 #endif
+ − 12466 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
+ − 12467 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
+ − 12468 fd, 0) != (void *) MAP_FAILED)
+ − 12469 return 0;
+ − 12470 perror ("conftest: mmap failed");
+ − 12471 return 1;
+ − 12472 }
+ − 12473 EOF
594
+ − 12474 if { (eval echo configure:12475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
+ − 12475 then
153
+ − 12476 have_mmap=yes
149
+ − 12477 else
373
+ − 12478 conftest_rc="$?"
149
+ − 12479 echo "configure: failed program was:" >&5
+ − 12480 cat conftest.$ac_ext >&5
+ − 12481 rm -fr conftest*
153
+ − 12482 have_mmap=no
149
+ − 12483 fi
155
+ − 12484 rm -fr conftest* ;;
+ − 12485 esac
153
+ − 12486 echo "$ac_t""$have_mmap" 1>&6
+ − 12487 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 12488 Defining HAVE_MMAP
+ − 12489 EOF
+ − 12490 cat >> confdefs.h <<\EOF
+ − 12491 #define HAVE_MMAP 1
+ − 12492 EOF
+ − 12493 }
+ − 12494
412
+ − 12495
535
+ − 12496 case "$opsys" in cygwin*)
462
+ − 12497 test "$rel_alloc" = "default" && rel_alloc=no ;;
+ − 12498 esac
442
+ − 12499 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
+ − 12500 if test "$rel_alloc $have_mmap" = "default yes"; then
+ − 12501 if test "$doug_lea_malloc" = "yes"; then
+ − 12502 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
594
+ − 12503 echo "configure:12504: checking for M_MMAP_THRESHOLD" >&5
442
+ − 12504 cat > conftest.$ac_ext <<EOF
594
+ − 12505 #line 12506 "configure"
442
+ − 12506 #include "confdefs.h"
+ − 12507 #include <malloc.h>
+ − 12508 int main() {
+ − 12509
+ − 12510 #ifndef M_MMAP_THRESHOLD
+ − 12511 #error No M_MMAP_THRESHOLD :-(
+ − 12512 !@+$%^&*_)(_ - unlikely to compile...
+ − 12513 #endif
+ − 12514
+ − 12515 ; return 0; }
+ − 12516 EOF
594
+ − 12517 if { (eval echo configure:12518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
+ − 12518 rm -rf conftest*
+ − 12519 rel_alloc=no; echo "$ac_t""yes" 1>&6;
+ − 12520 else
+ − 12521 echo "configure: failed program was:" >&5
+ − 12522 cat conftest.$ac_ext >&5
+ − 12523 rm -rf conftest*
+ − 12524 rel_alloc=yes; echo "$ac_t""no" 1>&6;
+ − 12525 fi
+ − 12526 rm -f conftest*
+ − 12527 else
+ − 12528 rel_alloc=yes
+ − 12529 fi
+ − 12530 fi
149
+ − 12531 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12532 Defining REL_ALLOC
+ − 12533 EOF
+ − 12534 cat >> confdefs.h <<\EOF
+ − 12535 #define REL_ALLOC 1
+ − 12536 EOF
+ − 12537 }
+ − 12538
+ − 12539
175
+ − 12540 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
+ − 12541 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
594
+ − 12542 echo "configure:12543: checking for termios.h" >&5
+ − 12543
+ − 12544 cat > conftest.$ac_ext <<EOF
+ − 12545 #line 12546 "configure"
175
+ − 12546 #include "confdefs.h"
+ − 12547 #include <termios.h>
+ − 12548 EOF
+ − 12549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 12550 { (eval echo configure:12551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 12551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
175
+ − 12552 if test -z "$ac_err"; then
+ − 12553 rm -rf conftest*
+ − 12554 eval "ac_cv_header_$ac_safe=yes"
+ − 12555 else
+ − 12556 echo "$ac_err" >&5
+ − 12557 echo "configure: failed program was:" >&5
+ − 12558 cat conftest.$ac_ext >&5
+ − 12559 rm -rf conftest*
+ − 12560 eval "ac_cv_header_$ac_safe=no"
+ − 12561 fi
+ − 12562 rm -f conftest*
+ − 12563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12564 echo "$ac_t""yes" 1>&6
+ − 12565 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12566 Defining HAVE_TERMIOS
+ − 12567 EOF
+ − 12568 cat >> confdefs.h <<\EOF
+ − 12569 #define HAVE_TERMIOS 1
+ − 12570 EOF
+ − 12571 }
+ − 12572
+ − 12573 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12574 Defining SIGNALS_VIA_CHARACTERS
+ − 12575 EOF
+ − 12576 cat >> confdefs.h <<\EOF
+ − 12577 #define SIGNALS_VIA_CHARACTERS 1
+ − 12578 EOF
+ − 12579 }
+ − 12580
+ − 12581 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12582 Defining NO_TERMIO
+ − 12583 EOF
+ − 12584 cat >> confdefs.h <<\EOF
+ − 12585 #define NO_TERMIO 1
+ − 12586 EOF
+ − 12587 }
+ − 12588
+ − 12589 else
+ − 12590 echo "$ac_t""no" 1>&6
+ − 12591 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
+ − 12592 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
594
+ − 12593 echo "configure:12594: checking for termio.h" >&5
+ − 12594
+ − 12595 cat > conftest.$ac_ext <<EOF
+ − 12596 #line 12597 "configure"
175
+ − 12597 #include "confdefs.h"
+ − 12598 #include <termio.h>
+ − 12599 EOF
+ − 12600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 12601 { (eval echo configure:12602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 12602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
175
+ − 12603 if test -z "$ac_err"; then
+ − 12604 rm -rf conftest*
+ − 12605 eval "ac_cv_header_$ac_safe=yes"
+ − 12606 else
+ − 12607 echo "$ac_err" >&5
+ − 12608 echo "configure: failed program was:" >&5
+ − 12609 cat conftest.$ac_ext >&5
+ − 12610 rm -rf conftest*
+ − 12611 eval "ac_cv_header_$ac_safe=no"
+ − 12612 fi
+ − 12613 rm -f conftest*
+ − 12614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12615 echo "$ac_t""yes" 1>&6
+ − 12616 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12617 Defining HAVE_TERMIO
+ − 12618 EOF
+ − 12619 cat >> confdefs.h <<\EOF
+ − 12620 #define HAVE_TERMIO 1
+ − 12621 EOF
+ − 12622 }
+ − 12623
+ − 12624 else
+ − 12625 echo "$ac_t""no" 1>&6
+ − 12626 fi
+ − 12627
+ − 12628 fi
+ − 12629
+ − 12630
+ − 12631
149
+ − 12632 echo $ac_n "checking for socket""... $ac_c" 1>&6
594
+ − 12633 echo "configure:12634: checking for socket" >&5
+ − 12634
+ − 12635 cat > conftest.$ac_ext <<EOF
+ − 12636 #line 12637 "configure"
149
+ − 12637 #include "confdefs.h"
+ − 12638 /* System header to define __stub macros and hopefully few prototypes,
+ − 12639 which can conflict with char socket(); below. */
+ − 12640 #include <assert.h>
+ − 12641 /* Override any gcc2 internal prototype to avoid an error. */
+ − 12642 /* We use char because int might match the return type of a gcc2
+ − 12643 builtin and then its argument prototype would still apply. */
+ − 12644 char socket();
+ − 12645
+ − 12646 int main() {
+ − 12647
0
+ − 12648 /* The GNU C library defines this for functions which it implements
+ − 12649 to always fail with ENOSYS. Some functions are actually named
+ − 12650 something starting with __ and the normal name is an alias. */
+ − 12651 #if defined (__stub_socket) || defined (__stub___socket)
+ − 12652 choke me
+ − 12653 #else
149
+ − 12654 socket();
0
+ − 12655 #endif
149
+ − 12656
0
+ − 12657 ; return 0; }
+ − 12658 EOF
594
+ − 12659 if { (eval echo configure:12660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 12660 rm -rf conftest*
+ − 12661 eval "ac_cv_func_socket=yes"
+ − 12662 else
+ − 12663 echo "configure: failed program was:" >&5
+ − 12664 cat conftest.$ac_ext >&5
+ − 12665 rm -rf conftest*
+ − 12666 eval "ac_cv_func_socket=no"
+ − 12667 fi
+ − 12668 rm -f conftest*
+ − 12669
+ − 12670 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
+ − 12671 echo "$ac_t""yes" 1>&6
+ − 12672 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
+ − 12673 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
594
+ − 12674 echo "configure:12675: checking for netinet/in.h" >&5
+ − 12675
+ − 12676 cat > conftest.$ac_ext <<EOF
+ − 12677 #line 12678 "configure"
0
+ − 12678 #include "confdefs.h"
+ − 12679 #include <netinet/in.h>
+ − 12680 EOF
149
+ − 12681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 12682 { (eval echo configure:12683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 12683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 12684 if test -z "$ac_err"; then
149
+ − 12685 rm -rf conftest*
+ − 12686 eval "ac_cv_header_$ac_safe=yes"
+ − 12687 else
+ − 12688 echo "$ac_err" >&5
+ − 12689 echo "configure: failed program was:" >&5
+ − 12690 cat conftest.$ac_ext >&5
+ − 12691 rm -rf conftest*
+ − 12692 eval "ac_cv_header_$ac_safe=no"
+ − 12693 fi
+ − 12694 rm -f conftest*
+ − 12695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12696 echo "$ac_t""yes" 1>&6
+ − 12697 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
+ − 12698 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
594
+ − 12699 echo "configure:12700: checking for arpa/inet.h" >&5
+ − 12700
+ − 12701 cat > conftest.$ac_ext <<EOF
+ − 12702 #line 12703 "configure"
0
+ − 12703 #include "confdefs.h"
+ − 12704 #include <arpa/inet.h>
+ − 12705 EOF
149
+ − 12706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 12707 { (eval echo configure:12708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 12708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 12709 if test -z "$ac_err"; then
149
+ − 12710 rm -rf conftest*
+ − 12711 eval "ac_cv_header_$ac_safe=yes"
+ − 12712 else
+ − 12713 echo "$ac_err" >&5
+ − 12714 echo "configure: failed program was:" >&5
+ − 12715 cat conftest.$ac_ext >&5
+ − 12716 rm -rf conftest*
+ − 12717 eval "ac_cv_header_$ac_safe=no"
+ − 12718 fi
+ − 12719 rm -f conftest*
+ − 12720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12721 echo "$ac_t""yes" 1>&6
0
+ − 12722
149
+ − 12723 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12724 Defining HAVE_SOCKETS
+ − 12725 EOF
+ − 12726 cat >> confdefs.h <<\EOF
+ − 12727 #define HAVE_SOCKETS 1
+ − 12728 EOF
+ − 12729 }
+ − 12730
+ − 12731 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
594
+ − 12732 echo "configure:12733: checking "for sun_len member in struct sockaddr_un"" >&5
149
+ − 12733 cat > conftest.$ac_ext <<EOF
594
+ − 12734 #line 12735 "configure"
149
+ − 12735 #include "confdefs.h"
+ − 12736
0
+ − 12737 #include <sys/types.h>
149
+ − 12738 #include <sys/socket.h>
+ − 12739 #include <sys/un.h>
+ − 12740
+ − 12741 int main() {
+ − 12742 static struct sockaddr_un x; x.sun_len = 1;
+ − 12743 ; return 0; }
+ − 12744 EOF
594
+ − 12745 if { (eval echo configure:12746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 12746 rm -rf conftest*
+ − 12747 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12748 Defining HAVE_SOCKADDR_SUN_LEN
+ − 12749 EOF
+ − 12750 cat >> confdefs.h <<\EOF
+ − 12751 #define HAVE_SOCKADDR_SUN_LEN 1
+ − 12752 EOF
+ − 12753 }
+ − 12754
+ − 12755 else
+ − 12756 echo "configure: failed program was:" >&5
+ − 12757 cat conftest.$ac_ext >&5
+ − 12758 rm -rf conftest*
+ − 12759 echo "$ac_t""no" 1>&6
+ − 12760 fi
+ − 12761 rm -f conftest*
259
+ − 12762 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
594
+ − 12763 echo "configure:12764: checking "for ip_mreq struct in netinet/in.h"" >&5
259
+ − 12764 cat > conftest.$ac_ext <<EOF
594
+ − 12765 #line 12766 "configure"
284
+ − 12766 #include "confdefs.h"
+ − 12767
+ − 12768 #include <sys/types.h>
259
+ − 12769 #include <netinet/in.h>
+ − 12770
+ − 12771 int main() {
+ − 12772 static struct ip_mreq x;
+ − 12773 ; return 0; }
+ − 12774 EOF
594
+ − 12775 if { (eval echo configure:12776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
+ − 12776 rm -rf conftest*
+ − 12777 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12778 Defining HAVE_MULTICAST
+ − 12779 EOF
+ − 12780 cat >> confdefs.h <<\EOF
+ − 12781 #define HAVE_MULTICAST 1
+ − 12782 EOF
+ − 12783 }
+ − 12784
+ − 12785 else
+ − 12786 echo "configure: failed program was:" >&5
+ − 12787 cat conftest.$ac_ext >&5
+ − 12788 rm -rf conftest*
+ − 12789 echo "$ac_t""no" 1>&6
+ − 12790 fi
+ − 12791 rm -f conftest*
149
+ − 12792 else
+ − 12793 echo "$ac_t""no" 1>&6
+ − 12794 fi
+ − 12795
+ − 12796 else
+ − 12797 echo "$ac_t""no" 1>&6
+ − 12798 fi
+ − 12799
+ − 12800 else
+ − 12801 echo "$ac_t""no" 1>&6
+ − 12802 fi
+ − 12803
+ − 12804
+ − 12805 echo $ac_n "checking for msgget""... $ac_c" 1>&6
594
+ − 12806 echo "configure:12807: checking for msgget" >&5
+ − 12807
+ − 12808 cat > conftest.$ac_ext <<EOF
+ − 12809 #line 12810 "configure"
149
+ − 12810 #include "confdefs.h"
+ − 12811 /* System header to define __stub macros and hopefully few prototypes,
+ − 12812 which can conflict with char msgget(); below. */
+ − 12813 #include <assert.h>
+ − 12814 /* Override any gcc2 internal prototype to avoid an error. */
+ − 12815 /* We use char because int might match the return type of a gcc2
+ − 12816 builtin and then its argument prototype would still apply. */
+ − 12817 char msgget();
+ − 12818
+ − 12819 int main() {
+ − 12820
0
+ − 12821 /* The GNU C library defines this for functions which it implements
+ − 12822 to always fail with ENOSYS. Some functions are actually named
+ − 12823 something starting with __ and the normal name is an alias. */
+ − 12824 #if defined (__stub_msgget) || defined (__stub___msgget)
+ − 12825 choke me
+ − 12826 #else
149
+ − 12827 msgget();
0
+ − 12828 #endif
149
+ − 12829
0
+ − 12830 ; return 0; }
+ − 12831 EOF
594
+ − 12832 if { (eval echo configure:12833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 12833 rm -rf conftest*
+ − 12834 eval "ac_cv_func_msgget=yes"
+ − 12835 else
+ − 12836 echo "configure: failed program was:" >&5
+ − 12837 cat conftest.$ac_ext >&5
+ − 12838 rm -rf conftest*
+ − 12839 eval "ac_cv_func_msgget=no"
+ − 12840 fi
+ − 12841 rm -f conftest*
+ − 12842
+ − 12843 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
+ − 12844 echo "$ac_t""yes" 1>&6
+ − 12845 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
+ − 12846 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
594
+ − 12847 echo "configure:12848: checking for sys/ipc.h" >&5
+ − 12848
+ − 12849 cat > conftest.$ac_ext <<EOF
+ − 12850 #line 12851 "configure"
0
+ − 12851 #include "confdefs.h"
+ − 12852 #include <sys/ipc.h>
+ − 12853 EOF
149
+ − 12854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 12855 { (eval echo configure:12856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 12856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 12857 if test -z "$ac_err"; then
149
+ − 12858 rm -rf conftest*
+ − 12859 eval "ac_cv_header_$ac_safe=yes"
+ − 12860 else
+ − 12861 echo "$ac_err" >&5
+ − 12862 echo "configure: failed program was:" >&5
+ − 12863 cat conftest.$ac_ext >&5
+ − 12864 rm -rf conftest*
+ − 12865 eval "ac_cv_header_$ac_safe=no"
+ − 12866 fi
+ − 12867 rm -f conftest*
+ − 12868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12869 echo "$ac_t""yes" 1>&6
+ − 12870 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
+ − 12871 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
594
+ − 12872 echo "configure:12873: checking for sys/msg.h" >&5
+ − 12873
+ − 12874 cat > conftest.$ac_ext <<EOF
+ − 12875 #line 12876 "configure"
0
+ − 12876 #include "confdefs.h"
+ − 12877 #include <sys/msg.h>
+ − 12878 EOF
149
+ − 12879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 12880 { (eval echo configure:12881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 12881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 12882 if test -z "$ac_err"; then
149
+ − 12883 rm -rf conftest*
+ − 12884 eval "ac_cv_header_$ac_safe=yes"
+ − 12885 else
+ − 12886 echo "$ac_err" >&5
+ − 12887 echo "configure: failed program was:" >&5
+ − 12888 cat conftest.$ac_ext >&5
+ − 12889 rm -rf conftest*
+ − 12890 eval "ac_cv_header_$ac_safe=no"
+ − 12891 fi
+ − 12892 rm -f conftest*
+ − 12893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12894 echo "$ac_t""yes" 1>&6
+ − 12895 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12896 Defining HAVE_SYSVIPC
+ − 12897 EOF
+ − 12898 cat >> confdefs.h <<\EOF
+ − 12899 #define HAVE_SYSVIPC 1
+ − 12900 EOF
+ − 12901 }
+ − 12902
+ − 12903 else
+ − 12904 echo "$ac_t""no" 1>&6
+ − 12905 fi
+ − 12906
+ − 12907 else
+ − 12908 echo "$ac_t""no" 1>&6
+ − 12909 fi
+ − 12910
+ − 12911 else
+ − 12912 echo "$ac_t""no" 1>&6
+ − 12913 fi
+ − 12914
+ − 12915
+ − 12916 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
+ − 12917 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
594
+ − 12918 echo "configure:12919: checking for dirent.h" >&5
+ − 12919
+ − 12920 cat > conftest.$ac_ext <<EOF
+ − 12921 #line 12922 "configure"
0
+ − 12922 #include "confdefs.h"
+ − 12923 #include <dirent.h>
+ − 12924 EOF
149
+ − 12925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 12926 { (eval echo configure:12927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 12927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 12928 if test -z "$ac_err"; then
+ − 12929 rm -rf conftest*
149
+ − 12930 eval "ac_cv_header_$ac_safe=yes"
+ − 12931 else
+ − 12932 echo "$ac_err" >&5
+ − 12933 echo "configure: failed program was:" >&5
+ − 12934 cat conftest.$ac_ext >&5
+ − 12935 rm -rf conftest*
+ − 12936 eval "ac_cv_header_$ac_safe=no"
+ − 12937 fi
+ − 12938 rm -f conftest*
+ − 12939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12940 echo "$ac_t""yes" 1>&6
+ − 12941 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12942 Defining SYSV_SYSTEM_DIR
+ − 12943 EOF
+ − 12944 cat >> confdefs.h <<\EOF
+ − 12945 #define SYSV_SYSTEM_DIR 1
+ − 12946 EOF
+ − 12947 }
+ − 12948
+ − 12949 else
+ − 12950 echo "$ac_t""no" 1>&6
+ − 12951 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
+ − 12952 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
594
+ − 12953 echo "configure:12954: checking for sys/dir.h" >&5
+ − 12954
+ − 12955 cat > conftest.$ac_ext <<EOF
+ − 12956 #line 12957 "configure"
0
+ − 12957 #include "confdefs.h"
+ − 12958 #include <sys/dir.h>
+ − 12959 EOF
149
+ − 12960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 12961 { (eval echo configure:12962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 12962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 12963 if test -z "$ac_err"; then
149
+ − 12964 rm -rf conftest*
+ − 12965 eval "ac_cv_header_$ac_safe=yes"
+ − 12966 else
+ − 12967 echo "$ac_err" >&5
+ − 12968 echo "configure: failed program was:" >&5
+ − 12969 cat conftest.$ac_ext >&5
+ − 12970 rm -rf conftest*
+ − 12971 eval "ac_cv_header_$ac_safe=no"
+ − 12972 fi
+ − 12973 rm -f conftest*
+ − 12974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 12975 echo "$ac_t""yes" 1>&6
0
+ − 12976 :
+ − 12977 else
149
+ − 12978 echo "$ac_t""no" 1>&6
+ − 12979 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 12980 Defining NONSYSTEM_DIR_LIBRARY
+ − 12981 EOF
+ − 12982 cat >> confdefs.h <<\EOF
+ − 12983 #define NONSYSTEM_DIR_LIBRARY 1
+ − 12984 EOF
+ − 12985 }
+ − 12986
+ − 12987 fi
+ − 12988
+ − 12989 fi
+ − 12990
+ − 12991
+ − 12992 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
+ − 12993 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
594
+ − 12994 echo "configure:12995: checking for nlist.h" >&5
+ − 12995
+ − 12996 cat > conftest.$ac_ext <<EOF
+ − 12997 #line 12998 "configure"
0
+ − 12998 #include "confdefs.h"
+ − 12999 #include <nlist.h>
+ − 13000 EOF
149
+ − 13001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 13002 { (eval echo configure:13003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 13004 if test -z "$ac_err"; then
+ − 13005 rm -rf conftest*
149
+ − 13006 eval "ac_cv_header_$ac_safe=yes"
+ − 13007 else
+ − 13008 echo "$ac_err" >&5
+ − 13009 echo "configure: failed program was:" >&5
+ − 13010 cat conftest.$ac_ext >&5
+ − 13011 rm -rf conftest*
+ − 13012 eval "ac_cv_header_$ac_safe=no"
+ − 13013 fi
+ − 13014 rm -f conftest*
+ − 13015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13016 echo "$ac_t""yes" 1>&6
+ − 13017 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13018 Defining NLIST_STRUCT
+ − 13019 EOF
+ − 13020 cat >> confdefs.h <<\EOF
+ − 13021 #define NLIST_STRUCT 1
+ − 13022 EOF
+ − 13023 }
+ − 13024
+ − 13025 else
+ − 13026 echo "$ac_t""no" 1>&6
+ − 13027 fi
+ − 13028
+ − 13029
0
+ − 13030
149
+ − 13031 echo "checking "for sound support"" 1>&6
594
+ − 13032 echo "configure:13033: checking "for sound support"" >&5
155
+ − 13033 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
+ − 13034
149
+ − 13035 if test "$with_native_sound" != "no"; then
155
+ − 13036 if test -n "$native_sound_lib"; then
+ − 13037 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
+ − 13038 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
594
+ − 13039 echo "configure:13040: checking for multimedia/audio_device.h" >&5
+ − 13040
+ − 13041 cat > conftest.$ac_ext <<EOF
+ − 13042 #line 13043 "configure"
155
+ − 13043 #include "confdefs.h"
+ − 13044 #include <multimedia/audio_device.h>
+ − 13045 EOF
+ − 13046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 13047 { (eval echo configure:13048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
+ − 13049 if test -z "$ac_err"; then
+ − 13050 rm -rf conftest*
+ − 13051 eval "ac_cv_header_$ac_safe=yes"
+ − 13052 else
+ − 13053 echo "$ac_err" >&5
+ − 13054 echo "configure: failed program was:" >&5
+ − 13055 cat conftest.$ac_ext >&5
+ − 13056 rm -rf conftest*
+ − 13057 eval "ac_cv_header_$ac_safe=no"
+ − 13058 fi
+ − 13059 rm -f conftest*
+ − 13060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13061 echo "$ac_t""yes" 1>&6
+ − 13062 sound_found=yes sound_cflags=""
+ − 13063 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
+ − 13064 echo " xemacs will be linked with \"sunplay.o\""
+ − 13065 fi
+ − 13066 else
+ − 13067 echo "$ac_t""no" 1>&6
+ − 13068 fi
+ − 13069
+ − 13070 fi
+ − 13071
+ − 13072 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
+ − 13073 sound_found=yes
151
+ − 13074 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
+ − 13075 echo " xemacs will be linked with \"sunplay.o\""
+ − 13076 fi
149
+ − 13077 if test -d "/usr/demo/SOUND/include"
+ − 13078 then sound_cflags="-I/usr/demo/SOUND/include"
+ − 13079 else sound_cflags="-I/usr/demo/SOUND"
+ − 13080 fi
+ − 13081 if test -z "$native_sound_lib" ; then
+ − 13082 if test -r "/usr/demo/SOUND/lib/libaudio.a"
+ − 13083 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
+ − 13084 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
+ − 13085 fi
+ − 13086 fi
155
+ − 13087 fi
+ − 13088
+ − 13089 if test -z "$sound_found"; then
+ − 13090 case "$canonical" in
149
+ − 13091 *-sgi-* )
155
+ − 13092 if test -z "$native_sound_lib"; then
+ − 13093
149
+ − 13094 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
594
+ − 13095 echo "configure:13096: checking for ALopenport in -laudio" >&5
149
+ − 13096 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
+ − 13097
+ − 13098 xe_check_libs=" -laudio "
+ − 13099 cat > conftest.$ac_ext <<EOF
594
+ − 13100 #line 13101 "configure"
149
+ − 13101 #include "confdefs.h"
+ − 13102 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13103 /* We use char because int might match the return type of a gcc2
+ − 13104 builtin and then its argument prototype would still apply. */
+ − 13105 char ALopenport();
+ − 13106
+ − 13107 int main() {
+ − 13108 ALopenport()
+ − 13109 ; return 0; }
+ − 13110 EOF
594
+ − 13111 if { (eval echo configure:13112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 13112 rm -rf conftest*
+ − 13113 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13114 else
+ − 13115 echo "configure: failed program was:" >&5
+ − 13116 cat conftest.$ac_ext >&5
+ − 13117 rm -rf conftest*
+ − 13118 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13119 fi
+ − 13120 rm -f conftest*
+ − 13121 xe_check_libs=""
+ − 13122
151
+ − 13123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 13124 echo "$ac_t""yes" 1>&6
+ − 13125 native_sound_lib="-laudio"
+ − 13126 else
+ − 13127 echo "$ac_t""no" 1>&6
+ − 13128 fi
+ − 13129
+ − 13130
155
+ − 13131 fi
+ − 13132 if test -n "$native_sound_lib"; then
+ − 13133 sound_found=yes sound_cflags=""
151
+ − 13134 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
+ − 13135 echo " xemacs will be linked with \"sgiplay.o\""
+ − 13136 fi
149
+ − 13137 fi ;;
+ − 13138 hppa*-hp-hpux* )
155
+ − 13139 if test -z "$native_sound_lib"; then
+ − 13140
149
+ − 13141 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
594
+ − 13142 echo "configure:13143: checking for AOpenAudio in -lAlib" >&5
149
+ − 13143 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
+ − 13144
+ − 13145 xe_check_libs=" -lAlib "
+ − 13146 cat > conftest.$ac_ext <<EOF
594
+ − 13147 #line 13148 "configure"
149
+ − 13148 #include "confdefs.h"
+ − 13149 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13150 /* We use char because int might match the return type of a gcc2
+ − 13151 builtin and then its argument prototype would still apply. */
+ − 13152 char AOpenAudio();
+ − 13153
+ − 13154 int main() {
+ − 13155 AOpenAudio()
+ − 13156 ; return 0; }
+ − 13157 EOF
594
+ − 13158 if { (eval echo configure:13159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 13159 rm -rf conftest*
+ − 13160 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13161 else
+ − 13162 echo "configure: failed program was:" >&5
+ − 13163 cat conftest.$ac_ext >&5
+ − 13164 rm -rf conftest*
+ − 13165 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13166 fi
+ − 13167 rm -f conftest*
+ − 13168 xe_check_libs=""
+ − 13169
151
+ − 13170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 13171 echo "$ac_t""yes" 1>&6
+ − 13172 native_sound_lib="-lAlib"
+ − 13173 else
+ − 13174 echo "$ac_t""no" 1>&6
+ − 13175 fi
+ − 13176
+ − 13177
155
+ − 13178 fi
+ − 13179 if test -n "$native_sound_lib"; then
+ − 13180 sound_found=yes
151
+ − 13181 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
+ − 13182 echo " xemacs will be linked with \"hpplay.o\""
+ − 13183 fi
169
+ − 13184 if test "$GCC" = "yes" # Kludge city
149
+ − 13185 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
+ − 13186 else sound_cflags="+e -I/usr/audio/examples"
+ − 13187 fi
+ − 13188 fi ;;
0
+ − 13189 esac
+ − 13190 fi
149
+ − 13191
155
+ − 13192 if test -z "$sound_found"; then
553
+ − 13193 if test "$with_msw" = "yes"; then
594
+ − 13194 sound_found=yes
+ − 13195 native_sound_lib=
+ − 13196 extra_objs="$extra_objs ntplay.o" && if test "$extra_verbose" = "yes"; then
+ − 13197 echo " xemacs will be linked with \"ntplay.o\""
+ − 13198 fi
553
+ − 13199 fi
+ − 13200 fi
+ − 13201
+ − 13202 if test -z "$sound_found"; then
149
+ − 13203 for dir in "machine" "sys" "linux"; do
+ − 13204 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
+ − 13205 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
594
+ − 13206 echo "configure:13207: checking for ${dir}/soundcard.h" >&5
+ − 13207
+ − 13208 cat > conftest.$ac_ext <<EOF
+ − 13209 #line 13210 "configure"
149
+ − 13210 #include "confdefs.h"
+ − 13211 #include <${dir}/soundcard.h>
+ − 13212 EOF
+ − 13213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 13214 { (eval echo configure:13215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 13216 if test -z "$ac_err"; then
+ − 13217 rm -rf conftest*
+ − 13218 eval "ac_cv_header_$ac_safe=yes"
+ − 13219 else
+ − 13220 echo "$ac_err" >&5
+ − 13221 echo "configure: failed program was:" >&5
+ − 13222 cat conftest.$ac_ext >&5
+ − 13223 rm -rf conftest*
+ − 13224 eval "ac_cv_header_$ac_safe=no"
+ − 13225 fi
+ − 13226 rm -f conftest*
+ − 13227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13228 echo "$ac_t""yes" 1>&6
+ − 13229 sound_found=yes
426
+ − 13230 need_miscplay=yes
151
+ − 13231 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
+ − 13232 echo " xemacs will be linked with \"linuxplay.o\""
+ − 13233 fi
149
+ − 13234 { test "$extra_verbose" = "yes" && cat << EOF
442
+ − 13235 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
+ − 13236 EOF
+ − 13237 cat >> confdefs.h <<EOF
+ − 13238 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
149
+ − 13239 EOF
+ − 13240 }
+ − 13241
+ − 13242 break
+ − 13243 else
+ − 13244 echo "$ac_t""no" 1>&6
+ − 13245 fi
+ − 13246
+ − 13247 done
100
+ − 13248 fi
149
+ − 13249
+ − 13250 test "$sound_found" = "yes" && with_native_sound=yes
+ − 13251 fi
+ − 13252
+ − 13253 if test "$with_native_sound" = "yes"; then
+ − 13254 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13255 Defining HAVE_NATIVE_SOUND
+ − 13256 EOF
+ − 13257 cat >> confdefs.h <<\EOF
+ − 13258 #define HAVE_NATIVE_SOUND 1
+ − 13259 EOF
+ − 13260 }
+ − 13261
151
+ − 13262 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
+ − 13263 fi
+ − 13264
432
+ − 13265 if test "$with_nas_sound" != "no"; then
+ − 13266 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
+ − 13267 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
594
+ − 13268 echo "configure:13269: checking for audio/audiolib.h" >&5
+ − 13269
+ − 13270 cat > conftest.$ac_ext <<EOF
+ − 13271 #line 13272 "configure"
432
+ − 13272 #include "confdefs.h"
+ − 13273 #include <audio/audiolib.h>
+ − 13274 EOF
+ − 13275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 13276 { (eval echo configure:13277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
432
+ − 13277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ − 13278 if test -z "$ac_err"; then
+ − 13279 rm -rf conftest*
+ − 13280 eval "ac_cv_header_$ac_safe=yes"
+ − 13281 else
+ − 13282 echo "$ac_err" >&5
+ − 13283 echo "configure: failed program was:" >&5
+ − 13284 cat conftest.$ac_ext >&5
+ − 13285 rm -rf conftest*
+ − 13286 eval "ac_cv_header_$ac_safe=no"
+ − 13287 fi
+ − 13288 rm -f conftest*
+ − 13289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13290 echo "$ac_t""yes" 1>&6
+ − 13291
+ − 13292
+ − 13293 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
594
+ − 13294 echo "configure:13295: checking for AuOpenServer in -laudio" >&5
432
+ − 13295 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
+ − 13296
+ − 13297 xe_check_libs=" -laudio "
+ − 13298 cat > conftest.$ac_ext <<EOF
594
+ − 13299 #line 13300 "configure"
432
+ − 13300 #include "confdefs.h"
+ − 13301 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13302 /* We use char because int might match the return type of a gcc2
+ − 13303 builtin and then its argument prototype would still apply. */
+ − 13304 char AuOpenServer();
+ − 13305
+ − 13306 int main() {
+ − 13307 AuOpenServer()
+ − 13308 ; return 0; }
+ − 13309 EOF
594
+ − 13310 if { (eval echo configure:13311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
432
+ − 13311 rm -rf conftest*
+ − 13312 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13313 else
+ − 13314 echo "configure: failed program was:" >&5
+ − 13315 cat conftest.$ac_ext >&5
+ − 13316 rm -rf conftest*
+ − 13317 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13318 fi
+ − 13319 rm -f conftest*
+ − 13320 xe_check_libs=""
+ − 13321
+ − 13322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 13323 echo "$ac_t""yes" 1>&6
+ − 13324 have_nas_sound=yes
+ − 13325 else
+ − 13326 echo "$ac_t""no" 1>&6
+ − 13327 fi
+ − 13328
+ − 13329
+ − 13330 else
+ − 13331 echo "$ac_t""no" 1>&6
+ − 13332 fi
+ − 13333
+ − 13334 if test "$have_nas_sound" = "yes"; then
+ − 13335 with_nas_sound=yes
+ − 13336 { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 13337 Defining HAVE_NAS_SOUND
+ − 13338 EOF
+ − 13339 cat >> confdefs.h <<\EOF
+ − 13340 #define HAVE_NAS_SOUND 1
+ − 13341 EOF
+ − 13342 }
+ − 13343
432
+ − 13344 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
151
+ − 13345 echo " xemacs will be linked with \"nas.o\""
+ − 13346 fi
432
+ − 13347 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
+ − 13348 cat > conftest.$ac_ext <<EOF
594
+ − 13349 #line 13350 "configure"
149
+ − 13350 #include "confdefs.h"
+ − 13351 #include <audio/Xtutil.h>
+ − 13352 EOF
+ − 13353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 13354 egrep "AuXtErrorJump" >/dev/null 2>&1; then
+ − 13355 :
+ − 13356 else
+ − 13357 rm -rf conftest*
432
+ − 13358 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 13359 Defining NAS_NO_ERROR_JUMP
+ − 13360 EOF
+ − 13361 cat >> confdefs.h <<\EOF
+ − 13362 #define NAS_NO_ERROR_JUMP 1
+ − 13363 EOF
+ − 13364 }
+ − 13365
+ − 13366 fi
+ − 13367 rm -f conftest*
+ − 13368
432
+ − 13369 else
+ − 13370 test "$with_nas_sound" = "yes" && \
+ − 13371 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
+ − 13372 with_nas_sound=no
+ − 13373 fi
+ − 13374 fi
+ − 13375
+ − 13376 if test "$with_esd_sound" != "no"; then
+ − 13377 # Extract the first word of "esd-config", so it can be a program name with args.
426
+ − 13378 set dummy esd-config; ac_word=$2
+ − 13379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
594
+ − 13380 echo "configure:13381: checking for $ac_word" >&5
426
+ − 13381
+ − 13382 if test -n "$have_esd_config"; then
+ − 13383 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
+ − 13384 else
+ − 13385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ − 13386 ac_dummy="$PATH"
+ − 13387 for ac_dir in $ac_dummy; do
+ − 13388 test -z "$ac_dir" && ac_dir=.
+ − 13389 if test -f $ac_dir/$ac_word; then
+ − 13390 ac_cv_prog_have_esd_config="yes"
+ − 13391 break
+ − 13392 fi
+ − 13393 done
+ − 13394 IFS="$ac_save_ifs"
+ − 13395 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
+ − 13396 fi
+ − 13397 have_esd_config="$ac_cv_prog_have_esd_config"
+ − 13398 if test -n "$have_esd_config"; then
+ − 13399 echo "$ac_t""$have_esd_config" 1>&6
+ − 13400 else
+ − 13401 echo "$ac_t""no" 1>&6
+ − 13402 fi
+ − 13403
432
+ − 13404 if test "$have_esd_config" = "yes"; then
+ − 13405 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
+ − 13406 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
+ − 13407 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
+ − 13408 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
594
+ − 13409 echo "configure:13410: checking for esd_play_stream" >&5
+ − 13410
+ − 13411 cat > conftest.$ac_ext <<EOF
+ − 13412 #line 13413 "configure"
432
+ − 13413 #include "confdefs.h"
+ − 13414 /* System header to define __stub macros and hopefully few prototypes,
+ − 13415 which can conflict with char esd_play_stream(); below. */
+ − 13416 #include <assert.h>
+ − 13417 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13418 /* We use char because int might match the return type of a gcc2
+ − 13419 builtin and then its argument prototype would still apply. */
+ − 13420 char esd_play_stream();
+ − 13421
+ − 13422 int main() {
+ − 13423
+ − 13424 /* The GNU C library defines this for functions which it implements
+ − 13425 to always fail with ENOSYS. Some functions are actually named
+ − 13426 something starting with __ and the normal name is an alias. */
+ − 13427 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
+ − 13428 choke me
+ − 13429 #else
+ − 13430 esd_play_stream();
+ − 13431 #endif
+ − 13432
+ − 13433 ; return 0; }
+ − 13434 EOF
594
+ − 13435 if { (eval echo configure:13436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
432
+ − 13436 rm -rf conftest*
+ − 13437 eval "ac_cv_func_esd_play_stream=yes"
+ − 13438 else
+ − 13439 echo "configure: failed program was:" >&5
+ − 13440 cat conftest.$ac_ext >&5
+ − 13441 rm -rf conftest*
+ − 13442 eval "ac_cv_func_esd_play_stream=no"
+ − 13443 fi
+ − 13444 rm -f conftest*
+ − 13445
+ − 13446 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
+ − 13447 echo "$ac_t""yes" 1>&6
+ − 13448 have_esd_sound=yes
+ − 13449 else
+ − 13450 echo "$ac_t""no" 1>&6
+ − 13451 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
+ − 13452 fi
+ − 13453
+ − 13454 fi
+ − 13455
+ − 13456 if test "$have_esd_sound" = "yes"; then
+ − 13457 with_esd_sound=yes
+ − 13458 need_miscplay=yes
+ − 13459 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
+ − 13460 echo " xemacs will be linked with \"esd.o\""
+ − 13461 fi
426
+ − 13462 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13463 Defining HAVE_ESD_SOUND
+ − 13464 EOF
+ − 13465 cat >> confdefs.h <<\EOF
+ − 13466 #define HAVE_ESD_SOUND 1
+ − 13467 EOF
+ − 13468 }
+ − 13469
432
+ − 13470 else
+ − 13471 test "$with_esd_sound" = "yes" && \
+ − 13472 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
+ − 13473 with_esd_sound=no
+ − 13474 fi
+ − 13475 fi
+ − 13476
+ − 13477 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
426
+ − 13478 echo " xemacs will be linked with \"miscplay.o\""
+ − 13479 fi
149
+ − 13480
+ − 13481
+ − 13482 test -z "$with_tty" && with_tty=yes
+ − 13483
+ − 13484 if test "$with_tty" = "yes" ; then
151
+ − 13485 echo "checking for TTY-related features" 1>&6
594
+ − 13486 echo "configure:13487: checking for TTY-related features" >&5
149
+ − 13487 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13488 Defining HAVE_TTY
+ − 13489 EOF
+ − 13490 cat >> confdefs.h <<\EOF
+ − 13491 #define HAVE_TTY 1
+ − 13492 EOF
+ − 13493 }
+ − 13494
151
+ − 13495 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
+ − 13496 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\""
+ − 13497 fi
149
+ − 13498
+ − 13499 if test -z "$with_ncurses"; then
70
+ − 13500
151
+ − 13501 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
594
+ − 13502 echo "configure:13503: checking for tgetent in -lncurses" >&5
151
+ − 13503 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
149
+ − 13504
+ − 13505 xe_check_libs=" -lncurses "
+ − 13506 cat > conftest.$ac_ext <<EOF
594
+ − 13507 #line 13508 "configure"
149
+ − 13508 #include "confdefs.h"
+ − 13509 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13510 /* We use char because int might match the return type of a gcc2
+ − 13511 builtin and then its argument prototype would still apply. */
151
+ − 13512 char tgetent();
149
+ − 13513
+ − 13514 int main() {
151
+ − 13515 tgetent()
149
+ − 13516 ; return 0; }
+ − 13517 EOF
594
+ − 13518 if { (eval echo configure:13519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 13519 rm -rf conftest*
+ − 13520 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13521 else
+ − 13522 echo "configure: failed program was:" >&5
+ − 13523 cat conftest.$ac_ext >&5
+ − 13524 rm -rf conftest*
+ − 13525 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13526 fi
+ − 13527 rm -f conftest*
+ − 13528 xe_check_libs=""
+ − 13529
151
+ − 13530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 13531 echo "$ac_t""yes" 1>&6
+ − 13532 with_ncurses=yes
+ − 13533 else
+ − 13534 echo "$ac_t""no" 1>&6
+ − 13535 with_ncurses=no
+ − 13536 fi
+ − 13537
+ − 13538
+ − 13539 fi
+ − 13540 if test "$with_ncurses" = "yes"; then
+ − 13541 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13542 Defining HAVE_NCURSES
+ − 13543 EOF
+ − 13544 cat >> confdefs.h <<\EOF
+ − 13545 #define HAVE_NCURSES 1
+ − 13546 EOF
+ − 13547 }
+ − 13548
+ − 13549 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
+ − 13550 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
594
+ − 13551 echo "configure:13552: checking for ncurses/curses.h" >&5
+ − 13552
+ − 13553 cat > conftest.$ac_ext <<EOF
+ − 13554 #line 13555 "configure"
149
+ − 13555 #include "confdefs.h"
+ − 13556 #include <ncurses/curses.h>
+ − 13557 EOF
+ − 13558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 13559 { (eval echo configure:13560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
+ − 13561 if test -z "$ac_err"; then
+ − 13562 rm -rf conftest*
+ − 13563 eval "ac_cv_header_$ac_safe=yes"
+ − 13564 else
+ − 13565 echo "$ac_err" >&5
+ − 13566 echo "configure: failed program was:" >&5
+ − 13567 cat conftest.$ac_ext >&5
+ − 13568 rm -rf conftest*
+ − 13569 eval "ac_cv_header_$ac_safe=no"
+ − 13570 fi
+ − 13571 rm -f conftest*
+ − 13572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13573 echo "$ac_t""yes" 1>&6
442
+ − 13574 curses_h_file=ncurses/curses.h
149
+ − 13575 else
+ − 13576 echo "$ac_t""no" 1>&6
+ − 13577 fi
+ − 13578
+ − 13579 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
+ − 13580 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
594
+ − 13581 echo "configure:13582: checking for ncurses/term.h" >&5
+ − 13582
+ − 13583 cat > conftest.$ac_ext <<EOF
+ − 13584 #line 13585 "configure"
0
+ − 13585 #include "confdefs.h"
+ − 13586 #include <ncurses/term.h>
+ − 13587 EOF
149
+ − 13588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 13589 { (eval echo configure:13590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 13591 if test -z "$ac_err"; then
+ − 13592 rm -rf conftest*
149
+ − 13593 eval "ac_cv_header_$ac_safe=yes"
+ − 13594 else
+ − 13595 echo "$ac_err" >&5
+ − 13596 echo "configure: failed program was:" >&5
+ − 13597 cat conftest.$ac_ext >&5
+ − 13598 rm -rf conftest*
+ − 13599 eval "ac_cv_header_$ac_safe=no"
+ − 13600 fi
+ − 13601 rm -f conftest*
+ − 13602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13603 echo "$ac_t""yes" 1>&6
442
+ − 13604 term_h_file=ncurses/term.h
149
+ − 13605 else
+ − 13606 echo "$ac_t""no" 1>&6
+ − 13607 fi
+ − 13608
151
+ − 13609 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
+ − 13610 echo " xemacs will be linked with \"terminfo.o\""
+ − 13611 fi
+ − 13612 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
149
+ − 13613
153
+ − 13614 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
149
+ − 13615 save_c_switch_site="$c_switch_site"
+ − 13616 c_switch_site="$c_switch_site -I/usr/include/ncurses"
+ − 13617 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
+ − 13618 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
594
+ − 13619 echo "configure:13620: checking for ncurses/curses.h" >&5
+ − 13620
+ − 13621 cat > conftest.$ac_ext <<EOF
+ − 13622 #line 13623 "configure"
0
+ − 13623 #include "confdefs.h"
+ − 13624 #include <ncurses/curses.h>
+ − 13625 EOF
149
+ − 13626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 13627 { (eval echo configure:13628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
+ − 13629 if test -z "$ac_err"; then
+ − 13630 rm -rf conftest*
149
+ − 13631 eval "ac_cv_header_$ac_safe=yes"
+ − 13632 else
+ − 13633 echo "$ac_err" >&5
+ − 13634 echo "configure: failed program was:" >&5
+ − 13635 cat conftest.$ac_ext >&5
+ − 13636 rm -rf conftest*
+ − 13637 eval "ac_cv_header_$ac_safe=no"
+ − 13638 fi
+ − 13639 rm -f conftest*
+ − 13640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13641 echo "$ac_t""yes" 1>&6
442
+ − 13642 curses_h_file=ncurses/curses.h
149
+ − 13643 else
+ − 13644 echo "$ac_t""no" 1>&6
+ − 13645 fi
+ − 13646
153
+ − 13647 if test "$ac_cv_header_ncurses_curses_h" = "yes"
561
+ − 13648 then echo "configure: warning: Your system has the bogus ncurses include bug." 1>&2
149
+ − 13649 else c_switch_site="$save_c_switch_site"
+ − 13650 fi
+ − 13651 fi
151
+ − 13652 else if test "$have_terminfo" = "yes"; then
+ − 13653 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
+ − 13654 echo " xemacs will be linked with \"terminfo.o\""
+ − 13655 fi
+ − 13656 if test -n "$libs_termcap"; then
+ − 13657 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
+ − 13658 else
+ − 13659 for lib in curses termlib termcap; do
+ − 13660
+ − 13661 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
594
+ − 13662 echo "configure:13663: checking for tgetent in -l$lib" >&5
151
+ − 13663 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
+ − 13664
+ − 13665 xe_check_libs=" -l$lib "
+ − 13666 cat > conftest.$ac_ext <<EOF
594
+ − 13667 #line 13668 "configure"
149
+ − 13668 #include "confdefs.h"
+ − 13669 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13670 /* We use char because int might match the return type of a gcc2
+ − 13671 builtin and then its argument prototype would still apply. */
151
+ − 13672 char tgetent();
149
+ − 13673
+ − 13674 int main() {
151
+ − 13675 tgetent()
149
+ − 13676 ; return 0; }
+ − 13677 EOF
594
+ − 13678 if { (eval echo configure:13679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 13679 rm -rf conftest*
+ − 13680 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13681 else
+ − 13682 echo "configure: failed program was:" >&5
+ − 13683 cat conftest.$ac_ext >&5
+ − 13684 rm -rf conftest*
+ − 13685 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13686 fi
+ − 13687 rm -f conftest*
+ − 13688 xe_check_libs=""
+ − 13689
151
+ − 13690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 13691 echo "$ac_t""yes" 1>&6
+ − 13692 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
+ − 13693 else
+ − 13694 echo "$ac_t""no" 1>&6
+ − 13695 fi
+ − 13696
+ − 13697
+ − 13698 done
+ − 13699 fi
+ − 13700 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
+ − 13701 echo " xemacs will be linked with \"tparam.o\""
+ − 13702 fi
+ − 13703 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
+ − 13704 if test -n "$libs_termcap"; then
+ − 13705 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
+ − 13706 else
+ − 13707
+ − 13708 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
594
+ − 13709 echo "configure:13710: checking for tgetent in -lcurses" >&5
151
+ − 13710 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
+ − 13711
+ − 13712 xe_check_libs=" -lcurses "
+ − 13713 cat > conftest.$ac_ext <<EOF
594
+ − 13714 #line 13715 "configure"
149
+ − 13715 #include "confdefs.h"
+ − 13716 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13717 /* We use char because int might match the return type of a gcc2
+ − 13718 builtin and then its argument prototype would still apply. */
151
+ − 13719 char tgetent();
149
+ − 13720
+ − 13721 int main() {
151
+ − 13722 tgetent()
149
+ − 13723 ; return 0; }
+ − 13724 EOF
594
+ − 13725 if { (eval echo configure:13726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 13726 rm -rf conftest*
+ − 13727 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13728 else
+ − 13729 echo "configure: failed program was:" >&5
+ − 13730 cat conftest.$ac_ext >&5
+ − 13731 rm -rf conftest*
+ − 13732 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13733 fi
+ − 13734 rm -f conftest*
+ − 13735 xe_check_libs=""
+ − 13736
151
+ − 13737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 13738 echo "$ac_t""yes" 1>&6
+ − 13739 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
+ − 13740 else
+ − 13741 echo "$ac_t""no" 1>&6
+ − 13742 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
594
+ − 13743 echo "configure:13744: checking for tgetent in -ltermcap" >&5
151
+ − 13744 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
+ − 13745
+ − 13746 xe_check_libs=" -ltermcap "
+ − 13747 cat > conftest.$ac_ext <<EOF
594
+ − 13748 #line 13749 "configure"
149
+ − 13749 #include "confdefs.h"
+ − 13750 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13751 /* We use char because int might match the return type of a gcc2
+ − 13752 builtin and then its argument prototype would still apply. */
151
+ − 13753 char tgetent();
149
+ − 13754
+ − 13755 int main() {
151
+ − 13756 tgetent()
149
+ − 13757 ; return 0; }
+ − 13758 EOF
594
+ − 13759 if { (eval echo configure:13760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 13760 rm -rf conftest*
+ − 13761 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13762 else
+ − 13763 echo "configure: failed program was:" >&5
+ − 13764 cat conftest.$ac_ext >&5
+ − 13765 rm -rf conftest*
+ − 13766 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13767 fi
+ − 13768 rm -f conftest*
+ − 13769 xe_check_libs=""
+ − 13770
151
+ − 13771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 13772 echo "$ac_t""yes" 1>&6
+ − 13773 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
+ − 13774 else
+ − 13775 echo "$ac_t""no" 1>&6
+ − 13776 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
+ − 13777 echo " xemacs will be linked with \"termcap.o\""
+ − 13778 fi
+ − 13779 fi
+ − 13780
+ − 13781
+ − 13782 fi
+ − 13783
+ − 13784
0
+ − 13785 fi
+ − 13786 fi
149
+ − 13787 fi
+ − 13788 { test "$extra_verbose" = "yes" && cat << EOF
442
+ − 13789 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
+ − 13790 EOF
+ − 13791 cat >> confdefs.h <<EOF
+ − 13792 #define CURSES_H_FILE "${curses_h_file-curses.h}"
149
+ − 13793 EOF
+ − 13794 }
+ − 13795
+ − 13796 { test "$extra_verbose" = "yes" && cat << EOF
442
+ − 13797 Defining TERM_H_FILE = "${term_h_file-term.h}"
+ − 13798 EOF
+ − 13799 cat >> confdefs.h <<EOF
+ − 13800 #define TERM_H_FILE "${term_h_file-term.h}"
149
+ − 13801 EOF
+ − 13802 }
+ − 13803
155
+ − 13804
+ − 13805 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
+ − 13806 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
594
+ − 13807 echo "configure:13808: checking for gpm.h" >&5
+ − 13808
+ − 13809 cat > conftest.$ac_ext <<EOF
+ − 13810 #line 13811 "configure"
155
+ − 13811 #include "confdefs.h"
+ − 13812 #include <gpm.h>
+ − 13813 EOF
+ − 13814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 13815 { (eval echo configure:13816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
+ − 13817 if test -z "$ac_err"; then
+ − 13818 rm -rf conftest*
+ − 13819 eval "ac_cv_header_$ac_safe=yes"
+ − 13820 else
+ − 13821 echo "$ac_err" >&5
+ − 13822 echo "configure: failed program was:" >&5
+ − 13823 cat conftest.$ac_ext >&5
+ − 13824 rm -rf conftest*
+ − 13825 eval "ac_cv_header_$ac_safe=no"
+ − 13826 fi
+ − 13827 rm -f conftest*
+ − 13828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13829 echo "$ac_t""yes" 1>&6
+ − 13830 :
+ − 13831 else
+ − 13832 echo "$ac_t""no" 1>&6
+ − 13833 with_gpm=no
+ − 13834 fi
+ − 13835 }
+ − 13836 test -z "$with_gpm" && {
+ − 13837 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
594
+ − 13838 echo "configure:13839: checking for Gpm_Open in -lgpm" >&5
155
+ − 13839 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
+ − 13840
+ − 13841 xe_check_libs=" -lgpm "
+ − 13842 cat > conftest.$ac_ext <<EOF
594
+ − 13843 #line 13844 "configure"
155
+ − 13844 #include "confdefs.h"
+ − 13845 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13846 /* We use char because int might match the return type of a gcc2
+ − 13847 builtin and then its argument prototype would still apply. */
+ − 13848 char Gpm_Open();
+ − 13849
+ − 13850 int main() {
+ − 13851 Gpm_Open()
+ − 13852 ; return 0; }
+ − 13853 EOF
594
+ − 13854 if { (eval echo configure:13855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
155
+ − 13855 rm -rf conftest*
+ − 13856 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13857 else
+ − 13858 echo "configure: failed program was:" >&5
+ − 13859 cat conftest.$ac_ext >&5
+ − 13860 rm -rf conftest*
+ − 13861 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13862 fi
+ − 13863 rm -f conftest*
+ − 13864 xe_check_libs=""
+ − 13865
+ − 13866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 13867 echo "$ac_t""yes" 1>&6
+ − 13868 with_gpm=yes
+ − 13869 else
+ − 13870 echo "$ac_t""no" 1>&6
+ − 13871 with_gpm=no
+ − 13872 fi
+ − 13873
+ − 13874 }
+ − 13875 if test "$with_gpm" = "yes"; then
+ − 13876 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 13877 Defining HAVE_GPM
+ − 13878 EOF
+ − 13879 cat >> confdefs.h <<\EOF
+ − 13880 #define HAVE_GPM 1
+ − 13881 EOF
+ − 13882 }
+ − 13883
+ − 13884 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
+ − 13885 echo " xemacs will be linked with \"gpmevent.o\""
+ − 13886 fi
+ − 13887 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
+ − 13888 fi
+ − 13889
151
+ − 13890 else for feature in ncurses gpm; do
149
+ − 13891 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
561
+ − 13892 echo "configure: warning: --with-${feature} ignored: Not valid without TTY support" 1>&2
149
+ − 13893 fi
+ − 13894 eval "with_${feature}=no"
+ − 13895 done
151
+ − 13896 fi
163
+ − 13897 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
+ − 13898 echo " xemacs will be linked with \"event-unixoid.o\""
+ − 13899 fi
+ − 13900
149
+ − 13901
426
+ − 13902 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
384
+ − 13903 != "no no no" && echo "checking for database support" 1>&6
594
+ − 13904 echo "configure:13905: checking for database support" >&5
426
+ − 13905
+ − 13906 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
384
+ − 13907 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
+ − 13908 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
594
+ − 13909 echo "configure:13910: checking for ndbm.h" >&5
+ − 13910
+ − 13911 cat > conftest.$ac_ext <<EOF
+ − 13912 #line 13913 "configure"
384
+ − 13913 #include "confdefs.h"
+ − 13914 #include <ndbm.h>
265
+ − 13915 EOF
+ − 13916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 13917 { (eval echo configure:13918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 13918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
265
+ − 13919 if test -z "$ac_err"; then
+ − 13920 rm -rf conftest*
+ − 13921 eval "ac_cv_header_$ac_safe=yes"
+ − 13922 else
+ − 13923 echo "$ac_err" >&5
+ − 13924 echo "configure: failed program was:" >&5
+ − 13925 cat conftest.$ac_ext >&5
+ − 13926 rm -rf conftest*
+ − 13927 eval "ac_cv_header_$ac_safe=no"
+ − 13928 fi
+ − 13929 rm -f conftest*
+ − 13930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 13931 echo "$ac_t""yes" 1>&6
384
+ − 13932 :
+ − 13933 else
+ − 13934 echo "$ac_t""no" 1>&6
+ − 13935
426
+ − 13936 test "$with_database_gdbm" = "yes" -o \
+ − 13937 "$with_database_dbm" = "yes" && \
384
+ − 13938 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
426
+ − 13939 with_database_gdbm=no with_database_dbm=no
+ − 13940 fi
+ − 13941
+ − 13942 fi
+ − 13943
+ − 13944 if test "$with_database_gdbm" != "no"; then
384
+ − 13945
149
+ − 13946 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
594
+ − 13947 echo "configure:13948: checking for dbm_open in -lgdbm" >&5
149
+ − 13948 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
+ − 13949
+ − 13950 xe_check_libs=" -lgdbm "
+ − 13951 cat > conftest.$ac_ext <<EOF
594
+ − 13952 #line 13953 "configure"
149
+ − 13953 #include "confdefs.h"
+ − 13954 /* Override any gcc2 internal prototype to avoid an error. */
+ − 13955 /* We use char because int might match the return type of a gcc2
+ − 13956 builtin and then its argument prototype would still apply. */
+ − 13957 char dbm_open();
+ − 13958
+ − 13959 int main() {
+ − 13960 dbm_open()
+ − 13961 ; return 0; }
+ − 13962 EOF
594
+ − 13963 if { (eval echo configure:13964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 13964 rm -rf conftest*
+ − 13965 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 13966 else
+ − 13967 echo "configure: failed program was:" >&5
+ − 13968 cat conftest.$ac_ext >&5
+ − 13969 rm -rf conftest*
+ − 13970 eval "ac_cv_lib_$ac_lib_var=no"
+ − 13971 fi
+ − 13972 rm -f conftest*
+ − 13973 xe_check_libs=""
+ − 13974
151
+ − 13975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 13976 echo "$ac_t""yes" 1>&6
426
+ − 13977 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
+ − 13978 else
+ − 13979 echo "$ac_t""no" 1>&6
+ − 13980 if test "$with_database_gdbm" = "yes"; then
384
+ − 13981 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
+ − 13982 fi
426
+ − 13983 with_database_gdbm=no
384
+ − 13984 fi
+ − 13985
+ − 13986
149
+ − 13987 fi
+ − 13988
151
+ − 13989 if test "$with_database_dbm" != "no"; then
149
+ − 13990 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
594
+ − 13991 echo "configure:13992: checking for dbm_open" >&5
+ − 13992
+ − 13993 cat > conftest.$ac_ext <<EOF
+ − 13994 #line 13995 "configure"
149
+ − 13995 #include "confdefs.h"
+ − 13996 /* System header to define __stub macros and hopefully few prototypes,
+ − 13997 which can conflict with char dbm_open(); below. */
+ − 13998 #include <assert.h>
+ − 13999 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14000 /* We use char because int might match the return type of a gcc2
+ − 14001 builtin and then its argument prototype would still apply. */
+ − 14002 char dbm_open();
+ − 14003
+ − 14004 int main() {
+ − 14005
+ − 14006 /* The GNU C library defines this for functions which it implements
+ − 14007 to always fail with ENOSYS. Some functions are actually named
+ − 14008 something starting with __ and the normal name is an alias. */
+ − 14009 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
+ − 14010 choke me
+ − 14011 #else
+ − 14012 dbm_open();
+ − 14013 #endif
+ − 14014
+ − 14015 ; return 0; }
+ − 14016 EOF
594
+ − 14017 if { (eval echo configure:14018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 14018 rm -rf conftest*
+ − 14019 eval "ac_cv_func_dbm_open=yes"
+ − 14020 else
+ − 14021 echo "configure: failed program was:" >&5
+ − 14022 cat conftest.$ac_ext >&5
+ − 14023 rm -rf conftest*
+ − 14024 eval "ac_cv_func_dbm_open=no"
+ − 14025 fi
+ − 14026 rm -f conftest*
+ − 14027
+ − 14028 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
+ − 14029 echo "$ac_t""yes" 1>&6
384
+ − 14030 with_database_dbm=yes libdbm=
+ − 14031 else
+ − 14032 echo "$ac_t""no" 1>&6
+ − 14033
149
+ − 14034
+ − 14035 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
594
+ − 14036 echo "configure:14037: checking for dbm_open in -ldbm" >&5
149
+ − 14037 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
+ − 14038
+ − 14039 xe_check_libs=" -ldbm "
+ − 14040 cat > conftest.$ac_ext <<EOF
594
+ − 14041 #line 14042 "configure"
149
+ − 14042 #include "confdefs.h"
+ − 14043 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14044 /* We use char because int might match the return type of a gcc2
+ − 14045 builtin and then its argument prototype would still apply. */
+ − 14046 char dbm_open();
+ − 14047
+ − 14048 int main() {
+ − 14049 dbm_open()
+ − 14050 ; return 0; }
+ − 14051 EOF
594
+ − 14052 if { (eval echo configure:14053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 14053 rm -rf conftest*
+ − 14054 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14055 else
+ − 14056 echo "configure: failed program was:" >&5
+ − 14057 cat conftest.$ac_ext >&5
+ − 14058 rm -rf conftest*
+ − 14059 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14060 fi
+ − 14061 rm -f conftest*
+ − 14062 xe_check_libs=""
+ − 14063
151
+ − 14064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 14065 echo "$ac_t""yes" 1>&6
384
+ − 14066 with_database_dbm=yes libdbm=-ldbm
+ − 14067 else
+ − 14068 echo "$ac_t""no" 1>&6
+ − 14069 test "$with_database_dbm" = "yes" && \
+ − 14070 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
+ − 14071 with_database_dbm=no
+ − 14072 fi
+ − 14073
+ − 14074
+ − 14075 fi
+ − 14076
+ − 14077 fi
+ − 14078
+ − 14079 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
426
+ − 14080 test "$with_database_gdbm" = "yes" -o \
+ − 14081 "$with_database_dbm" = "yes" && \
384
+ − 14082 { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 14083 Defining HAVE_DBM
+ − 14084 EOF
+ − 14085 cat >> confdefs.h <<\EOF
+ − 14086 #define HAVE_DBM 1
+ − 14087 EOF
+ − 14088 }
+ − 14089
+ − 14090
+ − 14091 if test "$with_database_berkdb" != "no"; then
298
+ − 14092 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
594
+ − 14093 echo "configure:14094: checking for Berkeley db.h" >&5
442
+ − 14094 for header in "db/db.h" "db.h"; do
298
+ − 14095 cat > conftest.$ac_ext <<EOF
594
+ − 14096 #line 14097 "configure"
442
+ − 14097 #include "confdefs.h"
+ − 14098
+ − 14099 #include <stdlib.h>
+ − 14100 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
298
+ − 14101 #ifdef HAVE_INTTYPES_H
+ − 14102 #define __BIT_TYPES_DEFINED__
+ − 14103 #include <inttypes.h>
+ − 14104 typedef uint8_t u_int8_t;
+ − 14105 typedef uint16_t u_int16_t;
+ − 14106 typedef uint32_t u_int32_t;
+ − 14107 #ifdef WE_DONT_NEED_QUADS
+ − 14108 typedef uint64_t u_int64_t;
+ − 14109 #endif
+ − 14110 #endif
442
+ − 14111 #endif
+ − 14112 #include <$header>
+ − 14113
+ − 14114 int main() {
+ − 14115
+ − 14116 ; return 0; }
+ − 14117 EOF
594
+ − 14118 if { (eval echo configure:14119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
+ − 14119 rm -rf conftest*
+ − 14120 db_h_file="$header"; break
298
+ − 14121 else
+ − 14122 echo "configure: failed program was:" >&5
+ − 14123 cat conftest.$ac_ext >&5
+ − 14124 fi
+ − 14125 rm -f conftest*
+ − 14126 done
442
+ − 14127 if test -z "$db_h_file"
298
+ − 14128 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
442
+ − 14129 else echo "$ac_t""$db_h_file" 1>&6
298
+ − 14130 fi
+ − 14131
+ − 14132 if test "$with_database_berkdb" != "no"; then
+ − 14133 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
594
+ − 14134 echo "configure:14135: checking for Berkeley DB version" >&5
298
+ − 14135 cat > conftest.$ac_ext <<EOF
594
+ − 14136 #line 14137 "configure"
442
+ − 14137 #include "confdefs.h"
+ − 14138 #include <$db_h_file>
298
+ − 14139 #if DB_VERSION_MAJOR > 1
+ − 14140 yes
+ − 14141 #endif
+ − 14142
+ − 14143 EOF
+ − 14144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 14145 egrep "yes" >/dev/null 2>&1; then
+ − 14146 rm -rf conftest*
448
+ − 14147 cat > conftest.$ac_ext <<EOF
594
+ − 14148 #line 14149 "configure"
448
+ − 14149 #include "confdefs.h"
+ − 14150 #include <$db_h_file>
+ − 14151 #if DB_VERSION_MAJOR > 2
+ − 14152 yes
+ − 14153 #endif
+ − 14154
+ − 14155 EOF
+ − 14156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 14157 egrep "yes" >/dev/null 2>&1; then
+ − 14158 rm -rf conftest*
+ − 14159 echo "$ac_t""3" 1>&6; dbfunc=db_create
+ − 14160 else
+ − 14161 rm -rf conftest*
+ − 14162
+ − 14163 echo "$ac_t""2" 1>&6; dbfunc=db_open
+ − 14164 fi
+ − 14165 rm -f conftest*
+ − 14166
+ − 14167 else
+ − 14168 rm -rf conftest*
+ − 14169
+ − 14170 echo "$ac_t""1" 1>&6; dbfunc=dbopen
298
+ − 14171 fi
+ − 14172 rm -f conftest*
+ − 14173
+ − 14174 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
594
+ − 14175 echo "configure:14176: checking for $dbfunc" >&5
+ − 14176
+ − 14177 cat > conftest.$ac_ext <<EOF
+ − 14178 #line 14179 "configure"
298
+ − 14179 #include "confdefs.h"
149
+ − 14180 /* System header to define __stub macros and hopefully few prototypes,
298
+ − 14181 which can conflict with char $dbfunc(); below. */
149
+ − 14182 #include <assert.h>
+ − 14183 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14184 /* We use char because int might match the return type of a gcc2
+ − 14185 builtin and then its argument prototype would still apply. */
298
+ − 14186 char $dbfunc();
149
+ − 14187
+ − 14188 int main() {
+ − 14189
0
+ − 14190 /* The GNU C library defines this for functions which it implements
+ − 14191 to always fail with ENOSYS. Some functions are actually named
+ − 14192 something starting with __ and the normal name is an alias. */
298
+ − 14193 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
0
+ − 14194 choke me
+ − 14195 #else
298
+ − 14196 $dbfunc();
0
+ − 14197 #endif
149
+ − 14198
0
+ − 14199 ; return 0; }
+ − 14200 EOF
594
+ − 14201 if { (eval echo configure:14202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
298
+ − 14202 rm -rf conftest*
+ − 14203 eval "ac_cv_func_$dbfunc=yes"
+ − 14204 else
+ − 14205 echo "configure: failed program was:" >&5
+ − 14206 cat conftest.$ac_ext >&5
+ − 14207 rm -rf conftest*
+ − 14208 eval "ac_cv_func_$dbfunc=no"
+ − 14209 fi
+ − 14210 rm -f conftest*
+ − 14211
+ − 14212 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
149
+ − 14213 echo "$ac_t""yes" 1>&6
+ − 14214 with_database_berkdb=yes need_libdb=no
+ − 14215 else
+ − 14216 echo "$ac_t""no" 1>&6
298
+ − 14217
+ − 14218
+ − 14219 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
594
+ − 14220 echo "configure:14221: checking for $dbfunc in -ldb" >&5
298
+ − 14221 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
149
+ − 14222
+ − 14223 xe_check_libs=" -ldb "
+ − 14224 cat > conftest.$ac_ext <<EOF
594
+ − 14225 #line 14226 "configure"
149
+ − 14226 #include "confdefs.h"
0
+ − 14227 /* Override any gcc2 internal prototype to avoid an error. */
149
+ − 14228 /* We use char because int might match the return type of a gcc2
+ − 14229 builtin and then its argument prototype would still apply. */
298
+ − 14230 char $dbfunc();
+ − 14231
+ − 14232 int main() {
+ − 14233 $dbfunc()
+ − 14234 ; return 0; }
+ − 14235 EOF
594
+ − 14236 if { (eval echo configure:14237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 14237 rm -rf conftest*
+ − 14238 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14239 else
+ − 14240 echo "configure: failed program was:" >&5
+ − 14241 cat conftest.$ac_ext >&5
+ − 14242 rm -rf conftest*
+ − 14243 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14244 fi
+ − 14245 rm -f conftest*
+ − 14246 xe_check_libs=""
+ − 14247
151
+ − 14248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 14249 echo "$ac_t""yes" 1>&6
+ − 14250 with_database_berkdb=yes need_libdb=yes
+ − 14251 else
+ − 14252 echo "$ac_t""no" 1>&6
298
+ − 14253 fi
+ − 14254
+ − 14255
+ − 14256 fi
+ − 14257
+ − 14258 fi
+ − 14259
149
+ − 14260 if test "$with_database_berkdb" = "yes"; then
+ − 14261 { test "$extra_verbose" = "yes" && cat << EOF
442
+ − 14262 Defining DB_H_FILE = "$db_h_file"
+ − 14263 EOF
+ − 14264 cat >> confdefs.h <<EOF
+ − 14265 #define DB_H_FILE "$db_h_file"
149
+ − 14266 EOF
+ − 14267 }
+ − 14268
+ − 14269 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 14270 Defining HAVE_BERKELEY_DB
+ − 14271 EOF
+ − 14272 cat >> confdefs.h <<\EOF
+ − 14273 #define HAVE_BERKELEY_DB 1
+ − 14274 EOF
+ − 14275 }
+ − 14276
151
+ − 14277 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
149
+ − 14278 else with_database_berkdb=no
+ − 14279 fi
+ − 14280 fi
+ − 14281
426
+ − 14282 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
272
+ − 14283 != "no no no"; then
149
+ − 14284 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 14285 Defining HAVE_DATABASE
+ − 14286 EOF
+ − 14287 cat >> confdefs.h <<\EOF
+ − 14288 #define HAVE_DATABASE 1
+ − 14289 EOF
+ − 14290 }
+ − 14291
151
+ − 14292 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
+ − 14293 echo " xemacs will be linked with \"database.o\""
+ − 14294 fi
149
+ − 14295 fi
+ − 14296
+ − 14297 if test "$with_socks" = "yes"; then
+ − 14298
+ − 14299 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
594
+ − 14300 echo "configure:14301: checking for SOCKSinit in -lsocks" >&5
149
+ − 14301 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
+ − 14302
+ − 14303 xe_check_libs=" -lsocks "
+ − 14304 cat > conftest.$ac_ext <<EOF
594
+ − 14305 #line 14306 "configure"
149
+ − 14306 #include "confdefs.h"
+ − 14307 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14308 /* We use char because int might match the return type of a gcc2
+ − 14309 builtin and then its argument prototype would still apply. */
+ − 14310 char SOCKSinit();
+ − 14311
+ − 14312 int main() {
+ − 14313 SOCKSinit()
+ − 14314 ; return 0; }
+ − 14315 EOF
594
+ − 14316 if { (eval echo configure:14317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
+ − 14317 rm -rf conftest*
+ − 14318 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14319 else
+ − 14320 echo "configure: failed program was:" >&5
+ − 14321 cat conftest.$ac_ext >&5
+ − 14322 rm -rf conftest*
+ − 14323 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14324 fi
+ − 14325 rm -f conftest*
+ − 14326 xe_check_libs=""
+ − 14327
151
+ − 14328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
+ − 14329 echo "$ac_t""yes" 1>&6
+ − 14330 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ − 14331 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ − 14332 { test "$extra_verbose" = "yes" && cat << EOF
+ − 14333 Defining $ac_tr_lib
+ − 14334 EOF
+ − 14335 cat >> confdefs.h <<EOF
+ − 14336 #define $ac_tr_lib 1
+ − 14337 EOF
+ − 14338 }
+ − 14339
151
+ − 14340 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
149
+ − 14341
+ − 14342 else
+ − 14343 echo "$ac_t""no" 1>&6
+ − 14344 fi
+ − 14345
+ − 14346
+ − 14347 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 14348 Defining HAVE_SOCKS
+ − 14349 EOF
+ − 14350 cat >> confdefs.h <<\EOF
+ − 14351 #define HAVE_SOCKS 1
+ − 14352 EOF
+ − 14353 }
+ − 14354
+ − 14355 fi
+ − 14356
+ − 14357 if test "$usage_tracking" = "yes"; then
+ − 14358 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 14359 Defining USAGE_TRACKING
+ − 14360 EOF
+ − 14361 cat >> confdefs.h <<\EOF
+ − 14362 #define USAGE_TRACKING 1
+ − 14363 EOF
+ − 14364 }
+ − 14365
151
+ − 14366 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
149
+ − 14367 fi
+ − 14368
430
+ − 14369 if test "$with_modules" != "no"; then
+ − 14370 echo "checking for module support" 1>&6
594
+ − 14371 echo "configure:14372: checking for module support" >&5
442
+ − 14372
+ − 14373 if test "$with_msw" = "yes"; then
+ − 14374 have_dl=yes;
+ − 14375 else
+ − 14376 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
430
+ − 14377 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
594
+ − 14378 echo "configure:14379: checking for dlfcn.h" >&5
+ − 14379
+ − 14380 cat > conftest.$ac_ext <<EOF
+ − 14381 #line 14382 "configure"
430
+ − 14382 #include "confdefs.h"
+ − 14383 #include <dlfcn.h>
261
+ − 14384 EOF
+ − 14385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
+ − 14386 { (eval echo configure:14387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
+ − 14387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
261
+ − 14388 if test -z "$ac_err"; then
+ − 14389 rm -rf conftest*
+ − 14390 eval "ac_cv_header_$ac_safe=yes"
+ − 14391 else
+ − 14392 echo "$ac_err" >&5
+ − 14393 echo "configure: failed program was:" >&5
+ − 14394 cat conftest.$ac_ext >&5
+ − 14395 rm -rf conftest*
+ − 14396 eval "ac_cv_header_$ac_safe=no"
+ − 14397 fi
+ − 14398 rm -f conftest*
+ − 14399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ − 14400 echo "$ac_t""yes" 1>&6
430
+ − 14401
452
+ − 14402 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
594
+ − 14403 echo "configure:14404: checking for dlopen in -lc" >&5
452
+ − 14404 cat > conftest.$ac_ext <<EOF
594
+ − 14405 #line 14406 "configure"
452
+ − 14406 #include "confdefs.h"
+ − 14407 #include <dlfcn.h>
+ − 14408 int main() {
+ − 14409 dlopen ("", 0);
+ − 14410 ; return 0; }
+ − 14411 EOF
594
+ − 14412 if { (eval echo configure:14413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
452
+ − 14413 rm -rf conftest*
+ − 14414 have_dl=yes
+ − 14415 else
+ − 14416 echo "configure: failed program was:" >&5
+ − 14417 cat conftest.$ac_ext >&5
+ − 14418 rm -rf conftest*
+ − 14419
+ − 14420 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
594
+ − 14421 echo "configure:14422: checking for dlopen in -ldl" >&5
452
+ − 14422 ac_save_LIBS="$LIBS"
+ − 14423 LIBS="-ldl $LIBS"
+ − 14424 cat > conftest.$ac_ext <<EOF
594
+ − 14425 #line 14426 "configure"
452
+ − 14426 #include "confdefs.h"
+ − 14427 #include <dlfcn.h>
+ − 14428 int main() {
+ − 14429 dlopen ("", 0);
+ − 14430 ; return 0; }
+ − 14431 EOF
594
+ − 14432 if { (eval echo configure:14433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
452
+ − 14433 rm -rf conftest*
+ − 14434 have_dl=yes
+ − 14435 else
+ − 14436 echo "configure: failed program was:" >&5
+ − 14437 cat conftest.$ac_ext >&5
+ − 14438 rm -rf conftest*
+ − 14439 LIBS="$ac_save_LIBS"
+ − 14440 fi
+ − 14441 rm -f conftest*
+ − 14442 ac_save_LIBS=
+ − 14443 fi
+ − 14444 rm -f conftest*
430
+ − 14445 else
+ − 14446 echo "$ac_t""no" 1>&6
+ − 14447 fi
+ − 14448
442
+ − 14449 if test -n "$have_dl"; then
+ − 14450 { test "$extra_verbose" = "yes" && cat << \EOF
265
+ − 14451 Defining HAVE_DLOPEN
+ − 14452 EOF
+ − 14453 cat >> confdefs.h <<\EOF
+ − 14454 #define HAVE_DLOPEN 1
+ − 14455 EOF
+ − 14456 }
430
+ − 14457
442
+ − 14458 else
+ − 14459
430
+ − 14460 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
594
+ − 14461 echo "configure:14462: checking for shl_load in -ldld" >&5
430
+ − 14462 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
+ − 14463
+ − 14464 xe_check_libs=" -ldld "
+ − 14465 cat > conftest.$ac_ext <<EOF
594
+ − 14466 #line 14467 "configure"
430
+ − 14467 #include "confdefs.h"
+ − 14468 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14469 /* We use char because int might match the return type of a gcc2
+ − 14470 builtin and then its argument prototype would still apply. */
+ − 14471 char shl_load();
+ − 14472
+ − 14473 int main() {
+ − 14474 shl_load()
+ − 14475 ; return 0; }
+ − 14476 EOF
594
+ − 14477 if { (eval echo configure:14478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
261
+ − 14478 rm -rf conftest*
+ − 14479 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14480 else
+ − 14481 echo "configure: failed program was:" >&5
+ − 14482 cat conftest.$ac_ext >&5
+ − 14483 rm -rf conftest*
+ − 14484 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14485 fi
+ − 14486 rm -f conftest*
+ − 14487 xe_check_libs=""
+ − 14488
+ − 14489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 14490 echo "$ac_t""yes" 1>&6
430
+ − 14491 libdl=dld have_dl=yes;
442
+ − 14492 { test "$extra_verbose" = "yes" && cat << \EOF
430
+ − 14493 Defining HAVE_SHL_LOAD
+ − 14494 EOF
+ − 14495 cat >> confdefs.h <<\EOF
+ − 14496 #define HAVE_SHL_LOAD 1
+ − 14497 EOF
+ − 14498 }
+ − 14499
+ − 14500 else
+ − 14501 echo "$ac_t""no" 1>&6
+ − 14502
+ − 14503 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
594
+ − 14504 echo "configure:14505: checking for dld_init in -ldld" >&5
430
+ − 14505 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
265
+ − 14506
+ − 14507 xe_check_libs=" -ldld "
+ − 14508 cat > conftest.$ac_ext <<EOF
594
+ − 14509 #line 14510 "configure"
430
+ − 14510 #include "confdefs.h"
+ − 14511 /* Override any gcc2 internal prototype to avoid an error. */
+ − 14512 /* We use char because int might match the return type of a gcc2
+ − 14513 builtin and then its argument prototype would still apply. */
+ − 14514 char dld_init();
+ − 14515
+ − 14516 int main() {
+ − 14517 dld_init()
+ − 14518 ; return 0; }
+ − 14519 EOF
594
+ − 14520 if { (eval echo configure:14521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
265
+ − 14521 rm -rf conftest*
+ − 14522 eval "ac_cv_lib_$ac_lib_var=yes"
+ − 14523 else
+ − 14524 echo "configure: failed program was:" >&5
+ − 14525 cat conftest.$ac_ext >&5
+ − 14526 rm -rf conftest*
+ − 14527 eval "ac_cv_lib_$ac_lib_var=no"
+ − 14528 fi
+ − 14529 rm -f conftest*
+ − 14530 xe_check_libs=""
+ − 14531
+ − 14532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+ − 14533 echo "$ac_t""yes" 1>&6
430
+ − 14534 libdl=dld have_dl=yes;
442
+ − 14535 { test "$extra_verbose" = "yes" && cat << \EOF
265
+ − 14536 Defining HAVE_DLD_INIT
+ − 14537 EOF
+ − 14538 cat >> confdefs.h <<\EOF
+ − 14539 #define HAVE_DLD_INIT 1
+ − 14540 EOF
+ − 14541 }
430
+ − 14542
+ − 14543 else
+ − 14544 echo "$ac_t""no" 1>&6
+ − 14545 fi
+ − 14546
+ − 14547
+ − 14548 fi
+ − 14549
+ − 14550
442
+ − 14551 fi
+ − 14552 fi
430
+ − 14553 if test -n "$have_dl"; then
+ − 14554
388
+ − 14555 dll_ld=
+ − 14556 dll_ldflags=
+ − 14557 dll_cflags=
+ − 14558 dll_post=
+ − 14559 dll_ldo="-o"
+ − 14560 ld_dynamic_link_flags=
+ − 14561 xehost=$canonical
+ − 14562 xealias=$internal_configuration
+ − 14563
+ − 14564 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
594
+ − 14565 echo "configure:14566: checking how to build dynamic libraries for ${xehost}" >&5
388
+ − 14566 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
+ − 14567 case "$xehost" in
+ − 14568 *-*-linux-gnu*) ;;
+ − 14569 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
+ − 14570 esac
+ − 14571
+ − 14572 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+ − 14573 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+ − 14574 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+ − 14575
+ − 14576 case "$xehost_os" in
+ − 14577 aix3*)
+ − 14578 # AIX sometimes has problems with the GCC collect2 program. For some
+ − 14579 # reason, if we set the COLLECT_NAMES environment variable, the problems
+ − 14580 # vanish in a puff of smoke.
+ − 14581 if test "${COLLECT_NAMES+set}" != set; then
+ − 14582 COLLECT_NAMES=
+ − 14583 export COLLECT_NAMES
+ − 14584 fi
+ − 14585 ;;
+ − 14586 esac
+ − 14587
+ − 14588 # Now see if the compiler is really GCC.
+ − 14589 if test "$GCC" = "yes"; then
+ − 14590 XEGCC=yes
+ − 14591 else
+ − 14592 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
594
+ − 14593 echo "configure:14594: checking checking whether we are using GNU C" >&5
388
+ − 14594 cat > conftest.$ac_ext <<EOF
594
+ − 14595 #line 14596 "configure"
388
+ − 14596 #include "confdefs.h"
+ − 14597
+ − 14598 #ifdef __GNUC__
+ − 14599 yes;
+ − 14600 #endif
+ − 14601
+ − 14602 EOF
+ − 14603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ − 14604 egrep "yes" >/dev/null 2>&1; then
+ − 14605 rm -rf conftest*
+ − 14606 XEGCC=yes
+ − 14607 else
+ − 14608 rm -rf conftest*
+ − 14609 XEGCC=no
+ − 14610 fi
+ − 14611 rm -f conftest*
+ − 14612
+ − 14613 echo "$ac_t""${XEGCC}" 1>&6
+ − 14614 fi
+ − 14615
+ − 14616 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
594
+ − 14617 echo "configure:14618: checking how to produce PIC code" >&5
388
+ − 14618 wl=
+ − 14619
+ − 14620 can_build_shared=yes
+ − 14621 if test "$XEGCC" = yes; then
+ − 14622 wl='-Wl,'
+ − 14623
+ − 14624 case "$xehost_os" in
460
+ − 14625 aix[3-9]* | irix[5-9]* | osf[3-9])
388
+ − 14626 # PIC is the default for these OSes.
+ − 14627 ;;
+ − 14628
460
+ − 14629 os2*)
388
+ − 14630 # We can build DLLs from non-PIC.
+ − 14631 ;;
+ − 14632 amigaos*)
+ − 14633 # FIXME: we need at least 68020 code to build shared libraries, but
+ − 14634 # adding the `-m68020' flag to GCC prevents building anything better,
+ − 14635 # like `-m68040'.
+ − 14636 dll_cflags='-m68020 -resident32 -malways-restore-a4'
+ − 14637 ;;
442
+ − 14638 *cygwin* | *mingw* )
+ − 14639 # PIC is the default
+ − 14640 ;;
388
+ − 14641 *)
+ − 14642 dll_cflags='-fPIC'
+ − 14643 ;;
+ − 14644 esac
+ − 14645 else
+ − 14646 # PORTME Check for PIC flags for the system compiler.
+ − 14647 case "$xehost_os" in
430
+ − 14648 hpux9* | hpux1[0-9]*)
388
+ − 14649 # Is there a better link_static_flag that works with the bundled CC?
+ − 14650 wl='-Wl,'
+ − 14651 dll_cflags='+Z'
+ − 14652 ;;
+ − 14653
460
+ − 14654 irix[5-9]*)
388
+ − 14655 wl='-Wl,'
+ − 14656 # PIC (with -KPIC) is the default.
+ − 14657 ;;
+ − 14658
+ − 14659 os2*)
+ − 14660 # We can build DLLs from non-PIC.
+ − 14661 ;;
+ − 14662
460
+ − 14663 osf[3-9]*)
388
+ − 14664 # All OSF/1 code is PIC.
+ − 14665 wl='-Wl,'
+ − 14666 ;;
+ − 14667
460
+ − 14668 aix[3-9]*)
+ − 14669 # All AIX code is PIC.
+ − 14670 wl='-Wl,'
+ − 14671 ;;
+ − 14672
388
+ − 14673 sco3.2v5*)
+ − 14674 dll_cflags='-belf -Kpic'
+ − 14675 wl='-Wl,'
+ − 14676 ;;
+ − 14677
+ − 14678 unixware*)
+ − 14679 dll_cflags="-KPIC"
+ − 14680 wl="-Wl,"
+ − 14681 ;;
+ − 14682
+ − 14683 sysv4*)
+ − 14684 dll_cflags="-KPIC"
+ − 14685 wl="-Wl,"
+ − 14686 ;;
+ − 14687
+ − 14688 sysv5*)
+ − 14689 dll_cflags="-KPIC"
+ − 14690 wl="-Wl,"
+ − 14691 ;;
+ − 14692
+ − 14693 solaris2*)
+ − 14694 dll_cflags='-KPIC'
+ − 14695 wl='-Wl,'
+ − 14696 ;;
+ − 14697
+ − 14698 sunos4*)
+ − 14699 dll_cflags='-PIC'
+ − 14700 wl='-Qoption ld '
+ − 14701 ;;
+ − 14702
+ − 14703 uts4*)
+ − 14704 dll_cflags='-pic'
+ − 14705 ;;
+ − 14706
+ − 14707 *)
+ − 14708 can_build_shared=no
+ − 14709 ;;
+ − 14710 esac
+ − 14711 fi
+ − 14712
+ − 14713 if test -n "$dll_cflags"; then
+ − 14714 echo "$ac_t""${dll_cflags}" 1>&6
442
+ − 14715
388
+ − 14716 # Check to make sure the dll_cflags actually works.
+ − 14717 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
594
+ − 14718 echo "configure:14719: checking if PIC flag ${dll_cflags} really works" >&5
388
+ − 14719 save_CFLAGS="$CFLAGS"
+ − 14720 CFLAGS="$CFLAGS $dll_cflags -DPIC"
+ − 14721 cat > conftest.$ac_ext <<EOF
594
+ − 14722 #line 14723 "configure"
388
+ − 14723 #include "confdefs.h"
+ − 14724
+ − 14725 int main() {
+ − 14726 int x=0;
+ − 14727 ; return 0; }
+ − 14728 EOF
594
+ − 14729 if { (eval echo configure:14730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
388
+ − 14730 rm -rf conftest*
+ − 14731
+ − 14732 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
+ − 14733 # reports no error. So, we need to grep stderr for (Bundled).
+ − 14734 if grep '(Bundled)' config.log >/dev/null; then
+ − 14735 echo "$ac_t""no" 1>&6
+ − 14736 can_build_shared=no
+ − 14737 dll_cflags=
+ − 14738 else
+ − 14739 echo "$ac_t""yes" 1>&6
+ − 14740 fi
+ − 14741 else
+ − 14742 echo "configure: failed program was:" >&5
+ − 14743 cat conftest.$ac_ext >&5
+ − 14744 rm -rf conftest*
+ − 14745 echo "$ac_t""no" 1>&6
+ − 14746 can_build_shared=no
+ − 14747 dll_cflags=
+ − 14748 fi
+ − 14749 rm -f conftest*
+ − 14750 CFLAGS="$save_CFLAGS"
+ − 14751 else
+ − 14752 echo "$ac_t""none" 1>&6
+ − 14753 fi
+ − 14754
+ − 14755 if test "$can_build_shared" = "yes"; then
+ − 14756 cc_produces_so=no
+ − 14757 xldf=
+ − 14758 xcldf=
+ − 14759 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
594
+ − 14760 echo "configure:14761: checking if C compiler can produce shared libraries" >&5
388
+ − 14761 if test "$XEGCC" = yes; then
+ − 14762 xcldf="-shared"
+ − 14763 xldf="-shared"
+ − 14764 else # Not using GCC
+ − 14765 case "$xehost_os" in
460
+ − 14766 aix[3-9]*)
388
+ − 14767 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
+ − 14768 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
+ − 14769 ;;
+ − 14770
+ − 14771 freebsd2* | netbsd* | openbsd*)
+ − 14772 xldf="-Bshareable"
+ − 14773 xcldf="${wl}-Bshareable"
+ − 14774 ;;
+ − 14775
+ − 14776 freebsd3*)
+ − 14777 xcldf="-shared"
+ − 14778 ;;
+ − 14779
+ − 14780 hpux*)
+ − 14781 xldf="-b +s"
+ − 14782 xcldf="${wl}-b ${wl}+s"
+ − 14783 ;;
+ − 14784
460
+ − 14785 irix[5-9]* | osf[3-9]*)
388
+ − 14786 xcldf="${wl}-shared"
+ − 14787 xldf="-shared"
+ − 14788 ;;
+ − 14789
+ − 14790 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
+ − 14791 xcldf="-G"
+ − 14792 xldf="-G"
+ − 14793 ;;
+ − 14794
+ − 14795 sunos4*)
+ − 14796 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
+ − 14797 xldf="-assert pure-text -Bstatic"
+ − 14798 ;;
+ − 14799 esac
+ − 14800 fi # End if if we are using gcc
+ − 14801
+ − 14802 if test -n "$xcldf"; then
+ − 14803 save_LDFLAGS=$LDFLAGS
+ − 14804 save_LIBS=$LIBS
+ − 14805 save_xe_libs=$xe_libs
+ − 14806 LDFLAGS="$xcldf $LDFLAGS"
+ − 14807 LIBS=
+ − 14808 xe_libs=
+ − 14809 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 14810 cat > conftest.$ac_ext <<EOF
594
+ − 14811 #line 14812 "configure"
388
+ − 14812 #include "confdefs.h"
+ − 14813
+ − 14814 int main() {
+ − 14815 int x=0;
+ − 14816 ; return 0; }
+ − 14817 EOF
594
+ − 14818 if { (eval echo configure:14819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
388
+ − 14819 rm -rf conftest*
+ − 14820 cc_produces_so=yes
+ − 14821 else
+ − 14822 echo "configure: failed program was:" >&5
+ − 14823 cat conftest.$ac_ext >&5
+ − 14824 rm -rf conftest*
+ − 14825 cc_produces_so=no
+ − 14826 fi
+ − 14827 rm -f conftest*
+ − 14828 LDFLAGS=$save_LDFLAGS
+ − 14829 LIBS=$save_LIBS
+ − 14830 xe_libs=$save_xe_libs
+ − 14831 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
+ − 14832 else
+ − 14833 cc_produces_so=no
+ − 14834 fi
+ − 14835 echo "$ac_t""${cc_produces_so}" 1>&6
+ − 14836
+ − 14837 LTLD=$LD
+ − 14838 if test -z "$LTLD"; then
+ − 14839 ac_prog=ld
+ − 14840 if test "$XEGCC" = yes; then
+ − 14841 # Check if gcc -print-prog-name=ld gives a path.
+ − 14842 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
594
+ − 14843 echo "configure:14844: checking for ld used by GCC" >&5
388
+ − 14844 ac_prog=`($CC -print-prog-name=ld) 2>&5`
+ − 14845 case "$ac_prog" in
+ − 14846 # Accept absolute paths.
+ − 14847 /*)
+ − 14848 if test -z "$LTLD"; then
+ − 14849 case "$ac_prog" in
+ − 14850 *gcc-lib*) LTLD="$CC"
+ − 14851 ;;
+ − 14852 *) LTLD="$ac_prog"
+ − 14853 ;;
+ − 14854 esac
+ − 14855 fi
+ − 14856 ;;
+ − 14857 "")
+ − 14858 # If it fails, then pretend we aren't using GCC.
+ − 14859 ac_prog=ld
+ − 14860 ;;
+ − 14861 *)
+ − 14862 # If it is relative, then search for the first ld in PATH.
+ − 14863 with_gnu_ld=unknown
+ − 14864 ;;
+ − 14865 esac
+ − 14866 else
+ − 14867 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
594
+ − 14868 echo "configure:14869: checking for GNU ld" >&5
388
+ − 14869 fi
+ − 14870
+ − 14871 if test -z "$LTLD"; then
+ − 14872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
+ − 14873 for ac_dir in $PATH; do
+ − 14874 test -z "$ac_dir" && ac_dir=.
+ − 14875 if test -f "$ac_dir/$ac_prog"; then
+ − 14876 LTLD="$ac_dir/$ac_prog"
+ − 14877 # Check to see if the program is GNU ld. I'd rather use --version,
+ − 14878 # but apparently some GNU ld's only accept -v.
+ − 14879 # Break only if it was the GNU/non-GNU ld that we prefer.
+ − 14880 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
+ − 14881 xe_gnu_ld=yes
+ − 14882 else
+ − 14883 xe_gnu_ld=no
+ − 14884 fi
+ − 14885 fi
+ − 14886 done
+ − 14887 IFS="$ac_save_ifs"
+ − 14888 fi
+ − 14889
+ − 14890 if test -n "$LTLD"; then
+ − 14891 echo "$ac_t""${LTLD}" 1>&6
+ − 14892 else
+ − 14893 echo "$ac_t""no" 1>&6
+ − 14894 fi
+ − 14895
+ − 14896 if test -z "$LTLD" -a "$cc_produces_so" = no; then
+ − 14897 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
+ − 14898 exit 1
+ − 14899 fi
+ − 14900 fi
+ − 14901
+ − 14902 ld_dynamic_link_flags=
+ − 14903
+ − 14904 # Check to see if it really is or isn't GNU ld.
+ − 14905 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
594
+ − 14906 echo "configure:14907: checking if the linker is GNU ld" >&5
388
+ − 14907 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
+ − 14908 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
+ − 14909 xe_gnu_ld=yes
+ − 14910 else
+ − 14911 xe_gnu_ld=no
+ − 14912 fi
+ − 14913 echo "$ac_t""${xe_gnu_ld}" 1>&6
+ − 14914
+ − 14915 case "$xehost_os" in
+ − 14916 amigaos* | sunos4*)
+ − 14917 # On these operating systems, we should treat GNU ld like the system ld.
+ − 14918 gnu_ld_acts_native=yes
+ − 14919 ;;
+ − 14920 *)
+ − 14921 gnu_ld_acts_native=no
+ − 14922 ;;
+ − 14923 esac
+ − 14924
+ − 14925 if test "$cc_produces_so" = "yes"; then
+ − 14926 dll_ld=$CC
+ − 14927 dll_ldflags=$xcldf
+ − 14928 can_build_shared=yes
442
+ − 14929 ld_shlibs=yes
388
+ − 14930 else
+ − 14931 # OK - only NOW do we futz about with ld.
+ − 14932 # See if the linker supports building shared libraries.
+ − 14933 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
594
+ − 14934 echo "configure:14935: checking whether the linker supports shared libraries" >&5
388
+ − 14935 dll_ld=$CC
+ − 14936 dll_ldflags=$LDFLAGS
+ − 14937 ld_shlibs=yes
+ − 14938 can_build_shared=yes
+ − 14939 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
+ − 14940 # See if GNU ld supports shared libraries.
+ − 14941 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+ − 14942 dll_ld=$CC
+ − 14943 dll_ldflags="-shared"
+ − 14944 ld_shlibs=yes
+ − 14945 else
+ − 14946 ld_shlibs=no
+ − 14947 fi
+ − 14948 else
+ − 14949 # PORTME fill in a description of your system's linker (not GNU ld)
+ − 14950 case "$xehost_os" in
+ − 14951 aix3*)
+ − 14952 dll_ld=$LTLD
+ − 14953 dll_ldflags=$xldf
+ − 14954 ;;
+ − 14955
460
+ − 14956 aix[4-9]*)
388
+ − 14957 dll_ldflags=$xcldf
+ − 14958 ;;
+ − 14959
+ − 14960 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+ − 14961 # support. Future versions do this automatically, but an explicit c++rt0.o
+ − 14962 # doesn't break anything, and helps significantly (at the cost of a little
+ − 14963 # extra space).
+ − 14964 freebsd2.2*)
+ − 14965 dll_ld=$LTLD
+ − 14966 dll_ldflags=$xldf
+ − 14967 dll_post="/usr/lib/c++rt0.o"
+ − 14968 ;;
+ − 14969
+ − 14970 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
+ − 14971 freebsd2*)
+ − 14972 dll_ld=$LTLD
+ − 14973 dll_ldflags="-Bshareable"
+ − 14974 ;;
+ − 14975
+ − 14976 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
+ − 14977 freebsd3*)
+ − 14978 dll_ldflags="-shared"
+ − 14979 ;;
+ − 14980
+ − 14981 hpux*)
+ − 14982 dll_ld=$LTLD
+ − 14983 dll_ldflags=$xldf
+ − 14984 ;;
+ − 14985
460
+ − 14986 irix[5-9]*)
388
+ − 14987 dll_ld=$LTLD
+ − 14988 dll_ldflags=$xldf
+ − 14989 ;;
+ − 14990
+ − 14991 netbsd*)
+ − 14992 # Tested with NetBSD 1.2 ld
+ − 14993 dll_ld=$LTLD
+ − 14994 dll_ldflags=$xldf
+ − 14995 ;;
+ − 14996
+ − 14997 openbsd*)
+ − 14998 dll_ld=$LTLD
+ − 14999 dll_ldflags=$xldf
+ − 15000 ;;
+ − 15001
+ − 15002 osf3* | osf4*)
+ − 15003 dll_ld=$LTLD
+ − 15004 dll_ldflags=$xldf
+ − 15005 ;;
+ − 15006
+ − 15007 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
+ − 15008 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
+ − 15009 dll_ld=$LTLD
+ − 15010 case "$dll_ld" in
+ − 15011 *gcc*) dll_ldflags="-shared"
+ − 15012 dll_ld=$CC
+ − 15013 ;;
+ − 15014 *) dll_ldflags="-G"
+ − 15015 ;;
+ − 15016 esac
+ − 15017 ;;
+ − 15018
+ − 15019 sunos4*)
+ − 15020 if test "$XEGCC" = yes; then
+ − 15021 dll_ld=$CC
+ − 15022 else
+ − 15023 dll_ld=$LTLD
+ − 15024 fi
+ − 15025 dll_ldflags=$xldf
+ − 15026 ;;
+ − 15027
+ − 15028 uts4*)
+ − 15029 dll_ld=$LTLD
+ − 15030 dll_ldflags="-G"
+ − 15031 ;;
+ − 15032
+ − 15033 bsdi*)
+ − 15034 dll_ldflags="-r"
+ − 15035 dll_ld="shlicc2"
+ − 15036 ;;
+ − 15037
+ − 15038 *)
+ − 15039 ld_shlibs=no
+ − 15040 can_build_shared=no
+ − 15041 ;;
+ − 15042 esac
+ − 15043 fi
+ − 15044 echo "$ac_t""${ld_shlibs}" 1>&6
+ − 15045 if test "$ld_shlibs" = "no"; then
+ − 15046 can_build_shared=no
+ − 15047 fi
+ − 15048 fi # End of if cc_produces_so = no
+ − 15049
+ − 15050
+ − 15051 if test "$xe_gnu_ld" = yes; then
+ − 15052 if test "$ld_shlibs" = yes; then
+ − 15053 ld_dynamic_link_flags="${wl}-export-dynamic"
+ − 15054 fi
+ − 15055 fi
+ − 15056
+ − 15057 if test -z "$ld_dynamic_link_flags"; then
+ − 15058 case "$xehost_os" in
460
+ − 15059 aix[3-9]*)
388
+ − 15060 ld_dynamic_link_flags=
+ − 15061 ;;
+ − 15062
+ − 15063 freebsd2.2*)
+ − 15064 ld_dynamic_link_flags=
+ − 15065 ;;
+ − 15066
+ − 15067 freebsd2*)
+ − 15068 ld_dynamic_link_flags=
+ − 15069 ;;
+ − 15070
+ − 15071 freebsd3*)
+ − 15072 ld_dynamic_link_flags=
+ − 15073 ;;
+ − 15074
+ − 15075 hpux*)
+ − 15076 ld_dynamic_link_flags="${wl}-E"
+ − 15077 ;;
+ − 15078
460
+ − 15079 irix[5-9]*)
388
+ − 15080 ld_dynamic_link_flags=
+ − 15081 ;;
+ − 15082
+ − 15083 netbsd*)
+ − 15084 ld_dynamic_link_flags=
+ − 15085 ;;
+ − 15086
+ − 15087 openbsd*)
+ − 15088 ld_dynamic_link_flags=
+ − 15089 ;;
+ − 15090
+ − 15091 osf3* | osf4*)
+ − 15092 ld_dynamic_link_flags=
+ − 15093 ;;
+ − 15094
398
+ − 15095 solaris2* | solaris7*)
426
+ − 15096 ld_dynamic_link_flags=
398
+ − 15097 ;;
+ − 15098
+ − 15099 sco3.2v5* | unixware* | sysv5* | sysv4*)
388
+ − 15100 ld_dynamic_link_flags="${wl}-Bexport"
+ − 15101 ;;
+ − 15102
+ − 15103 sunos4*)
+ − 15104 ld_dynamic_link_flags=
+ − 15105 ;;
+ − 15106
+ − 15107 uts4*)
+ − 15108 ld_dynamic_link_flags=
+ − 15109 ;;
+ − 15110
+ − 15111 bsdi*)
+ − 15112 ld_dynamic_link_flags=
+ − 15113 ;;
+ − 15114
+ − 15115 esac
+ − 15116 fi # End of if -z ld_dynamic_link_flags
+ − 15117 fi # End of if test "$can_build_shared" = "yes"
+ − 15118
+ − 15119
+ − 15120
+ − 15121
+ − 15122
+ − 15123
+ − 15124
+ − 15125
430
+ − 15126 fi
+ − 15127
388
+ − 15128 if test "$can_build_shared" = "yes"; then
+ − 15129 { test "$extra_verbose" = "yes" && cat << \EOF
261
+ − 15130 Defining HAVE_SHLIB
+ − 15131 EOF
+ − 15132 cat >> confdefs.h <<\EOF
+ − 15133 #define HAVE_SHLIB 1
+ − 15134 EOF
+ − 15135 }
+ − 15136
430
+ − 15137 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
+ − 15138 echo " xemacs will be linked with \"sysdll.o emodules.o\""
261
+ − 15139 fi
388
+ − 15140 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
+ − 15141 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
388
+ − 15142 for ac_func in dlerror _dlerror
276
+ − 15143 do
+ − 15144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
594
+ − 15145 echo "configure:15146: checking for $ac_func" >&5
+ − 15146
+ − 15147 cat > conftest.$ac_ext <<EOF
+ − 15148 #line 15149 "configure"
276
+ − 15149 #include "confdefs.h"
+ − 15150 /* System header to define __stub macros and hopefully few prototypes,
+ − 15151 which can conflict with char $ac_func(); below. */
+ − 15152 #include <assert.h>
+ − 15153 /* Override any gcc2 internal prototype to avoid an error. */
+ − 15154 /* We use char because int might match the return type of a gcc2
+ − 15155 builtin and then its argument prototype would still apply. */
+ − 15156 char $ac_func();
+ − 15157
+ − 15158 int main() {
+ − 15159
+ − 15160 /* The GNU C library defines this for functions which it implements
+ − 15161 to always fail with ENOSYS. Some functions are actually named
+ − 15162 something starting with __ and the normal name is an alias. */
+ − 15163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ − 15164 choke me
+ − 15165 #else
+ − 15166 $ac_func();
+ − 15167 #endif
+ − 15168
+ − 15169 ; return 0; }
+ − 15170 EOF
594
+ − 15171 if { (eval echo configure:15172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
276
+ − 15172 rm -rf conftest*
+ − 15173 eval "ac_cv_func_$ac_func=yes"
+ − 15174 else
+ − 15175 echo "configure: failed program was:" >&5
+ − 15176 cat conftest.$ac_ext >&5
+ − 15177 rm -rf conftest*
+ − 15178 eval "ac_cv_func_$ac_func=no"
+ − 15179 fi
+ − 15180 rm -f conftest*
+ − 15181
+ − 15182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ − 15183 echo "$ac_t""yes" 1>&6
+ − 15184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ − 15185 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15186 Defining $ac_tr_func
+ − 15187 EOF
+ − 15188 cat >> confdefs.h <<EOF
+ − 15189 #define $ac_tr_func 1
+ − 15190 EOF
+ − 15191 }
+ − 15192
+ − 15193 else
+ − 15194 echo "$ac_t""no" 1>&6
+ − 15195 fi
+ − 15196 done
+ − 15197
430
+ − 15198 with_modules=yes
388
+ − 15199 else
430
+ − 15200 if test "$with_modules" = "yes"; then
+ − 15201 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
+ − 15202 else
582
+ − 15203 echo " No module support."
430
+ − 15204 fi
422
+ − 15205 with_modules=no
+ − 15206 fi
+ − 15207 fi
+ − 15208
+ − 15209 cat > conftest.$ac_ext <<EOF
594
+ − 15210 #line 15211 "configure"
272
+ − 15211 #include "confdefs.h"
+ − 15212 int main(int c,char *v[]){return 0;}
+ − 15213 EOF
594
+ − 15214 if { (eval echo configure:15215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
272
+ − 15215 then
+ − 15216 :
+ − 15217 else
373
+ − 15218 conftest_rc="$?"
272
+ − 15219 echo "configure: failed program was:" >&5
+ − 15220 cat conftest.$ac_ext >&5
+ − 15221 rm -fr conftest*
+ − 15222
+ − 15223 echo ""
+ − 15224 echo "*** PANIC *** The C compiler can no longer build working executables."
+ − 15225 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
+ − 15226 echo "*** PANIC *** The most likely reason for this problem is that configure"
+ − 15227 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
+ − 15228 echo "*** PANIC *** found at run time."
+ − 15229 echo "*** PANIC ***"
+ − 15230 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
+ − 15231 echo "*** PANIC *** On other systems, try telling configure where to find the"
+ − 15232 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
+ − 15233 echo "*** PANIC ***"
+ − 15234 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
+ − 15235 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
+ − 15236 echo "*** PANIC *** on your system. Don't do that."
+ − 15237 exit 1
+ − 15238 fi
+ − 15239 rm -fr conftest*
+ − 15240
398
+ − 15241 if test "$win32_processes" = "yes"; then
+ − 15242 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
+ − 15243 echo " xemacs will be linked with \"process-nt.o\""
+ − 15244 fi
+ − 15245 else
+ − 15246 { test "$extra_verbose" = "yes" && cat << \EOF
263
+ − 15247 Defining HAVE_UNIX_PROCESSES
+ − 15248 EOF
+ − 15249 cat >> confdefs.h <<\EOF
+ − 15250 #define HAVE_UNIX_PROCESSES 1
+ − 15251 EOF
+ − 15252 }
+ − 15253
398
+ − 15254 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
263
+ − 15255 echo " xemacs will be linked with \"process-unix.o\""
+ − 15256 fi
398
+ − 15257 fi
261
+ − 15258
155
+ − 15259
+ − 15260
+ − 15261 T=""
175
+ − 15262 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15263 CFLAGS="$T"
+ − 15264
+ − 15265
+ − 15266 T=""
155
+ − 15267 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15268 extra_objs="$T"
+ − 15269
+ − 15270
+ − 15271 T=""
+ − 15272 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
+ − 15273 c_switch_general="$T"
+ − 15274
+ − 15275
+ − 15276 T=""
462
+ − 15277 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
+ − 15278 c_switch_window_system="$T"
+ − 15279
+ − 15280
+ − 15281 T=""
+ − 15282 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15283 c_switch_all="$T"
+ − 15284
+ − 15285
+ − 15286 T=""
+ − 15287 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
+ − 15288 ld_switch_general="$T"
+ − 15289
+ − 15290
+ − 15291 T=""
+ − 15292 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15293 ld_switch_window_system="$T"
+ − 15294
+ − 15295
+ − 15296 T=""
+ − 15297 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15298 ld_switch_all="$T"
+ − 15299
+ − 15300
+ − 15301 T=""
+ − 15302 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15303 ld_libs_general="$T"
+ − 15304
+ − 15305
+ − 15306 T=""
462
+ − 15307 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
+ − 15308 ld_libs_window_system="$T"
+ − 15309
+ − 15310
+ − 15311 T=""
+ − 15312 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15313 ld_libs_all="$T"
+ − 15314
149
+ − 15315
151
+ − 15316
+ − 15317 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
380
+ − 15318 internal_makefile_list="Makefile.in"
149
+ − 15319 SUBDIR_MAKEFILES=''
151
+ − 15320 test -d lock || mkdir lock
149
+ − 15321 for dir in $MAKE_SUBDIR; do
167
+ − 15322 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
+ − 15323 test -d "$d" || mkdir "$d"; cd "$d"
+ − 15324 done ) ;;
+ − 15325 * ) test -d "$dir" || mkdir "$dir" ;;
+ − 15326 esac
155
+ − 15327
+ − 15328 T=""
384
+ − 15329 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
155
+ − 15330 SUBDIR_MAKEFILES="$T"
+ − 15331
+ − 15332
+ − 15333 T=""
+ − 15334 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15335 internal_makefile_list="$T"
+ − 15336
149
+ − 15337 done
+ − 15338
+ − 15339
+ − 15340
167
+ − 15341
157
+ − 15342 for dir in src/s src/m; do
+ − 15343 if test ! -d "$dir" ; then
+ − 15344 echo Making symbolic link to "$srcdir/$dir"
+ − 15345 ${LN_S} "$srcdir/$dir" "$dir"
+ − 15346 fi
+ − 15347 done
+ − 15348
149
+ − 15349 if test "$extra_verbose" = "yes"; then
151
+ − 15350 echo ""
163
+ − 15351 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
+ − 15352 echo ""
+ − 15353 fi
+ − 15354
438
+ − 15355
+ − 15356 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
+ − 15357 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
+ − 15358 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
+ − 15359 fi
+ − 15360
+ − 15361 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
+ − 15362 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
+ − 15363 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
+ − 15364 fi
+ − 15365
+ − 15366 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
+ − 15367 test "$extra_verbose" = "yes" && echo "creating TAGS"
+ − 15368 echo "
+ − 15369 $srcdir/TAGS,include" > "TAGS"
151
+ − 15370 fi
+ − 15371
373
+ − 15372 if test "$__SUNPRO_C" = "yes"; then
438
+ − 15373 test "$extra_verbose" = "yes" && echo "creating .sbinit"
157
+ − 15374 ( echo "# For use with Sun WorkShop's Source browser."
+ − 15375 echo "# See sbquery(1) and sbinit(4) for more information"
+ − 15376 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
+ − 15377 ) > .sbinit
+ − 15378 fi
151
+ − 15379
+ − 15380 rm -f core
+ − 15381
149
+ − 15382
+ − 15383
+ − 15384
+ − 15385
+ − 15386
+ − 15387
+ − 15388
+ − 15389
+ − 15390
+ − 15391
+ − 15392
+ − 15393
+ − 15394
+ − 15395
280
+ − 15396
420
+ − 15397
422
+ − 15398
+ − 15399
452
+ − 15400
278
+ − 15401 PREFIX=$prefix
+ − 15402 while true; do
+ − 15403 case "$PREFIX" in
+ − 15404 *\$* ) eval "PREFIX=$PREFIX" ;;
+ − 15405 *) break ;;
+ − 15406 esac
+ − 15407 done
+ − 15408
+ − 15409
+ − 15410
420
+ − 15411
278
+ − 15412 EXEC_PREFIX=$exec_prefix
+ − 15413 while true; do
+ − 15414 case "$EXEC_PREFIX" in
+ − 15415 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
+ − 15416 *) break ;;
+ − 15417 esac
+ − 15418 done
+ − 15419
149
+ − 15420
+ − 15421
+ − 15422
274
+ − 15423 INFODIR=$infodir
+ − 15424 while true; do
+ − 15425 case "$INFODIR" in
+ − 15426 *\$* ) eval "INFODIR=$INFODIR" ;;
+ − 15427 *) break ;;
+ − 15428 esac
+ − 15429 done
+ − 15430
+ − 15431
+ − 15432
+ − 15433
+ − 15434 INFOPATH=$infopath
+ − 15435 while true; do
+ − 15436 case "$INFOPATH" in
+ − 15437 *\$* ) eval "INFOPATH=$INFOPATH" ;;
+ − 15438 *) break ;;
+ − 15439 esac
+ − 15440 done
+ − 15441
+ − 15442
+ − 15443
+ − 15444
+ − 15445 PACKAGE_PATH=$package_path
+ − 15446 while true; do
+ − 15447 case "$PACKAGE_PATH" in
+ − 15448 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
+ − 15449 *) break ;;
+ − 15450 esac
+ − 15451 done
+ − 15452
+ − 15453
+ − 15454
+ − 15455
+ − 15456 LISPDIR=$lispdir
+ − 15457 while true; do
+ − 15458 case "$LISPDIR" in
+ − 15459 *\$* ) eval "LISPDIR=$LISPDIR" ;;
+ − 15460 *) break ;;
+ − 15461 esac
+ − 15462 done
+ − 15463
+ − 15464
+ − 15465
+ − 15466
388
+ − 15467 MODULEDIR=$moduledir
+ − 15468 while true; do
+ − 15469 case "$MODULEDIR" in
+ − 15470 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
+ − 15471 *) break ;;
+ − 15472 esac
+ − 15473 done
+ − 15474
+ − 15475
+ − 15476
+ − 15477
+ − 15478 SITELISPDIR=$sitelispdir
+ − 15479 while true; do
+ − 15480 case "$SITELISPDIR" in
+ − 15481 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
+ − 15482 *) break ;;
+ − 15483 esac
+ − 15484 done
+ − 15485
+ − 15486
+ − 15487
+ − 15488
+ − 15489 SITEMODULEDIR=$sitemoduledir
+ − 15490 while true; do
+ − 15491 case "$SITEMODULEDIR" in
+ − 15492 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
+ − 15493 *) break ;;
+ − 15494 esac
+ − 15495 done
+ − 15496
+ − 15497
+ − 15498
274
+ − 15499
+ − 15500 ETCDIR=$etcdir
+ − 15501 while true; do
+ − 15502 case "$ETCDIR" in
+ − 15503 *\$* ) eval "ETCDIR=$ETCDIR" ;;
+ − 15504 *) break ;;
+ − 15505 esac
+ − 15506 done
+ − 15507
+ − 15508
+ − 15509
+ − 15510
420
+ − 15511 DOCDIR=$docdir
+ − 15512 while true; do
+ − 15513 case "$DOCDIR" in
+ − 15514 *\$* ) eval "DOCDIR=$DOCDIR" ;;
+ − 15515 *) break ;;
+ − 15516 esac
+ − 15517 done
+ − 15518
+ − 15519
+ − 15520
+ − 15521
274
+ − 15522 ARCHLIBDIR=$archlibdir
+ − 15523 while true; do
+ − 15524 case "$ARCHLIBDIR" in
+ − 15525 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
+ − 15526 *) break ;;
+ − 15527 esac
+ − 15528 done
149
+ − 15529
+ − 15530
+ − 15531
+ − 15532
+ − 15533
+ − 15534
+ − 15535
+ − 15536
+ − 15537
+ − 15538
+ − 15539
+ − 15540
+ − 15541
+ − 15542
+ − 15543
+ − 15544
203
+ − 15545
207
+ − 15546
263
+ − 15547
267
+ − 15548
173
+ − 15549 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
+ − 15550
+ − 15551
+ − 15552
+ − 15553
+ − 15554
+ − 15555
+ − 15556
594
+ − 15557
+ − 15558 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler"
+ − 15559 : ${XEMACS_CC:="$CC"}
380
+ − 15560
+ − 15561
420
+ − 15562 if test "$with_prefix" = "yes"; then
+ − 15563 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15564 Defining PREFIX_USER_DEFINED
+ − 15565 EOF
+ − 15566 cat >> confdefs.h <<\EOF
+ − 15567 #define PREFIX_USER_DEFINED 1
+ − 15568 EOF
+ − 15569 }
+ − 15570
+ − 15571 fi
380
+ − 15572
267
+ − 15573 if test "$with_site_lisp" = "no"; then
+ − 15574 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15575 Defining INHIBIT_SITE_LISP
+ − 15576 EOF
+ − 15577 cat >> confdefs.h <<\EOF
+ − 15578 #define INHIBIT_SITE_LISP 1
+ − 15579 EOF
+ − 15580 }
+ − 15581
+ − 15582 fi
388
+ − 15583 if test "$with_site_modules" = "no"; then
+ − 15584 { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15585 Defining INHIBIT_SITE_MODULES
+ − 15586 EOF
+ − 15587 cat >> confdefs.h <<\EOF
+ − 15588 #define INHIBIT_SITE_MODULES 1
+ − 15589 EOF
+ − 15590 }
+ − 15591
+ − 15592 fi
155
+ − 15593
207
+ − 15594
+ − 15595 T=""
+ − 15596 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+ − 15597 ac_configure_args="$T"
+ − 15598
149
+ − 15599 { test "$extra_verbose" = "yes" && cat << EOF
424
+ − 15600 Defining EMACS_CONFIGURATION = "$configuration"
149
+ − 15601 EOF
+ − 15602 cat >> confdefs.h <<EOF
424
+ − 15603 #define EMACS_CONFIGURATION "$configuration"
149
+ − 15604 EOF
+ − 15605 }
+ − 15606
+ − 15607 { test "$extra_verbose" = "yes" && cat << EOF
207
+ − 15608 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
173
+ − 15609 EOF
+ − 15610 cat >> confdefs.h <<EOF
207
+ − 15611 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
173
+ − 15612 EOF
+ − 15613 }
+ − 15614
149
+ − 15615
+ − 15616
+ − 15617 null_string=""
+ − 15618 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15619 Defining LD_SWITCH_X_SITE = $null_string
+ − 15620 EOF
+ − 15621 cat >> confdefs.h <<EOF
+ − 15622 #define LD_SWITCH_X_SITE $null_string
+ − 15623 EOF
+ − 15624 }
+ − 15625
+ − 15626 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15627 Defining LD_SWITCH_X_SITE_AUX = $null_string
+ − 15628 EOF
+ − 15629 cat >> confdefs.h <<EOF
+ − 15630 #define LD_SWITCH_X_SITE_AUX $null_string
+ − 15631 EOF
+ − 15632 }
+ − 15633
+ − 15634 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15635 Defining C_SWITCH_X_SITE = $null_string
+ − 15636 EOF
+ − 15637 cat >> confdefs.h <<EOF
+ − 15638 #define C_SWITCH_X_SITE $null_string
+ − 15639 EOF
+ − 15640 }
+ − 15641
+ − 15642 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15643 Defining LD_SWITCH_SITE = $null_string
+ − 15644 EOF
+ − 15645 cat >> confdefs.h <<EOF
+ − 15646 #define LD_SWITCH_SITE $null_string
+ − 15647 EOF
+ − 15648 }
+ − 15649
+ − 15650 { test "$extra_verbose" = "yes" && cat << EOF
+ − 15651 Defining C_SWITCH_SITE = $null_string
+ − 15652 EOF
+ − 15653 cat >> confdefs.h <<EOF
+ − 15654 #define C_SWITCH_SITE $null_string
+ − 15655 EOF
+ − 15656 }
+ − 15657
+ − 15658
+ − 15659
181
+ − 15660 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 15661 Defining GNU_MALLOC
+ − 15662 EOF
+ − 15663 cat >> confdefs.h <<\EOF
+ − 15664 #define GNU_MALLOC 1
+ − 15665 EOF
+ − 15666 }
+ − 15667
181
+ − 15668 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 15669 Defining USE_SYSTEM_MALLOC
+ − 15670 EOF
+ − 15671 cat >> confdefs.h <<\EOF
+ − 15672 #define USE_SYSTEM_MALLOC 1
+ − 15673 EOF
+ − 15674 }
+ − 15675
181
+ − 15676 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
177
+ − 15677 Defining USE_DEBUG_MALLOC
+ − 15678 EOF
+ − 15679 cat >> confdefs.h <<\EOF
+ − 15680 #define USE_DEBUG_MALLOC 1
+ − 15681 EOF
+ − 15682 }
+ − 15683
181
+ − 15684 { test "$extra_verbose" = "yes" && cat << \EOF
177
+ − 15685 Defining USE_SYSTEM_MALLOC
+ − 15686 EOF
+ − 15687 cat >> confdefs.h <<\EOF
+ − 15688 #define USE_SYSTEM_MALLOC 1
+ − 15689 EOF
+ − 15690 }
+ − 15691
149
+ − 15692 fi
+ − 15693 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15694 Defining I18N3
+ − 15695 EOF
+ − 15696 cat >> confdefs.h <<\EOF
+ − 15697 #define I18N3 1
+ − 15698 EOF
+ − 15699 }
+ − 15700
169
+ − 15701 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
+ − 15702 Defining USE_GCC
+ − 15703 EOF
+ − 15704 cat >> confdefs.h <<\EOF
+ − 15705 #define USE_GCC 1
+ − 15706 EOF
+ − 15707 }
+ − 15708
+ − 15709 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15710 Defining EXTERNAL_WIDGET
+ − 15711 EOF
+ − 15712 cat >> confdefs.h <<\EOF
+ − 15713 #define EXTERNAL_WIDGET 1
+ − 15714 EOF
+ − 15715 }
+ − 15716
442
+ − 15717 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15718 Defining QUICK_BUILD
+ − 15719 EOF
+ − 15720 cat >> confdefs.h <<\EOF
+ − 15721 #define QUICK_BUILD 1
149
+ − 15722 EOF
+ − 15723 }
+ − 15724
380
+ − 15725 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15726 Defining PURIFY
+ − 15727 EOF
+ − 15728 cat >> confdefs.h <<\EOF
+ − 15729 #define PURIFY 1
+ − 15730 EOF
+ − 15731 }
+ − 15732
149
+ − 15733 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15734 Defining QUANTIFY
+ − 15735 EOF
+ − 15736 cat >> confdefs.h <<\EOF
+ − 15737 #define QUANTIFY 1
+ − 15738 EOF
+ − 15739 }
+ − 15740
+ − 15741 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15742 Defining MAIL_USE_POP
+ − 15743 EOF
+ − 15744 cat >> confdefs.h <<\EOF
+ − 15745 #define MAIL_USE_POP 1
+ − 15746 EOF
+ − 15747 }
+ − 15748
+ − 15749 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15750 Defining KERBEROS
+ − 15751 EOF
+ − 15752 cat >> confdefs.h <<\EOF
+ − 15753 #define KERBEROS 1
+ − 15754 EOF
+ − 15755 }
+ − 15756
+ − 15757 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15758 Defining HESIOD
+ − 15759 EOF
+ − 15760 cat >> confdefs.h <<\EOF
+ − 15761 #define HESIOD 1
+ − 15762 EOF
+ − 15763 }
+ − 15764
272
+ − 15765 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15766 Defining USE_UNION_TYPE
+ − 15767 EOF
+ − 15768 cat >> confdefs.h <<\EOF
+ − 15769 #define USE_UNION_TYPE 1
149
+ − 15770 EOF
0
+ − 15771 }
70
+ − 15772
424
+ − 15773 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
+ − 15774 Defining PDUMP
+ − 15775 EOF
+ − 15776 cat >> confdefs.h <<\EOF
+ − 15777 #define PDUMP 1
+ − 15778 EOF
+ − 15779 }
+ − 15780
70
+ − 15781
0
+ − 15782
118
+ − 15783 (
149
+ − 15784 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
+ − 15785 else
+ − 15786 echo "uname -a: `uname -a`"
+ − 15787 fi
+ − 15788 echo ""
+ − 15789 echo "$0 $quoted_arguments"
261
+ − 15790 ) > Installation
+ − 15791
414
+ − 15792 if test ! -z ${emacs_beta_version} ; then
+ − 15793 if test -z "${emacs_is_beta}" ; then
+ − 15794 xemacs_betaname=".${emacs_beta_version}"
+ − 15795 else
+ − 15796 xemacs_betaname="-b${emacs_beta_version}"
+ − 15797 fi
+ − 15798 else
430
+ − 15799 xemacs_betaname=""
414
+ − 15800 fi
149
+ − 15801
116
+ − 15802 (
0
+ − 15803 echo "
+ − 15804
261
+ − 15805 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
442
+ − 15806 "
+ − 15807 echo "
+ − 15808 Compilation / Installation:"
+ − 15809 echo " Source code location: $srcdir"
+ − 15810 echo " Installation prefix: $prefix"
70
+ − 15811 if test -n "$site_includes"; then
442
+ − 15812 echo " Additional header files: $site_includes"
149
+ − 15813 fi
+ − 15814 if test -n "$site_libraries"; then
442
+ − 15815 echo " Additional libraries: $site_libraries"
149
+ − 15816 fi
209
+ − 15817 if test -n "$site_prefixes"; then
442
+ − 15818 echo " Additional prefixes: $site_prefixes"
209
+ − 15819 fi
149
+ − 15820 if test -n "$runpath"; then
442
+ − 15821 echo " Runtime library search path: $runpath"
+ − 15822 fi
+ − 15823
+ − 15824 if test -n "$opsysfile"
+ − 15825 then echo " Operating system description file: \`$opsysfile'"
+ − 15826 else echo " Not using any operating system description file"
+ − 15827 fi
+ − 15828 if test -n "$machfile"
+ − 15829 then echo " Machine description file: \`$machfile'"
+ − 15830 else echo " Not using any machine description file"
+ − 15831 fi
+ − 15832
+ − 15833 echo " Compiler: $CC $CFLAGS"
+ − 15834 echo " Relocating allocator for buffers: $rel_alloc"
+ − 15835 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
+ − 15836
+ − 15837 echo "
+ − 15838 Window System:"
+ − 15839 if test "$with_msw" = "yes"; then
+ − 15840 echo " Compiling in support for the Microsoft window system."
+ − 15841 fi
+ − 15842 if test "$with_x11" = "yes"; then
+ − 15843 echo " Compiling in support for the X window system:"
+ − 15844 echo " - X Windows headers location: $x_includes"
+ − 15845 echo " - X Windows libraries location: $x_libraries"
+ − 15846 if test "$with_xauth" != yes; then
+ − 15847 echo " - Xau (X authority) not available."
+ − 15848 fi
+ − 15849 if test "$with_xmu" != yes; then
+ − 15850 echo " - Xmu library not available; substituting equivalent routines."
+ − 15851 fi
+ − 15852 if test "$with_wmcommand" != no; then
+ − 15853 echo " - Handling WM_COMMAND properly."
+ − 15854 fi
+ − 15855 fi
+ − 15856 if test "$need_athena" = "yes"; then
+ − 15857 echo " Compiling in support for the Athena widget set:"
+ − 15858 echo " - Athena headers location: $athena_h_path"
+ − 15859 echo " - Athena library to link: $athena_lib"
+ − 15860 fi
+ − 15861 case "$with_menubars" in
462
+ − 15862 gtk ) echo " Using GTK menubars." ;;
442
+ − 15863 lucid ) echo " Using Lucid menubars." ;;
+ − 15864 motif ) echo " Using Motif menubars."
+ − 15865 echo " *WARNING* The Motif menubar implementation is currently buggy."
+ − 15866 echo " We recommend using the Lucid menubar instead."
+ − 15867 echo " Re-run configure with --with-menubars='lucid'." ;;
+ − 15868 msw ) echo " Using MS-Windows menubars." ;;
+ − 15869 esac
+ − 15870 case "$with_scrollbars" in
462
+ − 15871 gtk ) echo " Using GTK scrollbars." ;;
442
+ − 15872 lucid ) echo " Using Lucid scrollbars." ;;
+ − 15873 motif ) echo " Using Motif scrollbars." ;;
+ − 15874 athena ) echo " Using Athena scrollbars." ;;
+ − 15875 msw ) echo " Using MS-Windows scrollbars." ;;
+ − 15876 esac
+ − 15877 case "$with_dialogs" in
462
+ − 15878 gtk ) echo " Using GTK dialog boxes." ;;
442
+ − 15879 motif ) echo " Using Motif dialog boxes."
+ − 15880 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
+ − 15881 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
+ − 15882 echo " We recommend using the Athena dialog boxes instead."
+ − 15883 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
+ − 15884 echo " Read the PROBLEMS file for more information."
+ − 15885 fi; fi ;;
+ − 15886 athena ) echo " Using Athena dialog boxes." ;;
+ − 15887 msw ) echo " Using MS-Windows dialog boxes." ;;
+ − 15888 esac
+ − 15889 case "$with_widgets" in
462
+ − 15890 gtk ) echo " Using GTK native widgets." ;;
442
+ − 15891 motif ) echo " Using Motif native widgets." ;;
+ − 15892 athena ) echo " Using Athena native widgets." ;;
+ − 15893 msw ) echo " Using MS-Windows native widgets." ;;
+ − 15894 esac
+ − 15895 if test "$with_dragndrop" = yes; then
+ − 15896 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
+ − 15897 echo " - Drag'n'Drop prototype: $dragndrop_proto."
+ − 15898 fi
+ − 15899
+ − 15900 echo "
+ − 15901 TTY:"
+ − 15902 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
+ − 15903 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
+ − 15904
+ − 15905 echo "
+ − 15906 Images:"
+ − 15907 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
153
+ − 15908 if test "$with_xpm" = yes; then
442
+ − 15909 echo " Compiling in support for XPM images."
175
+ − 15910 elif test "$with_x11" = yes; then
442
+ − 15911 echo " WARNING: -----------------------------------------------------------"
+ − 15912 echo " WARNING: Compiling without XPM image support."
373
+ − 15913 if test "$xpm_problem" != ""; then
+ − 15914 echo " Reason: $xpm_problem"
+ − 15915 fi
+ − 15916 echo " WARNING: You should strongly consider installing XPM."
151
+ − 15917 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
373
+ − 15918 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
442
+ − 15919 echo " WARNING: -----------------------------------------------------------"
371
+ − 15920 fi
373
+ − 15921 if test "$with_png" = yes; then
442
+ − 15922 echo " Compiling in support for PNG images."
373
+ − 15923 elif test "$window_system" != "none"; then
442
+ − 15924 echo " WARNING: -----------------------------------------------------------"
373
+ − 15925 echo " WARNING: Compiling without PNG image support."
+ − 15926 if test "$png_problem" != ""; then
+ − 15927 echo " Reason: $png_problem"
+ − 15928 fi
+ − 15929 echo " WARNING: You should strongly consider installing the PNG libraries."
+ − 15930 echo " WARNING: Otherwise certain images and glyphs may not display."
+ − 15931 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
442
+ − 15932 echo " WARNING: -----------------------------------------------------------"
+ − 15933 fi
+ − 15934 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
+ − 15935 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
310
+ − 15936 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
432
+ − 15937
442
+ − 15938 echo "
+ − 15939 Sound:"
+ − 15940 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
+ − 15941 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
+ − 15942 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
+ − 15943 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
+ − 15944
+ − 15945 echo "
+ − 15946 Databases:"
+ − 15947 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
116
+ − 15948 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
426
+ − 15949 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
442
+ − 15950 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
+ − 15951 if test "$with_postgresql" = yes; then
+ − 15952 echo " Compiling in support for PostgreSQL."
+ − 15953 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
+ − 15954 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
+ − 15955 fi
+ − 15956
+ − 15957 echo "
+ − 15958 Internationalization:"
+ − 15959 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
+ − 15960 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
+ − 15961 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
+ − 15962 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
+ − 15963 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
+ − 15964 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
+ − 15965 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
120
+ − 15966 if test "$with_wnn" = yes; then
+ − 15967 echo " Compiling in support for the WNN input method on Mule."
442
+ − 15968 test "$with_wnn6" = yes && echo " - Using WNN version 6."
+ − 15969 fi
+ − 15970 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
+ − 15971
+ − 15972 echo "
+ − 15973 Mail:"
+ − 15974 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
+ − 15975 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
+ − 15976 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
+ − 15977 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
+ − 15978
+ − 15979 echo "
+ − 15980 Other Features:"
116
+ − 15981 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
149
+ − 15982 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
442
+ − 15983 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
+ − 15984 test "$with_dnet" = yes && echo " Compiling in support for DNET."
+ − 15985 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
+ − 15986 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
+ − 15987 test "$pdump" = yes && echo " Using the new portable dumper."
+ − 15988 test "$debug" = yes && echo " Compiling in support for extra debugging code."
+ − 15989 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
+ − 15990 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
+ − 15991 != "no no no no no no"; then
151
+ − 15992 echo " WARNING: ---------------------------------------------------------"
+ − 15993 echo " WARNING: Compiling in support for runtime error checking."
+ − 15994 echo " WARNING: XEmacs will run noticeably more slowly as a result."
+ − 15995 echo " WARNING: Error checking is on by default for XEmacs beta releases."
+ − 15996 echo " WARNING: ---------------------------------------------------------"
+ − 15997 fi
118
+ − 15998 echo ""
116
+ − 15999 ) | tee -a Installation
118
+ − 16000 echo ""
+ − 16001
70
+ − 16002
0
+ − 16003 # Remove any trailing slashes in these variables.
149
+ − 16004 test -n "$prefix" &&
159
+ − 16005 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
+ − 16006 test -n "$exec_prefix" &&
159
+ − 16007 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
+ − 16008
+ − 16009
272
+ − 16010 for file in $internal_makefile_list; do
+ − 16011 test "$file" = src/Makefile.in && \
+ − 16012 file="src/Makefile.in:src/Makefile.in.in:src/depend"
430
+ − 16013 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
272
+ − 16014 done
276
+ − 16015 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
430
+ − 16016 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
+ − 16017
149
+ − 16018 trap '' 1 2 15
+ − 16019
+ − 16020 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
+ − 16021
+ − 16022 test "x$prefix" = xNONE && prefix=$ac_default_prefix
+ − 16023 # Let make expand exec_prefix.
+ − 16024 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
0
+ − 16025
+ − 16026 # Any assignment to VPATH causes Sun make to only execute
+ − 16027 # the first set of double-colon rules, so remove it if not needed.
+ − 16028 # If there is a colon in the path, we need to keep it.
+ − 16029 if test "x$srcdir" = x.; then
+ − 16030 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
+ − 16031 fi
+ − 16032
149
+ − 16033 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
+ − 16034
+ − 16035 DEFS=-DHAVE_CONFIG_H
+ − 16036
+ − 16037 # Without the "./", some shells look in PATH for config.status.
+ − 16038 : ${CONFIG_STATUS=./config.status}
+ − 16039
+ − 16040 echo creating $CONFIG_STATUS
+ − 16041 rm -f $CONFIG_STATUS
+ − 16042 cat > $CONFIG_STATUS <<EOF
+ − 16043 #! /bin/sh
0
+ − 16044 # Generated automatically by configure.
+ − 16045 # Run this file to recreate the current configuration.
+ − 16046 # This directory was configured as follows,
+ − 16047 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+ − 16048 #
149
+ − 16049 # $0 $ac_configure_args
+ − 16050 #
+ − 16051 # Compiler output produced by configure, useful for debugging
+ − 16052 # configure, is in ./config.log if it exists.
+ − 16053
+ − 16054 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
0
+ − 16055 for ac_option
+ − 16056 do
+ − 16057 case "\$ac_option" in
+ − 16058 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
149
+ − 16059 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
+ − 16060 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
0
+ − 16061 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
420
+ − 16062 echo "$CONFIG_STATUS generated by autoconf version 2.13"
0
+ − 16063 exit 0 ;;
+ − 16064 -help | --help | --hel | --he | --h)
+ − 16065 echo "\$ac_cs_usage"; exit 0 ;;
+ − 16066 *) echo "\$ac_cs_usage"; exit 1 ;;
+ − 16067 esac
+ − 16068 done
+ − 16069
+ − 16070 ac_given_srcdir=$srcdir
149
+ − 16071 ac_given_INSTALL="$INSTALL"
+ − 16072
276
+ − 16073 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
149
+ − 16074 EOF
+ − 16075 cat >> $CONFIG_STATUS <<EOF
+ − 16076
+ − 16077 # Protect against being on the right side of a sed subst in config.status.
+ − 16078 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
+ − 16079 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
0
+ − 16080 $ac_vpsub
+ − 16081 $extrasub
420
+ − 16082 s%@SHELL@%$SHELL%g
149
+ − 16083 s%@CFLAGS@%$CFLAGS%g
+ − 16084 s%@CPPFLAGS@%$CPPFLAGS%g
+ − 16085 s%@CXXFLAGS@%$CXXFLAGS%g
420
+ − 16086 s%@FFLAGS@%$FFLAGS%g
149
+ − 16087 s%@DEFS@%$DEFS%g
+ − 16088 s%@LDFLAGS@%$LDFLAGS%g
+ − 16089 s%@LIBS@%$LIBS%g
+ − 16090 s%@exec_prefix@%$exec_prefix%g
+ − 16091 s%@prefix@%$prefix%g
+ − 16092 s%@program_transform_name@%$program_transform_name%g
+ − 16093 s%@bindir@%$bindir%g
+ − 16094 s%@sbindir@%$sbindir%g
+ − 16095 s%@libexecdir@%$libexecdir%g
+ − 16096 s%@datadir@%$datadir%g
+ − 16097 s%@sysconfdir@%$sysconfdir%g
+ − 16098 s%@sharedstatedir@%$sharedstatedir%g
+ − 16099 s%@localstatedir@%$localstatedir%g
+ − 16100 s%@libdir@%$libdir%g
+ − 16101 s%@includedir@%$includedir%g
+ − 16102 s%@oldincludedir@%$oldincludedir%g
+ − 16103 s%@infodir@%$infodir%g
+ − 16104 s%@mandir@%$mandir%g
0
+ − 16105 s%@LN_S@%$LN_S%g
181
+ − 16106 s%@blddir@%$blddir%g
0
+ − 16107 s%@CC@%$CC%g
+ − 16108 s%@CPP@%$CPP%g
207
+ − 16109 s%@start_flags@%$start_flags%g
163
+ − 16110 s%@ld_switch_shared@%$ld_switch_shared%g
+ − 16111 s%@start_files@%$start_files%g
+ − 16112 s%@ld@%$ld%g
+ − 16113 s%@lib_gcc@%$lib_gcc%g
0
+ − 16114 s%@RANLIB@%$RANLIB%g
+ − 16115 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
420
+ − 16116 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
0
+ − 16117 s%@INSTALL_DATA@%$INSTALL_DATA%g
+ − 16118 s%@YACC@%$YACC%g
+ − 16119 s%@SET_MAKE@%$SET_MAKE%g
462
+ − 16120 s%@GTK_CONFIG@%$GTK_CONFIG%g
149
+ − 16121 s%@X_CFLAGS@%$X_CFLAGS%g
+ − 16122 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
+ − 16123 s%@X_LIBS@%$X_LIBS%g
+ − 16124 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
276
+ − 16125 s%@install_pp@%$install_pp%g
159
+ − 16126 s%@libs_xauth@%$libs_xauth%g
274
+ − 16127 s%@dnd_objs@%$dnd_objs%g
157
+ − 16128 s%@lwlib_objs@%$lwlib_objs%g
0
+ − 16129 s%@ALLOCA@%$ALLOCA%g
426
+ − 16130 s%@have_esd_config@%$have_esd_config%g
265
+ − 16131 s%@dll_ld@%$dll_ld%g
+ − 16132 s%@dll_cflags@%$dll_cflags%g
388
+ − 16133 s%@dll_ldflags@%$dll_ldflags%g
+ − 16134 s%@dll_post@%$dll_post%g
+ − 16135 s%@dll_ldo@%$dll_ldo%g
+ − 16136 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
151
+ − 16137 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
167
+ − 16138 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
149
+ − 16139 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
+ − 16140 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
280
+ − 16141 s%@PROGNAME@%$PROGNAME%g
0
+ − 16142 s%@version@%$version%g
+ − 16143 s%@configuration@%$configuration%g
+ − 16144 s%@canonical@%$canonical%g
422
+ − 16145 s%@inststaticdir@%$inststaticdir%g
+ − 16146 s%@instvardir@%$instvardir%g
0
+ − 16147 s%@srcdir@%$srcdir%g
155
+ − 16148 s%@pkgdir@%$pkgdir%g
0
+ − 16149 s%@statedir@%$statedir%g
452
+ − 16150 s%@extra_includes@%$extra_includes%g
420
+ − 16151 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
278
+ − 16152 s%@PREFIX@%$PREFIX%g
420
+ − 16153 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
278
+ − 16154 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
274
+ − 16155 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
+ − 16156 s%@INFODIR@%$INFODIR%g
203
+ − 16157 s%@infopath@%$infopath%g
274
+ − 16158 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
+ − 16159 s%@INFOPATH@%$INFOPATH%g
269
+ − 16160 s%@package_path@%$package_path%g
274
+ − 16161 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
+ − 16162 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
0
+ − 16163 s%@lispdir@%$lispdir%g
274
+ − 16164 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
+ − 16165 s%@LISPDIR@%$LISPDIR%g
388
+ − 16166 s%@moduledir@%$moduledir%g
+ − 16167 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
+ − 16168 s%@MODULEDIR@%$MODULEDIR%g
+ − 16169 s%@sitelispdir@%$sitelispdir%g
+ − 16170 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
+ − 16171 s%@SITELISPDIR@%$SITELISPDIR%g
+ − 16172 s%@sitemoduledir@%$sitemoduledir%g
+ − 16173 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
+ − 16174 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
0
+ − 16175 s%@etcdir@%$etcdir%g
274
+ − 16176 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
+ − 16177 s%@ETCDIR@%$ETCDIR%g
420
+ − 16178 s%@docdir@%$docdir%g
+ − 16179 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
+ − 16180 s%@DOCDIR@%$DOCDIR%g
0
+ − 16181 s%@archlibdir@%$archlibdir%g
274
+ − 16182 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
+ − 16183 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
0
+ − 16184 s%@bitmapdir@%$bitmapdir%g
149
+ − 16185 s%@extra_objs@%$extra_objs%g
0
+ − 16186 s%@machfile@%$machfile%g
+ − 16187 s%@opsysfile@%$opsysfile%g
149
+ − 16188 s%@c_switch_general@%$c_switch_general%g
+ − 16189 s%@c_switch_window_system@%$c_switch_window_system%g
+ − 16190 s%@c_switch_all@%$c_switch_all%g
+ − 16191 s%@ld_switch_general@%$ld_switch_general%g
+ − 16192 s%@ld_switch_window_system@%$ld_switch_window_system%g
+ − 16193 s%@ld_switch_all@%$ld_switch_all%g
+ − 16194 s%@ld_libs_general@%$ld_libs_general%g
+ − 16195 s%@ld_libs_window_system@%$ld_libs_window_system%g
+ − 16196 s%@ld_libs_all@%$ld_libs_all%g
173
+ − 16197 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
149
+ − 16198 s%@native_sound_lib@%$native_sound_lib%g
+ − 16199 s%@sound_cflags@%$sound_cflags%g
0
+ − 16200 s%@dynodump_arch@%$dynodump_arch%g
380
+ − 16201 s%@XEMACS_CC@%$XEMACS_CC%g
0
+ − 16202 s%@internal_makefile_list@%$internal_makefile_list%g
149
+ − 16203
+ − 16204 CEOF
+ − 16205 EOF
+ − 16206
+ − 16207 cat >> $CONFIG_STATUS <<\EOF
+ − 16208
+ − 16209 # Split the substitutions into bite-sized pieces for seds with
+ − 16210 # small command number limits, like on Digital OSF/1 and HP-UX.
+ − 16211 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
+ − 16212 ac_file=1 # Number of current file.
+ − 16213 ac_beg=1 # First line for current file.
+ − 16214 ac_end=$ac_max_sed_cmds # Line after last line for current file.
+ − 16215 ac_more_lines=:
+ − 16216 ac_sed_cmds=""
+ − 16217 while $ac_more_lines; do
+ − 16218 if test $ac_beg -gt 1; then
+ − 16219 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
+ − 16220 else
+ − 16221 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
+ − 16222 fi
+ − 16223 if test ! -s conftest.s$ac_file; then
+ − 16224 ac_more_lines=false
+ − 16225 rm -f conftest.s$ac_file
+ − 16226 else
+ − 16227 if test -z "$ac_sed_cmds"; then
+ − 16228 ac_sed_cmds="sed -f conftest.s$ac_file"
+ − 16229 else
+ − 16230 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
+ − 16231 fi
+ − 16232 ac_file=`expr $ac_file + 1`
+ − 16233 ac_beg=$ac_end
+ − 16234 ac_end=`expr $ac_end + $ac_max_sed_cmds`
+ − 16235 fi
+ − 16236 done
+ − 16237 if test -z "$ac_sed_cmds"; then
+ − 16238 ac_sed_cmds=cat
+ − 16239 fi
+ − 16240 EOF
+ − 16241
+ − 16242 cat >> $CONFIG_STATUS <<EOF
+ − 16243
272
+ − 16244 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
149
+ − 16245 EOF
+ − 16246 cat >> $CONFIG_STATUS <<\EOF
+ − 16247 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
+ − 16248 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+ − 16249 case "$ac_file" in
+ − 16250 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
+ − 16251 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
+ − 16252 *) ac_file_in="${ac_file}.in" ;;
+ − 16253 esac
+ − 16254
+ − 16255 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
+ − 16256
+ − 16257 # Remove last slash and all that follows it. Not all systems have dirname.
+ − 16258 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
+ − 16259 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
+ − 16260 # The file is in a subdirectory.
+ − 16261 test ! -d "$ac_dir" && mkdir "$ac_dir"
+ − 16262 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
+ − 16263 # A "../" for each directory in $ac_dir_suffix.
+ − 16264 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
+ − 16265 else
+ − 16266 ac_dir_suffix= ac_dots=
+ − 16267 fi
+ − 16268
+ − 16269 case "$ac_given_srcdir" in
+ − 16270 .) srcdir=.
+ − 16271 if test -z "$ac_dots"; then top_srcdir=.
+ − 16272 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
+ − 16273 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
+ − 16274 *) # Relative path.
+ − 16275 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
+ − 16276 top_srcdir="$ac_dots$ac_given_srcdir" ;;
+ − 16277 esac
+ − 16278
+ − 16279 case "$ac_given_INSTALL" in
+ − 16280 [/$]*) INSTALL="$ac_given_INSTALL" ;;
+ − 16281 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
+ − 16282 esac
+ − 16283
+ − 16284 echo creating "$ac_file"
+ − 16285 rm -f "$ac_file"
+ − 16286 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
+ − 16287 case "$ac_file" in
+ − 16288 *Makefile*) ac_comsub="1i\\
+ − 16289 # $configure_input" ;;
+ − 16290 *) ac_comsub= ;;
+ − 16291 esac
+ − 16292
+ − 16293 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
+ − 16294 sed -e "$ac_comsub
+ − 16295 s%@configure_input@%$configure_input%g
+ − 16296 s%@srcdir@%$srcdir%g
0
+ − 16297 s%@top_srcdir@%$top_srcdir%g
149
+ − 16298 s%@INSTALL@%$INSTALL%g
+ − 16299 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
0
+ − 16300 fi; done
149
+ − 16301 rm -f conftest.s*
+ − 16302
+ − 16303 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
+ − 16304 # NAME is the cpp macro being defined and VALUE is the value it is being given.
0
+ − 16305 #
+ − 16306 # ac_d sets the value in "#define NAME VALUE" lines.
149
+ − 16307 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
+ − 16308 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
0
+ − 16309 ac_dC='\3'
149
+ − 16310 ac_dD='%g'
0
+ − 16311 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
149
+ − 16312 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
+ − 16313 ac_uB='\([ ]\)%\1#\2define\3'
0
+ − 16314 ac_uC=' '
149
+ − 16315 ac_uD='\4%g'
0
+ − 16316 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
149
+ − 16317 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
+ − 16318 ac_eB='$%\1#\2define\3'
0
+ − 16319 ac_eC=' '
149
+ − 16320 ac_eD='%g'
+ − 16321
+ − 16322 if test "${CONFIG_HEADERS+set}" != set; then
+ − 16323 EOF
+ − 16324 cat >> $CONFIG_STATUS <<EOF
276
+ − 16325 CONFIG_HEADERS="src/config.h lwlib/config.h"
149
+ − 16326 EOF
+ − 16327 cat >> $CONFIG_STATUS <<\EOF
+ − 16328 fi
+ − 16329 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
+ − 16330 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+ − 16331 case "$ac_file" in
+ − 16332 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
+ − 16333 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
+ − 16334 *) ac_file_in="${ac_file}.in" ;;
+ − 16335 esac
+ − 16336
+ − 16337 echo creating $ac_file
+ − 16338
+ − 16339 rm -f conftest.frag conftest.in conftest.out
+ − 16340 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
+ − 16341 cat $ac_file_inputs > conftest.in
+ − 16342
+ − 16343 EOF
+ − 16344
+ − 16345 # Transform confdefs.h into a sed script conftest.vals that substitutes
+ − 16346 # the proper values into config.h.in to produce config.h. And first:
+ − 16347 # Protect against being on the right side of a sed subst in config.status.
+ − 16348 # Protect against being in an unquoted here document in config.status.
+ − 16349 rm -f conftest.vals
+ − 16350 cat > conftest.hdr <<\EOF
+ − 16351 s/[\\&%]/\\&/g
+ − 16352 s%[\\$`]%\\&%g
+ − 16353 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
+ − 16354 s%ac_d%ac_u%gp
+ − 16355 s%ac_u%ac_e%gp
+ − 16356 EOF
+ − 16357 sed -n -f conftest.hdr confdefs.h > conftest.vals
+ − 16358 rm -f conftest.hdr
+ − 16359
+ − 16360 # This sed command replaces #undef with comments. This is necessary, for
+ − 16361 # example, in the case of _POSIX_SOURCE, which is predefined and required
+ − 16362 # on some systems where configure will not decide to define it.
+ − 16363 cat >> conftest.vals <<\EOF
+ − 16364 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
+ − 16365 EOF
+ − 16366
+ − 16367 # Break up conftest.vals because some shells have a limit on
+ − 16368 # the size of here documents, and old seds have small limits too.
+ − 16369
+ − 16370 rm -f conftest.tail
0
+ − 16371 while :
+ − 16372 do
149
+ − 16373 ac_lines=`grep -c . conftest.vals`
+ − 16374 # grep -c gives empty output for an empty file on some AIX systems.
0
+ − 16375 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
149
+ − 16376 # Write a limited-size here document to conftest.frag.
+ − 16377 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
+ − 16378 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
+ − 16379 echo 'CEOF
+ − 16380 sed -f conftest.frag conftest.in > conftest.out
+ − 16381 rm -f conftest.in
+ − 16382 mv conftest.out conftest.in
+ − 16383 ' >> $CONFIG_STATUS
+ − 16384 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
+ − 16385 rm -f conftest.vals
+ − 16386 mv conftest.tail conftest.vals
0
+ − 16387 done
149
+ − 16388 rm -f conftest.vals
+ − 16389
+ − 16390 cat >> $CONFIG_STATUS <<\EOF
+ − 16391 rm -f conftest.frag conftest.h
0
+ − 16392 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
149
+ − 16393 cat conftest.in >> conftest.h
+ − 16394 rm -f conftest.in
0
+ − 16395 if cmp -s $ac_file conftest.h 2>/dev/null; then
+ − 16396 echo "$ac_file is unchanged"
+ − 16397 rm -f conftest.h
+ − 16398 else
149
+ − 16399 # Remove last slash and all that follows it. Not all systems have dirname.
+ − 16400 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
+ − 16401 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
+ − 16402 # The file is in a subdirectory.
+ − 16403 test ! -d "$ac_dir" && mkdir "$ac_dir"
+ − 16404 fi
0
+ − 16405 rm -f $ac_file
+ − 16406 mv conftest.h $ac_file
+ − 16407 fi
+ − 16408 fi; done
149
+ − 16409
+ − 16410 EOF
+ − 16411 cat >> $CONFIG_STATUS <<EOF
+ − 16412 CPP="$CPP"
+ − 16413 top_srcdir="$srcdir"
+ − 16414 MAKE_SUBDIR="$MAKE_SUBDIR"
+ − 16415
+ − 16416 EOF
+ − 16417 cat >> $CONFIG_STATUS <<\EOF
380
+ − 16418 for dir in . $MAKE_SUBDIR; do
151
+ − 16419 (
149
+ − 16420 cd $dir
+ − 16421 rm -f junk.c
163
+ − 16422 < Makefile.in \
165
+ − 16423 sed -e '/^# Generated/d' \
163
+ − 16424 -e 's%/\*\*/#.*%%' \
165
+ − 16425 -e 's/^ *# */#/' \
163
+ − 16426 -e '/^##/d' \
+ − 16427 -e '/^#/ {
+ − 16428 p
+ − 16429 d
380
+ − 16430 }' \
+ − 16431 -e '/./ {
163
+ − 16432 s/\([\"]\)/\\\1/g
+ − 16433 s/^/"/
+ − 16434 s/$/"/
+ − 16435 }' > junk.c;
380
+ − 16436
+ − 16437
+ − 16438
+ − 16439 echo creating $dir/Makefile
+ − 16440 $CPP -I. -I${top_srcdir}/src junk.c \
+ − 16441 | sed -e 's/^\#.*//' \
+ − 16442 -e 's/^[ ][ ]*$//'\
+ − 16443 -e 's/^ / /' \
442
+ − 16444 -e '/^[ ]*$/d' \
+ − 16445 -e '/^\"/ {
380
+ − 16446 s/\\\([\"]\)/\1/g
+ − 16447 s/^[ ]*\"//
+ − 16448 s/\"[ ]*$//
+ − 16449 }' > Makefile.new
149
+ − 16450 chmod 444 Makefile.new
+ − 16451 mv -f Makefile.new Makefile
380
+ − 16452
+ − 16453 echo creating $dir/GNUmakefile
+ − 16454 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
+ − 16455 | sed -e 's/^\#.*//' \
+ − 16456 -e 's/^[ ][ ]*$//'\
+ − 16457 -e 's/^ / /' \
442
+ − 16458 -e '/^[ ]*$/d' \
+ − 16459 -e '/^\"/ {
380
+ − 16460 s/\\\([\"]\)/\1/g
+ − 16461 s/^[ ]*\"//
+ − 16462 s/\"[ ]*$//
+ − 16463 }' > Makefile.new
+ − 16464 chmod 444 Makefile.new
+ − 16465 mv -f Makefile.new GNUmakefile
+ − 16466
+ − 16467 rm -f junk.c
+ − 16468 )
149
+ − 16469 done
0
+ − 16470
181
+ − 16471 sed < config.status >> lib-src/config.values \
+ − 16472 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
+ − 16473 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
+ − 16474 -e 's/^\([^ ]*\) $/\1 ""/' \
+ − 16475 -e 's/ 1$/ t/'
175
+ − 16476
+ − 16477
0
+ − 16478 exit 0
+ − 16479 EOF
149
+ − 16480 chmod +x $CONFIG_STATUS
+ − 16481 rm -fr confdefs* $ac_clean_files
+ − 16482 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1