1dnl librarypath macros 2dnl Copyright (C) 2005 Free Software Foundation 3dnl Copying and distribution of this file, with or without modification, 4dnl are permitted in any medium without royalty provided the copyright 5dnl notice and this notice are preserved. 6dnl 7dnl Written by Andrew Ruder 8dnl GS_ADD_LIBRARY_PATH 9dnl Adds -L$1 -Wl,-R$1 on netbsd and -L$1 elsewhere to LDFLAGS and LDIR_FLAGS 10AC_DEFUN([GS_ADD_LIBRARY_PATH], [ 11case "$target_os" in 12 netbsd*) 13 LDFLAGS="$LDFLAGS -L$1 -Wl,-R$1" 14 LDIR_FLAGS="$LDIR_FLAGS -Wl,-R$1 -L$1";; 15 *) 16 LDFLAGS="$LDFLAGS -L$1" 17 LDIR_FLAGS="$LDIR_FLAGS -L$1";; 18esac 19]) 20 21