But since you're already passing in the prefix, I would think that it makes sense to take that into account in the Makefile.am that way the makefiles check your prefix location along with all the other default locations.
-Feanil On Wed, Oct 17, 2012 at 8:34 PM, Tom Ryder <t...@sanctum.geek.nz> wrote: > Hi Feanil; > > I do something similar to make tmux compile locally with libevent > 2.0.20 in my home directory. I find that passing environment flags to > ./configure works well: > > $ CFLAGS="-I$HOME/include" LDFLAGS="-L$HOME/lib" ./configure --prefix=$HOME > > This also requires adding $HOME/lib to your ldconfig. > > --Tom@Sanctum > > On 17 October 2012 08:36, Feanil Patel <fea...@gmail.com> wrote: >> >> Hi, >> >> I just tried to build tmux into a non standard >> location("/home/feanil/usr") using the prefix variable of configure. >> The build failed to find "event.h" which is available in the include >> folder underneath the prefix location("/home/feanil/usr/include"). I >> fixed the issue for myself by adding the prefix include directory to >> the CPPFLAGS line in Makefile.am and regenerating Makefile.in. The >> diff for the change is below the error message. Is there a different >> way to fix this issue, or should the source be updated to take a look >> in the include and lib directories underneath the prefix path? >> >> gcc -DPACKAGE_NAME=\"tmux\" -DPACKAGE_TARNAME=\"tmux\" >> -DPACKAGE_VERSION=\"1.7\" -DPACKAGE_STRING=\"tmux\ 1.7\" >> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tmux\" >> -DVERSION=\"1.7\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 >> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 >> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 >> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_CURSES_H=1 >> -DHAVE_DIRENT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 >> -DHAVE_NCURSES_H=1 -DHAVE_PATHS_H=1 -DHAVE_PTY_H=1 -DHAVE_STDINT_H=1 >> -DHAVE_SYS_DIR_H=1 -DHAVE_TERM_H=1 -DHAVE_B64_NTOP=1 -DHAVE_FORKPTY=1 >> -DHAVE_DAEMON=1 -DHAVE_SETENV=1 -DHAVE_ASPRINTF=1 -DHAVE_STRCASESTR=1 >> -DHAVE_STRSEP=1 -DHAVE_DECL_OPTARG=1 -DHAVE_DECL_OPTIND=1 >> -DHAVE_DECL_OPTRESET=0 -DHAVE_BZERO=1 -DHAVE_DIRFD=1 -DHAVE_SYSCONF=1 >> -DHAVE_BSD_TYPES=1 -DHAVE___PROGNAME=1 -DHAVE_PROC_PID=1 -I. >> -iquote. -I/usr/local/include -D_GNU_SOURCE -std=c99 -MT >> arguments.o -MD -MP -MF .deps/arguments.Tpo -c -o arguments.o >> arguments.c >> In file included from arguments.c:24: >> tmux.h:28:19: error: event.h: No such file or directory >> In file included from arguments.c:24: >> tmux.h:941: error: field ‘changes_timer’ has incomplete type >> tmux.h:982: error: field ‘name_timer’ has incomplete type >> tmux.h:1212: error: field ‘key_timer’ has incomplete type >> tmux.h:1264: error: field ‘event’ has incomplete type >> tmux.h:1284: error: field ‘repeat_timer’ has incomplete type >> tmux.h:1307: error: field ‘identify_timer’ has incomplete type >> tmux.h:1310: error: field ‘message_timer’ has incomplete type >> make: *** [arguments.o] Error 1 >> >> >> --- Makefile.am.orig 2012-10-16 15:32:21.000000000 -0400 >> +++ Makefile.am 2012-10-16 15:32:31.000000000 -0400 >> @@ -34,12 +34,12 @@ >> CPPFLAGS += -DDEBUG >> endif >> if IS_GCC4 >> -CPPFLAGS += -iquote. -I/usr/local/include >> +CPPFLAGS += -iquote. -I/usr/local/include -I$(prefix)/include >> if IS_DEBUG >> CFLAGS += -Wno-pointer-sign >> endif >> else >> -CPPFLAGS += -I. -I- -I/usr/local/include >> +CPPFLAGS += -I. -I- -I/usr/local/include -I$(prefix)/include >> endif >> endif >> >> -- >> Feanil Patel >> >> ------------------------------------------------------------------------------ >> Don't let slow site performance ruin your business. Deploy New Relic APM >> Deploy New Relic app performance management and know exactly >> what is happening inside your Ruby, Python, PHP, Java, and .NET app >> Try New Relic at no cost today and get our sweet Data Nerd shirt too! >> http://p.sf.net/sfu/newrelic-dev2dev >> _______________________________________________ >> tmux-cvs mailing list >> tmux-...@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/tmux-cvs ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users