diff --git a/backend/Makefile.am b/backend/Makefile.am index db898abc9..ab9ab641b 100644 --- a/backend/Makefile.am +++ b/backend/Makefile.am @@ -24,7 +24,7 @@ USB_LIBS = @USB_LIBS@ SCSI_LIBS = @SCSI_LIBS@ PTHREAD_LIBS = @PTHREAD_LIBS@ -AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -DLIBDIR="$(libdir)/sane" +AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -DLIBDIR="\"$(libdir)/sane\"" V_MAJOR = @V_MAJOR@ V_MINOR = @V_MINOR@ diff --git a/backend/Makefile.in b/backend/Makefile.in index b688e9331..be214c642 100644 --- a/backend/Makefile.in +++ b/backend/Makefile.in @@ -1887,7 +1887,7 @@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -DLIBDIR="$(libdir)/sane" +AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -DLIBDIR="\"$(libdir)/sane\"" AM_LDFLAGS = @STRICT_LDFLAGS@ # The -rpath option is added because we are creating _LTLIBRARIES based # on configure substitution. This causes automake to not know the diff --git a/backend/dll.c b/backend/dll.c index 619ee5524..5264f1136 100644 --- a/backend/dll.c +++ b/backend/dll.c @@ -430,7 +430,7 @@ load (struct backend *be) if (path) { - src_len = strlen (path) + strlen (STRINGIFY (LIBDIR)) + 1 + 1; + src_len = strlen (path) + strlen (LIBDIR) + 1 + 1; src = malloc (src_len); if (!src) { @@ -438,11 +438,11 @@ load (struct backend *be) return SANE_STATUS_NO_MEM; } orig_src = src; - snprintf (src, src_len, "%s:%s", path, STRINGIFY (LIBDIR)); + snprintf (src, src_len, "%s:%s", path, LIBDIR); } else { - src = STRINGIFY (LIBDIR); + src = LIBDIR; src = strdup (src); if (!src) {