--- dillo-cvs/src/Makefile.am Thu Apr 3 21:12:10 2003 +++ dillo/src/Makefile.am Thu Apr 3 21:23:25 2003 @@ -107,4 +107,6 @@ list.h \ pixmaps.h +CPPFLAGS = -DSYSCONFDIR=\""$(sysconfdir)"\" + EXTRA_DIST = chg srch --- dillo-cvs/src/prefs.c Thu Apr 3 21:12:10 2003 +++ dillo/src/prefs.c Thu Apr 3 21:22:26 2003 @@ -250,9 +250,8 @@ file = a_Misc_prepend_user_home(".dillo/dillorc"); fd = open(file, O_RDONLY); g_free(file); - if (fd < 0 && (fd = open("/etc/dillorc", O_RDONLY)) < 0) - if ((fd = open("/usr/local/etc/dillorc", O_RDONLY)) < 0) - return FILE_NOT_FOUND; + if (fd < 0 && (fd = open(SYSCONFDIR "/dillorc", O_RDONLY)) < 0) + return FILE_NOT_FOUND; fcntl(fd, F_SETFD, FD_CLOEXEC | fcntl(fd, F_GETFD));