configure

changeset 1526
047f8a19f7fa
parent 1525
f675a4e99fb5
child 1528
6a687a7caed8
equal deleted inserted replaced
1525:f675a4e99fb5 1526:047f8a19f7fa
111 includedir__described__=1 111 includedir__described__=1
112 cat << '__EOF__' 112 cat << '__EOF__'
113 --includedir C header files [PREFIX/include] 113 --includedir C header files [PREFIX/include]
114 __EOF__ 114 __EOF__
115 fi 115 fi
116 fi
117 if true \
118 && isplatform "bsd" \
119 ; then
120 :
121 if test -z "$pkgconfigdir__described__"; then
122 pkgconfigdir__described__=1
123 cat << '__EOF__'
124 --pkgconfigdir location of the *.pc files
125 __EOF__
126 fi
127 fi
128 if true \
129 && notisplatform "bsd" \
130 ; then
131 :
132 if test -z "$pkgconfigdir__described__"; then
133 pkgconfigdir__described__=1
134 cat << '__EOF__'
135 --pkgconfigdir location of the *.pc files
136 __EOF__
137 fi
138 fi
139 if true \
140 ; then
141 :
116 if test -z "$DOXYGEN__described__"; then 142 if test -z "$DOXYGEN__described__"; then
117 DOXYGEN__described__=1 143 DOXYGEN__described__=1
118 cat << '__EOF__' 144 cat << '__EOF__'
119 --doxygen path of the Doxygen executable 145 --doxygen path of the Doxygen executable
120 __EOF__ 146 __EOF__
121 fi 147 fi
122 fi
123 if true \
124 && isplatform "bsd" \
125 ; then
126 :
127 fi
128 if true \
129 && notisplatform "bsd" \
130 ; then
131 :
132 fi 148 fi
133 cat << '__EOF__' 149 cat << '__EOF__'
134 150
135 Build Types: 151 Build Types:
136 --debug add extra compile flags for debug builds 152 --debug add extra compile flags for debug builds
165 if true \ 181 if true \
166 ; then 182 ; then
167 : 183 :
168 if test -z "$prefix__initialized__"; then 184 if test -z "$prefix__initialized__"; then
169 prefix__initialized__=1 185 prefix__initialized__=1
170 prefix="/usr" 186 prefix='/usr'
171 fi 187 fi
172 if test -z "$exec_prefix__initialized__"; then 188 if test -z "$exec_prefix__initialized__"; then
173 exec_prefix__initialized__=1 189 exec_prefix__initialized__=1
174 exec_prefix="" 190 exec_prefix=''
175 fi 191 fi
176 if test -z "$libdir__initialized__"; then 192 if test -z "$libdir__initialized__"; then
177 libdir__initialized__=1 193 libdir__initialized__=1
178 libdir="" 194 libdir=''
179 fi 195 fi
180 if test -z "$includedir__initialized__"; then 196 if test -z "$includedir__initialized__"; then
181 includedir__initialized__=1 197 includedir__initialized__=1
182 includedir="" 198 includedir=''
183 fi 199 fi
184 if test -z "$VERSION__initialized__"; then 200 if test -z "$VERSION__initialized__"; then
185 VERSION__initialized__=1 201 VERSION__initialized__=1
186 VERSION="3.2.0" 202 VERSION='3.2.0'
187 fi 203 fi
188 if test -z "$LIBVERSION__initialized__"; then 204 if test -z "$LIBVERSION__initialized__"; then
189 LIBVERSION__initialized__=1 205 LIBVERSION__initialized__=1
190 LIBVERSION="6.0.0" 206 LIBVERSION='6.0.0'
191 fi 207 fi
192 if test -z "$LIBVERSION_MAJOR__initialized__"; then 208 if test -z "$LIBVERSION_MAJOR__initialized__"; then
193 LIBVERSION_MAJOR__initialized__=1 209 LIBVERSION_MAJOR__initialized__=1
194 LIBVERSION_MAJOR="6" 210 LIBVERSION_MAJOR='6'
195 fi 211 fi
196 if test -z "$root_dir__initialized__"; then 212 if test -z "$root_dir__initialized__"; then
197 root_dir__initialized__=1 213 root_dir__initialized__=1
198 root_dir=`pwd` 214 root_dir=`pwd`
199 fi 215 fi
200 if test -z "$build_dir__initialized__"; then 216 if test -z "$build_dir__initialized__"; then
201 build_dir__initialized__=1 217 build_dir__initialized__=1
202 build_dir="\${root_dir}/build" 218 build_dir='${root_dir}/build'
203 fi 219 fi
204 if test -z "$docs_dir__initialized__"; then 220 if test -z "$docs_dir__initialized__"; then
205 docs_dir__initialized__=1 221 docs_dir__initialized__=1
206 docs_dir="\${root_dir}/build/docs" 222 docs_dir='${root_dir}/build/docs'
207 fi 223 fi
208 if test -z "$dist_dir__initialized__"; then 224 if test -z "$dist_dir__initialized__"; then
209 dist_dir__initialized__=1 225 dist_dir__initialized__=1
210 dist_dir="\${root_dir}/dist" 226 dist_dir='${root_dir}/dist'
211 fi 227 fi
228 if test -z "$MKDIR__initialized__"; then
229 MKDIR__initialized__=1
230 MKDIR='/bin/mkdir -p'
231 fi
232 if test -z "$RMFILE__initialized__"; then
233 RMFILE__initialized__=1
234 RMFILE='/bin/rm -f'
235 fi
236 if test -z "$RMDIR__initialized__"; then
237 RMDIR__initialized__=1
238 RMDIR='/bin/rm -f -R'
239 fi
240 if test -z "$COPYFILE__initialized__"; then
241 COPYFILE__initialized__=1
242 COPYFILE='/bin/cp -f'
243 fi
244 if test -z "$COPYALL__initialized__"; then
245 COPYALL__initialized__=1
246 COPYALL='/bin/cp -f -R'
247 fi
248 if test -z "$SYMLINK__initialized__"; then
249 SYMLINK__initialized__=1
250 SYMLINK='/bin/ln -s'
251 fi
252 fi
253 if true \
254 && isplatform "bsd" \
255 ; then
256 :
257 if test -z "$pkgconfigdir__initialized__"; then
258 pkgconfigdir__initialized__=1
259 pkgconfigdir='${exec_prefix}/libdata/pkgconfig'
260 fi
261 fi
262 if true \
263 && notisplatform "bsd" \
264 ; then
265 :
266 if test -z "$pkgconfigdir__initialized__"; then
267 pkgconfigdir__initialized__=1
268 pkgconfigdir='${libdir}/pkgconfig'
269 fi
270 fi
271 if true \
272 ; then
273 :
212 if test -z "$DOXYGEN__initialized__"; then 274 if test -z "$DOXYGEN__initialized__"; then
213 DOXYGEN__initialized__=1 275 DOXYGEN__initialized__=1
214 DOXYGEN=`command -v doxygen || echo '/bin/false'` 276 DOXYGEN=`command -v doxygen || echo '/bin/false'`
215 fi
216 if test -z "$MKDIR__initialized__"; then
217 MKDIR__initialized__=1
218 MKDIR="/bin/mkdir -p"
219 fi
220 if test -z "$RMFILE__initialized__"; then
221 RMFILE__initialized__=1
222 RMFILE="/bin/rm -f"
223 fi
224 if test -z "$RMDIR__initialized__"; then
225 RMDIR__initialized__=1
226 RMDIR="/bin/rm -f -R"
227 fi
228 if test -z "$COPYFILE__initialized__"; then
229 COPYFILE__initialized__=1
230 COPYFILE="/bin/cp -f"
231 fi
232 if test -z "$COPYALL__initialized__"; then
233 COPYALL__initialized__=1
234 COPYALL="/bin/cp -f -R"
235 fi
236 if test -z "$SYMLINK__initialized__"; then
237 SYMLINK__initialized__=1
238 SYMLINK="/bin/ln -s"
239 fi
240 fi
241 if true \
242 && isplatform "bsd" \
243 ; then
244 :
245 if test -z "$pkgconfigdir__initialized__"; then
246 pkgconfigdir__initialized__=1
247 pkgconfigdir="\${exec_prefix}/libdata/pkgconfig"
248 fi
249 fi
250 if true \
251 && notisplatform "bsd" \
252 ; then
253 :
254 if test -z "$pkgconfigdir__initialized__"; then
255 pkgconfigdir__initialized__=1
256 pkgconfigdir="\${libdir}/pkgconfig"
257 fi 277 fi
258 fi 278 fi
259 279
260 # features 280 # features
261 FEATURE_MEMRCHR=auto 281 FEATURE_MEMRCHR=auto
271 case "$ARG" in 291 case "$ARG" in
272 "--prefix="*) prefix=${ARG#--prefix=} ;; 292 "--prefix="*) prefix=${ARG#--prefix=} ;;
273 "--exec-prefix="*) exec_prefix=${ARG#--exec-prefix=} ;; 293 "--exec-prefix="*) exec_prefix=${ARG#--exec-prefix=} ;;
274 "--libdir="*) libdir=${ARG#--libdir=} ;; 294 "--libdir="*) libdir=${ARG#--libdir=} ;;
275 "--includedir="*) includedir=${ARG#--includedir=} ;; 295 "--includedir="*) includedir=${ARG#--includedir=} ;;
296 "--pkgconfigdir="*) pkgconfigdir=${ARG#--pkgconfigdir=} ;;
276 "--doxygen="*) DOXYGEN=${ARG#--doxygen=} ;; 297 "--doxygen="*) DOXYGEN=${ARG#--doxygen=} ;;
277 "--help"*) printhelp ;; 298 "--help"*) printhelp ;;
278 "--debug") BUILD_TYPE="debug" ;; 299 "--debug") BUILD_TYPE="debug" ;;
279 "--release") BUILD_TYPE="release" ;; 300 "--release") BUILD_TYPE="release" ;;
280 "--enable-api-docs") FEATURE_API_DOCS=on ;; 301 "--enable-api-docs") FEATURE_API_DOCS=on ;;
402 LIBVERSION_MAJOR=$LIBVERSION_MAJOR 423 LIBVERSION_MAJOR=$LIBVERSION_MAJOR
403 root_dir=$root_dir 424 root_dir=$root_dir
404 build_dir=$build_dir 425 build_dir=$build_dir
405 docs_dir=$docs_dir 426 docs_dir=$docs_dir
406 dist_dir=$dist_dir 427 dist_dir=$dist_dir
407 DOXYGEN=$DOXYGEN
408 MKDIR=$MKDIR 428 MKDIR=$MKDIR
409 RMFILE=$RMFILE 429 RMFILE=$RMFILE
410 RMDIR=$RMDIR 430 RMDIR=$RMDIR
411 COPYFILE=$COPYFILE 431 COPYFILE=$COPYFILE
412 COPYALL=$COPYALL 432 COPYALL=$COPYALL
413 SYMLINK=$SYMLINK 433 SYMLINK=$SYMLINK
414 pkgconfigdir=$pkgconfigdir 434 pkgconfigdir=$pkgconfigdir
435 DOXYGEN=$DOXYGEN
415 __EOF__ 436 __EOF__
416 437
417 438
418 # 439 #
419 # DEPENDENCIES 440 # DEPENDENCIES
905 echo "$exec_prefix" 926 echo "$exec_prefix"
906 printf ' %-16s' 'libdir:' 927 printf ' %-16s' 'libdir:'
907 echo "$libdir" 928 echo "$libdir"
908 printf ' %-16s' 'includedir:' 929 printf ' %-16s' 'includedir:'
909 echo "$includedir" 930 echo "$includedir"
931 printf ' %-16s' 'pkgconfigdir:'
932 echo "$pkgconfigdir"
910 printf ' %-16s' 'doxygen:' 933 printf ' %-16s' 'doxygen:'
911 echo "$DOXYGEN" 934 echo "$DOXYGEN"
912 echo 935 echo
913 echo "Features:" 936 echo "Features:"
914 printf ' %-16s' 'api-docs:' 937 printf ' %-16s' 'api-docs:'

mercurial