Mercurial > pidgin
comparison acinclude.m4 @ 16223:0d4a41a50168
Remove binary relocation support stuff
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Tue, 17 Apr 2007 09:47:00 +0000 |
parents | 9a989acb0601 |
children |
comparison
equal
deleted
inserted
replaced
16192:c049478412fc | 16223:0d4a41a50168 |
---|---|
487 else | 487 else |
488 AC_MSG_WARN(could not find perl) | 488 AC_MSG_WARN(could not find perl) |
489 fi])dnl | 489 fi])dnl |
490 | 490 |
491 | 491 |
492 dnl This file scares me... | |
493 # Check for binary relocation support | |
494 # Hongli Lai | |
495 # http://autopackage.org/ | |
496 | |
497 AC_DEFUN([AM_BINRELOC], | |
498 [ | |
499 AC_ARG_ENABLE(binreloc, | |
500 [ --enable-binreloc compile with binary relocation support | |
501 (default=enable when available)], | |
502 enable_binreloc=$enableval,enable_binreloc=auto) | |
503 | |
504 BINRELOC_CFLAGS= | |
505 BINRELOC_LIBS= | |
506 if test "x$enable_binreloc" = "xauto"; then | |
507 AC_CACHE_CHECK([whether everything is installed to the same prefix], | |
508 [br_cv_valid_prefixes], [ | |
509 if test "$bindir" = '${exec_prefix}/bin' -a "$sbindir" = '${exec_prefix}/sbin' -a \ | |
510 "$datadir" = '${prefix}/share' -a "$libdir" = '${exec_prefix}/lib' -a \ | |
511 "$libexecdir" = '${exec_prefix}/libexec' -a "$sysconfdir" = '${prefix}/etc' | |
512 then | |
513 br_cv_valid_prefixes=yes | |
514 else | |
515 br_cv_valid_prefixes=no | |
516 fi | |
517 ]) | |
518 fi | |
519 AC_CACHE_CHECK([whether binary relocation support should be enabled], | |
520 [br_cv_binreloc], | |
521 [if test "x$enable_binreloc" = "xyes"; then | |
522 br_cv_binreloc=yes | |
523 elif test "x$enable_binreloc" = "xauto"; then | |
524 if test "x$br_cv_valid_prefixes" = "xyes"; then | |
525 br_cv_binreloc=yes | |
526 else | |
527 br_cv_binreloc=no | |
528 fi | |
529 else | |
530 br_cv_binreloc=no | |
531 fi]) | |
532 | |
533 if test "x$br_cv_binreloc" = "xyes"; then | |
534 BINRELOC_CFLAGS="-DENABLE_BINRELOC" | |
535 AC_DEFINE(ENABLE_BINRELOC,,[Use binary relocation?]) | |
536 fi | |
537 AC_SUBST(BINRELOC_CFLAGS) | |
538 AC_SUBST(BINRELOC_LIBS) | |
539 ]) | |
540 dnl AM_GCONF_SOURCE_2 | 492 dnl AM_GCONF_SOURCE_2 |
541 dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas | 493 dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas |
542 dnl (i.e. pass to gconftool-2 | 494 dnl (i.e. pass to gconftool-2 |
543 dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where | 495 dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where |
544 dnl you should install foo.schemas files | 496 dnl you should install foo.schemas files |