Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/xnpal-config.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Fri Mar 11 20:00:29 2005 UTC (19 years ago) by orrisroot
Branch: MAIN
CVS Tags: AL_PORTING, MergePnt_20051116, REL20051226, XOONIPS_RC1, REL20060323, tag20060615, tag20070307current, tag20061115, MergePnt_20051220, tag20061130, merge_to_20060605, tag20070307, REL20060213, RELENG_2_0_0a_RELEASE, RELEASE_1_0_0, RELEASE_1_0_1, tag20060622, merge_to_20060411, HEAD
Branch point for: XOONIPS_STABLE_32, XOONIPS_STABLE, XOONIPS_STABLE_3, XOONIPS_STABLE_2
- Autotoolized XooNiPs Abstract Layer projects.
- changelog.cc commonal.cc index.cc item.cc :
    included <time.h> header file for undefined data type 'time_t' error.

1 #!/bin/sh
2 # $Id:$
3
4 # @configure_input@
5 #
6
7 prefix=@prefix@
8 exec_prefix=@exec_prefix@
9 exec_prefix_set=no
10
11 project=@PACKAGE_NAME@
12 version=@PACKAGE_VERSION@
13 xnpal_include_dir=@includedir@
14 xnpal_lib_dir=@libdir@
15 xnpal_cflags="@XNPAL_CFLAGS@"
16 xnpal_libadd="@XNPAL_LIBADD@"
17
18 usage()
19 {
20 cat <<EOF
21 Usage: xnpal-config [OPTIONS]
22 Options:
23 [--prefix[=DIR]]
24 [--exec-prefix[=DIR]]
25 [--version]
26 [--libs]
27 [--cflags]
28 EOF
29 exit $1
30 }
31
32 if test $# -eq 0; then
33 usage 1 1>&2
34 fi
35
36 lib_xnpal=yes
37
38 while test $# -gt 0; do
39 case "$1" in
40 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
41 *) optarg= ;;
42 esac
43
44 case $1 in
45 --prefix=*)
46 prefix=$optarg
47 if test $exec_prefix_set = no ; then
48 exec_prefix=$optarg
49 fi
50 ;;
51 --prefix)
52 echo_prefix=yes
53 ;;
54 --exec-prefix=*)
55 exec_prefix=$optarg
56 exec_prefix_set=yes
57 ;;
58 --exec-prefix)
59 echo_exec_prefix=yes
60 ;;
61 --version)
62 echo $version
63 exit 0
64 ;;
65 --cflags)
66 echo_cflags=yes
67 ;;
68 --libs)
69 echo_libs=yes
70 ;;
71 *)
72 usage 1 1>&2
73 ;;
74 esac
75 shift
76 done
77
78 if test "$echo_prefix" = "yes"; then
79 echo $prefix
80 fi
81 if test "$echo_exec_prefix" = "yes"; then
82 echo $exec_prefix
83 fi
84 if test "$echo_cflags" = "yes"; then
85 echo $xnpal_cflags -I$xnpal_include_dir
86 fi
87 if test "$echo_libs" = "yes"; then
88 libsp=""
89 if test "$lib_xnpal" = "yes"; then
90 libsp="-lxnpal"
91 fi
92 echo -L$xnpal_lib_dir $libsp $xnpal_libadd
93 fi

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26