aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure45
1 files changed, 31 insertions, 14 deletions
diff --git a/configure b/configure
index a9c31fdad99..11cb4e14838 100755
--- a/configure
+++ b/configure
@@ -660,6 +660,7 @@ ALSA_LIBS
660ALSA_CFLAGS 660ALSA_CFLAGS
661PKG_CONFIG 661PKG_CONFIG
662LIBSOUND 662LIBSOUND
663CRT_DIR
663MAKEINFO 664MAKEINFO
664GZIP_PROG 665GZIP_PROG
665INSTALL_INFO 666INSTALL_INFO
@@ -755,6 +756,7 @@ with_makeinfo
755with_gtk 756with_gtk
756with_gcc 757with_gcc
757with_pkg_config_prog 758with_pkg_config_prog
759with_crt_dir
758with_gnustep_conf 760with_gnustep_conf
759enable_ns_self_contained 761enable_ns_self_contained
760enable_asserts 762enable_asserts
@@ -1454,6 +1456,8 @@ Optional Packages:
1454 1456
1455 --with-pkg-config-prog=PATH 1457 --with-pkg-config-prog=PATH
1456 path to pkg-config for finding GTK and librsvg 1458 path to pkg-config for finding GTK and librsvg
1459 --with-crt-dir=DIR directory containing crtn.o etc. This option is only
1460 used on x86-64 and s390x GNU/Linux architectures.
1457 --with-gnustep-conf=PATH 1461 --with-gnustep-conf=PATH
1458 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE, 1462 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1459 or /etc/GNUstep/GNUstep.conf 1463 or /etc/GNUstep/GNUstep.conf
@@ -2742,6 +2746,15 @@ if test "X${with_pkg_config_prog}" != X; then
2742 fi 2746 fi
2743fi 2747fi
2744 2748
2749CRT_DIR=
2750
2751# Check whether --with-crt-dir was given.
2752if test "${with_crt_dir+set}" = set; then :
2753 withval=$with_crt_dir;
2754fi
2755
2756CRT_DIR="${with_crt_dir}"
2757
2745 2758
2746# Check whether --with-gnustep-conf was given. 2759# Check whether --with-gnustep-conf was given.
2747if test "${with_gnustep_conf+set}" = set; then : 2760if test "${with_gnustep_conf+set}" = set; then :
@@ -5705,19 +5718,28 @@ rm -rf conftest*
5705fi 5718fi
5706 5719
5707 5720
5708 5721## Note: at present CRT_DIR is only used for amdx86-64 and ibms390x.
5709### The standard library on x86-64 and s390x GNU/Linux distributions can 5722## Other machine types hard-code the location in src/[ms]/*.h.
5710### be located in either /usr/lib64 or /usr/lib.
5711### In some rare cases, /usr/lib64 exists but does not contain the
5712### relevant files (bug#1287). Hence test for crtn.o.
5713case "${canonical}" in 5723case "${canonical}" in
5714 x86_64-*-linux-gnu* | s390x-*-linux-gnu* ) 5724 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5715 if test -e /usr/lib64/crtn.o; then 5725 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5716 5726 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5717$as_echo "#define HAVE_LIB64_DIR 1" >>confdefs.h 5727 ## For anything else (eg /usr/lib32), it is up the user to specify
5728 ## the location (bug#5655).
5729 ## Test for crtn.o, not just the directory, because sometimes the
5730 ## directory exists but does not have the relevant files (bug#1287).
5731 ## If user specified a crt-dir, use that unconditionally.
5732 if test "X$CRT_DIR" = "X"; then
5733 CRT_DIR=/usr/lib
5734 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5735 fi
5718 5736
5719fi 5737 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5738 as_fn_error $? "crt*.o not found. Use --with-crt-dir to specify the location." "$LINENO" 5
5739 ;;
5720esac 5740esac
5741test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5742
5721 5743
5722 5744
5723 5745
@@ -13367,11 +13389,6 @@ to run if these resources are not installed."
13367 echo 13389 echo
13368fi 13390fi
13369 13391
13370if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
13371 echo "D-Bus integration has been tested for GNU/Linux only."
13372 echo
13373fi
13374
13375 13392
13376# Remove any trailing slashes in these variables. 13393# Remove any trailing slashes in these variables.
13377test "${prefix}" != NONE && 13394test "${prefix}" != NONE &&