7 exec_prefix=@exec_prefix@
16 Usage: $0 [OPTIONS] [LIBRARIES]
18 --cflags print pre-processor and compiler flags
19 --libs print library linking information
20 --libs-dirs only print the -L/-R part of --libs
21 --libs-names only print the -l part of --libs
22 --help display this help and exit
23 --macros print the path to m4 macros
27 --version output netatalk version information
39 # we must be called with at least one argument
40 if test $# -eq 0; then
44 # at least one option should be selected
53 # grab all -- arguments
54 while test $# -gt 0; do
56 -*=*) af_optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79 echo -I @prefix@/include/netatalk/macros
91 exec_prefix=$af_optarg
92 af_exec_prefix_set=yes
95 af_echo_exec_prefix=yes
110 # if we have a default library use it
111 if test $# -eq 0; then
112 if test "X$af_lib_default" != "X"; then
113 af_lib__AF_LIB_DEFAULT=yes
118 while test $# -gt 0; do
133 if test "X$af_echo_cflags" = "Xyes"; then
134 af_all_flags="$af_cflags"
137 if test "X$af_echo_libs_L" = "Xyes" || test "X$af_echo_libs_l" = "Xyes"; then
138 af_all_flags="$af_all_flags $af_libs"
141 if test -z "$af_all_flags" || test "X$af_all_flags" = "X "; then
145 # Straight out any possible duplicates, but be careful to
146 # get `-lfoo -lbar -lbaz' for `-lfoo -lbaz -lbar -lbaz'
150 for i in $af_all_flags; do
152 # a library, save it for later, in reverse order
153 -l*) af_rev_libs="$i $af_rev_libs" ;;
155 if test "X$af_echo_libs_L" = "Xyes"; then
156 case " $af_lib_L_flags " in
157 *\ $i\ *) ;; # already there
158 *) af_lib_L_flags="$af_lib_L_flags $i" ;; # add it to output
162 case " $af_other_flags " in
163 *\ $i\ *) ;; # already there
164 *) af_other_flags="$af_other_flags $i" ;; # add it to output
170 if test "X$af_echo_libs_l" = "Xyes"; then
171 for i in $af_rev_libs; do
172 case " $af_ord_libs " in
173 *\ $i\ *) ;; # already there
174 *) af_ord_libs="$i $af_ord_libs" ;; # add it to output in reverse order
179 echo $af_other_flags $af_lib_L_flags $af_ord_libs
197 if test "X$af_echo_prefix" = "Xyes"; then
201 if test "X$af_echo_exec_prefix" = "Xyes"; then
205 if test "X$af_echo_version" = "Xyes"; then
206 echo @NETATALK_VERSION@
215 #dummy because this should always be selected
218 if test "@includedir@" != /usr/include ; then
219 includes="-I@includedir@"
221 if test "@libdir@" != /usr/lib ; then
224 af_cflags="$af_cflags $includes"
225 af_libs="$libs -latalk"