| 12259 | | AX_PATH_LIB_PCRE() |
|---|
| | 12263 | { $as_echo "$as_me:$LINENO: checking lib pcre" >&5 |
|---|
| | 12264 | $as_echo_n "checking lib pcre... " >&6; } |
|---|
| | 12265 | |
|---|
| | 12266 | # Check whether --with-pcre was given. |
|---|
| | 12267 | if test "${with_pcre+set}" = set; then |
|---|
| | 12268 | withval=$with_pcre; |
|---|
| | 12269 | else |
|---|
| | 12270 | with_pcre="yes" |
|---|
| | 12271 | fi |
|---|
| | 12272 | |
|---|
| | 12273 | if test ".$with_pcre" = ".no" ; then |
|---|
| | 12274 | { $as_echo "$as_me:$LINENO: result: disabled" >&5 |
|---|
| | 12275 | $as_echo "disabled" >&6; } |
|---|
| | 12276 | |
|---|
| | 12277 | else |
|---|
| | 12278 | { $as_echo "$as_me:$LINENO: result: (testing)" >&5 |
|---|
| | 12279 | $as_echo "(testing)" >&6; } |
|---|
| | 12280 | |
|---|
| | 12281 | { $as_echo "$as_me:$LINENO: checking for pcre_study in -lpcre" >&5 |
|---|
| | 12282 | $as_echo_n "checking for pcre_study in -lpcre... " >&6; } |
|---|
| | 12283 | if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then |
|---|
| | 12284 | $as_echo_n "(cached) " >&6 |
|---|
| | 12285 | else |
|---|
| | 12286 | ac_check_lib_save_LIBS=$LIBS |
|---|
| | 12287 | LIBS="-lpcre $LIBS" |
|---|
| | 12288 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 12289 | /* confdefs.h. */ |
|---|
| | 12290 | _ACEOF |
|---|
| | 12291 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 12292 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 12293 | /* end confdefs.h. */ |
|---|
| | 12294 | |
|---|
| | 12295 | /* Override any GCC internal prototype to avoid an error. |
|---|
| | 12296 | Use char because int might match the return type of a GCC |
|---|
| | 12297 | builtin and then its argument prototype would still apply. */ |
|---|
| | 12298 | #ifdef __cplusplus |
|---|
| | 12299 | extern "C" |
|---|
| | 12300 | #endif |
|---|
| | 12301 | char pcre_study (); |
|---|
| | 12302 | int |
|---|
| | 12303 | main () |
|---|
| | 12304 | { |
|---|
| | 12305 | return pcre_study (); |
|---|
| | 12306 | ; |
|---|
| | 12307 | return 0; |
|---|
| | 12308 | } |
|---|
| | 12309 | _ACEOF |
|---|
| | 12310 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 12311 | if { (ac_try="$ac_link" |
|---|
| | 12312 | case "(($ac_try" in |
|---|
| | 12313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 12314 | *) ac_try_echo=$ac_try;; |
|---|
| | 12315 | esac |
|---|
| | 12316 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|---|
| | 12317 | $as_echo "$ac_try_echo") >&5 |
|---|
| | 12318 | (eval "$ac_link") 2>conftest.er1 |
|---|
| | 12319 | ac_status=$? |
|---|
| | 12320 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 12321 | rm -f conftest.er1 |
|---|
| | 12322 | cat conftest.err >&5 |
|---|
| | 12323 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 12324 | (exit $ac_status); } && { |
|---|
| | 12325 | test -z "$ac_c_werror_flag" || |
|---|
| | 12326 | test ! -s conftest.err |
|---|
| | 12327 | } && test -s conftest$ac_exeext && { |
|---|
| | 12328 | test "$cross_compiling" = yes || |
|---|
| | 12329 | $as_test_x conftest$ac_exeext |
|---|
| | 12330 | }; then |
|---|
| | 12331 | ac_cv_lib_pcre_pcre_study=yes |
|---|
| | 12332 | else |
|---|
| | 12333 | $as_echo "$as_me: failed program was:" >&5 |
|---|
| | 12334 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 12335 | |
|---|
| | 12336 | ac_cv_lib_pcre_pcre_study=no |
|---|
| | 12337 | fi |
|---|
| | 12338 | |
|---|
| | 12339 | rm -rf conftest.dSYM |
|---|
| | 12340 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|---|
| | 12341 | conftest$ac_exeext conftest.$ac_ext |
|---|
| | 12342 | LIBS=$ac_check_lib_save_LIBS |
|---|
| | 12343 | fi |
|---|
| | 12344 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_study" >&5 |
|---|
| | 12345 | $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; } |
|---|
| | 12346 | if test "x$ac_cv_lib_pcre_pcre_study" = x""yes; then |
|---|
| | 12347 | cat >>confdefs.h <<_ACEOF |
|---|
| | 12348 | #define HAVE_LIBPCRE 1 |
|---|
| | 12349 | _ACEOF |
|---|
| | 12350 | |
|---|
| | 12351 | LIBS="-lpcre $LIBS" |
|---|
| | 12352 | |
|---|
| | 12353 | fi |
|---|
| | 12354 | |
|---|
| | 12355 | if test "$ac_cv_lib_pcre_pcre_study" = "yes" ; then |
|---|
| | 12356 | PCRE_LIBS="-lpcre" |
|---|
| | 12357 | { $as_echo "$as_me:$LINENO: checking lib pcre" >&5 |
|---|
| | 12358 | $as_echo_n "checking lib pcre... " >&6; } |
|---|
| | 12359 | { $as_echo "$as_me:$LINENO: result: $PCRE_LIBS" >&5 |
|---|
| | 12360 | $as_echo "$PCRE_LIBS" >&6; } |
|---|
| | 12361 | |
|---|
| | 12362 | else |
|---|
| | 12363 | OLDLDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$with_pcre/lib" |
|---|
| | 12364 | OLDCPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$with_pcre/include" |
|---|
| | 12365 | |
|---|
| | 12366 | { $as_echo "$as_me:$LINENO: checking for pcre_compile in -lpcre" >&5 |
|---|
| | 12367 | $as_echo_n "checking for pcre_compile in -lpcre... " >&6; } |
|---|
| | 12368 | if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then |
|---|
| | 12369 | $as_echo_n "(cached) " >&6 |
|---|
| | 12370 | else |
|---|
| | 12371 | ac_check_lib_save_LIBS=$LIBS |
|---|
| | 12372 | LIBS="-lpcre $LIBS" |
|---|
| | 12373 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 12374 | /* confdefs.h. */ |
|---|
| | 12375 | _ACEOF |
|---|
| | 12376 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 12377 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 12378 | /* end confdefs.h. */ |
|---|
| | 12379 | |
|---|
| | 12380 | /* Override any GCC internal prototype to avoid an error. |
|---|
| | 12381 | Use char because int might match the return type of a GCC |
|---|
| | 12382 | builtin and then its argument prototype would still apply. */ |
|---|
| | 12383 | #ifdef __cplusplus |
|---|
| | 12384 | extern "C" |
|---|
| | 12385 | #endif |
|---|
| | 12386 | char pcre_compile (); |
|---|
| | 12387 | int |
|---|
| | 12388 | main () |
|---|
| | 12389 | { |
|---|
| | 12390 | return pcre_compile (); |
|---|
| | 12391 | ; |
|---|
| | 12392 | return 0; |
|---|
| | 12393 | } |
|---|
| | 12394 | _ACEOF |
|---|
| | 12395 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 12396 | if { (ac_try="$ac_link" |
|---|
| | 12397 | case "(($ac_try" in |
|---|
| | 12398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 12399 | *) ac_try_echo=$ac_try;; |
|---|
| | 12400 | esac |
|---|
| | 12401 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|---|
| | 12402 | $as_echo "$ac_try_echo") >&5 |
|---|
| | 12403 | (eval "$ac_link") 2>conftest.er1 |
|---|
| | 12404 | ac_status=$? |
|---|
| | 12405 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 12406 | rm -f conftest.er1 |
|---|
| | 12407 | cat conftest.err >&5 |
|---|
| | 12408 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 12409 | (exit $ac_status); } && { |
|---|
| | 12410 | test -z "$ac_c_werror_flag" || |
|---|
| | 12411 | test ! -s conftest.err |
|---|
| | 12412 | } && test -s conftest$ac_exeext && { |
|---|
| | 12413 | test "$cross_compiling" = yes || |
|---|
| | 12414 | $as_test_x conftest$ac_exeext |
|---|
| | 12415 | }; then |
|---|
| | 12416 | ac_cv_lib_pcre_pcre_compile=yes |
|---|
| | 12417 | else |
|---|
| | 12418 | $as_echo "$as_me: failed program was:" >&5 |
|---|
| | 12419 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 12420 | |
|---|
| | 12421 | ac_cv_lib_pcre_pcre_compile=no |
|---|
| | 12422 | fi |
|---|
| | 12423 | |
|---|
| | 12424 | rm -rf conftest.dSYM |
|---|
| | 12425 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|---|
| | 12426 | conftest$ac_exeext conftest.$ac_ext |
|---|
| | 12427 | LIBS=$ac_check_lib_save_LIBS |
|---|
| | 12428 | fi |
|---|
| | 12429 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_compile" >&5 |
|---|
| | 12430 | $as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; } |
|---|
| | 12431 | if test "x$ac_cv_lib_pcre_pcre_compile" = x""yes; then |
|---|
| | 12432 | cat >>confdefs.h <<_ACEOF |
|---|
| | 12433 | #define HAVE_LIBPCRE 1 |
|---|
| | 12434 | _ACEOF |
|---|
| | 12435 | |
|---|
| | 12436 | LIBS="-lpcre $LIBS" |
|---|
| | 12437 | |
|---|
| | 12438 | fi |
|---|
| | 12439 | |
|---|
| | 12440 | CPPFLAGS="$OLDCPPFLAGS" |
|---|
| | 12441 | LDFLAGS="$OLDLDFLAGS" |
|---|
| | 12442 | if test "$ac_cv_lib_pcre_pcre_compile" = "yes" ; then |
|---|
| | 12443 | { $as_echo "$as_me:$LINENO: result: .setting PCRE_LIBS -L$with_pcre/lib -lpcre" >&5 |
|---|
| | 12444 | $as_echo ".setting PCRE_LIBS -L$with_pcre/lib -lpcre" >&6; } |
|---|
| | 12445 | PCRE_LIBS="-L$with_pcre/lib -lpcre" |
|---|
| | 12446 | test -d "$with_pcre/include" && PCRE_CFLAGS="-I$with_pcre/include" |
|---|
| | 12447 | { $as_echo "$as_me:$LINENO: checking lib pcre" >&5 |
|---|
| | 12448 | $as_echo_n "checking lib pcre... " >&6; } |
|---|
| | 12449 | { $as_echo "$as_me:$LINENO: result: $PCRE_LIBS" >&5 |
|---|
| | 12450 | $as_echo "$PCRE_LIBS" >&6; } |
|---|
| | 12451 | |
|---|
| | 12452 | else |
|---|
| | 12453 | { $as_echo "$as_me:$LINENO: checking lib pcre" >&5 |
|---|
| | 12454 | $as_echo_n "checking lib pcre... " >&6; } |
|---|
| | 12455 | { $as_echo "$as_me:$LINENO: result: no, (WARNING)" >&5 |
|---|
| | 12456 | $as_echo "no, (WARNING)" >&6; } |
|---|
| | 12457 | |
|---|
| | 12458 | fi |
|---|
| | 12459 | fi |
|---|
| | 12460 | fi |
|---|
| | 12461 | |
|---|
| | 12462 | |
|---|
| | 12463 | |
|---|