Changeset 5584
- Timestamp:
- 06/09/08 12:36:10 (6 months ago)
- Files:
-
- trackerd/trunk/configure (modified) (58 diffs)
- trackerd/trunk/configure.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trackerd/trunk/configure
r5291 r5584 1815 1815 1816 1816 1817 1818 1819 1817 1820 # Get host 1818 1821 ac_aux_dir= … … 3027 3030 { (exit 1); exit 1; }; } 3028 3031 else 3029 wt_user=`perl -e "print getlogin();"` 3032 wt_user=`perl -e "print ((getpwuid($<))[0])"` 3033 3034 if test -z "$wt_user"; then 3035 { { echo "$as_me:$LINENO: error: unable to retrieve user name, please set one with --with-user" >&5 3036 echo "$as_me: error: unable to retrieve user name, please set one with --with-user" >&2;} 3037 { (exit 1); exit 1; }; } 3038 fi 3030 3039 fi 3031 3040 fi … … 3064 3073 { (exit 1); exit 1; }; } 3065 3074 else 3066 wt_group=`perl -e "print ((getgrgid(((getpwnam(getlogin()))[3])))[0]);"` 3075 wt_group=`perl -e "print ((getgrgid(((getpwuid($<))[3])))[0]);"` 3076 3077 if test -z "$wt_group"; then 3078 { { echo "$as_me:$LINENO: error: unable to retrieve group name, please set one with --with-group" >&5 3079 echo "$as_me: error: unable to retrieve group name, please set one with --with-group" >&2;} 3080 { (exit 1); exit 1; }; } 3081 fi 3067 3082 fi 3068 3083 fi … … 3092 3107 3093 3108 OLD_CFLAGS="$CFLAGS" 3094 CFLAGS="$CFLAGS -W" 3109 3110 if test -z "$CFLAGS"; then 3111 CFLAGS="-W" 3112 else 3113 MATCH=`expr -- "$CFLAGS" : ".*-W"` 3114 3115 if test "$MATCH" = "0"; then 3116 CFLAGS="$CFLAGS -W" 3117 fi 3118 fi 3119 3095 3120 3096 3121 cat >conftest.$ac_ext <<_ACEOF … … 3119 3144 } && test -s conftest.$ac_objext; then 3120 3145 3121 WARNFLAGS="$WARNFLAGS -W" 3146 3147 if test -z "$WARNFLAGS"; then 3148 WARNFLAGS="-W" 3149 else 3150 MATCH=`expr -- "$WARNFLAGS" : ".*-W"` 3151 3152 if test "$MATCH" = "0"; then 3153 WARNFLAGS="$WARNFLAGS -W" 3154 fi 3155 fi 3156 3122 3157 3123 3158 else … … 3134 3169 3135 3170 OLD_CFLAGS="$CFLAGS" 3136 CFLAGS="$CFLAGS -Wall" 3171 3172 if test -z "$CFLAGS"; then 3173 CFLAGS="-Wall" 3174 else 3175 MATCH=`expr -- "$CFLAGS" : ".*-Wall"` 3176 3177 if test "$MATCH" = "0"; then 3178 CFLAGS="$CFLAGS -Wall" 3179 fi 3180 fi 3181 3137 3182 3138 3183 cat >conftest.$ac_ext <<_ACEOF … … 3161 3206 } && test -s conftest.$ac_objext; then 3162 3207 3163 WARNFLAGS="$WARNFLAGS -Wall" 3208 3209 if test -z "$WARNFLAGS"; then 3210 WARNFLAGS="-Wall" 3211 else 3212 MATCH=`expr -- "$WARNFLAGS" : ".*-Wall"` 3213 3214 if test "$MATCH" = "0"; then 3215 WARNFLAGS="$WARNFLAGS -Wall" 3216 fi 3217 fi 3218 3164 3219 3165 3220 else … … 3176 3231 3177 3232 OLD_CFLAGS="$CFLAGS" 3178 CFLAGS="$CFLAGS -Wno-unknown-pragmas" 3233 3234 if test -z "$CFLAGS"; then 3235 CFLAGS="-Wno-unknown-pragmas" 3236 else 3237 MATCH=`expr -- "$CFLAGS" : ".*-Wno-unknown-pragmas"` 3238 3239 if test "$MATCH" = "0"; then 3240 CFLAGS="$CFLAGS -Wno-unknown-pragmas" 3241 fi 3242 fi 3243 3179 3244 3180 3245 cat >conftest.$ac_ext <<_ACEOF … … 3203 3268 } && test -s conftest.$ac_objext; then 3204 3269 3205 WARNFLAGS="$WARNFLAGS -Wno-unknown-pragmas" 3270 3271 if test -z "$WARNFLAGS"; then 3272 WARNFLAGS="-Wno-unknown-pragmas" 3273 else 3274 MATCH=`expr -- "$WARNFLAGS" : ".*-Wno-unknown-pragmas"` 3275 3276 if test "$MATCH" = "0"; then 3277 WARNFLAGS="$WARNFLAGS -Wno-unknown-pragmas" 3278 fi 3279 fi 3280 3206 3281 3207 3282 else … … 3218 3293 3219 3294 OLD_CFLAGS="$CFLAGS" 3220 CFLAGS="$CFLAGS -Wno-unused-parameter" 3295 3296 if test -z "$CFLAGS"; then 3297 CFLAGS="-Wno-unused-parameter" 3298 else 3299 MATCH=`expr -- "$CFLAGS" : ".*-Wno-unused-parameter"` 3300 3301 if test "$MATCH" = "0"; then 3302 CFLAGS="$CFLAGS -Wno-unused-parameter" 3303 fi 3304 fi 3305 3221 3306 3222 3307 cat >conftest.$ac_ext <<_ACEOF … … 3245 3330 } && test -s conftest.$ac_objext; then 3246 3331 3247 WARNFLAGS="$WARNFLAGS -Wno-unused-parameter" 3332 3333 if test -z "$WARNFLAGS"; then 3334 WARNFLAGS="-Wno-unused-parameter" 3335 else 3336 MATCH=`expr -- "$WARNFLAGS" : ".*-Wno-unused-parameter"` 3337 3338 if test "$MATCH" = "0"; then 3339 WARNFLAGS="$WARNFLAGS -Wno-unused-parameter" 3340 fi 3341 fi 3342 3248 3343 3249 3344 else … … 3260 3355 3261 3356 OLD_CFLAGS="$CFLAGS" 3262 CFLAGS="$CFLAGS -Wsign-compare" 3357 3358 if test -z "$CFLAGS"; then 3359 CFLAGS="-Wsign-compare" 3360 else 3361 MATCH=`expr -- "$CFLAGS" : ".*-Wsign-compare"` 3362 3363 if test "$MATCH" = "0"; then 3364 CFLAGS="$CFLAGS -Wsign-compare" 3365 fi 3366 fi 3367 3263 3368 3264 3369 cat >conftest.$ac_ext <<_ACEOF … … 3287 3392 } && test -s conftest.$ac_objext; then 3288 3393 3289 WARNFLAGS="$WARNFLAGS -Wsign-compare" 3394 3395 if test -z "$WARNFLAGS"; then 3396 WARNFLAGS="-Wsign-compare" 3397 else 3398 MATCH=`expr -- "$WARNFLAGS" : ".*-Wsign-compare"` 3399 3400 if test "$MATCH" = "0"; then 3401 WARNFLAGS="$WARNFLAGS -Wsign-compare" 3402 fi 3403 fi 3404 3290 3405 3291 3406 else … … 3302 3417 3303 3418 OLD_CFLAGS="$CFLAGS" 3304 CFLAGS="$CFLAGS -Wstrict-prototypes" 3419 3420 if test -z "$CFLAGS"; then 3421 CFLAGS="-Wstrict-prototypes" 3422 else 3423 MATCH=`expr -- "$CFLAGS" : ".*-Wstrict-prototypes"` 3424 3425 if test "$MATCH" = "0"; then 3426 CFLAGS="$CFLAGS -Wstrict-prototypes" 3427 fi 3428 fi 3429 3305 3430 3306 3431 cat >conftest.$ac_ext <<_ACEOF … … 3329 3454 } && test -s conftest.$ac_objext; then 3330 3455 3331 WARNFLAGS="$WARNFLAGS -Wstrict-prototypes" 3456 3457 if test -z "$WARNFLAGS"; then 3458 WARNFLAGS="-Wstrict-prototypes" 3459 else 3460 MATCH=`expr -- "$WARNFLAGS" : ".*-Wstrict-prototypes"` 3461 3462 if test "$MATCH" = "0"; then 3463 WARNFLAGS="$WARNFLAGS -Wstrict-prototypes" 3464 fi 3465 fi 3466 3332 3467 3333 3468 else … … 3344 3479 3345 3480 OLD_CFLAGS="$CFLAGS" 3346 CFLAGS="$CFLAGS -Wmissing-prototypes" 3481 3482 if test -z "$CFLAGS"; then 3483 CFLAGS="-Wmissing-prototypes" 3484 else 3485 MATCH=`expr -- "$CFLAGS" : ".*-Wmissing-prototypes"` 3486 3487 if test "$MATCH" = "0"; then 3488 CFLAGS="$CFLAGS -Wmissing-prototypes" 3489 fi 3490 fi 3491 3347 3492 3348 3493 cat >conftest.$ac_ext <<_ACEOF … … 3371 3516 } && test -s conftest.$ac_objext; then 3372 3517 3373 WARNFLAGS="$WARNFLAGS -Wmissing-prototypes" 3518 3519 if test -z "$WARNFLAGS"; then 3520 WARNFLAGS="-Wmissing-prototypes" 3521 else 3522 MATCH=`expr -- "$WARNFLAGS" : ".*-Wmissing-prototypes"` 3523 3524 if test "$MATCH" = "0"; then 3525 WARNFLAGS="$WARNFLAGS -Wmissing-prototypes" 3526 fi 3527 fi 3528 3374 3529 3375 3530 else … … 3386 3541 3387 3542 OLD_CFLAGS="$CFLAGS" 3388 CFLAGS="$CFLAGS -Wmissing-declarations" 3543 3544 if test -z "$CFLAGS"; then 3545 CFLAGS="-Wmissing-declarations" 3546 else 3547 MATCH=`expr -- "$CFLAGS" : ".*-Wmissing-declarations"` 3548 3549 if test "$MATCH" = "0"; then 3550 CFLAGS="$CFLAGS -Wmissing-declarations" 3551 fi 3552 fi 3553 3389 3554 3390 3555 cat >conftest.$ac_ext <<_ACEOF … … 3413 3578 } && test -s conftest.$ac_objext; then 3414 3579 3415 WARNFLAGS="$WARNFLAGS -Wmissing-declarations" 3580 3581 if test -z "$WARNFLAGS"; then 3582 WARNFLAGS="-Wmissing-declarations" 3583 else 3584 MATCH=`expr -- "$WARNFLAGS" : ".*-Wmissing-declarations"` 3585 3586 if test "$MATCH" = "0"; then 3587 WARNFLAGS="$WARNFLAGS -Wmissing-declarations" 3588 fi 3589 fi 3590 3416 3591 3417 3592 else … … 3428 3603 3429 3604 OLD_CFLAGS="$CFLAGS" 3430 CFLAGS="$CFLAGS -Wredundant-decls" 3605 3606 if test -z "$CFLAGS"; then 3607 CFLAGS="-Wredundant-decls" 3608 else 3609 MATCH=`expr -- "$CFLAGS" : ".*-Wredundant-decls"` 3610 3611 if test "$MATCH" = "0"; then 3612 CFLAGS="$CFLAGS -Wredundant-decls" 3613 fi 3614 fi 3615 3431 3616 3432 3617 cat >conftest.$ac_ext <<_ACEOF … … 3455 3640 } && test -s conftest.$ac_objext; then 3456 3641 3457 WARNFLAGS="$WARNFLAGS -Wredundant-decls" 3642 3643 if test -z "$WARNFLAGS"; then 3644 WARNFLAGS="-Wredundant-decls" 3645 else 3646 MATCH=`expr -- "$WARNFLAGS" : ".*-Wredundant-decls"` 3647 3648 if test "$MATCH" = "0"; then 3649 WARNFLAGS="$WARNFLAGS -Wredundant-decls" 3650 fi 3651 fi 3652 3458 3653 3459 3654 else … … 3571 3766 3572 3767 3573 if test -d /usr/local/include; then 3574 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 3768 if test "$wi_include_extra_include_paths_done" != "yes"; then 3769 if test -d /usr/local/include; then 3770 3771 if test -z "$CPPFLAGS"; then 3772 CPPFLAGS="-I/usr/local/include" 3773 else 3774 MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/local/include"` 3775 3776 if test "$MATCH" = "0"; then 3777 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 3778 fi 3575 3779 fi 3576 3780 3577 3578 if test -d /usr/local/lib; then 3579 LDFLAGS="$LDFLAGS -L/usr/local/lib" 3781 fi 3782 3783 wi_include_extra_include_paths_done="yes" 3784 fi 3785 3786 3787 if test "$wi_include_extra_library_paths_done" != "yes"; then 3788 if test -d /usr/local/lib; then 3789 3790 if test -z "$LDFLAGS"; then 3791 LDFLAGS="-L/usr/local/lib" 3792 else 3793 MATCH=`expr -- "$LDFLAGS" : ".*-L/usr/local/lib"` 3794 3795 if test "$MATCH" = "0"; then 3796 LDFLAGS="$LDFLAGS -L/usr/local/lib" 3797 fi 3798 fi 3799 3800 fi 3801 3802 wi_include_extra_library_paths_done="yes" 3580 3803 fi 3581 3804 … … 3597 3820 3598 3821 3599 { echo "$as_me:$LINENO: checking for pow" >&5 3822 if test "$wi_include_math_library_done" != "yes"; then 3823 { echo "$as_me:$LINENO: checking for pow" >&5 3600 3824 echo $ECHO_N "checking for pow... $ECHO_C" >&6; } 3601 3825 if test "${ac_cv_func_pow+set}" = set; then … … 3682 3906 else 3683 3907 3684 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&53908 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 3685 3909 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; } 3686 3910 if test "${ac_cv_lib_m_sqrt+set}" = set; then … … 3745 3969 if test $ac_cv_lib_m_sqrt = yes; then 3746 3970 3971 3972 if test -z "$LIBS"; then 3973 LIBS="-lm" 3974 else 3975 MATCH=`expr -- "$LIBS" : ".*-lm"` 3976 3977 if test "$MATCH" = "0"; then 3747 3978 LIBS="$LIBS -lm" 3748 3749 fi 3750 3751 3752 fi 3753 3754 3755 3756 { echo "$as_me:$LINENO: checking for setsockopt" >&5 3979 fi 3980 fi 3981 3982 3983 fi 3984 3985 3986 fi 3987 3988 3989 wi_include_math_library_done="yes" 3990 fi 3991 3992 3993 if test "$wi_include_socket_library_done" != "yes"; then 3994 { echo "$as_me:$LINENO: checking for setsockopt" >&5 3757 3995 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 3758 3996 if test "${ac_cv_func_setsockopt+set}" = set; then … … 3839 4077 else 3840 4078 3841 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&54079 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 3842 4080 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 3843 4081 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then … … 3902 4140 if test $ac_cv_lib_socket_setsockopt = yes; then 3903 4141 4142 4143 if test -z "$LIBS"; then 4144 LIBS="-lsocket" 4145 else 4146 MATCH=`expr -- "$LIBS" : ".*-lsocket"` 4147 4148 if test "$MATCH" = "0"; then 3904 4149 LIBS="$LIBS -lsocket" 3905 3906 fi 3907 3908 3909 fi 3910 3911 3912 3913 { echo "$as_me:$LINENO: checking for gethostent" >&5 4150 fi 4151 fi 4152 4153 4154 fi 4155 4156 4157 fi 4158 4159 4160 wi_include_socket_library_done="yes" 4161 fi 4162 4163 4164 if test "$wi_include_nsl_library_done" != "yes"; then 4165 { echo "$as_me:$LINENO: checking for gethostent" >&5 3914 4166 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6; } 3915 4167 if test "${ac_cv_func_gethostent+set}" = set; then … … 3996 4248 else 3997 4249 3998 { echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&54250 { echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5 3999 4251 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6; } 4000 4252 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then … … 4059 4311 if test $ac_cv_lib_nsl_gethostent = yes; then 4060 4312 4313 4314 if test -z "$LIBS"; then 4315 LIBS="-lnsl" 4316 else 4317 MATCH=`expr -- "$LIBS" : ".*-lnsl"` 4318 4319 if test "$MATCH" = "0"; then 4061 4320 LIBS="$LIBS -lnsl" 4062 4063 fi 4064 4065 4066 fi 4067 4068 4069 4070 { echo "$as_me:$LINENO: checking for inet_aton" >&5 4321 fi 4322 fi 4323 4324 4325 fi 4326 4327 4328 fi 4329 4330 4331 wi_include_nsl_library_done="yes" 4332 fi 4333 4334 4335 if test "$wi_include_resolv_library_done" != "yes"; then 4336 { echo "$as_me:$LINENO: checking for inet_aton" >&5 4071 4337 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } 4072 4338 if test "${ac_cv_func_inet_aton+set}" = set; then … … 4153 4419 else 4154 4420 4155 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&54421 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 4156 4422 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; } 4157 4423 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then … … 4216 4482 if test $ac_cv_lib_resolv_inet_aton = yes; then 4217 4483 4484 4485 if test -z "$LIBS"; then 4486 LIBS="-lresolv" 4487 else 4488 MATCH=`expr -- "$LIBS" : ".*-lresolv"` 4489 4490 if test "$MATCH" = "0"; then 4218 4491 LIBS="$LIBS -lresolv" 4219 4220 fi 4221 4222 4223 fi 4224 4492 fi 4493 fi 4494 4495 4496 fi 4497 4498 4499 fi 4500 4501 4502 wi_include_resolv_library_done="yes" 4503 fi 4225 4504 4226 4505 ac_ext=c … … 4861 5140 4862 5141 4863 4864 if test "$_wi_ssl_paths_added" != yes ; then 5142 if test "$wi_include_crypto_library_done" != "yes"; then 5143 5144 if test "$wi_include_extra_ssl_paths_done" != "yes"; then 4865 5145 if test -d /usr/local/ssl/include; then 5146 5147 if test -z "$CPPFLAGS"; then 5148 CPPFLAGS="-I/usr/local/ssl/include" 5149 else 5150 MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/local/ssl/include"` 5151 5152 if test "$MATCH" = "0"; then 4866 5153 CPPFLAGS="$CPPFLAGS -I/usr/local/ssl/include" 4867 5154 fi 5155 fi 5156 5157 fi 4868 5158 4869 5159 if test -d /usr/kerberos/include; then 5160 5161 if test -z "$CPPFLAGS"; then 5162 CPPFLAGS="-I/usr/kerberos/include" 5163 else 5164 MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/kerberos/include"` 5165 5166 if test "$MATCH" = "0"; then 4870 5167 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include" 4871 5168 fi 5169 fi 5170 5171 fi 4872 5172 4873 5173 if test -d /usr/local/ssl/lib; then 5174 5175 if test -z "$LDFLAGS"; then 5176 LDFLAGS="-L/usr/local/ssl/lib" 5177 else 5178 MATCH=`expr -- "$LDFLAGS" : ".*-L/usr/local/ssl/lib"` 5179 5180 if test "$MATCH" = "0"; then 4874 5181 LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib" 4875 5182 fi 4876 5183 fi 4877 5184 4878 _wi_ssl_paths_added=yes 5185 fi 5186 5187 wi_include_extra_ssl_paths_done="yes" 5188 fi 4879 5189 4880 5190 … … 5020 5330 _ACEOF 5021 5331 5022 { echo "$as_me:$LINENO: checking for MD5_Init in -lcrypto" >&55332 { echo "$as_me:$LINENO: checking for MD5_Init in -lcrypto" >&5 5023 5333 echo $ECHO_N "checking for MD5_Init in -lcrypto... $ECHO_C" >&6; } 5024 5334 if test "${ac_cv_lib_crypto_MD5_Init+set}" = set; then … … 5083 5393 if test $ac_cv_lib_crypto_MD5_Init = yes; then 5084 5394 5395 5396 if test -z "$LIBS"; then 5397 LIBS="-lcrypto" 5398 else 5399 MATCH=`expr -- "$LIBS" : ".*-lcrypto"` 5400 5401 if test "$MATCH" = "0"; then 5085 5402 LIBS="$LIBS -lcrypto" 5403 fi 5404 fi 5405 5086 5406 5087 5407 else … … 5125 5445 5126 5446 5127 5128 5129 if test "$_wi_ssl_paths_added" != yes ; then 5447 wi_include_crypto_library_done="yes" 5448 fi 5449 5450 5451 if test "$wi_include_ssl_library_done" != "yes"; then 5452 5453 if test "$wi_include_extra_ssl_paths_done" != "yes"; then 5130 5454 if test -d /usr/local/ssl/include; then 5455 5456 if test -z "$CPPFLAGS"; then 5457 CPPFLAGS="-I/usr/local/ssl/include" 5458 else 5459 MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/local/ssl/include"` 5460 5461 if test "$MATCH" = "0"; then 5131 5462 CPPFLAGS="$CPPFLAGS -I/usr/local/ssl/include" 5132 5463 fi 5464 fi 5465 5466 fi 5133 5467 5134 5468 if test -d /usr/kerberos/include; then 5469 5470 if test -z "$CPPFLAGS"; then 5471 CPPFLAGS="-I/usr/kerberos/include" 5472 else 5473 MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/kerberos/include"` 5474 5475 if test "$MATCH" = "0"; then 5135 5476 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include" 5136 5477 fi 5478 fi 5479 5480 fi 5137 5481 5138 5482 if test -d /usr/local/ssl/lib; then 5483 5484 if test -z "$LDFLAGS"; then 5485 LDFLAGS="-L/usr/local/ssl/lib" 5486 else 5487 MATCH=`expr -- "$LDFLAGS" : ".*-L/usr/local/ssl/lib"` 5488 5489 if test "$MATCH" = "0"; then 5139 5490 LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib" 5140 5491 fi 5141 5492 fi 5142 5493 5143 _wi_ssl_paths_added=yes 5494 fi 5495 5496 wi_include_extra_ssl_paths_done="yes" 5497 fi 5144 5498 5145 5499 … … 5285 5639 _ACEOF 5286 5640 5287 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&55641 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 5288 5642 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; } 5289 5643 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then … … 5348 5702 if test $ac_cv_lib_ssl_SSL_library_init = yes; then 5349 5703 5704 5705 if test -z "$LIBS"; then 5706 LIBS="-lssl" 5707 else 5708 MATCH=`expr -- "$LIBS" : ".*-lssl"` 5709 5710 if test "$MATCH" = "0"; then 5350 5711 LIBS="$LIBS -lssl" 5712 fi 5713 fi 5714 5351 5715 5352 5716 else … … 5390 5754 5391 5755 5392 5756 wi_include_ssl_library_done="yes" 5757 fi 5758 5759 5760 if test "$wi_include_coreservices_framework_done" != "yes"; then 5393 5761 5394 5762 for ac_header in CoreServices/CoreServices.h … … 5532 5900 _ACEOF 5533 5901 5534 LIBS="$LIBS -framework CoreServices -framework Carbon" 5902 5903 if test -z "$LIBS"; then 5904 LIBS="-framework CoreServices" 5905 else 5906 MATCH=`expr -- "$LIBS" : ".*-framework CoreServices"` 5907 5908 if test "$MATCH" = "0"; then 5909 LIBS="$LIBS -framework CoreServices" 5910 fi 5911 fi 5912 5913 5914 if test -z "$LIBS"; then 5915 LIBS="-framework Carbon" 5916 else 5917 MATCH=`expr -- "$LIBS" : ".*-framework Carbon"` 5918 5919 if test "$MATCH" = "0"; then 5920 LIBS="$LIBS -framework Carbon" 5921 fi 5922 fi 5923 5535 5924 5536 5925 fi … … 5539 5928 5540 5929 5541 5542 case $host in 5543 *-solaris*) 5930 wi_include_coreservices_framework_done="yes" 5931 fi 5932 5933 5934 if test "$wi_include_pthreads_done" != "yes"; then 5935 case $host in 5936 *-solaris*) 5544 5937 5545 5938 cat >>confdefs.h <<\_ACEOF … … 5547 5940 _ACEOF 5548 5941 5549 ;;5550 esac5942 ;; 5943 esac 5551 5944 5552 5945 … … 5691 6084 _ACEOF 5692 6085 5693 { echo "$as_me:$LINENO: checking for pthreads" >&56086 { echo "$as_me:$LINENO: checking for pthreads" >&5 5694 6087 echo $ECHO_N "checking for pthreads... $ECHO_C" >&6; } 5695 6088 5696 6089 5697 if test "$ _wi_pthreads_found" != yes; then6090 if test "$wi_pthreads_found" != "yes"; then 5698 6091 OLD_LIBS="$LIBS" 5699 LIBS=" $LIBS" 6092 6093 if test -z "$LIBS"; then 6094 LIBS="" 6095 else 6096 MATCH=`expr -- "$LIBS" : ".*"` 6097 6098 if test "$MATCH" = "0"; then 6099 LIBS="$LIBS " 6100 fi 6101 fi 6102 5700 6103 5701 6104 if test "$cross_compiling" = yes; then … … 5749 6152 $as_test_x conftest$ac_exeext; then 5750 6153 5751 _wi_pthreads_test=yes6154 wi_pthreads_test=yes 5752 6155 5753 6156 else … … 5756 6159 5757 6160 5758 _wi_pthreads_test=no6161 wi_pthreads_test=no 5759 6162 5760 6163 fi … … 5813 6216 (exit $ac_status); }; }; then 5814 6217 5815 _wi_pthreads_test=yes6218 wi_pthreads_test=yes 5816 6219 5817 6220 else … … 5822 6225 ( exit $ac_status ) 5823 6226 5824 _wi_pthreads_test=no6227 wi_pthreads_test=no 5825 6228 5826 6229 fi … … 5832 6235 LIBS="$OLD_LIBS" 5833 6236 5834 if test "$ _wi_pthreads_test" = yes; then5835 _wi_pthreads_found=yes5836 _wi_pthreads_libs=""6237 if test "$wi_pthreads_test" = "yes"; then 6238 wi_pthreads_found="yes" 6239 wi_pthreads_libs="" 5837 6240 fi 5838 6241 fi 5839 6242 5840 6243 5841 if test "$ _wi_pthreads_found" != yes; then6244 if test "$wi_pthreads_found" != "yes"; then 5842 6245 OLD_LIBS="$LIBS" 5843 LIBS="-pthread $LIBS" 6246 6247 if test -z "$LIBS"; then 6248 LIBS="-pthread" 6249 else 6250 MATCH=`expr -- "$LIBS" : ".*-pthread"` 6251 6252 if test "$MATCH" = "0"; then 6253 LIBS="$LIBS -pthread" 6254 fi 6255 fi 6256 5844 6257 5845 6258 if test "$cross_compiling" = yes; then … … 5893 6306 $as_test_x conftest$ac_exeext; then 5894 6307 5895 _wi_pthreads_test=yes6308 wi_pthreads_test=yes 5896 6309 5897 6310 else … … 5900 6313 5901 6314 5902 _wi_pthreads_test=no6315 wi_pthreads_test=no 5903 6316 5904 6317 fi … … 5957 6370 (exit $ac_status); }; }; then 5958 6371 5959 _wi_pthreads_test=yes6372 wi_pthreads_test=yes 5960 6373 5961 6374 else … … 5966 6379 ( exit $ac_status ) 5967 6380 5968 _wi_pthreads_test=no6381 wi_pthreads_test=no 5969 6382 5970 6383 fi … … 5976 6389 LIBS="$OLD_LIBS" 5977 6390 5978 if test "$ _wi_pthreads_test" = yes; then5979 _wi_pthreads_found=yes5980 _wi_pthreads_libs="-pthread"6391 if test "$wi_pthreads_test" = "yes"; then 6392 wi_pthreads_found="yes" 6393 wi_pthreads_libs="-pthread" 5981 6394 fi 5982 6395 fi 5983 6396 5984 6397 5985 if test "$ _wi_pthreads_found" != yes; then6398 if test "$wi_pthreads_found" != "yes"; then 5986 6399 OLD_LIBS="$LIBS" 5987 LIBS="-lpthread $LIBS" 6400 6401 if test -z "$LIBS"; then 6402 LIBS="-lpthread" 6403 else 6404 MATCH=`expr -- "$LIBS" : ".*-lpthread"` 6405 6406 if test "$MATCH" = "0"; then 6407 LIBS="$LIBS -lpthread" 6408 fi 6409 fi 6410 5988 6411 5989 6412 if test "$cross_compiling" = yes; then … … 6037 6460 $as_test_x conftest$ac_exeext; then 6038 6461 6039 _wi_pthreads_test=yes6462 wi_pthreads_test=yes 6040 6463 6041 6464 else … … 6044 6467 6045 6468 6046 _wi_pthreads_test=no6469 wi_pthreads_test=no 6047 6470 6048 6471 fi … … 6101 6524 (exit $ac_status); }; }; then 6102 6525 6103 _wi_pthreads_test=yes6526 wi_pthreads_test=yes 6104 6527 6105 6528 else … … 6110 6533 ( exit $ac_status ) 6111 6534 6112 _wi_pthreads_test=no6535 wi_pthreads_test=no 6113 6536 6114 6537 fi … … 6120 6543 LIBS="$OLD_LIBS" 6121 6544 6122 if test "$ _wi_pthreads_test" = yes; then6123 _wi_pthreads_found=yes6124 _wi_pthreads_libs="-lpthread"6545 if test "$wi_pthreads_test" = "yes"; then 6546 wi_pthreads_found="yes" 6547 wi_pthreads_libs="-lpthread" 6125 6548 fi 6126 6549 fi 6127 6550 6128 6551 6129 if test "$_wi_pthreads_found" = yes; then6130 { echo "$as_me:$LINENO: result: yes" >&56552 if test "$wi_pthreads_found" = "yes"; then 6553 { echo "$as_me:$LINENO: result: yes" >&5 6131 6554 echo "${ECHO_T}yes" >&6; } 6132 LIBS="$_wi_pthreads_libs $LIBS" 6133 else 6134 { echo "$as_me:$LINENO: result: no" >&5 6555 6556 if test -z "$LIBS"; then 6557 LIBS="$wi_pthreads_libs" 6558 else 6559 MATCH=`expr -- "$LIBS" : ".*$wi_pthreads_libs"` 6560 6561 if test "$MATCH" = "0"; then 6562 LIBS="$LIBS $wi_pthreads_libs" 6563 fi 6564 fi 6565 6566 else 6567 { echo "$as_me:$LINENO: result: no" >&5 6135 6568 echo "${ECHO_T}no" >&6; } 6569 { { echo "$as_me:$LINENO: error: could not locate pthreads" >&5 6570 echo "$as_me: error: could not locate pthreads" >&2;} 6571 { (exit 1); exit 1; }; } 6572 fi 6573 6574 else 6575 6136 6576 { { echo "$as_me:$LINENO: error: could not locate pthreads" >&5 6137 6577 echo "$as_me: error: could not locate pthreads" >&2;} 6138 6578 { (exit 1); exit 1; }; } 6139 fi6140 6141 else6142 6143 { { echo "$as_me:$LINENO: error: could not locate pthreads" >&56144 echo "$as_me: error: could not locate pthreads" >&2;}6145 { (exit 1); exit 1; }; }6146 6579 6147 6580 fi … … 6149 6582 done 6150 6583 6584 6585 wi_include_pthreads_done="yes" 6586 fi 6151 6587 6152 6588 trackerd/trunk/configure.in
r5291 r5584 48 48 AC_MSG_ERROR([no such user "$with_user", please set another --with-user]) 49 49 else 50 wt_user=`perl -e "print getlogin();"` 50 wt_user=`perl -e "print ((getpwuid($<))[[0]])"` 51 52 if test -z "$wt_user"; then 53 AC_MSG_ERROR([unable to retrieve user name, please set one with --with-user]) 54 fi 51 55 fi 52 56 fi … … 71 75  
